llmtap 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/dashboard/assets/BarChart-N8X7TKRf.js +1 -0
  2. package/dist/dashboard/assets/Costs-BhWdS2kw.js +4 -0
  3. package/dist/dashboard/assets/Dashboard-DnHLwJsN.js +9 -0
  4. package/dist/dashboard/assets/Models-5jWcyfAk.js +1 -0
  5. package/dist/dashboard/assets/Sessions-IXJPYjKe.js +3 -0
  6. package/dist/dashboard/assets/Settings-kxBLuIHe.js +6 -0
  7. package/dist/dashboard/assets/TraceDetail-DdKFps7x.js +18 -0
  8. package/dist/dashboard/assets/Traces-Cv9L_xTe.js +2 -0
  9. package/dist/dashboard/assets/chevron-down-B0xosrpl.js +1 -0
  10. package/dist/dashboard/assets/clock-CSGov78l.js +1 -0
  11. package/dist/dashboard/assets/coins-RIVI5-1a.js +1 -0
  12. package/dist/dashboard/assets/download-PygxZ--5.js +1 -0
  13. package/dist/dashboard/assets/fira-code-400-CHoedHDv.woff2 +0 -0
  14. package/dist/dashboard/assets/fira-sans-300-B2LrTgQS.woff2 +0 -0
  15. package/dist/dashboard/assets/fira-sans-400-a0AnQzuD.woff2 +0 -0
  16. package/dist/dashboard/assets/fira-sans-500-Bvbxc8ch.woff2 +0 -0
  17. package/dist/dashboard/assets/fira-sans-600-CXKlxLG9.woff2 +0 -0
  18. package/dist/dashboard/assets/fira-sans-700-CRhwpWTq.woff2 +0 -0
  19. package/dist/dashboard/assets/format-BiBDo3KS.js +1 -0
  20. package/dist/dashboard/assets/gauge-BBNKtqFH.js +1 -0
  21. package/dist/dashboard/assets/generateCategoricalChart-CylgFInn.js +61 -0
  22. package/dist/dashboard/assets/index-BBr9_AHg.js +22 -0
  23. package/dist/dashboard/assets/index-CIGK6hiV.css +1 -0
  24. package/dist/dashboard/assets/layers--K2XRXAx.js +1 -0
  25. package/dist/dashboard/assets/message-square-DdcqfsnD.js +1 -0
  26. package/dist/dashboard/assets/orbit-2k6lSwt7.js +1 -0
  27. package/dist/dashboard/assets/search-BwbP84dP.js +1 -0
  28. package/dist/dashboard/assets/zap-Ccrxhk2Q.js +1 -0
  29. package/dist/dashboard/index.html +13 -0
  30. package/dist/index.js +487 -0
  31. package/dist/index.js.map +1 -0
  32. package/package.json +50 -0
