1511 lines
784 KiB
JavaScript
1511 lines
784 KiB
JavaScript
var L3=Object.defineProperty;var s1=e=>{throw TypeError(e)};var F3=(e,t,n)=>t in e?L3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var l1=(e,t,n)=>F3(e,typeof t!="symbol"?t+"":t,n),c1=(e,t,n)=>t.has(e)||s1("Cannot "+n);var u1=(e,t,n)=>(c1(e,t,"read from private field"),n?n.call(e):t.get(e)),d1=(e,t,n)=>t.has(e)?s1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Rm=(e,t,n,r)=>(c1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function B3(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Du=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V2={exports:{}},fp={},W2={exports:{}},ye={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ru=Symbol.for("react.element"),V3=Symbol.for("react.portal"),W3=Symbol.for("react.fragment"),U3=Symbol.for("react.strict_mode"),H3=Symbol.for("react.profiler"),G3=Symbol.for("react.provider"),K3=Symbol.for("react.context"),X3=Symbol.for("react.forward_ref"),Y3=Symbol.for("react.suspense"),q3=Symbol.for("react.memo"),Q3=Symbol.for("react.lazy"),f1=Symbol.iterator;function Z3(e){return e===null||typeof e!="object"?null:(e=f1&&e[f1]||e["@@iterator"],typeof e=="function"?e:null)}var U2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H2=Object.assign,G2={};function Ks(e,t,n){this.props=e,this.context=t,this.refs=G2,this.updater=n||U2}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function K2(){}K2.prototype=Ks.prototype;function P0(e,t,n){this.props=e,this.context=t,this.refs=G2,this.updater=n||U2}var _0=P0.prototype=new K2;_0.constructor=P0;H2(_0,Ks.prototype);_0.isPureReactComponent=!0;var p1=Array.isArray,X2=Object.prototype.hasOwnProperty,T0={current:null},Y2={key:!0,ref:!0,__self:!0,__source:!0};function q2(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)X2.call(t,r)&&!Y2.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:ru,type:e,key:i,ref:a,props:o,_owner:T0.current}}function J3(e,t){return{$$typeof:ru,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function E0(e){return typeof e=="object"&&e!==null&&e.$$typeof===ru}function eI(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var m1=/\/+/g;function zm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eI(""+e.key):t.toString(36)}function Id(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ru:case V3:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+zm(a,0):r,p1(o)?(n="",e!=null&&(n=e.replace(m1,"$&/")+"/"),Id(o,t,n,"",function(u){return u})):o!=null&&(E0(o)&&(o=J3(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(m1,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",p1(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+zm(i,s);a+=Id(i,t,n,l,o)}else if(l=Z3(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+zm(i,s++),a+=Id(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Lu(e,t,n){if(e==null)return e;var r=[],o=0;return Id(e,r,"","",function(i){return t.call(n,i,o++)}),r}function tI(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rn={current:null},Rd={transition:null},nI={ReactCurrentDispatcher:rn,ReactCurrentBatchConfig:Rd,ReactCurrentOwner:T0};function Q2(){throw Error("act(...) is not supported in production builds of React.")}ye.Children={map:Lu,forEach:function(e,t,n){Lu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lu(e,function(){t++}),t},toArray:function(e){return Lu(e,function(t){return t})||[]},only:function(e){if(!E0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ye.Component=Ks;ye.Fragment=W3;ye.Profiler=H3;ye.PureComponent=P0;ye.StrictMode=U3;ye.Suspense=Y3;ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nI;ye.act=Q2;ye.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=H2({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=T0.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)X2.call(t,l)&&!Y2.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:ru,type:e.type,key:o,ref:i,props:r,_owner:a}};ye.createContext=function(e){return e={$$typeof:K3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:G3,_context:e},e.Consumer=e};ye.createElement=q2;ye.createFactory=function(e){var t=q2.bind(null,e);return t.type=e,t};ye.createRef=function(){return{current:null}};ye.forwardRef=function(e){return{$$typeof:X3,render:e}};ye.isValidElement=E0;ye.lazy=function(e){return{$$typeof:Q3,_payload:{_status:-1,_result:e},_init:tI}};ye.memo=function(e,t){return{$$typeof:q3,type:e,compare:t===void 0?null:t}};ye.startTransition=function(e){var t=Rd.transition;Rd.transition={};try{e()}finally{Rd.transition=t}};ye.unstable_act=Q2;ye.useCallback=function(e,t){return rn.current.useCallback(e,t)};ye.useContext=function(e){return rn.current.useContext(e)};ye.useDebugValue=function(){};ye.useDeferredValue=function(e){return rn.current.useDeferredValue(e)};ye.useEffect=function(e,t){return rn.current.useEffect(e,t)};ye.useId=function(){return rn.current.useId()};ye.useImperativeHandle=function(e,t,n){return rn.current.useImperativeHandle(e,t,n)};ye.useInsertionEffect=function(e,t){return rn.current.useInsertionEffect(e,t)};ye.useLayoutEffect=function(e,t){return rn.current.useLayoutEffect(e,t)};ye.useMemo=function(e,t){return rn.current.useMemo(e,t)};ye.useReducer=function(e,t,n){return rn.current.useReducer(e,t,n)};ye.useRef=function(e){return rn.current.useRef(e)};ye.useState=function(e){return rn.current.useState(e)};ye.useSyncExternalStore=function(e,t,n){return rn.current.useSyncExternalStore(e,t,n)};ye.useTransition=function(){return rn.current.useTransition()};ye.version="18.3.1";W2.exports=ye;var m=W2.exports;const Rt=C0(m),ug=B3({__proto__:null,default:Rt},[m]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var rI=m,oI=Symbol.for("react.element"),iI=Symbol.for("react.fragment"),aI=Object.prototype.hasOwnProperty,sI=rI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lI={key:!0,ref:!0,__self:!0,__source:!0};function Z2(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)aI.call(t,r)&&!lI.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:oI,type:e,key:i,ref:a,props:o,_owner:sI.current}}fp.Fragment=iI;fp.jsx=Z2;fp.jsxs=Z2;V2.exports=fp;var c=V2.exports,dg={},J2={exports:{}},$n={},eP={exports:{}},tP={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(O,I){var L=O.length;O.push(I);e:for(;0<L;){var G=L-1>>>1,H=O[G];if(0<o(H,I))O[G]=I,O[L]=H,L=G;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var I=O[0],L=O.pop();if(L!==I){O[0]=L;e:for(var G=0,H=O.length,Q=H>>>1;G<Q;){var xe=2*(G+1)-1,ve=O[xe],we=xe+1,Fe=O[we];if(0>o(ve,L))we<H&&0>o(Fe,ve)?(O[G]=Fe,O[we]=L,G=we):(O[G]=ve,O[xe]=L,G=xe);else if(we<H&&0>o(Fe,L))O[G]=Fe,O[we]=L,G=we;else break e}}return I}function o(O,I){var L=O.sortIndex-I.sortIndex;return L!==0?L:O.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],d=1,f=null,p=3,h=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(O){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=O)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function w(O){if(y=!1,S(O),!v)if(n(l)!==null)v=!0,B(k);else{var I=n(u);I!==null&&z(w,I.startTime-O)}}function k(O,I){v=!1,y&&(y=!1,b(T),T=-1),h=!0;var L=p;try{for(S(I),f=n(l);f!==null&&(!(f.expirationTime>I)||O&&!D());){var G=f.callback;if(typeof G=="function"){f.callback=null,p=f.priorityLevel;var H=G(f.expirationTime<=I);I=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(l)&&r(l),S(I)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var xe=n(u);xe!==null&&z(w,xe.startTime-I),Q=!1}return Q}finally{f=null,p=L,h=!1}}var _=!1,P=null,T=-1,R=5,E=-1;function D(){return!(e.unstable_now()-E<R)}function K(){if(P!==null){var O=e.unstable_now();E=O;var I=!0;try{I=P(!0,O)}finally{I?J():(_=!1,P=null)}}else _=!1}var J;if(typeof g=="function")J=function(){g(K)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,X=A.port2;A.port1.onmessage=K,J=function(){X.postMessage(null)}}else J=function(){x(K,0)};function B(O){P=O,_||(_=!0,J())}function z(O,I){T=x(function(){O(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,B(k))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(p){case 1:case 2:case 3:var I=3;break;default:I=p}var L=p;p=I;try{return O()}finally{p=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,I){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=p;p=O;try{return I()}finally{p=L}},e.unstable_scheduleCallback=function(O,I,L){var G=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?G+L:G):L=G,O){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=L+H,O={id:d++,callback:I,priorityLevel:O,startTime:L,expirationTime:H,sortIndex:-1},L>G?(O.sortIndex=L,t(u,O),n(l)===null&&O===n(u)&&(y?(b(T),T=-1):y=!0,z(w,L-G))):(O.sortIndex=H,t(l,O),v||h||(v=!0,B(k))),O},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(O){var I=p;return function(){var L=p;p=I;try{return O.apply(this,arguments)}finally{p=L}}}})(tP);eP.exports=tP;var cI=eP.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var uI=m,Pn=cI;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var nP=new Set,gc={};function ga(e,t){_s(e,t),_s(e+"Capture",t)}function _s(e,t){for(gc[e]=t,e=0;e<t.length;e++)nP.add(t[e])}var so=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fg=Object.prototype.hasOwnProperty,dI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h1={},g1={};function fI(e){return fg.call(g1,e)?!0:fg.call(h1,e)?!1:dI.test(e)?g1[e]=!0:(h1[e]=!0,!1)}function pI(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function mI(e,t,n,r){if(t===null||typeof t>"u"||pI(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function on(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new on(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new on(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new on(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new on(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new on(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new on(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new on(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new on(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new on(e,5,!1,e.toLowerCase(),null,!1,!1)});var j0=/[\-:]([a-z])/g;function $0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(j0,$0);Lt[t]=new on(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(j0,$0);Lt[t]=new on(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(j0,$0);Lt[t]=new on(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new on(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new on("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new on(e,1,!1,e.toLowerCase(),null,!0,!0)});function A0(e,t,n,r){var o=Lt.hasOwnProperty(t)?Lt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(mI(t,n,o,r)&&(n=null),r||o===null?fI(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var vo=uI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fu=Symbol.for("react.element"),za=Symbol.for("react.portal"),Ma=Symbol.for("react.fragment"),I0=Symbol.for("react.strict_mode"),pg=Symbol.for("react.profiler"),rP=Symbol.for("react.provider"),oP=Symbol.for("react.context"),R0=Symbol.for("react.forward_ref"),mg=Symbol.for("react.suspense"),hg=Symbol.for("react.suspense_list"),z0=Symbol.for("react.memo"),Ao=Symbol.for("react.lazy"),iP=Symbol.for("react.offscreen"),v1=Symbol.iterator;function ul(e){return e===null||typeof e!="object"?null:(e=v1&&e[v1]||e["@@iterator"],typeof e=="function"?e:null)}var it=Object.assign,Mm;function Tl(e){if(Mm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mm=t&&t[1]||""}return`
|
||
`+Mm+e}var Nm=!1;function Om(e,t){if(!e||Nm)return"";Nm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
||
`),i=r.stack.split(`
|
||
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
|
||
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Nm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tl(e):""}function hI(e){switch(e.tag){case 5:return Tl(e.type);case 16:return Tl("Lazy");case 13:return Tl("Suspense");case 19:return Tl("SuspenseList");case 0:case 2:case 15:return e=Om(e.type,!1),e;case 11:return e=Om(e.type.render,!1),e;case 1:return e=Om(e.type,!0),e;default:return""}}function gg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ma:return"Fragment";case za:return"Portal";case pg:return"Profiler";case I0:return"StrictMode";case mg:return"Suspense";case hg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oP:return(e.displayName||"Context")+".Consumer";case rP:return(e._context.displayName||"Context")+".Provider";case R0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z0:return t=e.displayName||null,t!==null?t:gg(e.type)||"Memo";case Ao:t=e._payload,e=e._init;try{return gg(e(t))}catch{}}return null}function gI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gg(t);case 8:return t===I0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ni(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function aP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vI(e){var t=aP(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bu(e){e._valueTracker||(e._valueTracker=vI(e))}function sP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=aP(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vg(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function y1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ni(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lP(e,t){t=t.checked,t!=null&&A0(e,"checked",t,!1)}function yg(e,t){lP(e,t);var n=ni(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bg(e,t.type,n):t.hasOwnProperty("defaultValue")&&bg(e,t.type,ni(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function b1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bg(e,t,n){(t!=="number"||bf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var El=Array.isArray;function cs(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ni(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function xg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return it({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function x1(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(El(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ni(n)}}function cP(e,t){var n=ni(t.value),r=ni(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function S1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uP(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Sg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vu,dP=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vu=Vu||document.createElement("div"),Vu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yI=["Webkit","ms","Moz","O"];Object.keys(Hl).forEach(function(e){yI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hl[t]=Hl[e]})});function fP(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hl.hasOwnProperty(e)&&Hl[e]?(""+t).trim():t+"px"}function pP(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=fP(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bI=it({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wg(e,t){if(t){if(bI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function kg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cg=null;function M0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pg=null,us=null,ds=null;function w1(e){if(e=au(e)){if(typeof Pg!="function")throw Error(W(280));var t=e.stateNode;t&&(t=vp(t),Pg(e.stateNode,e.type,t))}}function mP(e){us?ds?ds.push(e):ds=[e]:us=e}function hP(){if(us){var e=us,t=ds;if(ds=us=null,w1(e),t)for(e=0;e<t.length;e++)w1(t[e])}}function gP(e,t){return e(t)}function vP(){}var Dm=!1;function yP(e,t,n){if(Dm)return e(t,n);Dm=!0;try{return gP(e,t,n)}finally{Dm=!1,(us!==null||ds!==null)&&(vP(),hP())}}function yc(e,t){var n=e.stateNode;if(n===null)return null;var r=vp(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(W(231,t,typeof n));return n}var _g=!1;if(so)try{var dl={};Object.defineProperty(dl,"passive",{get:function(){_g=!0}}),window.addEventListener("test",dl,dl),window.removeEventListener("test",dl,dl)}catch{_g=!1}function xI(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Gl=!1,xf=null,Sf=!1,Tg=null,SI={onError:function(e){Gl=!0,xf=e}};function wI(e,t,n,r,o,i,a,s,l){Gl=!1,xf=null,xI.apply(SI,arguments)}function kI(e,t,n,r,o,i,a,s,l){if(wI.apply(this,arguments),Gl){if(Gl){var u=xf;Gl=!1,xf=null}else throw Error(W(198));Sf||(Sf=!0,Tg=u)}}function va(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function bP(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function k1(e){if(va(e)!==e)throw Error(W(188))}function CI(e){var t=e.alternate;if(!t){if(t=va(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return k1(o),e;if(i===r)return k1(o),t;i=i.sibling}throw Error(W(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function xP(e){return e=CI(e),e!==null?SP(e):null}function SP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=SP(e);if(t!==null)return t;e=e.sibling}return null}var wP=Pn.unstable_scheduleCallback,C1=Pn.unstable_cancelCallback,PI=Pn.unstable_shouldYield,_I=Pn.unstable_requestPaint,pt=Pn.unstable_now,TI=Pn.unstable_getCurrentPriorityLevel,N0=Pn.unstable_ImmediatePriority,kP=Pn.unstable_UserBlockingPriority,wf=Pn.unstable_NormalPriority,EI=Pn.unstable_LowPriority,CP=Pn.unstable_IdlePriority,pp=null,Ir=null;function jI(e){if(Ir&&typeof Ir.onCommitFiberRoot=="function")try{Ir.onCommitFiberRoot(pp,e,void 0,(e.current.flags&128)===128)}catch{}}var cr=Math.clz32?Math.clz32:II,$I=Math.log,AI=Math.LN2;function II(e){return e>>>=0,e===0?32:31-($I(e)/AI|0)|0}var Wu=64,Uu=4194304;function jl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=jl(s):(i&=a,i!==0&&(r=jl(i)))}else a=n&~o,a!==0?r=jl(a):i!==0&&(r=jl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-cr(t),o=1<<n,r|=e[n],t&=~o;return r}function RI(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zI(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-cr(i),s=1<<a,l=o[a];l===-1?(!(s&n)||s&r)&&(o[a]=RI(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function Eg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function PP(){var e=Wu;return Wu<<=1,!(Wu&4194240)&&(Wu=64),e}function Lm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ou(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cr(t),e[t]=n}function MI(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-cr(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function O0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-cr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Oe=0;function _P(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var TP,D0,EP,jP,$P,jg=!1,Hu=[],Go=null,Ko=null,Xo=null,bc=new Map,xc=new Map,zo=[],NI="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function P1(e,t){switch(e){case"focusin":case"focusout":Go=null;break;case"dragenter":case"dragleave":Ko=null;break;case"mouseover":case"mouseout":Xo=null;break;case"pointerover":case"pointerout":bc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(t.pointerId)}}function fl(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=au(t),t!==null&&D0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function OI(e,t,n,r,o){switch(t){case"focusin":return Go=fl(Go,e,t,n,r,o),!0;case"dragenter":return Ko=fl(Ko,e,t,n,r,o),!0;case"mouseover":return Xo=fl(Xo,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return bc.set(i,fl(bc.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xc.set(i,fl(xc.get(i)||null,e,t,n,r,o)),!0}return!1}function AP(e){var t=zi(e.target);if(t!==null){var n=va(t);if(n!==null){if(t=n.tag,t===13){if(t=bP(n),t!==null){e.blockedOn=t,$P(e.priority,function(){EP(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$g(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cg=r,n.target.dispatchEvent(r),Cg=null}else return t=au(n),t!==null&&D0(t),e.blockedOn=n,!1;t.shift()}return!0}function _1(e,t,n){zd(e)&&n.delete(t)}function DI(){jg=!1,Go!==null&&zd(Go)&&(Go=null),Ko!==null&&zd(Ko)&&(Ko=null),Xo!==null&&zd(Xo)&&(Xo=null),bc.forEach(_1),xc.forEach(_1)}function pl(e,t){e.blockedOn===t&&(e.blockedOn=null,jg||(jg=!0,Pn.unstable_scheduleCallback(Pn.unstable_NormalPriority,DI)))}function Sc(e){function t(o){return pl(o,e)}if(0<Hu.length){pl(Hu[0],e);for(var n=1;n<Hu.length;n++){var r=Hu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Go!==null&&pl(Go,e),Ko!==null&&pl(Ko,e),Xo!==null&&pl(Xo,e),bc.forEach(t),xc.forEach(t),n=0;n<zo.length;n++)r=zo[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zo.length&&(n=zo[0],n.blockedOn===null);)AP(n),n.blockedOn===null&&zo.shift()}var fs=vo.ReactCurrentBatchConfig,Cf=!0;function LI(e,t,n,r){var o=Oe,i=fs.transition;fs.transition=null;try{Oe=1,L0(e,t,n,r)}finally{Oe=o,fs.transition=i}}function FI(e,t,n,r){var o=Oe,i=fs.transition;fs.transition=null;try{Oe=4,L0(e,t,n,r)}finally{Oe=o,fs.transition=i}}function L0(e,t,n,r){if(Cf){var o=$g(e,t,n,r);if(o===null)Ym(e,t,r,Pf,n),P1(e,r);else if(OI(o,e,t,n,r))r.stopPropagation();else if(P1(e,r),t&4&&-1<NI.indexOf(e)){for(;o!==null;){var i=au(o);if(i!==null&&TP(i),i=$g(e,t,n,r),i===null&&Ym(e,t,r,Pf,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Ym(e,t,r,null,n)}}var Pf=null;function $g(e,t,n,r){if(Pf=null,e=M0(r),e=zi(e),e!==null)if(t=va(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bP(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Pf=e,null}function IP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(TI()){case N0:return 1;case kP:return 4;case wf:case EI:return 16;case CP:return 536870912;default:return 16}default:return 16}}var Do=null,F0=null,Md=null;function RP(){if(Md)return Md;var e,t=F0,n=t.length,r,o="value"in Do?Do.value:Do.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return Md=o.slice(e,1<r?1-r:void 0)}function Nd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gu(){return!0}function T1(){return!1}function An(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Gu:T1,this.isPropagationStopped=T1,this}return it(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gu)},persist:function(){},isPersistent:Gu}),t}var Xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},B0=An(Xs),iu=it({},Xs,{view:0,detail:0}),BI=An(iu),Fm,Bm,ml,mp=it({},iu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:V0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ml&&(ml&&e.type==="mousemove"?(Fm=e.screenX-ml.screenX,Bm=e.screenY-ml.screenY):Bm=Fm=0,ml=e),Fm)},movementY:function(e){return"movementY"in e?e.movementY:Bm}}),E1=An(mp),VI=it({},mp,{dataTransfer:0}),WI=An(VI),UI=it({},iu,{relatedTarget:0}),Vm=An(UI),HI=it({},Xs,{animationName:0,elapsedTime:0,pseudoElement:0}),GI=An(HI),KI=it({},Xs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XI=An(KI),YI=it({},Xs,{data:0}),j1=An(YI),qI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ZI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZI[e])?!!t[e]:!1}function V0(){return JI}var eR=it({},iu,{key:function(e){if(e.key){var t=qI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?QI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:V0,charCode:function(e){return e.type==="keypress"?Nd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tR=An(eR),nR=it({},mp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$1=An(nR),rR=it({},iu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:V0}),oR=An(rR),iR=it({},Xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),aR=An(iR),sR=it({},mp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lR=An(sR),cR=[9,13,27,32],W0=so&&"CompositionEvent"in window,Kl=null;so&&"documentMode"in document&&(Kl=document.documentMode);var uR=so&&"TextEvent"in window&&!Kl,zP=so&&(!W0||Kl&&8<Kl&&11>=Kl),A1=" ",I1=!1;function MP(e,t){switch(e){case"keyup":return cR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Na=!1;function dR(e,t){switch(e){case"compositionend":return NP(t);case"keypress":return t.which!==32?null:(I1=!0,A1);case"textInput":return e=t.data,e===A1&&I1?null:e;default:return null}}function fR(e,t){if(Na)return e==="compositionend"||!W0&&MP(e,t)?(e=RP(),Md=F0=Do=null,Na=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zP&&t.locale!=="ko"?null:t.data;default:return null}}var pR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function R1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pR[e.type]:t==="textarea"}function OP(e,t,n,r){mP(r),t=_f(t,"onChange"),0<t.length&&(n=new B0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xl=null,wc=null;function mR(e){XP(e,0)}function hp(e){var t=La(e);if(sP(t))return e}function hR(e,t){if(e==="change")return t}var DP=!1;if(so){var Wm;if(so){var Um="oninput"in document;if(!Um){var z1=document.createElement("div");z1.setAttribute("oninput","return;"),Um=typeof z1.oninput=="function"}Wm=Um}else Wm=!1;DP=Wm&&(!document.documentMode||9<document.documentMode)}function M1(){Xl&&(Xl.detachEvent("onpropertychange",LP),wc=Xl=null)}function LP(e){if(e.propertyName==="value"&&hp(wc)){var t=[];OP(t,wc,e,M0(e)),yP(mR,t)}}function gR(e,t,n){e==="focusin"?(M1(),Xl=t,wc=n,Xl.attachEvent("onpropertychange",LP)):e==="focusout"&&M1()}function vR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hp(wc)}function yR(e,t){if(e==="click")return hp(t)}function bR(e,t){if(e==="input"||e==="change")return hp(t)}function xR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pr=typeof Object.is=="function"?Object.is:xR;function kc(e,t){if(pr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!fg.call(t,o)||!pr(e[o],t[o]))return!1}return!0}function N1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function O1(e,t){var n=N1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=N1(n)}}function FP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?FP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function BP(){for(var e=window,t=bf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bf(e.document)}return t}function U0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function SR(e){var t=BP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&FP(n.ownerDocument.documentElement,n)){if(r!==null&&U0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=O1(n,i);var a=O1(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wR=so&&"documentMode"in document&&11>=document.documentMode,Oa=null,Ag=null,Yl=null,Ig=!1;function D1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ig||Oa==null||Oa!==bf(r)||(r=Oa,"selectionStart"in r&&U0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yl&&kc(Yl,r)||(Yl=r,r=_f(Ag,"onSelect"),0<r.length&&(t=new B0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Oa)))}function Ku(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Da={animationend:Ku("Animation","AnimationEnd"),animationiteration:Ku("Animation","AnimationIteration"),animationstart:Ku("Animation","AnimationStart"),transitionend:Ku("Transition","TransitionEnd")},Hm={},VP={};so&&(VP=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function gp(e){if(Hm[e])return Hm[e];if(!Da[e])return e;var t=Da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in VP)return Hm[e]=t[n];return e}var WP=gp("animationend"),UP=gp("animationiteration"),HP=gp("animationstart"),GP=gp("transitionend"),KP=new Map,L1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function di(e,t){KP.set(e,t),ga(t,[e])}for(var Gm=0;Gm<L1.length;Gm++){var Km=L1[Gm],kR=Km.toLowerCase(),CR=Km[0].toUpperCase()+Km.slice(1);di(kR,"on"+CR)}di(WP,"onAnimationEnd");di(UP,"onAnimationIteration");di(HP,"onAnimationStart");di("dblclick","onDoubleClick");di("focusin","onFocus");di("focusout","onBlur");di(GP,"onTransitionEnd");_s("onMouseEnter",["mouseout","mouseover"]);_s("onMouseLeave",["mouseout","mouseover"]);_s("onPointerEnter",["pointerout","pointerover"]);_s("onPointerLeave",["pointerout","pointerover"]);ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ga("onBeforeInput",["compositionend","keypress","textInput","paste"]);ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),PR=new Set("cancel close invalid load scroll toggle".split(" ").concat($l));function F1(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kI(r,t,void 0,e),e.currentTarget=null}function XP(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;F1(o,s,u),i=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;F1(o,s,u),i=l}}}if(Sf)throw e=Tg,Sf=!1,Tg=null,e}function Ue(e,t){var n=t[Og];n===void 0&&(n=t[Og]=new Set);var r=e+"__bubble";n.has(r)||(YP(t,e,2,!1),n.add(r))}function Xm(e,t,n){var r=0;t&&(r|=4),YP(n,e,r,t)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Cc(e){if(!e[Xu]){e[Xu]=!0,nP.forEach(function(n){n!=="selectionchange"&&(PR.has(n)||Xm(n,!1,e),Xm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xu]||(t[Xu]=!0,Xm("selectionchange",!1,t))}}function YP(e,t,n,r){switch(IP(t)){case 1:var o=LI;break;case 4:o=FI;break;default:o=L0}n=o.bind(null,t,n,e),o=void 0,!_g||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ym(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=zi(s),a===null)return;if(l=a.tag,l===5||l===6){r=i=a;continue e}s=s.parentNode}}r=r.return}yP(function(){var u=i,d=M0(n),f=[];e:{var p=KP.get(e);if(p!==void 0){var h=B0,v=e;switch(e){case"keypress":if(Nd(n)===0)break e;case"keydown":case"keyup":h=tR;break;case"focusin":v="focus",h=Vm;break;case"focusout":v="blur",h=Vm;break;case"beforeblur":case"afterblur":h=Vm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=E1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=WI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=oR;break;case WP:case UP:case HP:h=GI;break;case GP:h=aR;break;case"scroll":h=BI;break;case"wheel":h=lR;break;case"copy":case"cut":case"paste":h=XI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=$1}var y=(t&4)!==0,x=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var g=u,S;g!==null;){S=g;var w=S.stateNode;if(S.tag===5&&w!==null&&(S=w,b!==null&&(w=yc(g,b),w!=null&&y.push(Pc(g,w,S)))),x)break;g=g.return}0<y.length&&(p=new h(p,v,null,n,d),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==Cg&&(v=n.relatedTarget||n.fromElement)&&(zi(v)||v[lo]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=u,v=v?zi(v):null,v!==null&&(x=va(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(y=E1,w="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=$1,w="onPointerLeave",b="onPointerEnter",g="pointer"),x=h==null?p:La(h),S=v==null?p:La(v),p=new y(w,g+"leave",h,n,d),p.target=x,p.relatedTarget=S,w=null,zi(d)===u&&(y=new y(b,g+"enter",v,n,d),y.target=S,y.relatedTarget=x,w=y),x=w,h&&v)t:{for(y=h,b=v,g=0,S=y;S;S=Pa(S))g++;for(S=0,w=b;w;w=Pa(w))S++;for(;0<g-S;)y=Pa(y),g--;for(;0<S-g;)b=Pa(b),S--;for(;g--;){if(y===b||b!==null&&y===b.alternate)break t;y=Pa(y),b=Pa(b)}y=null}else y=null;h!==null&&B1(f,p,h,y,!1),v!==null&&x!==null&&B1(f,x,v,y,!0)}}e:{if(p=u?La(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var k=hR;else if(R1(p))if(DP)k=bR;else{k=vR;var _=gR}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=yR);if(k&&(k=k(e,u))){OP(f,k,n,d);break e}_&&_(e,p,u),e==="focusout"&&(_=p._wrapperState)&&_.controlled&&p.type==="number"&&bg(p,"number",p.value)}switch(_=u?La(u):window,e){case"focusin":(R1(_)||_.contentEditable==="true")&&(Oa=_,Ag=u,Yl=null);break;case"focusout":Yl=Ag=Oa=null;break;case"mousedown":Ig=!0;break;case"contextmenu":case"mouseup":case"dragend":Ig=!1,D1(f,n,d);break;case"selectionchange":if(wR)break;case"keydown":case"keyup":D1(f,n,d)}var P;if(W0)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Na?MP(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(zP&&n.locale!=="ko"&&(Na||T!=="onCompositionStart"?T==="onCompositionEnd"&&Na&&(P=RP()):(Do=d,F0="value"in Do?Do.value:Do.textContent,Na=!0)),_=_f(u,T),0<_.length&&(T=new j1(T,e,null,n,d),f.push({event:T,listeners:_}),P?T.data=P:(P=NP(n),P!==null&&(T.data=P)))),(P=uR?dR(e,n):fR(e,n))&&(u=_f(u,"onBeforeInput"),0<u.length&&(d=new j1("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=P))}XP(f,t)})}function Pc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _f(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=yc(e,n),i!=null&&r.unshift(Pc(e,i,o)),i=yc(e,t),i!=null&&r.push(Pc(e,i,o))),e=e.return}return r}function Pa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function B1(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,o?(l=yc(n,i),l!=null&&a.unshift(Pc(n,l,s))):o||(l=yc(n,i),l!=null&&a.push(Pc(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var _R=/\r\n?/g,TR=/\u0000|\uFFFD/g;function V1(e){return(typeof e=="string"?e:""+e).replace(_R,`
|
||
`).replace(TR,"")}function Yu(e,t,n){if(t=V1(t),V1(e)!==t&&n)throw Error(W(425))}function Tf(){}var Rg=null,zg=null;function Mg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ng=typeof setTimeout=="function"?setTimeout:void 0,ER=typeof clearTimeout=="function"?clearTimeout:void 0,W1=typeof Promise=="function"?Promise:void 0,jR=typeof queueMicrotask=="function"?queueMicrotask:typeof W1<"u"?function(e){return W1.resolve(null).then(e).catch($R)}:Ng;function $R(e){setTimeout(function(){throw e})}function qm(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Sc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Sc(t)}function Yo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function U1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ys=Math.random().toString(36).slice(2),Er="__reactFiber$"+Ys,_c="__reactProps$"+Ys,lo="__reactContainer$"+Ys,Og="__reactEvents$"+Ys,AR="__reactListeners$"+Ys,IR="__reactHandles$"+Ys;function zi(e){var t=e[Er];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lo]||n[Er]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=U1(e);e!==null;){if(n=e[Er])return n;e=U1(e)}return t}e=n,n=e.parentNode}return null}function au(e){return e=e[Er]||e[lo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function La(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function vp(e){return e[_c]||null}var Dg=[],Fa=-1;function fi(e){return{current:e}}function Ke(e){0>Fa||(e.current=Dg[Fa],Dg[Fa]=null,Fa--)}function Be(e,t){Fa++,Dg[Fa]=e.current,e.current=t}var ri={},Yt=fi(ri),un=fi(!1),ta=ri;function Ts(e,t){var n=e.type.contextTypes;if(!n)return ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dn(e){return e=e.childContextTypes,e!=null}function Ef(){Ke(un),Ke(Yt)}function H1(e,t,n){if(Yt.current!==ri)throw Error(W(168));Be(Yt,t),Be(un,n)}function qP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(W(108,gI(e)||"Unknown",o));return it({},n,r)}function jf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ri,ta=Yt.current,Be(Yt,e),Be(un,un.current),!0}function G1(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=qP(e,t,ta),r.__reactInternalMemoizedMergedChildContext=e,Ke(un),Ke(Yt),Be(Yt,e)):Ke(un),Be(un,n)}var Hr=null,yp=!1,Qm=!1;function QP(e){Hr===null?Hr=[e]:Hr.push(e)}function RR(e){yp=!0,QP(e)}function pi(){if(!Qm&&Hr!==null){Qm=!0;var e=0,t=Oe;try{var n=Hr;for(Oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Hr=null,yp=!1}catch(o){throw Hr!==null&&(Hr=Hr.slice(e+1)),wP(N0,pi),o}finally{Oe=t,Qm=!1}}return null}var Ba=[],Va=0,$f=null,Af=0,Fn=[],Bn=0,na=null,qr=1,Qr="";function Ti(e,t){Ba[Va++]=Af,Ba[Va++]=$f,$f=e,Af=t}function ZP(e,t,n){Fn[Bn++]=qr,Fn[Bn++]=Qr,Fn[Bn++]=na,na=e;var r=qr;e=Qr;var o=32-cr(r)-1;r&=~(1<<o),n+=1;var i=32-cr(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,qr=1<<32-cr(t)+o|n<<o|r,Qr=i+e}else qr=1<<i|n<<o|r,Qr=e}function H0(e){e.return!==null&&(Ti(e,1),ZP(e,1,0))}function G0(e){for(;e===$f;)$f=Ba[--Va],Ba[Va]=null,Af=Ba[--Va],Ba[Va]=null;for(;e===na;)na=Fn[--Bn],Fn[Bn]=null,Qr=Fn[--Bn],Fn[Bn]=null,qr=Fn[--Bn],Fn[Bn]=null}var xn=null,bn=null,Je=!1,ir=null;function JP(e,t){var n=Vn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function K1(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xn=e,bn=Yo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xn=e,bn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=na!==null?{id:qr,overflow:Qr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Vn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xn=e,bn=null,!0):!1;default:return!1}}function Lg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fg(e){if(Je){var t=bn;if(t){var n=t;if(!K1(e,t)){if(Lg(e))throw Error(W(418));t=Yo(n.nextSibling);var r=xn;t&&K1(e,t)?JP(r,n):(e.flags=e.flags&-4097|2,Je=!1,xn=e)}}else{if(Lg(e))throw Error(W(418));e.flags=e.flags&-4097|2,Je=!1,xn=e}}}function X1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xn=e}function qu(e){if(e!==xn)return!1;if(!Je)return X1(e),Je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Mg(e.type,e.memoizedProps)),t&&(t=bn)){if(Lg(e))throw e_(),Error(W(418));for(;t;)JP(e,t),t=Yo(t.nextSibling)}if(X1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bn=Yo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bn=null}}else bn=xn?Yo(e.stateNode.nextSibling):null;return!0}function e_(){for(var e=bn;e;)e=Yo(e.nextSibling)}function Es(){bn=xn=null,Je=!1}function K0(e){ir===null?ir=[e]:ir.push(e)}var zR=vo.ReactCurrentBatchConfig;function hl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(W(309));var r=n.stateNode}if(!r)throw Error(W(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function Qu(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Y1(e){var t=e._init;return t(e._payload)}function t_(e){function t(b,g){if(e){var S=b.deletions;S===null?(b.deletions=[g],b.flags|=16):S.push(g)}}function n(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function r(b,g){for(b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function o(b,g){return b=Jo(b,g),b.index=0,b.sibling=null,b}function i(b,g,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<g?(b.flags|=2,g):S):(b.flags|=2,g)):(b.flags|=1048576,g)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,g,S,w){return g===null||g.tag!==6?(g=oh(S,b.mode,w),g.return=b,g):(g=o(g,S),g.return=b,g)}function l(b,g,S,w){var k=S.type;return k===Ma?d(b,g,S.props.children,w,S.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ao&&Y1(k)===g.type)?(w=o(g,S.props),w.ref=hl(b,g,S),w.return=b,w):(w=Wd(S.type,S.key,S.props,null,b.mode,w),w.ref=hl(b,g,S),w.return=b,w)}function u(b,g,S,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==S.containerInfo||g.stateNode.implementation!==S.implementation?(g=ih(S,b.mode,w),g.return=b,g):(g=o(g,S.children||[]),g.return=b,g)}function d(b,g,S,w,k){return g===null||g.tag!==7?(g=Ui(S,b.mode,w,k),g.return=b,g):(g=o(g,S),g.return=b,g)}function f(b,g,S){if(typeof g=="string"&&g!==""||typeof g=="number")return g=oh(""+g,b.mode,S),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fu:return S=Wd(g.type,g.key,g.props,null,b.mode,S),S.ref=hl(b,null,g),S.return=b,S;case za:return g=ih(g,b.mode,S),g.return=b,g;case Ao:var w=g._init;return f(b,w(g._payload),S)}if(El(g)||ul(g))return g=Ui(g,b.mode,S,null),g.return=b,g;Qu(b,g)}return null}function p(b,g,S,w){var k=g!==null?g.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return k!==null?null:s(b,g,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Fu:return S.key===k?l(b,g,S,w):null;case za:return S.key===k?u(b,g,S,w):null;case Ao:return k=S._init,p(b,g,k(S._payload),w)}if(El(S)||ul(S))return k!==null?null:d(b,g,S,w,null);Qu(b,S)}return null}function h(b,g,S,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return b=b.get(S)||null,s(g,b,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fu:return b=b.get(w.key===null?S:w.key)||null,l(g,b,w,k);case za:return b=b.get(w.key===null?S:w.key)||null,u(g,b,w,k);case Ao:var _=w._init;return h(b,g,S,_(w._payload),k)}if(El(w)||ul(w))return b=b.get(S)||null,d(g,b,w,k,null);Qu(g,w)}return null}function v(b,g,S,w){for(var k=null,_=null,P=g,T=g=0,R=null;P!==null&&T<S.length;T++){P.index>T?(R=P,P=null):R=P.sibling;var E=p(b,P,S[T],w);if(E===null){P===null&&(P=R);break}e&&P&&E.alternate===null&&t(b,P),g=i(E,g,T),_===null?k=E:_.sibling=E,_=E,P=R}if(T===S.length)return n(b,P),Je&&Ti(b,T),k;if(P===null){for(;T<S.length;T++)P=f(b,S[T],w),P!==null&&(g=i(P,g,T),_===null?k=P:_.sibling=P,_=P);return Je&&Ti(b,T),k}for(P=r(b,P);T<S.length;T++)R=h(P,b,T,S[T],w),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?T:R.key),g=i(R,g,T),_===null?k=R:_.sibling=R,_=R);return e&&P.forEach(function(D){return t(b,D)}),Je&&Ti(b,T),k}function y(b,g,S,w){var k=ul(S);if(typeof k!="function")throw Error(W(150));if(S=k.call(S),S==null)throw Error(W(151));for(var _=k=null,P=g,T=g=0,R=null,E=S.next();P!==null&&!E.done;T++,E=S.next()){P.index>T?(R=P,P=null):R=P.sibling;var D=p(b,P,E.value,w);if(D===null){P===null&&(P=R);break}e&&P&&D.alternate===null&&t(b,P),g=i(D,g,T),_===null?k=D:_.sibling=D,_=D,P=R}if(E.done)return n(b,P),Je&&Ti(b,T),k;if(P===null){for(;!E.done;T++,E=S.next())E=f(b,E.value,w),E!==null&&(g=i(E,g,T),_===null?k=E:_.sibling=E,_=E);return Je&&Ti(b,T),k}for(P=r(b,P);!E.done;T++,E=S.next())E=h(P,b,T,E.value,w),E!==null&&(e&&E.alternate!==null&&P.delete(E.key===null?T:E.key),g=i(E,g,T),_===null?k=E:_.sibling=E,_=E);return e&&P.forEach(function(K){return t(b,K)}),Je&&Ti(b,T),k}function x(b,g,S,w){if(typeof S=="object"&&S!==null&&S.type===Ma&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Fu:e:{for(var k=S.key,_=g;_!==null;){if(_.key===k){if(k=S.type,k===Ma){if(_.tag===7){n(b,_.sibling),g=o(_,S.props.children),g.return=b,b=g;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ao&&Y1(k)===_.type){n(b,_.sibling),g=o(_,S.props),g.ref=hl(b,_,S),g.return=b,b=g;break e}n(b,_);break}else t(b,_);_=_.sibling}S.type===Ma?(g=Ui(S.props.children,b.mode,w,S.key),g.return=b,b=g):(w=Wd(S.type,S.key,S.props,null,b.mode,w),w.ref=hl(b,g,S),w.return=b,b=w)}return a(b);case za:e:{for(_=S.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(b,g.sibling),g=o(g,S.children||[]),g.return=b,b=g;break e}else{n(b,g);break}else t(b,g);g=g.sibling}g=ih(S,b.mode,w),g.return=b,b=g}return a(b);case Ao:return _=S._init,x(b,g,_(S._payload),w)}if(El(S))return v(b,g,S,w);if(ul(S))return y(b,g,S,w);Qu(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,g!==null&&g.tag===6?(n(b,g.sibling),g=o(g,S),g.return=b,b=g):(n(b,g),g=oh(S,b.mode,w),g.return=b,b=g),a(b)):n(b,g)}return x}var js=t_(!0),n_=t_(!1),If=fi(null),Rf=null,Wa=null,X0=null;function Y0(){X0=Wa=Rf=null}function q0(e){var t=If.current;Ke(If),e._currentValue=t}function Bg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ps(e,t){Rf=e,X0=Wa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cn=!0),e.firstContext=null)}function Gn(e){var t=e._currentValue;if(X0!==e)if(e={context:e,memoizedValue:t,next:null},Wa===null){if(Rf===null)throw Error(W(308));Wa=e,Rf.dependencies={lanes:0,firstContext:e}}else Wa=Wa.next=e;return t}var Mi=null;function Q0(e){Mi===null?Mi=[e]:Mi.push(e)}function r_(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Q0(t)):(n.next=o.next,o.next=n),t.interleaved=n,co(e,r)}function co(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Io=!1;function Z0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function o_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function to(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,je&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,co(e,n)}return o=r.interleaved,o===null?(t.next=t,Q0(r)):(t.next=o.next,o.next=t),r.interleaved=t,co(e,n)}function Od(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,O0(e,n)}}function q1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zf(e,t,n,r){var o=e.updateQueue;Io=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=u=l=null,s=i;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(p=t,h=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=it({},f,p);break e;case 2:Io=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=h,l=f):d=d.next=h,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);oa|=a,e.lanes=a,e.memoizedState=f}}function Q1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(W(191,o));o.call(r)}}}var su={},Rr=fi(su),Tc=fi(su),Ec=fi(su);function Ni(e){if(e===su)throw Error(W(174));return e}function J0(e,t){switch(Be(Ec,t),Be(Tc,e),Be(Rr,su),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sg(t,e)}Ke(Rr),Be(Rr,t)}function $s(){Ke(Rr),Ke(Tc),Ke(Ec)}function i_(e){Ni(Ec.current);var t=Ni(Rr.current),n=Sg(t,e.type);t!==n&&(Be(Tc,e),Be(Rr,n))}function ey(e){Tc.current===e&&(Ke(Rr),Ke(Tc))}var tt=fi(0);function Mf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zm=[];function ty(){for(var e=0;e<Zm.length;e++)Zm[e]._workInProgressVersionPrimary=null;Zm.length=0}var Dd=vo.ReactCurrentDispatcher,Jm=vo.ReactCurrentBatchConfig,ra=0,rt=null,bt=null,_t=null,Nf=!1,ql=!1,jc=0,MR=0;function Vt(){throw Error(W(321))}function ny(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pr(e[n],t[n]))return!1;return!0}function ry(e,t,n,r,o,i){if(ra=i,rt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Dd.current=e===null||e.memoizedState===null?LR:FR,e=n(r,o),ql){i=0;do{if(ql=!1,jc=0,25<=i)throw Error(W(301));i+=1,_t=bt=null,t.updateQueue=null,Dd.current=BR,e=n(r,o)}while(ql)}if(Dd.current=Of,t=bt!==null&&bt.next!==null,ra=0,_t=bt=rt=null,Nf=!1,t)throw Error(W(300));return e}function oy(){var e=jc!==0;return jc=0,e}function Cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?rt.memoizedState=_t=e:_t=_t.next=e,_t}function Kn(){if(bt===null){var e=rt.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=_t===null?rt.memoizedState:_t.next;if(t!==null)_t=t,bt=e;else{if(e===null)throw Error(W(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},_t===null?rt.memoizedState=_t=e:_t=_t.next=e}return _t}function $c(e,t){return typeof t=="function"?t(e):t}function eh(e){var t=Kn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=bt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,l=null,u=i;do{var d=u.lane;if((ra&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=f,a=r):l=l.next=f,rt.lanes|=d,oa|=d}u=u.next}while(u!==null&&u!==i);l===null?a=r:l.next=s,pr(r,t.memoizedState)||(cn=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,rt.lanes|=i,oa|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function th(e){var t=Kn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);pr(i,t.memoizedState)||(cn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function a_(){}function s_(e,t){var n=rt,r=Kn(),o=t(),i=!pr(r.memoizedState,o);if(i&&(r.memoizedState=o,cn=!0),r=r.queue,iy(u_.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||_t!==null&&_t.memoizedState.tag&1){if(n.flags|=2048,Ac(9,c_.bind(null,n,r,o,t),void 0,null),Tt===null)throw Error(W(349));ra&30||l_(n,t,o)}return o}function l_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=rt.updateQueue,t===null?(t={lastEffect:null,stores:null},rt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function c_(e,t,n,r){t.value=n,t.getSnapshot=r,d_(t)&&f_(e)}function u_(e,t,n){return n(function(){d_(t)&&f_(e)})}function d_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pr(e,n)}catch{return!0}}function f_(e){var t=co(e,1);t!==null&&ur(t,e,1,-1)}function Z1(e){var t=Cr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$c,lastRenderedState:e},t.queue=e,e=e.dispatch=DR.bind(null,rt,e),[t.memoizedState,e]}function Ac(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=rt.updateQueue,t===null?(t={lastEffect:null,stores:null},rt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function p_(){return Kn().memoizedState}function Ld(e,t,n,r){var o=Cr();rt.flags|=e,o.memoizedState=Ac(1|t,n,void 0,r===void 0?null:r)}function bp(e,t,n,r){var o=Kn();r=r===void 0?null:r;var i=void 0;if(bt!==null){var a=bt.memoizedState;if(i=a.destroy,r!==null&&ny(r,a.deps)){o.memoizedState=Ac(t,n,i,r);return}}rt.flags|=e,o.memoizedState=Ac(1|t,n,i,r)}function J1(e,t){return Ld(8390656,8,e,t)}function iy(e,t){return bp(2048,8,e,t)}function m_(e,t){return bp(4,2,e,t)}function h_(e,t){return bp(4,4,e,t)}function g_(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function v_(e,t,n){return n=n!=null?n.concat([e]):null,bp(4,4,g_.bind(null,t,e),n)}function ay(){}function y_(e,t){var n=Kn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ny(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function b_(e,t){var n=Kn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ny(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function x_(e,t,n){return ra&21?(pr(n,t)||(n=PP(),rt.lanes|=n,oa|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,cn=!0),e.memoizedState=n)}function NR(e,t){var n=Oe;Oe=n!==0&&4>n?n:4,e(!0);var r=Jm.transition;Jm.transition={};try{e(!1),t()}finally{Oe=n,Jm.transition=r}}function S_(){return Kn().memoizedState}function OR(e,t,n){var r=Zo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},w_(e))k_(t,n);else if(n=r_(e,t,n,r),n!==null){var o=tn();ur(n,e,r,o),C_(n,t,r)}}function DR(e,t,n){var r=Zo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(w_(e))k_(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,pr(s,a)){var l=t.interleaved;l===null?(o.next=o,Q0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=r_(e,t,o,r),n!==null&&(o=tn(),ur(n,e,r,o),C_(n,t,r))}}function w_(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function k_(e,t){ql=Nf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function C_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,O0(e,n)}}var Of={readContext:Gn,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useInsertionEffect:Vt,useLayoutEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useMutableSource:Vt,useSyncExternalStore:Vt,useId:Vt,unstable_isNewReconciler:!1},LR={readContext:Gn,useCallback:function(e,t){return Cr().memoizedState=[e,t===void 0?null:t],e},useContext:Gn,useEffect:J1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ld(4194308,4,g_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ld(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ld(4,2,e,t)},useMemo:function(e,t){var n=Cr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=OR.bind(null,rt,e),[r.memoizedState,e]},useRef:function(e){var t=Cr();return e={current:e},t.memoizedState=e},useState:Z1,useDebugValue:ay,useDeferredValue:function(e){return Cr().memoizedState=e},useTransition:function(){var e=Z1(!1),t=e[0];return e=NR.bind(null,e[1]),Cr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rt,o=Cr();if(Je){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Tt===null)throw Error(W(349));ra&30||l_(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,J1(u_.bind(null,r,i,e),[e]),r.flags|=2048,Ac(9,c_.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cr(),t=Tt.identifierPrefix;if(Je){var n=Qr,r=qr;n=(r&~(1<<32-cr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=MR++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},FR={readContext:Gn,useCallback:y_,useContext:Gn,useEffect:iy,useImperativeHandle:v_,useInsertionEffect:m_,useLayoutEffect:h_,useMemo:b_,useReducer:eh,useRef:p_,useState:function(){return eh($c)},useDebugValue:ay,useDeferredValue:function(e){var t=Kn();return x_(t,bt.memoizedState,e)},useTransition:function(){var e=eh($c)[0],t=Kn().memoizedState;return[e,t]},useMutableSource:a_,useSyncExternalStore:s_,useId:S_,unstable_isNewReconciler:!1},BR={readContext:Gn,useCallback:y_,useContext:Gn,useEffect:iy,useImperativeHandle:v_,useInsertionEffect:m_,useLayoutEffect:h_,useMemo:b_,useReducer:th,useRef:p_,useState:function(){return th($c)},useDebugValue:ay,useDeferredValue:function(e){var t=Kn();return bt===null?t.memoizedState=e:x_(t,bt.memoizedState,e)},useTransition:function(){var e=th($c)[0],t=Kn().memoizedState;return[e,t]},useMutableSource:a_,useSyncExternalStore:s_,useId:S_,unstable_isNewReconciler:!1};function rr(e,t){if(e&&e.defaultProps){t=it({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:it({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xp={isMounted:function(e){return(e=e._reactInternals)?va(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tn(),o=Zo(e),i=to(r,o);i.payload=t,n!=null&&(i.callback=n),t=qo(e,i,o),t!==null&&(ur(t,e,o,r),Od(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tn(),o=Zo(e),i=to(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qo(e,i,o),t!==null&&(ur(t,e,o,r),Od(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tn(),r=Zo(e),o=to(n,r);o.tag=2,t!=null&&(o.callback=t),t=qo(e,o,r),t!==null&&(ur(t,e,r,n),Od(t,e,r))}};function eS(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!kc(n,r)||!kc(o,i):!0}function P_(e,t,n){var r=!1,o=ri,i=t.contextType;return typeof i=="object"&&i!==null?i=Gn(i):(o=dn(t)?ta:Yt.current,r=t.contextTypes,i=(r=r!=null)?Ts(e,o):ri),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function tS(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xp.enqueueReplaceState(t,t.state,null)}function Wg(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Z0(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Gn(i):(i=dn(t)?ta:Yt.current,o.context=Ts(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Vg(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&xp.enqueueReplaceState(o,o.state,null),zf(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function As(e,t){try{var n="",r=t;do n+=hI(r),r=r.return;while(r);var o=n}catch(i){o=`
|
||
Error generating stack: `+i.message+`
|
||
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function nh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ug(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var VR=typeof WeakMap=="function"?WeakMap:Map;function __(e,t,n){n=to(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Lf||(Lf=!0,ev=r),Ug(e,t)},n}function T_(e,t,n){n=to(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ug(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ug(e,t),typeof r!="function"&&(Qo===null?Qo=new Set([this]):Qo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function nS(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new VR;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=nz.bind(null,e,t,n),t.then(e,e))}function rS(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function oS(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=to(-1,1),t.tag=2,qo(n,t,1))),n.lanes|=1),e)}var WR=vo.ReactCurrentOwner,cn=!1;function Zt(e,t,n,r){t.child=e===null?n_(t,null,n,r):js(t,e.child,n,r)}function iS(e,t,n,r,o){n=n.render;var i=t.ref;return ps(t,o),r=ry(e,t,n,r,i,o),n=oy(),e!==null&&!cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,uo(e,t,o)):(Je&&n&&H0(t),t.flags|=1,Zt(e,t,r,o),t.child)}function aS(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!my(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,E_(e,t,i,r,o)):(e=Wd(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:kc,n(a,r)&&e.ref===t.ref)return uo(e,t,o)}return t.flags|=1,e=Jo(i,r),e.ref=t.ref,e.return=t,t.child=e}function E_(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(kc(i,r)&&e.ref===t.ref)if(cn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(cn=!0);else return t.lanes=e.lanes,uo(e,t,o)}return Hg(e,t,n,r,o)}function j_(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Be(Ha,yn),yn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Be(Ha,yn),yn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Be(Ha,yn),yn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Be(Ha,yn),yn|=r;return Zt(e,t,o,n),t.child}function $_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hg(e,t,n,r,o){var i=dn(n)?ta:Yt.current;return i=Ts(t,i),ps(t,o),n=ry(e,t,n,r,i,o),r=oy(),e!==null&&!cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,uo(e,t,o)):(Je&&r&&H0(t),t.flags|=1,Zt(e,t,n,o),t.child)}function sS(e,t,n,r,o){if(dn(n)){var i=!0;jf(t)}else i=!1;if(ps(t,o),t.stateNode===null)Fd(e,t),P_(t,n,r),Wg(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Gn(u):(u=dn(n)?ta:Yt.current,u=Ts(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&tS(t,a,r,u),Io=!1;var p=t.memoizedState;a.state=p,zf(t,r,a,o),l=t.memoizedState,s!==r||p!==l||un.current||Io?(typeof d=="function"&&(Vg(t,n,d,r),l=t.memoizedState),(s=Io||eS(t,n,s,r,p,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,o_(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:rr(t.type,s),a.props=u,f=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Gn(l):(l=dn(n)?ta:Yt.current,l=Ts(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&tS(t,a,r,l),Io=!1,p=t.memoizedState,a.state=p,zf(t,r,a,o);var v=t.memoizedState;s!==f||p!==v||un.current||Io?(typeof h=="function"&&(Vg(t,n,h,r),v=t.memoizedState),(u=Io||eS(t,n,u,r,p,v,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Gg(e,t,n,r,i,o)}function Gg(e,t,n,r,o,i){$_(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&G1(t,n,!1),uo(e,t,i);r=t.stateNode,WR.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=js(t,e.child,null,i),t.child=js(t,null,s,i)):Zt(e,t,s,i),t.memoizedState=r.state,o&&G1(t,n,!0),t.child}function A_(e){var t=e.stateNode;t.pendingContext?H1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&H1(e,t.context,!1),J0(e,t.containerInfo)}function lS(e,t,n,r,o){return Es(),K0(o),t.flags|=256,Zt(e,t,n,r),t.child}var Kg={dehydrated:null,treeContext:null,retryLane:0};function Xg(e){return{baseLanes:e,cachePool:null,transitions:null}}function I_(e,t,n){var r=t.pendingProps,o=tt.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Be(tt,o&1),e===null)return Fg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=kp(a,r,0,null),e=Ui(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Xg(n),t.memoizedState=Kg,e):sy(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return UR(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Jo(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Jo(s,i):(i=Ui(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Xg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Kg,r}return i=e.child,e=i.sibling,r=Jo(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function sy(e,t){return t=kp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Zu(e,t,n,r){return r!==null&&K0(r),js(t,e.child,null,n),e=sy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function UR(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=nh(Error(W(422))),Zu(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=kp({mode:"visible",children:r.children},o,0,null),i=Ui(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&js(t,e.child,null,a),t.child.memoizedState=Xg(a),t.memoizedState=Kg,i);if(!(t.mode&1))return Zu(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(W(419)),r=nh(i,r,void 0),Zu(e,t,a,r)}if(s=(a&e.childLanes)!==0,cn||s){if(r=Tt,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,co(e,o),ur(r,e,o,-1))}return py(),r=nh(Error(W(421))),Zu(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=rz.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,bn=Yo(o.nextSibling),xn=t,Je=!0,ir=null,e!==null&&(Fn[Bn++]=qr,Fn[Bn++]=Qr,Fn[Bn++]=na,qr=e.id,Qr=e.overflow,na=t),t=sy(t,r.children),t.flags|=4096,t)}function cS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bg(e.return,t,n)}function rh(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function R_(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Zt(e,t,r.children,n),r=tt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cS(e,n,t);else if(e.tag===19)cS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Be(tt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Mf(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rh(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Mf(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rh(t,!0,n,null,i);break;case"together":rh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function uo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=Jo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function HR(e,t,n){switch(t.tag){case 3:A_(t),Es();break;case 5:i_(t);break;case 1:dn(t.type)&&jf(t);break;case 4:J0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Be(If,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Be(tt,tt.current&1),t.flags|=128,null):n&t.child.childLanes?I_(e,t,n):(Be(tt,tt.current&1),e=uo(e,t,n),e!==null?e.sibling:null);Be(tt,tt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return R_(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Be(tt,tt.current),r)break;return null;case 22:case 23:return t.lanes=0,j_(e,t,n)}return uo(e,t,n)}var z_,Yg,M_,N_;z_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Yg=function(){};M_=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ni(Rr.current);var i=null;switch(n){case"input":o=vg(e,o),r=vg(e,r),i=[];break;case"select":o=it({},o,{value:void 0}),r=it({},r,{value:void 0}),i=[];break;case"textarea":o=xg(e,o),r=xg(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Tf)}wg(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(gc.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(gc.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ue("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};N_=function(e,t,n,r){n!==r&&(t.flags|=4)};function gl(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GR(e,t,n){var r=t.pendingProps;switch(G0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(t),null;case 1:return dn(t.type)&&Ef(),Wt(t),null;case 3:return r=t.stateNode,$s(),Ke(un),Ke(Yt),ty(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ir!==null&&(rv(ir),ir=null))),Yg(e,t),Wt(t),null;case 5:ey(t);var o=Ni(Ec.current);if(n=t.type,e!==null&&t.stateNode!=null)M_(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return Wt(t),null}if(e=Ni(Rr.current),qu(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Er]=t,r[_c]=i,e=(t.mode&1)!==0,n){case"dialog":Ue("cancel",r),Ue("close",r);break;case"iframe":case"object":case"embed":Ue("load",r);break;case"video":case"audio":for(o=0;o<$l.length;o++)Ue($l[o],r);break;case"source":Ue("error",r);break;case"img":case"image":case"link":Ue("error",r),Ue("load",r);break;case"details":Ue("toggle",r);break;case"input":y1(r,i),Ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ue("invalid",r);break;case"textarea":x1(r,i),Ue("invalid",r)}wg(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Yu(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Yu(r.textContent,s,e),o=["children",""+s]):gc.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ue("scroll",r)}switch(n){case"input":Bu(r),b1(r,i,!0);break;case"textarea":Bu(r),S1(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Tf)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uP(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Er]=t,e[_c]=r,z_(e,t,!1,!1),t.stateNode=e;e:{switch(a=kg(n,r),n){case"dialog":Ue("cancel",e),Ue("close",e),o=r;break;case"iframe":case"object":case"embed":Ue("load",e),o=r;break;case"video":case"audio":for(o=0;o<$l.length;o++)Ue($l[o],e);o=r;break;case"source":Ue("error",e),o=r;break;case"img":case"image":case"link":Ue("error",e),Ue("load",e),o=r;break;case"details":Ue("toggle",e),o=r;break;case"input":y1(e,r),o=vg(e,r),Ue("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=it({},r,{value:void 0}),Ue("invalid",e);break;case"textarea":x1(e,r),o=xg(e,r),Ue("invalid",e);break;default:o=r}wg(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?pP(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dP(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&vc(e,l):typeof l=="number"&&vc(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(gc.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ue("scroll",e):l!=null&&A0(e,i,l,a))}switch(n){case"input":Bu(e),b1(e,r,!1);break;case"textarea":Bu(e),S1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ni(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?cs(e,!!r.multiple,i,!1):r.defaultValue!=null&&cs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Tf)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Wt(t),null;case 6:if(e&&t.stateNode!=null)N_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Ni(Ec.current),Ni(Rr.current),qu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Er]=t,(i=r.nodeValue!==n)&&(e=xn,e!==null))switch(e.tag){case 3:Yu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yu(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Er]=t,t.stateNode=r}return Wt(t),null;case 13:if(Ke(tt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Je&&bn!==null&&t.mode&1&&!(t.flags&128))e_(),Es(),t.flags|=98560,i=!1;else if(i=qu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(W(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(W(317));i[Er]=t}else Es(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wt(t),i=!1}else ir!==null&&(rv(ir),ir=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||tt.current&1?St===0&&(St=3):py())),t.updateQueue!==null&&(t.flags|=4),Wt(t),null);case 4:return $s(),Yg(e,t),e===null&&Cc(t.stateNode.containerInfo),Wt(t),null;case 10:return q0(t.type._context),Wt(t),null;case 17:return dn(t.type)&&Ef(),Wt(t),null;case 19:if(Ke(tt),i=t.memoizedState,i===null)return Wt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)gl(i,!1);else{if(St!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Mf(e),a!==null){for(t.flags|=128,gl(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Be(tt,tt.current&1|2),t.child}e=e.sibling}i.tail!==null&&pt()>Is&&(t.flags|=128,r=!0,gl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Mf(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Je)return Wt(t),null}else 2*pt()-i.renderingStartTime>Is&&n!==1073741824&&(t.flags|=128,r=!0,gl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pt(),t.sibling=null,n=tt.current,Be(tt,r?n&1|2:n&1),t):(Wt(t),null);case 22:case 23:return fy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yn&1073741824&&(Wt(t),t.subtreeFlags&6&&(t.flags|=8192)):Wt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function KR(e,t){switch(G0(t),t.tag){case 1:return dn(t.type)&&Ef(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $s(),Ke(un),Ke(Yt),ty(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ey(t),null;case 13:if(Ke(tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(tt),null;case 4:return $s(),null;case 10:return q0(t.type._context),null;case 22:case 23:return fy(),null;case 24:return null;default:return null}}var Ju=!1,Gt=!1,XR=typeof WeakSet=="function"?WeakSet:Set,te=null;function Ua(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ct(e,t,r)}else n.current=null}function qg(e,t,n){try{n()}catch(r){ct(e,t,r)}}var uS=!1;function YR(e,t){if(Rg=Cf,e=BP(),U0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++d===r&&(l=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(zg={focusedElem:e,selectionRange:n},Cf=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:rr(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(w){ct(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return v=uS,uS=!1,v}function Ql(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&qg(t,n,i)}o=o.next}while(o!==r)}}function Sp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function O_(e){var t=e.alternate;t!==null&&(e.alternate=null,O_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Er],delete t[_c],delete t[Og],delete t[AR],delete t[IR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function D_(e){return e.tag===5||e.tag===3||e.tag===4}function dS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tf));else if(r!==4&&(e=e.child,e!==null))for(Zg(e,t,n),e=e.sibling;e!==null;)Zg(e,t,n),e=e.sibling}function Jg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Jg(e,t,n),e=e.sibling;e!==null;)Jg(e,t,n),e=e.sibling}var At=null,or=!1;function Co(e,t,n){for(n=n.child;n!==null;)L_(e,t,n),n=n.sibling}function L_(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(pp,n)}catch{}switch(n.tag){case 5:Gt||Ua(n,t);case 6:var r=At,o=or;At=null,Co(e,t,n),At=r,or=o,At!==null&&(or?(e=At,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):At.removeChild(n.stateNode));break;case 18:At!==null&&(or?(e=At,n=n.stateNode,e.nodeType===8?qm(e.parentNode,n):e.nodeType===1&&qm(e,n),Sc(e)):qm(At,n.stateNode));break;case 4:r=At,o=or,At=n.stateNode.containerInfo,or=!0,Co(e,t,n),At=r,or=o;break;case 0:case 11:case 14:case 15:if(!Gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&qg(n,t,a),o=o.next}while(o!==r)}Co(e,t,n);break;case 1:if(!Gt&&(Ua(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ct(n,t,s)}Co(e,t,n);break;case 21:Co(e,t,n);break;case 22:n.mode&1?(Gt=(r=Gt)||n.memoizedState!==null,Co(e,t,n),Gt=r):Co(e,t,n);break;default:Co(e,t,n)}}function fS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new XR),t.forEach(function(r){var o=oz.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Jn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:At=s.stateNode,or=!1;break e;case 3:At=s.stateNode.containerInfo,or=!0;break e;case 4:At=s.stateNode.containerInfo,or=!0;break e}s=s.return}if(At===null)throw Error(W(160));L_(i,a,o),At=null,or=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){ct(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)F_(t,e),t=t.sibling}function F_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jn(t,e),br(e),r&4){try{Ql(3,e,e.return),Sp(3,e)}catch(y){ct(e,e.return,y)}try{Ql(5,e,e.return)}catch(y){ct(e,e.return,y)}}break;case 1:Jn(t,e),br(e),r&512&&n!==null&&Ua(n,n.return);break;case 5:if(Jn(t,e),br(e),r&512&&n!==null&&Ua(n,n.return),e.flags&32){var o=e.stateNode;try{vc(o,"")}catch(y){ct(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&lP(o,i),kg(s,a);var u=kg(s,i);for(a=0;a<l.length;a+=2){var d=l[a],f=l[a+1];d==="style"?pP(o,f):d==="dangerouslySetInnerHTML"?dP(o,f):d==="children"?vc(o,f):A0(o,d,f,u)}switch(s){case"input":yg(o,i);break;case"textarea":cP(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?cs(o,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?cs(o,!!i.multiple,i.defaultValue,!0):cs(o,!!i.multiple,i.multiple?[]:"",!1))}o[_c]=i}catch(y){ct(e,e.return,y)}}break;case 6:if(Jn(t,e),br(e),r&4){if(e.stateNode===null)throw Error(W(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){ct(e,e.return,y)}}break;case 3:if(Jn(t,e),br(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Sc(t.containerInfo)}catch(y){ct(e,e.return,y)}break;case 4:Jn(t,e),br(e);break;case 13:Jn(t,e),br(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(uy=pt())),r&4&&fS(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Gt=(u=Gt)||d,Jn(t,e),Gt=u):Jn(t,e),br(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(te=e,d=e.child;d!==null;){for(f=te=d;te!==null;){switch(p=te,h=p.child,p.tag){case 0:case 11:case 14:case 15:Ql(4,p,p.return);break;case 1:Ua(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){ct(r,n,y)}}break;case 5:Ua(p,p.return);break;case 22:if(p.memoizedState!==null){mS(f);continue}}h!==null?(h.return=p,te=h):mS(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=fP("display",a))}catch(y){ct(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){ct(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Jn(t,e),br(e),r&4&&fS(e);break;case 21:break;default:Jn(t,e),br(e)}}function br(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(D_(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(vc(o,""),r.flags&=-33);var i=dS(e);Jg(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=dS(e);Zg(e,s,a);break;default:throw Error(W(161))}}catch(l){ct(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qR(e,t,n){te=e,B_(e)}function B_(e,t,n){for(var r=(e.mode&1)!==0;te!==null;){var o=te,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Ju;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||Gt;s=Ju;var u=Gt;if(Ju=a,(Gt=l)&&!u)for(te=o;te!==null;)a=te,l=a.child,a.tag===22&&a.memoizedState!==null?hS(o):l!==null?(l.return=a,te=l):hS(o);for(;i!==null;)te=i,B_(i),i=i.sibling;te=o,Ju=s,Gt=u}pS(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,te=i):pS(e)}}function pS(e){for(;te!==null;){var t=te;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gt||Sp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:rr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Q1(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Q1(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Sc(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}Gt||t.flags&512&&Qg(t)}catch(p){ct(t,t.return,p)}}if(t===e){te=null;break}if(n=t.sibling,n!==null){n.return=t.return,te=n;break}te=t.return}}function mS(e){for(;te!==null;){var t=te;if(t===e){te=null;break}var n=t.sibling;if(n!==null){n.return=t.return,te=n;break}te=t.return}}function hS(e){for(;te!==null;){var t=te;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Sp(4,t)}catch(l){ct(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ct(t,o,l)}}var i=t.return;try{Qg(t)}catch(l){ct(t,i,l)}break;case 5:var a=t.return;try{Qg(t)}catch(l){ct(t,a,l)}}}catch(l){ct(t,t.return,l)}if(t===e){te=null;break}var s=t.sibling;if(s!==null){s.return=t.return,te=s;break}te=t.return}}var QR=Math.ceil,Df=vo.ReactCurrentDispatcher,ly=vo.ReactCurrentOwner,Un=vo.ReactCurrentBatchConfig,je=0,Tt=null,gt=null,Ot=0,yn=0,Ha=fi(0),St=0,Ic=null,oa=0,wp=0,cy=0,Zl=null,sn=null,uy=0,Is=1/0,Ur=null,Lf=!1,ev=null,Qo=null,ed=!1,Lo=null,Ff=0,Jl=0,tv=null,Bd=-1,Vd=0;function tn(){return je&6?pt():Bd!==-1?Bd:Bd=pt()}function Zo(e){return e.mode&1?je&2&&Ot!==0?Ot&-Ot:zR.transition!==null?(Vd===0&&(Vd=PP()),Vd):(e=Oe,e!==0||(e=window.event,e=e===void 0?16:IP(e.type)),e):1}function ur(e,t,n,r){if(50<Jl)throw Jl=0,tv=null,Error(W(185));ou(e,n,r),(!(je&2)||e!==Tt)&&(e===Tt&&(!(je&2)&&(wp|=n),St===4&&Mo(e,Ot)),fn(e,r),n===1&&je===0&&!(t.mode&1)&&(Is=pt()+500,yp&&pi()))}function fn(e,t){var n=e.callbackNode;zI(e,t);var r=kf(e,e===Tt?Ot:0);if(r===0)n!==null&&C1(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&C1(n),t===1)e.tag===0?RR(gS.bind(null,e)):QP(gS.bind(null,e)),jR(function(){!(je&6)&&pi()}),n=null;else{switch(_P(r)){case 1:n=N0;break;case 4:n=kP;break;case 16:n=wf;break;case 536870912:n=CP;break;default:n=wf}n=Y_(n,V_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function V_(e,t){if(Bd=-1,Vd=0,je&6)throw Error(W(327));var n=e.callbackNode;if(ms()&&e.callbackNode!==n)return null;var r=kf(e,e===Tt?Ot:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bf(e,r);else{t=r;var o=je;je|=2;var i=U_();(Tt!==e||Ot!==t)&&(Ur=null,Is=pt()+500,Wi(e,t));do try{ez();break}catch(s){W_(e,s)}while(!0);Y0(),Df.current=i,je=o,gt!==null?t=0:(Tt=null,Ot=0,t=St)}if(t!==0){if(t===2&&(o=Eg(e),o!==0&&(r=o,t=nv(e,o))),t===1)throw n=Ic,Wi(e,0),Mo(e,r),fn(e,pt()),n;if(t===6)Mo(e,r);else{if(o=e.current.alternate,!(r&30)&&!ZR(o)&&(t=Bf(e,r),t===2&&(i=Eg(e),i!==0&&(r=i,t=nv(e,i))),t===1))throw n=Ic,Wi(e,0),Mo(e,r),fn(e,pt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:Ei(e,sn,Ur);break;case 3:if(Mo(e,r),(r&130023424)===r&&(t=uy+500-pt(),10<t)){if(kf(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ng(Ei.bind(null,e,sn,Ur),t);break}Ei(e,sn,Ur);break;case 4:if(Mo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-cr(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=pt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*QR(r/1960))-r,10<r){e.timeoutHandle=Ng(Ei.bind(null,e,sn,Ur),r);break}Ei(e,sn,Ur);break;case 5:Ei(e,sn,Ur);break;default:throw Error(W(329))}}}return fn(e,pt()),e.callbackNode===n?V_.bind(null,e):null}function nv(e,t){var n=Zl;return e.current.memoizedState.isDehydrated&&(Wi(e,t).flags|=256),e=Bf(e,t),e!==2&&(t=sn,sn=n,t!==null&&rv(t)),e}function rv(e){sn===null?sn=e:sn.push.apply(sn,e)}function ZR(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!pr(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mo(e,t){for(t&=~cy,t&=~wp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cr(t),r=1<<n;e[n]=-1,t&=~r}}function gS(e){if(je&6)throw Error(W(327));ms();var t=kf(e,0);if(!(t&1))return fn(e,pt()),null;var n=Bf(e,t);if(e.tag!==0&&n===2){var r=Eg(e);r!==0&&(t=r,n=nv(e,r))}if(n===1)throw n=Ic,Wi(e,0),Mo(e,t),fn(e,pt()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ei(e,sn,Ur),fn(e,pt()),null}function dy(e,t){var n=je;je|=1;try{return e(t)}finally{je=n,je===0&&(Is=pt()+500,yp&&pi())}}function ia(e){Lo!==null&&Lo.tag===0&&!(je&6)&&ms();var t=je;je|=1;var n=Un.transition,r=Oe;try{if(Un.transition=null,Oe=1,e)return e()}finally{Oe=r,Un.transition=n,je=t,!(je&6)&&pi()}}function fy(){yn=Ha.current,Ke(Ha)}function Wi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ER(n)),gt!==null)for(n=gt.return;n!==null;){var r=n;switch(G0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ef();break;case 3:$s(),Ke(un),Ke(Yt),ty();break;case 5:ey(r);break;case 4:$s();break;case 13:Ke(tt);break;case 19:Ke(tt);break;case 10:q0(r.type._context);break;case 22:case 23:fy()}n=n.return}if(Tt=e,gt=e=Jo(e.current,null),Ot=yn=t,St=0,Ic=null,cy=wp=oa=0,sn=Zl=null,Mi!==null){for(t=0;t<Mi.length;t++)if(n=Mi[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function W_(e,t){do{var n=gt;try{if(Y0(),Dd.current=Of,Nf){for(var r=rt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Nf=!1}if(ra=0,_t=bt=rt=null,ql=!1,jc=0,ly.current=null,n===null||n.return===null){St=1,Ic=t,gt=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Ot,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=rS(a);if(h!==null){h.flags&=-257,oS(h,a,s,i,t),h.mode&1&&nS(i,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){nS(i,u,t),py();break e}l=Error(W(426))}}else if(Je&&s.mode&1){var x=rS(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),oS(x,a,s,i,t),K0(As(l,s));break e}}i=l=As(l,s),St!==4&&(St=2),Zl===null?Zl=[i]:Zl.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=__(i,l,t);q1(i,b);break e;case 1:s=l;var g=i.type,S=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Qo===null||!Qo.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=T_(i,s,t);q1(i,w);break e}}i=i.return}while(i!==null)}G_(n)}catch(k){t=k,gt===n&&n!==null&&(gt=n=n.return);continue}break}while(!0)}function U_(){var e=Df.current;return Df.current=Of,e===null?Of:e}function py(){(St===0||St===3||St===2)&&(St=4),Tt===null||!(oa&268435455)&&!(wp&268435455)||Mo(Tt,Ot)}function Bf(e,t){var n=je;je|=2;var r=U_();(Tt!==e||Ot!==t)&&(Ur=null,Wi(e,t));do try{JR();break}catch(o){W_(e,o)}while(!0);if(Y0(),je=n,Df.current=r,gt!==null)throw Error(W(261));return Tt=null,Ot=0,St}function JR(){for(;gt!==null;)H_(gt)}function ez(){for(;gt!==null&&!PI();)H_(gt)}function H_(e){var t=X_(e.alternate,e,yn);e.memoizedProps=e.pendingProps,t===null?G_(e):gt=t,ly.current=null}function G_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=KR(n,t),n!==null){n.flags&=32767,gt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{St=6,gt=null;return}}else if(n=GR(n,t,yn),n!==null){gt=n;return}if(t=t.sibling,t!==null){gt=t;return}gt=t=e}while(t!==null);St===0&&(St=5)}function Ei(e,t,n){var r=Oe,o=Un.transition;try{Un.transition=null,Oe=1,tz(e,t,n,r)}finally{Un.transition=o,Oe=r}return null}function tz(e,t,n,r){do ms();while(Lo!==null);if(je&6)throw Error(W(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(MI(e,i),e===Tt&&(gt=Tt=null,Ot=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ed||(ed=!0,Y_(wf,function(){return ms(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Un.transition,Un.transition=null;var a=Oe;Oe=1;var s=je;je|=4,ly.current=null,YR(e,n),F_(n,e),SR(zg),Cf=!!Rg,zg=Rg=null,e.current=n,qR(n),_I(),je=s,Oe=a,Un.transition=i}else e.current=n;if(ed&&(ed=!1,Lo=e,Ff=o),i=e.pendingLanes,i===0&&(Qo=null),jI(n.stateNode),fn(e,pt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Lf)throw Lf=!1,e=ev,ev=null,e;return Ff&1&&e.tag!==0&&ms(),i=e.pendingLanes,i&1?e===tv?Jl++:(Jl=0,tv=e):Jl=0,pi(),null}function ms(){if(Lo!==null){var e=_P(Ff),t=Un.transition,n=Oe;try{if(Un.transition=null,Oe=16>e?16:e,Lo===null)var r=!1;else{if(e=Lo,Lo=null,Ff=0,je&6)throw Error(W(331));var o=je;for(je|=4,te=e.current;te!==null;){var i=te,a=i.child;if(te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(te=u;te!==null;){var d=te;switch(d.tag){case 0:case 11:case 15:Ql(8,d,i)}var f=d.child;if(f!==null)f.return=d,te=f;else for(;te!==null;){d=te;var p=d.sibling,h=d.return;if(O_(d),d===u){te=null;break}if(p!==null){p.return=h,te=p;break}te=h}}}var v=i.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}te=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,te=a;else e:for(;te!==null;){if(i=te,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ql(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,te=b;break e}te=i.return}}var g=e.current;for(te=g;te!==null;){a=te;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,te=S;else e:for(a=g;te!==null;){if(s=te,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Sp(9,s)}}catch(k){ct(s,s.return,k)}if(s===a){te=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,te=w;break e}te=s.return}}if(je=o,pi(),Ir&&typeof Ir.onPostCommitFiberRoot=="function")try{Ir.onPostCommitFiberRoot(pp,e)}catch{}r=!0}return r}finally{Oe=n,Un.transition=t}}return!1}function vS(e,t,n){t=As(n,t),t=__(e,t,1),e=qo(e,t,1),t=tn(),e!==null&&(ou(e,1,t),fn(e,t))}function ct(e,t,n){if(e.tag===3)vS(e,e,n);else for(;t!==null;){if(t.tag===3){vS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qo===null||!Qo.has(r))){e=As(n,e),e=T_(t,e,1),t=qo(t,e,1),e=tn(),t!==null&&(ou(t,1,e),fn(t,e));break}}t=t.return}}function nz(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tn(),e.pingedLanes|=e.suspendedLanes&n,Tt===e&&(Ot&n)===n&&(St===4||St===3&&(Ot&130023424)===Ot&&500>pt()-uy?Wi(e,0):cy|=n),fn(e,t)}function K_(e,t){t===0&&(e.mode&1?(t=Uu,Uu<<=1,!(Uu&130023424)&&(Uu=4194304)):t=1);var n=tn();e=co(e,t),e!==null&&(ou(e,t,n),fn(e,n))}function rz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K_(e,n)}function oz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),K_(e,n)}var X_;X_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||un.current)cn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cn=!1,HR(e,t,n);cn=!!(e.flags&131072)}else cn=!1,Je&&t.flags&1048576&&ZP(t,Af,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fd(e,t),e=t.pendingProps;var o=Ts(t,Yt.current);ps(t,n),o=ry(null,t,r,e,o,n);var i=oy();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dn(r)?(i=!0,jf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Z0(t),o.updater=xp,t.stateNode=o,o._reactInternals=t,Wg(t,r,e,n),t=Gg(null,t,r,!0,i,n)):(t.tag=0,Je&&i&&H0(t),Zt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=az(r),e=rr(r,e),o){case 0:t=Hg(null,t,r,e,n);break e;case 1:t=sS(null,t,r,e,n);break e;case 11:t=iS(null,t,r,e,n);break e;case 14:t=aS(null,t,r,rr(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),Hg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),sS(e,t,r,o,n);case 3:e:{if(A_(t),e===null)throw Error(W(387));r=t.pendingProps,i=t.memoizedState,o=i.element,o_(e,t),zf(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=As(Error(W(423)),t),t=lS(e,t,r,n,o);break e}else if(r!==o){o=As(Error(W(424)),t),t=lS(e,t,r,n,o);break e}else for(bn=Yo(t.stateNode.containerInfo.firstChild),xn=t,Je=!0,ir=null,n=n_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Es(),r===o){t=uo(e,t,n);break e}Zt(e,t,r,n)}t=t.child}return t;case 5:return i_(t),e===null&&Fg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Mg(r,o)?a=null:i!==null&&Mg(r,i)&&(t.flags|=32),$_(e,t),Zt(e,t,a,n),t.child;case 6:return e===null&&Fg(t),null;case 13:return I_(e,t,n);case 4:return J0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=js(t,null,r,n):Zt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),iS(e,t,r,o,n);case 7:return Zt(e,t,t.pendingProps,n),t.child;case 8:return Zt(e,t,t.pendingProps.children,n),t.child;case 12:return Zt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Be(If,r._currentValue),r._currentValue=a,i!==null)if(pr(i.value,a)){if(i.children===o.children&&!un.current){t=uo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=to(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bg(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(W(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Bg(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Zt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ps(t,n),o=Gn(o),r=r(o),t.flags|=1,Zt(e,t,r,n),t.child;case 14:return r=t.type,o=rr(r,t.pendingProps),o=rr(r.type,o),aS(e,t,r,o,n);case 15:return E_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),Fd(e,t),t.tag=1,dn(r)?(e=!0,jf(t)):e=!1,ps(t,n),P_(t,r,o),Wg(t,r,o,n),Gg(null,t,r,!0,e,n);case 19:return R_(e,t,n);case 22:return j_(e,t,n)}throw Error(W(156,t.tag))};function Y_(e,t){return wP(e,t)}function iz(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(e,t,n,r){return new iz(e,t,n,r)}function my(e){return e=e.prototype,!(!e||!e.isReactComponent)}function az(e){if(typeof e=="function")return my(e)?1:0;if(e!=null){if(e=e.$$typeof,e===R0)return 11;if(e===z0)return 14}return 2}function Jo(e,t){var n=e.alternate;return n===null?(n=Vn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wd(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")my(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ma:return Ui(n.children,o,i,t);case I0:a=8,o|=8;break;case pg:return e=Vn(12,n,t,o|2),e.elementType=pg,e.lanes=i,e;case mg:return e=Vn(13,n,t,o),e.elementType=mg,e.lanes=i,e;case hg:return e=Vn(19,n,t,o),e.elementType=hg,e.lanes=i,e;case iP:return kp(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rP:a=10;break e;case oP:a=9;break e;case R0:a=11;break e;case z0:a=14;break e;case Ao:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Vn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ui(e,t,n,r){return e=Vn(7,e,r,t),e.lanes=n,e}function kp(e,t,n,r){return e=Vn(22,e,r,t),e.elementType=iP,e.lanes=n,e.stateNode={isHidden:!1},e}function oh(e,t,n){return e=Vn(6,e,null,t),e.lanes=n,e}function ih(e,t,n){return t=Vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sz(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lm(0),this.expirationTimes=Lm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lm(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hy(e,t,n,r,o,i,a,s,l){return e=new sz(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Z0(i),e}function lz(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:za,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function q_(e){if(!e)return ri;e=e._reactInternals;e:{if(va(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(dn(n))return qP(e,n,t)}return t}function Q_(e,t,n,r,o,i,a,s,l){return e=hy(n,r,!0,e,o,i,a,s,l),e.context=q_(null),n=e.current,r=tn(),o=Zo(n),i=to(r,o),i.callback=t??null,qo(n,i,o),e.current.lanes=o,ou(e,o,r),fn(e,r),e}function Cp(e,t,n,r){var o=t.current,i=tn(),a=Zo(o);return n=q_(n),t.context===null?t.context=n:t.pendingContext=n,t=to(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qo(o,t,a),e!==null&&(ur(e,o,a,i),Od(e,o,a)),a}function Vf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gy(e,t){yS(e,t),(e=e.alternate)&&yS(e,t)}function cz(){return null}var Z_=typeof reportError=="function"?reportError:function(e){console.error(e)};function vy(e){this._internalRoot=e}Pp.prototype.render=vy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));Cp(e,t,null,null)};Pp.prototype.unmount=vy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ia(function(){Cp(null,e,null,null)}),t[lo]=null}};function Pp(e){this._internalRoot=e}Pp.prototype.unstable_scheduleHydration=function(e){if(e){var t=jP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zo.length&&t!==0&&t<zo[n].priority;n++);zo.splice(n,0,e),n===0&&AP(e)}};function yy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bS(){}function uz(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Vf(a);i.call(u)}}var a=Q_(t,r,e,0,null,!1,!1,"",bS);return e._reactRootContainer=a,e[lo]=a.current,Cc(e.nodeType===8?e.parentNode:e),ia(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Vf(l);s.call(u)}}var l=hy(e,0,!1,null,null,!1,!1,"",bS);return e._reactRootContainer=l,e[lo]=l.current,Cc(e.nodeType===8?e.parentNode:e),ia(function(){Cp(t,l,n,r)}),l}function Tp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=Vf(a);s.call(l)}}Cp(t,a,e,o)}else a=uz(n,t,e,o,r);return Vf(a)}TP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jl(t.pendingLanes);n!==0&&(O0(t,n|1),fn(t,pt()),!(je&6)&&(Is=pt()+500,pi()))}break;case 13:ia(function(){var r=co(e,1);if(r!==null){var o=tn();ur(r,e,1,o)}}),gy(e,1)}};D0=function(e){if(e.tag===13){var t=co(e,134217728);if(t!==null){var n=tn();ur(t,e,134217728,n)}gy(e,134217728)}};EP=function(e){if(e.tag===13){var t=Zo(e),n=co(e,t);if(n!==null){var r=tn();ur(n,e,t,r)}gy(e,t)}};jP=function(){return Oe};$P=function(e,t){var n=Oe;try{return Oe=e,t()}finally{Oe=n}};Pg=function(e,t,n){switch(t){case"input":if(yg(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=vp(r);if(!o)throw Error(W(90));sP(r),yg(r,o)}}}break;case"textarea":cP(e,n);break;case"select":t=n.value,t!=null&&cs(e,!!n.multiple,t,!1)}};gP=dy;vP=ia;var dz={usingClientEntryPoint:!1,Events:[au,La,vp,mP,hP,dy]},vl={findFiberByHostInstance:zi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fz={bundleType:vl.bundleType,version:vl.version,rendererPackageName:vl.rendererPackageName,rendererConfig:vl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xP(e),e===null?null:e.stateNode},findFiberByHostInstance:vl.findFiberByHostInstance||cz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var td=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!td.isDisabled&&td.supportsFiber)try{pp=td.inject(fz),Ir=td}catch{}}$n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dz;$n.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yy(t))throw Error(W(200));return lz(e,t,null,n)};$n.createRoot=function(e,t){if(!yy(e))throw Error(W(299));var n=!1,r="",o=Z_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=hy(e,1,!1,null,null,n,!1,r,o),e[lo]=t.current,Cc(e.nodeType===8?e.parentNode:e),new vy(t)};$n.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=xP(t),e=e===null?null:e.stateNode,e};$n.flushSync=function(e){return ia(e)};$n.hydrate=function(e,t,n){if(!_p(t))throw Error(W(200));return Tp(null,e,t,!0,n)};$n.hydrateRoot=function(e,t,n){if(!yy(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=Z_;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Q_(t,null,e,1,n??null,o,!1,i,a),e[lo]=t.current,Cc(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Pp(t)};$n.render=function(e,t,n){if(!_p(t))throw Error(W(200));return Tp(null,e,t,!1,n)};$n.unmountComponentAtNode=function(e){if(!_p(e))throw Error(W(40));return e._reactRootContainer?(ia(function(){Tp(null,null,e,!1,function(){e._reactRootContainer=null,e[lo]=null})}),!0):!1};$n.unstable_batchedUpdates=dy;$n.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!_p(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return Tp(e,t,n,!1,r)};$n.version="18.3.1-next-f1338f8080-20240426";function J_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J_)}catch(e){console.error(e)}}J_(),J2.exports=$n;var by=J2.exports,xS=by;dg.createRoot=xS.createRoot,dg.hydrateRoot=xS.hydrateRoot;function eT(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function pz(){return!!(globalThis!=null&&globalThis.document)}function tT(e){return e.parentElement&&tT(e.parentElement)?!0:e.hidden}function mz(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function hz(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function gz(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const oe=e=>e?"":void 0,no=e=>e?!0:void 0;function ov(e){return Array.isArray(e)}function kt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ov(e)}function vz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function yz(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function iv(e){if(e==null)return e;const{unitless:t}=yz(e);return t||typeof e=="number"?`${e}px`:e}const nT=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,xy=e=>Object.fromEntries(Object.entries(e).sort(nT));function SS(e){const t=xy(e);return Object.assign(Object.values(t),t)}function bz(e){const t=Object.keys(xy(e));return new Set(t)}function wS(e){if(!e)return e;e=iv(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Al(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${iv(e)})`),t&&n.push("and",`(max-width: ${iv(t)})`),n.join(" ")}function xz(e){if(!e)return null;e.base=e.base??"0px";const t=SS(e),n=Object.entries(e).sort(nT).map(([i,a],s,l)=>{let[,u]=l[s+1]??[];return u=parseFloat(u)>0?wS(u):void 0,{_minW:wS(a),breakpoint:i,minW:a,maxW:u,maxWQuery:Al(null,u),minWQuery:Al(a),minMaxQuery:Al(a,u)}}),r=bz(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const a=Object.keys(i);return a.length>0&&a.every(s=>r.has(s))},asObject:xy(e),asArray:SS(e),details:n,get(i){return n.find(a=>a.breakpoint===i)},media:[null,...t.map(i=>Al(i)).slice(1)],toArrayValue(i){if(!kt(i))throw new Error("toArrayValue: value must be an object");const a=o.map(s=>i[s]??null);for(;vz(a)===null;)a.pop();return a},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((a,s,l)=>{const u=o[l];return u!=null&&s!=null&&(a[u]=s),a},{})}}}function Sz(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function ce(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function Sy(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function wy(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function wz(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function be(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=m.createContext(a);s.displayName=t;function l(){var d;const u=m.useContext(s);if(!u&&n){const f=new Error(i??wz(r,o));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,l),f}return u}return[s.Provider,l,s]}const V=(...e)=>e.filter(Boolean).join(" "),kz=e=>e.hasAttribute("tabindex");function Cz(e){if(!eT(e)||tT(e)||hz(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():mz(e)?!0:kz(e)}const Pz=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],_z=Pz.join(),Tz=e=>e.offsetWidth>0&&e.offsetHeight>0;function Ez(e){const t=Array.from(e.querySelectorAll(_z));return t.unshift(e),t.filter(n=>Cz(n)&&Tz(n))}function jz(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}const $z=e=>{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},rT=$z(jz),Az=e=>e.default||e;function ky(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function oT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const iT=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Cy(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):kt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function Iz(e,t=iT){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}const Rz=e=>typeof e=="function";function Kt(e,...t){return Rz(e)?e(...t):e}function zz(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}function Mz(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function aT(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:eT(e)&&zz(e)?e:aT(Mz(e))}function sT(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}function Nz(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=a=>{const s={};for(let l=0;l<a.length;l++){const u=a[l];n[u]&&(Object.defineProperty(s,u,n[u]),delete n[u])}return s},i=a=>o(Array.isArray(a)?a:r.filter(a));return t.map(i).concat(o(r))}function kS(e,t,n={}){const{stop:r,getKey:o}=n;function i(a,s=[]){if(kt(a)||Array.isArray(a)){const l={};for(const[u,d]of Object.entries(a)){const f=(o==null?void 0:o(u))??u,p=[...s,f];if(r!=null&&r(a,p))return t(a,s);l[f]=i(d,p)}return l}return t(a,s)}return i(e)}var Wf={exports:{}};Wf.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",v="[object GeneratorFunction]",y="[object Map]",x="[object Number]",b="[object Null]",g="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",_="[object String]",P="[object Undefined]",T="[object WeakMap]",R="[object ArrayBuffer]",E="[object DataView]",D="[object Float32Array]",K="[object Float64Array]",J="[object Int8Array]",A="[object Int16Array]",X="[object Int32Array]",B="[object Uint8Array]",z="[object Uint8ClampedArray]",O="[object Uint16Array]",I="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,Q={};Q[D]=Q[K]=Q[J]=Q[A]=Q[X]=Q[B]=Q[z]=Q[O]=Q[I]=!0,Q[s]=Q[l]=Q[R]=Q[d]=Q[E]=Q[f]=Q[p]=Q[h]=Q[y]=Q[x]=Q[g]=Q[w]=Q[k]=Q[_]=Q[T]=!1;var xe=typeof Du=="object"&&Du&&Du.Object===Object&&Du,ve=typeof self=="object"&&self&&self.Object===Object&&self,we=xe||ve||Function("return this")(),Fe=t&&!t.nodeType&&t,fe=Fe&&!0&&e&&!e.nodeType&&e,Z=fe&&fe.exports===Fe,ee=Z&&xe.process,Ee=function(){try{var C=fe&&fe.require&&fe.require("util").types;return C||ee&&ee.binding&&ee.binding("util")}catch{}}(),pe=Ee&&Ee.isTypedArray;function ne(C,$,M){switch(M.length){case 0:return C.call($);case 1:return C.call($,M[0]);case 2:return C.call($,M[0],M[1]);case 3:return C.call($,M[0],M[1],M[2])}return C.apply($,M)}function ue(C,$){for(var M=-1,re=Array(C);++M<C;)re[M]=$(M);return re}function at(C){return function($){return C($)}}function We(C,$){return C==null?void 0:C[$]}function Bt(C,$){return function(M){return C($(M))}}var yr=Array.prototype,qn=Function.prototype,qt=Object.prototype,ko=we["__core-js_shared__"],xi=qn.toString,Qn=qt.hasOwnProperty,wa=function(){var C=/[^.]+$/.exec(ko&&ko.keys&&ko.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),al=qt.toString,Au=xi.call(Object),Iu=RegExp("^"+xi.call(Qn).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Si=Z?we.Buffer:void 0,Hx=we.Symbol,Gx=we.Uint8Array;Si&&Si.allocUnsafe;var Kx=Bt(Object.getPrototypeOf,Object),Xx=Object.create,M4=qt.propertyIsEnumerable,N4=yr.splice,wi=Hx?Hx.toStringTag:void 0,Ru=function(){try{var C=Pm(Object,"defineProperty");return C({},"",{}),C}catch{}}(),O4=Si?Si.isBuffer:void 0,Yx=Math.max,D4=Date.now,qx=Pm(we,"Map"),sl=Pm(Object,"create"),L4=function(){function C(){}return function($){if(!Ci($))return{};if(Xx)return Xx($);C.prototype=$;var M=new C;return C.prototype=void 0,M}}();function ki(C){var $=-1,M=C==null?0:C.length;for(this.clear();++$<M;){var re=C[$];this.set(re[0],re[1])}}function F4(){this.__data__=sl?sl(null):{},this.size=0}function B4(C){var $=this.has(C)&&delete this.__data__[C];return this.size-=$?1:0,$}function V4(C){var $=this.__data__;if(sl){var M=$[C];return M===r?void 0:M}return Qn.call($,C)?$[C]:void 0}function W4(C){var $=this.__data__;return sl?$[C]!==void 0:Qn.call($,C)}function U4(C,$){var M=this.__data__;return this.size+=this.has(C)?0:1,M[C]=sl&&$===void 0?r:$,this}ki.prototype.clear=F4,ki.prototype.delete=B4,ki.prototype.get=V4,ki.prototype.has=W4,ki.prototype.set=U4;function Vr(C){var $=-1,M=C==null?0:C.length;for(this.clear();++$<M;){var re=C[$];this.set(re[0],re[1])}}function H4(){this.__data__=[],this.size=0}function G4(C){var $=this.__data__,M=zu($,C);if(M<0)return!1;var re=$.length-1;return M==re?$.pop():N4.call($,M,1),--this.size,!0}function K4(C){var $=this.__data__,M=zu($,C);return M<0?void 0:$[M][1]}function X4(C){return zu(this.__data__,C)>-1}function Y4(C,$){var M=this.__data__,re=zu(M,C);return re<0?(++this.size,M.push([C,$])):M[re][1]=$,this}Vr.prototype.clear=H4,Vr.prototype.delete=G4,Vr.prototype.get=K4,Vr.prototype.has=X4,Vr.prototype.set=Y4;function ka(C){var $=-1,M=C==null?0:C.length;for(this.clear();++$<M;){var re=C[$];this.set(re[0],re[1])}}function q4(){this.size=0,this.__data__={hash:new ki,map:new(qx||Vr),string:new ki}}function Q4(C){var $=Nu(this,C).delete(C);return this.size-=$?1:0,$}function Z4(C){return Nu(this,C).get(C)}function J4(C){return Nu(this,C).has(C)}function e3(C,$){var M=Nu(this,C),re=M.size;return M.set(C,$),this.size+=M.size==re?0:1,this}ka.prototype.clear=q4,ka.prototype.delete=Q4,ka.prototype.get=Z4,ka.prototype.has=J4,ka.prototype.set=e3;function Ca(C){var $=this.__data__=new Vr(C);this.size=$.size}function t3(){this.__data__=new Vr,this.size=0}function n3(C){var $=this.__data__,M=$.delete(C);return this.size=$.size,M}function r3(C){return this.__data__.get(C)}function o3(C){return this.__data__.has(C)}function i3(C,$){var M=this.__data__;if(M instanceof Vr){var re=M.__data__;if(!qx||re.length<n-1)return re.push([C,$]),this.size=++M.size,this;M=this.__data__=new ka(re)}return M.set(C,$),this.size=M.size,this}Ca.prototype.clear=t3,Ca.prototype.delete=n3,Ca.prototype.get=r3,Ca.prototype.has=o3,Ca.prototype.set=i3;function a3(C,$){var M=Em(C),re=!M&&Tm(C),Ce=!M&&!re&&t1(C),Le=!M&&!re&&!Ce&&r1(C),Qe=M||re||Ce||Le,Ae=Qe?ue(C.length,String):[],Ze=Ae.length;for(var Zn in C)Qe&&(Zn=="length"||Ce&&(Zn=="offset"||Zn=="parent")||Le&&(Zn=="buffer"||Zn=="byteLength"||Zn=="byteOffset")||Jx(Zn,Ze))||Ae.push(Zn);return Ae}function km(C,$,M){(M!==void 0&&!Ou(C[$],M)||M===void 0&&!($ in C))&&Cm(C,$,M)}function s3(C,$,M){var re=C[$];(!(Qn.call(C,$)&&Ou(re,M))||M===void 0&&!($ in C))&&Cm(C,$,M)}function zu(C,$){for(var M=C.length;M--;)if(Ou(C[M][0],$))return M;return-1}function Cm(C,$,M){$=="__proto__"&&Ru?Ru(C,$,{configurable:!0,enumerable:!0,value:M,writable:!0}):C[$]=M}var l3=S3();function Mu(C){return C==null?C===void 0?P:b:wi&&wi in Object(C)?w3(C):E3(C)}function Qx(C){return ll(C)&&Mu(C)==s}function c3(C){if(!Ci(C)||_3(C))return!1;var $=$m(C)?Iu:G;return $.test(I3(C))}function u3(C){return ll(C)&&n1(C.length)&&!!Q[Mu(C)]}function d3(C){if(!Ci(C))return T3(C);var $=e1(C),M=[];for(var re in C)re=="constructor"&&($||!Qn.call(C,re))||M.push(re);return M}function Zx(C,$,M,re,Ce){C!==$&&l3($,function(Le,Qe){if(Ce||(Ce=new Ca),Ci(Le))f3(C,$,Qe,M,Zx,re,Ce);else{var Ae=re?re(_m(C,Qe),Le,Qe+"",C,$,Ce):void 0;Ae===void 0&&(Ae=Le),km(C,Qe,Ae)}},o1)}function f3(C,$,M,re,Ce,Le,Qe){var Ae=_m(C,M),Ze=_m($,M),Zn=Qe.get(Ze);if(Zn){km(C,M,Zn);return}var vn=Le?Le(Ae,Ze,M+"",C,$,Qe):void 0,cl=vn===void 0;if(cl){var Am=Em(Ze),Im=!Am&&t1(Ze),a1=!Am&&!Im&&r1(Ze);vn=Ze,Am||Im||a1?Em(Ae)?vn=Ae:R3(Ae)?vn=y3(Ae):Im?(cl=!1,vn=h3(Ze)):a1?(cl=!1,vn=v3(Ze)):vn=[]:z3(Ze)||Tm(Ze)?(vn=Ae,Tm(Ae)?vn=M3(Ae):(!Ci(Ae)||$m(Ae))&&(vn=k3(Ze))):cl=!1}cl&&(Qe.set(Ze,vn),Ce(vn,Ze,re,Le,Qe),Qe.delete(Ze)),km(C,M,vn)}function p3(C,$){return $3(j3(C,$,i1),C+"")}var m3=Ru?function(C,$){return Ru(C,"toString",{configurable:!0,enumerable:!1,value:O3($),writable:!0})}:i1;function h3(C,$){return C.slice()}function g3(C){var $=new C.constructor(C.byteLength);return new Gx($).set(new Gx(C)),$}function v3(C,$){var M=g3(C.buffer);return new C.constructor(M,C.byteOffset,C.length)}function y3(C,$){var M=-1,re=C.length;for($||($=Array(re));++M<re;)$[M]=C[M];return $}function b3(C,$,M,re){var Ce=!M;M||(M={});for(var Le=-1,Qe=$.length;++Le<Qe;){var Ae=$[Le],Ze=void 0;Ze===void 0&&(Ze=C[Ae]),Ce?Cm(M,Ae,Ze):s3(M,Ae,Ze)}return M}function x3(C){return p3(function($,M){var re=-1,Ce=M.length,Le=Ce>1?M[Ce-1]:void 0,Qe=Ce>2?M[2]:void 0;for(Le=C.length>3&&typeof Le=="function"?(Ce--,Le):void 0,Qe&&C3(M[0],M[1],Qe)&&(Le=Ce<3?void 0:Le,Ce=1),$=Object($);++re<Ce;){var Ae=M[re];Ae&&C($,Ae,re,Le)}return $})}function S3(C){return function($,M,re){for(var Ce=-1,Le=Object($),Qe=re($),Ae=Qe.length;Ae--;){var Ze=Qe[++Ce];if(M(Le[Ze],Ze,Le)===!1)break}return $}}function Nu(C,$){var M=C.__data__;return P3($)?M[typeof $=="string"?"string":"hash"]:M.map}function Pm(C,$){var M=We(C,$);return c3(M)?M:void 0}function w3(C){var $=Qn.call(C,wi),M=C[wi];try{C[wi]=void 0;var re=!0}catch{}var Ce=al.call(C);return re&&($?C[wi]=M:delete C[wi]),Ce}function k3(C){return typeof C.constructor=="function"&&!e1(C)?L4(Kx(C)):{}}function Jx(C,$){var M=typeof C;return $=$??a,!!$&&(M=="number"||M!="symbol"&&H.test(C))&&C>-1&&C%1==0&&C<$}function C3(C,$,M){if(!Ci(M))return!1;var re=typeof $;return(re=="number"?jm(M)&&Jx($,M.length):re=="string"&&$ in M)?Ou(M[$],C):!1}function P3(C){var $=typeof C;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?C!=="__proto__":C===null}function _3(C){return!!wa&&wa in C}function e1(C){var $=C&&C.constructor,M=typeof $=="function"&&$.prototype||qt;return C===M}function T3(C){var $=[];if(C!=null)for(var M in Object(C))$.push(M);return $}function E3(C){return al.call(C)}function j3(C,$,M){return $=Yx($===void 0?C.length-1:$,0),function(){for(var re=arguments,Ce=-1,Le=Yx(re.length-$,0),Qe=Array(Le);++Ce<Le;)Qe[Ce]=re[$+Ce];Ce=-1;for(var Ae=Array($+1);++Ce<$;)Ae[Ce]=re[Ce];return Ae[$]=M(Qe),ne(C,this,Ae)}}function _m(C,$){if(!($==="constructor"&&typeof C[$]=="function")&&$!="__proto__")return C[$]}var $3=A3(m3);function A3(C){var $=0,M=0;return function(){var re=D4(),Ce=i-(re-M);if(M=re,Ce>0){if(++$>=o)return arguments[0]}else $=0;return C.apply(void 0,arguments)}}function I3(C){if(C!=null){try{return xi.call(C)}catch{}try{return C+""}catch{}}return""}function Ou(C,$){return C===$||C!==C&&$!==$}var Tm=Qx(function(){return arguments}())?Qx:function(C){return ll(C)&&Qn.call(C,"callee")&&!M4.call(C,"callee")},Em=Array.isArray;function jm(C){return C!=null&&n1(C.length)&&!$m(C)}function R3(C){return ll(C)&&jm(C)}var t1=O4||D3;function $m(C){if(!Ci(C))return!1;var $=Mu(C);return $==h||$==v||$==u||$==S}function n1(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function Ci(C){var $=typeof C;return C!=null&&($=="object"||$=="function")}function ll(C){return C!=null&&typeof C=="object"}function z3(C){if(!ll(C)||Mu(C)!=g)return!1;var $=Kx(C);if($===null)return!0;var M=Qn.call($,"constructor")&&$.constructor;return typeof M=="function"&&M instanceof M&&xi.call(M)==Au}var r1=pe?at(pe):u3;function M3(C){return b3(C,o1(C))}function o1(C){return jm(C)?a3(C):d3(C)}var N3=x3(function(C,$,M,re){Zx(C,$,M,re)});function O3(C){return function(){return C}}function i1(C){return C}function D3(){return!1}e.exports=N3})(Wf,Wf.exports);var Oz=Wf.exports;const Wn=C0(Oz);function dr(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Ud(e,t,n,r){const o=dr(n);return m.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function lT(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(p,h)=>p!==h}=e,i=dr(r),a=dr(o),[s,l]=m.useState(n),u=t!==void 0,d=u?t:s,f=dr(p=>{const v=typeof p=="function"?p(d):p;a(d,v)&&(u||l(v),i(v))},[u,i,d,a]);return[d,f]}function lu(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=dr(n),a=dr(t),[s,l]=m.useState(e.defaultIsOpen||!1),u=r!==void 0?r:s,d=r!==void 0,f=m.useId(),p=o??`disclosure-${f}`,h=m.useCallback(()=>{d||l(!1),a==null||a()},[d,a]),v=m.useCallback(()=>{d||l(!0),i==null||i()},[d,i]),y=m.useCallback(()=>{u?h():v()},[u,v,h]);function x(g={}){return{...g,"aria-expanded":u,"aria-controls":p,onClick(S){var w;(w=g.onClick)==null||w.call(g,S),y()}}}function b(g={}){return{...g,hidden:!u,id:p}}return{isOpen:u,onOpen:v,onClose:h,onToggle:y,isControlled:d,getButtonProps:x,getDisclosureProps:b}}const ro=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,Uf=(e,t)=>{const n=m.useRef(!1),r=m.useRef(!1);m.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Dz(e){return"current"in e}const cT=()=>typeof window<"u";function Lz(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const Fz=e=>cT()&&e.test(navigator.vendor),Bz=e=>cT()&&e.test(Lz()),Vz=()=>Bz(/mac|iphone|ipad|ipod/i),Wz=()=>Vz()&&Fz(/apple/i);function Uz(e){const{ref:t,elements:n,enabled:r}=e,o=()=>{var i;return((i=t.current)==null?void 0:i.ownerDocument)??document};Ud(o,"pointerdown",i=>{var u,d;if(!Wz()||!r)return;const a=((d=(u=i.composedPath)==null?void 0:u.call(i))==null?void 0:d[0])??i.target,l=(n??[t]).some(f=>{const p=Dz(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});o().activeElement!==a&&l&&(i.preventDefault(),a.focus())})}function Hz(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function xt(...e){return t=>{e.forEach(n=>{Hz(n,t)})}}function Py(...e){return m.useMemo(()=>xt(...e),e)}function Gz(e,t){const n=dr(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const yt={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},xr=e=>uT(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Wr=e=>uT(t=>e(t,"~ &"),"[data-peer]",".peer"),uT=(e,...t)=>t.map(e).join(", "),hs={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:xr(yt.open),_groupClosed:xr(yt.closed),_groupHover:xr(yt.hover),_peerHover:Wr(yt.hover),_groupFocus:xr(yt.focus),_peerFocus:Wr(yt.focus),_groupFocusVisible:xr(yt.focusVisible),_peerFocusVisible:Wr(yt.focusVisible),_groupActive:xr(yt.active),_peerActive:Wr(yt.active),_groupDisabled:xr(yt.disabled),_peerDisabled:Wr(yt.disabled),_groupInvalid:xr(yt.invalid),_peerInvalid:Wr(yt.invalid),_groupChecked:xr(yt.checked),_peerChecked:Wr(yt.checked),_groupFocusWithin:xr(yt.focusWithin),_peerFocusWithin:Wr(yt.focusWithin),_peerPlaceholderShown:Wr(yt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},dT=Object.keys(hs),Kz=e=>/!(important)?$/.test(e),CS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Xz=(e,t)=>n=>{const r=String(t),o=Kz(r),i=CS(r),a=e?`${e}.${i}`:i;let s=kt(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=CS(s),o?`${s} !important`:s};function _y(e){const{scale:t,transform:n,compose:r}=e;return(i,a)=>{const s=Xz(t,i)(a);let l=(n==null?void 0:n(s,a))??s;return r&&(l=r(l,a)),l}}const nd=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Nn(e,t){return n=>{const r={property:n,scale:e};return r.transform=_y({scale:e,transform:t}),r}}const Yz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function qz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Yz(t),transform:n?_y({scale:n,compose:r}):r}}const fT=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function Qz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...fT].join(" ")}function Zz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...fT].join(" ")}const Jz={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},eM={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function tM(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const nM={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},av={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},rM=new Set(Object.values(av)),sv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),oM=e=>e.trim();function iM(e,t){if(e==null||sv.has(e))return e;if(!(lv(e)||sv.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(oM).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const d=l in av?av[l]:l;u.unshift(d);const f=u.map(p=>{if(rM.has(p))return p;const h=p.indexOf(" "),[v,y]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=lv(y)?y:y&&y.split(" "),b=`colors.${v}`,g=b in t.__cssMap?t.__cssMap[b].varRef:v;return x?[g,...Array.isArray(x)?x:[x]].join(" "):g});return`${s}(${f.join(", ")})`}const lv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),aM=(e,t)=>iM(e,t??{});function sM(e){return/^var\(--.+\)$/.test(e)}const lM=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Sr=e=>t=>`${e}(${t})`,ke={filter(e){return e!=="auto"?e:Jz},backdropFilter(e){return e!=="auto"?e:eM},ring(e){return tM(ke.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Qz():e==="auto-gpu"?Zz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=lM(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(sM(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:aM,blur:Sr("blur"),opacity:Sr("opacity"),brightness:Sr("brightness"),contrast:Sr("contrast"),dropShadow:Sr("drop-shadow"),grayscale:Sr("grayscale"),hueRotate:e=>Sr("hue-rotate")(ke.degree(e)),invert:Sr("invert"),saturate:Sr("saturate"),sepia:Sr("sepia"),bgImage(e){return e==null||lv(e)||sv.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=nM[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},j={borderWidths:Nn("borderWidths"),borderStyles:Nn("borderStyles"),colors:Nn("colors"),borders:Nn("borders"),gradients:Nn("gradients",ke.gradient),radii:Nn("radii",ke.px),space:Nn("space",nd(ke.vh,ke.px)),spaceT:Nn("space",nd(ke.vh,ke.px)),degreeT(e){return{property:e,transform:ke.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:_y({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Nn("sizes",nd(ke.vh,ke.px)),sizesT:Nn("sizes",nd(ke.vh,ke.fraction)),shadows:Nn("shadows"),logical:qz,blur:Nn("blur",ke.blur)},Hd={background:j.colors("background"),backgroundColor:j.colors("backgroundColor"),backgroundImage:j.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ke.bgClip},bgSize:j.prop("backgroundSize"),bgPosition:j.prop("backgroundPosition"),bg:j.colors("background"),bgColor:j.colors("backgroundColor"),bgPos:j.prop("backgroundPosition"),bgRepeat:j.prop("backgroundRepeat"),bgAttachment:j.prop("backgroundAttachment"),bgGradient:j.gradients("backgroundImage"),bgClip:{transform:ke.bgClip}};Object.assign(Hd,{bgImage:Hd.backgroundImage,bgImg:Hd.backgroundImage});const Ie={border:j.borders("border"),borderWidth:j.borderWidths("borderWidth"),borderStyle:j.borderStyles("borderStyle"),borderColor:j.colors("borderColor"),borderRadius:j.radii("borderRadius"),borderTop:j.borders("borderTop"),borderBlockStart:j.borders("borderBlockStart"),borderTopLeftRadius:j.radii("borderTopLeftRadius"),borderStartStartRadius:j.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:j.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:j.radii("borderTopRightRadius"),borderStartEndRadius:j.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:j.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:j.borders("borderRight"),borderInlineEnd:j.borders("borderInlineEnd"),borderBottom:j.borders("borderBottom"),borderBlockEnd:j.borders("borderBlockEnd"),borderBottomLeftRadius:j.radii("borderBottomLeftRadius"),borderBottomRightRadius:j.radii("borderBottomRightRadius"),borderLeft:j.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:j.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:j.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:j.borders(["borderLeft","borderRight"]),borderInline:j.borders("borderInline"),borderY:j.borders(["borderTop","borderBottom"]),borderBlock:j.borders("borderBlock"),borderTopWidth:j.borderWidths("borderTopWidth"),borderBlockStartWidth:j.borderWidths("borderBlockStartWidth"),borderTopColor:j.colors("borderTopColor"),borderBlockStartColor:j.colors("borderBlockStartColor"),borderTopStyle:j.borderStyles("borderTopStyle"),borderBlockStartStyle:j.borderStyles("borderBlockStartStyle"),borderBottomWidth:j.borderWidths("borderBottomWidth"),borderBlockEndWidth:j.borderWidths("borderBlockEndWidth"),borderBottomColor:j.colors("borderBottomColor"),borderBlockEndColor:j.colors("borderBlockEndColor"),borderBottomStyle:j.borderStyles("borderBottomStyle"),borderBlockEndStyle:j.borderStyles("borderBlockEndStyle"),borderLeftWidth:j.borderWidths("borderLeftWidth"),borderInlineStartWidth:j.borderWidths("borderInlineStartWidth"),borderLeftColor:j.colors("borderLeftColor"),borderInlineStartColor:j.colors("borderInlineStartColor"),borderLeftStyle:j.borderStyles("borderLeftStyle"),borderInlineStartStyle:j.borderStyles("borderInlineStartStyle"),borderRightWidth:j.borderWidths("borderRightWidth"),borderInlineEndWidth:j.borderWidths("borderInlineEndWidth"),borderRightColor:j.colors("borderRightColor"),borderInlineEndColor:j.colors("borderInlineEndColor"),borderRightStyle:j.borderStyles("borderRightStyle"),borderInlineEndStyle:j.borderStyles("borderInlineEndStyle"),borderTopRadius:j.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:j.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:j.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:j.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ie,{rounded:Ie.borderRadius,roundedTop:Ie.borderTopRadius,roundedTopLeft:Ie.borderTopLeftRadius,roundedTopRight:Ie.borderTopRightRadius,roundedTopStart:Ie.borderStartStartRadius,roundedTopEnd:Ie.borderStartEndRadius,roundedBottom:Ie.borderBottomRadius,roundedBottomLeft:Ie.borderBottomLeftRadius,roundedBottomRight:Ie.borderBottomRightRadius,roundedBottomStart:Ie.borderEndStartRadius,roundedBottomEnd:Ie.borderEndEndRadius,roundedLeft:Ie.borderLeftRadius,roundedRight:Ie.borderRightRadius,roundedStart:Ie.borderInlineStartRadius,roundedEnd:Ie.borderInlineEndRadius,borderStart:Ie.borderInlineStart,borderEnd:Ie.borderInlineEnd,borderTopStartRadius:Ie.borderStartStartRadius,borderTopEndRadius:Ie.borderStartEndRadius,borderBottomStartRadius:Ie.borderEndStartRadius,borderBottomEndRadius:Ie.borderEndEndRadius,borderStartRadius:Ie.borderInlineStartRadius,borderEndRadius:Ie.borderInlineEndRadius,borderStartWidth:Ie.borderInlineStartWidth,borderEndWidth:Ie.borderInlineEndWidth,borderStartColor:Ie.borderInlineStartColor,borderEndColor:Ie.borderInlineEndColor,borderStartStyle:Ie.borderInlineStartStyle,borderEndStyle:Ie.borderInlineEndStyle});const cM={color:j.colors("color"),textColor:j.colors("color"),fill:j.colors("fill"),stroke:j.colors("stroke"),accentColor:j.colors("accentColor"),textFillColor:j.colors("textFillColor")},Hf={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ke.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:j.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:j.space("gap"),rowGap:j.space("rowGap"),columnGap:j.space("columnGap")};Object.assign(Hf,{flexDir:Hf.flexDirection});const Dn={width:j.sizesT("width"),inlineSize:j.sizesT("inlineSize"),height:j.sizes("height"),blockSize:j.sizes("blockSize"),boxSize:j.sizes(["width","height"]),minWidth:j.sizes("minWidth"),minInlineSize:j.sizes("minInlineSize"),minHeight:j.sizes("minHeight"),minBlockSize:j.sizes("minBlockSize"),maxWidth:j.sizes("maxWidth"),maxInlineSize:j.sizes("maxInlineSize"),maxHeight:j.sizes("maxHeight"),maxBlockSize:j.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:j.propT("float",ke.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Dn,{w:Dn.width,h:Dn.height,minW:Dn.minWidth,maxW:Dn.maxWidth,minH:Dn.minHeight,maxH:Dn.maxHeight,overscroll:Dn.overscrollBehavior,overscrollX:Dn.overscrollBehaviorX,overscrollY:Dn.overscrollBehaviorY});const uM={filter:{transform:ke.filter},blur:j.blur("--chakra-blur"),brightness:j.propT("--chakra-brightness",ke.brightness),contrast:j.propT("--chakra-contrast",ke.contrast),hueRotate:j.propT("--chakra-hue-rotate",ke.hueRotate),invert:j.propT("--chakra-invert",ke.invert),saturate:j.propT("--chakra-saturate",ke.saturate),dropShadow:j.propT("--chakra-drop-shadow",ke.dropShadow),backdropFilter:{transform:ke.backdropFilter},backdropBlur:j.blur("--chakra-backdrop-blur"),backdropBrightness:j.propT("--chakra-backdrop-brightness",ke.brightness),backdropContrast:j.propT("--chakra-backdrop-contrast",ke.contrast),backdropHueRotate:j.propT("--chakra-backdrop-hue-rotate",ke.hueRotate),backdropInvert:j.propT("--chakra-backdrop-invert",ke.invert),backdropSaturate:j.propT("--chakra-backdrop-saturate",ke.saturate)},dM={ring:{transform:ke.ring},ringColor:j.colors("--chakra-ring-color"),ringOffset:j.prop("--chakra-ring-offset-width"),ringOffsetColor:j.colors("--chakra-ring-offset-color"),ringInset:j.prop("--chakra-ring-inset")},fM={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ke.outline},outlineOffset:!0,outlineColor:j.colors("outlineColor")},pT={gridGap:j.space("gridGap"),gridColumnGap:j.space("gridColumnGap"),gridRowGap:j.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function pM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}const mM=e=>{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},hM=mM(pM),gM={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},vM={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},ah=(e,t,n)=>{const r={},o=hM(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},yM={srOnly:{transform(e){return e===!0?gM:e==="focusable"?vM:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>ah(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>ah(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>ah(t,e,n)}},ec={position:!0,pos:j.prop("position"),zIndex:j.prop("zIndex","zIndices"),inset:j.spaceT("inset"),insetX:j.spaceT(["left","right"]),insetInline:j.spaceT("insetInline"),insetY:j.spaceT(["top","bottom"]),insetBlock:j.spaceT("insetBlock"),top:j.spaceT("top"),insetBlockStart:j.spaceT("insetBlockStart"),bottom:j.spaceT("bottom"),insetBlockEnd:j.spaceT("insetBlockEnd"),left:j.spaceT("left"),insetInlineStart:j.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:j.spaceT("right"),insetInlineEnd:j.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ec,{insetStart:ec.insetInlineStart,insetEnd:ec.insetInlineEnd});const cv={boxShadow:j.shadows("boxShadow"),mixBlendMode:!0,blendMode:j.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:j.prop("backgroundBlendMode"),opacity:!0};Object.assign(cv,{shadow:cv.boxShadow});const He={margin:j.spaceT("margin"),marginTop:j.spaceT("marginTop"),marginBlockStart:j.spaceT("marginBlockStart"),marginRight:j.spaceT("marginRight"),marginInlineEnd:j.spaceT("marginInlineEnd"),marginBottom:j.spaceT("marginBottom"),marginBlockEnd:j.spaceT("marginBlockEnd"),marginLeft:j.spaceT("marginLeft"),marginInlineStart:j.spaceT("marginInlineStart"),marginX:j.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:j.spaceT("marginInline"),marginY:j.spaceT(["marginTop","marginBottom"]),marginBlock:j.spaceT("marginBlock"),padding:j.space("padding"),paddingTop:j.space("paddingTop"),paddingBlockStart:j.space("paddingBlockStart"),paddingRight:j.space("paddingRight"),paddingBottom:j.space("paddingBottom"),paddingBlockEnd:j.space("paddingBlockEnd"),paddingLeft:j.space("paddingLeft"),paddingInlineStart:j.space("paddingInlineStart"),paddingInlineEnd:j.space("paddingInlineEnd"),paddingX:j.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:j.space("paddingInline"),paddingY:j.space(["paddingTop","paddingBottom"]),paddingBlock:j.space("paddingBlock")};Object.assign(He,{m:He.margin,mt:He.marginTop,mr:He.marginRight,me:He.marginInlineEnd,marginEnd:He.marginInlineEnd,mb:He.marginBottom,ml:He.marginLeft,ms:He.marginInlineStart,marginStart:He.marginInlineStart,mx:He.marginX,my:He.marginY,p:He.padding,pt:He.paddingTop,py:He.paddingY,px:He.paddingX,pb:He.paddingBottom,pl:He.paddingLeft,ps:He.paddingInlineStart,paddingStart:He.paddingInlineStart,pr:He.paddingRight,pe:He.paddingInlineEnd,paddingEnd:He.paddingInlineEnd});const bM={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:j.spaceT("scrollMargin"),scrollMarginTop:j.spaceT("scrollMarginTop"),scrollMarginBottom:j.spaceT("scrollMarginBottom"),scrollMarginLeft:j.spaceT("scrollMarginLeft"),scrollMarginRight:j.spaceT("scrollMarginRight"),scrollMarginX:j.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:j.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:j.spaceT("scrollPadding"),scrollPaddingTop:j.spaceT("scrollPaddingTop"),scrollPaddingBottom:j.spaceT("scrollPaddingBottom"),scrollPaddingLeft:j.spaceT("scrollPaddingLeft"),scrollPaddingRight:j.spaceT("scrollPaddingRight"),scrollPaddingX:j.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:j.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},xM={fontFamily:j.prop("fontFamily","fonts"),fontSize:j.prop("fontSize","fontSizes",ke.px),fontWeight:j.prop("fontWeight","fontWeights"),lineHeight:j.prop("lineHeight","lineHeights"),letterSpacing:j.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},SM={textDecorationColor:j.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:j.shadows("textShadow")},wM={clipPath:!0,transform:j.propT("transform",ke.transform),transformOrigin:!0,translateX:j.spaceT("--chakra-translate-x"),translateY:j.spaceT("--chakra-translate-y"),skewX:j.degreeT("--chakra-skew-x"),skewY:j.degreeT("--chakra-skew-y"),scaleX:j.prop("--chakra-scale-x"),scaleY:j.prop("--chakra-scale-y"),scale:j.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:j.degreeT("--chakra-rotate")},kM={listStyleType:!0,listStylePosition:!0,listStylePos:j.prop("listStylePosition"),listStyleImage:!0,listStyleImg:j.prop("listStyleImage")},CM={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:j.prop("transitionDuration","transition.duration"),transitionProperty:j.prop("transitionProperty","transition.property"),transitionTimingFunction:j.prop("transitionTimingFunction","transition.easing")},Ty=Wn({},Hd,Ie,cM,Hf,Dn,uM,dM,fM,pT,yM,ec,cv,He,bM,xM,SM,wM,kM,CM),PM=Object.assign({},He,Dn,Hf,pT,ec),mT=Object.keys(PM),_M=[...Object.keys(Ty),...dT],TM={...Ty,...hs},EM=e=>e in TM,jM=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=Kt(e[a],t);if(s==null)continue;if(s=kt(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;u<l;u+=1){const d=o==null?void 0:o[u];if(!d){i[a]=s[u];continue}i[d]=i[d]||{},s[u]!=null&&(i[d][a]=s[u])}}return i};function $M(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="("?(r=!0,n+=i):i===")"?(r=!1,n+=i):i===","&&!r?(t.push(n),n=""):n+=i}return n=n.trim(),n&&t.push(n),t}function AM(e){return/^var\(--.+\)$/.test(e)}const IM=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!AM(t),RM=(e,t)=>{if(t==null)return t;const n=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.varRef},r=a=>n(a)??a,[o,i]=$M(t);return t=n(o)??r(i)??r(t),t};function zM(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,a=!1)=>{var d;const s=Kt(i,r),l=jM(s)(r);let u={};for(let f in l){const p=l[f];let h=Kt(p,r);f in n&&(f=n[f]),IM(f,h)&&(h=RM(r,h));let v=t[f];if(v===!0&&(v={property:f}),kt(h)){u[f]=u[f]??{},u[f]=Wn({},u[f],o(h,!0));continue}let y=((d=v==null?void 0:v.transform)==null?void 0:d.call(v,h,r,s))??h;y=v!=null&&v.processResult?o(y,!0):y;const x=Kt(v==null?void 0:v.property,r);if(!a&&(v!=null&&v.static)){const b=Kt(v.static,r);u=Wn({},u,b)}if(x&&Array.isArray(x)){for(const b of x)u[b]=y;continue}if(x){x==="&"&&kt(y)?u=Wn({},u,y):u[x]=y;continue}if(kt(y)){u=Wn({},u,y);continue}u[f]=y}return u};return o}const hT=e=>t=>zM({theme:t,pseudos:hs,configs:Ty})(e);function ae(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function MM(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function NM(e,t){if(Array.isArray(e))return e;if(kt(e))return t(e);if(e!=null)return[e]}function OM(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function DM(e){const t=e.__breakpoints;return function(r,o,i,a){var p,h;if(!t)return;const s={},l=NM(i,t.toArrayValue);if(!l)return s;const u=l.length,d=u===1,f=!!r.parts;for(let v=0;v<u;v++){const y=t.details[v],x=t.details[OM(l,v)],b=Al(y.minW,x==null?void 0:x._minW),g=Kt((p=r[o])==null?void 0:p[l[v]],a);if(g){if(f){(h=r.parts)==null||h.forEach(S=>{Wn(s,{[S]:d?g[S]:{[b]:g[S]}})});continue}if(!f){d?Wn(s,g):s[b]=g;continue}s[b]=g}}return s}}function LM(e){return t=>{const{variant:n,size:r,theme:o}=t,i=DM(o);return Wn({},Kt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Te(e){return ky(e,["styleConfig","size","variant","colorScheme"])}function gT(e){return kt(e)&&e.reference?e.reference:String(e)}const Ep=(e,...t)=>t.map(gT).join(` ${e} `).replace(/calc/g,""),PS=(...e)=>`calc(${Ep("+",...e)})`,_S=(...e)=>`calc(${Ep("-",...e)})`,uv=(...e)=>`calc(${Ep("*",...e)})`,TS=(...e)=>`calc(${Ep("/",...e)})`,ES=e=>{const t=gT(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:uv(t,-1)},Gr=Object.assign(e=>({add:(...t)=>Gr(PS(e,...t)),subtract:(...t)=>Gr(_S(e,...t)),multiply:(...t)=>Gr(uv(e,...t)),divide:(...t)=>Gr(TS(e,...t)),negate:()=>Gr(ES(e)),toString:()=>e.toString()}),{add:PS,subtract:_S,multiply:uv,divide:TS,negate:ES});function FM(e,t="-"){return e.replace(/\s+/g,t)}function BM(e){const t=FM(e.toString());return WM(VM(t))}function VM(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function WM(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function UM(e,t=""){return[t,e].filter(Boolean).join("-")}function HM(e,t){return`var(${e}${t?`, ${t}`:""})`}function GM(e,t=""){return BM(`--${UM(e,t)}`)}function Y(e,t,n){const r=GM(e,n);return{variable:r,reference:HM(r,t)}}function vT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=Y(`${e}-${o}`,i);continue}n[r]=Y(`${e}-${r}`)}return n}const KM=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function XM(e){return oT(e,KM)}function YM(e){return e.semanticTokens}function qM(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function QM(e){const t=XM(e),n=YM(e),r=i=>dT.includes(i)||i==="default",o={};return kS(t,(i,a)=>{i!=null&&(o[a.join(".")]={isSemantic:!1,value:i})}),kS(n,(i,a)=>{i!=null&&(o[a.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function jS(e,t){return Y(String(e).replace(/\./g,"-"),void 0,t)}function ZM(e){var a;const t=QM(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const o={};function i(s,l){const d=[String(s).split(".")[0],l].join(".");if(!t[d])return l;const{reference:p}=jS(d,n);return p}for(const[s,l]of Object.entries(t)){const{isSemantic:u,value:d}=l,{variable:f,reference:p}=jS(s,n);if(!u){if(s.startsWith("space")){const v=s.split("."),[y,...x]=v,b=`${y}.-${x.join(".")}`,g=Gr.negate(d),S=Gr.negate(p);o[b]={value:g,var:f,varRef:S}}r[f]=d,o[s]={value:d,var:f,varRef:p};continue}const h=kt(d)?d:{default:d};r=Wn(r,Object.entries(h).reduce((v,[y,x])=>{if(!x)return v;const b=i(s,`${x}`);if(y==="default")return v[f]=b,v;const g=(hs==null?void 0:hs[y])??y;return v[g]={[f]:b},v},{})),o[s]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:o}}function JM(e){const t=qM(e),{cssMap:n,cssVars:r}=ZM(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:xz(t.breakpoints)}),t}function $e(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return $e(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return $e(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}const e6=$e("accordion").parts("root","container","button","panel","icon"),yT=$e("alert").parts("title","description","container","icon","spinner"),t6=$e("avatar").parts("label","badge","container","excessLabel","group"),n6=$e("breadcrumb").parts("link","item","container","separator");$e("button").parts();const bT=$e("checkbox").parts("control","icon","container","label");$e("progress").parts("track","filledTrack","label");const r6=$e("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),o6=$e("editable").parts("preview","input","textarea"),xT=$e("form").parts("container","requiredIndicator","helperText"),i6=$e("formError").parts("text","icon"),Ey=$e("input").parts("addon","field","element","group"),a6=$e("list").parts("container","item","icon"),ST=$e("menu").parts("button","list","item","groupTitle","icon","command","divider"),wT=$e("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),s6=$e("numberinput").parts("root","field","stepperGroup","stepper");$e("pininput").parts("field");const l6=$e("popover").parts("content","header","body","footer","popper","arrow","closeButton"),kT=$e("progress").parts("label","filledTrack","track"),CT=$e("radio").parts("container","control","label"),c6=$e("select").parts("field","icon"),PT=$e("slider").parts("container","track","thumb","filledTrack","mark"),u6=$e("stat").parts("container","label","helpText","number","icon"),_T=$e("switch").parts("container","track","thumb","label"),d6=$e("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),f6=$e("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),p6=$e("tag").parts("container","label","closeButton"),TT=$e("card").parts("container","header","body","footer");$e("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:m6,defineMultiStyleConfig:h6}=ae(e6.keys),g6={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},v6={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},y6={pt:"2",px:"4",pb:"5"},b6={fontSize:"1.25em"},x6=m6({container:g6,button:v6,panel:y6,icon:b6}),S6=h6({baseStyle:x6});function Oi(e,t,n){return Math.min(Math.max(e,n),t)}class Il extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function jy(e){if(typeof e!="string")throw new Il(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=j6.test(e)?C6(e):e;const n=P6.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(Rc(s,2),16)),parseInt(Rc(a[3]||"f",2),16)/255]}const r=_6.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=T6.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=E6.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Oi(0,100,s)!==s)throw new Il(e);if(Oi(0,100,l)!==l)throw new Il(e);return[...$6(a,s,l),Number.isNaN(u)?1:u]}throw new Il(e)}function w6(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const $S=e=>parseInt(e.replace(/_/g,""),36),k6="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=$S(t.substring(0,3)),r=$S(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function C6(e){const t=e.toLowerCase().trim(),n=k6[w6(t)];if(!n)throw new Il(e);return`#${n}`}const Rc=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),P6=new RegExp(`^#${Rc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),_6=new RegExp(`^#${Rc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),T6=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Rc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),E6=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,j6=/^[a-z]+$/i,AS=e=>Math.round(e*255),$6=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(AS);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const d=r-i/2,f=s+d,p=l+d,h=u+d;return[f,p,h].map(AS)};function A6(e,t,n,r){return`rgba(${Oi(0,255,e).toFixed()}, ${Oi(0,255,t).toFixed()}, ${Oi(0,255,n).toFixed()}, ${parseFloat(Oi(0,1,r).toFixed(3))})`}function I6(e,t){const[n,r,o,i]=jy(e);return A6(n,r,o,i-t)}function R6(e){const[t,n,r,o]=jy(e);let i=a=>{const s=Oi(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const z6=e=>Object.keys(e).length===0;function M6(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}const Xe=(e,t,n)=>{const r=M6(e,`colors.${t}`,t);try{return R6(r),r}catch{return n??"#000000"}},N6=e=>{const[t,n,r]=jy(e);return(t*299+n*587+r*114)/1e3},O6=e=>t=>{const n=Xe(t,e);return N6(n)<128?"dark":"light"},D6=e=>t=>O6(e)(t)==="dark",Et=(e,t)=>n=>{const r=Xe(n,e);return I6(r,1-t)};function IS(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
|
||
45deg,
|
||
${t} 25%,
|
||
transparent 25%,
|
||
transparent 50%,
|
||
${t} 50%,
|
||
${t} 75%,
|
||
transparent 75%,
|
||
transparent
|
||
)`,backgroundSize:`${e} ${e}`}}const L6=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function F6(e){const t=L6();return!e||z6(e)?t:e.string&&e.colors?V6(e.string,e.colors):e.string&&!e.colors?B6(e.string):e.colors&&!e.string?W6(e.colors):t}function B6(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const o=t>>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function V6(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function W6(e){return e[Math.floor(Math.random()*e.length)]}function q(e,t){return n=>n.colorMode==="dark"?t:e}function $y(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function ET(e){return kt(e)&&e.reference?e.reference:String(e)}const jp=(e,...t)=>t.map(ET).join(` ${e} `).replace(/calc/g,""),RS=(...e)=>`calc(${jp("+",...e)})`,zS=(...e)=>`calc(${jp("-",...e)})`,dv=(...e)=>`calc(${jp("*",...e)})`,MS=(...e)=>`calc(${jp("/",...e)})`,NS=e=>{const t=ET(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:dv(t,-1)},Kr=Object.assign(e=>({add:(...t)=>Kr(RS(e,...t)),subtract:(...t)=>Kr(zS(e,...t)),multiply:(...t)=>Kr(dv(e,...t)),divide:(...t)=>Kr(MS(e,...t)),negate:()=>Kr(NS(e)),toString:()=>e.toString()}),{add:RS,subtract:zS,multiply:dv,divide:MS,negate:NS});function U6(e){return!Number.isInteger(parseFloat(e.toString()))}function H6(e,t="-"){return e.replace(/\s+/g,t)}function jT(e){const t=H6(e.toString());return t.includes("\\.")?e:U6(e)?t.replace(".","\\."):e}function G6(e,t=""){return[t,jT(e)].filter(Boolean).join("-")}function K6(e,t){return`var(${jT(e)}${t?`, ${t}`:""})`}function X6(e,t=""){return`--${G6(e,t)}`}function dt(e,t){const n=X6(e,t==null?void 0:t.prefix);return{variable:n,reference:K6(n,Y6(t==null?void 0:t.fallback))}}function Y6(e){return e==null?void 0:e.reference}const{definePartsStyle:cu,defineMultiStyleConfig:q6}=ae(yT.keys),Sn=Y("alert-fg"),fo=Y("alert-bg"),Q6=cu({container:{bg:fo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Sn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Sn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ay(e){const{theme:t,colorScheme:n}=e,r=Et(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const Z6=cu(e=>{const{colorScheme:t}=e,n=Ay(e);return{container:{[Sn.variable]:`colors.${t}.600`,[fo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[fo.variable]:n.dark}}}}),J6=cu(e=>{const{colorScheme:t}=e,n=Ay(e);return{container:{[Sn.variable]:`colors.${t}.600`,[fo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[fo.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Sn.reference}}}),eN=cu(e=>{const{colorScheme:t}=e,n=Ay(e);return{container:{[Sn.variable]:`colors.${t}.600`,[fo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[fo.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Sn.reference}}}),tN=cu(e=>{const{colorScheme:t}=e;return{container:{[Sn.variable]:"colors.white",[fo.variable]:`colors.${t}.600`,_dark:{[Sn.variable]:"colors.gray.900",[fo.variable]:`colors.${t}.200`},color:Sn.reference}}}),nN={subtle:Z6,"left-accent":J6,"top-accent":eN,solid:tN},rN=q6({baseStyle:Q6,variants:nN,defaultProps:{variant:"subtle",colorScheme:"blue"}}),$T={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},oN={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},iN={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},AT={...$T,...oN,container:iN},aN=e=>typeof e=="function";function nn(e,...t){return aN(e)?e(...t):e}const{definePartsStyle:IT,defineMultiStyleConfig:sN}=ae(t6.keys),gs=Y("avatar-border-color"),tc=Y("avatar-bg"),zc=Y("avatar-font-size"),Rs=Y("avatar-size"),lN={borderRadius:"full",border:"0.2em solid",borderColor:gs.reference,[gs.variable]:"white",_dark:{[gs.variable]:"colors.gray.800"}},cN={bg:tc.reference,fontSize:zc.reference,width:Rs.reference,height:Rs.reference,lineHeight:"1",[tc.variable]:"colors.gray.200",_dark:{[tc.variable]:"colors.whiteAlpha.400"}},uN=e=>{const{name:t,theme:n}=e,r=t?F6({string:t}):"colors.gray.400",o=D6(r)(n);let i="white";return o||(i="gray.800"),{bg:tc.reference,fontSize:zc.reference,color:i,borderColor:gs.reference,verticalAlign:"top",width:Rs.reference,height:Rs.reference,"&:not([data-loaded])":{[tc.variable]:r},[gs.variable]:"colors.white",_dark:{[gs.variable]:"colors.gray.800"}}},dN={fontSize:zc.reference,lineHeight:"1"},fN=IT(e=>({badge:nn(lN,e),excessLabel:nn(cN,e),container:nn(uN,e),label:dN}));function Po(e){const t=e!=="100%"?AT[e]:void 0;return IT({container:{[Rs.variable]:t??e,[zc.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Rs.variable]:t??e,[zc.variable]:`calc(${t??e} / 2.5)`}})}const pN={"2xs":Po(4),xs:Po(6),sm:Po(8),md:Po(12),lg:Po(16),xl:Po(24),"2xl":Po(32),full:Po("100%")},mN=sN({baseStyle:fN,sizes:pN,defaultProps:{size:"md"}}),mt=vT("badge",["bg","color","shadow"]),hN={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},gN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.500`,.6)(n);return{[mt.bg.variable]:`colors.${t}.500`,[mt.color.variable]:"colors.white",_dark:{[mt.bg.variable]:r,[mt.color.variable]:"colors.whiteAlpha.800"}}},vN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.16)(n);return{[mt.bg.variable]:`colors.${t}.100`,[mt.color.variable]:`colors.${t}.800`,_dark:{[mt.bg.variable]:r,[mt.color.variable]:`colors.${t}.200`}}},yN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.8)(n);return{[mt.color.variable]:`colors.${t}.500`,_dark:{[mt.color.variable]:r},[mt.shadow.variable]:`inset 0 0 0px 1px ${mt.color.reference}`}},bN={solid:gN,subtle:vN,outline:yN},nc={baseStyle:hN,variants:bN,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:xN,definePartsStyle:SN}=ae(n6.keys),sh=Y("breadcrumb-link-decor"),wN={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:sh.reference,[sh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[sh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},kN=SN({link:wN}),CN=xN({baseStyle:kN}),PN={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},RT=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:q("gray.800","whiteAlpha.900")(e),_hover:{bg:q("gray.100","whiteAlpha.200")(e)},_active:{bg:q("gray.200","whiteAlpha.300")(e)}};const r=Et(`${t}.200`,.12)(n),o=Et(`${t}.200`,.24)(n);return{color:q(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:q(`${t}.50`,r)(e)},_active:{bg:q(`${t}.100`,o)(e)}}},_N=e=>{const{colorScheme:t}=e,n=q("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...nn(RT,e)}},TN={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},EN=e=>{const{colorScheme:t}=e;if(t==="gray"){const s=q("gray.100","whiteAlpha.200")(e);return{bg:s,color:q("gray.800","whiteAlpha.900")(e),_hover:{bg:q("gray.200","whiteAlpha.300")(e),_disabled:{bg:s}},_active:{bg:q("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=TN[t]??{},a=q(n,`${t}.200`)(e);return{bg:a,color:q(r,"gray.800")(e),_hover:{bg:q(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:q(i,`${t}.400`)(e)}}},jN=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:q(`${t}.700`,`${t}.500`)(e)}}},$N={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},AN={ghost:RT,outline:_N,solid:EN,link:jN,unstyled:$N},IN={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},RN={baseStyle:PN,variants:AN,sizes:IN,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Hi,defineMultiStyleConfig:zN}=ae(TT.keys),Gf=Y("card-bg"),oo=Y("card-padding"),zT=Y("card-shadow"),Gd=Y("card-radius"),MT=Y("card-border-width","0"),NT=Y("card-border-color"),MN=Hi({container:{[Gf.variable]:"colors.chakra-body-bg",backgroundColor:Gf.reference,boxShadow:zT.reference,borderRadius:Gd.reference,color:"chakra-body-text",borderWidth:MT.reference,borderColor:NT.reference},body:{padding:oo.reference,flex:"1 1 0%"},header:{padding:oo.reference},footer:{padding:oo.reference}}),NN={sm:Hi({container:{[Gd.variable]:"radii.base",[oo.variable]:"space.3"}}),md:Hi({container:{[Gd.variable]:"radii.md",[oo.variable]:"space.5"}}),lg:Hi({container:{[Gd.variable]:"radii.xl",[oo.variable]:"space.7"}})},ON={elevated:Hi({container:{[zT.variable]:"shadows.base",_dark:{[Gf.variable]:"colors.gray.700"}}}),outline:Hi({container:{[MT.variable]:"1px",[NT.variable]:"colors.chakra-border-color"}}),filled:Hi({container:{[Gf.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[oo.variable]:0},header:{[oo.variable]:0},footer:{[oo.variable]:0}}},DN=zN({baseStyle:MN,variants:ON,sizes:NN,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Kd,defineMultiStyleConfig:LN}=ae(bT.keys),rc=Y("checkbox-size"),FN=e=>{const{colorScheme:t}=e;return{w:rc.reference,h:rc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:q(`${t}.500`,`${t}.200`)(e),borderColor:q(`${t}.500`,`${t}.200`)(e),color:q("white","gray.900")(e),_hover:{bg:q(`${t}.600`,`${t}.300`)(e),borderColor:q(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:q("gray.200","transparent")(e),bg:q("gray.200","whiteAlpha.300")(e),color:q("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:q(`${t}.500`,`${t}.200`)(e),borderColor:q(`${t}.500`,`${t}.200`)(e),color:q("white","gray.900")(e)},_disabled:{bg:q("gray.100","whiteAlpha.100")(e),borderColor:q("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:q("red.500","red.300")(e)}}},BN={_disabled:{cursor:"not-allowed"}},VN={userSelect:"none",_disabled:{opacity:.4}},WN={transitionProperty:"transform",transitionDuration:"normal"},UN=Kd(e=>({icon:WN,container:BN,control:nn(FN,e),label:VN})),HN={sm:Kd({control:{[rc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Kd({control:{[rc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Kd({control:{[rc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ro=LN({baseStyle:UN,sizes:HN,defaultProps:{size:"md",colorScheme:"blue"}}),oc=dt("close-button-size"),yl=dt("close-button-bg"),GN={w:[oc.reference],h:[oc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[yl.variable]:"colors.blackAlpha.100",_dark:{[yl.variable]:"colors.whiteAlpha.100"}},_active:{[yl.variable]:"colors.blackAlpha.200",_dark:{[yl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:yl.reference},KN={lg:{[oc.variable]:"sizes.10",fontSize:"md"},md:{[oc.variable]:"sizes.8",fontSize:"xs"},sm:{[oc.variable]:"sizes.6",fontSize:"2xs"}},XN={baseStyle:GN,sizes:KN,defaultProps:{size:"md"}},{variants:YN,defaultProps:qN}=nc,QN={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},ZN={baseStyle:QN,variants:YN,defaultProps:qN},JN={w:"100%",mx:"auto",maxW:"prose",px:"4"},eO={baseStyle:JN},tO={opacity:.6,borderColor:"inherit"},nO={borderStyle:"solid"},rO={borderStyle:"dashed"},oO={solid:nO,dashed:rO},iO={baseStyle:tO,variants:oO,defaultProps:{variant:"solid"}},{definePartsStyle:fv,defineMultiStyleConfig:aO}=ae(r6.keys),lh=Y("drawer-bg"),ch=Y("drawer-box-shadow");function _a(e){return fv(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const sO={bg:"blackAlpha.600",zIndex:"modal"},lO={display:"flex",zIndex:"modal",justifyContent:"center"},cO=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[lh.variable]:"colors.white",[ch.variable]:"shadows.lg",_dark:{[lh.variable]:"colors.gray.700",[ch.variable]:"shadows.dark-lg"},bg:lh.reference,boxShadow:ch.reference}},uO={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},dO={position:"absolute",top:"2",insetEnd:"3"},fO={px:"6",py:"2",flex:"1",overflow:"auto"},pO={px:"6",py:"4"},mO=fv(e=>({overlay:sO,dialogContainer:lO,dialog:nn(cO,e),header:uO,closeButton:dO,body:fO,footer:pO})),hO={xs:_a("xs"),sm:_a("md"),md:_a("lg"),lg:_a("2xl"),xl:_a("4xl"),full:_a("full")},gO=aO({baseStyle:mO,sizes:hO,defaultProps:{size:"xs"}}),{definePartsStyle:vO,defineMultiStyleConfig:yO}=ae(o6.keys),bO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},xO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},SO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},wO=vO({preview:bO,input:xO,textarea:SO}),kO=yO({baseStyle:wO}),{definePartsStyle:CO,defineMultiStyleConfig:PO}=ae(xT.keys),vs=Y("form-control-color"),_O={marginStart:"1",[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference},TO={mt:"2",[vs.variable]:"colors.gray.600",_dark:{[vs.variable]:"colors.whiteAlpha.600"},color:vs.reference,lineHeight:"normal",fontSize:"sm"},EO=CO({container:{width:"100%",position:"relative"},requiredIndicator:_O,helperText:TO}),jO=PO({baseStyle:EO}),{definePartsStyle:$O,defineMultiStyleConfig:AO}=ae(i6.keys),ys=Y("form-error-color"),IO={[ys.variable]:"colors.red.500",_dark:{[ys.variable]:"colors.red.300"},color:ys.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},RO={marginEnd:"0.5em",[ys.variable]:"colors.red.500",_dark:{[ys.variable]:"colors.red.300"},color:ys.reference},zO=$O({text:IO,icon:RO}),MO=AO({baseStyle:zO}),NO={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},OO={baseStyle:NO},DO={fontFamily:"heading",fontWeight:"bold"},LO={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},FO={baseStyle:DO,sizes:LO,defaultProps:{size:"xl"}},{definePartsStyle:Zr,defineMultiStyleConfig:BO}=ae(Ey.keys),Ga=Y("input-height"),Ka=Y("input-font-size"),Xa=Y("input-padding"),Ya=Y("input-border-radius"),VO=Zr({addon:{height:Ga.reference,fontSize:Ka.reference,px:Xa.reference,borderRadius:Ya.reference},field:{width:"100%",height:Ga.reference,fontSize:Ka.reference,px:Xa.reference,borderRadius:Ya.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),_o={lg:{[Ka.variable]:"fontSizes.lg",[Xa.variable]:"space.4",[Ya.variable]:"radii.md",[Ga.variable]:"sizes.12"},md:{[Ka.variable]:"fontSizes.md",[Xa.variable]:"space.4",[Ya.variable]:"radii.md",[Ga.variable]:"sizes.10"},sm:{[Ka.variable]:"fontSizes.sm",[Xa.variable]:"space.3",[Ya.variable]:"radii.sm",[Ga.variable]:"sizes.8"},xs:{[Ka.variable]:"fontSizes.xs",[Xa.variable]:"space.2",[Ya.variable]:"radii.sm",[Ga.variable]:"sizes.6"}},WO={lg:Zr({field:_o.lg,group:_o.lg}),md:Zr({field:_o.md,group:_o.md}),sm:Zr({field:_o.sm,group:_o.sm}),xs:Zr({field:_o.xs,group:_o.xs})};function Iy(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||q("blue.500","blue.300")(e),errorBorderColor:n||q("red.500","red.300")(e)}}const UO=Zr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iy(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Xe(t,r),boxShadow:`0 0 0 1px ${Xe(t,r)}`},_focusVisible:{zIndex:1,borderColor:Xe(t,n),boxShadow:`0 0 0 1px ${Xe(t,n)}`}},addon:{border:"1px solid",borderColor:q("inherit","whiteAlpha.50")(e),bg:q("gray.100","whiteAlpha.300")(e)}}}),HO=Zr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iy(e);return{field:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e),_hover:{bg:q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Xe(t,r)},_focusVisible:{bg:"transparent",borderColor:Xe(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e)}}}),GO=Zr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iy(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Xe(t,r),boxShadow:`0px 1px 0px 0px ${Xe(t,r)}`},_focusVisible:{borderColor:Xe(t,n),boxShadow:`0px 1px 0px 0px ${Xe(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),KO=Zr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),XO={outline:UO,filled:HO,flushed:GO,unstyled:KO},Me=BO({baseStyle:VO,sizes:WO,variants:XO,defaultProps:{size:"md",variant:"outline"}}),uh=Y("kbd-bg"),YO={[uh.variable]:"colors.gray.100",_dark:{[uh.variable]:"colors.whiteAlpha.100"},bg:uh.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},qO={baseStyle:YO},QO={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},ZO={baseStyle:QO},{defineMultiStyleConfig:JO,definePartsStyle:eD}=ae(a6.keys),tD={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},nD=eD({icon:tD}),rD=JO({baseStyle:nD}),{defineMultiStyleConfig:oD,definePartsStyle:iD}=ae(ST.keys),Pr=Y("menu-bg"),dh=Y("menu-shadow"),aD={[Pr.variable]:"#fff",[dh.variable]:"shadows.sm",_dark:{[Pr.variable]:"colors.gray.700",[dh.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Pr.reference,boxShadow:dh.reference},sD={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Pr.variable]:"colors.gray.100",_dark:{[Pr.variable]:"colors.whiteAlpha.100"}},_active:{[Pr.variable]:"colors.gray.200",_dark:{[Pr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Pr.variable]:"colors.gray.100",_dark:{[Pr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Pr.reference},lD={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},cD={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},uD={opacity:.6},dD={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},fD={transitionProperty:"common",transitionDuration:"normal"},pD=iD({button:fD,list:aD,item:sD,groupTitle:lD,icon:cD,command:uD,divider:dD}),mD=oD({baseStyle:pD}),{defineMultiStyleConfig:hD,definePartsStyle:pv}=ae(wT.keys),fh=Y("modal-bg"),ph=Y("modal-shadow"),gD={bg:"blackAlpha.600",zIndex:"modal"},vD=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},yD=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[fh.variable]:"colors.white",[ph.variable]:"shadows.lg",_dark:{[fh.variable]:"colors.gray.700",[ph.variable]:"shadows.dark-lg"},bg:fh.reference,boxShadow:ph.reference}},bD={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xD={position:"absolute",top:"2",insetEnd:"3"},SD=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},wD={px:"6",py:"4"},kD=pv(e=>({overlay:gD,dialogContainer:nn(vD,e),dialog:nn(yD,e),header:bD,closeButton:xD,body:nn(SD,e),footer:wD}));function er(e){return pv(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const CD={xs:er("xs"),sm:er("sm"),md:er("md"),lg:er("lg"),xl:er("xl"),"2xl":er("2xl"),"3xl":er("3xl"),"4xl":er("4xl"),"5xl":er("5xl"),"6xl":er("6xl"),full:er("full")},PD=hD({baseStyle:kD,sizes:CD,defaultProps:{size:"md"}}),OT={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:_D,definePartsStyle:DT}=ae(s6.keys),Ry=dt("number-input-stepper-width"),LT=dt("number-input-input-padding"),TD=Kr(Ry).add("0.5rem").toString(),mh=dt("number-input-bg"),hh=dt("number-input-color"),gh=dt("number-input-border-color"),ED={[Ry.variable]:"sizes.6",[LT.variable]:TD},jD=e=>{var t;return((t=nn(Me.baseStyle,e))==null?void 0:t.field)??{}},$D={width:Ry.reference},AD={borderStart:"1px solid",borderStartColor:gh.reference,color:hh.reference,bg:mh.reference,[hh.variable]:"colors.chakra-body-text",[gh.variable]:"colors.chakra-border-color",_dark:{[hh.variable]:"colors.whiteAlpha.800",[gh.variable]:"colors.whiteAlpha.300"},_active:{[mh.variable]:"colors.gray.200",_dark:{[mh.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},ID=DT(e=>({root:ED,field:nn(jD,e)??{},stepperGroup:$D,stepper:AD}));function rd(e){var i,a;const t=(i=Me.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",o=OT.fontSizes[r];return DT({field:{...t.field,paddingInlineEnd:LT.reference,verticalAlign:"top"},stepper:{fontSize:Kr(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const RD={xs:rd("xs"),sm:rd("sm"),md:rd("md"),lg:rd("lg")},zD=_D({baseStyle:ID,sizes:RD,variants:Me.variants,defaultProps:Me.defaultProps});var P2;const MD={...(P2=Me.baseStyle)==null?void 0:P2.field,textAlign:"center"},ND={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var _2;const OD={outline:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((_2=Me.variants)==null?void 0:_2.unstyled.field)??{}},DD={baseStyle:MD,sizes:ND,variants:OD,defaultProps:Me.defaultProps},{defineMultiStyleConfig:LD,definePartsStyle:FD}=ae(l6.keys),od=dt("popper-bg"),BD=dt("popper-arrow-bg"),OS=dt("popper-arrow-shadow-color"),VD={zIndex:"popover"},WD={[od.variable]:"colors.white",bg:od.reference,[BD.variable]:od.reference,[OS.variable]:"colors.gray.200",_dark:{[od.variable]:"colors.gray.700",[OS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},UD={px:3,py:2,borderBottomWidth:"1px"},HD={px:3,py:2},GD={px:3,py:2,borderTopWidth:"1px"},KD={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},XD=FD({popper:VD,content:WD,header:UD,body:HD,footer:GD,closeButton:KD}),YD=LD({baseStyle:XD}),{defineMultiStyleConfig:qD,definePartsStyle:Rl}=ae(kT.keys),QD=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=q(IS(),IS("1rem","rgba(0,0,0,0.1)"))(e),a=q(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
|
||
to right,
|
||
transparent 0%,
|
||
${Xe(n,a)} 50%,
|
||
transparent 100%
|
||
)`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},ZD={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},JD=e=>({bg:q("gray.100","whiteAlpha.300")(e)}),eL=e=>({transitionProperty:"common",transitionDuration:"slow",...QD(e)}),tL=Rl(e=>({label:ZD,filledTrack:eL(e),track:JD(e)})),nL={xs:Rl({track:{h:"1"}}),sm:Rl({track:{h:"2"}}),md:Rl({track:{h:"3"}}),lg:Rl({track:{h:"4"}})},rL=qD({sizes:nL,baseStyle:tL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:oL,definePartsStyle:Xd}=ae(CT.keys),iL=e=>{var n;const t=(n=nn(Ro.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},aL=Xd(e=>{var t,n;return{label:(t=Ro.baseStyle)==null?void 0:t.call(Ro,e).label,container:(n=Ro.baseStyle)==null?void 0:n.call(Ro,e).container,control:iL(e)}}),sL={md:Xd({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Xd({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Xd({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},lL=oL({baseStyle:aL,sizes:sL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cL,definePartsStyle:uL}=ae(c6.keys),id=Y("select-bg");var T2;const dL={...(T2=Me.baseStyle)==null?void 0:T2.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:id.reference,[id.variable]:"colors.white",_dark:{[id.variable]:"colors.gray.700"},"> option, > optgroup":{bg:id.reference}},fL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},pL=uL({field:dL,icon:fL}),ad={paddingInlineEnd:"8"};var E2,j2,$2,A2,I2,R2,z2,M2;const mL={lg:{...(E2=Me.sizes)==null?void 0:E2.lg,field:{...(j2=Me.sizes)==null?void 0:j2.lg.field,...ad}},md:{...($2=Me.sizes)==null?void 0:$2.md,field:{...(A2=Me.sizes)==null?void 0:A2.md.field,...ad}},sm:{...(I2=Me.sizes)==null?void 0:I2.sm,field:{...(R2=Me.sizes)==null?void 0:R2.sm.field,...ad}},xs:{...(z2=Me.sizes)==null?void 0:z2.xs,field:{...(M2=Me.sizes)==null?void 0:M2.xs.field,...ad},icon:{insetEnd:"1"}}},hL=cL({baseStyle:pL,sizes:mL,variants:Me.variants,defaultProps:Me.defaultProps}),vh=Y("skeleton-start-color"),yh=Y("skeleton-end-color"),gL={[vh.variable]:"colors.gray.100",[yh.variable]:"colors.gray.400",_dark:{[vh.variable]:"colors.gray.800",[yh.variable]:"colors.gray.600"},background:vh.reference,borderColor:yh.reference,opacity:.7,borderRadius:"sm"},vL={baseStyle:gL},bh=Y("skip-link-bg"),yL={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[bh.variable]:"colors.white",_dark:{[bh.variable]:"colors.gray.700"},bg:bh.reference}},bL={baseStyle:yL},{defineMultiStyleConfig:xL,definePartsStyle:$p}=ae(PT.keys),aa=Y("slider-thumb-size"),Mc=Y("slider-track-size"),No=Y("slider-bg"),SL=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...$y({orientation:t,vertical:{h:"100%",px:Gr(aa.reference).divide(2).toString()},horizontal:{w:"100%",py:Gr(aa.reference).divide(2).toString()}})}},wL=e=>({...$y({orientation:e.orientation,horizontal:{h:Mc.reference},vertical:{w:Mc.reference}}),overflow:"hidden",borderRadius:"sm",[No.variable]:"colors.gray.200",_dark:{[No.variable]:"colors.whiteAlpha.200"},_disabled:{[No.variable]:"colors.gray.300",_dark:{[No.variable]:"colors.whiteAlpha.300"}},bg:No.reference}),kL=e=>{const{orientation:t}=e;return{...$y({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:aa.reference,h:aa.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},CL=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[No.variable]:`colors.${t}.500`,_dark:{[No.variable]:`colors.${t}.200`},bg:No.reference}},PL=$p(e=>({container:SL(e),track:wL(e),thumb:kL(e),filledTrack:CL(e)})),_L=$p({container:{[aa.variable]:"sizes.4",[Mc.variable]:"sizes.1"}}),TL=$p({container:{[aa.variable]:"sizes.3.5",[Mc.variable]:"sizes.1"}}),EL=$p({container:{[aa.variable]:"sizes.2.5",[Mc.variable]:"sizes.0.5"}}),jL={lg:_L,md:TL,sm:EL},$L=xL({baseStyle:PL,sizes:jL,defaultProps:{size:"md",colorScheme:"blue"}}),Ri=dt("spinner-size"),AL={width:[Ri.reference],height:[Ri.reference]},IL={xs:{[Ri.variable]:"sizes.3"},sm:{[Ri.variable]:"sizes.4"},md:{[Ri.variable]:"sizes.6"},lg:{[Ri.variable]:"sizes.8"},xl:{[Ri.variable]:"sizes.12"}},RL={baseStyle:AL,sizes:IL,defaultProps:{size:"md"}},{defineMultiStyleConfig:zL,definePartsStyle:FT}=ae(u6.keys),ML={fontWeight:"medium"},NL={opacity:.8,marginBottom:"2"},OL={verticalAlign:"baseline",fontWeight:"semibold"},DL={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},LL=FT({container:{},label:ML,helpText:NL,number:OL,icon:DL}),FL={md:FT({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},BL=zL({baseStyle:LL,sizes:FL,defaultProps:{size:"md"}}),{defineMultiStyleConfig:VL,definePartsStyle:zl}=ae(["stepper","step","title","description","indicator","separator","icon","number"]),Xr=Y("stepper-indicator-size"),qa=Y("stepper-icon-size"),Qa=Y("stepper-title-font-size"),Ml=Y("stepper-description-font-size"),bl=Y("stepper-accent-color"),WL=zl(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[bl.variable]:`colors.${e}.500`,_dark:{[bl.variable]:`colors.${e}.200`}},title:{fontSize:Qa.reference,fontWeight:"medium"},description:{fontSize:Ml.reference,color:"chakra-subtle-text"},number:{fontSize:Qa.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:qa.reference,height:qa.reference},indicator:{flexShrink:0,borderRadius:"full",width:Xr.reference,height:Xr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:bl.reference},"&[data-status=complete]":{bg:bl.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:bl.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Xr.reference} - 8px)`,top:`calc(${Xr.reference} + 4px)`,insetStart:`calc(${Xr.reference} / 2 - 1px)`}}})),UL=VL({baseStyle:WL,sizes:{xs:zl({stepper:{[Xr.variable]:"sizes.4",[qa.variable]:"sizes.3",[Qa.variable]:"fontSizes.xs",[Ml.variable]:"fontSizes.xs"}}),sm:zl({stepper:{[Xr.variable]:"sizes.6",[qa.variable]:"sizes.4",[Qa.variable]:"fontSizes.sm",[Ml.variable]:"fontSizes.xs"}}),md:zl({stepper:{[Xr.variable]:"sizes.8",[qa.variable]:"sizes.5",[Qa.variable]:"fontSizes.md",[Ml.variable]:"fontSizes.sm"}}),lg:zl({stepper:{[Xr.variable]:"sizes.10",[qa.variable]:"sizes.6",[Qa.variable]:"fontSizes.lg",[Ml.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:HL,definePartsStyle:Yd}=ae(_T.keys),ic=dt("switch-track-width"),Gi=dt("switch-track-height"),xh=dt("switch-track-diff"),GL=Kr.subtract(ic,Gi),mv=dt("switch-thumb-x"),xl=dt("switch-bg"),KL=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ic.reference],height:[Gi.reference],transitionProperty:"common",transitionDuration:"fast",[xl.variable]:"colors.gray.300",_dark:{[xl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[xl.variable]:`colors.${t}.500`,_dark:{[xl.variable]:`colors.${t}.200`}},bg:xl.reference}},XL={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Gi.reference],height:[Gi.reference],_checked:{transform:`translateX(${mv.reference})`}},YL=Yd(e=>({container:{[xh.variable]:GL,[mv.variable]:xh.reference,_rtl:{[mv.variable]:Kr(xh).negate().toString()}},track:KL(e),thumb:XL})),qL={sm:Yd({container:{[ic.variable]:"1.375rem",[Gi.variable]:"sizes.3"}}),md:Yd({container:{[ic.variable]:"1.875rem",[Gi.variable]:"sizes.4"}}),lg:Yd({container:{[ic.variable]:"2.875rem",[Gi.variable]:"sizes.6"}})},QL=HL({baseStyle:YL,sizes:qL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZL,definePartsStyle:bs}=ae(d6.keys),JL=bs({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Kf={"&[data-is-numeric=true]":{textAlign:"end"}},eF=bs(e=>{const{colorScheme:t}=e;return{th:{color:q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Kf},td:{borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Kf},caption:{color:q("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),tF=bs(e=>{const{colorScheme:t}=e;return{th:{color:q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Kf},td:{borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Kf},caption:{color:q("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e)},td:{background:q(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),nF={simple:eF,striped:tF,unstyled:{}},rF={sm:bs({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:bs({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:bs({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},oF=ZL({baseStyle:JL,variants:nF,sizes:rF,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ln=Y("tabs-color"),sr=Y("tabs-bg"),sd=Y("tabs-border-color"),{defineMultiStyleConfig:iF,definePartsStyle:zr}=ae(f6.keys),aF=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},sF=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},lF=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},cF={p:4},uF=zr(e=>({root:aF(e),tab:sF(e),tablist:lF(e),tabpanel:cF})),dF={sm:zr({tab:{py:1,px:4,fontSize:"sm"}}),md:zr({tab:{fontSize:"md",py:2,px:4}}),lg:zr({tab:{fontSize:"lg",py:3,px:4}})},fF=zr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ln.variable]:`colors.${t}.600`,_dark:{[ln.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[sr.variable]:"colors.gray.200",_dark:{[sr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ln.reference,bg:sr.reference}}}),pF=zr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[sd.variable]:"transparent",_selected:{[ln.variable]:`colors.${t}.600`,[sd.variable]:"colors.white",_dark:{[ln.variable]:`colors.${t}.300`,[sd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:sd.reference},color:ln.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),mF=zr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[sr.variable]:"colors.gray.50",_dark:{[sr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[sr.variable]:"colors.white",[ln.variable]:`colors.${t}.600`,_dark:{[sr.variable]:"colors.gray.800",[ln.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ln.reference,bg:sr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),hF=zr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Xe(n,`${t}.700`),bg:Xe(n,`${t}.100`)}}}}),gF=zr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ln.variable]:"colors.gray.600",_dark:{[ln.variable]:"inherit"},_selected:{[ln.variable]:"colors.white",[sr.variable]:`colors.${t}.600`,_dark:{[ln.variable]:"colors.gray.800",[sr.variable]:`colors.${t}.300`}},color:ln.reference,bg:sr.reference}}}),vF=zr({}),yF={line:fF,enclosed:pF,"enclosed-colored":mF,"soft-rounded":hF,"solid-rounded":gF,unstyled:vF},bF=iF({baseStyle:uF,sizes:dF,variants:yF,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:xF,definePartsStyle:Ki}=ae(p6.keys),DS=Y("tag-bg"),LS=Y("tag-color"),Sh=Y("tag-shadow"),qd=Y("tag-min-height"),Qd=Y("tag-min-width"),Zd=Y("tag-font-size"),Jd=Y("tag-padding-inline"),SF={fontWeight:"medium",lineHeight:1.2,outline:0,[LS.variable]:mt.color.reference,[DS.variable]:mt.bg.reference,[Sh.variable]:mt.shadow.reference,color:LS.reference,bg:DS.reference,boxShadow:Sh.reference,borderRadius:"md",minH:qd.reference,minW:Qd.reference,fontSize:Zd.reference,px:Jd.reference,_focusVisible:{[Sh.variable]:"shadows.outline"}},wF={lineHeight:1.2,overflow:"visible"},kF={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},CF=Ki({container:SF,label:wF,closeButton:kF}),PF={sm:Ki({container:{[qd.variable]:"sizes.5",[Qd.variable]:"sizes.5",[Zd.variable]:"fontSizes.xs",[Jd.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ki({container:{[qd.variable]:"sizes.6",[Qd.variable]:"sizes.6",[Zd.variable]:"fontSizes.sm",[Jd.variable]:"space.2"}}),lg:Ki({container:{[qd.variable]:"sizes.8",[Qd.variable]:"sizes.8",[Zd.variable]:"fontSizes.md",[Jd.variable]:"space.3"}})},_F={subtle:Ki(e=>{var t;return{container:(t=nc.variants)==null?void 0:t.subtle(e)}}),solid:Ki(e=>{var t;return{container:(t=nc.variants)==null?void 0:t.solid(e)}}),outline:Ki(e=>{var t;return{container:(t=nc.variants)==null?void 0:t.outline(e)}})},TF=xF({variants:_F,baseStyle:CF,sizes:PF,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var N2;const EF={...(N2=Me.baseStyle)==null?void 0:N2.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var O2;const jF={outline:e=>{var t;return((t=Me.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Me.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Me.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((O2=Me.variants)==null?void 0:O2.unstyled.field)??{}};var D2,L2,F2,B2;const $F={xs:((D2=Me.sizes)==null?void 0:D2.xs.field)??{},sm:((L2=Me.sizes)==null?void 0:L2.sm.field)??{},md:((F2=Me.sizes)==null?void 0:F2.md.field)??{},lg:((B2=Me.sizes)==null?void 0:B2.lg.field)??{}},AF={baseStyle:EF,sizes:$F,variants:jF,defaultProps:{size:"md",variant:"outline"}},ld=dt("tooltip-bg"),wh=dt("tooltip-fg"),IF=dt("popper-arrow-bg"),RF={bg:ld.reference,color:wh.reference,[ld.variable]:"colors.gray.700",[wh.variable]:"colors.whiteAlpha.900",_dark:{[ld.variable]:"colors.gray.300",[wh.variable]:"colors.gray.900"},[IF.variable]:ld.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},zF={baseStyle:RF},MF={Accordion:S6,Alert:rN,Avatar:mN,Badge:nc,Breadcrumb:CN,Button:RN,Checkbox:Ro,CloseButton:XN,Code:ZN,Container:eO,Divider:iO,Drawer:gO,Editable:kO,Form:jO,FormError:MO,FormLabel:OO,Heading:FO,Input:Me,Kbd:qO,Link:ZO,List:rD,Menu:mD,Modal:PD,NumberInput:zD,PinInput:DD,Popover:YD,Progress:rL,Radio:lL,Select:hL,Skeleton:vL,SkipLink:bL,Slider:$L,Spinner:RL,Stat:BL,Switch:QL,Table:oF,Tabs:bF,Tag:TF,Textarea:AF,Tooltip:zF,Card:DN,Stepper:UL},NF={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},OF={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},DF={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},LF={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},FF={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},BF={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},VF={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},WF={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},UF={property:BF,easing:VF,duration:WF},HF={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},GF={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},KF={breakpoints:OF,zIndices:HF,radii:LF,blur:GF,colors:DF,...OT,sizes:AT,shadows:FF,space:$T,borders:NF,transition:UF},XF={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},YF={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, *::after":{borderColor:"chakra-border-color"}}},qF=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function QF(e){return kt(e)?qF.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const ZF="ltr",JF={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Di={semanticTokens:XF,direction:ZF,...KF,components:MF,styles:YF,config:JF};function e8(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function t8(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var n8=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(t8(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=e8(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ut="-ms-",Xf="-moz-",Re="-webkit-",BT="comm",zy="rule",My="decl",r8="@import",VT="@keyframes",o8="@layer",i8=Math.abs,Ap=String.fromCharCode,a8=Object.assign;function s8(e,t){return zt(e,0)^45?(((t<<2^zt(e,0))<<2^zt(e,1))<<2^zt(e,2))<<2^zt(e,3):0}function WT(e){return e.trim()}function l8(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,n){return e.replace(t,n)}function hv(e,t){return e.indexOf(t)}function zt(e,t){return e.charCodeAt(t)|0}function Nc(e,t,n){return e.slice(t,n)}function _r(e){return e.length}function Ny(e){return e.length}function cd(e,t){return t.push(e),e}function c8(e,t){return e.map(t).join("")}var Ip=1,zs=1,UT=0,hn=0,ht=0,qs="";function Rp(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ip,column:zs,length:a,return:""}}function Sl(e,t){return a8(Rp("",null,null,"",null,null,0),e,{length:-e.length},t)}function u8(){return ht}function d8(){return ht=hn>0?zt(qs,--hn):0,zs--,ht===10&&(zs=1,Ip--),ht}function wn(){return ht=hn<UT?zt(qs,hn++):0,zs++,ht===10&&(zs=1,Ip++),ht}function Mr(){return zt(qs,hn)}function ef(){return hn}function uu(e,t){return Nc(qs,e,t)}function Oc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function HT(e){return Ip=zs=1,UT=_r(qs=e),hn=0,[]}function GT(e){return qs="",e}function tf(e){return WT(uu(hn-1,gv(e===91?e+2:e===40?e+1:e)))}function f8(e){for(;(ht=Mr())&&ht<33;)wn();return Oc(e)>2||Oc(ht)>3?"":" "}function p8(e,t){for(;--t&&wn()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return uu(e,ef()+(t<6&&Mr()==32&&wn()==32))}function gv(e){for(;wn();)switch(ht){case e:return hn;case 34:case 39:e!==34&&e!==39&&gv(ht);break;case 40:e===41&&gv(e);break;case 92:wn();break}return hn}function m8(e,t){for(;wn()&&e+ht!==57;)if(e+ht===84&&Mr()===47)break;return"/*"+uu(t,hn-1)+"*"+Ap(e===47?e:wn())}function h8(e){for(;!Oc(Mr());)wn();return uu(e,hn)}function g8(e){return GT(nf("",null,null,null,[""],e=HT(e),0,[0],e))}function nf(e,t,n,r,o,i,a,s,l){for(var u=0,d=0,f=a,p=0,h=0,v=0,y=1,x=1,b=1,g=0,S="",w=o,k=i,_=r,P=S;x;)switch(v=g,g=wn()){case 40:if(v!=108&&zt(P,f-1)==58){hv(P+=ze(tf(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:P+=tf(g);break;case 9:case 10:case 13:case 32:P+=f8(v);break;case 92:P+=p8(ef()-1,7);continue;case 47:switch(Mr()){case 42:case 47:cd(v8(m8(wn(),ef()),t,n),l);break;default:P+="/"}break;case 123*y:s[u++]=_r(P)*b;case 125*y:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+d:b==-1&&(P=ze(P,/\f/g,"")),h>0&&_r(P)-f&&cd(h>32?BS(P+";",r,n,f-1):BS(ze(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(cd(_=FS(P,t,n,u,d,o,s,S,w=[],k=[],f),i),g===123)if(d===0)nf(P,t,_,_,w,i,f,s,k);else switch(p===99&&zt(P,3)===110?100:p){case 100:case 108:case 109:case 115:nf(e,_,_,r&&cd(FS(e,_,_,0,0,o,s,S,o,w=[],f),k),o,k,f,s,r?w:k);break;default:nf(P,_,_,_,[""],k,0,s,k)}}u=d=h=0,y=b=1,S=P="",f=a;break;case 58:f=1+_r(P),h=v;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&d8()==125)continue}switch(P+=Ap(g),g*y){case 38:b=d>0?1:(P+="\f",-1);break;case 44:s[u++]=(_r(P)-1)*b,b=1;break;case 64:Mr()===45&&(P+=tf(wn())),p=Mr(),d=f=_r(S=P+=h8(ef())),g++;break;case 45:v===45&&_r(P)==2&&(y=0)}}return i}function FS(e,t,n,r,o,i,a,s,l,u,d){for(var f=o-1,p=o===0?i:[""],h=Ny(p),v=0,y=0,x=0;v<r;++v)for(var b=0,g=Nc(e,f+1,f=i8(y=a[v])),S=e;b<h;++b)(S=WT(y>0?p[b]+" "+g:ze(g,/&\f/g,p[b])))&&(l[x++]=S);return Rp(e,t,n,o===0?zy:s,l,u,d)}function v8(e,t,n){return Rp(e,t,n,BT,Ap(u8()),Nc(e,2,-2),0)}function BS(e,t,n,r){return Rp(e,t,n,My,Nc(e,0,r),Nc(e,r+1,-1),r)}function xs(e,t){for(var n="",r=Ny(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function y8(e,t,n,r){switch(e.type){case o8:if(e.children.length)break;case r8:case My:return e.return=e.return||e.value;case BT:return"";case VT:return e.return=e.value+"{"+xs(e.children,r)+"}";case zy:e.value=e.props.join(",")}return _r(n=xs(e.children,r))?e.return=e.value+"{"+n+"}":""}function b8(e){var t=Ny(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function x8(e){return function(t){t.root||(t=t.return)&&e(t)}}var VS=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function KT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var S8=function(t,n,r){for(var o=0,i=0;o=i,i=Mr(),o===38&&i===12&&(n[r]=1),!Oc(i);)wn();return uu(t,hn)},w8=function(t,n){var r=-1,o=44;do switch(Oc(o)){case 0:o===38&&Mr()===12&&(n[r]=1),t[r]+=S8(hn-1,n,r);break;case 2:t[r]+=tf(o);break;case 4:if(o===44){t[++r]=Mr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ap(o)}while(o=wn());return t},k8=function(t,n){return GT(w8(HT(t),n))},WS=new WeakMap,C8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!WS.get(r))&&!o){WS.set(t,!0);for(var i=[],a=k8(n,i),s=r.props,l=0,u=0;l<a.length;l++)for(var d=0;d<s.length;d++,u++)t.props[u]=i[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},P8=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function XT(e,t){switch(s8(e,t)){case 5103:return Re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+Xf+e+Ut+e+e;case 6828:case 4268:return Re+e+Ut+e+e;case 6165:return Re+e+Ut+"flex-"+e+e;case 5187:return Re+e+ze(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Ut+"flex-$1$2")+e;case 5443:return Re+e+Ut+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return Re+e+Ut+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return Re+e+Ut+ze(e,"shrink","negative")+e;case 5292:return Re+e+Ut+ze(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+ze(e,"-grow","")+Re+e+Ut+ze(e,"grow","positive")+e;case 4554:return Re+ze(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,Re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_r(e)-1-t>6)switch(zt(e,t+1)){case 109:if(zt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Xf+(zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hv(e,"stretch")?XT(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zt(e,t+1)!==115)break;case 6444:switch(zt(e,_r(e)-3-(~hv(e,"!important")&&10))){case 107:return ze(e,":",":"+Re)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(zt(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(zt(e,t+11)){case 114:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Ut+e+e}return e}var _8=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case My:t.return=XT(t.value,t.length);break;case VT:return xs([Sl(t,{value:ze(t.value,"@","@"+Re)})],o);case zy:if(t.length)return c8(t.props,function(i){switch(l8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xs([Sl(t,{props:[ze(i,/:(read-\w+)/,":"+Xf+"$1")]})],o);case"::placeholder":return xs([Sl(t,{props:[ze(i,/:(plac\w+)/,":"+Re+"input-$1")]}),Sl(t,{props:[ze(i,/:(plac\w+)/,":"+Xf+"$1")]}),Sl(t,{props:[ze(i,/:(plac\w+)/,Ut+"input-$1")]})],o)}return""})}},T8=[_8],E8=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||T8,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),b=1;b<x.length;b++)i[x[b]]=!0;s.push(y)});var l,u=[C8,P8];{var d,f=[y8,x8(function(y){d.insert(y)})],p=b8(u.concat(o,f)),h=function(x){return xs(g8(x),p)};l=function(x,b,g,S){d=g,h(x?x+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0)}}var v={key:n,sheet:new n8({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v};function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(null,arguments)}var YT={exports:{}},De={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var $t=typeof Symbol=="function"&&Symbol.for,Oy=$t?Symbol.for("react.element"):60103,Dy=$t?Symbol.for("react.portal"):60106,zp=$t?Symbol.for("react.fragment"):60107,Mp=$t?Symbol.for("react.strict_mode"):60108,Np=$t?Symbol.for("react.profiler"):60114,Op=$t?Symbol.for("react.provider"):60109,Dp=$t?Symbol.for("react.context"):60110,Ly=$t?Symbol.for("react.async_mode"):60111,Lp=$t?Symbol.for("react.concurrent_mode"):60111,Fp=$t?Symbol.for("react.forward_ref"):60112,Bp=$t?Symbol.for("react.suspense"):60113,j8=$t?Symbol.for("react.suspense_list"):60120,Vp=$t?Symbol.for("react.memo"):60115,Wp=$t?Symbol.for("react.lazy"):60116,$8=$t?Symbol.for("react.block"):60121,A8=$t?Symbol.for("react.fundamental"):60117,I8=$t?Symbol.for("react.responder"):60118,R8=$t?Symbol.for("react.scope"):60119;function In(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Oy:switch(e=e.type,e){case Ly:case Lp:case zp:case Np:case Mp:case Bp:return e;default:switch(e=e&&e.$$typeof,e){case Dp:case Fp:case Wp:case Vp:case Op:return e;default:return t}}case Dy:return t}}}function qT(e){return In(e)===Lp}De.AsyncMode=Ly;De.ConcurrentMode=Lp;De.ContextConsumer=Dp;De.ContextProvider=Op;De.Element=Oy;De.ForwardRef=Fp;De.Fragment=zp;De.Lazy=Wp;De.Memo=Vp;De.Portal=Dy;De.Profiler=Np;De.StrictMode=Mp;De.Suspense=Bp;De.isAsyncMode=function(e){return qT(e)||In(e)===Ly};De.isConcurrentMode=qT;De.isContextConsumer=function(e){return In(e)===Dp};De.isContextProvider=function(e){return In(e)===Op};De.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oy};De.isForwardRef=function(e){return In(e)===Fp};De.isFragment=function(e){return In(e)===zp};De.isLazy=function(e){return In(e)===Wp};De.isMemo=function(e){return In(e)===Vp};De.isPortal=function(e){return In(e)===Dy};De.isProfiler=function(e){return In(e)===Np};De.isStrictMode=function(e){return In(e)===Mp};De.isSuspense=function(e){return In(e)===Bp};De.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zp||e===Lp||e===Np||e===Mp||e===Bp||e===j8||typeof e=="object"&&e!==null&&(e.$$typeof===Wp||e.$$typeof===Vp||e.$$typeof===Op||e.$$typeof===Dp||e.$$typeof===Fp||e.$$typeof===A8||e.$$typeof===I8||e.$$typeof===R8||e.$$typeof===$8)};De.typeOf=In;YT.exports=De;var z8=YT.exports,QT=z8,M8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},N8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ZT={};ZT[QT.ForwardRef]=M8;ZT[QT.Memo]=N8;var O8=!0;function JT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Fy=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||O8===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},By=function(t,n,r){Fy(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function D8(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var L8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},F8=/[A-Z]|^ms/g,B8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eE=function(t){return t.charCodeAt(1)===45},US=function(t){return t!=null&&typeof t!="boolean"},kh=KT(function(e){return eE(e)?e:e.replace(F8,"-$&").toLowerCase()}),HS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(B8,function(r,o,i){return Tr={name:o,styles:i,next:Tr},o})}return L8[t]!==1&&!eE(t)&&typeof n=="number"&&n!==0?n+"px":n};function Dc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Tr={name:o.name,styles:o.styles,next:Tr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Tr={name:a.name,styles:a.styles,next:Tr},a=a.next;var s=i.styles+";";return s}return V8(e,t,n)}case"function":{if(e!==void 0){var l=Tr,u=n(e);return Tr=l,Dc(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function V8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Dc(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":US(s)&&(r+=kh(i)+":"+HS(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)US(a[l])&&(r+=kh(i)+":"+HS(i,a[l])+";");else{var u=Dc(e,t,a);switch(i){case"animation":case"animationName":{r+=kh(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var GS=/label:\s*([^\s;{]+)\s*(;|$)/g,Tr;function Up(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Tr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Dc(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Dc(n,t,e[s]),r){var l=i;o+=l[s]}GS.lastIndex=0;for(var u="",d;(d=GS.exec(o))!==null;)u+="-"+d[1];var f=D8(o)+u;return{name:f,styles:o,next:Tr}}var W8=function(t){return t()},tE=ug.useInsertionEffect?ug.useInsertionEffect:!1,nE=tE||W8,KS=tE||m.useLayoutEffect,Vy=m.createContext(typeof HTMLElement<"u"?E8({key:"css"}):null);Vy.Provider;var U8=function(){return m.useContext(Vy)},Wy=function(t){return m.forwardRef(function(n,r){var o=m.useContext(Vy);return t(n,o,r)})},Ms=m.createContext({}),H8=function(t,n){if(typeof n=="function"){var r=n(t);return r}return sa({},t,n)},G8=VS(function(e){return VS(function(t){return H8(e,t)})}),K8=function(t){var n=m.useContext(Ms);return t.theme!==n&&(n=G8(n)(t.theme)),m.createElement(Ms.Provider,{value:n},t.children)},Uy={}.hasOwnProperty,vv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",X8=function(t,n){var r={};for(var o in n)Uy.call(n,o)&&(r[o]=n[o]);return r[vv]=t,r},Y8=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Fy(n,r,o),nE(function(){return By(n,r,o)}),null},q8=Wy(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[vv],i=[r],a="";typeof e.className=="string"?a=JT(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Up(i,void 0,m.useContext(Ms));a+=t.key+"-"+s.name;var l={};for(var u in e)Uy.call(e,u)&&u!=="css"&&u!==vv&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),m.createElement(m.Fragment,null,m.createElement(Y8,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m.createElement(o,l))}),Q8=q8,XS=function(t,n){var r=arguments;if(n==null||!Uy.call(n,"css"))return m.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Q8,i[1]=X8(t,n);for(var a=2;a<o;a++)i[a]=r[a];return m.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(XS||(XS={}));var Hp=Wy(function(e,t){var n=e.styles,r=Up([n],void 0,m.useContext(Ms)),o=m.useRef();return KS(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),KS(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&By(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Z8(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Up(t)}function du(){var e=Z8.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const Hy=m.createContext({});Hy.displayName="ColorModeContext";function fu(){const e=m.useContext(Hy);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function yv(e,t){const{colorMode:n}=fu();return n==="dark"?t:e}const ud={light:"chakra-ui-light",dark:"chakra-ui-dark"};function J8(e={}){const{preventTransition:t=!0,nonce:n}=e,r={setDataset:o=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?ud.dark:ud.light),document.body.classList.remove(o?ud.light:ud.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),a=s=>{o(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const e9="chakra-ui-color-mode";function t9(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const n9=t9(e9),YS=()=>{},r9=pz()?m.useLayoutEffect:m.useEffect;function qS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const rE=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=n9}=t,l=U8(),u=i==="dark"?"dark":"light",[d,f]=m.useState(()=>qS(s,u)),[p,h]=m.useState(()=>qS(s)),{getSystemTheme:v,setClassName:y,setDataset:x,addListener:b}=m.useMemo(()=>J8({preventTransition:a,nonce:l==null?void 0:l.nonce}),[a,l==null?void 0:l.nonce]),g=i==="system"&&!d?p:d,S=m.useCallback(_=>{const P=_==="system"?v():_;f(P),y(P==="dark"),x(P),s.set(P)},[s,v,y,x]);r9(()=>{i==="system"&&h(v())},[]),m.useEffect(()=>{const _=s.get();if(_){S(_);return}if(i==="system"){S("system");return}S(u)},[s,u,i,S]);const w=m.useCallback(()=>{S(g==="dark"?"light":"dark")},[g,S]);m.useEffect(()=>{if(o)return b(S)},[o,b,S]);const k=m.useMemo(()=>({colorMode:n??g,toggleColorMode:n?YS:w,setColorMode:n?YS:S,forced:n!==void 0}),[g,w,S,n]);return c.jsx(Hy.Provider,{value:k,children:r})};rE.displayName="ColorModeProvider";const oE=String.raw,iE=oE`
|
||
:root,
|
||
:host {
|
||
--chakra-vh: 100vh;
|
||
}
|
||
|
||
@supports (height: -webkit-fill-available) {
|
||
:root,
|
||
:host {
|
||
--chakra-vh: -webkit-fill-available;
|
||
}
|
||
}
|
||
|
||
@supports (height: -moz-fill-available) {
|
||
:root,
|
||
:host {
|
||
--chakra-vh: -moz-fill-available;
|
||
}
|
||
}
|
||
|
||
@supports (height: 100dvh) {
|
||
:root,
|
||
:host {
|
||
--chakra-vh: 100dvh;
|
||
}
|
||
}
|
||
`,o9=()=>c.jsx(Hp,{styles:iE}),i9=({scope:e=""})=>c.jsx(Hp,{styles:oE`
|
||
html {
|
||
line-height: 1.5;
|
||
-webkit-text-size-adjust: 100%;
|
||
font-family: system-ui, sans-serif;
|
||
-webkit-font-smoothing: antialiased;
|
||
text-rendering: optimizeLegibility;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
touch-action: manipulation;
|
||
}
|
||
|
||
body {
|
||
position: relative;
|
||
min-height: 100%;
|
||
margin: 0;
|
||
font-feature-settings: "kern";
|
||
}
|
||
|
||
${e} :where(*, *::before, *::after) {
|
||
border-width: 0;
|
||
border-style: solid;
|
||
box-sizing: border-box;
|
||
word-wrap: break-word;
|
||
}
|
||
|
||
main {
|
||
display: block;
|
||
}
|
||
|
||
${e} hr {
|
||
border-top-width: 1px;
|
||
box-sizing: content-box;
|
||
height: 0;
|
||
overflow: visible;
|
||
}
|
||
|
||
${e} :where(pre, code, kbd,samp) {
|
||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||
font-size: 1em;
|
||
}
|
||
|
||
${e} a {
|
||
background-color: transparent;
|
||
color: inherit;
|
||
text-decoration: inherit;
|
||
}
|
||
|
||
${e} abbr[title] {
|
||
border-bottom: none;
|
||
text-decoration: underline;
|
||
-webkit-text-decoration: underline dotted;
|
||
text-decoration: underline dotted;
|
||
}
|
||
|
||
${e} :where(b, strong) {
|
||
font-weight: bold;
|
||
}
|
||
|
||
${e} small {
|
||
font-size: 80%;
|
||
}
|
||
|
||
${e} :where(sub,sup) {
|
||
font-size: 75%;
|
||
line-height: 0;
|
||
position: relative;
|
||
vertical-align: baseline;
|
||
}
|
||
|
||
${e} sub {
|
||
bottom: -0.25em;
|
||
}
|
||
|
||
${e} sup {
|
||
top: -0.5em;
|
||
}
|
||
|
||
${e} img {
|
||
border-style: none;
|
||
}
|
||
|
||
${e} :where(button, input, optgroup, select, textarea) {
|
||
font-family: inherit;
|
||
font-size: 100%;
|
||
line-height: 1.15;
|
||
margin: 0;
|
||
}
|
||
|
||
${e} :where(button, input) {
|
||
overflow: visible;
|
||
}
|
||
|
||
${e} :where(button, select) {
|
||
text-transform: none;
|
||
}
|
||
|
||
${e} :where(
|
||
button::-moz-focus-inner,
|
||
[type="button"]::-moz-focus-inner,
|
||
[type="reset"]::-moz-focus-inner,
|
||
[type="submit"]::-moz-focus-inner
|
||
) {
|
||
border-style: none;
|
||
padding: 0;
|
||
}
|
||
|
||
${e} fieldset {
|
||
padding: 0.35em 0.75em 0.625em;
|
||
}
|
||
|
||
${e} legend {
|
||
box-sizing: border-box;
|
||
color: inherit;
|
||
display: table;
|
||
max-width: 100%;
|
||
padding: 0;
|
||
white-space: normal;
|
||
}
|
||
|
||
${e} progress {
|
||
vertical-align: baseline;
|
||
}
|
||
|
||
${e} textarea {
|
||
overflow: auto;
|
||
}
|
||
|
||
${e} :where([type="checkbox"], [type="radio"]) {
|
||
box-sizing: border-box;
|
||
padding: 0;
|
||
}
|
||
|
||
${e} input[type="number"]::-webkit-inner-spin-button,
|
||
${e} input[type="number"]::-webkit-outer-spin-button {
|
||
-webkit-appearance: none !important;
|
||
}
|
||
|
||
${e} input[type="number"] {
|
||
-moz-appearance: textfield;
|
||
}
|
||
|
||
${e} input[type="search"] {
|
||
-webkit-appearance: textfield;
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
${e} input[type="search"]::-webkit-search-decoration {
|
||
-webkit-appearance: none !important;
|
||
}
|
||
|
||
${e} ::-webkit-file-upload-button {
|
||
-webkit-appearance: button;
|
||
font: inherit;
|
||
}
|
||
|
||
${e} details {
|
||
display: block;
|
||
}
|
||
|
||
${e} summary {
|
||
display: list-item;
|
||
}
|
||
|
||
template {
|
||
display: none;
|
||
}
|
||
|
||
[hidden] {
|
||
display: none !important;
|
||
}
|
||
|
||
${e} :where(
|
||
blockquote,
|
||
dl,
|
||
dd,
|
||
h1,
|
||
h2,
|
||
h3,
|
||
h4,
|
||
h5,
|
||
h6,
|
||
hr,
|
||
figure,
|
||
p,
|
||
pre
|
||
) {
|
||
margin: 0;
|
||
}
|
||
|
||
${e} button {
|
||
background: transparent;
|
||
padding: 0;
|
||
}
|
||
|
||
${e} fieldset {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
${e} :where(ol, ul) {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
${e} textarea {
|
||
resize: vertical;
|
||
}
|
||
|
||
${e} :where(button, [role="button"]) {
|
||
cursor: pointer;
|
||
}
|
||
|
||
${e} button::-moz-focus-inner {
|
||
border: 0 !important;
|
||
}
|
||
|
||
${e} table {
|
||
border-collapse: collapse;
|
||
}
|
||
|
||
${e} :where(h1, h2, h3, h4, h5, h6) {
|
||
font-size: inherit;
|
||
font-weight: inherit;
|
||
}
|
||
|
||
${e} :where(button, input, optgroup, select, textarea) {
|
||
padding: 0;
|
||
line-height: inherit;
|
||
color: inherit;
|
||
}
|
||
|
||
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
|
||
display: block;
|
||
}
|
||
|
||
${e} :where(img, video) {
|
||
max-width: 100%;
|
||
height: auto;
|
||
}
|
||
|
||
[data-js-focus-visible]
|
||
:focus:not([data-focus-visible-added]):not(
|
||
[data-focus-visible-disabled]
|
||
) {
|
||
outline: none;
|
||
box-shadow: none;
|
||
}
|
||
|
||
${e} select::-ms-expand {
|
||
display: none;
|
||
}
|
||
|
||
${iE}
|
||
`});function a9(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=m.useMemo(()=>JM(n),[n]);return c.jsxs(K8,{theme:o,children:[c.jsx(s9,{root:t}),r]})}function s9({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return c.jsx(Hp,{styles:n=>({[t]:n.__cssVars})})}be({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function gr(e){return be({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function l9(){const{colorMode:e}=fu();return c.jsx(Hp,{styles:t=>{const n=rT(t,"styles.global"),r=Kt(n,{theme:t,colorMode:e});return r?hT(r)(t):void 0}})}const[c9,u9]=be({strict:!1,name:"PortalManagerContext"});function aE(e){const{children:t,zIndex:n}=e;return c.jsx(c9,{value:{zIndex:n},children:t})}aE.displayName="PortalManager";const Gy=m.createContext({getDocument(){return document},getWindow(){return window}});Gy.displayName="EnvironmentContext";function d9({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return ro(()=>{e&&t()},[e]),m.useContext(Gy)}function sE(e){const{children:t,environment:n,disabled:r}=e,o=m.useRef(null),i=m.useMemo(()=>n||{getDocument:()=>{var s;return((s=o.current)==null?void 0:s.ownerDocument)??document},getWindow:()=>{var s;return((s=o.current)==null?void 0:s.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return c.jsxs(Gy.Provider,{value:i,children:[t,a&&c.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}sE.displayName="EnvironmentProvider";const f9=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:d}=e,f=c.jsx(sE,{environment:s,disabled:u,children:t});return c.jsx(a9,{theme:a,cssVarsRoot:l,children:c.jsxs(rE,{colorModeManager:n,options:a.config,children:[i?c.jsx(i9,{scope:o}):c.jsx(o9,{}),!d&&c.jsx(l9,{}),r?c.jsx(aE,{zIndex:r,children:f}):f]})})},Ky=m.createContext({});function Xy(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const pu=m.createContext(null),Yy=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class p9 extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function m9({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),o=m.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=m.useContext(Yy);return m.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:u}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
||
[data-motion-pop-id="${n}"] {
|
||
position: absolute !important;
|
||
width: ${a}px !important;
|
||
height: ${s}px !important;
|
||
top: ${l}px !important;
|
||
left: ${u}px !important;
|
||
}
|
||
`),()=>{document.head.removeChild(d)}},[t]),c.jsx(p9,{isPresent:t,childRef:r,sizeRef:o,children:m.cloneElement(e,{ref:r})})}const h9=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Xy(g9),l=m.useId(),u=m.useCallback(f=>{s.set(f,!0);for(const p of s.values())if(!p)return;r&&r()},[s,r]),d=m.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:f=>(s.set(f,!1),()=>s.delete(f))}),i?[Math.random(),u]:[n,u]);return m.useMemo(()=>{s.forEach((f,p)=>s.set(p,!1))},[n]),m.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=c.jsx(m9,{isPresent:n,children:e})),c.jsx(pu.Provider,{value:d,children:e})};function g9(){return new Map}function qy(e=!0){const t=m.useContext(pu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=m.useId();m.useEffect(()=>{e&&o(i)},[e]);const a=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}function v9(){return y9(m.useContext(pu))}function y9(e){return e===null?!0:e.isPresent}const dd=e=>e.key||"";function QS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Qy=typeof window<"u",lE=Qy?m.useLayoutEffect:m.useEffect,yo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1})=>{const[s,l]=qy(a),u=m.useMemo(()=>QS(e),[e]),d=a&&!s?[]:u.map(dd),f=m.useRef(!0),p=m.useRef(u),h=Xy(()=>new Map),[v,y]=m.useState(u),[x,b]=m.useState(u);lE(()=>{f.current=!1,p.current=u;for(let w=0;w<x.length;w++){const k=dd(x[w]);d.includes(k)?h.delete(k):h.get(k)!==!0&&h.set(k,!1)}},[x,d.length,d.join("-")]);const g=[];if(u!==v){let w=[...u];for(let k=0;k<x.length;k++){const _=x[k],P=dd(_);d.includes(P)||(w.splice(k,0,_),g.push(_))}i==="wait"&&g.length&&(w=g),b(QS(w)),y(u);return}const{forceRender:S}=m.useContext(Ky);return c.jsx(c.Fragment,{children:x.map(w=>{const k=dd(w),_=a&&!s?!1:u===x||d.includes(k),P=()=>{if(h.has(k))h.set(k,!0);else return;let T=!0;h.forEach(R=>{R||(T=!1)}),T&&(S==null||S(),b(p.current),a&&(l==null||l()),r&&r())};return c.jsx(h9,{isPresent:_,initial:!f.current||n?void 0:!1,custom:_?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:_?void 0:P,children:w},k)})})},kn=e=>e;let cE=kn;function Zy(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ns=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},io=e=>e*1e3,ao=e=>e/1e3,b9={useManualTiming:!1};function x9(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(u){i.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&i.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(a=u,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}const fd=["read","resolveKeyframes","update","preRender","render","postRender"],S9=40;function uE(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=fd.reduce((b,g)=>(b[g]=x9(i),b),{}),{read:s,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:p}=a,h=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,S9),1),o.timestamp=b,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),d.process(o),f.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:fd.reduce((b,g)=>{const S=a[g];return b[g]=(w,k=!1,_=!1)=>(n||v(),S.schedule(w,k,_)),b},{}),cancel:b=>{for(let g=0;g<fd.length;g++)a[fd[g]].cancel(b)},state:o,steps:a}}const{schedule:qe,cancel:oi,state:It,steps:Ch}=uE(typeof requestAnimationFrame<"u"?requestAnimationFrame:kn,!0),dE=m.createContext({strict:!1}),ZS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Os={};for(const e in ZS)Os[e]={isEnabled:t=>ZS[e].some(n=>!!t[n])};function w9(e){for(const t in e)Os[t]={...Os[t],...e[t]}}const k9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||k9.has(e)}let fE=e=>!Yf(e);function C9(e){e&&(fE=t=>t.startsWith("on")?!Yf(t):e(t))}try{C9(require("@emotion/is-prop-valid").default)}catch{}function P9(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(fE(o)||n===!0&&Yf(o)||!t&&!Yf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function _9(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Gp=m.createContext({});function Lc(e){return typeof e=="string"||Array.isArray(e)}function Kp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Jy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eb=["initial",...Jy];function Xp(e){return Kp(e.animate)||eb.some(t=>Lc(e[t]))}function pE(e){return!!(Xp(e)||e.variants)}function T9(e,t){if(Xp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Lc(n)?n:void 0,animate:Lc(r)?r:void 0}}return e.inherit!==!1?t:{}}function E9(e){const{initial:t,animate:n}=T9(e,m.useContext(Gp));return m.useMemo(()=>({initial:t,animate:n}),[JS(t),JS(n)])}function JS(e){return Array.isArray(e)?e.join(" "):e}const j9=Symbol.for("motionComponentSymbol");function Za(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $9(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Za(n)&&(n.current=r))},[t])}const tb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),A9="framerAppearId",mE="data-"+tb(A9),{schedule:nb}=uE(queueMicrotask,!1),hE=m.createContext({});function I9(e,t,n,r,o){var i,a;const{visualElement:s}=m.useContext(Gp),l=m.useContext(dE),u=m.useContext(pu),d=m.useContext(Yy).reducedMotion,f=m.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(hE);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&R9(f.current,n,o,h);const v=m.useRef(!1);m.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const y=n[mE],x=m.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,y)));return lE(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),nb.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,y)}),x.current=!1))}),p}function R9(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gE(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&Za(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function gE(e){if(e)return e.options.allowProjection!==!1?e.projection:gE(e.parent)}function z9({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,a;e&&w9(e);function s(u,d){let f;const p={...m.useContext(Yy),...u,layoutId:M9(u)},{isStatic:h}=p,v=E9(u),y=r(u,h);if(!h&&Qy){N9();const x=O9(p);f=x.MeasureLayout,v.visualElement=I9(o,y,p,t,x.ProjectionNode)}return c.jsxs(Gp.Provider,{value:v,children:[f&&v.visualElement?c.jsx(f,{visualElement:v.visualElement,...p}):null,n(o,u,$9(y,v.visualElement,d),y,h,v.visualElement)]})}s.displayName=`motion.${typeof o=="string"?o:`create(${(a=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&a!==void 0?a:""})`}`;const l=m.forwardRef(s);return l[j9]=o,l}function M9({layoutId:e}){const t=m.useContext(Ky).id;return t&&e!==void 0?t+"-"+e:e}function N9(e,t){m.useContext(dE).strict}function O9(e){const{drag:t,layout:n}=Os;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const D9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rb(e){return typeof e!="string"||e.includes("-")?!1:!!(D9.indexOf(e)>-1||/[A-Z]/u.test(e))}function ew(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ob(e,t,n,r){if(typeof t=="function"){const[o,i]=ew(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=ew(r);t=t(n!==void 0?n:e.custom,o,i)}return t}const bv=e=>Array.isArray(e),L9=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),F9=e=>bv(e)?e[e.length-1]||0:e,Xt=e=>!!(e&&e.getVelocity);function rf(e){const t=Xt(e)?e.get():e;return L9(t)?t.toValue():t}function B9({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:V9(r,o,i,e),renderState:t()};return n&&(a.onMount=s=>n({props:r,current:s,...a}),a.onUpdate=s=>n(s)),a}const vE=e=>(t,n)=>{const r=m.useContext(Gp),o=m.useContext(pu),i=()=>B9(e,t,r,o);return n?i():Xy(i)};function V9(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=rf(i[p]);let{initial:a,animate:s}=e;const l=Xp(e),u=pE(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;if(f&&typeof f!="boolean"&&!Kp(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const v=ob(e,p[h]);if(v){const{transitionEnd:y,transition:x,...b}=v;for(const g in b){let S=b[g];if(Array.isArray(S)){const w=d?S.length-1:0;S=S[w]}S!==null&&(o[g]=S)}for(const g in y)o[g]=y[g]}}}return o}const Qs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ya=new Set(Qs),yE=e=>t=>typeof t=="string"&&t.startsWith(e),bE=yE("--"),W9=yE("var(--"),ib=e=>W9(e)?U9.test(e.split("/*")[0].trim()):!1,U9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,xE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,po=(e,t,n)=>n>t?t:n<e?e:n,Zs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Fc={...Zs,transform:e=>po(0,1,e)},pd={...Zs,default:1},mu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Eo=mu("deg"),Nr=mu("%"),de=mu("px"),H9=mu("vh"),G9=mu("vw"),tw={...Nr,parse:e=>Nr.parse(e)/100,transform:e=>Nr.transform(e*100)},K9={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de},X9={rotate:Eo,rotateX:Eo,rotateY:Eo,rotateZ:Eo,scale:pd,scaleX:pd,scaleY:pd,scaleZ:pd,skew:Eo,skewX:Eo,skewY:Eo,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:Fc,originX:tw,originY:tw,originZ:de},nw={...Zs,transform:Math.round},ab={...K9,...X9,zIndex:nw,size:de,fillOpacity:Fc,strokeOpacity:Fc,numOctaves:nw},Y9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},q9=Qs.length;function Q9(e,t,n){let r="",o=!0;for(let i=0;i<q9;i++){const a=Qs[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(a.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const u=xE(s,ab[a]);if(!l){o=!1;const d=Y9[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function sb(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const u=t[l];if(ya.has(l)){a=!0;continue}else if(bE(l)){o[l]=u;continue}else{const d=xE(u,ab[l]);l.startsWith("origin")?(s=!0,i[l]=d):r[l]=d}}if(t.transform||(a||n?r.transform=Q9(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${u} ${d}`}}const Z9={offset:"stroke-dashoffset",array:"stroke-dasharray"},J9={offset:"strokeDashoffset",array:"strokeDasharray"};function eB(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Z9:J9;e[i.offset]=de.transform(-r);const a=de.transform(t),s=de.transform(n);e[i.array]=`${a} ${s}`}function rw(e,t,n){return typeof e=="string"?e:de.transform(t+n*e)}function tB(e,t,n){const r=rw(t,e.x,e.width),o=rw(n,e.y,e.height);return`${r} ${o}`}function lb(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},d,f){if(sb(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:v}=e;p.transform&&(v&&(h.transform=p.transform),delete p.transform),v&&(o!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=tB(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&eB(p,a,s,l,!1)}const cb=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),SE=()=>({...cb(),attrs:{}}),ub=e=>typeof e=="string"&&e.toLowerCase()==="svg";function wE(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const kE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function CE(e,t,n,r){wE(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(kE.has(o)?o:tb(o),t.attrs[o])}const qf={};function nB(e){Object.assign(qf,e)}function PE(e,{layout:t,layoutId:n}){return ya.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qf[e]||e==="opacity")}function db(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(Xt(o[a])||t.style&&Xt(t.style[a])||PE(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function _E(e,t,n){const r=db(e,t,n);for(const o in e)if(Xt(e[o])||Xt(t[o])){const i=Qs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function rB(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const ow=["x","y","width","height","cx","cy","r"],oB={useVisualState:vE({scrapeMotionValuesFromProps:_E,createRenderState:SE,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(const s in o)if(ya.has(s)){i=!0;break}}if(!i)return;let a=!t;if(t)for(let s=0;s<ow.length;s++){const l=ow[s];e[l]!==t[l]&&(a=!0)}a&&qe.read(()=>{rB(n,r),qe.render(()=>{lb(r,o,ub(n.tagName),e.transformTemplate),CE(n,r)})})}})},iB={useVisualState:vE({scrapeMotionValuesFromProps:db,createRenderState:cb})};function TE(e,t,n){for(const r in t)!Xt(t[r])&&!PE(r,n)&&(e[r]=t[r])}function aB({transformTemplate:e},t){return m.useMemo(()=>{const n=cb();return sb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function sB(e,t){const n=e.style||{},r={};return TE(r,n,e),Object.assign(r,aB(e,t)),r}function lB(e,t){const n={},r=sB(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function cB(e,t,n,r){const o=m.useMemo(()=>{const i=SE();return lb(i,t,ub(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};TE(i,e.style,e),o.style={...i,...o.style}}return o}function uB(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(rb(n)?cB:lB)(r,i,a,n),u=P9(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...l,ref:o}:{},{children:f}=r,p=m.useMemo(()=>Xt(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function dB(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const a={...rb(r)?oB:iB,preloadedFeatures:e,useRender:uB(o),createVisualElement:t,Component:r};return z9(a)}}function EE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Yp(e,t,n){const r=e.getProps();return ob(r,t,n!==void 0?n:r.custom,e)}const fB=Zy(()=>window.ScrollTimeline!==void 0);class pB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(fB()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class mB extends pB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function fb(e,t){return e?e[t]||e.default||e:void 0}const xv=2e4;function jE(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<xv;)t+=n,r=e.next(t);return t>=xv?1/0:t}function pb(e){return typeof e=="function"}function iw(e,t){e.timeline=t,e.onfinish=null}const mb=e=>Array.isArray(e)&&typeof e[0]=="number",hB={linearEasing:void 0};function gB(e,t){const n=Zy(e);return()=>{var r;return(r=hB[t])!==null&&r!==void 0?r:n()}}const Qf=gB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$E=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=e(Ns(0,o-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function AE(e){return!!(typeof e=="function"&&Qf()||!e||typeof e=="string"&&(e in Sv||Qf())||mb(e)||Array.isArray(e)&&e.every(AE))}const Nl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Sv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nl([0,.65,.55,1]),circOut:Nl([.55,0,1,.45]),backIn:Nl([.31,.01,.66,-.59]),backOut:Nl([.33,1.53,.69,.99])};function IE(e,t){if(e)return typeof e=="function"&&Qf()?$E(e,t):mb(e)?Nl(e):Array.isArray(e)?e.map(n=>IE(n,t)||Sv.easeOut):Sv[e]}const nr={x:!1,y:!1};function RE(){return nr.x||nr.y}function vB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function zE(e,t){const n=vB(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function aw(e){return t=>{t.pointerType==="touch"||RE()||e(t)}}function yB(e,t,n={}){const[r,o,i]=zE(e,n),a=aw(s=>{const{target:l}=s,u=t(s);if(typeof u!="function"||!l)return;const d=aw(f=>{u(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(s=>{s.addEventListener("pointerenter",a,o)}),i}const ME=(e,t)=>t?e===t?!0:ME(e,t.parentElement):!1,hb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xB(e){return bB.has(e.tagName)||e.tabIndex!==-1}const Ol=new WeakSet;function sw(e){return t=>{t.key==="Enter"&&e(t)}}function Ph(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sw(()=>{if(Ol.has(n))return;Ph(n,"down");const o=sw(()=>{Ph(n,"up")}),i=()=>Ph(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function lw(e){return hb(e)&&!RE()}function wB(e,t,n={}){const[r,o,i]=zE(e,n),a=s=>{const l=s.currentTarget;if(!lw(s)||Ol.has(l))return;Ol.add(l);const u=t(s),d=(h,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!lw(h)||!Ol.has(l))&&(Ol.delete(l),typeof u=="function"&&u(h,{success:v}))},f=h=>{d(h,n.useGlobalTarget||ME(l,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",p,o)};return r.forEach(s=>{!xB(s)&&s.getAttribute("tabindex")===null&&(s.tabIndex=0),(n.useGlobalTarget?window:s).addEventListener("pointerdown",a,o),s.addEventListener("focus",u=>SB(u,o),o)}),i}function kB(e){return e==="x"||e==="y"?nr[e]?null:(nr[e]=!0,()=>{nr[e]=!1}):nr.x||nr.y?null:(nr.x=nr.y=!0,()=>{nr.x=nr.y=!1})}const NE=new Set(["width","height","top","left","right","bottom",...Qs]);let of;function CB(){of=void 0}const Or={now:()=>(of===void 0&&Or.set(It.isProcessing||b9.useManualTiming?It.timestamp:performance.now()),of),set:e=>{of=e,queueMicrotask(CB)}};function gb(e,t){e.indexOf(t)===-1&&e.push(t)}function vb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class yb{constructor(){this.subscriptions=[]}add(t){return gb(this.subscriptions,t),()=>vb(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function OE(e,t){return t?e*(1e3/t):0}const cw=30,PB=e=>!isNaN(parseFloat(e));class _B{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Or.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Or.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=PB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yb);const r=this.events[t].add(n);return t==="change"?()=>{r(),qe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Or.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cw);return OE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bc(e,t){return new _B(e,t)}function TB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bc(n))}function EB(e,t){const n=Yp(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=F9(i[a]);TB(e,a,s)}}function jB(e){return!!(Xt(e)&&e.add)}function wv(e,t){const n=e.getValue("willChange");if(jB(n))return n.add(t)}function DE(e){return e.props[mE]}const LE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$B=1e-7,AB=12;function IB(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=LE(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>$B&&++s<AB);return a}function hu(e,t,n,r){if(e===t&&n===r)return kn;const o=i=>IB(i,0,1,e,n);return i=>i===0||i===1?i:LE(o(i),t,r)}const FE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,BE=e=>t=>1-e(1-t),VE=hu(.33,1.53,.69,.99),bb=BE(VE),WE=FE(bb),UE=e=>(e*=2)<1?.5*bb(e):.5*(2-Math.pow(2,-10*(e-1))),xb=e=>1-Math.sin(Math.acos(e)),HE=BE(xb),GE=FE(xb),KE=e=>/^0[^.\s]+$/u.test(e);function RB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||KE(e):!0}const ac=e=>Math.round(e*1e5)/1e5,Sb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zB(e){return e==null}const MB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wb=(e,t)=>n=>!!(typeof n=="string"&&MB.test(n)&&n.startsWith(e)||t&&!zB(n)&&Object.prototype.hasOwnProperty.call(n,t)),XE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,a,s]=r.match(Sb);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},NB=e=>po(0,255,e),_h={...Zs,transform:e=>Math.round(NB(e))},Li={test:wb("rgb","red"),parse:XE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_h.transform(e)+", "+_h.transform(t)+", "+_h.transform(n)+", "+ac(Fc.transform(r))+")"};function OB(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const kv={test:wb("#"),parse:OB,transform:Li.transform},Ja={test:wb("hsl","hue"),parse:XE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Nr.transform(ac(t))+", "+Nr.transform(ac(n))+", "+ac(Fc.transform(r))+")"},Ht={test:e=>Li.test(e)||kv.test(e)||Ja.test(e),parse:e=>Li.test(e)?Li.parse(e):Ja.test(e)?Ja.parse(e):kv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Li.transform(e):Ja.transform(e)},DB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function LB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Sb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(DB))===null||n===void 0?void 0:n.length)||0)>0}const YE="number",qE="color",FB="var",BB="var(",uw="${}",VB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(VB,l=>(Ht.test(l)?(r.color.push(i),o.push(qE),n.push(Ht.parse(l))):l.startsWith(BB)?(r.var.push(i),o.push(FB),n.push(l)):(r.number.push(i),o.push(YE),n.push(parseFloat(l))),++i,uw)).split(uw);return{values:n,split:s,indexes:r,types:o}}function QE(e){return Vc(e).values}function ZE(e){const{split:t,types:n}=Vc(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===YE?i+=ac(o[a]):s===qE?i+=Ht.transform(o[a]):i+=o[a]}return i}}const WB=e=>typeof e=="number"?0:e;function UB(e){const t=QE(e);return ZE(e)(t.map(WB))}const ii={test:LB,parse:QE,createTransformer:ZE,getAnimatableNone:UB},HB=new Set(["brightness","contrast","saturate","opacity"]);function GB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sb)||[];if(!r)return e;const o=n.replace(r,"");let i=HB.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const KB=/\b([a-z-]*)\(.*?\)/gu,Cv={...ii,getAnimatableNone:e=>{const t=e.match(KB);return t?t.map(GB).join(" "):e}},XB={...ab,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:Cv,WebkitFilter:Cv},kb=e=>XB[e];function JE(e,t){let n=kb(e);return n!==Cv&&(n=ii),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const YB=new Set(["auto","none","0"]);function qB(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!YB.has(i)&&Vc(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=JE(n,o)}const dw=e=>e===Zs||e===de,fw=(e,t)=>parseFloat(e.split(", ")[t]),pw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return fw(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?fw(i[1],e):0}},QB=new Set(["x","y","z"]),ZB=Qs.filter(e=>!QB.has(e));function JB(e){const t=[];return ZB.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ds={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:pw(4,13),y:pw(5,14)};Ds.translateX=Ds.x;Ds.translateY=Ds.y;const Xi=new Set;let Pv=!1,_v=!1;function ej(){if(_v){const e=Array.from(Xi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=JB(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_v=!1,Pv=!1,Xi.forEach(e=>e.complete()),Xi.clear()}function tj(){Xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_v=!0)})}function e7(){tj(),ej()}class Cb{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xi.add(this),Pv||(Pv=!0,qe.read(tj),qe.resolveKeyframes(ej))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const nj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),t7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function n7(e){const t=t7.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function rj(e,t,n=1){const[r,o]=n7(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return nj(a)?parseFloat(a):a}return ib(o)?rj(o,t,n+1):o}const oj=e=>t=>t.test(e),r7={test:e=>e==="auto",parse:e=>e},ij=[Zs,de,Nr,Eo,G9,H9,r7],mw=e=>ij.find(oj(e));class aj extends Cb{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ib(u))){const d=rj(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!NE.has(r)||t.length!==2)return;const[o,i]=t,a=mw(o),s=mw(i);if(a!==s)if(dw(a)&&dw(s))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)RB(t[o])&&r.push(o);r.length&&qB(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ds[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=Ds[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const hw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ii.test(e)||e==="0")&&!e.startsWith("url("));function o7(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function i7(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=hw(o,t),s=hw(i,t);return!a||!s?!1:o7(e)||(n==="spring"||pb(n))&&r}const a7=e=>e!==null;function qp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(a7),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const s7=40;class sj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Or.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>s7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&e7(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Or.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:u}=this.options;if(!u&&!i7(t,r,o,i))if(a)this.options.duration=0;else{l&&l(qp(t,this.options,n)),s&&s(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const nt=(e,t,n)=>e+(t-e)*n;function Th(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=Th(l,s,e+1/3),i=Th(l,s,e),a=Th(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Zf(e,t){return n=>n>0?t:e}const Eh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},c7=[kv,Li,Ja],u7=e=>c7.find(t=>t.test(e));function gw(e){const t=u7(e);if(!t)return!1;let n=t.parse(e);return t===Ja&&(n=l7(n)),n}const vw=(e,t)=>{const n=gw(e),r=gw(t);if(!n||!r)return Zf(e,t);const o={...n};return i=>(o.red=Eh(n.red,r.red,i),o.green=Eh(n.green,r.green,i),o.blue=Eh(n.blue,r.blue,i),o.alpha=nt(n.alpha,r.alpha,i),Li.transform(o))},d7=(e,t)=>n=>t(e(n)),gu=(...e)=>e.reduce(d7),Tv=new Set(["none","hidden"]);function f7(e,t){return Tv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function p7(e,t){return n=>nt(e,t,n)}function Pb(e){return typeof e=="number"?p7:typeof e=="string"?ib(e)?Zf:Ht.test(e)?vw:g7:Array.isArray(e)?lj:typeof e=="object"?Ht.test(e)?vw:m7:Zf}function lj(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Pb(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function m7(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Pb(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function h7(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const g7=(e,t)=>{const n=ii.createTransformer(t),r=Vc(e),o=Vc(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Tv.has(e)&&!o.values.length||Tv.has(t)&&!r.values.length?f7(e,t):gu(lj(h7(r,o),o.values),n):Zf(e,t)};function cj(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?nt(e,t,n):Pb(e)(e,t)}const v7=5;function uj(e,t,n){const r=Math.max(t-v7,0);return OE(n-e(r),t-r)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jh=.001;function y7({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:r=lt.mass}){let o,i,a=1-t;a=po(lt.minDamping,lt.maxDamping,a),e=po(lt.minDuration,lt.maxDuration,ao(e)),a<1?(o=u=>{const d=u*a,f=d*e,p=d-n,h=Ev(u,a),v=Math.exp(-f);return jh-p/h*v},i=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),y=Ev(Math.pow(u,2),a);return(-o(u)+jh>0?-1:1)*((p-h)*v)/y}):(o=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-jh+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const s=5/e,l=x7(o,i,s);if(e=io(e),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const b7=12;function x7(e,t,n){let r=n;for(let o=1;o<b7;o++)r=r-e(r)/t(r);return r}function Ev(e,t){return e*Math.sqrt(1-t*t)}const S7=["duration","bounce"],w7=["stiffness","damping","mass"];function yw(e,t){return t.some(n=>e[n]!==void 0)}function k7(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!yw(e,w7)&&yw(e,S7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*po(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lt.mass,stiffness:o,damping:i}}else{const n=y7(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function dj(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=k7({...n,velocity:-ao(n.velocity||0)}),v=p||0,y=u/(2*Math.sqrt(l*d)),x=a-i,b=ao(Math.sqrt(l/d)),g=Math.abs(x)<5;r||(r=g?lt.restSpeed.granular:lt.restSpeed.default),o||(o=g?lt.restDelta.granular:lt.restDelta.default);let S;if(y<1){const k=Ev(b,y);S=_=>{const P=Math.exp(-y*b*_);return a-P*((v+y*b*x)/k*Math.sin(k*_)+x*Math.cos(k*_))}}else if(y===1)S=k=>a-Math.exp(-b*k)*(x+(v+b*x)*k);else{const k=b*Math.sqrt(y*y-1);S=_=>{const P=Math.exp(-y*b*_),T=Math.min(k*_,300);return a-P*((v+y*b*x)*Math.sinh(T)+k*x*Math.cosh(T))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const _=S(k);if(h)s.done=k>=f;else{let P=0;y<1&&(P=k===0?io(v):uj(S,k,_));const T=Math.abs(P)<=r,R=Math.abs(a-_)<=o;s.done=T&&R}return s.value=s.done?a:_,s},toString:()=>{const k=Math.min(jE(w),xv),_=$E(P=>w.next(k*P).value,k,30);return k+"ms "+_}};return w}function bw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=T=>s!==void 0&&T<s||l!==void 0&&T>l,v=T=>s===void 0?l:l===void 0||Math.abs(s-T)<Math.abs(l-T)?s:l;let y=n*t;const x=f+y,b=a===void 0?x:a(x);b!==x&&(y=b-f);const g=T=>-y*Math.exp(-T/r),S=T=>b+g(T),w=T=>{const R=g(T),E=S(T);p.done=Math.abs(R)<=u,p.value=p.done?b:E};let k,_;const P=T=>{h(p.value)&&(k=T,_=dj({keyframes:[p.value,v(p.value)],velocity:uj(S,T,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:T=>{let R=!1;return!_&&k===void 0&&(R=!0,w(T),P(T)),k!==void 0&&T>=k?_.next(T-k):(!R&&w(T),p)}}}const C7=hu(.42,0,1,1),P7=hu(0,0,.58,1),fj=hu(.42,0,.58,1),_7=e=>Array.isArray(e)&&typeof e[0]!="number",T7={linear:kn,easeIn:C7,easeInOut:fj,easeOut:P7,circIn:xb,circInOut:GE,circOut:HE,backIn:bb,backInOut:WE,backOut:VE,anticipate:UE},xw=e=>{if(mb(e)){cE(e.length===4);const[t,n,r,o]=e;return hu(t,n,r,o)}else if(typeof e=="string")return T7[e];return e};function E7(e,t,n){const r=[],o=n||cj,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||kn:t;s=gu(l,s)}r.push(s)}return r}function j7(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(cE(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=E7(t,r,o),l=s.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const p=Ns(e[f],e[f+1],d);return s[f](p)};return n?d=>u(po(e[0],e[i-1],d)):u}function $7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ns(0,t,r);e.push(nt(n,1,o))}}function A7(e){const t=[0];return $7(t,e.length-1),t}function I7(e,t){return e.map(n=>n*t)}function R7(e,t){return e.map(()=>t||fj).splice(0,e.length-1)}function Jf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=_7(r)?r.map(xw):xw(r),i={done:!1,value:t[0]},a=I7(n&&n.length===t.length?n:A7(t),e),s=j7(a,t,{ease:Array.isArray(o)?o:R7(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const z7=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qe.update(t,!0),stop:()=>oi(t),now:()=>It.isProcessing?It.timestamp:Or.now()}},M7={decay:bw,inertia:bw,tween:Jf,keyframes:Jf,spring:dj},N7=e=>e/100;class _b extends sj{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,a=(o==null?void 0:o.KeyframeResolver)||Cb,s=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(i,s,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=pb(n)?n:M7[n]||Jf;let l,u;s!==Jf&&typeof t[0]!="number"&&(l=gu(N7,cj(t[0],t[1])),t=[0,100]);const d=s({...this.options,keyframes:t});i==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=jE(d));const{calculatedDuration:f}=d,p=f+o,h=p*(r+1)-o;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:v,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-p*(this.speed>=0?1:-1),g=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=i;if(h){const T=Math.min(this.currentTime,d)/f;let R=Math.floor(T),E=T%1;!E&&T>=1&&(E=1),E===1&&R--,R=Math.min(R,h+1),!!(R%2)&&(v==="reverse"?(E=1-E,y&&(E-=y/f)):v==="mirror"&&(w=a)),S=po(0,1,E)*f}const k=g?{done:!1,value:l[0]}:w.next(S);s&&(k.value=s(k.value));let{done:_}=k;!g&&u!==null&&(_=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return P&&o!==void 0&&(k.value=qp(l,this.options,o)),x&&x(k.value),P&&this.finish(),k}get duration(){const{resolved:t}=this;return t?ao(t.calculatedDuration):0}get time(){return ao(this.currentTime)}set time(t){t=io(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ao(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=z7,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const O7=new Set(["opacity","clipPath","filter","transform"]);function D7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=IE(s,o);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const L7=Zy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ep=10,F7=2e4;function B7(e){return pb(e.type)||e.type==="spring"||!AE(e.ease)}function V7(e,t){const n=new _b({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<F7;)r=n.sample(i),o.push(r.value),i+=ep;return{times:void 0,keyframes:o,duration:i-ep,ease:"linear"}}const pj={anticipate:UE,backInOut:WE,circInOut:GE};function W7(e){return e in pj}class Sw extends sj{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:i}=this.options;this.resolver=new aj(i,(a,s)=>this.onKeyframesResolved(a,s),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:a,motionValue:s,name:l,startTime:u}=this.options;if(!s.owner||!s.owner.current)return!1;if(typeof i=="string"&&Qf()&&W7(i)&&(i=pj[i]),B7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:v,...y}=this.options,x=V7(t,y);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,o=x.times,i=x.ease,a="keyframes"}const d=D7(s.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(iw(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;s.set(qp(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:a,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ao(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ao(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=io(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kn;const{animation:r}=n;iw(r,t)}return kn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:p,...h}=this.options,v=new _b({...h,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),y=io(this.time);u.setWithVelocity(v.sample(y-ep).value,v.sample(y).value,ep)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return L7()&&r&&O7.has(r)&&!l&&!u&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const U7={type:"spring",stiffness:500,damping:25,restSpeed:10},H7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G7={type:"keyframes",duration:.8},K7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},X7=(e,{keyframes:t})=>t.length>2?G7:ya.has(e)?e.startsWith("scale")?H7(t[1]):U7:K7;function Y7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Tb=(e,t,n,r={},o,i)=>a=>{const s=fb(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-io(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};Y7(s)||(d={...d,...X7(e,d)}),d.duration&&(d.duration=io(d.duration)),d.repeatDelay&&(d.repeatDelay=io(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=qp(d.keyframes,s);if(p!==void 0)return qe.update(()=>{d.onUpdate(p),d.onComplete()}),new mB([])}return!i&&Sw.supports(d)?new Sw(d):new _b(d)};function q7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mj(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in l){const p=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),h=l[f];if(h===void 0||d&&q7(d,f))continue;const v={delay:n,...fb(a||{},f)};let y=!1;if(window.MotionHandoffAnimation){const b=DE(e);if(b){const g=window.MotionHandoffAnimation(b,f,qe);g!==null&&(v.startTime=g,y=!0)}}wv(e,f),p.start(Tb(f,p,h,e.shouldReduceMotion&&NE.has(f)?{type:!1}:v,e,y));const x=p.animation;x&&u.push(x)}return s&&Promise.all(u).then(()=>{qe.update(()=>{s&&EB(e,s)})}),u}function jv(e,t,n={}){var r;const o=Yp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(mj(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=i;return Q7(e,t,d+u,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,d]=l==="beforeChildren"?[a,s]:[s,a];return u().then(()=>d())}else return Promise.all([a(),s(n.delay)])}function Q7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(Z7).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(jv(u,t,{...i,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function Z7(e,t){return e.sortNodePosition(t)}function J7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>jv(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=jv(e,t,n);else{const o=typeof t=="function"?Yp(e,t,n.custom):t;r=Promise.all(mj(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const eV=eb.length;function hj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?hj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<eV;n++){const r=eb[n],o=e.props[r];(Lc(o)||o===!1)&&(t[r]=o)}return t}const tV=[...Jy].reverse(),nV=Jy.length;function rV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>J7(e,n,r)))}function oV(e){let t=rV(e),n=ww(),r=!0;const o=l=>(u,d)=>{var f;const p=Yp(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:v,...y}=p;u={...u,...y,...v}}return u};function i(l){t=l(e)}function a(l){const{props:u}=e,d=hj(e.parent)||{},f=[],p=new Set;let h={},v=1/0;for(let x=0;x<nV;x++){const b=tV[x],g=n[b],S=u[b]!==void 0?u[b]:d[b],w=Lc(S),k=b===l?g.isActive:null;k===!1&&(v=x);let _=S===d[b]&&S!==u[b]&&w;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),g.protectedKeys={...h},!g.isActive&&k===null||!S&&!g.prevProp||Kp(S)||typeof S=="boolean")continue;const P=iV(g.prevProp,S);let T=P||b===l&&g.isActive&&!_&&w||x>v&&w,R=!1;const E=Array.isArray(S)?S:[S];let D=E.reduce(o(b),{});k===!1&&(D={});const{prevResolvedValues:K={}}=g,J={...K,...D},A=z=>{T=!0,p.has(z)&&(R=!0,p.delete(z)),g.needsAnimating[z]=!0;const O=e.getValue(z);O&&(O.liveStyle=!1)};for(const z in J){const O=D[z],I=K[z];if(h.hasOwnProperty(z))continue;let L=!1;bv(O)&&bv(I)?L=!EE(O,I):L=O!==I,L?O!=null?A(z):p.add(z):O!==void 0&&p.has(z)?A(z):g.protectedKeys[z]=!0}g.prevProp=S,g.prevResolvedValues=D,g.isActive&&(h={...h,...D}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(_&&P)||R)&&f.push(...E.map(z=>({animation:z,options:{type:b}})))}if(p.size){const x={};p.forEach(b=>{const g=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),x[b]=g??null}),f.push({animation:x})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function s(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=ww(),r=!0}}}function iV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!EE(t,e):!1}function Pi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ww(){return{animate:Pi(!0),whileInView:Pi(),whileHover:Pi(),whileTap:Pi(),whileDrag:Pi(),whileFocus:Pi(),exit:Pi()}}class mi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class aV extends mi{constructor(t){super(t),t.animationState||(t.animationState=oV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Kp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let sV=0;class lV extends mi{constructor(){super(...arguments),this.id=sV++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const cV={animation:{Feature:aV},exit:{Feature:lV}};function Wc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function vu(e){return{point:{x:e.pageX,y:e.pageY}}}const uV=e=>t=>hb(t)&&e(t,vu(t));function sc(e,t,n,r){return Wc(e,t,uV(n),r)}const kw=(e,t)=>Math.abs(e-t);function dV(e,t){const n=kw(e.x,t.x),r=kw(e.y,t.y);return Math.sqrt(n**2+r**2)}class gj{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ah(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=dV(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=f,{timestamp:y}=It;this.history.push({...v,timestamp:y});const{onStart:x,onMove:b}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=$h(p,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ah(f.type==="pointercancel"?this.lastMoveEventInfo:$h(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),v&&v(f,x)},!hb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=vu(t),s=$h(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=It;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Ah(s,this.history)),this.removeListeners=gu(sc(this.contextWindow,"pointermove",this.handlePointerMove),sc(this.contextWindow,"pointerup",this.handlePointerUp),sc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oi(this.updatePoint)}}function $h(e,t){return t?{point:t(e.point)}:e}function Cw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ah({point:e},t){return{point:e,delta:Cw(e,vj(t)),offset:Cw(e,fV(t)),velocity:pV(t,.1)}}function fV(e){return e[0]}function vj(e){return e[e.length-1]}function pV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=vj(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>io(t)));)n--;if(!r)return{x:0,y:0};const i=ao(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const yj=1e-4,mV=1-yj,hV=1+yj,bj=.01,gV=0-bj,vV=0+bj;function _n(e){return e.max-e.min}function yV(e,t,n){return Math.abs(e-t)<=n}function Pw(e,t,n,r=.5){e.origin=r,e.originPoint=nt(t.min,t.max,e.origin),e.scale=_n(n)/_n(t),e.translate=nt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mV&&e.scale<=hV||isNaN(e.scale))&&(e.scale=1),(e.translate>=gV&&e.translate<=vV||isNaN(e.translate))&&(e.translate=0)}function lc(e,t,n,r){Pw(e.x,t.x,n.x,r?r.originX:void 0),Pw(e.y,t.y,n.y,r?r.originY:void 0)}function _w(e,t,n){e.min=n.min+t.min,e.max=e.min+_n(t)}function bV(e,t,n){_w(e.x,t.x,n.x),_w(e.y,t.y,n.y)}function Tw(e,t,n){e.min=t.min-n.min,e.max=e.min+_n(t)}function cc(e,t,n){Tw(e.x,t.x,n.x),Tw(e.y,t.y,n.y)}function xV(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nt(n,e,r.max):Math.min(e,n)),e}function Ew(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function SV(e,{top:t,left:n,bottom:r,right:o}){return{x:Ew(e.x,n,o),y:Ew(e.y,t,r)}}function jw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wV(e,t){return{x:jw(e.x,t.x),y:jw(e.y,t.y)}}function kV(e,t){let n=.5;const r=_n(e),o=_n(t);return o>r?n=Ns(t.min,t.max-r,e.min):r>o&&(n=Ns(e.min,e.max-o,t.min)),po(0,1,n)}function CV(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $v=.35;function PV(e=$v){return e===!1?e=0:e===!0&&(e=$v),{x:$w(e,"left","right"),y:$w(e,"top","bottom")}}function $w(e,t,n){return{min:Aw(e,t),max:Aw(e,n)}}function Aw(e,t){return typeof e=="number"?e:e[t]||0}const Iw=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:Iw(),y:Iw()}),Rw=()=>({min:0,max:0}),ft=()=>({x:Rw(),y:Rw()});function Ln(e){return[e("x"),e("y")]}function xj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _V({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TV(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ih(e){return e===void 0||e===1}function Av({scale:e,scaleX:t,scaleY:n}){return!Ih(e)||!Ih(t)||!Ih(n)}function ji(e){return Av(e)||Sj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sj(e){return zw(e.x)||zw(e.y)}function zw(e){return e&&e!=="0%"}function tp(e,t,n){const r=e-n,o=t*r;return n+o}function Mw(e,t,n,r,o){return o!==void 0&&(e=tp(e,o,r)),tp(e,n,r)+t}function Iv(e,t=0,n=1,r,o){e.min=Mw(e.min,t,n,r,o),e.max=Mw(e.max,t,n,r,o)}function wj(e,{x:t,y:n}){Iv(e.x,t.translate,t.scale,t.originPoint),Iv(e.y,n.translate,n.scale,n.originPoint)}const Nw=.999999999999,Ow=1.0000000000001;function EV(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ns(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wj(e,a)),r&&ji(i.latestValues)&&ns(e,i.latestValues))}t.x<Ow&&t.x>Nw&&(t.x=1),t.y<Ow&&t.y>Nw&&(t.y=1)}function ts(e,t){e.min=e.min+t,e.max=e.max+t}function Dw(e,t,n,r,o=.5){const i=nt(e.min,e.max,o);Iv(e,t,n,i,r)}function ns(e,t){Dw(e.x,t.x,t.scaleX,t.scale,t.originX),Dw(e.y,t.y,t.scaleY,t.scale,t.originY)}function kj(e,t){return xj(TV(e.getBoundingClientRect(),t))}function jV(e,t,n){const r=kj(e,n),{scroll:o}=t;return o&&(ts(r.x,o.offset.x),ts(r.y,o.offset.y)),r}const Cj=({current:e})=>e?e.ownerDocument.defaultView:null,$V=new WeakMap;class AV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ft(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(vu(d).point)},i=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kB(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ln(x=>{let b=this.getAxisMotionValue(x).get()||0;if(Nr.test(b)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[x];S&&(b=_n(S)*(parseFloat(b)/100))}}this.originPoint[x]=b}),v&&qe.postRender(()=>v(d,f)),wv(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:v,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=IV(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&y(d,f)},s=(d,f)=>this.stop(d,f),l=()=>Ln(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new gj(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Cj(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&qe.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!md(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=xV(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Za(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=SV(o.layoutBox,n):this.constraints=!1,this.elastic=PV(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ln(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=CV(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Za(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=jV(r,o.root,this.visualElement.getTransformPagePoint());let a=wV(o.layout.layoutBox,i);if(n){const s=n(_V(a));this.hasMutatedConstraints=!!s,s&&(a=xj(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Ln(d=>{if(!md(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return wv(this.visualElement,t),r.start(Tb(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ln(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ln(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ln(n=>{const{drag:r}=this.getProps();if(!md(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-nt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Za(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ln(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=kV({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ln(a=>{if(!md(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(nt(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;$V.set(this.visualElement,this);const t=this.visualElement.current,n=sc(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Za(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),qe.read(r);const a=Wc(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ln(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=$v,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function md(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function IV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class RV extends mi{constructor(t){super(t),this.removeGroupControls=kn,this.removeListeners=kn,this.controls=new AV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Lw=e=>(t,n)=>{e&&qe.postRender(()=>e(t,n))};class zV extends mi{constructor(){super(...arguments),this.removePointerDownListener=kn}onPointerDown(t){this.session=new gj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cj(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Lw(t),onStart:Lw(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&qe.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=sc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const af={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const n=Fw(e,t.target.x),r=Fw(e,t.target.y);return`${n}% ${r}%`}},MV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ii.parse(e);if(o.length>5)return r;const i=ii.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=nt(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class NV extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;nB(OV),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),af.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||qe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Pj(e){const[t,n]=qy(),r=m.useContext(Ky);return c.jsx(NV,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(hE),isPresent:t,safeToRemove:n})}const OV={borderRadius:{...wl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wl,borderTopRightRadius:wl,borderBottomLeftRadius:wl,borderBottomRightRadius:wl,boxShadow:MV};function DV(e,t,n){const r=Xt(e)?e:Bc(e);return r.start(Tb("",r,t,n)),r.animation}function LV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const FV=(e,t)=>e.depth-t.depth;class BV{constructor(){this.children=[],this.isDirty=!1}add(t){gb(this.children,t),this.isDirty=!0}remove(t){vb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FV),this.isDirty=!1,this.children.forEach(t)}}function VV(e,t){const n=Or.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(oi(r),e(i-t))};return qe.read(r,!0),()=>oi(r)}const _j=["TopLeft","TopRight","BottomLeft","BottomRight"],WV=_j.length,Bw=e=>typeof e=="string"?parseFloat(e):e,Vw=e=>typeof e=="number"||de.test(e);function UV(e,t,n,r,o,i){o?(e.opacity=nt(0,n.opacity!==void 0?n.opacity:1,HV(r)),e.opacityExit=nt(t.opacity!==void 0?t.opacity:1,0,GV(r))):i&&(e.opacity=nt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<WV;a++){const s=`border${_j[a]}Radius`;let l=Ww(t,s),u=Ww(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Vw(l)===Vw(u)?(e[s]=Math.max(nt(Bw(l),Bw(u),r),0),(Nr.test(u)||Nr.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||n.rotate)&&(e.rotate=nt(t.rotate||0,n.rotate||0,r))}function Ww(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const HV=Tj(0,.5,HE),GV=Tj(.5,.95,kn);function Tj(e,t,n){return r=>r<e?0:r>t?1:n(Ns(e,t,r))}function Uw(e,t){e.min=t.min,e.max=t.max}function On(e,t){Uw(e.x,t.x),Uw(e.y,t.y)}function Hw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gw(e,t,n,r,o){return e-=t,e=tp(e,1/n,r),o!==void 0&&(e=tp(e,1/o,r)),e}function KV(e,t=0,n=1,r=.5,o,i=e,a=e){if(Nr.test(t)&&(t=parseFloat(t),t=nt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=nt(i.min,i.max,r);e===i&&(s-=t),e.min=Gw(e.min,t,n,s,o),e.max=Gw(e.max,t,n,s,o)}function Kw(e,t,[n,r,o],i,a){KV(e,t[n],t[r],t[o],t.scale,i,a)}const XV=["x","scaleX","originX"],YV=["y","scaleY","originY"];function Xw(e,t,n,r){Kw(e.x,t,XV,n?n.x:void 0,r?r.x:void 0),Kw(e.y,t,YV,n?n.y:void 0,r?r.y:void 0)}function Yw(e){return e.translate===0&&e.scale===1}function Ej(e){return Yw(e.x)&&Yw(e.y)}function qw(e,t){return e.min===t.min&&e.max===t.max}function qV(e,t){return qw(e.x,t.x)&&qw(e.y,t.y)}function Qw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jj(e,t){return Qw(e.x,t.x)&&Qw(e.y,t.y)}function Zw(e){return _n(e.x)/_n(e.y)}function Jw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class QV{constructor(){this.members=[]}add(t){gb(this.members,t),t.scheduleRender()}remove(t){if(vb(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ZV(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const $i={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Dl=typeof window<"u"&&window.MotionDebug!==void 0,Rh=["","X","Y","Z"],JV={visibility:"hidden"},ek=1e3;let eW=0;function zh(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function $j(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=DE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&$j(r)}function Aj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=eW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Dl&&($i.totalNodes=$i.resolvedTargetDeltas=$i.recalculatedProjection=0),this.nodes.forEach(rW),this.nodes.forEach(lW),this.nodes.forEach(cW),this.nodes.forEach(oW),Dl&&window.MotionDebug.record($i)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new BV)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new yb),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=LV(a),this.instance=a;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=VV(p,250),af.hasAnimatedSinceResize&&(af.hasAnimatedSinceResize=!1,this.nodes.forEach(nk))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||mW,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=d.getProps(),g=!this.targetLayout||!jj(this.targetLayout,v)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...fb(y,"layout"),onPlay:x,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||nk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,oi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uW),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$j(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tk);return}this.isUpdating||this.nodes.forEach(aW),this.isUpdating=!1,this.nodes.forEach(sW),this.nodes.forEach(tW),this.nodes.forEach(nW),this.clearAllSnapshots();const s=Or.now();It.delta=po(0,1e3/60,s-It.timestamp),It.timestamp=s,It.isProcessing=!0,Ch.update.process(It),Ch.preRender.process(It),Ch.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iW),this.sharedNodes.forEach(dW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ft(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Ej(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(s||ji(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),hW(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:s}=this.options;if(!s)return ft();const l=s.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(gW))){const{scroll:d}=this.root;d&&(ts(l.x,d.offset.x),ts(l.y,d.offset.y))}return l}removeElementScroll(a){var s;const l=ft();if(On(l,a),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&On(l,a),ts(l.x,f.offset.x),ts(l.y,f.offset.y))}return l}applyTransform(a,s=!1){const l=ft();On(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ns(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ji(d.latestValues)&&ns(l,d.latestValues)}return ji(this.latestValues)&&ns(l,this.latestValues),l}removeTransform(a){const s=ft();On(s,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ji(u.latestValues))continue;Av(u.latestValues)&&u.updateSnapshot();const d=ft(),f=u.measurePageBox();On(d,f),Xw(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ji(this.latestValues)&&Xw(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=It.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ft(),this.relativeTargetOrigin=ft(),cc(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ft(),this.targetWithTransforms=ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):On(this.target,this.layout.layoutBox),wj(this.target,this.targetDelta)):On(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ft(),this.relativeTargetOrigin=ft(),cc(this.relativeTargetOrigin,this.target,h.target),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Dl&&$i.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Av(this.parent.latestValues)||Sj(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===It.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;On(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;EV(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ft());const{target:v}=s;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hw(this.prevProjectionDelta.x,this.projectionDelta.x),Hw(this.prevProjectionDelta.y,this.projectionDelta.y)),lc(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==h||!Jw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Dl&&$i.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(a,s=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=ft(),h=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=h!==v,x=this.getStack(),b=!x||x.members.length<=1,g=!!(y&&!b&&this.options.crossfade===!0&&!this.path.some(pW));this.animationProgress=0;let S;this.mixTargetDelta=w=>{const k=w/1e3;rk(f.x,a.x,k),rk(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fW(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&qV(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=ft()),On(S,this.relativeTarget)),y&&(this.animationValues=d,UV(d,u,this.latestValues,k,g,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(oi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qe.update(()=>{af.hasAnimatedSinceResize=!0,this.currentAnimation=DV(0,ek,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ek),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:d}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&Ij(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ft();const f=_n(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=_n(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}On(s,l),ns(s,d),lc(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new QV),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&zh("z",a,u,this.animationValues);for(let d=0;d<Rh.length;d++)zh(`rotate${Rh[d]}`,a,u,this.animationValues),zh(`skew${Rh[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return JV;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=rf(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=rf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ji(this.latestValues)&&(y.transform=d?d({},""):"none",this.hasProjected=!1),y}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=ZV(this.projectionDeltaWithTransform,this.treeScale,p),d&&(u.transform=d(p,u.transform));const{x:h,y:v}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${v.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const y in qf){if(p[y]===void 0)continue;const{correct:x,applyTo:b}=qf[y],g=u.transform==="none"?p[y]:x(p[y],f);if(b){const S=b.length;for(let w=0;w<S;w++)u[b[w]]=g}else u[y]=g}return this.options.layoutId&&(u.pointerEvents=f===this?rf(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(tk),this.root.sharedNodes.clear()}}}function tW(e){e.updateLayout()}function nW(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?Ln(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=_n(p);p.min=r[f].min,p.max=p.min+h}):Ij(i,n.layoutBox,r)&&Ln(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=_n(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=es();lc(s,r,n.layoutBox);const l=es();a?lc(l,e.applyTransform(o,!0),n.measuredBox):lc(l,r,n.layoutBox);const u=!Ej(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const v=ft();cc(v,n.layoutBox,p.layoutBox);const y=ft();cc(y,r,h.layoutBox),jj(v,y)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rW(e){Dl&&$i.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iW(e){e.clearSnapshot()}function tk(e){e.clearMeasurements()}function aW(e){e.isLayoutDirty=!1}function sW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lW(e){e.resolveTargetDelta()}function cW(e){e.calcProjection()}function uW(e){e.resetSkewAndRotation()}function dW(e){e.removeLeadSnapshot()}function rk(e,t,n){e.translate=nt(t.translate,0,n),e.scale=nt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ok(e,t,n,r){e.min=nt(t.min,n.min,r),e.max=nt(t.max,n.max,r)}function fW(e,t,n,r){ok(e.x,t.x,n.x,r),ok(e.y,t.y,n.y,r)}function pW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mW={duration:.45,ease:[.4,0,.1,1]},ik=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ak=ik("applewebkit/")&&!ik("chrome/")?Math.round:kn;function sk(e){e.min=ak(e.min),e.max=ak(e.max)}function hW(e){sk(e.x),sk(e.y)}function Ij(e,t,n){return e==="position"||e==="preserve-aspect"&&!yV(Zw(t),Zw(n),.2)}function gW(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const vW=Aj({attachResizeListener:(e,t)=>Wc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mh={current:void 0},Rj=Aj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mh.current){const e=new vW({});e.mount(window),e.setOptions({layoutScroll:!0}),Mh.current=e}return Mh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yW={pan:{Feature:zV},drag:{Feature:RV,ProjectionNode:Rj,MeasureLayout:Pj}};function lk(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&qe.postRender(()=>i(t,vu(t)))}class bW extends mi{mount(){const{current:t}=this.node;t&&(this.unmount=yB(t,n=>(lk(this.node,n,"Start"),r=>lk(this.node,r,"End"))))}unmount(){}}class xW extends mi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gu(Wc(this.node.current,"focus",()=>this.onFocus()),Wc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ck(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&qe.postRender(()=>i(t,vu(t)))}class SW extends mi{mount(){const{current:t}=this.node;t&&(this.unmount=wB(t,n=>(ck(this.node,n,"Start"),(r,{success:o})=>ck(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Rv=new WeakMap,Nh=new WeakMap,wW=e=>{const t=Rv.get(e.target);t&&t(e)},kW=e=>{e.forEach(wW)};function CW({root:e,...t}){const n=e||document;Nh.has(n)||Nh.set(n,{});const r=Nh.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(kW,{root:e,...t})),r[o]}function PW(e,t,n){const r=CW(t);return Rv.set(e,n),r.observe(e),()=>{Rv.delete(e),r.unobserve(e)}}const _W={some:0,all:1};class TW extends mi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:_W[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(l)};return PW(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(EW(t,n))&&this.startObserver()}unmount(){}}function EW({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jW={inView:{Feature:TW},tap:{Feature:SW},focus:{Feature:xW},hover:{Feature:bW}},$W={layout:{ProjectionNode:Rj,MeasureLayout:Pj}},zv={current:null},zj={current:!1};function AW(){if(zj.current=!0,!!Qy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zv.current=e.matches;e.addListener(t),t()}else zv.current=!1}const IW=[...ij,Ht,ii],RW=e=>IW.find(oj(e)),uk=new WeakMap;function zW(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Xt(o))e.addValue(r,o);else if(Xt(i))e.addValue(r,Bc(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,Bc(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const dk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class MW{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Cb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Or.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,qe.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=Xp(n),this.isVariantNode=pE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const v=p[h];l[h]!==void 0&&Xt(v)&&v.set(l[h],!1)}}mount(t){this.current=t,uk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),zj.current||AW(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){uk.delete(this.current),this.projection&&this.projection.unmount(),oi(this.notifyUpdate),oi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ya.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&qe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Os){const n=Os[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ft()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<dk.length;r++){const o=dk[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=zW(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Bc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(nj(o)||KE(o))?o=parseFloat(o):!RW(o)&&ii.test(n)&&(o=JE(t,n)),this.setBaseTarget(t,Xt(o)?o.get():o)),Xt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=ob(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Xt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Mj extends MW{constructor(){super(...arguments),this.KeyframeResolver=aj}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function NW(e){return window.getComputedStyle(e)}class OW extends Mj{constructor(){super(...arguments),this.type="html",this.renderInstance=wE}readValueFromInstance(t,n){if(ya.has(n)){const r=kb(n);return r&&r.default||0}else{const r=NW(t),o=(bE(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return kj(t,n)}build(t,n,r){sb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return db(t,n,r)}}class DW extends Mj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ft}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ya.has(n)){const r=kb(n);return r&&r.default||0}return n=kE.has(n)?n:tb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return _E(t,n,r)}build(t,n,r){lb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){CE(t,n,r,o)}mount(t){this.isSVGTag=ub(t.tagName),super.mount(t)}}const LW=(e,t)=>rb(e)?new DW(t):new OW(t,{allowProjection:e!==m.Fragment}),FW=dB({...cV,...jW,...yW,...$W},LW),Rn=_9(FW),BW=(e,t)=>e.find(n=>n.id===t);function fk(e,t){const n=Nj(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function Nj(e,t){for(const[n,r]of Object.entries(e))if(BW(r,t))return n}function VW(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function WW(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:a}}var UW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,HW=KT(function(e){return UW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),GW=HW,KW=function(t){return t!=="theme"},pk=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?GW:KW},mk=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},XW=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Fy(n,r,o),nE(function(){return By(n,r,o)}),null},YW=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=mk(t,n,r),l=s||pk(o),u=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,v=1;v<h;v++)f.push(d[v],p[v])}var y=Wy(function(x,b,g){var S=u&&x.as||o,w="",k=[],_=x;if(x.theme==null){_={};for(var P in x)_[P]=x[P];_.theme=m.useContext(Ms)}typeof x.className=="string"?w=JT(b.registered,k,x.className):x.className!=null&&(w=x.className+" ");var T=Up(f.concat(k),b.registered,_);w+=b.key+"-"+T.name,a!==void 0&&(w+=" "+a);var R=u&&s===void 0?pk(S):l,E={};for(var D in x)u&&D==="as"||R(D)&&(E[D]=x[D]);return E.className=w,g&&(E.ref=g),m.createElement(m.Fragment,null,m.createElement(XW,{cache:b,serialized:T,isStringTag:typeof S=="string"}),m.createElement(S,E))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=f,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(x,b){var g=e(x,sa({},n,b,{shouldForwardProp:mk(y,b,!0)}));return g.apply(void 0,f)},y}},qW=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Mv=YW.bind(null);qW.forEach(function(e){Mv[e]=Mv(e)});const QW=new Set([..._M,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),ZW=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function JW(e){return(ZW.has(e)||!QW.has(e))&&e[0]!=="_"}const eU=Az(Mv),tU=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,[s]=Nz(a,EM),l=Kt(e,t),u=gz({},o,l,wy(s),i),d=hT(u)(t.theme);return r?[d,r]:d};function Oh(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=JW);const o=tU({baseStyle:n}),i=eU(e,r)(o);return m.forwardRef(function(l,u){const{children:d,...f}=l,{colorMode:p,forced:h}=fu(),v=h?p:void 0;return m.createElement(i,{ref:u,"data-theme":v,...f},d)})}function nU(){const e=new Map;return new Proxy(Oh,{apply(t,n,r){return Oh(...r)},get(t,n){return e.has(n)||e.set(n,Oh(n)),e.get(n)}})}const N=nU(),rU={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Oj=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=rU,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(s),h=v9();Uf(()=>{h||r==null||r()},[h]),Uf(()=>{p(s)},[s]);const v=()=>p(null),y=()=>p(s),x=()=>{h&&o()};m.useEffect(()=>{h&&i&&o()},[h,i,o]),Gz(x,f);const b=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l}),[l,d]),g=m.useMemo(()=>VW(a),[a]);return c.jsx(Rn.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:y,custom:{position:a},style:g,children:c.jsx(N.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:Kt(n,{id:t,onClose:x})})})});Oj.displayName="ToastComponent";function F(e){return m.forwardRef(e)}var oU=typeof Element<"u",iU=typeof Map=="function",aU=typeof Set=="function",sU=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function sf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!sf(e[r],t[r]))return!1;return!0}var i;if(iU&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!sf(r.value[1],t.get(r.value[0])))return!1;return!0}if(aU&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(sU&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(oU&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!sf(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var lU=function(t,n){try{return sf(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const cU=C0(lU);function bo(){const e=m.useContext(Ms);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function Dj(){const e=fu(),t=bo();return{...e,theme:t}}function uU(e,t,n){if(t==null)return t;const r=o=>{var i,a;return(a=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:a.value};return r(t)??r(n)??n}function dU(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const a=o.filter(Boolean),s=r.map((l,u)=>{const d=`${e}.${l}`;return uU(i,d,a[u]??l)});return Array.isArray(t)?s:s[0]}}function fU(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function Lj(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=Dj(),a=e?rT(o,`components.${e}`):void 0,s=n||a,l=Wn({theme:o,colorMode:i},(s==null?void 0:s.defaultProps)??{},fU(r),(d,f)=>d?void 0:f),u=m.useRef({});if(s){const f=LM(s)(l);cU(u.current,f)||(u.current=f)}return u.current}function zn(e,t={}){return Lj(e,t)}function Ve(e,t={}){return Lj(e,t)}const hk={path:c.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[c.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),c.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),c.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},vt=F((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,d=V("chakra-icon",s),f=zn("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...f},h={ref:t,focusable:i,className:d,__css:p},v=r??hk.viewBox;if(n&&typeof n!="string")return c.jsx(N.svg,{as:n,...h,...u});const y=a??hk.path;return c.jsx(N.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:y})});vt.displayName="Icon";function pU(e){return c.jsx(vt,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function mU(e){return c.jsx(vt,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function gk(e){return c.jsx(vt,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const hU=du({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Tn=F((e,t)=>{const n=zn("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=Te(e),u=V("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${hU} ${i} linear infinite`,...n};return c.jsx(N.div,{ref:t,__css:d,className:u,...l,children:r&&c.jsx(N.span,{srOnly:!0,children:r})})});Tn.displayName="Spinner";const[gU,Eb]=be({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[vU,jb]=be({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Fj={info:{icon:mU,colorScheme:"blue"},warning:{icon:gk,colorScheme:"orange"},success:{icon:pU,colorScheme:"green"},error:{icon:gk,colorScheme:"red"},loading:{icon:Tn,colorScheme:"blue"}};function yU(e){return Fj[e].colorScheme}function bU(e){return Fj[e].icon}const Bj=F(function(t,n){const{status:r="info",addRole:o=!0,...i}=Te(t),a=t.colorScheme??yU(r),s=Ve("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return c.jsx(gU,{value:{status:r},children:c.jsx(vU,{value:s,children:c.jsx(N.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:V("chakra-alert",t.className),__css:l})})})});Bj.displayName="Alert";function Vj(e){const{status:t}=Eb(),n=bU(t),r=jb(),o=t==="loading"?r.spinner:r.icon;return c.jsx(N.span,{display:"inherit","data-status":t,...e,className:V("chakra-alert__icon",e.className),__css:o,children:e.children||c.jsx(n,{h:"100%",w:"100%"})})}Vj.displayName="AlertIcon";const Wj=F(function(t,n){const r=jb(),{status:o}=Eb();return c.jsx(N.div,{ref:n,"data-status":o,...t,className:V("chakra-alert__title",t.className),__css:r.title})});Wj.displayName="AlertTitle";const Uj=F(function(t,n){const{status:r}=Eb(),o=jb(),i={display:"inline",...o.description};return c.jsx(N.div,{ref:n,"data-status":r,...t,className:V("chakra-alert__desc",t.className),__css:i})});Uj.displayName="AlertDescription";function xU(e){return c.jsx(vt,{focusable:"false","aria-hidden":!0,...e,children:c.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const Qp=F(function(t,n){const r=zn("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=Te(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return c.jsx(N.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...a},...s,children:o||c.jsx(xU,{width:"1em",height:"1em"})})});Qp.displayName="CloseButton";const SU=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return c.jsxs(Bj,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[c.jsx(Vj,{children:u}),c.jsxs(N.div,{flex:"1",maxWidth:"100%",children:[o&&c.jsx(Wj,{id:d==null?void 0:d.title,children:o}),s&&c.jsx(Uj,{id:d==null?void 0:d.description,display:"block",children:s})]}),i&&c.jsx(Qp,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Hj(e={}){const{render:t,toastComponent:n=SU}=e;return o=>typeof t=="function"?t({...o,...e}):c.jsx(n,{...o,...e})}const wU={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},jr=kU(wU);function kU(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=CU(o,i),{position:s,id:l}=a;return r(u=>{const f=s.includes("top")?[a,...u[s]??[]]:[...u[s]??[],a];return{...u,[s]:f}}),l},update:(o,i)=>{o&&r(a=>{const s={...a},{position:l,index:u}=fk(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:Hj(i)}),s})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(d=>({...d,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const a=Nj(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!fk(jr.getState(),o).position}}let vk=0;function CU(e,t={}){vk+=1;const n=t.id??vk,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>jr.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[Gj,PU]=be({strict:!1,name:"PortalContext"}),$b="chakra-portal",_U=".chakra-portal",TU=e=>c.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),EU=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=m.useState(null),i=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const s=PU(),l=u9();ro(()=>{if(!r)return;const d=r.ownerDocument,f=t?s??d.body:d.body;if(!f)return;i.current=d.createElement("div"),i.current.className=$b,f.appendChild(i.current),a({});const p=i.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const u=l!=null&&l.zIndex?c.jsx(TU,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?by.createPortal(c.jsx(Gj,{value:i.current,children:u}),i.current):c.jsx("span",{ref:d=>{d&&o(d)}})},jU=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=$b),l},[o]),[,s]=m.useState({});return ro(()=>s({}),[]),ro(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?by.createPortal(c.jsx(Gj,{value:r?a:null,children:t}),a):null};function Js(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?c.jsx(jU,{containerRef:n,...r}):c.jsx(EU,{...r})}Js.className=$b;Js.selector=_U;Js.displayName="Portal";const[$U,AU]=be({name:"ToastOptionsContext",strict:!1}),IU=e=>{const t=m.useSyncExternalStore(jr.subscribe,jr.getState,jr.getState),{motionVariants:n,component:r=Oj,portalProps:o,animatePresenceProps:i}=e,s=Object.keys(t).map(l=>{const u=t[l];return c.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,"aria-hidden":!u.length,id:`chakra-toast-manager-${l}`,style:WW(l),children:c.jsx(yo,{...i,initial:!1,children:u.map(d=>c.jsx(r,{motionVariants:n,...d},d.id))})},l)});return c.jsx(Js,{...o,children:s})},RU=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return c.jsxs(f9,{theme:r,...i,children:[c.jsx($U,{value:o==null?void 0:o.defaultOptions,children:n}),c.jsx(IU,{...o})]})},zU=RU(Di);function yk(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const MU=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function bk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function xk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const Dh=typeof window<"u"?m.useLayoutEffect:m.useEffect,Sk=e=>e;var NU=Object.defineProperty,OU=(e,t,n)=>t in e?NU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,st=(e,t,n)=>(OU(e,typeof t!="symbol"?t+"":t,n),n);class DU{constructor(){st(this,"descendants",new Map),st(this,"register",t=>{if(t!=null)return MU(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),st(this,"unregister",t=>{this.descendants.delete(t);const n=yk(Array.from(this.descendants.keys()));this.assignIndex(n)}),st(this,"destroy",()=>{this.descendants.clear()}),st(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),st(this,"count",()=>this.descendants.size),st(this,"enabledCount",()=>this.enabledValues().length),st(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),st(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),st(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),st(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),st(this,"first",()=>this.item(0)),st(this,"firstEnabled",()=>this.enabledItem(0)),st(this,"last",()=>this.item(this.descendants.size-1)),st(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),st(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),st(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),st(this,"next",(t,n=!0)=>{const r=bk(t,this.count(),n);return this.item(r)}),st(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=bk(o,this.enabledCount(),n);return this.enabledItem(i)}),st(this,"prev",(t,n=!0)=>{const r=xk(t,this.count()-1,n);return this.item(r)}),st(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=xk(o,this.enabledCount()-1,n);return this.enabledItem(i)}),st(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),o=yk(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const i={node:t,index:-1,...n};this.descendants.set(t,i),this.assignIndex(o)})}}function LU(){const[e,t]=be({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=m.useRef(new DU);return Dh(()=>()=>o.current.destroy()),o.current},o=>{const i=t(),[a,s]=m.useState(-1),l=m.useRef(null);Dh(()=>()=>{l.current&&i.unregister(l.current)},[]),Dh(()=>{if(!l.current)return;const d=Number(l.current.dataset.index);a!=d&&!Number.isNaN(d)&&s(d)});const u=Sk(o?i.register(o):i.register);return{descendants:i,index:a,enabledIndex:i.enabledIndexOf(l.current),register:xt(u,l)}}]}const Jr={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},kl={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Nv(e){switch((e==null?void 0:e.direction)??"right"){case"right":return kl.slideRight;case"left":return kl.slideLeft;case"bottom":return kl.slideDown;case"top":return kl.slideUp;default:return kl.slideRight}}const Yi={enter:{duration:.2,ease:Jr.easeOut},exit:{duration:.1,ease:Jr.easeIn}},fr={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},FU=e=>e!=null&&parseInt(e.toString(),10)>0,wk={exit:{height:{duration:.2,ease:Jr.ease},opacity:{duration:.3,ease:Jr.ease}},enter:{height:{duration:.3,ease:Jr.ease},opacity:{duration:.4,ease:Jr.ease}}},BU={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:FU(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??fr.exit(wk.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??fr.enter(wk.enter,o)})},yu=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:a="auto",style:s,className:l,transition:u,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,v]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{v(!0)});return()=>clearTimeout(S)},[]);const y=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:a,animateOpacity:o,transition:h?u:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:y?"block":"none"}}},b=r?n:!0,g=n||r?"enter":"exit";return c.jsx(yo,{...f,initial:!1,custom:x,children:b&&c.jsx(Rn.div,{ref:t,...p,className:V("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:x,variants:BU,initial:r?"exit":!1,animate:g,exit:"exit"})})});yu.displayName="Collapse";const[VU,Kj]=be({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"});function WU(e){const t=e.trim().split(" "),n=t[0]??"",r=t.length>1?t[t.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function Xj(e){const{name:t,getInitials:n,...r}=e,o=Kj();return c.jsx(N.div,{role:"img","aria-label":t,...r,__css:o.label,children:t?n==null?void 0:n(t):null})}Xj.displayName="AvatarName";const Yj=e=>c.jsxs(N.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[c.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),c.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function UU(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[u,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const v=new Image;v.src=n,a&&(v.crossOrigin=a),r&&(v.srcset=r),s&&(v.sizes=s),t&&(v.loading=t),v.onload=y=>{h(),d("loaded"),o==null||o(y)},v.onerror=y=>{h(),d("failed"),i==null||i(y)},f.current=v},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return ro(()=>{if(!l)return u==="loading"&&p(),()=>{h()}},[u,p,l]),l?"loaded":u}function qj(e){const{src:t,srcSet:n,onError:r,onLoad:o,getInitials:i,name:a,borderRadius:s,loading:l,iconLabel:u,icon:d=c.jsx(Yj,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,y=UU({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!y?a?c.jsx(Xj,{className:"chakra-avatar__initials",getInitials:i,name:a}):m.cloneElement(d,{role:"img","aria-label":u}):c.jsx(N.img,{src:t,srcSet:n,alt:a??u,onLoad:o,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:l,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:s}})}qj.displayName="AvatarImage";const HU={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},Ab=F((e,t)=>{const n=Ve("Avatar",e),[r,o]=m.useState(!1),{src:i,srcSet:a,name:s,showBorder:l,borderRadius:u="full",onError:d,onLoad:f,getInitials:p=WU,icon:h=c.jsx(Yj,{}),iconLabel:v=" avatar",loading:y,children:x,borderColor:b,ignoreFallback:g,crossOrigin:S,referrerPolicy:w,...k}=Te(e),_={borderRadius:u,borderWidth:l?"2px":void 0,...HU,...n.container};return b&&(_.borderColor=b),c.jsx(N.span,{ref:t,...k,className:V("chakra-avatar",e.className),"data-loaded":oe(r),__css:_,children:c.jsxs(VU,{value:n,children:[c.jsx(qj,{src:i,srcSet:a,loading:y,onLoad:ce(f,()=>{o(!0)}),onError:d,getInitials:p,name:s,borderRadius:u,icon:h,iconLabel:v,ignoreFallback:g,crossOrigin:S,referrerPolicy:w}),x]})})});Ab.displayName="Avatar";const GU={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},Qj=F(function(t,n){const{placement:r="bottom-end",className:o,...i}=t,a=Kj(),l={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...GU[r],...a.badge};return c.jsx(N.div,{ref:n,...i,className:V("chakra-avatar__badge",o),__css:l})});Qj.displayName="AvatarBadge";const En=F(function(t,n){const r=zn("Badge",t),{className:o,...i}=Te(t);return c.jsx(N.span,{ref:n,className:V("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});En.displayName="Badge";const ge=N("div");ge.displayName="Box";const[KU,XU]=be({strict:!1,name:"ButtonGroupContext"});function Ll(e){const{children:t,className:n,...r}=e,o=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=V("chakra-button__icon",n);return c.jsx(N.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Ll.displayName="ButtonIcon";function Ov(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=c.jsx(Tn,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=V("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,r]);return c.jsx(N.div,{className:l,...s,__css:d,children:o})}Ov.displayName="ButtonSpinner";function YU(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const he=F((e,t)=>{const n=XU(),r=zn("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:v="start",className:y,as:x,shouldWrapChildren:b,...g}=Te(e),S=m.useMemo(()=>{const P={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:w,type:k}=YU(x),_={rightIcon:u,leftIcon:l,iconSpacing:f,children:s,shouldWrapChildren:b};return c.jsxs(N.button,{disabled:o||i,ref:Py(t,w),as:x,type:p??k,"data-active":oe(a),"data-loading":oe(i),__css:S,className:V("chakra-button",y),...g,children:[i&&v==="start"&&c.jsx(Ov,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),i?d||c.jsx(N.span,{opacity:0,children:c.jsx(kk,{..._})}):c.jsx(kk,{..._}),i&&v==="end"&&c.jsx(Ov,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});he.displayName="Button";function kk(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?c.jsxs("span",{style:{display:"contents"},children:[t&&c.jsx(Ll,{marginEnd:o,children:t}),r,n&&c.jsx(Ll,{marginStart:o,children:n})]}):c.jsxs(c.Fragment,{children:[t&&c.jsx(Ll,{marginEnd:o,children:t}),r,n&&c.jsx(Ll,{marginStart:o,children:n})]})}const qU={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},QU={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Ib=F(function(t,n){const{size:r,colorScheme:o,variant:i,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:u,orientation:d="horizontal",...f}=t,p=V("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:u}),[r,o,i,u]);let v={display:"inline-flex",...l?qU[d]:QU[d](s)};const y=d==="vertical";return c.jsx(KU,{value:h,children:c.jsx(N.div,{ref:n,role:"group",__css:v,className:p,"data-attached":l?"":void 0,"data-orientation":d,flexDir:y?"column":void 0,...f})})});Ib.displayName="ButtonGroup";const Cn=F((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=n||r,l=m.isValidElement(s)?m.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return c.jsx(he,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...a,children:l})});Cn.displayName="IconButton";const[ZU,JU]=gr("Card"),Rb=F(function(t,n){const{className:r,children:o,direction:i="column",justify:a,align:s,...l}=Te(t),u=Ve("Card",t);return c.jsx(N.div,{ref:n,className:V("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:c.jsx(ZU,{value:u,children:o})})}),zb=F(function(t,n){const{className:r,...o}=t,i=JU();return c.jsx(N.div,{ref:n,className:V("chakra-card__body",r),__css:i.body,...o})}),Zj=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Zj.displayName="Center";const eH={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};F(function(t,n){const{axis:r="both",...o}=t;return c.jsx(N.div,{ref:n,__css:eH[r],...o,position:"absolute"})});var tH=()=>typeof document<"u",Ck=!1,bu=null,la=!1,Dv=!1,Lv=new Set;function Mb(e,t){Lv.forEach(n=>n(e,t))}var nH=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function rH(e){return!(e.metaKey||!nH&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Pk(e){la=!0,rH(e)&&(bu="keyboard",Mb("keyboard",e))}function Ta(e){if(bu="pointer",e.type==="mousedown"||e.type==="pointerdown"){la=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Mb("pointer",e)}}function oH(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function iH(e){oH(e)&&(la=!0,bu="virtual")}function aH(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!la&&!Dv&&(bu="virtual",Mb("virtual",e)),la=!1,Dv=!1)}function sH(){la=!1,Dv=!0}function _k(){return bu!=="pointer"}function lH(){if(!tH()||Ck)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){la=!0,e.apply(this,n)},document.addEventListener("keydown",Pk,!0),document.addEventListener("keyup",Pk,!0),document.addEventListener("click",iH,!0),window.addEventListener("focus",aH,!0),window.addEventListener("blur",sH,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ta,!0),document.addEventListener("pointermove",Ta,!0),document.addEventListener("pointerup",Ta,!0)):(document.addEventListener("mousedown",Ta,!0),document.addEventListener("mousemove",Ta,!0),document.addEventListener("mouseup",Ta,!0)),Ck=!0}function Jj(e){lH(),e(_k());const t=()=>e(_k());return Lv.add(t),()=>{Lv.delete(t)}}const[cH,e$]=be({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[uH,xu]=be({strict:!1,name:"FormControlContext"});function dH(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...a}=e,s=m.useId(),l=t||`field-${s}`,u=`${l}-label`,d=`${l}-feedback`,f=`${l}-helptext`,[p,h]=m.useState(!1),[v,y]=m.useState(!1),[x,b]=m.useState(!1),g=m.useCallback((P={},T=null)=>({id:f,...P,ref:xt(T,R=>{R&&y(!0)})}),[f]),S=m.useCallback((P={},T=null)=>({...P,ref:T,"data-focus":oe(x),"data-disabled":oe(o),"data-invalid":oe(r),"data-readonly":oe(i),id:P.id!==void 0?P.id:u,htmlFor:P.htmlFor!==void 0?P.htmlFor:l}),[l,o,x,r,i,u]),w=m.useCallback((P={},T=null)=>({id:d,...P,ref:xt(T,R=>{R&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((P={},T=null)=>({...P,...a,ref:T,role:"group","data-focus":oe(x),"data-disabled":oe(o),"data-invalid":oe(r),"data-readonly":oe(i)}),[a,o,x,r,i]),_=m.useCallback((P={},T=null)=>({...P,ref:T,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!x,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:v,setHasHelpText:y,id:l,labelId:u,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:g,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:_}}const Pe=F(function(t,n){const r=Ve("Form",t),o=Te(t),{getRootProps:i,htmlProps:a,...s}=dH(o),l=V("chakra-form-control",t.className);return c.jsx(uH,{value:s,children:c.jsx(cH,{value:r,children:c.jsx(N.div,{...i({},n),className:l,__css:r.container})})})});Pe.displayName="FormControl";const Uc=F(function(t,n){const r=xu(),o=e$(),i=V("chakra-form__helper-text",t.className);return c.jsx(N.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});Uc.displayName="FormHelperText";function t$(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=n$(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":no(n),"aria-required":no(o),"aria-readonly":no(r)}}function n$(e){const t=xu(),{id:n,disabled:r,readOnly:o,required:i,isRequired:a,isInvalid:s,isReadOnly:l,isDisabled:u,onFocus:d,onBlur:f,...p}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...p,"aria-describedby":h.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??a??(t==null?void 0:t.isRequired),isInvalid:s??(t==null?void 0:t.isInvalid),onFocus:ce(t==null?void 0:t.onFocus,d),onBlur:ce(t==null?void 0:t.onBlur,f)}}const r$={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function fH(e={}){const t=n$(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":u}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:v,name:y,value:x,tabIndex:b=void 0,"aria-label":g,"aria-labelledby":S,"aria-invalid":w,...k}=e,_=ky(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=dr(h),T=dr(s),R=dr(l),[E,D]=m.useState(!1),[K,J]=m.useState(!1),[A,X]=m.useState(!1),B=m.useRef(!1);m.useEffect(()=>Jj(ue=>{B.current=ue}),[]);const z=m.useRef(null),[O,I]=m.useState(!0),[L,G]=m.useState(!!d),H=f!==void 0,Q=H?f:L,xe=m.useCallback(ue=>{if(r||n){ue.preventDefault();return}H||G(Q?ue.currentTarget.checked:v?!0:ue.currentTarget.checked),P==null||P(ue)},[r,n,Q,H,v,P]);ro(()=>{z.current&&(z.current.indeterminate=!!v)},[v]),Uf(()=>{n&&D(!1)},[n,D]),ro(()=>{const ue=z.current;if(!(ue!=null&&ue.form))return;const at=()=>{G(!!d)};return ue.form.addEventListener("reset",at),()=>{var We;return(We=ue.form)==null?void 0:We.removeEventListener("reset",at)}},[]);const ve=n&&!p,we=m.useCallback(ue=>{ue.key===" "&&X(!0)},[X]),Fe=m.useCallback(ue=>{ue.key===" "&&X(!1)},[X]);ro(()=>{if(!z.current)return;z.current.checked!==Q&&G(z.current.checked)},[z.current]);const fe=m.useCallback((ue={},at=null)=>{const We=Bt=>{E&&Bt.preventDefault(),X(!0)};return{...ue,ref:at,"data-active":oe(A),"data-hover":oe(K),"data-checked":oe(Q),"data-focus":oe(E),"data-focus-visible":oe(E&&B.current),"data-indeterminate":oe(v),"data-disabled":oe(n),"data-invalid":oe(i),"data-readonly":oe(r),"aria-hidden":!0,onMouseDown:ce(ue.onMouseDown,We),onMouseUp:ce(ue.onMouseUp,()=>X(!1)),onMouseEnter:ce(ue.onMouseEnter,()=>J(!0)),onMouseLeave:ce(ue.onMouseLeave,()=>J(!1))}},[A,Q,n,E,K,v,i,r]),Z=m.useCallback((ue={},at=null)=>({...ue,ref:at,"data-active":oe(A),"data-hover":oe(K),"data-checked":oe(Q),"data-focus":oe(E),"data-focus-visible":oe(E&&B.current),"data-indeterminate":oe(v),"data-disabled":oe(n),"data-invalid":oe(i),"data-readonly":oe(r)}),[A,Q,n,E,K,v,i,r]),ee=m.useCallback((ue={},at=null)=>({..._,...ue,ref:xt(at,We=>{We&&I(We.tagName==="LABEL")}),onClick:ce(ue.onClick,()=>{var We;O||((We=z.current)==null||We.click(),requestAnimationFrame(()=>{var Bt;(Bt=z.current)==null||Bt.focus({preventScroll:!0})}))}),"data-disabled":oe(n),"data-checked":oe(Q),"data-invalid":oe(i)}),[_,n,Q,i,O]),Ee=m.useCallback((ue={},at=null)=>({...ue,ref:xt(z,at),type:"checkbox",name:y,value:x,id:a,tabIndex:b,onChange:ce(ue.onChange,xe),onBlur:ce(ue.onBlur,T,()=>D(!1)),onFocus:ce(ue.onFocus,R,()=>D(!0)),onKeyDown:ce(ue.onKeyDown,we),onKeyUp:ce(ue.onKeyUp,Fe),required:o,checked:Q,disabled:ve,readOnly:r,"aria-label":g,"aria-labelledby":S,"aria-invalid":w?!!w:i,"aria-describedby":u,"aria-disabled":n,"aria-checked":v?"mixed":Q,style:r$}),[y,x,a,b,xe,T,R,we,Fe,o,Q,ve,r,g,S,w,i,u,n,v]),pe=m.useCallback((ue={},at=null)=>({...ue,ref:at,onMouseDown:ce(ue.onMouseDown,pH),"data-disabled":oe(n),"data-checked":oe(Q),"data-invalid":oe(i)}),[Q,n,i]);return{state:{isInvalid:i,isFocused:E,isChecked:Q,isActive:A,isHovered:K,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:ee,getCheckboxProps:fe,getIndicatorProps:Z,getInputProps:Ee,getLabelProps:pe,htmlProps:_}}function pH(e){e.preventDefault(),e.stopPropagation()}const mH=new Set(["dark","light","system"]);function hH(e){let t=e;return mH.has(t)||(t="light"),t}function gH(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=hH(t),i=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
|
||
`,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
|
||
`;return`!${i?a:s}`.trim()}function vH(e={}){const{nonce:t}=e;return c.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:gH(e)}})}const mr=F(function(t,n){const{className:r,centerContent:o,...i}=Te(t),a=zn("Container",t);return c.jsx(N.div,{ref:n,className:V("chakra-container",r),...i,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});mr.displayName="Container";const qi=F(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:u,...d}=zn("Divider",t),{className:f,orientation:p="horizontal",__css:h,...v}=Te(t),y={vertical:{borderLeftWidth:r||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return c.jsx(N.hr,{ref:n,"aria-orientation":p,...v,__css:{...d,border:"0",borderColor:u,borderStyle:l,...y[p],...h},className:V("chakra-divider",f)})});qi.displayName="Divider";const[yH,o$]=be({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Editable />" `}),[bH,Nb]=be({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in `<Editable />`"});function Tk(e,t){return e?e===t||e.contains(t):!1}function xH(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:o,value:i,isDisabled:a,defaultValue:s,startWithEditView:l,isPreviewFocusable:u=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:v,...y}=e,x=dr(h),b=!!(l&&!a),[g,S]=m.useState(b),[w,k]=lT({defaultValue:s||"",value:i,onChange:t}),[_,P]=m.useState(w),T=m.useRef(null),R=m.useRef(null),E=m.useRef(null),D=m.useRef(null),K=m.useRef(null);Uz({ref:T,enabled:g,elements:[D,K]});const J=!g&&!a;ro(()=>{var Z,ee;g&&((Z=T.current)==null||Z.focus(),f&&((ee=T.current)==null||ee.select()))},[]),Uf(()=>{var Z,ee,Ee,pe;if(!g){v?(Z=v.current)==null||Z.focus():(ee=E.current)==null||ee.focus();return}(Ee=T.current)==null||Ee.focus(),f&&((pe=T.current)==null||pe.select()),x==null||x()},[g,x,f]);const A=m.useCallback(()=>{J&&S(!0)},[J]),X=m.useCallback(()=>{P(w)},[w]),B=m.useCallback(()=>{S(!1),k(_),n==null||n(_),o==null||o(_)},[n,o,k,_]),z=m.useCallback(()=>{S(!1),P(w),r==null||r(w),o==null||o(_)},[w,r,o,_]);m.useEffect(()=>{if(g)return;const Z=T.current;(Z==null?void 0:Z.ownerDocument.activeElement)===Z&&(Z==null||Z.blur())},[g]);const O=m.useCallback(Z=>{k(Z.currentTarget.value)},[k]),I=m.useCallback(Z=>{const ee=Z.key,pe={Escape:B,Enter:ne=>{!ne.shiftKey&&!ne.metaKey&&z()}}[ee];pe&&(Z.preventDefault(),pe(Z))},[B,z]),L=m.useCallback(Z=>{const ee=Z.key,pe={Escape:B}[ee];pe&&(Z.preventDefault(),pe(Z))},[B]),G=w.length===0,H=m.useCallback(Z=>{if(!g)return;const ee=Z.currentTarget.ownerDocument,Ee=Z.relatedTarget??ee.activeElement,pe=Tk(D.current,Ee),ne=Tk(K.current,Ee);!pe&&!ne&&(d?z():B())},[d,z,B,g]),Q=m.useCallback((Z={},ee=null)=>{const Ee=J&&u?0:void 0;return{...Z,ref:xt(ee,R),children:G?p:w,hidden:g,"aria-disabled":no(a),tabIndex:Ee,onFocus:ce(Z.onFocus,A,X)}},[a,g,J,u,G,A,X,p,w]),xe=m.useCallback((Z={},ee=null)=>({...Z,hidden:!g,placeholder:p,ref:xt(ee,T),disabled:a,"aria-disabled":no(a),value:w,onBlur:ce(Z.onBlur,H),onChange:ce(Z.onChange,O),onKeyDown:ce(Z.onKeyDown,I),onFocus:ce(Z.onFocus,X)}),[a,g,H,O,I,X,p,w]),ve=m.useCallback((Z={},ee=null)=>({...Z,hidden:!g,placeholder:p,ref:xt(ee,T),disabled:a,"aria-disabled":no(a),value:w,onBlur:ce(Z.onBlur,H),onChange:ce(Z.onChange,O),onKeyDown:ce(Z.onKeyDown,L),onFocus:ce(Z.onFocus,X)}),[a,g,H,O,L,X,p,w]),we=m.useCallback((Z={},ee=null)=>({"aria-label":"Edit",...Z,type:"button",onClick:ce(Z.onClick,A),ref:xt(ee,E),disabled:a}),[A,a]),Fe=m.useCallback((Z={},ee=null)=>({...Z,"aria-label":"Submit",ref:xt(K,ee),type:"button",onClick:ce(Z.onClick,z),disabled:a}),[z,a]),fe=m.useCallback((Z={},ee=null)=>({"aria-label":"Cancel",id:"cancel",...Z,ref:xt(D,ee),type:"button",onClick:ce(Z.onClick,B),disabled:a}),[B,a]);return{isEditing:g,isDisabled:a,isValueEmpty:G,value:w,onEdit:A,onCancel:B,onSubmit:z,getPreviewProps:Q,getInputProps:xe,getTextareaProps:ve,getEditButtonProps:we,getSubmitButtonProps:Fe,getCancelButtonProps:fe,htmlProps:y}}const Fl=F(function(t,n){const r=Ve("Editable",t),o=Te(t),{htmlProps:i,...a}=xH(o),{isEditing:s,onSubmit:l,onCancel:u,onEdit:d}=a,f=V("chakra-editable",t.className),p=Kt(t.children,{isEditing:s,onSubmit:l,onCancel:u,onEdit:d});return c.jsx(bH,{value:a,children:c.jsx(yH,{value:r,children:c.jsx(N.div,{ref:n,...i,className:f,children:p})})})});Fl.displayName="Editable";const i$={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},Bl=F(function(t,n){const{getInputProps:r}=Nb(),o=o$(),i=r(t,n),a=V("chakra-editable__input",t.className);return c.jsx(N.input,{...i,__css:{outline:0,...i$,...o.input},className:a})});Bl.displayName="EditableInput";const Vl=F(function(t,n){const{getPreviewProps:r}=Nb(),o=o$(),i=r(t,n),a=V("chakra-editable__preview",t.className);return c.jsx(N.span,{...i,__css:{cursor:"text",display:"inline-block",...i$,...o.preview},className:a})});Vl.displayName="EditablePreview";function SH(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=Nb();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function Wl(e){return typeof e=="function"}function wH(...e){return t=>e.reduce((n,r)=>r(n),t)}const kH=e=>function(...n){let r=[...n],o=n[n.length-1];return QF(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,wH(...r.map(i=>a=>Wl(i)?i(a):CH(a,i)))(o)},Ob=kH(Di);function CH(...e){return Wn({},...e,a$)}function a$(e,t,n,r){if((Wl(e)||Wl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Wl(e)?e(...o):e,a=Wl(t)?t(...o):t;return Wn({},i,a,a$)};if(kt(e)&&ov(t)||ov(e)&&kt(t))return t}const wt=F(function(t,n){const{direction:r,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:u,...d}=t,f={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:u};return c.jsx(N.div,{ref:n,__css:f,...d})});wt.displayName="Flex";function PH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Fv="data-focus-lock",s$="data-focus-lock-disabled",_H="data-no-focus-lock",TH="data-autofocus-inside",EH="data-no-autofocus";function Lh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jH(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var $H=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ek=new WeakMap;function l$(e,t){var n=jH(null,function(r){return e.forEach(function(o){return Lh(o,r)})});return $H(function(){var r=Ek.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Lh(s,null)}),i.forEach(function(s){o.has(s)||Lh(s,a)})}Ek.set(n,e)},[e]),n}var Fh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},$r=function(){return $r=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$r.apply(this,arguments)};function c$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function AH(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function u$(e){return e}function d$(e,t){t===void 0&&(t=u$);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function Db(e,t){return t===void 0&&(t=u$),d$(e,t)}function f$(e){e===void 0&&(e={});var t=d$(null);return t.options=$r({async:!0,ssr:!1},e),t}var p$=function(e){var t=e.sideCar,n=c$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,$r({},n))};p$.isSideCarExport=!0;function IH(e,t){return e.useMedium(t),p$}var m$=Db({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),h$=Db(),RH=Db(),zH=f$({async:!0,ssr:typeof document<"u"}),MH=m.createContext(void 0),NH=[],Lb=m.forwardRef(function(t,n){var r,o=m.useState(),i=o[0],a=o[1],s=m.useRef(),l=m.useRef(!1),u=m.useRef(null),d=m.useState({}),f=d[1],p=t.children,h=t.disabled,v=h===void 0?!1:h,y=t.noFocusGuards,x=y===void 0?!1:y,b=t.persistentFocus,g=b===void 0?!1:b,S=t.crossFrame,w=S===void 0?!0:S,k=t.autoFocus,_=k===void 0?!0:k;t.allowTextSelection;var P=t.group,T=t.className,R=t.whiteList,E=t.hasPositiveIndices,D=t.shards,K=D===void 0?NH:D,J=t.as,A=J===void 0?"div":J,X=t.lockProps,B=X===void 0?{}:X,z=t.sideCar,O=t.returnFocus,I=O===void 0?!1:O,L=t.focusOptions,G=t.onActivation,H=t.onDeactivation,Q=m.useState({}),xe=Q[0],ve=m.useCallback(function(We){var Bt=We.captureFocusRestore;if(!u.current){var yr,qn=(yr=document)==null?void 0:yr.activeElement;u.current=qn,qn!==document.body&&(u.current=Bt(qn))}s.current&&G&&G(s.current),l.current=!0,f()},[G]),we=m.useCallback(function(){l.current=!1,H&&H(s.current),f()},[H]),Fe=m.useCallback(function(We){var Bt=u.current;if(Bt){var yr=(typeof Bt=="function"?Bt():Bt)||document.body,qn=typeof I=="function"?I(yr):I;if(qn){var qt=typeof qn=="object"?qn:void 0;u.current=null,We?Promise.resolve().then(function(){return yr.focus(qt)}):yr.focus(qt)}}},[I]),fe=m.useCallback(function(We){l.current&&m$.useMedium(We)},[]),Z=h$.useMedium,ee=m.useCallback(function(We){s.current!==We&&(s.current=We,a(We))},[]),Ee=sa((r={},r[s$]=v&&"disabled",r[Fv]=P,r),B),pe=x!==!0,ne=pe&&x!=="tail",ue=l$([n,ee]),at=m.useMemo(function(){return{observed:s,shards:K,enabled:!v,get active(){return l.current}}},[v,l,K,s]);return Rt.createElement(m.Fragment,null,pe&&[Rt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:Fh}),E?Rt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:Fh}):null],!v&&Rt.createElement(z,{id:xe,sideCar:zH,observed:i,disabled:v,persistentFocus:g,crossFrame:w,autoFocus:_,whiteList:R,shards:K,onActivation:ve,onDeactivation:we,returnFocus:Fe,focusOptions:L,noFocusGuards:x}),Rt.createElement(A,sa({ref:ue},Ee,{className:T,onBlur:Z,onFocus:fe}),Rt.createElement(MH.Provider,{value:at},p)),ne&&Rt.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:Fh}))});Lb.propTypes={};function Bv(e,t){return Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bv(e,t)}function OH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bv(e,t)}function Hc(e){"@babel/helpers - typeof";return Hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hc(e)}function DH(e,t){if(Hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LH(e){var t=DH(e,"string");return Hc(t)=="symbol"?t:t+""}function FH(e,t,n){return(t=LH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BH(e,t){function n(r){return r.displayName||r.name||"Component"}return function(o){var i=[],a;function s(){a=e(i.map(function(u){return u.props})),t(a)}var l=function(u){OH(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return a};var f=d.prototype;return f.componentDidMount=function(){i.push(this),s()},f.componentDidUpdate=function(){s()},f.componentWillUnmount=function(){var h=i.indexOf(this);i.splice(h,1),s()},f.render=function(){return Rt.createElement(o,this.props)},d}(m.PureComponent);return FH(l,"displayName","SideEffect("+n(o)+")"),l}}var Fr=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},ca=function(e){return Array.isArray(e)?e:[e]},g$=function(e){return Array.isArray(e)?e[0]:e},VH=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},v$=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},y$=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},WH=function(e){return e.hasAttribute("inert")},UH=function(e,t){return!e||y$(e)||!VH(e)&&!WH(e)&&t(v$(e))},b$=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=UH(t,b$.bind(void 0,e));return e.set(t,r),r},HH=function(e,t){return e&&!y$(e)?XH(e)?t(v$(e)):!1:!0},x$=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=HH(t,x$.bind(void 0,e));return e.set(t,r),r},S$=function(e){return e.dataset},GH=function(e){return e.tagName==="BUTTON"},w$=function(e){return e.tagName==="INPUT"},k$=function(e){return w$(e)&&e.type==="radio"},KH=function(e){return!((w$(e)||GH(e))&&(e.type==="hidden"||e.disabled))},XH=function(e){var t=e.getAttribute(EH);return![!0,"true",""].includes(t)},Fb=function(e){var t;return!!(e&&(!((t=S$(e))===null||t===void 0)&&t.focusGuard))},Vv=function(e){return!Fb(e)},YH=function(e){return!!e},qH=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,i=e.index-t.index;if(o){if(!n)return 1;if(!r)return-1}return o||i},QH=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},Bb=function(e,t,n){return Fr(e).map(function(r,o){var i=QH(r);return{node:r,index:o,tabIndex:n&&i===-1?(r.dataset||{}).focusGuard?0:-1:i}}).filter(function(r){return!t||r.tabIndex>=0}).sort(qH)},ZH=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Vb=ZH.join(","),JH="".concat(Vb,", [data-focus-guard]"),C$=function(e,t){return Fr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?JH:Vb)?[r]:[],C$(r))},[])},eG=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Ls([e.contentDocument.body],t):[e]},Ls=function(e,t){return e.reduce(function(n,r){var o,i=C$(r,t),a=(o=[]).concat.apply(o,i.map(function(s){return eG(s,t)}));return n.concat(a,r.parentNode?Fr(r.parentNode.querySelectorAll(Vb)).filter(function(s){return s===r}):[])},[])},tG=function(e){var t=e.querySelectorAll("[".concat(TH,"]"));return Fr(t).map(function(n){return Ls([n])}).reduce(function(n,r){return n.concat(r)},[])},Wb=function(e,t){return Fr(e).filter(function(n){return b$(t,n)}).filter(function(n){return KH(n)})},jk=function(e,t){return t===void 0&&(t=new Map),Fr(e).filter(function(n){return x$(t,n)})},Ub=function(e,t,n){return Bb(Wb(Ls(e,n),t),!0,n)},Gc=function(e,t){return Bb(Wb(Ls(e),t),!1)},nG=function(e,t){return Wb(tG(e),t)},Qi=function(e,t){return e.shadowRoot?Qi(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Fr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?Qi(o,t):!1}return Qi(n,t)})},rG=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,s){return!t.has(s)})},P$=function(e){return e.parentNode?P$(e.parentNode):e},Hb=function(e){var t=ca(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Fv);return n.push.apply(n,o?rG(Fr(P$(r).querySelectorAll("[".concat(Fv,'="').concat(o,'"]:not([').concat(s$,'="disabled"])')))):[r]),n},[])},oG=function(e){try{return e()}catch{return}},Kc=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Kc(t.shadowRoot):t instanceof HTMLIFrameElement&&oG(function(){return t.contentWindow.document})?Kc(t.contentWindow.document):t}},iG=function(e,t){return e===t},aG=function(e,t){return!!Fr(e.querySelectorAll("iframe")).some(function(n){return iG(n,t)})},_$=function(e,t){return t===void 0&&(t=Kc(g$(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Hb(e).some(function(n){return Qi(n,t)||aG(n,t)})},sG=function(e){e===void 0&&(e=document);var t=Kc(e);return t?Fr(e.querySelectorAll("[".concat(_H,"]"))).some(function(n){return Qi(n,t)}):!1},lG=function(e,t){return t.filter(k$).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Gb=function(e,t){return k$(e)&&e.name?lG(e,t):e},cG=function(e){var t=new Set;return e.forEach(function(n){return t.add(Gb(n,e))}),e.filter(function(n){return t.has(n)})},$k=function(e){return e[0]&&e.length>1?Gb(e[0],e):e[0]},Ak=function(e,t){return e.indexOf(Gb(t,e))},Wv="NEW_FOCUS",uG=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],l=Fb(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,d=o?n.indexOf(o):u,f=o?e.indexOf(o):-1;if(u===-1)return f!==-1?f:Wv;if(f===-1)return Wv;var p=u-d,h=n.indexOf(a),v=n.indexOf(s),y=cG(n),x=r!==void 0?y.indexOf(r):-1,b=o?y.indexOf(o):x,g=y.filter(function(T){return T.tabIndex>=0}),S=r!==void 0?g.indexOf(r):-1,w=o?g.indexOf(o):S,k=S>=0&&w>=0?w-S:b-x;if(!p&&f>=0||t.length===0)return f;var _=Ak(e,t[0]),P=Ak(e,t[t.length-1]);if(u<=h&&l&&Math.abs(p)>1)return P;if(u>=v&&l&&Math.abs(p)>1)return _;if(p&&Math.abs(k)>1)return f;if(u<=h)return P;if(u>v)return _;if(p)return Math.abs(p)>1?f:(i+f+p)%i}},dG=function(e){return function(t){var n,r=(n=S$(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},Ik=function(e,t,n){var r=e.map(function(i){var a=i.node;return a}),o=jk(r.filter(dG(n)));return o&&o.length?$k(o):$k(jk(t))},Uv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Uv(e.parentNode.host||e.parentNode,t),t},Bh=function(e,t){for(var n=Uv(e),r=Uv(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},T$=function(e,t,n){var r=ca(e),o=ca(t),i=r[0],a=!1;return o.filter(Boolean).forEach(function(s){a=Bh(a||s,s)||a,n.filter(Boolean).forEach(function(l){var u=Bh(i,l);u&&(!a||Qi(u,a)?a=u:a=Bh(u,a))})}),a},Rk=function(e,t){return e.reduce(function(n,r){return n.concat(nG(r,t))},[])},fG=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(YH)},pG=function(e,t){var n=Kc(ca(e).length>0?document:g$(e).ownerDocument),r=Hb(e).filter(Vv),o=T$(n||e,e,r),i=new Map,a=Gc(r,i),s=a.filter(function(v){var y=v.node;return Vv(y)});if(s[0]){var l=Gc([o],i).map(function(v){var y=v.node;return y}),u=fG(l,s),d=u.map(function(v){var y=v.node;return y}),f=u.filter(function(v){var y=v.tabIndex;return y>=0}).map(function(v){var y=v.node;return y}),p=uG(d,f,l,n,t);if(p===Wv){var h=Ik(a,f,Rk(r,i))||Ik(a,d,Rk(r,i));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:u[p]}},mG=function(e){var t=Hb(e).filter(Vv),n=T$(e,e,t),r=Bb(Ls([n],!0),!0,!0),o=Ls(t,!1);return r.map(function(i){var a=i.node,s=i.index;return{node:a,index:s,lockItem:o.indexOf(a)>=0,guard:Fb(a)}})},Kb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Vh=0,Wh=!1,E$=function(e,t,n){n===void 0&&(n={});var r=pG(e,t);if(!Wh&&r){if(Vh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Wh=!0,setTimeout(function(){Wh=!1},1);return}Vh++,Kb(r.node,n.focusOptions),Vh--}};function Cl(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var hG=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Cl(n),parent:Cl(n.parentElement),left:Cl(n.previousElementSibling),right:Cl(n.nextElementSibling)}),n=n.parentElement;return{element:Cl(e),stack:t,ownerDocument:e.ownerDocument}},gG=function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,u=0,d=a;u<d.length;u++){var f=d[u],p=(t=f.parent)===null||t===void 0?void 0:t.call(f);if(p&&s.contains(p)){for(var h=(n=f.left)===null||n===void 0?void 0:n.call(f),v=f.current(),y=p.contains(v)?v:void 0,x=(r=f.right)===null||r===void 0?void 0:r.call(f),b=Ub([p],l),g=(i=(o=y??(h==null?void 0:h.nextElementSibling))!==null&&o!==void 0?o:x)!==null&&i!==void 0?i:h;g;){for(var S=0,w=b;S<w.length;S++){var k=w[S];if(g!=null&&g.contains(k.node))return k.node}g=g.nextElementSibling}if(b.length)return b[0].node}}},j$=function(e){var t=hG(e);return function(){return gG(t)}},vG=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=ca(t);if(r.every(function(a){return!Qi(a,e)}))return console.error("Active element is not contained in the scope"),{};var o=n?Ub(r,new Map):Gc(r,new Map),i=o.findIndex(function(a){var s=a.node;return s===e});if(i!==-1)return{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}},yG=function(e,t){var n=t?Ub(ca(e),new Map):Gc(ca(e),new Map);return{first:n[0],last:n[n.length-1]}},bG=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},$$=function(e,t,n){t===void 0&&(t={});var r=bG(t),o=vG(e,r.scope,r.onlyTabbable);if(o){var i=n(o,r.cycle);i&&Kb(i.node,r.focusOptions)}},xG=function(e,t){t===void 0&&(t={}),$$(e,t,function(n,r){var o=n.next,i=n.first;return o||r&&i})},SG=function(e,t){t===void 0&&(t={}),$$(e,t,function(n,r){var o=n.prev,i=n.last;return o||r&&i})},A$=function(e,t,n){var r,o=yG(e,(r=t.onlyTabbable)!==null&&r!==void 0?r:!0),i=o[n];i&&Kb(i.node,t.focusOptions)},wG=function(e,t){t===void 0&&(t={}),A$(e,t,"first")},kG=function(e,t){t===void 0&&(t={}),A$(e,t,"last")};function Xb(e){setTimeout(e,1)}var CG=function(t){return t&&"current"in t?t.current:t},I$=function(){return document&&document.activeElement===document.body},PG=function(){return I$()||sG()},Ss=null,an=null,zk=function(){return null},ws=null,Xc=!1,Yb=!1,_G=function(){return!0},TG=function(t){return(Ss.whiteList||_G)(t)},EG=function(t,n){ws={observerNode:t,portaledElement:n}},jG=function(t){return ws&&ws.portaledElement===t};function Mk(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(i!==e)return;o=null}else break}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var $G=function(t){return t?!!Xc:Xc==="meanwhile"},AG=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},IG=function(t,n){return n.some(function(r){return AG(t,r,r)})},R$=function(t){return Gc(t,new Map)},RG=function(t){return!R$([t.parentNode]).some(function(n){return n.node===t})},np=function(){var t=!1;if(Ss){var n=Ss,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,l=n.focusOptions,u=n.noFocusGuards,d=r||ws&&ws.portaledElement;if(I$()&&an&&an!==document.body&&(!document.body.contains(an)||RG(an))){var f=zk();f&&f.focus()}var p=document&&document.activeElement;if(d){var h=[d].concat(a.map(CG).filter(Boolean)),v=function(){if(!$G(s)||!u||!an||Yb)return!1;var S=R$(h),w=S.findIndex(function(k){var _=k.node;return _===an});return w===0||w===S.length-1};if((!p||TG(p))&&(o||v()||!PG()||!an&&i)&&(d&&!(_$(h)||p&&IG(p,h)||jG(p))&&(document&&!an&&p&&!i?(p.blur&&p.blur(),document.body.focus()):(t=E$(h,an,{focusOptions:l}),ws={})),an=document&&document.activeElement,an!==document.body&&(zk=j$(an)),Xc=!1),document&&p!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,x=mG(h),b=x.map(function(g){var S=g.node;return S}).indexOf(y);b>-1&&(x.filter(function(g){var S=g.guard,w=g.node;return S&&w.dataset.focusAutoGuard}).forEach(function(g){var S=g.node;return S.removeAttribute("tabIndex")}),Mk(b,x.length,1,x),Mk(b,-1,-1,x))}}}return t},z$=function(t){np()&&t&&(t.stopPropagation(),t.preventDefault())},qb=function(){return Xb(np)},zG=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||EG(r,n)},MG=function(){return null},M$=function(){Yb=!0},N$=function(){Yb=!1,Xc="just",Xb(function(){Xc="meanwhile"})},NG=function(){document.addEventListener("focusin",z$),document.addEventListener("focusout",qb),window.addEventListener("focus",M$),window.addEventListener("blur",N$)},OG=function(){document.removeEventListener("focusin",z$),document.removeEventListener("focusout",qb),window.removeEventListener("focus",M$),window.removeEventListener("blur",N$)};function DG(e){return e.filter(function(t){var n=t.disabled;return!n})}var O$={moveFocusInside:E$,focusInside:_$,focusNextElement:xG,focusPrevElement:SG,focusFirstElement:wG,focusLastElement:kG,captureFocusRestore:j$};function LG(e){var t=e.slice(-1)[0];t&&!Ss&&NG();var n=Ss,r=n&&t&&t.id===n.id;Ss=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(an=null,(!r||n.observed!==t.observed)&&t.onActivation(O$),np(),Xb(np)):(OG(),an=null)}m$.assignSyncMedium(zG);h$.assignMedium(qb);RH.assignMedium(function(e){return e(O$)});const FG=BH(DG,LG)(MG);var Hv=m.forwardRef(function(t,n){return Rt.createElement(Lb,sa({sideCar:FG,ref:n},t))}),D$=Lb.propTypes||{};D$.sideCar;PH(D$,["sideCar"]);Hv.propTypes={};const BG=Hv.default??Hv,L$=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:u}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&Ez(r.current).length===0&&requestAnimationFrame(()=>{var v;(v=r.current)==null||v.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=o&&!n;return c.jsx(BG,{crossFrame:u,persistentFocus:l,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:i})};L$.displayName="FocusLock";const _e=F(function(t,n){const r=zn("FormLabel",t),o=Te(t),{className:i,children:a,requiredIndicator:s=c.jsx(F$,{}),optionalIndicator:l=null,...u}=o,d=xu(),f=(d==null?void 0:d.getLabelProps(u,n))??{ref:n,...u};return c.jsxs(N.label,{...f,className:V("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?s:l]})});_e.displayName="FormLabel";const F$=F(function(t,n){const r=xu(),o=e$();if(!(r!=null&&r.isRequired))return null;const i=V("chakra-form__required-indicator",t.className);return c.jsx(N.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});F$.displayName="RequiredIndicator";const B$=F(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:a,column:s,row:l,autoFlow:u,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...v}=t,y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:a,gridAutoColumns:p,gridColumn:s,gridRow:l,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return c.jsx(N.div,{ref:n,__css:y,...v})});B$.displayName="Grid";const ua=F(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:a,minChildWidth:s,...l}=t,u=bo(),d=s?WG(s,u):UG(r);return c.jsx(B$,{ref:n,gap:a,columnGap:o,rowGap:i,templateColumns:d,...l})});ua.displayName="SimpleGrid";function VG(e){return typeof e=="number"?`${e}px`:e}function WG(e,t){return Cy(e,n=>{const r=dU("sizes",n,VG(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function UG(e){return Cy(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function Zp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=m.Children.toArray(e.path),a=F((s,l)=>c.jsx(vt,{ref:l,viewBox:t,...o,...s,children:i.length?i:c.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const ut=F(function(t,n){const{htmlSize:r,...o}=t,i=Ve("Input",o),a=Te(o),s=t$(a),l=V("chakra-input",t.className);return c.jsx(N.input,{size:r,...s,__css:i.field,ref:n,className:l})});ut.displayName="Input";ut.id="Input";const[HG,GG]=be({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),Qb=F(function(t,n){const r=Ve("Input",t),{children:o,className:i,...a}=Te(t),s=V("chakra-input__group",i),l={},u=Sy(o),d=r.field;u.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(l.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(l.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(l.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const f=u.map(p=>{var v,y;const h=wy({size:((v=p.props)==null?void 0:v.size)||t.size,variant:((y=p.props)==null?void 0:y.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,l,p.props))});return c.jsx(N.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:c.jsx(HG,{value:r,children:f})})});Qb.displayName="InputGroup";const KG=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Jp=F(function(t,n){const{placement:r="left",...o}=t,i=GG(),a=i.field,l={[r==="left"?"insetStart":"insetEnd"]:"0",width:(a==null?void 0:a.height)??(a==null?void 0:a.h),height:(a==null?void 0:a.height)??(a==null?void 0:a.h),fontSize:a==null?void 0:a.fontSize,...i.element};return c.jsx(KG,{ref:n,__css:l,...o})});Jp.id="InputElement";Jp.displayName="InputElement";const Zb=F(function(t,n){const{className:r,...o}=t,i=V("chakra-input__left-element",r);return c.jsx(Jp,{ref:n,placement:"left",className:i,...o})});Zb.id="InputLeftElement";Zb.displayName="InputLeftElement";const em=F(function(t,n){const{className:r,...o}=t,i=V("chakra-input__right-element",r);return c.jsx(Jp,{ref:n,placement:"right",className:i,...o})});em.id="InputRightElement";em.displayName="InputRightElement";const hi=F(function(t,n){const r=zn("Link",t),{className:o,isExternal:i,...a}=Te(t);return c.jsx(N.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:V("chakra-link",o),...a,__css:r})});hi.displayName="Link";const[XG,V$]=be({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),tm=F(function(t,n){const r=Ve("List",t),{children:o,styleType:i="none",stylePosition:a,spacing:s,...l}=Te(t),u=Sy(o),f=s?{["& > *:not(style) ~ *:not(style)"]:{mt:s}}:{};return c.jsx(XG,{value:r,children:c.jsx(N.ul,{ref:n,listStyleType:i,listStylePosition:a,role:"list",__css:{...r.container,...f},...l,children:u})})});tm.displayName="List";const YG=F((e,t)=>{const{as:n,...r}=e;return c.jsx(tm,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});YG.displayName="OrderedList";const qG=F(function(t,n){const{as:r,...o}=t;return c.jsx(tm,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});qG.displayName="UnorderedList";const W$=F(function(t,n){const r=V$();return c.jsx(N.li,{ref:n,...t,__css:r.item})});W$.displayName="ListItem";const QG=F(function(t,n){const r=V$();return c.jsx(vt,{ref:n,role:"presentation",...t,__css:r.icon})});QG.displayName="ListIcon";function ZG(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=d9(),i=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(u=>u!=null);const[s,l]=m.useState(()=>i.map((u,d)=>({media:u,matches:n?!!a[d]:o().matchMedia(u).matches})));return m.useEffect(()=>{const u=o();l(i.map(p=>({media:p,matches:u.matchMedia(p).matches})));const d=i.map(p=>u.matchMedia(p)),f=p=>{l(h=>h.slice().map(v=>v.media===p.media?{...v,matches:p.matches}:v))};return d.forEach(p=>{typeof p.addListener=="function"?p.addListener(f):p.addEventListener("change",f)}),()=>{d.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(f):p.removeEventListener("change",f)})}},[o]),s.map(u=>u.matches)}function JG(e){var s;const t=kt(e)?e:{fallback:e??"base"},r=bo().__breakpoints.details.map(({minMaxQuery:l,breakpoint:u})=>({breakpoint:u,query:l.replace("@media screen and ","")})),o=r.map(l=>l.breakpoint===t.fallback),a=ZG(r.map(l=>l.query),{fallback:o,ssr:t.ssr}).findIndex(l=>l==!0);return((s=r[a])==null?void 0:s.breakpoint)??t.fallback}function eK(e,t,n=iT){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function rp(e,t){var s;const n=kt(t)?t:{fallback:t??"base"},r=JG(n),o=bo();if(!r)return;const i=Array.from(((s=o.__breakpoints)==null?void 0:s.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(Iz(e,i)).map(([l,u])=>[l,u])):e;return eK(a,r,i)}var pn="top",Xn="bottom",Yn="right",mn="left",Jb="auto",Su=[pn,Xn,Yn,mn],Fs="start",Yc="end",tK="clippingParents",U$="viewport",Pl="popper",nK="reference",Nk=Su.reduce(function(e,t){return e.concat([t+"-"+Fs,t+"-"+Yc])},[]),H$=[].concat(Su,[Jb]).reduce(function(e,t){return e.concat([t,t+"-"+Fs,t+"-"+Yc])},[]),rK="beforeRead",oK="read",iK="afterRead",aK="beforeMain",sK="main",lK="afterMain",cK="beforeWrite",uK="write",dK="afterWrite",fK=[rK,oK,iK,aK,sK,lK,cK,uK,dK];function Lr(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function da(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function Hn(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ex(e){if(typeof ShadowRoot>"u")return!1;var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function pK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Hn(i)||!Lr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function mK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Hn(o)||!Lr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const hK={name:"applyStyles",enabled:!0,phase:"write",fn:pK,effect:mK,requires:["computeStyles"]};function Dr(e){return e.split("-")[0]}var Zi=Math.max,op=Math.min,Bs=Math.round;function Gv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function G$(){return!/^((?!chrome|android).)*safari/i.test(Gv())}function Vs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Hn(e)&&(o=e.offsetWidth>0&&Bs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Bs(r.height)/e.offsetHeight||1);var a=da(e)?jn(e):window,s=a.visualViewport,l=!G$()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,d=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function tx(e){var t=Vs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function K$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ex(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mo(e){return jn(e).getComputedStyle(e)}function gK(e){return["table","td","th"].indexOf(Lr(e))>=0}function gi(e){return((da(e)?e.ownerDocument:e.document)||window.document).documentElement}function nm(e){return Lr(e)==="html"?e:e.assignedSlot||e.parentNode||(ex(e)?e.host:null)||gi(e)}function Ok(e){return!Hn(e)||mo(e).position==="fixed"?null:e.offsetParent}function vK(e){var t=/firefox/i.test(Gv()),n=/Trident/i.test(Gv());if(n&&Hn(e)){var r=mo(e);if(r.position==="fixed")return null}var o=nm(e);for(ex(o)&&(o=o.host);Hn(o)&&["html","body"].indexOf(Lr(o))<0;){var i=mo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function wu(e){for(var t=jn(e),n=Ok(e);n&&gK(n)&&mo(n).position==="static";)n=Ok(n);return n&&(Lr(n)==="html"||Lr(n)==="body"&&mo(n).position==="static")?t:n||vK(e)||t}function nx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uc(e,t,n){return Zi(e,op(t,n))}function yK(e,t,n){var r=uc(e,t,n);return r>n?n:r}function X$(){return{top:0,right:0,bottom:0,left:0}}function Y$(e){return Object.assign({},X$(),e)}function q$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var bK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Y$(typeof t!="number"?t:q$(t,Su))};function xK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Dr(n.placement),l=nx(s),u=[mn,Yn].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var f=bK(o.padding,n),p=tx(i),h=l==="y"?pn:mn,v=l==="y"?Xn:Yn,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],x=a[l]-n.rects.reference[l],b=wu(i),g=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,w=f[h],k=g-p[d]-f[v],_=g/2-p[d]/2+S,P=uc(w,_,k),T=l;n.modifiersData[r]=(t={},t[T]=P,t.centerOffset=P-_,t)}}function SK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||K$(t.elements.popper,o)&&(t.elements.arrow=o))}const wK={name:"arrow",enabled:!0,phase:"main",fn:xK,effect:SK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ws(e){return e.split("-")[1]}var kK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Bs(n*o)/o||0,y:Bs(r*o)/o||0}}function Dk(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,v=a.y,y=v===void 0?0:v,x=typeof d=="function"?d({x:h,y}):{x:h,y};h=x.x,y=x.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),S=mn,w=pn,k=window;if(u){var _=wu(n),P="clientHeight",T="clientWidth";if(_===jn(n)&&(_=gi(n),mo(_).position!=="static"&&s==="absolute"&&(P="scrollHeight",T="scrollWidth")),_=_,o===pn||(o===mn||o===Yn)&&i===Yc){w=Xn;var R=f&&_===k&&k.visualViewport?k.visualViewport.height:_[P];y-=R-r.height,y*=l?1:-1}if(o===mn||(o===pn||o===Xn)&&i===Yc){S=Yn;var E=f&&_===k&&k.visualViewport?k.visualViewport.width:_[T];h-=E-r.width,h*=l?1:-1}}var D=Object.assign({position:s},u&&kK),K=d===!0?CK({x:h,y},jn(n)):{x:h,y};if(h=K.x,y=K.y,l){var J;return Object.assign({},D,(J={},J[w]=g?"0":"",J[S]=b?"0":"",J.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",J))}return Object.assign({},D,(t={},t[w]=g?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function PK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Dr(t.placement),variation:Ws(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dk(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dk(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _K={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:PK,data:{}};var hd={passive:!0};function TK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=jn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,hd)}),s&&l.addEventListener("resize",n.update,hd),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,hd)}),s&&l.removeEventListener("resize",n.update,hd)}}const EK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:TK,data:{}};var jK={left:"right",right:"left",bottom:"top",top:"bottom"};function lf(e){return e.replace(/left|right|bottom|top/g,function(t){return jK[t]})}var $K={start:"end",end:"start"};function Lk(e){return e.replace(/start|end/g,function(t){return $K[t]})}function rx(e){var t=jn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ox(e){return Vs(gi(e)).left+rx(e).scrollLeft}function AK(e,t){var n=jn(e),r=gi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=G$();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+ox(e),y:l}}function IK(e){var t,n=gi(e),r=rx(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Zi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Zi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ox(e),l=-r.scrollTop;return mo(o||n).direction==="rtl"&&(s+=Zi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function ix(e){var t=mo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Q$(e){return["html","body","#document"].indexOf(Lr(e))>=0?e.ownerDocument.body:Hn(e)&&ix(e)?e:Q$(nm(e))}function dc(e,t){var n;t===void 0&&(t=[]);var r=Q$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=jn(r),a=o?[i].concat(i.visualViewport||[],ix(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(dc(nm(a)))}function Kv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function RK(e,t){var n=Vs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Fk(e,t,n){return t===U$?Kv(AK(e,n)):da(t)?RK(t,n):Kv(IK(gi(e)))}function zK(e){var t=dc(nm(e)),n=["absolute","fixed"].indexOf(mo(e).position)>=0,r=n&&Hn(e)?wu(e):e;return da(r)?t.filter(function(o){return da(o)&&K$(o,r)&&Lr(o)!=="body"}):[]}function MK(e,t,n,r){var o=t==="clippingParents"?zK(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var d=Fk(e,u,r);return l.top=Zi(d.top,l.top),l.right=op(d.right,l.right),l.bottom=op(d.bottom,l.bottom),l.left=Zi(d.left,l.left),l},Fk(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Z$(e){var t=e.reference,n=e.element,r=e.placement,o=r?Dr(r):null,i=r?Ws(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case pn:l={x:a,y:t.y-n.height};break;case Xn:l={x:a,y:t.y+t.height};break;case Yn:l={x:t.x+t.width,y:s};break;case mn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?nx(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Fs:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Yc:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function qc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?tK:s,u=n.rootBoundary,d=u===void 0?U$:u,f=n.elementContext,p=f===void 0?Pl:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,x=y===void 0?0:y,b=Y$(typeof x!="number"?x:q$(x,Su)),g=p===Pl?nK:Pl,S=e.rects.popper,w=e.elements[v?g:p],k=MK(da(w)?w:w.contextElement||gi(e.elements.popper),l,d,a),_=Vs(e.elements.reference),P=Z$({reference:_,element:S,placement:o}),T=Kv(Object.assign({},S,P)),R=p===Pl?T:_,E={top:k.top-R.top+b.top,bottom:R.bottom-k.bottom+b.bottom,left:k.left-R.left+b.left,right:R.right-k.right+b.right},D=e.modifiersData.offset;if(p===Pl&&D){var K=D[o];Object.keys(E).forEach(function(J){var A=[Yn,Xn].indexOf(J)>=0?1:-1,X=[pn,Xn].indexOf(J)>=0?"y":"x";E[J]+=K[X]*A})}return E}function NK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?H$:l,d=Ws(r),f=d?s?Nk:Nk.filter(function(v){return Ws(v)===d}):Su,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=qc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[Dr(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function OK(e){if(Dr(e)===Jb)return[];var t=lf(e);return[Lk(e),t,Lk(t)]}function DK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,y=n.allowedAutoPlacements,x=t.options.placement,b=Dr(x),g=b===x,S=l||(g||!v?[lf(x)]:OK(x)),w=[x].concat(S).reduce(function(xe,ve){return xe.concat(Dr(ve)===Jb?NK(t,{placement:ve,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):ve)},[]),k=t.rects.reference,_=t.rects.popper,P=new Map,T=!0,R=w[0],E=0;E<w.length;E++){var D=w[E],K=Dr(D),J=Ws(D)===Fs,A=[pn,Xn].indexOf(K)>=0,X=A?"width":"height",B=qc(t,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),z=A?J?Yn:mn:J?Xn:pn;k[X]>_[X]&&(z=lf(z));var O=lf(z),I=[];if(i&&I.push(B[K]<=0),s&&I.push(B[z]<=0,B[O]<=0),I.every(function(xe){return xe})){R=D,T=!1;break}P.set(D,I)}if(T)for(var L=v?3:1,G=function(ve){var we=w.find(function(Fe){var fe=P.get(Fe);if(fe)return fe.slice(0,ve).every(function(Z){return Z})});if(we)return R=we,"break"},H=L;H>0;H--){var Q=G(H);if(Q==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const LK={name:"flip",enabled:!0,phase:"main",fn:DK,requiresIfExists:["offset"],data:{_skip:!1}};function Bk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vk(e){return[pn,Yn,Xn,mn].some(function(t){return e[t]>=0})}function FK(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=qc(t,{elementContext:"reference"}),s=qc(t,{altBoundary:!0}),l=Bk(a,r),u=Bk(s,o,i),d=Vk(l),f=Vk(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const BK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FK};function VK(e,t,n){var r=Dr(e),o=[mn,pn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[mn,Yn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function WK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=H$.reduce(function(d,f){return d[f]=VK(f,t.rects,i),d},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const UK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:WK};function HK(e){var t=e.state,n=e.name;t.modifiersData[n]=Z$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const GK={name:"popperOffsets",enabled:!0,phase:"read",fn:HK,data:{}};function KK(e){return e==="x"?"y":"x"}function XK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=qc(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),b=Dr(t.placement),g=Ws(t.placement),S=!g,w=nx(b),k=KK(w),_=t.modifiersData.popperOffsets,P=t.rects.reference,T=t.rects.popper,R=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,E=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(_){if(i){var J,A=w==="y"?pn:mn,X=w==="y"?Xn:Yn,B=w==="y"?"height":"width",z=_[w],O=z+x[A],I=z-x[X],L=h?-T[B]/2:0,G=g===Fs?P[B]:T[B],H=g===Fs?-T[B]:-P[B],Q=t.elements.arrow,xe=h&&Q?tx(Q):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:X$(),we=ve[A],Fe=ve[X],fe=uc(0,P[B],xe[B]),Z=S?P[B]/2-L-fe-we-E.mainAxis:G-fe-we-E.mainAxis,ee=S?-P[B]/2+L+fe+Fe+E.mainAxis:H+fe+Fe+E.mainAxis,Ee=t.elements.arrow&&wu(t.elements.arrow),pe=Ee?w==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,ne=(J=D==null?void 0:D[w])!=null?J:0,ue=z+Z-ne-pe,at=z+ee-ne,We=uc(h?op(O,ue):O,z,h?Zi(I,at):I);_[w]=We,K[w]=We-z}if(s){var Bt,yr=w==="x"?pn:mn,qn=w==="x"?Xn:Yn,qt=_[k],ko=k==="y"?"height":"width",xi=qt+x[yr],Qn=qt-x[qn],wa=[pn,mn].indexOf(b)!==-1,al=(Bt=D==null?void 0:D[k])!=null?Bt:0,Au=wa?xi:qt-P[ko]-T[ko]-al+E.altAxis,Iu=wa?qt+P[ko]+T[ko]-al-E.altAxis:Qn,Si=h&&wa?yK(Au,qt,Iu):uc(h?Au:xi,qt,h?Iu:Qn);_[k]=Si,K[k]=Si-qt}t.modifiersData[r]=K}}const YK={name:"preventOverflow",enabled:!0,phase:"main",fn:XK,requiresIfExists:["offset"]};function qK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function QK(e){return e===jn(e)||!Hn(e)?rx(e):qK(e)}function ZK(e){var t=e.getBoundingClientRect(),n=Bs(t.width)/e.offsetWidth||1,r=Bs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function JK(e,t,n){n===void 0&&(n=!1);var r=Hn(t),o=Hn(t)&&ZK(t),i=gi(t),a=Vs(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Lr(t)!=="body"||ix(i))&&(s=QK(t)),Hn(t)?(l=Vs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=ox(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function eX(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function tX(e){var t=eX(e);return fK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function nX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rX(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Wk={placement:"bottom",modifiers:[],strategy:"absolute"};function Uk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function oX(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Wk:o;return function(s,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wk,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,g),d.scrollParents={reference:da(s)?dc(s):s.contextElement?dc(s.contextElement):[],popper:dc(l)};var S=tX(rX([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,g=b.reference,S=b.popper;if(Uk(g,S)){d.rects={reference:JK(g,wu(S),d.options.strategy==="fixed"),popper:tx(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(E){return d.modifiersData[E.name]=Object.assign({},E.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var k=d.orderedModifiers[w],_=k.fn,P=k.options,T=P===void 0?{}:P,R=k.name;typeof _=="function"&&(d=_({state:d,options:T,name:R,instance:h})||d)}}}},update:nX(function(){return new Promise(function(x){h.forceUpdate(),x(d)})}),destroy:function(){y(),p=!0}};if(!Uk(s,l))return h;h.setOptions(u).then(function(x){!p&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){d.orderedModifiers.forEach(function(x){var b=x.name,g=x.options,S=g===void 0?{}:g,w=x.effect;if(typeof w=="function"){var k=w({state:d,name:b,instance:h,options:S}),_=function(){};f.push(k||_)}})}function y(){f.forEach(function(x){return x()}),f=[]}return h}}var iX=[EK,GK,_K,hK,UK,LK,YK,wK,BK],aX=oX({defaultModifiers:iX});const Ea=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Nt={arrowShadowColor:Ea("--popper-arrow-shadow-color"),arrowSize:Ea("--popper-arrow-size","8px"),arrowSizeHalf:Ea("--popper-arrow-size-half"),arrowBg:Ea("--popper-arrow-bg"),transformOrigin:Ea("--popper-transform-origin"),arrowOffset:Ea("--popper-arrow-offset")};function sX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const lX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},cX=e=>lX[e],Hk={scroll:!0,resize:!0};function uX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Hk,...e}}:t={enabled:e,options:Hk},t}const dX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},fX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Gk(e)},effect:({state:e})=>()=>{Gk(e)}},Gk=e=>{e.elements.popper.style.setProperty(Nt.transformOrigin.var,cX(e.placement))},pX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{mX(e)}},mX=e=>{var n;if(!e.placement)return;const t=hX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Nt.arrowSize.varRef,height:Nt.arrowSize.varRef,zIndex:-1});const r={[Nt.arrowSizeHalf.var]:`calc(${Nt.arrowSize.varRef} / 2 - 1px)`,[Nt.arrowOffset.var]:`calc(${Nt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},hX=e=>{if(e.startsWith("top"))return{property:"bottom",value:Nt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Nt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Nt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Nt.arrowOffset.varRef}},gX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Kk(e)},effect:({state:e})=>()=>{Kk(e)}},Kk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=sX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Nt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},vX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},yX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function bX(e,t="ltr"){var r;const n=((r=vX[e])==null?void 0:r[t])||e;return t==="ltr"?n:yX[e]??n}function xX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,v=m.useRef(null),y=m.useRef(null),x=m.useRef(null),b=bX(r,h),g=m.useRef(()=>{}),S=m.useCallback(()=>{var E;!t||!v.current||!y.current||((E=g.current)==null||E.call(g),x.current=aX(v.current,y.current,{placement:b,modifiers:[gX,pX,fX,{...dX,enabled:!!p},{name:"eventListeners",...uX(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:o}),x.current.forceUpdate(),g.current=x.current.destroy)},[b,t,n,p,a,i,s,l,u,f,d,o]);m.useEffect(()=>()=>{var E;!v.current&&!y.current&&((E=x.current)==null||E.destroy(),x.current=null)},[]);const w=m.useCallback(E=>{v.current=E,S()},[S]),k=m.useCallback((E={},D=null)=>({...E,ref:xt(w,D)}),[w]),_=m.useCallback(E=>{y.current=E,S()},[S]),P=m.useCallback((E={},D=null)=>({...E,ref:xt(_,D),style:{...E.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,_,p]),T=m.useCallback((E={},D=null)=>{const{size:K,shadowColor:J,bg:A,style:X,...B}=E;return{...B,ref:D,"data-popper-arrow":"",style:SX(E)}},[]),R=m.useCallback((E={},D=null)=>({...E,ref:D,"data-popper-arrow-inner":""}),[]);return{update(){var E;(E=x.current)==null||E.update()},forceUpdate(){var E;(E=x.current)==null||E.forceUpdate()},transformOrigin:Nt.transformOrigin.varRef,referenceRef:w,popperRef:_,getPopperProps:P,getArrowProps:T,getArrowInnerProps:R,getReferenceProps:k}}function SX(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}const[zse,Mse,Nse,Ose]=LU(),[Dse,wX]=be({strict:!1,name:"MenuContext"});var kX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ja=new WeakMap,gd=new WeakMap,vd={},Uh=0,J$=function(e){return e&&(e.host||J$(e.parentNode))},CX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=J$(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},PX=function(e,t,n,r){var o=CX(t,Array.isArray(e)?e:[e]);vd[n]||(vd[n]=new WeakMap);var i=vd[n],a=[],s=new Set,l=new Set(o),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))d(p);else try{var h=p.getAttribute(r),v=h!==null&&h!=="false",y=(ja.get(p)||0)+1,x=(i.get(p)||0)+1;ja.set(p,y),i.set(p,x),a.push(p),y===1&&v&&gd.set(p,!0),x===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return d(t),s.clear(),Uh++,function(){a.forEach(function(f){var p=ja.get(f)-1,h=i.get(f)-1;ja.set(f,p),i.set(f,h),p||(gd.has(f)||f.removeAttribute(r),gd.delete(f)),h||f.removeAttribute(n)}),Uh--,Uh||(ja=new WeakMap,ja=new WeakMap,gd=new WeakMap,vd={})}},_X=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=kX(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),PX(r,o,n,"aria-hidden")):function(){return null}},TX=Object.defineProperty,EX=(e,t,n)=>t in e?TX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jX=(e,t,n)=>(EX(e,t+"",n),n);class $X{constructor(){jX(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Xv=new $X;function e5(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const o=e.current;if(o){if(t){const i=Xv.add(o);r(i)}return()=>{Xv.remove(o),r(0)}}},[t,e]),n}function AX(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=m.useRef(null),d=m.useRef(null),[f,p,h]=RX(r,"chakra-modal","chakra-modal--header","chakra-modal--body");IX(u,t&&a);const v=e5(u,t),y=m.useRef(null),x=m.useCallback(R=>{y.current=R.target},[]),b=m.useCallback(R=>{R.key==="Escape"&&(R.stopPropagation(),i&&(n==null||n()),l==null||l())},[i,n,l]),[g,S]=m.useState(!1),[w,k]=m.useState(!1),_=m.useCallback((R={},E=null)=>({role:"dialog",...R,ref:xt(E,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":g?p:void 0,"aria-describedby":w?h:void 0,onClick:ce(R.onClick,D=>D.stopPropagation())}),[h,w,f,p,g]),P=m.useCallback(R=>{R.stopPropagation(),y.current===R.target&&Xv.isTopModal(u.current)&&(o&&(n==null||n()),s==null||s())},[n,o,s]),T=m.useCallback((R={},E=null)=>({...R,ref:xt(E,d),onClick:ce(R.onClick,P),onKeyDown:ce(R.onKeyDown,b),onMouseDown:ce(R.onMouseDown,x)}),[b,x,P]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:u,overlayRef:d,getDialogProps:_,getDialogContainerProps:T,index:v}}function IX(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return _X(e.current)},[t,e,n])}function RX(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}const[zX,ba]=be({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[MX,ai]=be({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),ku=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:v,onCloseComplete:y}=t,x=Ve("Modal",t),g={...AX(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return c.jsx(MX,{value:g,children:c.jsx(zX,{value:x,children:c.jsx(yo,{...v,onExitComplete:y,children:g.isOpen&&c.jsx(Js,{...n,children:r})})})})};ku.displayName="Modal";var cf="right-scroll-bar-position",uf="width-before-scroll-bar",NX="with-scroll-bars-hidden",OX="--removed-body-scroll-bar-size",t5=f$(),Hh=function(){},rm=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Hh,onWheelCapture:Hh,onTouchMoveCapture:Hh}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,y=e.inert,x=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,S=e.gapMode,w=c$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,_=l$([n,t]),P=$r($r({},w),o);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:t5,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(s),$r($r({},P),{ref:_})):m.createElement(g,$r({},P,{className:l,ref:_}),s))});rm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rm.classNames={fullWidth:uf,zeroRight:cf};var DX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function LX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DX();return t&&e.setAttribute("nonce",t),e}function FX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function BX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var VX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=LX())&&(FX(t,n),BX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WX=function(){var e=VX();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},n5=function(){var e=WX(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},UX={left:0,top:0,right:0,gap:0},Gh=function(e){return parseInt(e||"",10)||0},HX=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Gh(n),Gh(r),Gh(o)]},GX=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return UX;var t=HX(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},KX=n5(),ks="data-scroll-locked",XX=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
||
.`.concat(NX,` {
|
||
overflow: hidden `).concat(r,`;
|
||
padding-right: `).concat(s,"px ").concat(r,`;
|
||
}
|
||
body[`).concat(ks,`] {
|
||
overflow: hidden `).concat(r,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
padding-left: `.concat(o,`px;
|
||
padding-top: `).concat(i,`px;
|
||
padding-right: `).concat(a,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(s,"px ").concat(r,`;
|
||
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(cf,` {
|
||
right: `).concat(s,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(uf,` {
|
||
margin-right: `).concat(s,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(cf," .").concat(cf,` {
|
||
right: 0 `).concat(r,`;
|
||
}
|
||
|
||
.`).concat(uf," .").concat(uf,` {
|
||
margin-right: 0 `).concat(r,`;
|
||
}
|
||
|
||
body[`).concat(ks,`] {
|
||
`).concat(OX,": ").concat(s,`px;
|
||
}
|
||
`)},Xk=function(){var e=parseInt(document.body.getAttribute(ks)||"0",10);return isFinite(e)?e:0},YX=function(){m.useEffect(function(){return document.body.setAttribute(ks,(Xk()+1).toString()),function(){var e=Xk()-1;e<=0?document.body.removeAttribute(ks):document.body.setAttribute(ks,e.toString())}},[])},qX=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;YX();var i=m.useMemo(function(){return GX(o)},[o]);return m.createElement(KX,{styles:XX(i,!t,o,n?"":"!important")})},Yv=!1;if(typeof window<"u")try{var yd=Object.defineProperty({},"passive",{get:function(){return Yv=!0,!0}});window.addEventListener("test",yd,yd),window.removeEventListener("test",yd,yd)}catch{Yv=!1}var $a=Yv?{passive:!1}:!1,QX=function(e){return e.tagName==="TEXTAREA"},r5=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!QX(e)&&n[t]==="visible")},ZX=function(e){return r5(e,"overflowY")},JX=function(e){return r5(e,"overflowX")},Yk=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=o5(e,r);if(o){var i=i5(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},tY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},o5=function(e,t){return e==="v"?ZX(t):JX(t)},i5=function(e,t){return e==="v"?eY(t):tY(t)},nY=function(e,t){return e==="h"&&t==="rtl"?-1:1},rY=function(e,t,n,r,o){var i=nY(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,d=a>0,f=0,p=0;do{if(!s)break;var h=i5(e,s),v=h[0],y=h[1],x=h[2],b=y-x-i*v;(v||b)&&o5(e,s)&&(f+=b,p+=v);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},bd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qk=function(e){return[e.deltaX,e.deltaY]},Qk=function(e){return e&&"current"in e?e.current:e},oY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},iY=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},aY=0,Aa=[];function sY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(aY++)[0],i=m.useState(n5)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=AH([e.lockRef.current],(e.shards||[]).map(Qk),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var b=bd(y),g=n.current,S="deltaX"in y?y.deltaX:g[0]-b[0],w="deltaY"in y?y.deltaY:g[1]-b[1],k,_=y.target,P=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in y&&P==="h"&&_.type==="range")return!1;var T=window.getSelection(),R=T&&T.anchorNode,E=R?R===_||R.contains(_):!1;if(E)return!1;var D=Yk(P,_);if(!D)return!0;if(D?k=P:(k=P==="v"?"h":"v",D=Yk(P,_)),!D)return!1;if(!r.current&&"changedTouches"in y&&(S||w)&&(r.current=k),!k)return!0;var K=r.current||k;return rY(K,x,y,K==="h"?S:w)},[]),l=m.useCallback(function(y){var x=y;if(!(!Aa.length||Aa[Aa.length-1]!==i)){var b="deltaY"in x?qk(x):bd(x),g=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&oY(k.delta,b)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var S=(a.current.shards||[]).map(Qk).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?s(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(y,x,b,g){var S={name:y,delta:x,target:b,should:g,shadowParent:lY(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(y){n.current=bd(y),r.current=void 0},[]),f=m.useCallback(function(y){u(y.type,qk(y),y.target,s(y,e.lockRef.current))},[]),p=m.useCallback(function(y){u(y.type,bd(y),y.target,s(y,e.lockRef.current))},[]);m.useEffect(function(){return Aa.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,$a),document.addEventListener("touchmove",l,$a),document.addEventListener("touchstart",d,$a),function(){Aa=Aa.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,$a),document.removeEventListener("touchmove",l,$a),document.removeEventListener("touchstart",d,$a)}},[]);var h=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(i,{styles:iY(o)}):null,h?m.createElement(qX,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function lY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cY=IH(t5,sY);var a5=m.forwardRef(function(e,t){return m.createElement(rm,$r({},e,{ref:t,sideCar:cY}))});a5.classNames=rm.classNames;function s5(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=ai(),[p,h]=qy();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const v=e5(r,f);return c.jsx(L$,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:d,children:c.jsx(a5,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&i,forwardProps:!0,children:e.children})})}const uY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??fr.exit(Yi.exit,o),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??fr.enter(Yi.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??fr.exit(Yi.exit,i),...o?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Fo={initial:"initial",animate:"enter",exit:"exit",variants:uY},dY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,v=r?o&&r:!0,y=o||r?"enter":"exit",x={offsetX:s,offsetY:l,reverse:i,transition:u,transitionEnd:d,delay:f};return c.jsx(yo,{...p,custom:x,children:v&&c.jsx(Rn.div,{ref:n,className:V("chakra-offset-slide",a),custom:x,...Fo,animate:y,...h})})});dY.displayName="SlideFade";const fY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??fr.exit(Yi.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??fr.enter(Yi.enter,n),transitionEnd:e==null?void 0:e.enter})},ax={initial:"exit",animate:"enter",exit:"exit",variants:fY},pY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:u,delay:d,animatePresenceProps:f,...p}=t,h=r?o&&r:!0,v=o||r?"enter":"exit",y={initialScale:a,reverse:i,transition:l,transitionEnd:u,delay:d};return c.jsx(yo,{...f,custom:y,children:h&&c.jsx(Rn.div,{ref:n,className:V("chakra-offset-slide",s),...ax,animate:v,custom:y,...p})})});pY.displayName="ScaleFade";const mY={slideInBottom:{...Fo,custom:{offsetY:16,reverse:!0}},slideInRight:{...Fo,custom:{offsetX:16,reverse:!0}},slideInTop:{...Fo,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Fo,custom:{offsetX:-16,reverse:!0}},scale:{...ax,custom:{initialScale:.95,reverse:!0}},none:{}},hY=N(Rn.section),gY=e=>mY[e||"none"],l5=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=gY(n),...o}=e;return c.jsx(hY,{ref:t,...r,...o})});l5.displayName="ModalTransition";const om=F((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=ai(),u=s(a,t),d=l(o),f=V("chakra-modal__content",n),p=ba(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},v={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:y}=ai();return c.jsx(s5,{children:c.jsx(N.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:c.jsx(l5,{preset:y,motionProps:i,className:f,...u,__css:h,children:r})})})});om.displayName="ModalContent";const el=F((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=ai();m.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=V("chakra-modal__body",n),s=ba();return c.jsx(N.div,{ref:t,className:a,id:o,...r,__css:s.body})});el.displayName="ModalBody";const Cu=F((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=ai(),a=V("chakra-modal__close-btn",r),s=ba();return c.jsx(Qp,{ref:t,__css:s.closeButton,className:a,onClick:ce(n,l=>{l.stopPropagation(),i()}),...o})});Cu.displayName="ModalCloseButton";const im=F((e,t)=>{const{className:n,...r}=e,o=V("chakra-modal__footer",n),i=ba(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return c.jsx(N.footer,{ref:t,...r,__css:a,className:o})});im.displayName="ModalFooter";const tl=F((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=ai();m.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=V("chakra-modal__header",n),s=ba(),l={flex:0,...s.header};return c.jsx(N.header,{ref:t,className:a,id:o,...r,__css:l})});tl.displayName="ModalHeader";const vY={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??fr.enter(Yi.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??fr.exit(Yi.exit,n),transitionEnd:t==null?void 0:t.exit})},c5={initial:"exit",animate:"enter",exit:"exit",variants:vY},yY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:a,transitionEnd:s,delay:l,animatePresenceProps:u,...d}=t,f=o||r?"enter":"exit",p=r?o&&r:!0,h={transition:a,transitionEnd:s,delay:l};return c.jsx(yo,{...u,custom:h,children:p&&c.jsx(Rn.div,{ref:n,className:V("chakra-fade",i),custom:h,...c5,animate:f,...d})})});yY.displayName="Fade";const bY=N(Rn.div),nl=F((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=V("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ba().overlay},{motionPreset:u}=ai(),f=o||(u==="none"?{}:c5);return c.jsx(bY,{...f,__css:l,ref:t,className:a,...i})});nl.displayName="ModalOverlay";function xY(e){const{leastDestructiveRef:t,...n}=e;return c.jsx(ku,{...n,initialFocusRef:t})}const SY=F((e,t)=>c.jsx(om,{ref:t,role:"alertdialog",...e})),[wY,kY]=be(),CY={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function PY(e,t){var n;if(e)return((n=CY[e])==null?void 0:n[t])??e}function u5(e){var u;const{isOpen:t,onClose:n,placement:r="right",children:o,...i}=e,a=bo(),s=(u=a.components)==null?void 0:u.Drawer,l=PY(r,a.direction);return c.jsx(wY,{value:{placement:l},children:c.jsx(ku,{isOpen:t,onClose:n,styleConfig:s,...i,children:o})})}const Zk={exit:{duration:.15,ease:Jr.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},_Y={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=Nv({direction:e});return{...o,transition:(t==null?void 0:t.exit)??fr.exit(Zk.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=Nv({direction:e});return{...o,transition:(n==null?void 0:n.enter)??fr.enter(Zk.enter,r),transitionEnd:t==null?void 0:t.enter}}},d5=m.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:a,className:s,transition:l,transitionEnd:u,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,v=Nv({direction:r}),y=Object.assign({position:"fixed"},v.position,o),x=i?a&&i:!0,b=a||i?"enter":"exit",g={transitionEnd:u,transition:l,direction:r,delay:d};return c.jsx(yo,{...p,custom:g,children:x&&c.jsx(Rn.div,{...h,ref:n,initial:"exit",className:V("chakra-slide",s),animate:b,exit:"exit",custom:g,variants:_Y,style:y,...f})})});d5.displayName="Slide";const TY=N(d5),sx=F((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:u}=ai(),d=s(a,t),f=l(i),p=V("chakra-modal__content",n),h=ba(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=kY();return c.jsx(s5,{children:c.jsx(N.div,{...f,className:"chakra-modal__content-container",__css:y,children:c.jsx(TY,{motionProps:o,direction:x,in:u,className:p,...d,__css:v,children:r})})})});sx.displayName="DrawerContent";function EY(e){var n;const t=m.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function jY(e,t,n){return(e-t)*100/(n-t)}du({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});du({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const $Y=du({"0%":{left:"-40%"},"100%":{left:"100%"}}),AY=du({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function IY(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:a,role:s="progressbar"}=e,l=jY(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:s},percent:l,value:t}}const[RY,zY]=be({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),MY=F((e,t)=>{const{min:n,max:r,value:o,isIndeterminate:i,role:a,...s}=e,l=IY({value:o,min:n,max:r,isIndeterminate:i,role:a}),d={height:"100%",...zY().filledTrack};return c.jsx(N.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:d})}),qv=F((e,t)=>{var P;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:a,children:s,borderRadius:l,isIndeterminate:u,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:v,...y}=Te(e),x=Ve("Progress",e),b=l??((P=x.track)==null?void 0:P.borderRadius),g={animation:`${AY} 1s linear infinite`},k={...!u&&i&&a&&g,...u&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${$Y} 1s ease infinite normal none running`}},_={overflow:"hidden",position:"relative",...x.track};return c.jsx(N.div,{ref:t,borderRadius:b,__css:_,...y,children:c.jsxs(RY,{value:x,children:[c.jsx(MY,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:o,value:n,isIndeterminate:u,css:k,borderRadius:b,title:h,role:v}),s]})})});qv.displayName="Progress";function NY(e){return e&&kt(e)&&kt(e.target)}function OY(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:i,isFocusable:a,isNative:s,...l}=e,[u,d]=m.useState(r||""),f=typeof n<"u",p=f?n:u,h=m.useRef(null),v=m.useCallback(()=>{const k=h.current;if(!k)return;let _="input:not(:disabled):checked";const P=k.querySelector(_);if(P){P.focus();return}_="input:not(:disabled)";const T=k.querySelector(_);T==null||T.focus()},[]),x=`radio-${m.useId()}`,b=o||x,g=m.useCallback(k=>{const _=NY(k)?k.target.value:k;f||d(_),t==null||t(String(_))},[t,f]),S=m.useCallback((k={},_=null)=>({...k,ref:xt(_,h),role:"radiogroup"}),[]),w=m.useCallback((k={},_=null)=>({...k,ref:_,name:b,[s?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(T){g(T)},"data-radiogroup":!0}),[s,b,g,p]);return{getRootProps:S,getRadioProps:w,name:b,ref:h,focus:v,setValue:d,value:p,onChange:g,isDisabled:i,isFocusable:a,htmlProps:l}}const[DY,f5]=be({name:"RadioGroupContext",strict:!1}),p5=F((e,t)=>{const{colorScheme:n,size:r,variant:o,children:i,className:a,isDisabled:s,isFocusable:l,...u}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:v}=OY(u),y=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:o,isDisabled:s,isFocusable:l}),[h,r,f,n,d,o,s,l]);return c.jsx(DY,{value:y,children:c.jsx(N.div,{...p(v,t),className:V("chakra-radio-group",a),children:i})})});p5.displayName="RadioGroup";function LY(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:i,isRequired:a,onChange:s,isInvalid:l,name:u,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...v}=e,y=`radio-${m.useId()}`,x=xu(),g=!!f5()||!!p;let w=!!x&&!g?x.id:y;w=f??w;const k=o??(x==null?void 0:x.isDisabled),_=i??(x==null?void 0:x.isReadOnly),P=a??(x==null?void 0:x.isRequired),T=l??(x==null?void 0:x.isInvalid),[R,E]=m.useState(!1),[D,K]=m.useState(!1),[J,A]=m.useState(!1),[X,B]=m.useState(!!t),z=typeof n<"u",O=z?n:X,I=m.useRef(!1);m.useEffect(()=>Jj(ee=>{I.current=ee}),[]);const L=m.useCallback(ee=>{if(_||k){ee.preventDefault();return}z||B(ee.currentTarget.checked),s==null||s(ee)},[z,k,_,s]),G=m.useCallback(ee=>{ee.key===" "&&A(!0)},[A]),H=m.useCallback(ee=>{ee.key===" "&&A(!1)},[A]),Q=m.useCallback((ee={},Ee=null)=>({...ee,ref:Ee,"data-active":oe(J),"data-hover":oe(D),"data-disabled":oe(k),"data-invalid":oe(T),"data-checked":oe(O),"data-focus":oe(R),"data-focus-visible":oe(R&&I.current),"data-readonly":oe(_),"aria-hidden":!0,onMouseDown:ce(ee.onMouseDown,()=>A(!0)),onMouseUp:ce(ee.onMouseUp,()=>A(!1)),onMouseEnter:ce(ee.onMouseEnter,()=>K(!0)),onMouseLeave:ce(ee.onMouseLeave,()=>K(!1))}),[J,D,k,T,O,R,_]),{onFocus:xe,onBlur:ve}=x??{},we=m.useCallback((ee={},Ee=null)=>{const pe=k&&!r;return{...ee,id:w,ref:Ee,type:"radio",name:u,value:d,onChange:ce(ee.onChange,L),onBlur:ce(ve,ee.onBlur,()=>E(!1)),onFocus:ce(xe,ee.onFocus,()=>E(!0)),onKeyDown:ce(ee.onKeyDown,G),onKeyUp:ce(ee.onKeyUp,H),checked:O,disabled:pe,readOnly:_,required:P,"aria-invalid":no(T),"aria-disabled":no(pe),"aria-required":no(P),"data-readonly":oe(_),"aria-describedby":h,style:r$}},[k,r,w,u,d,L,ve,xe,G,H,O,_,P,T,h]);return{state:{isInvalid:T,isFocused:R,isChecked:O,isActive:J,isHovered:D,isDisabled:k,isReadOnly:_,isRequired:P},getRadioProps:Q,getInputProps:we,getLabelProps:(ee={},Ee=null)=>({...ee,ref:Ee,onMouseDown:ce(ee.onMouseDown,FY),"data-disabled":oe(k),"data-checked":oe(O),"data-invalid":oe(T)}),getRootProps:(ee,Ee=null)=>({htmlFor:w,...ee,ref:Ee,"data-disabled":oe(k),"data-checked":oe(O),"data-invalid":oe(T)}),htmlProps:v}}function FY(e){e.preventDefault(),e.stopPropagation()}const Qv=F((e,t)=>{const n=f5(),{onChange:r,value:o}=e,i=Ve("Radio",{...n,...e}),a=Te(e),{spacing:s="0.5rem",children:l,isDisabled:u=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:f,...p}=a;let h=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(h=n.value===o);let v=r;n!=null&&n.onChange&&o!=null&&(v=Sz(n.onChange,r));const y=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:b,getLabelProps:g,getRootProps:S,htmlProps:w}=LY({...p,isChecked:h,isFocusable:d,isDisabled:u,onChange:v,name:y}),[k,_]=sT(w,mT),P=b(_),T=x(f,t),R=g(),E=Object.assign({},k,S()),D={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...i.container},K={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...i.control},J={userSelect:"none",marginStart:s,...i.label};return c.jsxs(N.label,{className:"chakra-radio",...E,__css:D,children:[c.jsx("input",{className:"chakra-radio__input",...T}),c.jsx(N.span,{className:"chakra-radio__control",...P,__css:K}),l&&c.jsx(N.span,{className:"chakra-radio__label",...R,__css:J,children:l})]})});Qv.displayName="Radio";const m5=F(function(t,n){const{children:r,placeholder:o,className:i,...a}=t;return c.jsxs(N.select,{...a,ref:n,className:V("chakra-select",i),children:[o&&c.jsx("option",{value:"",children:o}),r]})});m5.displayName="SelectField";const h5=F((e,t)=>{var S;const n=Ve("Select",e),{rootProps:r,placeholder:o,icon:i,color:a,height:s,h:l,minH:u,minHeight:d,iconColor:f,iconSize:p,...h}=Te(e),[v,y]=sT(h,mT),x=t$(y),b={width:"100%",height:"fit-content",position:"relative",color:a},g={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return c.jsxs(N.div,{className:"chakra-select__wrapper",__css:b,...v,...r,children:[c.jsx(m5,{ref:t,height:l??s,minH:u??d,placeholder:o,...x,__css:g,children:e.children}),c.jsx(g5,{"data-disabled":oe(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:i})]})});h5.displayName="Select";const BY=e=>c.jsx("svg",{viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),VY=N("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),g5=e=>{const{children:t=c.jsx(BY,{}),...n}=e,r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return c.jsx(VY,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};g5.displayName="SelectIcon";const fa=N("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});fa.displayName="Spacer";const v5=e=>c.jsx(N.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});v5.displayName="StackItem";function WY(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Cy(n,o=>r[o])}}const Se=F((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:u,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",v=m.useMemo(()=>WY({spacing:a,direction:h}),[a,h]),y=!!u,x=!f&&!y,b=m.useMemo(()=>{const S=Sy(l);return x?S:S.map((w,k)=>{const _=typeof w.key<"u"?w.key:k,P=k+1===S.length,R=f?c.jsx(v5,{children:w},_):w;if(!y)return R;const E=m.cloneElement(u,{__css:v}),D=P?null:E;return c.jsxs(m.Fragment,{children:[R,D]},_)})},[u,v,y,x,f,l]),g=V("chakra-stack",d);return c.jsx(N.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:s,gap:y?void 0:a,className:g,...p,children:b})});Se.displayName="Stack";const me=F((e,t)=>c.jsx(Se,{align:"center",...e,direction:"row",ref:t}));me.displayName="HStack";const ip=F((e,t)=>c.jsx(Se,{align:"center",...e,direction:"column",ref:t}));ip.displayName="VStack";const[UY,y5]=be({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Stat />" `}),Ai=F(function(t,n){const r=Ve("Stat",t),o={position:"relative",flex:"1 1 0%",...r.container},{className:i,children:a,...s}=Te(t);return c.jsx(UY,{value:r,children:c.jsx(N.div,{ref:n,...s,className:V("chakra-stat",i),__css:o,children:c.jsx("dl",{children:a})})})});Ai.displayName="Stat";const Ii=F(function(t,n){const r=y5();return c.jsx(N.dt,{ref:n,...t,className:V("chakra-stat__label",t.className),__css:r.label})});Ii.displayName="StatLabel";const jo=F(function(t,n){const r=y5();return c.jsx(N.dd,{ref:n,...t,className:V("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});jo.displayName="StatNumber";const[HY,vi]=be({name:"StepContext"}),[GY,xa]=gr("Stepper"),KY=F(function(t,n){const{orientation:r,status:o,showLastSeparator:i}=vi(),a=xa();return c.jsx(N.div,{ref:n,"data-status":o,"data-orientation":r,"data-stretch":oe(i),__css:a.step,...t,className:V("chakra-step",t.className)})}),XY=F(function(t,n){const{status:r}=vi(),o=xa();return c.jsx(N.p,{ref:n,"data-status":r,...t,className:V("chakra-step__description",t.className),__css:o.description})});function YY(e){return c.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:c.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function qY(e){const{status:t}=vi(),n=xa(),r=t==="complete"?YY:void 0;return c.jsx(vt,{as:r,__css:n.icon,...e,className:V("chakra-step__icon",e.className)})}const Jk=F(function(t,n){const{children:r,...o}=t,{status:i,index:a}=vi(),s=xa();return c.jsx(N.div,{ref:n,"data-status":i,__css:s.number,...o,className:V("chakra-step__number",t.className),children:r||a+1})});function QY(e){const{complete:t,incomplete:n,active:r}=e,o=vi();let i=null;switch(o.status){case"complete":i=Kt(t,o);break;case"incomplete":i=Kt(n,o);break;case"active":i=Kt(r,o);break}return i?c.jsx(c.Fragment,{children:i}):null}const ZY=F(function(t,n){const{status:r}=vi(),o=xa();return c.jsx(N.div,{ref:n,"data-status":r,...t,__css:o.indicator,className:V("chakra-step__indicator",t.className)})}),b5=F(function(t,n){const{orientation:r,status:o,isLast:i,showLastSeparator:a}=vi(),s=xa();return i&&!a?null:c.jsx(N.div,{ref:n,role:"separator","data-orientation":r,"data-status":o,__css:s.separator,...t,className:V("chakra-step__separator",t.className)})}),JY=F(function(t,n){const{status:r}=vi(),o=xa();return c.jsx(N.h3,{ref:n,"data-status":r,...t,__css:o.title,className:V("chakra-step__title",t.className)})}),eq=F(function(t,n){const r=Ve("Stepper",t),{children:o,index:i,orientation:a="horizontal",showLastSeparator:s=!1,...l}=Te(t),u=m.Children.toArray(o),d=u.length;function f(p){return p<i?"complete":p>i?"incomplete":"active"}return c.jsx(N.div,{ref:n,"aria-label":"Progress","data-orientation":a,...l,__css:r.stepper,className:V("chakra-stepper",t.className),children:c.jsx(GY,{value:r,children:u.map((p,h)=>c.jsx(HY,{value:{index:h,status:f(h),orientation:a,showLastSeparator:s,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),df=F(function(t,n){const r=Ve("Switch",t),{spacing:o="0.5rem",children:i,...a}=Te(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:u,getRootProps:d,getLabelProps:f}=fH(a),p=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),h=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),v=m.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return c.jsxs(N.label,{...d(),className:V("chakra-switch",t.className),__css:p,children:[c.jsx("input",{className:"chakra-switch__input",...l({},n)}),c.jsx(N.span,{...u(),className:"chakra-switch__track",__css:h,children:c.jsx(N.span,{__css:r.thumb,className:"chakra-switch__thumb",...s()})}),i&&c.jsx(N.span,{className:"chakra-switch__label",...f(),__css:v,children:i})]})});df.displayName="Switch";const[tq,Pu]=be({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),am=F((e,t)=>{const n=Ve("Table",e),{className:r,layout:o,...i}=Te(e);return c.jsx(tq,{value:n,children:c.jsx(N.table,{ref:t,__css:{tableLayout:o,...n.table},className:V("chakra-table",r),...i})})});am.displayName="Table";const lx=F((e,t)=>{const{overflow:n,overflowX:r,className:o,...i}=e;return c.jsx(N.div,{ref:t,className:V("chakra-table__container",o),...i,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),cx=F((e,t)=>{const n=Pu();return c.jsx(N.tbody,{...e,ref:t,__css:n.tbody})}),Mt=F(({isNumeric:e,...t},n)=>{const r=Pu();return c.jsx(N.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),Jt=F(({isNumeric:e,...t},n)=>{const r=Pu();return c.jsx(N.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),ux=F((e,t)=>{const n=Pu();return c.jsx(N.thead,{...e,ref:t,__css:n.thead})}),ei=F((e,t)=>{const n=Pu();return c.jsx(N.tr,{...e,ref:t,__css:n.tr})});function nq(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function rq(e,t){const n=o=>({...t,...o,position:nq((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),a=Hj(i);return jr.notify(a,i)};return r.update=(o,i)=>{jr.update(o,n(i))},r.promise=(o,i)=>{const a=r({...i.loading,status:"loading",duration:null});o.then(s=>r.update(a,{status:"success",duration:5e3,...Kt(i.success,s)})).catch(s=>r.update(a,{status:"error",duration:5e3,...Kt(i.error,s)}))},r.closeAll=jr.closeAll,r.close=jr.close,r.isActive=jr.isActive,r}function Br(e){const{theme:t}=Dj(),n=AU();return m.useMemo(()=>rq(t.direction,{...n,...e}),[e,t.direction,n])}const oq={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Zv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},ff=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function iq(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:u,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:v=10,arrowShadowColor:y,arrowPadding:x,modifiers:b,isDisabled:g,gutter:S,offset:w,direction:k,..._}=e,{isOpen:P,onOpen:T,onClose:R}=lu({isOpen:p,defaultIsOpen:h,onOpen:l,onClose:u}),{referenceRef:E,getPopperProps:D,getArrowInnerProps:K,getArrowProps:J}=xX({enabled:P,placement:d,arrowPadding:x,modifiers:b,gutter:S,offset:w,direction:k}),A=m.useId(),B=`tooltip-${f??A}`,z=m.useRef(null),O=m.useRef(void 0),I=m.useCallback(()=>{O.current&&(clearTimeout(O.current),O.current=void 0)},[]),L=m.useRef(void 0),G=m.useCallback(()=>{L.current&&(clearTimeout(L.current),L.current=void 0)},[]),H=m.useCallback(()=>{G(),R()},[R,G]),Q=aq(z,H),xe=m.useCallback(()=>{if(!g&&!O.current){P&&Q();const pe=ff(z);O.current=pe.setTimeout(T,t)}},[Q,g,P,T,t]),ve=m.useCallback(()=>{I();const pe=ff(z);L.current=pe.setTimeout(H,n)},[n,H,I]),we=m.useCallback(()=>{P&&r&&ve()},[r,ve,P]),Fe=m.useCallback(()=>{P&&a&&ve()},[a,ve,P]),fe=m.useCallback(pe=>{P&&pe.key==="Escape"&&ve()},[P,ve]);Ud(()=>Zv(z),"keydown",s?fe:void 0),Ud(()=>{if(!i)return null;const pe=z.current;if(!pe)return null;const ne=aT(pe);return ne.localName==="body"?ff(z):ne},"scroll",()=>{P&&i&&H()},{passive:!0,capture:!0}),m.useEffect(()=>{g&&(I(),P&&R())},[g,P,R,I]),m.useEffect(()=>()=>{I(),G()},[I,G]),Ud(()=>z.current,"pointerleave",ve);const Z=m.useCallback((pe={},ne=null)=>({...pe,ref:xt(z,ne,E),onPointerEnter:ce(pe.onPointerEnter,at=>{at.pointerType!=="touch"&&xe()}),onClick:ce(pe.onClick,we),onPointerDown:ce(pe.onPointerDown,Fe),onFocus:ce(pe.onFocus,xe),onBlur:ce(pe.onBlur,ve),"aria-describedby":P?B:void 0}),[xe,ve,Fe,P,B,we,E]),ee=m.useCallback((pe={},ne=null)=>D({...pe,style:{...pe.style,[Nt.arrowSize.var]:v?`${v}px`:void 0,[Nt.arrowShadowColor.var]:y}},ne),[D,v,y]),Ee=m.useCallback((pe={},ne=null)=>{const ue={...pe.style,position:"relative",transformOrigin:Nt.transformOrigin.varRef};return{ref:ne,..._,...pe,id:B,role:"tooltip",style:ue}},[_,B]);return{isOpen:P,show:xe,hide:ve,getTriggerProps:Z,getTooltipProps:Ee,getTooltipPositionerProps:ee,getArrowProps:J,getArrowInnerProps:K}}const Kh="chakra-ui:close-tooltip";function aq(e,t){return m.useEffect(()=>{const n=Zv(e);return n.addEventListener(Kh,t),()=>n.removeEventListener(Kh,t)},[t,e]),()=>{const n=Zv(e),r=ff(e);n.dispatchEvent(new r.CustomEvent(Kh))}}const sq=N(Rn.div),dx=F((e,t)=>{const n=zn("Tooltip",e),r=Te(e),o=bo(),{children:i,label:a,shouldWrapChildren:s,"aria-label":l,hasArrow:u,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:v,motionProps:y,animatePresenceProps:x,...b}=r,g=p??h??d??v;if(g){n.bg=g;const E=MM(o,"colors",g);n[Nt.arrowBg.var]=E}const S=iq({...b,direction:o.direction}),w=!m.isValidElement(i)||s;let k;if(w)k=c.jsx(N.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:i});else{const E=m.Children.only(i);k=m.cloneElement(E,S.getTriggerProps(E.props,EY(E)))}const _=!!l,P=S.getTooltipProps({},t),T=_?ky(P,["role","id"]):P,R=oT(P,["role","id"]);return a?c.jsxs(c.Fragment,{children:[k,c.jsx(yo,{...x,children:S.isOpen&&c.jsx(Js,{...f,children:c.jsx(N.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:c.jsxs(sq,{variants:oq,initial:"exit",animate:"enter",exit:"exit",...y,...T,__css:n,children:[a,_&&c.jsx(N.span,{srOnly:!0,...R,children:l}),u&&c.jsx(N.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:c.jsx(N.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):c.jsx(c.Fragment,{children:i})});dx.displayName="Tooltip";const Dt=F(function(t,n){const r=zn("Heading",t),{className:o,...i}=Te(t);return c.jsx(N.h2,{ref:n,className:V("chakra-heading",t.className),...i,__css:r})});Dt.displayName="Heading";const ie=F(function(t,n){const r=zn("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=Te(t),u=wy({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return c.jsx(N.p,{ref:n,className:V("chakra-text",t.className),...u,...l,__css:r})});ie.displayName="Text";var gn=e=>Zp({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});gn({displayName:"ChevronUpIcon",path:c.jsx("polyline",{points:"18 15 12 9 6 15"})});gn({displayName:"ChevronDownIcon",path:c.jsx("polyline",{points:"6 9 12 15 18 9"})});gn({displayName:"ChevronLeftIcon",path:c.jsx("polyline",{points:"15 18 9 12 15 6"})});gn({displayName:"ChevronRightIcon",path:c.jsx("polyline",{points:"9 18 15 12 9 6"})});gn({displayName:"ChevronDownIcon",path:c.jsxs("g",{fill:"none",children:[c.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),c.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),c.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var lq=gn({displayName:"CloseIcon",path:c.jsxs("g",{children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});gn({displayName:"FilterIcon",path:c.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});gn({displayName:"CalendarIcon",path:c.jsxs("g",{children:[c.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),c.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),c.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),c.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});gn({displayName:"PlusIcon",path:c.jsxs("g",{children:[c.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),c.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});gn({displayName:"MinusIcon",path:c.jsx("g",{children:c.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});gn({displayName:"ViewOffIcon",path:c.jsxs("g",{children:[c.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),c.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});gn({displayName:"ViewOffIcon",path:c.jsxs("g",{children:[c.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),c.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var cq=gn({displayName:"SearchIcon",path:c.jsxs("g",{children:[c.jsx("circle",{cx:"11",cy:"11",r:"8"}),c.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});gn({displayName:"CheckIcon",path:c.jsx("g",{children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})});function jt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return jt(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return jt(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var uq=jt("app-shell").parts("container","inner","main"),x5=jt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),dq=jt("banner").parts("container","icon","content","title","description","actions","close"),fq=jt("hotkeys").parts("container","group","groupTitle","item","command","then"),pq=jt("loading-overlay").parts("overlay","text"),mq=jt("nav-group").parts("container","title","icon","content"),hq=jt("nav-item").parts("item","link","inner","icon","label"),gq=jt("nprogress").parts("container","bar"),vq=jt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),yq=jt("search-input").parts("input","reset"),bq=jt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");jt("stepper").parts("container","steps","icon","content","title","separator");var xq=jt("structured-list").parts("list","item","button","header","cell","icon"),S5=jt("property").parts("property","label","value"),Sq=jt("select").parts("addon","field","element"),wq=jt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:w5,defineMultiStyleConfig:kq}=ae(yT.keys),Cq=w5(e=>{const{colorScheme:t}=e;return{container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),Pq=w5({container:{borderRadius:"md"}}),_q=kq({defaultProps:{size:"sm"},baseStyle:Pq,variants:{snackbar:Cq}}),Yr=vT("badge",["bg","color","shadow","border"]),eC=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.8)(n);return{[Yr.color.variable]:`colors.${t}.500`,_dark:{[Yr.color.variable]:r},[Yr.shadow.variable]:`inset 0 0 0px 1px ${Yr.color.reference}`}},Tq={variants:{outline:e=>{const t=eC(e);return{...t,_dark:{...t==null?void 0:t._dark,[Yr.shadow.variable]:`inset 0 0 0px 1px ${Yr.border.reference}`,[Yr.color.variable]:`colors.${e.colorScheme}.200`,[Yr.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=eC(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[Yr.color.variable]:`colors.${e.colorScheme}.200`}}}}},k5=e=>{const{colorScheme:t}=e;return t==="gray"?{base:q("gray.100","whiteAlpha.300")(e),hover:q("gray.200","whiteAlpha.400")(e),active:q("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:q(`${t}.500`,`${t}.500`)(e),hover:q(`${t}.600`,`${t}.600`)(e),active:q(`${t}.700`,`${t}.700`)(e)}},Eq={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},sm=e=>{var t;const{colorScheme:n,colorMode:r}=e;if(n==="white")return{bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(n==="neutral")return{bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};const{base:o,hover:i,active:a}=k5(e),{color:s=n==="gray"?q("black","white")(e):"white",bg:l=o,hoverBg:u=i,activeBg:d=a}=(t=Eq[n])!=null?t:{};return{bg:l,color:s,_hover:{bg:u,_disabled:{bg:l}},_active:{bg:d}}},jq=e=>({shadow:"md",...sm(e)}),C5=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:o}=k5(e);return{...P5(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?o:r}}},P5=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return{color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};const r=Et(`${t}.200`,.12)(n),o=Et(`${t}.200`,.24)(n);return{color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:r}},_active:{bg:`${t}.100`,_dark:{bg:o}}}},$q=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};const r=t==="white"?"white":q(`${t}.500`,`${t}.200`)(e),o=Et(r,.1)(n),i=Et(r,.16)(n),a=Et(r,.24)(n);return{color:t==="white"?"white":q(`${t}.600`,`${t}.200`)(e),bg:o,_hover:{bg:i},_active:{bg:a}}},Aq=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":q(`${t}.700`,`${t}.500`)(e)}}},Iq=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),sm({...e,variant:"solid",colorScheme:t})},Rq=e=>sm({...e,variant:"solid"}),zq=e=>C5({...e,variant:"outline"}),Mq={defaultProps:{size:"sm"},variants:{solid:sm,ghost:P5,outline:C5,subtle:$q,elevated:jq,link:Aq,primary:Iq,secondary:Rq,tertiary:zq}},{definePartsStyle:Ji,defineMultiStyleConfig:Nq}=ae(TT.keys),Fi=Y("card-bg"),Xh=Y("card-padding"),fx=Y("card-shadow"),Yh=Y("card-radius"),px=Y("card-border-width","0"),Bo=Y("card-border-color"),Oq=Ji(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),Dq=Ji(e=>({container:{[Fi.variable]:"colors.white",[Bo.variable]:"colors.blackAlpha.200",[px.variable]:"1px",[fx.variable]:"shadows.sm",_dark:{[Fi.variable]:"colors.whiteAlpha.200",[Bo.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Bo.variable]:"colors.blackAlpha.300",_dark:{[Bo.variable]:"colors.whiteAlpha.300"}}}})),Lq=Ji(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[px.variable]:"0",[fx.variable]:"none",[Fi.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[Fi.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[Fi.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[Fi.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),Fq=Ji(e=>{const{colorScheme:t}=e;return{container:{[px.variable]:"1px",[fx.variable]:"none",[Bo.variable]:t?`${t}.500`:"colors.blackAlpha.200",[Fi.variable]:"transparent","&.chakra-linkbox:hover":{[Bo.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Bo.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Bo.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),Bq={sm:Ji({container:{[Yh.variable]:"radii.base",[Xh.variable]:"space.3"}}),md:Ji({container:{[Yh.variable]:"radii.md",[Xh.variable]:"space.4"}}),lg:Ji({container:{[Yh.variable]:"radii.xl",[Xh.variable]:"space.6"}})},Vq=Nq({defaultProps:{variant:"elevated"},baseStyle:Oq,variants:{elevated:Dq,outline:Fq,filled:Lq},sizes:Bq}),{definePartsStyle:Wq,defineMultiStyleConfig:Uq}=ae(bT.keys),Hq=Wq(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),Gq=Uq({baseStyle:Hq,defaultProps:{colorScheme:"primary"}}),Kq={defaultProps:{size:"sm"}},{definePartsStyle:pf,defineMultiStyleConfig:Xq}=ae(Ey.keys),xd=Y("input-height"),Sd=Y("input-padding"),tC=Y("input-border-radius"),_5={sm:pf({field:{[tC.variable]:"radii.md"},group:{[tC.variable]:"radii.md"}}),md:pf({field:{[Sd.variable]:"space.3",[xd.variable]:"sizes.9"},group:{[Sd.variable]:"space.3",[xd.variable]:"sizes.9"}}),lg:pf({field:{[Sd.variable]:"space.3",[xd.variable]:"sizes.10"},group:{[Sd.variable]:"space.3",[xd.variable]:"sizes.10"}})},T5=pf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),mx=Xq({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:T5},sizes:_5}),Yq={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},fc=mx,qq=mx,Qq={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:T5},sizes:_5},Zq={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=fc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},Jq=mx,{definePartsStyle:eo,defineMultiStyleConfig:eQ}=ae(Ey.keys),rs=Y("input-height"),os=Y("input-font-size"),is=Y("input-padding"),as=Y("input-border-radius"),tQ=eo({addon:{height:rs.reference,fontSize:os.reference,px:is.reference,borderRadius:as.reference},field:{width:"100%",height:rs.reference,fontSize:os.reference,px:is.reference,borderRadius:as.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),To={lg:{[os.variable]:"fontSizes.lg",[is.variable]:"space.4",[as.variable]:"radii.md",[rs.variable]:"sizes.12"},md:{[os.variable]:"fontSizes.md",[is.variable]:"space.4",[as.variable]:"radii.md",[rs.variable]:"sizes.10"},sm:{[os.variable]:"fontSizes.sm",[is.variable]:"space.3",[as.variable]:"radii.sm",[rs.variable]:"sizes.8"},xs:{[os.variable]:"fontSizes.xs",[is.variable]:"space.2",[as.variable]:"radii.sm",[rs.variable]:"sizes.6"}},nQ={lg:eo({field:To.lg,group:To.lg}),md:eo({field:To.md,group:To.md}),sm:eo({field:To.sm,group:To.sm}),xs:eo({field:To.xs,group:To.xs})};function hx(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||q("blue.500","blue.300")(e),errorBorderColor:n||q("red.500","red.300")(e)}}var rQ=eo(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=hx(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Xe(t,r),boxShadow:`0 0 0 1px ${Xe(t,r)}`},_focusVisible:{zIndex:1,borderColor:Xe(t,n),boxShadow:`0 0 0 1px ${Xe(t,n)}`}},addon:{border:"1px solid",borderColor:q("inherit","whiteAlpha.50")(e),bg:q("gray.100","whiteAlpha.300")(e)}}}),oQ=eo(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=hx(e);return{field:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e),_hover:{bg:q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Xe(t,r)},_focusVisible:{bg:"transparent",borderColor:Xe(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e)}}}),iQ=eo(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=hx(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Xe(t,r),boxShadow:`0px 1px 0px 0px ${Xe(t,r)}`},_focusVisible:{borderColor:Xe(t,n),boxShadow:`0px 1px 0px 0px ${Xe(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),aQ=eo({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),sQ={outline:rQ,filled:oQ,flushed:iQ,unstyled:aQ},Vo=eQ({baseStyle:tQ,sizes:nQ,variants:sQ,defaultProps:{size:"md",variant:"outline"}}),nC,rC,lQ={...Vo,defaultProps:fc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=fc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=Vo.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=Vo.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(rC=(nC=Vo.variants)==null?void 0:nC.unstyled)!=null?rC:{}},sizes:fc.sizes},cQ={defaultProps:{size:"lg"}},uQ=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),dQ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:uQ}},{definePartsStyle:E5,defineMultiStyleConfig:fQ}=ae(ST.keys),pQ=E5(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),mQ=E5(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),hQ=fQ({baseStyle:pQ,variants:{dialog:mQ}}),{definePartsStyle:gQ,defineMultiStyleConfig:vQ}=ae(wT.keys),yQ=gQ(e=>({closeButton:{top:4,insetEnd:4}})),bQ=vQ({baseStyle:yQ}),{definePartsStyle:xQ,defineMultiStyleConfig:SQ}=ae(kT.keys),wQ=SQ({defaultProps:{colorScheme:"primary"},baseStyle:xQ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:kQ,defineMultiStyleConfig:CQ}=ae(CT.keys),PQ=CQ({defaultProps:{colorScheme:"primary"},baseStyle:kQ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:_Q,defineMultiStyleConfig:TQ}=ae(PT.keys),EQ=TQ({defaultProps:{colorScheme:"primary"},baseStyle:_Q(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:jQ,defineMultiStyleConfig:$Q}=ae(_T.keys),AQ=$Q({defaultProps:{colorScheme:"primary"},baseStyle:jQ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),wd=dt("tooltip-bg"),oC=dt("tooltip-fg"),IQ=dt("popper-arrow-bg"),RQ=e=>({display:"flex",[wd.variable]:"colors.white",[oC.variable]:"colors.blackAlpha.900",_dark:{[wd.variable]:"colors.gray.700",[oC.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[wd.reference],[IQ.variable]:[wd.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),zQ={baseStyle:RQ},kd=Y("stepper-indicator-size"),ea=Y("stepper-accent-color"),Bi=Y("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:MQ,definePartsStyle:Wo}=ae(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),NQ=Wo(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:Bi.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[Bi.variable]:"10px",[ea.variable]:`colors.${e}.500`,_dark:{[ea.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal","&[data-orientation=horizontal]":{height:"1px"},"&[data-orientation=vertical]":{width:"1px"},".sui-steps__item .chakra-step &[data-orientation=vertical]":{display:"none"},".sui-steps__item &[data-orientation=vertical]":{position:"static",minH:4,height:"auto",ms:Bi.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),OQ=Wo(e=>({})),DQ=Wo(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:ea.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:ea.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),LQ=Wo(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[ea.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:ea.reference,color:`${n}.500`,_dark:{bg:Et(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:ea.reference,color:`${n}.500`,_dark:{bg:Et(`${n}.200`,.24)(t),color:`${n}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),FQ=MQ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:NQ,variants:{outline:OQ,solid:DQ,subtle:LQ},sizes:{xs:Wo({stepper:{[kd.variable]:"sizes.4",[Bi.variable]:"7px"}}),sm:Wo({stepper:{[kd.variable]:"sizes.6",[Bi.variable]:"11px"}}),md:Wo({stepper:{[kd.variable]:"sizes.7",[Bi.variable]:"14px"}}),lg:Wo({stepper:{[kd.variable]:"sizes.8",[Bi.variable]:"16px"}})}}),{definePartsStyle:BQ,defineMultiStyleConfig:VQ}=ae(x5.keys),WQ=BQ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),UQ=VQ({baseStyle:WQ}),{definePartsStyle:j5,defineMultiStyleConfig:$5}=ae(gq.keys),HQ=j5(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),GQ=$5({defaultProps:{colorScheme:"teal"},baseStyle:HQ}),KQ=j5(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),XQ=$5({defaultProps:{colorScheme:"primary"},baseStyle:KQ}),{defineMultiStyleConfig:YQ}=ae(S5.keys),qQ=YQ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),QQ={Alert:_q,Badge:Tq,Button:Mq,Card:Vq,Checkbox:Gq,CloseButton:Kq,Heading:cQ,Kbd:dQ,Menu:hQ,Modal:bQ,Progress:wQ,Radio:PQ,Slider:EQ,Switch:AQ,Stepper:FQ,Tooltip:zQ,Input:fc,PinInput:Qq,FormLabel:Yq,NumberInput:qq,Select:Jq,Textarea:Zq,SuiEmptyState:UQ,SuiNProgress:XQ,SuiProperty:qQ,SuiSelect:lQ},{definePartsStyle:ZQ,defineMultiStyleConfig:JQ}=ae(uq.keys),eZ=ZQ({container:{},inner:{},main:{}}),tZ=JQ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:eZ}),{definePartsStyle:gx,defineMultiStyleConfig:nZ}=ae(dq.keys),rZ=gx({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),oZ=gx(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Et(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),iZ=gx(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),aZ=nZ({baseStyle:rZ,variants:{subtle:oZ,solid:iZ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),sZ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:A5,defineMultiStyleConfig:lZ}=ae(x5.keys),cZ=A5(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),uZ=A5(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),dZ=lZ({baseStyle:cZ,variants:{centered:uZ}}),{definePartsStyle:fZ,defineMultiStyleConfig:pZ}=ae(xT.keys),mZ=fZ({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),hZ=pZ({variants:{horizontal:mZ}}),gZ={defaultProps:{spacing:4}},vZ={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:yZ}=ae(fq.keys),bZ=yZ({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:xZ,definePartsStyle:lm}=ae(pq.keys),SZ=lm({overlay:{p:4}}),wZ=lm(()=>({overlay:{flex:1,height:"100%"}})),kZ=lm(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),CZ=lm(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),PZ=xZ({defaultProps:{variant:"fill"},baseStyle:SZ,variants:{fill:wZ,fullscreen:kZ,overlay:CZ}}),{definePartsStyle:_Z,defineMultiStyleConfig:TZ}=ae(mq.keys),EZ=_Z(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),jZ=TZ({baseStyle:EZ}),{definePartsStyle:_u,defineMultiStyleConfig:$Z}=ae(hq.keys),AZ=_u(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),IZ=_u(e=>{const t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_active:t,"&[aria-current=page]":t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),RZ=_u(e=>{const{colorScheme:t,theme:n}=e,r={bg:Et(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Et(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),zZ=_u(e=>{const{colorScheme:t}=e,n={bg:`${t}.500`};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n,color:"white"},icon:{color:"white"},label:{}}}),MZ=_u(e=>{const{colorScheme:t}=e,n={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return{item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),iC,aC,sC,lC,NZ=$Z({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:AZ,sizes:{xs:{link:(iC=Di.components.Button.sizes)==null?void 0:iC.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(aC=Di.components.Button.sizes)==null?void 0:aC.sm,icon:{me:2,fontSize:"sm"}},md:{link:(sC=Di.components.Button.sizes)==null?void 0:sC.md,icon:{me:2,fontSize:"md"}},lg:{link:(lC=Di.components.Button.sizes)==null?void 0:lC.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:IZ,subtle:RZ,solid:zZ,"left-accent":MZ}}),{definePartsStyle:$o,defineMultiStyleConfig:OZ}=ae(vq.keys),cC=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),DZ=$o(e=>({details:{minW:0},secondaryLabel:cC(e),tertiaryLabel:cC(e)})),LZ={"2xs":$o({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:$o({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:$o({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":$o({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},FZ=OZ({defaultProps:{size:"md"},baseStyle:DZ,sizes:LZ}),{defineMultiStyleConfig:BZ}=ae(S5.keys),VZ=BZ({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:WZ}=ae(yq.keys),UZ=WZ({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:vx,defineMultiStyleConfig:HZ}=ae(bq.keys),GZ=vx(e=>{const{colorScheme:t}=e;return{container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),KZ=vx(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),XZ=vx(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),YZ=HZ({defaultProps:{variant:"default"},baseStyle:GZ,variants:{default:KZ,compact:XZ}}),{defineMultiStyleConfig:qZ}=ae(Sq.keys),QZ=qZ({defaultProps:Vo.defaultProps,baseStyle:Vo.baseStyle,sizes:Vo.sizes,variants:Vo.variants}),{definePartsStyle:ZZ,defineMultiStyleConfig:JZ}=ae(xq.keys),eJ=ZZ(e=>({item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},button:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none",transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_disabled:{cursor:"inherit",opacity:.5,_hover:{bg:"transparent",_dark:{bg:"transparent"}},_active:{bg:"transparent",_dark:{bg:"transparent"}}}},header:{display:"flex",flexDirection:"row",position:"sticky",fontSize:"md",fontWeight:"semibold",color:"muted"},icon:{display:"flex",flexShrink:0}})),tJ=JZ({defaultProps:{size:"md"},baseStyle:eJ,sizes:{sm:{item:{py:1,px:1},header:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},header:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:yx,defineMultiStyleConfig:nJ}=ae(wq.keys),uC=Y("timeline-row-start","minmax(0,1fr)"),rJ=Y("timeline-row-end","minmax(0,1fr)"),dC=Y("timeline-col-start","minmax(0,1fr)"),fC=Y("timeline-col-end","minmax(0,1fr)"),oJ=yx(e=>({container:{display:"flex",[uC.variable]:"minmax(0,1fr)",[rJ.variable]:"minmax(0,1fr)",[dC.variable]:"auto",[fC.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${uC.reference}`,gridTemplateColumns:`${dC.reference} ${fC.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),iJ=yx(e=>({icon:{}})),aJ=yx(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),sJ=nJ({defaultProps:{variant:"solid",size:"sm"},baseStyle:oJ,variants:{solid:iJ,outline:aJ},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),lJ={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10},xl:{borderRadius:"md",fontSize:"1.5em",w:12,h:12}},defaultProps:{variant:"outline",size:"md"}},cJ=$e("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:uJ,definePartsStyle:dJ}=ae(cJ.keys),pC=Y("navbar-bg"),mC=Y("navbar-text-color","currentColor"),qh=Y("navbar-link-bg","transparent"),fJ=["yellow","cyan"],pJ=uJ({baseStyle:dJ(({colorScheme:e})=>{let t="currentColor";return e&&(t=fJ.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[pC.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[mC.variable]:t,bg:pC.reference,color:mC.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:qh.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[qh.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[qh.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),mJ={Form:hZ,SuiAppShell:tZ,SuiBanner:aZ,SuiCommand:sZ,SuiEmptyState:dZ,SuiFormLayout:gZ,SuiFormLegend:vZ,SuiHotkeys:bZ,SuiStructuredList:tJ,SuiLoadingOverlay:PZ,SuiNavGroup:jZ,SuiNavItem:NZ,SuiPersona:FZ,SuiProperty:VZ,SuiNProgress:GQ,SuiSearchInput:UZ,SuiSelect:QZ,SuiSidebar:YZ,SuiTimeline:sJ,SuiIconBadge:lJ,SuiNavbar:pJ},hJ=Ob({colors:{primary:Di.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:mJ}),gJ={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},Qh={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Jv={primary:Qh.purple,secondary:Qh.cyan,...Qh},vJ={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},yJ={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},bJ={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},xJ={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},SJ=xJ,wJ={outline:`0 0 0 2px ${Et(Jv.primary[500],.6)({colors:Jv})}`},kJ=wJ,CJ={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},PJ={colors:Jv,fonts:vJ,fontSizes:yJ,textStyles:bJ,sizes:SJ,shadows:kJ,semanticTokens:CJ},I5=Ob({...PJ,styles:gJ,components:QQ},hJ);function R5(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function _J(e,t){return e.find(n=>n.id===t)}function z5(e,t){const n=_J(e,t);return n?e.indexOf(n):-1}function TJ(e,t,n=!0){let r=z5(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function EJ(e,t,n=!0){let r=z5(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}const Uo=e=>(e==null?void 0:e.ownerDocument)??document,si=e=>e&&"window"in e&&e.window===e?e:Uo(e).defaultView||window;function jJ(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function $J(e){return jJ(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const AJ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function IJ(e){const t=si(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=si(e);let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function RJ(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function M5(e,t){return AJ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&IJ(e)&&RJ(e,t)&&(!e.parentElement||M5(e.parentElement,e))}const N5=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],zJ=N5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";N5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function MJ(e,t){return e.matches(zJ)&&!NJ(e)&&((t==null?void 0:t.skipVisibilityCheck)||M5(e))}function NJ(e){let t=e;for(;t!=null;){if(t instanceof si(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function O5(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const bx=typeof document<"u"?Rt.useLayoutEffect:()=>{};let e0=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{e0.delete(e)});function OJ(e,t){if(e===t)return e;let n=e0.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=e0.get(t);return r?(r.forEach(o=>o.current=e),e):t}function DJ(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=hC(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():hC(e[i],null)})}}}function hC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function D5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=D5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function LJ(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=D5(e))&&(r&&(r+=" "),r+=t);return r}function xx(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=O5(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=LJ(i,a):o==="id"&&i&&a?t.id=OJ(i,a):o==="ref"&&i&&a?t.ref=DJ(i,a):t[o]=a!==void 0?a:i}}return t}function Qc(e){if(FJ())e.focus({preventScroll:!0});else{let t=BJ(e);e.focus(),VJ(t)}}let Cd=null;function FJ(){if(Cd==null){Cd=!1;try{document.createElement("div").focus({get preventScroll(){return Cd=!0,!0}})}catch{}}return Cd}function BJ(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function VJ(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let WJ=!1;function L5(){return WJ}function wr(e,t){if(!L5())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:$J(n)?n=n.host:n=n.parentNode}return!1}function Pt(e){if(L5()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function UJ(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function HJ(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function GJ(e){for(;e&&!MJ(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=si(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,o=d=>{(Pt(d)===n||r)&&d.stopImmediatePropagation()},i=d=>{(Pt(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,Qc(n),l()))},a=d=>{(Pt(d)===e||r)&&d.stopImmediatePropagation()},s=d=>{(Pt(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,Qc(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),r=!1},u=requestAnimationFrame(l);return l}function cm(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Sx(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function yi(e){let t=null;return()=>(t==null&&(t=e()),t)}const ap=yi(function(){return Sx(/^Mac/i)}),KJ=yi(function(){return Sx(/^iPhone/i)}),F5=yi(function(){return Sx(/^iPad/i)||ap()&&navigator.maxTouchPoints>1}),B5=yi(function(){return KJ()||F5()}),XJ=yi(function(){return cm(/AppleWebKit/i)&&!YJ()}),YJ=yi(function(){return cm(/Chrome/i)}),V5=yi(function(){return cm(/Android/i)}),qJ=yi(function(){return cm(/Firefox/i)});let Oo=new Map,t0=new Set;function gC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let o=Pt(r);if(!e(r)||!o)return;let i=Oo.get(o);i||(i=new Set,Oo.set(o,i),o.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{let o=Pt(r);if(!e(r)||!o)return;let i=Oo.get(o);if(i&&(i.delete(r.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",n),Oo.delete(o)),Oo.size===0)){for(let a of t0)a();t0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?gC():document.addEventListener("DOMContentLoaded",gC));function QJ(){for(const[e]of Oo)"isConnected"in e&&!e.isConnected&&Oo.delete(e)}function ZJ(e){requestAnimationFrame(()=>{QJ(),Oo.size===0?e():t0.add(e)})}let ss="default",n0="",mf=new WeakMap;function JJ(e){if(B5()){if(ss==="default"){const t=Uo(e);n0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ss="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";mf.set(e,e.style[t]),e.style[t]="none"}}function vC(e){if(B5()){if(ss!=="disabled")return;ss="restoring",setTimeout(()=>{ZJ(()=>{if(ss==="restoring"){const t=Uo(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=n0||""),n0="",ss="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&mf.has(e)){let t=mf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),mf.delete(e)}}function yC(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let Zh=new WeakMap;function eee(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return yC(t);if(Zh.has(t))return Zh.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof si(n).HTMLMetaElement&&(n.nonce||n.content)||yC(t)||void 0;return r!==void 0&&Zh.set(t,r),r}function tee(e){return e.pointerType===""&&e.isTrusted?!0:V5()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function nee(e){return!V5()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Zc(e,t,n=!0){var l,u;let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}=t;qJ()&&((u=(l=window.event)==null?void 0:l.type)!=null&&u.startsWith("key"))&&e.target==="_blank"&&(ap()?r=!0:o=!0);let s=XJ()&&ap()&&!F5()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Zc.isOpening=n,Qc(e),e.dispatchEvent(s),Zc.isOpening=!1}Zc.isOpening=!1;const W5=Rt.createContext({register:()=>{}});W5.displayName="PressResponderContext";const ree=Rt.useInsertionEffect??bx;function hf(e){const t=m.useRef(null);return ree(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function U5(){let e=m.useRef(new Map),t=m.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),n=m.useCallback((o,i,a,s)=>{var u;let l=((u=e.current.get(a))==null?void 0:u.fn)||a;o.removeEventListener(i,l,s),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function oee(e,t){bx(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function iee(e){let t=m.useContext(W5);if(t){let{register:n,ref:r,...o}=t;e=xx(o,e),n()}return oee(t,e.ref),e}var Ps;class Pd{constructor(t,n,r,o){d1(this,Ps);Rm(this,Ps,!0);let i=(o==null?void 0:o.target)??r.currentTarget;const a=i==null?void 0:i.getBoundingClientRect();let s,l=0,u,d=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,d=r.clientY),a&&(u!=null&&d!=null?(s=u-a.left,l=d-a.top):(s=a.width/2,l=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=l,this.key=r.key}continuePropagation(){Rm(this,Ps,!1)}get shouldStopPropagation(){return u1(this,Ps)}}Ps=new WeakMap;const bC=Symbol("linkClicked"),xC="react-aria-pressable-style",SC="data-react-aria-pressable";function aee(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=iee(e),[v,y]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:g}=U5(),S=m.useCallback((A,X)=>{let B=x.current;if(s||B.didFirePressStart)return!1;let z=!0;if(B.isTriggeringEvent=!0,r){let O=new Pd("pressstart",X,A);r(O),z=O.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,y(!0),z},[s,r,n]),w=m.useCallback((A,X,B=!0)=>{let z=x.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let O=!0;if(o){let I=new Pd("pressend",X,A);o(I),O=I.shouldStopPropagation}if(n&&n(!1),y(!1),t&&B&&!s){let I=new Pd("press",X,A);t(I),O&&(O=I.shouldStopPropagation)}return z.isTriggeringEvent=!1,O},[s,o,n,t]),k=hf(w),_=m.useCallback((A,X)=>{let B=x.current;if(s)return!1;if(i){B.isTriggeringEvent=!0;let z=new Pd("pressup",X,A);return i(z),B.isTriggeringEvent=!1,z.shouldStopPropagation}return!0},[s,i]),P=hf(_),T=m.useCallback(A=>{let X=x.current;if(X.isPressed&&X.target){X.didFirePressStart&&X.pointerType!=null&&w(_i(X.target,A),X.pointerType,!1),X.isPressed=!1,X.isOverTarget=!1,X.activePointerId=null,X.pointerType=null,g(),f||vC(X.target);for(let B of X.disposables)B();X.disposables=[]}},[f,g,w]),R=hf(T);m.useEffect(()=>{s&&x.current.isPressed&&R({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let E=m.useCallback(A=>{d&&T(A)},[d,T]),D=m.useCallback(A=>{s||a==null||a(A)},[s,a]),K=m.useCallback((A,X)=>{if(!s&&a){let B=new MouseEvent("click",A);HJ(B,X),a(UJ(B))}},[s,a]),J=m.useMemo(()=>{let A=x.current,X={onKeyDown(z){var O;if(Jh(z.nativeEvent,z.currentTarget)&&wr(z.currentTarget,Pt(z))){wC(Pt(z),z.key)&&z.preventDefault();let I=!0;!A.isPressed&&!z.repeat&&(A.target=z.currentTarget,A.isPressed=!0,A.pointerType="keyboard",I=S(z,"keyboard"));let L=z.currentTarget,G=H=>{Jh(H,L)&&!H.repeat&&wr(L,Pt(H))&&A.target&&P(_i(A.target,H),"keyboard")};b(Uo(z.currentTarget),"keyup",O5(G,B),!0),I&&z.stopPropagation(),z.metaKey&&ap()&&((O=A.metaKeyEvents)==null||O.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(A.metaKeyEvents=new Map)},onClick(z){if(!(z&&!wr(z.currentTarget,Pt(z)))&&z&&z.button===0&&!A.isTriggeringEvent&&!Zc.isOpening){let O=!0;if(s&&z.preventDefault(),!A.ignoreEmulatedMouseEvents&&!A.isPressed&&(A.pointerType==="virtual"||tee(z.nativeEvent))){let I=S(z,"virtual"),L=P(z,"virtual"),G=k(z,"virtual");D(z),O=I&&L&&G}else if(A.isPressed&&A.pointerType!=="keyboard"){let I=A.pointerType||z.nativeEvent.pointerType||"virtual",L=P(_i(z.currentTarget,z),I),G=k(_i(z.currentTarget,z),I,!0);O=L&&G,A.isOverTarget=!1,D(z),R(z)}A.ignoreEmulatedMouseEvents=!1,O&&z.stopPropagation()}}},B=z=>{var O,I,L;if(A.isPressed&&A.target&&Jh(z,A.target)){wC(Pt(z),z.key)&&z.preventDefault();let G=Pt(z),H=wr(A.target,G);k(_i(A.target,z),"keyboard",H),H&&K(z,A.target),g(),z.key!=="Enter"&&wx(A.target)&&wr(A.target,G)&&!z[bC]&&(z[bC]=!0,Zc(A.target,z,!1)),A.isPressed=!1,(O=A.metaKeyEvents)==null||O.delete(z.key)}else if(z.key==="Meta"&&((I=A.metaKeyEvents)!=null&&I.size)){let G=A.metaKeyEvents;A.metaKeyEvents=void 0;for(let H of G.values())(L=A.target)==null||L.dispatchEvent(new KeyboardEvent("keyup",H))}};if(typeof PointerEvent<"u"){X.onPointerDown=I=>{if(I.button!==0||!wr(I.currentTarget,Pt(I)))return;if(nee(I.nativeEvent)){A.pointerType="virtual";return}A.pointerType=I.pointerType;let L=!0;if(!A.isPressed){A.isPressed=!0,A.isOverTarget=!0,A.activePointerId=I.pointerId,A.target=I.currentTarget,f||JJ(A.target),L=S(I,A.pointerType);let G=Pt(I);"releasePointerCapture"in G&&("hasPointerCapture"in G?G.hasPointerCapture(I.pointerId)&&G.releasePointerCapture(I.pointerId):G.releasePointerCapture(I.pointerId)),b(Uo(I.currentTarget),"pointerup",z,!1),b(Uo(I.currentTarget),"pointercancel",O,!1)}L&&I.stopPropagation()},X.onMouseDown=I=>{if(wr(I.currentTarget,Pt(I))&&I.button===0){if(u){let L=GJ(I.target);L&&A.disposables.push(L)}I.stopPropagation()}},X.onPointerUp=I=>{!wr(I.currentTarget,Pt(I))||A.pointerType==="virtual"||I.button===0&&!A.isPressed&&P(I,A.pointerType||I.pointerType)},X.onPointerEnter=I=>{I.pointerId===A.activePointerId&&A.target&&!A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!0,S(_i(A.target,I),A.pointerType))},X.onPointerLeave=I=>{I.pointerId===A.activePointerId&&A.target&&A.isOverTarget&&A.pointerType!=null&&(A.isOverTarget=!1,k(_i(A.target,I),A.pointerType,!1),E(I))};let z=I=>{if(I.pointerId===A.activePointerId&&A.isPressed&&I.button===0&&A.target){if(wr(A.target,Pt(I))&&A.pointerType!=null){let L=!1,G=setTimeout(()=>{A.isPressed&&A.target instanceof HTMLElement&&(L?R(I):(Qc(A.target),A.target.click()))},80);b(I.currentTarget,"click",()=>L=!0,!0),A.disposables.push(()=>clearTimeout(G))}else R(I);A.isOverTarget=!1}},O=I=>{R(I)};X.onDragStart=I=>{wr(I.currentTarget,Pt(I))&&R(I)}}return X},[b,s,u,g,f,E,S,D,K]);return m.useEffect(()=>{if(!p)return;const A=Uo(p.current);if(!A||!A.head||A.getElementById(xC))return;const X=A.createElement("style");X.id=xC;let B=eee(A);B&&(X.nonce=B),X.textContent=`
|
||
@layer {
|
||
[${SC}] {
|
||
touch-action: pan-x pan-y pinch-zoom;
|
||
}
|
||
}
|
||
`.trim(),A.head.prepend(X)},[p]),m.useEffect(()=>{let A=x.current;return()=>{f||vC(A.target??void 0);for(let X of A.disposables)X();A.disposables=[]}},[f]),{isPressed:l||v,pressProps:xx(h,J,{[SC]:!0})}}function wx(e){return e.tagName==="A"&&e.hasAttribute("href")}function Jh(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof si(o).HTMLInputElement&&!H5(o,n)||o instanceof si(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&wx(o))&&n!=="Enter")}function _i(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function see(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!wx(e)}function wC(e,t){return e instanceof HTMLInputElement?!H5(e,t):see(e)}const lee=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function H5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":lee.has(e.type)}let cee=0;const eg=new Map;function uee(e){let[t,n]=m.useState();return bx(()=>{if(!e)return;let r=eg.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${cee++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},eg.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),eg.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const dee=500;function fee(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=dee,accessibilityDescription:a}=e;const s=m.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=U5(),{pressProps:d}=aee({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Uo(p.target).activeElement!==p.target&&Qc(p.target),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=y=>{y.preventDefault()},v=si(p.target);l(p.target,"contextmenu",h,{once:!0}),l(v,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=uee(o&&!t?a:void 0);return{longPressProps:xx(d,f)}}function pee(){return typeof window.ResizeObserver<"u"}function mee(e){const{ref:t,box:n,onResize:r}=e;let o=hf(r);m.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(pee()){const a=new window.ResizeObserver(s=>{s.length&&o()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}function hee(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function gee(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var vee=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],kC=(e,t)=>{var n;const r=bo(),o=vee(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return rp(o,t)},[Lse,yee]=gr("SuiEmptyState"),bee=F((e,t)=>{var n;const r=yee();return c.jsx(vt,{ref:t,role:"presentation",...e,boxSize:(n=e.boxSize)!=null?n:10,sx:{...r.icon,...e.sx},className:V("sui-empty-state__icon",e.className)})});bee.displayName="EmptyStateIcon";var kx=m.createContext({});function xee(e){const{theme:t,linkComponent:n,onError:r,children:o,...i}=e,a={linkComponent:n,onError:r};return c.jsx(kx.Provider,{value:a,children:c.jsx(zU,{...i,theme:t||I5,children:o})})}var See=()=>m.useContext(kx),wee=e=>c.jsx(N.a,{...e});function Cx(){const e=See();return e!=null&&e.linkComponent?e.linkComponent:wee}var kee=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,o,i,a;(o=(r=this.props).onError)==null||o.call(r,t,n),(a=(i=this.context).onError)==null||a.call(i,t,n)},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.onError(e,t)}render(){return this.state.error?this.props.fallback||c.jsx("h1",{children:"Something went wrong."}):this.props.children}};kee.contextType=kx;var G5=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[Cee,Pee]=be({strict:!1,errorMessage:"AppShell context not available."}),_ee=e=>{const t=lu(),n=G5(e.toggleBreakpoint),r=rp(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[Tee]=gr("SuiAppShell"),Eee=F((e,t)=>{const n=Ve("SuiAppShell",e),{navbar:r,sidebar:o,aside:i,footer:a,children:s,mainRef:l,...u}=Te(e),d={flexDirection:"column",...n.container},f={flex:1,minHeight:0,minWidth:0,...n.inner},p={flex:1,flexDirection:"column",minWidth:0,...n.main},h=m.isValidElement(o)&&o.type.id==="Sidebar",v=_ee({toggleBreakpoint:h?o==null?void 0:o.props.toggleBreakpoint:void 0});return c.jsx(Cee,{value:v,children:c.jsx(Tee,{value:n,children:c.jsxs(wt,{ref:t,...u,sx:d,className:V("sui-app-shell",e.className),children:[r,c.jsxs(wt,{sx:f,className:"saas-app-shell__inner",children:[o,c.jsx(wt,{ref:l,sx:p,className:"saas-app-shell__main",children:s}),i]}),a]})})})});Eee.displayName="AppShell";function jee(e){return c.jsx(vt,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function $ee(e){return c.jsx(vt,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function CC(e){return c.jsx(vt,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var _d={enter:{duration:.2,ease:Jr.easeOut},exit:{duration:.2,ease:Jr.easeIn}},Aee={slideOutTop:{...Fo,custom:{offsetY:"-100%",reverse:!0,transition:_d},initial:"enter"},slideOutBottom:{...Fo,custom:{offsetY:"100%",reverse:!0,transition:_d},initial:"enter"},fade:{...Fo,custom:{transition:_d},initial:"enter"},scale:{...ax,custom:{initialScale:.1,reverse:!0,transition:_d},initial:"enter"},none:{custom:{}}},Iee=N(Rn.div),Ree=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,i={...Aee[n]};return c.jsx(Iee,{ref:t,...i,...r})}),[zee,Tu]=gr("SuiBanner"),Mee={info:{icon:$ee,colorScheme:"blue"},warning:{icon:CC,colorScheme:"orange"},success:{icon:jee,colorScheme:"green"},error:{icon:CC,colorScheme:"red"}},[Nee,Oee]=be({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in `<Banner />`"}),Dee=F((e,t)=>{var n;const{id:r,status:o="info",isOpen:i=!0,onClose:a,motionPreset:s="slideOutTop",...l}=Te(e),u=(n=e.colorScheme)!=null?n:Mee[o].colorScheme,d=Ve("SuiBanner",{...e,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:o,onClose:a,isOpen:i},h=["warning","error"].includes(o)?"alert":"status",v=i?"enter":"exit";return c.jsx(Nee,{value:p,children:c.jsx(zee,{value:d,children:c.jsx(yo,{children:i&&c.jsx(Ree,{id:p.id,role:h,ref:t,motionPreset:s,animate:v,...l,className:V("sui-banner",e.className),__css:f})})})})});Dee.displayName="Banner";var Lee=F((e,t)=>{const n=Tu();return c.jsx(N.div,{ref:t,...e,className:V("sui-banner__content",e.className),__css:n.content})});Lee.displayName="BannerContent";var Fee=F((e,t)=>{const n=Tu();return c.jsx(N.div,{ref:t,...e,className:V("sui-banner__title",e.className),__css:n.title})});Fee.displayName="BannerTitle";var Bee=F((e,t)=>{const r={display:"inline",...Tu().description};return c.jsx(N.div,{ref:t,...e,className:V("sui-banner__desc",e.className),__css:r})});Bee.displayName="BannerDescription";var Vee=F((e,t)=>{const{children:n,variant:r}=e,o=Tu();return c.jsx(N.div,{ref:t,...e,className:V("sui-banner__actions",e.className),__css:o.actions,children:c.jsx(Ib,{variant:r,children:n})})});Vee.displayName="BannerActions";var Wee=F((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i,isOpen:a,id:s}=Oee(),l=V("sui-banner__close-btn",r),u=Tu();return c.jsx(Qp,{ref:t,__css:u.closeButton,className:l,onClick:ce(n,d=>{d.stopPropagation(),i==null||i()}),"aria-controls":s,"aria-expanded":a!=null&&a.toString()?"true":"false",...o})});Wee.displayName="BannerCloseButton";be({name:"UseCollapseReturn"});var[Uee,Px]=gr("SuiStructuredList"),[Hee,Gee]=be({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in `<StructuredList />`"});function Kee(e){return R5(e,"[role='button']:not([disabled])")}var Xee=e=>{var t;const n=m.useId(),r=m.useRef(null),[o,i]=m.useState(null),a={onBlur:ce(e.onBlur,s=>{s.relatedTarget&&(Kee(r.current).includes(s.relatedTarget)||i(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:o,setFocusId:i,listProps:a}},Yee=F((e,t)=>{const{items:n,children:r,...o}=e,i=Ve("SuiStructuredList",o),a=Te(o);let s;n?s=n.map((f,p)=>m.createElement(K5,{...f,key:f.id||p})):s=r;const l={py:2,position:"relative",...i.list},{listProps:u,...d}=Xee(e);return c.jsx(Hee,{value:d,children:c.jsx(Uee,{value:i,children:c.jsx(N.ul,{ref:Py(t,d.containerRef),__css:l,...a,...u,className:V("sui-list",e.className),children:s})})})});Yee.displayName="StructuredList";var qee=F((e,t)=>{const{children:n,onClick:r,action:o,role:i="heading",level:a=1,...s}=e,l=Px();return c.jsxs(N.li,{ref:t,__css:l.header,onClick:r,...s,className:V("sui-list__header",e.className),children:[c.jsx(N.span,{flex:"1",userSelect:"none",role:i,"aria-level":a,children:n}),o]})});qee.displayName="StructuredListHeader";var K5=F((e,t)=>{const{onClick:n,href:r,as:o,children:i,isDisabled:a,...s}=e,l=Px(),u=!!(n||r),d=u?X5:m.Fragment,f=!!u,p={...l.item,...f?{py:0,px:0}:{}},h=u?{onClick:n,href:r,as:o,isDisabled:a}:{},v=u?c.jsx(d,{...h,children:i}):i;return c.jsx(N.li,{ref:t,__css:p,...s,className:V("sui-list__item",e.className),children:v})});K5.displayName="StructuredListItem";var Qee=e=>{var t;const{id:n,containerRef:r,focusId:o,setFocusId:i}=Gee(),a=`${n}-${m.useId()}`,s=(t=e.id)!=null?t:a,l=o===s;function u(){return R5(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:s,"data-focus":oe(l),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:ce(e.onFocus,()=>{i(s)}),onKeyDown:ce(e.onKeyDown,m.useCallback(f=>{const p=u(),h={ArrowUp:()=>{var v;(v=EJ(p,s))==null||v.focus()},ArrowDown:()=>{var v;(v=TJ(p,s))==null||v.focus()},Home:()=>{var v;(v=p[0])==null||v.focus()},End:()=>{var v;(v=p[p.length-1])==null||v.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[s])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},X5=F((e,t)=>{const{children:n,isDisabled:r,...o}=e,{buttonProps:i}=Qee(e),a=Px();return c.jsx(N.div,{ref:t,__css:a.button,role:"button",...o,...i,className:V("sui-list__item-button",e.className),children:n})});X5.displayName="StructuredListButton";var Zee=F((e,t)=>{const n=Cx(),{href:r,...o}=e;return c.jsx(hi,{as:n,ref:t,href:r,...o})});Zee.displayName="Link";gr("SuiLoadingOverlay");N(Rn.div);var Jee=typeof window<"u";function PC(e){return Jee?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var ete=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=m.useRef(o?PC(t==null?void 0:t.current):{x:0,y:0});let a=null;const s=()=>{const l=PC(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,a=null};return m.useEffect(()=>{if(!o)return;const l=()=>{n?a===null&&(a=setTimeout(s,n)):s()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current},[Fse,tte]=be({name:"UseContextMenuContext",strict:!1}),_C=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),nte=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,rte=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:o,anchor:i}=tte(),a=wX(),{popper:s,openAndFocusFirstItem:l}=a,{longPressProps:u}=fee({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{o()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),l())}}),d=m.useRef({getBoundingClientRect:_C(i.x,i.y)});return m.useEffect(()=>{s.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=_C(i.x,i.y),a.popper.update()},[i]),{triggerProps:{...u,onPointerDown:h=>{var v;h.pointerType!=="mouse"&&((v=u.onPointerDown)==null||v.call(u,h))},onMouseDown:h=>{var v;nte()&&((v=u.onMouseDown)==null||v.call(u,h))},onContextMenu:ce(h=>{h.preventDefault(),r(h),l()},e.onContextMenu),ref:xt(n,t)}}},ote=F((e,t)=>{const{children:n,longPressDisabled:r,...o}=e,{triggerProps:i}=rte(e,t);return c.jsx(N.span,{...o,sx:{WebkitTouchCallout:"none"},...i,children:n})});ote.displayName="ContextMenuTrigger";var[ite,um]=gr("SuiPersona"),TC={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},ate={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},ste=F((e,t)=>{const{children:n,...r}=e,o=Ve("SuiPersona",e),i=Te(r),s={...{display:"flex",flexDirection:"row",alignItems:"center"},...o.container};return c.jsx(ite,{value:o,children:c.jsx(N.div,{ref:t,__css:s,...i,className:V("sui-persona",e.className),children:n})})});ste.displayName="PersonaContainer";var lte=F((e,t)=>{var n,r,o,i,a;const{name:s,presence:l,presenceLabel:u,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:v,icon:y,iconLabel:x,ignoreFallback:b,loading:g,onError:S,src:w,srcSet:k,..._}=e,P={};let T;const R=bo(),E=((n=R.colors)==null?void 0:n.presence)||ate,D=!!((o=(r=R.semanticTokens)==null?void 0:r.colors)!=null&&o["presence.online"]);if(l){const K=u||((i=TC[l])==null?void 0:i.label),J=D?((a=TC[l])==null?void 0:a.color)||`presence.${l}`:E[l];f?(P.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:J,borderRadius:"50%",boxSizing:"border-box"}},P.borderWidth="0.15em",P.bg=yv("white","gray.800")):P.bg=J,T=c.jsx(Qj,{boxSize:p,...P,children:d}),K&&(T=c.jsx(dx,{label:K,children:T}))}return c.jsx(Ab,{ref:t,name:s,size:h,getInitials:v,icon:y,iconLabel:x,ignoreFallback:b,loading:g,onError:S,src:w,srcSet:k,..._,children:T})});lte.displayName="PersonaAvatar";var cte=F((e,t)=>{const{children:n,className:r,...o}=e,i=um(),s={...{display:"flex",flexDirection:"column"},...i.details};return c.jsx(N.div,{ref:t,...o,__css:s,className:V("sui-persona__details",r),children:n})});cte.displayName="PersonaDetails";var ute=F((e,t)=>{const n=um();return c.jsx(N.span,{ref:t,...e,__css:n.label,className:V("sui-persona__label",e.className)})});ute.displayName="PersonaLabel";var dte=F((e,t)=>{const n=um();return c.jsx(N.span,{ref:t,...e,__css:n.secondaryLabel,className:V("sui-persona__secondary-label",e.className)})});dte.displayName="PersonaSecondaryLabel";var fte=F((e,t)=>{const n=um();return c.jsx(N.span,{ref:t,...e,__css:n.tertiaryLabel,className:V("sui-persona__tertiary-label",e.className)})});fte.displayName="PersonaTertiaryLabel";var[pte,Y5]=gr("SuiProperty"),mte=F((e,t)=>{const n=Ve("SuiProperty",e),{children:r,label:o,value:i,labelWidth:a,spacing:s,...l}=Te(e),u={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return c.jsx(pte,{value:n,children:c.jsxs(N.dl,{ref:t,__css:u,...l,className:V("sui-property",e.className),children:[o&&c.jsx(q5,{width:a,minWidth:a,marginEnd:s,children:o}),i&&c.jsx(Q5,{children:i}),r]})})});mte.displayName="Property";var q5=F((e,t)=>{const n=Y5(),{children:r,noOfLines:o=1,width:i,minWidth:a,...s}=e,l={display:"flex",flexDirection:"row",...n.label};return i&&(l.minWidth=a||"auto",l.width=i),c.jsx(N.dt,{ref:t,__css:l,...s,className:V("sui-property__label",e.className),children:c.jsx(N.span,{flex:"1",noOfLines:o,children:r})})});q5.displayName="PropertyLabel";var Q5=F((e,t)=>{const n=Y5(),{children:r,...o}=e,i={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return c.jsx(N.dd,{ref:t,__css:i,...o,className:V("sui-property__value",e.className),children:r})});Q5.displayName="PropertyValue";function hte(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:o=!1,disableScrollHandler:i=!1,onScrollPositionChange:a,motionProps:s,...l}=e,u=m.useRef(null);m.useImperativeHandle(t,()=>u.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),v=()=>{if(u.current){const x=u.current.offsetWidth;x!==d.current&&(d.current=x)}};return mee({ref:u,onResize:()=>{var x;((x=u.current)==null?void 0:x.offsetWidth)!==d.current&&v()}}),m.useEffect(()=>{var x;v(),f.current=((x=u.current)==null?void 0:x.offsetHeight)||0},[]),ete({elementRef:n,isEnabled:o||!i,callback:({prevPos:x,currPos:b})=>{a==null||a(b.y),o&&h(g=>{const S=b.y>x.y&&b.y>f.current;return S!==g?S:g})}}),{containerRef:u,height:r,isHidden:p,shouldHideOnScroll:o,motionProps:s,getContainerProps:(x={})=>({...l,...s,"data-hidden":oe(p),ref:u,style:{"--navbar-height":r,...l.style,...x==null?void 0:x.style}})}}var[gte]=be({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),[vte,dm]=be({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:"<NavBar />"}),yte=N(Rn.nav),bte=F((e,t)=>{const{children:n,...r}=e,o=hte({...r,ref:t}),i=Ve("SuiNavbar",e),a=c.jsx(N.header,{__css:i.inner,className:"sui-navbar__inner",children:n}),s={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...i.container};return c.jsx(vte,{value:i,children:c.jsx(gte,{value:o,children:c.jsx(yte,{__css:s,animate:o.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:V("sui-navbar",e.className),...o.getContainerProps(e),children:a})})})});bte.displayName="Navbar";var xte=F((e,t)=>{const{className:n,children:r,...o}=e,i=dm();return c.jsx(N.div,{ref:t,__css:i.brand,className:V("sui-navbar__brand"),...o,children:r})});xte.displayName="NavbarBrand";var Ste=F((e,t)=>{const{className:n,children:r,spacing:o=0,...i}=e,s={...dm().content,"& > *:not(style) ~ *:not(style)":{marginStart:o}};return c.jsx(N.ul,{ref:t,__css:s,className:V("sui-navbar__content",n),...i,children:r})});Ste.displayName="NavbarContent";var wte=F((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,a=dm();return c.jsx(N.li,{ref:t,__css:a.item,className:V("sui-navbar__item",n),"data-active":oe(o),...i,children:r})});wte.displayName="NavbarItem";var kte=F((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,a=Cx(),s=dm();return c.jsx(N.a,{as:a,ref:t,__css:s.link,"data-active":oe(o),className:V("sui-navbar__link",n),...i,children:r})});kte.displayName="NavbarLink";var[Cte,Pte]=be({name:"SidebarContext",strict:!1}),[_te]=be({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:"<Sidebar />"}),Tte=N(Rn.nav),Ete={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},Z5=F((e,t)=>{var n,r,o;const i=Ve("SuiSidebar",e),s=(n=bo().components.SuiSidebar)==null?void 0:n.defaultProps,l=kC((r=e.variant)!=null?r:s==null?void 0:s.variant,{fallback:"base"}),u=kC((o=e.size)!=null?o:s==null?void 0:s.size,{fallback:"base"}),d=l==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:v,motionPreset:y="slideInOut",isOpen:x,onOpen:b,onClose:g,...S}=Te(e),w=Pee(),k=G5(h),_=rp(k,{fallback:void 0}),P=rp(k),T=typeof _>"u",R=typeof x<"u",E=(_||R)&&!d,D=lu({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:b||(w==null?void 0:w.openSidebar),onClose:g||(w==null?void 0:w.closeSidebar)}),{isOpen:K,onClose:J,onOpen:A}=D;m.useEffect(()=>{T&&P||d||R||(P?J():A())},[T,d,P]);const X={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",..._&&E?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},B={...D,breakpoints:k,isMobile:_,variant:l,size:u},z=Ete[d?"none":y||"none"];return c.jsx(Cte,{value:B,children:c.jsx(_te,{value:i,children:c.jsx(Tte,{ref:t,initial:!1,animate:!T&&(!E||K?"enter":"exit"),variants:z,__css:{...X,...i.container},...S,id:D.getDisclosureProps().id,className:V("sui-sidebar",v),"data-compact":oe(d),"data-collapsible":oe(_&&E),children:p})})})});Z5.displayName="Sidebar";Z5.id="Sidebar";be({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"});var[jte,J5]=be({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:"<NavItem />"}),eA=F(({children:e,...t},n)=>{const r=J5();return c.jsx(N.span,{ref:n,__css:r.label,...t,className:V("sui-nav-item__label",t.className),children:e})});eA.displayName="NavItemLabel";var tA=e=>{const t=J5(),{className:n,children:r,...o}=e,i=m.Children.only(r),a=m.isValidElement(i)?m.cloneElement(i,{focusable:"false","aria-hidden":!0}):null;return c.jsx(N.span,{...o,className:V("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};tA.displayName="NavItemIcon";var $te=F((e,t)=>{const{as:n,href:r,icon:o,inset:i,className:a,tooltipProps:s,isActive:l,children:u,...d}=Te(e),f=Cx(),{onClose:p,variant:h}=Pte()||{},v=h==="compact",y=Ve("SuiNavItem",e);let x=u,b=s==null?void 0:s.label;typeof x=="string"&&(!b&&v&&(b=x),x=c.jsx(eA,{children:x}));let g=n;r&&!n&&(g=f);const S=c.jsx(N.a,{as:g,"aria-current":l?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":oe(l),__css:y.link,children:c.jsxs(N.span,{__css:{...y.inner,pl:i},className:"sui-nav-item__inner",children:[o&&c.jsx(tA,{children:o}),x]})});return c.jsx(jte,{value:y,children:c.jsx(dx,{label:b,placement:"right",openDelay:400,...s,children:c.jsx(N.div,{__css:y.item,onClick:p,"data-compact":oe(v),className:V("sui-nav-item",a),children:S})})})});$te.displayName="NavItem";var Ate=F((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:o,size:i,variant:a,width:s,icon:l,resetIcon:u,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...v}=e,y=Ve("SuiSearchInput",e),x=m.useRef(null),[b,g]=lT({value:r,defaultValue:o}),S=m.useCallback(T=>{g(T.target.value)},[g]),w=m.useCallback(T=>{T.key==="Escape"&&(g(""),k())},[p,g]),k=()=>{var T;g(""),p==null||p(),(T=x.current)==null||T.focus()},_=i==="lg"?"sm":"xs",P=b&&!e.isDisabled;return c.jsxs(Qb,{size:i,width:s,children:[c.jsx(Zb,{children:l||c.jsx(cq,{})}),c.jsx(ut,{type:"text",placeholder:n,variant:a,size:i,value:b,ref:Py(t,x),sx:y.input,onChange:ce(S,f),onKeyDown:ce(w,h),...v}),c.jsx(em,{children:P?c.jsx(Cn,{onClick:k,size:_,variant:"ghost","aria-label":"Reset search",icon:u||c.jsx(lq,{}),sx:y.reset}):d})]})});Ate.displayName="SearchInput";var[Ite,Rte]=be({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"});function zte(e){const{step:t,onChange:n}=e,[r,o]=m.useState(0),i=m.useRef([]),[,a]=m.useState(Date.now()),s=m.useCallback(h=>{const v=[...i.current];v.indexOf(h)===-1&&v.push(h),i.current=v,a(Date.now())},[i,a]),l=h=>{i.current=i.current.slice(i.current.indexOf(h),1)},u=h=>{const v=i.current.indexOf(h);v!==-1&&o(v)},d=()=>{o(r+1)},f=()=>{o(r-1)};return m.useEffect(()=>{typeof t=="string"?u(t):typeof t=="number"?o(t):r===-1&&o(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:i,activeStep:i.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===i.current.length-1,isCompleted:r>=i.current.length,setIndex:o,setStep:u,nextStep:d,prevStep:f,registerStep:s,unregisterStep:l}}function Mte(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:i,activeStep:a}=Rte();return m.useEffect(()=>{if(t)return o(t),()=>{i(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[Nte,Ote]=gr("Stepper"),Dte=F((e,t)=>{var n,r,o,i;const{children:a,orientation:s="horizontal",index:l,step:u,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:v,...y}=e,x=Ve("Stepper",e),b=zte({step:u??l,onChange:d}),{activeIndex:g}=b,S=s==="vertical",w=gee(a,nA),k={position:"relative",...x.item},_=w.reduce((E,D,K,J)=>{const A=m.cloneElement(D,{key:K,...D.props,isActive:g===K,isCompleted:D.props.isCompleted||g>K});return S?E.push(c.jsxs(N.div,{className:"sui-steps__item",__css:k,children:[A,c.jsx(r0,{isOpen:g===K,orientation:s,children:D.props.children}),K<J.length-1?c.jsx(b5,{}):null]},`content-${K}`)):E.push(A),E},[]),P=hee(a,rA),T=(r=(n=w[g])==null?void 0:n.props)==null?void 0:r.children,R=g>=w.length?P:!S&&T?c.jsx(r0,{orientation:s,children:(i=(o=w[g])==null?void 0:o.props)==null?void 0:i.children}):null;return c.jsx(Nte,{value:x,children:c.jsx(Ite,{value:b,children:c.jsxs(N.div,{ref:t,__css:x.container,...y,className:V("sui-steps",e.className),children:[c.jsx(eq,{index:g,orientation:s,variant:f,colorScheme:p,size:h,...v,children:_}),R]})})})});Dte.displayName="Steps";var nA=e=>{const{render:t,icon:n,title:r,description:o,...i}=e,a=Mte(i);return t?t({...a,...e}):c.jsxs(KY,{children:[c.jsx(ZY,{children:c.jsx(QY,{complete:c.jsx(qY,{}),incomplete:c.jsx(Jk,{children:n}),active:c.jsx(Jk,{})})}),c.jsxs(ge,{flexShrink:"0",children:[c.jsx(JY,{children:r}),o&&c.jsx(XY,{children:o})]}),c.jsx(b5,{})]})};nA.displayName="StepsItem";var r0=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...o}=e,i=Ote();return c.jsx(N.div,{...o,__css:i.content,className:V("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?c.jsx(yu,{in:n,style:{overflow:n?"visible":"hidden"},children:c.jsx(N.div,{p:"2px",children:n?t:null})}):t})};r0.displayName="StepsContent";var rA=e=>{const t={};return c.jsx(N.div,{__css:t,...e,className:V("sui-steps__completed",e.className)})};rA.displayName="StepsCompleted";var[Bse,Lte]=gr("SuiTimeline"),Fte=F((e,t)=>{const{children:n,...r}=e,o=Lte();return c.jsx(N.li,{...r,ref:t,__css:o.item,className:V("sui-timeline__item",e.className),children:n})});Fte.displayName="TimelineItem";F((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=zn("SuiIconBadge",e),l=Te(a),u=n||r,d=m.isValidElement(u)?m.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...s};return c.jsx(N.div,{ref:t,__css:f,borderRadius:o?"full":void 0,"aria-label":i,...l,className:V("sui-icon-badge",e.className),children:d})});/**
|
||
* @remix-run/router v1.23.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jc.apply(null,arguments)}var Ho;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ho||(Ho={}));const EC="popstate";function Bte(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return o0("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:sp(o)}return Wte(t,n,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _x(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vte(){return Math.random().toString(36).substr(2,8)}function jC(e,t){return{usr:e.state,key:e.key,idx:t}}function o0(e,t,n,r){return n===void 0&&(n=null),Jc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rl(t):t,{state:n,key:t&&t.key||r||Vte()})}function sp(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function rl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Wte(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Ho.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(Jc({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Ho.Pop;let x=d(),b=x==null?null:x-u;u=x,l&&l({action:s,location:y.location,delta:b})}function p(x,b){s=Ho.Push;let g=o0(y.location,x,b);u=d()+1;let S=jC(g,u),w=y.createHref(g);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(w)}i&&l&&l({action:s,location:y.location,delta:1})}function h(x,b){s=Ho.Replace;let g=o0(y.location,x,b);u=d();let S=jC(g,u),w=y.createHref(g);a.replaceState(S,"",w),i&&l&&l({action:s,location:y.location,delta:0})}function v(x){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof x=="string"?x:sp(x);return g=g.replace(/ $/,"%20"),ot(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let y={get action(){return s},get location(){return e(o,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(EC,f),l=x,()=>{o.removeEventListener(EC,f),l=null}},createHref(x){return t(o,x)},createURL:v,encodeLocation(x){let b=v(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:h,go(x){return a.go(x)}};return y}var $C;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($C||($C={}));function Ute(e,t,n){return n===void 0&&(n="/"),Hte(e,t,n)}function Hte(e,t,n,r){let o=typeof t=="string"?rl(t):t,i=Us(o.pathname||"/",n);if(i==null)return null;let a=oA(e);Gte(a);let s=null,l=rne(i);for(let u=0;s==null&&u<a.length;++u)s=tne(a[u],l);return s}function oA(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ot(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ti([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(ot(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),oA(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Jte(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of iA(i.path))o(i,a,l)}),t}function iA(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=iA(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Gte(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ene(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kte=/^:[\w-]+$/,Xte=3,Yte=2,qte=1,Qte=10,Zte=-2,AC=e=>e==="*";function Jte(e,t){let n=e.split("/"),r=n.length;return n.some(AC)&&(r+=Zte),t&&(r+=Yte),n.filter(o=>!AC(o)).reduce((o,i)=>o+(Kte.test(i)?Xte:i===""?qte:Qte),r)}function ene(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function tne(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=i0({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),p=l.route;if(!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:ti([i,f.pathname]),pathnameBase:lne(ti([i,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(i=ti([i,f.pathnameBase]))}return a}function i0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nne(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let y=s[f]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=s[f];return h&&!v?u[p]=void 0:u[p]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function nne(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_x(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function rne(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _x(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Us(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const one=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ine=e=>one.test(e);function ane(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?rl(e):e,i;if(n)if(ine(n))i=n;else{if(n.includes("//")){let a=n;n=aA(n),_x(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=IC(n.substring(1),"/"):i=IC(n,t)}else i=t;return{pathname:i,search:cne(r),hash:une(o)}}function IC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function tg(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function sne(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tx(e,t){let n=sne(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ex(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=rl(e):(o=Jc({},e),ot(!o.pathname||!o.pathname.includes("?"),tg("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),tg("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),tg("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=ane(o,s),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const aA=e=>e.replace(/\/\/+/g,"/"),ti=e=>aA(e.join("/")),lne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,une=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dne(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sA=["post","put","patch","delete"];new Set(sA);const fne=["get",...sA];new Set(fne);/**
|
||
* React Router v6.30.4
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(null,arguments)}const fm=m.createContext(null),lA=m.createContext(null),xo=m.createContext(null),pm=m.createContext(null),So=m.createContext({outlet:null,matches:[],isDataRoute:!1}),cA=m.createContext(null);function pne(e,t){let{relative:n}=t===void 0?{}:t;ol()||ot(!1);let{basename:r,navigator:o}=m.useContext(xo),{hash:i,pathname:a,search:s}=mm(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:ti([r,a])),o.createHref({pathname:l,search:s,hash:i})}function ol(){return m.useContext(pm)!=null}function Sa(){return ol()||ot(!1),m.useContext(pm).location}function uA(e){m.useContext(xo).static||m.useLayoutEffect(e)}function vr(){let{isDataRoute:e}=m.useContext(So);return e?Ene():mne()}function mne(){ol()||ot(!1);let e=m.useContext(fm),{basename:t,future:n,navigator:r}=m.useContext(xo),{matches:o}=m.useContext(So),{pathname:i}=Sa(),a=JSON.stringify(Tx(o,n.v7_relativeSplatPath)),s=m.useRef(!1);return uA(()=>{s.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=Ex(u,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ti([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}const hne=m.createContext(null);function gne(e){let t=m.useContext(So).outlet;return t&&m.createElement(hne.Provider,{value:e},t)}function mm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(xo),{matches:o}=m.useContext(So),{pathname:i}=Sa(),a=JSON.stringify(Tx(o,r.v7_relativeSplatPath));return m.useMemo(()=>Ex(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function vne(e,t){return yne(e,t)}function yne(e,t,n,r){ol()||ot(!1);let{navigator:o}=m.useContext(xo),{matches:i}=m.useContext(So),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Sa(),d;if(t){var f;let x=typeof t=="string"?rl(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||ot(!1),d=x}else d=u;let p=d.pathname||"/",h=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Ute(e,{pathname:h}),y=kne(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:ti([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:ti([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&y?m.createElement(pm.Provider,{value:{location:eu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ho.Pop}},y):y}function bne(){let e=Tne(),t=dne(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const xne=m.createElement(bne,null);class Sne extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(So.Provider,{value:this.props.routeContext},m.createElement(cA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wne(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(fm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(So.Provider,{value:t},r)}function kne(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||ot(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:p,errors:h}=n,v=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||v){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,v=!1,y=null,x=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||xne,l&&(u<0&&p===0?(jne("route-fallback"),v=!0,x=null):u===p&&(v=!0,x=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),g=()=>{let S;return h?S=y:v?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(wne,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(Sne,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var dA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dA||{}),fA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fA||{});function Cne(e){let t=m.useContext(fm);return t||ot(!1),t}function Pne(e){let t=m.useContext(lA);return t||ot(!1),t}function _ne(e){let t=m.useContext(So);return t||ot(!1),t}function pA(e){let t=_ne(),n=t.matches[t.matches.length-1];return n.route.id||ot(!1),n.route.id}function Tne(){var e;let t=m.useContext(cA),n=Pne(),r=pA();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ene(){let{router:e}=Cne(dA.UseNavigateStable),t=pA(fA.UseNavigateStable),n=m.useRef(!1);return uA(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,eu({fromRouteId:t},i)))},[e,t])}const RC={};function jne(e,t,n){RC[e]||(RC[e]=!0)}function $ne(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function tu(e){let{to:t,replace:n,state:r,relative:o}=e;ol()||ot(!1);let{future:i,static:a}=m.useContext(xo),{matches:s}=m.useContext(So),{pathname:l}=Sa(),u=vr(),d=Ex(t,Tx(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function mA(e){return gne(e.context)}function Qt(e){ot(!1)}function Ane(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ho.Pop,navigator:i,static:a=!1,future:s}=e;ol()&&ot(!1);let l=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:l,navigator:i,static:a,future:eu({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=rl(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:v="default"}=r,y=m.useMemo(()=>{let x=Us(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:v},navigationType:o}},[l,d,f,p,h,v,o]);return y==null?null:m.createElement(xo.Provider,{value:u},m.createElement(pm.Provider,{children:n,value:y}))}function Ine(e){let{children:t,location:n}=e;return vne(a0(t),n)}new Promise(()=>{});function a0(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,a0(r.props.children,i));return}r.type!==Qt&&ot(!1),!r.props.index||!r.props.children||ot(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=a0(r.props.children,i)),n.push(a)}),n}/**
|
||
* React Router DOM v6.30.4
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lp.apply(null,arguments)}function hA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Rne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zne(e,t){return e.button===0&&(!t||t==="_self")&&!Rne(e)}const Mne=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Nne=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],One="6";try{window.__reactRouterVersion=One}catch{}const Dne=m.createContext({isTransitioning:!1}),Lne="startTransition",zC=ug[Lne];function Fne(e){let{basename:t,children:n,future:r,window:o}=e,i=m.useRef();i.current==null&&(i.current=Bte({window:o,v5Compat:!0}));let a=i.current,[s,l]=m.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=m.useCallback(f=>{u&&zC?zC(()=>l(f)):l(f)},[l,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>$ne(r),[r]),m.createElement(Ane,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const Bne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,en=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,p=hA(t,Mne),{basename:h}=m.useContext(xo),v,y=!1;if(typeof u=="string"&&Vne.test(u)&&(v=u,Bne))try{let S=new URL(window.location.href),w=u.startsWith("//")?new URL(S.protocol+u):new URL(u),k=Us(w.pathname,h);w.origin===S.origin&&k!=null?u=k+w.search+w.hash:y=!0}catch{}let x=pne(u,{relative:o}),b=Une(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:f});function g(S){r&&r(S),S.defaultPrevented||b(S)}return m.createElement("a",lp({},p,{href:v||x,onClick:y||i?r:g,ref:n,target:l}))}),gA=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,viewTransition:u,children:d}=t,f=hA(t,Nne),p=mm(l,{relative:f.relative}),h=Sa(),v=m.useContext(lA),{navigator:y,basename:x}=m.useContext(xo),b=v!=null&&Hne(p)&&u===!0,g=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(S=S.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&x&&(w=Us(w,x)||w);const k=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let _=S===g||!a&&S.startsWith(g)&&S.charAt(k)==="/",P=w!=null&&(w===g||!a&&w.startsWith(g)&&w.charAt(g.length)==="/"),T={isActive:_,isPending:P,isTransitioning:b},R=_?r:void 0,E;typeof i=="function"?E=i(T):E=[i,_?"active":null,P?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let D=typeof s=="function"?s(T):s;return m.createElement(en,lp({},f,{"aria-current":R,className:E,ref:n,style:D,to:l,viewTransition:u}),typeof d=="function"?d(T):d)});var s0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(s0||(s0={}));var MC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(MC||(MC={}));function Wne(e){let t=m.useContext(fm);return t||ot(!1),t}function Une(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=vr(),u=Sa(),d=mm(e,{relative:a});return m.useCallback(f=>{if(zne(f,n)){f.preventDefault();let p=r!==void 0?r:sp(u)===sp(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[u,l,d,r,o,n,e,i,a,s])}function Hne(e,t){t===void 0&&(t={});let n=m.useContext(Dne);n==null&&ot(!1);let{basename:r}=Wne(s0.useViewTransitionState),o=mm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Us(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Us(n.nextLocation.pathname,r)||n.nextLocation.pathname;return i0(o.pathname,a)!=null||i0(o.pathname,i)!=null}const Gne=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS TomTom, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"WAF ModSecurity/Coraza, TLS, JWT, isolation par démo."}];function Kne(){return c.jsxs(ge,{children:[c.jsx(ge,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:c.jsx(mr,{maxW:"container.lg",children:c.jsxs(Se,{spacing:6,textAlign:"center",align:"center",children:[c.jsx(Dt,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),c.jsx(ie,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Testez la solution complète en conditions réelles. Une démo isolée, déployée en un clic, disponible pendant 30 jours."}),c.jsxs(Se,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[c.jsx(he,{as:en,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),c.jsx(he,{as:en,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),c.jsx(mr,{maxW:"container.lg",py:16,children:c.jsx(ua,{columns:{base:1,md:2},spacing:8,children:Gne.map(e=>c.jsxs(ge,{p:6,borderWidth:"1px",borderRadius:"lg",children:[c.jsx(Dt,{size:"md",mb:2,children:e.title}),c.jsx(ie,{color:"gray.600",children:e.desc})]},e.title))})})]})}const vA="https://t.me/OMNEX_CORP",Xne=[{name:"Démo",price:"Gratuit",period:"30 jours",description:"Une instance isolée et complète pour évaluer la solution.",features:["Plateforme complète en conditions réelles","Environnement dédié et isolé","Disponible 30 jours","Accompagnement commercial"],cta:"Créer un compte",ctaHref:"/register"},{name:"Premium",price:"Sur devis",period:"",description:"Passez en production : stockage persistant, votre démo n'expire plus.",features:["Tout ce qui est inclus dans Démo","Votre nom de domaine","Support prioritaire"],cta:"Nous contacter",ctaHref:vA,ctaExternal:!0,highlighted:!0}];function Yne(){return c.jsxs(mr,{maxW:"container.lg",py:{base:12,md:20},children:[c.jsxs(Se,{spacing:4,textAlign:"center",mb:12,align:"center",children:[c.jsx(Dt,{size:"2xl",children:"Tarifs"}),c.jsx(ie,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt."})]}),c.jsx(ua,{columns:{base:1,md:2},spacing:8,alignItems:"stretch",maxW:"2xl",mx:"auto",children:Xne.map(e=>c.jsx(qne,{plan:e},e.name))}),c.jsxs(ie,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ?"," ",c.jsx(Qne,{href:vA,children:"Contactez-nous"})," — un commercial vous recontacte."]})]})}function qne({plan:e}){return c.jsxs(Se,{spacing:6,p:8,borderWidth:e.highlighted?"2px":"1px",borderColor:e.highlighted?"primary.500":"inherit",borderRadius:"xl",position:"relative",boxShadow:e.highlighted?"lg":"sm",bg:"bg-surface",children:[e.highlighted&&c.jsx(En,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),c.jsxs(ge,{children:[c.jsx(Dt,{size:"md",children:e.name}),c.jsx(ie,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),c.jsxs(me,{align:"baseline",spacing:2,children:[c.jsx(ie,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&c.jsxs(ie,{color:"gray.500",children:["/ ",e.period]})]}),c.jsx(tm,{spacing:3,flex:"1",children:e.features.map(t=>c.jsxs(W$,{display:"flex",alignItems:"flex-start",children:[c.jsx(vt,{as:Zne,color:"primary.500",mt:1,mr:2}),c.jsx(ie,{fontSize:"sm",children:t})]},t))}),e.ctaExternal?c.jsx(he,{as:"a",href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta}):c.jsx(he,{as:en,to:e.ctaHref,colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function Qne({href:e,children:t}){return c.jsx(ge,{as:"a",href:e,target:"_blank",rel:"noopener noreferrer",color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function Zne(e){return c.jsx(vt,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:c.jsx("path",{fillRule:"evenodd",d:"M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z",clipRule:"evenodd"})})}const Jne="http://localhost:8080",jx="omnex.token";function l0(){return localStorage.getItem(jx)}function NC(e){localStorage.setItem(jx,e)}function OC(){localStorage.removeItem(jx)}class Ge extends Error{constructor(n,r){super(r);l1(this,"status");this.status=n}}async function et(e,t,n){const r={"Content-Type":"application/json"},o=l0();o&&(r.Authorization=`Bearer ${o}`);const i=await fetch(`${Jne}/api/v1${t}`,{method:e,headers:r,body:n?JSON.stringify(n):void 0});if(!i.ok){const a=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Ge(i.status,a.error??`HTTP ${i.status}`)}return i.status===204?void 0:await i.json()}const Ne={login:(e,t,n)=>et("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>et("POST","/auth/register",{username:e,password:t}),me:()=>et("GET","/auth/me"),logout:()=>et("POST","/auth/logout"),listDemos:()=>et("GET","/demos"),listMyDemos:()=>et("GET","/demos/mine"),getDemo:e=>et("GET",`/demos/${e}`),createDemo:e=>et("POST","/demos",{username:e.username,...e.telegramBotUsername?{telegram_bot_username:e.telegramBotUsername}:{},...e.telegramBotToken?{telegram_bot_token:e.telegramBotToken}:{},...e.nowPaymentsApiKey?{nowpayments_api_key:e.nowPaymentsApiKey}:{},...e.nowPaymentsIpnSecret?{nowpayments_ipn_secret:e.nowPaymentsIpnSecret}:{},storage_driver:e.storageDriver,...e.storageDriver==="s3"?{s3_bucket:e.s3Bucket,s3_endpoint:e.s3Endpoint}:{},...e.lbBot1Username?{lb_bot1_username:e.lbBot1Username,lb_bot1_token:e.lbBot1Token}:{},...e.lbBot2Username?{lb_bot2_username:e.lbBot2Username,lb_bot2_token:e.lbBot2Token}:{},...e.lbStrategy?{lb_strategy:e.lbStrategy}:{},...e.lbJwtTtlSeconds?{lb_jwt_ttl_seconds:e.lbJwtTtlSeconds}:{},...e.lbHealthCheckInterval?{lb_health_check_interval:e.lbHealthCheckInterval}:{},admin_username:e.adminUsername,admin_password:e.adminPassword}),extendDemo:e=>et("POST",`/demos/${e}/extend`),deleteDemo:e=>et("DELETE",`/demos/${e}`),setDemoDomain:(e,t)=>et("POST",`/demos/${e}/domain`,{domain:t}),listCodes:()=>et("GET","/codes"),createCode:e=>et("POST","/codes",{username:e}),addCode:e=>et("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>et("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>et("GET","/messages"),getDemoDetails:e=>et("POST","/demos/details",{namespace:e}),updateUsername:e=>et("POST","/profile/username",{username:e}),updatePassword:e=>et("POST","/profile/password",{password:e}),getTelegram:()=>et("GET","/profile/telegram"),setTelegram:e=>et("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>et("GET","/profile/alerts"),setAlertSettings:e=>et("POST","/profile/alerts",e)},yA=m.createContext(null);function ere({children:e}){const[t,n]=m.useState(l0()),[r,o]=m.useState(null),[i,a]=m.useState(null),[s,l]=m.useState(!!l0());m.useEffect(()=>{if(!t){l(!1);return}let v=!0;return Ne.me().then(y=>{v&&(o(y.role),a(y.type_abonnement))}).catch(()=>{v&&(OC(),n(null),o(null),a(null))}).finally(()=>{v&&l(!1)}),()=>{v=!1}},[]);const u=m.useCallback(async(v,y,x)=>{const b=await Ne.login(v,y,x);NC(b.token),n(b.token),o(b.role);const g=await Ne.me();a(g.type_abonnement)},[]),d=m.useCallback(async(v,y)=>{const x=await Ne.register(v,y);NC(x.token),n(x.token),o(x.role);const b=await Ne.me();a(b.type_abonnement)},[]),f=m.useCallback(async()=>{try{await Ne.logout()}finally{OC(),n(null),o(null),a(null)}},[]),p=m.useCallback(async()=>{const v=await Ne.me();a(v.type_abonnement)},[]),h=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:r==="admin",isClient:r==="client",isPremium:i==="premium",role:r,typeAbo:i,initializing:s,login:u,register:d,logout:f,refreshAbo:p}),[t,r,i,s,u,d,f,p]);return c.jsx(yA.Provider,{value:h,children:e})}function bi(){const e=m.useContext(yA);if(!e)throw new Error("useAuth doit être utilisé dans <AuthProvider>");return e}function pa(e){const{toggleColorMode:t}=fu(),n=yv("Passer en mode sombre","Passer en mode clair");return c.jsx(Cn,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:yv(c.jsx(nre,{}),c.jsx(tre,{}))})}function tre(){return c.jsxs(vt,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[c.jsx("circle",{cx:"12",cy:"12",r:"4"}),c.jsx("path",{strokeLinecap:"round",d:"M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"})]})}function nre(){return c.jsx(vt,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:c.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}/*!
|
||
* Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2026 Fonticons, Inc.
|
||
*/function c0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rre(e){if(Array.isArray(e))return e}function ore(e){if(Array.isArray(e))return c0(e)}function ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function are(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bA(r.key),r)}}function sre(e,t,n){return t&&are(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$x(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,i=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function le(e,t,n){return(t=bA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function ure(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DC(Object(n),!0).forEach(function(r){le(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hm(e,t){return rre(e)||cre(e,t)||$x(e,t)||ure()}function hr(e){return ore(e)||lre(e)||$x(e)||dre()}function fre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bA(e){var t=fre(e,"string");return typeof t=="symbol"?t:t+""}function cp(e){"@babel/helpers - typeof";return cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cp(e)}function $x(e,t){if(e){if(typeof e=="string")return c0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c0(e,t):void 0}}var LC=function(){},Ax={},xA={},SA=null,wA={mark:LC,measure:LC};try{typeof window<"u"&&(Ax=window),typeof document<"u"&&(xA=document),typeof MutationObserver<"u"&&(SA=MutationObserver),typeof performance<"u"&&(wA=performance)}catch{}var pre=Ax.navigator||{},FC=pre.userAgent,BC=FC===void 0?"":FC,li=Ax,Ye=xA,VC=SA,Td=wA;li.document;var wo=!!Ye.documentElement&&!!Ye.head&&typeof Ye.addEventListener=="function"&&typeof Ye.createElement=="function",kA=~BC.indexOf("MSIE")||~BC.indexOf("Trident/"),Ed,mre=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,hre=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i,CA={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},"slab-duo":{"fa-regular":"regular",fasldr:"regular"},"slab-press-duo":{"fa-regular":"regular",faslpdr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},vellum:{"fa-solid":"solid",favs:"solid"},pixel:{"fa-regular":"regular",fapr:"regular"},mosaic:{"fa-solid":"solid",fams:"solid"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},gre={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},PA=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-slab-press-duo","fa-slab-duo","fa-mosaic","fa-pixel","fa-vellum","fa-utility","fa-utility-duo","fa-utility-fill"],Ft="classic",Eu="duotone",_A="sharp",TA="sharp-duotone",EA="chisel",jA="etch",$A="graphite",AA="jelly",IA="jelly-duo",RA="jelly-fill",zA="mosaic",MA="notdog",NA="notdog-duo",OA="pixel",DA="slab",LA="slab-duo",FA="slab-press",BA="slab-press-duo",VA="thumbprint",WA="utility",UA="utility-duo",HA="utility-fill",GA="vellum",KA="whiteboard",vre="Classic",yre="Duotone",bre="Sharp",xre="Sharp Duotone",Sre="Chisel",wre="Etch",kre="Graphite",Cre="Jelly",Pre="Jelly Duo",_re="Jelly Fill",Tre="Mosaic",Ere="Notdog",jre="Notdog Duo",$re="Pixel",Are="Slab",Ire="Slab Duo",Rre="Slab Press",zre="Slab Press Duo",Mre="Thumbprint",Nre="Utility",Ore="Utility Duo",Dre="Utility Fill",Lre="Vellum",Fre="Whiteboard",XA=[Ft,Eu,_A,TA,EA,jA,$A,AA,IA,RA,zA,MA,NA,OA,DA,LA,FA,BA,VA,WA,UA,HA,GA,KA];Ed={},le(le(le(le(le(le(le(le(le(le(Ed,Ft,vre),Eu,yre),_A,bre),TA,xre),EA,Sre),jA,wre),$A,kre),AA,Cre),IA,Pre),RA,_re),le(le(le(le(le(le(le(le(le(le(Ed,zA,Tre),MA,Ere),NA,jre),OA,$re),DA,Are),LA,Ire),FA,Rre),BA,zre),VA,Mre),WA,Nre),le(le(le(le(Ed,UA,Ore),HA,Dre),GA,Lre),KA,Fre);var Bre={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},"slab-duo":{400:"fasldr"},"slab-press-duo":{400:"faslpdr"},vellum:{900:"favs"},mosaic:{900:"fams"},pixel:{400:"fapr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},Vre={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Slab Duo":{400:"fasldr",normal:"fasldr"},"Font Awesome 7 Slab Press Duo":{400:"faslpdr",normal:"faslpdr"},"Font Awesome 7 Pixel":{400:"fapr",normal:"fapr"},"Font Awesome 7 Mosaic":{900:"fams",normal:"fams"},"Font Awesome 7 Vellum":{900:"favs",normal:"favs"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},Wre=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["mosaic",{defaultShortPrefixId:"fams",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["pixel",{defaultShortPrefixId:"fapr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-duo",{defaultShortPrefixId:"fasldr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press-duo",{defaultShortPrefixId:"faslpdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["vellum",{defaultShortPrefixId:"favs",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),Ure={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},mosaic:{solid:"fams"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},pixel:{regular:"fapr"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-duo":{regular:"fasldr"},"slab-press":{regular:"faslpr"},"slab-press-duo":{regular:"faslpdr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},vellum:{solid:"favs"},whiteboard:{semibold:"fawsb"}},YA=["fak","fa-kit","fakd","fa-kit-duotone"],WC={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Hre=["kit"],Gre="kit",Kre="kit-duotone",Xre="Kit",Yre="Kit Duotone";le(le({},Gre,Xre),Kre,Yre);var qre={kit:{"fa-kit":"fak"}},Qre={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Zre={kit:{fak:"fa-kit"}},UC={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},jd,$d={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Jre=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-slab-press-duo","fa-slab-duo","fa-mosaic","fa-pixel","fa-vellum","fa-utility","fa-utility-duo","fa-utility-fill"],eoe="classic",toe="duotone",noe="sharp",roe="sharp-duotone",ooe="chisel",ioe="etch",aoe="graphite",soe="jelly",loe="jelly-duo",coe="jelly-fill",uoe="mosaic",doe="notdog",foe="notdog-duo",poe="pixel",moe="slab",hoe="slab-duo",goe="slab-press",voe="slab-press-duo",yoe="thumbprint",boe="utility",xoe="utility-duo",Soe="utility-fill",woe="vellum",koe="whiteboard",Coe="Classic",Poe="Duotone",_oe="Sharp",Toe="Sharp Duotone",Eoe="Chisel",joe="Etch",$oe="Graphite",Aoe="Jelly",Ioe="Jelly Duo",Roe="Jelly Fill",zoe="Mosaic",Moe="Notdog",Noe="Notdog Duo",Ooe="Pixel",Doe="Slab",Loe="Slab Duo",Foe="Slab Press",Boe="Slab Press Duo",Voe="Thumbprint",Woe="Utility",Uoe="Utility Duo",Hoe="Utility Fill",Goe="Vellum",Koe="Whiteboard";jd={},le(le(le(le(le(le(le(le(le(le(jd,eoe,Coe),toe,Poe),noe,_oe),roe,Toe),ooe,Eoe),ioe,joe),aoe,$oe),soe,Aoe),loe,Ioe),coe,Roe),le(le(le(le(le(le(le(le(le(le(jd,uoe,zoe),doe,Moe),foe,Noe),poe,Ooe),moe,Doe),hoe,Loe),goe,Foe),voe,Boe),yoe,Voe),boe,Woe),le(le(le(le(jd,xoe,Uoe),Soe,Hoe),woe,Goe),koe,Koe);var Xoe="kit",Yoe="kit-duotone",qoe="Kit",Qoe="Kit Duotone";le(le({},Xoe,qoe),Yoe,Qoe);var Zoe={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},"slab-duo":{"fa-regular":"fasldr"},"slab-press-duo":{"fa-regular":"faslpdr"},pixel:{"fa-regular":"fapr"},mosaic:{"fa-solid":"fams"},vellum:{"fa-solid":"favs"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},Joe={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],"slab-duo":["fasldr"],"slab-press-duo":["faslpdr"],pixel:["fapr"],mosaic:["fams"],vellum:["favs"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},u0={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},"slab-duo":{fasldr:"fa-regular"},"slab-press-duo":{faslpdr:"fa-regular"},pixel:{fapr:"fa-regular"},mosaic:{fams:"fa-solid"},vellum:{favs:"fa-solid"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},eie=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],qA=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fasldr","faslpdr","fapr","fams","favs","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(Jre,eie),tie=["solid","regular","light","thin","duotone","brands","semibold"],QA=[1,2,3,4,5,6,7,8,9,10],nie=QA.concat([11,12,13,14,15,16,17,18,19,20]),rie=["aw","fw","pull-left","pull-right"],oie=[].concat(hr(Object.keys(Joe)),tie,rie,["2xs","xs","sm","lg","xl","2xl","beat","beat-fade","border","bounce","buzz","canvas-square","canvas-roomy","fade","flip-360","flip-both","flip-horizontal","flip-vertical","flip","float","inverse","jello","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","spin-snap","spin-snap-4","spin-snap-8","stack-1x","stack-2x","stack","swing","ul","wag","width-auto","width-fixed",$d.GROUP,$d.SWAP_OPACITY,$d.PRIMARY,$d.SECONDARY]).concat(QA.map(function(e){return"".concat(e,"x")})).concat(nie.map(function(e){return"w-".concat(e)})),iie={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},ho="___FONT_AWESOME___",d0=16,ZA="fa",JA="svg-inline--fa",ma="data-fa-i2svg",f0="data-fa-pseudo-element",aie="data-fa-pseudo-element-pending",Ix="data-prefix",Rx="data-icon",HC="fontawesome-i2svg",sie="async",lie=["HTML","HEAD","STYLE","SCRIPT"],e4=["::before","::after",":before",":after"],t4=function(){try{return!0}catch{return!1}}();function ju(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Ft]}})}var n4=U({},CA);n4[Ft]=U(U(U(U({},{"fa-duotone":"duotone"}),CA[Ft]),WC.kit),WC["kit-duotone"]);var cie=ju(n4),p0=U({},Ure);p0[Ft]=U(U(U(U({},{duotone:"fad"}),p0[Ft]),UC.kit),UC["kit-duotone"]);var GC=ju(p0),m0=U({},u0);m0[Ft]=U(U({},m0[Ft]),Zre.kit);var zx=ju(m0),h0=U({},Zoe);h0[Ft]=U(U({},h0[Ft]),qre.kit);ju(h0);var uie=mre,r4="fa-layers-text",die=hre,fie=U({},Bre);ju(fie);var pie=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ng=gre,mie=[].concat(hr(Hre),hr(oie)),pc=li.FontAwesomeConfig||{};function hie(e){var t=Ye.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function gie(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ye&&typeof Ye.querySelector=="function"){var vie=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];vie.forEach(function(e){var t=hm(e,2),n=t[0],r=t[1],o=gie(hie(n));o!=null&&(pc[r]=o)})}var o4={styleDefault:"solid",familyDefault:Ft,cssPrefix:ZA,replacementClass:JA,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};pc.familyPrefix&&(pc.cssPrefix=pc.familyPrefix);var Hs=U(U({},o4),pc);Hs.autoReplaceSvg||(Hs.observeMutations=!1);var se={};Object.keys(o4).forEach(function(e){Object.defineProperty(se,e,{enumerable:!0,set:function(n){Hs[e]=n,mc.forEach(function(r){return r(se)})},get:function(){return Hs[e]}})});Object.defineProperty(se,"familyPrefix",{enumerable:!0,set:function(t){Hs.cssPrefix=t,mc.forEach(function(n){return n(se)})},get:function(){return Hs.cssPrefix}});li.FontAwesomeConfig=se;var mc=[];function yie(e){return mc.push(e),function(){mc.splice(mc.indexOf(e),1)}}var Ia=d0,Ar={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function bie(e){if(!(!e||!wo)){var t=Ye.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ye.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return Ye.head.insertBefore(t,r),e}}var xie="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function KC(){for(var e=12,t="";e-- >0;)t+=xie[Math.random()*62|0];return t}function il(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Mx(e){return e.classList?il(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function i4(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Sie(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(i4(e[n]),'" ')},"").trim()}function gm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Nx(e){return e.size!==Ar.size||e.x!==Ar.x||e.y!==Ar.y||e.rotate!==Ar.rotate||e.flipX||e.flipY}function wie(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:u}}function kie(e){var t=e.transform,n=e.width,r=n===void 0?d0:n,o=e.height,i=o===void 0?d0:o,a="";return kA?a+="translate(".concat(t.x/Ia-r/2,"em, ").concat(t.y/Ia-i/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/Ia,"em), calc(-50% + ").concat(t.y/Ia,"em)) "),a+="scale(".concat(t.size/Ia*(t.flipX?-1:1),", ").concat(t.size/Ia*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var Cie=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
|
||
--fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
|
||
--fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
|
||
--fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';
|
||
--fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';
|
||
--fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';
|
||
--fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';
|
||
--fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';
|
||
--fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';
|
||
--fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';
|
||
--fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';
|
||
--fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';
|
||
--fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';
|
||
--fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';
|
||
--fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';
|
||
--fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';
|
||
--fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';
|
||
--fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';
|
||
--fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';
|
||
--fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';
|
||
--fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';
|
||
--fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';
|
||
--fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';
|
||
--fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';
|
||
--fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';
|
||
--fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';
|
||
--fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';
|
||
--fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';
|
||
--fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';
|
||
--fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';
|
||
--fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';
|
||
--fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';
|
||
--fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';
|
||
--fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';
|
||
--fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';
|
||
--fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';
|
||
--fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
box-sizing: content-box;
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
width: var(--fa-width, 1.25em);
|
||
}
|
||
.svg-inline--fa.fa-2xs {
|
||
vertical-align: 0.1em;
|
||
}
|
||
.svg-inline--fa.fa-xs {
|
||
vertical-align: 0em;
|
||
}
|
||
.svg-inline--fa.fa-sm {
|
||
vertical-align: -0.0714285714em;
|
||
}
|
||
.svg-inline--fa.fa-lg {
|
||
vertical-align: -0.2em;
|
||
}
|
||
.svg-inline--fa.fa-xl {
|
||
vertical-align: -0.25em;
|
||
}
|
||
.svg-inline--fa.fa-2xl {
|
||
vertical-align: -0.3125em;
|
||
}
|
||
.svg-inline--fa.fa-pull-left,
|
||
.svg-inline--fa .fa-pull-start {
|
||
float: inline-start;
|
||
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
.svg-inline--fa.fa-pull-right,
|
||
.svg-inline--fa .fa-pull-end {
|
||
float: inline-end;
|
||
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
||
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
|
||
}
|
||
|
||
.fa-layers-counter, .fa-layers-text {
|
||
display: inline-block;
|
||
position: absolute;
|
||
text-align: center;
|
||
}
|
||
|
||
.fa-layers {
|
||
display: inline-block;
|
||
height: 1em;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: -0.125em;
|
||
width: var(--fa-width, 1.25em);
|
||
}
|
||
.fa-layers .svg-inline--fa {
|
||
inset: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translate(-50%, -50%);
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-counter {
|
||
background-color: var(--fa-counter-background-color, #ff253a);
|
||
border-radius: var(--fa-counter-border-radius, 1em);
|
||
box-sizing: border-box;
|
||
color: var(--fa-inverse, #fff);
|
||
line-height: var(--fa-counter-line-height, 1);
|
||
max-width: var(--fa-counter-max-width, 5em);
|
||
min-width: var(--fa-counter-min-width, 1.5em);
|
||
overflow: hidden;
|
||
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
||
right: var(--fa-right, 0);
|
||
text-overflow: ellipsis;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top left;
|
||
}
|
||
|
||
.fa-1x {
|
||
font-size: 1em;
|
||
}
|
||
|
||
.fa-2x {
|
||
font-size: 2em;
|
||
}
|
||
|
||
.fa-3x {
|
||
font-size: 3em;
|
||
}
|
||
|
||
.fa-4x {
|
||
font-size: 4em;
|
||
}
|
||
|
||
.fa-5x {
|
||
font-size: 5em;
|
||
}
|
||
|
||
.fa-6x {
|
||
font-size: 6em;
|
||
}
|
||
|
||
.fa-7x {
|
||
font-size: 7em;
|
||
}
|
||
|
||
.fa-8x {
|
||
font-size: 8em;
|
||
}
|
||
|
||
.fa-9x {
|
||
font-size: 9em;
|
||
}
|
||
|
||
.fa-10x {
|
||
font-size: 10em;
|
||
}
|
||
|
||
.fa-2xs {
|
||
font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
|
||
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
||
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
||
}
|
||
|
||
.fa-width-auto {
|
||
--fa-width: auto;
|
||
}
|
||
|
||
.fa-fw,
|
||
.fa-width-fixed {
|
||
--fa-width: 1.25em;
|
||
}
|
||
|
||
.fa-canvas-square {
|
||
padding-block: 0.125em;
|
||
margin-block-end: -0.125em;
|
||
}
|
||
|
||
.fa-canvas-roomy {
|
||
padding-block: 0.25em;
|
||
padding-inline: 0.125em;
|
||
margin-block-end: -0.25em;
|
||
box-sizing: content-box;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-inline-start: var(--fa-li-margin, 2.5em);
|
||
padding-inline-start: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
/* Heads Up: Bordered Icons will not be supported in the future!
|
||
- This feature will be deprecated in the next major release of Font Awesome (v8)!
|
||
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
|
||
*/
|
||
/* Notes:
|
||
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
|
||
* --@{v.$css-prefix}-border-padding =
|
||
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
|
||
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
|
||
*/
|
||
.fa-border {
|
||
border-color: var(--fa-border-color, #eee);
|
||
border-radius: var(--fa-border-radius, 0.1em);
|
||
border-style: var(--fa-border-style, solid);
|
||
border-width: var(--fa-border-width, 0.0625em);
|
||
box-sizing: var(--fa-border-box-sizing, content-box);
|
||
padding: var(--fa-border-padding, 0.1875em 0.25em);
|
||
}
|
||
|
||
.fa-pull-left,
|
||
.fa-pull-start {
|
||
float: inline-start;
|
||
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right,
|
||
.fa-pull-end {
|
||
float: inline-end;
|
||
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-beat {
|
||
animation-name: fa-beat;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
animation-name: fa-bounce;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
animation-name: fa-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
animation-name: fa-beat-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-flip {
|
||
animation-name: fa-flip;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1.5s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-flip-360 {
|
||
animation-name: fa-flip-360;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
animation-name: fa-shake;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 0.75s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-spin {
|
||
animation-name: fa-spin;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
animation-name: fa-spin;
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
}
|
||
|
||
.fa-spin-snap {
|
||
animation-name: fa-spin-snap;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 3s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-snap-4 {
|
||
animation-name: fa-spin-snap-4;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 2.4s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-snap-8 {
|
||
animation-name: fa-spin-snap-8;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 4s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-buzz {
|
||
animation-name: fa-buzz;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 0.6s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-wag {
|
||
animation-name: fa-wag;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 0.9s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-out);
|
||
transform-origin: bottom center;
|
||
}
|
||
|
||
.fa-float {
|
||
animation-name: fa-float;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 3s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
will-change: transform;
|
||
}
|
||
|
||
.fa-swing {
|
||
animation-name: fa-swing;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1.2s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-out);
|
||
transform-origin: top center;
|
||
}
|
||
|
||
.fa-jello {
|
||
animation-name: fa-jello;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 0.9s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-out);
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.fa-beat,
|
||
.fa-bounce,
|
||
.fa-fade,
|
||
.fa-beat-fade,
|
||
.fa-flip,
|
||
.fa-flip-360,
|
||
.fa-pulse,
|
||
.fa-shake,
|
||
.fa-spin,
|
||
.fa-spin-pulse,
|
||
.fa-buzz,
|
||
.fa-float,
|
||
.fa-jello,
|
||
.fa-spin-snap,
|
||
.fa-spin-snap-4,
|
||
.fa-spin-snap-8,
|
||
.fa-swing,
|
||
.fa-wag {
|
||
animation: none !important;
|
||
transition: none !important;
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0% {
|
||
transform: scale(1);
|
||
}
|
||
25% {
|
||
transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));
|
||
}
|
||
45% {
|
||
transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));
|
||
}
|
||
65% {
|
||
transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));
|
||
}
|
||
90% {
|
||
transform: scale(1);
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
transform: scale(1, 1) translateY(0);
|
||
animation-timing-function: var(--fa-animation-timing);
|
||
}
|
||
14% {
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
|
||
}
|
||
32% {
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));
|
||
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
|
||
}
|
||
52% {
|
||
transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));
|
||
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
|
||
}
|
||
70% {
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);
|
||
animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);
|
||
}
|
||
85% {
|
||
transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
|
||
}
|
||
100% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
0% {
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
|
||
}
|
||
40% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
transform: scale(0.98);
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
100% {
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
transform: scale(1);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
|
||
}
|
||
25% {
|
||
opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);
|
||
transform: scale(var(--fa-beat-fade-scale, 1.28));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
45% {
|
||
opacity: 1;
|
||
transform: scale(var(--fa-beat-fade-scale, 1.25));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
65% {
|
||
opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);
|
||
transform: scale(var(--fa-beat-fade-scale, 1.28));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
transform: scale(1);
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
0% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
|
||
}
|
||
8% {
|
||
transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
|
||
}
|
||
35% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));
|
||
animation-timing-function: linear;
|
||
}
|
||
65% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));
|
||
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
|
||
}
|
||
92% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
|
||
}
|
||
100% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));
|
||
}
|
||
}
|
||
@keyframes fa-flip-360 {
|
||
0% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
|
||
}
|
||
8% {
|
||
transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
|
||
}
|
||
50% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));
|
||
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
|
||
}
|
||
80% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
|
||
}
|
||
100% {
|
||
transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
|
||
}
|
||
8% {
|
||
transform: rotate(35deg) translateX(1px);
|
||
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
|
||
}
|
||
20% {
|
||
transform: rotate(-22deg) translateX(-1px);
|
||
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
|
||
}
|
||
35% {
|
||
transform: rotate(15deg) translateX(1px);
|
||
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
|
||
}
|
||
50% {
|
||
transform: rotate(-9deg);
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
65% {
|
||
transform: rotate(5deg);
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
78% {
|
||
transform: rotate(-3deg);
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
90% {
|
||
transform: rotate(1deg);
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin-snap {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
12% {
|
||
transform: rotate(60deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
16.67% {
|
||
transform: rotate(60deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
28.67% {
|
||
transform: rotate(120deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
33.33% {
|
||
transform: rotate(120deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
45.33% {
|
||
transform: rotate(180deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
50% {
|
||
transform: rotate(180deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
62% {
|
||
transform: rotate(240deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
66.67% {
|
||
transform: rotate(240deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
78.67% {
|
||
transform: rotate(300deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
83.33% {
|
||
transform: rotate(300deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
95.33% {
|
||
transform: rotate(360deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin-snap-4 {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
15% {
|
||
transform: rotate(90deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
25% {
|
||
transform: rotate(90deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
40% {
|
||
transform: rotate(180deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
50% {
|
||
transform: rotate(180deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
65% {
|
||
transform: rotate(270deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
75% {
|
||
transform: rotate(270deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
90% {
|
||
transform: rotate(360deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin-snap-8 {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
9% {
|
||
transform: rotate(45deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
12.5% {
|
||
transform: rotate(45deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
21.5% {
|
||
transform: rotate(90deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
25% {
|
||
transform: rotate(90deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
34% {
|
||
transform: rotate(135deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
37.5% {
|
||
transform: rotate(135deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
46.5% {
|
||
transform: rotate(180deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
50% {
|
||
transform: rotate(180deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
59% {
|
||
transform: rotate(225deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
62.5% {
|
||
transform: rotate(225deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
71.5% {
|
||
transform: rotate(270deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
75% {
|
||
transform: rotate(270deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
84% {
|
||
transform: rotate(315deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
87.5% {
|
||
transform: rotate(315deg);
|
||
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
||
}
|
||
96.5% {
|
||
transform: rotate(360deg);
|
||
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-buzz {
|
||
0% {
|
||
transform: translateX(0) rotate(0deg);
|
||
animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);
|
||
}
|
||
5% {
|
||
transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);
|
||
}
|
||
10% {
|
||
transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);
|
||
}
|
||
15% {
|
||
transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);
|
||
}
|
||
20% {
|
||
transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);
|
||
}
|
||
25% {
|
||
transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);
|
||
}
|
||
30% {
|
||
transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);
|
||
}
|
||
35% {
|
||
transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);
|
||
}
|
||
40% {
|
||
transform: translateX(0) rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: translateX(0) rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-wag {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
|
||
}
|
||
12% {
|
||
transform: rotate(var(--fa-wag-angle, 12deg));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
24% {
|
||
transform: rotate(2deg);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
|
||
}
|
||
36% {
|
||
transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
48% {
|
||
transform: rotate(1deg);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
|
||
}
|
||
58% {
|
||
transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
68% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-float {
|
||
0% {
|
||
transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
|
||
}
|
||
15% {
|
||
transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);
|
||
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
|
||
}
|
||
35% {
|
||
transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));
|
||
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);
|
||
}
|
||
50% {
|
||
transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
|
||
}
|
||
70% {
|
||
transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);
|
||
animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
|
||
}
|
||
90% {
|
||
transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
|
||
animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
|
||
}
|
||
100% {
|
||
transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
|
||
}
|
||
}
|
||
@keyframes fa-swing {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
|
||
}
|
||
8% {
|
||
transform: rotate(var(--fa-swing-angle, 22deg));
|
||
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
|
||
}
|
||
18% {
|
||
transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));
|
||
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
|
||
}
|
||
28% {
|
||
transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));
|
||
animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
|
||
}
|
||
38% {
|
||
transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
48% {
|
||
transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
56% {
|
||
transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
64% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-jello {
|
||
0% {
|
||
transform: scale(1, 1);
|
||
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
|
||
}
|
||
12% {
|
||
transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));
|
||
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
|
||
}
|
||
24% {
|
||
transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));
|
||
animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
|
||
}
|
||
36% {
|
||
transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
48% {
|
||
transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
||
}
|
||
58% {
|
||
transform: scale(1.02, 0.98);
|
||
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
68% {
|
||
transform: scale(1, 1);
|
||
}
|
||
100% {
|
||
transform: scale(1, 1);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
transform: rotate(var(--fa-rotate-angle, 0));
|
||
}
|
||
|
||
.svg-inline--fa .fa-primary {
|
||
fill: var(--fa-primary-color, currentColor);
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa .fa-secondary {
|
||
fill: var(--fa-secondary-color, currentColor);
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa mask .fa-primary,
|
||
.svg-inline--fa mask .fa-secondary {
|
||
fill: black;
|
||
}
|
||
|
||
.svg-inline--fa.fa-inverse {
|
||
fill: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.fa-stack {
|
||
display: inline-block;
|
||
height: 2em;
|
||
line-height: 2em;
|
||
position: relative;
|
||
vertical-align: middle;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.svg-inline--fa.fa-stack-1x {
|
||
--fa-width: 1.25em;
|
||
height: 1em;
|
||
width: var(--fa-width);
|
||
}
|
||
.svg-inline--fa.fa-stack-2x {
|
||
--fa-width: 2.5em;
|
||
height: 2em;
|
||
width: var(--fa-width);
|
||
}
|
||
|
||
.fa-stack-1x,
|
||
.fa-stack-2x {
|
||
inset: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
z-index: var(--fa-stack-z-index, auto);
|
||
}`;function a4(){var e=ZA,t=JA,n=se.cssPrefix,r=se.replacementClass,o=Cie;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var XC=!1;function rg(){se.autoAddCss&&!XC&&(bie(a4()),XC=!0)}var Pie={mixout:function(){return{dom:{css:a4,insertCss:rg}}},hooks:function(){return{beforeDOMElementCreation:function(){rg()},beforeI2svg:function(){rg()}}}},go=li||{};go[ho]||(go[ho]={});go[ho].styles||(go[ho].styles={});go[ho].hooks||(go[ho].hooks={});go[ho].shims||(go[ho].shims=[]);var lr=go[ho],s4=[],l4=function(){Ye.removeEventListener("DOMContentLoaded",l4),up=1,s4.map(function(t){return t()})},up=!1;wo&&(up=(Ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ye.readyState),up||Ye.addEventListener("DOMContentLoaded",l4));function _ie(e){wo&&(up?setTimeout(e,0):s4.push(e))}function $u(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?i4(e):"<".concat(t," ").concat(Sie(r),">").concat(i.map($u).join(""),"</").concat(t,">")}function YC(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var og=function(t,n,r,o){var i=Object.keys(t),a=i.length,s=n,l,u,d;for(r===void 0?(l=1,d=t[i[0]]):(l=0,d=r);l<a;l++)u=i[l],d=s(d,t[u],u,t);return d};function c4(e){return hr(e).length!==1?null:e.codePointAt(0).toString(16)}function qC(e){return Object.keys(e).reduce(function(t,n){var r=e[n],o=!!r.icon;return o?t[r.iconName]=r.icon:t[n]=r,t},{})}function g0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,i=qC(t);typeof lr.hooks.addPack=="function"&&!o?lr.hooks.addPack(e,qC(t)):lr.styles[e]=U(U({},lr.styles[e]||{}),i),e==="fas"&&g0("fa",t)}var nu=lr.styles,Tie=lr.shims,u4=Object.keys(zx),Eie=u4.reduce(function(e,t){return e[t]=Object.keys(zx[t]),e},{}),Ox=null,d4={},f4={},p4={},m4={},h4={};function jie(e){return~mie.indexOf(e)}function $ie(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!jie(o)?o:null}var g4=function(){var t=function(i){return og(nu,function(a,s,l){return a[l]=og(s,i,{}),a},{})};d4=t(function(o,i,a){if(i[3]&&(o[i[3]]=a),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){o[l.toString(16)]=a})}return o}),f4=t(function(o,i,a){if(o[a]=a,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){o[l]=a})}return o}),h4=t(function(o,i,a){var s=i[2];return o[a]=a,s.forEach(function(l){o[l]=a}),o});var n="far"in nu||se.autoFetchSvg,r=og(Tie,function(o,i){var a=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(o.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(o.unicodes[a.toString(16)]={prefix:s,iconName:l}),o},{names:{},unicodes:{}});p4=r.names,m4=r.unicodes,Ox=vm(se.styleDefault,{family:se.familyDefault})};yie(function(e){Ox=vm(e.styleDefault,{family:se.familyDefault})});g4();function Dx(e,t){return(d4[e]||{})[t]}function Aie(e,t){return(f4[e]||{})[t]}function Vi(e,t){return(h4[e]||{})[t]}function v4(e){return p4[e]||{prefix:null,iconName:null}}function Iie(e){var t=m4[e],n=Dx("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ci(){return Ox}var y4=function(){return{prefix:null,iconName:null,rest:[]}};function Rie(e){var t=Ft,n=u4.reduce(function(r,o){return r[o]="".concat(se.cssPrefix,"-").concat(o),r},{});return XA.forEach(function(r){(e.includes(n[r])||e.some(function(o){return Eie[r].includes(o)}))&&(t=r)}),t}function vm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Ft:n,o=cie[r][e];if(r===Eu&&!e)return"fad";var i=GC[r][e]||GC[r][o],a=e in lr.styles?e:null,s=i||a||null;return s}function zie(e){var t=[],n=null;return e.forEach(function(r){var o=$ie(se.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function QC(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var ZC=qA.concat(YA);function ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,o=null,i=QC(e.filter(function(h){return ZC.includes(h)})),a=QC(e.filter(function(h){return!ZC.includes(h)})),s=i.filter(function(h){return o=h,!PA.includes(h)}),l=hm(s,1),u=l[0],d=u===void 0?null:u,f=Rie(i),p=U(U({},zie(a)),{},{prefix:vm(d,{family:f})});return U(U(U({},p),Die({values:e,family:f,styles:nu,config:se,canonical:p,givenPrefix:o})),Mie(r,o,p))}function Mie(e,t,n){var r=n.prefix,o=n.iconName;if(e||!r||!o)return{prefix:r,iconName:o};var i=t==="fa"?v4(o):{},a=Vi(r,o);return o=i.iconName||a||o,r=i.prefix||r,r==="far"&&!nu.far&&nu.fas&&!se.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var Nie=XA.filter(function(e){return e!==Ft||e!==Eu}),Oie=Object.keys(u0).filter(function(e){return e!==Ft}).map(function(e){return Object.keys(u0[e])}).flat();function Die(e){var t=e.values,n=e.family,r=e.canonical,o=e.givenPrefix,i=o===void 0?"":o,a=e.styles,s=a===void 0?{}:a,l=e.config,u=l===void 0?{}:l,d=n===Eu,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!d&&(f||p||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&Nie.includes(n)){var v=Object.keys(s).find(function(x){return Oie.includes(x)});if(v||u.autoFetchSvg){var y=Wre.get(n).defaultShortPrefixId;r.prefix=y,r.iconName=Vi(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||i==="fa")&&(r.prefix=ci()||"fas"),r}var Lie=function(){function e(){ire(this,e),this.definitions={}}return sre(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=U(U({},n.definitions[s]||{}),a[s]),g0(s,a[s]);var l=zx[Ft][s];l&&g0(l,a[s]),g4()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(i){var a=o[i],s=a.prefix,l=a.iconName,u=a.icon,d=u[2];n[s]||(n[s]={}),d.length>0&&d.forEach(function(f){typeof f=="string"&&(n[s][f]=u)}),n[s][l]=u}),n}}])}(),JC=[],ls={},Cs={},Fie=Object.keys(Cs);function Bie(e,t){var n=t.mixoutsTo;return JC=e,ls={},Object.keys(Cs).forEach(function(r){Fie.indexOf(r)===-1&&delete Cs[r]}),JC.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(a){typeof o[a]=="function"&&(n[a]=o[a]),cp(o[a])==="object"&&Object.keys(o[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=o[a][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(a){ls[a]||(ls[a]=[]),ls[a].push(i[a])})}r.provides&&r.provides(Cs)}),n}function v0(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=ls[e]||[];return i.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function ha(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ls[e]||[];o.forEach(function(i){i.apply(null,n)})}function ui(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Cs[e]?Cs[e].apply(null,t):void 0}function y0(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ci();if(t)return t=Vi(n,t)||t,YC(b4.definitions,n,t)||YC(lr.styles,n,t)}var b4=new Lie,Vie=function(){se.autoReplaceSvg=!1,se.observeMutations=!1,ha("noAuto")},Wie={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wo?(ha("beforeI2svg",t),ui("pseudoElements2svg",t),ui("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;se.autoReplaceSvg===!1&&(se.autoReplaceSvg=!0),se.observeMutations=!0,_ie(function(){Hie({autoReplaceSvgRoot:n}),ha("watch",t)})}},Uie={icon:function(t){if(t===null)return null;if(cp(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Vi(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=vm(t[0]);return{prefix:r,iconName:Vi(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(se.cssPrefix,"-"))>-1||t.match(uie))){var o=ym(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||ci(),iconName:Vi(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var i=ci();return{prefix:i,iconName:Vi(i,t)||t}}}},Mn={noAuto:Vie,config:se,dom:Wie,parse:Uie,library:b4,findIconDefinition:y0,toHtml:$u},Hie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Ye:n;(Object.keys(lr.styles).length>0||se.autoFetchSvg)&&wo&&se.autoReplaceSvg&&Mn.dom.i2svg({node:r})};function bm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return $u(r)})}}),Object.defineProperty(e,"node",{get:function(){if(wo){var r=Ye.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Gie(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(Nx(a)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};o.style=gm(U(U({},i),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function Kie(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,a=i===!0?"".concat(t,"-").concat(se.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:U(U({},o),{},{id:a}),children:r}]}]}function Xie(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Lx(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,l=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,v=p.height,y=[se.replacementClass,i?"".concat(se.cssPrefix,"-").concat(i):""].filter(function(k){return u.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(u.classes).join(" "),x={children:[],attributes:U(U({},u.attributes),{},{"data-prefix":o,"data-icon":i,class:y,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(v)})};!Xie(u.attributes)&&!u.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[ma]="");var b=U(U({},x),{},{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:a,symbol:s,styles:U({},u.styles)}),g=r.found&&n.found?ui("generateAbstractMask",b)||{children:[],attributes:{}}:ui("generateAbstractIcon",b)||{children:[],attributes:{}},S=g.children,w=g.attributes;return b.children=S,b.attributes=w,s?Kie(b):Gie(b)}function e2(e){var t=e.content,n=e.width,r=e.height,o=e.transform,i=e.extra,a=e.watchable,s=a===void 0?!1:a,l=U(U({},i.attributes),{},{class:i.classes.join(" ")});s&&(l[ma]="");var u=U({},i.styles);Nx(o)&&(u.transform=kie({transform:o,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=gm(u);d.length>0&&(l.style=d);var f=[];return f.push({tag:"span",attributes:l,children:[t]}),f}function Yie(e){var t=e.content,n=e.extra,r=U(U({},n.attributes),{},{class:n.classes.join(" ")}),o=gm(n.styles);o.length>0&&(r.style=o);var i=[];return i.push({tag:"span",attributes:r,children:[t]}),i}var ig=lr.styles;function b0(e){var t=e[0],n=e[1],r=e.slice(4),o=hm(r,1),i=o[0],a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(se.cssPrefix,"-").concat(ng.GROUP)},children:[{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(ng.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(ng.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:a}}var qie={found:!1,width:512,height:512};function Qie(e,t){!t4&&!se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function x0(e,t){var n=t;return t==="fa"&&se.styleDefault!==null&&(t=ci()),new Promise(function(r,o){if(n==="fa"){var i=v4(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&ig[t]&&ig[t][e]){var a=ig[t][e];return r(b0(a))}Qie(e,t),r(U(U({},qie),{},{icon:se.showMissingIcons&&e?ui("missingIconAbstract")||{}:{}}))})}var t2=function(){},S0=se.measurePerformance&&Td&&Td.mark&&Td.measure?Td:{mark:t2,measure:t2},Ul='FA "7.3.1"',Zie=function(t){return S0.mark("".concat(Ul," ").concat(t," begins")),function(){return x4(t)}},x4=function(t){S0.mark("".concat(Ul," ").concat(t," ends")),S0.measure("".concat(Ul," ").concat(t),"".concat(Ul," ").concat(t," begins"),"".concat(Ul," ").concat(t," ends"))},Fx={begin:Zie,end:x4},vf=function(){};function n2(e){var t=e.getAttribute?e.getAttribute(ma):null;return typeof t=="string"}function Jie(e){var t=e.getAttribute?e.getAttribute(Ix):null,n=e.getAttribute?e.getAttribute(Rx):null;return t&&n}function eae(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(se.replacementClass)}function tae(){if(se.autoReplaceSvg===!0)return yf.replace;var e=yf[se.autoReplaceSvg];return e||yf.replace}function nae(e){return Ye.createElementNS("http://www.w3.org/2000/svg",e)}function rae(e){return Ye.createElement(e)}function S4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?nae:rae:n;if(typeof e=="string")return Ye.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){o.setAttribute(a,e.attributes[a])});var i=e.children||[];return i.forEach(function(a){o.appendChild(S4(a,{ceFn:r}))}),o}function oae(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var yf={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(S4(o),n)}),n.getAttribute(ma)===null&&se.keepOriginalSource){var r=Ye.createComment(oae(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Mx(n).indexOf(se.replacementClass))return yf.replace(t);var o=new RegExp("".concat(se.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===se.replacementClass||l.match(o)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var a=r.map(function(s){return $u(s)}).join(`
|
||
`);n.setAttribute(ma,""),n.innerHTML=a}};function r2(e){e()}function w4(e,t){var n=typeof t=="function"?t:vf;if(e.length===0)n();else{var r=r2;se.mutateApproach===sie&&(r=li.requestAnimationFrame||r2),r(function(){var o=tae(),i=Fx.begin("mutate");e.map(o),i(),n()})}}var Bx=!1;function k4(){Bx=!0}function w0(){Bx=!1}var dp=null;function o2(e){if(VC&&se.observeMutations){var t=e.treeCallback,n=t===void 0?vf:t,r=e.nodeCallback,o=r===void 0?vf:r,i=e.pseudoElementsCallback,a=i===void 0?vf:i,s=e.observeMutationsRoot,l=s===void 0?Ye:s;dp=new VC(function(u){if(!Bx){var d=ci();il(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!n2(f.addedNodes[0])&&(se.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&se.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&n2(f.target)&&~pie.indexOf(f.attributeName))if(f.attributeName==="class"&&Jie(f.target)){var p=ym(Mx(f.target)),h=p.prefix,v=p.iconName;f.target.setAttribute(Ix,h||d),v&&f.target.setAttribute(Rx,v)}else eae(f.target)&&o(f.target)})}}),wo&&dp.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function iae(){dp&&dp.disconnect()}function aae(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var i=o.split(":"),a=i[0],s=i.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function sae(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=ym(Mx(e));return o.prefix||(o.prefix=ci()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=Aie(o.prefix,e.innerText)||Dx(o.prefix,c4(e.innerText))),!o.iconName&&se.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function lae(e){var t=il(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function cae(){return{iconName:null,prefix:null,transform:Ar,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function i2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=sae(e),r=n.iconName,o=n.prefix,i=n.rest,a=lae(e),s=v0("parseNodeAttributes",{},e),l=t.styleParser?aae(e):[];return U({iconName:r,prefix:o,transform:Ar,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:a}},s)}var uae=lr.styles;function C4(e){var t=se.autoReplaceSvg==="nest"?i2(e,{styleParser:!1}):i2(e);return~t.extra.classes.indexOf(r4)?ui("generateLayersText",e,t):ui("generateSvgReplacementMutation",e,t)}function dae(){return[].concat(hr(YA),hr(qA))}function a2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!wo)return Promise.resolve();var n=Ye.documentElement.classList,r=function(f){return n.add("".concat(HC,"-").concat(f))},o=function(f){return n.remove("".concat(HC,"-").concat(f))},i=se.autoFetchSvg?dae():PA.concat(Object.keys(uae));i.includes("fa")||i.push("fa");var a=[".".concat(r4,":not([").concat(ma,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(ma,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=il(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),o("complete");else return Promise.resolve();var l=Fx.begin("onTree"),u=s.reduce(function(d,f){try{var p=C4(f);p&&d.push(p)}catch(h){t4||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){w4(p,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),d()})}).catch(function(p){l(),f(p)})})}function fae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;C4(e).then(function(n){n&&w4([n],t)})}function pae(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:y0(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:y0(o||{})),e(r,U(U({},n),{},{mask:o}))}}var mae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?Ar:r,i=n.symbol,a=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,h=n.attributes,v=h===void 0?{}:h,y=n.styles,x=y===void 0?{}:y;if(t){var b=t.prefix,g=t.iconName,S=t.icon;return bm(U({type:"icon"},t),function(){return ha("beforeDOMElementCreation",{iconDefinition:t,params:n}),Lx({icons:{main:b0(S),mask:l?b0(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:g,transform:U(U({},Ar),o),symbol:a,maskId:d,extra:{attributes:v,styles:x,classes:p}})})}},hae={mixout:function(){return{icon:pae(mae)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=a2,n.nodeCallback=fae,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?Ye:r,i=n.callback,a=i===void 0?function(){}:i;return a2(o,a)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,i=r.prefix,a=r.transform,s=r.symbol,l=r.mask,u=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([x0(o,i),l.iconName?x0(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var v=hm(h,2),y=v[0],x=v[1];f([n,Lx({icons:{main:y,mask:x},prefix:i,iconName:o,transform:a,symbol:s,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,i=n.main,a=n.transform,s=n.styles,l=gm(s);l.length>0&&(o.style=l);var u;return Nx(a)&&(u=ui("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:o}}}},gae={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,i=o===void 0?[]:o;return bm({type:"layer"},function(){ha("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(se.cssPrefix,"-layers")].concat(hr(i)).join(" ")},children:a}]})}}}},vae={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,i=o===void 0?[]:o,a=r.attributes,s=a===void 0?{}:a,l=r.styles,u=l===void 0?{}:l;return bm({type:"counter",content:n},function(){return ha("beforeDOMElementCreation",{content:n,params:r}),Yie({content:n.toString(),extra:{attributes:s,styles:u,classes:["".concat(se.cssPrefix,"-layers-counter")].concat(hr(i))}})})}}}},yae={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,i=o===void 0?Ar:o,a=r.classes,s=a===void 0?[]:a,l=r.attributes,u=l===void 0?{}:l,d=r.styles,f=d===void 0?{}:d;return bm({type:"text",content:n},function(){return ha("beforeDOMElementCreation",{content:n,params:r}),e2({content:n,transform:U(U({},Ar),i),extra:{attributes:u,styles:f,classes:["".concat(se.cssPrefix,"-layers-text")].concat(hr(s))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.transform,i=r.extra,a=null,s=null;if(kA){var l=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/l,s=u.height/l}return Promise.resolve([n,e2({content:n.innerHTML,width:a,height:s,transform:o,extra:i,watchable:!0})])}}},P4=new RegExp('"',"ug"),s2=[1105920,1112319],l2=U(U(U(U({},{FontAwesome:{normal:"fas",400:"fas"}}),Vre),iie),Qre),k0=Object.keys(l2).reduce(function(e,t){return e[t.toLowerCase()]=l2[t],e},{}),bae=Object.keys(k0).reduce(function(e,t){var n=k0[t];return e[t]=n[900]||hr(Object.entries(n))[0][1],e},{});function xae(e){var t=e.replace(P4,"");return c4(hr(t)[0]||"")}function Sae(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(P4,""),o=r.codePointAt(0),i=o>=s2[0]&&o<=s2[1],a=r.length===2?r[0]===r[1]:!1;return i||a||t}function wae(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(k0[n]||{})[o]||bae[n]}function c2(e,t){var n="".concat(aie).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var i=il(e.children),a=i.filter(function(_){return _.getAttribute(f0)===t})[0],s=li.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),u=l.match(die),d=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){var p=s.getPropertyValue("content"),h=wae(l,d),v=xae(p),y=u[0].startsWith("FontAwesome"),x=Sae(s),b=Dx(h,v),g=b;if(y){var S=Iie(v);S.iconName&&S.prefix&&(b=S.iconName,h=S.prefix)}if(b&&!x&&(!a||a.getAttribute(Ix)!==h||a.getAttribute(Rx)!==g)){e.setAttribute(n,g),a&&e.removeChild(a);var w=cae(),k=w.extra;k.attributes[f0]=t,x0(b,h).then(function(_){var P=Lx(U(U({},w),{},{icons:{main:_,mask:y4()},prefix:h,iconName:g,extra:k,watchable:!0})),T=Ye.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(T,e.firstChild):e.appendChild(T),T.outerHTML=P.map(function(R){return $u(R)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function kae(e){return Promise.all([c2(e,"::before"),c2(e,"::after")])}function Cae(e){return e.parentNode!==document.head&&!~lie.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(f0)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var Pae=function(t){return!!t&&e4.some(function(n){return t.includes(n)})},_ae=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});r=r.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(u){return u.trim()})});var o=gf(r),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;if(Pae(a)){var s=e4.reduce(function(l,u){return l.replace(u,"")},a);s!==""&&s!=="*"&&n.add(s)}}}catch(l){o.e(l)}finally{o.f()}return n};function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(wo){var n;if(t)n=e;else if(se.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,o=gf(document.styleSheets),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;try{var s=gf(a.cssRules),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,d=_ae(u.selectorText),f=gf(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(y){f.e(y)}finally{f.f()}}}catch(y){s.e(y)}finally{s.f()}}catch(y){se.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(y.message,`)
|
||
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(y){o.e(y)}finally{o.f()}if(!r.size)return;var v=Array.from(r).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(y,x){var b=il(n).filter(Cae).map(kae),g=Fx.begin("searchPseudoElements");k4(),Promise.all(b).then(function(){g(),w0(),y()}).catch(function(){g(),w0(),x()})})}}var Tae={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=u2,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?Ye:r;se.searchPseudoElements&&u2(o)}}},d2=!1,Eae={mixout:function(){return{dom:{unwatch:function(){k4(),d2=!0}}}},hooks:function(){return{bootstrap:function(){o2(v0("mutationObserverCallbacks",{}))},noAuto:function(){iae()},watch:function(n){var r=n.observeMutationsRoot;d2?w0():o2(v0("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},f2=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var i=o.toLowerCase().split("-"),a=i[0],s=i.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},jae={mixout:function(){return{parse:{transform:function(n){return f2(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=f2(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,i=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),d="rotate(".concat(o.rotate," 0 0)"),f={transform:"".concat(l," ").concat(u," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:s,inner:f,path:p};return{tag:"g",attributes:U({},h.outer),children:[{tag:"g",attributes:U({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:U(U({},r.icon.attributes),h.path)}]}]}}}},ag={x:0,y:0,width:"100%",height:"100%"};function p2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function $ae(e){return e.tag==="g"?e.children:[e]}var Aae={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),i=o?ym(o.split(" ").map(function(a){return a.trim()})):y4();return i.prefix||(i.prefix=ci()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,i=n.main,a=n.mask,s=n.maskId,l=n.transform,u=i.width,d=i.icon,f=a.width,p=a.icon,h=wie({transform:l,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:U(U({},ag),{},{fill:"white"})},y=d.children?{children:d.children.map(p2)}:{},x={tag:"g",attributes:U({},h.inner),children:[p2(U({tag:d.tag,attributes:U(U({},d.attributes),h.path)},y))]},b={tag:"g",attributes:U({},h.outer),children:[x]},g="mask-".concat(s||KC()),S="clip-".concat(s||KC()),w={tag:"mask",attributes:U(U({},ag),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:$ae(p)},w]};return r.push(k,{tag:"rect",attributes:U({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(g,")")},ag)}),{children:r,attributes:o}}}},Iae={provides:function(t){var n=!1;li.matchMedia&&(n=li.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:U(U({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=U(U({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:U(U({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:U(U({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:U(U({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:U(U({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:U(U({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:U(U({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:U(U({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Rae={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return n.symbol=i,n}}}},zae=[Pie,hae,gae,vae,yae,Tae,Eae,jae,Aae,Iae,Rae];Bie(zae,{mixoutsTo:Mn});Mn.noAuto;var Gs=Mn.config;Mn.library;Mn.dom;var _4=Mn.parse;Mn.findIconDefinition;Mn.toHtml;var Mae=Mn.icon;Mn.layer;Mn.text;Mn.counter;function Nae(e){return e=e-0,e===e}function T4(e){return Nae(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Oae=(e,t)=>Rt.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Dae(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ra=new Map,Lae=1e3;function Fae(e){if(Ra.has(e))return Ra.get(e);const t={};let n=0;const r=e.length;for(;n<r;){const o=e.indexOf(";",n),i=o===-1?r:o,a=e.slice(n,i).trim();if(a){const s=a.indexOf(":");if(s>0){const l=a.slice(0,s).trim(),u=a.slice(s+1).trim();if(l&&u){const d=T4(l);t[d.startsWith("webkit")?Dae(d):d]=u}}}n=i+1}if(Ra.size===Lae){const o=Ra.keys().next().value;o&&Ra.delete(o)}return Ra.set(e,t),t}function E4(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>{let p=f;return("fill"in n||n.gradientFill)&&f.tag==="path"&&"fill"in f.attributes&&(p={...f,attributes:{...f.attributes,fill:void 0}}),E4(e,p)}),o=t.attributes||{},i={};for(const[f,p]of Object.entries(o))switch(!0){case f==="class":{i.className=p;break}case f==="style":{i.style=Fae(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{i[f.toLowerCase()]=p;break}default:i[T4(f)]=p}const{style:a,role:s,"aria-label":l,gradientFill:u,...d}=n;if(a&&(i.style=i.style?{...i.style,...a}:a),s&&(i.role=s),l&&(i["aria-label"]=l,i["aria-hidden"]="false"),u){i.fill=`url(#${u.id})`;const{type:f,stops:p=[],...h}=u;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},p.map(Oae)))}return e(t.tag,{...i,...d},...r)}var Bae=E4.bind(null,Rt.createElement),m2=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},Vae=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},Wae="searchPseudoElementsFullScan"in Gs&&typeof Gs.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",Uae=Number.parseInt(Wae)>=7,Hae=()=>Uae,hc="fa",Ct={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse",flip360:"fa-flip-360",buzz:"fa-buzz",float:"fa-float",jello:"fa-jello",spinSnap:"fa-spin-snap",spinSnap4:"fa-spin-snap-4",spinSnap8:"fa-spin-snap-8",swing:"fa-swing",wag:"fa-wag"},Gae={left:"fa-pull-left",right:"fa-pull-right"},Kae={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Xae={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},tr={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto",canvasSquare:"fa-canvas-square",canvasRoomy:"fa-canvas-roomy"};function Yae(e){const t=Gs.cssPrefix||Gs.familyPrefix||hc;return t===hc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${hc}-`,"g"),`${t}-`)}function qae(e){const{beat:t,fade:n,beatFade:r,bounce:o,shake:i,spin:a,spinPulse:s,spinReverse:l,pulse:u,fixedWidth:d,inverse:f,border:p,flip:h,size:v,rotation:y,pull:x,swapOpacity:b,rotateBy:g,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:_,buzz:P,float:T,jello:R,spinSnap:E,spinSnap4:D,spinSnap8:K,swing:J,wag:A,className:X}=e,B=[];return X&&B.push(...X.split(" ")),t&&B.push(Ct.beat),n&&B.push(Ct.fade),r&&B.push(Ct.beatFade),o&&B.push(Ct.bounce),i&&B.push(Ct.shake),a&&B.push(Ct.spin),l&&B.push(Ct.spinReverse),s&&B.push(Ct.spinPulse),u&&B.push(Ct.pulse),d&&B.push(tr.fixedWidth),f&&B.push(tr.inverse),p&&B.push(tr.border),h===!0&&B.push(tr.flip),(h==="horizontal"||h==="both")&&B.push(tr.flipHorizontal),(h==="vertical"||h==="both")&&B.push(tr.flipVertical),v!=null&&B.push(Xae[v]),y!=null&&y!==0&&B.push(Kae[y]),x!=null&&B.push(Gae[x]),b&&B.push(tr.swapOpacity),Hae()?(g&&B.push(tr.rotateBy),S&&B.push(tr.widthAuto),w&&B.push(tr.canvasSquare),k&&B.push(tr.canvasRoomy),_&&B.push(Ct.flip360),P&&B.push(Ct.buzz),T&&B.push(Ct.float),R&&B.push(Ct.jello),E&&B.push(Ct.spinSnap),D&&B.push(Ct.spinSnap4),K&&B.push(Ct.spinSnap8),J&&B.push(Ct.swing),A&&B.push(Ct.wag),(Gs.cssPrefix||Gs.familyPrefix||hc)===hc?B:B.map(Yae)):B}var Qae=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function h2(e){if(e)return Qae(e)?e:_4.icon(e)}function Zae(e){return Object.keys(e)}var g2=new Vae("FontAwesomeIcon"),j4={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Jae=new Set(Object.keys(j4)),Vx=Rt.forwardRef((e,t)=>{const n={...j4,...e},{icon:r,mask:o,symbol:i,title:a,titleId:s,maskId:l,transform:u}=n,d=m2(l,!!o),f=m2(s,!!a),p=h2(r);if(!p)return g2.error("Icon lookup is undefined",r),null;const h=qae(n),v=typeof u=="string"?_4.transform(u):u,y=h2(o),x=Mae(p,{...h.length>0&&{classes:h},...v&&{transform:v},...y&&{mask:y},symbol:i,title:a,titleId:f,maskId:d});if(!x)return g2.error("Could not find icon",p),null;const{abstract:b}=x,g={ref:t};for(const S of Zae(n))Jae.has(S)||(g[S]=n[S]);return Bae(b[0],g)});Vx.displayName="FontAwesomeIcon";/*!
|
||
* Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2026 Fonticons, Inc.
|
||
*/var $4={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},A4={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]};const ar=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return c.jsxs(Qb,{children:[c.jsx(ut,{ref:t,type:n?"text":"password",...e}),c.jsx(em,{children:c.jsx(Cn,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:c.jsx(Vx,{icon:n?A4:$4}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(o=>!o)})})]})});ar.displayName="PasswordInput";function ese(){const{login:e}=bi(),t=vr(),n=Br(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(!1),u=async d=>{d.preventDefault(),l(!0);try{await e(r.trim(),i,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ge?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{l(!1)}};return c.jsxs(mr,{maxW:"sm",py:20,position:"relative",children:[c.jsx(ge,{position:"absolute",top:4,right:4,children:c.jsx(pa,{})}),c.jsxs(Se,{spacing:6,children:[c.jsxs(ge,{textAlign:"center",children:[c.jsx(Dt,{size:"lg",children:"Espace client"}),c.jsx(ie,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),c.jsx(Rb,{children:c.jsx(zb,{children:c.jsx("form",{onSubmit:u,children:c.jsxs(Se,{spacing:4,children:[c.jsxs(Pe,{isRequired:!0,children:[c.jsx(_e,{children:"Nom d'utilisateur"}),c.jsx(ut,{value:r,onChange:d=>o(d.target.value),autoComplete:"username"})]}),c.jsxs(Pe,{isRequired:!0,children:[c.jsx(_e,{children:"Mot de passe"}),c.jsx(ar,{value:i,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),c.jsx(he,{type:"submit",colorScheme:"primary",isLoading:s,children:"Se connecter"})]})})})}),c.jsxs(me,{justify:"center",spacing:1,children:[c.jsx(ie,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),c.jsx(he,{as:en,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),c.jsx(he,{as:en,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function tse(){const{login:e}=bi(),t=vr(),n=Br(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(!1),u=async d=>{d.preventDefault(),l(!0);try{await e(r.trim(),i,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ge?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{l(!1)}};return c.jsxs(mr,{maxW:"sm",py:20,position:"relative",children:[c.jsx(ge,{position:"absolute",top:4,right:4,children:c.jsx(pa,{})}),c.jsxs(Se,{spacing:6,children:[c.jsxs(ge,{textAlign:"center",children:[c.jsx(Dt,{size:"lg",children:"Espace admin"}),c.jsx(ie,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),c.jsx(Rb,{children:c.jsx(zb,{children:c.jsx("form",{onSubmit:u,children:c.jsxs(Se,{spacing:4,children:[c.jsxs(Pe,{isRequired:!0,children:[c.jsx(_e,{children:"Nom d'utilisateur"}),c.jsx(ut,{value:r,onChange:d=>o(d.target.value),autoComplete:"username"})]}),c.jsxs(Pe,{isRequired:!0,children:[c.jsx(_e,{children:"Mot de passe"}),c.jsx(ar,{value:i,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),c.jsx(he,{type:"submit",colorScheme:"primary",isLoading:s,children:"Se connecter"})]})})})}),c.jsx(he,{as:en,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function nse(){const{register:e}=bi(),t=vr(),n=Br(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(""),[u,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=i.length>=10,h=i===s,v=f&&p&&h,y=async x=>{if(x.preventDefault(),!!v){d(!0);try{await e(r.trim(),i),t("/app",{replace:!0})}catch(b){const g=b instanceof Ge?b.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:g})}finally{d(!1)}}};return c.jsxs(mr,{maxW:"sm",py:16,position:"relative",children:[c.jsx(ge,{position:"absolute",top:4,right:4,children:c.jsx(pa,{})}),c.jsxs(Se,{spacing:6,children:[c.jsxs(ge,{textAlign:"center",children:[c.jsx(Dt,{size:"lg",children:"Créer un compte"}),c.jsx(ie,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),c.jsx(Rb,{children:c.jsx(zb,{children:c.jsx("form",{onSubmit:y,children:c.jsxs(Se,{spacing:4,children:[c.jsxs(Pe,{isRequired:!0,isInvalid:r.length>0&&!f,children:[c.jsx(_e,{children:"Nom d'utilisateur"}),c.jsx(ut,{value:r,onChange:x=>o(x.target.value),autoComplete:"username"}),c.jsx(Uc,{children:"3 à 64 caractères alphanumériques."})]}),c.jsxs(Pe,{isRequired:!0,isInvalid:i.length>0&&!p,children:[c.jsx(_e,{children:"Mot de passe"}),c.jsx(ar,{value:i,onChange:x=>a(x.target.value),autoComplete:"new-password"}),c.jsx(Uc,{children:"10 caractères minimum."})]}),c.jsxs(Pe,{isRequired:!0,isInvalid:s.length>0&&!h,children:[c.jsx(_e,{children:"Confirmer le mot de passe"}),c.jsx(ar,{value:s,onChange:x=>l(x.target.value),autoComplete:"new-password"})]}),c.jsx(he,{type:"submit",colorScheme:"primary",isLoading:u,isDisabled:!v,children:"Créer mon compte"})]})})})}),c.jsxs(me,{justify:"center",spacing:1,children:[c.jsx(ie,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),c.jsx(he,{as:en,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}const xm=Zp({displayName:"EditIcon",path:c.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[c.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),c.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),rse=Zp({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),ose=Zp({viewBox:"0 0 14 14",path:c.jsx("g",{fill:"currentColor",children:c.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});function Sm(e){switch(e){case"ready":return"green";case"provisioning":case"pending":return"blue";case"expiring":return"orange";case"failed":return"red";case"expired":default:return"gray"}}function wm(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function v2(e){switch(e){case"Running":return"green";case"Pending":return"yellow";case"Succeeded":return"blue";case"Failed":return"red";case"Unknown":case"":default:return"gray"}}function ise(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function y2(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),o=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${o} h`;const i=Math.floor(n%36e5/6e4);return`${o} h ${i} min`}function ase({isOpen:e,title:t,children:n,confirmLabel:r="Confirmer",cancelLabel:o="Annuler",confirmColorScheme:i="red",isLoading:a=!1,onConfirm:s,onClose:l}){const u=m.useRef(null);return c.jsx(xY,{isOpen:e,leastDestructiveRef:u,onClose:l,isCentered:!0,motionPreset:"slideInBottom",children:c.jsx(nl,{backdropFilter:"blur(2px)",children:c.jsxs(SY,{borderRadius:"xl",children:[c.jsx(tl,{fontSize:"lg",fontWeight:"bold",children:t}),c.jsx(el,{color:"gray.600",children:n}),c.jsxs(im,{gap:3,children:[c.jsx(he,{ref:u,onClick:l,variant:"ghost",isDisabled:a,children:o}),c.jsx(he,{colorScheme:i,onClick:s,isLoading:a,children:r})]})]})})})}function I4({isOpen:e,onClose:t,onCreated:n}){const r=Br(),[o,i]=m.useState(""),[a,s]=m.useState("admin"),[l,u]=m.useState(""),[d,f]=m.useState(!1),[p,h]=m.useState(""),[v,y]=m.useState(""),[x,b]=m.useState(!1),[g,S]=m.useState(""),[w,k]=m.useState(""),[_,P]=m.useState(!1),[T,R]=m.useState(""),[E,D]=m.useState(""),[K,J]=m.useState(""),[A,X]=m.useState(""),[B,z]=m.useState("failover"),[O,I]=m.useState(""),[L,G]=m.useState(""),[H,Q]=m.useState("local"),[xe,ve]=m.useState(""),[we,Fe]=m.useState(""),[fe,Z]=m.useState(!1),ee=()=>{i(""),s("admin"),u(""),f(!1),h(""),y(""),b(!1),S(""),k(""),P(!1),R(""),D(""),J(""),X(""),z("failover"),I(""),G(""),Q("local"),ve(""),Fe("")},Ee=()=>{fe||(ee(),t())},pe=async()=>{if(!o.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||l.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(H==="s3"&&(!xe.trim()||!we.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(_&&!T.trim()&&!K.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}const ne={username:o.trim(),adminUsername:a.trim(),adminPassword:l.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&v.trim()||void 0,nowPaymentsApiKey:x&&g.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:H,...H==="s3"?{s3Bucket:xe.trim(),s3Endpoint:we.trim()}:{},..._?{lbBot1Username:T.trim()||void 0,lbBot1Token:E.trim()||void 0,lbBot2Username:K.trim()||void 0,lbBot2Token:A.trim()||void 0,lbStrategy:B,lbJwtTtlSeconds:O.trim()||void 0,lbHealthCheckInterval:L.trim()||void 0}:{}};Z(!0);try{await Ne.createDemo(ne),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),ee(),n(),t()}catch(ue){const at=ue instanceof Ge?ue.message:"Erreur";r({status:"error",title:"Lancement impossible",description:at})}finally{Z(!1)}};return c.jsxs(ku,{isOpen:e,onClose:Ee,size:"lg",closeOnOverlayClick:!fe,children:[c.jsx(nl,{}),c.jsxs(om,{children:[c.jsx(tl,{children:"Nouvelle démo"}),c.jsx(Cu,{isDisabled:fe}),c.jsx(el,{children:c.jsxs(Se,{spacing:5,children:[c.jsxs(Pe,{isRequired:!0,isDisabled:fe,children:[c.jsx(_e,{children:"Username"}),c.jsx(ut,{placeholder:"ex: acme-corp",value:o,onChange:ne=>i(ne.target.value)})]}),c.jsxs(Se,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[c.jsx(ie,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),c.jsx(ie,{fontSize:"xs",color:"gray.500",children:"Créé une fois postgres/redis/backend/frontend démarrés — c'est ce que le client utilisera pour se connecter au backoffice de sa démo."}),c.jsxs(me,{spacing:3,align:"start",children:[c.jsxs(Pe,{isRequired:!0,isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Username"}),c.jsx(ut,{value:a,onChange:ne=>s(ne.target.value)})]}),c.jsxs(Pe,{isRequired:!0,isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Mot de passe"}),c.jsx(ar,{placeholder:"8 caractères min.",value:l,onChange:ne=>u(ne.target.value),autoComplete:"off"})]})]})]}),c.jsx(Pe,{isDisabled:fe,children:c.jsxs(me,{justify:"space-between",children:[c.jsx(_e,{mb:0,children:"Bot Telegram"}),c.jsx(df,{isChecked:d,onChange:ne=>f(ne.target.checked)})]})}),d&&c.jsxs(Se,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Nom du bot (username)"}),c.jsx(ut,{placeholder:"mon_bot",value:p,onChange:ne=>h(ne.target.value)})]}),c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Token bot Telegram"}),c.jsx(ar,{placeholder:"123456:ABC-DEF...",value:v,onChange:ne=>y(ne.target.value),autoComplete:"off"})]})]}),c.jsx(Pe,{isDisabled:fe,children:c.jsxs(me,{justify:"space-between",children:[c.jsx(_e,{mb:0,children:"NowPayments (paiement crypto)"}),c.jsx(df,{isChecked:x,onChange:ne=>b(ne.target.checked)})]})}),x&&c.jsxs(Se,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Clé API NowPayments"}),c.jsx(ar,{placeholder:"clé API du compte marchand",value:g,onChange:ne=>S(ne.target.value),autoComplete:"off"})]}),c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Secret IPN NowPayments"}),c.jsx(ar,{placeholder:"secret configuré côté NowPayments",value:w,onChange:ne=>k(ne.target.value),autoComplete:"off"}),c.jsx(ie,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),c.jsx(Pe,{isDisabled:fe,children:c.jsxs(me,{justify:"space-between",children:[c.jsx(_e,{mb:0,children:"Load-balancer Telegram"}),c.jsx(df,{isChecked:_,onChange:ne=>P(ne.target.checked)})]})}),_&&c.jsxs(Se,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[c.jsx(ie,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),c.jsxs(me,{spacing:3,align:"start",children:[c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Bot 1 — username"}),c.jsx(ut,{placeholder:"mon_bot_1",value:T,onChange:ne=>R(ne.target.value)})]}),c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Bot 1 — token"}),c.jsx(ar,{placeholder:"123456:ABC-DEF...",value:E,onChange:ne=>D(ne.target.value),autoComplete:"off"})]})]}),c.jsxs(me,{spacing:3,align:"start",children:[c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),c.jsx(ut,{placeholder:"mon_bot_2",value:K,onChange:ne=>J(ne.target.value)})]}),c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Bot 2 — token"}),c.jsx(ar,{placeholder:"123456:ABC-DEF...",value:A,onChange:ne=>X(ne.target.value),autoComplete:"off"})]})]}),c.jsxs(me,{spacing:3,align:"start",children:[c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Stratégie de répartition"}),c.jsxs(h5,{value:B,onChange:ne=>z(ne.target.value),children:[c.jsx("option",{value:"failover",children:"Failover"}),c.jsx("option",{value:"roundrobin",children:"Round-robin"}),c.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"TTL JWT (secondes)"}),c.jsx(ut,{placeholder:"300",value:O,onChange:ne=>I(ne.target.value),type:"number"})]}),c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Intervalle health-check (s)"}),c.jsx(ut,{placeholder:"30",value:L,onChange:ne=>G(ne.target.value),type:"number"})]})]})]}),c.jsxs(Pe,{isDisabled:fe,children:[c.jsx(_e,{children:"Stockage des fichiers"}),c.jsx(p5,{value:H,onChange:ne=>Q(ne),children:c.jsxs(Se,{direction:"row",spacing:6,children:[c.jsx(Qv,{value:"local",children:"Local (disque du cluster)"}),c.jsx(Qv,{value:"s3",children:"S3"})]})})]}),H==="s3"&&c.jsxs(Se,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[c.jsxs(Pe,{isRequired:!0,isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Nom du bucket"}),c.jsx(ut,{placeholder:"mon-bucket-demo",value:xe,onChange:ne=>ve(ne.target.value)})]}),c.jsxs(Pe,{isRequired:!0,isDisabled:fe,children:[c.jsx(_e,{fontSize:"sm",children:"Endpoint S3"}),c.jsx(ut,{placeholder:"https://s3.exemple.com",value:we,onChange:ne=>Fe(ne.target.value)})]})]})]})}),c.jsxs(im,{children:[c.jsx(he,{variant:"ghost",mr:3,onClick:Ee,isDisabled:fe,children:"Annuler"}),c.jsx(he,{colorScheme:"primary",onClick:pe,isLoading:fe,children:"Lancer la démo"})]})]})]})}function R4({demo:e,onClose:t,onSaved:n}){const r=Br(),[o,i]=m.useState(""),[a,s]=m.useState(!1);m.useEffect(()=>{i((e==null?void 0:e.custom_domain)??"")},[e]);const l=()=>{a||t()},u=async()=>{if(e){s(!0);try{await Ne.setDemoDomain(e.id,o.trim()),r({status:"success",title:"Domaine mis à jour"}),n(),t()}catch(d){const f=d instanceof Ge?d.message:"Erreur";r({status:"error",title:"Mise à jour impossible",description:f})}finally{s(!1)}}};return c.jsxs(ku,{isOpen:!!e,onClose:l,closeOnOverlayClick:!a,children:[c.jsx(nl,{}),c.jsxs(om,{children:[c.jsx(tl,{children:"Domaine de la plateforme"}),c.jsx(Cu,{isDisabled:a}),c.jsx(el,{children:c.jsxs(Pe,{children:[c.jsx(_e,{fontSize:"sm",children:"Domaine personnalisé"}),c.jsx(ut,{placeholder:"boutique.mon-domaine.com",value:o,onChange:d=>i(d.target.value),isDisabled:a,fontFamily:"mono"}),c.jsxs(Uc,{children:["Laissez vide pour revenir au domaine par défaut (",e==null?void 0:e.namespace,".<domaine omnex>). Le DNS du domaine choisi doit pointer vers le cluster, et un certificat TLS valide doit le couvrir — le certificat wildcard partagé ne couvre que le domaine par défaut."]})]})}),c.jsxs(im,{children:[c.jsx(he,{variant:"ghost",mr:3,onClick:l,isDisabled:a,children:"Annuler"}),c.jsx(he,{colorScheme:"primary",onClick:u,isLoading:a,children:"Enregistrer"})]})]})]})}const sg=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}];function Wx({state:e}){const t=sg.every(r=>e[r.key].phase==="Running"),n=sg.filter(r=>e[r.key].phase!=="Running").length;return c.jsxs(Se,{spacing:3,children:[c.jsxs(me,{spacing:2,children:[c.jsx(ge,{w:"8px",h:"8px",borderRadius:"full",bg:t?"green.400":"red.400",flexShrink:0}),c.jsx(ie,{fontSize:"sm",fontWeight:"medium",children:t?"Tous les services sont opérationnels":`${n} service${n>1?"s":""} indisponible${n>1?"s":""}`})]}),c.jsx(ua,{columns:{base:1,lg:4},spacing:3,children:sg.map(r=>c.jsx(sse,{title:r.label,cs:e[r.key]},r.key))})]})}function sse({title:e,cs:t}){const n=t.cpu_limit_milli>0?Math.min(100,Math.round(t.cpu_milli/t.cpu_limit_milli*100)):0,r=t.memory_limit_mi>0?Math.min(100,Math.round(t.memory_mi/t.memory_limit_mi*100)):0;return c.jsxs(ge,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",minW:0,children:[c.jsxs(me,{justify:"space-between",mb:3,children:[c.jsx(ie,{fontSize:"sm",fontWeight:"semibold",noOfLines:1,children:e}),c.jsxs(me,{spacing:1.5,children:[c.jsx(ge,{w:"7px",h:"7px",borderRadius:"full",bg:`${v2(t.phase)}.400`,flexShrink:0}),c.jsx(En,{colorScheme:v2(t.phase),fontSize:"10px",children:ise(t.phase)})]})]}),c.jsxs(Se,{spacing:2,children:[c.jsxs(ge,{children:[c.jsxs(wt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[c.jsx(ie,{children:"CPU"}),c.jsxs(ie,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),c.jsx(qv,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),c.jsxs(ge,{children:[c.jsxs(wt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[c.jsx(ie,{children:"Mémoire"}),c.jsxs(ie,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),c.jsx(qv,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function Ux(e){return c.jsx(vt,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}function z4({demo:e,isOpen:t,onToggle:n,detailsLoading:r,details:o,onEditDomain:i,expiresLabel:a,actions:s}){return c.jsxs(ge,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",bg:"bg-surface",children:[c.jsxs(ge,{p:4,cursor:"pointer",onClick:n,_active:{bg:"chakra-subtle-bg"},children:[c.jsxs(me,{justify:"space-between",align:"start",children:[c.jsxs(me,{spacing:2,minW:0,flex:"1",children:[c.jsx(vt,{as:Ux,boxSize:3,color:"gray.400",flexShrink:0,transform:t?"rotate(90deg)":void 0,transition:"transform 0.15s"}),c.jsx(ie,{fontFamily:"mono",fontSize:"sm",noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",children:e.namespace})]}),c.jsx(En,{colorScheme:Sm(e.status),flexShrink:0,children:wm(e.status)})]}),c.jsxs(Se,{spacing:1,mt:3,fontSize:"sm",children:[c.jsxs(me,{justify:"space-between",children:[c.jsx(ie,{color:"gray.500",children:"Client"}),c.jsx(ie,{children:e.username||"—"})]}),c.jsxs(me,{justify:"space-between",align:"start",children:[c.jsx(ie,{color:"gray.500",flexShrink:0,children:"URL"}),c.jsxs(me,{spacing:1,minW:0,flex:"1",justify:"flex-end",children:[e.status==="ready"?c.jsx(hi,{href:e.url,color:"primary.500",isExternal:!0,noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",onClick:l=>l.stopPropagation(),children:e.url}):c.jsx(ie,{color:"gray.400",children:"—"}),c.jsx(Cn,{"aria-label":"Modifier le domaine",icon:c.jsx(xm,{}),size:"xs",variant:"ghost",flexShrink:0,onClick:l=>{l.stopPropagation(),i()}})]})]}),a&&c.jsxs(me,{justify:"space-between",children:[c.jsx(ie,{color:"gray.500",children:"Expire dans"}),c.jsx(ie,{children:a})]})]}),s&&c.jsx(me,{mt:3,spacing:2,flexWrap:"wrap",rowGap:2,onClick:l=>l.stopPropagation(),children:s})]}),c.jsx(yu,{in:t,unmountOnExit:!0,animateOpacity:!0,children:c.jsx(ge,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:r&&!o?c.jsx(me,{justify:"center",py:2,children:c.jsx(Tn,{size:"sm"})}):o?c.jsx(Wx,{state:o.state}):c.jsx(ie,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})]})}const lse=5e3,cse=5e3;function use(){const e=Br(),t=vr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,u]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[v,y]=m.useState(null),[x,b]=m.useState(null),[g,S]=m.useState(!1),w=m.useCallback(async()=>{try{const E=await Ne.listDemos();r((E.items??[]).filter(D=>D.type_abonnement!=="premium"))}catch(E){E instanceof Ge&&E.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{w();const E=setInterval(()=>void w(),lse);return()=>clearInterval(E)},[w]);const k=async E=>{s(E.id);try{await Ne.extendDemo(E.id),e({status:"success",title:"Démo prolongée de 30 jours"}),await w()}catch(D){const K=D instanceof Ge?D.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:K})}finally{s(null)}},_=async()=>{if(!l)return;const E=l;s(E.id);try{await Ne.deleteDemo(E.id),e({status:"success",title:"Démo détruite"}),u(null),await w()}catch(D){const K=D instanceof Ge?D.message:"Erreur";e({status:"error",title:"Destruction impossible",description:K})}finally{s(null)}},P=async E=>{if(v===E.id){y(null),b(null);return}y(E.id),b(null),S(!0);try{const D=await Ne.getDemoDetails(E.namespace);b(D)}catch(D){const K=D instanceof Ge?D.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:K}),y(null)}finally{S(!1)}};m.useEffect(()=>{const E=n.find(J=>J.id===v);if(!E)return;const D=E.namespace,K=setInterval(()=>{Ne.getDemoDetails(D).then(b).catch(()=>{})},cse);return()=>clearInterval(K)},[v]);const T=E=>E!=="expired"&&E!=="failed",R=E=>c.jsxs(c.Fragment,{children:[c.jsx(he,{size:"sm",variant:"outline",isDisabled:!T(E.status)||a===E.id,onClick:D=>{D.stopPropagation(),k(E)},children:"+30 j"}),c.jsx(he,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!T(E.status),onClick:D=>{D.stopPropagation(),u(E)},children:"Détruire"})]});return c.jsxs(c.Fragment,{children:[c.jsxs(wt,{mb:6,align:"center",gap:4,wrap:"wrap",children:[c.jsx(Dt,{size:"md",mr:4,children:"Démos"}),c.jsx(fa,{}),c.jsx(he,{colorScheme:"primary",onClick:()=>f(!0),children:"Nouvelle démo"})]}),c.jsx(I4,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void w()}),o?c.jsx(Tn,{}):n.length===0?c.jsx(ie,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):c.jsxs(c.Fragment,{children:[c.jsx(lx,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:c.jsxs(am,{children:[c.jsx(ux,{children:c.jsxs(ei,{children:[c.jsx(Jt,{children:"Namespace"}),c.jsx(Jt,{children:"Client"}),c.jsx(Jt,{children:"Statut"}),c.jsx(Jt,{children:"URL"}),c.jsx(Jt,{children:"Expire dans"}),c.jsx(Jt,{})]})}),c.jsx(cx,{children:n.map(E=>{const D=v===E.id;return c.jsxs(m.Fragment,{children:[c.jsxs(ei,{cursor:"pointer",bg:D?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>P(E),children:[c.jsx(Mt,{fontFamily:"mono",children:c.jsxs(me,{spacing:2,children:[c.jsx(vt,{as:Ux,boxSize:3,color:"gray.400",transform:D?"rotate(90deg)":void 0,transition:"transform 0.15s"}),c.jsx(ie,{children:E.namespace})]})}),c.jsx(Mt,{children:E.username?c.jsx(ie,{children:E.username}):c.jsx(ie,{color:"gray.400",children:"—"})}),c.jsx(Mt,{children:c.jsx(En,{colorScheme:Sm(E.status),children:wm(E.status)})}),c.jsx(Mt,{children:c.jsxs(me,{spacing:1,children:[E.status==="ready"?c.jsx(hi,{href:E.url,color:"primary.500",isExternal:!0,onClick:K=>K.stopPropagation(),children:E.url}):c.jsx(ie,{color:"gray.400",children:"—"}),c.jsx(Cn,{"aria-label":"Modifier le domaine",icon:c.jsx(xm,{}),size:"xs",variant:"ghost",onClick:K=>{K.stopPropagation(),h(E)}})]})}),c.jsx(Mt,{children:T(E.status)?y2(E.expires_at):"—"}),c.jsx(Mt,{textAlign:"right",children:c.jsx(me,{justify:"flex-end",children:R(E)})})]}),c.jsx(ei,{children:c.jsx(Mt,{p:0,border:D?void 0:"none",colSpan:6,children:c.jsx(yu,{in:D,unmountOnExit:!0,animateOpacity:!0,children:c.jsx(ge,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:g&&!x?c.jsx(wt,{justify:"center",py:4,children:c.jsx(Tn,{size:"sm"})}):x?c.jsx(Wx,{state:x.state}):c.jsx(ie,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},E.id)})})]})}),c.jsx(Se,{spacing:3,display:{base:"flex",md:"none"},children:n.map(E=>c.jsx(z4,{demo:E,isOpen:v===E.id,onToggle:()=>P(E),detailsLoading:g,details:v===E.id?x:null,onEditDomain:()=>h(E),expiresLabel:T(E.status)?y2(E.expires_at):"—",actions:R(E)},E.id))})]}),c.jsxs(ase,{isOpen:!!l,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!l&&a===l.id,onConfirm:_,onClose:()=>u(null),children:["La démo"," ",c.jsx(ie,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:l==null?void 0:l.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]}),c.jsx(R4,{demo:p,onClose:()=>h(null),onSaved:()=>void w()})]})}const dse=5e3,fse=5e3;function pse(){const e=Br(),t=vr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(!1),[l,u]=m.useState(null),[d,f]=m.useState(null),[p,h]=m.useState(null),[v,y]=m.useState(!1),x=m.useCallback(async()=>{try{const g=await Ne.listDemos();r((g.items??[]).filter(S=>S.type_abonnement==="premium"))}catch(g){g instanceof Ge&&g.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{x();const g=setInterval(()=>void x(),dse);return()=>clearInterval(g)},[x]);const b=async g=>{if(d===g.id){f(null),h(null);return}f(g.id),h(null),y(!0);try{const S=await Ne.getDemoDetails(g.namespace);h(S)}catch(S){const w=S instanceof Ge?S.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:w}),f(null)}finally{y(!1)}};return m.useEffect(()=>{const g=n.find(k=>k.id===d);if(!g)return;const S=g.namespace,w=setInterval(()=>{Ne.getDemoDetails(S).then(h).catch(()=>{})},fse);return()=>clearInterval(w)},[d]),c.jsxs(c.Fragment,{children:[c.jsxs(wt,{mb:2,align:"center",gap:4,wrap:"wrap",children:[c.jsx(Dt,{size:"md",mr:4,children:"Démos Premium"}),c.jsx(fa,{}),c.jsx(he,{colorScheme:"primary",onClick:()=>s(!0),children:"Déployer une plateforme"})]}),c.jsx(ie,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),c.jsx(I4,{isOpen:a,onClose:()=>s(!1),onCreated:()=>void x()}),o?c.jsx(Tn,{}):n.length===0?c.jsx(ie,{color:"gray.500",children:"Aucune démo premium pour le moment."}):c.jsxs(c.Fragment,{children:[c.jsx(lx,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:c.jsxs(am,{children:[c.jsx(ux,{children:c.jsxs(ei,{children:[c.jsx(Jt,{children:"Namespace"}),c.jsx(Jt,{children:"Client"}),c.jsx(Jt,{children:"Statut"}),c.jsx(Jt,{children:"URL"})]})}),c.jsx(cx,{children:n.map(g=>{const S=d===g.id;return c.jsxs(m.Fragment,{children:[c.jsxs(ei,{cursor:"pointer",bg:S?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>b(g),children:[c.jsx(Mt,{fontFamily:"mono",children:c.jsxs(me,{spacing:2,children:[c.jsx(vt,{as:Ux,boxSize:3,color:"gray.400",transform:S?"rotate(90deg)":void 0,transition:"transform 0.15s"}),c.jsx(ie,{children:g.namespace})]})}),c.jsx(Mt,{children:g.username||c.jsx(ie,{color:"gray.400",children:"—"})}),c.jsx(Mt,{children:c.jsx(En,{colorScheme:Sm(g.status),children:wm(g.status)})}),c.jsx(Mt,{children:c.jsxs(me,{spacing:1,children:[g.status==="ready"?c.jsx(hi,{href:g.url,color:"primary.500",isExternal:!0,onClick:w=>w.stopPropagation(),children:g.url}):c.jsx(ie,{color:"gray.400",children:"—"}),c.jsx(Cn,{"aria-label":"Modifier le domaine",icon:c.jsx(xm,{}),size:"xs",variant:"ghost",onClick:w=>{w.stopPropagation(),u(g)}})]})})]}),c.jsx(ei,{children:c.jsx(Mt,{p:0,border:S?void 0:"none",colSpan:4,children:c.jsx(yu,{in:S,unmountOnExit:!0,animateOpacity:!0,children:c.jsx(ge,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:v&&!p?c.jsx(Tn,{size:"sm"}):p?c.jsx(Wx,{state:p.state}):c.jsx(ie,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},g.id)})})]})}),c.jsx(Se,{spacing:3,display:{base:"flex",md:"none"},children:n.map(g=>c.jsx(z4,{demo:g,isOpen:d===g.id,onToggle:()=>b(g),detailsLoading:v,details:d===g.id?p:null,onEditDomain:()=>u(g)},g.id))})]}),c.jsx(R4,{demo:l,onClose:()=>u(null),onSaved:()=>void x()})]})}const mse=1e4;function hse(){const e=Br(),t=vr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,u]=m.useState(""),[d,f]=m.useState(null),p=m.useCallback(async()=>{try{const y=await Ne.listCodes();r(y.items??[])}catch(y){y instanceof Ge&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{p();const y=setInterval(()=>void p(),mse);return()=>clearInterval(y)},[p]);const h=async y=>{if(y.preventDefault(),!l.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}s("generate");try{const x=await Ne.createCode(l.trim());f(x.code),u(""),e({status:"success",title:"Code généré avec succès !"}),await p()}catch(x){const b=x instanceof Ge?x.message:"Erreur";e({status:"error",title:"Génération impossible",description:b})}finally{s(null)}},v=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const b=document.createElement("textarea");b.value=y,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();const g=document.execCommand("copy");document.body.removeChild(b),e(g?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return c.jsxs(c.Fragment,{children:[c.jsxs(wt,{mb:6,align:"center",children:[c.jsx(Dt,{size:"md",children:"Gestion des codes de souscription"}),c.jsx(fa,{})]}),c.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:c.jsx("form",{onSubmit:h,children:c.jsxs(ip,{spacing:4,align:"stretch",children:[c.jsxs(Se,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[c.jsxs(Pe,{isRequired:!0,children:[c.jsx(_e,{children:"Nom d\\'utilisateur"}),c.jsx(ut,{type:"text",value:l,onChange:y=>u(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:a==="generate",maxLength:64})]}),c.jsx(he,{colorScheme:"primary",type:"submit",isLoading:a==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),d&&c.jsxs(ge,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[c.jsxs(ie,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",c.jsx("strong",{children:l})," :"]}),c.jsxs(me,{children:[c.jsx(ie,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:d}),c.jsx(he,{size:"sm",variant:"outline",onClick:()=>v(d),children:"Copier"})]})]})]})})}),o?c.jsx(Tn,{}):n.length===0?c.jsx(ie,{color:"gray.500",children:"Aucun code de souscription généré."}):c.jsx(lx,{borderWidth:"1px",borderRadius:"lg",children:c.jsxs(am,{children:[c.jsx(ux,{children:c.jsxs(ei,{children:[c.jsx(Jt,{children:"ID"}),c.jsx(Jt,{children:"Utilisateur"}),c.jsx(Jt,{children:"Code"}),c.jsx(Jt,{children:"Date de création"}),c.jsx(Jt,{})]})}),c.jsx(cx,{children:n.map(y=>c.jsxs(ei,{children:[c.jsxs(Mt,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),c.jsx(Mt,{children:c.jsx(En,{colorScheme:"gray",px:2,py:1,children:y.username})}),c.jsx(Mt,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),c.jsx(Mt,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),c.jsx(Mt,{textAlign:"right",children:c.jsx(he,{size:"sm",variant:"outline",onClick:()=>v(y.code_verif),children:"Copier"})})]},y.id))})]})})]})}function gse(){const e=Br(),t=vr(),[n,r]=m.useState(null),[o,i]=m.useState(null),[a,s]=m.useState(!0),[l,u]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),[v,y]=m.useState([]),[x,b]=m.useState(!0),g=m.useCallback(async()=>{try{const T=await Ne.me();r(T.type_abonnement??null),i(T.expired_at?new Date(T.expired_at):null)}catch(T){T instanceof Ge&&T.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{s(!1)}},[t,e]),S=m.useCallback(async()=>{try{const T=await Ne.listMyDemos();y(T.items??[])}catch{}finally{b(!1)}},[]);m.useEffect(()=>{g(),S()},[g,S]);const w=async T=>{if(T.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}u(!0);try{await Ne.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await g()}catch(R){const E=R instanceof Ge?R.message:"Erreur";e({status:"error",title:"Code invalide",description:E})}finally{u(!1)}},k=n==="premium",_=!k||p,P=o?Math.ceil((o.getTime()-Date.now())/(1e3*60*60*24)):null;return c.jsxs(c.Fragment,{children:[c.jsxs(wt,{mb:6,align:"center",children:[c.jsx(Dt,{size:"md",children:k?"Ma plateforme":"Ma démo"}),c.jsx(fa,{})]}),c.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:x?c.jsx(Tn,{size:"sm"}):v.length===0?c.jsx(ie,{color:"gray.500",children:k?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):c.jsx(ip,{align:"stretch",spacing:3,children:v.map(T=>c.jsxs(me,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[T.status==="ready"?c.jsx(hi,{href:T.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:T.url}):c.jsx(ie,{color:"gray.400",fontFamily:"mono",children:T.url||"—"}),c.jsx(En,{colorScheme:Sm(T.status),children:wm(T.status)})]},T.id))})}),c.jsxs(wt,{mb:6,align:"center",children:[c.jsx(Dt,{size:"md",children:"Mon abonnement"}),c.jsx(fa,{})]}),c.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?c.jsx(Tn,{}):c.jsxs(ip,{align:"stretch",spacing:4,children:[c.jsxs(me,{flexWrap:"wrap",rowGap:2,children:[c.jsx(ie,{color:"gray.400",children:"Statut actuel :"}),c.jsx(En,{colorScheme:k?"purple":"gray",px:2,py:1,children:k?"Premium":"Demo"}),k&&!p&&c.jsx(he,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),k&&o&&c.jsx(ie,{fontSize:"sm",color:P!==null&&P<=5?"orange.400":"gray.400",children:P!==null&&P>0?`Expire dans ${P} jour${P>1?"s":""} (le ${o.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${o.toLocaleDateString("fr-FR")}`}),_&&c.jsx("form",{onSubmit:w,children:c.jsxs(Se,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[c.jsxs(Pe,{isRequired:!0,children:[c.jsx(_e,{children:k?"Nouveau code de renouvellement":"Code de souscription"}),c.jsx(ut,{type:"text",value:d,onChange:T=>f(T.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:l,fontFamily:"mono",letterSpacing:"wide"})]}),c.jsxs(me,{flexShrink:0,children:[c.jsx(he,{colorScheme:"primary",type:"submit",isLoading:l,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:k?"Renouveler":"Activer"}),k&&c.jsx(he,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:l,children:"Annuler"})]})]})})]})})]})}function b2(e){return e==="admin"?"Administrateur":"Client"}function vse(e){return e==="admin"?"purple":"blue"}function yse(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function bse(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function Ad(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=SH();return e?c.jsxs(Ib,{size:"sm",spacing:1,children:[c.jsx(Cn,{"aria-label":"Enregistrer",icon:c.jsx(ose,{}),...t()}),c.jsx(Cn,{"aria-label":"Annuler",icon:c.jsx(rse,{}),...n()})]}):c.jsx(Cn,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:c.jsx(xm,{}),...r()})}function xse(){const e=Br(),t=vr(),{logout:n}=bi(),[r,o]=m.useState(null),[i,a]=m.useState(!0),[s,l]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),[h,v]=m.useState(0),[y,x]=m.useState(!1),[b,g]=m.useState(""),[S,w]=m.useState(!1),[k,_]=m.useState(!1),[P,T]=m.useState(""),[R,E]=m.useState(""),[D,K]=m.useState(""),[J,A]=m.useState(!1);m.useEffect(()=>{let L=!1;return(async()=>{try{const[G,H]=await Promise.all([Ne.me(),Ne.getTelegram()]);if(L)return;if(o(G),g(H.telegram??""),G.role==="admin"){const Q=await Ne.getAlertSettings();if(L)return;T(Q.discord_webhook_url),E(Q.telegram_bot_token),K(Q.telegram_chat_id)}}catch(G){if(G instanceof Ge&&G.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{L||a(!1)}})(),()=>{L=!0}},[t,e]);const X=async()=>{A(!0);try{const L=await Ne.setAlertSettings({discord_webhook_url:P.trim(),telegram_bot_token:R.trim(),telegram_chat_id:D.trim()});T(L.discord_webhook_url),E(L.telegram_bot_token),K(L.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(L){if(L instanceof Ge&&L.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:L instanceof Ge?L.message:void 0})}finally{A(!1)}},B=async L=>{const G=L.trim();if(!(!r||!G||G===r.username)){d(!0);try{const H=await Ne.updateUsername(G);o({...r,username:H.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(H){if(H instanceof Ge&&H.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:H instanceof Ge?H.message:void 0})}finally{d(!1)}}},z=async L=>{const G=L.trim();if(!r||G.length<8){G.length>0&&e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"}),v(H=>H+1);return}p(!0);try{await Ne.updatePassword(G),e({status:"success",title:"Mot de passe mis à jour"})}catch(H){if(H instanceof Ge&&H.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:H instanceof Ge?H.message:void 0})}finally{p(!1),v(H=>H+1)}},O=async L=>{const G=L.trim();if(!G){_(!1);return}w(!0);try{const H=await Ne.setTelegram(G);g(H.telegram),_(!1),e({status:"success",title:"Telegram enregistré"})}catch(H){if(H instanceof Ge&&H.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:H instanceof Ge?H.message:void 0})}finally{w(!1)}},I=async()=>{l(!0);try{await Ne.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{l(!1)}};return c.jsx(ge,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:c.jsxs(mr,{maxW:"container.md",children:[c.jsxs(Se,{spacing:3,mb:8,children:[c.jsx(Dt,{size:"lg",children:"Mon profil"}),c.jsx(ie,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),c.jsx(ge,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:i?c.jsx(wt,{justify:"center",py:10,children:c.jsx(Tn,{})}):r?c.jsxs(Se,{spacing:8,children:[c.jsxs(wt,{align:"center",gap:5,wrap:"wrap",children:[c.jsx(Ab,{name:r.username,size:"xl"}),c.jsxs(ge,{children:[c.jsx(Fl,{defaultValue:r.username,onSubmit:B,isDisabled:u,submitOnBlur:!1,children:c.jsxs(me,{spacing:2,children:[c.jsx(Vl,{as:Dt,size:"md",fontFamily:"mono"}),c.jsx(Bl,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),c.jsx(Ad,{})]})},r.username),c.jsxs(me,{mt:2,spacing:2,children:[c.jsx(En,{colorScheme:vse(r.role),children:b2(r.role)}),r.type_abonnement&&c.jsx(En,{colorScheme:yse(r.type_abonnement),children:r.type_abonnement})]})]})]}),c.jsx(qi,{borderColor:"chakra-border-color"}),c.jsxs(ua,{columns:{base:1,sm:2},spacing:6,children:[c.jsxs(Ai,{children:[c.jsx(Ii,{children:"Identifiant"}),c.jsx(jo,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),c.jsxs(Ai,{children:[c.jsx(Ii,{children:"Rôle"}),c.jsx(jo,{fontSize:"md",children:b2(r.role)})]}),c.jsxs(Ai,{children:[c.jsx(Ii,{children:"Type d'abonnement"}),c.jsx(jo,{fontSize:"md",children:r.type_abonnement||"—"})]}),c.jsxs(Ai,{children:[c.jsx(Ii,{children:"Mot de passe"}),c.jsx(Fl,{defaultValue:"",placeholder:"••••••••",onSubmit:z,isDisabled:f,submitOnBlur:!1,children:c.jsxs(me,{spacing:2,children:[c.jsx(Vl,{as:jo,fontSize:"md",fontFamily:"mono"}),c.jsx(Bl,{type:y?"text":"password",fontSize:"md",fontFamily:"mono"}),c.jsx(Cn,{"aria-label":y?"Masquer le mot de passe":"Afficher le mot de passe",icon:c.jsx(Vx,{icon:y?A4:$4}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>x(L=>!L)}),c.jsx(Ad,{})]})},h)]}),c.jsxs(Ai,{children:[c.jsx(Ii,{children:"Telegram"}),b?c.jsx(Fl,{defaultValue:b,onSubmit:O,isDisabled:S,submitOnBlur:!1,children:c.jsxs(me,{spacing:2,children:[c.jsx(Vl,{as:jo,fontSize:"md",fontFamily:"mono"}),c.jsx(Bl,{fontSize:"md",fontFamily:"mono"}),c.jsx(Ad,{})]})},b):k?c.jsx(Fl,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:O,onCancel:()=>_(!1),isDisabled:S,submitOnBlur:!1,children:c.jsxs(me,{spacing:2,children:[c.jsx(Vl,{as:jo,fontSize:"md",fontFamily:"mono"}),c.jsx(Bl,{fontSize:"md",fontFamily:"mono"}),c.jsx(Ad,{})]})}):c.jsx(he,{size:"sm",variant:"outline",onClick:()=>_(!0),children:"Ajouter mon Telegram"})]}),c.jsxs(Ai,{children:[c.jsx(Ii,{children:"Expire le"}),c.jsx(jo,{fontSize:"md",children:bse(r.expired_at)})]})]}),r.role==="admin"&&c.jsxs(c.Fragment,{children:[c.jsx(qi,{borderColor:"chakra-border-color"}),c.jsxs(Se,{spacing:4,children:[c.jsxs(ge,{children:[c.jsx(Dt,{size:"sm",children:"Alertes monitoring"}),c.jsx(ie,{color:"gray.500",fontSize:"sm",children:"Recevez une notification quand un pod d'une démo tombe en erreur (ou se rétablit). Réglages propres à votre compte."})]}),c.jsxs(Pe,{children:[c.jsx(_e,{fontSize:"sm",children:"Webhook Discord"}),c.jsx(ut,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:P,onChange:L=>T(L.target.value),isDisabled:J})]}),c.jsxs(ua,{columns:{base:1,sm:2},spacing:4,children:[c.jsxs(Pe,{children:[c.jsx(_e,{fontSize:"sm",children:"Bot Telegram (token)"}),c.jsx(ut,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:R,onChange:L=>E(L.target.value),isDisabled:J})]}),c.jsxs(Pe,{children:[c.jsx(_e,{fontSize:"sm",children:"Telegram (chat ID)"}),c.jsx(ut,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:D,onChange:L=>K(L.target.value),isDisabled:J}),c.jsx(Uc,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),c.jsx(wt,{justify:"flex-end",children:c.jsx(he,{size:"sm",colorScheme:"primary",isLoading:J,onClick:X,children:"Enregistrer les alertes"})})]})]}),c.jsx(qi,{borderColor:"chakra-border-color"}),c.jsx(wt,{justify:"flex-end",children:c.jsx(he,{colorScheme:"red",variant:"outline",isLoading:s,onClick:I,children:"Se déconnecter"})})]}):c.jsx(ie,{color:"gray.500",children:"Aucune information disponible."})})]})})}const x2=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/contact",label:"Contact",end:!1}],Sse=()=>c.jsx(ge,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx(ge,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function wse(){const{isOpen:e,onOpen:t,onClose:n}=lu();return c.jsxs(ge,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[c.jsx(mr,{maxW:"container.lg",children:c.jsxs(wt,{h:16,align:"center",justify:"space-between",children:[c.jsxs(me,{spacing:8,children:[c.jsx(ge,{as:en,to:"/",fontWeight:"bold",fontSize:"xl",letterSpacing:"tight",children:"Omnex"}),c.jsx(me,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:x2.map(r=>c.jsx(S2,{to:r.to,end:r.end,children:r.label},r.to))})]}),c.jsxs(me,{spacing:2,display:{base:"none",md:"flex"},children:[c.jsx(pa,{}),c.jsx(he,{as:en,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),c.jsx(he,{as:en,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),c.jsxs(me,{spacing:1,display:{base:"flex",md:"none"},children:[c.jsx(pa,{}),c.jsx(Cn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:c.jsx(Sse,{})})]})]})}),c.jsxs(u5,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[c.jsx(nl,{}),c.jsxs(sx,{bg:"chakra-body-bg",children:[c.jsx(Cu,{size:"lg"}),c.jsx(tl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:"Omnex"}),c.jsxs(el,{py:6,children:[c.jsx(Se,{as:"nav",spacing:1,children:x2.map(r=>c.jsx(S2,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),c.jsx(qi,{my:6}),c.jsxs(Se,{spacing:3,children:[c.jsx(he,{as:en,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),c.jsx(he,{as:en,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function S2({to:e,end:t,children:n,onClick:r,mobile:o=!1}){return c.jsx(he,{as:gA,to:e,end:t,size:o?"lg":"sm",variant:"ghost",justifyContent:o?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function kse(){return c.jsx(ge,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:c.jsxs(mr,{maxW:"container.lg",py:12,children:[c.jsxs(ua,{columns:{base:1,md:4},spacing:8,children:[c.jsxs(Se,{spacing:3,children:[c.jsx(ie,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),c.jsx(ie,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison, déployable en démo isolée en un clic."})]}),c.jsxs(w2,{title:"Produit",children:[c.jsx(lg,{to:"/",children:"Présentation"}),c.jsx(lg,{to:"/tarifs",children:"Tarifs"}),c.jsx(lg,{to:"/register",children:"Créer un compte"})]}),c.jsxs(w2,{title:"Ressources",children:[c.jsx(_l,{href:"#",children:"Documentation"}),c.jsx(_l,{href:"#",children:"Statut"}),c.jsx(_l,{href:"#",children:"Sécurité"})]})]}),c.jsx(qi,{my:8}),c.jsxs(me,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[c.jsxs(ie,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),c.jsxs(me,{spacing:6,fontSize:"sm",color:"gray.500",children:[c.jsx(_l,{href:"#",children:"Mentions légales"}),c.jsx(_l,{href:"#",children:"Confidentialité"})]})]})]})})}function w2({title:e,children:t}){return c.jsxs(Se,{spacing:2,children:[c.jsx(ie,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function lg({to:e,children:t}){return c.jsx(hi,{as:en,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function _l({href:e,children:t}){return c.jsx(hi,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Cse(){return c.jsxs(wt,{direction:"column",minH:"100vh",children:[c.jsx(wse,{}),c.jsx(ge,{as:"main",flex:"1",children:c.jsx(mA,{})}),c.jsx(kse,{})]})}const Pse=()=>c.jsx(ge,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx(ge,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),k2="https://t.me/OMNEX_CORP";function _se(){const{logout:e,isAdmin:t,isClient:n}=bi(),r=vr(),{isOpen:o,onOpen:i,onClose:a}=lu(),s=async()=>{const d=t?"/admin/login":"/login";await e(),r(d,{replace:!0})},l=t?"Admin":n?"Client":"Utilisateur",u=t?"purple":"gray";return c.jsxs(ge,{minH:"100vh",bg:"chakra-subtle-bg",overflowX:"hidden",children:[c.jsxs(wt,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[c.jsxs(Dt,{size:"sm",as:en,to:"/app",children:["Omnex · ",t?"Espace admin":"Espace client"]}),c.jsxs(me,{spacing:1,display:{base:"none",md:"flex"},children:[n&&c.jsx(kr,{to:"/app/subscription",children:"Abonnement"}),(t||n)&&c.jsx(kr,{to:"/app/profile",children:"Profile"}),t&&c.jsx(kr,{to:"/app/demos",children:"Démos"}),t&&c.jsx(kr,{to:"/app/premium",children:"Premium"}),t&&c.jsx(kr,{to:"/app/codes",children:"Codes"})]}),c.jsx(fa,{}),c.jsxs(me,{spacing:2,display:{base:"none",md:"flex"},children:[c.jsx(En,{colorScheme:u,children:l}),c.jsx(he,{as:"a",href:k2,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),c.jsx(pa,{}),c.jsx(he,{size:"sm",variant:"outline",onClick:s,children:"Déconnexion"})]}),c.jsxs(me,{spacing:1,display:{base:"flex",md:"none"},children:[c.jsx(En,{colorScheme:u,children:l}),c.jsx(pa,{}),c.jsx(Cn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:i,icon:c.jsx(Pse,{})})]})]}),c.jsxs(u5,{isOpen:o,placement:"right",onClose:a,size:"xs",children:[c.jsx(nl,{}),c.jsxs(sx,{bg:"chakra-body-bg",children:[c.jsx(Cu,{size:"lg"}),c.jsxs(tl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",t?"Espace admin":"Espace client"]}),c.jsxs(el,{py:6,children:[c.jsxs(Se,{as:"nav",spacing:1,children:[n&&c.jsx(kr,{to:"/app/subscription",onClick:a,mobile:!0,children:"Abonnement"}),t&&c.jsx(kr,{to:"/app/demos",onClick:a,mobile:!0,children:"Démos"}),t&&c.jsx(kr,{to:"/app/premium",onClick:a,mobile:!0,children:"Premium"}),t&&c.jsx(kr,{to:"/app/codes",onClick:a,mobile:!0,children:"Codes"}),(t||n)&&c.jsx(kr,{to:"/app/profile",onClick:a,mobile:!0,children:"Profile"})]}),c.jsx(qi,{my:6}),c.jsxs(Se,{spacing:3,children:[c.jsx(he,{as:"a",href:k2,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:a,children:"Support"}),c.jsx(he,{variant:"outline",justifyContent:"flex-start",onClick:s,children:"Déconnexion"})]})]})]})]}),c.jsx(mr,{maxW:"container.xl",py:8,children:c.jsx(mA,{})})]})}function kr({to:e,children:t,onClick:n,mobile:r=!1}){return c.jsx(he,{as:gA,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}const Tse=["/app/demos","/app/premium","/app/codes"];function Ese({children:e}){const{isAuthenticated:t,initializing:n}=bi(),r=Sa();if(n)return c.jsx(Zj,{h:"100vh",children:c.jsx(Tn,{})});if(t)return e;const o=Tse.some(i=>r.pathname.startsWith(i));return c.jsx(tu,{to:o?"/admin/login":"/login",replace:!0})}function cg({children:e}){const{isAdmin:t}=bi();return t?e:c.jsx(tu,{to:"/app/subscription",replace:!0})}function jse(){const{role:e}=bi();switch(e){case"admin":return c.jsx(tu,{to:"/app/demos",replace:!0});default:return c.jsx(tu,{to:"/app/subscription",replace:!0})}}function $se(){return c.jsxs(Ine,{children:[c.jsxs(Qt,{element:c.jsx(Cse,{}),children:[c.jsx(Qt,{path:"/",element:c.jsx(Kne,{})}),c.jsx(Qt,{path:"/tarifs",element:c.jsx(Yne,{})})]}),c.jsx(Qt,{path:"/login",element:c.jsx(ese,{})}),c.jsx(Qt,{path:"/admin/login",element:c.jsx(tse,{})}),c.jsx(Qt,{path:"/register",element:c.jsx(nse,{})}),c.jsxs(Qt,{path:"/app",element:c.jsx(Ese,{children:c.jsx(_se,{})}),children:[c.jsx(Qt,{index:!0,element:c.jsx(jse,{})}),c.jsx(Qt,{path:"demos",element:c.jsx(cg,{children:c.jsx(use,{})})}),c.jsx(Qt,{path:"codes",element:c.jsx(cg,{children:c.jsx(hse,{})})}),c.jsx(Qt,{path:"premium",element:c.jsx(cg,{children:c.jsx(pse,{})})}),c.jsx(Qt,{path:"subscription",element:c.jsx(gse,{})}),c.jsx(Qt,{path:"profile",element:c.jsx(xse,{})})]}),c.jsx(Qt,{path:"*",element:c.jsx(tu,{to:"/",replace:!0})})]})}const Ase={initialColorMode:"system",useSystemColorMode:!1},C2=Ob({config:Ase,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"}},semanticTokens:{colors:{"chakra-body-bg":{_light:"white",_dark:"#000000"},"chakra-subtle-bg":{_light:"gray.50",_dark:"#050508"},"bg-surface":{_light:"white",_dark:"#08080c"},"chakra-body-text":{_light:"gray.800",_dark:"#f5f5f7"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.100"}}},styles:{global:{body:{bg:"chakra-body-bg",color:"chakra-body-text"}}},components:{Card:{baseStyle:{container:{bg:"bg-surface",borderColor:"whiteAlpha.50"}}},Button:{baseStyle:{_dark:{bg:"gray.800",_hover:{bg:"gray.700"}}}},Input:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200",_focus:{borderColor:"whiteAlpha.400"}}}}},Select:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}}},Textarea:{baseStyle:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}},Modal:{baseStyle:{overlay:{_dark:{bg:"blackAlpha.800"}},content:{_dark:{bg:"#08080c"}}}}}},I5);dg.createRoot(document.getElementById("root")).render(c.jsxs(Rt.StrictMode,{children:[c.jsx(vH,{initialColorMode:C2.config.initialColorMode}),c.jsx(xee,{theme:C2,children:c.jsx(ere,{children:c.jsx(Fne,{children:c.jsx($se,{})})})})]}));
|