@stackloop/ui 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/DropdownMenu.d.ts +2 -0
- package/dist/FlagIcon.d.ts +7 -0
- package/dist/Toast.d.ts +2 -2
- package/dist/assets/ad-B18i8NGa.svg +150 -0
- package/dist/assets/ad-Blhdm5jl.svg +148 -0
- package/dist/assets/af-Bc2fqp73.svg +81 -0
- package/dist/assets/af-C77Rf6cE.svg +81 -0
- package/dist/assets/arab-C-KgnQEz.svg +109 -0
- package/dist/assets/arab-C4CYPgyC.svg +109 -0
- package/dist/assets/as-BTEVCXG-.svg +73 -0
- package/dist/assets/as-Dekqy8Of.svg +72 -0
- package/dist/assets/aw-CLCX8uk5.svg +186 -0
- package/dist/assets/aw-W0PWLK5p.svg +186 -0
- package/dist/assets/bm-BeYgB2z9.svg +97 -0
- package/dist/assets/bm-DvNWWcPM.svg +97 -0
- package/dist/assets/bn-B6T3O78g.svg +36 -0
- package/dist/assets/bn-CPQcA8Ol.svg +36 -0
- package/dist/assets/bo-CcUiMqkJ.svg +673 -0
- package/dist/assets/bo-Dry0C6UA.svg +674 -0
- package/dist/assets/br-Cu5YU29T.svg +45 -0
- package/dist/assets/br-Dr5rMAMb.svg +45 -0
- package/dist/assets/bt-BTo4qm10.svg +89 -0
- package/dist/assets/bt-SxWnbWW0.svg +89 -0
- package/dist/assets/bz-BCKHR4_q.svg +145 -0
- package/dist/assets/bz-CoBdB-p8.svg +145 -0
- package/dist/assets/cy-DJKnEFYW.svg +6 -0
- package/dist/assets/cy-bZuP8hmf.svg +6 -0
- package/dist/assets/dg-CJPJrjiZ.svg +130 -0
- package/dist/assets/dg-DqkWLbnk.svg +130 -0
- package/dist/assets/dm-Cbhezfe1.svg +152 -0
- package/dist/assets/dm-DPPHwW2M.svg +152 -0
- package/dist/assets/do-B86d445t.svg +121 -0
- package/dist/assets/do-DeRnbj4d.svg +122 -0
- package/dist/assets/eac-CwGQsyAM.svg +48 -0
- package/dist/assets/eac-h4QKADRE.svg +48 -0
- package/dist/assets/ec-CaVOFQ3t.svg +138 -0
- package/dist/assets/ec-cwfBJlvF.svg +138 -0
- package/dist/assets/eg-DwOkwyQ0.svg +38 -0
- package/dist/assets/eg-YC70hswZ.svg +38 -0
- package/dist/assets/es-BuSGTZm_.svg +547 -0
- package/dist/assets/es-d5m8M5h8.svg +544 -0
- package/dist/assets/es-ga-D9xG2hYr.svg +187 -0
- package/dist/assets/es-ga-DXhVZ333.svg +187 -0
- package/dist/assets/fj-DEAVMg38.svg +120 -0
- package/dist/assets/fj-u3dAPoew.svg +123 -0
- package/dist/assets/fk-B-RvQ4Hz.svg +89 -0
- package/dist/assets/fk-nuUF_Ak3.svg +90 -0
- package/dist/assets/gb-nir-D4gikpNq.svg +132 -0
- package/dist/assets/gb-nir-vEp1ZXy6.svg +131 -0
- package/dist/assets/gb-wls-Bxz9hxvX.svg +9 -0
- package/dist/assets/gb-wls-CK0XlKT-.svg +9 -0
- package/dist/assets/gq-CPnMO1hT.svg +23 -0
- package/dist/assets/gq-Cag8QTk2.svg +23 -0
- package/dist/assets/gs-DOgYbHsY.svg +132 -0
- package/dist/assets/gs-DiiNa0F5.svg +133 -0
- package/dist/assets/gt-BLpn5qMn.svg +204 -0
- package/dist/assets/gt-CJo5DI-7.svg +204 -0
- package/dist/assets/gu-Di1JYREk.svg +19 -0
- package/dist/assets/gu-SbvrH0uZ.svg +19 -0
- package/dist/assets/hr-BpiVVBoV.svg +56 -0
- package/dist/assets/hr-fzLfaANM.svg +58 -0
- package/dist/assets/ht-DIMg4gti.svg +116 -0
- package/dist/assets/ht-pweRl6ZP.svg +116 -0
- package/dist/assets/im--VPIqfkF.svg +36 -0
- package/dist/assets/im-Dd9p-0-T.svg +36 -0
- package/dist/assets/index-BRksxcuw.css +1 -0
- package/dist/assets/index-D_6GYxlS.js +17 -0
- package/dist/assets/io-13HOfeJD.svg +130 -0
- package/dist/assets/io-BImhNBcd.svg +130 -0
- package/dist/assets/ir-Q03Mij62.svg +219 -0
- package/dist/assets/ir-cCIgaNf6.svg +219 -0
- package/dist/assets/je-DyWbhIiC.svg +62 -0
- package/dist/assets/je-vXe0Dr49.svg +62 -0
- package/dist/assets/kg-B0FsxZiL.svg +4 -0
- package/dist/assets/kg-CjfitMyT.svg +4 -0
- package/dist/assets/kh-BBvObpUS.svg +61 -0
- package/dist/assets/kh-BeWfuE30.svg +61 -0
- package/dist/assets/ki-fuIMkEYQ.svg +36 -0
- package/dist/assets/ki-p_fAQGbS.svg +36 -0
- package/dist/assets/ky-BqaZHuhf.svg +103 -0
- package/dist/assets/ky-Dpsu1myA.svg +103 -0
- package/dist/assets/kz-CwKXYZ8s.svg +36 -0
- package/dist/assets/kz-Dkyx6q-p.svg +36 -0
- package/dist/assets/li-CHdhvNcr.svg +43 -0
- package/dist/assets/li-CMlf0YU8.svg +43 -0
- package/dist/assets/lk-DSQoDxn_.svg +22 -0
- package/dist/assets/lk-DUkgV9Tq.svg +22 -0
- package/dist/assets/md-DRlxvNwm.svg +70 -0
- package/dist/assets/md-DTi94M3M.svg +71 -0
- package/dist/assets/me-CfGorN3b.svg +118 -0
- package/dist/assets/me-Cv4Gwqah.svg +116 -0
- package/dist/assets/mp-CrOApEqW.svg +86 -0
- package/dist/assets/mp-CuaQmCLf.svg +86 -0
- package/dist/assets/ms-B-w7hFKu.svg +25 -0
- package/dist/assets/ms-DxciGbUu.svg +29 -0
- package/dist/assets/mt-YDa8zgzO.svg +56 -0
- package/dist/assets/mt-YqzKx9xl.svg +58 -0
- package/dist/assets/mx-Cc8Ccfe8.svg +382 -0
- package/dist/assets/mx-CvCwYHGF.svg +377 -0
- package/dist/assets/nf-DGrQb42O.svg +11 -0
- package/dist/assets/nf-Dl00mlk2.svg +9 -0
- package/dist/assets/ni-BX2WCaNt.svg +129 -0
- package/dist/assets/ni-CcFCSQxm.svg +129 -0
- package/dist/assets/om-DcqxRdQL.svg +115 -0
- package/dist/assets/om-nN8zP2Bu.svg +115 -0
- package/dist/assets/pn-BPAlH32D.svg +53 -0
- package/dist/assets/pn-DgxdtieE.svg +53 -0
- package/dist/assets/pt-BTevY6N2.svg +57 -0
- package/dist/assets/pt-DZ2ADgIR.svg +57 -0
- package/dist/assets/py-BKi5dxWt.svg +156 -0
- package/dist/assets/py-mNzh0mZC.svg +157 -0
- package/dist/assets/rs-BfwKwXtn.svg +292 -0
- package/dist/assets/rs-CnTO3ehk.svg +296 -0
- package/dist/assets/sa-Dh79zbT9.svg +25 -0
- package/dist/assets/sa-DnlyVVKx.svg +25 -0
- package/dist/assets/sh-ac-D-aE2xRW.svg +690 -0
- package/dist/assets/sh-ac-FjwY7RYr.svg +689 -0
- package/dist/assets/sh-hl-CgxUDvtv.svg +164 -0
- package/dist/assets/sh-hl-CqtQPzWZ.svg +164 -0
- package/dist/assets/sh-ta-BFo5zkKU.svg +76 -0
- package/dist/assets/sh-ta-CPJublpi.svg +76 -0
- package/dist/assets/sm-BKrUHzrq.svg +73 -0
- package/dist/assets/sm-DGBIRFB_.svg +75 -0
- package/dist/assets/sv-CJIHhYwF.svg +593 -0
- package/dist/assets/sv-RZ39q5hO.svg +593 -0
- package/dist/assets/sx-RKKs0ph6.svg +56 -0
- package/dist/assets/sx-nDhIaDNb.svg +56 -0
- package/dist/assets/sz-D39eIL5d.svg +34 -0
- package/dist/assets/sz-qxMwa2gs.svg +34 -0
- package/dist/assets/tc-CJHJmJj1.svg +50 -0
- package/dist/assets/tc-dtelpZmc.svg +50 -0
- package/dist/assets/tm-C_WSgUcv.svg +204 -0
- package/dist/assets/tm-DGBJvQay.svg +205 -0
- package/dist/assets/un-Bqg4Cbbh.svg +16 -0
- package/dist/assets/un-DabL4p35.svg +16 -0
- package/dist/assets/va-B9-hqIE-.svg +190 -0
- package/dist/assets/va-s7kyhqIM.svg +190 -0
- package/dist/assets/vg-C7xY6pic.svg +59 -0
- package/dist/assets/vg-ClZ-0KpG.svg +59 -0
- package/dist/assets/vi-BC_zcciE.svg +28 -0
- package/dist/assets/vi-BSdsyIxY.svg +28 -0
- package/dist/assets/xk-Bj15g7cp.svg +5 -0
- package/dist/assets/xk-Cdz2uTvR.svg +5 -0
- package/dist/assets/zm-BmsW91ne.svg +27 -0
- package/dist/assets/zm-D8B-0kdx.svg +27 -0
- package/dist/assets/zw-CSuuaw9K.svg +21 -0
- package/dist/assets/zw-U0m7oJ5e.svg +21 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.html +4 -4
- package/dist/index.js +1755 -1699
- package/dist/index.js.map +1 -1
- package/dist/stackloop-ui.css +1 -1
- package/package.json +2 -1
- package/dist/assets/index-B5bbIoAj.js +0 -17
- package/dist/assets/index-s9Mdf6_E.css +0 -1
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function l(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(d){if(d.ep)return;d.ep=!0;const h=l(d);fetch(d.href,h)}})();function f1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Cc={exports:{}},tl={};var sg;function h1(){if(sg)return tl;sg=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(r,d,h){var f=null;if(h!==void 0&&(f=""+h),d.key!==void 0&&(f=""+d.key),"key"in d){h={};for(var m in d)m!=="key"&&(h[m]=d[m])}else h=d;return d=h.ref,{$$typeof:a,type:r,key:f,ref:d!==void 0?d:null,props:h}}return tl.Fragment=i,tl.jsx=l,tl.jsxs=l,tl}var lg;function m1(){return lg||(lg=1,Cc.exports=h1()),Cc.exports}var c=m1(),jc={exports:{}},Se={};var rg;function p1(){if(rg)return Se;rg=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function T(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,_={};function z(C,G,ee){this.props=C,this.context=G,this.refs=_,this.updater=ee||M}z.prototype.isReactComponent={},z.prototype.setState=function(C,G){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,G,"setState")},z.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function B(){}B.prototype=z.prototype;function H(C,G,ee){this.props=C,this.context=G,this.refs=_,this.updater=ee||M}var F=H.prototype=new B;F.constructor=H,O(F,z.prototype),F.isPureReactComponent=!0;var U=Array.isArray;function W(){}var Q={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function te(C,G,ee){var ae=ee.ref;return{$$typeof:a,type:C,key:G,ref:ae!==void 0?ae:null,props:ee}}function J(C,G){return te(C.type,G,C.props)}function q(C){return typeof C=="object"&&C!==null&&C.$$typeof===a}function ie(C){var G={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ee){return G[ee]})}var le=/\/+/g;function oe(C,G){return typeof C=="object"&&C!==null&&C.key!=null?ie(""+C.key):G.toString(36)}function I(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(W,W):(C.status="pending",C.then(function(G){C.status==="pending"&&(C.status="fulfilled",C.value=G)},function(G){C.status==="pending"&&(C.status="rejected",C.reason=G)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function A(C,G,ee,ae,pe){var ye=typeof C;(ye==="undefined"||ye==="boolean")&&(C=null);var me=!1;if(C===null)me=!0;else switch(ye){case"bigint":case"string":case"number":me=!0;break;case"object":switch(C.$$typeof){case a:case i:me=!0;break;case b:return me=C._init,A(me(C._payload),G,ee,ae,pe)}}if(me)return pe=pe(C),me=ae===""?"."+oe(C,0):ae,U(pe)?(ee="",me!=null&&(ee=me.replace(le,"$&/")+"/"),A(pe,G,ee,"",function(We){return We})):pe!=null&&(q(pe)&&(pe=J(pe,ee+(pe.key==null||C&&C.key===pe.key?"":(""+pe.key).replace(le,"$&/")+"/")+me)),G.push(pe)),1;me=0;var Xe=ae===""?".":ae+":";if(U(C))for(var Te=0;Te<C.length;Te++)ae=C[Te],ye=Xe+oe(ae,Te),me+=A(ae,G,ee,ye,pe);else if(Te=T(C),typeof Te=="function")for(C=Te.call(C),Te=0;!(ae=C.next()).done;)ae=ae.value,ye=Xe+oe(ae,Te++),me+=A(ae,G,ee,ye,pe);else if(ye==="object"){if(typeof C.then=="function")return A(I(C),G,ee,ae,pe);throw G=String(C),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return me}function Y(C,G,ee){if(C==null)return C;var ae=[],pe=0;return A(C,ae,"","",function(ye){return G.call(ee,ye,pe++)}),ae}function E(C){if(C._status===-1){var G=C._result;G=G(),G.then(function(ee){(C._status===0||C._status===-1)&&(C._status=1,C._result=ee)},function(ee){(C._status===0||C._status===-1)&&(C._status=2,C._result=ee)}),C._status===-1&&(C._status=0,C._result=G)}if(C._status===1)return C._result.default;throw C._result}var re=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},se={map:Y,forEach:function(C,G,ee){Y(C,function(){G.apply(this,arguments)},ee)},count:function(C){var G=0;return Y(C,function(){G++}),G},toArray:function(C){return Y(C,function(G){return G})||[]},only:function(C){if(!q(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Se.Activity=x,Se.Children=se,Se.Component=z,Se.Fragment=l,Se.Profiler=d,Se.PureComponent=H,Se.StrictMode=r,Se.Suspense=g,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,Se.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Q.H.useMemoCache(C)}},Se.cache=function(C){return function(){return C.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(C,G,ee){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ae=O({},C.props),pe=C.key;if(G!=null)for(ye in G.key!==void 0&&(pe=""+G.key),G)!R.call(G,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&G.ref===void 0||(ae[ye]=G[ye]);var ye=arguments.length-2;if(ye===1)ae.children=ee;else if(1<ye){for(var me=Array(ye),Xe=0;Xe<ye;Xe++)me[Xe]=arguments[Xe+2];ae.children=me}return te(C.type,pe,ae)},Se.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:h,_context:C},C},Se.createElement=function(C,G,ee){var ae,pe={},ye=null;if(G!=null)for(ae in G.key!==void 0&&(ye=""+G.key),G)R.call(G,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(pe[ae]=G[ae]);var me=arguments.length-2;if(me===1)pe.children=ee;else if(1<me){for(var Xe=Array(me),Te=0;Te<me;Te++)Xe[Te]=arguments[Te+2];pe.children=Xe}if(C&&C.defaultProps)for(ae in me=C.defaultProps,me)pe[ae]===void 0&&(pe[ae]=me[ae]);return te(C,ye,pe)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(C){return{$$typeof:m,render:C}},Se.isValidElement=q,Se.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:E}},Se.memo=function(C,G){return{$$typeof:p,type:C,compare:G===void 0?null:G}},Se.startTransition=function(C){var G=Q.T,ee={};Q.T=ee;try{var ae=C(),pe=Q.S;pe!==null&&pe(ee,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(W,re)}catch(ye){re(ye)}finally{G!==null&&ee.types!==null&&(G.types=ee.types),Q.T=G}},Se.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},Se.use=function(C){return Q.H.use(C)},Se.useActionState=function(C,G,ee){return Q.H.useActionState(C,G,ee)},Se.useCallback=function(C,G){return Q.H.useCallback(C,G)},Se.useContext=function(C){return Q.H.useContext(C)},Se.useDebugValue=function(){},Se.useDeferredValue=function(C,G){return Q.H.useDeferredValue(C,G)},Se.useEffect=function(C,G){return Q.H.useEffect(C,G)},Se.useEffectEvent=function(C){return Q.H.useEffectEvent(C)},Se.useId=function(){return Q.H.useId()},Se.useImperativeHandle=function(C,G,ee){return Q.H.useImperativeHandle(C,G,ee)},Se.useInsertionEffect=function(C,G){return Q.H.useInsertionEffect(C,G)},Se.useLayoutEffect=function(C,G){return Q.H.useLayoutEffect(C,G)},Se.useMemo=function(C,G){return Q.H.useMemo(C,G)},Se.useOptimistic=function(C,G){return Q.H.useOptimistic(C,G)},Se.useReducer=function(C,G,ee){return Q.H.useReducer(C,G,ee)},Se.useRef=function(C){return Q.H.useRef(C)},Se.useState=function(C){return Q.H.useState(C)},Se.useSyncExternalStore=function(C,G,ee){return Q.H.useSyncExternalStore(C,G,ee)},Se.useTransition=function(){return Q.H.useTransition()},Se.version="19.2.1",Se}var og;function Cd(){return og||(og=1,jc.exports=p1()),jc.exports}var w=Cd();const pn=f1(w);var Tc={exports:{}},nl={},Nc={exports:{}},Ac={};var ug;function g1(){return ug||(ug=1,(function(a){function i(A,Y){var E=A.length;A.push(Y);e:for(;0<E;){var re=E-1>>>1,se=A[re];if(0<d(se,Y))A[re]=Y,A[E]=se,E=re;else break e}}function l(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var Y=A[0],E=A.pop();if(E!==Y){A[0]=E;e:for(var re=0,se=A.length,C=se>>>1;re<C;){var G=2*(re+1)-1,ee=A[G],ae=G+1,pe=A[ae];if(0>d(ee,E))ae<se&&0>d(pe,ee)?(A[re]=pe,A[ae]=E,re=ae):(A[re]=ee,A[G]=E,re=G);else if(ae<se&&0>d(pe,E))A[re]=pe,A[ae]=E,re=ae;else break e}}return Y}function d(A,Y){var E=A.sortIndex-Y.sortIndex;return E!==0?E:A.id-Y.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var f=Date,m=f.now();a.unstable_now=function(){return f.now()-m}}var g=[],p=[],b=1,x=null,S=3,T=!1,M=!1,O=!1,_=!1,z=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function F(A){for(var Y=l(p);Y!==null;){if(Y.callback===null)r(p);else if(Y.startTime<=A)r(p),Y.sortIndex=Y.expirationTime,i(g,Y);else break;Y=l(p)}}function U(A){if(O=!1,F(A),!M)if(l(g)!==null)M=!0,W||(W=!0,ie());else{var Y=l(p);Y!==null&&I(U,Y.startTime-A)}}var W=!1,Q=-1,R=5,te=-1;function J(){return _?!0:!(a.unstable_now()-te<R)}function q(){if(_=!1,W){var A=a.unstable_now();te=A;var Y=!0;try{e:{M=!1,O&&(O=!1,B(Q),Q=-1),T=!0;var E=S;try{t:{for(F(A),x=l(g);x!==null&&!(x.expirationTime>A&&J());){var re=x.callback;if(typeof re=="function"){x.callback=null,S=x.priorityLevel;var se=re(x.expirationTime<=A);if(A=a.unstable_now(),typeof se=="function"){x.callback=se,F(A),Y=!0;break t}x===l(g)&&r(g),F(A)}else r(g);x=l(g)}if(x!==null)Y=!0;else{var C=l(p);C!==null&&I(U,C.startTime-A),Y=!1}}break e}finally{x=null,S=E,T=!1}Y=void 0}}finally{Y?ie():W=!1}}}var ie;if(typeof H=="function")ie=function(){H(q)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,oe=le.port2;le.port1.onmessage=q,ie=function(){oe.postMessage(null)}}else ie=function(){z(q,0)};function I(A,Y){Q=z(function(){A(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(A){A.callback=null},a.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(A){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var E=S;S=Y;try{return A()}finally{S=E}},a.unstable_requestPaint=function(){_=!0},a.unstable_runWithPriority=function(A,Y){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var E=S;S=A;try{return Y()}finally{S=E}},a.unstable_scheduleCallback=function(A,Y,E){var re=a.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?re+E:re):E=re,A){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=E+se,A={id:b++,callback:Y,priorityLevel:A,startTime:E,expirationTime:se,sortIndex:-1},E>re?(A.sortIndex=E,i(p,A),l(g)===null&&A===l(p)&&(O?(B(Q),Q=-1):O=!0,I(U,E-re))):(A.sortIndex=se,i(g,A),M||T||(M=!0,W||(W=!0,ie()))),A},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(A){var Y=S;return function(){var E=S;S=Y;try{return A.apply(this,arguments)}finally{S=E}}}})(Ac)),Ac}var cg;function y1(){return cg||(cg=1,Nc.exports=g1()),Nc.exports}var Mc={exports:{}},Et={};var dg;function b1(){if(dg)return Et;dg=1;var a=Cd();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(g,p,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:g,containerInfo:p,implementation:b}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Et.createPortal=function(g,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return h(g,p,null,b)},Et.flushSync=function(g){var p=f.T,b=r.p;try{if(f.T=null,r.p=2,g)return g()}finally{f.T=p,r.p=b,r.d.f()}},Et.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(g,p))},Et.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},Et.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,x=m(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?r.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:T}):b==="script"&&r.d.X(g,{crossOrigin:x,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Et.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=m(p.as,p.crossOrigin);r.d.M(g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(g)},Et.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,x=m(b,p.crossOrigin);r.d.L(g,b,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Et.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=m(p.as,p.crossOrigin);r.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(g)},Et.requestFormReset=function(g){r.d.r(g)},Et.unstable_batchedUpdates=function(g,p){return g(p)},Et.useFormState=function(g,p,b){return f.H.useFormState(g,p,b)},Et.useFormStatus=function(){return f.H.useHostTransitionStatus()},Et.version="19.2.1",Et}var fg;function Uy(){if(fg)return Mc.exports;fg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Mc.exports=b1(),Mc.exports}var hg;function x1(){if(hg)return nl;hg=1;var a=y1(),i=Cd(),l=Uy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function f(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(h(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,s=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return g(o),e;if(u===s)return g(o),t;u=u.sibling}throw Error(r(188))}if(n.return!==s.return)n=o,s=u;else{for(var y=!1,v=o.child;v;){if(v===n){y=!0,n=o,s=u;break}if(v===s){y=!0,s=o,n=u;break}v=v.sibling}if(!y){for(v=u.child;v;){if(v===n){y=!0,n=u,s=o;break}if(v===s){y=!0,s=u,n=o;break}v=v.sibling}if(!y)throw Error(r(189))}}if(n.alternate!==s)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),H=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case U:return"Suspense";case W:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case H:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var I=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E={pending:!1,data:null,method:null,action:null},re=[],se=-1;function C(e){return{current:e}}function G(e){0>se||(e.current=re[se],re[se]=null,se--)}function ee(e,t){se++,re[se]=e.current,e.current=t}var ae=C(null),pe=C(null),ye=C(null),me=C(null);function Xe(e,t){switch(ee(ye,t),ee(pe,e),ee(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mp(t),e=Ep(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ae),ee(ae,e)}function Te(){G(ae),G(pe),G(ye)}function We(e){e.memoizedState!==null&&ee(me,e);var t=ae.current,n=Ep(t,e.type);t!==n&&(ee(pe,e),ee(ae,n))}function nt(e){pe.current===e&&(G(ae),G(pe)),me.current===e&&(G(me),Ws._currentValue=E)}var Ze,kt;function at(e){if(Ze===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ze=t&&t[1]||"",kt=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ze+e+kt}var wt=!1;function xt(e,t){if(!e||wt)return"";wt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(X){var L=X}Reflect.construct(e,[],$)}else{try{$.call()}catch(X){L=X}e.call($.prototype)}}else{try{throw Error()}catch(X){L=X}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(X){if(X&&L&&typeof X.stack=="string")return[X.stack,L.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),y=u[0],v=u[1];if(y&&v){var j=y.split(`
|
|
4
|
+
`),V=v.split(`
|
|
5
|
+
`);for(o=s=0;s<j.length&&!j[s].includes("DetermineComponentFrameRoot");)s++;for(;o<V.length&&!V[o].includes("DetermineComponentFrameRoot");)o++;if(s===j.length||o===V.length)for(s=j.length-1,o=V.length-1;1<=s&&0<=o&&j[s]!==V[o];)o--;for(;1<=s&&0<=o;s--,o--)if(j[s]!==V[o]){if(s!==1||o!==1)do if(s--,o--,0>o||j[s]!==V[o]){var Z=`
|
|
6
|
+
`+j[s].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=s&&0<=o);break}}}finally{wt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?at(n):""}function Ne(e,t){switch(e.tag){case 26:case 27:case 5:return at(e.type);case 16:return at("Lazy");case 13:return e.child!==t&&t!==null?at("Suspense Fallback"):at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return xt(e.type,!1);case 11:return xt(e.type.render,!1);case 1:return xt(e.type,!0);case 31:return at("Activity");default:return""}}function Vt(e){try{var t="",n=null;do t+=Ne(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
|
|
7
|
+
Error generating stack: `+s.message+`
|
|
8
|
+
`+s.stack}}var ne=Object.prototype.hasOwnProperty,be=a.unstable_scheduleCallback,ze=a.unstable_cancelCallback,Tn=a.unstable_shouldYield,_t=a.unstable_requestPaint,$e=a.unstable_now,tn=a.unstable_getCurrentPriorityLevel,Nn=a.unstable_ImmediatePriority,ls=a.unstable_UserBlockingPriority,rs=a.unstable_NormalPriority,uo=a.unstable_LowPriority,os=a.unstable_IdlePriority,Jb=a.log,Pb=a.unstable_setDisableYieldValue,us=null,Qt=null;function na(e){if(typeof Jb=="function"&&Pb(e),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(us,e)}catch{}}var Zt=Math.clz32?Math.clz32:$b,Fb=Math.log,Wb=Math.LN2;function $b(e){return e>>>=0,e===0?32:31-(Fb(e)/Wb|0)|0}var Sl=256,wl=262144,Cl=4194304;function Oa(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function jl(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var o=0,u=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=s&134217727;return v!==0?(s=v&~u,s!==0?o=Oa(s):(y&=v,y!==0?o=Oa(y):n||(n=v&~e,n!==0&&(o=Oa(n))))):(v=s&~u,v!==0?o=Oa(v):y!==0?o=Oa(y):n||(n=s&~e,n!==0&&(o=Oa(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function cs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ib(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uf(){var e=Cl;return Cl<<=1,(Cl&62914560)===0&&(Cl=4194304),e}function co(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ds(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ex(e,t,n,s,o,u){var y=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,j=e.expirationTimes,V=e.hiddenUpdates;for(n=y&~n;0<n;){var Z=31-Zt(n),$=1<<Z;v[Z]=0,j[Z]=-1;var L=V[Z];if(L!==null)for(V[Z]=null,Z=0;Z<L.length;Z++){var X=L[Z];X!==null&&(X.lane&=-536870913)}n&=~$}s!==0&&cf(e,s,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(y&~t))}function cf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Zt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function df(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Zt(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}function ff(e,t){var n=t&-t;return n=(n&42)!==0?1:fo(n),(n&(e.suspendedLanes|t))!==0?0:n}function fo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ho(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hf(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:$p(e.type))}function mf(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var aa=Math.random().toString(36).slice(2),Ct="__reactFiber$"+aa,Bt="__reactProps$"+aa,ri="__reactContainer$"+aa,mo="__reactEvents$"+aa,tx="__reactListeners$"+aa,nx="__reactHandles$"+aa,pf="__reactResources$"+aa,fs="__reactMarker$"+aa;function po(e){delete e[Ct],delete e[Bt],delete e[mo],delete e[tx],delete e[nx]}function oi(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ri]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_p(e);e!==null;){if(n=e[Ct])return n;e=_p(e)}return t}e=n,n=e.parentNode}return null}function ui(e){if(e=e[Ct]||e[ri]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function hs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ci(e){var t=e[pf];return t||(t=e[pf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vt(e){e[fs]=!0}var gf=new Set,yf={};function ka(e,t){di(e,t),di(e+"Capture",t)}function di(e,t){for(yf[e]=t,e=0;e<t.length;e++)gf.add(t[e])}var ax=RegExp("^[: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]*$"),bf={},xf={};function ix(e){return ne.call(xf,e)?!0:ne.call(bf,e)?!1:ax.test(e)?xf[e]=!0:(bf[e]=!0,!1)}function Tl(e,t,n){if(ix(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Nl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function kn(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sx(e,t,n){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(y){n=""+y,u.call(this,y)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(y){n=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function go(e){if(!e._valueTracker){var t=vf(e)?"checked":"value";e._valueTracker=sx(e,t,""+e[t])}}function Sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=vf(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Al(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}}var lx=/[\n"\\]/g;function an(e){return e.replace(lx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yo(e,t,n,s,o,u,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?bo(e,y,nn(t)):n!=null?bo(e,y,nn(n)):s!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+nn(v):e.removeAttribute("name")}function wf(e,t,n,s,o,u,y,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){go(e);return}n=n!=null?""+nn(n):"",t=t!=null?""+nn(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=v?e.checked:!!s,e.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),go(e)}function bo(e,t,n){t==="number"&&Al(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function fi(e,t,n,s){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&&s&&(e[n].defaultSelected=!0)}else{for(n=""+nn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cf(e,t,n){if(t!=null&&(t=""+nn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+nn(n):""}function jf(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(r(92));if(I(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=nn(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),go(e)}function hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tf(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||rx.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Nf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&n[o]!==s&&Tf(e,o,s)}else for(var u in t)t.hasOwnProperty(u)&&Tf(e,u,t[u])}function xo(e){if(e.indexOf("-")===-1)return!1;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 ox=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ux=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ml(e){return ux.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Vn(){}var vo=null;function So(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,pi=null;function Af(e){var t=ui(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(yo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+an(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=s[Bt]||null;if(!o)throw Error(r(90));yo(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&Sf(s)}break e;case"textarea":Cf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&fi(e,!!n.multiple,t,!1)}}}var wo=!1;function Mf(e,t,n){if(wo)return e(t,n);wo=!0;try{var s=e(t);return s}finally{if(wo=!1,(mi!==null||pi!==null)&&(pr(),mi&&(t=mi,e=pi,pi=mi=null,Af(t),e)))for(t=0;t<e.length;t++)Af(e[t])}}function ms(e,t){var n=e.stateNode;if(n===null)return null;var s=n[Bt]||null;if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Co=!1;if(_n)try{var ps={};Object.defineProperty(ps,"passive",{get:function(){Co=!0}}),window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{Co=!1}var ia=null,jo=null,El=null;function Ef(){if(El)return El;var e,t=jo,n=t.length,s,o="value"in ia?ia.value:ia.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var y=n-e;for(s=1;s<=y&&t[n-s]===o[u-s];s++);return El=o.slice(e,1<s?1-s:void 0)}function Dl(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 Rl(){return!0}function Df(){return!1}function Lt(e){function t(n,s,o,u,y){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=u,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Rl:Df,this.isPropagationStopped=Df,this}return x(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=Rl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rl)},persist:function(){},isPersistent:Rl}),t}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zl=Lt(Va),gs=x({},Va,{view:0,detail:0}),cx=Lt(gs),To,No,ys,Ol=x({},gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,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!==ys&&(ys&&e.type==="mousemove"?(To=e.screenX-ys.screenX,No=e.screenY-ys.screenY):No=To=0,ys=e),To)},movementY:function(e){return"movementY"in e?e.movementY:No}}),Rf=Lt(Ol),dx=x({},Ol,{dataTransfer:0}),fx=Lt(dx),hx=x({},gs,{relatedTarget:0}),Ao=Lt(hx),mx=x({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),px=Lt(mx),gx=x({},Va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yx=Lt(gx),bx=x({},Va,{data:0}),zf=Lt(bx),xx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vx={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"},Sx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sx[e])?!!t[e]:!1}function Mo(){return wx}var Cx=x({},gs,{key:function(e){if(e.key){var t=xx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?Dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jx=Lt(Cx),Tx=x({},Ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=Lt(Tx),Nx=x({},gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),Ax=Lt(Nx),Mx=x({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ex=Lt(Mx),Dx=x({},Ol,{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}),Rx=Lt(Dx),zx=x({},Va,{newState:0,oldState:0}),Ox=Lt(zx),kx=[9,13,27,32],Eo=_n&&"CompositionEvent"in window,bs=null;_n&&"documentMode"in document&&(bs=document.documentMode);var Vx=_n&&"TextEvent"in window&&!bs,kf=_n&&(!Eo||bs&&8<bs&&11>=bs),Vf=" ",_f=!1;function Bf(e,t){switch(e){case"keyup":return kx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gi=!1;function _x(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(_f=!0,Vf);case"textInput":return e=t.data,e===Vf&&_f?null:e;default:return null}}function Bx(e,t){if(gi)return e==="compositionend"||!Eo&&Bf(e,t)?(e=Ef(),El=jo=ia=null,gi=!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 kf&&t.locale!=="ko"?null:t.data;default:return null}}var Lx={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 Uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lx[e.type]:t==="textarea"}function Hf(e,t,n,s){mi?pi?pi.push(s):pi=[s]:mi=s,t=wr(t,"onChange"),0<t.length&&(n=new zl("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var xs=null,vs=null;function Ux(e){wp(e,0)}function kl(e){var t=hs(e);if(Sf(t))return e}function Gf(e,t){if(e==="change")return t}var Yf=!1;if(_n){var Do;if(_n){var Ro="oninput"in document;if(!Ro){var qf=document.createElement("div");qf.setAttribute("oninput","return;"),Ro=typeof qf.oninput=="function"}Do=Ro}else Do=!1;Yf=Do&&(!document.documentMode||9<document.documentMode)}function Xf(){xs&&(xs.detachEvent("onpropertychange",Kf),vs=xs=null)}function Kf(e){if(e.propertyName==="value"&&kl(vs)){var t=[];Hf(t,vs,e,So(e)),Mf(Ux,t)}}function Hx(e,t,n){e==="focusin"?(Xf(),xs=t,vs=n,xs.attachEvent("onpropertychange",Kf)):e==="focusout"&&Xf()}function Gx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kl(vs)}function Yx(e,t){if(e==="click")return kl(t)}function qx(e,t){if(e==="input"||e==="change")return kl(t)}function Xx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:Xx;function Ss(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var o=n[s];if(!ne.call(t,o)||!Jt(e[o],t[o]))return!1}return!0}function Qf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zf(e,t){var n=Qf(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qf(n)}}function Jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Al(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Al(e.document)}return t}function zo(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")}var Kx=_n&&"documentMode"in document&&11>=document.documentMode,yi=null,Oo=null,ws=null,ko=!1;function Ff(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ko||yi==null||yi!==Al(s)||(s=yi,"selectionStart"in s&&zo(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ws&&Ss(ws,s)||(ws=s,s=wr(Oo,"onSelect"),0<s.length&&(t=new zl("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=yi)))}function _a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bi={animationend:_a("Animation","AnimationEnd"),animationiteration:_a("Animation","AnimationIteration"),animationstart:_a("Animation","AnimationStart"),transitionrun:_a("Transition","TransitionRun"),transitionstart:_a("Transition","TransitionStart"),transitioncancel:_a("Transition","TransitionCancel"),transitionend:_a("Transition","TransitionEnd")},Vo={},Wf={};_n&&(Wf=document.createElement("div").style,"AnimationEvent"in window||(delete bi.animationend.animation,delete bi.animationiteration.animation,delete bi.animationstart.animation),"TransitionEvent"in window||delete bi.transitionend.transition);function Ba(e){if(Vo[e])return Vo[e];if(!bi[e])return e;var t=bi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wf)return Vo[e]=t[n];return e}var $f=Ba("animationend"),If=Ba("animationiteration"),eh=Ba("animationstart"),Qx=Ba("transitionrun"),Zx=Ba("transitionstart"),Jx=Ba("transitioncancel"),th=Ba("transitionend"),nh=new Map,_o="abort auxClick beforeToggle 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(" ");_o.push("scrollEnd");function bn(e,t){nh.set(e,t),ka(t,[e])}var Vl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},sn=[],xi=0,Bo=0;function _l(){for(var e=xi,t=Bo=xi=0;t<e;){var n=sn[t];sn[t++]=null;var s=sn[t];sn[t++]=null;var o=sn[t];sn[t++]=null;var u=sn[t];if(sn[t++]=null,s!==null&&o!==null){var y=s.pending;y===null?o.next=o:(o.next=y.next,y.next=o),s.pending=o}u!==0&&ah(n,o,u)}}function Bl(e,t,n,s){sn[xi++]=e,sn[xi++]=t,sn[xi++]=n,sn[xi++]=s,Bo|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Lo(e,t,n,s){return Bl(e,t,n,s),Ll(e)}function La(e,t){return Bl(e,null,null,t),Ll(e)}function ah(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-Zt(n),e=u.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=n|536870912),u):null}function Ll(e){if(50<Xs)throw Xs=0,Zu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vi={};function Px(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,s){return new Px(e,t,n,s)}function Uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bn(e,t){var n=e.alternate;return n===null?(n=Pt(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&65011712,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.refCleanup=e.refCleanup,n}function ih(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ul(e,t,n,s,o,u){var y=0;if(s=e,typeof e=="function")Uo(e)&&(y=1);else if(typeof e=="string")y=e1(e,n,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Pt(31,n,t,o),e.elementType=te,e.lanes=u,e;case O:return Ua(n.children,o,u,t);case _:y=8,o|=24;break;case z:return e=Pt(12,n,t,o|2),e.elementType=z,e.lanes=u,e;case U:return e=Pt(13,n,t,o),e.elementType=U,e.lanes=u,e;case W:return e=Pt(19,n,t,o),e.elementType=W,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:y=10;break e;case B:y=9;break e;case F:y=11;break e;case Q:y=14;break e;case R:y=16,s=null;break e}y=29,n=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=Pt(y,n,t,o),t.elementType=e,t.type=s,t.lanes=u,t}function Ua(e,t,n,s){return e=Pt(7,e,s,t),e.lanes=n,e}function Ho(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function sh(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Go(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var lh=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var n=lh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Vt(t)},lh.set(e,t),t)}return{value:e,source:t,stack:Vt(t)}}var Si=[],wi=0,Hl=null,Cs=0,rn=[],on=0,sa=null,An=1,Mn="";function Ln(e,t){Si[wi++]=Cs,Si[wi++]=Hl,Hl=e,Cs=t}function rh(e,t,n){rn[on++]=An,rn[on++]=Mn,rn[on++]=sa,sa=e;var s=An;e=Mn;var o=32-Zt(s)-1;s&=~(1<<o),n+=1;var u=32-Zt(t)+o;if(30<u){var y=o-o%5;u=(s&(1<<y)-1).toString(32),s>>=y,o-=y,An=1<<32-Zt(t)+o|n<<o|s,Mn=u+e}else An=1<<u|n<<o|s,Mn=e}function Yo(e){e.return!==null&&(Ln(e,1),rh(e,1,0))}function qo(e){for(;e===Hl;)Hl=Si[--wi],Si[wi]=null,Cs=Si[--wi],Si[wi]=null;for(;e===sa;)sa=rn[--on],rn[on]=null,Mn=rn[--on],rn[on]=null,An=rn[--on],rn[on]=null}function oh(e,t){rn[on++]=An,rn[on++]=Mn,rn[on++]=sa,An=t.id,Mn=t.overflow,sa=e}var jt=null,Ke=null,Re=!1,la=null,un=!1,Xo=Error(r(519));function ra(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw js(ln(t,e)),Xo}function uh(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[Ct]=e,t[Bt]=s,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Qs.length;n++)Me(Qs[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),wf(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),jf(t,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||Np(t.textContent,n)?(s.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),s.onScroll!=null&&Me("scroll",t),s.onScrollEnd!=null&&Me("scrollend",t),s.onClick!=null&&(t.onclick=Vn),t=!0):t=!1,t||ra(e,!0)}function ch(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:jt=jt.return}}function Ci(e){if(e!==jt)return!1;if(!Re)return ch(e),Re=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||oc(e.type,e.memoizedProps)),n=!n),n&&Ke&&ra(e),ch(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ke=Vp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ke=Vp(e)}else t===27?(t=Ke,Sa(e.type)?(e=hc,hc=null,Ke=e):Ke=t):Ke=jt?dn(e.stateNode.nextSibling):null;return!0}function Ha(){Ke=jt=null,Re=!1}function Ko(){var e=la;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),la=null),e}function js(e){la===null?la=[e]:la.push(e)}var Qo=C(null),Ga=null,Un=null;function oa(e,t,n){ee(Qo,t._currentValue),t._currentValue=n}function Hn(e){e._currentValue=Qo.current,G(Qo)}function Zo(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Jo(e,t,n,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var y=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var j=0;j<t.length;j++)if(v.context===t[j]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),Zo(u.return,n,e),s||(y=null);break e}u=v.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(r(341));y.lanes|=n,u=y.alternate,u!==null&&(u.lanes|=n),Zo(y,n,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function ji(e,t,n,s){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var v=o.type;Jt(o.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(o===me.current){if(y=o.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ws):e=[Ws])}o=o.return}e!==null&&Jo(t,e,n,s),t.flags|=262144}function Gl(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ya(e){Ga=e,Un=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return dh(Ga,e)}function Yl(e,t){return Ga===null&&Ya(e),dh(e,t)}function dh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Un===null){if(e===null)throw Error(r(308));Un=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Un=Un.next=t;return n}var Fx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Wx=a.unstable_scheduleCallback,$x=a.unstable_NormalPriority,lt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new Fx,data:new Map,refCount:0}}function Ts(e){e.refCount--,e.refCount===0&&Wx($x,function(){e.controller.abort()})}var Ns=null,Fo=0,Ti=0,Ni=null;function Ix(e,t){if(Ns===null){var n=Ns=[];Fo=0,Ti=Iu(),Ni={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Fo++,t.then(fh,fh),t}function fh(){if(--Fo===0&&Ns!==null){Ni!==null&&(Ni.status="fulfilled");var e=Ns;Ns=null,Ti=0,Ni=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ev(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),s}var hh=A.S;A.S=function(e,t){Fm=$e(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ix(e,t),hh!==null&&hh(e,t)};var qa=C(null);function Wo(){var e=qa.current;return e!==null?e:qe.pooledCache}function ql(e,t){t===null?ee(qa,qa.current):ee(qa,t.pool)}function mh(){var e=Wo();return e===null?null:{parent:lt._currentValue,pool:e}}var Ai=Error(r(460)),$o=Error(r(474)),Xl=Error(r(542)),Kl={then:function(){}};function ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Vn,Vn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bh(e),e;default:if(typeof t.status=="string")t.then(Vn,Vn);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bh(e),e}throw Ka=t,Ai}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ka=n,Ai):n}}var Ka=null;function yh(){if(Ka===null)throw Error(r(459));var e=Ka;return Ka=null,e}function bh(e){if(e===Ai||e===Xl)throw Error(r(483))}var Mi=null,As=0;function Ql(e){var t=As;return As+=1,Mi===null&&(Mi=[]),gh(Mi,e,t)}function Ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zl(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xh(e){function t(D,N){if(e){var k=D.deletions;k===null?(D.deletions=[N],D.flags|=16):k.push(N)}}function n(D,N){if(!e)return null;for(;N!==null;)t(D,N),N=N.sibling;return null}function s(D){for(var N=new Map;D!==null;)D.key!==null?N.set(D.key,D):N.set(D.index,D),D=D.sibling;return N}function o(D,N){return D=Bn(D,N),D.index=0,D.sibling=null,D}function u(D,N,k){return D.index=k,e?(k=D.alternate,k!==null?(k=k.index,k<N?(D.flags|=67108866,N):k):(D.flags|=67108866,N)):(D.flags|=1048576,N)}function y(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function v(D,N,k,P){return N===null||N.tag!==6?(N=Ho(k,D.mode,P),N.return=D,N):(N=o(N,k),N.return=D,N)}function j(D,N,k,P){var ge=k.type;return ge===O?Z(D,N,k.props.children,P,k.key):N!==null&&(N.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===R&&Xa(ge)===N.type)?(N=o(N,k.props),Ms(N,k),N.return=D,N):(N=Ul(k.type,k.key,k.props,null,D.mode,P),Ms(N,k),N.return=D,N)}function V(D,N,k,P){return N===null||N.tag!==4||N.stateNode.containerInfo!==k.containerInfo||N.stateNode.implementation!==k.implementation?(N=Go(k,D.mode,P),N.return=D,N):(N=o(N,k.children||[]),N.return=D,N)}function Z(D,N,k,P,ge){return N===null||N.tag!==7?(N=Ua(k,D.mode,P,ge),N.return=D,N):(N=o(N,k),N.return=D,N)}function $(D,N,k){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Ho(""+N,D.mode,k),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case T:return k=Ul(N.type,N.key,N.props,null,D.mode,k),Ms(k,N),k.return=D,k;case M:return N=Go(N,D.mode,k),N.return=D,N;case R:return N=Xa(N),$(D,N,k)}if(I(N)||ie(N))return N=Ua(N,D.mode,k,null),N.return=D,N;if(typeof N.then=="function")return $(D,Ql(N),k);if(N.$$typeof===H)return $(D,Yl(D,N),k);Zl(D,N)}return null}function L(D,N,k,P){var ge=N!==null?N.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ge!==null?null:v(D,N,""+k,P);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case T:return k.key===ge?j(D,N,k,P):null;case M:return k.key===ge?V(D,N,k,P):null;case R:return k=Xa(k),L(D,N,k,P)}if(I(k)||ie(k))return ge!==null?null:Z(D,N,k,P,null);if(typeof k.then=="function")return L(D,N,Ql(k),P);if(k.$$typeof===H)return L(D,N,Yl(D,k),P);Zl(D,k)}return null}function X(D,N,k,P,ge){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return D=D.get(k)||null,v(N,D,""+P,ge);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case T:return D=D.get(P.key===null?k:P.key)||null,j(N,D,P,ge);case M:return D=D.get(P.key===null?k:P.key)||null,V(N,D,P,ge);case R:return P=Xa(P),X(D,N,k,P,ge)}if(I(P)||ie(P))return D=D.get(k)||null,Z(N,D,P,ge,null);if(typeof P.then=="function")return X(D,N,k,Ql(P),ge);if(P.$$typeof===H)return X(D,N,k,Yl(N,P),ge);Zl(N,P)}return null}function ce(D,N,k,P){for(var ge=null,Oe=null,he=N,Ce=N=0,De=null;he!==null&&Ce<k.length;Ce++){he.index>Ce?(De=he,he=null):De=he.sibling;var ke=L(D,he,k[Ce],P);if(ke===null){he===null&&(he=De);break}e&&he&&ke.alternate===null&&t(D,he),N=u(ke,N,Ce),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke,he=De}if(Ce===k.length)return n(D,he),Re&&Ln(D,Ce),ge;if(he===null){for(;Ce<k.length;Ce++)he=$(D,k[Ce],P),he!==null&&(N=u(he,N,Ce),Oe===null?ge=he:Oe.sibling=he,Oe=he);return Re&&Ln(D,Ce),ge}for(he=s(he);Ce<k.length;Ce++)De=X(he,D,Ce,k[Ce],P),De!==null&&(e&&De.alternate!==null&&he.delete(De.key===null?Ce:De.key),N=u(De,N,Ce),Oe===null?ge=De:Oe.sibling=De,Oe=De);return e&&he.forEach(function(Na){return t(D,Na)}),Re&&Ln(D,Ce),ge}function xe(D,N,k,P){if(k==null)throw Error(r(151));for(var ge=null,Oe=null,he=N,Ce=N=0,De=null,ke=k.next();he!==null&&!ke.done;Ce++,ke=k.next()){he.index>Ce?(De=he,he=null):De=he.sibling;var Na=L(D,he,ke.value,P);if(Na===null){he===null&&(he=De);break}e&&he&&Na.alternate===null&&t(D,he),N=u(Na,N,Ce),Oe===null?ge=Na:Oe.sibling=Na,Oe=Na,he=De}if(ke.done)return n(D,he),Re&&Ln(D,Ce),ge;if(he===null){for(;!ke.done;Ce++,ke=k.next())ke=$(D,ke.value,P),ke!==null&&(N=u(ke,N,Ce),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke);return Re&&Ln(D,Ce),ge}for(he=s(he);!ke.done;Ce++,ke=k.next())ke=X(he,D,Ce,ke.value,P),ke!==null&&(e&&ke.alternate!==null&&he.delete(ke.key===null?Ce:ke.key),N=u(ke,N,Ce),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke);return e&&he.forEach(function(d1){return t(D,d1)}),Re&&Ln(D,Ce),ge}function Ge(D,N,k,P){if(typeof k=="object"&&k!==null&&k.type===O&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case T:e:{for(var ge=k.key;N!==null;){if(N.key===ge){if(ge=k.type,ge===O){if(N.tag===7){n(D,N.sibling),P=o(N,k.props.children),P.return=D,D=P;break e}}else if(N.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===R&&Xa(ge)===N.type){n(D,N.sibling),P=o(N,k.props),Ms(P,k),P.return=D,D=P;break e}n(D,N);break}else t(D,N);N=N.sibling}k.type===O?(P=Ua(k.props.children,D.mode,P,k.key),P.return=D,D=P):(P=Ul(k.type,k.key,k.props,null,D.mode,P),Ms(P,k),P.return=D,D=P)}return y(D);case M:e:{for(ge=k.key;N!==null;){if(N.key===ge)if(N.tag===4&&N.stateNode.containerInfo===k.containerInfo&&N.stateNode.implementation===k.implementation){n(D,N.sibling),P=o(N,k.children||[]),P.return=D,D=P;break e}else{n(D,N);break}else t(D,N);N=N.sibling}P=Go(k,D.mode,P),P.return=D,D=P}return y(D);case R:return k=Xa(k),Ge(D,N,k,P)}if(I(k))return ce(D,N,k,P);if(ie(k)){if(ge=ie(k),typeof ge!="function")throw Error(r(150));return k=ge.call(k),xe(D,N,k,P)}if(typeof k.then=="function")return Ge(D,N,Ql(k),P);if(k.$$typeof===H)return Ge(D,N,Yl(D,k),P);Zl(D,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,N!==null&&N.tag===6?(n(D,N.sibling),P=o(N,k),P.return=D,D=P):(n(D,N),P=Ho(k,D.mode,P),P.return=D,D=P),y(D)):n(D,N)}return function(D,N,k,P){try{As=0;var ge=Ge(D,N,k,P);return Mi=null,ge}catch(he){if(he===Ai||he===Xl)throw he;var Oe=Pt(29,he,null,D.mode);return Oe.lanes=P,Oe.return=D,Oe}finally{}}}var Qa=xh(!0),vh=xh(!1),ua=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function da(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ve&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=Ll(e),ah(e,null,n),t}return Bl(e,s,t,n),Ll(e)}function Es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,df(e,n)}}function tu(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var y={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=y:u=u.next=y,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var nu=!1;function Ds(){if(nu){var e=Ni;if(e!==null)throw e}}function Rs(e,t,n,s){nu=!1;var o=e.updateQueue;ua=!1;var u=o.firstBaseUpdate,y=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var j=v,V=j.next;j.next=null,y===null?u=V:y.next=V,y=j;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,v=Z.lastBaseUpdate,v!==y&&(v===null?Z.firstBaseUpdate=V:v.next=V,Z.lastBaseUpdate=j))}if(u!==null){var $=o.baseState;y=0,Z=V=j=null,v=u;do{var L=v.lane&-536870913,X=L!==v.lane;if(X?(Ee&L)===L:(s&L)===L){L!==0&&L===Ti&&(nu=!0),Z!==null&&(Z=Z.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ce=e,xe=v;L=t;var Ge=n;switch(xe.tag){case 1:if(ce=xe.payload,typeof ce=="function"){$=ce.call(Ge,$,L);break e}$=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=xe.payload,L=typeof ce=="function"?ce.call(Ge,$,L):ce,L==null)break e;$=x({},$,L);break e;case 2:ua=!0}}L=v.callback,L!==null&&(e.flags|=64,X&&(e.flags|=8192),X=o.callbacks,X===null?o.callbacks=[L]:X.push(L))}else X={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Z===null?(V=Z=X,j=$):Z=Z.next=X,y|=L;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;X=v,v=X.next,X.next=null,o.lastBaseUpdate=X,o.shared.pending=null}}while(!0);Z===null&&(j=$),o.baseState=j,o.firstBaseUpdate=V,o.lastBaseUpdate=Z,u===null&&(o.shared.lanes=0),ga|=y,e.lanes=y,e.memoizedState=$}}function Sh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function wh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Sh(n[e],t)}var Ei=C(null),Jl=C(0);function Ch(e,t){e=Pn,ee(Jl,e),ee(Ei,t),Pn=e|t.baseLanes}function au(){ee(Jl,Pn),ee(Ei,Ei.current)}function iu(){Pn=Jl.current,G(Ei),G(Jl)}var Ft=C(null),cn=null;function fa(e){var t=e.alternate;ee(it,it.current&1),ee(Ft,e),cn===null&&(t===null||Ei.current!==null||t.memoizedState!==null)&&(cn=e)}function su(e){ee(it,it.current),ee(Ft,e),cn===null&&(cn=e)}function jh(e){e.tag===22?(ee(it,it.current),ee(Ft,e),cn===null&&(cn=e)):ha()}function ha(){ee(it,it.current),ee(Ft,Ft.current)}function Wt(e){G(Ft),cn===e&&(cn=null),G(it)}var it=C(0);function Pl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dc(n)||fc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Gn=0,we=null,Ue=null,rt=null,Fl=!1,Di=!1,Za=!1,Wl=0,zs=0,Ri=null,tv=0;function Ie(){throw Error(r(321))}function lu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function ru(e,t,n,s,o,u){return Gn=u,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?rm:wu,Za=!1,u=n(s,o),Za=!1,Di&&(u=Nh(t,n,s,o)),Th(e),u}function Th(e){A.H=Vs;var t=Ue!==null&&Ue.next!==null;if(Gn=0,rt=Ue=we=null,Fl=!1,zs=0,Ri=null,t)throw Error(r(300));e===null||ot||(e=e.dependencies,e!==null&&Gl(e)&&(ot=!0))}function Nh(e,t,n,s){we=e;var o=0;do{if(Di&&(Ri=null),zs=0,Di=!1,25<=o)throw Error(r(301));if(o+=1,rt=Ue=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=om,u=t(n,s)}while(Di);return u}function nv(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?Os(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(we.flags|=1024),t}function ou(){var e=Wl!==0;return Wl=0,e}function uu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cu(e){if(Fl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fl=!1}Gn=0,rt=Ue=we=null,Di=!1,zs=Wl=0,Ri=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?we.memoizedState=rt=e:rt=rt.next=e,rt}function st(){if(Ue===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=rt===null?we.memoizedState:rt.next;if(t!==null)rt=t,Ue=e;else{if(e===null)throw we.alternate===null?Error(r(467)):Error(r(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},rt===null?we.memoizedState=rt=e:rt=rt.next=e}return rt}function $l(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Os(e){var t=zs;return zs+=1,Ri===null&&(Ri=[]),e=gh(Ri,e,t),t=we,(rt===null?t.memoizedState:rt.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?rm:wu),e}function Il(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Os(e);if(e.$$typeof===H)return Tt(e)}throw Error(r(438,String(e)))}function du(e){var t=null,n=we.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=we.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=$l(),we.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=J;return t.index++,n}function Yn(e,t){return typeof t=="function"?t(e):t}function er(e){var t=st();return fu(t,Ue,e)}function fu(e,t,n){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var o=e.baseQueue,u=s.pending;if(u!==null){if(o!==null){var y=o.next;o.next=u.next,u.next=y}t.baseQueue=o=u,s.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=y=null,j=null,V=t,Z=!1;do{var $=V.lane&-536870913;if($!==V.lane?(Ee&$)===$:(Gn&$)===$){var L=V.revertLane;if(L===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),$===Ti&&(Z=!0);else if((Gn&L)===L){V=V.next,L===Ti&&(Z=!0);continue}else $={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},j===null?(v=j=$,y=u):j=j.next=$,we.lanes|=L,ga|=L;$=V.action,Za&&n(u,$),u=V.hasEagerState?V.eagerState:n(u,$)}else L={lane:$,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},j===null?(v=j=L,y=u):j=j.next=L,we.lanes|=$,ga|=$;V=V.next}while(V!==null&&V!==t);if(j===null?y=u:j.next=v,!Jt(u,e.memoizedState)&&(ot=!0,Z&&(n=Ni,n!==null)))throw n;e.memoizedState=u,e.baseState=y,e.baseQueue=j,s.lastRenderedState=u}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function hu(e){var t=st(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var y=o=o.next;do u=e(u,y.action),y=y.next;while(y!==o);Jt(u,t.memoizedState)||(ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Ah(e,t,n){var s=we,o=st(),u=Re;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var y=!Jt((Ue||o).memoizedState,n);if(y&&(o.memoizedState=n,ot=!0),o=o.queue,gu(Dh.bind(null,s,o,e),[e]),o.getSnapshot!==t||y||rt!==null&&rt.memoizedState.tag&1){if(s.flags|=2048,zi(9,{destroy:void 0},Eh.bind(null,s,o,n,t),null),qe===null)throw Error(r(349));u||(Gn&127)!==0||Mh(s,t,n)}return n}function Mh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t=$l(),we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Eh(e,t,n,s){t.value=n,t.getSnapshot=s,Rh(t)&&zh(e)}function Dh(e,t,n){return n(function(){Rh(t)&&zh(e)})}function Rh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jt(e,n)}catch{return!0}}function zh(e){var t=La(e,2);t!==null&&qt(t,e,2)}function mu(e){var t=zt();if(typeof e=="function"){var n=e;if(e=n(),Za){na(!0);try{n()}finally{na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:e},t}function Oh(e,t,n,s){return e.baseState=n,fu(e,Ue,typeof s=="function"?s:Yn)}function av(e,t,n,s,o){if(ar(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){u.listeners.push(y)}};A.T!==null?n(!0):u.isTransition=!1,s(u),n=t.pending,n===null?(u.next=t.pending=u,kh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function kh(e,t){var n=t.action,s=t.payload,o=e.state;if(t.isTransition){var u=A.T,y={};A.T=y;try{var v=n(o,s),j=A.S;j!==null&&j(y,v),Vh(e,t,v)}catch(V){pu(e,t,V)}finally{u!==null&&y.types!==null&&(u.types=y.types),A.T=u}}else try{u=n(o,s),Vh(e,t,u)}catch(V){pu(e,t,V)}}function Vh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){_h(e,t,s)},function(s){return pu(e,t,s)}):_h(e,t,n)}function _h(e,t,n){t.status="fulfilled",t.value=n,Bh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,kh(e,n)))}function pu(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,Bh(t),t=t.next;while(t!==s)}e.action=null}function Bh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lh(e,t){return t}function Uh(e,t){if(Re){var n=qe.formState;if(n!==null){e:{var s=we;if(Re){if(Ke){t:{for(var o=Ke,u=un;o.nodeType!==8;){if(!u){o=null;break t}if(o=dn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){Ke=dn(o.nextSibling),s=o.data==="F!";break e}}ra(s)}s=!1}s&&(t=n[0])}}return n=zt(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lh,lastRenderedState:t},n.queue=s,n=im.bind(null,we,s),s.dispatch=n,s=mu(!1),u=Su.bind(null,we,!1,s.queue),s=zt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,n=av.bind(null,we,o,u,n),o.dispatch=n,s.memoizedState=e,[t,n,!1]}function Hh(e){var t=st();return Gh(t,Ue,e)}function Gh(e,t,n){if(t=fu(e,t,Lh)[0],e=er(Yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Os(t)}catch(y){throw y===Ai?Xl:y}else s=t;t=st();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(we.flags|=2048,zi(9,{destroy:void 0},iv.bind(null,o,n),null)),[s,u,e]}function iv(e,t){e.action=t}function Yh(e){var t=st(),n=Ue;if(n!==null)return Gh(t,n,e);st(),t=t.memoizedState,n=st();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function zi(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=we.updateQueue,t===null&&(t=$l(),we.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function qh(){return st().memoizedState}function tr(e,t,n,s){var o=zt();we.flags|=e,o.memoizedState=zi(1|t,{destroy:void 0},n,s===void 0?null:s)}function nr(e,t,n,s){var o=st();s=s===void 0?null:s;var u=o.memoizedState.inst;Ue!==null&&s!==null&&lu(s,Ue.memoizedState.deps)?o.memoizedState=zi(t,u,n,s):(we.flags|=e,o.memoizedState=zi(1|t,u,n,s))}function Xh(e,t){tr(8390656,8,e,t)}function gu(e,t){nr(2048,8,e,t)}function sv(e){we.flags|=4;var t=we.updateQueue;if(t===null)t=$l(),we.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Kh(e){var t=st().memoizedState;return sv({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Qh(e,t){return nr(4,2,e,t)}function Zh(e,t){return nr(4,4,e,t)}function Jh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ph(e,t,n){n=n!=null?n.concat([e]):null,nr(4,4,Jh.bind(null,t,e),n)}function yu(){}function Fh(e,t){var n=st();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&lu(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Wh(e,t){var n=st();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&lu(t,s[1]))return s[0];if(s=e(),Za){na(!0);try{e()}finally{na(!1)}}return n.memoizedState=[s,t],s}function bu(e,t,n){return n===void 0||(Gn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=$m(),we.lanes|=e,ga|=e,n)}function $h(e,t,n,s){return Jt(n,t)?n:Ei.current!==null?(e=bu(e,n,s),Jt(e,t)||(ot=!0),e):(Gn&42)===0||(Gn&1073741824)!==0&&(Ee&261930)===0?(ot=!0,e.memoizedState=n):(e=$m(),we.lanes|=e,ga|=e,t)}function Ih(e,t,n,s,o){var u=Y.p;Y.p=u!==0&&8>u?u:8;var y=A.T,v={};A.T=v,Su(e,!1,t,n);try{var j=o(),V=A.S;if(V!==null&&V(v,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var Z=ev(j,s);ks(e,t,Z,en(e))}else ks(e,t,s,en(e))}catch($){ks(e,t,{then:function(){},status:"rejected",reason:$},en())}finally{Y.p=u,y!==null&&v.types!==null&&(y.types=v.types),A.T=y}}function lv(){}function xu(e,t,n,s){if(e.tag!==5)throw Error(r(476));var o=em(e).queue;Ih(e,o,t,E,n===null?lv:function(){return tm(e),n(s)})}function em(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:E},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tm(e){var t=em(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},en())}function vu(){return Tt(Ws)}function nm(){return st().memoizedState}function am(){return st().memoizedState}function rv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=en();e=ca(n);var s=da(t,e,n);s!==null&&(qt(s,t,n),Es(s,t,n)),t={cache:Po()},e.payload=t;return}t=t.return}}function ov(e,t,n){var s=en();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ar(e)?sm(t,n):(n=Lo(e,t,n,s),n!==null&&(qt(n,e,s),lm(n,t,s)))}function im(e,t,n){var s=en();ks(e,t,n,s)}function ks(e,t,n,s){var o={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ar(e))sm(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var y=t.lastRenderedState,v=u(y,n);if(o.hasEagerState=!0,o.eagerState=v,Jt(v,y))return Bl(e,t,o,0),qe===null&&_l(),!1}catch{}finally{}if(n=Lo(e,t,o,s),n!==null)return qt(n,e,s),lm(n,t,s),!0}return!1}function Su(e,t,n,s){if(s={lane:2,revertLane:Iu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ar(e)){if(t)throw Error(r(479))}else t=Lo(e,n,s,2),t!==null&&qt(t,e,2)}function ar(e){var t=e.alternate;return e===we||t!==null&&t===we}function sm(e,t){Di=Fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,df(e,n)}}var Vs={readContext:Tt,use:Il,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Vs.useEffectEvent=Ie;var rm={readContext:Tt,use:Il,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:Xh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,tr(4194308,4,Jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tr(4194308,4,e,t)},useInsertionEffect:function(e,t){tr(4,2,e,t)},useMemo:function(e,t){var n=zt();t=t===void 0?null:t;var s=e();if(Za){na(!0);try{e()}finally{na(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=zt();if(n!==void 0){var o=n(t);if(Za){na(!0);try{n(t)}finally{na(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=ov.bind(null,we,e),[s.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=mu(e);var t=e.queue,n=im.bind(null,we,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yu,useDeferredValue:function(e,t){var n=zt();return bu(n,e,t)},useTransition:function(){var e=mu(!1);return e=Ih.bind(null,we,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=we,o=zt();if(Re){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),qe===null)throw Error(r(349));(Ee&127)!==0||Mh(s,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Xh(Dh.bind(null,s,u,e),[e]),s.flags|=2048,zi(9,{destroy:void 0},Eh.bind(null,s,u,n,t),null),n},useId:function(){var e=zt(),t=qe.identifierPrefix;if(Re){var n=Mn,s=An;n=(s&~(1<<32-Zt(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Wl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=tv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vu,useFormState:Uh,useActionState:Uh,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Su.bind(null,we,!0,n),n.dispatch=t,[e,t]},useMemoCache:du,useCacheRefresh:function(){return zt().memoizedState=rv.bind(null,we)},useEffectEvent:function(e){var t=zt(),n={impl:e};return t.memoizedState=n,function(){if((Ve&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},wu={readContext:Tt,use:Il,useCallback:Fh,useContext:Tt,useEffect:gu,useImperativeHandle:Ph,useInsertionEffect:Qh,useLayoutEffect:Zh,useMemo:Wh,useReducer:er,useRef:qh,useState:function(){return er(Yn)},useDebugValue:yu,useDeferredValue:function(e,t){var n=st();return $h(n,Ue.memoizedState,e,t)},useTransition:function(){var e=er(Yn)[0],t=st().memoizedState;return[typeof e=="boolean"?e:Os(e),t]},useSyncExternalStore:Ah,useId:nm,useHostTransitionStatus:vu,useFormState:Hh,useActionState:Hh,useOptimistic:function(e,t){var n=st();return Oh(n,Ue,e,t)},useMemoCache:du,useCacheRefresh:am};wu.useEffectEvent=Kh;var om={readContext:Tt,use:Il,useCallback:Fh,useContext:Tt,useEffect:gu,useImperativeHandle:Ph,useInsertionEffect:Qh,useLayoutEffect:Zh,useMemo:Wh,useReducer:hu,useRef:qh,useState:function(){return hu(Yn)},useDebugValue:yu,useDeferredValue:function(e,t){var n=st();return Ue===null?bu(n,e,t):$h(n,Ue.memoizedState,e,t)},useTransition:function(){var e=hu(Yn)[0],t=st().memoizedState;return[typeof e=="boolean"?e:Os(e),t]},useSyncExternalStore:Ah,useId:nm,useHostTransitionStatus:vu,useFormState:Yh,useActionState:Yh,useOptimistic:function(e,t){var n=st();return Ue!==null?Oh(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:du,useCacheRefresh:am};om.useEffectEvent=Kh;function Cu(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ju={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=en(),o=ca(s);o.payload=t,n!=null&&(o.callback=n),t=da(e,o,s),t!==null&&(qt(t,e,s),Es(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=en(),o=ca(s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=da(e,o,s),t!==null&&(qt(t,e,s),Es(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=en(),s=ca(n);s.tag=2,t!=null&&(s.callback=t),t=da(e,s,n),t!==null&&(qt(t,e,n),Es(t,e,n))}};function um(e,t,n,s,o,u,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,y):t.prototype&&t.prototype.isPureReactComponent?!Ss(n,s)||!Ss(o,u):!0}function cm(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&ju.enqueueReplaceState(t,t.state,null)}function Ja(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function dm(e){Vl(e)}function fm(e){console.error(e)}function hm(e){Vl(e)}function ir(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function mm(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Tu(e,t,n){return n=ca(n),n.tag=3,n.payload={element:null},n.callback=function(){ir(e,t)},n}function pm(e){return e=ca(e),e.tag=3,e}function gm(e,t,n,s){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=s.value;e.payload=function(){return o(u)},e.callback=function(){mm(t,n,s)}}var y=n.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){mm(t,n,s),typeof o!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}function uv(e,t,n,s,o){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&ji(t,n,o,!0),n=Ft.current,n!==null){switch(n.tag){case 31:case 13:return cn===null?gr():n.alternate===null&&et===0&&(et=3),n.flags&=-257,n.flags|=65536,n.lanes=o,s===Kl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),Fu(e,s,o)),!1;case 22:return n.flags|=65536,s===Kl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),Fu(e,s,o)),!1}throw Error(r(435,n.tag))}return Fu(e,s,o),gr(),!1}if(Re)return t=Ft.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==Xo&&(e=Error(r(422),{cause:s}),js(ln(e,n)))):(s!==Xo&&(t=Error(r(423),{cause:s}),js(ln(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=ln(s,n),o=Tu(e.stateNode,s,o),tu(e,o),et!==4&&(et=2)),!1;var u=Error(r(520),{cause:s});if(u=ln(u,n),qs===null?qs=[u]:qs.push(u),et!==4&&(et=2),t===null)return!0;s=ln(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Tu(n.stateNode,s,e),tu(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ya===null||!ya.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=pm(o),gm(o,e,n,s),tu(n,o),!1}n=n.return}while(n!==null);return!1}var Nu=Error(r(461)),ot=!1;function Nt(e,t,n,s){t.child=e===null?vh(t,null,n,s):Qa(t,e.child,n,s)}function ym(e,t,n,s,o){n=n.render;var u=t.ref;if("ref"in s){var y={};for(var v in s)v!=="ref"&&(y[v]=s[v])}else y=s;return Ya(t),s=ru(e,t,n,y,u,o),v=ou(),e!==null&&!ot?(uu(e,t,o),qn(e,t,o)):(Re&&v&&Yo(t),t.flags|=1,Nt(e,t,s,o),t.child)}function bm(e,t,n,s,o){if(e===null){var u=n.type;return typeof u=="function"&&!Uo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,xm(e,t,u,s,o)):(e=Ul(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ku(e,o)){var y=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ss,n(y,s)&&e.ref===t.ref)return qn(e,t,o)}return t.flags|=1,e=Bn(u,s),e.ref=t.ref,e.return=t,t.child=e}function xm(e,t,n,s,o){if(e!==null){var u=e.memoizedProps;if(Ss(u,s)&&e.ref===t.ref)if(ot=!1,t.pendingProps=s=u,ku(e,o))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,qn(e,t,o)}return Au(e,t,n,s,o)}function vm(e,t,n,s){var o=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(s=t.child=e.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~u}else s=0,t.child=null;return Sm(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ql(t,u!==null?u.cachePool:null),u!==null?Ch(t,u):au(),jh(t);else return s=t.lanes=536870912,Sm(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(ql(t,u.cachePool),Ch(t,u),ha(),t.memoizedState=null):(e!==null&&ql(t,null),au(),ha());return Nt(e,t,o,n),t.child}function _s(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Sm(e,t,n,s,o){var u=Wo();return u=u===null?null:{parent:lt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&ql(t,null),au(),jh(t),e!==null&&ji(e,t,s,!0),t.childLanes=o,null}function sr(e,t){return t=rr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wm(e,t,n){return Qa(t,e.child,null,n),e=sr(t,t.pendingProps),e.flags|=2,Wt(t),t.memoizedState=null,e}function cv(e,t,n){var s=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(s.mode==="hidden")return e=sr(t,s),t.lanes=536870912,_s(null,e);if(su(t),(e=Ke)?(e=kp(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:An,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},n=sh(e),n.return=t,t.child=n,jt=t,Ke=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return sr(t,s)}var u=e.memoizedState;if(u!==null){var y=u.dehydrated;if(su(t),o)if(t.flags&256)t.flags&=-257,t=wm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(ot||ji(e,t,n,!1),o=(n&e.childLanes)!==0,ot||o){if(s=qe,s!==null&&(y=ff(s,n),y!==0&&y!==u.retryLane))throw u.retryLane=y,La(e,y),qt(s,e,y),Nu;gr(),t=wm(e,t,n)}else e=u.treeContext,Ke=dn(y.nextSibling),jt=t,Re=!0,la=null,un=!1,e!==null&&oh(t,e),t=sr(t,s),t.flags|=4096;return t}return e=Bn(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Au(e,t,n,s,o){return Ya(t),n=ru(e,t,n,s,void 0,o),s=ou(),e!==null&&!ot?(uu(e,t,o),qn(e,t,o)):(Re&&s&&Yo(t),t.flags|=1,Nt(e,t,n,o),t.child)}function Cm(e,t,n,s,o,u){return Ya(t),t.updateQueue=null,n=Nh(t,s,n,o),Th(e),s=ou(),e!==null&&!ot?(uu(e,t,u),qn(e,t,u)):(Re&&s&&Yo(t),t.flags|=1,Nt(e,t,n,u),t.child)}function jm(e,t,n,s,o){if(Ya(t),t.stateNode===null){var u=vi,y=n.contextType;typeof y=="object"&&y!==null&&(u=Tt(y)),u=new n(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ju,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},Io(t),y=n.contextType,u.context=typeof y=="object"&&y!==null?Tt(y):vi,u.state=t.memoizedState,y=n.getDerivedStateFromProps,typeof y=="function"&&(Cu(t,n,y,s),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(y=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),y!==u.state&&ju.enqueueReplaceState(u,u.state,null),Rs(t,s,u,o),Ds(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,j=Ja(n,v);u.props=j;var V=u.context,Z=n.contextType;y=vi,typeof Z=="object"&&Z!==null&&(y=Tt(Z));var $=n.getDerivedStateFromProps;Z=typeof $=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,Z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||V!==y)&&cm(t,u,s,y),ua=!1;var L=t.memoizedState;u.state=L,Rs(t,s,u,o),Ds(),V=t.memoizedState,v||L!==V||ua?(typeof $=="function"&&(Cu(t,n,$,s),V=t.memoizedState),(j=ua||um(t,n,j,s,L,V,y))?(Z||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=V),u.props=s,u.state=V,u.context=y,s=j):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,eu(e,t),y=t.memoizedProps,Z=Ja(n,y),u.props=Z,$=t.pendingProps,L=u.context,V=n.contextType,j=vi,typeof V=="object"&&V!==null&&(j=Tt(V)),v=n.getDerivedStateFromProps,(V=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y!==$||L!==j)&&cm(t,u,s,j),ua=!1,L=t.memoizedState,u.state=L,Rs(t,s,u,o),Ds();var X=t.memoizedState;y!==$||L!==X||ua||e!==null&&e.dependencies!==null&&Gl(e.dependencies)?(typeof v=="function"&&(Cu(t,n,v,s),X=t.memoizedState),(Z=ua||um(t,n,Z,s,L,X,j)||e!==null&&e.dependencies!==null&&Gl(e.dependencies))?(V||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,X,j),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,X,j)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=X),u.props=s,u.state=X,u.context=j,s=Z):(typeof u.componentDidUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,lr(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=Qa(t,e.child,null,o),t.child=Qa(t,null,n,o)):Nt(e,t,n,o),t.memoizedState=u.state,e=t.child):e=qn(e,t,o),e}function Tm(e,t,n,s){return Ha(),t.flags|=256,Nt(e,t,n,s),t.child}var Mu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Eu(e){return{baseLanes:e,cachePool:mh()}}function Du(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=It),e}function Nm(e,t,n){var s=t.pendingProps,o=!1,u=(t.flags&128)!==0,y;if((y=u)||(y=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?fa(t):ha(),(e=Ke)?(e=kp(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:An,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},n=sh(e),n.return=t,t.child=n,jt=t,Ke=null)):e=null,e===null)throw ra(t);return fc(e)?t.lanes=32:t.lanes=536870912,null}var v=s.children;return s=s.fallback,o?(ha(),o=t.mode,v=rr({mode:"hidden",children:v},o),s=Ua(s,o,n,null),v.return=t,s.return=t,v.sibling=s,t.child=v,s=t.child,s.memoizedState=Eu(n),s.childLanes=Du(e,y,n),t.memoizedState=Mu,_s(null,s)):(fa(t),Ru(t,v))}var j=e.memoizedState;if(j!==null&&(v=j.dehydrated,v!==null)){if(u)t.flags&256?(fa(t),t.flags&=-257,t=zu(e,t,n)):t.memoizedState!==null?(ha(),t.child=e.child,t.flags|=128,t=null):(ha(),v=s.fallback,o=t.mode,s=rr({mode:"visible",children:s.children},o),v=Ua(v,o,n,null),v.flags|=2,s.return=t,v.return=t,s.sibling=v,t.child=s,Qa(t,e.child,null,n),s=t.child,s.memoizedState=Eu(n),s.childLanes=Du(e,y,n),t.memoizedState=Mu,t=_s(null,s));else if(fa(t),fc(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var V=y.dgst;y=V,s=Error(r(419)),s.stack="",s.digest=y,js({value:s,source:null,stack:null}),t=zu(e,t,n)}else if(ot||ji(e,t,n,!1),y=(n&e.childLanes)!==0,ot||y){if(y=qe,y!==null&&(s=ff(y,n),s!==0&&s!==j.retryLane))throw j.retryLane=s,La(e,s),qt(y,e,s),Nu;dc(v)||gr(),t=zu(e,t,n)}else dc(v)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Ke=dn(v.nextSibling),jt=t,Re=!0,la=null,un=!1,e!==null&&oh(t,e),t=Ru(t,s.children),t.flags|=4096);return t}return o?(ha(),v=s.fallback,o=t.mode,j=e.child,V=j.sibling,s=Bn(j,{mode:"hidden",children:s.children}),s.subtreeFlags=j.subtreeFlags&65011712,V!==null?v=Bn(V,v):(v=Ua(v,o,n,null),v.flags|=2),v.return=t,s.return=t,s.sibling=v,t.child=s,_s(null,s),s=t.child,v=e.child.memoizedState,v===null?v=Eu(n):(o=v.cachePool,o!==null?(j=lt._currentValue,o=o.parent!==j?{parent:j,pool:j}:o):o=mh(),v={baseLanes:v.baseLanes|n,cachePool:o}),s.memoizedState=v,s.childLanes=Du(e,y,n),t.memoizedState=Mu,_s(e.child,s)):(fa(t),n=e.child,e=n.sibling,n=Bn(n,{mode:"visible",children:s.children}),n.return=t,n.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=n,t.memoizedState=null,n)}function Ru(e,t){return t=rr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rr(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function zu(e,t,n){return Qa(t,e.child,null,n),e=Ru(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Am(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Zo(e.return,t,n)}function Ou(e,t,n,s,o,u){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o,treeForkCount:u}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=s,y.tail=n,y.tailMode=o,y.treeForkCount=u)}function Mm(e,t,n){var s=t.pendingProps,o=s.revealOrder,u=s.tail;s=s.children;var y=it.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,ee(it,y),Nt(e,t,s,n),s=Re?Cs:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Am(e,n,t);else if(e.tag===19)Am(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}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Pl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ou(t,!1,o,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Pl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ou(t,!0,n,null,u,s);break;case"together":Ou(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ga|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ji(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gl(e)))}function dv(e,t,n){switch(t.tag){case 3:Xe(t,t.stateNode.containerInfo),oa(t,lt,e.memoizedState.cache),Ha();break;case 27:case 5:We(t);break;case 4:Xe(t,t.stateNode.containerInfo);break;case 10:oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,su(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(fa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Nm(e,t,n):(fa(t),e=qn(e,t,n),e!==null?e.sibling:null);fa(t);break;case 19:var o=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(ji(e,t,n,!1),s=(n&t.childLanes)!==0),o){if(s)return Mm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ee(it,it.current),s)break;return null;case 22:return t.lanes=0,vm(e,t,n,t.pendingProps);case 24:oa(t,lt,e.memoizedState.cache)}return qn(e,t,n)}function Em(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!ku(e,n)&&(t.flags&128)===0)return ot=!1,dv(e,t,n);ot=(e.flags&131072)!==0}else ot=!1,Re&&(t.flags&1048576)!==0&&rh(t,Cs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e=="function")Uo(e)?(s=Ja(e,s),t.tag=1,t=jm(null,t,e,s,n)):(t.tag=0,t=Au(null,t,e,s,n));else{if(e!=null){var o=e.$$typeof;if(o===F){t.tag=11,t=ym(null,t,e,s,n);break e}else if(o===Q){t.tag=14,t=bm(null,t,e,s,n);break e}}throw t=oe(e)||e,Error(r(306,t,""))}}return t;case 0:return Au(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,o=Ja(s,t.pendingProps),jm(e,t,s,o,n);case 3:e:{if(Xe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var u=t.memoizedState;o=u.element,eu(e,t),Rs(t,s,null,n);var y=t.memoizedState;if(s=y.cache,oa(t,lt,s),s!==u.cache&&Jo(t,[lt],n,!0),Ds(),s=y.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Tm(e,t,s,n);break e}else if(s!==o){o=ln(Error(r(424)),t),js(o),t=Tm(e,t,s,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=dn(e.firstChild),jt=t,Re=!0,la=null,un=!0,n=vh(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ha(),s===o){t=qn(e,t,n);break e}Nt(e,t,s,n)}t=t.child}return t;case 26:return lr(e,t),e===null?(n=Hp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Re||(n=t.type,e=t.pendingProps,s=Cr(ye.current).createElement(n),s[Ct]=t,s[Bt]=e,At(s,n,e),vt(s),t.stateNode=s):t.memoizedState=Hp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return We(t),e===null&&Re&&(s=t.stateNode=Bp(t.type,t.pendingProps,ye.current),jt=t,un=!0,o=Ke,Sa(t.type)?(hc=o,Ke=dn(s.firstChild)):Ke=o),Nt(e,t,t.pendingProps.children,n),lr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=s=Ke)&&(s=Gv(s,t.type,t.pendingProps,un),s!==null?(t.stateNode=s,jt=t,Ke=dn(s.firstChild),un=!1,o=!0):o=!1),o||ra(t)),We(t),o=t.type,u=t.pendingProps,y=e!==null?e.memoizedProps:null,s=u.children,oc(o,u)?s=null:y!==null&&oc(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=ru(e,t,nv,null,null,n),Ws._currentValue=o),lr(e,t),Nt(e,t,s,n),t.child;case 6:return e===null&&Re&&((e=n=Ke)&&(n=Yv(n,t.pendingProps,un),n!==null?(t.stateNode=n,jt=t,Ke=null,e=!0):e=!1),e||ra(t)),null;case 13:return Nm(e,t,n);case 4:return Xe(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Qa(t,null,s,n):Nt(e,t,s,n),t.child;case 11:return ym(e,t,t.type,t.pendingProps,n);case 7:return Nt(e,t,t.pendingProps,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,oa(t,t.type,s.value),Nt(e,t,s.children,n),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Ya(t),o=Tt(o),s=s(o),t.flags|=1,Nt(e,t,s,n),t.child;case 14:return bm(e,t,t.type,t.pendingProps,n);case 15:return xm(e,t,t.type,t.pendingProps,n);case 19:return Mm(e,t,n);case 31:return cv(e,t,n);case 22:return vm(e,t,n,t.pendingProps);case 24:return Ya(t),s=Tt(lt),e===null?(o=Wo(),o===null&&(o=qe,u=Po(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:s,cache:o},Io(t),oa(t,lt,o)):((e.lanes&n)!==0&&(eu(e,t),Rs(t,null,null,n),Ds()),o=e.memoizedState,u=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),oa(t,lt,s)):(s=u.cache,oa(t,lt,s),s!==o.cache&&Jo(t,[lt],n,!0))),Nt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Xn(e){e.flags|=4}function Vu(e,t,n,s,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(np())e.flags|=8192;else throw Ka=Kl,$o}else e.flags&=-16777217}function Dm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Kp(t))if(np())e.flags|=8192;else throw Ka=Kl,$o}function or(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uf():536870912,e.lanes|=t,_i|=t)}function Bs(e,t){if(!Re)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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function fv(e,t,n){var s=t.pendingProps;switch(qo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Hn(lt),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ci(t)?Xn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ko())),Qe(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Xn(t),u!==null?(Qe(t),Dm(t,u)):(Qe(t),Vu(t,o,null,s,n))):u?u!==e.memoizedState?(Xn(t),Qe(t),Dm(t,u)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Xn(t),Qe(t),Vu(t,o,e,s,n)),null;case 27:if(nt(t),n=ye.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Xn(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return Qe(t),null}e=ae.current,Ci(t)?uh(t):(e=Bp(o,s,n),t.stateNode=e,Xn(t))}return Qe(t),null;case 5:if(nt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Xn(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return Qe(t),null}if(u=ae.current,Ci(t))uh(t);else{var y=Cr(ye.current);switch(u){case 1:u=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=y.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?y.createElement("select",{is:s.is}):y.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?y.createElement(o,{is:s.is}):y.createElement(o)}}u[Ct]=t,u[Bt]=s;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)u.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=u;e:switch(At(u,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Xn(t)}}return Qe(t),Vu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Xn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=ye.current,Ci(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,o=jt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||Np(e.nodeValue,n)),e||ra(t,!0)}else e=Cr(e).createTextNode(s),e[Ct]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=Ci(t),n!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ct]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=Ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Wt(t),t):(Wt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Qe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ci(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[Ct]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),o=!1}else o=Ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Wt(t),t):(Wt(t),null)}return Wt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==o&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),or(t,t.updateQueue),Qe(t),null);case 4:return Te(),e===null&&ac(t.stateNode.containerInfo),Qe(t),null;case 10:return Hn(t.type),Qe(t),null;case 19:if(G(it),s=t.memoizedState,s===null)return Qe(t),null;if(o=(t.flags&128)!==0,u=s.rendering,u===null)if(o)Bs(s,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Pl(e),u!==null){for(t.flags|=128,Bs(s,!1),e=u.updateQueue,t.updateQueue=e,or(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ih(n,e),n=n.sibling;return ee(it,it.current&1|2),Re&&Ln(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&$e()>hr&&(t.flags|=128,o=!0,Bs(s,!1),t.lanes=4194304)}else{if(!o)if(e=Pl(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,or(t,e),Bs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Re)return Qe(t),null}else 2*$e()-s.renderingStartTime>hr&&n!==536870912&&(t.flags|=128,o=!0,Bs(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=$e(),e.sibling=null,n=it.current,ee(it,o?n&1|2:n&1),Re&&Ln(t,s.treeForkCount),e):(Qe(t),null);case 22:case 23:return Wt(t),iu(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&or(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&G(qa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hn(lt),Qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function hv(e,t){switch(qo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(lt),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nt(t),null;case 31:if(t.memoizedState!==null){if(Wt(t),t.alternate===null)throw Error(r(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(it),null;case 4:return Te(),null;case 10:return Hn(t.type),null;case 22:case 23:return Wt(t),iu(),e!==null&&G(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hn(lt),null;case 25:return null;default:return null}}function Rm(e,t){switch(qo(t),t.tag){case 3:Hn(lt),Te();break;case 26:case 27:case 5:nt(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Wt(t);break;case 13:Wt(t);break;case 19:G(it);break;case 10:Hn(t.type);break;case 22:case 23:Wt(t),iu(),e!==null&&G(qa);break;case 24:Hn(lt)}}function Ls(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var o=s.next;n=o;do{if((n.tag&e)===e){s=void 0;var u=n.create,y=n.inst;s=u(),y.destroy=s}n=n.next}while(n!==o)}}catch(v){Le(t,t.return,v)}}function ma(e,t,n){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&e)===e){var y=s.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,o=t;var j=n,V=v;try{V()}catch(Z){Le(o,j,Z)}}}s=s.next}while(s!==u)}}catch(Z){Le(t,t.return,Z)}}function zm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{wh(t,n)}catch(s){Le(e,e.return,s)}}}function Om(e,t,n){n.props=Ja(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Le(e,t,s)}}function Us(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(o){Le(e,t,o)}}function En(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Le(e,t,o)}else n.current=null}function km(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(o){Le(e,e.return,o)}}function _u(e,t,n){try{var s=e.stateNode;Vv(s,e.type,n,t),s[Bt]=t}catch(o){Le(e,e.return,o)}}function Vm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sa(e.type)||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vm(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.tag===27&&Sa(e.type)||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 Lu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vn));else if(s!==4&&(s===27&&Sa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}function ur(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&Sa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ur(e,t,n),e=e.sibling;e!==null;)ur(e,t,n),e=e.sibling}function _m(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);At(t,s,n),t[Ct]=e,t[Bt]=n}catch(u){Le(e,e.return,u)}}var Kn=!1,ut=!1,Uu=!1,Bm=typeof WeakSet=="function"?WeakSet:Set,St=null;function mv(e,t){if(e=e.containerInfo,lc=Dr,e=Pf(e),zo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var o=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var y=0,v=-1,j=-1,V=0,Z=0,$=e,L=null;t:for(;;){for(var X;$!==n||o!==0&&$.nodeType!==3||(v=y+o),$!==u||s!==0&&$.nodeType!==3||(j=y+s),$.nodeType===3&&(y+=$.nodeValue.length),(X=$.firstChild)!==null;)L=$,$=X;for(;;){if($===e)break t;if(L===n&&++V===o&&(v=y),L===u&&++Z===s&&(j=y),(X=$.nextSibling)!==null)break;$=L,L=$.parentNode}$=X}n=v===-1||j===-1?null:{start:v,end:j}}else n=null}n=n||{start:0,end:0}}else n=null;for(rc={focusedElem:e,selectionRange:n},Dr=!1,St=t;St!==null;)if(t=St,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,St=e;else for(;St!==null;){switch(t=St,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var ce=Ja(n.type,o);e=s.getSnapshotBeforeUpdate(ce,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Le(n,n.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,St=e;break}St=t.return}}function Lm(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Zn(e,n),s&4&&Ls(5,n);break;case 1:if(Zn(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(y){Le(n,n.return,y)}else{var o=Ja(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Le(n,n.return,y)}}s&64&&zm(n),s&512&&Us(n,n.return);break;case 3:if(Zn(e,n),s&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{wh(e,t)}catch(y){Le(n,n.return,y)}}break;case 27:t===null&&s&4&&_m(n);case 26:case 5:Zn(e,n),t===null&&s&4&&km(n),s&512&&Us(n,n.return);break;case 12:Zn(e,n);break;case 31:Zn(e,n),s&4&&Gm(e,n);break;case 13:Zn(e,n),s&4&&Ym(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Cv.bind(null,n),qv(e,n))));break;case 22:if(s=n.memoizedState!==null||Kn,!s){t=t!==null&&t.memoizedState!==null||ut,o=Kn;var u=ut;Kn=s,(ut=t)&&!u?Jn(e,n,(n.subtreeFlags&8772)!==0):Zn(e,n),Kn=o,ut=u}break;case 30:break;default:Zn(e,n)}}function Um(e){var t=e.alternate;t!==null&&(e.alternate=null,Um(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&po(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,Ut=!1;function Qn(e,t,n){for(n=n.child;n!==null;)Hm(e,t,n),n=n.sibling}function Hm(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(us,n)}catch{}switch(n.tag){case 26:ut||En(n,t),Qn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ut||En(n,t);var s=Je,o=Ut;Sa(n.type)&&(Je=n.stateNode,Ut=!1),Qn(e,t,n),Js(n.stateNode),Je=s,Ut=o;break;case 5:ut||En(n,t);case 6:if(s=Je,o=Ut,Je=null,Qn(e,t,n),Je=s,Ut=o,Je!==null)if(Ut)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(n.stateNode)}catch(u){Le(n,t,u)}else try{Je.removeChild(n.stateNode)}catch(u){Le(n,t,u)}break;case 18:Je!==null&&(Ut?(e=Je,zp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Xi(e)):zp(Je,n.stateNode));break;case 4:s=Je,o=Ut,Je=n.stateNode.containerInfo,Ut=!0,Qn(e,t,n),Je=s,Ut=o;break;case 0:case 11:case 14:case 15:ma(2,n,t),ut||ma(4,n,t),Qn(e,t,n);break;case 1:ut||(En(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Om(n,t,s)),Qn(e,t,n);break;case 21:Qn(e,t,n);break;case 22:ut=(s=ut)||n.memoizedState!==null,Qn(e,t,n),ut=s;break;default:Qn(e,t,n)}}function Gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xi(e)}catch(n){Le(t,t.return,n)}}}function Ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xi(e)}catch(n){Le(t,t.return,n)}}function pv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Bm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Bm),t;default:throw Error(r(435,e.tag))}}function cr(e,t){var n=pv(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var o=jv.bind(null,e,s);s.then(o,o)}})}function Ht(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s],u=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(Sa(v.type)){Je=v.stateNode,Ut=!1;break e}break;case 5:Je=v.stateNode,Ut=!1;break e;case 3:case 4:Je=v.stateNode.containerInfo,Ut=!0;break e}v=v.return}if(Je===null)throw Error(r(160));Hm(u,y,o),Je=null,Ut=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qm(t,e),t=t.sibling}var xn=null;function qm(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(t,e),Gt(e),s&4&&(ma(3,e,e.return),Ls(3,e),ma(5,e,e.return));break;case 1:Ht(t,e),Gt(e),s&512&&(ut||n===null||En(n,n.return)),s&64&&Kn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var o=xn;if(Ht(t,e),Gt(e),s&512&&(ut||n===null||En(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":u=o.getElementsByTagName("title")[0],(!u||u[fs]||u[Ct]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(s),o.head.insertBefore(u,o.querySelector("head > title"))),At(u,s,n),u[Ct]=e,vt(u),s=u;break e;case"link":var y=qp("link","href",o).get(s+(n.href||""));if(y){for(var v=0;v<y.length;v++)if(u=y[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){y.splice(v,1);break t}}u=o.createElement(s),At(u,s,n),o.head.appendChild(u);break;case"meta":if(y=qp("meta","content",o).get(s+(n.content||""))){for(v=0;v<y.length;v++)if(u=y[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){y.splice(v,1);break t}}u=o.createElement(s),At(u,s,n),o.head.appendChild(u);break;default:throw Error(r(468,s))}u[Ct]=e,vt(u),s=u}e.stateNode=s}else Xp(o,e.type,e.stateNode);else e.stateNode=Yp(o,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?Xp(o,e.type,e.stateNode):Yp(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&_u(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ht(t,e),Gt(e),s&512&&(ut||n===null||En(n,n.return)),n!==null&&s&4&&_u(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ht(t,e),Gt(e),s&512&&(ut||n===null||En(n,n.return)),e.flags&32){o=e.stateNode;try{hi(o,"")}catch(ce){Le(e,e.return,ce)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,_u(e,o,n!==null?n.memoizedProps:o)),s&1024&&(Uu=!0);break;case 6:if(Ht(t,e),Gt(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(ce){Le(e,e.return,ce)}}break;case 3:if(Nr=null,o=xn,xn=jr(t.containerInfo),Ht(t,e),xn=o,Gt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Xi(t.containerInfo)}catch(ce){Le(e,e.return,ce)}Uu&&(Uu=!1,Xm(e));break;case 4:s=xn,xn=jr(e.stateNode.containerInfo),Ht(t,e),Gt(e),xn=s;break;case 12:Ht(t,e),Gt(e);break;case 31:Ht(t,e),Gt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,cr(e,s)));break;case 13:Ht(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(fr=$e()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,cr(e,s)));break;case 22:o=e.memoizedState!==null;var j=n!==null&&n.memoizedState!==null,V=Kn,Z=ut;if(Kn=V||o,ut=Z||j,Ht(t,e),ut=Z,Kn=V,Gt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||j||Kn||ut||Pa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){j=n=t;try{if(u=j.stateNode,o)y=u.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=j.stateNode;var $=j.memoizedProps.style,L=$!=null&&$.hasOwnProperty("display")?$.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ce){Le(j,j.return,ce)}}}else if(t.tag===6){if(n===null){j=t;try{j.stateNode.nodeValue=o?"":j.memoizedProps}catch(ce){Le(j,j.return,ce)}}}else if(t.tag===18){if(n===null){j=t;try{var X=j.stateNode;o?Op(X,!0):Op(j.stateNode,!1)}catch(ce){Le(j,j.return,ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,cr(e,n))));break;case 19:Ht(t,e),Gt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,cr(e,s)));break;case 30:break;case 21:break;default:Ht(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(Vm(s)){n=s;break}s=s.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=Bu(e);ur(e,u,o);break;case 5:var y=n.stateNode;n.flags&32&&(hi(y,""),n.flags&=-33);var v=Bu(e);ur(e,v,y);break;case 3:case 4:var j=n.stateNode.containerInfo,V=Bu(e);Lu(e,V,j);break;default:throw Error(r(161))}}catch(Z){Le(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Zn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lm(e,t.alternate,t),t=t.sibling}function Pa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ma(4,t,t.return),Pa(t);break;case 1:En(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Om(t,t.return,n),Pa(t);break;case 27:Js(t.stateNode);case 26:case 5:En(t,t.return),Pa(t);break;case 22:t.memoizedState===null&&Pa(t);break;case 30:Pa(t);break;default:Pa(t)}e=e.sibling}}function Jn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,u=t,y=u.flags;switch(u.tag){case 0:case 11:case 15:Jn(o,u,n),Ls(4,u);break;case 1:if(Jn(o,u,n),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(V){Le(s,s.return,V)}if(s=u,o=s.updateQueue,o!==null){var v=s.stateNode;try{var j=o.shared.hiddenCallbacks;if(j!==null)for(o.shared.hiddenCallbacks=null,o=0;o<j.length;o++)Sh(j[o],v)}catch(V){Le(s,s.return,V)}}n&&y&64&&zm(u),Us(u,u.return);break;case 27:_m(u);case 26:case 5:Jn(o,u,n),n&&s===null&&y&4&&km(u),Us(u,u.return);break;case 12:Jn(o,u,n);break;case 31:Jn(o,u,n),n&&y&4&&Gm(o,u);break;case 13:Jn(o,u,n),n&&y&4&&Ym(o,u);break;case 22:u.memoizedState===null&&Jn(o,u,n),Us(u,u.return);break;case 30:break;default:Jn(o,u,n)}t=t.sibling}}function Hu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ts(n))}function Gu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ts(e))}function vn(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Km(e,t,n,s),t=t.sibling}function Km(e,t,n,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:vn(e,t,n,s),o&2048&&Ls(9,t);break;case 1:vn(e,t,n,s);break;case 3:vn(e,t,n,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ts(e)));break;case 12:if(o&2048){vn(e,t,n,s),e=t.stateNode;try{var u=t.memoizedProps,y=u.id,v=u.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Le(t,t.return,j)}}else vn(e,t,n,s);break;case 31:vn(e,t,n,s);break;case 13:vn(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,y=t.alternate,t.memoizedState!==null?u._visibility&2?vn(e,t,n,s):Hs(e,t):u._visibility&2?vn(e,t,n,s):(u._visibility|=2,Oi(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Hu(y,t);break;case 24:vn(e,t,n,s),o&2048&&Gu(t.alternate,t);break;default:vn(e,t,n,s)}}function Oi(e,t,n,s,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,y=t,v=n,j=s,V=y.flags;switch(y.tag){case 0:case 11:case 15:Oi(u,y,v,j,o),Ls(8,y);break;case 23:break;case 22:var Z=y.stateNode;y.memoizedState!==null?Z._visibility&2?Oi(u,y,v,j,o):Hs(u,y):(Z._visibility|=2,Oi(u,y,v,j,o)),o&&V&2048&&Hu(y.alternate,y);break;case 24:Oi(u,y,v,j,o),o&&V&2048&&Gu(y.alternate,y);break;default:Oi(u,y,v,j,o)}t=t.sibling}}function Hs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,o=s.flags;switch(s.tag){case 22:Hs(n,s),o&2048&&Hu(s.alternate,s);break;case 24:Hs(n,s),o&2048&&Gu(s.alternate,s);break;default:Hs(n,s)}t=t.sibling}}var Gs=8192;function ki(e,t,n){if(e.subtreeFlags&Gs)for(e=e.child;e!==null;)Qm(e,t,n),e=e.sibling}function Qm(e,t,n){switch(e.tag){case 26:ki(e,t,n),e.flags&Gs&&e.memoizedState!==null&&t1(n,xn,e.memoizedState,e.memoizedProps);break;case 5:ki(e,t,n);break;case 3:case 4:var s=xn;xn=jr(e.stateNode.containerInfo),ki(e,t,n),xn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Gs,Gs=16777216,ki(e,t,n),Gs=s):ki(e,t,n));break;default:ki(e,t,n)}}function Zm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];St=s,Pm(s,e)}Zm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jm(e),e=e.sibling}function Jm(e){switch(e.tag){case 0:case 11:case 15:Ys(e),e.flags&2048&&ma(9,e,e.return);break;case 3:Ys(e);break;case 12:Ys(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,dr(e)):Ys(e);break;default:Ys(e)}}function dr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];St=s,Pm(s,e)}Zm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ma(8,t,t.return),dr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,dr(t));break;default:dr(t)}e=e.sibling}}function Pm(e,t){for(;St!==null;){var n=St;switch(n.tag){case 0:case 11:case 15:ma(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ts(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,St=s;else e:for(n=e;St!==null;){s=St;var o=s.sibling,u=s.return;if(Um(s),s===n){St=null;break e}if(o!==null){o.return=u,St=o;break e}St=u}}}var gv={getCacheForType:function(e){var t=Tt(lt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Tt(lt).controller.signal}},yv=typeof WeakMap=="function"?WeakMap:Map,Ve=0,qe=null,Ae=null,Ee=0,Be=0,$t=null,pa=!1,Vi=!1,Yu=!1,Pn=0,et=0,ga=0,Fa=0,qu=0,It=0,_i=0,qs=null,Yt=null,Xu=!1,fr=0,Fm=0,hr=1/0,mr=null,ya=null,dt=0,ba=null,Bi=null,Fn=0,Ku=0,Qu=null,Wm=null,Xs=0,Zu=null;function en(){return(Ve&2)!==0&&Ee!==0?Ee&-Ee:A.T!==null?Iu():hf()}function $m(){if(It===0)if((Ee&536870912)===0||Re){var e=wl;wl<<=1,(wl&3932160)===0&&(wl=262144),It=e}else It=536870912;return e=Ft.current,e!==null&&(e.flags|=32),It}function qt(e,t,n){(e===qe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Li(e,0),xa(e,Ee,It,!1)),ds(e,n),((Ve&2)===0||e!==qe)&&(e===qe&&((Ve&2)===0&&(Fa|=n),et===4&&xa(e,Ee,It,!1)),Dn(e))}function Im(e,t,n){if((Ve&6)!==0)throw Error(r(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||cs(e,t),o=s?vv(e,t):Pu(e,t,!0),u=s;do{if(o===0){Vi&&!s&&xa(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!bv(n)){o=Pu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;o=qs;var j=v.current.memoizedState.isDehydrated;if(j&&(Li(v,y).flags|=256),y=Pu(v,y,!1),y!==2){if(Yu&&!j){v.errorRecoveryDisabledLanes|=u,Fa|=u,o=4;break e}u=Yt,Yt=o,u!==null&&(Yt===null?Yt=u:Yt.push.apply(Yt,u))}o=y}if(u=!1,o!==2)continue}}if(o===1){Li(e,0),xa(e,t,0,!0);break}e:{switch(s=e,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:xa(s,t,It,!pa);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=fr+300-$e(),10<o)){if(xa(s,t,It,!pa),jl(s,0,!0)!==0)break e;Fn=t,s.timeoutHandle=Dp(ep.bind(null,s,n,Yt,mr,Xu,t,It,Fa,_i,pa,u,"Throttled",-0,0),o);break e}ep(s,n,Yt,mr,Xu,t,It,Fa,_i,pa,u,null,-0,0)}}break}while(!0);Dn(e)}function ep(e,t,n,s,o,u,y,v,j,V,Z,$,L,X){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vn},Qm(t,u,$);var ce=(u&62914560)===u?fr-$e():(u&4194048)===u?Fm-$e():0;if(ce=n1($,ce),ce!==null){Fn=u,e.cancelPendingCommit=ce(op.bind(null,e,t,u,n,s,o,y,v,j,Z,$,null,L,X)),xa(e,u,y,!V);return}}op(e,t,u,n,s,o,y,v,j)}function bv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var o=n[s],u=o.getSnapshot;o=o.value;try{if(!Jt(u(),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 xa(e,t,n,s){t&=~qu,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var u=31-Zt(o),y=1<<u;s[u]=-1,o&=~y}n!==0&&cf(e,n,t)}function pr(){return(Ve&6)===0?(Ks(0),!1):!0}function Ju(){if(Ae!==null){if(Be===0)var e=Ae.return;else e=Ae,Un=Ga=null,cu(e),Mi=null,As=0,e=Ae;for(;e!==null;)Rm(e.alternate,e),e=e.return;Ae=null}}function Li(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Lv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Fn=0,Ju(),qe=e,Ae=n=Bn(e.current,null),Ee=t,Be=0,$t=null,pa=!1,Vi=cs(e,t),Yu=!1,_i=It=qu=Fa=ga=et=0,Yt=qs=null,Xu=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-Zt(s),u=1<<o;t|=e[o],s&=~u}return Pn=t,_l(),n}function tp(e,t){we=null,A.H=Vs,t===Ai||t===Xl?(t=yh(),Be=3):t===$o?(t=yh(),Be=4):Be=t===Nu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$t=t,Ae===null&&(et=1,ir(e,ln(t,e.current)))}function np(){var e=Ft.current;return e===null?!0:(Ee&4194048)===Ee?cn===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===cn:!1}function ap(){var e=A.H;return A.H=Vs,e===null?Vs:e}function ip(){var e=A.A;return A.A=gv,e}function gr(){et=4,pa||(Ee&4194048)!==Ee&&Ft.current!==null||(Vi=!0),(ga&134217727)===0&&(Fa&134217727)===0||qe===null||xa(qe,Ee,It,!1)}function Pu(e,t,n){var s=Ve;Ve|=2;var o=ap(),u=ip();(qe!==e||Ee!==t)&&(mr=null,Li(e,t)),t=!1;var y=et;e:do try{if(Be!==0&&Ae!==null){var v=Ae,j=$t;switch(Be){case 8:Ju(),y=6;break e;case 3:case 2:case 9:case 6:Ft.current===null&&(t=!0);var V=Be;if(Be=0,$t=null,Ui(e,v,j,V),n&&Vi){y=0;break e}break;default:V=Be,Be=0,$t=null,Ui(e,v,j,V)}}xv(),y=et;break}catch(Z){tp(e,Z)}while(!0);return t&&e.shellSuspendCounter++,Un=Ga=null,Ve=s,A.H=o,A.A=u,Ae===null&&(qe=null,Ee=0,_l()),y}function xv(){for(;Ae!==null;)sp(Ae)}function vv(e,t){var n=Ve;Ve|=2;var s=ap(),o=ip();qe!==e||Ee!==t?(mr=null,hr=$e()+500,Li(e,t)):Vi=cs(e,t);e:do try{if(Be!==0&&Ae!==null){t=Ae;var u=$t;t:switch(Be){case 1:Be=0,$t=null,Ui(e,t,u,1);break;case 2:case 9:if(ph(u)){Be=0,$t=null,lp(t);break}t=function(){Be!==2&&Be!==9||qe!==e||(Be=7),Dn(e)},u.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:ph(u)?(Be=0,$t=null,lp(t)):(Be=0,$t=null,Ui(e,t,u,7));break;case 5:var y=null;switch(Ae.tag){case 26:y=Ae.memoizedState;case 5:case 27:var v=Ae;if(y?Kp(y):v.stateNode.complete){Be=0,$t=null;var j=v.sibling;if(j!==null)Ae=j;else{var V=v.return;V!==null?(Ae=V,yr(V)):Ae=null}break t}}Be=0,$t=null,Ui(e,t,u,5);break;case 6:Be=0,$t=null,Ui(e,t,u,6);break;case 8:Ju(),et=6;break e;default:throw Error(r(462))}}Sv();break}catch(Z){tp(e,Z)}while(!0);return Un=Ga=null,A.H=s,A.A=o,Ve=n,Ae!==null?0:(qe=null,Ee=0,_l(),et)}function Sv(){for(;Ae!==null&&!Tn();)sp(Ae)}function sp(e){var t=Em(e.alternate,e,Pn);e.memoizedProps=e.pendingProps,t===null?yr(e):Ae=t}function lp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Cm(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Cm(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:cu(t);default:Rm(n,t),t=Ae=ih(t,Pn),t=Em(n,t,Pn)}e.memoizedProps=e.pendingProps,t===null?yr(e):Ae=t}function Ui(e,t,n,s){Un=Ga=null,cu(t),Mi=null,As=0;var o=t.return;try{if(uv(e,o,t,n,Ee)){et=1,ir(e,ln(n,e.current)),Ae=null;return}}catch(u){if(o!==null)throw Ae=o,u;et=1,ir(e,ln(n,e.current)),Ae=null;return}t.flags&32768?(Re||s===1?e=!0:Vi||(Ee&536870912)!==0?e=!1:(pa=e=!0,(s===2||s===9||s===3||s===6)&&(s=Ft.current,s!==null&&s.tag===13&&(s.flags|=16384))),rp(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){rp(t,pa);return}e=t.return;var n=fv(t.alternate,t,Pn);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);et===0&&(et=5)}function rp(e,t){do{var n=hv(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);et=6,Ae=null}function op(e,t,n,s,o,u,y,v,j){e.cancelPendingCommit=null;do br();while(dt!==0);if((Ve&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Bo,ex(e,n,u,y,v,j),e===qe&&(Ae=qe=null,Ee=0),Bi=t,ba=e,Fn=n,Ku=u,Qu=o,Wm=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tv(rs,function(){return hp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=A.T,A.T=null,o=Y.p,Y.p=2,y=Ve,Ve|=4;try{mv(e,t,n)}finally{Ve=y,Y.p=o,A.T=s}}dt=1,up(),cp(),dp()}}function up(){if(dt===1){dt=0;var e=ba,t=Bi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=A.T,A.T=null;var s=Y.p;Y.p=2;var o=Ve;Ve|=4;try{qm(t,e);var u=rc,y=Pf(e.containerInfo),v=u.focusedElem,j=u.selectionRange;if(y!==v&&v&&v.ownerDocument&&Jf(v.ownerDocument.documentElement,v)){if(j!==null&&zo(v)){var V=j.start,Z=j.end;if(Z===void 0&&(Z=V),"selectionStart"in v)v.selectionStart=V,v.selectionEnd=Math.min(Z,v.value.length);else{var $=v.ownerDocument||document,L=$&&$.defaultView||window;if(L.getSelection){var X=L.getSelection(),ce=v.textContent.length,xe=Math.min(j.start,ce),Ge=j.end===void 0?xe:Math.min(j.end,ce);!X.extend&&xe>Ge&&(y=Ge,Ge=xe,xe=y);var D=Zf(v,xe),N=Zf(v,Ge);if(D&&N&&(X.rangeCount!==1||X.anchorNode!==D.node||X.anchorOffset!==D.offset||X.focusNode!==N.node||X.focusOffset!==N.offset)){var k=$.createRange();k.setStart(D.node,D.offset),X.removeAllRanges(),xe>Ge?(X.addRange(k),X.extend(N.node,N.offset)):(k.setEnd(N.node,N.offset),X.addRange(k))}}}}for($=[],X=v;X=X.parentNode;)X.nodeType===1&&$.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<$.length;v++){var P=$[v];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Dr=!!lc,rc=lc=null}finally{Ve=o,Y.p=s,A.T=n}}e.current=t,dt=2}}function cp(){if(dt===2){dt=0;var e=ba,t=Bi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=A.T,A.T=null;var s=Y.p;Y.p=2;var o=Ve;Ve|=4;try{Lm(e,t.alternate,t)}finally{Ve=o,Y.p=s,A.T=n}}dt=3}}function dp(){if(dt===4||dt===3){dt=0,_t();var e=ba,t=Bi,n=Fn,s=Wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,Bi=ba=null,fp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ya=null),ho(n),t=t.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(us,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=A.T,o=Y.p,Y.p=2,A.T=null;try{for(var u=e.onRecoverableError,y=0;y<s.length;y++){var v=s[y];u(v.value,{componentStack:v.stack})}}finally{A.T=t,Y.p=o}}(Fn&3)!==0&&br(),Dn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Zu?Xs++:(Xs=0,Zu=e):Xs=0,Ks(0)}}function fp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ts(t)))}function br(){return up(),cp(),dp(),hp()}function hp(){if(dt!==5)return!1;var e=ba,t=Ku;Ku=0;var n=ho(Fn),s=A.T,o=Y.p;try{Y.p=32>n?32:n,A.T=null,n=Qu,Qu=null;var u=ba,y=Fn;if(dt=0,Bi=ba=null,Fn=0,(Ve&6)!==0)throw Error(r(331));var v=Ve;if(Ve|=4,Jm(u.current),Km(u,u.current,y,n),Ve=v,Ks(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(us,u)}catch{}return!0}finally{Y.p=o,A.T=s,fp(e,t)}}function mp(e,t,n){t=ln(n,t),t=Tu(e.stateNode,t,2),e=da(e,t,2),e!==null&&(ds(e,2),Dn(e))}function Le(e,t,n){if(e.tag===3)mp(e,e,n);else for(;t!==null;){if(t.tag===3){mp(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ya===null||!ya.has(s))){e=ln(n,e),n=pm(2),s=da(t,n,2),s!==null&&(gm(n,s,t,e),ds(s,2),Dn(s));break}}t=t.return}}function Fu(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new yv;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(n)||(Yu=!0,o.add(n),e=wv.bind(null,e,t,n),t.then(e,e))}function wv(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,qe===e&&(Ee&n)===n&&(et===4||et===3&&(Ee&62914560)===Ee&&300>$e()-fr?(Ve&2)===0&&Li(e,0):qu|=n,_i===Ee&&(_i=0)),Dn(e)}function pp(e,t){t===0&&(t=uf()),e=La(e,t),e!==null&&(ds(e,t),Dn(e))}function Cv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pp(e,n)}function jv(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),pp(e,n)}function Tv(e,t){return be(e,t)}var xr=null,Hi=null,Wu=!1,vr=!1,$u=!1,va=0;function Dn(e){e!==Hi&&e.next===null&&(Hi===null?xr=Hi=e:Hi=Hi.next=e),vr=!0,Wu||(Wu=!0,Av())}function Ks(e,t){if(!$u&&vr){$u=!0;do for(var n=!1,s=xr;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var u=0;else{var y=s.suspendedLanes,v=s.pingedLanes;u=(1<<31-Zt(42|e)+1)-1,u&=o&~(y&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,xp(s,u))}else u=Ee,u=jl(s,s===qe?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||cs(s,u)||(n=!0,xp(s,u));s=s.next}while(n);$u=!1}}function Nv(){gp()}function gp(){vr=Wu=!1;var e=0;va!==0&&Bv()&&(e=va);for(var t=$e(),n=null,s=xr;s!==null;){var o=s.next,u=yp(s,t);u===0?(s.next=null,n===null?xr=o:n.next=o,o===null&&(Hi=n)):(n=s,(e!==0||(u&3)!==0)&&(vr=!0)),s=o}dt!==0&&dt!==5||Ks(e),va!==0&&(va=0)}function yp(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var y=31-Zt(u),v=1<<y,j=o[y];j===-1?((v&n)===0||(v&s)!==0)&&(o[y]=Ib(v,t)):j<=t&&(e.expiredLanes|=v),u&=~v}if(t=qe,n=Ee,n=jl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&ze(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||cs(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&ze(s),ho(n)){case 2:case 8:n=ls;break;case 32:n=rs;break;case 268435456:n=os;break;default:n=rs}return s=bp.bind(null,e),n=be(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&ze(s),e.callbackPriority=2,e.callbackNode=null,2}function bp(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(br()&&e.callbackNode!==n)return null;var s=Ee;return s=jl(e,e===qe?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Im(e,s,t),yp(e,$e()),e.callbackNode!=null&&e.callbackNode===n?bp.bind(null,e):null)}function xp(e,t){if(br())return null;Im(e,t,!0)}function Av(){Uv(function(){(Ve&6)!==0?be(Nn,Nv):gp()})}function Iu(){if(va===0){var e=Ti;e===0&&(e=Sl,Sl<<=1,(Sl&261888)===0&&(Sl=256)),va=e}return va}function vp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ml(""+e)}function Sp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Mv(e,t,n,s,o){if(t==="submit"&&n&&n.stateNode===o){var u=vp((o[Bt]||null).action),y=s.submitter;y&&(t=(t=y[Bt]||null)?vp(t.formAction):y.getAttribute("formAction"),t!==null&&(u=t,y=null));var v=new zl("action","action",null,s,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(va!==0){var j=y?Sp(o,y):new FormData(o);xu(n,{pending:!0,data:j,method:o.method,action:u},null,j)}}else typeof u=="function"&&(v.preventDefault(),j=y?Sp(o,y):new FormData(o),xu(n,{pending:!0,data:j,method:o.method,action:u},u,j))},currentTarget:o}]})}}for(var ec=0;ec<_o.length;ec++){var tc=_o[ec],Ev=tc.toLowerCase(),Dv=tc[0].toUpperCase()+tc.slice(1);bn(Ev,"on"+Dv)}bn($f,"onAnimationEnd"),bn(If,"onAnimationIteration"),bn(eh,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(Qx,"onTransitionRun"),bn(Zx,"onTransitionStart"),bn(Jx,"onTransitionCancel"),bn(th,"onTransitionEnd"),di("onMouseEnter",["mouseout","mouseover"]),di("onMouseLeave",["mouseout","mouseover"]),di("onPointerEnter",["pointerout","pointerover"]),di("onPointerLeave",["pointerout","pointerover"]),ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qs="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(" "),Rv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qs));function wp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],o=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var y=s.length-1;0<=y;y--){var v=s[y],j=v.instance,V=v.currentTarget;if(v=v.listener,j!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=V;try{u(o)}catch(Z){Vl(Z)}o.currentTarget=null,u=j}else for(y=0;y<s.length;y++){if(v=s[y],j=v.instance,V=v.currentTarget,v=v.listener,j!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=V;try{u(o)}catch(Z){Vl(Z)}o.currentTarget=null,u=j}}}}function Me(e,t){var n=t[mo];n===void 0&&(n=t[mo]=new Set);var s=e+"__bubble";n.has(s)||(Cp(t,e,2,!1),n.add(s))}function nc(e,t,n){var s=0;t&&(s|=4),Cp(n,e,s,t)}var Sr="_reactListening"+Math.random().toString(36).slice(2);function ac(e){if(!e[Sr]){e[Sr]=!0,gf.forEach(function(n){n!=="selectionchange"&&(Rv.has(n)||nc(n,!1,e),nc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sr]||(t[Sr]=!0,nc("selectionchange",!1,t))}}function Cp(e,t,n,s){switch($p(t)){case 2:var o=s1;break;case 8:o=l1;break;default:o=bc}n=o.bind(null,t,n,e),o=void 0,!Co||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?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 ic(e,t,n,s,o){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var v=s.stateNode.containerInfo;if(v===o)break;if(y===4)for(y=s.return;y!==null;){var j=y.tag;if((j===3||j===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;v!==null;){if(y=oi(v),y===null)return;if(j=y.tag,j===5||j===6||j===26||j===27){s=u=y;continue e}v=v.parentNode}}s=s.return}Mf(function(){var V=u,Z=So(n),$=[];e:{var L=nh.get(e);if(L!==void 0){var X=zl,ce=e;switch(e){case"keypress":if(Dl(n)===0)break e;case"keydown":case"keyup":X=jx;break;case"focusin":ce="focus",X=Ao;break;case"focusout":ce="blur",X=Ao;break;case"beforeblur":case"afterblur":X=Ao;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":X=Rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Ax;break;case $f:case If:case eh:X=px;break;case th:X=Ex;break;case"scroll":case"scrollend":X=cx;break;case"wheel":X=Rx;break;case"copy":case"cut":case"paste":X=yx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Of;break;case"toggle":case"beforetoggle":X=Ox}var xe=(t&4)!==0,Ge=!xe&&(e==="scroll"||e==="scrollend"),D=xe?L!==null?L+"Capture":null:L;xe=[];for(var N=V,k;N!==null;){var P=N;if(k=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||k===null||D===null||(P=ms(N,D),P!=null&&xe.push(Zs(N,P,k))),Ge)break;N=N.return}0<xe.length&&(L=new X(L,ce,null,n,Z),$.push({event:L,listeners:xe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",L&&n!==vo&&(ce=n.relatedTarget||n.fromElement)&&(oi(ce)||ce[ri]))break e;if((X||L)&&(L=Z.window===Z?Z:(L=Z.ownerDocument)?L.defaultView||L.parentWindow:window,X?(ce=n.relatedTarget||n.toElement,X=V,ce=ce?oi(ce):null,ce!==null&&(Ge=h(ce),xe=ce.tag,ce!==Ge||xe!==5&&xe!==27&&xe!==6)&&(ce=null)):(X=null,ce=V),X!==ce)){if(xe=Rf,P="onMouseLeave",D="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Of,P="onPointerLeave",D="onPointerEnter",N="pointer"),Ge=X==null?L:hs(X),k=ce==null?L:hs(ce),L=new xe(P,N+"leave",X,n,Z),L.target=Ge,L.relatedTarget=k,P=null,oi(Z)===V&&(xe=new xe(D,N+"enter",ce,n,Z),xe.target=k,xe.relatedTarget=Ge,P=xe),Ge=P,X&&ce)t:{for(xe=zv,D=X,N=ce,k=0,P=D;P;P=xe(P))k++;P=0;for(var ge=N;ge;ge=xe(ge))P++;for(;0<k-P;)D=xe(D),k--;for(;0<P-k;)N=xe(N),P--;for(;k--;){if(D===N||N!==null&&D===N.alternate){xe=D;break t}D=xe(D),N=xe(N)}xe=null}else xe=null;X!==null&&jp($,L,X,xe,!1),ce!==null&&Ge!==null&&jp($,Ge,ce,xe,!0)}}e:{if(L=V?hs(V):window,X=L.nodeName&&L.nodeName.toLowerCase(),X==="select"||X==="input"&&L.type==="file")var Oe=Gf;else if(Uf(L))if(Yf)Oe=qx;else{Oe=Gx;var he=Hx}else X=L.nodeName,!X||X.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?V&&xo(V.elementType)&&(Oe=Gf):Oe=Yx;if(Oe&&(Oe=Oe(e,V))){Hf($,Oe,n,Z);break e}he&&he(e,L,V),e==="focusout"&&V&&L.type==="number"&&V.memoizedProps.value!=null&&bo(L,"number",L.value)}switch(he=V?hs(V):window,e){case"focusin":(Uf(he)||he.contentEditable==="true")&&(yi=he,Oo=V,ws=null);break;case"focusout":ws=Oo=yi=null;break;case"mousedown":ko=!0;break;case"contextmenu":case"mouseup":case"dragend":ko=!1,Ff($,n,Z);break;case"selectionchange":if(Kx)break;case"keydown":case"keyup":Ff($,n,Z)}var Ce;if(Eo)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else gi?Bf(e,n)&&(De="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(De="onCompositionStart");De&&(kf&&n.locale!=="ko"&&(gi||De!=="onCompositionStart"?De==="onCompositionEnd"&&gi&&(Ce=Ef()):(ia=Z,jo="value"in ia?ia.value:ia.textContent,gi=!0)),he=wr(V,De),0<he.length&&(De=new zf(De,e,null,n,Z),$.push({event:De,listeners:he}),Ce?De.data=Ce:(Ce=Lf(n),Ce!==null&&(De.data=Ce)))),(Ce=Vx?_x(e,n):Bx(e,n))&&(De=wr(V,"onBeforeInput"),0<De.length&&(he=new zf("onBeforeInput","beforeinput",null,n,Z),$.push({event:he,listeners:De}),he.data=Ce)),Mv($,e,V,n,Z)}wp($,t)})}function Zs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wr(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=ms(e,n),o!=null&&s.unshift(Zs(e,o,u)),o=ms(e,t),o!=null&&s.push(Zs(e,o,u))),e.tag===3)return s;e=e.return}return[]}function zv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jp(e,t,n,s,o){for(var u=t._reactName,y=[];n!==null&&n!==s;){var v=n,j=v.alternate,V=v.stateNode;if(v=v.tag,j!==null&&j===s)break;v!==5&&v!==26&&v!==27||V===null||(j=V,o?(V=ms(n,u),V!=null&&y.unshift(Zs(n,V,j))):o||(V=ms(n,u),V!=null&&y.push(Zs(n,V,j)))),n=n.return}y.length!==0&&e.push({event:t,listeners:y})}var Ov=/\r\n?/g,kv=/\u0000|\uFFFD/g;function Tp(e){return(typeof e=="string"?e:""+e).replace(Ov,`
|
|
9
|
+
`).replace(kv,"")}function Np(e,t){return t=Tp(t),Tp(e)===t}function He(e,t,n,s,o,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||hi(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&hi(e,""+s);break;case"className":Nl(e,"class",s);break;case"tabIndex":Nl(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Nl(e,n,s);break;case"style":Nf(e,s,u);break;case"data":if(t!=="object"){Nl(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Ml(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Ml(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=Vn);break;case"onScroll":s!=null&&Me("scroll",e);break;case"onScrollEnd":s!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=Ml(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Tl(e,"popover",s);break;case"xlinkActuate":kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":kn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":kn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":kn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":kn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Tl(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ox.get(n)||n,Tl(e,n,s))}}function sc(e,t,n,s,o,u){switch(n){case"style":Nf(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof s=="string"?hi(e,s):(typeof s=="number"||typeof s=="bigint")&&hi(e,""+s);break;case"onScroll":s!=null&&Me("scroll",e);break;case"onScrollEnd":s!=null&&Me("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[Bt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof s=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,o);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):Tl(e,n,s)}}}function At(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var s=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var y=n[u];if(y!=null)switch(u){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,u,y,n,null)}}o&&He(e,t,"srcSet",n.srcSet,n,null),s&&He(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var v=u=y=o=null,j=null,V=null;for(s in n)if(n.hasOwnProperty(s)){var Z=n[s];if(Z!=null)switch(s){case"name":o=Z;break;case"type":y=Z;break;case"checked":j=Z;break;case"defaultChecked":V=Z;break;case"value":u=Z;break;case"defaultValue":v=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(137,t));break;default:He(e,t,s,Z,n,null)}}wf(e,u,v,j,V,y,o,!1);return;case"select":Me("invalid",e),s=y=u=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":y=v;break;case"multiple":s=v;default:He(e,t,o,v,n,null)}t=u,n=y,e.multiple=!!s,t!=null?fi(e,!!s,t,!1):n!=null&&fi(e,!!s,n,!0);return;case"textarea":Me("invalid",e),u=o=s=null;for(y in n)if(n.hasOwnProperty(y)&&(v=n[y],v!=null))switch(y){case"value":s=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:He(e,t,y,v,n,null)}jf(e,s,o,u);return;case"option":for(j in n)if(n.hasOwnProperty(j)&&(s=n[j],s!=null))switch(j){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:He(e,t,j,s,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(s=0;s<Qs.length;s++)Me(Qs[s],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in n)if(n.hasOwnProperty(V)&&(s=n[V],s!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,V,s,n,null)}return;default:if(xo(t)){for(Z in n)n.hasOwnProperty(Z)&&(s=n[Z],s!==void 0&&sc(e,t,Z,s,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(s=n[v],s!=null&&He(e,t,v,s,n,null))}function Vv(e,t,n,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,y=null,v=null,j=null,V=null,Z=null;for(X in n){var $=n[X];if(n.hasOwnProperty(X)&&$!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":j=$;default:s.hasOwnProperty(X)||He(e,t,X,null,s,$)}}for(var L in s){var X=s[L];if($=n[L],s.hasOwnProperty(L)&&(X!=null||$!=null))switch(L){case"type":u=X;break;case"name":o=X;break;case"checked":V=X;break;case"defaultChecked":Z=X;break;case"value":y=X;break;case"defaultValue":v=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,t));break;default:X!==$&&He(e,t,L,X,s,$)}}yo(e,y,v,j,V,Z,u,o);return;case"select":X=y=v=L=null;for(u in n)if(j=n[u],n.hasOwnProperty(u)&&j!=null)switch(u){case"value":break;case"multiple":X=j;default:s.hasOwnProperty(u)||He(e,t,u,null,s,j)}for(o in s)if(u=s[o],j=n[o],s.hasOwnProperty(o)&&(u!=null||j!=null))switch(o){case"value":L=u;break;case"defaultValue":v=u;break;case"multiple":y=u;default:u!==j&&He(e,t,o,u,s,j)}t=v,n=y,s=X,L!=null?fi(e,!!n,L,!1):!!s!=!!n&&(t!=null?fi(e,!!n,t,!0):fi(e,!!n,n?[]:"",!1));return;case"textarea":X=L=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!s.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:He(e,t,v,null,s,o)}for(y in s)if(o=s[y],u=n[y],s.hasOwnProperty(y)&&(o!=null||u!=null))switch(y){case"value":L=o;break;case"defaultValue":X=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&He(e,t,y,o,s,u)}Cf(e,L,X);return;case"option":for(var ce in n)if(L=n[ce],n.hasOwnProperty(ce)&&L!=null&&!s.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:He(e,t,ce,null,s,L)}for(j in s)if(L=s[j],X=n[j],s.hasOwnProperty(j)&&L!==X&&(L!=null||X!=null))switch(j){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:He(e,t,j,L,s,X)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in n)L=n[xe],n.hasOwnProperty(xe)&&L!=null&&!s.hasOwnProperty(xe)&&He(e,t,xe,null,s,L);for(V in s)if(L=s[V],X=n[V],s.hasOwnProperty(V)&&L!==X&&(L!=null||X!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:He(e,t,V,L,s,X)}return;default:if(xo(t)){for(var Ge in n)L=n[Ge],n.hasOwnProperty(Ge)&&L!==void 0&&!s.hasOwnProperty(Ge)&&sc(e,t,Ge,void 0,s,L);for(Z in s)L=s[Z],X=n[Z],!s.hasOwnProperty(Z)||L===X||L===void 0&&X===void 0||sc(e,t,Z,L,s,X);return}}for(var D in n)L=n[D],n.hasOwnProperty(D)&&L!=null&&!s.hasOwnProperty(D)&&He(e,t,D,null,s,L);for($ in s)L=s[$],X=n[$],!s.hasOwnProperty($)||L===X||L==null&&X==null||He(e,t,$,L,s,X)}function Ap(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _v(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var o=n[s],u=o.transferSize,y=o.initiatorType,v=o.duration;if(u&&v&&Ap(y)){for(y=0,v=o.responseEnd,s+=1;s<n.length;s++){var j=n[s],V=j.startTime;if(V>v)break;var Z=j.transferSize,$=j.initiatorType;Z&&Ap($)&&(j=j.responseEnd,y+=Z*(j<v?1:(v-V)/(j-V)))}if(--s,t+=8*(u+y)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var lc=null,rc=null;function Cr(e){return e.nodeType===9?e:e.ownerDocument}function Mp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ep(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function oc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uc=null;function Bv(){var e=window.event;return e&&e.type==="popstate"?e===uc?!1:(uc=e,!0):(uc=null,!1)}var Dp=typeof setTimeout=="function"?setTimeout:void 0,Lv=typeof clearTimeout=="function"?clearTimeout:void 0,Rp=typeof Promise=="function"?Promise:void 0,Uv=typeof queueMicrotask=="function"?queueMicrotask:typeof Rp<"u"?function(e){return Rp.resolve(null).then(e).catch(Hv)}:Dp;function Hv(e){setTimeout(function(){throw e})}function Sa(e){return e==="head"}function zp(e,t){var n=t,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(o),Xi(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")Js(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Js(n);for(var u=n.firstChild;u;){var y=u.nextSibling,v=u.nodeName;u[fs]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=y}}else n==="body"&&Js(e.ownerDocument.body);n=o}while(n);Xi(t)}function Op(e,t){var n=e;e=0;do{var s=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=s}while(n)}function cc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":cc(n),po(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Gv(e,t,n,s){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[fs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function Yv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function kp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dn(e.nextSibling),e===null))return null;return e}function dc(e){return e.data==="$?"||e.data==="$~"}function fc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function dn(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var hc=null;function Vp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return dn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function _p(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Bp(e,t,n){switch(t=Cr(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Js(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);po(e)}var fn=new Map,Lp=new Set;function jr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Wn=Y.d;Y.d={f:Xv,r:Kv,D:Qv,C:Zv,L:Jv,m:Pv,X:Wv,S:Fv,M:$v};function Xv(){var e=Wn.f(),t=pr();return e||t}function Kv(e){var t=ui(e);t!==null&&t.tag===5&&t.type==="form"?tm(t):Wn.r(e)}var Gi=typeof document>"u"?null:document;function Up(e,t,n){var s=Gi;if(s&&typeof t=="string"&&t){var o=an(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Lp.has(o)||(Lp.add(o),e={rel:e,crossOrigin:n,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),At(t,"link",e),vt(t),s.head.appendChild(t)))}}function Qv(e){Wn.D(e),Up("dns-prefetch",e,null)}function Zv(e,t){Wn.C(e,t),Up("preconnect",e,t)}function Jv(e,t,n){Wn.L(e,t,n);var s=Gi;if(s&&e&&t){var o='link[rel="preload"][as="'+an(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+an(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+an(n.imageSizes)+'"]')):o+='[href="'+an(e)+'"]';var u=o;switch(t){case"style":u=Yi(e);break;case"script":u=qi(e)}fn.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),fn.set(u,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(Ps(u))||t==="script"&&s.querySelector(Fs(u))||(t=s.createElement("link"),At(t,"link",e),vt(t),s.head.appendChild(t)))}}function Pv(e,t){Wn.m(e,t);var n=Gi;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+an(s)+'"][href="'+an(e)+'"]',u=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=qi(e)}if(!fn.has(u)&&(e=x({rel:"modulepreload",href:e},t),fn.set(u,e),n.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fs(u)))return}s=n.createElement("link"),At(s,"link",e),vt(s),n.head.appendChild(s)}}}function Fv(e,t,n){Wn.S(e,t,n);var s=Gi;if(s&&e){var o=ci(s).hoistableStyles,u=Yi(e);t=t||"default";var y=o.get(u);if(!y){var v={loading:0,preload:null};if(y=s.querySelector(Ps(u)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=fn.get(u))&&mc(e,n);var j=y=s.createElement("link");vt(j),At(j,"link",e),j._p=new Promise(function(V,Z){j.onload=V,j.onerror=Z}),j.addEventListener("load",function(){v.loading|=1}),j.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Tr(y,t,s)}y={type:"stylesheet",instance:y,count:1,state:v},o.set(u,y)}}}function Wv(e,t){Wn.X(e,t);var n=Gi;if(n&&e){var s=ci(n).hoistableScripts,o=qi(e),u=s.get(o);u||(u=n.querySelector(Fs(o)),u||(e=x({src:e,async:!0},t),(t=fn.get(o))&&pc(e,t),u=n.createElement("script"),vt(u),At(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function $v(e,t){Wn.M(e,t);var n=Gi;if(n&&e){var s=ci(n).hoistableScripts,o=qi(e),u=s.get(o);u||(u=n.querySelector(Fs(o)),u||(e=x({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&pc(e,t),u=n.createElement("script"),vt(u),At(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function Hp(e,t,n,s){var o=(o=ye.current)?jr(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Yi(n.href),n=ci(o).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Yi(n.href);var u=ci(o).hoistableStyles,y=u.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,y),(u=o.querySelector(Ps(e)))&&!u._p&&(y.instance=u,y.state.loading=5),fn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(e,n),u||Iv(o,e,n,y.state))),t&&s===null)throw Error(r(528,""));return y}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qi(n),n=ci(o).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Yi(e){return'href="'+an(e)+'"'}function Ps(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Iv(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),At(t,"link",n),vt(t),e.head.appendChild(t))}function qi(e){return'[src="'+an(e)+'"]'}function Fs(e){return"script[async]"+e}function Yp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+an(n.href)+'"]');if(s)return t.instance=s,vt(s),s;var o=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),vt(s),At(s,"style",o),Tr(s,n.precedence,e),t.instance=s;case"stylesheet":o=Yi(n.href);var u=e.querySelector(Ps(o));if(u)return t.state.loading|=4,t.instance=u,vt(u),u;s=Gp(n),(o=fn.get(o))&&mc(s,o),u=(e.ownerDocument||e).createElement("link"),vt(u);var y=u;return y._p=new Promise(function(v,j){y.onload=v,y.onerror=j}),At(u,"link",s),t.state.loading|=4,Tr(u,n.precedence,e),t.instance=u;case"script":return u=qi(n.src),(o=e.querySelector(Fs(u)))?(t.instance=o,vt(o),o):(s=n,(o=fn.get(u))&&(s=x({},n),pc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),vt(o),At(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Tr(s,n.precedence,e));return t.instance}function Tr(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,u=o,y=0;y<s.length;y++){var v=s[y];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nr=null;function qp(e,t,n){if(Nr===null){var s=new Map,o=Nr=new Map;o.set(n,s)}else o=Nr,s=o.get(n),s||(s=new Map,o.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[fs]||u[Ct]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var y=u.getAttribute(t)||"";y=e+y;var v=s.get(y);v?v.push(u):s.set(y,[u])}}return s}function Xp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function e1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Kp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function t1(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Yi(s.href),u=t.querySelector(Ps(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ar.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,vt(u);return}u=t.ownerDocument||t,s=Gp(s),(o=fn.get(o))&&mc(s,o),u=u.createElement("link"),vt(u);var y=u;y._p=new Promise(function(v,j){y.onload=v,y.onerror=j}),At(u,"link",s),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ar.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var gc=0;function n1(e,t){return e.stylesheets&&e.count===0&&Er(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&Er(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&gc===0&&(gc=62500*_v());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Er(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>gc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function Ar(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Er(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mr=null;function Er(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mr=new Map,t.forEach(a1,e),Mr=null,Ar.call(e))}function a1(e,t){if(!(t.state.loading&4)){var n=Mr.get(e);if(n)var s=n.get(null);else{n=new Map,Mr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var y=o[u];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(n.set(y.dataset.precedence,y),s=y)}s&&n.set(null,s)}o=t.instance,y=o.getAttribute("data-precedence"),u=n.get(y)||s,u===s&&n.set(null,o),n.set(y,o),this.count++,s=Ar.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ws={$$typeof:H,Provider:null,Consumer:null,_currentValue:E,_currentValue2:E,_threadCount:0};function i1(e,t,n,s,o,u,y,v,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=co(0),this.hiddenUpdates=co(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Qp(e,t,n,s,o,u,y,v,j,V,Z,$){return e=new i1(e,t,n,y,j,V,Z,$,v),t=1,u===!0&&(t|=24),u=Pt(3,null,null,t),e.current=u,u.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},Io(u),e}function Zp(e){return e?(e=vi,e):vi}function Jp(e,t,n,s,o,u){o=Zp(o),s.context===null?s.context=o:s.pendingContext=o,s=ca(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=da(e,s,t),n!==null&&(qt(n,e,t),Es(n,e,t))}function Pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yc(e,t){Pp(e,t),(e=e.alternate)&&Pp(e,t)}function Fp(e){if(e.tag===13||e.tag===31){var t=La(e,67108864);t!==null&&qt(t,e,67108864),yc(e,67108864)}}function Wp(e){if(e.tag===13||e.tag===31){var t=en();t=fo(t);var n=La(e,t);n!==null&&qt(n,e,t),yc(e,t)}}var Dr=!0;function s1(e,t,n,s){var o=A.T;A.T=null;var u=Y.p;try{Y.p=2,bc(e,t,n,s)}finally{Y.p=u,A.T=o}}function l1(e,t,n,s){var o=A.T;A.T=null;var u=Y.p;try{Y.p=8,bc(e,t,n,s)}finally{Y.p=u,A.T=o}}function bc(e,t,n,s){if(Dr){var o=xc(s);if(o===null)ic(e,t,s,Rr,n),Ip(e,s);else if(o1(o,e,t,n,s))s.stopPropagation();else if(Ip(e,s),t&4&&-1<r1.indexOf(e)){for(;o!==null;){var u=ui(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var y=Oa(u.pendingLanes);if(y!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var j=1<<31-Zt(y);v.entanglements[1]|=j,y&=~j}Dn(u),(Ve&6)===0&&(hr=$e()+500,Ks(0))}}break;case 31:case 13:v=La(u,2),v!==null&&qt(v,u,2),pr(),yc(u,2)}if(u=xc(s),u===null&&ic(e,t,s,Rr,n),u===o)break;o=u}o!==null&&s.stopPropagation()}else ic(e,t,s,null,n)}}function xc(e){return e=So(e),vc(e)}var Rr=null;function vc(e){if(Rr=null,e=oi(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=f(t),e!==null)return e;e=null}else if(n===31){if(e=m(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 Rr=e,null}function $p(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tn()){case Nn:return 2;case ls:return 8;case rs:case uo:return 32;case os:return 268435456;default:return 32}default:return 32}}var Sc=!1,wa=null,Ca=null,ja=null,$s=new Map,Is=new Map,Ta=[],r1="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".split(" ");function Ip(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":$s.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Is.delete(t.pointerId)}}function el(e,t,n,s,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[o]},t!==null&&(t=ui(t),t!==null&&Fp(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function o1(e,t,n,s,o){switch(t){case"focusin":return wa=el(wa,e,t,n,s,o),!0;case"dragenter":return Ca=el(Ca,e,t,n,s,o),!0;case"mouseover":return ja=el(ja,e,t,n,s,o),!0;case"pointerover":var u=o.pointerId;return $s.set(u,el($s.get(u)||null,e,t,n,s,o)),!0;case"gotpointercapture":return u=o.pointerId,Is.set(u,el(Is.get(u)||null,e,t,n,s,o)),!0}return!1}function eg(e){var t=oi(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=f(n),t!==null){e.blockedOn=t,mf(e.priority,function(){Wp(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,mf(e.priority,function(){Wp(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 zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xc(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);vo=s,n.target.dispatchEvent(s),vo=null}else return t=ui(n),t!==null&&Fp(t),e.blockedOn=n,!1;t.shift()}return!0}function tg(e,t,n){zr(e)&&n.delete(t)}function u1(){Sc=!1,wa!==null&&zr(wa)&&(wa=null),Ca!==null&&zr(Ca)&&(Ca=null),ja!==null&&zr(ja)&&(ja=null),$s.forEach(tg),Is.forEach(tg)}function Or(e,t){e.blockedOn===t&&(e.blockedOn=null,Sc||(Sc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,u1)))}var kr=null;function ng(e){kr!==e&&(kr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){kr===e&&(kr=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(vc(s||n)===null)continue;break}var u=ui(n);u!==null&&(e.splice(t,3),t-=3,xu(u,{pending:!0,data:o,method:n.method,action:s},s,o))}}))}function Xi(e){function t(j){return Or(j,e)}wa!==null&&Or(wa,e),Ca!==null&&Or(Ca,e),ja!==null&&Or(ja,e),$s.forEach(t),Is.forEach(t);for(var n=0;n<Ta.length;n++){var s=Ta[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ta.length&&(n=Ta[0],n.blockedOn===null);)eg(n),n.blockedOn===null&&Ta.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var o=n[s],u=n[s+1],y=o[Bt]||null;if(typeof u=="function")y||ng(n);else if(y){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,y=u[Bt]||null)v=y.formAction;else if(vc(o)!==null)continue}else v=y.action;typeof v=="function"?n[s+1]=v:(n.splice(s,3),s-=3),ng(n)}}}function ag(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wc(e){this._internalRoot=e}Vr.prototype.render=wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,s=en();Jp(n,s,e,t,null,null)},Vr.prototype.unmount=wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jp(e.current,2,null,e,null,null),pr(),t[ri]=null}};function Vr(e){this._internalRoot=e}Vr.prototype.unstable_scheduleHydration=function(e){if(e){var t=hf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ta.length&&t!==0&&t<Ta[n].priority;n++);Ta.splice(n,0,e),n===0&&eg(e)}};var ig=i.version;if(ig!=="19.2.1")throw Error(r(527,ig,"19.2.1"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var c1={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_r.isDisabled&&_r.supportsFiber)try{us=_r.inject(c1),Qt=_r}catch{}}return nl.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,s="",o=dm,u=fm,y=hm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Qp(e,1,!1,null,null,n,s,null,o,u,y,ag),e[ri]=t.current,ac(e),new wc(t)},nl.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var s=!1,o="",u=dm,y=fm,v=hm,j=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(j=n.formState)),t=Qp(e,1,!0,t,n??null,s,o,j,u,y,v,ag),t.context=Zp(null),n=t.current,s=en(),s=fo(s),o=ca(s),o.callback=null,da(n,o,s),n=s,t.current.lanes=n,ds(t,n),Dn(t),e[ri]=t.current,ac(e),new Vr(t)},nl.version="19.2.1",nl}var mg;function v1(){if(mg)return Tc.exports;mg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Tc.exports=x1(),Tc.exports}var S1=v1();const jd=w.createContext({});function Td(a){const i=w.useRef(null);return i.current===null&&(i.current=a()),i.current}const Nd=typeof window<"u",Hy=Nd?w.useLayoutEffect:w.useEffect,so=w.createContext(null);function Ad(a,i){a.indexOf(i)===-1&&a.push(i)}function Md(a,i){const l=a.indexOf(i);l>-1&&a.splice(l,1)}const ea=(a,i,l)=>l>i?i:l<a?a:l;let Ed=()=>{};const ta={},Gy=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Yy(a){return typeof a=="object"&&a!==null}const qy=a=>/^0[^.\s]+$/u.test(a);function Dd(a){let i;return()=>(i===void 0&&(i=a()),i)}const gn=a=>a,w1=(a,i)=>l=>i(a(l)),yl=(...a)=>a.reduce(w1),dl=(a,i,l)=>{const r=i-a;return r===0?1:(l-a)/r};class Rd{constructor(){this.subscriptions=[]}add(i){return Ad(this.subscriptions,i),()=>Md(this.subscriptions,i)}notify(i,l,r){const d=this.subscriptions.length;if(d)if(d===1)this.subscriptions[0](i,l,r);else for(let h=0;h<d;h++){const f=this.subscriptions[h];f&&f(i,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const zn=a=>a*1e3,mn=a=>a/1e3;function Xy(a,i){return i?a*(1e3/i):0}const Ky=(a,i,l)=>(((1-3*l+3*i)*a+(3*l-6*i))*a+3*i)*a,C1=1e-7,j1=12;function T1(a,i,l,r,d){let h,f,m=0;do f=i+(l-i)/2,h=Ky(f,r,d)-a,h>0?l=f:i=f;while(Math.abs(h)>C1&&++m<j1);return f}function bl(a,i,l,r){if(a===i&&l===r)return gn;const d=h=>T1(h,0,1,a,l);return h=>h===0||h===1?h:Ky(d(h),i,r)}const Qy=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Zy=a=>i=>1-a(1-i),Jy=bl(.33,1.53,.69,.99),zd=Zy(Jy),Py=Qy(zd),Fy=a=>(a*=2)<1?.5*zd(a):.5*(2-Math.pow(2,-10*(a-1))),Od=a=>1-Math.sin(Math.acos(a)),Wy=Zy(Od),$y=Qy(Od),N1=bl(.42,0,1,1),A1=bl(0,0,.58,1),Iy=bl(.42,0,.58,1),M1=a=>Array.isArray(a)&&typeof a[0]!="number",e0=a=>Array.isArray(a)&&typeof a[0]=="number",E1={linear:gn,easeIn:N1,easeInOut:Iy,easeOut:A1,circIn:Od,circInOut:$y,circOut:Wy,backIn:zd,backInOut:Py,backOut:Jy,anticipate:Fy},D1=a=>typeof a=="string",pg=a=>{if(e0(a)){Ed(a.length===4);const[i,l,r,d]=a;return bl(i,l,r,d)}else if(D1(a))return E1[a];return a},Br=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function R1(a,i){let l=new Set,r=new Set,d=!1,h=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function g(b){f.has(b)&&(p.schedule(b),a()),b(m)}const p={schedule:(b,x=!1,S=!1)=>{const M=S&&d?l:r;return x&&f.add(b),M.has(b)||M.add(b),b},cancel:b=>{r.delete(b),f.delete(b)},process:b=>{if(m=b,d){h=!0;return}d=!0,[l,r]=[r,l],l.forEach(g),l.clear(),d=!1,h&&(h=!1,p.process(b))}};return p}const z1=40;function t0(a,i){let l=!1,r=!0;const d={delta:0,timestamp:0,isProcessing:!1},h=()=>l=!0,f=Br.reduce((H,F)=>(H[F]=R1(h),H),{}),{setup:m,read:g,resolveKeyframes:p,preUpdate:b,update:x,preRender:S,render:T,postRender:M}=f,O=()=>{const H=ta.useManualTiming?d.timestamp:performance.now();l=!1,ta.useManualTiming||(d.delta=r?1e3/60:Math.max(Math.min(H-d.timestamp,z1),1)),d.timestamp=H,d.isProcessing=!0,m.process(d),g.process(d),p.process(d),b.process(d),x.process(d),S.process(d),T.process(d),M.process(d),d.isProcessing=!1,l&&i&&(r=!1,a(O))},_=()=>{l=!0,r=!0,d.isProcessing||a(O)};return{schedule:Br.reduce((H,F)=>{const U=f[F];return H[F]=(W,Q=!1,R=!1)=>(l||_(),U.schedule(W,Q,R)),H},{}),cancel:H=>{for(let F=0;F<Br.length;F++)f[Br[F]].cancel(H)},state:d,steps:f}}const{schedule:Pe,cancel:Da,state:Mt,steps:Ec}=t0(typeof requestAnimationFrame<"u"?requestAnimationFrame:gn,!0);let Kr;function O1(){Kr=void 0}const Xt={now:()=>(Kr===void 0&&Xt.set(Mt.isProcessing||ta.useManualTiming?Mt.timestamp:performance.now()),Kr),set:a=>{Kr=a,queueMicrotask(O1)}},n0=a=>i=>typeof i=="string"&&i.startsWith(a),a0=n0("--"),k1=n0("var(--"),kd=a=>k1(a)?V1.test(a.split("/*")[0].trim()):!1,V1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ts={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},fl={...ts,transform:a=>ea(0,1,a)},Lr={...ts,default:1},rl=a=>Math.round(a*1e5)/1e5,Vd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _1(a){return a==null}const B1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_d=(a,i)=>l=>!!(typeof l=="string"&&B1.test(l)&&l.startsWith(a)||i&&!_1(l)&&Object.prototype.hasOwnProperty.call(l,i)),i0=(a,i,l)=>r=>{if(typeof r!="string")return r;const[d,h,f,m]=r.match(Vd);return{[a]:parseFloat(d),[i]:parseFloat(h),[l]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},L1=a=>ea(0,255,a),Dc={...ts,transform:a=>Math.round(L1(a))},ni={test:_d("rgb","red"),parse:i0("red","green","blue"),transform:({red:a,green:i,blue:l,alpha:r=1})=>"rgba("+Dc.transform(a)+", "+Dc.transform(i)+", "+Dc.transform(l)+", "+rl(fl.transform(r))+")"};function U1(a){let i="",l="",r="",d="";return a.length>5?(i=a.substring(1,3),l=a.substring(3,5),r=a.substring(5,7),d=a.substring(7,9)):(i=a.substring(1,2),l=a.substring(2,3),r=a.substring(3,4),d=a.substring(4,5),i+=i,l+=l,r+=r,d+=d),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:d?parseInt(d,16)/255:1}}const Pc={test:_d("#"),parse:U1,transform:ni.transform},xl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Ma=xl("deg"),On=xl("%"),ve=xl("px"),H1=xl("vh"),G1=xl("vw"),gg={...On,parse:a=>On.parse(a)/100,transform:a=>On.transform(a*100)},Qi={test:_d("hsl","hue"),parse:i0("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:l,alpha:r=1})=>"hsla("+Math.round(a)+", "+On.transform(rl(i))+", "+On.transform(rl(l))+", "+rl(fl.transform(r))+")"},ct={test:a=>ni.test(a)||Pc.test(a)||Qi.test(a),parse:a=>ni.test(a)?ni.parse(a):Qi.test(a)?Qi.parse(a):Pc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?ni.transform(a):Qi.transform(a),getAnimatableNone:a=>{const i=ct.parse(a);return i.alpha=0,ct.transform(i)}},Y1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function q1(a){return isNaN(a)&&typeof a=="string"&&(a.match(Vd)?.length||0)+(a.match(Y1)?.length||0)>0}const s0="number",l0="color",X1="var",K1="var(",yg="${}",Q1=/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 hl(a){const i=a.toString(),l=[],r={color:[],number:[],var:[]},d=[];let h=0;const m=i.replace(Q1,g=>(ct.test(g)?(r.color.push(h),d.push(l0),l.push(ct.parse(g))):g.startsWith(K1)?(r.var.push(h),d.push(X1),l.push(g)):(r.number.push(h),d.push(s0),l.push(parseFloat(g))),++h,yg)).split(yg);return{values:l,split:m,indexes:r,types:d}}function r0(a){return hl(a).values}function o0(a){const{split:i,types:l}=hl(a),r=i.length;return d=>{let h="";for(let f=0;f<r;f++)if(h+=i[f],d[f]!==void 0){const m=l[f];m===s0?h+=rl(d[f]):m===l0?h+=ct.transform(d[f]):h+=d[f]}return h}}const Z1=a=>typeof a=="number"?0:ct.test(a)?ct.getAnimatableNone(a):a;function J1(a){const i=r0(a);return o0(a)(i.map(Z1))}const Ra={test:q1,parse:r0,createTransformer:o0,getAnimatableNone:J1};function Rc(a,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(i-a)*6*l:l<1/2?i:l<2/3?a+(i-a)*(2/3-l)*6:a}function P1({hue:a,saturation:i,lightness:l,alpha:r}){a/=360,i/=100,l/=100;let d=0,h=0,f=0;if(!i)d=h=f=l;else{const m=l<.5?l*(1+i):l+i-l*i,g=2*l-m;d=Rc(g,m,a+1/3),h=Rc(g,m,a),f=Rc(g,m,a-1/3)}return{red:Math.round(d*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:r}}function Wr(a,i){return l=>l>0?i:a}const Fe=(a,i,l)=>a+(i-a)*l,zc=(a,i,l)=>{const r=a*a,d=l*(i*i-r)+r;return d<0?0:Math.sqrt(d)},F1=[Pc,ni,Qi],W1=a=>F1.find(i=>i.test(a));function bg(a){const i=W1(a);if(!i)return!1;let l=i.parse(a);return i===Qi&&(l=P1(l)),l}const xg=(a,i)=>{const l=bg(a),r=bg(i);if(!l||!r)return Wr(a,i);const d={...l};return h=>(d.red=zc(l.red,r.red,h),d.green=zc(l.green,r.green,h),d.blue=zc(l.blue,r.blue,h),d.alpha=Fe(l.alpha,r.alpha,h),ni.transform(d))},Fc=new Set(["none","hidden"]);function $1(a,i){return Fc.has(a)?l=>l<=0?a:i:l=>l>=1?i:a}function I1(a,i){return l=>Fe(a,i,l)}function Bd(a){return typeof a=="number"?I1:typeof a=="string"?kd(a)?Wr:ct.test(a)?xg:n2:Array.isArray(a)?u0:typeof a=="object"?ct.test(a)?xg:e2:Wr}function u0(a,i){const l=[...a],r=l.length,d=a.map((h,f)=>Bd(h)(h,i[f]));return h=>{for(let f=0;f<r;f++)l[f]=d[f](h);return l}}function e2(a,i){const l={...a,...i},r={};for(const d in l)a[d]!==void 0&&i[d]!==void 0&&(r[d]=Bd(a[d])(a[d],i[d]));return d=>{for(const h in r)l[h]=r[h](d);return l}}function t2(a,i){const l=[],r={color:0,var:0,number:0};for(let d=0;d<i.values.length;d++){const h=i.types[d],f=a.indexes[h][r[h]],m=a.values[f]??0;l[d]=m,r[h]++}return l}const n2=(a,i)=>{const l=Ra.createTransformer(i),r=hl(a),d=hl(i);return r.indexes.var.length===d.indexes.var.length&&r.indexes.color.length===d.indexes.color.length&&r.indexes.number.length>=d.indexes.number.length?Fc.has(a)&&!d.values.length||Fc.has(i)&&!r.values.length?$1(a,i):yl(u0(t2(r,d),d.values),l):Wr(a,i)};function c0(a,i,l){return typeof a=="number"&&typeof i=="number"&&typeof l=="number"?Fe(a,i,l):Bd(a)(a,i)}const a2=a=>{const i=({timestamp:l})=>a(l);return{start:(l=!0)=>Pe.update(i,l),stop:()=>Da(i),now:()=>Mt.isProcessing?Mt.timestamp:Xt.now()}},d0=(a,i,l=10)=>{let r="";const d=Math.max(Math.round(i/l),2);for(let h=0;h<d;h++)r+=Math.round(a(h/(d-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$r=2e4;function Ld(a){let i=0;const l=50;let r=a.next(i);for(;!r.done&&i<$r;)i+=l,r=a.next(i);return i>=$r?1/0:i}function i2(a,i=100,l){const r=l({...a,keyframes:[0,i]}),d=Math.min(Ld(r),$r);return{type:"keyframes",ease:h=>r.next(d*h).value/i,duration:mn(d)}}const s2=5;function f0(a,i,l){const r=Math.max(i-s2,0);return Xy(l-a(r),i-r)}const tt={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},Oc=.001;function l2({duration:a=tt.duration,bounce:i=tt.bounce,velocity:l=tt.velocity,mass:r=tt.mass}){let d,h,f=1-i;f=ea(tt.minDamping,tt.maxDamping,f),a=ea(tt.minDuration,tt.maxDuration,mn(a)),f<1?(d=p=>{const b=p*f,x=b*a,S=b-l,T=Wc(p,f),M=Math.exp(-x);return Oc-S/T*M},h=p=>{const x=p*f*a,S=x*l+l,T=Math.pow(f,2)*Math.pow(p,2)*a,M=Math.exp(-x),O=Wc(Math.pow(p,2),f);return(-d(p)+Oc>0?-1:1)*((S-T)*M)/O}):(d=p=>{const b=Math.exp(-p*a),x=(p-l)*a+1;return-Oc+b*x},h=p=>{const b=Math.exp(-p*a),x=(l-p)*(a*a);return b*x});const m=5/a,g=o2(d,h,m);if(a=zn(a),isNaN(g))return{stiffness:tt.stiffness,damping:tt.damping,duration:a};{const p=Math.pow(g,2)*r;return{stiffness:p,damping:f*2*Math.sqrt(r*p),duration:a}}}const r2=12;function o2(a,i,l){let r=l;for(let d=1;d<r2;d++)r=r-a(r)/i(r);return r}function Wc(a,i){return a*Math.sqrt(1-i*i)}const u2=["duration","bounce"],c2=["stiffness","damping","mass"];function vg(a,i){return i.some(l=>a[l]!==void 0)}function d2(a){let i={velocity:tt.velocity,stiffness:tt.stiffness,damping:tt.damping,mass:tt.mass,isResolvedFromDuration:!1,...a};if(!vg(a,c2)&&vg(a,u2))if(a.visualDuration){const l=a.visualDuration,r=2*Math.PI/(l*1.2),d=r*r,h=2*ea(.05,1,1-(a.bounce||0))*Math.sqrt(d);i={...i,mass:tt.mass,stiffness:d,damping:h}}else{const l=l2(a);i={...i,...l,mass:tt.mass},i.isResolvedFromDuration=!0}return i}function Ir(a=tt.visualDuration,i=tt.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:r,restDelta:d}=l;const h=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],m={done:!1,value:h},{stiffness:g,damping:p,mass:b,duration:x,velocity:S,isResolvedFromDuration:T}=d2({...l,velocity:-mn(l.velocity||0)}),M=S||0,O=p/(2*Math.sqrt(g*b)),_=f-h,z=mn(Math.sqrt(g/b)),B=Math.abs(_)<5;r||(r=B?tt.restSpeed.granular:tt.restSpeed.default),d||(d=B?tt.restDelta.granular:tt.restDelta.default);let H;if(O<1){const U=Wc(z,O);H=W=>{const Q=Math.exp(-O*z*W);return f-Q*((M+O*z*_)/U*Math.sin(U*W)+_*Math.cos(U*W))}}else if(O===1)H=U=>f-Math.exp(-z*U)*(_+(M+z*_)*U);else{const U=z*Math.sqrt(O*O-1);H=W=>{const Q=Math.exp(-O*z*W),R=Math.min(U*W,300);return f-Q*((M+O*z*_)*Math.sinh(R)+U*_*Math.cosh(R))/U}}const F={calculatedDuration:T&&x||null,next:U=>{const W=H(U);if(T)m.done=U>=x;else{let Q=U===0?M:0;O<1&&(Q=U===0?zn(M):f0(H,U,W));const R=Math.abs(Q)<=r,te=Math.abs(f-W)<=d;m.done=R&&te}return m.value=m.done?f:W,m},toString:()=>{const U=Math.min(Ld(F),$r),W=d0(Q=>F.next(U*Q).value,U,30);return U+"ms "+W},toTransition:()=>{}};return F}Ir.applyToOptions=a=>{const i=i2(a,100,Ir);return a.ease=i.ease,a.duration=zn(i.duration),a.type="keyframes",a};function $c({keyframes:a,velocity:i=0,power:l=.8,timeConstant:r=325,bounceDamping:d=10,bounceStiffness:h=500,modifyTarget:f,min:m,max:g,restDelta:p=.5,restSpeed:b}){const x=a[0],S={done:!1,value:x},T=R=>m!==void 0&&R<m||g!==void 0&&R>g,M=R=>m===void 0?g:g===void 0||Math.abs(m-R)<Math.abs(g-R)?m:g;let O=l*i;const _=x+O,z=f===void 0?_:f(_);z!==_&&(O=z-x);const B=R=>-O*Math.exp(-R/r),H=R=>z+B(R),F=R=>{const te=B(R),J=H(R);S.done=Math.abs(te)<=p,S.value=S.done?z:J};let U,W;const Q=R=>{T(S.value)&&(U=R,W=Ir({keyframes:[S.value,M(S.value)],velocity:f0(H,R,S.value),damping:d,stiffness:h,restDelta:p,restSpeed:b}))};return Q(0),{calculatedDuration:null,next:R=>{let te=!1;return!W&&U===void 0&&(te=!0,F(R),Q(R)),U!==void 0&&R>=U?W.next(R-U):(!te&&F(R),S)}}}function f2(a,i,l){const r=[],d=l||ta.mix||c0,h=a.length-1;for(let f=0;f<h;f++){let m=d(a[f],a[f+1]);if(i){const g=Array.isArray(i)?i[f]||gn:i;m=yl(g,m)}r.push(m)}return r}function h2(a,i,{clamp:l=!0,ease:r,mixer:d}={}){const h=a.length;if(Ed(h===i.length),h===1)return()=>i[0];if(h===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=f2(i,r,d),g=m.length,p=b=>{if(f&&b<a[0])return i[0];let x=0;if(g>1)for(;x<a.length-2&&!(b<a[x+1]);x++);const S=dl(a[x],a[x+1],b);return m[x](S)};return l?b=>p(ea(a[0],a[h-1],b)):p}function m2(a,i){const l=a[a.length-1];for(let r=1;r<=i;r++){const d=dl(0,i,r);a.push(Fe(l,1,d))}}function p2(a){const i=[0];return m2(i,a.length-1),i}function g2(a,i){return a.map(l=>l*i)}function y2(a,i){return a.map(()=>i||Iy).splice(0,a.length-1)}function ol({duration:a=300,keyframes:i,times:l,ease:r="easeInOut"}){const d=M1(r)?r.map(pg):pg(r),h={done:!1,value:i[0]},f=g2(l&&l.length===i.length?l:p2(i),a),m=h2(f,i,{ease:Array.isArray(d)?d:y2(i,d)});return{calculatedDuration:a,next:g=>(h.value=m(g),h.done=g>=a,h)}}const b2=a=>a!==null;function Ud(a,{repeat:i,repeatType:l="loop"},r,d=1){const h=a.filter(b2),m=d<0||i&&l!=="loop"&&i%2===1?0:h.length-1;return!m||r===void 0?h[m]:r}const x2={decay:$c,inertia:$c,tween:ol,keyframes:ol,spring:Ir};function h0(a){typeof a.type=="string"&&(a.type=x2[a.type])}class Hd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const v2=a=>a/100;class Gd extends Hd{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==Xt.now()&&this.tick(Xt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;h0(i);const{type:l=ol,repeat:r=0,repeatDelay:d=0,repeatType:h,velocity:f=0}=i;let{keyframes:m}=i;const g=l||ol;g!==ol&&typeof m[0]!="number"&&(this.mixKeyframes=yl(v2,c0(m[0],m[1])),m=[0,100]);const p=g({...i,keyframes:m});h==="mirror"&&(this.mirroredGenerator=g({...i,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=Ld(p));const{calculatedDuration:b}=p;this.calculatedDuration=b,this.resolvedDuration=b+d,this.totalDuration=this.resolvedDuration*(r+1)-d,this.generator=p}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:r,totalDuration:d,mixKeyframes:h,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:g}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:b,repeat:x,repeatType:S,repeatDelay:T,type:M,onUpdate:O,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-d/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const z=this.currentTime-p*(this.playbackSpeed>=0?1:-1),B=this.playbackSpeed>=0?z<0:z>d;this.currentTime=Math.max(z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let H=this.currentTime,F=r;if(x){const R=Math.min(this.currentTime,d)/m;let te=Math.floor(R),J=R%1;!J&&R>=1&&(J=1),J===1&&te--,te=Math.min(te,x+1),!!(te%2)&&(S==="reverse"?(J=1-J,T&&(J-=T/m)):S==="mirror"&&(F=f)),H=ea(0,1,J)*m}const U=B?{done:!1,value:b[0]}:F.next(H);h&&(U.value=h(U.value));let{done:W}=U;!B&&g!==null&&(W=this.playbackSpeed>=0?this.currentTime>=d:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&W);return Q&&M!==$c&&(U.value=Ud(b,this.options,_,this.speed)),O&&O(U.value),Q&&this.finish(),U}then(i,l){return this.finished.then(i,l)}get duration(){return mn(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+mn(i)}get time(){return mn(this.currentTime)}set time(i){i=zn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(Xt.now());const l=this.playbackSpeed!==i;this.playbackSpeed=i,l&&(this.time=mn(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=a2,startTime:l}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=l??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function S2(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const ai=a=>a*180/Math.PI,Ic=a=>{const i=ai(Math.atan2(a[1],a[0]));return ed(i)},w2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Ic,rotateZ:Ic,skewX:a=>ai(Math.atan(a[1])),skewY:a=>ai(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},ed=a=>(a=a%360,a<0&&(a+=360),a),Sg=Ic,wg=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Cg=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),C2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wg,scaleY:Cg,scale:a=>(wg(a)+Cg(a))/2,rotateX:a=>ed(ai(Math.atan2(a[6],a[5]))),rotateY:a=>ed(ai(Math.atan2(-a[2],a[0]))),rotateZ:Sg,rotate:Sg,skewX:a=>ai(Math.atan(a[4])),skewY:a=>ai(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function td(a){return a.includes("scale")?1:0}function nd(a,i){if(!a||a==="none")return td(i);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,d;if(l)r=C2,d=l;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=w2,d=m}if(!d)return td(i);const h=r[i],f=d[1].split(",").map(T2);return typeof h=="function"?h(f):f[h]}const j2=(a,i)=>{const{transform:l="none"}=getComputedStyle(a);return nd(l,i)};function T2(a){return parseFloat(a.trim())}const ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],as=new Set(ns),jg=a=>a===ts||a===ve,N2=new Set(["x","y","z"]),A2=ns.filter(a=>!N2.has(a));function M2(a){const i=[];return A2.forEach(l=>{const r=a.getValue(l);r!==void 0&&(i.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),i}const ii={width:({x:a},{paddingLeft:i="0",paddingRight:l="0"})=>a.max-a.min-parseFloat(i)-parseFloat(l),height:({y:a},{paddingTop:i="0",paddingBottom:l="0"})=>a.max-a.min-parseFloat(i)-parseFloat(l),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>nd(i,"x"),y:(a,{transform:i})=>nd(i,"y")};ii.translateX=ii.x;ii.translateY=ii.y;const si=new Set;let ad=!1,id=!1,sd=!1;function m0(){if(id){const a=Array.from(si).filter(r=>r.needsMeasurement),i=new Set(a.map(r=>r.element)),l=new Map;i.forEach(r=>{const d=M2(r);d.length&&(l.set(r,d),r.render())}),a.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const d=l.get(r);d&&d.forEach(([h,f])=>{r.getValue(h)?.set(f)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,ad=!1,si.forEach(a=>a.complete(sd)),si.clear()}function p0(){si.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(id=!0)})}function E2(){sd=!0,p0(),m0(),sd=!1}class Yd{constructor(i,l,r,d,h,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=r,this.motionValue=d,this.element=h,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(si.add(this),ad||(ad=!0,Pe.read(p0),Pe.resolveKeyframes(m0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:r,motionValue:d}=this;if(i[0]===null){const h=d?.get(),f=i[i.length-1];if(h!==void 0)i[0]=h;else if(r&&l){const m=r.readValue(l,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),d&&h===void 0&&d.set(i[0])}S2(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),si.delete(this)}cancel(){this.state==="scheduled"&&(si.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const D2=a=>a.startsWith("--");function R2(a,i,l){D2(i)?a.style.setProperty(i,l):a.style[i]=l}const z2=Dd(()=>window.ScrollTimeline!==void 0),O2={};function k2(a,i){const l=Dd(a);return()=>O2[i]??l()}const g0=k2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ll=([a,i,l,r])=>`cubic-bezier(${a}, ${i}, ${l}, ${r})`,Tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ll([0,.65,.55,1]),circOut:ll([.55,0,1,.45]),backIn:ll([.31,.01,.66,-.59]),backOut:ll([.33,1.53,.69,.99])};function y0(a,i){if(a)return typeof a=="function"?g0()?d0(a,i):"ease-out":e0(a)?ll(a):Array.isArray(a)?a.map(l=>y0(l,i)||Tg.easeOut):Tg[a]}function V2(a,i,l,{delay:r=0,duration:d=300,repeat:h=0,repeatType:f="loop",ease:m="easeOut",times:g}={},p=void 0){const b={[i]:l};g&&(b.offset=g);const x=y0(m,d);Array.isArray(x)&&(b.easing=x);const S={delay:r,duration:d,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(b,S)}function b0(a){return typeof a=="function"&&"applyToOptions"in a}function _2({type:a,...i}){return b0(a)&&g0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class B2 extends Hd{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:l,name:r,keyframes:d,pseudoElement:h,allowFlatten:f=!1,finalKeyframe:m,onComplete:g}=i;this.isPseudoElement=!!h,this.allowFlatten=f,this.options=i,Ed(typeof i.type!="string");const p=_2(i);this.animation=V2(l,r,d,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const b=Ud(d,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(b):R2(l,r,b),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return mn(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+mn(i)}get time(){return mn(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=zn(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&z2()?(this.animation.timeline=i,gn):l(this)}}const x0={anticipate:Fy,backInOut:Py,circInOut:$y};function L2(a){return a in x0}function U2(a){typeof a.ease=="string"&&L2(a.ease)&&(a.ease=x0[a.ease])}const Ng=10;class H2 extends B2{constructor(i){U2(i),h0(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:r,onComplete:d,element:h,...f}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const m=new Gd({...f,autoplay:!1}),g=zn(this.finishedTime??this.time);l.setWithVelocity(m.sample(g-Ng).value,m.sample(g).value,Ng),m.stop()}}const Ag=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Ra.test(a)||a==="0")&&!a.startsWith("url("));function G2(a){const i=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==i)return!0}function Y2(a,i,l,r){const d=a[0];if(d===null)return!1;if(i==="display"||i==="visibility")return!0;const h=a[a.length-1],f=Ag(d,i),m=Ag(h,i);return!f||!m?!1:G2(a)||(l==="spring"||b0(l))&&r}function ld(a){a.duration=0,a.type="keyframes"}const q2=new Set(["opacity","clipPath","filter","transform"]),X2=Dd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function K2(a){const{motionValue:i,name:l,repeatDelay:r,repeatType:d,damping:h,type:f}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:p}=i.owner.getProps();return X2()&&l&&q2.has(l)&&(l!=="transform"||!p)&&!g&&!r&&d!=="mirror"&&h!==0&&f!=="inertia"}const Q2=40;class Z2 extends Hd{constructor({autoplay:i=!0,delay:l=0,type:r="keyframes",repeat:d=0,repeatDelay:h=0,repeatType:f="loop",keyframes:m,name:g,motionValue:p,element:b,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Xt.now();const S={autoplay:i,delay:l,type:r,repeat:d,repeatDelay:h,repeatType:f,name:g,motionValue:p,element:b,...x},T=b?.KeyframeResolver||Yd;this.keyframeResolver=new T(m,(M,O,_)=>this.onKeyframesResolved(M,O,S,!_),g,p,b),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,r,d){this.keyframeResolver=void 0;const{name:h,type:f,velocity:m,delay:g,isHandoff:p,onUpdate:b}=r;this.resolvedAt=Xt.now(),Y2(i,h,f,m)||((ta.instantAnimations||!g)&&b?.(Ud(i,r,l)),i[0]=i[i.length-1],ld(r),r.repeat=0);const S={startTime:d?this.resolvedAt?this.resolvedAt-this.createdAt>Q2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:i},T=!p&&K2(S)?new H2({...S,element:S.motionValue.owner.current}):new Gd(S);T.finished.then(()=>this.notifyFinished()).catch(gn),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),E2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const J2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function P2(a){const i=J2.exec(a);if(!i)return[,];const[,l,r,d]=i;return[`--${l??r}`,d]}function v0(a,i,l=1){const[r,d]=P2(a);if(!r)return;const h=window.getComputedStyle(i).getPropertyValue(r);if(h){const f=h.trim();return Gy(f)?parseFloat(f):f}return kd(d)?v0(d,i,l+1):d}function qd(a,i){return a?.[i]??a?.default??a}const S0=new Set(["width","height","top","left","right","bottom",...ns]),F2={test:a=>a==="auto",parse:a=>a},w0=a=>i=>i.test(a),C0=[ts,ve,On,Ma,G1,H1,F2],Mg=a=>C0.find(w0(a));function W2(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||qy(a):!0}const $2=new Set(["brightness","contrast","saturate","opacity"]);function I2(a){const[i,l]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[r]=l.match(Vd)||[];if(!r)return a;const d=l.replace(r,"");let h=$2.has(i)?1:0;return r!==l&&(h*=100),i+"("+h+d+")"}const eS=/\b([a-z-]*)\(.*?\)/gu,rd={...Ra,getAnimatableNone:a=>{const i=a.match(eS);return i?i.map(I2).join(" "):a}},Eg={...ts,transform:Math.round},tS={rotate:Ma,rotateX:Ma,rotateY:Ma,rotateZ:Ma,scale:Lr,scaleX:Lr,scaleY:Lr,scaleZ:Lr,skew:Ma,skewX:Ma,skewY:Ma,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:fl,originX:gg,originY:gg,originZ:ve},Xd={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,radius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,backgroundPositionX:ve,backgroundPositionY:ve,...tS,zIndex:Eg,fillOpacity:fl,strokeOpacity:fl,numOctaves:Eg},nS={...Xd,color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,filter:rd,WebkitFilter:rd},j0=a=>nS[a];function T0(a,i){let l=j0(a);return l!==rd&&(l=Ra),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const aS=new Set(["auto","none","0"]);function iS(a,i,l){let r=0,d;for(;r<a.length&&!d;){const h=a[r];typeof h=="string"&&!aS.has(h)&&hl(h).values.length&&(d=a[r]),r++}if(d&&l)for(const h of i)a[h]=T0(l,d)}class sS extends Yd{constructor(i,l,r,d,h){super(i,l,r,d,h,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let g=0;g<i.length;g++){let p=i[g];if(typeof p=="string"&&(p=p.trim(),kd(p))){const b=v0(p,l.current);b!==void 0&&(i[g]=b),g===i.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!S0.has(r)||i.length!==2)return;const[d,h]=i,f=Mg(d),m=Mg(h);if(f!==m)if(jg(f)&&jg(m))for(let g=0;g<i.length;g++){const p=i[g];typeof p=="string"&&(i[g]=parseFloat(p))}else ii[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,r=[];for(let d=0;d<i.length;d++)(i[d]===null||W2(i[d]))&&r.push(d);r.length&&iS(i,r,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ii[r](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const d=l[l.length-1];d!==void 0&&i.getValue(r,d).jump(d,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const d=i.getValue(l);d&&d.jump(this.measuredOrigin,!1);const h=r.length-1,f=r[h];r[h]=ii[l](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,g])=>{i.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function lS(a,i,l){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const d=l?.[a]??r.querySelectorAll(a);return d?Array.from(d):[]}return Array.from(a)}const N0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function A0(a){return Yy(a)&&"offsetHeight"in a}const Dg=30,rS=a=>!isNaN(parseFloat(a));class oS{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const d=Xt.now();if(this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=Xt.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=rS(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new Rd);const r=this.events[i].add(l);return i==="change"?()=>{r(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Xt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Dg)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Dg);return Xy(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(l),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ii(a,i){return new oS(a,i)}const{schedule:Kd}=t0(queueMicrotask,!1),wn={x:!1,y:!1};function M0(){return wn.x||wn.y}function uS(a){return a==="x"||a==="y"?wn[a]?null:(wn[a]=!0,()=>{wn[a]=!1}):wn.x||wn.y?null:(wn.x=wn.y=!0,()=>{wn.x=wn.y=!1})}function E0(a,i){const l=lS(a),r=new AbortController,d={passive:!0,...i,signal:r.signal};return[l,d,()=>r.abort()]}function Rg(a){return!(a.pointerType==="touch"||M0())}function cS(a,i,l={}){const[r,d,h]=E0(a,l),f=m=>{if(!Rg(m))return;const{target:g}=m,p=i(g,m);if(typeof p!="function"||!g)return;const b=x=>{Rg(x)&&(p(x),g.removeEventListener("pointerleave",b))};g.addEventListener("pointerleave",b,d)};return r.forEach(m=>{m.addEventListener("pointerenter",f,d)}),h}const D0=(a,i)=>i?a===i?!0:D0(a,i.parentElement):!1,Qd=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,dS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fS(a){return dS.has(a.tagName)||a.tabIndex!==-1}const Qr=new WeakSet;function zg(a){return i=>{i.key==="Enter"&&a(i)}}function kc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const hS=(a,i)=>{const l=a.currentTarget;if(!l)return;const r=zg(()=>{if(Qr.has(l))return;kc(l,"down");const d=zg(()=>{kc(l,"up")}),h=()=>kc(l,"cancel");l.addEventListener("keyup",d,i),l.addEventListener("blur",h,i)});l.addEventListener("keydown",r,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),i)};function Og(a){return Qd(a)&&!M0()}function mS(a,i,l={}){const[r,d,h]=E0(a,l),f=m=>{const g=m.currentTarget;if(!Og(m))return;Qr.add(g);const p=i(g,m),b=(T,M)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Qr.has(g)&&Qr.delete(g),Og(T)&&typeof p=="function"&&p(T,{success:M})},x=T=>{b(T,g===window||g===document||l.useGlobalTarget||D0(g,T.target))},S=T=>{b(T,!1)};window.addEventListener("pointerup",x,d),window.addEventListener("pointercancel",S,d)};return r.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",f,d),A0(m)&&(m.addEventListener("focus",p=>hS(p,d)),!fS(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),h}function R0(a){return Yy(a)&&"ownerSVGElement"in a}function pS(a){return R0(a)&&a.tagName==="svg"}const Dt=a=>!!(a&&a.getVelocity),gS=[...C0,ct,Ra],yS=a=>gS.find(w0(a)),Zd=w.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function kg(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function bS(...a){return i=>{let l=!1;const r=a.map(d=>{const h=kg(d,i);return!l&&typeof h=="function"&&(l=!0),h});if(l)return()=>{for(let d=0;d<r.length;d++){const h=r[d];typeof h=="function"?h():kg(a[d],null)}}}}function xS(...a){return w.useCallback(bS(...a),a)}class vS extends w.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(l&&i.isPresent&&!this.props.isPresent){const r=l.offsetParent,d=A0(r)&&r.offsetWidth||0,h=this.props.sizeRef.current;h.height=l.offsetHeight||0,h.width=l.offsetWidth||0,h.top=l.offsetTop,h.left=l.offsetLeft,h.right=d-h.width-h.left}return null}componentDidUpdate(){}render(){return this.props.children}}function SS({children:a,isPresent:i,anchorX:l,root:r}){const d=w.useId(),h=w.useRef(null),f=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=w.useContext(Zd),g=xS(h,a?.ref);return w.useInsertionEffect(()=>{const{width:p,height:b,top:x,left:S,right:T}=f.current;if(i||!h.current||!p||!b)return;const M=l==="left"?`left: ${S}`:`right: ${T}`;h.current.dataset.motionPopId=d;const O=document.createElement("style");m&&(O.nonce=m);const _=r??document.head;return _.appendChild(O),O.sheet&&O.sheet.insertRule(`
|
|
10
|
+
[data-motion-pop-id="${d}"] {
|
|
11
|
+
position: absolute !important;
|
|
12
|
+
width: ${p}px !important;
|
|
13
|
+
height: ${b}px !important;
|
|
14
|
+
${M}px !important;
|
|
15
|
+
top: ${x}px !important;
|
|
16
|
+
}
|
|
17
|
+
`),()=>{_.contains(O)&&_.removeChild(O)}},[i]),c.jsx(vS,{isPresent:i,childRef:h,sizeRef:f,children:w.cloneElement(a,{ref:g})})}const wS=({children:a,initial:i,isPresent:l,onExitComplete:r,custom:d,presenceAffectsLayout:h,mode:f,anchorX:m,root:g})=>{const p=Td(CS),b=w.useId();let x=!0,S=w.useMemo(()=>(x=!1,{id:b,initial:i,isPresent:l,custom:d,onExitComplete:T=>{p.set(T,!0);for(const M of p.values())if(!M)return;r&&r()},register:T=>(p.set(T,!1),()=>p.delete(T))}),[l,p,r]);return h&&x&&(S={...S}),w.useMemo(()=>{p.forEach((T,M)=>p.set(M,!1))},[l]),w.useEffect(()=>{!l&&!p.size&&r&&r()},[l]),f==="popLayout"&&(a=c.jsx(SS,{isPresent:l,anchorX:m,root:g,children:a})),c.jsx(so.Provider,{value:S,children:a})};function CS(){return new Map}function z0(a=!0){const i=w.useContext(so);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:d}=i,h=w.useId();w.useEffect(()=>{if(a)return d(h)},[a]);const f=w.useCallback(()=>a&&r&&r(h),[h,r,a]);return!l&&r?[!1,f]:[!0]}const Ur=a=>a.key||"";function Vg(a){const i=[];return w.Children.forEach(a,l=>{w.isValidElement(l)&&i.push(l)}),i}const Rt=({children:a,custom:i,initial:l=!0,onExitComplete:r,presenceAffectsLayout:d=!0,mode:h="sync",propagate:f=!1,anchorX:m="left",root:g})=>{const[p,b]=z0(f),x=w.useMemo(()=>Vg(a),[a]),S=f&&!p?[]:x.map(Ur),T=w.useRef(!0),M=w.useRef(x),O=Td(()=>new Map),[_,z]=w.useState(x),[B,H]=w.useState(x);Hy(()=>{T.current=!1,M.current=x;for(let W=0;W<B.length;W++){const Q=Ur(B[W]);S.includes(Q)?O.delete(Q):O.get(Q)!==!0&&O.set(Q,!1)}},[B,S.length,S.join("-")]);const F=[];if(x!==_){let W=[...x];for(let Q=0;Q<B.length;Q++){const R=B[Q],te=Ur(R);S.includes(te)||(W.splice(Q,0,R),F.push(R))}return h==="wait"&&F.length&&(W=F),H(Vg(W)),z(x),null}const{forceRender:U}=w.useContext(jd);return c.jsx(c.Fragment,{children:B.map(W=>{const Q=Ur(W),R=f&&!p?!1:x===B||S.includes(Q),te=()=>{if(O.has(Q))O.set(Q,!0);else return;let J=!0;O.forEach(q=>{q||(J=!1)}),J&&(U?.(),H(M.current),f&&b?.(),r&&r())};return c.jsx(wS,{isPresent:R,initial:!T.current||l?void 0:!1,custom:i,presenceAffectsLayout:d,mode:h,root:g,onExitComplete:R?void 0:te,anchorX:m,children:W},Q)})})},O0=w.createContext({strict:!1}),_g={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"]},es={};for(const a in _g)es[a]={isEnabled:i=>_g[a].some(l=>!!i[l])};function jS(a){for(const i in a)es[i]={...es[i],...a[i]}}const TS=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 eo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||TS.has(a)}let k0=a=>!eo(a);function NS(a){typeof a=="function"&&(k0=i=>i.startsWith("on")?!eo(i):a(i))}try{NS(require("@emotion/is-prop-valid").default)}catch{}function AS(a,i,l){const r={};for(const d in a)d==="values"&&typeof a.values=="object"||(k0(d)||l===!0&&eo(d)||!i&&!eo(d)||a.draggable&&d.startsWith("onDrag"))&&(r[d]=a[d]);return r}const lo=w.createContext({});function ro(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ml(a){return typeof a=="string"||Array.isArray(a)}const Jd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pd=["initial",...Jd];function oo(a){return ro(a.animate)||Pd.some(i=>ml(a[i]))}function V0(a){return!!(oo(a)||a.variants)}function MS(a,i){if(oo(a)){const{initial:l,animate:r}=a;return{initial:l===!1||ml(l)?l:void 0,animate:ml(r)?r:void 0}}return a.inherit!==!1?i:{}}function ES(a){const{initial:i,animate:l}=MS(a,w.useContext(lo));return w.useMemo(()=>({initial:i,animate:l}),[Bg(i),Bg(l)])}function Bg(a){return Array.isArray(a)?a.join(" "):a}function Lg(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const al={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(ve.test(a))a=parseFloat(a);else return a;const l=Lg(a,i.target.x),r=Lg(a,i.target.y);return`${l}% ${r}%`}},DS={correct:(a,{treeScale:i,projectionDelta:l})=>{const r=a,d=Ra.parse(a);if(d.length>5)return r;const h=Ra.createTransformer(a),f=typeof d[0]!="number"?1:0,m=l.x.scale*i.x,g=l.y.scale*i.y;d[0+f]/=m,d[1+f]/=g;const p=Fe(m,g,.5);return typeof d[2+f]=="number"&&(d[2+f]/=p),typeof d[3+f]=="number"&&(d[3+f]/=p),h(d)}},od={borderRadius:{...al,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:al,borderTopRightRadius:al,borderBottomLeftRadius:al,borderBottomRightRadius:al,boxShadow:DS};function _0(a,{layout:i,layoutId:l}){return as.has(a)||a.startsWith("origin")||(i||l!==void 0)&&(!!od[a]||a==="opacity")}const RS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zS=ns.length;function OS(a,i,l){let r="",d=!0;for(let h=0;h<zS;h++){const f=ns[h],m=a[f];if(m===void 0)continue;let g=!0;if(typeof m=="number"?g=m===(f.startsWith("scale")?1:0):g=parseFloat(m)===0,!g||l){const p=N0(m,Xd[f]);if(!g){d=!1;const b=RS[f]||f;r+=`${b}(${p}) `}l&&(i[f]=p)}}return r=r.trim(),l?r=l(i,d?"":r):d&&(r="none"),r}function Fd(a,i,l){const{style:r,vars:d,transformOrigin:h}=a;let f=!1,m=!1;for(const g in i){const p=i[g];if(as.has(g)){f=!0;continue}else if(a0(g)){d[g]=p;continue}else{const b=N0(p,Xd[g]);g.startsWith("origin")?(m=!0,h[g]=b):r[g]=b}}if(i.transform||(f||l?r.transform=OS(i,a.transform,l):r.transform&&(r.transform="none")),m){const{originX:g="50%",originY:p="50%",originZ:b=0}=h;r.transformOrigin=`${g} ${p} ${b}`}}const Wd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function B0(a,i,l){for(const r in i)!Dt(i[r])&&!_0(r,l)&&(a[r]=i[r])}function kS({transformTemplate:a},i){return w.useMemo(()=>{const l=Wd();return Fd(l,i,a),Object.assign({},l.vars,l.style)},[i])}function VS(a,i){const l=a.style||{},r={};return B0(r,l,a),Object.assign(r,kS(a,i)),r}function _S(a,i){const l={},r=VS(a,i);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=r,l}const BS={offset:"stroke-dashoffset",array:"stroke-dasharray"},LS={offset:"strokeDashoffset",array:"strokeDasharray"};function US(a,i,l=1,r=0,d=!0){a.pathLength=1;const h=d?BS:LS;a[h.offset]=ve.transform(-r);const f=ve.transform(i),m=ve.transform(l);a[h.array]=`${f} ${m}`}function L0(a,{attrX:i,attrY:l,attrScale:r,pathLength:d,pathSpacing:h=1,pathOffset:f=0,...m},g,p,b){if(Fd(a,m,p),g){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:S}=a;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=b?.transformBox??"fill-box",delete x.transformBox),i!==void 0&&(x.x=i),l!==void 0&&(x.y=l),r!==void 0&&(x.scale=r),d!==void 0&&US(x,d,h,f,!1)}const U0=()=>({...Wd(),attrs:{}}),H0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function HS(a,i,l,r){const d=w.useMemo(()=>{const h=U0();return L0(h,i,H0(r),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[i]);if(a.style){const h={};B0(h,a.style,a),d.style={...h,...d.style}}return d}const GS=["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 $d(a){return typeof a!="string"||a.includes("-")?!1:!!(GS.indexOf(a)>-1||/[A-Z]/u.test(a))}function YS(a,i,l,{latestValues:r},d,h=!1){const m=($d(a)?HS:_S)(i,r,d,a),g=AS(i,typeof a=="string",h),p=a!==w.Fragment?{...g,...m,ref:l}:{},{children:b}=i,x=w.useMemo(()=>Dt(b)?b.get():b,[b]);return w.createElement(a,{...p,children:x})}function Ug(a){const i=[{},{}];return a?.values.forEach((l,r)=>{i[0][r]=l.get(),i[1][r]=l.getVelocity()}),i}function Id(a,i,l,r){if(typeof i=="function"){const[d,h]=Ug(r);i=i(l!==void 0?l:a.custom,d,h)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[d,h]=Ug(r);i=i(l!==void 0?l:a.custom,d,h)}return i}function Zr(a){return Dt(a)?a.get():a}function qS({scrapeMotionValuesFromProps:a,createRenderState:i},l,r,d){return{latestValues:XS(l,r,d,a),renderState:i()}}function XS(a,i,l,r){const d={},h=r(a,{});for(const S in h)d[S]=Zr(h[S]);let{initial:f,animate:m}=a;const g=oo(a),p=V0(a);i&&p&&!g&&a.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let b=l?l.initial===!1:!1;b=b||f===!1;const x=b?m:f;if(x&&typeof x!="boolean"&&!ro(x)){const S=Array.isArray(x)?x:[x];for(let T=0;T<S.length;T++){const M=Id(a,S[T]);if(M){const{transitionEnd:O,transition:_,...z}=M;for(const B in z){let H=z[B];if(Array.isArray(H)){const F=b?H.length-1:0;H=H[F]}H!==null&&(d[B]=H)}for(const B in O)d[B]=O[B]}}}return d}const G0=a=>(i,l)=>{const r=w.useContext(lo),d=w.useContext(so),h=()=>qS(a,i,r,d);return l?h():Td(h)};function ef(a,i,l){const{style:r}=a,d={};for(const h in r)(Dt(r[h])||i.style&&Dt(i.style[h])||_0(h,a)||l?.getValue(h)?.liveStyle!==void 0)&&(d[h]=r[h]);return d}const KS=G0({scrapeMotionValuesFromProps:ef,createRenderState:Wd});function Y0(a,i,l){const r=ef(a,i,l);for(const d in a)if(Dt(a[d])||Dt(i[d])){const h=ns.indexOf(d)!==-1?"attr"+d.charAt(0).toUpperCase()+d.substring(1):d;r[h]=a[d]}return r}const QS=G0({scrapeMotionValuesFromProps:Y0,createRenderState:U0}),ZS=Symbol.for("motionComponentSymbol");function Zi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function JS(a,i,l){return w.useCallback(r=>{r&&a.onMount&&a.onMount(r),i&&(r?i.mount(r):i.unmount()),l&&(typeof l=="function"?l(r):Zi(l)&&(l.current=r))},[i])}const tf=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),PS="framerAppearId",q0="data-"+tf(PS),X0=w.createContext({});function FS(a,i,l,r,d){const{visualElement:h}=w.useContext(lo),f=w.useContext(O0),m=w.useContext(so),g=w.useContext(Zd).reducedMotion,p=w.useRef(null);r=r||f.renderer,!p.current&&r&&(p.current=r(a,{visualState:i,parent:h,props:l,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g}));const b=p.current,x=w.useContext(X0);b&&!b.projection&&d&&(b.type==="html"||b.type==="svg")&&WS(p.current,l,d,x);const S=w.useRef(!1);w.useInsertionEffect(()=>{b&&S.current&&b.update(l,m)});const T=l[q0],M=w.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return Hy(()=>{b&&(S.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),M.current&&b.animationState&&b.animationState.animateChanges())}),w.useEffect(()=>{b&&(!M.current&&b.animationState&&b.animationState.animateChanges(),M.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),M.current=!1),b.enteringChildren=void 0)}),b}function WS(a,i,l,r){const{layoutId:d,layout:h,drag:f,dragConstraints:m,layoutScroll:g,layoutRoot:p,layoutCrossfade:b}=i;a.projection=new l(a.latestValues,i["data-framer-portal-id"]?void 0:K0(a.parent)),a.projection.setOptions({layoutId:d,layout:h,alwaysMeasureLayout:!!f||m&&Zi(m),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:r,crossfade:b,layoutScroll:g,layoutRoot:p})}function K0(a){if(a)return a.options.allowProjection!==!1?a.projection:K0(a.parent)}function Vc(a,{forwardMotionProps:i=!1}={},l,r){l&&jS(l);const d=$d(a)?QS:KS;function h(m,g){let p;const b={...w.useContext(Zd),...m,layoutId:$S(m)},{isStatic:x}=b,S=ES(m),T=d(m,x);if(!x&&Nd){IS();const M=ew(b);p=M.MeasureLayout,S.visualElement=FS(a,T,b,r,M.ProjectionNode)}return c.jsxs(lo.Provider,{value:S,children:[p&&S.visualElement?c.jsx(p,{visualElement:S.visualElement,...b}):null,YS(a,m,JS(T,S.visualElement,g),T,x,i)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=w.forwardRef(h);return f[ZS]=a,f}function $S({layoutId:a}){const i=w.useContext(jd).id;return i&&a!==void 0?i+"-"+a:a}function IS(a,i){w.useContext(O0).strict}function ew(a){const{drag:i,layout:l}=es;if(!i&&!l)return{};const r={...i,...l};return{MeasureLayout:i?.isEnabled(a)||l?.isEnabled(a)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function tw(a,i){if(typeof Proxy>"u")return Vc;const l=new Map,r=(h,f)=>Vc(h,f,a,i),d=(h,f)=>r(h,f);return new Proxy(d,{get:(h,f)=>f==="create"?r:(l.has(f)||l.set(f,Vc(f,void 0,a,i)),l.get(f))})}function Q0({top:a,left:i,right:l,bottom:r}){return{x:{min:i,max:l},y:{min:a,max:r}}}function nw({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function aw(a,i){if(!i)return a;const l=i({x:a.left,y:a.top}),r=i({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function _c(a){return a===void 0||a===1}function ud({scale:a,scaleX:i,scaleY:l}){return!_c(a)||!_c(i)||!_c(l)}function ei(a){return ud(a)||Z0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Z0(a){return Hg(a.x)||Hg(a.y)}function Hg(a){return a&&a!=="0%"}function to(a,i,l){const r=a-l,d=i*r;return l+d}function Gg(a,i,l,r,d){return d!==void 0&&(a=to(a,d,r)),to(a,l,r)+i}function cd(a,i=0,l=1,r,d){a.min=Gg(a.min,i,l,r,d),a.max=Gg(a.max,i,l,r,d)}function J0(a,{x:i,y:l}){cd(a.x,i.translate,i.scale,i.originPoint),cd(a.y,l.translate,l.scale,l.originPoint)}const Yg=.999999999999,qg=1.0000000000001;function iw(a,i,l,r=!1){const d=l.length;if(!d)return;i.x=i.y=1;let h,f;for(let m=0;m<d;m++){h=l[m],f=h.projectionDelta;const{visualElement:g}=h.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Pi(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,J0(a,f)),r&&ei(h.latestValues)&&Pi(a,h.latestValues))}i.x<qg&&i.x>Yg&&(i.x=1),i.y<qg&&i.y>Yg&&(i.y=1)}function Ji(a,i){a.min=a.min+i,a.max=a.max+i}function Xg(a,i,l,r,d=.5){const h=Fe(a.min,a.max,d);cd(a,i,l,h,r)}function Pi(a,i){Xg(a.x,i.x,i.scaleX,i.scale,i.originX),Xg(a.y,i.y,i.scaleY,i.scale,i.originY)}function P0(a,i){return Q0(aw(a.getBoundingClientRect(),i))}function sw(a,i,l){const r=P0(a,l),{scroll:d}=i;return d&&(Ji(r.x,d.offset.x),Ji(r.y,d.offset.y)),r}const Kg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fi=()=>({x:Kg(),y:Kg()}),Qg=()=>({min:0,max:0}),bt=()=>({x:Qg(),y:Qg()}),dd={current:null},F0={current:!1};function lw(){if(F0.current=!0,!!Nd)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>dd.current=a.matches;a.addEventListener("change",i),i()}else dd.current=!1}const rw=new WeakMap;function ow(a,i,l){for(const r in i){const d=i[r],h=l[r];if(Dt(d))a.addValue(r,d);else if(Dt(h))a.addValue(r,Ii(d,{owner:a}));else if(h!==d)if(a.hasValue(r)){const f=a.getValue(r);f.liveStyle===!0?f.jump(d):f.hasAnimated||f.set(d)}else{const f=a.getStaticValue(r);a.addValue(r,Ii(f!==void 0?f:d,{owner:a}))}}for(const r in l)i[r]===void 0&&a.removeValue(r);return i}const Zg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uw{scrapeMotionValuesFromProps(i,l,r){return{}}constructor({parent:i,props:l,presenceContext:r,reducedMotionConfig:d,blockInitialAnimation:h,visualState:f},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yd,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 S=Xt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Pe.render(this.render,!1,!0))};const{latestValues:g,renderState:p}=f;this.latestValues=g,this.baseTarget={...g},this.initialValues=l.initial?{...g}:{},this.renderState=p,this.parent=i,this.props=l,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=d,this.options=m,this.blockInitialAnimation=!!h,this.isControllingVariants=oo(l),this.isVariantNode=V0(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:b,...x}=this.scrapeMotionValuesFromProps(l,{},this);for(const S in x){const T=x[S];g[S]!==void 0&&Dt(T)&&T.set(g[S])}}mount(i){this.current=i,rw.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,r)=>this.bindToMotionValue(r,l)),F0.current||lw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:dd.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Da(this.notifyUpdate),Da(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const l=this.features[i];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const r=as.has(i);r&&this.onBindTransform&&this.onBindTransform();const d=l.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{d(),h&&h(),l.owner&&l.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in es){const l=es[i];if(!l)continue;const{isEnabled:r,Feature:d}=l;if(!this.features[i]&&d&&r(this.props)&&(this.features[i]=new d(this)),this.features[i]){const h=this.features[i];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<Zg.length;r++){const d=Zg[r];this.propEventSubscriptions[d]&&(this.propEventSubscriptions[d](),delete this.propEventSubscriptions[d]);const h="on"+d,f=i[h];f&&(this.propEventSubscriptions[d]=this.on(d,f))}this.prevMotionValues=ow(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const r=this.values.get(i);l!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&l!==void 0&&(r=Ii(l===null?void 0:l,{owner:this}),this.addValue(i,r)),r}readValue(i,l){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(Gy(r)||qy(r))?r=parseFloat(r):!yS(r)&&Ra.test(l)&&(r=T0(i,l)),this.setBaseTarget(i,Dt(r)?r.get():r)),Dt(r)?r.get():r}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const h=Id(this.props,l,this.presenceContext?.custom);h&&(r=h[i])}if(l&&r!==void 0)return r;const d=this.getBaseTargetFromProps(this.props,i);return d!==void 0&&!Dt(d)?d:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new Rd),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Kd.render(this.render)}}class W0 extends uw{constructor(){super(...arguments),this.KeyframeResolver=sS}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){return i.style?i.style[l]:void 0}removeValueFromRenderState(i,{vars:l,style:r}){delete l[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Dt(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}function $0(a,{style:i,vars:l},r,d){const h=a.style;let f;for(f in i)h[f]=i[f];d?.applyProjectionStyles(h,r);for(f in l)h.setProperty(f,l[f])}function cw(a){return window.getComputedStyle(a)}class dw extends W0{constructor(){super(...arguments),this.type="html",this.renderInstance=$0}readValueFromInstance(i,l){if(as.has(l))return this.projection?.isProjecting?td(l):j2(i,l);{const r=cw(i),d=(a0(l)?r.getPropertyValue(l):r[l])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:l}){return P0(i,l)}build(i,l,r){Fd(i,l,r.transformTemplate)}scrapeMotionValuesFromProps(i,l,r){return ef(i,l,r)}}const I0=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 fw(a,i,l,r){$0(a,i,void 0,r);for(const d in i.attrs)a.setAttribute(I0.has(d)?d:tf(d),i.attrs[d])}class hw extends W0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(as.has(l)){const r=j0(l);return r&&r.default||0}return l=I0.has(l)?l:tf(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,r){return Y0(i,l,r)}build(i,l,r){L0(i,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,l,r,d){fw(i,l,r,d)}mount(i){this.isSVGTag=H0(i.tagName),super.mount(i)}}const mw=(a,i)=>$d(a)?new hw(i):new dw(i,{allowProjection:a!==w.Fragment});function Wi(a,i,l){const r=a.getProps();return Id(r,i,l!==void 0?l:r.custom,a)}const fd=a=>Array.isArray(a);function pw(a,i,l){a.hasValue(i)?a.getValue(i).set(l):a.addValue(i,Ii(l))}function gw(a){return fd(a)?a[a.length-1]||0:a}function yw(a,i){const l=Wi(a,i);let{transitionEnd:r={},transition:d={},...h}=l||{};h={...h,...r};for(const f in h){const m=gw(h[f]);pw(a,f,m)}}function bw(a){return!!(Dt(a)&&a.add)}function hd(a,i){const l=a.getValue("willChange");if(bw(l))return l.add(i);if(!l&&ta.WillChange){const r=new ta.WillChange("auto");a.addValue("willChange",r),r.add(i)}}function eb(a){return a.props[q0]}const xw=a=>a!==null;function vw(a,{repeat:i,repeatType:l="loop"},r){const d=a.filter(xw),h=i&&l!=="loop"&&i%2===1?0:d.length-1;return d[h]}const Sw={type:"spring",stiffness:500,damping:25,restSpeed:10},ww=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),Cw={type:"keyframes",duration:.8},jw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tw=(a,{keyframes:i})=>i.length>2?Cw:as.has(a)?a.startsWith("scale")?ww(i[1]):Sw:jw;function Nw({when:a,delay:i,delayChildren:l,staggerChildren:r,staggerDirection:d,repeat:h,repeatType:f,repeatDelay:m,from:g,elapsed:p,...b}){return!!Object.keys(b).length}const nf=(a,i,l,r={},d,h)=>f=>{const m=qd(r,a)||{},g=m.delay||r.delay||0;let{elapsed:p=0}=r;p=p-zn(g);const b={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:S=>{i.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:h?void 0:d};Nw(m)||Object.assign(b,Tw(a,b)),b.duration&&(b.duration=zn(b.duration)),b.repeatDelay&&(b.repeatDelay=zn(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let x=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(ld(b),b.delay===0&&(x=!0)),(ta.instantAnimations||ta.skipAnimations)&&(x=!0,ld(b),b.delay=0),b.allowFlatten=!m.type&&!m.ease,x&&!h&&i.get()!==void 0){const S=vw(b.keyframes,m);if(S!==void 0){Pe.update(()=>{b.onUpdate(S),b.onComplete()});return}}return m.isSync?new Gd(b):new Z2(b)};function Aw({protectedKeys:a,needsAnimating:i},l){const r=a.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,r}function tb(a,i,{delay:l=0,transitionOverride:r,type:d}={}){let{transition:h=a.getDefaultTransition(),transitionEnd:f,...m}=i;r&&(h=r);const g=[],p=d&&a.animationState&&a.animationState.getState()[d];for(const b in m){const x=a.getValue(b,a.latestValues[b]??null),S=m[b];if(S===void 0||p&&Aw(p,b))continue;const T={delay:l,...qd(h||{},b)},M=x.get();if(M!==void 0&&!x.isAnimating&&!Array.isArray(S)&&S===M&&!T.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const z=eb(a);if(z){const B=window.MotionHandoffAnimation(z,b,Pe);B!==null&&(T.startTime=B,O=!0)}}hd(a,b),x.start(nf(b,x,S,a.shouldReduceMotion&&S0.has(b)?{type:!1}:T,a,O));const _=x.animation;_&&g.push(_)}return f&&Promise.all(g).then(()=>{Pe.update(()=>{f&&yw(a,f)})}),g}function nb(a,i,l,r=0,d=1){const h=Array.from(a).sort((p,b)=>p.sortNodePosition(b)).indexOf(i),f=a.size,m=(f-1)*r;return typeof l=="function"?l(h,f):d===1?h*r:m-h*r}function md(a,i,l={}){const r=Wi(a,i,l.type==="exit"?a.presenceContext?.custom:void 0);let{transition:d=a.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(d=l.transitionOverride);const h=r?()=>Promise.all(tb(a,r,l)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:p=0,staggerChildren:b,staggerDirection:x}=d;return Mw(a,i,g,p,b,x,l)}:()=>Promise.resolve(),{when:m}=d;if(m){const[g,p]=m==="beforeChildren"?[h,f]:[f,h];return g().then(()=>p())}else return Promise.all([h(),f(l.delay)])}function Mw(a,i,l=0,r=0,d=0,h=1,f){const m=[];for(const g of a.variantChildren)g.notify("AnimationStart",i),m.push(md(g,i,{...f,delay:l+(typeof r=="function"?0:r)+nb(a.variantChildren,g,r,d,h)}).then(()=>g.notify("AnimationComplete",i)));return Promise.all(m)}function Ew(a,i,l={}){a.notify("AnimationStart",i);let r;if(Array.isArray(i)){const d=i.map(h=>md(a,h,l));r=Promise.all(d)}else if(typeof i=="string")r=md(a,i,l);else{const d=typeof i=="function"?Wi(a,i,l.custom):i;r=Promise.all(tb(a,d,l))}return r.then(()=>{a.notify("AnimationComplete",i)})}function ab(a,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==a.length)return!1;for(let r=0;r<l;r++)if(i[r]!==a[r])return!1;return!0}const Dw=Pd.length;function ib(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?ib(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const i={};for(let l=0;l<Dw;l++){const r=Pd[l],d=a.props[r];(ml(d)||d===!1)&&(i[r]=d)}return i}const Rw=[...Jd].reverse(),zw=Jd.length;function Ow(a){return i=>Promise.all(i.map(({animation:l,options:r})=>Ew(a,l,r)))}function kw(a){let i=Ow(a),l=Jg(),r=!0;const d=g=>(p,b)=>{const x=Wi(a,b,g==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:S,transitionEnd:T,...M}=x;p={...p,...M,...T}}return p};function h(g){i=g(a)}function f(g){const{props:p}=a,b=ib(a.parent)||{},x=[],S=new Set;let T={},M=1/0;for(let _=0;_<zw;_++){const z=Rw[_],B=l[z],H=p[z]!==void 0?p[z]:b[z],F=ml(H),U=z===g?B.isActive:null;U===!1&&(M=_);let W=H===b[z]&&H!==p[z]&&F;if(W&&r&&a.manuallyAnimateOnMount&&(W=!1),B.protectedKeys={...T},!B.isActive&&U===null||!H&&!B.prevProp||ro(H)||typeof H=="boolean")continue;const Q=Vw(B.prevProp,H);let R=Q||z===g&&B.isActive&&!W&&F||_>M&&F,te=!1;const J=Array.isArray(H)?H:[H];let q=J.reduce(d(z),{});U===!1&&(q={});const{prevResolvedValues:ie={}}=B,le={...ie,...q},oe=Y=>{R=!0,S.has(Y)&&(te=!0,S.delete(Y)),B.needsAnimating[Y]=!0;const E=a.getValue(Y);E&&(E.liveStyle=!1)};for(const Y in le){const E=q[Y],re=ie[Y];if(T.hasOwnProperty(Y))continue;let se=!1;fd(E)&&fd(re)?se=!ab(E,re):se=E!==re,se?E!=null?oe(Y):S.add(Y):E!==void 0&&S.has(Y)?oe(Y):B.protectedKeys[Y]=!0}B.prevProp=H,B.prevResolvedValues=q,B.isActive&&(T={...T,...q}),r&&a.blockInitialAnimation&&(R=!1);const I=W&&Q;R&&(!I||te)&&x.push(...J.map(Y=>{const E={type:z};if(typeof Y=="string"&&r&&!I&&a.manuallyAnimateOnMount&&a.parent){const{parent:re}=a,se=Wi(re,Y);if(re.enteringChildren&&se){const{delayChildren:C}=se.transition||{};E.delay=nb(re.enteringChildren,a,C)}}return{animation:Y,options:E}}))}if(S.size){const _={};if(typeof p.initial!="boolean"){const z=Wi(a,Array.isArray(p.initial)?p.initial[0]:p.initial);z&&z.transition&&(_.transition=z.transition)}S.forEach(z=>{const B=a.getBaseTarget(z),H=a.getValue(z);H&&(H.liveStyle=!0),_[z]=B??null}),x.push({animation:_})}let O=!!x.length;return r&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(O=!1),r=!1,O?i(x):Promise.resolve()}function m(g,p){if(l[g].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(g,p)),l[g].isActive=p;const b=f(g);for(const x in l)l[x].protectedKeys={};return b}return{animateChanges:f,setActive:m,setAnimateFunction:h,getState:()=>l,reset:()=>{l=Jg()}}}function Vw(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!ab(i,a):!1}function Wa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jg(){return{animate:Wa(!0),whileInView:Wa(),whileHover:Wa(),whileTap:Wa(),whileDrag:Wa(),whileFocus:Wa(),exit:Wa()}}class za{constructor(i){this.isMounted=!1,this.node=i}update(){}}class _w extends za{constructor(i){super(i),i.animationState||(i.animationState=kw(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();ro(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Bw=0;class Lw extends za{constructor(){super(...arguments),this.id=Bw++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const d=this.node.animationState.setActive("exit",!i);l&&!i&&d.then(()=>{l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const Uw={animation:{Feature:_w},exit:{Feature:Lw}};function pl(a,i,l,r={passive:!0}){return a.addEventListener(i,l,r),()=>a.removeEventListener(i,l)}function vl(a){return{point:{x:a.pageX,y:a.pageY}}}const Hw=a=>i=>Qd(i)&&a(i,vl(i));function ul(a,i,l,r){return pl(a,i,Hw(l),r)}const sb=1e-4,Gw=1-sb,Yw=1+sb,lb=.01,qw=0-lb,Xw=0+lb;function Ot(a){return a.max-a.min}function Kw(a,i,l){return Math.abs(a-i)<=l}function Pg(a,i,l,r=.5){a.origin=r,a.originPoint=Fe(i.min,i.max,a.origin),a.scale=Ot(l)/Ot(i),a.translate=Fe(l.min,l.max,a.origin)-a.originPoint,(a.scale>=Gw&&a.scale<=Yw||isNaN(a.scale))&&(a.scale=1),(a.translate>=qw&&a.translate<=Xw||isNaN(a.translate))&&(a.translate=0)}function cl(a,i,l,r){Pg(a.x,i.x,l.x,r?r.originX:void 0),Pg(a.y,i.y,l.y,r?r.originY:void 0)}function Fg(a,i,l){a.min=l.min+i.min,a.max=a.min+Ot(i)}function Qw(a,i,l){Fg(a.x,i.x,l.x),Fg(a.y,i.y,l.y)}function Wg(a,i,l){a.min=i.min-l.min,a.max=a.min+Ot(i)}function no(a,i,l){Wg(a.x,i.x,l.x),Wg(a.y,i.y,l.y)}function hn(a){return[a("x"),a("y")]}const rb=({current:a})=>a?a.ownerDocument.defaultView:null,$g=(a,i)=>Math.abs(a-i);function Zw(a,i){const l=$g(a.x,i.x),r=$g(a.y,i.y);return Math.sqrt(l**2+r**2)}class ob{constructor(i,l,{transformPagePoint:r,contextWindow:d=window,dragSnapToOrigin:h=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Lc(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,M=Zw(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!M)return;const{point:O}=S,{timestamp:_}=Mt;this.history.push({...O,timestamp:_});const{onStart:z,onMove:B}=this.handlers;T||(z&&z(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,S)},this.handlePointerMove=(S,T)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Bc(T,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(S,T)=>{this.end();const{onEnd:M,onSessionEnd:O,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=Lc(S.type==="pointercancel"?this.lastMoveEventInfo:Bc(T,this.transformPagePoint),this.history);this.startEvent&&M&&M(S,z),O&&O(S,z)},!Qd(i))return;this.dragSnapToOrigin=h,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=d||window;const m=vl(i),g=Bc(m,this.transformPagePoint),{point:p}=g,{timestamp:b}=Mt;this.history=[{...p,timestamp:b}];const{onSessionStart:x}=l;x&&x(i,Lc(g,this.history)),this.removeListeners=yl(ul(this.contextWindow,"pointermove",this.handlePointerMove),ul(this.contextWindow,"pointerup",this.handlePointerUp),ul(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Da(this.updatePoint)}}function Bc(a,i){return i?{point:i(a.point)}:a}function Ig(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Lc({point:a},i){return{point:a,delta:Ig(a,ub(i)),offset:Ig(a,Jw(i)),velocity:Pw(i,.1)}}function Jw(a){return a[0]}function ub(a){return a[a.length-1]}function Pw(a,i){if(a.length<2)return{x:0,y:0};let l=a.length-1,r=null;const d=ub(a);for(;l>=0&&(r=a[l],!(d.timestamp-r.timestamp>zn(i)));)l--;if(!r)return{x:0,y:0};const h=mn(d.timestamp-r.timestamp);if(h===0)return{x:0,y:0};const f={x:(d.x-r.x)/h,y:(d.y-r.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function Fw(a,{min:i,max:l},r){return i!==void 0&&a<i?a=r?Fe(i,a,r.min):Math.max(a,i):l!==void 0&&a>l&&(a=r?Fe(l,a,r.max):Math.min(a,l)),a}function ey(a,i,l){return{min:i!==void 0?a.min+i:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function Ww(a,{top:i,left:l,bottom:r,right:d}){return{x:ey(a.x,l,d),y:ey(a.y,i,r)}}function ty(a,i){let l=i.min-a.min,r=i.max-a.max;return i.max-i.min<a.max-a.min&&([l,r]=[r,l]),{min:l,max:r}}function $w(a,i){return{x:ty(a.x,i.x),y:ty(a.y,i.y)}}function Iw(a,i){let l=.5;const r=Ot(a),d=Ot(i);return d>r?l=dl(i.min,i.max-r,a.min):r>d&&(l=dl(a.min,a.max-d,i.min)),ea(0,1,l)}function eC(a,i){const l={};return i.min!==void 0&&(l.min=i.min-a.min),i.max!==void 0&&(l.max=i.max-a.min),l}const pd=.35;function tC(a=pd){return a===!1?a=0:a===!0&&(a=pd),{x:ny(a,"left","right"),y:ny(a,"top","bottom")}}function ny(a,i,l){return{min:ay(a,i),max:ay(a,l)}}function ay(a,i){return typeof a=="number"?a:a[i]||0}const nC=new WeakMap;class aC{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:d}=this.visualElement;if(d&&d.isPresent===!1)return;const h=x=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),l&&this.snapToCursor(vl(x).point)},f=(x,S)=>{const{drag:T,dragPropagation:M,onDragStart:O}=this.getProps();if(T&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=uS(T),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),hn(z=>{let B=this.getAxisMotionValue(z).get()||0;if(On.test(B)){const{projection:H}=this.visualElement;if(H&&H.layout){const F=H.layout.layoutBox[z];F&&(B=Ot(F)*(parseFloat(B)/100))}}this.originPoint[z]=B}),O&&Pe.postRender(()=>O(x,S)),hd(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},m=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:M,onDirectionLock:O,onDrag:_}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:z}=S;if(M&&this.currentDirection===null){this.currentDirection=iC(z),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",S.point,z),this.updateAxis("y",S.point,z),this.visualElement.render(),_&&_(x,S)},g=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>hn(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:b}=this.getProps();this.panSession=new ob(i,{onSessionStart:h,onStart:f,onMove:m,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:r,contextWindow:rb(this.visualElement)})}stop(i,l){const r=i||this.latestPointerEvent,d=l||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!d||!r)return;const{velocity:f}=d;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Pe.postRender(()=>m(r,d))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}updateAxis(i,l,r){const{drag:d}=this.getProps();if(!r||!Hr(i,d,this.currentDirection))return;const h=this.getAxisMotionValue(i);let f=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(f=Fw(f,this.constraints[i],this.elastic[i])),h.set(f)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;i&&Zi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=Ww(r.layoutBox,i):this.constraints=!1,this.elastic=tC(l),d!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&hn(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=eC(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Zi(i))return!1;const r=i.current,{projection:d}=this.visualElement;if(!d||!d.layout)return!1;const h=sw(r,d.root,this.visualElement.getTransformPagePoint());let f=$w(d.layout.layoutBox,h);if(l){const m=l(nw(f));this.hasMutatedConstraints=!!m,m&&(f=Q0(m))}return f}startAnimation(i){const{drag:l,dragMomentum:r,dragElastic:d,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),g=this.constraints||{},p=hn(b=>{if(!Hr(b,l,this.currentDirection))return;let x=g&&g[b]||{};f&&(x={min:0,max:0});const S=d?200:1e6,T=d?40:1e7,M={type:"inertia",velocity:r?i[b]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...h,...x};return this.startAxisValueAnimation(b,M)});return Promise.all(p).then(m)}startAxisValueAnimation(i,l){const r=this.getAxisMotionValue(i);return hd(this.visualElement,i),r.start(nf(i,r,0,l,this.visualElement,!1))}stopAnimation(){hn(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){hn(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),d=r[l];return d||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){hn(l=>{const{drag:r}=this.getProps();if(!Hr(l,r,this.currentDirection))return;const{projection:d}=this.visualElement,h=this.getAxisMotionValue(l);if(d&&d.layout){const{min:f,max:m}=d.layout.layoutBox[l];h.set(i[l]-Fe(f,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!Zi(l)||!r||!this.constraints)return;this.stopAnimation();const d={x:0,y:0};hn(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const g=m.get();d[f]=Iw({min:g,max:g},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),hn(f=>{if(!Hr(f,i,null))return;const m=this.getAxisMotionValue(f),{min:g,max:p}=this.constraints[f];m.set(Fe(g,p,d[f]))})}addListeners(){if(!this.visualElement.current)return;nC.set(this.visualElement,this);const i=this.visualElement.current,l=ul(i,"pointerdown",g=>{const{drag:p,dragListener:b=!0}=this.getProps();p&&b&&this.start(g)}),r=()=>{const{dragConstraints:g}=this.getProps();Zi(g)&&g.current&&(this.constraints=this.resolveRefConstraints())},{projection:d}=this.visualElement,h=d.addEventListener("measure",r);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Pe.read(r);const f=pl(window,"resize",()=>this.scalePositionWithinConstraints()),m=d.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:p})=>{this.isDragging&&p&&(hn(b=>{const x=this.getAxisMotionValue(b);x&&(this.originPoint[b]+=g[b].translate,x.set(x.get()+g[b].translate))}),this.visualElement.render())}));return()=>{f(),l(),h(),m&&m()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:d=!1,dragConstraints:h=!1,dragElastic:f=pd,dragMomentum:m=!0}=i;return{...i,drag:l,dragDirectionLock:r,dragPropagation:d,dragConstraints:h,dragElastic:f,dragMomentum:m}}}function Hr(a,i,l){return(i===!0||i===a)&&(l===null||l===a)}function iC(a,i=10){let l=null;return Math.abs(a.y)>i?l="y":Math.abs(a.x)>i&&(l="x"),l}class sC extends za{constructor(i){super(i),this.removeGroupControls=gn,this.removeListeners=gn,this.controls=new aC(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gn}unmount(){this.removeGroupControls(),this.removeListeners()}}const iy=a=>(i,l)=>{a&&Pe.postRender(()=>a(i,l))};class lC extends za{constructor(){super(...arguments),this.removePointerDownListener=gn}onPointerDown(i){this.session=new ob(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rb(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:r,onPanEnd:d}=this.node.getProps();return{onSessionStart:iy(i),onStart:iy(l),onMove:r,onEnd:(h,f)=>{delete this.session,d&&Pe.postRender(()=>d(h,f))}}}mount(){this.removePointerDownListener=ul(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Jr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Uc=!1;class rC extends w.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r,layoutId:d}=this.props,{projection:h}=i;h&&(l.group&&l.group.add(h),r&&r.register&&d&&r.register(h),Uc&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),Jr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:r,drag:d,isPresent:h}=this.props,{projection:f}=r;return f&&(f.isPresent=h,Uc=!0,d||i.layoutDependency!==l||l===void 0||i.isPresent!==h?f.willUpdate():this.safeToRemove(),i.isPresent!==h&&(h?f.promote():f.relegate()||Pe.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Kd.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:d}=i;Uc=!0,d&&(d.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(d),r&&r.deregister&&r.deregister(d))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function cb(a){const[i,l]=z0(),r=w.useContext(jd);return c.jsx(rC,{...a,layoutGroup:r,switchLayoutGroup:w.useContext(X0),isPresent:i,safeToRemove:l})}function oC(a,i,l){const r=Dt(a)?a:Ii(a);return r.start(nf("",r,i,l)),r.animation}const uC=(a,i)=>a.depth-i.depth;class cC{constructor(){this.children=[],this.isDirty=!1}add(i){Ad(this.children,i),this.isDirty=!0}remove(i){Md(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(uC),this.isDirty=!1,this.children.forEach(i)}}function dC(a,i){const l=Xt.now(),r=({timestamp:d})=>{const h=d-l;h>=i&&(Da(r),a(h-i))};return Pe.setup(r,!0),()=>Da(r)}const db=["TopLeft","TopRight","BottomLeft","BottomRight"],fC=db.length,sy=a=>typeof a=="string"?parseFloat(a):a,ly=a=>typeof a=="number"||ve.test(a);function hC(a,i,l,r,d,h){d?(a.opacity=Fe(0,l.opacity??1,mC(r)),a.opacityExit=Fe(i.opacity??1,0,pC(r))):h&&(a.opacity=Fe(i.opacity??1,l.opacity??1,r));for(let f=0;f<fC;f++){const m=`border${db[f]}Radius`;let g=ry(i,m),p=ry(l,m);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||ly(g)===ly(p)?(a[m]=Math.max(Fe(sy(g),sy(p),r),0),(On.test(p)||On.test(g))&&(a[m]+="%")):a[m]=p}(i.rotate||l.rotate)&&(a.rotate=Fe(i.rotate||0,l.rotate||0,r))}function ry(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const mC=fb(0,.5,Wy),pC=fb(.5,.95,gn);function fb(a,i,l){return r=>r<a?0:r>i?1:l(dl(a,i,r))}function oy(a,i){a.min=i.min,a.max=i.max}function Sn(a,i){oy(a.x,i.x),oy(a.y,i.y)}function uy(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}function cy(a,i,l,r,d){return a-=i,a=to(a,1/l,r),d!==void 0&&(a=to(a,1/d,r)),a}function gC(a,i=0,l=1,r=.5,d,h=a,f=a){if(On.test(i)&&(i=parseFloat(i),i=Fe(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=Fe(h.min,h.max,r);a===h&&(m-=i),a.min=cy(a.min,i,l,m,d),a.max=cy(a.max,i,l,m,d)}function dy(a,i,[l,r,d],h,f){gC(a,i[l],i[r],i[d],i.scale,h,f)}const yC=["x","scaleX","originX"],bC=["y","scaleY","originY"];function fy(a,i,l,r){dy(a.x,i,yC,l?l.x:void 0,r?r.x:void 0),dy(a.y,i,bC,l?l.y:void 0,r?r.y:void 0)}function hy(a){return a.translate===0&&a.scale===1}function hb(a){return hy(a.x)&&hy(a.y)}function my(a,i){return a.min===i.min&&a.max===i.max}function xC(a,i){return my(a.x,i.x)&&my(a.y,i.y)}function py(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function mb(a,i){return py(a.x,i.x)&&py(a.y,i.y)}function gy(a){return Ot(a.x)/Ot(a.y)}function yy(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}class vC{constructor(){this.members=[]}add(i){Ad(this.members,i),i.scheduleRender()}remove(i){if(Md(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){const l=this.members.findIndex(d=>i===d);if(l===0)return!1;let r;for(let d=l;d>=0;d--){const h=this.members[d];if(h.isPresent!==!1){r=h;break}}return r?(this.promote(r),!0):!1}promote(i,l){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender(),i.resumeFrom=r,l&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:d}=i.options;d===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:l,resumingFrom:r}=i;l.onExitComplete&&l.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function SC(a,i,l){let r="";const d=a.x.translate/i.x,h=a.y.translate/i.y,f=l?.z||0;if((d||h||f)&&(r=`translate3d(${d}px, ${h}px, ${f}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:b,rotateX:x,rotateY:S,skewX:T,skewY:M}=l;p&&(r=`perspective(${p}px) ${r}`),b&&(r+=`rotate(${b}deg) `),x&&(r+=`rotateX(${x}deg) `),S&&(r+=`rotateY(${S}deg) `),T&&(r+=`skewX(${T}deg) `),M&&(r+=`skewY(${M}deg) `)}const m=a.x.scale*i.x,g=a.y.scale*i.y;return(m!==1||g!==1)&&(r+=`scale(${m}, ${g})`),r||"none"}const Hc=["","X","Y","Z"],wC=1e3;let CC=0;function Gc(a,i,l,r){const{latestValues:d}=i;d[a]&&(l[a]=d[a],i.setStaticValue(a,0),r&&(r[a]=0))}function pb(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const l=eb(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:d,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Pe,!(d||h))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&pb(r)}function gb({attachResizeListener:a,defaultParent:i,measureScroll:l,checkIsScrollRoot:r,resetTransform:d}){return class{constructor(f={},m=i?.()){this.id=CC++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(NC),this.nodes.forEach(DC),this.nodes.forEach(RC),this.nodes.forEach(AC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new cC)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Rd),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const g=this.eventHandlers.get(f);g&&g.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=R0(f)&&!pS(f),this.instance=f;const{layoutId:m,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||m)&&(this.isLayoutDirty=!0),a){let b,x=0;const S=()=>this.root.updateBlockedByResize=!1;Pe.read(()=>{x=window.innerWidth}),a(f,()=>{const T=window.innerWidth;T!==x&&(x=T,this.root.updateBlockedByResize=!0,b&&b(),b=dC(S,250),Jr.hasAnimatedSinceResize&&(Jr.hasAnimatedSinceResize=!1,this.nodes.forEach(vy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||g)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||p.getDefaultTransition()||_C,{onLayoutAnimationStart:O,onLayoutAnimationComplete:_}=p.getProps(),z=!this.targetLayout||!mb(this.targetLayout,T),B=!x&&S;if(this.options.layoutRoot||this.resumeFrom||B||x&&(z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...qd(M,"layout"),onPlay:O,onComplete:_};(p.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(b,B)}else x||vy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Da(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(zC),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const x=this.path[b];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:m,layout:g}=this.options;if(m===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(by);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(xy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(EC),this.nodes.forEach(jC),this.nodes.forEach(TC)):this.nodes.forEach(xy),this.clearAllSnapshots();const m=Xt.now();Mt.delta=ea(0,1e3/60,m-Mt.timestamp),Mt.timestamp=m,Mt.isProcessing=!0,Ec.update.process(Mt),Ec.preRender.process(Mt),Ec.render.process(Mt),Mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(MC),this.sharedNodes.forEach(OC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=bt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:g,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!d)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!hb(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,b=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||ei(this.latestValues)||b)&&(d(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let g=this.removeElementScroll(m);return f&&(g=this.removeTransform(g)),BC(g),{animationId:this.root.animationId,measuredBox:m,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return bt();const m=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(LC))){const{scroll:p}=this.root;p&&(Ji(m.x,p.offset.x),Ji(m.y,p.offset.y))}return m}removeElementScroll(f){const m=bt();if(Sn(m,f),this.scroll?.wasRoot)return m;for(let g=0;g<this.path.length;g++){const p=this.path[g],{scroll:b,options:x}=p;p!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&Sn(m,f),Ji(m.x,b.offset.x),Ji(m.y,b.offset.y))}return m}applyTransform(f,m=!1){const g=bt();Sn(g,f);for(let p=0;p<this.path.length;p++){const b=this.path[p];!m&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Pi(g,{x:-b.scroll.offset.x,y:-b.scroll.offset.y}),ei(b.latestValues)&&Pi(g,b.latestValues)}return ei(this.latestValues)&&Pi(g,this.latestValues),g}removeTransform(f){const m=bt();Sn(m,f);for(let g=0;g<this.path.length;g++){const p=this.path[g];if(!p.instance||!ei(p.latestValues))continue;ud(p.latestValues)&&p.updateSnapshot();const b=bt(),x=p.measurePageBox();Sn(b,x),fy(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,b)}return ei(this.latestValues)&&fy(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==Mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(f||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!this.layout||!(b||x))return;this.resolvedRelativeTargetAt=Mt.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sn(this.target,this.layout.layoutBox),J0(this.target,this.targetDelta)):Sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ud(this.parent.latestValues)||Z0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,m,g){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),no(this.relativeTargetOrigin,m,g),Sn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),m=!!this.resumingFrom||this!==f;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Mt.timestamp&&(g=!1),g)return;const{layout:p,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||b))return;Sn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;iw(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=bt());const{target:T}=f;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(uy(this.prevProjectionDelta.x,this.projectionDelta.x),uy(this.prevProjectionDelta.y,this.projectionDelta.y)),cl(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!yy(this.projectionDelta.x,this.prevProjectionDelta.x)||!yy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fi(),this.projectionDelta=Fi(),this.projectionDeltaWithTransform=Fi()}setAnimationOrigin(f,m=!1){const g=this.snapshot,p=g?g.latestValues:{},b={...this.latestValues},x=Fi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const S=bt(),T=g?g.source:void 0,M=this.layout?this.layout.source:void 0,O=T!==M,_=this.getStack(),z=!_||_.members.length<=1,B=!!(O&&!z&&this.options.crossfade===!0&&!this.path.some(VC));this.animationProgress=0;let H;this.mixTargetDelta=F=>{const U=F/1e3;Sy(x.x,f.x,U),Sy(x.y,f.y,U),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kC(this.relativeTarget,this.relativeTargetOrigin,S,U),H&&xC(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=bt()),Sn(H,this.relativeTarget)),O&&(this.animationValues=b,hC(b,p,this.latestValues,U,B,z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Da(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{Jr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ii(0)),this.currentAnimation=oC(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),f.onUpdate&&f.onUpdate(m)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:g,layout:p,latestValues:b}=f;if(!(!m||!g||!p)){if(this!==f&&this.layout&&p&&yb(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||bt();const x=Ot(this.layout.layoutBox.x);g.x.min=f.target.x.min,g.x.max=g.x.min+x;const S=Ot(this.layout.layoutBox.y);g.y.min=f.target.y.min,g.y.max=g.y.min+S}Sn(m,g),Pi(m,b),cl(this.projectionDeltaWithTransform,this.layoutCorrected,m,b)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new vC),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:g}=f;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(m=!0),!m)return;const p={};g.z&&Gc("z",f,p,this.animationValues);for(let b=0;b<Hc.length;b++)Gc(`rotate${Hc[b]}`,f,p,this.animationValues),Gc(`skew${Hc[b]}`,f,p,this.animationValues);f.render();for(const b in p)f.setStaticValue(b,p[b]),this.animationValues&&(this.animationValues[b]=p[b]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Zr(m?.pointerEvents)||"",f.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Zr(m?.pointerEvents)||""),this.hasProjected&&!ei(this.latestValues)&&(f.transform=g?g({},""):"none",this.hasProjected=!1);return}f.visibility="";const b=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=SC(this.projectionDeltaWithTransform,this.treeScale,b);g&&(x=g(b,x)),f.transform=x;const{x:S,y:T}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,p.animationValues?f.opacity=p===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=p===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const M in od){if(b[M]===void 0)continue;const{correct:O,applyTo:_,isCSSVariable:z}=od[M],B=x==="none"?b[M]:O(b[M],p);if(_){const H=_.length;for(let F=0;F<H;F++)f[_[F]]=B}else z?this.options.visualElement.renderState.vars[M]=B:f[M]=B}this.options.layoutId&&(f.pointerEvents=p===this?Zr(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(by),this.root.sharedNodes.clear()}}}function jC(a){a.updateLayout()}function TC(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:r}=a.layout,{animationType:d}=a.options,h=i.source!==a.layout.source;d==="size"?hn(b=>{const x=h?i.measuredBox[b]:i.layoutBox[b],S=Ot(x);x.min=l[b].min,x.max=x.min+S}):yb(d,i.layoutBox,l)&&hn(b=>{const x=h?i.measuredBox[b]:i.layoutBox[b],S=Ot(l[b]);x.max=x.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+S)});const f=Fi();cl(f,l,i.layoutBox);const m=Fi();h?cl(m,a.applyTransform(r,!0),i.measuredBox):cl(m,l,i.layoutBox);const g=!hb(f);let p=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:S}=b;if(x&&S){const T=bt();no(T,i.layoutBox,x.layoutBox);const M=bt();no(M,l,S.layoutBox),mb(T,M)||(p=!0),b.options.layoutRoot&&(a.relativeTarget=M,a.relativeTargetOrigin=T,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:m,layoutDelta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function NC(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function AC(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function MC(a){a.clearSnapshot()}function by(a){a.clearMeasurements()}function xy(a){a.isLayoutDirty=!1}function EC(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function vy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function DC(a){a.resolveTargetDelta()}function RC(a){a.calcProjection()}function zC(a){a.resetSkewAndRotation()}function OC(a){a.removeLeadSnapshot()}function Sy(a,i,l){a.translate=Fe(i.translate,0,l),a.scale=Fe(i.scale,1,l),a.origin=i.origin,a.originPoint=i.originPoint}function wy(a,i,l,r){a.min=Fe(i.min,l.min,r),a.max=Fe(i.max,l.max,r)}function kC(a,i,l,r){wy(a.x,i.x,l.x,r),wy(a.y,i.y,l.y,r)}function VC(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const _C={duration:.45,ease:[.4,0,.1,1]},Cy=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),jy=Cy("applewebkit/")&&!Cy("chrome/")?Math.round:gn;function Ty(a){a.min=jy(a.min),a.max=jy(a.max)}function BC(a){Ty(a.x),Ty(a.y)}function yb(a,i,l){return a==="position"||a==="preserve-aspect"&&!Kw(gy(i),gy(l),.2)}function LC(a){return a!==a.root&&a.scroll?.wasRoot}const UC=gb({attachResizeListener:(a,i)=>pl(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yc={current:void 0},bb=gb({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Yc.current){const a=new UC({});a.mount(window),a.setOptions({layoutScroll:!0}),Yc.current=a}return Yc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),HC={pan:{Feature:lC},drag:{Feature:sC,ProjectionNode:bb,MeasureLayout:cb}};function Ny(a,i,l){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",l==="Start");const d="onHover"+l,h=r[d];h&&Pe.postRender(()=>h(i,vl(i)))}class GC extends za{mount(){const{current:i}=this.node;i&&(this.unmount=cS(i,(l,r)=>(Ny(this.node,r,"Start"),d=>Ny(this.node,d,"End"))))}unmount(){}}class YC extends za{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=yl(pl(this.node.current,"focus",()=>this.onFocus()),pl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ay(a,i,l){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",l==="Start");const d="onTap"+(l==="End"?"":l),h=r[d];h&&Pe.postRender(()=>h(i,vl(i)))}class qC extends za{mount(){const{current:i}=this.node;i&&(this.unmount=mS(i,(l,r)=>(Ay(this.node,r,"Start"),(d,{success:h})=>Ay(this.node,d,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gd=new WeakMap,qc=new WeakMap,XC=a=>{const i=gd.get(a.target);i&&i(a)},KC=a=>{a.forEach(XC)};function QC({root:a,...i}){const l=a||document;qc.has(l)||qc.set(l,{});const r=qc.get(l),d=JSON.stringify(i);return r[d]||(r[d]=new IntersectionObserver(KC,{root:a,...i})),r[d]}function ZC(a,i,l){const r=QC(i);return gd.set(a,l),r.observe(a),()=>{gd.delete(a),r.unobserve(a)}}const JC={some:0,all:1};class PC extends za{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:l,margin:r,amount:d="some",once:h}=i,f={root:l?l.current:void 0,rootMargin:r,threshold:typeof d=="number"?d:JC[d]},m=g=>{const{isIntersecting:p}=g;if(this.isInView===p||(this.isInView=p,h&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),S=p?b:x;S&&S(g)};return ZC(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(FC(i,l))&&this.startObserver()}unmount(){}}function FC({viewport:a={}},{viewport:i={}}={}){return l=>a[l]!==i[l]}const WC={inView:{Feature:PC},tap:{Feature:qC},focus:{Feature:YC},hover:{Feature:GC}},$C={layout:{ProjectionNode:bb,MeasureLayout:cb}},IC={...Uw,...WC,...HC,...$C},ue=tw(IC,mw);const ej=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tj=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,r)=>r?r.toUpperCase():l.toLowerCase()),My=a=>{const i=tj(a);return i.charAt(0).toUpperCase()+i.slice(1)},xb=(...a)=>a.filter((i,l,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===l).join(" ").trim(),nj=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};var aj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ij=w.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:d="",children:h,iconNode:f,...m},g)=>w.createElement("svg",{ref:g,...aj,width:i,height:i,stroke:a,strokeWidth:r?Number(l)*24/Number(i):l,className:xb("lucide",d),...!h&&!nj(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,b])=>w.createElement(p,b)),...Array.isArray(h)?h:[h]]));const _e=(a,i)=>{const l=w.forwardRef(({className:r,...d},h)=>w.createElement(ij,{ref:h,iconNode:i,className:xb(`lucide-${ej(My(a))}`,`lucide-${a}`,r),...d}));return l.displayName=My(a),l};const sj=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],lj=_e("arrow-down",sj);const rj=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],oj=_e("arrow-up",rj);const uj=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],cj=_e("bell",uj);const dj=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],fj=_e("calendar",dj);const hj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],af=_e("check",hj);const mj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Rn=_e("chevron-down",mj);const pj=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ao=_e("chevron-right",pj);const gj=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],yd=_e("chevron-left",gj);const yj=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],bj=_e("chevrons-up-down",yj);const xj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],vj=_e("circle-alert",xj);const Sj=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],wj=_e("eye-off",Sj);const Cj=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jj=_e("eye",Cj);const Tj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Gr=_e("globe",Tj);const Nj=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Aj=_e("house",Nj);const Mj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],vb=_e("info",Mj);const Ej=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Sb=_e("loader-circle",Ej);const Dj=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Rj=_e("lock",Dj);const zj=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Oj=_e("mail",zj);const kj=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Vj=_e("mic",kj);const _j=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Bj=_e("pause",_j);const Lj=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Uj=_e("play",Lj);const Hj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bd=_e("plus",Hj);const Gj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],jn=_e("search",Gj);const Yj=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],qj=_e("settings",Yj);const Xj=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ey=_e("square-pen",Xj);const Kj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Qj=_e("square",Kj);const Zj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],xd=_e("trash-2",Zj);const Jj=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Pj=_e("triangle-alert",Jj);const Fj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],il=_e("user",Fj);const Wj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kt=_e("x",Wj);function wb(a){var i,l,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var d=a.length;for(i=0;i<d;i++)a[i]&&(l=wb(a[i]))&&(r&&(r+=" "),r+=l)}else for(l in a)a[l]&&(r&&(r+=" "),r+=l);return r}function $j(){for(var a,i,l=0,r="",d=arguments.length;l<d;l++)(a=arguments[l])&&(i=wb(a))&&(r&&(r+=" "),r+=i);return r}const Ij=(a,i)=>{const l=new Array(a.length+i.length);for(let r=0;r<a.length;r++)l[r]=a[r];for(let r=0;r<i.length;r++)l[a.length+r]=i[r];return l},eT=(a,i)=>({classGroupId:a,validator:i}),Cb=(a=new Map,i=null,l)=>({nextPart:a,validators:i,classGroupId:l}),io="-",Dy=[],tT="arbitrary..",nT=a=>{const i=iT(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return aT(f);const m=f.split(io),g=m[0]===""&&m.length>1?1:0;return jb(m,g,i)},getConflictingClassGroupIds:(f,m)=>{if(m){const g=r[f],p=l[f];return g?p?Ij(p,g):g:p||Dy}return l[f]||Dy}}},jb=(a,i,l)=>{if(a.length-i===0)return l.classGroupId;const d=a[i],h=l.nextPart.get(d);if(h){const p=jb(a,i+1,h);if(p)return p}const f=l.validators;if(f===null)return;const m=i===0?a.join(io):a.slice(i).join(io),g=f.length;for(let p=0;p<g;p++){const b=f[p];if(b.validator(m))return b.classGroupId}},aT=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),l=i.indexOf(":"),r=i.slice(0,l);return r?tT+r:void 0})(),iT=a=>{const{theme:i,classGroups:l}=a;return sT(l,i)},sT=(a,i)=>{const l=Cb();for(const r in a){const d=a[r];sf(d,l,r,i)}return l},sf=(a,i,l,r)=>{const d=a.length;for(let h=0;h<d;h++){const f=a[h];lT(f,i,l,r)}},lT=(a,i,l,r)=>{if(typeof a=="string"){rT(a,i,l);return}if(typeof a=="function"){oT(a,i,l,r);return}uT(a,i,l,r)},rT=(a,i,l)=>{const r=a===""?i:Tb(i,a);r.classGroupId=l},oT=(a,i,l,r)=>{if(cT(a)){sf(a(r),i,l,r);return}i.validators===null&&(i.validators=[]),i.validators.push(eT(l,a))},uT=(a,i,l,r)=>{const d=Object.entries(a),h=d.length;for(let f=0;f<h;f++){const[m,g]=d[f];sf(g,Tb(i,m),l,r)}},Tb=(a,i)=>{let l=a;const r=i.split(io),d=r.length;for(let h=0;h<d;h++){const f=r[h];let m=l.nextPart.get(f);m||(m=Cb(),l.nextPart.set(f,m)),l=m}return l},cT=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,dT=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),r=Object.create(null);const d=(h,f)=>{l[h]=f,i++,i>a&&(i=0,r=l,l=Object.create(null))};return{get(h){let f=l[h];if(f!==void 0)return f;if((f=r[h])!==void 0)return d(h,f),f},set(h,f){h in l?l[h]=f:d(h,f)}}},vd="!",Ry=":",fT=[],zy=(a,i,l,r,d)=>({modifiers:a,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:r,isExternal:d}),hT=a=>{const{prefix:i,experimentalParseClassName:l}=a;let r=d=>{const h=[];let f=0,m=0,g=0,p;const b=d.length;for(let O=0;O<b;O++){const _=d[O];if(f===0&&m===0){if(_===Ry){h.push(d.slice(g,O)),g=O+1;continue}if(_==="/"){p=O;continue}}_==="["?f++:_==="]"?f--:_==="("?m++:_===")"&&m--}const x=h.length===0?d:d.slice(g);let S=x,T=!1;x.endsWith(vd)?(S=x.slice(0,-1),T=!0):x.startsWith(vd)&&(S=x.slice(1),T=!0);const M=p&&p>g?p-g:void 0;return zy(h,T,S,M)};if(i){const d=i+Ry,h=r;r=f=>f.startsWith(d)?h(f.slice(d.length)):zy(fT,!1,f,void 0,!0)}if(l){const d=r;r=h=>l({className:h,parseClassName:d})}return r},mT=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((l,r)=>{i.set(l,1e6+r)}),l=>{const r=[];let d=[];for(let h=0;h<l.length;h++){const f=l[h],m=f[0]==="[",g=i.has(f);m||g?(d.length>0&&(d.sort(),r.push(...d),d=[]),r.push(f)):d.push(f)}return d.length>0&&(d.sort(),r.push(...d)),r}},pT=a=>({cache:dT(a.cacheSize),parseClassName:hT(a),sortModifiers:mT(a),...nT(a)}),gT=/\s+/,yT=(a,i)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:d,sortModifiers:h}=i,f=[],m=a.trim().split(gT);let g="";for(let p=m.length-1;p>=0;p-=1){const b=m[p],{isExternal:x,modifiers:S,hasImportantModifier:T,baseClassName:M,maybePostfixModifierPosition:O}=l(b);if(x){g=b+(g.length>0?" "+g:g);continue}let _=!!O,z=r(_?M.substring(0,O):M);if(!z){if(!_){g=b+(g.length>0?" "+g:g);continue}if(z=r(M),!z){g=b+(g.length>0?" "+g:g);continue}_=!1}const B=S.length===0?"":S.length===1?S[0]:h(S).join(":"),H=T?B+vd:B,F=H+z;if(f.indexOf(F)>-1)continue;f.push(F);const U=d(z,_);for(let W=0;W<U.length;++W){const Q=U[W];f.push(H+Q)}g=b+(g.length>0?" "+g:g)}return g},bT=(...a)=>{let i=0,l,r,d="";for(;i<a.length;)(l=a[i++])&&(r=Nb(l))&&(d&&(d+=" "),d+=r);return d},Nb=a=>{if(typeof a=="string")return a;let i,l="";for(let r=0;r<a.length;r++)a[r]&&(i=Nb(a[r]))&&(l&&(l+=" "),l+=i);return l},xT=(a,...i)=>{let l,r,d,h;const f=g=>{const p=i.reduce((b,x)=>x(b),a());return l=pT(p),r=l.cache.get,d=l.cache.set,h=m,m(g)},m=g=>{const p=r(g);if(p)return p;const b=yT(g,l);return d(g,b),b};return h=f,(...g)=>h(bT(...g))},vT=[],ft=a=>{const i=l=>l[a]||vT;return i.isThemeGetter=!0,i},Ab=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ST=/^\d+\/\d+$/,wT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,TT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ki=a=>ST.test(a),je=a=>!!a&&!Number.isNaN(Number(a)),Aa=a=>!!a&&Number.isInteger(Number(a)),Xc=a=>a.endsWith("%")&&je(a.slice(0,-1)),$n=a=>wT.test(a),AT=()=>!0,MT=a=>CT.test(a)&&!jT.test(a),Eb=()=>!1,ET=a=>TT.test(a),DT=a=>NT.test(a),RT=a=>!de(a)&&!fe(a),zT=a=>is(a,zb,Eb),de=a=>Ab.test(a),$a=a=>is(a,Ob,MT),Kc=a=>is(a,BT,je),Oy=a=>is(a,Db,Eb),OT=a=>is(a,Rb,DT),Yr=a=>is(a,kb,ET),fe=a=>Mb.test(a),sl=a=>ss(a,Ob),kT=a=>ss(a,LT),ky=a=>ss(a,Db),VT=a=>ss(a,zb),_T=a=>ss(a,Rb),qr=a=>ss(a,kb,!0),is=(a,i,l)=>{const r=Ab.exec(a);return r?r[1]?i(r[1]):l(r[2]):!1},ss=(a,i,l=!1)=>{const r=Mb.exec(a);return r?r[1]?i(r[1]):l:!1},Db=a=>a==="position"||a==="percentage",Rb=a=>a==="image"||a==="url",zb=a=>a==="length"||a==="size"||a==="bg-size",Ob=a=>a==="length",BT=a=>a==="number",LT=a=>a==="family-name",kb=a=>a==="shadow",UT=()=>{const a=ft("color"),i=ft("font"),l=ft("text"),r=ft("font-weight"),d=ft("tracking"),h=ft("leading"),f=ft("breakpoint"),m=ft("container"),g=ft("spacing"),p=ft("radius"),b=ft("shadow"),x=ft("inset-shadow"),S=ft("text-shadow"),T=ft("drop-shadow"),M=ft("blur"),O=ft("perspective"),_=ft("aspect"),z=ft("ease"),B=ft("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...F(),fe,de],W=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],R=()=>[fe,de,g],te=()=>[Ki,"full","auto",...R()],J=()=>[Aa,"none","subgrid",fe,de],q=()=>["auto",{span:["full",Aa,fe,de]},Aa,fe,de],ie=()=>[Aa,"auto",fe,de],le=()=>["auto","min","max","fr",fe,de],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...R()],Y=()=>[Ki,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],E=()=>[a,fe,de],re=()=>[...F(),ky,Oy,{position:[fe,de]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",VT,zT,{size:[fe,de]}],G=()=>[Xc,sl,$a],ee=()=>["","none","full",p,fe,de],ae=()=>["",je,sl,$a],pe=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[je,Xc,ky,Oy],Xe=()=>["","none",M,fe,de],Te=()=>["none",je,fe,de],We=()=>["none",je,fe,de],nt=()=>[je,fe,de],Ze=()=>[Ki,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$n],breakpoint:[$n],color:[AT],container:[$n],"drop-shadow":[$n],ease:["in","out","in-out"],font:[RT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$n],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$n],shadow:[$n],spacing:["px",je],text:[$n],"text-shadow":[$n],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ki,de,fe,_]}],container:["container"],columns:[{columns:[je,de,fe,m]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Aa,"auto",fe,de]}],basis:[{basis:[Ki,"full","auto",m,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Ki,"auto","initial","none",de]}],grow:[{grow:["",je,fe,de]}],shrink:[{shrink:["",je,fe,de]}],order:[{order:[Aa,"first","last","none",fe,de]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[m,"screen",...Y()]}],"min-w":[{"min-w":[m,"screen","none",...Y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",l,sl,$a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,fe,Kc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xc,de]}],"font-family":[{font:[kT,de,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,fe,de]}],"line-clamp":[{"line-clamp":[je,"none",fe,Kc]}],leading:[{leading:[h,...R()]}],"list-image":[{"list-image":["none",fe,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",fe,$a]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[je,"auto",fe,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Aa,fe,de],radial:["",fe,de],conic:[Aa,fe,de]},_T,OT]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,fe,de]}],"outline-w":[{outline:["",je,sl,$a]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",b,qr,Yr]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",x,qr,Yr]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[je,$a]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",S,qr,Yr]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[je,fe,de]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[fe,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,de]}],filter:[{filter:["","none",fe,de]}],blur:[{blur:Xe()}],brightness:[{brightness:[je,fe,de]}],contrast:[{contrast:[je,fe,de]}],"drop-shadow":[{"drop-shadow":["","none",T,qr,Yr]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",je,fe,de]}],"hue-rotate":[{"hue-rotate":[je,fe,de]}],invert:[{invert:["",je,fe,de]}],saturate:[{saturate:[je,fe,de]}],sepia:[{sepia:["",je,fe,de]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,de]}],"backdrop-blur":[{"backdrop-blur":Xe()}],"backdrop-brightness":[{"backdrop-brightness":[je,fe,de]}],"backdrop-contrast":[{"backdrop-contrast":[je,fe,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,fe,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,fe,de]}],"backdrop-invert":[{"backdrop-invert":["",je,fe,de]}],"backdrop-opacity":[{"backdrop-opacity":[je,fe,de]}],"backdrop-saturate":[{"backdrop-saturate":[je,fe,de]}],"backdrop-sepia":[{"backdrop-sepia":["",je,fe,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",fe,de]}],ease:[{ease:["linear","initial",z,fe,de]}],delay:[{delay:[je,fe,de]}],animate:[{animate:["none",B,fe,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,fe,de]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:nt()}],"skew-x":[{"skew-x":nt()}],"skew-y":[{"skew-y":nt()}],transform:[{transform:[fe,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ze()}],"translate-x":[{"translate-x":Ze()}],"translate-y":[{"translate-y":Ze()}],"translate-z":[{"translate-z":Ze()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe,de]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[je,sl,$a,Kc]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},HT=xT(UT);function K(...a){return HT($j(a))}const Ye=pn.forwardRef(({variant:a="primary",size:i="md",loading:l,icon:r,animate:d=!0,className:h,children:f,disabled:m,...g},p)=>{const b=d!==!1,x="inline-flex items-center justify-center gap-2 font-medium rounded-md transition-all duration-200 touch-target disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] flex-shrink-0 whitespace-nowrap",S={primary:"bg-primary text-white hover:bg-primary/80 active:bg-primary/80 shadow-sm",secondary:"bg-secondary text-foreground hover:bg-border active:bg-border-dark",outline:"bg-transparent text-primary border-1 border-primary hover:bg-secondary active:bg-border",ghost:"bg-transparent text-primary hover:bg-secondary active:bg-border",danger:"bg-error text-white hover:bg-red-600 active:bg-red-700 shadow-sm"},T={sm:"px-3 py-2 text-sm min-h-[2.25rem]",md:"px-4 py-2.5 text-base min-h-[2.75rem]",lg:"px-6 py-3.5 text-lg min-h-[3.25rem]"};return c.jsxs(ue.button,{ref:p,whileTap:b?{scale:m||l?1:.98}:void 0,className:K(x,S[a],T[i],h),disabled:m||l,...g,children:[l?c.jsx(Sb,{className:K("h-5 w-5",b&&"animate-spin")}):r?c.jsx("span",{className:"shrink-0",children:r}):null,f]})});Ye.displayName="Button";const Vy=({options:a,value:i,onChange:l,onOptionClick:r,size:d="md",disabled:h=!1,className:f,animate:m=!0})=>{const g=m!==!1,p={sm:"px-3 py-2 text-sm min-h-9",md:"px-4 py-2.5 text-sm sm:text-base min-h-11",lg:"px-5 py-3 text-base min-h-12"};return c.jsx("div",{role:"group","aria-disabled":h,className:K("inline-flex overflow-hidden rounded-md border border-border bg-background",h&&"opacity-60",f),children:a.map((b,x)=>{const S=i===b.value,T=!!(h||b.disabled),M=b.render?.(b,{selected:S,disabled:T,index:x})??c.jsxs(c.Fragment,{children:[b.icon&&c.jsx("span",{className:"shrink-0",children:b.icon}),c.jsx("span",{children:b.label})]});return c.jsx(ue.button,{type:"button",whileTap:g?{scale:T?1:.98}:void 0,onClick:O=>{T||(b.onClick?.(b,O),r?.(b,x),l?.(b.value))},"aria-pressed":S,"aria-label":b.ariaLabel,disabled:T,className:K("inline-flex items-center justify-center gap-2 font-medium transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-inset",p[d],x!==a.length-1&&"border-r border-border",S?"bg-primary text-white":"bg-transparent text-foreground hover:bg-secondary",T&&"cursor-not-allowed",b.className),children:M},b.value)})})};var Vb=Uy();const yn=({open:a,anchorRef:i,placement:l,children:r,className:d,offset:h=8,matchWidth:f=!0})=>{const[m,g]=w.useState(!1),[p,b]=w.useState(null);w.useEffect(()=>(g(!0),()=>g(!1)),[]);const x=w.useCallback(()=>{if(!a||!i.current)return;const S=i.current.getBoundingClientRect();b({position:"fixed",top:l==="top"?S.top-h:S.bottom+h,left:S.left,width:f?S.width:void 0,zIndex:70})},[i,f,h,a,l]);return w.useEffect(()=>{if(a)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[a,x]),!m||!a||!p?null:Vb.createPortal(c.jsx("div",{style:p,onMouseDown:S=>S.stopPropagation(),className:K(l==="top"&&"-translate-y-full",d),children:r}),document.body)},Sd=({value:a,onChange:i,label:l,required:r,placeholder:d="Select date",error:h,hint:f,disabled:m,minDate:g,maxDate:p,className:b,animate:x=!0})=>{const S=x!==!1,[T,M]=w.useState(!1),[O,_]=w.useState("bottom"),[z,B]=w.useState(!1),[H,F]=w.useState("bottom"),[U,W]=w.useState(!1),[Q,R]=w.useState("bottom"),[te,J]=w.useState(a||new Date),q=w.useRef(null),ie=w.useRef(null),le=w.useRef(null),oe=w.useRef(null),I=w.useRef(null),A=w.useRef(null);w.useEffect(()=>{const ne=be=>{q.current&&!q.current.contains(be.target)&&(M(!1),B(!1),W(!1))};return T&&document.addEventListener("mousedown",ne),()=>{document.removeEventListener("mousedown",ne)}},[T]),w.useEffect(()=>{T||(B(!1),W(!1))},[T]),w.useEffect(()=>{if(!T)return;const ne=()=>{if(!ie.current)return;const be=ie.current.getBoundingClientRect(),ze=430,Tn=window.innerHeight-be.bottom-8,_t=be.top-8;if(Tn>=ze){_("bottom");return}if(_t>=ze){_("top");return}_("bottom")};return ne(),window.addEventListener("resize",ne),window.addEventListener("scroll",ne,!0),()=>{window.removeEventListener("resize",ne),window.removeEventListener("scroll",ne,!0)}},[T]),w.useEffect(()=>{if(!z)return;const ne=te.getMonth();oe.current?.querySelector(`button[data-month="${ne}"]`)?.scrollIntoView({block:"center"})},[z,te]),w.useEffect(()=>{if(!U)return;const ne=te.getFullYear();A.current?.querySelector(`button[data-year="${ne}"]`)?.scrollIntoView({block:"center"})},[U,te]);const Y=["January","February","March","April","May","June","July","August","September","October","November","December"],E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],re=ne=>{const be=ne.getFullYear(),ze=ne.getMonth(),Tn=new Date(be,ze,1),_t=new Date(be,ze+1,0),$e=Tn.getDay(),tn=_t.getDay(),Nn=$e+_t.getDate()+(6-tn),ls=new Date(be,ze,1-$e);return Array.from({length:Nn},(rs,uo)=>{const os=new Date(ls);return os.setDate(ls.getDate()+uo),os})},se=()=>{J(new Date(te.getFullYear(),te.getMonth()-1,1))},C=()=>{J(new Date(te.getFullYear(),te.getMonth()+1,1))},G=ne=>{J(new Date(te.getFullYear(),ne,1)),B(!1)},ee=ne=>{J(new Date(ne,te.getMonth(),1)),W(!1)},ae=()=>{if(B(!1),!U&&I.current){const ne=I.current.getBoundingClientRect(),be=window.innerHeight-ne.bottom,ze=ne.top;R(be<220&&ze>be?"top":"bottom")}W(ne=>!ne)},pe=()=>{if(W(!1),!z&&le.current){const ne=le.current.getBoundingClientRect(),be=window.innerHeight-ne.bottom,ze=ne.top;F(be<220&&ze>be?"top":"bottom")}B(ne=>!ne)},ye=ne=>{i(ne),M(!1)},me=ne=>!!(g&&ne<g||p&&ne>p),Xe=(ne,be)=>!ne||!be?!1:ne.getDate()===be.getDate()&&ne.getMonth()===be.getMonth()&&ne.getFullYear()===be.getFullYear(),Te=ne=>ne?Xe(ne,new Date):!1,We=ne=>ne?ne.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"",nt=re(te),Ze=te.getFullYear(),kt=te.getMonth(),at=g?g.getFullYear():Ze-100,wt=p?p.getFullYear():Ze+20,xt=Array.from({length:wt-at+1},(ne,be)=>at+be),Ne=ne=>{if(g){const be=g.getFullYear(),ze=g.getMonth();if(Ze===be&&ne<ze)return!0}if(p){const be=p.getFullYear(),ze=p.getMonth();if(Ze===be&&ne>ze)return!0}return!1},Vt=O==="bottom"?{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}}:{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}};return c.jsxs("div",{ref:q,className:K("relative w-full",b),children:[l&&c.jsxs("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:[l,r&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("button",{ref:ie,type:"button",onClick:()=>!m&&M(!T),disabled:m,"aria-required":r,className:K("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2 text-foreground","focus:outline-none focus:ring-1 focus:ring-primary","disabled:bg-secondary disabled:text-border-dark disabled:cursor-not-allowed","touch-target",h&&"border-error",!h&&"border-border",T&&"ring-1 ring-primary"),children:[c.jsx("span",{className:K("truncate",!a&&"text-foreground/50",m&&"text-border-dark"),children:a?We(a):d}),c.jsx(fj,{className:K("w-5 h-5 shrink-0",m?"text-border-dark":"text-primary")})]}),S?c.jsx(Rt,{children:T?c.jsx(yn,{open:T,anchorRef:ie,placement:O,matchWidth:!1,children:c.jsxs(ue.div,{initial:Vt.initial,animate:Vt.animate,exit:Vt.exit,transition:{duration:.2},className:"z-50 w-72 bg-background rounded-md border border-border shadow-lg p-2.5",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 border-border mb-3",children:[c.jsx("button",{type:"button",onClick:se,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(yd,{className:"w-4 h-4 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:le,type:"button",onClick:pe,className:"h-7 w-20 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":z,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:Y[kt]}),c.jsx(Rn,{className:K("w-3 h-3 text-primary transition-transform",z&&"rotate-180")})]}),z&&c.jsx("div",{ref:oe,role:"listbox",className:K("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",H==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Y.map((ne,be)=>{const ze=Ne(be);return c.jsx("button",{type:"button",role:"option","data-month":be,"aria-selected":be===kt,onClick:()=>!ze&&G(be),disabled:ze,className:K("w-full px-3 py-2 text-xs text-left transition-colors",!ze&&"hover:bg-secondary",be===kt&&"bg-border text-foreground font-medium",ze&&"text-border-dark cursor-not-allowed"),children:ne},ne)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:I,type:"button",onClick:ae,className:"h-7 w-16 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":U,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:Ze}),c.jsx(Rn,{className:K("w-3 h-3 text-primary transition-transform",U&&"rotate-180")})]}),U&&c.jsx("div",{ref:A,role:"listbox",className:K("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",Q==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:xt.map(ne=>c.jsx("button",{type:"button",role:"option","data-year":ne,"aria-selected":ne===Ze,onClick:()=>ee(ne),className:K("w-full px-3 py-2 text-xs text-left hover:bg-secondary transition-colors",ne===Ze&&"bg-border text-foreground font-medium"),children:ne},ne))})]})]}),c.jsx("button",{type:"button",onClick:C,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(ao,{className:"w-4 h-4 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-0 mb-1",children:E.map(ne=>c.jsx("div",{className:"text-center text-[10px] font-medium text-foreground/70 py-1",children:ne},ne))}),c.jsx("div",{className:"grid grid-cols-7 gap-0 border border-border rounded-md overflow-hidden",children:nt.map((ne,be)=>{const ze=(be+1)%7===0,Tn=Math.floor(be/7)===Math.floor((nt.length-1)/7),_t=Xe(ne,a||null),$e=Te(ne),tn=ne.getMonth()===kt&&ne.getFullYear()===Ze,Nn=!tn||me(ne);return c.jsx(ue.button,{type:"button",whileTap:S?{scale:Nn?1:.95}:void 0,onClick:()=>!Nn&&ye(ne),disabled:Nn,className:K("h-8 w-full cursor-pointer rounded-none flex items-center justify-center","text-[10px] font-medium transition-all duration-200",!ze&&"border-r border-border",!Tn&&"border-b border-border",tn&&"hover:bg-secondary",!tn&&"bg-secondary/40",_t&&"bg-primary text-white hover:bg-primary/80",$e&&!_t&&"border border-primary text-primary",Nn&&"text-border-dark cursor-not-allowed hover:bg-transparent",!_t&&!$e&&!Nn&&"text-foreground"),children:ne.getDate()},ne.toISOString())})}),c.jsx("div",{className:"mt-1.5",children:c.jsx("button",{type:"button",onClick:()=>ye(new Date),className:"w-full py-1.5 text-xs font-medium text-primary cursor-pointer hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}):null}):T&&c.jsx(yn,{open:T,anchorRef:ie,placement:O,matchWidth:!1,children:c.jsxs("div",{className:"z-50 w-72 bg-background rounded-md border border-border shadow-lg p-2.5",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 mb-3",children:[c.jsx("button",{type:"button",onClick:se,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(yd,{className:"w-4 h-4 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:le,type:"button",onClick:pe,className:"h-7 w-20 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":z,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:Y[kt]}),c.jsx(Rn,{className:K("w-3 h-3 text-primary transition-transform",z&&"rotate-180")})]}),z&&c.jsx("div",{ref:oe,role:"listbox",className:K("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",H==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Y.map((ne,be)=>{const ze=Ne(be);return c.jsx("button",{type:"button",role:"option","data-month":be,"aria-selected":be===kt,onClick:()=>!ze&&G(be),disabled:ze,className:K("w-full px-3 py-2 text-xs text-left transition-colors",!ze&&"hover:bg-secondary",be===kt&&"bg-border text-foreground font-medium",ze&&"text-border-dark cursor-not-allowed"),children:ne},ne)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:I,type:"button",onClick:ae,className:"h-7 w-14 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":U,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:Ze}),c.jsx(Rn,{className:K("w-3 h-3 text-primary transition-transform",U&&"rotate-180")})]}),U&&c.jsx("div",{ref:A,role:"listbox",className:K("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",Q==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:xt.map(ne=>c.jsx("button",{type:"button",role:"option","data-year":ne,"aria-selected":ne===Ze,onClick:()=>ee(ne),className:K("w-full px-3 py-2 text-xs text-left hover:bg-secondary transition-colors",ne===Ze&&"bg-border text-foreground font-medium"),children:ne},ne))})]})]}),c.jsx("button",{type:"button",onClick:C,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(ao,{className:"w-4 h-4 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-0 mb-1",children:E.map(ne=>c.jsx("div",{className:"text-center text-[10px] font-medium text-primary/70 py-1",children:ne},ne))}),c.jsx("div",{className:"grid grid-cols-7 gap-0 border border-border rounded-md overflow-hidden",children:nt.map((ne,be)=>{const ze=(be+1)%7===0,Tn=Math.floor(be/7)===Math.floor((nt.length-1)/7);if(!ne)return c.jsx("div",{className:K("h-8 bg-background",!ze&&"border-r border-border",!Tn&&"border-b border-border")},`empty-${be}`);const _t=Xe(ne,a||null),$e=Te(ne),tn=me(ne);return c.jsx("button",{type:"button",onClick:()=>!tn&&ye(ne),disabled:tn,className:K("h-8 w-full rounded-none flex items-center justify-center","text-[10px] font-medium transition-all duration-200",!ze&&"border-r border-border",!Tn&&"border-b border-border","hover:bg-secondary",_t&&"bg-primary text-white hover:bg-primary/80",$e&&!_t&&"border border-primary text-primary",tn&&"text-border-dark cursor-not-allowed hover:bg-transparent",!_t&&!$e&&!tn&&"text-foreground"),children:ne.getDate()},ne.toISOString())})}),c.jsx("div",{className:"mt-1.5 pt-1.5",children:c.jsx("button",{type:"button",onClick:()=>ye(new Date),className:"w-full py-1.5 text-xs font-medium text-primary hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}),h&&c.jsx(ue.p,{...S?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:h}),f&&!h&&c.jsx("p",{className:"mt-1.5 text-sm text-primary/70",children:f})]})},$i=({iso2:a,className:i})=>{const l=a.trim().toLowerCase();return c.jsx("span",{"aria-hidden":!0,className:K(`fi fi-${l}`,"inline-block shrink-0",i)})},Cn=[{iso2:"AF",name:"Afghanistan",dialCode:"+93"},{iso2:"AL",name:"Albania",dialCode:"+355"},{iso2:"DZ",name:"Algeria",dialCode:"+213"},{iso2:"AS",name:"American Samoa",dialCode:"+1-684"},{iso2:"AD",name:"Andorra",dialCode:"+376"},{iso2:"AO",name:"Angola",dialCode:"+244"},{iso2:"AI",name:"Anguilla",dialCode:"+1-264"},{iso2:"AQ",name:"Antarctica",dialCode:"+672"},{iso2:"AG",name:"Antigua and Barbuda",dialCode:"+1-268"},{iso2:"AR",name:"Argentina",dialCode:"+54"},{iso2:"AM",name:"Armenia",dialCode:"+374"},{iso2:"AW",name:"Aruba",dialCode:"+297"},{iso2:"AU",name:"Australia",dialCode:"+61"},{iso2:"AT",name:"Austria",dialCode:"+43"},{iso2:"AZ",name:"Azerbaijan",dialCode:"+994"},{iso2:"BS",name:"Bahamas",dialCode:"+1-242"},{iso2:"BH",name:"Bahrain",dialCode:"+973"},{iso2:"BD",name:"Bangladesh",dialCode:"+880"},{iso2:"BB",name:"Barbados",dialCode:"+1-246"},{iso2:"BY",name:"Belarus",dialCode:"+375"},{iso2:"BE",name:"Belgium",dialCode:"+32"},{iso2:"BZ",name:"Belize",dialCode:"+501"},{iso2:"BJ",name:"Benin",dialCode:"+229"},{iso2:"BM",name:"Bermuda",dialCode:"+1-441"},{iso2:"BT",name:"Bhutan",dialCode:"+975"},{iso2:"BO",name:"Bolivia",dialCode:"+591"},{iso2:"BA",name:"Bosnia and Herzegovina",dialCode:"+387"},{iso2:"BW",name:"Botswana",dialCode:"+267"},{iso2:"BR",name:"Brazil",dialCode:"+55"},{iso2:"IO",name:"British Indian Ocean Territory",dialCode:"+246"},{iso2:"BN",name:"Brunei",dialCode:"+673"},{iso2:"BG",name:"Bulgaria",dialCode:"+359"},{iso2:"BF",name:"Burkina Faso",dialCode:"+226"},{iso2:"BI",name:"Burundi",dialCode:"+257"},{iso2:"KH",name:"Cambodia",dialCode:"+855"},{iso2:"CM",name:"Cameroon",dialCode:"+237"},{iso2:"CA",name:"Canada",dialCode:"+1"},{iso2:"CV",name:"Cape Verde",dialCode:"+238"},{iso2:"KY",name:"Cayman Islands",dialCode:"+1-345"},{iso2:"CF",name:"Central African Republic",dialCode:"+236"},{iso2:"TD",name:"Chad",dialCode:"+235"},{iso2:"CL",name:"Chile",dialCode:"+56"},{iso2:"CN",name:"China",dialCode:"+86"},{iso2:"CX",name:"Christmas Island",dialCode:"+61"},{iso2:"CC",name:"Cocos (Keeling) Islands",dialCode:"+61"},{iso2:"CO",name:"Colombia",dialCode:"+57"},{iso2:"KM",name:"Comoros",dialCode:"+269"},{iso2:"CG",name:"Congo",dialCode:"+242"},{iso2:"CD",name:"Congo, Democratic Republic",dialCode:"+243"},{iso2:"CK",name:"Cook Islands",dialCode:"+682"},{iso2:"CR",name:"Costa Rica",dialCode:"+506"},{iso2:"CI",name:"Cote d'Ivoire",dialCode:"+225"},{iso2:"HR",name:"Croatia",dialCode:"+385"},{iso2:"CU",name:"Cuba",dialCode:"+53"},{iso2:"CY",name:"Cyprus",dialCode:"+357"},{iso2:"CZ",name:"Czech Republic",dialCode:"+420"},{iso2:"DK",name:"Denmark",dialCode:"+45"},{iso2:"DJ",name:"Djibouti",dialCode:"+253"},{iso2:"DM",name:"Dominica",dialCode:"+1-767"},{iso2:"DO",name:"Dominican Republic",dialCode:"+1-809"},{iso2:"EC",name:"Ecuador",dialCode:"+593"},{iso2:"EG",name:"Egypt",dialCode:"+20"},{iso2:"SV",name:"El Salvador",dialCode:"+503"},{iso2:"GQ",name:"Equatorial Guinea",dialCode:"+240"},{iso2:"ER",name:"Eritrea",dialCode:"+291"},{iso2:"EE",name:"Estonia",dialCode:"+372"},{iso2:"ET",name:"Ethiopia",dialCode:"+251"},{iso2:"FK",name:"Falkland Islands",dialCode:"+500"},{iso2:"FO",name:"Faroe Islands",dialCode:"+298"},{iso2:"FJ",name:"Fiji",dialCode:"+679"},{iso2:"FI",name:"Finland",dialCode:"+358"},{iso2:"FR",name:"France",dialCode:"+33"},{iso2:"GF",name:"French Guiana",dialCode:"+594"},{iso2:"PF",name:"French Polynesia",dialCode:"+689"},{iso2:"GA",name:"Gabon",dialCode:"+241"},{iso2:"GM",name:"Gambia",dialCode:"+220"},{iso2:"GE",name:"Georgia",dialCode:"+995"},{iso2:"DE",name:"Germany",dialCode:"+49"},{iso2:"GH",name:"Ghana",dialCode:"+233"},{iso2:"GI",name:"Gibraltar",dialCode:"+350"},{iso2:"GR",name:"Greece",dialCode:"+30"},{iso2:"GL",name:"Greenland",dialCode:"+299"},{iso2:"GD",name:"Grenada",dialCode:"+1-473"},{iso2:"GP",name:"Guadeloupe",dialCode:"+590"},{iso2:"GU",name:"Guam",dialCode:"+1-671"},{iso2:"GT",name:"Guatemala",dialCode:"+502"},{iso2:"GG",name:"Guernsey",dialCode:"+44-1481"},{iso2:"GN",name:"Guinea",dialCode:"+224"},{iso2:"GW",name:"Guinea-Bissau",dialCode:"+245"},{iso2:"GY",name:"Guyana",dialCode:"+592"},{iso2:"HT",name:"Haiti",dialCode:"+509"},{iso2:"HN",name:"Honduras",dialCode:"+504"},{iso2:"HK",name:"Hong Kong",dialCode:"+852"},{iso2:"HU",name:"Hungary",dialCode:"+36"},{iso2:"IS",name:"Iceland",dialCode:"+354"},{iso2:"IN",name:"India",dialCode:"+91"},{iso2:"ID",name:"Indonesia",dialCode:"+62"},{iso2:"IR",name:"Iran",dialCode:"+98"},{iso2:"IQ",name:"Iraq",dialCode:"+964"},{iso2:"IE",name:"Ireland",dialCode:"+353"},{iso2:"IM",name:"Isle of Man",dialCode:"+44-1624"},{iso2:"IL",name:"Israel",dialCode:"+972"},{iso2:"IT",name:"Italy",dialCode:"+39"},{iso2:"JM",name:"Jamaica",dialCode:"+1-876"},{iso2:"JP",name:"Japan",dialCode:"+81"},{iso2:"JE",name:"Jersey",dialCode:"+44-1534"},{iso2:"JO",name:"Jordan",dialCode:"+962"},{iso2:"KZ",name:"Kazakhstan",dialCode:"+7"},{iso2:"KE",name:"Kenya",dialCode:"+254"},{iso2:"KI",name:"Kiribati",dialCode:"+686"},{iso2:"KP",name:"Korea, North",dialCode:"+850"},{iso2:"KR",name:"Korea, South",dialCode:"+82"},{iso2:"KW",name:"Kuwait",dialCode:"+965"},{iso2:"KG",name:"Kyrgyzstan",dialCode:"+996"},{iso2:"LA",name:"Laos",dialCode:"+856"},{iso2:"LV",name:"Latvia",dialCode:"+371"},{iso2:"LB",name:"Lebanon",dialCode:"+961"},{iso2:"LS",name:"Lesotho",dialCode:"+266"},{iso2:"LR",name:"Liberia",dialCode:"+231"},{iso2:"LY",name:"Libya",dialCode:"+218"},{iso2:"LI",name:"Liechtenstein",dialCode:"+423"},{iso2:"LT",name:"Lithuania",dialCode:"+370"},{iso2:"LU",name:"Luxembourg",dialCode:"+352"},{iso2:"MO",name:"Macau",dialCode:"+853"},{iso2:"MK",name:"North Macedonia",dialCode:"+389"},{iso2:"MG",name:"Madagascar",dialCode:"+261"},{iso2:"MW",name:"Malawi",dialCode:"+265"},{iso2:"MY",name:"Malaysia",dialCode:"+60"},{iso2:"MV",name:"Maldives",dialCode:"+960"},{iso2:"ML",name:"Mali",dialCode:"+223"},{iso2:"MT",name:"Malta",dialCode:"+356"},{iso2:"MH",name:"Marshall Islands",dialCode:"+692"},{iso2:"MQ",name:"Martinique",dialCode:"+596"},{iso2:"MR",name:"Mauritania",dialCode:"+222"},{iso2:"MU",name:"Mauritius",dialCode:"+230"},{iso2:"YT",name:"Mayotte",dialCode:"+262"},{iso2:"MX",name:"Mexico",dialCode:"+52"},{iso2:"FM",name:"Micronesia",dialCode:"+691"},{iso2:"MD",name:"Moldova",dialCode:"+373"},{iso2:"MC",name:"Monaco",dialCode:"+377"},{iso2:"MN",name:"Mongolia",dialCode:"+976"},{iso2:"ME",name:"Montenegro",dialCode:"+382"},{iso2:"MS",name:"Montserrat",dialCode:"+1-664"},{iso2:"MA",name:"Morocco",dialCode:"+212"},{iso2:"MZ",name:"Mozambique",dialCode:"+258"},{iso2:"MM",name:"Myanmar",dialCode:"+95"},{iso2:"NA",name:"Namibia",dialCode:"+264"},{iso2:"NR",name:"Nauru",dialCode:"+674"},{iso2:"NP",name:"Nepal",dialCode:"+977"},{iso2:"NL",name:"Netherlands",dialCode:"+31"},{iso2:"NC",name:"New Caledonia",dialCode:"+687"},{iso2:"NZ",name:"New Zealand",dialCode:"+64"},{iso2:"NI",name:"Nicaragua",dialCode:"+505"},{iso2:"NE",name:"Niger",dialCode:"+227"},{iso2:"NG",name:"Nigeria",dialCode:"+234"},{iso2:"NU",name:"Niue",dialCode:"+683"},{iso2:"NF",name:"Norfolk Island",dialCode:"+672"},{iso2:"MP",name:"Northern Mariana Islands",dialCode:"+1-670"},{iso2:"NO",name:"Norway",dialCode:"+47"},{iso2:"OM",name:"Oman",dialCode:"+968"},{iso2:"PK",name:"Pakistan",dialCode:"+92"},{iso2:"PW",name:"Palau",dialCode:"+680"},{iso2:"PS",name:"Palestine",dialCode:"+970"},{iso2:"PA",name:"Panama",dialCode:"+507"},{iso2:"PG",name:"Papua New Guinea",dialCode:"+675"},{iso2:"PY",name:"Paraguay",dialCode:"+595"},{iso2:"PE",name:"Peru",dialCode:"+51"},{iso2:"PH",name:"Philippines",dialCode:"+63"},{iso2:"PN",name:"Pitcairn",dialCode:"+64"},{iso2:"PL",name:"Poland",dialCode:"+48"},{iso2:"PT",name:"Portugal",dialCode:"+351"},{iso2:"PR",name:"Puerto Rico",dialCode:"+1-787"},{iso2:"QA",name:"Qatar",dialCode:"+974"},{iso2:"RE",name:"Reunion",dialCode:"+262"},{iso2:"RO",name:"Romania",dialCode:"+40"},{iso2:"RU",name:"Russia",dialCode:"+7"},{iso2:"RW",name:"Rwanda",dialCode:"+250"},{iso2:"BL",name:"Saint Barthelemy",dialCode:"+590"},{iso2:"SH",name:"Saint Helena",dialCode:"+290"},{iso2:"KN",name:"Saint Kitts and Nevis",dialCode:"+1-869"},{iso2:"LC",name:"Saint Lucia",dialCode:"+1-758"},{iso2:"MF",name:"Saint Martin",dialCode:"+590"},{iso2:"PM",name:"Saint Pierre and Miquelon",dialCode:"+508"},{iso2:"VC",name:"Saint Vincent and the Grenadines",dialCode:"+1-784"},{iso2:"WS",name:"Samoa",dialCode:"+685"},{iso2:"SM",name:"San Marino",dialCode:"+378"},{iso2:"ST",name:"Sao Tome and Principe",dialCode:"+239"},{iso2:"SA",name:"Saudi Arabia",dialCode:"+966"},{iso2:"SN",name:"Senegal",dialCode:"+221"},{iso2:"RS",name:"Serbia",dialCode:"+381"},{iso2:"SC",name:"Seychelles",dialCode:"+248"},{iso2:"SL",name:"Sierra Leone",dialCode:"+232"},{iso2:"SG",name:"Singapore",dialCode:"+65"},{iso2:"SX",name:"Sint Maarten",dialCode:"+1-721"},{iso2:"SK",name:"Slovakia",dialCode:"+421"},{iso2:"SI",name:"Slovenia",dialCode:"+386"},{iso2:"SB",name:"Solomon Islands",dialCode:"+677"},{iso2:"SO",name:"Somalia",dialCode:"+252"},{iso2:"ZA",name:"South Africa",dialCode:"+27"},{iso2:"GS",name:"South Georgia and the South Sandwich Islands",dialCode:"+500"},{iso2:"SS",name:"South Sudan",dialCode:"+211"},{iso2:"ES",name:"Spain",dialCode:"+34"},{iso2:"LK",name:"Sri Lanka",dialCode:"+94"},{iso2:"SD",name:"Sudan",dialCode:"+249"},{iso2:"SR",name:"Suriname",dialCode:"+597"},{iso2:"SJ",name:"Svalbard and Jan Mayen",dialCode:"+47"},{iso2:"SZ",name:"Swaziland",dialCode:"+268"},{iso2:"SE",name:"Sweden",dialCode:"+46"},{iso2:"CH",name:"Switzerland",dialCode:"+41"},{iso2:"SY",name:"Syria",dialCode:"+963"},{iso2:"TW",name:"Taiwan",dialCode:"+886"},{iso2:"TJ",name:"Tajikistan",dialCode:"+992"},{iso2:"TZ",name:"Tanzania",dialCode:"+255"},{iso2:"TH",name:"Thailand",dialCode:"+66"},{iso2:"TL",name:"Timor-Leste",dialCode:"+670"},{iso2:"TG",name:"Togo",dialCode:"+228"},{iso2:"TK",name:"Tokelau",dialCode:"+690"},{iso2:"TO",name:"Tonga",dialCode:"+676"},{iso2:"TT",name:"Trinidad and Tobago",dialCode:"+1-868"},{iso2:"TN",name:"Tunisia",dialCode:"+216"},{iso2:"TR",name:"Turkey",dialCode:"+90"},{iso2:"TM",name:"Turkmenistan",dialCode:"+993"},{iso2:"TC",name:"Turks and Caicos Islands",dialCode:"+1-649"},{iso2:"TV",name:"Tuvalu",dialCode:"+688"},{iso2:"UG",name:"Uganda",dialCode:"+256"},{iso2:"UA",name:"Ukraine",dialCode:"+380"},{iso2:"AE",name:"United Arab Emirates",dialCode:"+971"},{iso2:"GB",name:"United Kingdom",dialCode:"+44"},{iso2:"US",name:"United States",dialCode:"+1"},{iso2:"UY",name:"Uruguay",dialCode:"+598"},{iso2:"UZ",name:"Uzbekistan",dialCode:"+998"},{iso2:"VU",name:"Vanuatu",dialCode:"+678"},{iso2:"VA",name:"Vatican City",dialCode:"+379"},{iso2:"VE",name:"Venezuela",dialCode:"+58"},{iso2:"VN",name:"Vietnam",dialCode:"+84"},{iso2:"VG",name:"British Virgin Islands",dialCode:"+1-284"},{iso2:"VI",name:"US Virgin Islands",dialCode:"+1-340"},{iso2:"WF",name:"Wallis and Futuna",dialCode:"+681"},{iso2:"EH",name:"Western Sahara",dialCode:"+212"},{iso2:"YE",name:"Yemen",dialCode:"+967"},{iso2:"ZM",name:"Zambia",dialCode:"+260"},{iso2:"ZW",name:"Zimbabwe",dialCode:"+263"}],lf=({value:a,onChange:i,onCountryChange:l,label:r="Country",required:d,placeholder:h="Select country",error:f,hint:m,searchable:g=!0,clearable:p=!0,showFlags:b=!0,disabled:x,animate:S=!0,className:T})=>{const M=S!==!1,[O,_]=w.useState(!1),[z,B]=w.useState(""),[H,F]=w.useState("bottom"),U=w.useRef(null),W=w.useRef(null),Q=w.useMemo(()=>Cn.find(q=>q.iso2===a),[a]),R=w.useMemo(()=>{if(!g||!z.trim())return Cn;const q=z.toLowerCase();return Cn.filter(ie=>ie.name.toLowerCase().includes(q)||ie.iso2.toLowerCase().includes(q)||ie.dialCode.replace(/\s/g,"").includes(q.replace(/\s/g,"")))},[z,g]);w.useEffect(()=>{const q=ie=>{U.current&&!U.current.contains(ie.target)&&(_(!1),B(""))};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[]),w.useEffect(()=>{if(!O)return;const q=()=>{if(!W.current)return;const ie=W.current.getBoundingClientRect(),le=g?360:300,oe=window.innerHeight-ie.bottom-8,I=ie.top-8;if(oe>=le){F("bottom");return}if(I>=le){F("top");return}F("bottom")};return q(),window.addEventListener("resize",q),window.addEventListener("scroll",q,!0),()=>{window.removeEventListener("resize",q),window.removeEventListener("scroll",q,!0)}},[O,g]);const te=q=>{i?.(q);const ie=Cn.find(le=>le.iso2===q);ie&&l?.(ie),_(!1),B("")},J=H==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:U,className:K("w-full space-y-1.5",T),children:[r&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[r,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:W,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!x&&_(!O),disabled:x,"aria-haspopup":"listbox","aria-expanded":O,"aria-required":d,className:K("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",f&&"border-error focus:ring-error",O&&"ring-2 ring-primary",!f&&(x?"opacity-50":"border-border"),f&&x&&"opacity-50"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[b&&Q&&c.jsx($i,{iso2:Q.iso2,className:"h-4 w-6 rounded-xs ring-1 ring-black/10"}),c.jsx("span",{className:K("truncate",!Q&&"text-foreground/50"),children:Q?Q.name:h})]}),c.jsx(Rn,{className:K("w-5 h-5 text-primary transition-transform shrink-0",O&&"rotate-180")})]}),M?c.jsx(Rt,{children:O?c.jsx(yn,{open:O,anchorRef:W,placement:H,children:c.jsxs(ue.div,{initial:J.initial,animate:J.animate,exit:J.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:z,onChange:q=>B(q.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),z&&c.jsx("button",{type:"button",onClick:()=>B(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>te(""),className:K("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),R.map(q=>c.jsxs("button",{type:"button",role:"option","aria-selected":q.iso2===Q?.iso2,onClick:()=>te(q.iso2),className:K("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",q.iso2===Q?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx($i,{iso2:q.iso2,className:"mt-0.5 h-4 w-6 rounded-xs ring-1 ring-black/10"}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:q.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:q.dialCode})]},q.iso2))]})]})}):null}):O&&c.jsx(yn,{open:O,anchorRef:W,placement:H,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:z,onChange:q=>B(q.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),z&&c.jsx("button",{type:"button",onClick:()=>B(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>te(""),className:K("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),R.map(q=>c.jsxs("button",{type:"button",role:"option","aria-selected":q.iso2===Q?.iso2,onClick:()=>te(q.iso2),className:K("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",q.iso2===Q?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx($i,{iso2:q.iso2,className:"mt-0.5 h-4 w-6 rounded-xs ring-1 ring-black/10"}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:q.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:q.dialCode})]},q.iso2))]})]})})]}),f&&c.jsx(ue.p,{...M?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:f}),m&&!f&&c.jsx("p",{className:"text-sm text-primary/70",children:m})]})};lf.displayName="CountrySelect";const GT=()=>{if(typeof navigator>"u")return null;const i=(navigator.language||"").match(/[-_](\w{2})$/);return i?i[1].toUpperCase():null},Pr=a=>a.replace(/\s/g,""),Qc=(a,i)=>{const l=a.replace(/\s/g,""),r=l.startsWith("00")?`+${l.slice(2)}`:l;if(!r.startsWith("+"))return;const d=Cn.filter(f=>{const m=Pr(f.dialCode);return r.startsWith(m)}),h=i?d.find(f=>f.iso2===i.toUpperCase()):void 0;return h||[...d].sort((f,m)=>Pr(m.dialCode).length-Pr(f.dialCode).length)[0]},_b=({value:a,onChange:i,country:l,defaultCountry:r="KE",autoDetect:d=!1,onCountryChange:h,label:f,error:m,hint:g,searchable:p=!0,showFlags:b=!0,animate:x=!0,disabled:S,required:T,className:M,placeholder:O,..._})=>{const z=x!==!1,[B,H]=w.useState(!1),[F,U]=w.useState(""),[W,Q]=w.useState(r),[R,te]=w.useState("bottom"),J=w.useRef(null),q=w.useRef(null),ie=w.useRef(null),le=w.useRef(!1);w.useEffect(()=>{l&&Q(l.toUpperCase())},[l]),w.useEffect(()=>{if(!l&&d){const E=GT();E&&Q(E)}},[d,l]),w.useEffect(()=>{const E=re=>{J.current&&!J.current.contains(re.target)&&(H(!1),U(""))};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);const oe=w.useMemo(()=>{const E=a?Qc(a,l||W):void 0;if(l)return Cn.find(C=>C.iso2===l.toUpperCase())||E||Cn[0];if(E)return E;const re=(W||r).toUpperCase();return Cn.find(se=>se.iso2===re)||Cn[0]},[l,W,r,a]);w.useEffect(()=>{if(l||!a)return;const E=Qc(a,W);E&&E.iso2!==W&&Q(E.iso2)},[l,a,W]),w.useEffect(()=>{oe&&ie.current!==oe.iso2&&(ie.current=oe.iso2,h?.(oe))},[oe,h]),w.useEffect(()=>{le.current||i&&(a??"").trim()===""&&(le.current=!0,i(oe.dialCode))},[i,oe.dialCode,a]),w.useEffect(()=>{if(!B)return;const E=()=>{if(!q.current)return;const re=q.current.getBoundingClientRect(),se=p?360:300,C=window.innerHeight-re.bottom-8,G=re.top-8;if(C>=se){te("bottom");return}if(G>=se){te("top");return}te("bottom")};return E(),window.addEventListener("resize",E),window.addEventListener("scroll",E,!0),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",E,!0)}},[B,p]);const I=w.useMemo(()=>{if(!p||!F.trim())return Cn;const E=F.toLowerCase();return Cn.filter(re=>re.name.toLowerCase().includes(E)||re.iso2.toLowerCase().includes(E)||re.dialCode.replace(/\s/g,"").includes(E.replace(/\s/g,"")))},[F,p]),A=E=>{l||Q(E.iso2),h?.(E);const re=(a??"").replace(/\s/g,""),se=Qc(re,l||W),C=se?Pr(se.dialCode):"";let G=E.dialCode;re&&(C&&re.startsWith(C)?G=`${E.dialCode}${re.slice(C.length)}`:re.startsWith("+")?G=`${E.dialCode}${re.replace(/^\+[\d-]*/,"")}`:G=`${E.dialCode}${re}`),i?.(G),H(!1),U("")},Y=R==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:J,className:K("w-full space-y-1.5",M),children:[f&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[f,T&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:q,className:"relative",children:[c.jsxs("div",{className:K("flex items-stretch rounded-md border transition-all duration-200 bg-background overflow-hidden","focus-within:ring-2 focus-within:ring-primary focus-within:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed",m?"border-error":"border-border"),children:[c.jsxs("button",{type:"button",onClick:()=>!S&&H(!B),disabled:S,className:K("flex items-center gap-2 px-3 py-2 text-left","border-r border-border/70","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),"aria-haspopup":"listbox","aria-expanded":B,children:[b&&c.jsx($i,{iso2:oe.iso2,className:"h-4 w-6 rounded-xs ring-1 ring-black/10"}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:oe.iso2}),c.jsx(Rn,{className:K("w-4 h-4 text-primary transition-transform",B&&"rotate-180")})]}),c.jsx("input",{type:"tel",inputMode:"tel",value:a??"",onChange:E=>i?.(E.target.value),placeholder:O||`${oe.dialCode} Phone number`,disabled:S,required:T,className:K("flex-1 px-4 py-2.5 text-base bg-transparent text-foreground","placeholder:text-foreground/50 focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"),..._})]}),z?c.jsx(Rt,{children:B?c.jsx(yn,{open:B,anchorRef:q,placement:R,children:c.jsxs(ue.div,{initial:Y.initial,animate:Y.animate,exit:Y.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:F,onChange:E=>U(E.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),F&&c.jsx("button",{type:"button",onClick:()=>U(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:I.map(E=>c.jsxs("button",{type:"button",role:"option","aria-selected":E.iso2===oe.iso2,onClick:()=>A(E),className:K("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",E.iso2===oe.iso2&&"bg-border text-foreground"),children:[b&&c.jsx($i,{iso2:E.iso2,className:"mt-0.5 h-4 w-6 rounded-xs ring-1 ring-black/10"}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:E.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:E.dialCode})]},E.iso2))})]})}):null}):B&&c.jsx(yn,{open:B,anchorRef:q,placement:R,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:F,onChange:E=>U(E.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),F&&c.jsx("button",{type:"button",onClick:()=>U(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:I.map(E=>c.jsxs("button",{type:"button",role:"option","aria-selected":E.iso2===oe.iso2,onClick:()=>A(E),className:K("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",E.iso2===oe.iso2&&"bg-border text-foreground"),children:[b&&c.jsx($i,{iso2:E.iso2,className:"mt-0.5 h-4 w-6 rounded-xs ring-1 ring-black/10"}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:E.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:E.dialCode})]},E.iso2))})]})})]}),m&&c.jsx(ue.p,{...z?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:m}),g&&!m&&c.jsx("p",{className:"text-sm text-primary/70",children:g})]})};_b.displayName="PhoneInput";const In=w.forwardRef((a,i)=>{const l=a.animate!==!1,[r,d]=w.useState(!1),h=J=>{a.onChange?.(J),a.onValueChange?.(J)};if(a.type==="phone"||a.type==="tel"){const{type:J,value:q,onChange:ie,onValueChange:le,...oe}=a;return c.jsx(_b,{...oe,value:typeof q=="string"?q:"",onChange:I=>h(I)})}if(a.type==="country"){const{type:J,value:q,onChange:ie,onValueChange:le,...oe}=a;return c.jsx(lf,{...oe,value:typeof q=="string"?q:"",onChange:I=>h(I)})}if(a.type==="date"){const{type:J,value:q,onChange:ie,onValueChange:le,...oe}=a;return c.jsx(Sd,{...oe,value:q instanceof Date?q:void 0,onChange:I=>h(I)})}const f=a,{label:m,error:g,hint:p,leftIcon:b,rightIcon:x,animate:S,className:T,type:M,value:O,placeholder:_,disabled:z,required:B,onChange:H,onValueChange:F,onWheel:U,...W}=f,Q=M==="number",R=M==="password",te=R&&r?"text":M;return c.jsxs("div",{className:"w-full space-y-1.5",children:[m&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[m,B&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{className:"relative",children:[b&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{left:"14px",top:"50%",transform:"translateY(-50%)"},children:b}),c.jsx("input",{ref:i,type:te,className:K("w-full rounded-md border transition-all duration-200","bg-background text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",Q&&"number-input",g&&"border-error focus:ring-error",!g&&"border-border",T),style:{paddingTop:"12px",paddingBottom:"12px",paddingLeft:b?"44px":"16px",paddingRight:x||R?"44px":"16px"},value:O,onChange:J=>h(J.target.value),onWheel:Q?J=>{J.preventDefault(),U?.(J)}:U,placeholder:_,disabled:z,required:B,...W}),R&&c.jsx(ue.button,{type:"button",onClick:()=>d(!r),className:"absolute text-primary hover:text-primary/80 transition-colors",style:{right:"14px",top:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-label":r?"Hide password":"Show password",whileTap:l?{scale:.9,y:"-50%"}:void 0,animate:{y:"-50%"},transition:l?{duration:.1}:{duration:0},children:r?c.jsx(wj,{className:"w-5 h-5"}):c.jsx(jj,{className:"w-5 h-5"})}),x&&!R&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{right:"14px",top:"50%",transform:"translateY(-50%)"},children:x})]}),g&&c.jsx(ue.p,{...l?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:g}),p&&!g&&c.jsx("p",{className:"text-sm text-primary/70",children:p})]})});In.displayName="Input";const Bb=w.forwardRef(({label:a,error:i,helperText:l,className:r,required:d,animate:h=!0,...f},m)=>{const g=h!==!1;return c.jsxs(ue.div,{...g?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"w-full",children:[a&&c.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:[a,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsx("textarea",{ref:m,className:K("w-full px-4 py-3 bg-background border border-border rounded-md","text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200 resize-vertical","text-base touch-target",i&&"border-error focus:ring-error",r),...f}),i&&c.jsx(ue.p,{...g?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1 text-sm text-error",children:i}),l&&!i&&c.jsx("p",{className:"mt-1 text-sm text-primary/70",children:l})]})});Bb.displayName="Textarea";const li=w.forwardRef(({label:a,description:i,className:l,checked:r,defaultChecked:d,onChange:h,animate:f=!0,...m},g)=>{const p=f!==!1,[b,x]=w.useState(d||!1),S=r!==void 0?r:b,T=M=>{r===void 0&&x(M.target.checked),h?.(M.target.checked)};return c.jsxs("label",{className:"flex items-start gap-3 cursor-pointer group",children:[c.jsxs("div",{className:"relative flex-shrink-0 mt-0.5",children:[c.jsx("input",{ref:g,type:"checkbox",className:"sr-only peer",checked:S,onChange:T,...m}),c.jsx(ue.div,{className:K("w-6 h-6 rounded-md border-2 transition-all duration-200","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed","flex items-center justify-center",S?"bg-primary border-primary":"border-border bg-secondary",l),whileTap:p?{scale:.95}:void 0,children:c.jsx(af,{className:K("w-3 h-3 text-white transition-opacity duration-200",S?"opacity-100":"opacity-0")})})]}),(a||i)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground group-hover:text-primary transition-colors",children:a}),i&&c.jsx("div",{className:"text-sm text-primary/70",children:i})]})]})});li.displayName="Checkbox";const YT=({options:a,value:i,onChange:l,name:r,disabled:d,className:h,animate:f=!0})=>{const m=f!==!1;return c.jsx("div",{className:K("flex flex-wrap gap-2",h),children:a.map(g=>{const p=i===g.value;return c.jsxs("label",{className:"relative cursor-pointer",children:[c.jsx("input",{type:"radio",name:r,value:g.value,checked:p,onChange:b=>l?.(b.target.value),disabled:d,className:"sr-only peer"}),c.jsxs(ue.div,{"data-ripple":"true",whileTap:m?{scale:d?1:.95}:void 0,className:K("px-4 py-2.5 rounded-full border-2 transition-all duration-200","flex items-center gap-2 min-h-11","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",p?"bg-primary border-primary text-white":"bg-background border-border text-primary hover:border-border-dark"),children:[g.icon&&c.jsx("span",{className:"shrink-0",children:g.icon}),c.jsx("span",{className:"font-medium text-base",children:g.label})]})]},g.value)})})},Lb=w.forwardRef(({label:a,description:i,className:l,checked:r,onChange:d,animate:h=!0,...f},m)=>{const g=h!==!1,p=b=>{d?.(b.target.checked)};return c.jsxs("label",{className:"flex items-center justify-between gap-4 cursor-pointer group",children:[(a||i)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground",children:a}),i&&c.jsx("div",{className:"text-sm text-primary/70",children:i})]}),c.jsxs("div",{className:"relative flex-shrink-0",children:[c.jsx("input",{ref:m,type:"checkbox",onChange:p,className:"sr-only peer",checked:r,...f}),c.jsx("div",{className:K("w-12 h-7 rounded-full transition-all duration-200 relative","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",r?"bg-primary":"bg-border-dark",l),children:c.jsx(ue.div,{className:"absolute top-1 w-5 h-5 bg-white rounded-full shadow-sm",style:{left:r?"24px":"4px"},animate:g?{left:r?"24px":"4px"}:void 0,transition:g?{type:"spring",stiffness:500,damping:30}:{duration:0}})})]})]})});Lb.displayName="Toggle";const qT=({value:a,onChange:i,min:l=0,max:r=100,step:d=1,label:h,showValue:f=!0,unit:m="%",disabled:g,className:p,animate:b=!0})=>{const x=b!==!1,[S,T]=w.useState(!1),M=(a-l)/(r-l)*100;return c.jsxs("div",{className:K("w-full space-y-2",p),children:[(h||f)&&c.jsxs("div",{className:"flex items-center justify-between",children:[h&&c.jsx("label",{className:"text-sm font-medium text-primary",children:h}),f&&c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,m]})]}),c.jsxs("div",{className:"relative h-12 flex items-center",children:[c.jsx("div",{className:"relative w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(ue.div,{className:"absolute left-0 top-0 h-full bg-primary rounded-full",style:{width:`${M}%`},initial:!1,animate:x?{width:`${M}%`}:void 0,transition:x?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:l,max:r,step:d,value:a,onChange:O=>i(Number(O.target.value)),onMouseDown:()=>T(!0),onMouseUp:()=>T(!1),onTouchStart:()=>T(!0),onTouchEnd:()=>T(!1),disabled:g,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",style:{zIndex:10}}),c.jsx(ue.div,{className:K("absolute w-6 h-6 bg-background border-2 border-primary rounded-full shadow-md","pointer-events-none",g&&"opacity-50"),style:{left:`calc(${M}% - 12px)`},animate:x?{scale:S?1.2:1}:void 0,transition:x?{type:"spring",stiffness:300,damping:20}:{duration:0}})]})]})},XT=({value1:a,value2:i,onChange:l,label1:r,label2:d,min:h=0,max:f=100,step:m=1,unit:g="%",disabled:p,className:b,animate:x=!0})=>{const S=x!==!1,[T,M]=w.useState(!1),[O,_]=w.useState(!1),z=a+i,B=z>0?a/z*100:50,H=z>0?i/z*100:50,F=U=>{const W=f-U;l(U,Math.max(h,Math.min(f,W)))};return c.jsxs("div",{className:K("w-full space-y-3",b),children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:r}),c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,g]})]}),c.jsxs("div",{className:"relative h-12 flex items-center",children:[c.jsx("div",{className:"relative w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(ue.div,{className:"absolute left-0 top-0 h-full bg-primary rounded-full",initial:!1,animate:S?{width:`${B}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:h,max:f,step:m,value:a,onChange:U=>F(Number(U.target.value)),onMouseDown:()=>M(!0),onMouseUp:()=>M(!1),onTouchStart:()=>M(!0),onTouchEnd:()=>M(!1),disabled:p,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",style:{zIndex:10}}),c.jsx(ue.div,{className:K("absolute w-5 h-5 bg-background border-2 border-primary rounded-full shadow-md","pointer-events-none",p&&"opacity-50"),style:{left:`calc(${B}% - 10px)`},animate:S?{scale:T?1.15:1}:void 0,transition:S?{type:"spring",stiffness:300,damping:20}:{duration:0}})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:d}),c.jsxs("span",{className:"text-sm font-semibold text-success",children:[i,g]})]}),c.jsxs("div",{className:"relative h-12 flex items-center",children:[c.jsx("div",{className:"relative w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(ue.div,{className:"absolute left-0 top-0 h-full bg-success rounded-full",initial:!1,animate:S?{width:`${H}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:h,max:f,step:m,value:i,onChange:U=>F(f-Number(U.target.value)),onMouseDown:()=>_(!0),onMouseUp:()=>_(!1),onTouchStart:()=>_(!0),onTouchEnd:()=>_(!1),disabled:p,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",style:{zIndex:10}}),c.jsx(ue.div,{className:K("absolute w-5 h-5 bg-background border-2 border-success rounded-full shadow-md","pointer-events-none",p&&"opacity-50"),style:{left:`calc(${H}% - 10px)`},animate:S?{scale:O?1.15:1}:void 0,transition:S?{type:"spring",stiffness:300,damping:20}:{duration:0}})]})]}),c.jsxs("div",{className:"text-xs text-primary/70 text-center",children:["Total: ",z,g]})]})},KT=({options:a,value:i,onChange:l,placeholder:r="Select an option",label:d,error:h,searchable:f=!1,clearable:m=!0,disabled:g,className:p,animate:b=!0})=>{const x=b!==!1,[S,T]=w.useState(!1),[M,O]=w.useState(""),[_,z]=w.useState("bottom"),B=w.useRef(null),H=w.useRef(null),F=a.find(R=>R.value===i),U=f?a.filter(R=>R.label.toLowerCase().includes(M.toLowerCase())):a;w.useEffect(()=>{const R=te=>{B.current&&!B.current.contains(te.target)&&(T(!1),O(""))};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]),w.useEffect(()=>{if(!S)return;const R=()=>{if(!H.current)return;const te=H.current.getBoundingClientRect(),J=f?360:300,q=window.innerHeight-te.bottom-8,ie=te.top-8;if(q>=J){z("bottom");return}if(ie>=J){z("top");return}z("bottom")};return R(),window.addEventListener("resize",R),window.addEventListener("scroll",R,!0),()=>{window.removeEventListener("resize",R),window.removeEventListener("scroll",R,!0)}},[S,f]);const W=R=>{l(R),T(!1),O("")},Q=_==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:B,className:K("relative w-full",p),children:[d&&c.jsx("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:d}),c.jsxs("button",{ref:H,type:"button",onClick:()=>!g&&T(!S),disabled:g,className:K("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary","disabled:bg-secondary disabled:cursor-not-allowed","touch-target",h&&"border-error",!h&&"border-border",S&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[F?.icon&&c.jsx("span",{className:"shrink-0",children:F.icon}),c.jsx("span",{className:K("truncate",!F&&"text-foreground/50"),children:F?.label||r})]}),c.jsx(Rn,{className:K("w-5 h-5 text-primary transition-transform shrink-0",S&&"rotate-180")})]}),x?c.jsx(Rt,{children:S?c.jsx(yn,{open:S,anchorRef:H,placement:_,children:c.jsxs(ue.div,{initial:Q.initial,animate:Q.animate,exit:Q.exit,transition:{duration:.2},className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:M,onChange:R=>O(R.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),M&&c.jsx("button",{onClick:()=>O(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[m&&c.jsx("button",{type:"button",onClick:()=>W(""),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),U.length>0?U.map(R=>c.jsxs("button",{onClick:()=>W(R.value),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",R.value===i&&"bg-border text-foreground"),children:[R.icon&&c.jsx("span",{className:"shrink-0",children:R.icon}),c.jsx("span",{children:R.label})]},R.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):S&&c.jsx(yn,{open:S,anchorRef:H,placement:_,children:c.jsxs(ue.div,{className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:M,onChange:R=>O(R.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),M&&c.jsx("button",{onClick:()=>O(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[m&&c.jsx("button",{type:"button",onClick:()=>W(""),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),U.length>0?U.map(R=>c.jsxs("button",{onClick:()=>W(R.value),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",R.value===i&&"bg-border text-foreground"),children:[R.icon&&c.jsx("span",{className:"shrink-0",children:R.icon}),c.jsx("span",{children:R.label})]},R.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}),h&&c.jsx(ue.p,{...x?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:h})]})},Ub=w.createContext(null),wd=w.createContext(null),rf=()=>{const a=w.useContext(Ub);if(!a)throw new Error("DropdownMenu components must be used inside <DropdownMenu>.");return a},Hb=()=>{const a=w.useContext(wd);if(!a)throw new Error("DropdownMenuSub components must be used inside <DropdownMenuSub>.");return a},gl=(...a)=>i=>{a.forEach(l=>{if(l){if(typeof l=="function"){l(i);return}l.current=i}})},of=a=>a.props,QT=({children:a,open:i,defaultOpen:l=!1,onOpenChange:r,placement:d="auto",className:h})=>{const f=i!==void 0,[m,g]=w.useState(l),[p,b]=w.useState("bottom"),x=w.useRef(null),S=w.useRef(null),T=w.useRef(null),M=f?!!i:m,O=B=>{f||g(B),r?.(B)},_=()=>O(!1);w.useEffect(()=>{if(!M)return;const B=H=>{x.current?.contains(H.target)||T.current?.contains(H.target)||_()};return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[M]),w.useEffect(()=>{if(!M)return;const B=()=>{if(!S.current)return;if(d==="top"){b("top");return}if(d==="bottom"){b("bottom");return}const H=S.current.getBoundingClientRect(),F=T.current?.offsetHeight??240,U=window.innerHeight-H.bottom-8,W=H.top-8;if(U>=F||U>=W){b("bottom");return}b("top")};return B(),window.addEventListener("resize",B),window.addEventListener("scroll",B,!0),()=>{window.removeEventListener("resize",B),window.removeEventListener("scroll",B,!0)}},[M,d]);const z=w.useMemo(()=>({open:M,setOpen:O,toggle:()=>O(!M),triggerRef:S,contentRef:T,placement:p,preferredPlacement:d,closeAll:_}),[M,p,d]);return c.jsx(Ub.Provider,{value:z,children:c.jsx("div",{ref:x,className:K("relative inline-flex",h),children:a})})},Gb=pn.forwardRef(({asChild:a=!1,className:i,children:l,onClick:r,onKeyDown:d,...h},f)=>{const{open:m,toggle:g,triggerRef:p}=rf(),b=gl(f,x=>{p.current=x});if(a&&pn.isValidElement(l)){const x=l,S=of(x);return pn.cloneElement(x,{ref:gl(x.ref,b),onClick:T=>{S.onClick?.(T),r?.(T),T.defaultPrevented||g()},onKeyDown:T=>{S.onKeyDown?.(T),d?.(T),T.key==="Escape"&&(T.preventDefault(),T.stopPropagation())},"aria-haspopup":"menu","aria-expanded":m,"data-state":m?"open":"closed"})}return c.jsx("button",{ref:b,type:"button",onClick:x=>{r?.(x),x.defaultPrevented||g()},onKeyDown:x=>{d?.(x),x.key==="Escape"&&(x.preventDefault(),x.stopPropagation())},"aria-haspopup":"menu","aria-expanded":m,"data-state":m?"open":"closed",className:K("inline-flex items-center justify-center rounded-md border border-border bg-background px-4 py-2.5 text-sm font-medium text-foreground","transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",i),...h,children:l})});Gb.displayName="DropdownMenuTrigger";const ZT=({children:a,className:i,align:l="start",side:r="auto",sideOffset:d=8,animate:h=!0,...f})=>{const{open:m,setOpen:g,contentRef:p,placement:b,triggerRef:x}=rf(),[S,T]=w.useState(l==="end"?"left":"right");return w.useEffect(()=>{if(!m)return;const M=()=>{if(!x.current)return;if(r==="left"){T("left");return}if(r==="right"){T("right");return}const O=x.current.getBoundingClientRect(),_=p.current?.offsetWidth??224,z=8,B=window.innerWidth-O.left-z,H=O.right-z,F=l==="end"?"left":"right",U=F==="right"?"left":"right",W=F==="right"?B:H,Q=U==="right"?B:H;if(W>=_){T(F);return}if(Q>=_){T(U);return}T(W>=Q?F:U)};return M(),window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0)}},[m,r,l,x,p]),c.jsx(Rt,{children:m?c.jsx(ue.div,{ref:p,role:"menu",initial:h?{opacity:0,y:b==="bottom"?-6:6}:!1,animate:h?{opacity:1,y:0}:void 0,exit:h?{opacity:0,y:b==="bottom"?-6:6}:void 0,transition:{duration:.16},className:K("absolute z-50 min-w-56 rounded-md border border-border bg-background p-1 shadow-lg",b==="bottom"?"top-full mt-2":"bottom-full mb-2",S==="right"?"left-0":"right-0",i),style:{marginTop:b==="bottom"?d:void 0,marginBottom:b==="top"?d:void 0,maxWidth:"calc(100vw - 16px)"},...f,onKeyDown:M=>{f.onKeyDown?.(M),M.key==="Escape"&&(M.preventDefault(),g(!1))},children:a}):null})},Ea=pn.forwardRef(({children:a,asChild:i=!1,disabled:l=!1,closeOnSelect:r=!0,className:d,onClick:h,...f},m)=>{const{closeAll:g}=rf(),p=b=>{if(l){b.preventDefault();return}h?.(b),!b.defaultPrevented&&r&&g()};if(i&&pn.isValidElement(a)){const b=a,x=of(b);return pn.cloneElement(b,{ref:gl(b.ref,m),role:"menuitem","aria-disabled":l,onClick:S=>{x.onClick?.(S),p(S)},className:K("flex w-full items-center gap-2 rounded-sm px-3 py-2 text-sm text-foreground transition-colors",!l&&"cursor-pointer hover:bg-secondary",l&&"cursor-not-allowed text-foreground/45",b.props.className,d)})}return c.jsx("button",{ref:m,type:"button",role:"menuitem","aria-disabled":l,disabled:l,onClick:p,className:K("flex w-full items-center gap-2 rounded-sm px-3 py-2 text-left text-sm text-foreground transition-colors",!l&&"cursor-pointer hover:bg-secondary",l&&"cursor-not-allowed text-foreground/45",d),...f,children:a})});Ea.displayName="DropdownMenuItem";const Zc=({children:a,defaultOpen:i=!1,placement:l="auto"})=>{const r=w.useContext(wd),[d,h]=w.useState(i),[f,m]=w.useState("right"),g=w.useRef(null),p=w.useRef(null);w.useEffect(()=>{if(!d)return;const x=()=>{if(!g.current)return;if(l==="left"){m("left");return}if(l==="right"){m("right");return}const S=g.current.getBoundingClientRect(),T=p.current?.offsetWidth??220,M=window.innerWidth-S.right-8,O=S.left-8,_=r?.placement??"right",z=l==="auto"?_:l,B=z==="right"?M:O,H=z==="right"?"left":"right",F=H==="right"?M:O;if(B>=T){m(z);return}if(F>=T){m(H);return}m(B>=F?z:H)};return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[d,l,r?.placement]);const b=w.useMemo(()=>({open:d,setOpen:h,toggle:()=>h(!d),triggerRef:g,contentRef:p,placement:f,preferredPlacement:l}),[d,f,l]);return c.jsx(wd.Provider,{value:b,children:c.jsx("div",{className:"relative",children:a})})},Fr=pn.forwardRef(({asChild:a=!1,className:i,children:l,onClick:r,...d},h)=>{const{open:f,toggle:m,triggerRef:g,placement:p}=Hb(),b=gl(h,x=>{g.current=x});if(a&&pn.isValidElement(l)){const x=l,S=of(x);return pn.cloneElement(x,{ref:gl(x.ref,b),onClick:T=>{S.onClick?.(T),r?.(T),T.defaultPrevented||m()},"aria-haspopup":"menu","aria-expanded":f,"data-state":f?"open":"closed"})}return c.jsxs("button",{ref:b,type:"button",onClick:x=>{r?.(x),x.defaultPrevented||m()},"aria-haspopup":"menu","aria-expanded":f,"data-state":f?"open":"closed",className:K("flex w-full items-center justify-between gap-2 rounded-sm px-3 py-2 text-left text-sm text-foreground transition-colors","hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-inset",i),...d,children:[c.jsx("span",{className:"min-w-0 truncate",children:l}),c.jsx(ao,{className:K("h-4 w-4 shrink-0 text-foreground/70 transition-transform",p==="left"&&"rotate-180")})]})});Fr.displayName="DropdownMenuSubTrigger";const Jc=({children:a,className:i,sideOffset:l=6,animate:r=!0,...d})=>{const{open:h,placement:f,contentRef:m}=Hb();return c.jsx(Rt,{children:h?c.jsx(ue.div,{ref:m,role:"menu",initial:r?{opacity:0,x:f==="right"?-6:6}:!1,animate:r?{opacity:1,x:0}:void 0,exit:r?{opacity:0,x:f==="right"?-6:6}:void 0,transition:{duration:.14},className:K("absolute top-0 z-50 min-w-52 rounded-md border border-border bg-background p-1 shadow-lg",f==="right"?"left-full":"right-full",i),style:{marginLeft:f==="right"?l:void 0,marginRight:f==="left"?l:void 0},...d,children:a}):null})},Yb=w.forwardRef(({options:a,value:i,onChange:l,placeholder:r="Select an option",label:d,error:h,hint:f,searchable:m=!1,clearable:g=!0,disabled:p,required:b,className:x,animate:S=!0},T)=>{const M=S!==!1,[O,_]=w.useState(!1),[z,B]=w.useState(""),[H,F]=w.useState("bottom"),U=w.useRef(null),W=a.find(J=>J.value===i),Q=m?a.filter(J=>J.label.toLowerCase().includes(z.toLowerCase())):a;w.useEffect(()=>{const J=q=>{U.current&&!U.current.contains(q.target)&&(_(!1),B(""))};return document.addEventListener("mousedown",J),()=>document.removeEventListener("mousedown",J)},[]),w.useEffect(()=>{if(!O)return;const J=()=>{if(!U.current)return;const q=U.current.getBoundingClientRect(),ie=m?360:300,le=window.innerHeight-q.bottom-8,oe=q.top-8;if(le>=ie){F("bottom");return}if(oe>=ie){F("top");return}F("bottom")};return J(),window.addEventListener("resize",J),window.addEventListener("scroll",J,!0),()=>{window.removeEventListener("resize",J),window.removeEventListener("scroll",J,!0)}},[O,m]);const R=J=>{l(J),_(!1),B("")},te=H==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:T,className:K("w-full space-y-1.5",x),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,b&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:U,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!p&&_(!O),disabled:p,"aria-haspopup":"listbox","aria-expanded":O,"aria-required":b,className:K("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",h&&"border-error focus:ring-error",!h&&"border-border",O&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[W?.icon&&c.jsx("span",{className:"shrink-0",children:W.icon}),c.jsx("span",{className:K("truncate",!W&&"text-foreground/50"),children:W?.label||r})]}),c.jsx(Rn,{className:K("w-5 h-5 text-primary transition-transform shrink-0",O&&"rotate-180")})]}),M?c.jsx(Rt,{children:O?c.jsx(yn,{open:O,anchorRef:U,placement:H,children:c.jsxs(ue.div,{initial:te.initial,animate:te.animate,exit:te.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[m&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:z,onChange:J=>B(J.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),z&&c.jsx("button",{type:"button",onClick:()=>B(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",role:"option","aria-selected":!i,onClick:()=>R(""),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),Q.length>0?Q.map(J=>c.jsxs("button",{type:"button",role:"option","aria-selected":J.value===i,onClick:()=>!J.disabled&&R(J.value),disabled:J.disabled,className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",J.value===i&&"bg-border text-foreground font-medium"),children:[J.icon&&c.jsx("span",{className:"shrink-0",children:J.icon}),c.jsx("span",{children:J.label})]},J.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):O&&c.jsx(yn,{open:O,anchorRef:U,placement:H,children:c.jsxs(ue.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[m&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:z,onChange:J=>B(J.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),z&&c.jsx("button",{type:"button",onClick:()=>B(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",role:"option","aria-selected":!i,onClick:()=>R(""),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),Q.length>0?Q.map(J=>c.jsxs("button",{type:"button",role:"option","aria-selected":J.value===i,onClick:()=>!J.disabled&&R(J.value),disabled:J.disabled,className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",J.value===i&&"bg-border text-foreground font-medium"),children:[J.icon&&c.jsx("span",{className:"shrink-0",children:J.icon}),c.jsx("span",{children:J.label})]},J.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),h&&c.jsx(ue.p,{...M?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:h}),f&&!h&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});Yb.displayName="Select";const qb=w.forwardRef(({options:a,value:i=[],onChange:l,placeholder:r="Select options...",label:d,error:h,hint:f,searchable:m=!1,clearable:g=!0,maxItems:p,disabled:b,required:x,className:S,animate:T=!0,chipVariant:M="primary"},O)=>{const _=T!==!1,[z,B]=w.useState(!1),[H,F]=w.useState(""),[U,W]=w.useState("bottom"),Q=w.useRef(null),R=a.filter(I=>i.includes(I.value)),te=m?a.filter(I=>I.label.toLowerCase().includes(H.toLowerCase())):a;w.useEffect(()=>{const I=A=>{Q.current&&!Q.current.contains(A.target)&&(B(!1),F(""))};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]),w.useEffect(()=>{if(!z)return;const I=()=>{if(!Q.current)return;const A=Q.current.getBoundingClientRect(),Y=m?360:300,E=window.innerHeight-A.bottom-8,re=A.top-8;if(E>=Y){W("bottom");return}if(re>=Y){W("top");return}W("bottom")};return I(),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[z,m]);const J=I=>{const A=i.includes(I)?i.filter(Y=>Y!==I):p&&i.length>=p?i:[...i,I];l(A)},q=I=>{const A=i.filter(Y=>Y!==I);l(A)},ie=()=>{l([])},le={default:"bg-secondary text-primary border border-border hover:bg-border",primary:"bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",success:"bg-success/10 text-success border border-success/20 hover:bg-success/20",warning:"bg-warning/10 text-warning border border-warning/20 hover:bg-warning/20",danger:"bg-error/10 text-error border border-error/20 hover:bg-error/20",info:"bg-info/10 text-info border border-info/20 hover:bg-info/20"},oe=U==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:O,className:K("w-full space-y-1.5",S),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,x&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:Q,className:"relative",children:[c.jsxs("div",{role:"button",tabIndex:b?-1:0,onClick:()=>!b&&B(!z),onKeyDown:I=>{b||(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),B(A=>!A))},"aria-haspopup":"listbox","aria-expanded":z,"aria-required":x,"aria-disabled":b,className:K("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-start justify-between gap-2 flex-wrap","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",b&&"bg-secondary cursor-not-allowed","touch-target text-base min-h-12",h&&"border-error focus:ring-error",!h&&"border-border",z&&"ring-2 ring-primary"),children:[i.length>0?c.jsx("div",{className:"flex flex-wrap gap-2 w-full",children:R.map(I=>c.jsxs(ue.div,{layout:!0,initial:_?{opacity:0,scale:.8}:{},animate:_?{opacity:1,scale:1}:{},exit:_?{opacity:0,scale:.8}:{},className:K("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-sm font-medium",le[M]),children:[I.icon&&c.jsx("span",{className:"shrink-0",children:I.icon}),c.jsx("span",{className:"truncate",children:I.label}),c.jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),q(I.value)},className:"shrink-0 ml-0.5 hover:opacity-70 transition-opacity","aria-label":`Remove ${I.label}`,children:c.jsx(Kt,{className:"w-4 h-4"})})]},I.value))}):c.jsx("span",{className:K("truncate","text-foreground/50"),children:r}),c.jsx(Rn,{className:K("w-5 h-5 text-primary transition-transform shrink-0 ml-auto",z&&"rotate-180")})]}),_?c.jsx(Rt,{children:z?c.jsx(yn,{open:z,anchorRef:Q,placement:U,children:c.jsxs(ue.div,{initial:oe.initial,animate:oe.animate,exit:oe.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[m&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:H,onChange:I=>F(I.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),H&&c.jsx("button",{type:"button",onClick:()=>F(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&i.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>ie(),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),te.length>0?te.map(I=>{const A=i.includes(I.value),Y=I.disabled||p!==void 0&&i.length>=p&&!A;return c.jsxs("div",{role:"option","aria-selected":A,"aria-disabled":Y,onClick:()=>!Y&&J(I.value),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",Y&&"opacity-50 cursor-not-allowed",A&&"bg-border text-foreground font-medium"),children:[c.jsx(li,{checked:A,disabled:Y,onChange:()=>!Y&&J(I.value),onClick:E=>E.stopPropagation(),animate:_,className:"w-5 h-5","aria-label":I.label}),I.icon&&c.jsx("span",{className:"shrink-0",children:I.icon}),c.jsx("span",{children:I.label})]},I.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):z&&c.jsx(yn,{open:z,anchorRef:Q,placement:U,children:c.jsxs(ue.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[m&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(jn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:H,onChange:I=>F(I.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),H&&c.jsx("button",{type:"button",onClick:()=>F(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&i.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>ie(),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),te.length>0?te.map(I=>{const A=i.includes(I.value),Y=I.disabled||p!==void 0&&i.length>=p&&!A;return c.jsxs("div",{role:"option","aria-selected":A,"aria-disabled":Y,onClick:()=>!Y&&J(I.value),className:K("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",Y&&"opacity-50 cursor-not-allowed",A&&"bg-border text-foreground font-medium"),children:[c.jsx(li,{checked:A,disabled:Y,onChange:()=>!Y&&J(I.value),onClick:E=>E.stopPropagation(),animate:_,className:"w-5 h-5","aria-label":I.label}),I.icon&&c.jsx("span",{className:"shrink-0",children:I.icon}),c.jsx("span",{children:I.label})]},I.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),h&&c.jsx(ue.p,{..._?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:h}),f&&!h&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});qb.displayName="MultiSelect";const Xr=({children:a,content:i,side:l="bottom",offset:r=10,delay:d=120,disabled:h=!1,open:f,defaultOpen:m=!1,onOpenChange:g,className:p,showArrow:b=!0,arrowSize:x=10,arrowClassName:S})=>{const[T,M]=w.useState(!1),[O,_]=w.useState(m),[z,B]=w.useState(l),[H,F]=w.useState("center"),[U,W]=w.useState(null),Q=w.useRef(null),R=w.useRef(null),te=w.useRef(null),J=f!==void 0,q=J?!!f:O,ie=w.useCallback(se=>{J||_(se),g?.(se)},[J,g]),le=w.useCallback(()=>{te.current!==null&&(window.clearTimeout(te.current),te.current=null)},[]),oe=w.useCallback(()=>{h||(le(),te.current=window.setTimeout(()=>{ie(!0)},Math.max(0,d)))},[le,d,h,ie]),I=w.useCallback(()=>{le(),ie(!1)},[le,ie]),A=w.useCallback(()=>{if(!q||!Q.current||!R.current)return;const se=Q.current.getBoundingClientRect(),C=R.current.getBoundingClientRect(),G=8,ee=window.innerWidth-se.right-G,ae=se.left-G,pe=se.top-G,ye=window.innerHeight-se.bottom-G,me={right:ee>=C.width+r,left:ae>=C.width+r,top:pe>=C.height+r,bottom:ye>=C.height+r},Xe={right:ee,left:ae,top:pe,bottom:ye};let Te=l;me[Te]||(Te=Object.entries(Xe).sort((wt,xt)=>xt[1]-wt[1])[0]?.[0]??"bottom");let We=0,nt=0;if(Te==="right")We=se.right+r,nt=se.top+se.height/2-C.height/2,F("center");else if(Te==="left")We=se.left-C.width-r,nt=se.top+se.height/2-C.height/2,F("center");else if(Te==="top"){const at=se.left,wt=se.right-C.width,xt=at>=G&&at+C.width<=window.innerWidth-G,Ne=wt>=G&&wt+C.width<=window.innerWidth-G;xt||!xt&&!Ne&&ee>=ae?(We=at,F("start")):(We=wt,F("end")),nt=se.top-C.height-r}else{const at=se.left,wt=se.right-C.width,xt=at>=G&&at+C.width<=window.innerWidth-G,Ne=wt>=G&&wt+C.width<=window.innerWidth-G;xt||!xt&&!Ne&&ee>=ae?(We=at,F("start")):(We=wt,F("end")),nt=se.bottom+r}const Ze=Math.min(Math.max(We,G),window.innerWidth-C.width-G),kt=Math.min(Math.max(nt,G),window.innerHeight-C.height-G);B(Te),W({left:Ze,top:kt})},[q,r,l]);w.useEffect(()=>(M(!0),()=>{M(!1)}),[]),w.useEffect(()=>()=>le(),[le]),w.useEffect(()=>{if(q)return A(),window.addEventListener("resize",A),window.addEventListener("scroll",A,!0),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",A,!0)}},[q,A]),w.useEffect(()=>{if(!q)return;const se=window.requestAnimationFrame(A);return()=>window.cancelAnimationFrame(se)},[i,q,A]);const Y=w.useMemo(()=>({position:"fixed",zIndex:80,left:U?.left??-9999,top:U?.top??-9999,pointerEvents:"none"}),[U]),E=w.useMemo(()=>({width:x,height:x}),[x]),re=w.useMemo(()=>z==="right"?"left-0 top-1/2 -translate-x-1/2 -translate-y-1/2 border-l border-b":z==="left"?"right-0 top-1/2 translate-x-1/2 -translate-y-1/2 border-r border-t":z==="top"?H==="start"?"bottom-0 left-4 translate-y-1/2 border-r border-b":H==="end"?"bottom-0 right-4 translate-y-1/2 border-r border-b":"bottom-0 left-1/2 -translate-x-1/2 translate-y-1/2 border-r border-b":H==="start"?"top-0 left-4 -translate-y-1/2 border-l border-t":H==="end"?"top-0 right-4 -translate-y-1/2 border-l border-t":"top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 border-l border-t",[H,z]);return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:Q,className:"inline-flex",onMouseEnter:oe,onMouseLeave:I,onFocus:oe,onBlur:I,onKeyDown:se=>{se.key==="Escape"&&I()},children:a}),T&&q&&!h&&Vb.createPortal(c.jsx("div",{style:Y,role:"tooltip","aria-hidden":!q,children:c.jsxs("div",{ref:R,className:K("relative w-max whitespace-normal rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground shadow-xl",p),children:[b&&c.jsx("span",{style:E,className:K("absolute rotate-45 bg-background border-border",re,S)}),i]})}),document.body)]})},_y=({items:a,variant:i="default",allowMultiple:l=!1,defaultOpen:r=[],className:d,onChange:h,animate:f=!0})=>{const m=f!==!1,[g,p]=w.useState(r),b=S=>{let T;l?T=g.includes(S)?g.filter(M=>M!==S):[...g,S]:T=g.includes(S)?[]:[S],p(T),h?.(T)},x={default:"border-t border-border",bordered:"border border-border rounded-none"};return c.jsx("div",{className:K("w-full",d),children:a.map((S,T)=>c.jsxs("div",{className:K(x[i],T===a.length-1&&i==="default"&&"border-b border-border"),children:[c.jsxs(ue.button,{onClick:()=>!S.disabled&&b(S.id),disabled:S.disabled,className:K("w-full flex items-center justify-between px-4 py-3 text-left transition-colors","disabled:opacity-50 disabled:cursor-not-allowed","disabled:hover:bg-transparent"),whileHover:!S.disabled&&m?{backgroundColor:"var(--color-secondary)"}:{},whileTap:!S.disabled&&m?{scale:.99}:{},children:[c.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[S.icon&&c.jsx("span",{className:"shrink-0",children:S.icon}),c.jsx("span",{className:"text-foreground font-medium",children:S.title})]}),c.jsx(ue.div,{animate:{rotate:g.includes(S.id)?180:0},transition:m?{duration:.3}:{duration:0},className:"shrink-0 ml-2",children:c.jsx(Rn,{className:"w-5 h-5 text-foreground/60"})})]}),c.jsx(Rt,{children:g.includes(S.id)&&c.jsx(ue.div,{initial:m?{height:0,opacity:0}:{height:"auto",opacity:1},animate:{height:"auto",opacity:1},exit:m?{height:0,opacity:0}:{height:0,opacity:1},transition:m?{duration:.3,ease:"easeInOut"}:{duration:0},className:"overflow-hidden",children:c.jsx("div",{className:"px-4 py-3 bg-secondary/40 text-foreground text-sm leading-relaxed",children:S.content})})})]},S.id))})},ht=({children:a,variant:i="default",padding:l="md",className:r,onClick:d,hover:h=!1,animate:f=!0})=>{const m=f!==!1,g={default:"bg-background border border-border",outlined:"bg-transparent border-2 border-border-dark",elevated:"bg-background border-2 border-border shadow-card"},p={none:"p-0",sm:"p-3",md:"p-4 sm:p-6",lg:"p-6 sm:p-8"},b=d?ue.button:ue.div;return c.jsx(b,{...m?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},whileHover:m&&(h||d)?{y:-2,boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"}:void 0,whileTap:m&&d?{scale:.98}:void 0,className:K("rounded-lg transition-all duration-200",g[i],p[l],d&&"cursor-pointer w-full text-left",r),onClick:d,children:a})},mt=({children:a,className:i})=>c.jsx("div",{className:K("mb-4",i),children:a}),pt=({children:a,className:i})=>c.jsx("h3",{className:K("text-lg font-semibold text-foreground",i),children:a}),gt=({children:a,className:i})=>c.jsx("p",{className:K("text-sm text-foreground/70 mt-1",i),children:a}),yt=({children:a,className:i})=>c.jsx("div",{className:i,children:a}),JT=({isOpen:a,onClose:i,children:l,title:r,position:d="right",className:h,animate:f=!0})=>{const m=f!==!1;w.useEffect(()=>{const p=b=>{b.key==="Escape"&&i()};return a&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,i]);const g=a?c.jsxs(c.Fragment,{children:[c.jsx(ue.div,{...m?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}:{},className:"fixed inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:i}),c.jsxs(ue.div,{...m?{initial:{x:d==="left"?"-100%":"100%"},animate:{x:0},exit:{x:d==="left"?"-100%":"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:K("fixed top-0 z-50 h-full w-[400px] sm:w-[480px] bg-background shadow-xl",d==="left"?"left-0 border-r":"right-0 border-l","border-border",h),children:[r&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:r}),c.jsx("button",{onClick:i,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close drawer",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto h-[calc(100%-5rem)] p-6",children:l})]})]}):null;return m?c.jsx(Rt,{children:g}):g},PT=({isOpen:a,onClose:i,children:l,title:r,size:d="md",className:h,animate:f=!0})=>{const m=f!==!1,g=w.useRef(null);w.useEffect(()=>{const x=S=>{S.key==="Escape"&&i()};return a&&(document.addEventListener("keydown",x),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",x),document.body.style.overflow="unset"}},[a,i]);const p={sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-6xl",full:"max-w-full mx-4"},b=a?c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:x=>{x.target===x.currentTarget&&i()},children:c.jsxs(ue.div,{ref:g,...m?{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2}}:{},className:K("bg-background border border-border rounded-lg shadow-2xl w-full max-h-[90vh] overflow-hidden flex flex-col",p[d],h),children:[r&&c.jsxs("div",{className:"px-6 py-4 border-b border-border flex items-center justify-between",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:r}),c.jsx("button",{onClick:i,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close modal",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto flex-1",children:l})]})}):null;return m?c.jsx(Rt,{children:b}):b},FT=({children:a,className:i})=>c.jsx("div",{className:K("px-6 py-4",i),children:a}),WT=({children:a,className:i})=>c.jsx("div",{className:K("px-6 py-4 border-t border-border flex items-center justify-end gap-3 bg-background sticky bottom-0",i),children:a}),$T=({isOpen:a,onClose:i,title:l,children:r,showCloseButton:d=!1,className:h,animate:f=!0})=>{const m=f!==!1;w.useEffect(()=>{const p=b=>{b.key==="Escape"&&i()};return a?(document.addEventListener("keydown",p),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",p),document.body.style.overflow="unset"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,i]);const g=a?c.jsxs(c.Fragment,{children:[c.jsx(ue.div,{...m?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}:{},onClick:i,className:"fixed inset-0 bg-black/50 z-40"}),c.jsxs(ue.div,{...m?{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:K("fixed bottom-0 left-0 right-0 z-50","bg-white rounded-t-3xl shadow-2xl","max-h-[90vh] flex flex-col",h),children:[c.jsx("div",{className:"flex justify-center pt-3 pb-2",children:c.jsx("div",{className:"w-12 h-1.5 bg-border-dark rounded-full"})}),(l||d)&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 ",children:[l&&c.jsx("h2",{className:"text-lg font-semibold text-foreground",children:l}),d&&c.jsx("button",{onClick:i,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close bottom sheet",children:"Esc"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:r})]})]}):null;return m?c.jsx(Rt,{children:g}):g};function IT({data:a,columns:i,loading:l=!1,onRowClick:r,keyExtractor:d,selectable:h=!1,selectedKeys:f,defaultSelectedKeys:m=[],onSelectionChange:g,className:p,animate:b=!0}){const x=b!==!1,[S,T]=w.useState(null),[M,O]=w.useState("asc"),[_,z]=w.useState(m),B=f!==void 0,H=B?f:_,F=new Set(H),U=q=>{B||z(q);const ie=new Set(q),le=a.filter(oe=>ie.has(d(oe)));g?.(q,le)},W=q=>{S===q?O(M==="asc"?"desc":"asc"):(T(q),O("asc"))},Q=S?[...a].sort((q,ie)=>{const le=q[S],oe=ie[S];return le<oe?M==="asc"?-1:1:le>oe?M==="asc"?1:-1:0}):a,R=a.length>0&&a.every(q=>F.has(d(q))),te=q=>{if(q){U(a.map(ie=>d(ie)));return}U([])},J=(q,ie)=>{const le=d(q);if(ie){F.has(le)||U([...H,le]);return}U(H.filter(oe=>oe!==le))};return l?c.jsx("div",{className:K("border border-border rounded-lg overflow-hidden",p),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsxs("tr",{children:[h&&c.jsx("th",{className:"px-4 py-4 text-left w-14",children:c.jsx("div",{className:"flex items-center",onClick:q=>q.stopPropagation(),children:c.jsx(li,{checked:R,onChange:te,className:"w-5 h-5","aria-label":"Select all rows"})})}),i.map((q,ie)=>c.jsx("th",{className:"px-6 py-4 text-left",children:c.jsx("div",{className:K("h-4 bg-border rounded w-24",x&&"animate-pulse")})},ie))]})}),c.jsx("tbody",{children:[...Array(5)].map((q,ie)=>c.jsxs("tr",{className:"border-b border-border",children:[h&&c.jsx("td",{className:"px-4 py-4 w-14",children:c.jsx("div",{className:K("h-4 bg-secondary rounded",x&&"animate-pulse")})}),i.map((le,oe)=>c.jsx("td",{className:"px-6 py-4",children:c.jsx("div",{className:K("h-4 bg-secondary rounded",x&&"animate-pulse")})},oe))]},ie))})]})})}):c.jsx(ue.div,{...x?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:K("border border-border rounded-lg overflow-hidden",p),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsxs("tr",{children:[h&&c.jsx("th",{className:"px-4 py-4 text-left w-14",children:c.jsx("div",{className:"flex items-center",onClick:q=>q.stopPropagation(),children:c.jsx(li,{checked:R,onChange:te,className:"w-5 h-5","aria-label":"Select all rows"})})}),i.map((q,ie)=>c.jsx("th",{className:K("px-6 py-4 text-left text-sm font-semibold text-foreground",q.width,q.sortable&&"cursor-pointer transition-colors"),onClick:()=>q.sortable&&W(q.key),children:c.jsxs("div",{className:"flex items-center gap-2",children:[q.header,q.sortable&&c.jsx("span",{className:"text-primary/50 hover:text-primary transition-colors",children:S===q.key?M==="asc"?c.jsx(oj,{className:"w-4 h-4"}):c.jsx(lj,{className:"w-4 h-4"}):c.jsx(bj,{className:"w-4 h-4"})})]})},ie))]})}),c.jsx("tbody",{children:Q.map((q,ie)=>c.jsxs(ue.tr,{...x?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2,delay:ie*.05}}:{},onClick:()=>r&&r(q),className:K("border-b border-border transition-colors",r&&"cursor-pointer hover:bg-secondary"),children:[h&&c.jsx("td",{className:"px-4 py-4 w-14",onClick:le=>le.stopPropagation(),children:c.jsx("div",{className:"flex items-center",children:c.jsx(li,{checked:F.has(d(q)),onChange:le=>J(q,le),className:"w-5 h-5","aria-label":`Select row ${ie+1}`})})}),i.map((le,oe)=>c.jsx("td",{className:K("px-6 py-4 text-sm text-foreground/70",le.width),style:le.width?{width:le.width}:void 0,title:le.truncate&&!le.render?String(q[le.key]??""):void 0,children:le.truncate&&!le.render?c.jsx("div",{className:"truncate",children:String(q[le.key]??"")}):le.render?c.jsx("div",{className:"truncate",children:le.render(q)}):String(q[le.key]??"")},oe))]},d(q)))})]})})})}const eN=({currentPage:a,totalPages:i,onPageChange:l,totalItems:r,itemsPerPage:d,className:h,animate:f=!0})=>{const m=f!==!1,g=pn.useMemo(()=>{if(i<=5)return Array.from({length:i},(M,O)=>O+1);const x=Math.floor(5/2);let S=Math.max(1,a-x),T=S+5-1;return T>i&&(T=i,S=Math.max(1,T-5+1)),Array.from({length:T-S+1},(M,O)=>S+O)},[a,i]),p=b=>{const x=Math.max(1,Math.min(i,b));x!==a&&l(x)};return c.jsxs(ue.div,{...m?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:K("flex items-center justify-between gap-4 flex-wrap",h),children:[c.jsx("div",{className:"text-sm text-foreground/70",children:r&&d&&c.jsxs("span",{children:["Showing ",Math.min((a-1)*d+1,r)," to"," ",Math.min(a*d,r)," of ",r," results"]})}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ye,{variant:"secondary",size:"sm",disabled:a===1,onClick:()=>p(a-1),icon:c.jsx(yd,{className:"w-4 h-4"}),animate:f,children:"Previous"}),!g.includes(1)&&c.jsx(Ye,{variant:"secondary",size:"sm",onClick:()=>p(1),icon:c.jsx(Aj,{className:"w-4 h-4 text-primary"}),animate:f,"aria-label":"Go to first page"}),c.jsx(ue.div,{layout:!0,className:"flex items-center justify-center gap-1",children:c.jsx(Rt,{initial:!1,mode:"popLayout",children:g.map(b=>{const x=b===a;return c.jsx(ue.button,{layout:!0,whileHover:m?{y:-1}:void 0,whileTap:m?{scale:.96}:void 0,onClick:()=>p(b),className:K("w-10 h-10 rounded-md border text-sm font-medium tabular-nums leading-none inline-flex items-center justify-center transition-all duration-200",x?"bg-primary text-white border-primary shadow-sm":"hover:bg-secondary border-border text-foreground"),"aria-current":x?"page":void 0,children:b},b)})})}),c.jsx(Ye,{variant:"secondary",size:"sm",disabled:a===i,onClick:()=>p(a+1),icon:c.jsx(ao,{className:"w-4 h-4"}),animate:f,children:"Next"})]})]})},tN=({icon:a,onClick:i,label:l,actions:r,variant:d="primary",position:h="bottom-right",disabled:f,className:m,animate:g=!0})=>{const p=g!==!1,[b,x]=w.useState(!1),S={"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2"},T={primary:"bg-primary text-white hover:bg-primary/80 shadow-lg",secondary:"bg-background text-primary border-2 border-primary hover:bg-secondary shadow-md"},M={primary:"bg-primary text-white",success:"bg-success text-white",danger:"bg-error text-white",warning:"bg-warning text-white"},O=()=>{r&&r.length>0?x(!b):i&&i()};return c.jsxs("div",{className:K(S[h],"z-50",m),children:[p?c.jsx(Rt,{children:b&&r?c.jsx(ue.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:r.map((_,z)=>c.jsxs(ue.div,{initial:{opacity:0,y:20,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.8},transition:{delay:z*.05},className:"flex items-center gap-3",children:[c.jsx("span",{className:K("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",_.labelClassName),style:_.labelStyle,children:_.label}),c.jsx(ue.button,{whileHover:p?{scale:1.1}:void 0,whileTap:p?{scale:.9}:void 0,onClick:()=>{_.onClick(),x(!1)},className:K("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",M[_.variant||"primary"]),children:_.icon})]},z))}):null}):b&&r&&c.jsx("div",{className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:r.map((_,z)=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:K("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",_.labelClassName),style:_.labelStyle,children:_.label}),c.jsx("button",{onClick:()=>{_.onClick(),x(!1)},className:K("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",M[_.variant||"primary"]),children:_.icon})]},z))}),c.jsxs(ue.button,{whileTap:p?{scale:f?1:.9}:void 0,whileHover:p?{scale:f?1:1.05}:void 0,onClick:O,disabled:f,className:K("z-30 rounded-full p-4 transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2",T[d],l?"px-6":"w-16 h-16 justify-center",b&&"rotate-45"),children:[c.jsx("span",{className:"flex-shrink-0",children:a||(b?c.jsx(Kt,{className:"w-6 h-6"}):c.jsx(bd,{className:"w-6 h-6"}))}),l&&c.jsx("span",{className:"font-medium",children:l})]})]})},nN=({steps:a,currentStep:i,className:l,animate:r=!0})=>{const d=r!==!1,h=a[i];return c.jsxs("div",{className:K("w-full",l),children:[c.jsx("div",{className:"hidden md:block",children:c.jsx("div",{className:"relative flex items-center mb-2",children:a.map((f,m)=>{const g=m<i,p=m===i,b=m>i;return c.jsxs(pn.Fragment,{children:[c.jsxs("div",{className:"flex flex-col items-center relative z-10",children:[c.jsx(ue.div,{initial:!1,animate:d?{scale:p?1.05:1}:void 0,className:K("w-12 h-12 rounded-full flex items-center justify-center","font-semibold text-base transition-all duration-300","ring-4 ring-white",(g||p)&&"bg-primary text-white shadow-lg",b&&"bg-border text-muted-foreground"),children:g?c.jsx(af,{className:"w-6 h-6 stroke-[3]"}):c.jsx("span",{children:m+1})}),c.jsxs("div",{className:"mt-3 text-center max-w-[120px]",children:[c.jsx("span",{className:K("text-sm font-semibold block",p&&"text-primary",g&&"text-primary",b&&"text-primary/50"),children:f.label}),f.description&&c.jsx("p",{className:K("text-xs mt-1 leading-tight",p&&"text-primary",g&&"text-primary/70",b&&"text-primary/50"),children:f.description})]})]}),m<a.length-1&&c.jsx("div",{className:"flex-1 relative",style:{marginTop:"-48px",marginLeft:"4px",marginRight:"4px"},children:c.jsx("div",{className:"h-1.5 bg-border rounded-full overflow-hidden",children:c.jsx(ue.div,{initial:!1,style:{width:m<i?"100%":"0%"},animate:d?{width:m<i?"100%":"0%"}:void 0,transition:d?{duration:.4,ease:"easeInOut"}:{duration:0},className:"h-full bg-primary rounded-full"})})})]},m)})})}),c.jsxs("div",{className:"md:hidden",children:[c.jsx("div",{className:"flex items-center justify-center gap-2 mb-3",children:a.map((f,m)=>{const g=m<i,p=m===i;return c.jsx(ue.div,{initial:!1,style:{backgroundColor:g||p?"var(--color-primary)":"var(--color-border-dark)"},animate:d?{scale:p?1.2:1}:void 0,className:K("rounded-full transition-all duration-300",p?"w-3 h-3":"w-2 h-2",(g||p)&&"shadow-sm")},m)})}),c.jsx(ue.div,{...d?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"text-center",children:c.jsx("p",{className:"text-sm font-semibold text-foreground",children:h?.label})},i)]})]})},Ia=({children:a,variant:i="default",size:l="md",className:r,dot:d=!1,animate:h=!0})=>{const f=h!==!1,m={default:"bg-secondary text-primary border border-border",primary:"bg-primary/10 text-primary border border-primary/20",success:"bg-success/10 text-success border border-success/20",warning:"bg-warning/10 text-warning border border-warning/20",danger:"bg-error/10 text-error border border-error/20",info:"bg-info/10 text-info border border-info/20"},g={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},p={default:"bg-primary",primary:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-error",info:"bg-info"};return c.jsxs(ue.span,{...f?{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2}}:{},className:K("inline-flex items-center gap-1.5 rounded-lg font-medium",m[i],g[l],r),children:[d&&c.jsx("span",{className:K("w-1.5 h-1.5 rounded-full",p[i])}),a]})},aN={sm:"w-4 h-4 border-2",md:"w-8 h-8 border-2",lg:"w-12 h-12 border-3",xl:"w-16 h-16 border-4"},iN={primary:"border-primary border-t-transparent",secondary:"border-secondary border-t-transparent",white:"border-white border-t-transparent"},ti=({size:a="md",variant:i="primary",className:l,label:r,animate:d=!0})=>{const h=d!==!1,f=h?ue.div:"div";return c.jsxs("div",{className:K("inline-flex flex-col items-center gap-2",l),children:[c.jsx(f,{className:K("rounded-full",aN[a],iN[i]),...h?{animate:{rotate:360},transition:{duration:.8,repeat:1/0,ease:"linear"}}:{},role:"status","aria-label":r||"Loading"}),r&&c.jsx("span",{className:"text-sm text-foreground/70",children:r})]})};ti.displayName="Spinner";const Xb=w.createContext(void 0),sN=()=>{const a=w.useContext(Xb);if(!a)throw new Error("useToast must be used within ToastProvider");return a},lN={success:"bg-success text-white border-success",error:"bg-error text-white border-error",warning:"bg-warning text-white border-warning",info:"bg-info text-white border-info",loading:"bg-primary text-white border-primary",default:"bg-background text-foreground border-border"},Kb={success:af,error:vj,warning:Pj,info:vb,loading:Sb,default:cj},Qb={success:"bg-success/15 text-success border-success/25",error:"bg-error/15 text-error border-error/25",warning:"bg-warning/15 text-warning border-warning/25",info:"bg-info/15 text-info border-info/25",loading:"bg-primary/15 text-primary border-primary/25",default:"bg-foreground/5 text-foreground border-border"},rN={"top-left":"top-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4"},By=a=>typeof a.message=="string"?a.message:String(a.message),oN=a=>{if(a.priority==="high")return 90;const i=a.duration??5e3;return i<=0?140:Math.max(90,Math.min(220,Math.round(i*.06)))},uN=a=>{const i=a.duration??2200;return i<=0?2200:i},Ly=({toast:a,compact:i=!1})=>{const l=a.variant||"default",r=Kb[l];return c.jsx("span",{className:K("inline-flex shrink-0 items-center justify-center rounded-full border shadow-sm",i?"h-7 w-7":"h-9 w-9",Qb[l]),"aria-hidden":!0,children:c.jsx(r,{className:K(i?"h-3.5 w-3.5":"h-4 w-4",l==="loading"&&"animate-spin")})})},Zb=({children:a,position:i="top-center",maxToasts:l=5,animate:r=!0})=>{const d=r!==!1,[h,f]=w.useState([]),[m,g]=w.useState("idle"),[p,b]=w.useState(!1),x=w.useRef(null),S=w.useRef(null),T=w.useRef(null),M=w.useRef("idle");w.useEffect(()=>{M.current=m},[m]);const O=w.useCallback(()=>{x.current!==null&&(window.clearTimeout(x.current),x.current=null)},[]),_=w.useCallback(()=>{S.current!==null&&(window.clearTimeout(S.current),S.current=null)},[]),z=w.useCallback(()=>{T.current!==null&&(window.clearTimeout(T.current),T.current=null)},[]),B=w.useCallback(()=>{O(),_(),z()},[_,z,O]),H=w.useCallback(A=>{B(),f(Y=>Y.filter(E=>E.id!==A))},[B]),F=w.useCallback(A=>{if(typeof A.message!="string"){console.error("Toast message must be a string, received:",A.message);return}const Y=Math.random().toString(36).substring(2,9),E={...A,id:Y,createdAt:Date.now()};f(re=>{const se=re.filter(G=>G.id!==Y);return[E,...se].slice(0,l)})},[l]),U=h[0]??null,W=h.length,Q=W>1,R=U?.variant||"default",te=U?.priority==="high",J=m==="expanded";w.useEffect(()=>{if(h.length===0){B(),g("idle"),b(!1);return}if(p){B();return}(M.current==="idle"||M.current==="compact")&&(g("compact"),_(),x.current=window.setTimeout(()=>{g("expanded")},oN(U??h[0]))),z(),T.current=window.setTimeout(()=>{g("compact"),_(),S.current=window.setTimeout(()=>{U&&f(A=>A.filter(Y=>Y.id!==U.id))},180)},uN(U??h[0]))},[U,B,_,z,p,h]),w.useEffect(()=>()=>{B()},[B]);const q=K("pointer-events-auto overflow-hidden border shadow-[0_24px_64px_rgba(0,0,0,0.16)] backdrop-blur-md","will-change-[width,height,transform]"),ie=J?"min(92vw, 36rem)":"3.5rem",le=J?"auto":"3.5rem",oe=J?"1.75rem":"9999px",I=Q?h.slice(1):[];return c.jsxs(Xb.Provider,{value:{toasts:h,addToast:F,removeToast:H},children:[a,c.jsx("div",{className:K("fixed z-100 px-4 pointer-events-none",rN[i]),children:c.jsx(Rt,{initial:!1,mode:"popLayout",children:U&&c.jsx(ue.div,{layout:!0,"aria-live":"polite","aria-atomic":"true",initial:d?{opacity:0,scale:.72}:!1,animate:d?{opacity:1,scale:1}:{},exit:d?{opacity:0,scale:.72}:{},transition:d?{type:"spring",stiffness:460,damping:35,mass:.85}:{duration:0},className:K(q,lN[R],te&&"ring-2 ring-primary/25"),style:{width:ie,minHeight:le,borderRadius:oe},onMouseEnter:()=>{b(!0),B()},onMouseLeave:()=>{b(!1)},children:c.jsx(Rt,{initial:!1,mode:"wait",children:J?c.jsxs(ue.div,{layout:!0,initial:d?{opacity:0,y:-6}:!1,animate:d?{opacity:1,y:0}:{},exit:d?{opacity:0,y:6}:{},transition:d?{duration:.2}:{duration:0},className:"flex items-start gap-3 p-4",children:[c.jsx(Ly,{toast:U}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"truncate text-sm font-medium leading-relaxed text-foreground",children:By(U)}),c.jsx("p",{className:"text-[11px] text-foreground/60",children:W===1?"Notification":`${W} notifications`})]}),c.jsx("button",{type:"button",onClick:()=>H(U.id),className:"shrink-0 rounded-full p-1 text-current/70 transition-colors hover:bg-current/10 hover:text-current","aria-label":"Close notification",children:c.jsx(Kt,{className:"h-4 w-4"})})]}),I.length>0&&c.jsx("div",{className:"mt-3 overflow-hidden rounded-2xl border border-current/10 bg-black/5",children:c.jsx("div",{className:"divide-y divide-current/10",children:I.map((A,Y)=>{const E=Kb[A.variant||"default"];return c.jsxs("div",{className:K("flex items-start gap-3 px-3 py-2.5",Y===0&&"bg-white/5"),children:[c.jsx("span",{className:K("mt-0.5 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-full border",Qb[A.variant||"default"]),"aria-hidden":!0,children:c.jsx(E,{className:K("h-3 w-3",A.variant==="loading"&&"animate-spin")})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("p",{className:"min-w-0 flex-1 text-sm text-foreground/90",children:By(A)}),A.priority==="high"&&c.jsx("span",{className:"shrink-0 rounded-full border border-primary/20 bg-primary/10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-primary",children:"High"})]}),Y===0&&A.action&&c.jsx("div",{className:"mt-2 flex justify-end",children:c.jsx("button",{type:"button",onClick:A.action.onClick,className:"inline-flex h-8 items-center rounded-full border border-current/25 px-3 text-xs font-semibold transition-colors hover:bg-current/10",children:A.action.label})})]}),Y===0&&c.jsx("button",{type:"button",onClick:()=>H(A.id),className:"shrink-0 rounded-full p-1 text-current/70 transition-colors hover:bg-current/10 hover:text-current","aria-label":"Dismiss active notification",children:c.jsx(Kt,{className:"h-4 w-4"})})]},A.id)})})})]})]},"expanded"):c.jsx(ue.div,{layout:!0,initial:d?{opacity:0,scale:.72}:!1,animate:d?{opacity:1,scale:1}:{},exit:d?{opacity:0,scale:.72}:{},transition:d?{duration:.18}:{duration:0},className:"flex h-14 w-14 items-center justify-center",children:c.jsxs("div",{className:"relative flex items-center justify-center",children:[c.jsx(Ly,{toast:U,compact:!0}),W>1&&c.jsx("span",{className:"absolute -right-1 -top-1 inline-flex h-4 min-w-4 items-center justify-center rounded-full border border-background bg-foreground px-1 text-[9px] font-semibold leading-none text-background shadow-sm",children:W})]})},"compact")})},U.id)})})]})};Zb.displayName="ToastProvider";const cN=({onRecordingComplete:a,label:i="Record Audio",maxDuration:l=300,disabled:r,className:d,animate:h=!0})=>{const f=h!==!1,[m,g]=w.useState(!1),[p,b]=w.useState(!1),[x,S]=w.useState(0),[T,M]=w.useState(null),O=w.useRef(null),_=w.useRef([]),z=w.useRef(null),B=async()=>{try{const R=await navigator.mediaDevices.getUserMedia({audio:!0}),te=new MediaRecorder(R);O.current=te,_.current=[],te.ondataavailable=J=>{J.data.size>0&&_.current.push(J.data)},te.onstop=()=>{const J=new Blob(_.current,{type:"audio/webm"}),q=URL.createObjectURL(J);M(q),a(J),R.getTracks().forEach(ie=>ie.stop())},te.start(),g(!0),S(0),z.current=setInterval(()=>{S(J=>J>=l?(U(),J):J+1)},1e3)}catch(R){console.error("Error accessing microphone:",R)}},H=()=>{O.current?.state==="recording"&&(O.current.pause(),b(!0),z.current&&clearInterval(z.current))},F=()=>{O.current?.state==="paused"&&(O.current.resume(),b(!1),z.current=setInterval(()=>{S(R=>Math.min(R+1,l))},1e3))},U=()=>{O.current&&(O.current.stop(),g(!1),b(!1),z.current&&(clearInterval(z.current),z.current=null))},W=()=>{M(null),S(0)},Q=R=>{const te=Math.floor(R/60),J=R%60;return`${te.toString().padStart(2,"0")}:${J.toString().padStart(2,"0")}`};return c.jsxs("div",{className:K("w-full",d),children:[i&&c.jsx("label",{className:"block mb-2 text-sm font-medium text-primary",children:i}),c.jsxs("div",{className:"p-4 md:p-6 bg-background rounded-lg border-2 border-border space-y-4",children:[!T&&c.jsxs("div",{className:"flex flex-col items-center gap-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(ue.button,{type:"button",whileTap:f?{scale:r?1:.95}:void 0,onClick:m?p?F:H:B,disabled:r,className:K("w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center","transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed",m?K("bg-warning text-white",f&&"animate-pulse"):"bg-primary text-white hover:bg-primary/80"),children:m?p?c.jsx(Uj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(Bj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(Vj,{className:"w-6 h-6 md:w-8 md:h-8"})}),m&&!p&&c.jsx(ue.div,{className:"absolute top-0 right-0 w-4 h-4 bg-error rounded-full border-2 border-white",animate:f?{scale:[1,1.2,1]}:void 0,transition:f?{repeat:1/0,duration:1.5}:{duration:0}})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-xl md:text-2xl font-mono font-semibold text-foreground",children:Q(x)}),c.jsx("p",{className:"text-xs md:text-sm text-primary/70 mt-1",children:m?p?"Paused":"Recording...":"Tap to record"})]}),m&&c.jsxs(ue.button,{...f?{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1}}:{},type:"button",onClick:U,className:"px-4 py-2 text-sm bg-error text-white rounded-full font-medium hover:bg-red-600 flex items-center gap-2",children:[c.jsx(Qj,{className:"w-4 h-4"}),"Stop"]})]}),T&&c.jsxs(ue.div,{...f?{initial:{opacity:0},animate:{opacity:1}}:{},className:"space-y-3",children:[c.jsx("audio",{src:T,controls:!0,className:"w-full"}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:"text-sm text-primary/70",children:["Duration: ",Q(x)]}),c.jsxs("button",{type:"button",onClick:W,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",children:[c.jsx(xd,{className:"w-4 h-4"}),"Delete"]})]})]})]})]})},dN=({text:a="Built by StackLoop",showHeart:i=!0,href:l,position:r="fixed",backgroundColor:d="bg-gray-900",textColor:h="text-gray-400",className:f=""})=>{const m=i?c.jsxs(c.Fragment,{children:["Built with ",c.jsx("span",{className:"text-red-500 mx-1",children:"❤️"})," by ",a.replace(/^Built by /,"")]}):a,g=l?c.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:`${h} hover:text-white transition-colors duration-200 text-sm`,children:m}):c.jsx("span",{className:`${h} text-sm`,children:m});return c.jsx("div",{className:`${r} bottom-0 left-0 right-0 ${d} ${f}`,style:{zIndex:40},children:c.jsx("div",{className:"flex items-center justify-center py-2 px-4",children:g})})},fN='button, a, [role="button"], [data-ripple="true"]';function hN(a){return a.getAttribute("aria-disabled")==="true"?!0:a instanceof HTMLButtonElement?a.disabled:!1}function mN(a){return a.getAttribute("data-ripple")==="false"}function pN(){if(typeof window>"u"||window.__uiRippleInitialized)return;const a=(l,r)=>{r.remove(),l.dataset.ripplePositioned==="true"&&!l.querySelector(".button-ripple")&&(l.style.position="",delete l.dataset.ripplePositioned),l.dataset.rippleOverflow==="true"&&!l.querySelector(".button-ripple")&&(l.style.overflow="",delete l.dataset.rippleOverflow)},i=l=>{const r=l.target;if(!r)return;const d=r.closest(fN);if(!d||hN(d)||mN(d))return;const h=d.getBoundingClientRect(),f=Math.max(h.width,h.height)*2,m=l.clientX-h.left-f/2,g=l.clientY-h.top-f/2,p=document.createElement("span");p.className="button-ripple",p.style.left=`${m}px`,p.style.top=`${g}px`,p.style.width=`${f}px`,p.style.height=`${f}px`,getComputedStyle(d).position==="static"&&(d.dataset.ripplePositioned="true",d.style.position="relative"),getComputedStyle(d).overflow==="visible"&&(d.dataset.rippleOverflow="true",d.style.overflow="hidden"),d.appendChild(p);const b=window.setTimeout(()=>{a(d,p)},700);p.addEventListener("animationend",()=>{window.clearTimeout(b),a(d,p)},{once:!0})};document.addEventListener("pointerdown",i),window.__uiRippleInitialized=!0}function gN(){const{addToast:a}=sN(),i=new Date,[l,r]=w.useState(!1),[d,h]=w.useState(!1),[f,m]=w.useState(!1),[g,p]=w.useState(50),[b,x]=w.useState([20,80]),[S,T]=w.useState(!1),[M,O]=w.useState(!1),[_,z]=w.useState("option1"),[B,H]=w.useState(1),[F,U]=w.useState(void 0),[W,Q]=w.useState(""),[R,te]=w.useState(""),[J,q]=w.useState([]),[ie,le]=w.useState(""),[oe,I]=w.useState(""),[A,Y]=w.useState("12"),[E,re]=w.useState(1),[se,C]=w.useState(!1),[G,ee]=w.useState([]),[ae,pe]=w.useState("day"),ye=new Date(i.getFullYear(),i.getMonth()-1,10),me=new Date(i.getFullYear(),i.getMonth()+1,20),Xe=[{label:"Option 1",value:"opt1"},{label:"Option 2",value:"opt2"},{label:"Option 3",value:"opt3"}],Te=[{label:"United States",value:"us",icon:c.jsx(Gr,{className:"w-4 h-4"})},{label:"United Kingdom",value:"uk",icon:c.jsx(Gr,{className:"w-4 h-4"})},{label:"Canada",value:"ca",icon:c.jsx(Gr,{className:"w-4 h-4"})},{label:"Australia",value:"au",icon:c.jsx(Gr,{className:"w-4 h-4"}),disabled:!0}],We=[{label:"John Doe",value:"john",icon:c.jsx(il,{className:"w-4 h-4"})},{label:"Jane Smith",value:"jane",icon:c.jsx(il,{className:"w-4 h-4"})},{label:"Bob Johnson",value:"bob",icon:c.jsx(il,{className:"w-4 h-4"})},{label:"Alice Williams",value:"alice",icon:c.jsx(il,{className:"w-4 h-4"})},{label:"Charlie Brown",value:"charlie",icon:c.jsx(il,{className:"w-4 h-4"})}],nt=[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}],Ze=[{label:"Day",value:"day"},{label:"Week",value:"week"},{label:"Month",value:"month"}],kt=[{label:"Overview",value:"overview",render:(Ne,Vt)=>c.jsxs("span",{className:"flex flex-col items-start leading-tight",children:[c.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] opacity-70",children:"View"}),c.jsx("span",{className:Vt.selected?"font-semibold":"font-medium",children:Ne.label})]}),onClick:()=>{a({message:"Overview selected",variant:"info",duration:1800})}},{label:"Details",value:"details",render:(Ne,Vt)=>c.jsxs("span",{className:"flex flex-col items-start leading-tight",children:[c.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] opacity-70",children:"View"}),c.jsx("span",{className:Vt.selected?"font-semibold":"font-medium",children:Ne.label})]}),onClick:()=>{a({message:"Details selected",variant:"info",duration:1800})}},{label:"Activity",value:"activity",render:(Ne,Vt)=>c.jsxs("span",{className:"flex flex-col items-start leading-tight",children:[c.jsx("span",{className:"text-[10px] uppercase tracking-[0.2em] opacity-70",children:"View"}),c.jsx("span",{className:Vt.selected?"font-semibold":"font-medium",children:Ne.label})]}),onClick:()=>{a({message:"Activity selected",variant:"info",duration:1800})}}],at=[{id:1,name:"John Doe",email:"john@example.com",role:"Admin"},{id:2,name:"Jane Smith",email:"jane@example.com",role:"User"},{id:3,name:"Bob Johnson",email:"bob@example.com",role:"User"}],wt=[{key:"name",header:"Name",sortable:!0},{key:"email",header:"Email",render:Ne=>c.jsxs("div",{className:"text-sm",children:[c.jsxs("p",{children:[Ne.email," properties"]}),c.jsxs("p",{className:"text-muted",children:[Ne.email," units"]})]}),sortable:!0},{key:"role",header:"Role",sortable:!1}],xt=[{label:"Account",description:"Create your account"},{label:"Profile",description:"Complete your profile"},{label:"Settings",description:"Configure settings"},{label:"Done",description:"All set!"}];return c.jsxs("div",{className:"min-h-screen bg-secondary p-4 sm:p-8",children:[c.jsxs("div",{className:"max-w-7xl w-full mx-auto space-y-12",children:[c.jsxs(ue.header,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center space-y-4",children:[c.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-foreground",children:"UI Components Library"}),c.jsx("p",{className:"text-lg text-primary/70",children:"A consistent, animated component library built with Framer Motion & Lucide Icons"})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Buttons"}),c.jsx(gt,{children:"Various button variants and sizes"})]}),c.jsxs(yt,{children:[c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(Ye,{variant:"primary",size:"lg",icon:c.jsx(bd,{}),children:"Primary Large"}),c.jsx(Ye,{variant:"primary",size:"md",icon:c.jsx(qj,{}),children:"Primary Medium"}),c.jsx(Ye,{variant:"secondary",size:"sm",icon:c.jsx(Ey,{}),children:"Secondary Small"}),c.jsx(Ye,{variant:"ghost",children:"Ghost Button"}),c.jsx(Ye,{variant:"danger",icon:c.jsx(xd,{}),children:"Delete"}),c.jsx(Ye,{variant:"primary",loading:!0,children:"Loading..."})]}),c.jsxs("div",{className:"mt-5",children:[c.jsx("p",{className:"text-sm text-foreground/70 mb-2",children:"Grouped Buttons (rounded outer border + inner dividers)"}),c.jsx(Vy,{options:Ze,value:ae,onChange:pe})]}),c.jsxs("div",{className:"mt-5",children:[c.jsx("p",{className:"text-sm text-foreground/70 mb-2",children:"Custom Render Group (per-button render + onClick)"}),c.jsx(Vy,{options:kt,value:ae,onChange:pe,size:"lg"})]})]})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Form Inputs"}),c.jsx(gt,{children:"Input fields with icons and validation"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"space-y-4 w-full",children:[c.jsx(In,{label:"Email",type:"email",placeholder:"Enter your email",leftIcon:c.jsx(Oj,{className:"w-5 h-5"})}),c.jsx(In,{label:"Search",placeholder:"Search...",leftIcon:c.jsx(jn,{className:"w-5 h-5"})}),c.jsx(In,{label:"With Error",error:"This field is required",placeholder:"Error state"}),c.jsx(In,{label:"Password",type:"password",placeholder:"Enter password",rightIcon:c.jsx(Rj,{className:"w-5 h-5"}),hint:"Must be at least 8 characters"}),c.jsx(In,{label:"Phone",type:"phone",value:ie,onChange:Ne=>le(String(Ne))}),c.jsx(In,{label:"Country",type:"country",value:oe,onChange:Ne=>I(String(Ne))}),c.jsx(In,{label:"Quantity",type:"number",value:A,onChange:Ne=>Y(String(Ne)),hint:"Spinner controls are hidden and wheel scrolling is disabled"}),c.jsx(In,{label:"Date",type:"date",value:F,onChange:Ne=>{Ne instanceof Date&&U(Ne)}}),c.jsx(Bb,{label:"Message",placeholder:"Enter your message",rows:4})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Badges & Spinner"}),c.jsx(gt,{children:"Status indicators and loading states"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Badges"}),c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Ia,{variant:"default",children:"Default"}),c.jsx(Ia,{variant:"primary",children:"Primary"}),c.jsx(Ia,{variant:"success",dot:!0,children:"Success"}),c.jsx(Ia,{variant:"warning",dot:!0,children:"Warning"}),c.jsx(Ia,{variant:"danger",dot:!0,children:"Danger"}),c.jsx(Ia,{variant:"info",children:"Info"}),c.jsx(Ia,{variant:"primary",size:"lg",children:"Large Badge"})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Spinners"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-8",children:[c.jsx(ti,{size:"sm"}),c.jsx(ti,{size:"md"}),c.jsx(ti,{size:"lg"}),c.jsx(ti,{size:"xl"}),c.jsx(ti,{label:"Loading..."})]})]})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Toast Notifications"}),c.jsx(gt,{children:"Trigger toast notifications with different variants"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Ye,{variant:"primary",onClick:()=>{a({message:"Successfully saved your changes!",variant:"success",duration:3e3})},children:"Show Success"}),c.jsx(Ye,{variant:"secondary",onClick:()=>{a({message:"Failed to connect to server",variant:"error",duration:4e3})},children:"Show Error"}),c.jsx(Ye,{variant:"outline",onClick:()=>{a({message:"Your session will expire in 5 minutes",variant:"warning"})},children:"Show Warning"}),c.jsx(Ye,{variant:"ghost",onClick:()=>{a({message:"New message received from John",variant:"info",duration:0,action:{label:"View",onClick:()=>alert("Viewing message")}})},children:"Show Info with Action"}),c.jsx(Ye,{onClick:()=>{C(!0),a({message:"Processing your request...",variant:"loading",duration:2e3}),setTimeout(()=>{C(!1),a({message:"Request completed successfully!",variant:"success"})},2e3)},disabled:se,children:se?c.jsx(ti,{size:"sm",variant:"white"}):"Simulate Process"})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Toggle & Checkbox"}),c.jsx(gt,{children:"Interactive switches and checkboxes"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(Lb,{label:"Enable Notifications",description:"Receive email notifications",checked:S,onChange:Ne=>T(Ne)}),c.jsx(li,{label:"I agree to the terms and conditions",checked:M,onChange:Ne=>O(Ne)})]})})]}),c.jsx(cN,{onRecordingComplete:Ne=>console.log(Ne)}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Sliders"}),c.jsx(gt,{children:"Range controls with animations"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"space-y-8",children:[c.jsx(qT,{label:"Volume",value:g,onChange:p,showValue:!0}),c.jsx(XT,{label1:"Price Range",label2:"Units",value1:0,value2:60,onChange:(Ne,Vt)=>x([Ne,Vt]),min:0,max:100,unit:"$"})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Radio Pills"}),c.jsx(gt,{children:"Stylized radio button group"})]}),c.jsx(yt,{children:c.jsx(YT,{name:"demo-radio",options:nt,value:_,onChange:z})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Dropdown & Select"}),c.jsx(gt,{children:"Selection controls for forms and general use"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(KT,{label:"Dropdown (General)",options:Xe,value:W,onChange:Q,searchable:!0,placeholder:"Choose an option"}),c.jsx(Yb,{label:"Country",options:Te,value:R,onChange:te,placeholder:"Select your country",hint:"Choose your country of residence",required:!0}),c.jsx(qb,{label:"Select Staff Members",options:We,value:J,onChange:q,placeholder:"Choose team members...",hint:"You can select multiple staff members",searchable:!0}),c.jsx(lf,{})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Dropdown Menu (Nested)"}),c.jsx(gt,{children:"Custom trigger + nested menus with automatic drop direction and outside-click close"})]}),c.jsx(yt,{children:c.jsx("div",{className:"flex justify-center items-right gap-4",children:c.jsxs(QT,{children:[c.jsx(Gb,{asChild:!0,children:c.jsx(Ye,{variant:"outline",children:"Open Navigation Menu"})}),c.jsxs(ZT,{children:[c.jsx(Ea,{asChild:!0,children:c.jsx("a",{href:"#dashboard",children:"Dashboard"})}),c.jsxs(Zc,{children:[c.jsx(Fr,{children:"Products"}),c.jsxs(Jc,{children:[c.jsx(Ea,{asChild:!0,children:c.jsx("a",{href:"#new",children:"New Arrivals"})}),c.jsxs(Zc,{children:[c.jsx(Fr,{children:"Categories"}),c.jsxs(Jc,{children:[c.jsx(Ea,{asChild:!0,children:c.jsx("a",{href:"#tools",children:"Tools"})}),c.jsx(Ea,{asChild:!0,children:c.jsx("a",{href:"#home",children:"Home"})}),c.jsxs(Zc,{children:[c.jsx(Fr,{children:"test"}),c.jsxs(Jc,{children:[c.jsx(Ea,{asChild:!0,children:c.jsx("a",{href:"#tools",children:"Tools"})}),c.jsx(Ea,{asChild:!0,children:c.jsx("a",{href:"#home",children:"Home"})})]})]})]})]})]})]}),c.jsx(Ea,{onClick:()=>a({message:"Signed out",variant:"info",duration:1800}),children:"Sign out"})]})]})})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Tooltip"}),c.jsx(Xr,{content:"This is a tooltip for the sliders section",side:"top",showArrow:!0,children:c.jsx(gt,{children:"Hover or focus a trigger to show a portal-based tooltip with auto side placement"})})]}),c.jsx(yt,{children:c.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[c.jsx(Xr,{content:"Default placement is bottom. It flips to another side when needed.",children:c.jsx(Ye,{variant:"outline",icon:c.jsx(vb,{className:"w-4 h-4"}),children:"Bottom (default)"})}),c.jsx(Xr,{side:"left",offset:14,arrowSize:12,content:"Custom side, offset and arrow size.",children:c.jsx(Ye,{variant:"ghost",children:"Left preferred"})}),c.jsx(Xr,{side:"right",content:"Right preferred with auto fallback.",children:c.jsx(Ye,{variant:"secondary",children:"Right preferred"})})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"DatePicker"}),c.jsx(gt,{children:"Date selection control with range limits and disabled-state styling"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Sd,{label:"Select Date",value:F,onChange:U,minDate:ye,maxDate:me}),c.jsxs("p",{className:"text-sm text-foreground/60",children:["This picker only allows dates from ",ye.toLocaleDateString("en-US",{month:"short",day:"numeric"})," to ",me.toLocaleDateString("en-US",{month:"short",day:"numeric"}),"."]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx(Sd,{label:"Disabled Picker",value:i,onChange:U,disabled:!0,placeholder:"Disabled date picker"}),c.jsx("p",{className:"text-sm text-foreground/60",children:"Disabled controls keep the same layout, but the text and icon use muted colors to make the state obvious."})]})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Step Progress"}),c.jsx(gt,{children:"Multi-step flow indicator"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(nN,{steps:xt,currentStep:E}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx(Ye,{variant:"secondary",onClick:()=>re(Math.max(1,E-1)),disabled:E===1,children:"Previous"}),c.jsx(Ye,{onClick:()=>re(Math.min(xt.length,E+1)),disabled:E===xt.length,children:"Next"})]})]})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Data Table"}),c.jsxs(gt,{children:["Sortable data display with optional row selection (",G.length," selected)"]})]}),c.jsx(yt,{children:c.jsx(IT,{data:at,columns:wt,keyExtractor:Ne=>Ne.id.toString(),selectable:!0,selectedKeys:G,onSelectionChange:Ne=>ee(Ne)})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Pagination"}),c.jsx(gt,{children:"Page navigation controls"})]}),c.jsx(yt,{children:c.jsx(eN,{currentPage:B,totalPages:10,onPageChange:H,totalItems:20,itemsPerPage:10})})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Overlays"}),c.jsx(gt,{children:"Modal, Drawer, and Bottom Sheet components"})]}),c.jsx(yt,{children:c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(Ye,{onClick:()=>h(!0),children:"Open Modal"}),c.jsx(Ye,{onClick:()=>r(!0),children:"Open Drawer"}),c.jsx(Ye,{onClick:()=>m(!0),children:"Open Bottom Sheet"})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[c.jsxs(ht,{variant:"elevated",hover:!0,children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Elevated Card"}),c.jsx(gt,{children:"With shadow effect"})]}),c.jsx(yt,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an elevated appearance with a shadow."})})]}),c.jsxs(ht,{variant:"outlined",hover:!0,children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Outlined Card"}),c.jsx(gt,{children:"With border"})]}),c.jsx(yt,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an outlined style with a border."})})]}),c.jsxs(ht,{hover:!0,onClick:()=>alert("Card clicked!"),children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Clickable Card"}),c.jsx(gt,{children:"Interactive"})]}),c.jsx(yt,{children:c.jsx("p",{className:"text-primary/70",children:"This card is clickable!"})})]})]}),c.jsxs(ht,{children:[c.jsxs(mt,{children:[c.jsx(pt,{children:"Accordion"}),c.jsx(gt,{children:"Smooth expand/collapse animations with accordion controls"})]}),c.jsxs(yt,{children:[c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Single Open Accordion"}),c.jsx(_y,{items:[{id:"item1",title:"What is an accordion?",content:"An accordion is a UI component that expands and collapses content sections. Only one section can be open at a time in this default mode."},{id:"item2",title:"How do animations work?",content:"The accordion uses Framer Motion for smooth height and opacity animations during expand and collapse transitions, providing a polished user experience."},{id:"item3",title:"Can I customize the styling?",content:"Yes! The accordion component accepts className props and uses Tailwind CSS, making it easy to customize colors, spacing, and other visual properties."}],defaultOpen:["item1"]})]}),c.jsxs("div",{className:"space-y-4 mt-8",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Multiple Open Accordion"}),c.jsx(_y,{items:[{id:"multi1",title:"Feature One",content:"This accordion allows multiple items to be open simultaneously. Click different items to expand or collapse them independently."},{id:"multi2",title:"Feature Two",content:"Multiple sections can be expanded at the same time, providing flexibility for users who want to compare or review multiple sections."},{id:"multi3",title:"Feature Three",content:"The onChange callback notifies you whenever the open state changes, allowing you to track and respond to user interactions."}],allowMultiple:!0,defaultOpen:["multi1","multi2"]})]})]})]})]}),c.jsx(tN,{actions:[{label:"Create",icon:c.jsx(bd,{className:"w-5 h-5"}),onClick:()=>alert("Create clicked"),variant:"primary",labelClassName:"bg-primary/10 text-primary"},{label:"Edit",icon:c.jsx(Ey,{className:"w-5 h-5"}),onClick:()=>alert("Edit clicked"),variant:"success"},{label:"Delete",icon:c.jsx(xd,{className:"w-5 h-5"}),onClick:()=>alert("Delete clicked"),variant:"danger"}]}),c.jsxs(PT,{isOpen:d,onClose:()=>h(!1),title:"Example Modal",children:[c.jsx(FT,{children:c.jsx("p",{className:"text-primary/70",children:"This is a modal dialog with animations and backdrop blur."})}),c.jsxs(WT,{children:[c.jsx(Ye,{variant:"secondary",onClick:()=>h(!1),children:"Cancel"}),c.jsx(Ye,{onClick:()=>h(!1),children:"Confirm"})]})]}),c.jsx(JT,{isOpen:l,onClose:()=>r(!1),title:"Side Drawer",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a drawer that slides in from the side."}),c.jsx(Ye,{onClick:()=>r(!1),children:"Close Drawer"})]})}),c.jsx($T,{isOpen:f,onClose:()=>m(!1),title:"Bottom Sheet",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a bottom sheet that slides up from the bottom."}),c.jsx(Ye,{onClick:()=>m(!1),children:"Close Sheet"})]})}),c.jsx(dN,{})]})}function yN(){return c.jsx(Zb,{position:"bottom-center",maxToasts:5,children:c.jsx(gN,{})})}pN();S1.createRoot(document.getElementById("root")).render(c.jsx(w.StrictMode,{children:c.jsx(yN,{})}));
|