@@ -0,0 +1,22 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-DnHLwJsN.js","assets/format-BiBDo3KS.js","assets/gauge-BBNKtqFH.js","assets/generateCategoricalChart-CylgFInn.js","assets/search-BwbP84dP.js","assets/chevron-down-B0xosrpl.js","assets/orbit-2k6lSwt7.js","assets/Traces-Cv9L_xTe.js","assets/message-square-DdcqfsnD.js","assets/zap-Ccrxhk2Q.js","assets/clock-CSGov78l.js","assets/layers--K2XRXAx.js","assets/TraceDetail-DdKFps7x.js","assets/download-PygxZ--5.js","assets/coins-RIVI5-1a.js","assets/Costs-BhWdS2kw.js","assets/BarChart-N8X7TKRf.js","assets/Models-5jWcyfAk.js","assets/Sessions-IXJPYjKe.js","assets/Settings-kxBLuIHe.js"])))=>i.map(i=>d[i]);
2
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=l(u);fetch(u.href,f)}})();var I3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mc={exports:{}},Ms={};var ry;function Lb(){if(ry)return Ms;ry=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(r,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var d in u)d!=="key"&&(f[d]=u[d])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:h,ref:u!==void 0?u:null,props:f}}return Ms.Fragment=i,Ms.jsx=l,Ms.jsxs=l,Ms}var oy;function Ub(){return oy||(oy=1,mc.exports=Lb()),mc.exports}var j=Ub(),pc={exports:{}},st={};var uy;function Bb(){if(uy)return st;uy=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function C(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,w={};function N(A,Y,K){this.props=A,this.context=Y,this.refs=w,this.updater=K||M}N.prototype.isReactComponent={},N.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function q(){}q.prototype=N.prototype;function U(A,Y,K){this.props=A,this.context=Y,this.refs=w,this.updater=K||M}var k=U.prototype=new q;k.constructor=U,D(k,N.prototype),k.isPureReactComponent=!0;var Q=Array.isArray;function it(){}var $={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function nt(A,Y,K){var W=K.ref;return{$$typeof:n,type:A,key:Y,ref:W!==void 0?W:null,props:K}}function I(A,Y){return nt(A.type,Y,A.props)}function ct(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function vt(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(K){return Y[K]})}var kt=/\/+/g;function Nt(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?vt(""+A.key):Y.toString(36)}function Tt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(it,it):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function L(A,Y,K,W,lt){var ft=typeof A;(ft==="undefined"||ft==="boolean")&&(A=null);var Et=!1;if(A===null)Et=!0;else switch(ft){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(A.$$typeof){case n:case i:Et=!0;break;case g:return Et=A._init,L(Et(A._payload),Y,K,W,lt)}}if(Et)return lt=lt(A),Et=W===""?"."+Nt(A,0):W,Q(lt)?(K="",Et!=null&&(K=Et.replace(kt,"$&/")+"/"),L(lt,Y,K,"",function(_i){return _i})):lt!=null&&(ct(lt)&&(lt=I(lt,K+(lt.key==null||A&&A.key===lt.key?"":(""+lt.key).replace(kt,"$&/")+"/")+Et)),Y.push(lt)),1;Et=0;var oe=W===""?".":W+":";if(Q(A))for(var qt=0;qt<A.length;qt++)W=A[qt],ft=oe+Nt(W,qt),Et+=L(W,Y,K,ft,lt);else if(qt=C(A),typeof qt=="function")for(A=qt.call(A),qt=0;!(W=A.next()).done;)W=W.value,ft=oe+Nt(W,qt++),Et+=L(W,Y,K,ft,lt);else if(ft==="object"){if(typeof A.then=="function")return L(Tt(A),Y,K,W,lt);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Et}function X(A,Y,K){if(A==null)return A;var W=[],lt=0;return L(A,W,"","",function(ft){return Y.call(K,ft,lt++)}),W}function Z(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(K){(A._status===0||A._status===-1)&&(A._status=1,A._result=K)},function(K){(A._status===0||A._status===-1)&&(A._status=2,A._result=K)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var ot=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},yt={map:X,forEach:function(A,Y,K){X(A,function(){Y.apply(this,arguments)},K)},count:function(A){var Y=0;return X(A,function(){Y++}),Y},toArray:function(A){return X(A,function(Y){return Y})||[]},only:function(A){if(!ct(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return st.Activity=v,st.Children=yt,st.Component=N,st.Fragment=l,st.Profiler=u,st.PureComponent=U,st.StrictMode=r,st.Suspense=y,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,st.__COMPILER_RUNTIME={__proto__:null,c:function(A){return $.H.useMemoCache(A)}},st.cache=function(A){return function(){return A.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(A,Y,K){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=D({},A.props),lt=A.key;if(Y!=null)for(ft in Y.key!==void 0&&(lt=""+Y.key),Y)!P.call(Y,ft)||ft==="key"||ft==="__self"||ft==="__source"||ft==="ref"&&Y.ref===void 0||(W[ft]=Y[ft]);var ft=arguments.length-2;if(ft===1)W.children=K;else if(1<ft){for(var Et=Array(ft),oe=0;oe<ft;oe++)Et[oe]=arguments[oe+2];W.children=Et}return nt(A.type,lt,W)},st.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},st.createElement=function(A,Y,K){var W,lt={},ft=null;if(Y!=null)for(W in Y.key!==void 0&&(ft=""+Y.key),Y)P.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(lt[W]=Y[W]);var Et=arguments.length-2;if(Et===1)lt.children=K;else if(1<Et){for(var oe=Array(Et),qt=0;qt<Et;qt++)oe[qt]=arguments[qt+2];lt.children=oe}if(A&&A.defaultProps)for(W in Et=A.defaultProps,Et)lt[W]===void 0&&(lt[W]=Et[W]);return nt(A,ft,lt)},st.createRef=function(){return{current:null}},st.forwardRef=function(A){return{$$typeof:d,render:A}},st.isValidElement=ct,st.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:Z}},st.memo=function(A,Y){return{$$typeof:p,type:A,compare:Y===void 0?null:Y}},st.startTransition=function(A){var Y=$.T,K={};$.T=K;try{var W=A(),lt=$.S;lt!==null&&lt(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(it,ot)}catch(ft){ot(ft)}finally{Y!==null&&K.types!==null&&(Y.types=K.types),$.T=Y}},st.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},st.use=function(A){return $.H.use(A)},st.useActionState=function(A,Y,K){return $.H.useActionState(A,Y,K)},st.useCallback=function(A,Y){return $.H.useCallback(A,Y)},st.useContext=function(A){return $.H.useContext(A)},st.useDebugValue=function(){},st.useDeferredValue=function(A,Y){return $.H.useDeferredValue(A,Y)},st.useEffect=function(A,Y){return $.H.useEffect(A,Y)},st.useEffectEvent=function(A){return $.H.useEffectEvent(A)},st.useId=function(){return $.H.useId()},st.useImperativeHandle=function(A,Y,K){return $.H.useImperativeHandle(A,Y,K)},st.useInsertionEffect=function(A,Y){return $.H.useInsertionEffect(A,Y)},st.useLayoutEffect=function(A,Y){return $.H.useLayoutEffect(A,Y)},st.useMemo=function(A,Y){return $.H.useMemo(A,Y)},st.useOptimistic=function(A,Y){return $.H.useOptimistic(A,Y)},st.useReducer=function(A,Y,K){return $.H.useReducer(A,Y,K)},st.useRef=function(A){return $.H.useRef(A)},st.useState=function(A){return $.H.useState(A)},st.useSyncExternalStore=function(A,Y,K){return $.H.useSyncExternalStore(A,Y,K)},st.useTransition=function(){return $.H.useTransition()},st.version="19.2.4",st}var cy;function gf(){return cy||(cy=1,pc.exports=Bb()),pc.exports}var T=gf();const tR=Vb(T);var yc={exports:{}},Cs={},gc={exports:{}},vc={};var fy;function Hb(){return fy||(fy=1,(function(n){function i(L,X){var Z=L.length;L.push(X);t:for(;0<Z;){var ot=Z-1>>>1,yt=L[ot];if(0<u(yt,X))L[ot]=X,L[Z]=yt,Z=ot;else break t}}function l(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var X=L[0],Z=L.pop();if(Z!==X){L[0]=Z;t:for(var ot=0,yt=L.length,A=yt>>>1;ot<A;){var Y=2*(ot+1)-1,K=L[Y],W=Y+1,lt=L[W];if(0>u(K,Z))W<yt&&0>u(lt,K)?(L[ot]=lt,L[W]=Z,ot=W):(L[ot]=K,L[Y]=Z,ot=Y);else if(W<yt&&0>u(lt,Z))L[ot]=lt,L[W]=Z,ot=W;else break t}}return X}function u(L,X){var Z=L.sortIndex-X.sortIndex;return Z!==0?Z:L.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var y=[],p=[],g=1,v=null,b=3,C=!1,M=!1,D=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var X=l(p);X!==null;){if(X.callback===null)r(p);else if(X.startTime<=L)r(p),X.sortIndex=X.expirationTime,i(y,X);else break;X=l(p)}}function Q(L){if(D=!1,k(L),!M)if(l(y)!==null)M=!0,it||(it=!0,vt());else{var X=l(p);X!==null&&Tt(Q,X.startTime-L)}}var it=!1,$=-1,P=5,nt=-1;function I(){return w?!0:!(n.unstable_now()-nt<P)}function ct(){if(w=!1,it){var L=n.unstable_now();nt=L;var X=!0;try{t:{M=!1,D&&(D=!1,q($),$=-1),C=!0;var Z=b;try{e:{for(k(L),v=l(y);v!==null&&!(v.expirationTime>L&&I());){var ot=v.callback;if(typeof ot=="function"){v.callback=null,b=v.priorityLevel;var yt=ot(v.expirationTime<=L);if(L=n.unstable_now(),typeof yt=="function"){v.callback=yt,k(L),X=!0;break e}v===l(y)&&r(y),k(L)}else r(y);v=l(y)}if(v!==null)X=!0;else{var A=l(p);A!==null&&Tt(Q,A.startTime-L),X=!1}}break t}finally{v=null,b=Z,C=!1}X=void 0}}finally{X?vt():it=!1}}}var vt;if(typeof U=="function")vt=function(){U(ct)};else if(typeof MessageChannel<"u"){var kt=new MessageChannel,Nt=kt.port2;kt.port1.onmessage=ct,vt=function(){Nt.postMessage(null)}}else vt=function(){N(ct,0)};function Tt(L,X){$=N(function(){L(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(L){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var Z=b;b=X;try{return L()}finally{b=Z}},n.unstable_requestPaint=function(){w=!0},n.unstable_runWithPriority=function(L,X){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Z=b;b=L;try{return X()}finally{b=Z}},n.unstable_scheduleCallback=function(L,X,Z){var ot=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ot+Z:ot):Z=ot,L){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=Z+yt,L={id:g++,callback:X,priorityLevel:L,startTime:Z,expirationTime:yt,sortIndex:-1},Z>ot?(L.sortIndex=Z,i(p,L),l(y)===null&&L===l(p)&&(D?(q($),$=-1):D=!0,Tt(Q,Z-ot))):(L.sortIndex=yt,i(y,L),M||C||(M=!0,it||(it=!0,vt()))),L},n.unstable_shouldYield=I,n.unstable_wrapCallback=function(L){var X=b;return function(){var Z=b;b=X;try{return L.apply(this,arguments)}finally{b=Z}}}})(vc)),vc}var hy;function qb(){return hy||(hy=1,gc.exports=Hb()),gc.exports}var Sc={exports:{}},le={};var dy;function Gb(){if(dy)return le;dy=1;var n=gf();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+y+"; 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},u=Symbol.for("react.portal");function f(y,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:y,containerInfo:p,implementation:g}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,le.createPortal=function(y,p){var g=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 f(y,p,null,g)},le.flushSync=function(y){var p=h.T,g=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=p,r.p=g,r.d.f()}},le.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},le.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},le.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:C}):g==="script"&&r.d.X(y,{crossOrigin:v,integrity:b,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},le.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},le.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin);r.d.L(y,g,{crossOrigin:v,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})}},le.preloadModule=function(y,p){if(typeof y=="string")if(p){var g=d(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},le.requestFormReset=function(y){r.d.r(y)},le.unstable_batchedUpdates=function(y,p){return y(p)},le.useFormState=function(y,p,g){return h.H.useFormState(y,p,g)},le.useFormStatus=function(){return h.H.useHostTransitionStatus()},le.version="19.2.4",le}var my;function Yb(){if(my)return Sc.exports;my=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Sc.exports=Gb(),Sc.exports}var py;function kb(){if(py)return Cs;py=1;var n=qb(),i=gf(),l=Yb();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,s=e;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),t;if(c===s)return y(o),e;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=o,s=c;else{for(var m=!1,S=o.child;S;){if(S===a){m=!0,a=o,s=c;break}if(S===s){m=!0,s=o,a=c;break}S=S.sibling}if(!m){for(S=c.child;S;){if(S===a){m=!0,a=c,s=o;break}if(S===s){m=!0,s=c,a=o;break}S=S.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),U=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),nt=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),ct=Symbol.iterator;function vt(t){return t===null||typeof t!="object"?null:(t=ct&&t[ct]||t["@@iterator"],typeof t=="function"?t:null)}var kt=Symbol.for("react.client.reference");function Nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===kt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case D:return"Fragment";case N:return"Profiler";case w:return"StrictMode";case Q:return"Suspense";case it:return"SuspenseList";case nt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case U:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case k:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:Nt(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return Nt(t(e))}catch{}}return null}var Tt=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ot=[],yt=-1;function A(t){return{current:t}}function Y(t){0>yt||(t.current=ot[yt],ot[yt]=null,yt--)}function K(t,e){yt++,ot[yt]=t.current,t.current=e}var W=A(null),lt=A(null),ft=A(null),Et=A(null);function oe(t,e){switch(K(ft,e),K(lt,t),K(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Op(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Op(e),t=zp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(W),K(W,t)}function qt(){Y(W),Y(lt),Y(ft)}function _i(t){t.memoizedState!==null&&K(Et,t);var e=W.current,a=zp(e,t.type);e!==a&&(K(lt,t),K(W,a))}function Js(t){lt.current===t&&(Y(W),Y(lt)),Et.current===t&&(Y(Et),xs._currentValue=Z)}var Fr,lh;function sa(t){if(Fr===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Fr=e&&e[1]||"",lh=-1<a.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Fr+t+lh}var Jr=!1;function $r(t,e){if(!t||Jr)return"";Jr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(V){var _=V}Reflect.construct(t,[],G)}else{try{G.call()}catch(V){_=V}t.call(G.prototype)}}else{try{throw Error()}catch(V){_=V}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(V){if(V&&_&&typeof V.stack=="string")return[V.stack,_.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 c=s.DetermineComponentFrameRoot(),m=c[0],S=c[1];if(m&&S){var x=m.split(`
5
+ `),z=S.split(`
6
+ `);for(o=s=0;s<x.length&&!x[s].includes("DetermineComponentFrameRoot");)s++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(s===x.length||o===z.length)for(s=x.length-1,o=z.length-1;1<=s&&0<=o&&x[s]!==z[o];)o--;for(;1<=s&&0<=o;s--,o--)if(x[s]!==z[o]){if(s!==1||o!==1)do if(s--,o--,0>o||x[s]!==z[o]){var B=`
7
+ `+x[s].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=s&&0<=o);break}}}finally{Jr=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?sa(a):""}function h1(t,e){switch(t.tag){case 26:case 27:case 5:return sa(t.type);case 16:return sa("Lazy");case 13:return t.child!==e&&e!==null?sa("Suspense Fallback"):sa("Suspense");case 19:return sa("SuspenseList");case 0:case 15:return $r(t.type,!1);case 11:return $r(t.type.render,!1);case 1:return $r(t.type,!0);case 31:return sa("Activity");default:return""}}function rh(t){try{var e="",a=null;do e+=h1(t,a),a=t,t=t.return;while(t);return e}catch(s){return`
8
+ Error generating stack: `+s.message+`
9
+ `+s.stack}}var Wr=Object.prototype.hasOwnProperty,Ir=n.unstable_scheduleCallback,to=n.unstable_cancelCallback,d1=n.unstable_shouldYield,m1=n.unstable_requestPaint,be=n.unstable_now,p1=n.unstable_getCurrentPriorityLevel,oh=n.unstable_ImmediatePriority,uh=n.unstable_UserBlockingPriority,$s=n.unstable_NormalPriority,y1=n.unstable_LowPriority,ch=n.unstable_IdlePriority,g1=n.log,v1=n.unstable_setDisableYieldValue,ji=null,xe=null;function Dn(t){if(typeof g1=="function"&&v1(t),xe&&typeof xe.setStrictMode=="function")try{xe.setStrictMode(ji,t)}catch{}}var Te=Math.clz32?Math.clz32:x1,S1=Math.log,b1=Math.LN2;function x1(t){return t>>>=0,t===0?32:31-(S1(t)/b1|0)|0}var Ws=256,Is=262144,tl=4194304;function la(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function el(t,e,a){var s=t.pendingLanes;if(s===0)return 0;var o=0,c=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var S=s&134217727;return S!==0?(s=S&~c,s!==0?o=la(s):(m&=S,m!==0?o=la(m):a||(a=S&~t,a!==0&&(o=la(a))))):(S=s&~c,S!==0?o=la(S):m!==0?o=la(m):a||(a=s&~t,a!==0&&(o=la(a)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:o}function Ni(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function T1(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 fh(){var t=tl;return tl<<=1,(tl&62914560)===0&&(tl=4194304),t}function eo(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Vi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function E1(t,e,a,s,o,c){var m=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var S=t.entanglements,x=t.expirationTimes,z=t.hiddenUpdates;for(a=m&~a;0<a;){var B=31-Te(a),G=1<<B;S[B]=0,x[B]=-1;var _=z[B];if(_!==null)for(z[B]=null,B=0;B<_.length;B++){var V=_[B];V!==null&&(V.lane&=-536870913)}a&=~G}s!==0&&hh(t,s,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(m&~e))}function hh(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-Te(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function dh(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var s=31-Te(a),o=1<<s;o&e|t[s]&e&&(t[s]|=e),a&=~o}}function mh(t,e){var a=e&-e;return a=(a&42)!==0?1:no(a),(a&(t.suspendedLanes|e))!==0?0:a}function no(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ao(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ph(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:ty(t.type))}function yh(t,e){var a=X.p;try{return X.p=t,e()}finally{X.p=a}}var On=Math.random().toString(36).slice(2),It="__reactFiber$"+On,de="__reactProps$"+On,_a="__reactContainer$"+On,io="__reactEvents$"+On,A1="__reactListeners$"+On,M1="__reactHandles$"+On,gh="__reactResources$"+On,Li="__reactMarker$"+On;function so(t){delete t[It],delete t[de],delete t[io],delete t[A1],delete t[M1]}function ja(t){var e=t[It];if(e)return e;for(var a=t.parentNode;a;){if(e=a[_a]||a[It]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Bp(t);t!==null;){if(a=t[It])return a;t=Bp(t)}return e}t=a,a=t.parentNode}return null}function Na(t){if(t=t[It]||t[_a]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ui(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Va(t){var e=t[gh];return e||(e=t[gh]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function $t(t){t[Li]=!0}var vh=new Set,Sh={};function ra(t,e){La(t,e),La(t+"Capture",e)}function La(t,e){for(Sh[t]=e,t=0;t<e.length;t++)vh.add(e[t])}var C1=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]*$"),bh={},xh={};function R1(t){return Wr.call(xh,t)?!0:Wr.call(bh,t)?!1:C1.test(t)?xh[t]=!0:(bh[t]=!0,!1)}function nl(t,e,a){if(R1(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function al(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function un(t,e,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+s)}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Th(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function w1(t,e,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,c=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function lo(t){if(!t._valueTracker){var e=Th(t)?"checked":"value";t._valueTracker=w1(t,e,""+t[e])}}function Eh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),s="";return t&&(s=Th(t)?t.checked?"true":"false":t.value),t=s,t!==a?(e.setValue(t),!0):!1}function il(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var D1=/[\n"\\]/g;function _e(t){return t.replace(D1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ro(t,e,a,s,o,c,m,S){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?oo(t,m,ze(e)):a!=null?oo(t,m,ze(a)):s!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+ze(S):t.removeAttribute("name")}function Ah(t,e,a,s,o,c,m,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){lo(t);return}a=a!=null?""+ze(a):"",e=e!=null?""+ze(e):a,S||e===t.value||(t.value=e),t.defaultValue=e}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=S?t.checked:!!s,t.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),lo(t)}function oo(t,e,a){e==="number"&&il(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Ua(t,e,a,s){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&s&&(t[a].defaultSelected=!0)}else{for(a=""+ze(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,s&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Mh(t,e,a){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+ze(a):""}function Ch(t,e,a,s){if(e==null){if(s!=null){if(a!=null)throw Error(r(92));if(Tt(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),e=a}a=ze(e),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),lo(t)}function Ba(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var O1=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 Rh(t,e,a){var s=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,a):typeof a!="number"||a===0||O1.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function wh(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var o in e)s=e[o],e.hasOwnProperty(o)&&a[o]!==s&&Rh(t,o,s)}else for(var c in e)e.hasOwnProperty(c)&&Rh(t,c,e[c])}function uo(t){if(t.indexOf("-")===-1)return!1;switch(t){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 z1=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"]]),_1=/^[\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 sl(t){return _1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function cn(){}var co=null;function fo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,qa=null;function Dh(t){var e=Na(t);if(e&&(t=e.stateNode)){var a=t[de]||null;t:switch(t=e.stateNode,e.type){case"input":if(ro(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_e(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var s=a[e];if(s!==t&&s.form===t.form){var o=s[de]||null;if(!o)throw Error(r(90));ro(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)s=a[e],s.form===t.form&&Eh(s)}break t;case"textarea":Mh(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Ua(t,!!a.multiple,e,!1)}}}var ho=!1;function Oh(t,e,a){if(ho)return t(e,a);ho=!0;try{var s=t(e);return s}finally{if(ho=!1,(Ha!==null||qa!==null)&&(Kl(),Ha&&(e=Ha,t=qa,qa=Ha=null,Dh(e),t)))for(e=0;e<t.length;e++)Dh(t[e])}}function Bi(t,e){var a=t.stateNode;if(a===null)return null;var s=a[de]||null;if(s===null)return null;a=s[e];t:switch(e){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)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mo=!1;if(fn)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){mo=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{mo=!1}var zn=null,po=null,ll=null;function zh(){if(ll)return ll;var t,e=po,a=e.length,s,o="value"in zn?zn.value:zn.textContent,c=o.length;for(t=0;t<a&&e[t]===o[t];t++);var m=a-t;for(s=1;s<=m&&e[a-s]===o[c-s];s++);return ll=o.slice(t,1<s?1-s:void 0)}function rl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ol(){return!0}function _h(){return!1}function me(t){function e(a,s,o,c,m){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(a=t[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ol:_h,this.isPropagationStopped=_h,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ol)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ol)},persist:function(){},isPersistent:ol}),e}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ul=me(oa),qi=v({},oa,{view:0,detail:0}),j1=me(qi),yo,go,Gi,cl=v({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:So,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gi&&(Gi&&t.type==="mousemove"?(yo=t.screenX-Gi.screenX,go=t.screenY-Gi.screenY):go=yo=0,Gi=t),yo)},movementY:function(t){return"movementY"in t?t.movementY:go}}),jh=me(cl),N1=v({},cl,{dataTransfer:0}),V1=me(N1),L1=v({},qi,{relatedTarget:0}),vo=me(L1),U1=v({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),B1=me(U1),H1=v({},oa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),q1=me(H1),G1=v({},oa,{data:0}),Nh=me(G1),Y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k1={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"},Q1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Q1[t])?!!e[t]:!1}function So(){return X1}var K1=v({},qi,{key:function(t){if(t.key){var e=Y1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=rl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?k1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:So,charCode:function(t){return t.type==="keypress"?rl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?rl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),P1=me(K1),Z1=v({},cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vh=me(Z1),F1=v({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:So}),J1=me(F1),$1=v({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),W1=me($1),I1=v({},cl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),tS=me(I1),eS=v({},oa,{newState:0,oldState:0}),nS=me(eS),aS=[9,13,27,32],bo=fn&&"CompositionEvent"in window,Yi=null;fn&&"documentMode"in document&&(Yi=document.documentMode);var iS=fn&&"TextEvent"in window&&!Yi,Lh=fn&&(!bo||Yi&&8<Yi&&11>=Yi),Uh=" ",Bh=!1;function Hh(t,e){switch(t){case"keyup":return aS.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ga=!1;function sS(t,e){switch(t){case"compositionend":return qh(e);case"keypress":return e.which!==32?null:(Bh=!0,Uh);case"textInput":return t=e.data,t===Uh&&Bh?null:t;default:return null}}function lS(t,e){if(Ga)return t==="compositionend"||!bo&&Hh(t,e)?(t=zh(),ll=po=zn=null,Ga=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Lh&&e.locale!=="ko"?null:e.data;default:return null}}var rS={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 Gh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!rS[t.type]:e==="textarea"}function Yh(t,e,a,s){Ha?qa?qa.push(s):qa=[s]:Ha=s,e=Il(e,"onChange"),0<e.length&&(a=new ul("onChange","change",null,a,s),t.push({event:a,listeners:e}))}var ki=null,Qi=null;function oS(t){Ap(t,0)}function fl(t){var e=Ui(t);if(Eh(e))return t}function kh(t,e){if(t==="change")return e}var Qh=!1;if(fn){var xo;if(fn){var To="oninput"in document;if(!To){var Xh=document.createElement("div");Xh.setAttribute("oninput","return;"),To=typeof Xh.oninput=="function"}xo=To}else xo=!1;Qh=xo&&(!document.documentMode||9<document.documentMode)}function Kh(){ki&&(ki.detachEvent("onpropertychange",Ph),Qi=ki=null)}function Ph(t){if(t.propertyName==="value"&&fl(Qi)){var e=[];Yh(e,Qi,t,fo(t)),Oh(oS,e)}}function uS(t,e,a){t==="focusin"?(Kh(),ki=e,Qi=a,ki.attachEvent("onpropertychange",Ph)):t==="focusout"&&Kh()}function cS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return fl(Qi)}function fS(t,e){if(t==="click")return fl(e)}function hS(t,e){if(t==="input"||t==="change")return fl(e)}function dS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ee=typeof Object.is=="function"?Object.is:dS;function Xi(t,e){if(Ee(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!Wr.call(e,o)||!Ee(t[o],e[o]))return!1}return!0}function Zh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Fh(t,e){var a=Zh(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=e&&s>=e)return{node:a,offset:e-t};t=s}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Zh(a)}}function Jh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $h(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=il(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=il(t.document)}return e}function Eo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var mS=fn&&"documentMode"in document&&11>=document.documentMode,Ya=null,Ao=null,Ki=null,Mo=!1;function Wh(t,e,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Mo||Ya==null||Ya!==il(s)||(s=Ya,"selectionStart"in s&&Eo(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}),Ki&&Xi(Ki,s)||(Ki=s,s=Il(Ao,"onSelect"),0<s.length&&(e=new ul("onSelect","select",null,e,a),t.push({event:e,listeners:s}),e.target=Ya)))}function ua(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var ka={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},Co={},Ih={};fn&&(Ih=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function ca(t){if(Co[t])return Co[t];if(!ka[t])return t;var e=ka[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Ih)return Co[t]=e[a];return t}var td=ca("animationend"),ed=ca("animationiteration"),nd=ca("animationstart"),pS=ca("transitionrun"),yS=ca("transitionstart"),gS=ca("transitioncancel"),ad=ca("transitionend"),id=new Map,Ro="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(" ");Ro.push("scrollEnd");function Qe(t,e){id.set(t,e),ra(e,[t])}var hl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},je=[],Qa=0,wo=0;function dl(){for(var t=Qa,e=wo=Qa=0;e<t;){var a=je[e];je[e++]=null;var s=je[e];je[e++]=null;var o=je[e];je[e++]=null;var c=je[e];if(je[e++]=null,s!==null&&o!==null){var m=s.pending;m===null?o.next=o:(o.next=m.next,m.next=o),s.pending=o}c!==0&&sd(a,o,c)}}function ml(t,e,a,s){je[Qa++]=t,je[Qa++]=e,je[Qa++]=a,je[Qa++]=s,wo|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Do(t,e,a,s){return ml(t,e,a,s),pl(t)}function fa(t,e){return ml(t,null,null,e),pl(t)}function sd(t,e,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var o=!1,c=t.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-Te(a),t=c.hiddenUpdates,s=t[o],s===null?t[o]=[e]:s.push(e),e.lane=a|536870912),c):null}function pl(t){if(50<ms)throw ms=0,Bu=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Xa={};function vS(t,e,a,s){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 Ae(t,e,a,s){return new vS(t,e,a,s)}function Oo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function hn(t,e){var a=t.alternate;return a===null?(a=Ae(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function ld(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function yl(t,e,a,s,o,c){var m=0;if(s=t,typeof t=="function")Oo(t)&&(m=1);else if(typeof t=="string")m=Eb(t,a,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case nt:return t=Ae(31,a,e,o),t.elementType=nt,t.lanes=c,t;case D:return ha(a.children,o,c,e);case w:m=8,o|=24;break;case N:return t=Ae(12,a,e,o|2),t.elementType=N,t.lanes=c,t;case Q:return t=Ae(13,a,e,o),t.elementType=Q,t.lanes=c,t;case it:return t=Ae(19,a,e,o),t.elementType=it,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:m=10;break t;case q:m=9;break t;case k:m=11;break t;case $:m=14;break t;case P:m=16,s=null;break t}m=29,a=Error(r(130,t===null?"null":typeof t,"")),s=null}return e=Ae(m,a,e,o),e.elementType=t,e.type=s,e.lanes=c,e}function ha(t,e,a,s){return t=Ae(7,t,s,e),t.lanes=a,t}function zo(t,e,a){return t=Ae(6,t,null,e),t.lanes=a,t}function rd(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function _o(t,e,a){return e=Ae(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var od=new WeakMap;function Ne(t,e){if(typeof t=="object"&&t!==null){var a=od.get(t);return a!==void 0?a:(e={value:t,source:e,stack:rh(e)},od.set(t,e),e)}return{value:t,source:e,stack:rh(e)}}var Ka=[],Pa=0,gl=null,Pi=0,Ve=[],Le=0,_n=null,We=1,Ie="";function dn(t,e){Ka[Pa++]=Pi,Ka[Pa++]=gl,gl=t,Pi=e}function ud(t,e,a){Ve[Le++]=We,Ve[Le++]=Ie,Ve[Le++]=_n,_n=t;var s=We;t=Ie;var o=32-Te(s)-1;s&=~(1<<o),a+=1;var c=32-Te(e)+o;if(30<c){var m=o-o%5;c=(s&(1<<m)-1).toString(32),s>>=m,o-=m,We=1<<32-Te(e)+o|a<<o|s,Ie=c+t}else We=1<<c|a<<o|s,Ie=t}function jo(t){t.return!==null&&(dn(t,1),ud(t,1,0))}function No(t){for(;t===gl;)gl=Ka[--Pa],Ka[Pa]=null,Pi=Ka[--Pa],Ka[Pa]=null;for(;t===_n;)_n=Ve[--Le],Ve[Le]=null,Ie=Ve[--Le],Ve[Le]=null,We=Ve[--Le],Ve[Le]=null}function cd(t,e){Ve[Le++]=We,Ve[Le++]=Ie,Ve[Le++]=_n,We=e.id,Ie=e.overflow,_n=t}var te=null,zt=null,gt=!1,jn=null,Ue=!1,Vo=Error(r(519));function Nn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(Ne(e,t)),Vo}function fd(t){var e=t.stateNode,a=t.type,s=t.memoizedProps;switch(e[It]=t,e[de]=s,a){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(a=0;a<ys.length;a++)dt(ys[a],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Ah(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Ch(e,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||s.suppressHydrationWarning===!0||wp(e.textContent,a)?(s.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),s.onScroll!=null&&dt("scroll",e),s.onScrollEnd!=null&&dt("scrollend",e),s.onClick!=null&&(e.onclick=cn),e=!0):e=!1,e||Nn(t,!0)}function hd(t){for(te=t.return;te;)switch(te.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:te=te.return}}function Za(t){if(t!==te)return!1;if(!gt)return hd(t),gt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Iu(t.type,t.memoizedProps)),a=!a),a&&zt&&Nn(t),hd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));zt=Up(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));zt=Up(t)}else e===27?(e=zt,Zn(t.type)?(t=ic,ic=null,zt=t):zt=e):zt=te?He(t.stateNode.nextSibling):null;return!0}function da(){zt=te=null,gt=!1}function Lo(){var t=jn;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),jn=null),t}function Zi(t){jn===null?jn=[t]:jn.push(t)}var Uo=A(null),ma=null,mn=null;function Vn(t,e,a){K(Uo,e._currentValue),e._currentValue=a}function pn(t){t._currentValue=Uo.current,Y(Uo)}function Bo(t,e,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===a)break;t=t.return}}function Ho(t,e,a,s){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;t:for(;c!==null;){var S=c;c=o;for(var x=0;x<e.length;x++)if(S.context===e[x]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),Bo(c.return,a,t),s||(m=null);break t}c=S.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Bo(m,a,t),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===t){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Fa(t,e,a,s){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var S=o.type;Ee(o.pendingProps.value,m.value)||(t!==null?t.push(S):t=[S])}}else if(o===Et.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(xs):t=[xs])}o=o.return}t!==null&&Ho(e,t,a,s),e.flags|=262144}function vl(t){for(t=t.firstContext;t!==null;){if(!Ee(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pa(t){ma=t,mn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ee(t){return dd(ma,t)}function Sl(t,e){return ma===null&&pa(t),dd(t,e)}function dd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},mn===null){if(t===null)throw Error(r(308));mn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else mn=mn.next=e;return a}var SS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},bS=n.unstable_scheduleCallback,xS=n.unstable_NormalPriority,Qt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qo(){return{controller:new SS,data:new Map,refCount:0}}function Fi(t){t.refCount--,t.refCount===0&&bS(xS,function(){t.controller.abort()})}var Ji=null,Go=0,Ja=0,$a=null;function TS(t,e){if(Ji===null){var a=Ji=[];Go=0,Ja=Qu(),$a={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Go++,e.then(md,md),e}function md(){if(--Go===0&&Ji!==null){$a!==null&&($a.status="fulfilled");var t=Ji;Ji=null,Ja=0,$a=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ES(t,e){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var pd=L.S;L.S=function(t,e){Wm=be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&TS(t,e),pd!==null&&pd(t,e)};var ya=A(null);function Yo(){var t=ya.current;return t!==null?t:Dt.pooledCache}function bl(t,e){e===null?K(ya,ya.current):K(ya,e.pool)}function yd(){var t=Yo();return t===null?null:{parent:Qt._currentValue,pool:t}}var Wa=Error(r(460)),ko=Error(r(474)),xl=Error(r(542)),Tl={then:function(){}};function gd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vd(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(cn,cn),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bd(t),t;default:if(typeof e.status=="string")e.then(cn,cn);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=s}},function(s){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bd(t),t}throw va=e,Wa}}function ga(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(va=a,Wa):a}}var va=null;function Sd(){if(va===null)throw Error(r(459));var t=va;return va=null,t}function bd(t){if(t===Wa||t===xl)throw Error(r(483))}var Ia=null,$i=0;function El(t){var e=$i;return $i+=1,Ia===null&&(Ia=[]),vd(Ia,t,e)}function Wi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Al(t,e){throw e.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function xd(t){function e(R,E){if(t){var O=R.deletions;O===null?(R.deletions=[E],R.flags|=16):O.push(E)}}function a(R,E){if(!t)return null;for(;E!==null;)e(R,E),E=E.sibling;return null}function s(R){for(var E=new Map;R!==null;)R.key!==null?E.set(R.key,R):E.set(R.index,R),R=R.sibling;return E}function o(R,E){return R=hn(R,E),R.index=0,R.sibling=null,R}function c(R,E,O){return R.index=O,t?(O=R.alternate,O!==null?(O=O.index,O<E?(R.flags|=67108866,E):O):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function m(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function S(R,E,O,H){return E===null||E.tag!==6?(E=zo(O,R.mode,H),E.return=R,E):(E=o(E,O),E.return=R,E)}function x(R,E,O,H){var et=O.type;return et===D?B(R,E,O.props.children,H,O.key):E!==null&&(E.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===P&&ga(et)===E.type)?(E=o(E,O.props),Wi(E,O),E.return=R,E):(E=yl(O.type,O.key,O.props,null,R.mode,H),Wi(E,O),E.return=R,E)}function z(R,E,O,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=_o(O,R.mode,H),E.return=R,E):(E=o(E,O.children||[]),E.return=R,E)}function B(R,E,O,H,et){return E===null||E.tag!==7?(E=ha(O,R.mode,H,et),E.return=R,E):(E=o(E,O),E.return=R,E)}function G(R,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=zo(""+E,R.mode,O),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case C:return O=yl(E.type,E.key,E.props,null,R.mode,O),Wi(O,E),O.return=R,O;case M:return E=_o(E,R.mode,O),E.return=R,E;case P:return E=ga(E),G(R,E,O)}if(Tt(E)||vt(E))return E=ha(E,R.mode,O,null),E.return=R,E;if(typeof E.then=="function")return G(R,El(E),O);if(E.$$typeof===U)return G(R,Sl(R,E),O);Al(R,E)}return null}function _(R,E,O,H){var et=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return et!==null?null:S(R,E,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case C:return O.key===et?x(R,E,O,H):null;case M:return O.key===et?z(R,E,O,H):null;case P:return O=ga(O),_(R,E,O,H)}if(Tt(O)||vt(O))return et!==null?null:B(R,E,O,H,null);if(typeof O.then=="function")return _(R,E,El(O),H);if(O.$$typeof===U)return _(R,E,Sl(R,O),H);Al(R,O)}return null}function V(R,E,O,H,et){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(O)||null,S(E,R,""+H,et);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case C:return R=R.get(H.key===null?O:H.key)||null,x(E,R,H,et);case M:return R=R.get(H.key===null?O:H.key)||null,z(E,R,H,et);case P:return H=ga(H),V(R,E,O,H,et)}if(Tt(H)||vt(H))return R=R.get(O)||null,B(E,R,H,et,null);if(typeof H.then=="function")return V(R,E,O,El(H),et);if(H.$$typeof===U)return V(R,E,O,Sl(E,H),et);Al(E,H)}return null}function F(R,E,O,H){for(var et=null,St=null,tt=E,ut=E=0,pt=null;tt!==null&&ut<O.length;ut++){tt.index>ut?(pt=tt,tt=null):pt=tt.sibling;var bt=_(R,tt,O[ut],H);if(bt===null){tt===null&&(tt=pt);break}t&&tt&&bt.alternate===null&&e(R,tt),E=c(bt,E,ut),St===null?et=bt:St.sibling=bt,St=bt,tt=pt}if(ut===O.length)return a(R,tt),gt&&dn(R,ut),et;if(tt===null){for(;ut<O.length;ut++)tt=G(R,O[ut],H),tt!==null&&(E=c(tt,E,ut),St===null?et=tt:St.sibling=tt,St=tt);return gt&&dn(R,ut),et}for(tt=s(tt);ut<O.length;ut++)pt=V(tt,R,ut,O[ut],H),pt!==null&&(t&&pt.alternate!==null&&tt.delete(pt.key===null?ut:pt.key),E=c(pt,E,ut),St===null?et=pt:St.sibling=pt,St=pt);return t&&tt.forEach(function(In){return e(R,In)}),gt&&dn(R,ut),et}function at(R,E,O,H){if(O==null)throw Error(r(151));for(var et=null,St=null,tt=E,ut=E=0,pt=null,bt=O.next();tt!==null&&!bt.done;ut++,bt=O.next()){tt.index>ut?(pt=tt,tt=null):pt=tt.sibling;var In=_(R,tt,bt.value,H);if(In===null){tt===null&&(tt=pt);break}t&&tt&&In.alternate===null&&e(R,tt),E=c(In,E,ut),St===null?et=In:St.sibling=In,St=In,tt=pt}if(bt.done)return a(R,tt),gt&&dn(R,ut),et;if(tt===null){for(;!bt.done;ut++,bt=O.next())bt=G(R,bt.value,H),bt!==null&&(E=c(bt,E,ut),St===null?et=bt:St.sibling=bt,St=bt);return gt&&dn(R,ut),et}for(tt=s(tt);!bt.done;ut++,bt=O.next())bt=V(tt,R,ut,bt.value,H),bt!==null&&(t&&bt.alternate!==null&&tt.delete(bt.key===null?ut:bt.key),E=c(bt,E,ut),St===null?et=bt:St.sibling=bt,St=bt);return t&&tt.forEach(function(Nb){return e(R,Nb)}),gt&&dn(R,ut),et}function wt(R,E,O,H){if(typeof O=="object"&&O!==null&&O.type===D&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case C:t:{for(var et=O.key;E!==null;){if(E.key===et){if(et=O.type,et===D){if(E.tag===7){a(R,E.sibling),H=o(E,O.props.children),H.return=R,R=H;break t}}else if(E.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===P&&ga(et)===E.type){a(R,E.sibling),H=o(E,O.props),Wi(H,O),H.return=R,R=H;break t}a(R,E);break}else e(R,E);E=E.sibling}O.type===D?(H=ha(O.props.children,R.mode,H,O.key),H.return=R,R=H):(H=yl(O.type,O.key,O.props,null,R.mode,H),Wi(H,O),H.return=R,R=H)}return m(R);case M:t:{for(et=O.key;E!==null;){if(E.key===et)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){a(R,E.sibling),H=o(E,O.children||[]),H.return=R,R=H;break t}else{a(R,E);break}else e(R,E);E=E.sibling}H=_o(O,R.mode,H),H.return=R,R=H}return m(R);case P:return O=ga(O),wt(R,E,O,H)}if(Tt(O))return F(R,E,O,H);if(vt(O)){if(et=vt(O),typeof et!="function")throw Error(r(150));return O=et.call(O),at(R,E,O,H)}if(typeof O.then=="function")return wt(R,E,El(O),H);if(O.$$typeof===U)return wt(R,E,Sl(R,O),H);Al(R,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(a(R,E.sibling),H=o(E,O),H.return=R,R=H):(a(R,E),H=zo(O,R.mode,H),H.return=R,R=H),m(R)):a(R,E)}return function(R,E,O,H){try{$i=0;var et=wt(R,E,O,H);return Ia=null,et}catch(tt){if(tt===Wa||tt===xl)throw tt;var St=Ae(29,tt,null,R.mode);return St.lanes=H,St.return=R,St}}}var Sa=xd(!0),Td=xd(!1),Ln=!1;function Qo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Un(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bn(t,e,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(xt&2)!==0){var o=s.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),s.pending=e,e=pl(t),sd(t,null,a),e}return ml(t,s,e,a),pl(t)}function Ii(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,dh(t,a)}}function Ko(t,e){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?o=c=e:c=c.next=e}else o=c=e;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Po=!1;function ts(){if(Po){var t=$a;if(t!==null)throw t}}function es(t,e,a,s){Po=!1;var o=t.updateQueue;Ln=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var x=S,z=x.next;x.next=null,m===null?c=z:m.next=z,m=x;var B=t.alternate;B!==null&&(B=B.updateQueue,S=B.lastBaseUpdate,S!==m&&(S===null?B.firstBaseUpdate=z:S.next=z,B.lastBaseUpdate=x))}if(c!==null){var G=o.baseState;m=0,B=z=x=null,S=c;do{var _=S.lane&-536870913,V=_!==S.lane;if(V?(mt&_)===_:(s&_)===_){_!==0&&_===Ja&&(Po=!0),B!==null&&(B=B.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var F=t,at=S;_=e;var wt=a;switch(at.tag){case 1:if(F=at.payload,typeof F=="function"){G=F.call(wt,G,_);break t}G=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=at.payload,_=typeof F=="function"?F.call(wt,G,_):F,_==null)break t;G=v({},G,_);break t;case 2:Ln=!0}}_=S.callback,_!==null&&(t.flags|=64,V&&(t.flags|=8192),V=o.callbacks,V===null?o.callbacks=[_]:V.push(_))}else V={lane:_,tag:S.tag,payload:S.payload,callback:S.callback,next:null},B===null?(z=B=V,x=G):B=B.next=V,m|=_;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;V=S,S=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);B===null&&(x=G),o.baseState=x,o.firstBaseUpdate=z,o.lastBaseUpdate=B,c===null&&(o.shared.lanes=0),kn|=m,t.lanes=m,t.memoizedState=G}}function Ed(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Ad(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Ed(a[t],e)}var ti=A(null),Ml=A(0);function Md(t,e){t=An,K(Ml,t),K(ti,e),An=t|e.baseLanes}function Zo(){K(Ml,An),K(ti,ti.current)}function Fo(){An=Ml.current,Y(ti),Y(Ml)}var Me=A(null),Be=null;function Hn(t){var e=t.alternate;K(Gt,Gt.current&1),K(Me,t),Be===null&&(e===null||ti.current!==null||e.memoizedState!==null)&&(Be=t)}function Jo(t){K(Gt,Gt.current),K(Me,t),Be===null&&(Be=t)}function Cd(t){t.tag===22?(K(Gt,Gt.current),K(Me,t),Be===null&&(Be=t)):qn()}function qn(){K(Gt,Gt.current),K(Me,Me.current)}function Ce(t){Y(Me),Be===t&&(Be=null),Y(Gt)}var Gt=A(0);function Cl(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||nc(a)||ac(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var yn=0,rt=null,Ct=null,Xt=null,Rl=!1,ei=!1,ba=!1,wl=0,ns=0,ni=null,AS=0;function Ut(){throw Error(r(321))}function $o(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ee(t[a],e[a]))return!1;return!0}function Wo(t,e,a,s,o,c){return yn=c,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,L.H=t===null||t.memoizedState===null?um:du,ba=!1,c=a(s,o),ba=!1,ei&&(c=wd(e,a,s,o)),Rd(t),c}function Rd(t){L.H=ss;var e=Ct!==null&&Ct.next!==null;if(yn=0,Xt=Ct=rt=null,Rl=!1,ns=0,ni=null,e)throw Error(r(300));t===null||Kt||(t=t.dependencies,t!==null&&vl(t)&&(Kt=!0))}function wd(t,e,a,s){rt=t;var o=0;do{if(ei&&(ni=null),ns=0,ei=!1,25<=o)throw Error(r(301));if(o+=1,Xt=Ct=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=cm,c=e(a,s)}while(ei);return c}function MS(){var t=L.H,e=t.useState()[0];return e=typeof e.then=="function"?as(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(rt.flags|=1024),e}function Io(){var t=wl!==0;return wl=0,t}function tu(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function eu(t){if(Rl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Rl=!1}yn=0,Xt=Ct=rt=null,ei=!1,ns=wl=0,ni=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?rt.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Ct===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Xt===null?rt.memoizedState:Xt.next;if(e!==null)Xt=e,Ct=t;else{if(t===null)throw rt.alternate===null?Error(r(467)):Error(r(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Xt===null?rt.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function Dl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function as(t){var e=ns;return ns+=1,ni===null&&(ni=[]),t=vd(ni,t,e),e=rt,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,L.H=e===null||e.memoizedState===null?um:du),t}function Ol(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return as(t);if(t.$$typeof===U)return ee(t)}throw Error(r(438,String(t)))}function nu(t){var e=null,a=rt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var s=rt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Dl(),rt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),s=0;s<t;s++)a[s]=I;return e.index++,a}function gn(t,e){return typeof e=="function"?e(t):e}function zl(t){var e=Yt();return au(e,Ct,t)}function au(t,e,a){var s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var o=t.baseQueue,c=s.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}e.baseQueue=o=c,s.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var S=m=null,x=null,z=e,B=!1;do{var G=z.lane&-536870913;if(G!==z.lane?(mt&G)===G:(yn&G)===G){var _=z.revertLane;if(_===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),G===Ja&&(B=!0);else if((yn&_)===_){z=z.next,_===Ja&&(B=!0);continue}else G={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(S=x=G,m=c):x=x.next=G,rt.lanes|=_,kn|=_;G=z.action,ba&&a(c,G),c=z.hasEagerState?z.eagerState:a(c,G)}else _={lane:G,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(S=x=_,m=c):x=x.next=_,rt.lanes|=G,kn|=G;z=z.next}while(z!==null&&z!==e);if(x===null?m=c:x.next=S,!Ee(c,t.memoizedState)&&(Kt=!0,B&&(a=$a,a!==null)))throw a;t.memoizedState=c,t.baseState=m,t.baseQueue=x,s.lastRenderedState=c}return o===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function iu(t){var e=Yt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var s=a.dispatch,o=a.pending,c=e.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do c=t(c,m.action),m=m.next;while(m!==o);Ee(c,e.memoizedState)||(Kt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,s]}function Dd(t,e,a){var s=rt,o=Yt(),c=gt;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var m=!Ee((Ct||o).memoizedState,a);if(m&&(o.memoizedState=a,Kt=!0),o=o.queue,ru(_d.bind(null,s,o,t),[t]),o.getSnapshot!==e||m||Xt!==null&&Xt.memoizedState.tag&1){if(s.flags|=2048,ai(9,{destroy:void 0},zd.bind(null,s,o,a,e),null),Dt===null)throw Error(r(349));c||(yn&127)!==0||Od(s,e,a)}return a}function Od(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=rt.updateQueue,e===null?(e=Dl(),rt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function zd(t,e,a,s){e.value=a,e.getSnapshot=s,jd(e)&&Nd(t)}function _d(t,e,a){return a(function(){jd(e)&&Nd(t)})}function jd(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ee(t,a)}catch{return!0}}function Nd(t){var e=fa(t,2);e!==null&&Se(e,t,2)}function su(t){var e=ue();if(typeof t=="function"){var a=t;if(t=a(),ba){Dn(!0);try{a()}finally{Dn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:t},e}function Vd(t,e,a,s){return t.baseState=a,au(t,Ct,typeof s=="function"?s:gn)}function CS(t,e,a,s,o){if(Nl(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};L.T!==null?a(!0):c.isTransition=!1,s(c),a=e.pending,a===null?(c.next=e.pending=c,Ld(e,c)):(c.next=a.next,e.pending=a.next=c)}}function Ld(t,e){var a=e.action,s=e.payload,o=t.state;if(e.isTransition){var c=L.T,m={};L.T=m;try{var S=a(o,s),x=L.S;x!==null&&x(m,S),Ud(t,e,S)}catch(z){lu(t,e,z)}finally{c!==null&&m.types!==null&&(c.types=m.types),L.T=c}}else try{c=a(o,s),Ud(t,e,c)}catch(z){lu(t,e,z)}}function Ud(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Bd(t,e,s)},function(s){return lu(t,e,s)}):Bd(t,e,a)}function Bd(t,e,a){e.status="fulfilled",e.value=a,Hd(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,Ld(t,a)))}function lu(t,e,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=a,Hd(e),e=e.next;while(e!==s)}t.action=null}function Hd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function qd(t,e){return e}function Gd(t,e){if(gt){var a=Dt.formState;if(a!==null){t:{var s=rt;if(gt){if(zt){e:{for(var o=zt,c=Ue;o.nodeType!==8;){if(!c){o=null;break e}if(o=He(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){zt=He(o.nextSibling),s=o.data==="F!";break t}}Nn(s)}s=!1}s&&(e=a[0])}}return a=ue(),a.memoizedState=a.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qd,lastRenderedState:e},a.queue=s,a=lm.bind(null,rt,s),s.dispatch=a,s=su(!1),c=hu.bind(null,rt,!1,s.queue),s=ue(),o={state:e,dispatch:null,action:t,pending:null},s.queue=o,a=CS.bind(null,rt,o,c,a),o.dispatch=a,s.memoizedState=t,[e,a,!1]}function Yd(t){var e=Yt();return kd(e,Ct,t)}function kd(t,e,a){if(e=au(t,e,qd)[0],t=zl(gn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=as(e)}catch(m){throw m===Wa?xl:m}else s=e;e=Yt();var o=e.queue,c=o.dispatch;return a!==e.memoizedState&&(rt.flags|=2048,ai(9,{destroy:void 0},RS.bind(null,o,a),null)),[s,c,t]}function RS(t,e){t.action=e}function Qd(t){var e=Yt(),a=Ct;if(a!==null)return kd(e,a,t);Yt(),e=e.memoizedState,a=Yt();var s=a.queue.dispatch;return a.memoizedState=t,[e,s,!1]}function ai(t,e,a,s){return t={tag:t,create:a,deps:s,inst:e,next:null},e=rt.updateQueue,e===null&&(e=Dl(),rt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,e.lastEffect=t),t}function Xd(){return Yt().memoizedState}function _l(t,e,a,s){var o=ue();rt.flags|=t,o.memoizedState=ai(1|e,{destroy:void 0},a,s===void 0?null:s)}function jl(t,e,a,s){var o=Yt();s=s===void 0?null:s;var c=o.memoizedState.inst;Ct!==null&&s!==null&&$o(s,Ct.memoizedState.deps)?o.memoizedState=ai(e,c,a,s):(rt.flags|=t,o.memoizedState=ai(1|e,c,a,s))}function Kd(t,e){_l(8390656,8,t,e)}function ru(t,e){jl(2048,8,t,e)}function wS(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=Dl(),rt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Pd(t){var e=Yt().memoizedState;return wS({ref:e,nextImpl:t}),function(){if((xt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Zd(t,e){return jl(4,2,t,e)}function Fd(t,e){return jl(4,4,t,e)}function Jd(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $d(t,e,a){a=a!=null?a.concat([t]):null,jl(4,4,Jd.bind(null,e,t),a)}function ou(){}function Wd(t,e){var a=Yt();e=e===void 0?null:e;var s=a.memoizedState;return e!==null&&$o(e,s[1])?s[0]:(a.memoizedState=[t,e],t)}function Id(t,e){var a=Yt();e=e===void 0?null:e;var s=a.memoizedState;if(e!==null&&$o(e,s[1]))return s[0];if(s=t(),ba){Dn(!0);try{t()}finally{Dn(!1)}}return a.memoizedState=[s,e],s}function uu(t,e,a){return a===void 0||(yn&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=tp(),rt.lanes|=t,kn|=t,a)}function tm(t,e,a,s){return Ee(a,e)?a:ti.current!==null?(t=uu(t,a,s),Ee(t,e)||(Kt=!0),t):(yn&42)===0||(yn&1073741824)!==0&&(mt&261930)===0?(Kt=!0,t.memoizedState=a):(t=tp(),rt.lanes|=t,kn|=t,e)}function em(t,e,a,s,o){var c=X.p;X.p=c!==0&&8>c?c:8;var m=L.T,S={};L.T=S,hu(t,!1,e,a);try{var x=o(),z=L.S;if(z!==null&&z(S,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var B=ES(x,s);is(t,e,B,De(t))}else is(t,e,s,De(t))}catch(G){is(t,e,{then:function(){},status:"rejected",reason:G},De())}finally{X.p=c,m!==null&&S.types!==null&&(m.types=S.types),L.T=m}}function DS(){}function cu(t,e,a,s){if(t.tag!==5)throw Error(r(476));var o=nm(t).queue;em(t,o,e,Z,a===null?DS:function(){return am(t),a(s)})}function nm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:Z},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function am(t){var e=nm(t);e.next===null&&(e=t.alternate.memoizedState),is(t,e.next.queue,{},De())}function fu(){return ee(xs)}function im(){return Yt().memoizedState}function sm(){return Yt().memoizedState}function OS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=De();t=Un(a);var s=Bn(e,t,a);s!==null&&(Se(s,e,a),Ii(s,e,a)),e={cache:qo()},t.payload=e;return}e=e.return}}function zS(t,e,a){var s=De();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nl(t)?rm(e,a):(a=Do(t,e,a,s),a!==null&&(Se(a,t,s),om(a,e,s)))}function lm(t,e,a){var s=De();is(t,e,a,s)}function is(t,e,a,s){var o={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Nl(t))rm(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var m=e.lastRenderedState,S=c(m,a);if(o.hasEagerState=!0,o.eagerState=S,Ee(S,m))return ml(t,e,o,0),Dt===null&&dl(),!1}catch{}if(a=Do(t,e,o,s),a!==null)return Se(a,t,s),om(a,e,s),!0}return!1}function hu(t,e,a,s){if(s={lane:2,revertLane:Qu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Nl(t)){if(e)throw Error(r(479))}else e=Do(t,a,s,2),e!==null&&Se(e,t,2)}function Nl(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function rm(t,e){ei=Rl=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function om(t,e,a){if((a&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,dh(t,a)}}var ss={readContext:ee,use:Ol,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};ss.useEffectEvent=Ut;var um={readContext:ee,use:Ol,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:ee,useEffect:Kd,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,_l(4194308,4,Jd.bind(null,e,t),a)},useLayoutEffect:function(t,e){return _l(4194308,4,t,e)},useInsertionEffect:function(t,e){_l(4,2,t,e)},useMemo:function(t,e){var a=ue();e=e===void 0?null:e;var s=t();if(ba){Dn(!0);try{t()}finally{Dn(!1)}}return a.memoizedState=[s,e],s},useReducer:function(t,e,a){var s=ue();if(a!==void 0){var o=a(e);if(ba){Dn(!0);try{a(e)}finally{Dn(!1)}}}else o=e;return s.memoizedState=s.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},s.queue=t,t=t.dispatch=zS.bind(null,rt,t),[s.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=su(t);var e=t.queue,a=lm.bind(null,rt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:ou,useDeferredValue:function(t,e){var a=ue();return uu(a,t,e)},useTransition:function(){var t=su(!1);return t=em.bind(null,rt,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var s=rt,o=ue();if(gt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Dt===null)throw Error(r(349));(mt&127)!==0||Od(s,e,a)}o.memoizedState=a;var c={value:a,getSnapshot:e};return o.queue=c,Kd(_d.bind(null,s,c,t),[t]),s.flags|=2048,ai(9,{destroy:void 0},zd.bind(null,s,c,a,e),null),a},useId:function(){var t=ue(),e=Dt.identifierPrefix;if(gt){var a=Ie,s=We;a=(s&~(1<<32-Te(s)-1)).toString(32)+a,e="_"+e+"R_"+a,a=wl++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=AS++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:fu,useFormState:Gd,useActionState:Gd,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=hu.bind(null,rt,!0,a),a.dispatch=e,[t,e]},useMemoCache:nu,useCacheRefresh:function(){return ue().memoizedState=OS.bind(null,rt)},useEffectEvent:function(t){var e=ue(),a={impl:t};return e.memoizedState=a,function(){if((xt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},du={readContext:ee,use:Ol,useCallback:Wd,useContext:ee,useEffect:ru,useImperativeHandle:$d,useInsertionEffect:Zd,useLayoutEffect:Fd,useMemo:Id,useReducer:zl,useRef:Xd,useState:function(){return zl(gn)},useDebugValue:ou,useDeferredValue:function(t,e){var a=Yt();return tm(a,Ct.memoizedState,t,e)},useTransition:function(){var t=zl(gn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:as(t),e]},useSyncExternalStore:Dd,useId:im,useHostTransitionStatus:fu,useFormState:Yd,useActionState:Yd,useOptimistic:function(t,e){var a=Yt();return Vd(a,Ct,t,e)},useMemoCache:nu,useCacheRefresh:sm};du.useEffectEvent=Pd;var cm={readContext:ee,use:Ol,useCallback:Wd,useContext:ee,useEffect:ru,useImperativeHandle:$d,useInsertionEffect:Zd,useLayoutEffect:Fd,useMemo:Id,useReducer:iu,useRef:Xd,useState:function(){return iu(gn)},useDebugValue:ou,useDeferredValue:function(t,e){var a=Yt();return Ct===null?uu(a,t,e):tm(a,Ct.memoizedState,t,e)},useTransition:function(){var t=iu(gn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:as(t),e]},useSyncExternalStore:Dd,useId:im,useHostTransitionStatus:fu,useFormState:Qd,useActionState:Qd,useOptimistic:function(t,e){var a=Yt();return Ct!==null?Vd(a,Ct,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:nu,useCacheRefresh:sm};cm.useEffectEvent=Pd;function mu(t,e,a,s){e=t.memoizedState,a=a(s,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var pu={enqueueSetState:function(t,e,a){t=t._reactInternals;var s=De(),o=Un(s);o.payload=e,a!=null&&(o.callback=a),e=Bn(t,o,s),e!==null&&(Se(e,t,s),Ii(e,t,s))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var s=De(),o=Un(s);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=Bn(t,o,s),e!==null&&(Se(e,t,s),Ii(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=De(),s=Un(a);s.tag=2,e!=null&&(s.callback=e),e=Bn(t,s,a),e!==null&&(Se(e,t,a),Ii(e,t,a))}};function fm(t,e,a,s,o,c,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,c,m):e.prototype&&e.prototype.isPureReactComponent?!Xi(a,s)||!Xi(o,c):!0}function hm(t,e,a,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,s),e.state!==t&&pu.enqueueReplaceState(e,e.state,null)}function xa(t,e){var a=e;if("ref"in e){a={};for(var s in e)s!=="ref"&&(a[s]=e[s])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function dm(t){hl(t)}function mm(t){console.error(t)}function pm(t){hl(t)}function Vl(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function ym(t,e,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function yu(t,e,a){return a=Un(a),a.tag=3,a.payload={element:null},a.callback=function(){Vl(t,e)},a}function gm(t){return t=Un(t),t.tag=3,t}function vm(t,e,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=s.value;t.payload=function(){return o(c)},t.callback=function(){ym(e,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){ym(e,a,s),typeof o!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function _S(t,e,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=a.alternate,e!==null&&Fa(e,a,o,!0),a=Me.current,a!==null){switch(a.tag){case 31:case 13:return Be===null?Pl():a.alternate===null&&Bt===0&&(Bt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===Tl?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([s]):e.add(s),Gu(t,s,o)),!1;case 22:return a.flags|=65536,s===Tl?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([s]):a.add(s)),Gu(t,s,o)),!1}throw Error(r(435,a.tag))}return Gu(t,s,o),Pl(),!1}if(gt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,s!==Vo&&(t=Error(r(422),{cause:s}),Zi(Ne(t,a)))):(s!==Vo&&(e=Error(r(423),{cause:s}),Zi(Ne(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,s=Ne(s,a),o=yu(t.stateNode,s,o),Ko(t,o),Bt!==4&&(Bt=2)),!1;var c=Error(r(520),{cause:s});if(c=Ne(c,a),ds===null?ds=[c]:ds.push(c),Bt!==4&&(Bt=2),e===null)return!0;s=Ne(s,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=yu(a.stateNode,s,t),Ko(a,t),!1;case 1:if(e=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Qn===null||!Qn.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=gm(o),vm(o,t,a,s),Ko(a,o),!1}a=a.return}while(a!==null);return!1}var gu=Error(r(461)),Kt=!1;function ne(t,e,a,s){e.child=t===null?Td(e,null,a,s):Sa(e,t.child,a,s)}function Sm(t,e,a,s,o){a=a.render;var c=e.ref;if("ref"in s){var m={};for(var S in s)S!=="ref"&&(m[S]=s[S])}else m=s;return pa(e),s=Wo(t,e,a,m,c,o),S=Io(),t!==null&&!Kt?(tu(t,e,o),vn(t,e,o)):(gt&&S&&jo(e),e.flags|=1,ne(t,e,s,o),e.child)}function bm(t,e,a,s,o){if(t===null){var c=a.type;return typeof c=="function"&&!Oo(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,xm(t,e,c,s,o)):(t=yl(a.type,null,s,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Mu(t,o)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Xi,a(m,s)&&t.ref===e.ref)return vn(t,e,o)}return e.flags|=1,t=hn(c,s),t.ref=e.ref,t.return=e,e.child=t}function xm(t,e,a,s,o){if(t!==null){var c=t.memoizedProps;if(Xi(c,s)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=s=c,Mu(t,o))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,vn(t,e,o)}return vu(t,e,a,s,o)}function Tm(t,e,a,s){var o=s.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,t!==null){for(s=e.child=t.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~c}else s=0,e.child=null;return Em(t,e,c,a,s)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&bl(e,c!==null?c.cachePool:null),c!==null?Md(e,c):Zo(),Cd(e);else return s=e.lanes=536870912,Em(t,e,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(bl(e,c.cachePool),Md(e,c),qn(),e.memoizedState=null):(t!==null&&bl(e,null),Zo(),qn());return ne(t,e,o,a),e.child}function ls(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Em(t,e,a,s,o){var c=Yo();return c=c===null?null:{parent:Qt._currentValue,pool:c},e.memoizedState={baseLanes:a,cachePool:c},t!==null&&bl(e,null),Zo(),Cd(e),t!==null&&Fa(t,e,s,!0),e.childLanes=o,null}function Ll(t,e){return e=Bl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Am(t,e,a){return Sa(e,t.child,null,a),t=Ll(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function jS(t,e,a){var s=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(gt){if(s.mode==="hidden")return t=Ll(e,s),e.lanes=536870912,ls(null,t);if(Jo(e),(t=zt)?(t=Lp(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:We,overflow:Ie}:null,retryLane:536870912,hydrationErrors:null},a=rd(t),a.return=e,e.child=a,te=e,zt=null)):t=null,t===null)throw Nn(e);return e.lanes=536870912,null}return Ll(e,s)}var c=t.memoizedState;if(c!==null){var m=c.dehydrated;if(Jo(e),o)if(e.flags&256)e.flags&=-257,e=Am(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Kt||Fa(t,e,a,!1),o=(a&t.childLanes)!==0,Kt||o){if(s=Dt,s!==null&&(m=mh(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,fa(t,m),Se(s,t,m),gu;Pl(),e=Am(t,e,a)}else t=c.treeContext,zt=He(m.nextSibling),te=e,gt=!0,jn=null,Ue=!1,t!==null&&cd(e,t),e=Ll(e,s),e.flags|=4096;return e}return t=hn(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ul(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function vu(t,e,a,s,o){return pa(e),a=Wo(t,e,a,s,void 0,o),s=Io(),t!==null&&!Kt?(tu(t,e,o),vn(t,e,o)):(gt&&s&&jo(e),e.flags|=1,ne(t,e,a,o),e.child)}function Mm(t,e,a,s,o,c){return pa(e),e.updateQueue=null,a=wd(e,s,a,o),Rd(t),s=Io(),t!==null&&!Kt?(tu(t,e,c),vn(t,e,c)):(gt&&s&&jo(e),e.flags|=1,ne(t,e,a,c),e.child)}function Cm(t,e,a,s,o){if(pa(e),e.stateNode===null){var c=Xa,m=a.contextType;typeof m=="object"&&m!==null&&(c=ee(m)),c=new a(s,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=pu,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=s,c.state=e.memoizedState,c.refs={},Qo(e),m=a.contextType,c.context=typeof m=="object"&&m!==null?ee(m):Xa,c.state=e.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(mu(e,a,m,s),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&pu.enqueueReplaceState(c,c.state,null),es(e,s,c,o),ts(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){c=e.stateNode;var S=e.memoizedProps,x=xa(a,S);c.props=x;var z=c.context,B=a.contextType;m=Xa,typeof B=="object"&&B!==null&&(m=ee(B));var G=a.getDerivedStateFromProps;B=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||z!==m)&&hm(e,c,s,m),Ln=!1;var _=e.memoizedState;c.state=_,es(e,s,c,o),ts(),z=e.memoizedState,S||_!==z||Ln?(typeof G=="function"&&(mu(e,a,G,s),z=e.memoizedState),(x=Ln||fm(e,a,x,s,_,z,m))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=z),c.props=s,c.state=z,c.context=m,s=x):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{c=e.stateNode,Xo(t,e),m=e.memoizedProps,B=xa(a,m),c.props=B,G=e.pendingProps,_=c.context,z=a.contextType,x=Xa,typeof z=="object"&&z!==null&&(x=ee(z)),S=a.getDerivedStateFromProps,(z=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==G||_!==x)&&hm(e,c,s,x),Ln=!1,_=e.memoizedState,c.state=_,es(e,s,c,o),ts();var V=e.memoizedState;m!==G||_!==V||Ln||t!==null&&t.dependencies!==null&&vl(t.dependencies)?(typeof S=="function"&&(mu(e,a,S,s),V=e.memoizedState),(B=Ln||fm(e,a,B,s,_,V,x)||t!==null&&t.dependencies!==null&&vl(t.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,V,x),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,V,x)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=V),c.props=s,c.state=V,c.context=x,s=B):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),s=!1)}return c=s,Ul(t,e),s=(e.flags&128)!==0,c||s?(c=e.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&s?(e.child=Sa(e,t.child,null,o),e.child=Sa(e,null,a,o)):ne(t,e,a,o),e.memoizedState=c.state,t=e.child):t=vn(t,e,o),t}function Rm(t,e,a,s){return da(),e.flags|=256,ne(t,e,a,s),e.child}var Su={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bu(t){return{baseLanes:t,cachePool:yd()}}function xu(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=we),t}function wm(t,e,a){var s=e.pendingProps,o=!1,c=(e.flags&128)!==0,m;if((m=c)||(m=t!==null&&t.memoizedState===null?!1:(Gt.current&2)!==0),m&&(o=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(o?Hn(e):qn(),(t=zt)?(t=Lp(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:We,overflow:Ie}:null,retryLane:536870912,hydrationErrors:null},a=rd(t),a.return=e,e.child=a,te=e,zt=null)):t=null,t===null)throw Nn(e);return ac(t)?e.lanes=32:e.lanes=536870912,null}var S=s.children;return s=s.fallback,o?(qn(),o=e.mode,S=Bl({mode:"hidden",children:S},o),s=ha(s,o,a,null),S.return=e,s.return=e,S.sibling=s,e.child=S,s=e.child,s.memoizedState=bu(a),s.childLanes=xu(t,m,a),e.memoizedState=Su,ls(null,s)):(Hn(e),Tu(e,S))}var x=t.memoizedState;if(x!==null&&(S=x.dehydrated,S!==null)){if(c)e.flags&256?(Hn(e),e.flags&=-257,e=Eu(t,e,a)):e.memoizedState!==null?(qn(),e.child=t.child,e.flags|=128,e=null):(qn(),S=s.fallback,o=e.mode,s=Bl({mode:"visible",children:s.children},o),S=ha(S,o,a,null),S.flags|=2,s.return=e,S.return=e,s.sibling=S,e.child=s,Sa(e,t.child,null,a),s=e.child,s.memoizedState=bu(a),s.childLanes=xu(t,m,a),e.memoizedState=Su,e=ls(null,s));else if(Hn(e),ac(S)){if(m=S.nextSibling&&S.nextSibling.dataset,m)var z=m.dgst;m=z,s=Error(r(419)),s.stack="",s.digest=m,Zi({value:s,source:null,stack:null}),e=Eu(t,e,a)}else if(Kt||Fa(t,e,a,!1),m=(a&t.childLanes)!==0,Kt||m){if(m=Dt,m!==null&&(s=mh(m,a),s!==0&&s!==x.retryLane))throw x.retryLane=s,fa(t,s),Se(m,t,s),gu;nc(S)||Pl(),e=Eu(t,e,a)}else nc(S)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,zt=He(S.nextSibling),te=e,gt=!0,jn=null,Ue=!1,t!==null&&cd(e,t),e=Tu(e,s.children),e.flags|=4096);return e}return o?(qn(),S=s.fallback,o=e.mode,x=t.child,z=x.sibling,s=hn(x,{mode:"hidden",children:s.children}),s.subtreeFlags=x.subtreeFlags&65011712,z!==null?S=hn(z,S):(S=ha(S,o,a,null),S.flags|=2),S.return=e,s.return=e,s.sibling=S,e.child=s,ls(null,s),s=e.child,S=t.child.memoizedState,S===null?S=bu(a):(o=S.cachePool,o!==null?(x=Qt._currentValue,o=o.parent!==x?{parent:x,pool:x}:o):o=yd(),S={baseLanes:S.baseLanes|a,cachePool:o}),s.memoizedState=S,s.childLanes=xu(t,m,a),e.memoizedState=Su,ls(t.child,s)):(Hn(e),a=t.child,t=a.sibling,a=hn(a,{mode:"visible",children:s.children}),a.return=e,a.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=a,e.memoizedState=null,a)}function Tu(t,e){return e=Bl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bl(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function Eu(t,e,a){return Sa(e,t.child,null,a),t=Tu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Dm(t,e,a){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),Bo(t.return,e,a)}function Au(t,e,a,s,o,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o,treeForkCount:c}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=o,m.treeForkCount=c)}function Om(t,e,a){var s=e.pendingProps,o=s.revealOrder,c=s.tail;s=s.children;var m=Gt.current,S=(m&2)!==0;if(S?(m=m&1|2,e.flags|=128):m&=1,K(Gt,m),ne(t,e,s,a),s=gt?Pi:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Dm(t,a,e);else if(t.tag===19)Dm(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&Cl(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),Au(e,!1,o,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Cl(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}Au(e,!0,a,null,c,s);break;case"together":Au(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function vn(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),kn|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Fa(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=hn(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=hn(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Mu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&vl(t)))}function NS(t,e,a){switch(e.tag){case 3:oe(e,e.stateNode.containerInfo),Vn(e,Qt,t.memoizedState.cache),da();break;case 27:case 5:_i(e);break;case 4:oe(e,e.stateNode.containerInfo);break;case 10:Vn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Jo(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(Hn(e),e.flags|=128,null):(a&e.child.childLanes)!==0?wm(t,e,a):(Hn(e),t=vn(t,e,a),t!==null?t.sibling:null);Hn(e);break;case 19:var o=(t.flags&128)!==0;if(s=(a&e.childLanes)!==0,s||(Fa(t,e,a,!1),s=(a&e.childLanes)!==0),o){if(s)return Om(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Gt,Gt.current),s)break;return null;case 22:return e.lanes=0,Tm(t,e,a,e.pendingProps);case 24:Vn(e,Qt,t.memoizedState.cache)}return vn(t,e,a)}function zm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Mu(t,a)&&(e.flags&128)===0)return Kt=!1,NS(t,e,a);Kt=(t.flags&131072)!==0}else Kt=!1,gt&&(e.flags&1048576)!==0&&ud(e,Pi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=ga(e.elementType),e.type=t,typeof t=="function")Oo(t)?(s=xa(t,s),e.tag=1,e=Cm(null,e,t,s,a)):(e.tag=0,e=vu(null,e,t,s,a));else{if(t!=null){var o=t.$$typeof;if(o===k){e.tag=11,e=Sm(null,e,t,s,a);break t}else if(o===$){e.tag=14,e=bm(null,e,t,s,a);break t}}throw e=Nt(t)||t,Error(r(306,e,""))}}return e;case 0:return vu(t,e,e.type,e.pendingProps,a);case 1:return s=e.type,o=xa(s,e.pendingProps),Cm(t,e,s,o,a);case 3:t:{if(oe(e,e.stateNode.containerInfo),t===null)throw Error(r(387));s=e.pendingProps;var c=e.memoizedState;o=c.element,Xo(t,e),es(e,s,null,a);var m=e.memoizedState;if(s=m.cache,Vn(e,Qt,s),s!==c.cache&&Ho(e,[Qt],a,!0),ts(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Rm(t,e,s,a);break t}else if(s!==o){o=Ne(Error(r(424)),e),Zi(o),e=Rm(t,e,s,a);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,zt=He(t.firstChild),te=e,gt=!0,jn=null,Ue=!0,a=Td(e,null,s,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(da(),s===o){e=vn(t,e,a);break t}ne(t,e,s,a)}e=e.child}return e;case 26:return Ul(t,e),t===null?(a=Yp(e.type,null,e.pendingProps,null))?e.memoizedState=a:gt||(a=e.type,t=e.pendingProps,s=tr(ft.current).createElement(a),s[It]=e,s[de]=t,ae(s,a,t),$t(s),e.stateNode=s):e.memoizedState=Yp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return _i(e),t===null&&gt&&(s=e.stateNode=Hp(e.type,e.pendingProps,ft.current),te=e,Ue=!0,o=zt,Zn(e.type)?(ic=o,zt=He(s.firstChild)):zt=o),ne(t,e,e.pendingProps.children,a),Ul(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&gt&&((o=s=zt)&&(s=cb(s,e.type,e.pendingProps,Ue),s!==null?(e.stateNode=s,te=e,zt=He(s.firstChild),Ue=!1,o=!0):o=!1),o||Nn(e)),_i(e),o=e.type,c=e.pendingProps,m=t!==null?t.memoizedProps:null,s=c.children,Iu(o,c)?s=null:m!==null&&Iu(o,m)&&(e.flags|=32),e.memoizedState!==null&&(o=Wo(t,e,MS,null,null,a),xs._currentValue=o),Ul(t,e),ne(t,e,s,a),e.child;case 6:return t===null&&gt&&((t=a=zt)&&(a=fb(a,e.pendingProps,Ue),a!==null?(e.stateNode=a,te=e,zt=null,t=!0):t=!1),t||Nn(e)),null;case 13:return wm(t,e,a);case 4:return oe(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=Sa(e,null,s,a):ne(t,e,s,a),e.child;case 11:return Sm(t,e,e.type,e.pendingProps,a);case 7:return ne(t,e,e.pendingProps,a),e.child;case 8:return ne(t,e,e.pendingProps.children,a),e.child;case 12:return ne(t,e,e.pendingProps.children,a),e.child;case 10:return s=e.pendingProps,Vn(e,e.type,s.value),ne(t,e,s.children,a),e.child;case 9:return o=e.type._context,s=e.pendingProps.children,pa(e),o=ee(o),s=s(o),e.flags|=1,ne(t,e,s,a),e.child;case 14:return bm(t,e,e.type,e.pendingProps,a);case 15:return xm(t,e,e.type,e.pendingProps,a);case 19:return Om(t,e,a);case 31:return jS(t,e,a);case 22:return Tm(t,e,a,e.pendingProps);case 24:return pa(e),s=ee(Qt),t===null?(o=Yo(),o===null&&(o=Dt,c=qo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),e.memoizedState={parent:s,cache:o},Qo(e),Vn(e,Qt,o)):((t.lanes&a)!==0&&(Xo(t,e),es(e,null,null,a),ts()),o=t.memoizedState,c=e.memoizedState,o.parent!==s?(o={parent:s,cache:s},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Vn(e,Qt,s)):(s=c.cache,Vn(e,Qt,s),s!==o.cache&&Ho(e,[Qt],a,!0))),ne(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Sn(t){t.flags|=4}function Cu(t,e,a,s,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(ip())t.flags|=8192;else throw va=Tl,ko}else t.flags&=-16777217}function _m(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Pp(e))if(ip())t.flags|=8192;else throw va=Tl,ko}function Hl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fh():536870912,t.lanes|=e,ri|=e)}function rs(t,e){if(!gt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=s,t.childLanes=a,e}function VS(t,e,a){var s=e.pendingProps;switch(No(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return a=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),pn(Qt),qt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Za(e)?Sn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Lo())),_t(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(Sn(e),c!==null?(_t(e),_m(e,c)):(_t(e),Cu(e,o,null,s,a))):c?c!==t.memoizedState?(Sn(e),_t(e),_m(e,c)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&Sn(e),_t(e),Cu(e,o,t,s,a)),null;case 27:if(Js(e),a=ft.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Sn(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return _t(e),null}t=W.current,Za(e)?fd(e):(t=Hp(o,s,a),e.stateNode=t,Sn(e))}return _t(e),null;case 5:if(Js(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Sn(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return _t(e),null}if(c=W.current,Za(e))fd(e);else{var m=tr(ft.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(o,{is:s.is}):m.createElement(o)}}c[It]=e,c[de]=s;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=c;t:switch(ae(c,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&Sn(e)}}return _t(e),Cu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&Sn(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(r(166));if(t=ft.current,Za(e)){if(t=e.stateNode,a=e.memoizedProps,s=null,o=te,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}t[It]=e,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||wp(t.nodeValue,a)),t||Nn(e,!0)}else t=tr(t).createTextNode(s),t[It]=e,e.stateNode=t}return _t(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(s=Za(e),a!==null){if(t===null){if(!s)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[It]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else a=Lo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Ce(e),e):(Ce(e),null);if((e.flags&128)!==0)throw Error(r(558))}return _t(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Za(e),s!==null&&s.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[It]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),o=!1}else o=Lo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ce(e),e):(Ce(e),null)}return Ce(e),(e.flags&128)!==0?(e.lanes=a,e):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=e.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Hl(e,e.updateQueue),_t(e),null);case 4:return qt(),t===null&&Zu(e.stateNode.containerInfo),_t(e),null;case 10:return pn(e.type),_t(e),null;case 19:if(Y(Gt),s=e.memoizedState,s===null)return _t(e),null;if(o=(e.flags&128)!==0,c=s.rendering,c===null)if(o)rs(s,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Cl(t),c!==null){for(e.flags|=128,rs(s,!1),t=c.updateQueue,e.updateQueue=t,Hl(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)ld(a,t),a=a.sibling;return K(Gt,Gt.current&1|2),gt&&dn(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&be()>Ql&&(e.flags|=128,o=!0,rs(s,!1),e.lanes=4194304)}else{if(!o)if(t=Cl(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Hl(e,t),rs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!gt)return _t(e),null}else 2*be()-s.renderingStartTime>Ql&&a!==536870912&&(e.flags|=128,o=!0,rs(s,!1),e.lanes=4194304);s.isBackwards?(c.sibling=e.child,e.child=c):(t=s.last,t!==null?t.sibling=c:e.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=be(),t.sibling=null,a=Gt.current,K(Gt,o?a&1|2:a&1),gt&&dn(e,s.treeForkCount),t):(_t(e),null);case 22:case 23:return Ce(e),Fo(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(a&536870912)!==0&&(e.flags&128)===0&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),a=e.updateQueue,a!==null&&Hl(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==a&&(e.flags|=2048),t!==null&&Y(ya),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),pn(Qt),_t(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function LS(t,e){switch(No(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return pn(Qt),qt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Js(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(r(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ce(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Gt),null;case 4:return qt(),null;case 10:return pn(e.type),null;case 22:case 23:return Ce(e),Fo(),t!==null&&Y(ya),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return pn(Qt),null;case 25:return null;default:return null}}function jm(t,e){switch(No(e),e.tag){case 3:pn(Qt),qt();break;case 26:case 27:case 5:Js(e);break;case 4:qt();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:Y(Gt);break;case 10:pn(e.type);break;case 22:case 23:Ce(e),Fo(),t!==null&&Y(ya);break;case 24:pn(Qt)}}function os(t,e){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&t)===t){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==o)}}catch(S){Mt(e,e.return,S)}}function Gn(t,e,a){try{var s=e.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var c=o.next;s=c;do{if((s.tag&t)===t){var m=s.inst,S=m.destroy;if(S!==void 0){m.destroy=void 0,o=e;var x=a,z=S;try{z()}catch(B){Mt(o,x,B)}}}s=s.next}while(s!==c)}}catch(B){Mt(e,e.return,B)}}function Nm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Ad(e,a)}catch(s){Mt(t,t.return,s)}}}function Vm(t,e,a){a.props=xa(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){Mt(t,e,s)}}function us(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(o){Mt(t,e,o)}}function tn(t,e){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Mt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Mt(t,e,o)}else a.current=null}function Lm(t){var e=t.type,a=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break t;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){Mt(t,t.return,o)}}function Ru(t,e,a){try{var s=t.stateNode;ib(s,t.type,a,e),s[de]=e}catch(o){Mt(t,t.return,o)}}function Um(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zn(t.type)||t.tag===4}function wu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Um(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Zn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Du(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=cn));else if(s!==4&&(s===27&&Zn(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Du(t,e,a),t=t.sibling;t!==null;)Du(t,e,a),t=t.sibling}function ql(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(s!==4&&(s===27&&Zn(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(ql(t,e,a),t=t.sibling;t!==null;)ql(t,e,a),t=t.sibling}function Bm(t){var e=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);ae(e,s,a),e[It]=t,e[de]=a}catch(c){Mt(t,t.return,c)}}var bn=!1,Pt=!1,Ou=!1,Hm=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function US(t,e){if(t=t.containerInfo,$u=rr,t=$h(t),Eo(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var m=0,S=-1,x=-1,z=0,B=0,G=t,_=null;e:for(;;){for(var V;G!==a||o!==0&&G.nodeType!==3||(S=m+o),G!==c||s!==0&&G.nodeType!==3||(x=m+s),G.nodeType===3&&(m+=G.nodeValue.length),(V=G.firstChild)!==null;)_=G,G=V;for(;;){if(G===t)break e;if(_===a&&++z===o&&(S=m),_===c&&++B===s&&(x=m),(V=G.nextSibling)!==null)break;G=_,_=G.parentNode}G=V}a=S===-1||x===-1?null:{start:S,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Wu={focusedElem:t,selectionRange:a},rr=!1,Wt=e;Wt!==null;)if(e=Wt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Wt=t;else for(;Wt!==null;){switch(e=Wt,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,o=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var F=xa(a.type,o);t=s.getSnapshotBeforeUpdate(F,c),s.__reactInternalSnapshotBeforeUpdate=t}catch(at){Mt(a,a.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)ec(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ec(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Wt=t;break}Wt=e.return}}function qm(t,e,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Tn(t,a),s&4&&os(5,a);break;case 1:if(Tn(t,a),s&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(m){Mt(a,a.return,m)}else{var o=xa(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Mt(a,a.return,m)}}s&64&&Nm(a),s&512&&us(a,a.return);break;case 3:if(Tn(t,a),s&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Ad(t,e)}catch(m){Mt(a,a.return,m)}}break;case 27:e===null&&s&4&&Bm(a);case 26:case 5:Tn(t,a),e===null&&s&4&&Lm(a),s&512&&us(a,a.return);break;case 12:Tn(t,a);break;case 31:Tn(t,a),s&4&&km(t,a);break;case 13:Tn(t,a),s&4&&Qm(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=KS.bind(null,a),hb(t,a))));break;case 22:if(s=a.memoizedState!==null||bn,!s){e=e!==null&&e.memoizedState!==null||Pt,o=bn;var c=Pt;bn=s,(Pt=e)&&!c?En(t,a,(a.subtreeFlags&8772)!==0):Tn(t,a),bn=o,Pt=c}break;case 30:break;default:Tn(t,a)}}function Gm(t){var e=t.alternate;e!==null&&(t.alternate=null,Gm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&so(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var jt=null,pe=!1;function xn(t,e,a){for(a=a.child;a!==null;)Ym(t,e,a),a=a.sibling}function Ym(t,e,a){if(xe&&typeof xe.onCommitFiberUnmount=="function")try{xe.onCommitFiberUnmount(ji,a)}catch{}switch(a.tag){case 26:Pt||tn(a,e),xn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pt||tn(a,e);var s=jt,o=pe;Zn(a.type)&&(jt=a.stateNode,pe=!1),xn(t,e,a),vs(a.stateNode),jt=s,pe=o;break;case 5:Pt||tn(a,e);case 6:if(s=jt,o=pe,jt=null,xn(t,e,a),jt=s,pe=o,jt!==null)if(pe)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(a.stateNode)}catch(c){Mt(a,e,c)}else try{jt.removeChild(a.stateNode)}catch(c){Mt(a,e,c)}break;case 18:jt!==null&&(pe?(t=jt,Np(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),pi(t)):Np(jt,a.stateNode));break;case 4:s=jt,o=pe,jt=a.stateNode.containerInfo,pe=!0,xn(t,e,a),jt=s,pe=o;break;case 0:case 11:case 14:case 15:Gn(2,a,e),Pt||Gn(4,a,e),xn(t,e,a);break;case 1:Pt||(tn(a,e),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Vm(a,e,s)),xn(t,e,a);break;case 21:xn(t,e,a);break;case 22:Pt=(s=Pt)||a.memoizedState!==null,xn(t,e,a),Pt=s;break;default:xn(t,e,a)}}function km(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{pi(t)}catch(a){Mt(e,e.return,a)}}}function Qm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{pi(t)}catch(a){Mt(e,e.return,a)}}function BS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Hm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Hm),e;default:throw Error(r(435,t.tag))}}function Gl(t,e){var a=BS(t);e.forEach(function(s){if(!a.has(s)){a.add(s);var o=PS.bind(null,t,s);s.then(o,o)}})}function ye(t,e){var a=e.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],c=t,m=e,S=m;t:for(;S!==null;){switch(S.tag){case 27:if(Zn(S.type)){jt=S.stateNode,pe=!1;break t}break;case 5:jt=S.stateNode,pe=!1;break t;case 3:case 4:jt=S.stateNode.containerInfo,pe=!0;break t}S=S.return}if(jt===null)throw Error(r(160));Ym(c,m,o),jt=null,pe=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Xm(e,t),e=e.sibling}var Xe=null;function Xm(t,e){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ge(t),s&4&&(Gn(3,t,t.return),os(3,t),Gn(5,t,t.return));break;case 1:ye(e,t),ge(t),s&512&&(Pt||a===null||tn(a,a.return)),s&64&&bn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=Xe;if(ye(e,t),ge(t),s&512&&(Pt||a===null||tn(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){t:{s=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(s){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Li]||c[It]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),ae(c,s,a),c[It]=t,$t(c),s=c;break t;case"link":var m=Xp("link","href",o).get(s+(a.href||""));if(m){for(var S=0;S<m.length;S++)if(c=m[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(S,1);break e}}c=o.createElement(s),ae(c,s,a),o.head.appendChild(c);break;case"meta":if(m=Xp("meta","content",o).get(s+(a.content||""))){for(S=0;S<m.length;S++)if(c=m[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(S,1);break e}}c=o.createElement(s),ae(c,s,a),o.head.appendChild(c);break;default:throw Error(r(468,s))}c[It]=t,$t(c),s=c}t.stateNode=s}else Kp(o,t.type,t.stateNode);else t.stateNode=Qp(o,s,t.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?Kp(o,t.type,t.stateNode):Qp(o,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Ru(t,t.memoizedProps,a.memoizedProps)}break;case 27:ye(e,t),ge(t),s&512&&(Pt||a===null||tn(a,a.return)),a!==null&&s&4&&Ru(t,t.memoizedProps,a.memoizedProps);break;case 5:if(ye(e,t),ge(t),s&512&&(Pt||a===null||tn(a,a.return)),t.flags&32){o=t.stateNode;try{Ba(o,"")}catch(F){Mt(t,t.return,F)}}s&4&&t.stateNode!=null&&(o=t.memoizedProps,Ru(t,o,a!==null?a.memoizedProps:o)),s&1024&&(Ou=!0);break;case 6:if(ye(e,t),ge(t),s&4){if(t.stateNode===null)throw Error(r(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(F){Mt(t,t.return,F)}}break;case 3:if(ar=null,o=Xe,Xe=er(e.containerInfo),ye(e,t),Xe=o,ge(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{pi(e.containerInfo)}catch(F){Mt(t,t.return,F)}Ou&&(Ou=!1,Km(t));break;case 4:s=Xe,Xe=er(t.stateNode.containerInfo),ye(e,t),ge(t),Xe=s;break;case 12:ye(e,t),ge(t);break;case 31:ye(e,t),ge(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Gl(t,s)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(kl=be()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Gl(t,s)));break;case 22:o=t.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,z=bn,B=Pt;if(bn=z||o,Pt=B||x,ye(e,t),Pt=B,bn=z,ge(t),s&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||x||bn||Pt||Ta(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){x=a=e;try{if(c=x.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{S=x.stateNode;var G=x.memoizedProps.style,_=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(F){Mt(x,x.return,F)}}}else if(e.tag===6){if(a===null){x=e;try{x.stateNode.nodeValue=o?"":x.memoizedProps}catch(F){Mt(x,x.return,F)}}}else if(e.tag===18){if(a===null){x=e;try{var V=x.stateNode;o?Vp(V,!0):Vp(x.stateNode,!1)}catch(F){Mt(x,x.return,F)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Gl(t,a))));break;case 19:ye(e,t),ge(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Gl(t,s)));break;case 30:break;case 21:break;default:ye(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var a,s=t.return;s!==null;){if(Um(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,c=wu(t);ql(t,c,o);break;case 5:var m=a.stateNode;a.flags&32&&(Ba(m,""),a.flags&=-33);var S=wu(t);ql(t,S,m);break;case 3:case 4:var x=a.stateNode.containerInfo,z=wu(t);Du(t,z,x);break;default:throw Error(r(161))}}catch(B){Mt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Km(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Km(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Tn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)qm(t,e.alternate,e),e=e.sibling}function Ta(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Gn(4,e,e.return),Ta(e);break;case 1:tn(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&Vm(e,e.return,a),Ta(e);break;case 27:vs(e.stateNode);case 26:case 5:tn(e,e.return),Ta(e);break;case 22:e.memoizedState===null&&Ta(e);break;case 30:Ta(e);break;default:Ta(e)}t=t.sibling}}function En(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,o=t,c=e,m=c.flags;switch(c.tag){case 0:case 11:case 15:En(o,c,a),os(4,c);break;case 1:if(En(o,c,a),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Mt(s,s.return,z)}if(s=c,o=s.updateQueue,o!==null){var S=s.stateNode;try{var x=o.shared.hiddenCallbacks;if(x!==null)for(o.shared.hiddenCallbacks=null,o=0;o<x.length;o++)Ed(x[o],S)}catch(z){Mt(s,s.return,z)}}a&&m&64&&Nm(c),us(c,c.return);break;case 27:Bm(c);case 26:case 5:En(o,c,a),a&&s===null&&m&4&&Lm(c),us(c,c.return);break;case 12:En(o,c,a);break;case 31:En(o,c,a),a&&m&4&&km(o,c);break;case 13:En(o,c,a),a&&m&4&&Qm(o,c);break;case 22:c.memoizedState===null&&En(o,c,a),us(c,c.return);break;case 30:break;default:En(o,c,a)}e=e.sibling}}function zu(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Fi(a))}function _u(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Fi(t))}function Ke(t,e,a,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pm(t,e,a,s),e=e.sibling}function Pm(t,e,a,s){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Ke(t,e,a,s),o&2048&&os(9,e);break;case 1:Ke(t,e,a,s);break;case 3:Ke(t,e,a,s),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Fi(t)));break;case 12:if(o&2048){Ke(t,e,a,s),t=e.stateNode;try{var c=e.memoizedProps,m=c.id,S=c.onPostCommit;typeof S=="function"&&S(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){Mt(e,e.return,x)}}else Ke(t,e,a,s);break;case 31:Ke(t,e,a,s);break;case 13:Ke(t,e,a,s);break;case 23:break;case 22:c=e.stateNode,m=e.alternate,e.memoizedState!==null?c._visibility&2?Ke(t,e,a,s):cs(t,e):c._visibility&2?Ke(t,e,a,s):(c._visibility|=2,ii(t,e,a,s,(e.subtreeFlags&10256)!==0||!1)),o&2048&&zu(m,e);break;case 24:Ke(t,e,a,s),o&2048&&_u(e.alternate,e);break;default:Ke(t,e,a,s)}}function ii(t,e,a,s,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,m=e,S=a,x=s,z=m.flags;switch(m.tag){case 0:case 11:case 15:ii(c,m,S,x,o),os(8,m);break;case 23:break;case 22:var B=m.stateNode;m.memoizedState!==null?B._visibility&2?ii(c,m,S,x,o):cs(c,m):(B._visibility|=2,ii(c,m,S,x,o)),o&&z&2048&&zu(m.alternate,m);break;case 24:ii(c,m,S,x,o),o&&z&2048&&_u(m.alternate,m);break;default:ii(c,m,S,x,o)}e=e.sibling}}function cs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,s=e,o=s.flags;switch(s.tag){case 22:cs(a,s),o&2048&&zu(s.alternate,s);break;case 24:cs(a,s),o&2048&&_u(s.alternate,s);break;default:cs(a,s)}e=e.sibling}}var fs=8192;function si(t,e,a){if(t.subtreeFlags&fs)for(t=t.child;t!==null;)Zm(t,e,a),t=t.sibling}function Zm(t,e,a){switch(t.tag){case 26:si(t,e,a),t.flags&fs&&t.memoizedState!==null&&Ab(a,Xe,t.memoizedState,t.memoizedProps);break;case 5:si(t,e,a);break;case 3:case 4:var s=Xe;Xe=er(t.stateNode.containerInfo),si(t,e,a),Xe=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=fs,fs=16777216,si(t,e,a),fs=s):si(t,e,a));break;default:si(t,e,a)}}function Fm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function hs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];Wt=s,$m(s,t)}Fm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jm(t),t=t.sibling}function Jm(t){switch(t.tag){case 0:case 11:case 15:hs(t),t.flags&2048&&Gn(9,t,t.return);break;case 3:hs(t);break;case 12:hs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Yl(t)):hs(t);break;default:hs(t)}}function Yl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];Wt=s,$m(s,t)}Fm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Gn(8,e,e.return),Yl(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Yl(e));break;default:Yl(e)}t=t.sibling}}function $m(t,e){for(;Wt!==null;){var a=Wt;switch(a.tag){case 0:case 11:case 15:Gn(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Fi(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,Wt=s;else t:for(a=t;Wt!==null;){s=Wt;var o=s.sibling,c=s.return;if(Gm(s),s===a){Wt=null;break t}if(o!==null){o.return=c,Wt=o;break t}Wt=c}}}var HS={getCacheForType:function(t){var e=ee(Qt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return ee(Qt).controller.signal}},qS=typeof WeakMap=="function"?WeakMap:Map,xt=0,Dt=null,ht=null,mt=0,At=0,Re=null,Yn=!1,li=!1,ju=!1,An=0,Bt=0,kn=0,Ea=0,Nu=0,we=0,ri=0,ds=null,ve=null,Vu=!1,kl=0,Wm=0,Ql=1/0,Xl=null,Qn=null,Ft=0,Xn=null,oi=null,Mn=0,Lu=0,Uu=null,Im=null,ms=0,Bu=null;function De(){return(xt&2)!==0&&mt!==0?mt&-mt:L.T!==null?Qu():ph()}function tp(){if(we===0)if((mt&536870912)===0||gt){var t=Is;Is<<=1,(Is&3932160)===0&&(Is=262144),we=t}else we=536870912;return t=Me.current,t!==null&&(t.flags|=32),we}function Se(t,e,a){(t===Dt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(ui(t,0),Kn(t,mt,we,!1)),Vi(t,a),((xt&2)===0||t!==Dt)&&(t===Dt&&((xt&2)===0&&(Ea|=a),Bt===4&&Kn(t,mt,we,!1)),en(t))}function ep(t,e,a){if((xt&6)!==0)throw Error(r(327));var s=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Ni(t,e),o=s?kS(t,e):qu(t,e,!0),c=s;do{if(o===0){li&&!s&&Kn(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!GS(a)){o=qu(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var S=t;o=ds;var x=S.current.memoizedState.isDehydrated;if(x&&(ui(S,m).flags|=256),m=qu(S,m,!1),m!==2){if(ju&&!x){S.errorRecoveryDisabledLanes|=c,Ea|=c,o=4;break t}c=ve,ve=o,c!==null&&(ve===null?ve=c:ve.push.apply(ve,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){ui(t,0),Kn(t,e,0,!0);break}t:{switch(s=t,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Kn(s,e,we,!Yn);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=kl+300-be(),10<o)){if(Kn(s,e,we,!Yn),el(s,0,!0)!==0)break t;Mn=e,s.timeoutHandle=_p(np.bind(null,s,a,ve,Xl,Vu,e,we,Ea,ri,Yn,c,"Throttled",-0,0),o);break t}np(s,a,ve,Xl,Vu,e,we,Ea,ri,Yn,c,null,-0,0)}}break}while(!0);en(t)}function np(t,e,a,s,o,c,m,S,x,z,B,G,_,V){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},Zm(e,c,G);var F=(c&62914560)===c?kl-be():(c&4194048)===c?Wm-be():0;if(F=Mb(G,F),F!==null){Mn=c,t.cancelPendingCommit=F(cp.bind(null,t,e,c,a,s,o,m,S,x,B,G,null,_,V)),Kn(t,c,m,!z);return}}cp(t,e,c,a,s,o,m,S,x)}function GS(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var o=a[s],c=o.getSnapshot;o=o.value;try{if(!Ee(c(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Kn(t,e,a,s){e&=~Nu,e&=~Ea,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var o=e;0<o;){var c=31-Te(o),m=1<<c;s[c]=-1,o&=~m}a!==0&&hh(t,a,e)}function Kl(){return(xt&6)===0?(ps(0),!1):!0}function Hu(){if(ht!==null){if(At===0)var t=ht.return;else t=ht,mn=ma=null,eu(t),Ia=null,$i=0,t=ht;for(;t!==null;)jm(t.alternate,t),t=t.return;ht=null}}function ui(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,rb(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Mn=0,Hu(),Dt=t,ht=a=hn(t.current,null),mt=e,At=0,Re=null,Yn=!1,li=Ni(t,e),ju=!1,ri=we=Nu=Ea=kn=Bt=0,ve=ds=null,Vu=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var o=31-Te(s),c=1<<o;e|=t[o],s&=~c}return An=e,dl(),a}function ap(t,e){rt=null,L.H=ss,e===Wa||e===xl?(e=Sd(),At=3):e===ko?(e=Sd(),At=4):At=e===gu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,ht===null&&(Bt=1,Vl(t,Ne(e,t.current)))}function ip(){var t=Me.current;return t===null?!0:(mt&4194048)===mt?Be===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Be:!1}function sp(){var t=L.H;return L.H=ss,t===null?ss:t}function lp(){var t=L.A;return L.A=HS,t}function Pl(){Bt=4,Yn||(mt&4194048)!==mt&&Me.current!==null||(li=!0),(kn&134217727)===0&&(Ea&134217727)===0||Dt===null||Kn(Dt,mt,we,!1)}function qu(t,e,a){var s=xt;xt|=2;var o=sp(),c=lp();(Dt!==t||mt!==e)&&(Xl=null,ui(t,e)),e=!1;var m=Bt;t:do try{if(At!==0&&ht!==null){var S=ht,x=Re;switch(At){case 8:Hu(),m=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var z=At;if(At=0,Re=null,ci(t,S,x,z),a&&li){m=0;break t}break;default:z=At,At=0,Re=null,ci(t,S,x,z)}}YS(),m=Bt;break}catch(B){ap(t,B)}while(!0);return e&&t.shellSuspendCounter++,mn=ma=null,xt=s,L.H=o,L.A=c,ht===null&&(Dt=null,mt=0,dl()),m}function YS(){for(;ht!==null;)rp(ht)}function kS(t,e){var a=xt;xt|=2;var s=sp(),o=lp();Dt!==t||mt!==e?(Xl=null,Ql=be()+500,ui(t,e)):li=Ni(t,e);t:do try{if(At!==0&&ht!==null){e=ht;var c=Re;e:switch(At){case 1:At=0,Re=null,ci(t,e,c,1);break;case 2:case 9:if(gd(c)){At=0,Re=null,op(e);break}e=function(){At!==2&&At!==9||Dt!==t||(At=7),en(t)},c.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:gd(c)?(At=0,Re=null,op(e)):(At=0,Re=null,ci(t,e,c,7));break;case 5:var m=null;switch(ht.tag){case 26:m=ht.memoizedState;case 5:case 27:var S=ht;if(m?Pp(m):S.stateNode.complete){At=0,Re=null;var x=S.sibling;if(x!==null)ht=x;else{var z=S.return;z!==null?(ht=z,Zl(z)):ht=null}break e}}At=0,Re=null,ci(t,e,c,5);break;case 6:At=0,Re=null,ci(t,e,c,6);break;case 8:Hu(),Bt=6;break t;default:throw Error(r(462))}}QS();break}catch(B){ap(t,B)}while(!0);return mn=ma=null,L.H=s,L.A=o,xt=a,ht!==null?0:(Dt=null,mt=0,dl(),Bt)}function QS(){for(;ht!==null&&!d1();)rp(ht)}function rp(t){var e=zm(t.alternate,t,An);t.memoizedProps=t.pendingProps,e===null?Zl(t):ht=e}function op(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=Mm(a,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=Mm(a,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:eu(e);default:jm(a,e),e=ht=ld(e,An),e=zm(a,e,An)}t.memoizedProps=t.pendingProps,e===null?Zl(t):ht=e}function ci(t,e,a,s){mn=ma=null,eu(e),Ia=null,$i=0;var o=e.return;try{if(_S(t,o,e,a,mt)){Bt=1,Vl(t,Ne(a,t.current)),ht=null;return}}catch(c){if(o!==null)throw ht=o,c;Bt=1,Vl(t,Ne(a,t.current)),ht=null;return}e.flags&32768?(gt||s===1?t=!0:li||(mt&536870912)!==0?t=!1:(Yn=t=!0,(s===2||s===9||s===3||s===6)&&(s=Me.current,s!==null&&s.tag===13&&(s.flags|=16384))),up(e,t)):Zl(e)}function Zl(t){var e=t;do{if((e.flags&32768)!==0){up(e,Yn);return}t=e.return;var a=VS(e.alternate,e,An);if(a!==null){ht=a;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);Bt===0&&(Bt=5)}function up(t,e){do{var a=LS(t.alternate,t);if(a!==null){a.flags&=32767,ht=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=a}while(t!==null);Bt=6,ht=null}function cp(t,e,a,s,o,c,m,S,x){t.cancelPendingCommit=null;do Fl();while(Ft!==0);if((xt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=wo,E1(t,a,c,m,S,x),t===Dt&&(ht=Dt=null,mt=0),oi=e,Xn=t,Mn=a,Lu=c,Uu=o,Im=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ZS($s,function(){return pp(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,o=X.p,X.p=2,m=xt,xt|=4;try{US(t,e,a)}finally{xt=m,X.p=o,L.T=s}}Ft=1,fp(),hp(),dp()}}function fp(){if(Ft===1){Ft=0;var t=Xn,e=oi,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=L.T,L.T=null;var s=X.p;X.p=2;var o=xt;xt|=4;try{Xm(e,t);var c=Wu,m=$h(t.containerInfo),S=c.focusedElem,x=c.selectionRange;if(m!==S&&S&&S.ownerDocument&&Jh(S.ownerDocument.documentElement,S)){if(x!==null&&Eo(S)){var z=x.start,B=x.end;if(B===void 0&&(B=z),"selectionStart"in S)S.selectionStart=z,S.selectionEnd=Math.min(B,S.value.length);else{var G=S.ownerDocument||document,_=G&&G.defaultView||window;if(_.getSelection){var V=_.getSelection(),F=S.textContent.length,at=Math.min(x.start,F),wt=x.end===void 0?at:Math.min(x.end,F);!V.extend&&at>wt&&(m=wt,wt=at,at=m);var R=Fh(S,at),E=Fh(S,wt);if(R&&E&&(V.rangeCount!==1||V.anchorNode!==R.node||V.anchorOffset!==R.offset||V.focusNode!==E.node||V.focusOffset!==E.offset)){var O=G.createRange();O.setStart(R.node,R.offset),V.removeAllRanges(),at>wt?(V.addRange(O),V.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),V.addRange(O))}}}}for(G=[],V=S;V=V.parentNode;)V.nodeType===1&&G.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var H=G[S];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}rr=!!$u,Wu=$u=null}finally{xt=o,X.p=s,L.T=a}}t.current=e,Ft=2}}function hp(){if(Ft===2){Ft=0;var t=Xn,e=oi,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=L.T,L.T=null;var s=X.p;X.p=2;var o=xt;xt|=4;try{qm(t,e.alternate,e)}finally{xt=o,X.p=s,L.T=a}}Ft=3}}function dp(){if(Ft===4||Ft===3){Ft=0,m1();var t=Xn,e=oi,a=Mn,s=Im;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ft=5:(Ft=0,oi=Xn=null,mp(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Qn=null),ao(a),e=e.stateNode,xe&&typeof xe.onCommitFiberRoot=="function")try{xe.onCommitFiberRoot(ji,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=L.T,o=X.p,X.p=2,L.T=null;try{for(var c=t.onRecoverableError,m=0;m<s.length;m++){var S=s[m];c(S.value,{componentStack:S.stack})}}finally{L.T=e,X.p=o}}(Mn&3)!==0&&Fl(),en(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===Bu?ms++:(ms=0,Bu=t):ms=0,ps(0)}}function mp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Fi(e)))}function Fl(){return fp(),hp(),dp(),pp()}function pp(){if(Ft!==5)return!1;var t=Xn,e=Lu;Lu=0;var a=ao(Mn),s=L.T,o=X.p;try{X.p=32>a?32:a,L.T=null,a=Uu,Uu=null;var c=Xn,m=Mn;if(Ft=0,oi=Xn=null,Mn=0,(xt&6)!==0)throw Error(r(331));var S=xt;if(xt|=4,Jm(c.current),Pm(c,c.current,m,a),xt=S,ps(0,!1),xe&&typeof xe.onPostCommitFiberRoot=="function")try{xe.onPostCommitFiberRoot(ji,c)}catch{}return!0}finally{X.p=o,L.T=s,mp(t,e)}}function yp(t,e,a){e=Ne(a,e),e=yu(t.stateNode,e,2),t=Bn(t,e,2),t!==null&&(Vi(t,2),en(t))}function Mt(t,e,a){if(t.tag===3)yp(t,t,a);else for(;e!==null;){if(e.tag===3){yp(e,t,a);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Qn===null||!Qn.has(s))){t=Ne(a,t),a=gm(2),s=Bn(e,a,2),s!==null&&(vm(a,s,e,t),Vi(s,2),en(s));break}}e=e.return}}function Gu(t,e,a){var s=t.pingCache;if(s===null){s=t.pingCache=new qS;var o=new Set;s.set(e,o)}else o=s.get(e),o===void 0&&(o=new Set,s.set(e,o));o.has(a)||(ju=!0,o.add(a),t=XS.bind(null,t,e,a),e.then(t,t))}function XS(t,e,a){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Dt===t&&(mt&a)===a&&(Bt===4||Bt===3&&(mt&62914560)===mt&&300>be()-kl?(xt&2)===0&&ui(t,0):Nu|=a,ri===mt&&(ri=0)),en(t)}function gp(t,e){e===0&&(e=fh()),t=fa(t,e),t!==null&&(Vi(t,e),en(t))}function KS(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),gp(t,a)}function PS(t,e){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(e),gp(t,a)}function ZS(t,e){return Ir(t,e)}var Jl=null,fi=null,Yu=!1,$l=!1,ku=!1,Pn=0;function en(t){t!==fi&&t.next===null&&(fi===null?Jl=fi=t:fi=fi.next=t),$l=!0,Yu||(Yu=!0,JS())}function ps(t,e){if(!ku&&$l){ku=!0;do for(var a=!1,s=Jl;s!==null;){if(t!==0){var o=s.pendingLanes;if(o===0)var c=0;else{var m=s.suspendedLanes,S=s.pingedLanes;c=(1<<31-Te(42|t)+1)-1,c&=o&~(m&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,xp(s,c))}else c=mt,c=el(s,s===Dt?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Ni(s,c)||(a=!0,xp(s,c));s=s.next}while(a);ku=!1}}function FS(){vp()}function vp(){$l=Yu=!1;var t=0;Pn!==0&&lb()&&(t=Pn);for(var e=be(),a=null,s=Jl;s!==null;){var o=s.next,c=Sp(s,e);c===0?(s.next=null,a===null?Jl=o:a.next=o,o===null&&(fi=a)):(a=s,(t!==0||(c&3)!==0)&&($l=!0)),s=o}Ft!==0&&Ft!==5||ps(t),Pn!==0&&(Pn=0)}function Sp(t,e){for(var a=t.suspendedLanes,s=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var m=31-Te(c),S=1<<m,x=o[m];x===-1?((S&a)===0||(S&s)!==0)&&(o[m]=T1(S,e)):x<=e&&(t.expiredLanes|=S),c&=~S}if(e=Dt,a=mt,a=el(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&to(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Ni(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(s!==null&&to(s),ao(a)){case 2:case 8:a=uh;break;case 32:a=$s;break;case 268435456:a=ch;break;default:a=$s}return s=bp.bind(null,t),a=Ir(a,s),t.callbackPriority=e,t.callbackNode=a,e}return s!==null&&s!==null&&to(s),t.callbackPriority=2,t.callbackNode=null,2}function bp(t,e){if(Ft!==0&&Ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Fl()&&t.callbackNode!==a)return null;var s=mt;return s=el(t,t===Dt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(ep(t,s,e),Sp(t,be()),t.callbackNode!=null&&t.callbackNode===a?bp.bind(null,t):null)}function xp(t,e){if(Fl())return null;ep(t,e,!0)}function JS(){ob(function(){(xt&6)!==0?Ir(oh,FS):vp()})}function Qu(){if(Pn===0){var t=Ja;t===0&&(t=Ws,Ws<<=1,(Ws&261888)===0&&(Ws=256)),Pn=t}return Pn}function Tp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:sl(""+t)}function Ep(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function $S(t,e,a,s,o){if(e==="submit"&&a&&a.stateNode===o){var c=Tp((o[de]||null).action),m=s.submitter;m&&(e=(e=m[de]||null)?Tp(e.formAction):m.getAttribute("formAction"),e!==null&&(c=e,m=null));var S=new ul("action","action",null,s,o);t.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Pn!==0){var x=m?Ep(o,m):new FormData(o);cu(a,{pending:!0,data:x,method:o.method,action:c},null,x)}}else typeof c=="function"&&(S.preventDefault(),x=m?Ep(o,m):new FormData(o),cu(a,{pending:!0,data:x,method:o.method,action:c},c,x))},currentTarget:o}]})}}for(var Xu=0;Xu<Ro.length;Xu++){var Ku=Ro[Xu],WS=Ku.toLowerCase(),IS=Ku[0].toUpperCase()+Ku.slice(1);Qe(WS,"on"+IS)}Qe(td,"onAnimationEnd"),Qe(ed,"onAnimationIteration"),Qe(nd,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(pS,"onTransitionRun"),Qe(yS,"onTransitionStart"),Qe(gS,"onTransitionCancel"),Qe(ad,"onTransitionEnd"),La("onMouseEnter",["mouseout","mouseover"]),La("onMouseLeave",["mouseout","mouseover"]),La("onPointerEnter",["pointerout","pointerover"]),La("onPointerLeave",["pointerout","pointerover"]),ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ys="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(" "),tb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ys));function Ap(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],o=s.event;s=s.listeners;t:{var c=void 0;if(e)for(var m=s.length-1;0<=m;m--){var S=s[m],x=S.instance,z=S.currentTarget;if(S=S.listener,x!==c&&o.isPropagationStopped())break t;c=S,o.currentTarget=z;try{c(o)}catch(B){hl(B)}o.currentTarget=null,c=x}else for(m=0;m<s.length;m++){if(S=s[m],x=S.instance,z=S.currentTarget,S=S.listener,x!==c&&o.isPropagationStopped())break t;c=S,o.currentTarget=z;try{c(o)}catch(B){hl(B)}o.currentTarget=null,c=x}}}}function dt(t,e){var a=e[io];a===void 0&&(a=e[io]=new Set);var s=t+"__bubble";a.has(s)||(Mp(e,t,2,!1),a.add(s))}function Pu(t,e,a){var s=0;e&&(s|=4),Mp(a,t,s,e)}var Wl="_reactListening"+Math.random().toString(36).slice(2);function Zu(t){if(!t[Wl]){t[Wl]=!0,vh.forEach(function(a){a!=="selectionchange"&&(tb.has(a)||Pu(a,!1,t),Pu(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Wl]||(e[Wl]=!0,Pu("selectionchange",!1,e))}}function Mp(t,e,a,s){switch(ty(e)){case 2:var o=wb;break;case 8:o=Db;break;default:o=uc}a=o.bind(null,e,a,t),o=void 0,!mo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),s?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function Fu(t,e,a,s,o){var c=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var S=s.stateNode.containerInfo;if(S===o)break;if(m===4)for(m=s.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;S!==null;){if(m=ja(S),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){s=c=m;continue t}S=S.parentNode}}s=s.return}Oh(function(){var z=c,B=fo(a),G=[];t:{var _=id.get(t);if(_!==void 0){var V=ul,F=t;switch(t){case"keypress":if(rl(a)===0)break t;case"keydown":case"keyup":V=P1;break;case"focusin":F="focus",V=vo;break;case"focusout":F="blur",V=vo;break;case"beforeblur":case"afterblur":V=vo;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=V1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=J1;break;case td:case ed:case nd:V=B1;break;case ad:V=W1;break;case"scroll":case"scrollend":V=j1;break;case"wheel":V=tS;break;case"copy":case"cut":case"paste":V=q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Vh;break;case"toggle":case"beforetoggle":V=nS}var at=(e&4)!==0,wt=!at&&(t==="scroll"||t==="scrollend"),R=at?_!==null?_+"Capture":null:_;at=[];for(var E=z,O;E!==null;){var H=E;if(O=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||O===null||R===null||(H=Bi(E,R),H!=null&&at.push(gs(E,H,O))),wt)break;E=E.return}0<at.length&&(_=new V(_,F,null,a,B),G.push({event:_,listeners:at}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",V=t==="mouseout"||t==="pointerout",_&&a!==co&&(F=a.relatedTarget||a.fromElement)&&(ja(F)||F[_a]))break t;if((V||_)&&(_=B.window===B?B:(_=B.ownerDocument)?_.defaultView||_.parentWindow:window,V?(F=a.relatedTarget||a.toElement,V=z,F=F?ja(F):null,F!==null&&(wt=f(F),at=F.tag,F!==wt||at!==5&&at!==27&&at!==6)&&(F=null)):(V=null,F=z),V!==F)){if(at=jh,H="onMouseLeave",R="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(at=Vh,H="onPointerLeave",R="onPointerEnter",E="pointer"),wt=V==null?_:Ui(V),O=F==null?_:Ui(F),_=new at(H,E+"leave",V,a,B),_.target=wt,_.relatedTarget=O,H=null,ja(B)===z&&(at=new at(R,E+"enter",F,a,B),at.target=O,at.relatedTarget=wt,H=at),wt=H,V&&F)e:{for(at=eb,R=V,E=F,O=0,H=R;H;H=at(H))O++;H=0;for(var et=E;et;et=at(et))H++;for(;0<O-H;)R=at(R),O--;for(;0<H-O;)E=at(E),H--;for(;O--;){if(R===E||E!==null&&R===E.alternate){at=R;break e}R=at(R),E=at(E)}at=null}else at=null;V!==null&&Cp(G,_,V,at,!1),F!==null&&wt!==null&&Cp(G,wt,F,at,!0)}}t:{if(_=z?Ui(z):window,V=_.nodeName&&_.nodeName.toLowerCase(),V==="select"||V==="input"&&_.type==="file")var St=kh;else if(Gh(_))if(Qh)St=hS;else{St=cS;var tt=uS}else V=_.nodeName,!V||V.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?z&&uo(z.elementType)&&(St=kh):St=fS;if(St&&(St=St(t,z))){Yh(G,St,a,B);break t}tt&&tt(t,_,z),t==="focusout"&&z&&_.type==="number"&&z.memoizedProps.value!=null&&oo(_,"number",_.value)}switch(tt=z?Ui(z):window,t){case"focusin":(Gh(tt)||tt.contentEditable==="true")&&(Ya=tt,Ao=z,Ki=null);break;case"focusout":Ki=Ao=Ya=null;break;case"mousedown":Mo=!0;break;case"contextmenu":case"mouseup":case"dragend":Mo=!1,Wh(G,a,B);break;case"selectionchange":if(mS)break;case"keydown":case"keyup":Wh(G,a,B)}var ut;if(bo)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else Ga?Hh(t,a)&&(pt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(pt="onCompositionStart");pt&&(Lh&&a.locale!=="ko"&&(Ga||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&Ga&&(ut=zh()):(zn=B,po="value"in zn?zn.value:zn.textContent,Ga=!0)),tt=Il(z,pt),0<tt.length&&(pt=new Nh(pt,t,null,a,B),G.push({event:pt,listeners:tt}),ut?pt.data=ut:(ut=qh(a),ut!==null&&(pt.data=ut)))),(ut=iS?sS(t,a):lS(t,a))&&(pt=Il(z,"onBeforeInput"),0<pt.length&&(tt=new Nh("onBeforeInput","beforeinput",null,a,B),G.push({event:tt,listeners:pt}),tt.data=ut)),$S(G,t,z,a,B)}Ap(G,e)})}function gs(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Il(t,e){for(var a=e+"Capture",s=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Bi(t,a),o!=null&&s.unshift(gs(t,o,c)),o=Bi(t,e),o!=null&&s.push(gs(t,o,c))),t.tag===3)return s;t=t.return}return[]}function eb(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Cp(t,e,a,s,o){for(var c=e._reactName,m=[];a!==null&&a!==s;){var S=a,x=S.alternate,z=S.stateNode;if(S=S.tag,x!==null&&x===s)break;S!==5&&S!==26&&S!==27||z===null||(x=z,o?(z=Bi(a,c),z!=null&&m.unshift(gs(a,z,x))):o||(z=Bi(a,c),z!=null&&m.push(gs(a,z,x)))),a=a.return}m.length!==0&&t.push({event:e,listeners:m})}var nb=/\r\n?/g,ab=/\u0000|\uFFFD/g;function Rp(t){return(typeof t=="string"?t:""+t).replace(nb,`
10
+ `).replace(ab,"")}function wp(t,e){return e=Rp(e),Rp(t)===e}function Rt(t,e,a,s,o,c){switch(a){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Ba(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Ba(t,""+s);break;case"className":al(t,"class",s);break;case"tabIndex":al(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":al(t,a,s);break;case"style":wh(t,s,c);break;case"data":if(e!=="object"){al(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=sl(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(a,"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 c=="function"&&(a==="formAction"?(e!=="input"&&Rt(t,e,"name",o.name,o,null),Rt(t,e,"formEncType",o.formEncType,o,null),Rt(t,e,"formMethod",o.formMethod,o,null),Rt(t,e,"formTarget",o.formTarget,o,null)):(Rt(t,e,"encType",o.encType,o,null),Rt(t,e,"method",o.method,o,null),Rt(t,e,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=sl(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=cn);break;case"onScroll":s!=null&&dt("scroll",t);break;case"onScrollEnd":s!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}a=sl(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);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"?t.setAttribute(a,""+s):t.removeAttribute(a);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"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":dt("beforetoggle",t),dt("toggle",t),nl(t,"popover",s);break;case"xlinkActuate":un(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":un(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":un(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":un(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":un(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":un(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":un(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":nl(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=z1.get(a)||a,nl(t,a,s))}}function Ju(t,e,a,s,o,c){switch(a){case"style":wh(t,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof s=="string"?Ba(t,s):(typeof s=="number"||typeof s=="bigint")&&Ba(t,""+s);break;case"onScroll":s!=null&&dt("scroll",t);break;case"onScrollEnd":s!=null&&dt("scrollend",t);break;case"onClick":s!=null&&(t.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sh.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),c=t[de]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof s=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,s,o);break t}a in t?t[a]=s:s===!0?t.setAttribute(a,""):nl(t,a,s)}}}function ae(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var s=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Rt(t,e,c,m,a,null)}}o&&Rt(t,e,"srcSet",a.srcSet,a,null),s&&Rt(t,e,"src",a.src,a,null);return;case"input":dt("invalid",t);var S=c=m=o=null,x=null,z=null;for(s in a)if(a.hasOwnProperty(s)){var B=a[s];if(B!=null)switch(s){case"name":o=B;break;case"type":m=B;break;case"checked":x=B;break;case"defaultChecked":z=B;break;case"value":c=B;break;case"defaultValue":S=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:Rt(t,e,s,B,a,null)}}Ah(t,c,S,x,z,m,o,!1);return;case"select":dt("invalid",t),s=m=c=null;for(o in a)if(a.hasOwnProperty(o)&&(S=a[o],S!=null))switch(o){case"value":c=S;break;case"defaultValue":m=S;break;case"multiple":s=S;default:Rt(t,e,o,S,a,null)}e=c,a=m,t.multiple=!!s,e!=null?Ua(t,!!s,e,!1):a!=null&&Ua(t,!!s,a,!0);return;case"textarea":dt("invalid",t),c=o=s=null;for(m in a)if(a.hasOwnProperty(m)&&(S=a[m],S!=null))switch(m){case"value":s=S;break;case"defaultValue":o=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Rt(t,e,m,S,a,null)}Ch(t,s,o,c);return;case"option":for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null)&&(x==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":Rt(t,e,x,s,a,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(s=0;s<ys.length;s++)dt(ys[s],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(s=a[z],s!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Rt(t,e,z,s,a,null)}return;default:if(uo(e)){for(B in a)a.hasOwnProperty(B)&&(s=a[B],s!==void 0&&Ju(t,e,B,s,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(s=a[S],s!=null&&Rt(t,e,S,s,a,null))}function ib(t,e,a,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,S=null,x=null,z=null,B=null;for(V in a){var G=a[V];if(a.hasOwnProperty(V)&&G!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":x=G;default:s.hasOwnProperty(V)||Rt(t,e,V,null,s,G)}}for(var _ in s){var V=s[_];if(G=a[_],s.hasOwnProperty(_)&&(V!=null||G!=null))switch(_){case"type":c=V;break;case"name":o=V;break;case"checked":z=V;break;case"defaultChecked":B=V;break;case"value":m=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:V!==G&&Rt(t,e,_,V,s,G)}}ro(t,m,S,x,z,B,c,o);return;case"select":V=m=S=_=null;for(c in a)if(x=a[c],a.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":V=x;default:s.hasOwnProperty(c)||Rt(t,e,c,null,s,x)}for(o in s)if(c=s[o],x=a[o],s.hasOwnProperty(o)&&(c!=null||x!=null))switch(o){case"value":_=c;break;case"defaultValue":S=c;break;case"multiple":m=c;default:c!==x&&Rt(t,e,o,c,s,x)}e=S,a=m,s=V,_!=null?Ua(t,!!a,_,!1):!!s!=!!a&&(e!=null?Ua(t,!!a,e,!0):Ua(t,!!a,a?[]:"",!1));return;case"textarea":V=_=null;for(S in a)if(o=a[S],a.hasOwnProperty(S)&&o!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Rt(t,e,S,null,s,o)}for(m in s)if(o=s[m],c=a[m],s.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":_=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&Rt(t,e,m,o,s,c)}Mh(t,_,V);return;case"option":for(var F in a)_=a[F],a.hasOwnProperty(F)&&_!=null&&!s.hasOwnProperty(F)&&(F==="selected"?t.selected=!1:Rt(t,e,F,null,s,_));for(x in s)_=s[x],V=a[x],s.hasOwnProperty(x)&&_!==V&&(_!=null||V!=null)&&(x==="selected"?t.selected=_&&typeof _!="function"&&typeof _!="symbol":Rt(t,e,x,_,s,V));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 at in a)_=a[at],a.hasOwnProperty(at)&&_!=null&&!s.hasOwnProperty(at)&&Rt(t,e,at,null,s,_);for(z in s)if(_=s[z],V=a[z],s.hasOwnProperty(z)&&_!==V&&(_!=null||V!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,e));break;default:Rt(t,e,z,_,s,V)}return;default:if(uo(e)){for(var wt in a)_=a[wt],a.hasOwnProperty(wt)&&_!==void 0&&!s.hasOwnProperty(wt)&&Ju(t,e,wt,void 0,s,_);for(B in s)_=s[B],V=a[B],!s.hasOwnProperty(B)||_===V||_===void 0&&V===void 0||Ju(t,e,B,_,s,V);return}}for(var R in a)_=a[R],a.hasOwnProperty(R)&&_!=null&&!s.hasOwnProperty(R)&&Rt(t,e,R,null,s,_);for(G in s)_=s[G],V=a[G],!s.hasOwnProperty(G)||_===V||_==null&&V==null||Rt(t,e,G,_,s,V)}function Dp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sb(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var o=a[s],c=o.transferSize,m=o.initiatorType,S=o.duration;if(c&&S&&Dp(m)){for(m=0,S=o.responseEnd,s+=1;s<a.length;s++){var x=a[s],z=x.startTime;if(z>S)break;var B=x.transferSize,G=x.initiatorType;B&&Dp(G)&&(x=x.responseEnd,m+=B*(x<S?1:(S-z)/(x-z)))}if(--s,e+=8*(c+m)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var $u=null,Wu=null;function tr(t){return t.nodeType===9?t:t.ownerDocument}function Op(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zp(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Iu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var tc=null;function lb(){var t=window.event;return t&&t.type==="popstate"?t===tc?!1:(tc=t,!0):(tc=null,!1)}var _p=typeof setTimeout=="function"?setTimeout:void 0,rb=typeof clearTimeout=="function"?clearTimeout:void 0,jp=typeof Promise=="function"?Promise:void 0,ob=typeof queueMicrotask=="function"?queueMicrotask:typeof jp<"u"?function(t){return jp.resolve(null).then(t).catch(ub)}:_p;function ub(t){setTimeout(function(){throw t})}function Zn(t){return t==="head"}function Np(t,e){var a=e,s=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(o),pi(e);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")vs(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,vs(a);for(var c=a.firstChild;c;){var m=c.nextSibling,S=c.nodeName;c[Li]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&vs(t.ownerDocument.body);a=o}while(a);pi(e)}function Vp(t,e){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function ec(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ec(a),so(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function cb(t,e,a,s){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Li])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=He(t.nextSibling),t===null)break}return null}function fb(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=He(t.nextSibling),t===null))return null;return t}function Lp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function nc(t){return t.data==="$?"||t.data==="$~"}function ac(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function hb(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var s=function(){e(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function He(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ic=null;function Up(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return He(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Bp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function Hp(t,e,a){switch(e=tr(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function vs(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);so(t)}var qe=new Map,qp=new Set;function er(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Cn=X.d;X.d={f:db,r:mb,D:pb,C:yb,L:gb,m:vb,X:bb,S:Sb,M:xb};function db(){var t=Cn.f(),e=Kl();return t||e}function mb(t){var e=Na(t);e!==null&&e.tag===5&&e.type==="form"?am(e):Cn.r(t)}var hi=typeof document>"u"?null:document;function Gp(t,e,a){var s=hi;if(s&&typeof e=="string"&&e){var o=_e(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),qp.has(o)||(qp.add(o),t={rel:t,crossOrigin:a,href:e},s.querySelector(o)===null&&(e=s.createElement("link"),ae(e,"link",t),$t(e),s.head.appendChild(e)))}}function pb(t){Cn.D(t),Gp("dns-prefetch",t,null)}function yb(t,e){Cn.C(t,e),Gp("preconnect",t,e)}function gb(t,e,a){Cn.L(t,e,a);var s=hi;if(s&&t&&e){var o='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_e(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_e(a.imageSizes)+'"]')):o+='[href="'+_e(t)+'"]';var c=o;switch(e){case"style":c=di(t);break;case"script":c=mi(t)}qe.has(c)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),qe.set(c,t),s.querySelector(o)!==null||e==="style"&&s.querySelector(Ss(c))||e==="script"&&s.querySelector(bs(c))||(e=s.createElement("link"),ae(e,"link",t),$t(e),s.head.appendChild(e)))}}function vb(t,e){Cn.m(t,e);var a=hi;if(a&&t){var s=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+_e(s)+'"][href="'+_e(t)+'"]',c=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=mi(t)}if(!qe.has(c)&&(t=v({rel:"modulepreload",href:t},e),qe.set(c,t),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bs(c)))return}s=a.createElement("link"),ae(s,"link",t),$t(s),a.head.appendChild(s)}}}function Sb(t,e,a){Cn.S(t,e,a);var s=hi;if(s&&t){var o=Va(s).hoistableStyles,c=di(t);e=e||"default";var m=o.get(c);if(!m){var S={loading:0,preload:null};if(m=s.querySelector(Ss(c)))S.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=qe.get(c))&&sc(t,a);var x=m=s.createElement("link");$t(x),ae(x,"link",t),x._p=new Promise(function(z,B){x.onload=z,x.onerror=B}),x.addEventListener("load",function(){S.loading|=1}),x.addEventListener("error",function(){S.loading|=2}),S.loading|=4,nr(m,e,s)}m={type:"stylesheet",instance:m,count:1,state:S},o.set(c,m)}}}function bb(t,e){Cn.X(t,e);var a=hi;if(a&&t){var s=Va(a).hoistableScripts,o=mi(t),c=s.get(o);c||(c=a.querySelector(bs(o)),c||(t=v({src:t,async:!0},e),(e=qe.get(o))&&lc(t,e),c=a.createElement("script"),$t(c),ae(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function xb(t,e){Cn.M(t,e);var a=hi;if(a&&t){var s=Va(a).hoistableScripts,o=mi(t),c=s.get(o);c||(c=a.querySelector(bs(o)),c||(t=v({src:t,async:!0,type:"module"},e),(e=qe.get(o))&&lc(t,e),c=a.createElement("script"),$t(c),ae(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function Yp(t,e,a,s){var o=(o=ft.current)?er(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=di(a.href),a=Va(o).hoistableStyles,s=a.get(e),s||(s={type:"style",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=di(a.href);var c=Va(o).hoistableStyles,m=c.get(t);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,m),(c=o.querySelector(Ss(t)))&&!c._p&&(m.instance=c,m.state.loading=5),qe.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},qe.set(t,a),c||Tb(o,t,a,m.state))),e&&s===null)throw Error(r(528,""));return m}if(e&&s!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=mi(a),a=Va(o).hoistableScripts,s=a.get(e),s||(s={type:"script",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function di(t){return'href="'+_e(t)+'"'}function Ss(t){return'link[rel="stylesheet"]['+t+"]"}function kp(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function Tb(t,e,a,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),ae(e,"link",a),$t(e),t.head.appendChild(e))}function mi(t){return'[src="'+_e(t)+'"]'}function bs(t){return"script[async]"+t}function Qp(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+_e(a.href)+'"]');if(s)return e.instance=s,$t(s),s;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),$t(s),ae(s,"style",o),nr(s,a.precedence,t),e.instance=s;case"stylesheet":o=di(a.href);var c=t.querySelector(Ss(o));if(c)return e.state.loading|=4,e.instance=c,$t(c),c;s=kp(a),(o=qe.get(o))&&sc(s,o),c=(t.ownerDocument||t).createElement("link"),$t(c);var m=c;return m._p=new Promise(function(S,x){m.onload=S,m.onerror=x}),ae(c,"link",s),e.state.loading|=4,nr(c,a.precedence,t),e.instance=c;case"script":return c=mi(a.src),(o=t.querySelector(bs(c)))?(e.instance=o,$t(o),o):(s=a,(o=qe.get(c))&&(s=v({},a),lc(s,o)),t=t.ownerDocument||t,o=t.createElement("script"),$t(o),ae(o,"link",s),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,nr(s,a.precedence,t));return e.instance}function nr(t,e,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,c=o,m=0;m<s.length;m++){var S=s[m];if(S.dataset.precedence===e)c=S;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function sc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function lc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ar=null;function Xp(t,e,a){if(ar===null){var s=new Map,o=ar=new Map;o.set(a,s)}else o=ar,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var c=a[o];if(!(c[Li]||c[It]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(e)||"";m=t+m;var S=s.get(m);S?S.push(c):s.set(m,[c])}}return s}function Kp(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Eb(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Pp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Ab(t,e,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=di(s.href),c=e.querySelector(Ss(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ir.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=c,$t(c);return}c=e.ownerDocument||e,s=kp(s),(o=qe.get(o))&&sc(s,o),c=c.createElement("link"),$t(c);var m=c;m._p=new Promise(function(S,x){m.onload=S,m.onerror=x}),ae(c,"link",s),a.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=ir.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var rc=0;function Mb(t,e){return t.stylesheets&&t.count===0&&lr(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&lr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&rc===0&&(rc=62500*sb());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&lr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>rc?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function ir(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var sr=null;function lr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,sr=new Map,e.forEach(Cb,t),sr=null,ir.call(t))}function Cb(t,e){if(!(e.state.loading&4)){var a=sr.get(t);if(a)var s=a.get(null);else{a=new Map,sr.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}o=e.instance,m=o.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,o),a.set(m,o),this.count++,s=ir.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var xs={$$typeof:U,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Rb(t,e,a,s,o,c,m,S,x){this.tag=1,this.containerInfo=t,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=eo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eo(0),this.hiddenUpdates=eo(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Zp(t,e,a,s,o,c,m,S,x,z,B,G){return t=new Rb(t,e,a,m,x,z,B,G,S),e=1,c===!0&&(e|=24),c=Ae(3,null,null,e),t.current=c,c.stateNode=t,e=qo(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:e},Qo(c),t}function Fp(t){return t?(t=Xa,t):Xa}function Jp(t,e,a,s,o,c){o=Fp(o),s.context===null?s.context=o:s.pendingContext=o,s=Un(e),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Bn(t,s,e),a!==null&&(Se(a,t,e),Ii(a,t,e))}function $p(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function oc(t,e){$p(t,e),(t=t.alternate)&&$p(t,e)}function Wp(t){if(t.tag===13||t.tag===31){var e=fa(t,67108864);e!==null&&Se(e,t,67108864),oc(t,67108864)}}function Ip(t){if(t.tag===13||t.tag===31){var e=De();e=no(e);var a=fa(t,e);a!==null&&Se(a,t,e),oc(t,e)}}var rr=!0;function wb(t,e,a,s){var o=L.T;L.T=null;var c=X.p;try{X.p=2,uc(t,e,a,s)}finally{X.p=c,L.T=o}}function Db(t,e,a,s){var o=L.T;L.T=null;var c=X.p;try{X.p=8,uc(t,e,a,s)}finally{X.p=c,L.T=o}}function uc(t,e,a,s){if(rr){var o=cc(s);if(o===null)Fu(t,e,s,or,a),ey(t,s);else if(zb(o,t,e,a,s))s.stopPropagation();else if(ey(t,s),e&4&&-1<Ob.indexOf(t)){for(;o!==null;){var c=Na(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=la(c.pendingLanes);if(m!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;m;){var x=1<<31-Te(m);S.entanglements[1]|=x,m&=~x}en(c),(xt&6)===0&&(Ql=be()+500,ps(0))}}break;case 31:case 13:S=fa(c,2),S!==null&&Se(S,c,2),Kl(),oc(c,2)}if(c=cc(s),c===null&&Fu(t,e,s,or,a),c===o)break;o=c}o!==null&&s.stopPropagation()}else Fu(t,e,s,null,a)}}function cc(t){return t=fo(t),fc(t)}var or=null;function fc(t){if(or=null,t=ja(t),t!==null){var e=f(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=d(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return or=t,null}function ty(t){switch(t){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(p1()){case oh:return 2;case uh:return 8;case $s:case y1:return 32;case ch:return 268435456;default:return 32}default:return 32}}var hc=!1,Fn=null,Jn=null,$n=null,Ts=new Map,Es=new Map,Wn=[],Ob="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 ey(t,e){switch(t){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":Ts.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Es.delete(e.pointerId)}}function As(t,e,a,s,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[o]},e!==null&&(e=Na(e),e!==null&&Wp(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function zb(t,e,a,s,o){switch(e){case"focusin":return Fn=As(Fn,t,e,a,s,o),!0;case"dragenter":return Jn=As(Jn,t,e,a,s,o),!0;case"mouseover":return $n=As($n,t,e,a,s,o),!0;case"pointerover":var c=o.pointerId;return Ts.set(c,As(Ts.get(c)||null,t,e,a,s,o)),!0;case"gotpointercapture":return c=o.pointerId,Es.set(c,As(Es.get(c)||null,t,e,a,s,o)),!0}return!1}function ny(t){var e=ja(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,yh(t.priority,function(){Ip(a)});return}}else if(e===31){if(e=d(a),e!==null){t.blockedOn=e,yh(t.priority,function(){Ip(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ur(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=cc(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);co=s,a.target.dispatchEvent(s),co=null}else return e=Na(a),e!==null&&Wp(e),t.blockedOn=a,!1;e.shift()}return!0}function ay(t,e,a){ur(t)&&a.delete(e)}function _b(){hc=!1,Fn!==null&&ur(Fn)&&(Fn=null),Jn!==null&&ur(Jn)&&(Jn=null),$n!==null&&ur($n)&&($n=null),Ts.forEach(ay),Es.forEach(ay)}function cr(t,e){t.blockedOn===e&&(t.blockedOn=null,hc||(hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_b)))}var fr=null;function iy(t){fr!==t&&(fr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){fr===t&&(fr=null);for(var e=0;e<t.length;e+=3){var a=t[e],s=t[e+1],o=t[e+2];if(typeof s!="function"){if(fc(s||a)===null)continue;break}var c=Na(a);c!==null&&(t.splice(e,3),e-=3,cu(c,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function pi(t){function e(x){return cr(x,t)}Fn!==null&&cr(Fn,t),Jn!==null&&cr(Jn,t),$n!==null&&cr($n,t),Ts.forEach(e),Es.forEach(e);for(var a=0;a<Wn.length;a++){var s=Wn[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Wn.length&&(a=Wn[0],a.blockedOn===null);)ny(a),a.blockedOn===null&&Wn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],c=a[s+1],m=o[de]||null;if(typeof c=="function")m||iy(a);else if(m){var S=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[de]||null)S=m.formAction;else if(fc(o)!==null)continue}else S=m.action;typeof S=="function"?a[s+1]=S:(a.splice(s,3),s-=3),iy(a)}}}function sy(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function dc(t){this._internalRoot=t}hr.prototype.render=dc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,s=De();Jp(a,s,t,e,null,null)},hr.prototype.unmount=dc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Jp(t.current,2,null,t,null,null),Kl(),e[_a]=null}};function hr(t){this._internalRoot=t}hr.prototype.unstable_scheduleHydration=function(t){if(t){var e=ph();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Wn.length&&e!==0&&e<Wn[a].priority;a++);Wn.splice(a,0,t),a===0&&ny(t)}};var ly=i.version;if(ly!=="19.2.4")throw Error(r(527,ly,"19.2.4"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var jb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dr.isDisabled&&dr.supportsFiber)try{ji=dr.inject(jb),xe=dr}catch{}}return Cs.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,s="",o=dm,c=mm,m=pm;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=Zp(t,1,!1,null,null,a,s,null,o,c,m,sy),t[_a]=e.current,Zu(t),new dc(e)},Cs.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var s=!1,o="",c=dm,m=mm,S=pm,x=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),e=Zp(t,1,!0,e,a??null,s,o,x,c,m,S,sy),e.context=Fp(null),a=e.current,s=De(),s=no(s),o=Un(s),o.callback=null,Bn(a,o,s),a=s,e.current.lanes=a,Vi(e,a),en(e),t[_a]=e.current,Zu(t),new hr(e)},Cs.version="19.2.4",Cs}var yy;function Qb(){if(yy)return yc.exports;yy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),yc.exports=kb(),yc.exports}var Xb=Qb(),Gr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kb={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},Pb=class{#t=Kb;#n=!1;setTimeoutProvider(n){this.#t=n}setTimeout(n,i){return this.#t.setTimeout(n,i)}clearTimeout(n){this.#t.clearTimeout(n)}setInterval(n,i){return this.#t.setInterval(n,i)}clearInterval(n){this.#t.clearInterval(n)}},Hc=new Pb;function Zb(n){setTimeout(n,0)}var Yr=typeof window>"u"||"Deno"in globalThis;function Fe(){}function Fb(n,i){return typeof n=="function"?n(i):n}function Jb(n){return typeof n=="number"&&n>=0&&n!==1/0}function $b(n,i){return Math.max(n+(i||0)-Date.now(),0)}function qc(n,i){return typeof n=="function"?n(i):n}function Wb(n,i){return typeof n=="function"?n(i):n}function gy(n,i){const{type:l="all",exact:r,fetchStatus:u,predicate:f,queryKey:h,stale:d}=n;if(h){if(r){if(i.queryHash!==vf(h,i.options))return!1}else if(!Ls(i.queryKey,h))return!1}if(l!=="all"){const y=i.isActive();if(l==="active"&&!y||l==="inactive"&&y)return!1}return!(typeof d=="boolean"&&i.isStale()!==d||u&&u!==i.state.fetchStatus||f&&!f(i))}function vy(n,i){const{exact:l,status:r,predicate:u,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(l){if(Vs(i.options.mutationKey)!==Vs(f))return!1}else if(!Ls(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||u&&!u(i))}function vf(n,i){return(i?.queryKeyHashFn||Vs)(n)}function Vs(n){return JSON.stringify(n,(i,l)=>Gc(l)?Object.keys(l).sort().reduce((r,u)=>(r[u]=l[u],r),{}):l)}function Ls(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(l=>Ls(n[l],i[l])):!1}var Ib=Object.prototype.hasOwnProperty;function $g(n,i,l=0){if(n===i)return n;if(l>500)return i;const r=Sy(n)&&Sy(i);if(!r&&!(Gc(n)&&Gc(i)))return i;const f=(r?n:Object.keys(n)).length,h=r?i:Object.keys(i),d=h.length,y=r?new Array(d):{};let p=0;for(let g=0;g<d;g++){const v=r?g:h[g],b=n[v],C=i[v];if(b===C){y[v]=b,(r?g<f:Ib.call(n,v))&&p++;continue}if(b===null||C===null||typeof b!="object"||typeof C!="object"){y[v]=C;continue}const M=$g(b,C,l+1);y[v]=M,M===b&&p++}return f===d&&p===f?n:y}function eR(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const l in n)if(n[l]!==i[l])return!1;return!0}function Sy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Gc(n){if(!by(n))return!1;const i=n.constructor;if(i===void 0)return!0;const l=i.prototype;return!(!by(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function by(n){return Object.prototype.toString.call(n)==="[object Object]"}function tx(n){return new Promise(i=>{Hc.setTimeout(i,n)})}function ex(n,i,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,i):l.structuralSharing!==!1?$g(n,i):i}function nx(n,i,l=0){const r=[...n,i];return l&&r.length>l?r.slice(1):r}function ax(n,i,l=0){const r=[i,...n];return l&&r.length>l?r.slice(0,-1):r}var Sf=Symbol();function Wg(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Sf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function nR(n,i){return typeof n=="function"?n(...i):!!n}function ix(n,i,l){let r=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=i(),r||(r=!0,u.aborted?l():u.addEventListener("abort",l,{once:!0})),u)}),n}var sx=class extends Gr{#t;#n;#e;constructor(){super(),this.#e=n=>{if(!Yr&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#e=n,this.#n?.(),this.#n=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Ig=new sx;function lx(){let n,i;const l=new Promise((u,f)=>{n=u,i=f});l.status="pending",l.catch(()=>{});function r(u){Object.assign(l,u),delete l.resolve,delete l.reject}return l.resolve=u=>{r({status:"fulfilled",value:u}),n(u)},l.reject=u=>{r({status:"rejected",reason:u}),i(u)},l}var rx=Zb;function ox(){let n=[],i=0,l=d=>{d()},r=d=>{d()},u=rx;const f=d=>{i?n.push(d):u(()=>{l(d)})},h=()=>{const d=n;n=[],d.length&&u(()=>{r(()=>{d.forEach(y=>{l(y)})})})};return{batch:d=>{let y;i++;try{y=d()}finally{i--,i||h()}return y},batchCalls:d=>(...y)=>{f(()=>{d(...y)})},schedule:f,setNotifyFunction:d=>{l=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{u=d}}}var ce=ox(),ux=class extends Gr{#t=!0;#n;#e;constructor(){super(),this.#e=n=>{if(!Yr&&window.addEventListener){const i=()=>n(!0),l=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#e=n,this.#n?.(),this.#n=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(l=>{l(n)}))}isOnline(){return this.#t}},zr=new ux;function cx(n){return Math.min(1e3*2**n,3e4)}function t0(n){return(n??"online")==="online"?zr.isOnline():!0}var Yc=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function e0(n){let i=!1,l=0,r;const u=lx(),f=()=>u.status!=="pending",h=D=>{if(!f()){const w=new Yc(D);b(w),n.onCancel?.(w)}},d=()=>{i=!0},y=()=>{i=!1},p=()=>Ig.isFocused()&&(n.networkMode==="always"||zr.isOnline())&&n.canRun(),g=()=>t0(n.networkMode)&&n.canRun(),v=D=>{f()||(r?.(),u.resolve(D))},b=D=>{f()||(r?.(),u.reject(D))},C=()=>new Promise(D=>{r=w=>{(f()||p())&&D(w)},n.onPause?.()}).then(()=>{r=void 0,f()||n.onContinue?.()}),M=()=>{if(f())return;let D;const w=l===0?n.initialPromise:void 0;try{D=w??n.fn()}catch(N){D=Promise.reject(N)}Promise.resolve(D).then(v).catch(N=>{if(f())return;const q=n.retry??(Yr?0:3),U=n.retryDelay??cx,k=typeof U=="function"?U(l,N):U,Q=q===!0||typeof q=="number"&&l<q||typeof q=="function"&&q(l,N);if(i||!Q){b(N);return}l++,n.onFail?.(l,N),tx(k).then(()=>p()?void 0:C()).then(()=>{i?b(N):M()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(r?.(),u),cancelRetry:d,continueRetry:y,canStart:g,start:()=>(g()?M():C().then(M),u)}}var n0=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jb(this.gcTime)&&(this.#t=Hc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Yr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Hc.clearTimeout(this.#t),this.#t=void 0)}},fx=class extends n0{#t;#n;#e;#i;#a;#l;#r;constructor(n){super(),this.#r=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#e=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=Ty(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Ty(this.options);i.data!==void 0&&(this.setState(xy(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(n,i){const l=ex(this.state.data,n,this.options);return this.#s({data:l,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),l}setState(n,i){this.#s({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(Fe).catch(Fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Wb(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Sf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>qc(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!$b(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#r?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const d=this.observers.find(y=>y.options.queryFn);d&&this.setOptions(d.options)}const l=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#r=!0,l.signal)})},u=()=>{const d=Wg(this.options,i),p=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#r=!1,this.options.persister?this.options.persister(d,p,this):d(p)},h=(()=>{const d={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:u};return r(d),d})();this.options.behavior?.onFetch(h,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#s({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=e0({initialPromise:i?.initialPromise,fn:h.fetchFn,onCancel:d=>{d instanceof Yc&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),l.abort()},onFail:(d,y)=>{this.#s({type:"failed",failureCount:d,error:y})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#e.config.onSuccess?.(d,this),this.#e.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Yc){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#s({type:"error",error:d}),this.#e.config.onError?.(d,this),this.#e.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#s(n){const i=l=>{switch(n.type){case"failed":return{...l,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...hx(l.data,this.options),fetchMeta:n.meta??null};case"success":const r={...l,...xy(n.data,n.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=n.manual?r:void 0,r;case"error":const u=n.error;return{...l,error:u,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...n.state}}};this.state=i(this.state),ce.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:n})})}};function hx(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:t0(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function xy(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ty(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,l=i!==void 0,r=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:l?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}function Ey(n){return{onFetch:(i,l)=>{const r=i.options,u=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let d={pages:[],pageParams:[]},y=0;const p=async()=>{let g=!1;const v=M=>{ix(M,()=>i.signal,()=>g=!0)},b=Wg(i.options,i.fetchOptions),C=async(M,D,w)=>{if(g)return Promise.reject();if(D==null&&M.pages.length)return Promise.resolve(M);const q=(()=>{const it={client:i.client,queryKey:i.queryKey,pageParam:D,direction:w?"backward":"forward",meta:i.options.meta};return v(it),it})(),U=await b(q),{maxPages:k}=i.options,Q=w?ax:nx;return{pages:Q(M.pages,U,k),pageParams:Q(M.pageParams,D,k)}};if(u&&f.length){const M=u==="backward",D=M?dx:Ay,w={pages:f,pageParams:h},N=D(r,w);d=await C(w,N,M)}else{const M=n??f.length;do{const D=y===0?h[0]??r.initialPageParam:Ay(r,d);if(y>0&&D==null)break;d=await C(d,D),y++}while(y<M)}return d};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},l):i.fetchFn=p}}}function Ay(n,{pages:i,pageParams:l}){const r=i.length-1;return i.length>0?n.getNextPageParam(i[r],i,l[r],l):void 0}function dx(n,{pages:i,pageParams:l}){return i.length>0?n.getPreviousPageParam?.(i[0],i,l[0],l):void 0}var mx=class extends n0{#t;#n;#e;#i;constructor(n){super(),this.#t=n.client,this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#n=[],this.state=n.state||px(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#n.includes(n)||(this.#n.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#n=this.#n.filter(i=>i!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},l={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=e0({fn:()=>this.options.mutationFn?this.options.mutationFn(n,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",u=!this.#i.canStart();try{if(r)i();else{this.#a({type:"pending",variables:n,isPaused:u}),this.#e.config.onMutate&&await this.#e.config.onMutate(n,this,l);const h=await this.options.onMutate?.(n,l);h!==this.state.context&&this.#a({type:"pending",context:h,variables:n,isPaused:u})}const f=await this.#i.start();return await this.#e.config.onSuccess?.(f,n,this.state.context,this,l),await this.options.onSuccess?.(f,n,this.state.context,l),await this.#e.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,n,this.state.context,l),this.#a({type:"success",data:f}),f}catch(f){try{await this.#e.config.onError?.(f,n,this.state.context,this,l)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,n,this.state.context,l)}catch(h){Promise.reject(h)}try{await this.#e.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,l)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#e.runNext(this)}}#a(n){const i=l=>{switch(n.type){case"failed":return{...l,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...l,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:n.error,failureCount:l.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ce.batch(()=>{this.#n.forEach(l=>{l.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function px(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yx=class extends Gr{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#n=new Map,this.#e=0}#t;#n;#e;build(n,i,l){const r=new mx({client:n,mutationCache:this,mutationId:++this.#e,options:n.defaultMutationOptions(i),state:l});return this.add(r),r}add(n){this.#t.add(n);const i=mr(n);if(typeof i=="string"){const l=this.#n.get(i);l?l.push(n):this.#n.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const i=mr(n);if(typeof i=="string"){const l=this.#n.get(i);if(l)if(l.length>1){const r=l.indexOf(n);r!==-1&&l.splice(r,1)}else l[0]===n&&this.#n.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=mr(n);if(typeof i=="string"){const r=this.#n.get(i)?.find(u=>u.state.status==="pending");return!r||r===n}else return!0}runNext(n){const i=mr(n);return typeof i=="string"?this.#n.get(i)?.find(r=>r!==n&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ce.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#n.clear()})}getAll(){return Array.from(this.#t)}find(n){const i={exact:!0,...n};return this.getAll().find(l=>vy(i,l))}findAll(n={}){return this.getAll().filter(i=>vy(n,i))}notify(n){ce.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return ce.batch(()=>Promise.all(n.map(i=>i.continue().catch(Fe))))}};function mr(n){return n.options.scope?.id}var gx=class extends Gr{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,i,l){const r=i.queryKey,u=i.queryHash??vf(r,i);let f=this.get(u);return f||(f=new fx({client:n,queryKey:r,queryHash:u,options:n.defaultQueryOptions(i),state:l,defaultOptions:n.getQueryDefaults(r)}),this.add(f)),f}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#t.get(n.queryHash);i&&(n.destroy(),i===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ce.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(l=>gy(i,l))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(l=>gy(n,l)):i}notify(n){ce.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){ce.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ce.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},vx=class{#t;#n;#e;#i;#a;#l;#r;#s;constructor(n={}){this.#t=n.queryCache||new gx,this.#n=n.mutationCache||new yx,this.#e=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#r=Ig.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=zr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#n.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),l=this.#t.build(this,i),r=l.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(qc(i.staleTime,l))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:i,state:l})=>{const r=l.data;return[i,r]})}setQueryData(n,i,l){const r=this.defaultQueryOptions({queryKey:n}),f=this.#t.get(r.queryHash)?.state.data,h=Fb(i,f);if(h!==void 0)return this.#t.build(this,r).setData(h,{...l,manual:!0})}setQueriesData(n,i,l){return ce.batch(()=>this.#t.findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,i,l)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#t.get(i.queryHash)?.state}removeQueries(n){const i=this.#t;ce.batch(()=>{i.findAll(n).forEach(l=>{i.remove(l)})})}resetQueries(n,i){const l=this.#t;return ce.batch(()=>(l.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const l={revert:!0,...i},r=ce.batch(()=>this.#t.findAll(n).map(u=>u.cancel(l)));return Promise.all(r).then(Fe).catch(Fe)}invalidateQueries(n,i={}){return ce.batch(()=>(this.#t.findAll(n).forEach(l=>{l.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const l={...i,cancelRefetch:i.cancelRefetch??!0},r=ce.batch(()=>this.#t.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,l);return l.throwOnError||(f=f.catch(Fe)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Fe)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const l=this.#t.build(this,i);return l.isStaleByTime(qc(i.staleTime,l))?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Fe).catch(Fe)}fetchInfiniteQuery(n){return n.behavior=Ey(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Fe).catch(Fe)}ensureInfiniteQueryData(n){return n.behavior=Ey(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return zr.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#n}getDefaultOptions(){return this.#e}setDefaultOptions(n){this.#e=n}setQueryDefaults(n,i){this.#i.set(Vs(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()],l={};return i.forEach(r=>{Ls(n,r.queryKey)&&Object.assign(l,r.defaultOptions)}),l}setMutationDefaults(n,i){this.#a.set(Vs(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],l={};return i.forEach(r=>{Ls(n,r.mutationKey)&&Object.assign(l,r.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#e.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=vf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Sf&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#e.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#n.clear()}},a0=T.createContext(void 0),Sx=n=>{const i=T.useContext(a0);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},bx=({client:n,children:i})=>(T.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),j.jsx(a0.Provider,{value:n,children:i}));var My="popstate";function Cy(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function xx(n={}){function i(r,u){let f=u.state?.masked,{pathname:h,search:d,hash:y}=f||r.location;return kc("",{pathname:h,search:d,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function l(r,u){return typeof u=="string"?u:Us(u)}return Ex(i,l,null,n)}function Lt(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function $e(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Tx(){return Math.random().toString(36).substring(2,10)}function Ry(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function kc(n,i,l=null,r,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?Ci(i):i,state:l,key:i&&i.key||r||Tx(),unstable_mask:u}}function Us({pathname:n="/",search:i="",hash:l=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function Ci(n){let i={};if(n){let l=n.indexOf("#");l>=0&&(i.hash=n.substring(l),n=n.substring(0,l));let r=n.indexOf("?");r>=0&&(i.search=n.substring(r),n=n.substring(0,r)),n&&(i.pathname=n)}return i}function Ex(n,i,l,r={}){let{window:u=document.defaultView,v5Compat:f=!1}=r,h=u.history,d="POP",y=null,p=g();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function g(){return(h.state||{idx:null}).idx}function v(){d="POP";let w=g(),N=w==null?null:w-p;p=w,y&&y({action:d,location:D.location,delta:N})}function b(w,N){d="PUSH";let q=Cy(w)?w:kc(D.location,w,N);p=g()+1;let U=Ry(q,p),k=D.createHref(q.unstable_mask||q);try{h.pushState(U,"",k)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;u.location.assign(k)}f&&y&&y({action:d,location:D.location,delta:1})}function C(w,N){d="REPLACE";let q=Cy(w)?w:kc(D.location,w,N);p=g();let U=Ry(q,p),k=D.createHref(q.unstable_mask||q);h.replaceState(U,"",k),f&&y&&y({action:d,location:D.location,delta:0})}function M(w){return Ax(w)}let D={get action(){return d},get location(){return n(u,h)},listen(w){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(My,v),y=w,()=>{u.removeEventListener(My,v),y=null}},createHref(w){return i(u,w)},createURL:M,encodeLocation(w){let N=M(w);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:C,go(w){return h.go(w)}};return D}function Ax(n,i=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Lt(l,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Us(n);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=l+r),new URL(r,l)}function i0(n,i,l="/"){return Mx(n,i,l,!1)}function Mx(n,i,l,r){let u=typeof i=="string"?Ci(i):i,f=Rn(u.pathname||"/",l);if(f==null)return null;let h=s0(n);Cx(h);let d=null;for(let y=0;d==null&&y<h.length;++y){let p=Ux(f);d=Vx(h[y],p,r)}return d}function s0(n,i=[],l=[],r="",u=!1){let f=(h,d,y=u,p)=>{let g={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:d,route:h};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(r)&&y)return;Lt(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length)}let v=an([r,g.relativePath]),b=l.concat(g);h.children&&h.children.length>0&&(Lt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),s0(h.children,i,b,v,y)),!(h.path==null&&!h.index)&&i.push({path:v,score:jx(v,h.index),routesMeta:b})};return n.forEach((h,d)=>{if(h.path===""||!h.path?.includes("?"))f(h,d);else for(let y of l0(h.path))f(h,d,!0,y)}),i}function l0(n){let i=n.split("/");if(i.length===0)return[];let[l,...r]=i,u=l.endsWith("?"),f=l.replace(/\?$/,"");if(r.length===0)return u?[f,""]:[f];let h=l0(r.join("/")),d=[];return d.push(...h.map(y=>y===""?f:[f,y].join("/"))),u&&d.push(...h),d.map(y=>n.startsWith("/")&&y===""?"/":y)}function Cx(n){n.sort((i,l)=>i.score!==l.score?l.score-i.score:Nx(i.routesMeta.map(r=>r.childrenIndex),l.routesMeta.map(r=>r.childrenIndex)))}var Rx=/^:[\w-]+$/,wx=3,Dx=2,Ox=1,zx=10,_x=-2,wy=n=>n==="*";function jx(n,i){let l=n.split("/"),r=l.length;return l.some(wy)&&(r+=_x),i&&(r+=Dx),l.filter(u=>!wy(u)).reduce((u,f)=>u+(Rx.test(f)?wx:f===""?Ox:zx),r)}function Nx(n,i){return n.length===i.length&&n.slice(0,-1).every((r,u)=>r===i[u])?n[n.length-1]-i[i.length-1]:0}function Vx(n,i,l=!1){let{routesMeta:r}=n,u={},f="/",h=[];for(let d=0;d<r.length;++d){let y=r[d],p=d===r.length-1,g=f==="/"?i:i.slice(f.length)||"/",v=_r({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},g),b=y.route;if(!v&&p&&l&&!r[r.length-1].route.index&&(v=_r({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},g)),!v)return null;Object.assign(u,v.params),h.push({params:u,pathname:an([f,v.pathname]),pathnameBase:Gx(an([f,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(f=an([f,v.pathnameBase]))}return h}function _r(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,r]=Lx(n.path,n.caseSensitive,n.end),u=i.match(l);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),d=u.slice(1);return{params:r.reduce((p,{paramName:g,isOptional:v},b)=>{if(g==="*"){let M=d[b]||"";h=f.slice(0,f.length-M.length).replace(/(.)\/+$/,"$1")}const C=d[b];return v&&!C?p[g]=void 0:p[g]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:h,pattern:n}}function Lx(n,i=!1,l=!0){$e(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,d,y,p,g)=>{if(r.push({paramName:d,isOptional:y!=null}),y){let v=g.charAt(p+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),r]}function Ux(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return $e(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Rn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let l=i.endsWith("/")?i.length-1:i.length,r=n.charAt(l);return r&&r!=="/"?null:n.slice(l)||"/"}var Bx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Hx(n,i="/"){let{pathname:l,search:r="",hash:u=""}=typeof n=="string"?Ci(n):n,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=Dy(l.substring(1),"/"):f=Dy(l,i)):f=i,{pathname:f,search:Yx(r),hash:kx(u)}}function Dy(n,i){let l=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function bc(n,i,l,r){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qx(n){return n.filter((i,l)=>l===0||i.route.path&&i.route.path.length>0)}function r0(n){let i=qx(n);return i.map((l,r)=>r===i.length-1?l.pathname:l.pathnameBase)}function bf(n,i,l,r=!1){let u;typeof n=="string"?u=Ci(n):(u={...n},Lt(!u.pathname||!u.pathname.includes("?"),bc("?","pathname","search",u)),Lt(!u.pathname||!u.pathname.includes("#"),bc("#","pathname","hash",u)),Lt(!u.search||!u.search.includes("#"),bc("#","search","hash",u)));let f=n===""||u.pathname==="",h=f?"/":u.pathname,d;if(h==null)d=l;else{let v=i.length-1;if(!r&&h.startsWith("..")){let b=h.split("/");for(;b[0]==="..";)b.shift(),v-=1;u.pathname=b.join("/")}d=v>=0?i[v]:"/"}let y=Hx(u,d),p=h&&h!=="/"&&h.endsWith("/"),g=(f||h===".")&&l.endsWith("/");return!y.pathname.endsWith("/")&&(p||g)&&(y.pathname+="/"),y}var an=n=>n.join("/").replace(/\/\/+/g,"/"),Gx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Yx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,kx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Qx=class{constructor(n,i,l,r=!1){this.status=n,this.statusText=i||"",this.internal=r,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Xx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Kx(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var o0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function u0(n,i){let l=n;if(typeof l!="string"||!Bx.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let r=l,u=!1;if(o0)try{let f=new URL(window.location.href),h=l.startsWith("//")?new URL(f.protocol+l):new URL(l),d=Rn(h.pathname,i);h.origin===f.origin&&d!=null?l=d+h.search+h.hash:u=!0}catch{$e(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:u,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var c0=["POST","PUT","PATCH","DELETE"];new Set(c0);var Px=["GET",...c0];new Set(Px);var Ri=T.createContext(null);Ri.displayName="DataRouter";var kr=T.createContext(null);kr.displayName="DataRouterState";var Zx=T.createContext(!1),f0=T.createContext({isTransitioning:!1});f0.displayName="ViewTransition";var Fx=T.createContext(new Map);Fx.displayName="Fetchers";var Jx=T.createContext(null);Jx.displayName="Await";var ke=T.createContext(null);ke.displayName="Navigation";var ks=T.createContext(null);ks.displayName="Location";var rn=T.createContext({outlet:null,matches:[],isDataRoute:!1});rn.displayName="Route";var xf=T.createContext(null);xf.displayName="RouteError";var h0="REACT_ROUTER_ERROR",$x="REDIRECT",Wx="ROUTE_ERROR_RESPONSE";function Ix(n){if(n.startsWith(`${h0}:${$x}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function tT(n){if(n.startsWith(`${h0}:${Wx}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Qx(i.status,i.statusText,i.data)}catch{}}function eT(n,{relative:i}={}){Lt(Qs(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:r}=T.useContext(ke),{hash:u,pathname:f,search:h}=Xs(n,{relative:i}),d=f;return l!=="/"&&(d=f==="/"?l:an([l,f])),r.createHref({pathname:d,search:h,hash:u})}function Qs(){return T.useContext(ks)!=null}function on(){return Lt(Qs(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(ks).location}var d0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function m0(n){T.useContext(ke).static||T.useLayoutEffect(n)}function Tf(){let{isDataRoute:n}=T.useContext(rn);return n?mT():nT()}function nT(){Lt(Qs(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Ri),{basename:i,navigator:l}=T.useContext(ke),{matches:r}=T.useContext(rn),{pathname:u}=on(),f=JSON.stringify(r0(r)),h=T.useRef(!1);return m0(()=>{h.current=!0}),T.useCallback((y,p={})=>{if($e(h.current,d0),!h.current)return;if(typeof y=="number"){l.go(y);return}let g=bf(y,JSON.parse(f),u,p.relative==="path");n==null&&i!=="/"&&(g.pathname=g.pathname==="/"?i:an([i,g.pathname])),(p.replace?l.replace:l.push)(g,p.state,p)},[i,l,f,u,n])}T.createContext(null);function aR(){let{matches:n}=T.useContext(rn),i=n[n.length-1];return i?i.params:{}}function Xs(n,{relative:i}={}){let{matches:l}=T.useContext(rn),{pathname:r}=on(),u=JSON.stringify(r0(l));return T.useMemo(()=>bf(n,JSON.parse(u),r,i==="path"),[n,u,r,i])}function aT(n,i){return p0(n,i)}function p0(n,i,l){Lt(Qs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(ke),{matches:u}=T.useContext(rn),f=u[u.length-1],h=f?f.params:{},d=f?f.pathname:"/",y=f?f.pathnameBase:"/",p=f&&f.route;{let w=p&&p.path||"";g0(d,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
+
12
+ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let g=on(),v;if(i){let w=typeof i=="string"?Ci(i):i;Lt(y==="/"||w.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${w.pathname}" was given in the \`location\` prop.`),v=w}else v=g;let b=v.pathname||"/",C=b;if(y!=="/"){let w=y.replace(/^\//,"").split("/");C="/"+b.replace(/^\//,"").split("/").slice(w.length).join("/")}let M=i0(n,{pathname:C});$e(p||M!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),$e(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let D=oT(M&&M.map(w=>Object.assign({},w,{params:Object.assign({},h,w.params),pathname:an([y,r.encodeLocation?r.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?y:an([y,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),u,l);return i&&D?T.createElement(ks.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},D):D}function iT(){let n=dT(),i=Xx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),l?T.createElement("pre",{style:u},l):null,h)}var sT=T.createElement(iT,null),y0=class extends T.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=tT(n.digest);l&&(n=l)}let i=n!==void 0?T.createElement(rn.Provider,{value:this.props.routeContext},T.createElement(xf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(lT,{error:n},i):i}};y0.contextType=Zx;var xc=new WeakMap;function lT({children:n,error:i}){let{basename:l}=T.useContext(ke);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Ix(i.digest);if(r){let u=xc.get(i);if(u)throw u;let f=u0(r.location,l);if(o0&&!xc.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw xc.set(i,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function rT({routeContext:n,match:i,children:l}){let r=T.useContext(Ri);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(rn.Provider,{value:n},l)}function oT(n,i=[],l){let r=l?.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let u=n,f=r?.errors;if(f!=null){let g=u.findIndex(v=>v.route.id&&f?.[v.route.id]!==void 0);Lt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,g+1))}let h=!1,d=-1;if(l&&r){h=r.renderFallback;for(let g=0;g<u.length;g++){let v=u[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(d=g),v.route.id){let{loaderData:b,errors:C}=r,M=v.route.loader&&!b.hasOwnProperty(v.route.id)&&(!C||C[v.route.id]===void 0);if(v.route.lazy||M){l.isStatic&&(h=!0),d>=0?u=u.slice(0,d+1):u=[u[0]];break}}}}let y=l?.onError,p=r&&y?(g,v)=>{y(g,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Kx(r.matches),errorInfo:v})}:void 0;return u.reduceRight((g,v,b)=>{let C,M=!1,D=null,w=null;r&&(C=f&&v.route.id?f[v.route.id]:void 0,D=v.route.errorElement||sT,h&&(d<0&&b===0?(g0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,w=null):d===b&&(M=!0,w=v.route.hydrateFallbackElement||null)));let N=i.concat(u.slice(0,b+1)),q=()=>{let U;return C?U=D:M?U=w:v.route.Component?U=T.createElement(v.route.Component,null):v.route.element?U=v.route.element:U=g,T.createElement(rT,{match:v,routeContext:{outlet:g,matches:N,isDataRoute:r!=null},children:U})};return r&&(v.route.ErrorBoundary||v.route.errorElement||b===0)?T.createElement(y0,{location:r.location,revalidation:r.revalidation,component:D,error:C,children:q(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:p}):q()},null)}function Ef(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uT(n){let i=T.useContext(Ri);return Lt(i,Ef(n)),i}function cT(n){let i=T.useContext(kr);return Lt(i,Ef(n)),i}function fT(n){let i=T.useContext(rn);return Lt(i,Ef(n)),i}function Af(n){let i=fT(n),l=i.matches[i.matches.length-1];return Lt(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function hT(){return Af("useRouteId")}function dT(){let n=T.useContext(xf),i=cT("useRouteError"),l=Af("useRouteError");return n!==void 0?n:i.errors?.[l]}function mT(){let{router:n}=uT("useNavigate"),i=Af("useNavigate"),l=T.useRef(!1);return m0(()=>{l.current=!0}),T.useCallback(async(u,f={})=>{$e(l.current,d0),l.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:i,...f}))},[n,i])}var Oy={};function g0(n,i,l){!i&&!Oy[n]&&(Oy[n]=!0,$e(!1,l))}T.memo(pT);function pT({routes:n,future:i,state:l,isStatic:r,onError:u}){return p0(n,void 0,{state:l,isStatic:r,onError:u})}function ta(n){Lt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function yT({basename:n="/",children:i=null,location:l,navigationType:r="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){Lt(!Qs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),y=T.useMemo(()=>({basename:d,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[d,u,f,h]);typeof l=="string"&&(l=Ci(l));let{pathname:p="/",search:g="",hash:v="",state:b=null,key:C="default",unstable_mask:M}=l,D=T.useMemo(()=>{let w=Rn(p,d);return w==null?null:{location:{pathname:w,search:g,hash:v,state:b,key:C,unstable_mask:M},navigationType:r}},[d,p,g,v,b,C,r,M]);return $e(D!=null,`<Router basename="${d}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:T.createElement(ke.Provider,{value:y},T.createElement(ks.Provider,{children:i,value:D}))}function gT({children:n,location:i}){return aT(Qc(n),i)}function Qc(n,i=[]){let l=[];return T.Children.forEach(n,(r,u)=>{if(!T.isValidElement(r))return;let f=[...i,u];if(r.type===T.Fragment){l.push.apply(l,Qc(r.props.children,f));return}Lt(r.type===ta,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Lt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=Qc(r.props.children,f)),l.push(h)}),l}var xr="get",Tr="application/x-www-form-urlencoded";function Qr(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function vT(n){return Qr(n)&&n.tagName.toLowerCase()==="button"}function ST(n){return Qr(n)&&n.tagName.toLowerCase()==="form"}function bT(n){return Qr(n)&&n.tagName.toLowerCase()==="input"}function xT(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function TT(n,i){return n.button===0&&(!i||i==="_self")&&!xT(n)}function Xc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((i,l)=>{let r=n[l];return i.concat(Array.isArray(r)?r.map(u=>[l,u]):[[l,r]])},[]))}function ET(n,i){let l=Xc(n);return i&&i.forEach((r,u)=>{l.has(u)||i.getAll(u).forEach(f=>{l.append(u,f)})}),l}var pr=null;function AT(){if(pr===null)try{new FormData(document.createElement("form"),0),pr=!1}catch{pr=!0}return pr}var MT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tc(n){return n!=null&&!MT.has(n)?($e(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tr}"`),null):n}function CT(n,i){let l,r,u,f,h;if(ST(n)){let d=n.getAttribute("action");r=d?Rn(d,i):null,l=n.getAttribute("method")||xr,u=Tc(n.getAttribute("enctype"))||Tr,f=new FormData(n)}else if(vT(n)||bT(n)&&(n.type==="submit"||n.type==="image")){let d=n.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=n.getAttribute("formaction")||d.getAttribute("action");if(r=y?Rn(y,i):null,l=n.getAttribute("formmethod")||d.getAttribute("method")||xr,u=Tc(n.getAttribute("formenctype"))||Tc(d.getAttribute("enctype"))||Tr,f=new FormData(d,n),!AT()){let{name:p,type:g,value:v}=n;if(g==="image"){let b=p?`${p}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else p&&f.append(p,v)}}else{if(Qr(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=xr,r=null,u=Tr,h=n}return f&&u==="text/plain"&&(h=f,f=void 0),{action:r,method:l.toLowerCase(),encType:u,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function RT(n,i,l,r){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${r}`:u.pathname=`${u.pathname}.${r}`:u.pathname==="/"?u.pathname=`_root.${r}`:i&&Rn(u.pathname,i)==="/"?u.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${r}`,u}async function wT(n,i){if(n.id in i)return i[n.id];try{let l=await import(n.module);return i[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function DT(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function OT(n,i,l){let r=await Promise.all(n.map(async u=>{let f=i.routes[u.route.id];if(f){let h=await wT(f,l);return h.links?h.links():[]}return[]}));return NT(r.flat(1).filter(DT).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function zy(n,i,l,r,u,f){let h=(y,p)=>l[p]?y.route.id!==l[p].route.id:!0,d=(y,p)=>l[p].pathname!==y.pathname||l[p].route.path?.endsWith("*")&&l[p].params["*"]!==y.params["*"];return f==="assets"?i.filter((y,p)=>h(y,p)||d(y,p)):f==="data"?i.filter((y,p)=>{let g=r.routes[y.route.id];if(!g||!g.hasLoader)return!1;if(h(y,p)||d(y,p))return!0;if(y.route.shouldRevalidate){let v=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function zT(n,i,{includeHydrateFallback:l}={}){return _T(n.map(r=>{let u=i.routes[r.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),l&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function _T(n){return[...new Set(n)]}function jT(n){let i={},l=Object.keys(n).sort();for(let r of l)i[r]=n[r];return i}function NT(n,i){let l=new Set;return new Set(i),n.reduce((r,u)=>{let f=JSON.stringify(jT(u));return l.has(f)||(l.add(f),r.push({key:f,link:u})),r},[])}function v0(){let n=T.useContext(Ri);return Mf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function VT(){let n=T.useContext(kr);return Mf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Cf=T.createContext(void 0);Cf.displayName="FrameworkContext";function S0(){let n=T.useContext(Cf);return Mf(n,"You must render this element inside a <HydratedRouter> element"),n}function LT(n,i){let l=T.useContext(Cf),[r,u]=T.useState(!1),[f,h]=T.useState(!1),{onFocus:d,onBlur:y,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=i,b=T.useRef(null);T.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let D=N=>{N.forEach(q=>{h(q.isIntersecting)})},w=new IntersectionObserver(D,{threshold:.5});return b.current&&w.observe(b.current),()=>{w.disconnect()}}},[n]),T.useEffect(()=>{if(r){let D=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(D)}}},[r]);let C=()=>{u(!0)},M=()=>{u(!1),h(!1)};return l?n!=="intent"?[f,b,{}]:[f,b,{onFocus:Rs(d,C),onBlur:Rs(y,M),onMouseEnter:Rs(p,C),onMouseLeave:Rs(g,M),onTouchStart:Rs(v,C)}]:[!1,b,{}]}function Rs(n,i){return l=>{n&&n(l),l.defaultPrevented||i(l)}}function UT({page:n,...i}){let{router:l}=v0(),r=T.useMemo(()=>i0(l.routes,n,l.basename),[l.routes,n,l.basename]);return r?T.createElement(HT,{page:n,matches:r,...i}):null}function BT(n){let{manifest:i,routeModules:l}=S0(),[r,u]=T.useState([]);return T.useEffect(()=>{let f=!1;return OT(n,i,l).then(h=>{f||u(h)}),()=>{f=!0}},[n,i,l]),r}function HT({page:n,matches:i,...l}){let r=on(),{future:u,manifest:f,routeModules:h}=S0(),{basename:d}=v0(),{loaderData:y,matches:p}=VT(),g=T.useMemo(()=>zy(n,i,p,f,r,"data"),[n,i,p,f,r]),v=T.useMemo(()=>zy(n,i,p,f,r,"assets"),[n,i,p,f,r]),b=T.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let D=new Set,w=!1;if(i.forEach(q=>{let U=f.routes[q.route.id];!U||!U.hasLoader||(!g.some(k=>k.route.id===q.route.id)&&q.route.id in y&&h[q.route.id]?.shouldRevalidate||U.hasClientLoader?w=!0:D.add(q.route.id))}),D.size===0)return[];let N=RT(n,d,u.unstable_trailingSlashAwareDataRequests,"data");return w&&D.size>0&&N.searchParams.set("_routes",i.filter(q=>D.has(q.route.id)).map(q=>q.route.id).join(",")),[N.pathname+N.search]},[d,u.unstable_trailingSlashAwareDataRequests,y,r,f,g,i,n,h]),C=T.useMemo(()=>zT(v,f),[v,f]),M=BT(v);return T.createElement(T.Fragment,null,b.map(D=>T.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...l})),C.map(D=>T.createElement("link",{key:D,rel:"modulepreload",href:D,...l})),M.map(({key:D,link:w})=>T.createElement("link",{key:D,nonce:l.nonce,...w,crossOrigin:w.crossOrigin??l.crossOrigin})))}function qT(...n){return i=>{n.forEach(l=>{typeof l=="function"?l(i):l!=null&&(l.current=i)})}}var GT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{GT&&(window.__reactRouterVersion="7.13.1")}catch{}function YT({basename:n,children:i,unstable_useTransitions:l,window:r}){let u=T.useRef();u.current==null&&(u.current=xx({window:r,v5Compat:!0}));let f=u.current,[h,d]=T.useState({action:f.action,location:f.location}),y=T.useCallback(p=>{l===!1?d(p):T.startTransition(()=>d(p))},[l]);return T.useLayoutEffect(()=>f.listen(y),[f,y]),T.createElement(yT,{basename:n,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:l})}var b0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,x0=T.forwardRef(function({onClick:i,discover:l="render",prefetch:r="none",relative:u,reloadDocument:f,replace:h,unstable_mask:d,state:y,target:p,to:g,preventScrollReset:v,viewTransition:b,unstable_defaultShouldRevalidate:C,...M},D){let{basename:w,navigator:N,unstable_useTransitions:q}=T.useContext(ke),U=typeof g=="string"&&b0.test(g),k=u0(g,w);g=k.to;let Q=eT(g,{relative:u}),it=on(),$=null;if(d){let Tt=bf(d,[],it.unstable_mask?it.unstable_mask.pathname:"/",!0);w!=="/"&&(Tt.pathname=Tt.pathname==="/"?w:an([w,Tt.pathname])),$=N.createHref(Tt)}let[P,nt,I]=LT(r,M),ct=XT(g,{replace:h,unstable_mask:d,state:y,target:p,preventScrollReset:v,relative:u,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:q});function vt(Tt){i&&i(Tt),Tt.defaultPrevented||ct(Tt)}let kt=!(k.isExternal||f),Nt=T.createElement("a",{...M,...I,href:(kt?$:void 0)||k.absoluteURL||Q,onClick:kt?vt:i,ref:qT(D,nt),target:p,"data-discover":!U&&l==="render"?"true":void 0});return P&&!U?T.createElement(T.Fragment,null,Nt,T.createElement(UT,{page:Q})):Nt});x0.displayName="Link";var Rf=T.forwardRef(function({"aria-current":i="page",caseSensitive:l=!1,className:r="",end:u=!1,style:f,to:h,viewTransition:d,children:y,...p},g){let v=Xs(h,{relative:p.relative}),b=on(),C=T.useContext(kr),{navigator:M,basename:D}=T.useContext(ke),w=C!=null&&JT(v)&&d===!0,N=M.encodeLocation?M.encodeLocation(v).pathname:v.pathname,q=b.pathname,U=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;l||(q=q.toLowerCase(),U=U?U.toLowerCase():null,N=N.toLowerCase()),U&&D&&(U=Rn(U,D)||U);const k=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let Q=q===N||!u&&q.startsWith(N)&&q.charAt(k)==="/",it=U!=null&&(U===N||!u&&U.startsWith(N)&&U.charAt(N.length)==="/"),$={isActive:Q,isPending:it,isTransitioning:w},P=Q?i:void 0,nt;typeof r=="function"?nt=r($):nt=[r,Q?"active":null,it?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let I=typeof f=="function"?f($):f;return T.createElement(x0,{...p,"aria-current":P,className:nt,ref:g,style:I,to:h,viewTransition:d},typeof y=="function"?y($):y)});Rf.displayName="NavLink";var kT=T.forwardRef(({discover:n="render",fetcherKey:i,navigate:l,reloadDocument:r,replace:u,state:f,method:h=xr,action:d,onSubmit:y,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:b,...C},M)=>{let{unstable_useTransitions:D}=T.useContext(ke),w=ZT(),N=FT(d,{relative:p}),q=h.toLowerCase()==="get"?"get":"post",U=typeof d=="string"&&b0.test(d),k=Q=>{if(y&&y(Q),Q.defaultPrevented)return;Q.preventDefault();let it=Q.nativeEvent.submitter,$=it?.getAttribute("formmethod")||h,P=()=>w(it||Q.currentTarget,{fetcherKey:i,method:$,navigate:l,replace:u,state:f,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:b});D&&l!==!1?T.startTransition(()=>P()):P()};return T.createElement("form",{ref:M,method:q,action:N,onSubmit:r?y:k,...C,"data-discover":!U&&n==="render"?"true":void 0})});kT.displayName="Form";function QT(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function T0(n){let i=T.useContext(Ri);return Lt(i,QT(n)),i}function XT(n,{target:i,replace:l,unstable_mask:r,state:u,preventScrollReset:f,relative:h,viewTransition:d,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let g=Tf(),v=on(),b=Xs(n,{relative:h});return T.useCallback(C=>{if(TT(C,i)){C.preventDefault();let M=l!==void 0?l:Us(v)===Us(b),D=()=>g(n,{replace:M,unstable_mask:r,state:u,preventScrollReset:f,relative:h,viewTransition:d,unstable_defaultShouldRevalidate:y});p?T.startTransition(()=>D()):D()}},[v,g,b,l,r,u,i,n,f,h,d,y,p])}function iR(n){$e(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=T.useRef(Xc(n)),l=T.useRef(!1),r=on(),u=T.useMemo(()=>ET(r.search,l.current?null:i.current),[r.search]),f=Tf(),h=T.useCallback((d,y)=>{const p=Xc(typeof d=="function"?d(new URLSearchParams(u)):d);l.current=!0,f("?"+p,y)},[f,u]);return[u,h]}var KT=0,PT=()=>`__${String(++KT)}__`;function ZT(){let{router:n}=T0("useSubmit"),{basename:i}=T.useContext(ke),l=hT(),r=n.fetch,u=n.navigate;return T.useCallback(async(f,h={})=>{let{action:d,method:y,encType:p,formData:g,body:v}=CT(f,i);if(h.navigate===!1){let b=h.fetcherKey||PT();await r(b,l,h.action||d,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:g,body:v,formMethod:h.method||y,formEncType:h.encType||p,flushSync:h.flushSync})}else await u(h.action||d,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:g,body:v,formMethod:h.method||y,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,u,i,l])}function FT(n,{relative:i}={}){let{basename:l}=T.useContext(ke),r=T.useContext(rn);Lt(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),f={...Xs(n||".",{relative:i})},h=on();if(n==null){f.search=h.search;let d=new URLSearchParams(f.search),y=d.getAll("index");if(y.some(g=>g==="")){d.delete("index"),y.filter(v=>v).forEach(v=>d.append("index",v));let g=d.toString();f.search=g?`?${g}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:an([l,f.pathname])),Us(f)}function JT(n,{relative:i}={}){let l=T.useContext(f0);Lt(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=T0("useViewTransitionState"),u=Xs(n,{relative:i});if(!l.isTransitioning)return!1;let f=Rn(l.currentLocation.pathname,r)||l.currentLocation.pathname,h=Rn(l.nextLocation.pathname,r)||l.nextLocation.pathname;return _r(u.pathname,h)!=null||_r(u.pathname,f)!=null}const $T="modulepreload",WT=function(n){return"/"+n},_y={},Oa=function(i,l,r){let u=Promise.resolve();if(l&&l.length>0){let y=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),d=h?.nonce||h?.getAttribute("nonce");u=y(l.map(p=>{if(p=WT(p),p in _y)return;_y[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":$T,g||(b.as="script"),b.crossOrigin="",b.href=p,d&&b.setAttribute("nonce",d),document.head.appendChild(b),g)return new Promise((C,M)=>{b.addEventListener("load",C),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return u.then(h=>{for(const d of h||[])d.status==="rejected"&&f(d.reason);return i().catch(f)})};const E0=(...n)=>n.filter((i,l,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===l).join(" ").trim();const IT=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const t2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,r)=>r?r.toUpperCase():l.toLowerCase());const jy=n=>{const i=t2(n);return i.charAt(0).toUpperCase()+i.slice(1)};var e2={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 n2=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const a2=T.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:u="",children:f,iconNode:h,...d},y)=>T.createElement("svg",{ref:y,...e2,width:i,height:i,stroke:n,strokeWidth:r?Number(l)*24/Number(i):l,className:E0("lucide",u),...!f&&!n2(d)&&{"aria-hidden":"true"},...d},[...h.map(([p,g])=>T.createElement(p,g)),...Array.isArray(f)?f:[f]]));const se=(n,i)=>{const l=T.forwardRef(({className:r,...u},f)=>T.createElement(a2,{ref:f,iconNode:i,className:E0(`lucide-${IT(jy(n))}`,`lucide-${n}`,r),...u}));return l.displayName=jy(n),l};const i2=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],s2=se("command",i2);const l2=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],r2=se("cpu",l2);const o2=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],u2=se("dollar-sign",o2);const c2=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],f2=se("keyboard",c2);const h2=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],d2=se("list",h2);const m2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],p2=se("loader-circle",m2);const y2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],g2=se("message-square-more",y2);const v2=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],S2=se("radar",v2);const b2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],x2=se("rotate-ccw",b2);const T2=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],E2=se("rotate-cw",T2);const A2=[["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"}]],M2=se("settings",A2);const C2=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],R2=se("sparkles",C2);const w2=[["path",{d:"M18.2 12.27 20 6H4l1.8 6.27a1 1 0 0 0 .95.73h10.5a1 1 0 0 0 .96-.73Z",key:"1pledb"}],["path",{d:"M8 13v9",key:"hmv0ci"}],["path",{d:"M16 22v-9",key:"ylnf1u"}],["path",{d:"m9 6 1 7",key:"dpdgam"}],["path",{d:"m15 6-1 7",key:"ls7zgu"}],["path",{d:"M12 6V2",key:"1pj48d"}],["path",{d:"M13 2h-2",key:"mj6ths"}]],D2=se("tower-control",w2);const O2=[["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"}]],z2=se("triangle-alert",O2);const _2=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],A0=se("wifi-off",_2);const j2=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],M0=se("wifi",j2);const N2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],V2=se("x",N2),wf=T.createContext({});function Df(n){const i=T.useRef(null);return i.current===null&&(i.current=n()),i.current}const L2=typeof window<"u",C0=L2?T.useLayoutEffect:T.useEffect,Xr=T.createContext(null);function Of(n,i){n.indexOf(i)===-1&&n.push(i)}function jr(n,i){const l=n.indexOf(i);l>-1&&n.splice(l,1)}const ln=(n,i,l)=>l>i?i:l<n?n:l;let zf=()=>{};const wn={},R0=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function w0(n){return typeof n=="object"&&n!==null}const D0=n=>/^0[^.\s]+$/u.test(n);function O0(n){let i;return()=>(i===void 0&&(i=n()),i)}const Ye=n=>n,U2=(n,i)=>l=>i(n(l)),Ks=(...n)=>n.reduce(U2),Bs=(n,i,l)=>{const r=i-n;return r===0?1:(l-n)/r};class _f{constructor(){this.subscriptions=[]}add(i){return Of(this.subscriptions,i),()=>jr(this.subscriptions,i)}notify(i,l,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](i,l,r);else for(let f=0;f<u;f++){const h=this.subscriptions[f];h&&h(i,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Oe=n=>n*1e3,Ge=n=>n/1e3;function z0(n,i){return i?n*(1e3/i):0}const _0=(n,i,l)=>(((1-3*l+3*i)*n+(3*l-6*i))*n+3*i)*n,B2=1e-7,H2=12;function q2(n,i,l,r,u){let f,h,d=0;do h=i+(l-i)/2,f=_0(h,r,u)-n,f>0?l=h:i=h;while(Math.abs(f)>B2&&++d<H2);return h}function Ps(n,i,l,r){if(n===i&&l===r)return Ye;const u=f=>q2(f,0,1,n,l);return f=>f===0||f===1?f:_0(u(f),i,r)}const j0=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,N0=n=>i=>1-n(1-i),V0=Ps(.33,1.53,.69,.99),jf=N0(V0),L0=j0(jf),U0=n=>(n*=2)<1?.5*jf(n):.5*(2-Math.pow(2,-10*(n-1))),Nf=n=>1-Math.sin(Math.acos(n)),B0=N0(Nf),H0=j0(Nf),G2=Ps(.42,0,1,1),Y2=Ps(0,0,.58,1),q0=Ps(.42,0,.58,1),k2=n=>Array.isArray(n)&&typeof n[0]!="number",G0=n=>Array.isArray(n)&&typeof n[0]=="number",Q2={linear:Ye,easeIn:G2,easeInOut:q0,easeOut:Y2,circIn:Nf,circInOut:H0,circOut:B0,backIn:jf,backInOut:L0,backOut:V0,anticipate:U0},X2=n=>typeof n=="string",Ny=n=>{if(G0(n)){zf(n.length===4);const[i,l,r,u]=n;return Ps(i,l,r,u)}else if(X2(n))return Q2[n];return n},yr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function K2(n,i){let l=new Set,r=new Set,u=!1,f=!1;const h=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function y(g){h.has(g)&&(p.schedule(g),n()),g(d)}const p={schedule:(g,v=!1,b=!1)=>{const M=b&&u?l:r;return v&&h.add(g),M.has(g)||M.add(g),g},cancel:g=>{r.delete(g),h.delete(g)},process:g=>{if(d=g,u){f=!0;return}u=!0,[l,r]=[r,l],l.forEach(y),l.clear(),u=!1,f&&(f=!1,p.process(g))}};return p}const P2=40;function Y0(n,i){let l=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,h=yr.reduce((U,k)=>(U[k]=K2(f),U),{}),{setup:d,read:y,resolveKeyframes:p,preUpdate:g,update:v,preRender:b,render:C,postRender:M}=h,D=()=>{const U=wn.useManualTiming?u.timestamp:performance.now();l=!1,wn.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(U-u.timestamp,P2),1)),u.timestamp=U,u.isProcessing=!0,d.process(u),y.process(u),p.process(u),g.process(u),v.process(u),b.process(u),C.process(u),M.process(u),u.isProcessing=!1,l&&i&&(r=!1,n(D))},w=()=>{l=!0,r=!0,u.isProcessing||n(D)};return{schedule:yr.reduce((U,k)=>{const Q=h[k];return U[k]=(it,$=!1,P=!1)=>(l||w(),Q.schedule(it,$,P)),U},{}),cancel:U=>{for(let k=0;k<yr.length;k++)h[yr[k]].cancel(U)},state:u,steps:h}}const{schedule:Ot,cancel:aa,state:ie,steps:Ec}=Y0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ye,!0);let Er;function Z2(){Er=void 0}const fe={now:()=>(Er===void 0&&fe.set(ie.isProcessing||wn.useManualTiming?ie.timestamp:performance.now()),Er),set:n=>{Er=n,queueMicrotask(Z2)}},k0=n=>i=>typeof i=="string"&&i.startsWith(n),Q0=k0("--"),F2=k0("var(--"),Vf=n=>F2(n)?J2.test(n.split("/*")[0].trim()):!1,J2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Vy(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const wi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Hs={...wi,transform:n=>ln(0,1,n)},gr={...wi,default:1},zs=n=>Math.round(n*1e5)/1e5,Lf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $2(n){return n==null}const W2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Uf=(n,i)=>l=>!!(typeof l=="string"&&W2.test(l)&&l.startsWith(n)||i&&!$2(l)&&Object.prototype.hasOwnProperty.call(l,i)),X0=(n,i,l)=>r=>{if(typeof r!="string")return r;const[u,f,h,d]=r.match(Lf);return{[n]:parseFloat(u),[i]:parseFloat(f),[l]:parseFloat(h),alpha:d!==void 0?parseFloat(d):1}},I2=n=>ln(0,255,n),Ac={...wi,transform:n=>Math.round(I2(n))},Ca={test:Uf("rgb","red"),parse:X0("red","green","blue"),transform:({red:n,green:i,blue:l,alpha:r=1})=>"rgba("+Ac.transform(n)+", "+Ac.transform(i)+", "+Ac.transform(l)+", "+zs(Hs.transform(r))+")"};function tE(n){let i="",l="",r="",u="";return n.length>5?(i=n.substring(1,3),l=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(i=n.substring(1,2),l=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),i+=i,l+=l,r+=r,u+=u),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const Kc={test:Uf("#"),parse:tE,transform:Ca.transform},Zs=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),ea=Zs("deg"),sn=Zs("%"),J=Zs("px"),eE=Zs("vh"),nE=Zs("vw"),Ly={...sn,parse:n=>sn.parse(n)/100,transform:n=>sn.transform(n*100)},vi={test:Uf("hsl","hue"),parse:X0("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:l,alpha:r=1})=>"hsla("+Math.round(n)+", "+sn.transform(zs(i))+", "+sn.transform(zs(l))+", "+zs(Hs.transform(r))+")"},Zt={test:n=>Ca.test(n)||Kc.test(n)||vi.test(n),parse:n=>Ca.test(n)?Ca.parse(n):vi.test(n)?vi.parse(n):Kc.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ca.transform(n):vi.transform(n),getAnimatableNone:n=>{const i=Zt.parse(n);return i.alpha=0,Zt.transform(i)}},aE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iE(n){return isNaN(n)&&typeof n=="string"&&(n.match(Lf)?.length||0)+(n.match(aE)?.length||0)>0}const K0="number",P0="color",sE="var",lE="var(",Uy="${}",rE=/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 Ai(n){const i=n.toString(),l=[],r={color:[],number:[],var:[]},u=[];let f=0;const d=i.replace(rE,y=>(Zt.test(y)?(r.color.push(f),u.push(P0),l.push(Zt.parse(y))):y.startsWith(lE)?(r.var.push(f),u.push(sE),l.push(y)):(r.number.push(f),u.push(K0),l.push(parseFloat(y))),++f,Uy)).split(Uy);return{values:l,split:d,indexes:r,types:u}}function oE(n){return Ai(n).values}function Z0({split:n,types:i}){const l=n.length;return r=>{let u="";for(let f=0;f<l;f++)if(u+=n[f],r[f]!==void 0){const h=i[f];h===K0?u+=zs(r[f]):h===P0?u+=Zt.transform(r[f]):u+=r[f]}return u}}function uE(n){return Z0(Ai(n))}const cE=n=>typeof n=="number"?0:Zt.test(n)?Zt.getAnimatableNone(n):n,fE=(n,i)=>typeof n=="number"?i?.trim().endsWith("/")?n:0:cE(n);function hE(n){const i=Ai(n);return Z0(i)(i.values.map((r,u)=>fE(r,i.split[u])))}const Je={test:iE,parse:oE,createTransformer:uE,getAnimatableNone:hE};function Mc(n,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?n+(i-n)*6*l:l<1/2?i:l<2/3?n+(i-n)*(2/3-l)*6:n}function dE({hue:n,saturation:i,lightness:l,alpha:r}){n/=360,i/=100,l/=100;let u=0,f=0,h=0;if(!i)u=f=h=l;else{const d=l<.5?l*(1+i):l+i-l*i,y=2*l-d;u=Mc(y,d,n+1/3),f=Mc(y,d,n),h=Mc(y,d,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(h*255),alpha:r}}function Nr(n,i){return l=>l>0?i:n}const Vt=(n,i,l)=>n+(i-n)*l,Cc=(n,i,l)=>{const r=n*n,u=l*(i*i-r)+r;return u<0?0:Math.sqrt(u)},mE=[Kc,Ca,vi],pE=n=>mE.find(i=>i.test(n));function By(n){const i=pE(n);if(!i)return!1;let l=i.parse(n);return i===vi&&(l=dE(l)),l}const Hy=(n,i)=>{const l=By(n),r=By(i);if(!l||!r)return Nr(n,i);const u={...l};return f=>(u.red=Cc(l.red,r.red,f),u.green=Cc(l.green,r.green,f),u.blue=Cc(l.blue,r.blue,f),u.alpha=Vt(l.alpha,r.alpha,f),Ca.transform(u))},Pc=new Set(["none","hidden"]);function yE(n,i){return Pc.has(n)?l=>l<=0?n:i:l=>l>=1?i:n}function gE(n,i){return l=>Vt(n,i,l)}function Bf(n){return typeof n=="number"?gE:typeof n=="string"?Vf(n)?Nr:Zt.test(n)?Hy:bE:Array.isArray(n)?F0:typeof n=="object"?Zt.test(n)?Hy:vE:Nr}function F0(n,i){const l=[...n],r=l.length,u=n.map((f,h)=>Bf(f)(f,i[h]));return f=>{for(let h=0;h<r;h++)l[h]=u[h](f);return l}}function vE(n,i){const l={...n,...i},r={};for(const u in l)n[u]!==void 0&&i[u]!==void 0&&(r[u]=Bf(n[u])(n[u],i[u]));return u=>{for(const f in r)l[f]=r[f](u);return l}}function SE(n,i){const l=[],r={color:0,var:0,number:0};for(let u=0;u<i.values.length;u++){const f=i.types[u],h=n.indexes[f][r[f]],d=n.values[h]??0;l[u]=d,r[f]++}return l}const bE=(n,i)=>{const l=Je.createTransformer(i),r=Ai(n),u=Ai(i);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Pc.has(n)&&!u.values.length||Pc.has(i)&&!r.values.length?yE(n,i):Ks(F0(SE(r,u),u.values),l):Nr(n,i)};function J0(n,i,l){return typeof n=="number"&&typeof i=="number"&&typeof l=="number"?Vt(n,i,l):Bf(n)(n,i)}const xE=n=>{const i=({timestamp:l})=>n(l);return{start:(l=!0)=>Ot.update(i,l),stop:()=>aa(i),now:()=>ie.isProcessing?ie.timestamp:fe.now()}},$0=(n,i,l=10)=>{let r="";const u=Math.max(Math.round(i/l),2);for(let f=0;f<u;f++)r+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Vr=2e4;function Hf(n){let i=0;const l=50;let r=n.next(i);for(;!r.done&&i<Vr;)i+=l,r=n.next(i);return i>=Vr?1/0:i}function TE(n,i=100,l){const r=l({...n,keyframes:[0,i]}),u=Math.min(Hf(r),Vr);return{type:"keyframes",ease:f=>r.next(u*f).value/i,duration:Ge(u)}}const Ht={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};function Zc(n,i){return n*Math.sqrt(1-i*i)}const EE=12;function AE(n,i,l){let r=l;for(let u=1;u<EE;u++)r=r-n(r)/i(r);return r}const Rc=.001;function ME({duration:n=Ht.duration,bounce:i=Ht.bounce,velocity:l=Ht.velocity,mass:r=Ht.mass}){let u,f,h=1-i;h=ln(Ht.minDamping,Ht.maxDamping,h),n=ln(Ht.minDuration,Ht.maxDuration,Ge(n)),h<1?(u=p=>{const g=p*h,v=g*n,b=g-l,C=Zc(p,h),M=Math.exp(-v);return Rc-b/C*M},f=p=>{const v=p*h*n,b=v*l+l,C=Math.pow(h,2)*Math.pow(p,2)*n,M=Math.exp(-v),D=Zc(Math.pow(p,2),h);return(-u(p)+Rc>0?-1:1)*((b-C)*M)/D}):(u=p=>{const g=Math.exp(-p*n),v=(p-l)*n+1;return-Rc+g*v},f=p=>{const g=Math.exp(-p*n),v=(l-p)*(n*n);return g*v});const d=5/n,y=AE(u,f,d);if(n=Oe(n),isNaN(y))return{stiffness:Ht.stiffness,damping:Ht.damping,duration:n};{const p=Math.pow(y,2)*r;return{stiffness:p,damping:h*2*Math.sqrt(r*p),duration:n}}}const CE=["duration","bounce"],RE=["stiffness","damping","mass"];function qy(n,i){return i.some(l=>n[l]!==void 0)}function wE(n){let i={velocity:Ht.velocity,stiffness:Ht.stiffness,damping:Ht.damping,mass:Ht.mass,isResolvedFromDuration:!1,...n};if(!qy(n,RE)&&qy(n,CE))if(i.velocity=0,n.visualDuration){const l=n.visualDuration,r=2*Math.PI/(l*1.2),u=r*r,f=2*ln(.05,1,1-(n.bounce||0))*Math.sqrt(u);i={...i,mass:Ht.mass,stiffness:u,damping:f}}else{const l=ME({...n,velocity:0});i={...i,...l,mass:Ht.mass},i.isResolvedFromDuration=!0}return i}function Lr(n=Ht.visualDuration,i=Ht.bounce){const l=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:u}=l;const f=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],d={done:!1,value:f},{stiffness:y,damping:p,mass:g,duration:v,velocity:b,isResolvedFromDuration:C}=wE({...l,velocity:-Ge(l.velocity||0)}),M=b||0,D=p/(2*Math.sqrt(y*g)),w=h-f,N=Ge(Math.sqrt(y/g)),q=Math.abs(w)<5;r||(r=q?Ht.restSpeed.granular:Ht.restSpeed.default),u||(u=q?Ht.restDelta.granular:Ht.restDelta.default);let U,k,Q,it,$,P;if(D<1)Q=Zc(N,D),it=(M+D*N*w)/Q,U=I=>{const ct=Math.exp(-D*N*I);return h-ct*(it*Math.sin(Q*I)+w*Math.cos(Q*I))},$=D*N*it+w*Q,P=D*N*w-it*Q,k=I=>Math.exp(-D*N*I)*($*Math.sin(Q*I)+P*Math.cos(Q*I));else if(D===1){U=ct=>h-Math.exp(-N*ct)*(w+(M+N*w)*ct);const I=M+N*w;k=ct=>Math.exp(-N*ct)*(N*I*ct-M)}else{const I=N*Math.sqrt(D*D-1);U=Nt=>{const Tt=Math.exp(-D*N*Nt),L=Math.min(I*Nt,300);return h-Tt*((M+D*N*w)*Math.sinh(L)+I*w*Math.cosh(L))/I};const ct=(M+D*N*w)/I,vt=D*N*ct-w*I,kt=D*N*w-ct*I;k=Nt=>{const Tt=Math.exp(-D*N*Nt),L=Math.min(I*Nt,300);return Tt*(vt*Math.sinh(L)+kt*Math.cosh(L))}}const nt={calculatedDuration:C&&v||null,velocity:I=>Oe(k(I)),next:I=>{if(!C&&D<1){const vt=Math.exp(-D*N*I),kt=Math.sin(Q*I),Nt=Math.cos(Q*I),Tt=h-vt*(it*kt+w*Nt),L=Oe(vt*($*kt+P*Nt));return d.done=Math.abs(L)<=r&&Math.abs(h-Tt)<=u,d.value=d.done?h:Tt,d}const ct=U(I);if(C)d.done=I>=v;else{const vt=Oe(k(I));d.done=Math.abs(vt)<=r&&Math.abs(h-ct)<=u}return d.value=d.done?h:ct,d},toString:()=>{const I=Math.min(Hf(nt),Vr),ct=$0(vt=>nt.next(I*vt).value,I,30);return I+"ms "+ct},toTransition:()=>{}};return nt}Lr.applyToOptions=n=>{const i=TE(n,100,Lr);return n.ease=i.ease,n.duration=Oe(i.duration),n.type="keyframes",n};const DE=5;function W0(n,i,l){const r=Math.max(i-DE,0);return z0(l-n(r),i-r)}function Fc({keyframes:n,velocity:i=0,power:l=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:h,min:d,max:y,restDelta:p=.5,restSpeed:g}){const v=n[0],b={done:!1,value:v},C=P=>d!==void 0&&P<d||y!==void 0&&P>y,M=P=>d===void 0?y:y===void 0||Math.abs(d-P)<Math.abs(y-P)?d:y;let D=l*i;const w=v+D,N=h===void 0?w:h(w);N!==w&&(D=N-v);const q=P=>-D*Math.exp(-P/r),U=P=>N+q(P),k=P=>{const nt=q(P),I=U(P);b.done=Math.abs(nt)<=p,b.value=b.done?N:I};let Q,it;const $=P=>{C(b.value)&&(Q=P,it=Lr({keyframes:[b.value,M(b.value)],velocity:W0(U,P,b.value),damping:u,stiffness:f,restDelta:p,restSpeed:g}))};return $(0),{calculatedDuration:null,next:P=>{let nt=!1;return!it&&Q===void 0&&(nt=!0,k(P),$(P)),Q!==void 0&&P>=Q?it.next(P-Q):(!nt&&k(P),b)}}}function OE(n,i,l){const r=[],u=l||wn.mix||J0,f=n.length-1;for(let h=0;h<f;h++){let d=u(n[h],n[h+1]);if(i){const y=Array.isArray(i)?i[h]||Ye:i;d=Ks(y,d)}r.push(d)}return r}function zE(n,i,{clamp:l=!0,ease:r,mixer:u}={}){const f=n.length;if(zf(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const h=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const d=OE(i,r,u),y=d.length,p=g=>{if(h&&g<n[0])return i[0];let v=0;if(y>1)for(;v<n.length-2&&!(g<n[v+1]);v++);const b=Bs(n[v],n[v+1],g);return d[v](b)};return l?g=>p(ln(n[0],n[f-1],g)):p}function _E(n,i){const l=n[n.length-1];for(let r=1;r<=i;r++){const u=Bs(0,i,r);n.push(Vt(l,1,u))}}function jE(n){const i=[0];return _E(i,n.length-1),i}function NE(n,i){return n.map(l=>l*i)}function VE(n,i){return n.map(()=>i||q0).splice(0,n.length-1)}function _s({duration:n=300,keyframes:i,times:l,ease:r="easeInOut"}){const u=k2(r)?r.map(Ny):Ny(r),f={done:!1,value:i[0]},h=NE(l&&l.length===i.length?l:jE(i),n),d=zE(h,i,{ease:Array.isArray(u)?u:VE(i,u)});return{calculatedDuration:n,next:y=>(f.value=d(y),f.done=y>=n,f)}}const LE=n=>n!==null;function qf(n,{repeat:i,repeatType:l="loop"},r,u=1){const f=n.filter(LE),d=u<0||i&&l!=="loop"&&i%2===1?0:f.length-1;return!d||r===void 0?f[d]:r}const UE={decay:Fc,inertia:Fc,tween:_s,keyframes:_s,spring:Lr};function I0(n){typeof n.type=="string"&&(n.type=UE[n.type])}class Gf{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 BE=n=>n/100;class Yf extends Gf{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!==fe.now()&&this.tick(fe.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;I0(i);const{type:l=_s,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:h=0}=i;let{keyframes:d}=i;const y=l||_s;y!==_s&&typeof d[0]!="number"&&(this.mixKeyframes=Ks(BE,J0(d[0],d[1])),d=[0,100]);const p=y({...i,keyframes:d});f==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...d].reverse(),velocity:-h})),p.calculatedDuration===null&&(p.calculatedDuration=Hf(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+u,this.totalDuration=this.resolvedDuration*(r+1)-u,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:u,mixKeyframes:f,mirroredGenerator:h,resolvedDuration:d,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:g,repeat:v,repeatType:b,repeatDelay:C,type:M,onUpdate:D,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-u/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const N=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?N<0:N>u;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let U=this.currentTime,k=r;if(v){const P=Math.min(this.currentTime,u)/d;let nt=Math.floor(P),I=P%1;!I&&P>=1&&(I=1),I===1&&nt--,nt=Math.min(nt,v+1),nt%2&&(b==="reverse"?(I=1-I,C&&(I-=C/d)):b==="mirror"&&(k=h)),U=ln(0,1,I)*d}const Q=q?{done:!1,value:g[0]}:k.next(U);f&&!q&&(Q.value=f(Q.value));let{done:it}=Q;!q&&y!==null&&(it=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&it);return $&&M!==Fc&&(Q.value=qf(g,this.options,w,this.speed)),D&&D(Q.value),$&&this.finish(),Q}then(i,l){return this.finished.then(i,l)}get duration(){return Ge(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ge(i)}get time(){return Ge(this.currentTime)}set time(i){i=Oe(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const l=this.generator.next(i).value;return W0(r=>this.generator.next(r).value,i,l)}get speed(){return this.playbackSpeed}set speed(i){const l=this.playbackSpeed!==i;l&&this.driver&&this.updateTime(fe.now()),this.playbackSpeed=i,l&&this.driver&&(this.time=Ge(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=xE,startTime:l}=this.options;this.driver||(this.driver=i(u=>this.tick(u))),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(fe.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 HE(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const Ra=n=>n*180/Math.PI,Jc=n=>{const i=Ra(Math.atan2(n[1],n[0]));return $c(i)},qE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Jc,rotateZ:Jc,skewX:n=>Ra(Math.atan(n[1])),skewY:n=>Ra(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},$c=n=>(n=n%360,n<0&&(n+=360),n),Gy=Jc,Yy=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),ky=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),GE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yy,scaleY:ky,scale:n=>(Yy(n)+ky(n))/2,rotateX:n=>$c(Ra(Math.atan2(n[6],n[5]))),rotateY:n=>$c(Ra(Math.atan2(-n[2],n[0]))),rotateZ:Gy,rotate:Gy,skewX:n=>Ra(Math.atan(n[4])),skewY:n=>Ra(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Wc(n){return n.includes("scale")?1:0}function Ic(n,i){if(!n||n==="none")return Wc(i);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(l)r=GE,u=l;else{const d=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=qE,u=d}if(!u)return Wc(i);const f=r[i],h=u[1].split(",").map(kE);return typeof f=="function"?f(h):h[f]}const YE=(n,i)=>{const{transform:l="none"}=getComputedStyle(n);return Ic(l,i)};function kE(n){return parseFloat(n.trim())}const Di=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oi=new Set(Di),Qy=n=>n===wi||n===J,QE=new Set(["x","y","z"]),XE=Di.filter(n=>!QE.has(n));function KE(n){const i=[];return XE.forEach(l=>{const r=n.getValue(l);r!==void 0&&(i.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),i}const na={width:({x:n},{paddingLeft:i="0",paddingRight:l="0"})=>n.max-n.min-parseFloat(i)-parseFloat(l),height:({y:n},{paddingTop:i="0",paddingBottom:l="0"})=>n.max-n.min-parseFloat(i)-parseFloat(l),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>Ic(i,"x"),y:(n,{transform:i})=>Ic(i,"y")};na.translateX=na.x;na.translateY=na.y;const Da=new Set;let tf=!1,ef=!1,nf=!1;function tv(){if(ef){const n=Array.from(Da).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),l=new Map;i.forEach(r=>{const u=KE(r);u.length&&(l.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const u=l.get(r);u&&u.forEach(([f,h])=>{r.getValue(f)?.set(h)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ef=!1,tf=!1,Da.forEach(n=>n.complete(nf)),Da.clear()}function ev(){Da.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(ef=!0)})}function PE(){nf=!0,ev(),tv(),nf=!1}class kf{constructor(i,l,r,u,f,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=r,this.motionValue=u,this.element=f,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Da.add(this),tf||(tf=!0,Ot.read(ev),Ot.resolveKeyframes(tv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:r,motionValue:u}=this;if(i[0]===null){const f=u?.get(),h=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&l){const d=r.readValue(l,h);d!=null&&(i[0]=d)}i[0]===void 0&&(i[0]=h),u&&f===void 0&&u.set(i[0])}HE(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Da.delete(this)}cancel(){this.state==="scheduled"&&(Da.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ZE=n=>n.startsWith("--");function nv(n,i,l){ZE(i)?n.style.setProperty(i,l):n.style[i]=l}const FE={};function av(n,i){const l=O0(n);return()=>FE[i]??l()}const JE=av(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),iv=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Os=([n,i,l,r])=>`cubic-bezier(${n}, ${i}, ${l}, ${r})`,Xy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Os([0,.65,.55,1]),circOut:Os([.55,0,1,.45]),backIn:Os([.31,.01,.66,-.59]),backOut:Os([.33,1.53,.69,.99])};function sv(n,i){if(n)return typeof n=="function"?iv()?$0(n,i):"ease-out":G0(n)?Os(n):Array.isArray(n)?n.map(l=>sv(l,i)||Xy.easeOut):Xy[n]}function $E(n,i,l,{delay:r=0,duration:u=300,repeat:f=0,repeatType:h="loop",ease:d="easeOut",times:y}={},p=void 0){const g={[i]:l};y&&(g.offset=y);const v=sv(d,u);Array.isArray(v)&&(g.easing=v);const b={delay:r,duration:u,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:h==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),n.animate(g,b)}function lv(n){return typeof n=="function"&&"applyToOptions"in n}function WE({type:n,...i}){return lv(n)&&iv()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class rv extends Gf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:r,keyframes:u,pseudoElement:f,allowFlatten:h=!1,finalKeyframe:d,onComplete:y}=i;this.isPseudoElement=!!f,this.allowFlatten=h,this.options=i,zf(typeof i.type!="string");const p=WE(i);this.animation=$E(l,r,u,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const g=qf(u,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(g),nv(l,r,g),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return Ge(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ge(i)}get time(){return Ge(Number(this.animation.currentTime)||0)}set time(i){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Oe(i),l&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:l,rangeEnd:r,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&JE()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),Ye):u(this)}}const ov={anticipate:U0,backInOut:L0,circInOut:H0};function IE(n){return n in ov}function tA(n){typeof n.ease=="string"&&IE(n.ease)&&(n.ease=ov[n.ease])}const wc=10;class eA extends rv{constructor(i){tA(i),I0(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:r,onComplete:u,element:f,...h}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const d=new Yf({...h,autoplay:!1}),y=Math.max(wc,fe.now()-this.startTime),p=ln(0,wc,y-wc),g=d.sample(y).value,{name:v}=this.options;f&&v&&nv(f,v,g),l.setWithVelocity(d.sample(Math.max(0,y-p)).value,g,p),d.stop()}}const Ky=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Je.test(n)||n==="0")&&!n.startsWith("url("));function nA(n){const i=n[0];if(n.length===1)return!0;for(let l=0;l<n.length;l++)if(n[l]!==i)return!0}function aA(n,i,l,r){const u=n[0];if(u===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],h=Ky(u,i),d=Ky(f,i);return!h||!d?!1:nA(n)||(l==="spring"||lv(l))&&r}function af(n){n.duration=0,n.type="keyframes"}const iA=new Set(["opacity","clipPath","filter","transform"]),sA=O0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function lA(n){const{motionValue:i,name:l,repeatDelay:r,repeatType:u,damping:f,type:h}=n;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=i.owner.getProps();return sA()&&l&&iA.has(l)&&(l!=="transform"||!p)&&!y&&!r&&u!=="mirror"&&f!==0&&h!=="inertia"}const rA=40;class oA extends Gf{constructor({autoplay:i=!0,delay:l=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:h="loop",keyframes:d,name:y,motionValue:p,element:g,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=fe.now();const b={autoplay:i,delay:l,type:r,repeat:u,repeatDelay:f,repeatType:h,name:y,motionValue:p,element:g,...v},C=g?.KeyframeResolver||kf;this.keyframeResolver=new C(d,(M,D,w)=>this.onKeyframesResolved(M,D,b,!w),y,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,r,u){this.keyframeResolver=void 0;const{name:f,type:h,velocity:d,delay:y,isHandoff:p,onUpdate:g}=r;this.resolvedAt=fe.now(),aA(i,f,h,d)||((wn.instantAnimations||!y)&&g?.(qf(i,r,l)),i[0]=i[i.length-1],af(r),r.repeat=0);const b={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>rA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:i},C=!p&&lA(b),M=b.motionValue?.owner?.current,D=C?new eA({...b,element:M}):new Yf(b);D.finished.then(()=>{this.notifyFinished()}).catch(Ye),this.pendingTimeline&&(this.stopTimeline=D.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=D}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(),PE()),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()}}function uv(n,i,l,r=0,u=1){const f=Array.from(n).sort((p,g)=>p.sortNodePosition(g)).indexOf(i),h=n.size,d=(h-1)*r;return typeof l=="function"?l(f,h):u===1?f*r:d-f*r}const uA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cA(n){const i=uA.exec(n);if(!i)return[,];const[,l,r,u]=i;return[`--${l??r}`,u]}function cv(n,i,l=1){const[r,u]=cA(n);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const h=f.trim();return R0(h)?parseFloat(h):h}return Vf(u)?cv(u,i,l+1):u}const fA={type:"spring",stiffness:500,damping:25,restSpeed:10},hA=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),dA={type:"keyframes",duration:.8},mA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pA=(n,{keyframes:i})=>i.length>2?dA:Oi.has(n)?n.startsWith("scale")?hA(i[1]):fA:mA,yA=n=>n!==null;function gA(n,{repeat:i,repeatType:l="loop"},r){const u=n.filter(yA),f=i&&l!=="loop"&&i%2===1?0:u.length-1;return u[f]}function fv(n,i){if(n?.inherit&&i){const{inherit:l,...r}=n;return{...i,...r}}return n}function Qf(n,i){const l=n?.[i]??n?.default??n;return l!==n?fv(l,n):l}function vA({when:n,delay:i,delayChildren:l,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:h,repeatDelay:d,from:y,elapsed:p,...g}){return!!Object.keys(g).length}const Xf=(n,i,l,r={},u,f)=>h=>{const d=Qf(r,n)||{},y=d.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Oe(y);const g={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...d,delay:-p,onUpdate:b=>{i.set(b),d.onUpdate&&d.onUpdate(b)},onComplete:()=>{h(),d.onComplete&&d.onComplete()},name:n,motionValue:i,element:f?void 0:u};vA(d)||Object.assign(g,pA(n,g)),g.duration&&(g.duration=Oe(g.duration)),g.repeatDelay&&(g.repeatDelay=Oe(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(af(g),g.delay===0&&(v=!0)),(wn.instantAnimations||wn.skipAnimations||u?.shouldSkipAnimations)&&(v=!0,af(g),g.delay=0),g.allowFlatten=!d.type&&!d.ease,v&&!f&&i.get()!==void 0){const b=gA(g.keyframes,d);if(b!==void 0){Ot.update(()=>{g.onUpdate(b),g.onComplete()});return}}return d.isSync?new Yf(g):new oA(g)};function Py(n){const i=[{},{}];return n?.values.forEach((l,r)=>{i[0][r]=l.get(),i[1][r]=l.getVelocity()}),i}function Kf(n,i,l,r){if(typeof i=="function"){const[u,f]=Py(r);i=i(l!==void 0?l:n.custom,u,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[u,f]=Py(r);i=i(l!==void 0?l:n.custom,u,f)}return i}function Ei(n,i,l){const r=n.getProps();return Kf(r,i,l!==void 0?l:r.custom,n)}const hv=new Set(["width","height","top","left","right","bottom",...Di]),Zy=30,SA=n=>!isNaN(parseFloat(n));class bA{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const u=fe.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=fe.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=SA(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 _f);const r=this.events[i].add(l);return i==="change"?()=>{r(),Ot.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=fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Zy)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Zy);return z0(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 Mi(n,i){return new bA(n,i)}const sf=n=>Array.isArray(n);function xA(n,i,l){n.hasValue(i)?n.getValue(i).set(l):n.addValue(i,Mi(l))}function TA(n){return sf(n)?n[n.length-1]||0:n}function EA(n,i){const l=Ei(n,i);let{transitionEnd:r={},transition:u={},...f}=l||{};f={...f,...r};for(const h in f){const d=TA(f[h]);xA(n,h,d)}}const re=n=>!!(n&&n.getVelocity);function AA(n){return!!(re(n)&&n.add)}function lf(n,i){const l=n.getValue("willChange");if(AA(l))return l.add(i);if(!l&&wn.WillChange){const r=new wn.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function Pf(n){return n.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const MA="framerAppearId",dv="data-"+Pf(MA);function mv(n){return n.props[dv]}function CA({protectedKeys:n,needsAnimating:i},l){const r=n.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,r}function pv(n,i,{delay:l=0,transitionOverride:r,type:u}={}){let{transition:f,transitionEnd:h,...d}=i;const y=n.getDefaultTransition();f=f?fv(f,y):y;const p=f?.reduceMotion;r&&(f=r);const g=[],v=u&&n.animationState&&n.animationState.getState()[u];for(const b in d){const C=n.getValue(b,n.latestValues[b]??null),M=d[b];if(M===void 0||v&&CA(v,b))continue;const D={delay:l,...Qf(f||{},b)},w=C.get();if(w!==void 0&&!C.isAnimating&&!Array.isArray(M)&&M===w&&!D.velocity)continue;let N=!1;if(window.MotionHandoffAnimation){const k=mv(n);if(k){const Q=window.MotionHandoffAnimation(k,b,Ot);Q!==null&&(D.startTime=Q,N=!0)}}lf(n,b);const q=p??n.shouldReduceMotion;C.start(Xf(b,C,M,q&&hv.has(b)?{type:!1}:D,n,N));const U=C.animation;U&&g.push(U)}if(h){const b=()=>Ot.update(()=>{h&&EA(n,h)});g.length?Promise.all(g).then(b):b()}return g}function rf(n,i,l={}){const r=Ei(n,i,l.type==="exit"?n.presenceContext?.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(u=l.transitionOverride);const f=r?()=>Promise.all(pv(n,r,l)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:v}=u;return RA(n,i,y,p,g,v,l)}:()=>Promise.resolve(),{when:d}=u;if(d){const[y,p]=d==="beforeChildren"?[f,h]:[h,f];return y().then(()=>p())}else return Promise.all([f(),h(l.delay)])}function RA(n,i,l=0,r=0,u=0,f=1,h){const d=[];for(const y of n.variantChildren)y.notify("AnimationStart",i),d.push(rf(y,i,{...h,delay:l+(typeof r=="function"?0:r)+uv(n.variantChildren,y,r,u,f)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(d)}function wA(n,i,l={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const u=i.map(f=>rf(n,f,l));r=Promise.all(u)}else if(typeof i=="string")r=rf(n,i,l);else{const u=typeof i=="function"?Ei(n,i,l.custom):i;r=Promise.all(pv(n,u,l))}return r.then(()=>{n.notify("AnimationComplete",i)})}const DA={test:n=>n==="auto",parse:n=>n},yv=n=>i=>i.test(n),gv=[wi,J,sn,ea,nE,eE,DA],Fy=n=>gv.find(yv(n));function OA(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||D0(n):!0}const zA=new Set(["brightness","contrast","saturate","opacity"]);function _A(n){const[i,l]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=l.match(Lf)||[];if(!r)return n;const u=l.replace(r,"");let f=zA.has(i)?1:0;return r!==l&&(f*=100),i+"("+f+u+")"}const jA=/\b([a-z-]*)\(.*?\)/gu,of={...Je,getAnimatableNone:n=>{const i=n.match(jA);return i?i.map(_A).join(" "):n}},uf={...Je,getAnimatableNone:n=>{const i=Je.parse(n);return Je.createTransformer(n)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Jy={...wi,transform:Math.round},NA={rotate:ea,rotateX:ea,rotateY:ea,rotateZ:ea,scale:gr,scaleX:gr,scaleY:gr,scaleZ:gr,skew:ea,skewX:ea,skewY:ea,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Hs,originX:Ly,originY:Ly,originZ:J},Zf={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,...NA,zIndex:Jy,fillOpacity:Hs,strokeOpacity:Hs,numOctaves:Jy},VA={...Zf,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:of,WebkitFilter:of,mask:uf,WebkitMask:uf},vv=n=>VA[n],LA=new Set([of,uf]);function Sv(n,i){let l=vv(n);return LA.has(l)||(l=Je),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const UA=new Set(["auto","none","0"]);function BA(n,i,l){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!UA.has(f)&&Ai(f).values.length&&(u=n[r]),r++}if(u&&l)for(const f of i)n[f]=Sv(l,u)}class HA extends kf{constructor(i,l,r,u,f){super(i,l,r,u,f,!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 v=i[g];if(typeof v=="string"&&(v=v.trim(),Vf(v))){const b=cv(v,l.current);b!==void 0&&(i[g]=b),g===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!hv.has(r)||i.length!==2)return;const[u,f]=i,h=Fy(u),d=Fy(f),y=Vy(u),p=Vy(f);if(y!==p&&na[r]){this.needsMeasurement=!0;return}if(h!==d)if(Qy(h)&&Qy(d))for(let g=0;g<i.length;g++){const v=i[g];typeof v=="string"&&(i[g]=parseFloat(v))}else na[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,r=[];for(let u=0;u<i.length;u++)(i[u]===null||OA(i[u]))&&r.push(u);r.length&&BA(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=na[r](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const u=l[l.length-1];u!==void 0&&i.getValue(r,u).jump(u,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const u=i.getValue(l);u&&u.jump(this.measuredOrigin,!1);const f=r.length-1,h=r[f];r[f]=na[l](i.measureViewportBox(),window.getComputedStyle(i.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,y])=>{i.getValue(d).set(y)}),this.resolveNoneKeyframes()}}const qA=new Set(["opacity","clipPath","filter","transform"]);function bv(n,i,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const u=l?.[n]??r.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(r=>r!=null)}const xv=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function Ar(n){return w0(n)&&"offsetHeight"in n}const{schedule:Ff}=Y0(queueMicrotask,!1),Ze={x:!1,y:!1};function Tv(){return Ze.x||Ze.y}function GA(n){return n==="x"||n==="y"?Ze[n]?null:(Ze[n]=!0,()=>{Ze[n]=!1}):Ze.x||Ze.y?null:(Ze.x=Ze.y=!0,()=>{Ze.x=Ze.y=!1})}function Ev(n,i){const l=bv(n),r=new AbortController,u={passive:!0,...i,signal:r.signal};return[l,u,()=>r.abort()]}function YA(n){return!(n.pointerType==="touch"||Tv())}function kA(n,i,l={}){const[r,u,f]=Ev(n,l);return r.forEach(h=>{let d=!1,y=!1,p;const g=()=>{h.removeEventListener("pointerleave",M)},v=w=>{p&&(p(w),p=void 0),g()},b=w=>{d=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,v(w))},C=()=>{d=!0,window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",b,u)},M=w=>{if(w.pointerType!=="touch"){if(d){y=!0;return}v(w)}},D=w=>{if(!YA(w))return;y=!1;const N=i(h,w);typeof N=="function"&&(p=N,h.addEventListener("pointerleave",M,u))};h.addEventListener("pointerenter",D,u),h.addEventListener("pointerdown",C,u)}),f}const Av=(n,i)=>i?n===i?!0:Av(n,i.parentElement):!1,Jf=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,QA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XA(n){return QA.has(n.tagName)||n.isContentEditable===!0}const KA=new Set(["INPUT","SELECT","TEXTAREA"]);function PA(n){return KA.has(n.tagName)||n.isContentEditable===!0}const Mr=new WeakSet;function $y(n){return i=>{i.key==="Enter"&&n(i)}}function Dc(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const ZA=(n,i)=>{const l=n.currentTarget;if(!l)return;const r=$y(()=>{if(Mr.has(l))return;Dc(l,"down");const u=$y(()=>{Dc(l,"up")}),f=()=>Dc(l,"cancel");l.addEventListener("keyup",u,i),l.addEventListener("blur",f,i)});l.addEventListener("keydown",r,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),i)};function Wy(n){return Jf(n)&&!Tv()}const Iy=new WeakSet;function FA(n,i,l={}){const[r,u,f]=Ev(n,l),h=d=>{const y=d.currentTarget;if(!Wy(d)||Iy.has(d))return;Mr.add(y),l.stopPropagation&&Iy.add(d);const p=i(y,d),g=(C,M)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),Mr.has(y)&&Mr.delete(y),Wy(C)&&typeof p=="function"&&p(C,{success:M})},v=C=>{g(C,y===window||y===document||l.useGlobalTarget||Av(y,C.target))},b=C=>{g(C,!1)};window.addEventListener("pointerup",v,u),window.addEventListener("pointercancel",b,u)};return r.forEach(d=>{(l.useGlobalTarget?window:d).addEventListener("pointerdown",h,u),Ar(d)&&(d.addEventListener("focus",p=>ZA(p,u)),!XA(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),f}function $f(n){return w0(n)&&"ownerSVGElement"in n}const Cr=new WeakMap;let Rr;const Mv=(n,i,l)=>(r,u)=>u&&u[0]?u[0][n+"Size"]:$f(r)&&"getBBox"in r?r.getBBox()[i]:r[l],JA=Mv("inline","width","offsetWidth"),$A=Mv("block","height","offsetHeight");function WA({target:n,borderBoxSize:i}){Cr.get(n)?.forEach(l=>{l(n,{get width(){return JA(n,i)},get height(){return $A(n,i)}})})}function IA(n){n.forEach(WA)}function tM(){typeof ResizeObserver>"u"||(Rr=new ResizeObserver(IA))}function eM(n,i){Rr||tM();const l=bv(n);return l.forEach(r=>{let u=Cr.get(r);u||(u=new Set,Cr.set(r,u)),u.add(i),Rr?.observe(r)}),()=>{l.forEach(r=>{const u=Cr.get(r);u?.delete(i),u?.size||Rr?.unobserve(r)})}}const wr=new Set;let Si;function nM(){Si=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};wr.forEach(i=>i(n))},window.addEventListener("resize",Si)}function aM(n){return wr.add(n),Si||nM(),()=>{wr.delete(n),!wr.size&&typeof Si=="function"&&(window.removeEventListener("resize",Si),Si=void 0)}}function tg(n,i){return typeof n=="function"?aM(n):eM(n,i)}function iM(n){return $f(n)&&n.tagName==="svg"}const sM=[...gv,Zt,Je],lM=n=>sM.find(yv(n)),eg=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:eg(),y:eg()}),ng=()=>({min:0,max:0}),Jt=()=>({x:ng(),y:ng()}),rM=new WeakMap;function Kr(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function qs(n){return typeof n=="string"||Array.isArray(n)}const Wf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],If=["initial",...Wf];function Pr(n){return Kr(n.animate)||If.some(i=>qs(n[i]))}function Cv(n){return!!(Pr(n)||n.variants)}function oM(n,i,l){for(const r in i){const u=i[r],f=l[r];if(re(u))n.addValue(r,u);else if(re(f))n.addValue(r,Mi(u,{owner:n}));else if(f!==u)if(n.hasValue(r)){const h=n.getValue(r);h.liveStyle===!0?h.jump(u):h.hasAnimated||h.set(u)}else{const h=n.getStaticValue(r);n.addValue(r,Mi(h!==void 0?h:u,{owner:n}))}}for(const r in l)i[r]===void 0&&n.removeValue(r);return i}const cf={current:null},Rv={current:!1},uM=typeof window<"u";function cM(){if(Rv.current=!0,!!uM)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>cf.current=n.matches;n.addEventListener("change",i),i()}else cf.current=!1}const ag=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ur={};function wv(n){Ur=n}function fM(){return Ur}class hM{scrapeMotionValuesFromProps(i,l,r){return{}}constructor({parent:i,props:l,presenceContext:r,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:h,visualState:d},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=kf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 C=fe.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,Ot.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=g,this.parent=i,this.props=l,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=y,this.blockInitialAnimation=!!h,this.isControllingVariants=Pr(l),this.isVariantNode=Cv(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...b}=this.scrapeMotionValuesFromProps(l,{},this);for(const C in b){const M=b[C];p[C]!==void 0&&re(M)&&M.set(p[C])}}mount(i){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=i,rM.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)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Rv.current||cM(),this.shouldReduceMotion=cf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),aa(this.notifyUpdate),aa(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){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),l.accelerate&&qA.has(i)&&this.current instanceof HTMLElement){const{factory:h,keyframes:d,times:y,ease:p,duration:g}=l.accelerate,v=new rv({element:this.current,name:i,keyframes:d,times:y,ease:p,duration:Oe(g)}),b=h(v);this.valueSubscriptions.set(i,()=>{b(),v.cancel()});return}const r=Oi.has(i);r&&this.onBindTransform&&this.onBindTransform();const u=l.on("change",h=>{this.latestValues[i]=h,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{u(),f&&f(),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 Ur){const l=Ur[i];if(!l)continue;const{isEnabled:r,Feature:u}=l;if(!this.features[i]&&u&&r(this.props)&&(this.features[i]=new u(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jt()}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<ag.length;r++){const u=ag[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,h=i[f];h&&(this.propEventSubscriptions[u]=this.on(u,h))}this.prevMotionValues=oM(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=Mi(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"&&(R0(r)||D0(r))?r=parseFloat(r):!lM(r)&&Je.test(l)&&(r=Sv(i,l)),this.setBaseTarget(i,re(r)?r.get():r)),re(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 f=Kf(this.props,l,this.presenceContext?.custom);f&&(r=f[i])}if(l&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,i);return u!==void 0&&!re(u)?u:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new _f),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Ff.render(this.render)}}class Dv extends hM{constructor(){super(...arguments),this.KeyframeResolver=HA}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const r=i.style;return r?r[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;re(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class ia{constructor(i){this.isMounted=!1,this.node=i}update(){}}function Ov({top:n,left:i,right:l,bottom:r}){return{x:{min:i,max:l},y:{min:n,max:r}}}function dM({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function mM(n,i){if(!i)return n;const l=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function Oc(n){return n===void 0||n===1}function ff({scale:n,scaleX:i,scaleY:l}){return!Oc(n)||!Oc(i)||!Oc(l)}function Ma(n){return ff(n)||zv(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function zv(n){return ig(n.x)||ig(n.y)}function ig(n){return n&&n!=="0%"}function Br(n,i,l){const r=n-l,u=i*r;return l+u}function sg(n,i,l,r,u){return u!==void 0&&(n=Br(n,u,r)),Br(n,l,r)+i}function hf(n,i=0,l=1,r,u){n.min=sg(n.min,i,l,r,u),n.max=sg(n.max,i,l,r,u)}function _v(n,{x:i,y:l}){hf(n.x,i.translate,i.scale,i.originPoint),hf(n.y,l.translate,l.scale,l.originPoint)}const lg=.999999999999,rg=1.0000000000001;function pM(n,i,l,r=!1){const u=l.length;if(!u)return;i.x=i.y=1;let f,h;for(let d=0;d<u;d++){f=l[d],h=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ti(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),h&&(i.x*=h.x.scale,i.y*=h.y.scale,_v(n,h)),r&&Ma(f.latestValues)&&Ti(n,f.latestValues,f.layout?.layoutBox))}i.x<rg&&i.x>lg&&(i.x=1),i.y<rg&&i.y>lg&&(i.y=1)}function xi(n,i){n.min=n.min+i,n.max=n.max+i}function og(n,i,l,r,u=.5){const f=Vt(n.min,n.max,u);hf(n,i,l,f,r)}function ug(n,i){return typeof n=="string"?parseFloat(n)/100*(i.max-i.min):n}function Ti(n,i,l){const r=l??n;og(n.x,ug(i.x,r.x),i.scaleX,i.scale,i.originX),og(n.y,ug(i.y,r.y),i.scaleY,i.scale,i.originY)}function jv(n,i){return Ov(mM(n.getBoundingClientRect(),i))}function yM(n,i,l){const r=jv(n,l),{scroll:u}=i;return u&&(xi(r.x,u.offset.x),xi(r.y,u.offset.y)),r}const gM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vM=Di.length;function SM(n,i,l){let r="",u=!0;for(let f=0;f<vM;f++){const h=Di[f],d=n[h];if(d===void 0)continue;let y=!0;if(typeof d=="number")y=d===(h.startsWith("scale")?1:0);else{const p=parseFloat(d);y=h.startsWith("scale")?p===1:p===0}if(!y||l){const p=xv(d,Zf[h]);if(!y){u=!1;const g=gM[h]||h;r+=`${g}(${p}) `}l&&(i[h]=p)}}return r=r.trim(),l?r=l(i,u?"":r):u&&(r="none"),r}function th(n,i,l){const{style:r,vars:u,transformOrigin:f}=n;let h=!1,d=!1;for(const y in i){const p=i[y];if(Oi.has(y)){h=!0;continue}else if(Q0(y)){u[y]=p;continue}else{const g=xv(p,Zf[y]);y.startsWith("origin")?(d=!0,f[y]=g):r[y]=g}}if(i.transform||(h||l?r.transform=SM(i,n.transform,l):r.transform&&(r.transform="none")),d){const{originX:y="50%",originY:p="50%",originZ:g=0}=f;r.transformOrigin=`${y} ${p} ${g}`}}function Nv(n,{style:i,vars:l},r,u){const f=n.style;let h;for(h in i)f[h]=i[h];u?.applyProjectionStyles(f,r);for(h in l)f.setProperty(h,l[h])}function cg(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const ws={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(J.test(n))n=parseFloat(n);else return n;const l=cg(n,i.target.x),r=cg(n,i.target.y);return`${l}% ${r}%`}},bM={correct:(n,{treeScale:i,projectionDelta:l})=>{const r=n,u=Je.parse(n);if(u.length>5)return r;const f=Je.createTransformer(n),h=typeof u[0]!="number"?1:0,d=l.x.scale*i.x,y=l.y.scale*i.y;u[0+h]/=d,u[1+h]/=y;const p=Vt(d,y,.5);return typeof u[2+h]=="number"&&(u[2+h]/=p),typeof u[3+h]=="number"&&(u[3+h]/=p),f(u)}},df={borderRadius:{...ws,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ws,borderTopRightRadius:ws,borderBottomLeftRadius:ws,borderBottomRightRadius:ws,boxShadow:bM};function Vv(n,{layout:i,layoutId:l}){return Oi.has(n)||n.startsWith("origin")||(i||l!==void 0)&&(!!df[n]||n==="opacity")}function eh(n,i,l){const r=n.style,u=i?.style,f={};if(!r)return f;for(const h in r)(re(r[h])||u&&re(u[h])||Vv(h,n)||l?.getValue(h)?.liveStyle!==void 0)&&(f[h]=r[h]);return f}function xM(n){return window.getComputedStyle(n)}class TM extends Dv{constructor(){super(...arguments),this.type="html",this.renderInstance=Nv}readValueFromInstance(i,l){if(Oi.has(l))return this.projection?.isProjecting?Wc(l):YE(i,l);{const r=xM(i),u=(Q0(l)?r.getPropertyValue(l):r[l])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(i,{transformPagePoint:l}){return jv(i,l)}build(i,l,r){th(i,l,r.transformTemplate)}scrapeMotionValuesFromProps(i,l,r){return eh(i,l,r)}}const EM={offset:"stroke-dashoffset",array:"stroke-dasharray"},AM={offset:"strokeDashoffset",array:"strokeDasharray"};function MM(n,i,l=1,r=0,u=!0){n.pathLength=1;const f=u?EM:AM;n[f.offset]=`${-r}`,n[f.array]=`${i} ${l}`}const CM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Lv(n,{attrX:i,attrY:l,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:h=0,...d},y,p,g){if(th(n,d,p),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:b}=n;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=g?.transformBox??"fill-box",delete v.transformBox);for(const C of CM)v[C]!==void 0&&(b[C]=v[C],delete v[C]);i!==void 0&&(v.x=i),l!==void 0&&(v.y=l),r!==void 0&&(v.scale=r),u!==void 0&&MM(v,u,f,h,!1)}const Uv=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"]),Bv=n=>typeof n=="string"&&n.toLowerCase()==="svg";function RM(n,i,l,r){Nv(n,i,void 0,r);for(const u in i.attrs)n.setAttribute(Uv.has(u)?u:Pf(u),i.attrs[u])}function Hv(n,i,l){const r=eh(n,i,l);for(const u in n)if(re(n[u])||re(i[u])){const f=Di.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}class wM extends Dv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Jt}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Oi.has(l)){const r=vv(l);return r&&r.default||0}return l=Uv.has(l)?l:Pf(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,r){return Hv(i,l,r)}build(i,l,r){Lv(i,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,l,r,u){RM(i,l,r,u)}mount(i){this.isSVGTag=Bv(i.tagName),super.mount(i)}}const DM=If.length;function qv(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?qv(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const i={};for(let l=0;l<DM;l++){const r=If[l],u=n.props[r];(qs(u)||u===!1)&&(i[r]=u)}return i}function Gv(n,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==n.length)return!1;for(let r=0;r<l;r++)if(i[r]!==n[r])return!1;return!0}const OM=[...Wf].reverse(),zM=Wf.length;function _M(n){return i=>Promise.all(i.map(({animation:l,options:r})=>wA(n,l,r)))}function jM(n){let i=_M(n),l=fg(),r=!0,u=!1;const f=p=>(g,v)=>{const b=Ei(n,v,p==="exit"?n.presenceContext?.custom:void 0);if(b){const{transition:C,transitionEnd:M,...D}=b;g={...g,...D,...M}}return g};function h(p){i=p(n)}function d(p){const{props:g}=n,v=qv(n.parent)||{},b=[],C=new Set;let M={},D=1/0;for(let N=0;N<zM;N++){const q=OM[N],U=l[q],k=g[q]!==void 0?g[q]:v[q],Q=qs(k),it=q===p?U.isActive:null;it===!1&&(D=N);let $=k===v[q]&&k!==g[q]&&Q;if($&&(r||u)&&n.manuallyAnimateOnMount&&($=!1),U.protectedKeys={...M},!U.isActive&&it===null||!k&&!U.prevProp||Kr(k)||typeof k=="boolean")continue;if(q==="exit"&&U.isActive&&it!==!0){U.prevResolvedValues&&(M={...M,...U.prevResolvedValues});continue}const P=NM(U.prevProp,k);let nt=P||q===p&&U.isActive&&!$&&Q||N>D&&Q,I=!1;const ct=Array.isArray(k)?k:[k];let vt=ct.reduce(f(q),{});it===!1&&(vt={});const{prevResolvedValues:kt={}}=U,Nt={...kt,...vt},Tt=Z=>{nt=!0,C.has(Z)&&(I=!0,C.delete(Z)),U.needsAnimating[Z]=!0;const ot=n.getValue(Z);ot&&(ot.liveStyle=!1)};for(const Z in Nt){const ot=vt[Z],yt=kt[Z];if(M.hasOwnProperty(Z))continue;let A=!1;sf(ot)&&sf(yt)?A=!Gv(ot,yt):A=ot!==yt,A?ot!=null?Tt(Z):C.add(Z):ot!==void 0&&C.has(Z)?Tt(Z):U.protectedKeys[Z]=!0}U.prevProp=k,U.prevResolvedValues=vt,U.isActive&&(M={...M,...vt}),(r||u)&&n.blockInitialAnimation&&(nt=!1);const L=$&&P;nt&&(!L||I)&&b.push(...ct.map(Z=>{const ot={type:q};if(typeof Z=="string"&&(r||u)&&!L&&n.manuallyAnimateOnMount&&n.parent){const{parent:yt}=n,A=Ei(yt,Z);if(yt.enteringChildren&&A){const{delayChildren:Y}=A.transition||{};ot.delay=uv(yt.enteringChildren,n,Y)}}return{animation:Z,options:ot}}))}if(C.size){const N={};if(typeof g.initial!="boolean"){const q=Ei(n,Array.isArray(g.initial)?g.initial[0]:g.initial);q&&q.transition&&(N.transition=q.transition)}C.forEach(q=>{const U=n.getBaseTarget(q),k=n.getValue(q);k&&(k.liveStyle=!0),N[q]=U??null}),b.push({animation:N})}let w=!!b.length;return r&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(w=!1),r=!1,u=!1,w?i(b):Promise.resolve()}function y(p,g){if(l[p].isActive===g)return Promise.resolve();n.variantChildren?.forEach(b=>b.animationState?.setActive(p,g)),l[p].isActive=g;const v=d(p);for(const b in l)l[b].protectedKeys={};return v}return{animateChanges:d,setActive:y,setAnimateFunction:h,getState:()=>l,reset:()=>{l=fg(),u=!0}}}function NM(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!Gv(i,n):!1}function Aa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fg(){return{animate:Aa(!0),whileInView:Aa(),whileHover:Aa(),whileTap:Aa(),whileDrag:Aa(),whileFocus:Aa(),exit:Aa()}}function hg(n,i){n.min=i.min,n.max=i.max}function Pe(n,i){hg(n.x,i.x),hg(n.y,i.y)}function dg(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}const Yv=1e-4,VM=1-Yv,LM=1+Yv,kv=.01,UM=0-kv,BM=0+kv;function he(n){return n.max-n.min}function HM(n,i,l){return Math.abs(n-i)<=l}function mg(n,i,l,r=.5){n.origin=r,n.originPoint=Vt(i.min,i.max,n.origin),n.scale=he(l)/he(i),n.translate=Vt(l.min,l.max,n.origin)-n.originPoint,(n.scale>=VM&&n.scale<=LM||isNaN(n.scale))&&(n.scale=1),(n.translate>=UM&&n.translate<=BM||isNaN(n.translate))&&(n.translate=0)}function js(n,i,l,r){mg(n.x,i.x,l.x,r?r.originX:void 0),mg(n.y,i.y,l.y,r?r.originY:void 0)}function pg(n,i,l){n.min=l.min+i.min,n.max=n.min+he(i)}function qM(n,i,l){pg(n.x,i.x,l.x),pg(n.y,i.y,l.y)}function yg(n,i,l){n.min=i.min-l.min,n.max=n.min+he(i)}function Hr(n,i,l){yg(n.x,i.x,l.x),yg(n.y,i.y,l.y)}function gg(n,i,l,r,u){return n-=i,n=Br(n,1/l,r),u!==void 0&&(n=Br(n,1/u,r)),n}function GM(n,i=0,l=1,r=.5,u,f=n,h=n){if(sn.test(i)&&(i=parseFloat(i),i=Vt(h.min,h.max,i/100)-h.min),typeof i!="number")return;let d=Vt(f.min,f.max,r);n===f&&(d-=i),n.min=gg(n.min,i,l,d,u),n.max=gg(n.max,i,l,d,u)}function vg(n,i,[l,r,u],f,h){GM(n,i[l],i[r],i[u],i.scale,f,h)}const YM=["x","scaleX","originX"],kM=["y","scaleY","originY"];function Sg(n,i,l,r){vg(n.x,i,YM,l?l.x:void 0,r?r.x:void 0),vg(n.y,i,kM,l?l.y:void 0,r?r.y:void 0)}function bg(n){return n.translate===0&&n.scale===1}function Qv(n){return bg(n.x)&&bg(n.y)}function xg(n,i){return n.min===i.min&&n.max===i.max}function QM(n,i){return xg(n.x,i.x)&&xg(n.y,i.y)}function Tg(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function Xv(n,i){return Tg(n.x,i.x)&&Tg(n.y,i.y)}function Eg(n){return he(n.x)/he(n.y)}function Ag(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}function nn(n){return[n("x"),n("y")]}function XM(n,i,l){let r="";const u=n.x.translate/i.x,f=n.y.translate/i.y,h=l?.z||0;if((u||f||h)&&(r=`translate3d(${u}px, ${f}px, ${h}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:g,rotateX:v,rotateY:b,skewX:C,skewY:M}=l;p&&(r=`perspective(${p}px) ${r}`),g&&(r+=`rotate(${g}deg) `),v&&(r+=`rotateX(${v}deg) `),b&&(r+=`rotateY(${b}deg) `),C&&(r+=`skewX(${C}deg) `),M&&(r+=`skewY(${M}deg) `)}const d=n.x.scale*i.x,y=n.y.scale*i.y;return(d!==1||y!==1)&&(r+=`scale(${d}, ${y})`),r||"none"}const Kv=["TopLeft","TopRight","BottomLeft","BottomRight"],KM=Kv.length,Mg=n=>typeof n=="string"?parseFloat(n):n,Cg=n=>typeof n=="number"||J.test(n);function PM(n,i,l,r,u,f){u?(n.opacity=Vt(0,l.opacity??1,ZM(r)),n.opacityExit=Vt(i.opacity??1,0,FM(r))):f&&(n.opacity=Vt(i.opacity??1,l.opacity??1,r));for(let h=0;h<KM;h++){const d=`border${Kv[h]}Radius`;let y=Rg(i,d),p=Rg(l,d);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Cg(y)===Cg(p)?(n[d]=Math.max(Vt(Mg(y),Mg(p),r),0),(sn.test(p)||sn.test(y))&&(n[d]+="%")):n[d]=p}(i.rotate||l.rotate)&&(n.rotate=Vt(i.rotate||0,l.rotate||0,r))}function Rg(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const ZM=Pv(0,.5,B0),FM=Pv(.5,.95,Ye);function Pv(n,i,l){return r=>r<n?0:r>i?1:l(Bs(n,i,r))}function JM(n,i,l){const r=re(n)?n:Mi(n);return r.start(Xf("",r,i,l)),r.animation}function Gs(n,i,l,r={passive:!0}){return n.addEventListener(i,l,r),()=>n.removeEventListener(i,l)}const $M=(n,i)=>n.depth-i.depth;class WM{constructor(){this.children=[],this.isDirty=!1}add(i){Of(this.children,i),this.isDirty=!0}remove(i){jr(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort($M),this.isDirty=!1,this.children.forEach(i)}}function IM(n,i){const l=fe.now(),r=({timestamp:u})=>{const f=u-l;f>=i&&(aa(r),n(f-i))};return Ot.setup(r,!0),()=>aa(r)}function Dr(n){return re(n)?n.get():n}class tC{constructor(){this.members=[]}add(i){Of(this.members,i);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===i||r===this.lead||r===this.prevLead)continue;const u=r.instance;(!u||u.isConnected===!1)&&!r.snapshot&&(jr(this.members,r),r.unmount())}i.scheduleRender()}remove(i){if(jr(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){for(let l=this.members.indexOf(i)-1;l>=0;l--){const r=this.members[l];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(i,l){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.updateSnapshot(),i.scheduleRender();const{layoutDependency:u}=r.options,{layoutDependency:f}=i.options;(u===void 0||u!==f)&&(i.resumeFrom=r,l&&(r.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root?.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{i.options.onExitComplete?.(),i.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Or={hasAnimatedSinceResize:!0,hasEverUpdated:!1},zc=["","X","Y","Z"],eC=1e3;let nC=0;function _c(n,i,l,r){const{latestValues:u}=i;u[n]&&(l[n]=u[n],i.setStaticValue(n,0),r&&(r[n]=0))}function Zv(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const l=mv(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",Ot,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&Zv(r)}function Fv({attachResizeListener:n,defaultParent:i,measureScroll:l,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(h={},d=i?.()){this.id=nC++,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(sC),this.nodes.forEach(uC),this.nodes.forEach(cC),this.nodes.forEach(lC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new WM)}addEventListener(h,d){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new _f),this.eventHandlers.get(h).add(d)}notifyListeners(h,...d){const y=this.eventHandlers.get(h);y&&y.notify(...d)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=$f(h)&&!iM(h),this.instance=h;const{layoutId:d,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||d)&&(this.isLayoutDirty=!0),n){let g,v=0;const b=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{v=window.innerWidth}),n(h,()=>{const C=window.innerWidth;C!==v&&(v=C,this.root.updateBlockedByResize=!0,g&&g(),g=IM(b,250),Or.hasAnimatedSinceResize&&(Or.hasAnimatedSinceResize=!1,this.nodes.forEach(Og)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||y)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||p.getDefaultTransition()||pC,{onLayoutAnimationStart:D,onLayoutAnimationComplete:w}=p.getProps(),N=!this.targetLayout||!Xv(this.targetLayout,C),q=!v&&b;if(this.options.layoutRoot||this.resumeFrom||q||v&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U={...Qf(M,"layout"),onPlay:D,onComplete:w};(p.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(g,q)}else v||Og(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),aa(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(fC),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:y}=this.options;if(d===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(wg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Dg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oC),this.nodes.forEach(aC),this.nodes.forEach(iC)):this.nodes.forEach(Dg),this.clearAllSnapshots();const d=fe.now();ie.delta=ln(0,1e3/60,d-ie.timestamp),ie.timestamp=d,ie.isProcessing=!0,Ec.update.process(ie),Ec.preRender.process(ie),Ec.render.process(ie),ie.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ff.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rC),this.sharedNodes.forEach(hC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!he(this.snapshot.measuredBox.x)&&!he(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Jt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(d=!1),d&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!u)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Qv(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;h&&this.instance&&(d||Ma(this.latestValues)||g)&&(u(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const d=this.measurePageBox();let y=this.removeElementScroll(d);return h&&(y=this.removeTransform(y)),yC(y),{animationId:this.root.animationId,measuredBox:d,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return Jt();const d=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(gC))){const{scroll:p}=this.root;p&&(xi(d.x,p.offset.x),xi(d.y,p.offset.y))}return d}removeElementScroll(h){const d=Jt();if(Pe(d,h),this.scroll?.wasRoot)return d;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:g,options:v}=p;p!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&Pe(d,h),xi(d.x,g.offset.x),xi(d.y,g.offset.y))}return d}applyTransform(h,d=!1){const y=Jt();Pe(y,h);for(let p=0;p<this.path.length;p++){const g=this.path[p];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Ti(y,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Ma(g.latestValues)&&Ti(y,g.latestValues,g.layout?.layoutBox)}return Ma(this.latestValues)&&Ti(y,this.latestValues,this.layout?.layoutBox),y}removeTransform(h){const d=Jt();Pe(d,h);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!Ma(p.latestValues))continue;let g;p.instance&&(ff(p.latestValues)&&p.updateSnapshot(),g=Jt(),Pe(g,p.measurePageBox())),Sg(d,p.latestValues,p.snapshot?.layoutBox,g)}return Ma(this.latestValues)&&Sg(d,this.latestValues),d}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==ie.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==d;if(!(h||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!this.layout||!(g||v))return;this.resolvedRelativeTargetAt=ie.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Jt(),this.targetWithTransforms=Jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Pe(this.target,this.layout.layoutBox),_v(this.target,this.targetDelta)):Pe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ff(this.parent.latestValues)||zv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,d,y){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),Hr(this.relativeTargetOrigin,d,y),Pe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),d=!!this.resumingFrom||this!==h;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ie.timestamp&&(y=!1),y)return;const{layout:p,layoutId:g}=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||g))return;Pe(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;pM(this.layoutCorrected,this.treeScale,this.path,d),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Jt());const{target:C}=h;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dg(this.prevProjectionDelta.x,this.projectionDelta.x),dg(this.prevProjectionDelta.y,this.projectionDelta.y)),js(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!Ag(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ag(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bi(),this.projectionDelta=bi(),this.projectionDeltaWithTransform=bi()}setAnimationOrigin(h,d=!1){const y=this.snapshot,p=y?y.latestValues:{},g={...this.latestValues},v=bi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const b=Jt(),C=y?y.source:void 0,M=this.layout?this.layout.source:void 0,D=C!==M,w=this.getStack(),N=!w||w.members.length<=1,q=!!(D&&!N&&this.options.crossfade===!0&&!this.path.some(mC));this.animationProgress=0;let U;this.mixTargetDelta=k=>{const Q=k/1e3;zg(v.x,h.x,Q),zg(v.y,h.y,Q),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hr(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dC(this.relativeTarget,this.relativeTargetOrigin,b,Q),U&&QM(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Jt()),Pe(U,this.relativeTarget)),D&&(this.animationValues=g,PM(g,p,this.latestValues,Q,q,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{Or.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mi(0)),this.motionValue.jump(0,!1),this.currentAnimation=JM(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),h.onUpdate&&h.onUpdate(d)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:d,target:y,layout:p,latestValues:g}=h;if(!(!d||!y||!p)){if(this!==h&&this.layout&&p&&Jv(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Jt();const v=he(this.layout.layoutBox.x);y.x.min=h.target.x.min,y.x.max=y.x.min+v;const b=he(this.layout.layoutBox.y);y.y.min=h.target.y.min,y.y.max=y.y.min+b}Pe(d,y),Ti(d,g),js(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(h,d){this.sharedNodes.has(h)||this.sharedNodes.set(h,new tC),this.sharedNodes.get(h).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:d,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),h&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let d=!1;const{latestValues:y}=h;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(d=!0),!d)return;const p={};y.z&&_c("z",h,p,this.animationValues);for(let g=0;g<zc.length;g++)_c(`rotate${zc[g]}`,h,p,this.animationValues),_c(`skew${zc[g]}`,h,p,this.animationValues);h.render();for(const g in p)h.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);h.scheduleRender()}applyProjectionStyles(h,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Dr(d?.pointerEvents)||"",h.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Dr(d?.pointerEvents)||""),this.hasProjected&&!Ma(this.latestValues)&&(h.transform=y?y({},""):"none",this.hasProjected=!1);return}h.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=XM(this.projectionDeltaWithTransform,this.treeScale,g);y&&(v=y(g,v)),h.transform=v;const{x:b,y:C}=this.projectionDelta;h.transformOrigin=`${b.origin*100}% ${C.origin*100}% 0`,p.animationValues?h.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:h.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const M in df){if(g[M]===void 0)continue;const{correct:D,applyTo:w,isCSSVariable:N}=df[M],q=v==="none"?g[M]:D(g[M],p);if(w){const U=w.length;for(let k=0;k<U;k++)h[w[k]]=q}else N?this.options.visualElement.renderState.vars[M]=q:h[M]=q}this.options.layoutId&&(h.pointerEvents=p===this?Dr(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(wg),this.root.sharedNodes.clear()}}}function aC(n){n.updateLayout()}function iC(n){const i=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:r}=n.layout,{animationType:u}=n.options,f=i.source!==n.layout.source;u==="size"?nn(g=>{const v=f?i.measuredBox[g]:i.layoutBox[g],b=he(v);v.min=l[g].min,v.max=v.min+b}):Jv(u,i.layoutBox,l)&&nn(g=>{const v=f?i.measuredBox[g]:i.layoutBox[g],b=he(l[g]);v.max=v.min+b,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[g].max=n.relativeTarget[g].min+b)});const h=bi();js(h,l,i.layoutBox);const d=bi();f?js(d,n.applyTransform(r,!0),i.measuredBox):js(d,l,i.layoutBox);const y=!Qv(h);let p=!1;if(!n.resumeFrom){const g=n.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:b}=g;if(v&&b){const C=Jt();Hr(C,i.layoutBox,v.layoutBox);const M=Jt();Hr(M,l,b.layoutBox),Xv(C,M)||(p=!0),g.options.layoutRoot&&(n.relativeTarget=M,n.relativeTargetOrigin=C,n.relativeParent=g)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:d,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function sC(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function lC(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function rC(n){n.clearSnapshot()}function wg(n){n.clearMeasurements()}function Dg(n){n.isLayoutDirty=!1}function oC(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function Og(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function uC(n){n.resolveTargetDelta()}function cC(n){n.calcProjection()}function fC(n){n.resetSkewAndRotation()}function hC(n){n.removeLeadSnapshot()}function zg(n,i,l){n.translate=Vt(i.translate,0,l),n.scale=Vt(i.scale,1,l),n.origin=i.origin,n.originPoint=i.originPoint}function _g(n,i,l,r){n.min=Vt(i.min,l.min,r),n.max=Vt(i.max,l.max,r)}function dC(n,i,l,r){_g(n.x,i.x,l.x,r),_g(n.y,i.y,l.y,r)}function mC(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const pC={duration:.45,ease:[.4,0,.1,1]},jg=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Ng=jg("applewebkit/")&&!jg("chrome/")?Math.round:Ye;function Vg(n){n.min=Ng(n.min),n.max=Ng(n.max)}function yC(n){Vg(n.x),Vg(n.y)}function Jv(n,i,l){return n==="position"||n==="preserve-aspect"&&!HM(Eg(i),Eg(l),.2)}function gC(n){return n!==n.root&&n.scroll?.wasRoot}const vC=Fv({attachResizeListener:(n,i)=>Gs(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),jc={current:void 0},$v=Fv({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!jc.current){const n=new vC({});n.mount(window),n.setOptions({layoutScroll:!0}),jc.current=n}return jc.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),nh=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Lg(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function SC(...n){return i=>{let l=!1;const r=n.map(u=>{const f=Lg(u,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let u=0;u<r.length;u++){const f=r[u];typeof f=="function"?f():Lg(n[u],null)}}}}function bC(...n){return T.useCallback(SC(...n),n)}class xC extends T.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(Ar(l)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=l.offsetParent,u=Ar(r)&&r.offsetWidth||0,f=Ar(r)&&r.offsetHeight||0,h=getComputedStyle(l),d=this.props.sizeRef.current;d.height=parseFloat(h.height),d.width=parseFloat(h.width),d.top=l.offsetTop,d.left=l.offsetLeft,d.right=u-d.width-d.left,d.bottom=f-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function TC({children:n,isPresent:i,anchorX:l,anchorY:r,root:u,pop:f}){const h=T.useId(),d=T.useRef(null),y=T.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=T.useContext(nh),g=n.props?.ref??n?.ref,v=bC(d,g);return T.useInsertionEffect(()=>{const{width:b,height:C,top:M,left:D,right:w,bottom:N}=y.current;if(i||f===!1||!d.current||!b||!C)return;const q=l==="left"?`left: ${D}`:`right: ${w}`,U=r==="bottom"?`bottom: ${N}`:`top: ${M}`;d.current.dataset.motionPopId=h;const k=document.createElement("style");p&&(k.nonce=p);const Q=u??document.head;return Q.appendChild(k),k.sheet&&k.sheet.insertRule(`
13
+ [data-motion-pop-id="${h}"] {
14
+ position: absolute !important;
15
+ width: ${b}px !important;
16
+ height: ${C}px !important;
17
+ ${q}px !important;
18
+ ${U}px !important;
19
+ }
20
+ `),()=>{Q.contains(k)&&Q.removeChild(k)}},[i]),j.jsx(xC,{isPresent:i,childRef:d,sizeRef:y,pop:f,children:f===!1?n:T.cloneElement(n,{ref:v})})}const EC=({children:n,initial:i,isPresent:l,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:h,anchorX:d,anchorY:y,root:p})=>{const g=Df(AC),v=T.useId();let b=!0,C=T.useMemo(()=>(b=!1,{id:v,initial:i,isPresent:l,custom:u,onExitComplete:M=>{g.set(M,!0);for(const D of g.values())if(!D)return;r&&r()},register:M=>(g.set(M,!1),()=>g.delete(M))}),[l,g,r]);return f&&b&&(C={...C}),T.useMemo(()=>{g.forEach((M,D)=>g.set(D,!1))},[l]),T.useEffect(()=>{!l&&!g.size&&r&&r()},[l]),n=j.jsx(TC,{pop:h==="popLayout",isPresent:l,anchorX:d,anchorY:y,root:p,children:n}),j.jsx(Xr.Provider,{value:C,children:n})};function AC(){return new Map}function Wv(n=!0){const i=T.useContext(Xr);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:u}=i,f=T.useId();T.useEffect(()=>{if(n)return u(f)},[n]);const h=T.useCallback(()=>n&&r&&r(f),[f,r,n]);return!l&&r?[!1,h]:[!0]}const vr=n=>n.key||"";function Ug(n){const i=[];return T.Children.forEach(n,l=>{T.isValidElement(l)&&i.push(l)}),i}const ah=({children:n,custom:i,initial:l=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:h=!1,anchorX:d="left",anchorY:y="top",root:p})=>{const[g,v]=Wv(h),b=T.useMemo(()=>Ug(n),[n]),C=h&&!g?[]:b.map(vr),M=T.useRef(!0),D=T.useRef(b),w=Df(()=>new Map),N=T.useRef(new Set),[q,U]=T.useState(b),[k,Q]=T.useState(b);C0(()=>{M.current=!1,D.current=b;for(let P=0;P<k.length;P++){const nt=vr(k[P]);C.includes(nt)?(w.delete(nt),N.current.delete(nt)):w.get(nt)!==!0&&w.set(nt,!1)}},[k,C.length,C.join("-")]);const it=[];if(b!==q){let P=[...b];for(let nt=0;nt<k.length;nt++){const I=k[nt],ct=vr(I);C.includes(ct)||(P.splice(nt,0,I),it.push(I))}return f==="wait"&&it.length&&(P=it),Q(Ug(P)),U(b),null}const{forceRender:$}=T.useContext(wf);return j.jsx(j.Fragment,{children:k.map(P=>{const nt=vr(P),I=h&&!g?!1:b===k||C.includes(nt),ct=()=>{if(N.current.has(nt))return;if(N.current.add(nt),w.has(nt))w.set(nt,!0);else return;let vt=!0;w.forEach(kt=>{kt||(vt=!1)}),vt&&($?.(),Q(D.current),h&&v?.(),r&&r())};return j.jsx(EC,{isPresent:I,initial:!M.current||l?void 0:!1,custom:i,presenceAffectsLayout:u,mode:f,root:p,onExitComplete:I?void 0:ct,anchorX:d,anchorY:y,children:P},nt)})})},Iv=T.createContext({strict:!1}),Bg={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"]};let Hg=!1;function MC(){if(Hg)return;const n={};for(const i in Bg)n[i]={isEnabled:l=>Bg[i].some(r=>!!l[r])};wv(n),Hg=!0}function t1(){return MC(),fM()}function CC(n){const i=t1();for(const l in n)i[l]={...i[l],...n[l]};wv(i)}const RC=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","propagate","ignoreStrict","viewport"]);function qr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||RC.has(n)}let e1=n=>!qr(n);function wC(n){typeof n=="function"&&(e1=i=>i.startsWith("on")?!qr(i):n(i))}try{wC(require("@emotion/is-prop-valid").default)}catch{}function DC(n,i,l){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(e1(u)||l===!0&&qr(u)||!i&&!qr(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const Zr=T.createContext({});function OC(n,i){if(Pr(n)){const{initial:l,animate:r}=n;return{initial:l===!1||qs(l)?l:void 0,animate:qs(r)?r:void 0}}return n.inherit!==!1?i:{}}function zC(n){const{initial:i,animate:l}=OC(n,T.useContext(Zr));return T.useMemo(()=>({initial:i,animate:l}),[qg(i),qg(l)])}function qg(n){return Array.isArray(n)?n.join(" "):n}const ih=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function n1(n,i,l){for(const r in i)!re(i[r])&&!Vv(r,l)&&(n[r]=i[r])}function _C({transformTemplate:n},i){return T.useMemo(()=>{const l=ih();return th(l,i,n),Object.assign({},l.vars,l.style)},[i])}function jC(n,i){const l=n.style||{},r={};return n1(r,l,n),Object.assign(r,_C(n,i)),r}function NC(n,i){const l={},r=jC(n,i);return n.drag&&n.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(l.tabIndex=0),l.style=r,l}const a1=()=>({...ih(),attrs:{}});function VC(n,i,l,r){const u=T.useMemo(()=>{const f=a1();return Lv(f,i,Bv(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};n1(f,n.style,n),u.style={...f,...u.style}}return u}const LC=["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 sh(n){return typeof n!="string"||n.includes("-")?!1:!!(LC.indexOf(n)>-1||/[A-Z]/u.test(n))}function UC(n,i,l,{latestValues:r},u,f=!1,h){const y=(h??sh(n)?VC:NC)(i,r,u,n),p=DC(i,typeof n=="string",f),g=n!==T.Fragment?{...p,...y,ref:l}:{},{children:v}=i,b=T.useMemo(()=>re(v)?v.get():v,[v]);return T.createElement(n,{...g,children:b})}function BC({scrapeMotionValuesFromProps:n,createRenderState:i},l,r,u){return{latestValues:HC(l,r,u,n),renderState:i()}}function HC(n,i,l,r){const u={},f=r(n,{});for(const b in f)u[b]=Dr(f[b]);let{initial:h,animate:d}=n;const y=Pr(n),p=Cv(n);i&&p&&!y&&n.inherit!==!1&&(h===void 0&&(h=i.initial),d===void 0&&(d=i.animate));let g=l?l.initial===!1:!1;g=g||h===!1;const v=g?d:h;if(v&&typeof v!="boolean"&&!Kr(v)){const b=Array.isArray(v)?v:[v];for(let C=0;C<b.length;C++){const M=Kf(n,b[C]);if(M){const{transitionEnd:D,transition:w,...N}=M;for(const q in N){let U=N[q];if(Array.isArray(U)){const k=g?U.length-1:0;U=U[k]}U!==null&&(u[q]=U)}for(const q in D)u[q]=D[q]}}}return u}const i1=n=>(i,l)=>{const r=T.useContext(Zr),u=T.useContext(Xr),f=()=>BC(n,i,r,u);return l?f():Df(f)},qC=i1({scrapeMotionValuesFromProps:eh,createRenderState:ih}),GC=i1({scrapeMotionValuesFromProps:Hv,createRenderState:a1}),YC=Symbol.for("motionComponentSymbol");function kC(n,i,l){const r=T.useRef(l);T.useInsertionEffect(()=>{r.current=l});const u=T.useRef(null);return T.useCallback(f=>{f&&n.onMount?.(f);const h=r.current;if(typeof h=="function")if(f){const d=h(f);typeof d=="function"&&(u.current=d)}else u.current?(u.current(),u.current=null):h(f);else h&&(h.current=f);i&&(f?i.mount(f):i.unmount())},[i])}const s1=T.createContext({});function gi(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function QC(n,i,l,r,u,f){const{visualElement:h}=T.useContext(Zr),d=T.useContext(Iv),y=T.useContext(Xr),p=T.useContext(nh),g=p.reducedMotion,v=p.skipAnimations,b=T.useRef(null),C=T.useRef(!1);r=r||d.renderer,!b.current&&r&&(b.current=r(n,{visualState:i,parent:h,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:g,skipAnimations:v,isSVG:f}),C.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const M=b.current,D=T.useContext(s1);M&&!M.projection&&u&&(M.type==="html"||M.type==="svg")&&XC(b.current,l,u,D);const w=T.useRef(!1);T.useInsertionEffect(()=>{M&&w.current&&M.update(l,y)});const N=l[dv],q=T.useRef(!!N&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(N)&&window.MotionHasOptimisedAnimation?.(N));return C0(()=>{C.current=!0,M&&(w.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),M.scheduleRenderMicrotask(),q.current&&M.animationState&&M.animationState.animateChanges())}),T.useEffect(()=>{M&&(!q.current&&M.animationState&&M.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(N)}),q.current=!1),M.enteringChildren=void 0)}),M}function XC(n,i,l,r){const{layoutId:u,layout:f,drag:h,dragConstraints:d,layoutScroll:y,layoutRoot:p,layoutCrossfade:g}=i;n.projection=new l(n.latestValues,i["data-framer-portal-id"]?void 0:l1(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!h||d&&gi(d),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:y,layoutRoot:p})}function l1(n){if(n)return n.options.allowProjection!==!1?n.projection:l1(n.parent)}function Nc(n,{forwardMotionProps:i=!1,type:l}={},r,u){r&&CC(r);const f=l?l==="svg":sh(n),h=f?GC:qC;function d(p,g){let v;const b={...T.useContext(nh),...p,layoutId:KC(p)},{isStatic:C}=b,M=zC(p),D=h(p,C);if(!C&&typeof window<"u"){PC();const w=ZC(b);v=w.MeasureLayout,M.visualElement=QC(n,D,b,u,w.ProjectionNode,f)}return j.jsxs(Zr.Provider,{value:M,children:[v&&M.visualElement?j.jsx(v,{visualElement:M.visualElement,...b}):null,UC(n,p,kC(D,M.visualElement,g),D,C,i,f)]})}d.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const y=T.forwardRef(d);return y[YC]=n,y}function KC({layoutId:n}){const i=T.useContext(wf).id;return i&&n!==void 0?i+"-"+n:n}function PC(n,i){T.useContext(Iv).strict}function ZC(n){const i=t1(),{drag:l,layout:r}=i;if(!l&&!r)return{};const u={...l,...r};return{MeasureLayout:l?.isEnabled(n)||r?.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function FC(n,i){if(typeof Proxy>"u")return Nc;const l=new Map,r=(f,h)=>Nc(f,h,n,i),u=(f,h)=>r(f,h);return new Proxy(u,{get:(f,h)=>h==="create"?r:(l.has(h)||l.set(h,Nc(h,void 0,n,i)),l.get(h))})}const JC=(n,i)=>i.isSVG??sh(n)?new wM(i):new TM(i,{allowProjection:n!==T.Fragment});class $C extends ia{constructor(i){super(i),i.animationState||(i.animationState=jM(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Kr(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 WC=0;class IC extends ia{constructor(){super(...arguments),this.id=WC++}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 u=this.node.animationState.setActive("exit",!i);l&&!i&&u.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 t3={animation:{Feature:$C},exit:{Feature:IC}};function Fs(n){return{point:{x:n.pageX,y:n.pageY}}}const e3=n=>i=>Jf(i)&&n(i,Fs(i));function Ns(n,i,l,r){return Gs(n,i,e3(l),r)}const r1=({current:n})=>n?n.ownerDocument.defaultView:null,Gg=(n,i)=>Math.abs(n-i);function n3(n,i){const l=Gg(n.x,i.x),r=Gg(n.y,i.y);return Math.sqrt(l**2+r**2)}const Yg=new Set(["auto","scroll"]);class o1{constructor(i,l,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:h=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=C=>{this.handleScroll(C.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Sr(this.lastRawMoveEventInfo,this.transformPagePoint));const C=Vc(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,D=n3(C.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!D)return;const{point:w}=C,{timestamp:N}=ie;this.history.push({...w,timestamp:N});const{onStart:q,onMove:U}=this.handlers;M||(q&&q(this.lastMoveEvent,C),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,C)},this.handlePointerMove=(C,M)=>{this.lastMoveEvent=C,this.lastRawMoveEventInfo=M,this.lastMoveEventInfo=Sr(M,this.transformPagePoint),Ot.update(this.updatePoint,!0)},this.handlePointerUp=(C,M)=>{this.end();const{onEnd:D,onSessionEnd:w,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Vc(C.type==="pointercancel"?this.lastMoveEventInfo:Sr(M,this.transformPagePoint),this.history);this.startEvent&&D&&D(C,q),w&&w(C,q)},!Jf(i))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=u||window;const y=Fs(i),p=Sr(y,this.transformPagePoint),{point:g}=p,{timestamp:v}=ie;this.history=[{...g,timestamp:v}];const{onSessionStart:b}=l;b&&b(i,Vc(p,this.history)),this.removeListeners=Ks(Ns(this.contextWindow,"pointermove",this.handlePointerMove),Ns(this.contextWindow,"pointerup",this.handlePointerUp),Ns(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(i){let l=i.parentElement;for(;l;){const r=getComputedStyle(l);(Yg.has(r.overflowX)||Yg.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const l=this.scrollPositions.get(i);if(!l)return;const r=i===window,u=r?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:u.x-l.x,y:u.y-l.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,u),Ot.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),aa(this.updatePoint)}}function Sr(n,i){return i?{point:i(n.point)}:n}function kg(n,i){return{x:n.x-i.x,y:n.y-i.y}}function Vc({point:n},i){return{point:n,delta:kg(n,u1(i)),offset:kg(n,a3(i)),velocity:i3(i,.1)}}function a3(n){return n[0]}function u1(n){return n[n.length-1]}function i3(n,i){if(n.length<2)return{x:0,y:0};let l=n.length-1,r=null;const u=u1(n);for(;l>=0&&(r=n[l],!(u.timestamp-r.timestamp>Oe(i)));)l--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&u.timestamp-r.timestamp>Oe(i)*2&&(r=n[1]);const f=Ge(u.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const h={x:(u.x-r.x)/f,y:(u.y-r.y)/f};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function s3(n,{min:i,max:l},r){return i!==void 0&&n<i?n=r?Vt(i,n,r.min):Math.max(n,i):l!==void 0&&n>l&&(n=r?Vt(l,n,r.max):Math.min(n,l)),n}function Qg(n,i,l){return{min:i!==void 0?n.min+i:void 0,max:l!==void 0?n.max+l-(n.max-n.min):void 0}}function l3(n,{top:i,left:l,bottom:r,right:u}){return{x:Qg(n.x,l,u),y:Qg(n.y,i,r)}}function Xg(n,i){let l=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([l,r]=[r,l]),{min:l,max:r}}function r3(n,i){return{x:Xg(n.x,i.x),y:Xg(n.y,i.y)}}function o3(n,i){let l=.5;const r=he(n),u=he(i);return u>r?l=Bs(i.min,i.max-r,n.min):r>u&&(l=Bs(n.min,n.max-u,i.min)),ln(0,1,l)}function u3(n,i){const l={};return i.min!==void 0&&(l.min=i.min-n.min),i.max!==void 0&&(l.max=i.max-n.min),l}const mf=.35;function c3(n=mf){return n===!1?n=0:n===!0&&(n=mf),{x:Kg(n,"left","right"),y:Kg(n,"top","bottom")}}function Kg(n,i,l){return{min:Pg(n,i),max:Pg(n,l)}}function Pg(n,i){return typeof n=="number"?n:n[i]||0}const f3=new WeakMap;class h3{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=Jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=v=>{l&&this.snapToCursor(Fs(v).point),this.stopAnimation()},h=(v,b)=>{const{drag:C,dragPropagation:M,onDragStart:D}=this.getProps();if(C&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=GA(C),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nn(N=>{let q=this.getAxisMotionValue(N).get()||0;if(sn.test(q)){const{projection:U}=this.visualElement;if(U&&U.layout){const k=U.layout.layoutBox[N];k&&(q=he(k)*(parseFloat(q)/100))}}this.originPoint[N]=q}),D&&Ot.update(()=>D(v,b),!1,!0),lf(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},d=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:C,dragDirectionLock:M,onDirectionLock:D,onDrag:w}=this.getProps();if(!C&&!this.openDragLock)return;const{offset:N}=b;if(M&&this.currentDirection===null){this.currentDirection=m3(N),this.currentDirection!==null&&D&&D(this.currentDirection);return}this.updateAxis("x",b.point,N),this.updateAxis("y",b.point,N),this.visualElement.render(),w&&Ot.update(()=>w(v,b),!1,!0)},y=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new o1(i,{onSessionStart:f,onStart:h,onMove:d,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:r,contextWindow:r1(this.visualElement),element:this.visualElement.current})}stop(i,l){const r=i||this.latestPointerEvent,u=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!r)return;const{velocity:h}=u;this.startAnimation(h);const{onDragEnd:d}=this.getProps();d&&Ot.postRender(()=>d(r,u))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,r){const{drag:u}=this.getProps();if(!r||!br(i,u,this.currentDirection))return;const f=this.getAxisMotionValue(i);let h=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(h=s3(h,this.constraints[i],this.elastic[i])),f.set(h)}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,u=this.constraints;i&&gi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=l3(r.layoutBox,i):this.constraints=!1,this.elastic=c3(l),u!==this.constraints&&!gi(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&nn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=u3(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!gi(i))return!1;const r=i.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=yM(r,u.root,this.visualElement.getTransformPagePoint());let h=r3(u.layout.layoutBox,f);if(l){const d=l(dM(h));this.hasMutatedConstraints=!!d,d&&(h=Ov(d))}return h}startAnimation(i){const{drag:l,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:h,onDragTransitionEnd:d}=this.getProps(),y=this.constraints||{},p=nn(g=>{if(!br(g,l,this.currentDirection))return;let v=y&&y[g]||{};h&&(v={min:0,max:0});const b=u?200:1e6,C=u?40:1e7,M={type:"inertia",velocity:r?i[g]:0,bounceStiffness:b,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(g,M)});return Promise.all(p).then(d)}startAxisValueAnimation(i,l){const r=this.getAxisMotionValue(i);return lf(this.visualElement,i),r.start(Xf(i,r,0,l,this.visualElement,!1))}stopAnimation(){nn(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),u=r[l];return u||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){nn(l=>{const{drag:r}=this.getProps();if(!br(l,r,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(l);if(u&&u.layout){const{min:h,max:d}=u.layout.layoutBox[l],y=f.get()||0;f.set(i[l]-Vt(h,d,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!gi(l)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};nn(h=>{const d=this.getAxisMotionValue(h);if(d&&this.constraints!==!1){const y=d.get();u[h]=o3({min:y,max:y},this.constraints[h])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),nn(h=>{if(!br(h,i,null))return;const d=this.getAxisMotionValue(h),{min:y,max:p}=this.constraints[h];d.set(Vt(y,p,u[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;f3.set(this.visualElement,this);const i=this.visualElement.current,l=Ns(i,"pointerdown",p=>{const{drag:g,dragListener:v=!0}=this.getProps(),b=p.target,C=b!==i&&PA(b);g&&v&&!C&&this.start(p)});let r;const u=()=>{const{dragConstraints:p}=this.getProps();gi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=d3(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,h=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Ot.read(u);const d=Gs(window,"resize",()=>this.scalePositionWithinConstraints()),y=f.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(nn(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=p[v].translate,b.set(b.get()+p[v].translate))}),this.visualElement.render())}));return()=>{d(),l(),h(),y&&y(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:h=mf,dragMomentum:d=!0}=i;return{...i,drag:l,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:h,dragMomentum:d}}}function Zg(n){let i=!0;return()=>{if(i){i=!1;return}n()}}function d3(n,i,l){const r=tg(n,Zg(l)),u=tg(i,Zg(l));return()=>{r(),u()}}function br(n,i,l){return(i===!0||i===n)&&(l===null||l===n)}function m3(n,i=10){let l=null;return Math.abs(n.y)>i?l="y":Math.abs(n.x)>i&&(l="x"),l}class p3 extends ia{constructor(i){super(i),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new h3(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}update(){const{dragControls:i}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};i!==l&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Lc=n=>(i,l)=>{n&&Ot.update(()=>n(i,l),!1,!0)};class y3 extends ia{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(i){this.session=new o1(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r1(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:Lc(i),onStart:Lc(l),onMove:Lc(r),onEnd:(f,h)=>{delete this.session,u&&Ot.postRender(()=>u(f,h))}}}mount(){this.removePointerDownListener=Ns(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Uc=!1;class g3 extends T.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r,layoutId:u}=this.props,{projection:f}=i;f&&(l.group&&l.group.add(f),r&&r.register&&u&&r.register(f),Uc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Or.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:r,drag:u,isPresent:f}=this.props,{projection:h}=r;return h&&(h.isPresent=f,i.layoutDependency!==l&&h.setOptions({...h.options,layoutDependency:l}),Uc=!0,u||i.layoutDependency!==l||l===void 0||i.isPresent!==f?h.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?h.promote():h.relegate()||Ot.postRender(()=>{const d=h.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Ff.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:u}=i;Uc=!0,u&&(u.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function c1(n){const[i,l]=Wv(),r=T.useContext(wf);return j.jsx(g3,{...n,layoutGroup:r,switchLayoutGroup:T.useContext(s1),isPresent:i,safeToRemove:l})}const v3={pan:{Feature:y3},drag:{Feature:p3,ProjectionNode:$v,MeasureLayout:c1}};function Fg(n,i,l){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",l==="Start");const u="onHover"+l,f=r[u];f&&Ot.postRender(()=>f(i,Fs(i)))}class S3 extends ia{mount(){const{current:i}=this.node;i&&(this.unmount=kA(i,(l,r)=>(Fg(this.node,r,"Start"),u=>Fg(this.node,u,"End"))))}unmount(){}}class b3 extends ia{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=Ks(Gs(this.node.current,"focus",()=>this.onFocus()),Gs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Jg(n,i,l){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",l==="Start");const u="onTap"+(l==="End"?"":l),f=r[u];f&&Ot.postRender(()=>f(i,Fs(i)))}class x3 extends ia{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=FA(i,(u,f)=>(Jg(this.node,f,"Start"),(h,{success:d})=>Jg(this.node,h,d?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const pf=new WeakMap,Bc=new WeakMap,T3=n=>{const i=pf.get(n.target);i&&i(n)},E3=n=>{n.forEach(T3)};function A3({root:n,...i}){const l=n||document;Bc.has(l)||Bc.set(l,{});const r=Bc.get(l),u=JSON.stringify(i);return r[u]||(r[u]=new IntersectionObserver(E3,{root:n,...i})),r[u]}function M3(n,i,l){const r=A3(i);return pf.set(n,l),r.observe(n),()=>{pf.delete(n),r.unobserve(n)}}const C3={some:0,all:1};class R3 extends ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:l,margin:r,amount:u="some",once:f}=i,h={root:l?l.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:C3[u]},d=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),b=p?g:v;b&&b(y)};return M3(this.node.current,h,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(w3(i,l))&&this.startObserver()}unmount(){}}function w3({viewport:n={}},{viewport:i={}}={}){return l=>n[l]!==i[l]}const D3={inView:{Feature:R3},tap:{Feature:x3},focus:{Feature:b3},hover:{Feature:S3}},O3={layout:{ProjectionNode:$v,MeasureLayout:c1}},z3={...t3,...D3,...v3,...O3},Ys=FC(z3,JC),za="";async function zi(n){const i=await fetch(`${za}${n}`);if(!i.ok){let l="";try{l=await i.text()}catch{}throw new Error(`HTTP ${i.status}${l?`: ${l.slice(0,200)}`:""}`)}return i.json()}async function _3(n={}){const i=new URLSearchParams;return i.set("limit",String(n.limit??50)),i.set("offset",String(n.offset??0)),n.q&&i.set("q",n.q),n.status&&i.set("status",n.status),n.provider&&i.set("provider",n.provider),n.periodHours&&i.set("periodHours",String(n.periodHours)),zi(`/v1/traces?${i.toString()}`)}async function lR(n){return zi(`/v1/traces/${n}/spans`)}async function rR(n=24){return zi(`/v1/stats?period=${n}`)}function j3(n){const i=new EventSource(`${za}/v1/stream`);return i.addEventListener("span",l=>{try{const r=JSON.parse(l.data);n(r)}catch{}}),i}async function oR(n=168,i=50,l=0){return zi(`/v1/sessions?periodHours=${n}&limit=${i}&offset=${l}`)}async function uR(){return zi("/v1/db-info")}async function cR(){const n=await fetch(`${za}/v1/reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirm:!0})});if(!n.ok)throw new Error(`HTTP ${n.status}`)}async function fR(n){const i=await fetch(`${za}/v1/retention`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({retentionDays:n})});if(!i.ok)throw new Error(`HTTP ${i.status}`);return i.json()}async function hR(n,i={}){const l=await _3({...i,limit:1e4,offset:0});if(n==="json")return JSON.stringify(l.traces,null,2);if(l.traces.length===0)return"";const r=["traceId","name","status","spanCount","totalTokens","totalCost","startTime"],u=l.traces.map(f=>r.map(h=>{const d=f[h],y=String(d??"");return y.includes(",")||y.includes('"')||y.includes(`
21
+ `)?`"${y.replace(/"/g,'""')}"`:y}).join(","));return[r.join(","),...u].join(`
22
+ `)}async function dR(){return zi("/v1/insights")}async function mR(n,i){const l=await fetch(`${za}/v1/replay`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({spanId:n,apiKey:i})});if(!l.ok){const r=await l.json().catch(()=>({error:`HTTP ${l.status}`}));throw new Error(r.message??r.error??`HTTP ${l.status}`)}return l.json()}async function pR(n=1e3,i="llmtap"){const l=await fetch(`${za}/v1/export/otlp?limit=${n}&service=${encodeURIComponent(i)}`);if(!l.ok)throw new Error(`HTTP ${l.status}`);const r=await l.json();return JSON.stringify(r,null,2)}async function yR(n,i={}){const l=await fetch(`${za}/v1/export/otlp/forward`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:n,headers:i.headers,limit:i.limit??1e3,service:i.service??"llmtap"})});if(!l.ok){const r=await l.json().catch(()=>({error:`HTTP ${l.status}`}));throw new Error(r.message??r.error??`HTTP ${l.status}`)}return l.json()}const yf=new Set;let wa={status:"connecting",reconnectAttempt:0};function Ds(n){wa=n,yf.forEach(i=>i())}function N3(n){return yf.add(n),()=>yf.delete(n)}function f1(){return T.useSyncExternalStore(N3,()=>wa,()=>wa)}function V3(){const n=Sx();T.useEffect(()=>{let i=null,l=null,r=null,u=0,f=!1;const h=new Set,d=()=>{r=null,n.invalidateQueries({queryKey:["stats"]}),n.invalidateQueries({queryKey:["traces"]});for(const g of h)n.invalidateQueries({queryKey:["trace",g]});h.clear()},y=()=>{r||(r=setTimeout(d,500))},p=()=>{f||(Ds({status:u===0?"connecting":"reconnecting",reconnectAttempt:u,lastEventAt:wa.lastEventAt}),i=j3(g=>{u=0,Ds({status:"connected",reconnectAttempt:0,lastEventAt:Date.now()}),h.add(g.traceId),y()}),i.onopen=()=>{u=0,Ds({status:"connected",reconnectAttempt:0,lastEventAt:wa.lastEventAt})},i.onerror=()=>{if(i?.close(),i=null,f)return;u+=1,Ds({status:"reconnecting",reconnectAttempt:u,lastEventAt:wa.lastEventAt});const g=Math.min(1e3*2**(u-1),15e3);l=setTimeout(p,g)})};return p(),()=>{f=!0,i?.close(),l&&clearTimeout(l),r&&clearTimeout(r),Ds({status:"disconnected",reconnectAttempt:0,lastEventAt:wa.lastEventAt})}},[n])}function L3(){const{status:n,reconnectAttempt:i,lastEventAt:l}=f1(),r={connected:{label:"Live feed connected",icon:M0,dot:"bg-emerald-300",halo:"bg-emerald-400/25",ping:!0,text:"text-emerald-200"},connecting:{label:"Connecting to collector",icon:p2,dot:"bg-sky-300",halo:"bg-sky-400/25",ping:!1,text:"text-sky-200"},reconnecting:{label:`Reconnecting${i>0?` / attempt ${i}`:""}`,icon:E2,dot:"bg-amber-300",halo:"bg-amber-300/25",ping:!1,text:"text-amber-200"},disconnected:{label:"Collector disconnected",icon:A0,dot:"bg-rose-300",halo:"bg-rose-400/25",ping:!1,text:"text-rose-200"}}[n],u=r.icon;return j.jsxs("div",{className:`status-chip ${r.text}`,children:[j.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[j.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full ${r.halo} ${r.ping?"animate-ping opacity-80":""}`}),j.jsx("span",{className:`relative inline-flex h-2.5 w-2.5 rounded-full ${r.dot}`})]}),j.jsx(u,{className:`h-3.5 w-3.5 ${n==="connecting"||n==="reconnecting"?"animate-spin":""}`}),j.jsx("span",{children:r.label}),l?j.jsx("span",{className:"hidden font-mono text-[11px] text-slate-500 sm:inline",children:new Date(l).toLocaleTimeString()}):null]})}class U3 extends T.Component{constructor(i){super(i),this.state={hasError:!1,error:null}}static getDerivedStateFromError(i){return{hasError:!0,error:i}}componentDidCatch(i,l){console.error("[LLMTap] UI error:",i,l.componentStack)}render(){return this.state.hasError?j.jsx("div",{className:"mx-auto flex w-full max-w-[1500px] flex-col items-center justify-center gap-6 py-24",children:j.jsxs("div",{className:"dashboard-shell flex max-w-lg flex-col items-center gap-5 rounded-[28px] px-8 py-10 text-center",children:[j.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl border border-rose-400/20 bg-rose-400/10",children:j.jsx(z2,{className:"h-7 w-7 text-rose-300"})}),j.jsxs("div",{children:[j.jsx("h2",{className:"text-lg font-semibold text-white",children:this.props.fallbackTitle??"Something went wrong"}),j.jsx("p",{className:"mt-2 text-sm leading-6 text-slate-400",children:this.state.error?.message??"An unexpected error occurred."})]}),j.jsxs("button",{type:"button",onClick:()=>this.setState({hasError:!1,error:null}),className:"status-chip transition-colors hover:border-white/16 hover:bg-white/8",children:[j.jsx(x2,{className:"h-3.5 w-3.5"}),j.jsx("span",{children:"Retry"})]})]})}):this.props.children}}function B3(){const{status:n}=f1(),i=T.useRef(n),[l,r]=T.useState(null);return T.useEffect(()=>{const u=i.current;if(i.current=n,u==="connected"&&(n==="reconnecting"||n==="disconnected")&&r("lost"),(u==="reconnecting"||u==="disconnected")&&n==="connected"){r("restored");const f=setTimeout(()=>r(null),4e3);return()=>clearTimeout(f)}},[n]),j.jsx(ah,{children:l&&j.jsx(Ys.div,{initial:{opacity:0,y:-40},animate:{opacity:1,y:0},exit:{opacity:0,y:-40},transition:{type:"spring",bounce:.2,duration:.5},className:"fixed left-1/2 top-4 z-50 -translate-x-1/2",children:j.jsxs("div",{className:`flex items-center gap-2.5 rounded-2xl border px-5 py-3 text-sm font-medium shadow-lg backdrop-blur-xl ${l==="lost"?"border-rose-400/20 bg-rose-950/80 text-rose-200":"border-emerald-400/20 bg-emerald-950/80 text-emerald-200"}`,children:[l==="lost"?j.jsxs(j.Fragment,{children:[j.jsx(A0,{className:"h-4 w-4"}),j.jsx("span",{children:"Connection to collector lost"})]}):j.jsxs(j.Fragment,{children:[j.jsx(M0,{className:"h-4 w-4"}),j.jsx("span",{children:"Connection restored"})]}),j.jsx("button",{type:"button",onClick:()=>r(null),className:"ml-2 rounded-lg p-1 transition-colors hover:bg-white/10",children:"×"})]})})})}const H3=[{keys:["/","Ctrl+K"],description:"Focus search"},{keys:["G","O"],description:"Go to Overview"},{keys:["G","T"],description:"Go to Traces"},{keys:["G","C"],description:"Go to Economics"},{keys:["G","M"],description:"Go to Models"},{keys:["G","S"],description:"Go to Sessions"},{keys:["G","X"],description:"Go to Settings"},{keys:["?"],description:"Show this help"},{keys:["Esc"],description:"Close panel / blur input"}];function q3({open:n,onClose:i}){return j.jsx(ah,{children:n&&j.jsxs(j.Fragment,{children:[j.jsx(Ys.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm",onClick:i}),j.jsxs(Ys.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{type:"spring",bounce:.15,duration:.4},className:"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-[24px] border border-white/10 bg-[linear-gradient(180deg,rgba(12,18,32,0.98),rgba(4,8,18,0.99))] p-6 shadow-[0_40px_100px_rgba(0,0,0,0.5)]",children:[j.jsxs("div",{className:"mb-5 flex items-center justify-between",children:[j.jsxs("div",{className:"flex items-center gap-3",children:[j.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl border border-white/8 bg-white/5",children:j.jsx(f2,{className:"h-4.5 w-4.5 text-emerald-300"})}),j.jsx("h3",{className:"text-lg font-semibold text-white",children:"Keyboard Shortcuts"})]}),j.jsx("button",{onClick:i,className:"flex h-8 w-8 items-center justify-center rounded-xl border border-white/8 bg-white/5 text-slate-400 transition-colors hover:bg-white/10 hover:text-white",children:j.jsx(V2,{className:"h-4 w-4"})})]}),j.jsx("div",{className:"space-y-1",children:H3.map(l=>j.jsxs("div",{className:"flex items-center justify-between rounded-xl px-3 py-2.5 transition-colors hover:bg-white/4",children:[j.jsx("span",{className:"text-sm text-slate-300",children:l.description}),j.jsx("div",{className:"flex items-center gap-1.5",children:l.keys.map(r=>j.jsx("kbd",{className:"inline-flex min-w-[28px] items-center justify-center rounded-lg border border-white/12 bg-white/6 px-2 py-1 font-mono text-xs text-slate-300",children:r},r))})]},l.description))}),j.jsxs("div",{className:"mt-5 text-center text-xs text-slate-500",children:["Press ",j.jsx("kbd",{className:"rounded border border-white/10 bg-white/5 px-1.5 py-0.5 font-mono text-slate-400",children:"?"})," anytime to toggle this help"]})]})]})})}function G3({onToggleHelp:n}){const i=Tf(),l=T.useRef(!1),r=T.useRef(null),u=T.useCallback(f=>{const h=f.target,d=h.tagName==="INPUT"||h.tagName==="TEXTAREA"||h.tagName==="SELECT"||h.isContentEditable;if(!(d&&f.key!=="Escape")){if(f.key==="/"||f.key==="k"&&(f.ctrlKey||f.metaKey)){f.preventDefault();const y=document.querySelector('input[type="text"][placeholder*="earch"], input[type="search"]');y&&(y.focus(),y.select());return}if(f.key==="?"&&!f.ctrlKey&&!f.metaKey){f.preventDefault(),n();return}if(f.key==="Escape"){d&&h.blur(),l.current=!1,r.current&&(clearTimeout(r.current),r.current=null);return}if(f.key==="g"&&!f.ctrlKey&&!f.metaKey&&!l.current){l.current=!0,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{l.current=!1,r.current=null},1500);return}if(l.current){switch(l.current=!1,r.current&&(clearTimeout(r.current),r.current=null),f.key){case"o":i("/");break;case"t":i("/traces");break;case"c":i("/costs");break;case"m":i("/models");break;case"s":i("/sessions");break;case"x":i("/settings");break}return}}},[i,n]);T.useEffect(()=>(window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u),r.current&&clearTimeout(r.current)}),[u])}const Y3=T.lazy(()=>Oa(()=>import("./Dashboard-DnHLwJsN.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),k3=T.lazy(()=>Oa(()=>import("./Traces-Cv9L_xTe.js"),__vite__mapDeps([7,1,8,9,4,5,10,11]))),Q3=T.lazy(()=>Oa(()=>import("./TraceDetail-DdKFps7x.js"),__vite__mapDeps([12,1,5,13,11,9,14,10,6,8]))),X3=T.lazy(()=>Oa(()=>import("./Costs-BhWdS2kw.js"),__vite__mapDeps([15,1,14,9,3,16,6,11]))),K3=T.lazy(()=>Oa(()=>import("./Models-5jWcyfAk.js"),__vite__mapDeps([17,1,11,10,3,16,2]))),P3=T.lazy(()=>Oa(()=>import("./Sessions-IXJPYjKe.js"),__vite__mapDeps([18,1]))),Z3=T.lazy(()=>Oa(()=>import("./Settings-kxBLuIHe.js"),__vite__mapDeps([19,1,13])));function yi({to:n,icon:i,label:l,end:r}){return j.jsx(Rf,{to:n,end:r,className:({isActive:u})=>`group relative flex cursor-pointer items-center gap-3 rounded-2xl px-4 py-3 text-sm font-medium transition-all duration-200 ${u?"text-white":"text-slate-400 hover:text-slate-200"}`,children:({isActive:u})=>j.jsxs(j.Fragment,{children:[u&&j.jsx(Ys.div,{layoutId:"nav-panel",className:"absolute inset-0 rounded-2xl border border-emerald-400/20 bg-[linear-gradient(135deg,rgba(16,185,129,0.22),rgba(14,165,233,0.08))] shadow-[0_20px_80px_rgba(16,185,129,0.15)]",transition:{type:"spring",bounce:.15,duration:.5}}),j.jsx("span",{className:`relative z-10 flex h-10 w-10 items-center justify-center rounded-2xl border transition-colors ${u?"border-white/10 bg-white/8":"border-white/5 bg-white/4 group-hover:border-white/10 group-hover:bg-white/6"}`,children:j.jsx(i,{className:"h-4 w-4"})}),j.jsx("span",{className:"relative z-10",children:l})]})})}function F3(){return j.jsxs("div",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[j.jsx("div",{className:"skeleton-panel h-44 rounded-[28px]"}),j.jsxs("div",{className:"grid gap-5 lg:grid-cols-3",children:[j.jsx("div",{className:"skeleton-panel h-72 rounded-[24px] lg:col-span-2"}),j.jsx("div",{className:"skeleton-panel h-72 rounded-[24px]"})]}),j.jsx("div",{className:"skeleton-panel h-80 rounded-[24px]"})]})}function J3(){const n=on(),[i,l]=T.useState(!1),r=T.useCallback(()=>l(u=>!u),[]);return G3({onToggleHelp:r}),j.jsxs("div",{className:"min-h-screen bg-obsidian text-white",children:[j.jsx(B3,{}),j.jsx(q3,{open:i,onClose:()=>l(!1)}),j.jsxs("div",{className:"pointer-events-none fixed inset-0 overflow-hidden",children:[j.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_12%_18%,rgba(34,197,94,0.12),transparent_28%),radial-gradient(circle_at_88%_10%,rgba(56,189,248,0.16),transparent_26%),radial-gradient(circle_at_50%_100%,rgba(168,85,247,0.14),transparent_36%)]"}),j.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(148,163,184,0.035)_1px,transparent_1px),linear-gradient(90deg,rgba(148,163,184,0.035)_1px,transparent_1px)] bg-[size:72px_72px]"})]}),j.jsxs("div",{className:"relative mx-auto grid min-h-screen max-w-[1720px] lg:grid-cols-[280px_minmax(0,1fr)]",children:[j.jsx("aside",{className:"border-b border-white/6 px-4 py-4 lg:border-b-0 lg:border-r lg:px-5 lg:py-6",children:j.jsxs("div",{className:"dashboard-shell sticky top-5 rounded-[28px] px-4 py-4 sm:px-5",children:[j.jsxs(Rf,{to:"/",className:"flex cursor-pointer items-center gap-3 rounded-[22px] border border-white/6 bg-white/4 px-4 py-4 transition-colors hover:bg-white/6",children:[j.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-[18px] bg-[linear-gradient(145deg,#34d399,#38bdf8)] text-slate-950 shadow-[0_20px_50px_rgba(52,211,153,0.35)]",children:j.jsx(D2,{className:"h-6 w-6",strokeWidth:2.4})}),j.jsxs("div",{className:"min-w-0",children:[j.jsx("div",{className:"text-[11px] uppercase tracking-[0.35em] text-emerald-300/80",children:"LLMTap"}),j.jsx("div",{className:"text-lg font-semibold tracking-[-0.03em] text-white",children:"Mission Control"})]})]}),j.jsxs("div",{className:"mt-5 rounded-[24px] border border-white/6 bg-[linear-gradient(180deg,rgba(15,23,42,0.92),rgba(4,8,18,0.96))] p-4",children:[j.jsx("div",{className:"hud-label",children:"Control Deck"}),j.jsx("div",{className:"mt-3 space-y-2",children:j.jsxs("nav",{className:"flex flex-col gap-2",children:[j.jsx(yi,{to:"/",icon:S2,label:"Overview",end:!0}),j.jsx(yi,{to:"/traces",icon:d2,label:"Traces"}),j.jsx(yi,{to:"/costs",icon:u2,label:"Economics"}),j.jsx(yi,{to:"/models",icon:r2,label:"Models"}),j.jsx(yi,{to:"/sessions",icon:g2,label:"Sessions"}),j.jsx(yi,{to:"/settings",icon:M2,label:"Settings"})]})})]}),j.jsxs("div",{className:"mt-5 rounded-[24px] border border-emerald-400/12 bg-[linear-gradient(180deg,rgba(5,18,16,0.92),rgba(4,8,18,0.98))] p-4",children:[j.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-white",children:[j.jsx(s2,{className:"h-4 w-4 text-emerald-300"}),"Local collector"]}),j.jsx("p",{className:"mt-2 text-sm leading-6 text-slate-400",children:"Real-time traces, token economics, and span internals in one operator surface."}),j.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3 text-xs text-slate-300",children:[j.jsxs("div",{className:"rounded-2xl border border-white/6 bg-white/4 p-3",children:[j.jsx("div",{className:"hud-label",children:"Mode"}),j.jsx("div",{className:"mt-1 font-mono text-[13px]",children:"LOCAL"})]}),j.jsxs("div",{className:"rounded-2xl border border-white/6 bg-white/4 p-3",children:[j.jsx("div",{className:"hud-label",children:"Port"}),j.jsx("div",{className:"mt-1 font-mono text-[13px]",children:"4781"})]})]})]})]})}),j.jsxs("div",{className:"flex min-h-screen flex-col",children:[j.jsx("header",{className:"border-b border-white/6 px-4 py-4 sm:px-6 lg:px-8",children:j.jsxs("div",{className:"dashboard-shell flex items-center justify-between gap-4 rounded-[28px] px-5 py-4",children:[j.jsxs("div",{children:[j.jsx("div",{className:"hud-label",children:"Operator Surface"}),j.jsxs("div",{className:"mt-1 flex items-center gap-3",children:[j.jsx("h2",{className:"text-lg font-semibold tracking-[-0.04em] text-white sm:text-xl",children:"LLM runtime intelligence"}),j.jsx("span",{className:"hidden rounded-full border border-white/8 bg-white/6 px-2.5 py-1 text-[11px] font-mono text-slate-400 sm:inline-flex",children:"v0.1.0"})]})]}),j.jsxs("div",{className:"flex items-center gap-3",children:[j.jsxs("div",{className:"status-chip hidden sm:flex",children:[j.jsx(R2,{className:"h-3.5 w-3.5 text-sky-300"}),j.jsx("span",{children:"Streaming observability"})]}),j.jsx(L3,{})]})]})}),j.jsx("main",{className:"flex-1 px-4 py-5 sm:px-6 lg:px-8 lg:py-7",children:j.jsx(U3,{children:j.jsx(ah,{mode:"wait",children:j.jsx(Ys.div,{initial:{opacity:0,y:18},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3,ease:[.22,1,.36,1]},children:j.jsx(T.Suspense,{fallback:j.jsx(F3,{}),children:j.jsxs(gT,{location:n,children:[j.jsx(ta,{path:"/",element:j.jsx(Y3,{})}),j.jsx(ta,{path:"/traces",element:j.jsx(k3,{})}),j.jsx(ta,{path:"/trace/:traceId",element:j.jsx(Q3,{})}),j.jsx(ta,{path:"/costs",element:j.jsx(X3,{})}),j.jsx(ta,{path:"/models",element:j.jsx(K3,{})}),j.jsx(ta,{path:"/sessions",element:j.jsx(P3,{})}),j.jsx(ta,{path:"/settings",element:j.jsx(Z3,{})})]})})},n.pathname)})})}),j.jsx("footer",{className:"px-4 pb-5 sm:px-6 lg:px-8",children:j.jsxs("div",{className:"dashboard-shell flex flex-col gap-3 rounded-[24px] px-5 py-4 text-xs text-slate-400 sm:flex-row sm:items-center sm:justify-between",children:[j.jsxs("div",{className:"flex items-center gap-2",children:[j.jsx("span",{className:"h-2 w-2 rounded-full bg-emerald-400 shadow-[0_0_14px_rgba(52,211,153,0.8)]"}),j.jsx("span",{children:"Open-source LLM observability, built for local-first workflows."})]}),j.jsx("span",{className:"font-mono tracking-[0.18em] text-slate-500",children:"HTTP://LOCALHOST:4781"})]})})]})]})]})}const $3=new vx({defaultOptions:{queries:{staleTime:15e3,refetchOnWindowFocus:!0}}});function W3(){return V3(),j.jsx(J3,{})}Xb.createRoot(document.getElementById("root")).render(j.jsx(T.StrictMode,{children:j.jsx(bx,{client:$3,children:j.jsx(YT,{children:j.jsx(W3,{})})})}));export{ah as A,lx as B,r2 as C,u2 as D,Wb as E,eR as F,qc as G,Fe as H,Yr as I,Jb as J,$b as K,x0 as L,g2 as M,Hc as N,Ig as O,hx as P,ex as Q,tR as R,R2 as S,z2 as T,ce as U,nR as V,V2 as X,S2 as a,L3 as b,se as c,_3 as d,dR as e,rR as f,lR as g,aR as h,p2 as i,j,mR as k,Vb as l,Ys as m,I3 as n,oR as o,Sx as p,x2 as q,T as r,fR as s,pR as t,iR as u,yR as v,cR as w,hR as x,uR as y,Gr as z};