@zaflun/lumio-cli 0.5.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/index.d.ts +13 -0
- package/dist/index.js +3267 -396
- package/dist/sandbox/index.html +14 -0
- package/dist/sandbox/sandbox.css +2 -0
- package/dist/sandbox/sandbox.js +11 -0
- package/package.json +31 -17
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";(()=>{var jb=Object.create;var tc=Object.defineProperty;var Kb=Object.getOwnPropertyDescriptor;var Qb=Object.getOwnPropertyNames;var Jb=Object.getPrototypeOf,$b=Object.prototype.hasOwnProperty;var Wt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}};var eL=(e,t,a,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qb(t))!$b.call(e,o)&&o!==a&&tc(e,o,{get:()=>t[o],enumerable:!(l=Kb(t,o))||l.enumerable});return e};var x=(e,t,a)=>(a=e!=null?jb(Jb(e)):{},eL(t||!e||!e.__esModule?tc(a,"default",{value:e,enumerable:!0}):a,e));var fc=Wt(pe=>{"use strict";function Ps(e,t){var a=e.length;e.push(t);e:for(;0<a;){var l=a-1>>>1,o=e[l];if(0<Ir(o,t))e[l]=t,e[a]=o,a=l;else break e}}function jt(e){return e.length===0?null:e[0]}function kr(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var l=0,o=e.length,n=o>>>1;l<n;){var r=2*(l+1)-1,u=e[r],s=r+1,i=e[s];if(0>Ir(u,a))s<o&&0>Ir(i,u)?(e[l]=i,e[s]=a,l=s):(e[l]=u,e[r]=a,l=r);else if(s<o&&0>Ir(i,a))e[l]=i,e[s]=a,l=s;else break e}}return t}function Ir(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}pe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(ac=performance,pe.unstable_now=function(){return ac.now()}):(Ns=Date,lc=Ns.now(),pe.unstable_now=function(){return Ns.now()-lc});var ac,Ns,lc,ua=[],Ea=[],tL=1,Ct=null,Ve=3,Os=!1,jo=!1,Ko=!1,zs=!1,rc=typeof setTimeout=="function"?setTimeout:null,uc=typeof clearTimeout=="function"?clearTimeout:null,oc=typeof setImmediate<"u"?setImmediate:null;function wr(e){for(var t=jt(Ea);t!==null;){if(t.callback===null)kr(Ea);else if(t.startTime<=e)kr(Ea),t.sortIndex=t.expirationTime,Ps(ua,t);else break;t=jt(Ea)}}function Us(e){if(Ko=!1,wr(e),!jo)if(jt(ua)!==null)jo=!0,Zl||(Zl=!0,Yl());else{var t=jt(Ea);t!==null&&qs(Us,t.startTime-e)}}var Zl=!1,Qo=-1,sc=5,ic=-1;function dc(){return zs?!0:!(pe.unstable_now()-ic<sc)}function Bs(){if(zs=!1,Zl){var e=pe.unstable_now();ic=e;var t=!0;try{e:{jo=!1,Ko&&(Ko=!1,uc(Qo),Qo=-1),Os=!0;var a=Ve;try{t:{for(wr(e),Ct=jt(ua);Ct!==null&&!(Ct.expirationTime>e&&dc());){var l=Ct.callback;if(typeof l=="function"){Ct.callback=null,Ve=Ct.priorityLevel;var o=l(Ct.expirationTime<=e);if(e=pe.unstable_now(),typeof o=="function"){Ct.callback=o,wr(e),t=!0;break t}Ct===jt(ua)&&kr(ua),wr(e)}else kr(ua);Ct=jt(ua)}if(Ct!==null)t=!0;else{var n=jt(Ea);n!==null&&qs(Us,n.startTime-e),t=!1}}break e}finally{Ct=null,Ve=a,Os=!1}t=void 0}}finally{t?Yl():Zl=!1}}}var Yl;typeof oc=="function"?Yl=function(){oc(Bs)}:typeof MessageChannel<"u"?(Hs=new MessageChannel,nc=Hs.port2,Hs.port1.onmessage=Bs,Yl=function(){nc.postMessage(null)}):Yl=function(){rc(Bs,0)};var Hs,nc;function qs(e,t){Qo=rc(function(){e(pe.unstable_now())},t)}pe.unstable_IdlePriority=5;pe.unstable_ImmediatePriority=1;pe.unstable_LowPriority=4;pe.unstable_NormalPriority=3;pe.unstable_Profiling=null;pe.unstable_UserBlockingPriority=2;pe.unstable_cancelCallback=function(e){e.callback=null};pe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):sc=0<e?Math.floor(1e3/e):5};pe.unstable_getCurrentPriorityLevel=function(){return Ve};pe.unstable_next=function(e){switch(Ve){case 1:case 2:case 3:var t=3;break;default:t=Ve}var a=Ve;Ve=t;try{return e()}finally{Ve=a}};pe.unstable_requestPaint=function(){zs=!0};pe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Ve;Ve=e;try{return t()}finally{Ve=a}};pe.unstable_scheduleCallback=function(e,t,a){var l=pe.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?l+a:l):a=l,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:tL++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>l?(e.sortIndex=a,Ps(Ea,e),jt(ua)===null&&e===jt(Ea)&&(Ko?(uc(Qo),Qo=-1):Ko=!0,qs(Us,a-l))):(e.sortIndex=o,Ps(ua,e),jo||Os||(jo=!0,Zl||(Zl=!0,Yl()))),e};pe.unstable_shouldYield=dc;pe.unstable_wrapCallback=function(e){var t=Ve;return function(){var a=Ve;Ve=t;try{return e.apply(this,arguments)}finally{Ve=a}}}});var mc=Wt((N0,cc)=>{"use strict";cc.exports=fc()});var Ic=Wt(U=>{"use strict";var Gs=Symbol.for("react.transitional.element"),aL=Symbol.for("react.portal"),lL=Symbol.for("react.fragment"),oL=Symbol.for("react.strict_mode"),nL=Symbol.for("react.profiler"),rL=Symbol.for("react.consumer"),uL=Symbol.for("react.context"),sL=Symbol.for("react.forward_ref"),iL=Symbol.for("react.suspense"),dL=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),fL=Symbol.for("react.activity"),pc=Symbol.iterator;function cL(e){return e===null||typeof e!="object"?null:(e=pc&&e[pc]||e["@@iterator"],typeof e=="function"?e:null)}var Lc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vc=Object.assign,yc={};function jl(e,t,a){this.props=e,this.context=t,this.refs=yc,this.updater=a||Lc}jl.prototype.isReactComponent={};jl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};jl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sc(){}Sc.prototype=jl.prototype;function Vs(e,t,a){this.props=e,this.context=t,this.refs=yc,this.updater=a||Lc}var Xs=Vs.prototype=new Sc;Xs.constructor=Vs;vc(Xs,jl.prototype);Xs.isPureReactComponent=!0;var gc=Array.isArray;function _s(){}var de={H:null,A:null,T:null,S:null},Cc=Object.prototype.hasOwnProperty;function Ys(e,t,a){var l=a.ref;return{$$typeof:Gs,type:e,key:t,ref:l!==void 0?l:null,props:a}}function mL(e,t){return Ys(e.type,t,e.props)}function Zs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gs}function pL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var hc=/\/+/g;function Fs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pL(""+e.key):t.toString(36)}function gL(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(_s,_s):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Wl(e,t,a,l,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(n){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case Gs:case aL:r=!0;break;case bc:return r=e._init,Wl(r(e._payload),t,a,l,o)}}if(r)return o=o(e),r=l===""?"."+Fs(e,0):l,gc(o)?(a="",r!=null&&(a=r.replace(hc,"$&/")+"/"),Wl(o,t,a,"",function(i){return i})):o!=null&&(Zs(o)&&(o=mL(o,a+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(hc,"$&/")+"/")+r)),t.push(o)),1;r=0;var u=l===""?".":l+":";if(gc(e))for(var s=0;s<e.length;s++)l=e[s],n=u+Fs(l,s),r+=Wl(l,t,a,n,o);else if(s=cL(e),typeof s=="function")for(e=s.call(e),s=0;!(l=e.next()).done;)l=l.value,n=u+Fs(l,s++),r+=Wl(l,t,a,n,o);else if(n==="object"){if(typeof e.then=="function")return Wl(gL(e),t,a,l,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return r}function Mr(e,t,a){if(e==null)return e;var l=[],o=0;return Wl(e,l,"","",function(n){return t.call(a,n,o++)}),l}function hL(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},xL={map:Mr,forEach:function(e,t,a){Mr(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Mr(e,function(){t++}),t},toArray:function(e){return Mr(e,function(t){return t})||[]},only:function(e){if(!Zs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Activity=fL;U.Children=xL;U.Component=jl;U.Fragment=lL;U.Profiler=nL;U.PureComponent=Vs;U.StrictMode=oL;U.Suspense=iL;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=de;U.__COMPILER_RUNTIME={__proto__:null,c:function(e){return de.H.useMemoCache(e)}};U.cache=function(e){return function(){return e.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=vc({},e.props),o=e.key;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)!Cc.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(l[n]=t[n]);var n=arguments.length-2;if(n===1)l.children=a;else if(1<n){for(var r=Array(n),u=0;u<n;u++)r[u]=arguments[u+2];l.children=r}return Ys(e.type,o,l)};U.createContext=function(e){return e={$$typeof:uL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:rL,_context:e},e};U.createElement=function(e,t,a){var l,o={},n=null;if(t!=null)for(l in t.key!==void 0&&(n=""+t.key),t)Cc.call(t,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(o[l]=t[l]);var r=arguments.length-2;if(r===1)o.children=a;else if(1<r){for(var u=Array(r),s=0;s<r;s++)u[s]=arguments[s+2];o.children=u}if(e&&e.defaultProps)for(l in r=e.defaultProps,r)o[l]===void 0&&(o[l]=r[l]);return Ys(e,n,o)};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:sL,render:e}};U.isValidElement=Zs;U.lazy=function(e){return{$$typeof:bc,_payload:{_status:-1,_result:e},_init:hL}};U.memo=function(e,t){return{$$typeof:dL,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=de.T,a={};de.T=a;try{var l=e(),o=de.S;o!==null&&o(a,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(_s,xc)}catch(n){xc(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),de.T=t}};U.unstable_useCacheRefresh=function(){return de.H.useCacheRefresh()};U.use=function(e){return de.H.use(e)};U.useActionState=function(e,t,a){return de.H.useActionState(e,t,a)};U.useCallback=function(e,t){return de.H.useCallback(e,t)};U.useContext=function(e){return de.H.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e,t){return de.H.useDeferredValue(e,t)};U.useEffect=function(e,t){return de.H.useEffect(e,t)};U.useEffectEvent=function(e){return de.H.useEffectEvent(e)};U.useId=function(){return de.H.useId()};U.useImperativeHandle=function(e,t,a){return de.H.useImperativeHandle(e,t,a)};U.useInsertionEffect=function(e,t){return de.H.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return de.H.useLayoutEffect(e,t)};U.useMemo=function(e,t){return de.H.useMemo(e,t)};U.useOptimistic=function(e,t){return de.H.useOptimistic(e,t)};U.useReducer=function(e,t,a){return de.H.useReducer(e,t,a)};U.useRef=function(e){return de.H.useRef(e)};U.useState=function(e){return de.H.useState(e)};U.useSyncExternalStore=function(e,t,a){return de.H.useSyncExternalStore(e,t,a)};U.useTransition=function(){return de.H.useTransition()};U.version="19.2.8"});var H=Wt((H0,wc)=>{"use strict";wc.exports=Ic()});var Mc=Wt(Qe=>{"use strict";var bL=H();function kc(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Na(){}var Ke={d:{f:Na,r:function(){throw Error(kc(522))},D:Na,C:Na,L:Na,m:Na,X:Na,S:Na,M:Na},p:0,findDOMNode:null},LL=Symbol.for("react.portal");function vL(e,t,a){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:LL,key:l==null?null:""+l,children:e,containerInfo:t,implementation:a}}var Jo=bL.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ar(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Qe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ke;Qe.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(kc(299));return vL(e,t,null,a)};Qe.flushSync=function(e){var t=Jo.T,a=Ke.p;try{if(Jo.T=null,Ke.p=2,e)return e()}finally{Jo.T=t,Ke.p=a,Ke.d.f()}};Qe.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ke.d.C(e,t))};Qe.prefetchDNS=function(e){typeof e=="string"&&Ke.d.D(e)};Qe.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,l=Ar(a,t.crossOrigin),o=typeof t.integrity=="string"?t.integrity:void 0,n=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?Ke.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:l,integrity:o,fetchPriority:n}):a==="script"&&Ke.d.X(e,{crossOrigin:l,integrity:o,fetchPriority:n,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Qe.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Ar(t.as,t.crossOrigin);Ke.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ke.d.M(e)};Qe.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,l=Ar(a,t.crossOrigin);Ke.d.L(e,a,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Qe.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Ar(t.as,t.crossOrigin);Ke.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ke.d.m(e)};Qe.requestFormReset=function(e){Ke.d.r(e)};Qe.unstable_batchedUpdates=function(e,t){return e(t)};Qe.useFormState=function(e,t,a){return Jo.H.useFormState(e,t,a)};Qe.useFormStatus=function(){return Jo.H.useHostTransitionStatus()};Qe.version="19.2.8"});var $e=Wt((O0,Tc)=>{"use strict";function Ac(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ac)}catch(e){console.error(e)}}Ac(),Tc.exports=Mc()});var Fh=Wt($u=>{"use strict";var De=mc(),tp=H(),yL=$e();function I(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ap(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Un(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function lp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function op(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Dc(e){if(Un(e)!==e)throw Error(I(188))}function SL(e){var t=e.alternate;if(!t){if(t=Un(e),t===null)throw Error(I(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return Dc(o),e;if(n===l)return Dc(o),t;n=n.sibling}throw Error(I(188))}if(a.return!==l.return)a=o,l=n;else{for(var r=!1,u=o.child;u;){if(u===a){r=!0,a=o,l=n;break}if(u===l){r=!0,l=o,a=n;break}u=u.sibling}if(!r){for(u=n.child;u;){if(u===a){r=!0,a=n,l=o;break}if(u===l){r=!0,l=n,a=o;break}u=u.sibling}if(!r)throw Error(I(189))}}if(a.alternate!==l)throw Error(I(190))}if(a.tag!==3)throw Error(I(188));return a.stateNode.current===a?e:t}function np(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=np(e),t!==null)return t;e=e.sibling}return null}var me=Object.assign,CL=Symbol.for("react.element"),Tr=Symbol.for("react.transitional.element"),rn=Symbol.for("react.portal"),to=Symbol.for("react.fragment"),rp=Symbol.for("react.strict_mode"),Mi=Symbol.for("react.profiler"),up=Symbol.for("react.consumer"),ga=Symbol.for("react.context"),Sd=Symbol.for("react.forward_ref"),Ai=Symbol.for("react.suspense"),Ti=Symbol.for("react.suspense_list"),Cd=Symbol.for("react.memo"),Ba=Symbol.for("react.lazy"),Di=Symbol.for("react.activity"),IL=Symbol.for("react.memo_cache_sentinel"),Rc=Symbol.iterator;function $o(e){return e===null||typeof e!="object"?null:(e=Rc&&e[Rc]||e["@@iterator"],typeof e=="function"?e:null)}var wL=Symbol.for("react.client.reference");function Ri(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===wL?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case to:return"Fragment";case Mi:return"Profiler";case rp:return"StrictMode";case Ai:return"Suspense";case Ti:return"SuspenseList";case Di:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case rn:return"Portal";case ga:return e.displayName||"Context";case up:return(e._context.displayName||"Context")+".Consumer";case Sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cd:return t=e.displayName||null,t!==null?t:Ri(e.type)||"Memo";case Ba:t=e._payload,e=e._init;try{return Ri(e(t))}catch{}}return null}var un=Array.isArray,O=tp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=yL.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vl={pending:!1,data:null,method:null,action:null},Ei=[],ao=-1;function ea(e){return{current:e}}function Oe(e){0>ao||(e.current=Ei[ao],Ei[ao]=null,ao--)}function ie(e,t){ao++,Ei[ao]=e.current,e.current=t}var $t=ea(null),wn=ea(null),Xa=ea(null),su=ea(null);function iu(e,t){switch(ie(Xa,t),ie(wn,e),ie($t,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?zm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=zm(t),e=Mh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Oe($t),ie($t,e)}function yo(){Oe($t),Oe(wn),Oe(Xa)}function Ni(e){e.memoizedState!==null&&ie(su,e);var t=$t.current,a=Mh(t,e.type);t!==a&&(ie(wn,e),ie($t,a))}function du(e){wn.current===e&&(Oe($t),Oe(wn)),su.current===e&&(Oe(su),Pn._currentValue=vl)}var Ws,Ec;function hl(e){if(Ws===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ws=t&&t[1]||"",Ec=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ws+e+Ec}var js=!1;function Ks(e,t){if(!e||js)return"";js=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){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(m){var f=m}Reflect.construct(e,[],g)}else{try{g.call()}catch(m){f=m}e.call(g.prototype)}}else{try{throw Error()}catch(m){f=m}(g=e())&&typeof g.catch=="function"&&g.catch(function(){})}}catch(m){if(m&&f&&typeof m.stack=="string")return[m.stack,f.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=l.DetermineComponentFrameRoot(),r=n[0],u=n[1];if(r&&u){var s=r.split(`
|
|
4
|
+
`),i=u.split(`
|
|
5
|
+
`);for(o=l=0;l<s.length&&!s[l].includes("DetermineComponentFrameRoot");)l++;for(;o<i.length&&!i[o].includes("DetermineComponentFrameRoot");)o++;if(l===s.length||o===i.length)for(l=s.length-1,o=i.length-1;1<=l&&0<=o&&s[l]!==i[o];)o--;for(;1<=l&&0<=o;l--,o--)if(s[l]!==i[o]){if(l!==1||o!==1)do if(l--,o--,0>o||s[l]!==i[o]){var d=`
|
|
6
|
+
`+s[l].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=l&&0<=o);break}}}finally{js=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?hl(a):""}function kL(e,t){switch(e.tag){case 26:case 27:case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return e.child!==t&&t!==null?hl("Suspense Fallback"):hl("Suspense");case 19:return hl("SuspenseList");case 0:case 15:return Ks(e.type,!1);case 11:return Ks(e.type.render,!1);case 1:return Ks(e.type,!0);case 31:return hl("Activity");default:return""}}function Nc(e){try{var t="",a=null;do t+=kL(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var Bi=Object.prototype.hasOwnProperty,Id=De.unstable_scheduleCallback,Qs=De.unstable_cancelCallback,ML=De.unstable_shouldYield,AL=De.unstable_requestPaint,ht=De.unstable_now,TL=De.unstable_getCurrentPriorityLevel,sp=De.unstable_ImmediatePriority,ip=De.unstable_UserBlockingPriority,fu=De.unstable_NormalPriority,DL=De.unstable_LowPriority,dp=De.unstable_IdlePriority,RL=De.log,EL=De.unstable_setDisableYieldValue,qn=null,xt=null;function qa(e){if(typeof RL=="function"&&EL(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(qn,e)}catch{}}var bt=Math.clz32?Math.clz32:HL,NL=Math.log,BL=Math.LN2;function HL(e){return e>>>=0,e===0?32:31-(NL(e)/BL|0)|0}var Dr=256,Rr=262144,Er=4194304;function xl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ou(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,n=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var u=l&134217727;return u!==0?(l=u&~n,l!==0?o=xl(l):(r&=u,r!==0?o=xl(r):a||(a=u&~e,a!==0&&(o=xl(a))))):(u=l&~n,u!==0?o=xl(u):r!==0?o=xl(r):a||(a=l&~e,a!==0&&(o=xl(a)))),o===0?0:t!==0&&t!==o&&(t&n)===0&&(n=o&-o,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:o}function Fn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function PL(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fp(){var e=Er;return Er<<=1,(Er&62914560)===0&&(Er=4194304),e}function Js(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function _n(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function OL(e,t,a,l,o,n){var r=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var u=e.entanglements,s=e.expirationTimes,i=e.hiddenUpdates;for(a=r&~a;0<a;){var d=31-bt(a),g=1<<d;u[d]=0,s[d]=-1;var f=i[d];if(f!==null)for(i[d]=null,d=0;d<f.length;d++){var m=f[d];m!==null&&(m.lane&=-536870913)}a&=~g}l!==0&&cp(e,l,0),n!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=n&~(r&~t))}function cp(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-bt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function mp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-bt(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function pp(e,t){var a=t&-t;return a=(a&42)!==0?1:wd(a),(a&(e.suspendedLanes|t))!==0?0:a}function wd(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function kd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function gp(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:zh(e.type))}function Bc(e,t){var a=J.p;try{return J.p=e,t()}finally{J.p=a}}var ol=Math.random().toString(36).slice(2),Ue="__reactFiber$"+ol,nt="__reactProps$"+ol,Eo="__reactContainer$"+ol,Hi="__reactEvents$"+ol,zL="__reactListeners$"+ol,UL="__reactHandles$"+ol,Hc="__reactResources$"+ol,Gn="__reactMarker$"+ol;function Md(e){delete e[Ue],delete e[nt],delete e[Hi],delete e[zL],delete e[UL]}function lo(e){var t=e[Ue];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Eo]||a[Ue]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Gm(e);e!==null;){if(a=e[Ue])return a;e=Gm(e)}return t}e=a,a=e.parentNode}return null}function No(e){if(e=e[Ue]||e[Eo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function sn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(I(33))}function po(e){var t=e[Hc];return t||(t=e[Hc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[Gn]=!0}var hp=new Set,xp={};function Dl(e,t){So(e,t),So(e+"Capture",t)}function So(e,t){for(xp[e]=t,e=0;e<t.length;e++)hp.add(t[e])}var qL=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]*$"),Pc={},Oc={};function FL(e){return Bi.call(Oc,e)?!0:Bi.call(Pc,e)?!1:qL.test(e)?Oc[e]=!0:(Pc[e]=!0,!1)}function Zr(e,t,a){if(FL(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Nr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function sa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _L(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,n=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(r){a=""+r,n.call(this,r)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(r){a=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pi(e){if(!e._valueTracker){var t=bp(e)?"checked":"value";e._valueTracker=_L(e,t,""+e[t])}}function Lp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=bp(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function cu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var GL=/[\n"\\]/g;function At(e){return e.replace(GL,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oi(e,t,a,l,o,n,r,u){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?zi(e,r,wt(t)):a!=null?zi(e,r,wt(a)):l!=null&&e.removeAttribute("value"),o==null&&n!=null&&(e.defaultChecked=!!n),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.name=""+wt(u):e.removeAttribute("name")}function vp(e,t,a,l,o,n,r,u){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){Pi(e);return}a=a!=null?""+wt(a):"",t=t!=null?""+wt(t):a,u||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=u?e.checked:!!l,e.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Pi(e)}function zi(e,t,a){t==="number"&&cu(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function go(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+wt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function yp(e,t,a){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+wt(a):""}function Sp(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(I(92));if(un(l)){if(1<l.length)throw Error(I(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=wt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Pi(e)}function Co(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var VL=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 zc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||VL.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Cp(e,t,a){if(t!=null&&typeof t!="object")throw Error(I(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&zc(e,o,l)}else for(var n in t)t.hasOwnProperty(n)&&zc(e,n,t[n])}function Ad(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var XL=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"]]),YL=/^[\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 Wr(e){return YL.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var Ui=null;function Td(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oo=null,ho=null;function Uc(e){var t=No(e);if(t&&(e=t.stateNode)){var a=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oi(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[nt]||null;if(!o)throw Error(I(90));Oi(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Lp(l)}break e;case"textarea":yp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&go(e,!!a.multiple,t,!1)}}}var $s=!1;function Ip(e,t,a){if($s)return e(t,a);$s=!0;try{var l=e(t);return l}finally{if($s=!1,(oo!==null||ho!==null)&&(ju(),oo&&(t=oo,e=ho,ho=oo=null,Uc(t),e)))for(t=0;t<e.length;t++)Uc(e[t])}}function kn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[nt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(I(231,t,typeof a));return a}var ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qi=!1;if(ya)try{Kl={},Object.defineProperty(Kl,"passive",{get:function(){qi=!0}}),window.addEventListener("test",Kl,Kl),window.removeEventListener("test",Kl,Kl)}catch{qi=!1}var Kl,Fa=null,Dd=null,jr=null;function wp(){if(jr)return jr;var e,t=Dd,a=t.length,l,o="value"in Fa?Fa.value:Fa.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var r=a-e;for(l=1;l<=r&&t[a-l]===o[n-l];l++);return jr=o.slice(e,1<l?1-l:void 0)}function Kr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Br(){return!0}function qc(){return!1}function rt(e){function t(a,l,o,n,r){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=n,this.target=r,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(a=e[u],this[u]=a?a(n):n[u]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Br:qc,this.isPropagationStopped=qc,this}return me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Br)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Br)},persist:function(){},isPersistent:Br}),t}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zu=rt(Rl),Vn=me({},Rl,{view:0,detail:0}),ZL=rt(Vn),ei,ti,en,Uu=me({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&e.type==="mousemove"?(ei=e.screenX-en.screenX,ti=e.screenY-en.screenY):ti=ei=0,en=e),ei)},movementY:function(e){return"movementY"in e?e.movementY:ti}}),Fc=rt(Uu),WL=me({},Uu,{dataTransfer:0}),jL=rt(WL),KL=me({},Vn,{relatedTarget:0}),ai=rt(KL),QL=me({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),JL=rt(QL),$L=me({},Rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ev=rt($L),tv=me({},Rl,{data:0}),_c=rt(tv),av={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lv={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"},ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ov[e])?!!t[e]:!1}function Rd(){return nv}var rv=me({},Vn,{key:function(e){if(e.key){var t=av[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rd,charCode:function(e){return e.type==="keypress"?Kr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uv=rt(rv),sv=me({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gc=rt(sv),iv=me({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rd}),dv=rt(iv),fv=me({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),cv=rt(fv),mv=me({},Uu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),pv=rt(mv),gv=me({},Rl,{newState:0,oldState:0}),hv=rt(gv),xv=[9,13,27,32],Ed=ya&&"CompositionEvent"in window,cn=null;ya&&"documentMode"in document&&(cn=document.documentMode);var bv=ya&&"TextEvent"in window&&!cn,kp=ya&&(!Ed||cn&&8<cn&&11>=cn),Vc=" ",Xc=!1;function Mp(e,t){switch(e){case"keyup":return xv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ap(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var no=!1;function Lv(e,t){switch(e){case"compositionend":return Ap(t);case"keypress":return t.which!==32?null:(Xc=!0,Vc);case"textInput":return e=t.data,e===Vc&&Xc?null:e;default:return null}}function vv(e,t){if(no)return e==="compositionend"||!Ed&&Mp(e,t)?(e=wp(),jr=Dd=Fa=null,no=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kp&&t.locale!=="ko"?null:t.data;default:return null}}var yv={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 Yc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yv[e.type]:t==="textarea"}function Tp(e,t,a,l){oo?ho?ho.push(l):ho=[l]:oo=l,t=Du(t,"onChange"),0<t.length&&(a=new zu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var mn=null,Mn=null;function Sv(e){Ih(e,0)}function qu(e){var t=sn(e);if(Lp(t))return e}function Zc(e,t){if(e==="change")return t}var Dp=!1;ya&&(ya?(Pr="oninput"in document,Pr||(li=document.createElement("div"),li.setAttribute("oninput","return;"),Pr=typeof li.oninput=="function"),Hr=Pr):Hr=!1,Dp=Hr&&(!document.documentMode||9<document.documentMode));var Hr,Pr,li;function Wc(){mn&&(mn.detachEvent("onpropertychange",Rp),Mn=mn=null)}function Rp(e){if(e.propertyName==="value"&&qu(Mn)){var t=[];Tp(t,Mn,e,Td(e)),Ip(Sv,t)}}function Cv(e,t,a){e==="focusin"?(Wc(),mn=t,Mn=a,mn.attachEvent("onpropertychange",Rp)):e==="focusout"&&Wc()}function Iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qu(Mn)}function wv(e,t){if(e==="click")return qu(t)}function kv(e,t){if(e==="input"||e==="change")return qu(t)}function Mv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Mv;function An(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Bi.call(t,o)||!vt(e[o],t[o]))return!1}return!0}function jc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kc(e,t){var a=jc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=jc(a)}}function Ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Np(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=cu(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=cu(e.document)}return t}function Nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Av=ya&&"documentMode"in document&&11>=document.documentMode,ro=null,Fi=null,pn=null,_i=!1;function Qc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;_i||ro==null||ro!==cu(l)||(l=ro,"selectionStart"in l&&Nd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),pn&&An(pn,l)||(pn=l,l=Du(Fi,"onSelect"),0<l.length&&(t=new zu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=ro)))}function gl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var uo={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionrun:gl("Transition","TransitionRun"),transitionstart:gl("Transition","TransitionStart"),transitioncancel:gl("Transition","TransitionCancel"),transitionend:gl("Transition","TransitionEnd")},oi={},Bp={};ya&&(Bp=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);function El(e){if(oi[e])return oi[e];if(!uo[e])return e;var t=uo[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Bp)return oi[e]=t[a];return e}var Hp=El("animationend"),Pp=El("animationiteration"),Op=El("animationstart"),Tv=El("transitionrun"),Dv=El("transitionstart"),Rv=El("transitioncancel"),zp=El("transitionend"),Up=new Map,Gi="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(" ");Gi.push("scrollEnd");function qt(e,t){Up.set(e,t),Dl(t,[e])}var mu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},It=[],so=0,Bd=0;function Fu(){for(var e=so,t=Bd=so=0;t<e;){var a=It[t];It[t++]=null;var l=It[t];It[t++]=null;var o=It[t];It[t++]=null;var n=It[t];if(It[t++]=null,l!==null&&o!==null){var r=l.pending;r===null?o.next=o:(o.next=r.next,r.next=o),l.pending=o}n!==0&&qp(a,o,n)}}function _u(e,t,a,l){It[so++]=e,It[so++]=t,It[so++]=a,It[so++]=l,Bd|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Hd(e,t,a,l){return _u(e,t,a,l),pu(e)}function Nl(e,t){return _u(e,null,null,t),pu(e)}function qp(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,n=e.return;n!==null;)n.childLanes|=a,l=n.alternate,l!==null&&(l.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(o=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,o&&t!==null&&(o=31-bt(a),e=n.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),n):null}function pu(e){if(50<Cn)throw Cn=0,dd=null,Error(I(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var io={};function Ev(e,t,a,l){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,a,l){return new Ev(e,t,a,l)}function Pd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ba(e,t){var a=e.alternate;return a===null?(a=pt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Fp(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Qr(e,t,a,l,o,n){var r=0;if(l=e,typeof e=="function")Pd(e)&&(r=1);else if(typeof e=="string")r=Hy(e,a,$t.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Di:return e=pt(31,a,t,o),e.elementType=Di,e.lanes=n,e;case to:return yl(a.children,o,n,t);case rp:r=8,o|=24;break;case Mi:return e=pt(12,a,t,o|2),e.elementType=Mi,e.lanes=n,e;case Ai:return e=pt(13,a,t,o),e.elementType=Ai,e.lanes=n,e;case Ti:return e=pt(19,a,t,o),e.elementType=Ti,e.lanes=n,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ga:r=10;break e;case up:r=9;break e;case Sd:r=11;break e;case Cd:r=14;break e;case Ba:r=16,l=null;break e}r=29,a=Error(I(130,e===null?"null":typeof e,"")),l=null}return t=pt(r,a,t,o),t.elementType=e,t.type=l,t.lanes=n,t}function yl(e,t,a,l){return e=pt(7,e,l,t),e.lanes=a,e}function ni(e,t,a){return e=pt(6,e,null,t),e.lanes=a,e}function _p(e){var t=pt(18,null,null,0);return t.stateNode=e,t}function ri(e,t,a){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jc=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var a=Jc.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Nc(t)},Jc.set(e,t),t)}return{value:e,source:t,stack:Nc(t)}}var fo=[],co=0,gu=null,Tn=0,kt=[],Mt=0,el=null,Kt=1,Qt="";function ma(e,t){fo[co++]=Tn,fo[co++]=gu,gu=e,Tn=t}function Gp(e,t,a){kt[Mt++]=Kt,kt[Mt++]=Qt,kt[Mt++]=el,el=e;var l=Kt;e=Qt;var o=32-bt(l)-1;l&=~(1<<o),a+=1;var n=32-bt(t)+o;if(30<n){var r=o-o%5;n=(l&(1<<r)-1).toString(32),l>>=r,o-=r,Kt=1<<32-bt(t)+o|a<<o|l,Qt=n+e}else Kt=1<<n|a<<o|l,Qt=e}function Od(e){e.return!==null&&(ma(e,1),Gp(e,1,0))}function zd(e){for(;e===gu;)gu=fo[--co],fo[co]=null,Tn=fo[--co],fo[co]=null;for(;e===el;)el=kt[--Mt],kt[Mt]=null,Qt=kt[--Mt],kt[Mt]=null,Kt=kt[--Mt],kt[Mt]=null}function Vp(e,t){kt[Mt++]=Kt,kt[Mt++]=Qt,kt[Mt++]=el,Kt=t.id,Qt=t.overflow,el=e}var qe=null,ce=null,Y=!1,Ya=null,Dt=!1,Vi=Error(I(519));function tl(e){var t=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Dn(Tt(t,e)),Vi}function $c(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Ue]=e,t[nt]=l,a){case"dialog":G("cancel",t),G("close",t);break;case"iframe":case"object":case"embed":G("load",t);break;case"video":case"audio":for(a=0;a<Bn.length;a++)G(Bn[a],t);break;case"source":G("error",t);break;case"img":case"image":case"link":G("error",t),G("load",t);break;case"details":G("toggle",t);break;case"input":G("invalid",t),vp(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":G("invalid",t);break;case"textarea":G("invalid",t),Sp(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||kh(t.textContent,a)?(l.popover!=null&&(G("beforetoggle",t),G("toggle",t)),l.onScroll!=null&&G("scroll",t),l.onScrollEnd!=null&&G("scrollend",t),l.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||tl(e,!0)}function em(e){for(qe=e.return;qe;)switch(qe.tag){case 5:case 31:case 13:Dt=!1;return;case 27:case 3:Dt=!0;return;default:qe=qe.return}}function Ql(e){if(e!==qe)return!1;if(!Y)return em(e),Y=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||gd(e.type,e.memoizedProps)),a=!a),a&&ce&&tl(e),em(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));ce=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));ce=_m(e)}else t===27?(t=ce,nl(e.type)?(e=Ld,Ld=null,ce=e):ce=t):ce=qe?Et(e.stateNode.nextSibling):null;return!0}function wl(){ce=qe=null,Y=!1}function ui(){var e=Ya;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),Ya=null),e}function Dn(e){Ya===null?Ya=[e]:Ya.push(e)}var Xi=ea(null),Bl=null,xa=null;function Pa(e,t,a){ie(Xi,t._currentValue),t._currentValue=a}function La(e){e._currentValue=Xi.current,Oe(Xi)}function Yi(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Zi(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var n=o.dependencies;if(n!==null){var r=o.child;n=n.firstContext;e:for(;n!==null;){var u=n;n=o;for(var s=0;s<t.length;s++)if(u.context===t[s]){n.lanes|=a,u=n.alternate,u!==null&&(u.lanes|=a),Yi(n.return,a,e),l||(r=null);break e}n=u.next}}else if(o.tag===18){if(r=o.return,r===null)throw Error(I(341));r.lanes|=a,n=r.alternate,n!==null&&(n.lanes|=a),Yi(r,a,e),r=null}else r=o.child;if(r!==null)r.return=o;else for(r=o;r!==null;){if(r===e){r=null;break}if(o=r.sibling,o!==null){o.return=r.return,r=o;break}r=r.return}o=r}}function Bo(e,t,a,l){e=null;for(var o=t,n=!1;o!==null;){if(!n){if((o.flags&524288)!==0)n=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var r=o.alternate;if(r===null)throw Error(I(387));if(r=r.memoizedProps,r!==null){var u=o.type;vt(o.pendingProps.value,r.value)||(e!==null?e.push(u):e=[u])}}else if(o===su.current){if(r=o.alternate,r===null)throw Error(I(387));r.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Pn):e=[Pn])}o=o.return}e!==null&&Zi(t,e,a,l),t.flags|=262144}function hu(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){Bl=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Fe(e){return Xp(Bl,e)}function Or(e,t){return Bl===null&&kl(e),Xp(e,t)}function Xp(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xa===null){if(e===null)throw Error(I(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return a}var Nv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Bv=De.unstable_scheduleCallback,Hv=De.unstable_NormalPriority,Me={$$typeof:ga,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ud(){return{controller:new Nv,data:new Map,refCount:0}}function Xn(e){e.refCount--,e.refCount===0&&Bv(Hv,function(){e.controller.abort()})}var gn=null,Wi=0,Io=0,xo=null;function Pv(e,t){if(gn===null){var a=gn=[];Wi=0,Io=ff(),xo={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Wi++,t.then(tm,tm),t}function tm(){if(--Wi===0&&gn!==null){xo!==null&&(xo.status="fulfilled");var e=gn;gn=null,Io=0,xo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ov(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var am=O.S;O.S=function(e,t){nh=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pv(e,t),am!==null&&am(e,t)};var Sl=ea(null);function qd(){var e=Sl.current;return e!==null?e:se.pooledCache}function Jr(e,t){t===null?ie(Sl,Sl.current):ie(Sl,t.pool)}function Yp(){var e=qd();return e===null?null:{parent:Me._currentValue,pool:e}}var Ho=Error(I(460)),Fd=Error(I(474)),Gu=Error(I(542)),xu={then:function(){}};function lm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zp(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ha,ha),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nm(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=se,e!==null&&100<e.shellSuspendCounter)throw Error(I(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nm(e),e}throw Cl=t,Ho}}function bl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Cl=a,Ho):a}}var Cl=null;function om(){if(Cl===null)throw Error(I(459));var e=Cl;return Cl=null,e}function nm(e){if(e===Ho||e===Gu)throw Error(I(483))}var bo=null,Rn=0;function zr(e){var t=Rn;return Rn+=1,bo===null&&(bo=[]),Zp(bo,e,t)}function tn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ur(e,t){throw t.$$typeof===CL?Error(I(525)):(e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wp(e){function t(p,c){if(e){var h=p.deletions;h===null?(p.deletions=[c],p.flags|=16):h.push(c)}}function a(p,c){if(!e)return null;for(;c!==null;)t(p,c),c=c.sibling;return null}function l(p){for(var c=new Map;p!==null;)p.key!==null?c.set(p.key,p):c.set(p.index,p),p=p.sibling;return c}function o(p,c){return p=ba(p,c),p.index=0,p.sibling=null,p}function n(p,c,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<c?(p.flags|=67108866,c):h):(p.flags|=67108866,c)):(p.flags|=1048576,c)}function r(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function u(p,c,h,L){return c===null||c.tag!==6?(c=ni(h,p.mode,L),c.return=p,c):(c=o(c,h),c.return=p,c)}function s(p,c,h,L){var T=h.type;return T===to?d(p,c,h.props.children,L,h.key):c!==null&&(c.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ba&&bl(T)===c.type)?(c=o(c,h.props),tn(c,h),c.return=p,c):(c=Qr(h.type,h.key,h.props,null,p.mode,L),tn(c,h),c.return=p,c)}function i(p,c,h,L){return c===null||c.tag!==4||c.stateNode.containerInfo!==h.containerInfo||c.stateNode.implementation!==h.implementation?(c=ri(h,p.mode,L),c.return=p,c):(c=o(c,h.children||[]),c.return=p,c)}function d(p,c,h,L,T){return c===null||c.tag!==7?(c=yl(h,p.mode,L,T),c.return=p,c):(c=o(c,h),c.return=p,c)}function g(p,c,h){if(typeof c=="string"&&c!==""||typeof c=="number"||typeof c=="bigint")return c=ni(""+c,p.mode,h),c.return=p,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Tr:return h=Qr(c.type,c.key,c.props,null,p.mode,h),tn(h,c),h.return=p,h;case rn:return c=ri(c,p.mode,h),c.return=p,c;case Ba:return c=bl(c),g(p,c,h)}if(un(c)||$o(c))return c=yl(c,p.mode,h,null),c.return=p,c;if(typeof c.then=="function")return g(p,zr(c),h);if(c.$$typeof===ga)return g(p,Or(p,c),h);Ur(p,c)}return null}function f(p,c,h,L){var T=c!==null?c.key:null;if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return T!==null?null:u(p,c,""+h,L);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Tr:return h.key===T?s(p,c,h,L):null;case rn:return h.key===T?i(p,c,h,L):null;case Ba:return h=bl(h),f(p,c,h,L)}if(un(h)||$o(h))return T!==null?null:d(p,c,h,L,null);if(typeof h.then=="function")return f(p,c,zr(h),L);if(h.$$typeof===ga)return f(p,c,Or(p,h),L);Ur(p,h)}return null}function m(p,c,h,L,T){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return p=p.get(h)||null,u(c,p,""+L,T);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case Tr:return p=p.get(L.key===null?h:L.key)||null,s(c,p,L,T);case rn:return p=p.get(L.key===null?h:L.key)||null,i(c,p,L,T);case Ba:return L=bl(L),m(p,c,h,L,T)}if(un(L)||$o(L))return p=p.get(h)||null,d(c,p,L,T,null);if(typeof L.then=="function")return m(p,c,h,zr(L),T);if(L.$$typeof===ga)return m(p,c,h,Or(c,L),T);Ur(c,L)}return null}function b(p,c,h,L){for(var T=null,R=null,A=c,y=c=0,k=null;A!==null&&y<h.length;y++){A.index>y?(k=A,A=null):k=A.sibling;var w=f(p,A,h[y],L);if(w===null){A===null&&(A=k);break}e&&A&&w.alternate===null&&t(p,A),c=n(w,c,y),R===null?T=w:R.sibling=w,R=w,A=k}if(y===h.length)return a(p,A),Y&&ma(p,y),T;if(A===null){for(;y<h.length;y++)A=g(p,h[y],L),A!==null&&(c=n(A,c,y),R===null?T=A:R.sibling=A,R=A);return Y&&ma(p,y),T}for(A=l(A);y<h.length;y++)k=m(A,p,y,h[y],L),k!==null&&(e&&k.alternate!==null&&A.delete(k.key===null?y:k.key),c=n(k,c,y),R===null?T=k:R.sibling=k,R=k);return e&&A.forEach(function(N){return t(p,N)}),Y&&ma(p,y),T}function v(p,c,h,L){if(h==null)throw Error(I(151));for(var T=null,R=null,A=c,y=c=0,k=null,w=h.next();A!==null&&!w.done;y++,w=h.next()){A.index>y?(k=A,A=null):k=A.sibling;var N=f(p,A,w.value,L);if(N===null){A===null&&(A=k);break}e&&A&&N.alternate===null&&t(p,A),c=n(N,c,y),R===null?T=N:R.sibling=N,R=N,A=k}if(w.done)return a(p,A),Y&&ma(p,y),T;if(A===null){for(;!w.done;y++,w=h.next())w=g(p,w.value,L),w!==null&&(c=n(w,c,y),R===null?T=w:R.sibling=w,R=w);return Y&&ma(p,y),T}for(A=l(A);!w.done;y++,w=h.next())w=m(A,p,y,w.value,L),w!==null&&(e&&w.alternate!==null&&A.delete(w.key===null?y:w.key),c=n(w,c,y),R===null?T=w:R.sibling=w,R=w);return e&&A.forEach(function(Z){return t(p,Z)}),Y&&ma(p,y),T}function D(p,c,h,L){if(typeof h=="object"&&h!==null&&h.type===to&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Tr:e:{for(var T=h.key;c!==null;){if(c.key===T){if(T=h.type,T===to){if(c.tag===7){a(p,c.sibling),L=o(c,h.props.children),L.return=p,p=L;break e}}else if(c.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ba&&bl(T)===c.type){a(p,c.sibling),L=o(c,h.props),tn(L,h),L.return=p,p=L;break e}a(p,c);break}else t(p,c);c=c.sibling}h.type===to?(L=yl(h.props.children,p.mode,L,h.key),L.return=p,p=L):(L=Qr(h.type,h.key,h.props,null,p.mode,L),tn(L,h),L.return=p,p=L)}return r(p);case rn:e:{for(T=h.key;c!==null;){if(c.key===T)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){a(p,c.sibling),L=o(c,h.children||[]),L.return=p,p=L;break e}else{a(p,c);break}else t(p,c);c=c.sibling}L=ri(h,p.mode,L),L.return=p,p=L}return r(p);case Ba:return h=bl(h),D(p,c,h,L)}if(un(h))return b(p,c,h,L);if($o(h)){if(T=$o(h),typeof T!="function")throw Error(I(150));return h=T.call(h),v(p,c,h,L)}if(typeof h.then=="function")return D(p,c,zr(h),L);if(h.$$typeof===ga)return D(p,c,Or(p,h),L);Ur(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,c!==null&&c.tag===6?(a(p,c.sibling),L=o(c,h),L.return=p,p=L):(a(p,c),L=ni(h,p.mode,L),L.return=p,p=L),r(p)):a(p,c)}return function(p,c,h,L){try{Rn=0;var T=D(p,c,h,L);return bo=null,T}catch(A){if(A===Ho||A===Gu)throw A;var R=pt(29,A,null,p.mode);return R.lanes=L,R.return=p,R}}}var Ml=Wp(!0),jp=Wp(!1),Ha=!1;function _d(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Q&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=pu(e),qp(e,null,a),t}return _u(e,l,t,a),pu(e)}function hn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,mp(e,a)}}function si(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var r={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?o=n=r:n=n.next=r,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Ki=!1;function xn(){if(Ki){var e=xo;if(e!==null)throw e}}function bn(e,t,a,l){Ki=!1;var o=e.updateQueue;Ha=!1;var n=o.firstBaseUpdate,r=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var s=u,i=s.next;s.next=null,r===null?n=i:r.next=i,r=s;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==r&&(u===null?d.firstBaseUpdate=i:u.next=i,d.lastBaseUpdate=s))}if(n!==null){var g=o.baseState;r=0,d=i=s=null,u=n;do{var f=u.lane&-536870913,m=f!==u.lane;if(m?(X&f)===f:(l&f)===f){f!==0&&f===Io&&(Ki=!0),d!==null&&(d=d.next={lane:0,tag:u.tag,payload:u.payload,callback:null,next:null});e:{var b=e,v=u;f=t;var D=a;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){g=b.call(D,g,f);break e}g=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,f=typeof b=="function"?b.call(D,g,f):b,f==null)break e;g=me({},g,f);break e;case 2:Ha=!0}}f=u.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=o.callbacks,m===null?o.callbacks=[f]:m.push(f))}else m={lane:f,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(i=d=m,s=g):d=d.next=m,r|=f;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);d===null&&(s=g),o.baseState=s,o.firstBaseUpdate=i,o.lastBaseUpdate=d,n===null&&(o.shared.lanes=0),ll|=r,e.lanes=r,e.memoizedState=g}}function Kp(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function Qp(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Kp(a[e],t)}var wo=ea(null),bu=ea(0);function rm(e,t){e=wa,ie(bu,e),ie(wo,t),wa=e|t.baseLanes}function Qi(){ie(bu,wa),ie(wo,wo.current)}function Gd(){wa=bu.current,Oe(wo),Oe(bu)}var yt=ea(null),Rt=null;function Oa(e){var t=e.alternate;ie(ve,ve.current&1),ie(yt,e),Rt===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(Rt=e)}function Ji(e){ie(ve,ve.current),ie(yt,e),Rt===null&&(Rt=e)}function Jp(e){e.tag===22?(ie(ve,ve.current),ie(yt,e),Rt===null&&(Rt=e)):za(e)}function za(){ie(ve,ve.current),ie(yt,yt.current)}function mt(e){Oe(yt),Rt===e&&(Rt=null),Oe(ve)}var ve=ea(0);function Lu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||xd(a)||bd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sa=0,q=null,re=null,we=null,vu=!1,Lo=!1,Al=!1,yu=0,En=0,vo=null,zv=0;function he(){throw Error(I(321))}function Vd(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vt(e[a],t[a]))return!1;return!0}function Xd(e,t,a,l,o,n){return Sa=n,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Tg:af,Al=!1,n=a(l,o),Al=!1,Lo&&(n=eg(t,a,l,o)),$p(e),n}function $p(e){O.H=Nn;var t=re!==null&&re.next!==null;if(Sa=0,we=re=q=null,vu=!1,En=0,vo=null,t)throw Error(I(300));e===null||Ae||(e=e.dependencies,e!==null&&hu(e)&&(Ae=!0))}function eg(e,t,a,l){q=e;var o=0;do{if(Lo&&(vo=null),En=0,Lo=!1,25<=o)throw Error(I(301));if(o+=1,we=re=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}O.H=Dg,n=t(a,l)}while(Lo);return n}function Uv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Yn(t):t,e=e.useState()[0],(re!==null?re.memoizedState:null)!==e&&(q.flags|=1024),t}function Yd(){var e=yu!==0;return yu=0,e}function Zd(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Wd(e){if(vu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vu=!1}Sa=0,we=re=q=null,Lo=!1,En=yu=0,vo=null}function Je(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?q.memoizedState=we=e:we=we.next=e,we}function ye(){if(re===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var t=we===null?q.memoizedState:we.next;if(t!==null)we=t,re=e;else{if(e===null)throw q.alternate===null?Error(I(467)):Error(I(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},we===null?q.memoizedState=we=e:we=we.next=e}return we}function Vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yn(e){var t=En;return En+=1,vo===null&&(vo=[]),e=Zp(vo,e,t),t=q,(we===null?t.memoizedState:we.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Tg:af),e}function Xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yn(e);if(e.$$typeof===ga)return Fe(e)}throw Error(I(438,String(e)))}function jd(e){var t=null,a=q.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=q.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Vu(),q.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=IL;return t.index++,a}function Ca(e,t){return typeof t=="function"?t(e):t}function $r(e){var t=ye();return Kd(t,re,e)}function Kd(e,t,a){var l=e.queue;if(l===null)throw Error(I(311));l.lastRenderedReducer=a;var o=e.baseQueue,n=l.pending;if(n!==null){if(o!==null){var r=o.next;o.next=n.next,n.next=r}t.baseQueue=o=n,l.pending=null}if(n=e.baseState,o===null)e.memoizedState=n;else{t=o.next;var u=r=null,s=null,i=t,d=!1;do{var g=i.lane&-536870913;if(g!==i.lane?(X&g)===g:(Sa&g)===g){var f=i.revertLane;if(f===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null}),g===Io&&(d=!0);else if((Sa&f)===f){i=i.next,f===Io&&(d=!0);continue}else g={lane:0,revertLane:i.revertLane,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},s===null?(u=s=g,r=n):s=s.next=g,q.lanes|=f,ll|=f;g=i.action,Al&&a(n,g),n=i.hasEagerState?i.eagerState:a(n,g)}else f={lane:g,revertLane:i.revertLane,gesture:i.gesture,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},s===null?(u=s=f,r=n):s=s.next=f,q.lanes|=g,ll|=g;i=i.next}while(i!==null&&i!==t);if(s===null?r=n:s.next=u,!vt(n,e.memoizedState)&&(Ae=!0,d&&(a=xo,a!==null)))throw a;e.memoizedState=n,e.baseState=r,e.baseQueue=s,l.lastRenderedState=n}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ii(e){var t=ye(),a=t.queue;if(a===null)throw Error(I(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var r=o=o.next;do n=e(n,r.action),r=r.next;while(r!==o);vt(n,t.memoizedState)||(Ae=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,l]}function tg(e,t,a){var l=q,o=ye(),n=Y;if(n){if(a===void 0)throw Error(I(407));a=a()}else a=t();var r=!vt((re||o).memoizedState,a);if(r&&(o.memoizedState=a,Ae=!0),o=o.queue,Qd(og.bind(null,l,o,e),[e]),o.getSnapshot!==t||r||we!==null&&we.memoizedState.tag&1){if(l.flags|=2048,ko(9,{destroy:void 0},lg.bind(null,l,o,a,t),null),se===null)throw Error(I(349));n||(Sa&127)!==0||ag(l,t,a)}return a}function ag(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=q.updateQueue,t===null?(t=Vu(),q.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lg(e,t,a,l){t.value=a,t.getSnapshot=l,ng(t)&&rg(e)}function og(e,t,a){return a(function(){ng(t)&&rg(e)})}function ng(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vt(e,a)}catch{return!0}}function rg(e){var t=Nl(e,2);t!==null&&ot(t,e,2)}function $i(e){var t=Je();if(typeof e=="function"){var a=e;if(e=a(),Al){qa(!0);try{a()}finally{qa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:e},t}function ug(e,t,a,l){return e.baseState=a,Kd(e,re,typeof l=="function"?l:Ca)}function qv(e,t,a,l,o){if(Zu(e))throw Error(I(485));if(e=t.action,e!==null){var n={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){n.listeners.push(r)}};O.T!==null?a(!0):n.isTransition=!1,l(n),a=t.pending,a===null?(n.next=t.pending=n,sg(t,n)):(n.next=a.next,t.pending=a.next=n)}}function sg(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var n=O.T,r={};O.T=r;try{var u=a(o,l),s=O.S;s!==null&&s(r,u),um(e,t,u)}catch(i){ed(e,t,i)}finally{n!==null&&r.types!==null&&(n.types=r.types),O.T=n}}else try{n=a(o,l),um(e,t,n)}catch(i){ed(e,t,i)}}function um(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){sm(e,t,l)},function(l){return ed(e,t,l)}):sm(e,t,a)}function sm(e,t,a){t.status="fulfilled",t.value=a,ig(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,sg(e,a)))}function ed(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,ig(t),t=t.next;while(t!==l)}e.action=null}function ig(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dg(e,t){return t}function im(e,t){if(Y){var a=se.formState;if(a!==null){e:{var l=q;if(Y){if(ce){t:{for(var o=ce,n=Dt;o.nodeType!==8;){if(!n){o=null;break t}if(o=Et(o.nextSibling),o===null){o=null;break t}}n=o.data,o=n==="F!"||n==="F"?o:null}if(o){ce=Et(o.nextSibling),l=o.data==="F!";break e}}tl(l)}l=!1}l&&(t=a[0])}}return a=Je(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dg,lastRenderedState:t},a.queue=l,a=kg.bind(null,q,l),l.dispatch=a,l=$i(!1),n=tf.bind(null,q,!1,l.queue),l=Je(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=qv.bind(null,q,o,n,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function dm(e){var t=ye();return fg(t,re,e)}function fg(e,t,a){if(t=Kd(e,t,dg)[0],e=$r(Ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Yn(t)}catch(r){throw r===Ho?Gu:r}else l=t;t=ye();var o=t.queue,n=o.dispatch;return a!==t.memoizedState&&(q.flags|=2048,ko(9,{destroy:void 0},Fv.bind(null,o,a),null)),[l,n,e]}function Fv(e,t){e.action=t}function fm(e){var t=ye(),a=re;if(a!==null)return fg(t,a,e);ye(),t=t.memoizedState,a=ye();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ko(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=q.updateQueue,t===null&&(t=Vu(),q.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function cg(){return ye().memoizedState}function eu(e,t,a,l){var o=Je();q.flags|=e,o.memoizedState=ko(1|t,{destroy:void 0},a,l===void 0?null:l)}function Yu(e,t,a,l){var o=ye();l=l===void 0?null:l;var n=o.memoizedState.inst;re!==null&&l!==null&&Vd(l,re.memoizedState.deps)?o.memoizedState=ko(t,n,a,l):(q.flags|=e,o.memoizedState=ko(1|t,n,a,l))}function cm(e,t){eu(8390656,8,e,t)}function Qd(e,t){Yu(2048,8,e,t)}function _v(e){q.flags|=4;var t=q.updateQueue;if(t===null)t=Vu(),q.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function mg(e){var t=ye().memoizedState;return _v({ref:t,nextImpl:e}),function(){if((Q&2)!==0)throw Error(I(440));return t.impl.apply(void 0,arguments)}}function pg(e,t){return Yu(4,2,e,t)}function gg(e,t){return Yu(4,4,e,t)}function hg(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xg(e,t,a){a=a!=null?a.concat([e]):null,Yu(4,4,hg.bind(null,t,e),a)}function Jd(){}function bg(e,t){var a=ye();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Vd(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Lg(e,t){var a=ye();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Vd(t,l[1]))return l[0];if(l=e(),Al){qa(!0);try{e()}finally{qa(!1)}}return a.memoizedState=[l,t],l}function $d(e,t,a){return a===void 0||(Sa&1073741824)!==0&&(X&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=uh(),q.lanes|=e,ll|=e,a)}function vg(e,t,a,l){return vt(a,t)?a:wo.current!==null?(e=$d(e,a,l),vt(e,t)||(Ae=!0),e):(Sa&42)===0||(Sa&1073741824)!==0&&(X&261930)===0?(Ae=!0,e.memoizedState=a):(e=uh(),q.lanes|=e,ll|=e,t)}function yg(e,t,a,l,o){var n=J.p;J.p=n!==0&&8>n?n:8;var r=O.T,u={};O.T=u,tf(e,!1,t,a);try{var s=o(),i=O.S;if(i!==null&&i(u,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=Ov(s,l);Ln(e,t,d,Lt(e))}else Ln(e,t,l,Lt(e))}catch(g){Ln(e,t,{then:function(){},status:"rejected",reason:g},Lt())}finally{J.p=n,r!==null&&u.types!==null&&(r.types=u.types),O.T=r}}function Gv(){}function td(e,t,a,l){if(e.tag!==5)throw Error(I(476));var o=Sg(e).queue;yg(e,o,t,vl,a===null?Gv:function(){return Cg(e),a(l)})}function Sg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:vl,baseState:vl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:vl},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cg(e){var t=Sg(e);t.next===null&&(t=e.alternate.memoizedState),Ln(e,t.next.queue,{},Lt())}function ef(){return Fe(Pn)}function Ig(){return ye().memoizedState}function wg(){return ye().memoizedState}function Vv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Lt();e=Za(a);var l=Wa(t,e,a);l!==null&&(ot(l,t,a),hn(l,t,a)),t={cache:Ud()},e.payload=t;return}t=t.return}}function Xv(e,t,a){var l=Lt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Zu(e)?Mg(t,a):(a=Hd(e,t,a,l),a!==null&&(ot(a,e,l),Ag(a,t,l)))}function kg(e,t,a){var l=Lt();Ln(e,t,a,l)}function Ln(e,t,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Zu(e))Mg(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var r=t.lastRenderedState,u=n(r,a);if(o.hasEagerState=!0,o.eagerState=u,vt(u,r))return _u(e,t,o,0),se===null&&Fu(),!1}catch{}if(a=Hd(e,t,o,l),a!==null)return ot(a,e,l),Ag(a,t,l),!0}return!1}function tf(e,t,a,l){if(l={lane:2,revertLane:ff(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Zu(e)){if(t)throw Error(I(479))}else t=Hd(e,a,l,2),t!==null&&ot(t,e,2)}function Zu(e){var t=e.alternate;return e===q||t!==null&&t===q}function Mg(e,t){Lo=vu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ag(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,mp(e,a)}}var Nn={readContext:Fe,use:Xu,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useLayoutEffect:he,useInsertionEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useSyncExternalStore:he,useId:he,useHostTransitionStatus:he,useFormState:he,useActionState:he,useOptimistic:he,useMemoCache:he,useCacheRefresh:he};Nn.useEffectEvent=he;var Tg={readContext:Fe,use:Xu,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:cm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,eu(4194308,4,hg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return eu(4194308,4,e,t)},useInsertionEffect:function(e,t){eu(4,2,e,t)},useMemo:function(e,t){var a=Je();t=t===void 0?null:t;var l=e();if(Al){qa(!0);try{e()}finally{qa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Je();if(a!==void 0){var o=a(t);if(Al){qa(!0);try{a(t)}finally{qa(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=Xv.bind(null,q,e),[l.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:function(e){e=$i(e);var t=e.queue,a=kg.bind(null,q,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Jd,useDeferredValue:function(e,t){var a=Je();return $d(a,e,t)},useTransition:function(){var e=$i(!1);return e=yg.bind(null,q,e.queue,!0,!1),Je().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=q,o=Je();if(Y){if(a===void 0)throw Error(I(407));a=a()}else{if(a=t(),se===null)throw Error(I(349));(X&127)!==0||ag(l,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,cm(og.bind(null,l,n,e),[e]),l.flags|=2048,ko(9,{destroy:void 0},lg.bind(null,l,n,a,t),null),a},useId:function(){var e=Je(),t=se.identifierPrefix;if(Y){var a=Qt,l=Kt;a=(l&~(1<<32-bt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=yu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=zv++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ef,useFormState:im,useActionState:im,useOptimistic:function(e){var t=Je();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=tf.bind(null,q,!0,a),a.dispatch=t,[e,t]},useMemoCache:jd,useCacheRefresh:function(){return Je().memoizedState=Vv.bind(null,q)},useEffectEvent:function(e){var t=Je(),a={impl:e};return t.memoizedState=a,function(){if((Q&2)!==0)throw Error(I(440));return a.impl.apply(void 0,arguments)}}},af={readContext:Fe,use:Xu,useCallback:bg,useContext:Fe,useEffect:Qd,useImperativeHandle:xg,useInsertionEffect:pg,useLayoutEffect:gg,useMemo:Lg,useReducer:$r,useRef:cg,useState:function(){return $r(Ca)},useDebugValue:Jd,useDeferredValue:function(e,t){var a=ye();return vg(a,re.memoizedState,e,t)},useTransition:function(){var e=$r(Ca)[0],t=ye().memoizedState;return[typeof e=="boolean"?e:Yn(e),t]},useSyncExternalStore:tg,useId:Ig,useHostTransitionStatus:ef,useFormState:dm,useActionState:dm,useOptimistic:function(e,t){var a=ye();return ug(a,re,e,t)},useMemoCache:jd,useCacheRefresh:wg};af.useEffectEvent=mg;var Dg={readContext:Fe,use:Xu,useCallback:bg,useContext:Fe,useEffect:Qd,useImperativeHandle:xg,useInsertionEffect:pg,useLayoutEffect:gg,useMemo:Lg,useReducer:ii,useRef:cg,useState:function(){return ii(Ca)},useDebugValue:Jd,useDeferredValue:function(e,t){var a=ye();return re===null?$d(a,e,t):vg(a,re.memoizedState,e,t)},useTransition:function(){var e=ii(Ca)[0],t=ye().memoizedState;return[typeof e=="boolean"?e:Yn(e),t]},useSyncExternalStore:tg,useId:Ig,useHostTransitionStatus:ef,useFormState:fm,useActionState:fm,useOptimistic:function(e,t){var a=ye();return re!==null?ug(a,re,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:jd,useCacheRefresh:wg};Dg.useEffectEvent=mg;function di(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:me({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ad={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Lt(),o=Za(l);o.payload=t,a!=null&&(o.callback=a),t=Wa(e,o,l),t!==null&&(ot(t,e,l),hn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Lt(),o=Za(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Wa(e,o,l),t!==null&&(ot(t,e,l),hn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Lt(),l=Za(a);l.tag=2,t!=null&&(l.callback=t),t=Wa(e,l,a),t!==null&&(ot(t,e,a),hn(t,e,a))}};function mm(e,t,a,l,o,n,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,n,r):t.prototype&&t.prototype.isPureReactComponent?!An(a,l)||!An(o,n):!0}function pm(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ad.enqueueReplaceState(t,t.state,null)}function Tl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=me({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Rg(e){mu(e)}function Eg(e){console.error(e)}function Ng(e){mu(e)}function Su(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function gm(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function ld(e,t,a){return a=Za(a),a.tag=3,a.payload={element:null},a.callback=function(){Su(e,t)},a}function Bg(e){return e=Za(e),e.tag=3,e}function Hg(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var n=l.value;e.payload=function(){return o(n)},e.callback=function(){gm(t,a,l)}}var r=a.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){gm(t,a,l),typeof o!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var u=l.stack;this.componentDidCatch(l.value,{componentStack:u!==null?u:""})})}function Yv(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Bo(t,a,o,!0),a=yt.current,a!==null){switch(a.tag){case 31:case 13:return Rt===null?Mu():a.alternate===null&&xe===0&&(xe=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===xu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),yi(e,l,o)),!1;case 22:return a.flags|=65536,l===xu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),yi(e,l,o)),!1}throw Error(I(435,a.tag))}return yi(e,l,o),Mu(),!1}if(Y)return t=yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Vi&&(e=Error(I(422),{cause:l}),Dn(Tt(e,a)))):(l!==Vi&&(t=Error(I(423),{cause:l}),Dn(Tt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Tt(l,a),o=ld(e.stateNode,l,o),si(e,o),xe!==4&&(xe=2)),!1;var n=Error(I(520),{cause:l});if(n=Tt(n,a),Sn===null?Sn=[n]:Sn.push(n),xe!==4&&(xe=2),t===null)return!0;l=Tt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=ld(a.stateNode,l,e),si(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(ja===null||!ja.has(n))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Bg(o),Hg(o,e,a,l),si(a,o),!1}a=a.return}while(a!==null);return!1}var lf=Error(I(461)),Ae=!1;function ze(e,t,a,l){t.child=e===null?jp(t,null,a,l):Ml(t,e.child,a,l)}function hm(e,t,a,l,o){a=a.render;var n=t.ref;if("ref"in l){var r={};for(var u in l)u!=="ref"&&(r[u]=l[u])}else r=l;return kl(t),l=Xd(e,t,a,r,n,o),u=Yd(),e!==null&&!Ae?(Zd(e,t,o),Ia(e,t,o)):(Y&&u&&Od(t),t.flags|=1,ze(e,t,l,o),t.child)}function xm(e,t,a,l,o){if(e===null){var n=a.type;return typeof n=="function"&&!Pd(n)&&n.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=n,Pg(e,t,n,l,o)):(e=Qr(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!of(e,o)){var r=n.memoizedProps;if(a=a.compare,a=a!==null?a:An,a(r,l)&&e.ref===t.ref)return Ia(e,t,o)}return t.flags|=1,e=ba(n,l),e.ref=t.ref,e.return=t,t.child=e}function Pg(e,t,a,l,o){if(e!==null){var n=e.memoizedProps;if(An(n,l)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=l=n,of(e,o))(e.flags&131072)!==0&&(Ae=!0);else return t.lanes=e.lanes,Ia(e,t,o)}return od(e,t,a,l,o)}function Og(e,t,a,l){var o=l.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~n}else l=0,t.child=null;return bm(e,t,n,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jr(t,n!==null?n.cachePool:null),n!==null?rm(t,n):Qi(),Jp(t);else return l=t.lanes=536870912,bm(e,t,n!==null?n.baseLanes|a:a,a,l)}else n!==null?(Jr(t,n.cachePool),rm(t,n),za(t),t.memoizedState=null):(e!==null&&Jr(t,null),Qi(),za(t));return ze(e,t,o,a),t.child}function dn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bm(e,t,a,l,o){var n=qd();return n=n===null?null:{parent:Me._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&Jr(t,null),Qi(),Jp(t),e!==null&&Bo(e,t,l,!0),t.childLanes=o,null}function tu(e,t){return t=Cu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lm(e,t,a){return Ml(t,e.child,null,a),e=tu(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function Zv(e,t,a){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Y){if(l.mode==="hidden")return e=tu(t,l),t.lanes=536870912,dn(null,e);if(Ji(t),(e=ce)?(e=Th(e,Dt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:el!==null?{id:Kt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=_p(e),a.return=t,t.child=a,qe=t,ce=null)):e=null,e===null)throw tl(t);return t.lanes=536870912,null}return tu(t,l)}var n=e.memoizedState;if(n!==null){var r=n.dehydrated;if(Ji(t),o)if(t.flags&256)t.flags&=-257,t=Lm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(I(558));else if(Ae||Bo(e,t,a,!1),o=(a&e.childLanes)!==0,Ae||o){if(l=se,l!==null&&(r=pp(l,a),r!==0&&r!==n.retryLane))throw n.retryLane=r,Nl(e,r),ot(l,e,r),lf;Mu(),t=Lm(e,t,a)}else e=n.treeContext,ce=Et(r.nextSibling),qe=t,Y=!0,Ya=null,Dt=!1,e!==null&&Vp(t,e),t=tu(t,l),t.flags|=4096;return t}return e=ba(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function au(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(I(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function od(e,t,a,l,o){return kl(t),a=Xd(e,t,a,l,void 0,o),l=Yd(),e!==null&&!Ae?(Zd(e,t,o),Ia(e,t,o)):(Y&&l&&Od(t),t.flags|=1,ze(e,t,a,o),t.child)}function vm(e,t,a,l,o,n){return kl(t),t.updateQueue=null,a=eg(t,l,a,o),$p(e),l=Yd(),e!==null&&!Ae?(Zd(e,t,n),Ia(e,t,n)):(Y&&l&&Od(t),t.flags|=1,ze(e,t,a,n),t.child)}function ym(e,t,a,l,o){if(kl(t),t.stateNode===null){var n=io,r=a.contextType;typeof r=="object"&&r!==null&&(n=Fe(r)),n=new a(l,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=ad,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=l,n.state=t.memoizedState,n.refs={},_d(t),r=a.contextType,n.context=typeof r=="object"&&r!==null?Fe(r):io,n.state=t.memoizedState,r=a.getDerivedStateFromProps,typeof r=="function"&&(di(t,a,r,l),n.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(r=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),r!==n.state&&ad.enqueueReplaceState(n,n.state,null),bn(t,l,n,o),xn(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){n=t.stateNode;var u=t.memoizedProps,s=Tl(a,u);n.props=s;var i=n.context,d=a.contextType;r=io,typeof d=="object"&&d!==null&&(r=Fe(d));var g=a.getDerivedStateFromProps;d=typeof g=="function"||typeof n.getSnapshotBeforeUpdate=="function",u=t.pendingProps!==u,d||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(u||i!==r)&&pm(t,n,l,r),Ha=!1;var f=t.memoizedState;n.state=f,bn(t,l,n,o),xn(),i=t.memoizedState,u||f!==i||Ha?(typeof g=="function"&&(di(t,a,g,l),i=t.memoizedState),(s=Ha||mm(t,a,s,l,f,i,r))?(d||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=i),n.props=l,n.state=i,n.context=r,l=s):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{n=t.stateNode,ji(e,t),r=t.memoizedProps,d=Tl(a,r),n.props=d,g=t.pendingProps,f=n.context,i=a.contextType,s=io,typeof i=="object"&&i!==null&&(s=Fe(i)),u=a.getDerivedStateFromProps,(i=typeof u=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(r!==g||f!==s)&&pm(t,n,l,s),Ha=!1,f=t.memoizedState,n.state=f,bn(t,l,n,o),xn();var m=t.memoizedState;r!==g||f!==m||Ha||e!==null&&e.dependencies!==null&&hu(e.dependencies)?(typeof u=="function"&&(di(t,a,u,l),m=t.memoizedState),(d=Ha||mm(t,a,d,l,f,m,s)||e!==null&&e.dependencies!==null&&hu(e.dependencies))?(i||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(l,m,s),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(l,m,s)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=m),n.props=l,n.state=m,n.context=s,l=d):(typeof n.componentDidUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),l=!1)}return n=l,au(e,t),l=(t.flags&128)!==0,n||l?(n=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&l?(t.child=Ml(t,e.child,null,o),t.child=Ml(t,null,a,o)):ze(e,t,a,o),t.memoizedState=n.state,e=t.child):e=Ia(e,t,o),e}function Sm(e,t,a,l){return wl(),t.flags|=256,ze(e,t,a,l),t.child}var fi={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ci(e){return{baseLanes:e,cachePool:Yp()}}function mi(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=gt),e}function zg(e,t,a){var l=t.pendingProps,o=!1,n=(t.flags&128)!==0,r;if((r=n)||(r=e!==null&&e.memoizedState===null?!1:(ve.current&2)!==0),r&&(o=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(Y){if(o?Oa(t):za(t),(e=ce)?(e=Th(e,Dt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:el!==null?{id:Kt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=_p(e),a.return=t,t.child=a,qe=t,ce=null)):e=null,e===null)throw tl(t);return bd(e)?t.lanes=32:t.lanes=536870912,null}var u=l.children;return l=l.fallback,o?(za(t),o=t.mode,u=Cu({mode:"hidden",children:u},o),l=yl(l,o,a,null),u.return=t,l.return=t,u.sibling=l,t.child=u,l=t.child,l.memoizedState=ci(a),l.childLanes=mi(e,r,a),t.memoizedState=fi,dn(null,l)):(Oa(t),nd(t,u))}var s=e.memoizedState;if(s!==null&&(u=s.dehydrated,u!==null)){if(n)t.flags&256?(Oa(t),t.flags&=-257,t=pi(e,t,a)):t.memoizedState!==null?(za(t),t.child=e.child,t.flags|=128,t=null):(za(t),u=l.fallback,o=t.mode,l=Cu({mode:"visible",children:l.children},o),u=yl(u,o,a,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,Ml(t,e.child,null,a),l=t.child,l.memoizedState=ci(a),l.childLanes=mi(e,r,a),t.memoizedState=fi,t=dn(null,l));else if(Oa(t),bd(u)){if(r=u.nextSibling&&u.nextSibling.dataset,r)var i=r.dgst;r=i,l=Error(I(419)),l.stack="",l.digest=r,Dn({value:l,source:null,stack:null}),t=pi(e,t,a)}else if(Ae||Bo(e,t,a,!1),r=(a&e.childLanes)!==0,Ae||r){if(r=se,r!==null&&(l=pp(r,a),l!==0&&l!==s.retryLane))throw s.retryLane=l,Nl(e,l),ot(r,e,l),lf;xd(u)||Mu(),t=pi(e,t,a)}else xd(u)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ce=Et(u.nextSibling),qe=t,Y=!0,Ya=null,Dt=!1,e!==null&&Vp(t,e),t=nd(t,l.children),t.flags|=4096);return t}return o?(za(t),u=l.fallback,o=t.mode,s=e.child,i=s.sibling,l=ba(s,{mode:"hidden",children:l.children}),l.subtreeFlags=s.subtreeFlags&65011712,i!==null?u=ba(i,u):(u=yl(u,o,a,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,dn(null,l),l=t.child,u=e.child.memoizedState,u===null?u=ci(a):(o=u.cachePool,o!==null?(s=Me._currentValue,o=o.parent!==s?{parent:s,pool:s}:o):o=Yp(),u={baseLanes:u.baseLanes|a,cachePool:o}),l.memoizedState=u,l.childLanes=mi(e,r,a),t.memoizedState=fi,dn(e.child,l)):(Oa(t),a=e.child,e=a.sibling,a=ba(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a)}function nd(e,t){return t=Cu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Cu(e,t){return e=pt(22,e,null,t),e.lanes=0,e}function pi(e,t,a){return Ml(t,e.child,null,a),e=nd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Yi(e.return,t,a)}function gi(e,t,a,l,o,n){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:n}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=l,r.tail=a,r.tailMode=o,r.treeForkCount=n)}function Ug(e,t,a){var l=t.pendingProps,o=l.revealOrder,n=l.tail;l=l.children;var r=ve.current,u=(r&2)!==0;if(u?(r=r&1|2,t.flags|=128):r&=1,ie(ve,r),ze(e,t,l,a),l=Y?Tn:0,!u&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cm(e,a,t);else if(e.tag===19)Cm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Lu(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),gi(t,!1,o,a,n,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Lu(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}gi(t,!0,a,null,n,l);break;case"together":gi(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Ia(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Bo(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,a=ba(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ba(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function of(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hu(e)))}function Wv(e,t,a){switch(t.tag){case 3:iu(t,t.stateNode.containerInfo),Pa(t,Me,e.memoizedState.cache),wl();break;case 27:case 5:Ni(t);break;case 4:iu(t,t.stateNode.containerInfo);break;case 10:Pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ji(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Oa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?zg(e,t,a):(Oa(t),e=Ia(e,t,a),e!==null?e.sibling:null);Oa(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Bo(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return Ug(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ie(ve,ve.current),l)break;return null;case 22:return t.lanes=0,Og(e,t,a,t.pendingProps);case 24:Pa(t,Me,e.memoizedState.cache)}return Ia(e,t,a)}function qg(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ae=!0;else{if(!of(e,a)&&(t.flags&128)===0)return Ae=!1,Wv(e,t,a);Ae=(e.flags&131072)!==0}else Ae=!1,Y&&(t.flags&1048576)!==0&&Gp(t,Tn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bl(t.elementType),t.type=e,typeof e=="function")Pd(e)?(l=Tl(e,l),t.tag=1,t=ym(null,t,e,l,a)):(t.tag=0,t=od(null,t,e,l,a));else{if(e!=null){var o=e.$$typeof;if(o===Sd){t.tag=11,t=hm(null,t,e,l,a);break e}else if(o===Cd){t.tag=14,t=xm(null,t,e,l,a);break e}}throw t=Ri(e)||e,Error(I(306,t,""))}}return t;case 0:return od(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=Tl(l,t.pendingProps),ym(e,t,l,o,a);case 3:e:{if(iu(t,t.stateNode.containerInfo),e===null)throw Error(I(387));l=t.pendingProps;var n=t.memoizedState;o=n.element,ji(e,t),bn(t,l,null,a);var r=t.memoizedState;if(l=r.cache,Pa(t,Me,l),l!==n.cache&&Zi(t,[Me],a,!0),xn(),l=r.element,n.isDehydrated)if(n={element:l,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Sm(e,t,l,a);break e}else if(l!==o){o=Tt(Error(I(424)),t),Dn(o),t=Sm(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ce=Et(e.firstChild),qe=t,Y=!0,Ya=null,Dt=!0,a=jp(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(wl(),l===o){t=Ia(e,t,a);break e}ze(e,t,l,a)}t=t.child}return t;case 26:return au(e,t),e===null?(a=Xm(t.type,null,t.pendingProps,null))?t.memoizedState=a:Y||(a=t.type,e=t.pendingProps,l=Ru(Xa.current).createElement(a),l[Ue]=t,l[nt]=e,_e(l,a,e),Pe(l),t.stateNode=l):t.memoizedState=Xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ni(t),e===null&&Y&&(l=t.stateNode=Dh(t.type,t.pendingProps,Xa.current),qe=t,Dt=!0,o=ce,nl(t.type)?(Ld=o,ce=Et(l.firstChild)):ce=o),ze(e,t,t.pendingProps.children,a),au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Y&&((o=l=ce)&&(l=Sy(l,t.type,t.pendingProps,Dt),l!==null?(t.stateNode=l,qe=t,ce=Et(l.firstChild),Dt=!1,o=!0):o=!1),o||tl(t)),Ni(t),o=t.type,n=t.pendingProps,r=e!==null?e.memoizedProps:null,l=n.children,gd(o,n)?l=null:r!==null&&gd(o,r)&&(t.flags|=32),t.memoizedState!==null&&(o=Xd(e,t,Uv,null,null,a),Pn._currentValue=o),au(e,t),ze(e,t,l,a),t.child;case 6:return e===null&&Y&&((e=a=ce)&&(a=Cy(a,t.pendingProps,Dt),a!==null?(t.stateNode=a,qe=t,ce=null,e=!0):e=!1),e||tl(t)),null;case 13:return zg(e,t,a);case 4:return iu(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ml(t,null,l,a):ze(e,t,l,a),t.child;case 11:return hm(e,t,t.type,t.pendingProps,a);case 7:return ze(e,t,t.pendingProps,a),t.child;case 8:return ze(e,t,t.pendingProps.children,a),t.child;case 12:return ze(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Pa(t,t.type,l.value),ze(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,kl(t),o=Fe(o),l=l(o),t.flags|=1,ze(e,t,l,a),t.child;case 14:return xm(e,t,t.type,t.pendingProps,a);case 15:return Pg(e,t,t.type,t.pendingProps,a);case 19:return Ug(e,t,a);case 31:return Zv(e,t,a);case 22:return Og(e,t,a,t.pendingProps);case 24:return kl(t),l=Fe(Me),e===null?(o=qd(),o===null&&(o=se,n=Ud(),o.pooledCache=n,n.refCount++,n!==null&&(o.pooledCacheLanes|=a),o=n),t.memoizedState={parent:l,cache:o},_d(t),Pa(t,Me,o)):((e.lanes&a)!==0&&(ji(e,t),bn(t,null,null,a),xn()),o=e.memoizedState,n=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Pa(t,Me,l)):(l=n.cache,Pa(t,Me,l),l!==o.cache&&Zi(t,[Me],a,!0))),ze(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(I(156,t.tag))}function ia(e){e.flags|=4}function hi(e,t,a,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(dh())e.flags|=8192;else throw Cl=xu,Fd}else e.flags&=-16777217}function Im(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nh(t))if(dh())e.flags|=8192;else throw Cl=xu,Fd}function qr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fp():536870912,e.lanes|=t,Mo|=t)}function an(e,t){if(!Y)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function jv(e,t,a){var l=t.pendingProps;switch(zd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(t),null;case 1:return fe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),La(Me),yo(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ql(t)?ia(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ui())),fe(t),null;case 26:var o=t.type,n=t.memoizedState;return e===null?(ia(t),n!==null?(fe(t),Im(t,n)):(fe(t),hi(t,o,null,l,a))):n?n!==e.memoizedState?(ia(t),fe(t),Im(t,n)):(fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ia(t),fe(t),hi(t,o,e,l,a)),null;case 27:if(du(t),a=Xa.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(!l){if(t.stateNode===null)throw Error(I(166));return fe(t),null}e=$t.current,Ql(t)?$c(t,e):(e=Dh(o,l,a),t.stateNode=e,ia(t))}return fe(t),null;case 5:if(du(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(!l){if(t.stateNode===null)throw Error(I(166));return fe(t),null}if(n=$t.current,Ql(t))$c(t,n);else{var r=Ru(Xa.current);switch(n){case 1:n=r.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=r.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=r.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=r.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=r.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?n.multiple=!0:l.size&&(n.size=l.size);break;default:n=typeof l.is=="string"?r.createElement(o,{is:l.is}):r.createElement(o)}}n[Ue]=t,n[nt]=l;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)n.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=n;e:switch(_e(n,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ia(t)}}return fe(t),hi(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(I(166));if(e=Xa.current,Ql(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=qe,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Ue]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||kh(e.nodeValue,a)),e||tl(t,!0)}else e=Ru(e).createTextNode(l),e[Ue]=t,t.stateNode=e}return fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ql(t),a!==null){if(e===null){if(!l)throw Error(I(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(557));e[Ue]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;fe(t),e=!1}else a=ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if((t.flags&128)!==0)throw Error(I(558))}return fe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ql(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(I(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(I(317));o[Ue]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;fe(t),o=!1}else o=ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==o&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),qr(t,t.updateQueue),fe(t),null);case 4:return yo(),e===null&&cf(t.stateNode.containerInfo),fe(t),null;case 10:return La(t.type),fe(t),null;case 19:if(Oe(ve),l=t.memoizedState,l===null)return fe(t),null;if(o=(t.flags&128)!==0,n=l.rendering,n===null)if(o)an(l,!1);else{if(xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Lu(e),n!==null){for(t.flags|=128,an(l,!1),e=n.updateQueue,t.updateQueue=e,qr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Fp(a,e),a=a.sibling;return ie(ve,ve.current&1|2),Y&&ma(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ht()>wu&&(t.flags|=128,o=!0,an(l,!1),t.lanes=4194304)}else{if(!o)if(e=Lu(n),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,qr(t,e),an(l,!0),l.tail===null&&l.tailMode==="hidden"&&!n.alternate&&!Y)return fe(t),null}else 2*ht()-l.renderingStartTime>wu&&a!==536870912&&(t.flags|=128,o=!0,an(l,!1),t.lanes=4194304);l.isBackwards?(n.sibling=t.child,t.child=n):(e=l.last,e!==null?e.sibling=n:t.child=n,l.last=n)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ht(),e.sibling=null,a=ve.current,ie(ve,o?a&1|2:a&1),Y&&ma(t,l.treeForkCount),e):(fe(t),null);case 22:case 23:return mt(t),Gd(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),a=t.updateQueue,a!==null&&qr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Oe(Sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),La(Me),fe(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function Kv(e,t){switch(zd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return La(Me),yo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return du(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(I(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(ve),null;case 4:return yo(),null;case 10:return La(t.type),null;case 22:case 23:return mt(t),Gd(),e!==null&&Oe(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return La(Me),null;case 25:return null;default:return null}}function Fg(e,t){switch(zd(t),t.tag){case 3:La(Me),yo();break;case 26:case 27:case 5:du(t);break;case 4:yo();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:Oe(ve);break;case 10:La(t.type);break;case 22:case 23:mt(t),Gd(),e!==null&&Oe(Sl);break;case 24:La(Me)}}function Zn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var n=a.create,r=a.inst;l=n(),r.destroy=l}a=a.next}while(a!==o)}}catch(u){ae(t,t.return,u)}}function al(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var n=o.next;l=n;do{if((l.tag&e)===e){var r=l.inst,u=r.destroy;if(u!==void 0){r.destroy=void 0,o=t;var s=a,i=u;try{i()}catch(d){ae(o,s,d)}}}l=l.next}while(l!==n)}}catch(d){ae(t,t.return,d)}}function _g(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Qp(t,a)}catch(l){ae(e,e.return,l)}}}function Gg(e,t,a){a.props=Tl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ae(e,t,l)}}function vn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){ae(e,t,o)}}function Jt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){ae(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){ae(e,t,o)}else a.current=null}function Vg(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){ae(e,e.return,o)}}function xi(e,t,a){try{var l=e.stateNode;hy(l,e.type,a,t),l[nt]=t}catch(o){ae(e,e.return,o)}}function Xg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function bi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&nl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rd(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ha));else if(l!==4&&(l===27&&nl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(rd(e,t,a),e=e.sibling;e!==null;)rd(e,t,a),e=e.sibling}function Iu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&nl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Iu(e,t,a),e=e.sibling;e!==null;)Iu(e,t,a),e=e.sibling}function Yg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);_e(t,l,a),t[Ue]=e,t[nt]=a}catch(n){ae(e,e.return,n)}}var pa=!1,ke=!1,Li=!1,wm=typeof WeakSet=="function"?WeakSet:Set,He=null;function Qv(e,t){if(e=e.containerInfo,md=Hu,e=Np(e),Nd(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,n=l.focusNode;l=l.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var r=0,u=-1,s=-1,i=0,d=0,g=e,f=null;t:for(;;){for(var m;g!==a||o!==0&&g.nodeType!==3||(u=r+o),g!==n||l!==0&&g.nodeType!==3||(s=r+l),g.nodeType===3&&(r+=g.nodeValue.length),(m=g.firstChild)!==null;)f=g,g=m;for(;;){if(g===e)break t;if(f===a&&++i===o&&(u=r),f===n&&++d===l&&(s=r),(m=g.nextSibling)!==null)break;g=f,f=g.parentNode}g=m}a=u===-1||s===-1?null:{start:u,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(pd={focusedElem:e,selectionRange:a},Hu=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){switch(t=He,n=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&n!==null){e=void 0,a=t,o=n.memoizedProps,n=n.memoizedState,l=a.stateNode;try{var b=Tl(a.type,o);e=l.getSnapshotBeforeUpdate(b,n),l.__reactInternalSnapshotBeforeUpdate=e}catch(v){ae(a,a.return,v)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)hd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(I(163))}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}}function Zg(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:fa(e,a),l&4&&Zn(5,a);break;case 1:if(fa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(r){ae(a,a.return,r)}else{var o=Tl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){ae(a,a.return,r)}}l&64&&_g(a),l&512&&vn(a,a.return);break;case 3:if(fa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Qp(e,t)}catch(r){ae(a,a.return,r)}}break;case 27:t===null&&l&4&&Yg(a);case 26:case 5:fa(e,a),t===null&&l&4&&Vg(a),l&512&&vn(a,a.return);break;case 12:fa(e,a);break;case 31:fa(e,a),l&4&&Kg(e,a);break;case 13:fa(e,a),l&4&&Qg(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ry.bind(null,a),Iy(e,a))));break;case 22:if(l=a.memoizedState!==null||pa,!l){t=t!==null&&t.memoizedState!==null||ke,o=pa;var n=ke;pa=l,(ke=t)&&!n?ca(e,a,(a.subtreeFlags&8772)!==0):fa(e,a),pa=o,ke=n}break;case 30:break;default:fa(e,a)}}function Wg(e){var t=e.alternate;t!==null&&(e.alternate=null,Wg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Md(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ge=null,at=!1;function da(e,t,a){for(a=a.child;a!==null;)jg(e,t,a),a=a.sibling}function jg(e,t,a){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(qn,a)}catch{}switch(a.tag){case 26:ke||Jt(a,t),da(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ke||Jt(a,t);var l=ge,o=at;nl(a.type)&&(ge=a.stateNode,at=!1),da(e,t,a),In(a.stateNode),ge=l,at=o;break;case 5:ke||Jt(a,t);case 6:if(l=ge,o=at,ge=null,da(e,t,a),ge=l,at=o,ge!==null)if(at)try{(ge.nodeType===9?ge.body:ge.nodeName==="HTML"?ge.ownerDocument.body:ge).removeChild(a.stateNode)}catch(n){ae(a,t,n)}else try{ge.removeChild(a.stateNode)}catch(n){ae(a,t,n)}break;case 18:ge!==null&&(at?(e=ge,qm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ro(e)):qm(ge,a.stateNode));break;case 4:l=ge,o=at,ge=a.stateNode.containerInfo,at=!0,da(e,t,a),ge=l,at=o;break;case 0:case 11:case 14:case 15:al(2,a,t),ke||al(4,a,t),da(e,t,a);break;case 1:ke||(Jt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Gg(a,t,l)),da(e,t,a);break;case 21:da(e,t,a);break;case 22:ke=(l=ke)||a.memoizedState!==null,da(e,t,a),ke=l;break;default:da(e,t,a)}}function Kg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ro(e)}catch(a){ae(t,t.return,a)}}}function Qg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ro(e)}catch(a){ae(t,t.return,a)}}function Jv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wm),t;default:throw Error(I(435,e.tag))}}function Fr(e,t){var a=Jv(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var o=uy.bind(null,e,l);l.then(o,o)}})}function et(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],n=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(nl(u.type)){ge=u.stateNode,at=!1;break e}break;case 5:ge=u.stateNode,at=!1;break e;case 3:case 4:ge=u.stateNode.containerInfo,at=!0;break e}u=u.return}if(ge===null)throw Error(I(160));jg(n,r,o),ge=null,at=!1,n=o.alternate,n!==null&&(n.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jg(t,e),t=t.sibling}var Ut=null;function Jg(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:et(t,e),tt(e),l&4&&(al(3,e,e.return),Zn(3,e),al(5,e,e.return));break;case 1:et(t,e),tt(e),l&512&&(ke||a===null||Jt(a,a.return)),l&64&&pa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Ut;if(et(t,e),tt(e),l&512&&(ke||a===null||Jt(a,a.return)),l&4){var n=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":n=o.getElementsByTagName("title")[0],(!n||n[Gn]||n[Ue]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=o.createElement(l),o.head.insertBefore(n,o.querySelector("head > title"))),_e(n,l,a),n[Ue]=e,Pe(n),l=n;break e;case"link":var r=Zm("link","href",o).get(l+(a.href||""));if(r){for(var u=0;u<r.length;u++)if(n=r[u],n.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){r.splice(u,1);break t}}n=o.createElement(l),_e(n,l,a),o.head.appendChild(n);break;case"meta":if(r=Zm("meta","content",o).get(l+(a.content||""))){for(u=0;u<r.length;u++)if(n=r[u],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){r.splice(u,1);break t}}n=o.createElement(l),_e(n,l,a),o.head.appendChild(n);break;default:throw Error(I(468,l))}n[Ue]=e,Pe(n),l=n}e.stateNode=l}else Wm(o,e.type,e.stateNode);else e.stateNode=Ym(o,l,e.memoizedProps);else n!==l?(n===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):n.count--,l===null?Wm(o,e.type,e.stateNode):Ym(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&xi(e,e.memoizedProps,a.memoizedProps)}break;case 27:et(t,e),tt(e),l&512&&(ke||a===null||Jt(a,a.return)),a!==null&&l&4&&xi(e,e.memoizedProps,a.memoizedProps);break;case 5:if(et(t,e),tt(e),l&512&&(ke||a===null||Jt(a,a.return)),e.flags&32){o=e.stateNode;try{Co(o,"")}catch(b){ae(e,e.return,b)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,xi(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Li=!0);break;case 6:if(et(t,e),tt(e),l&4){if(e.stateNode===null)throw Error(I(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(b){ae(e,e.return,b)}}break;case 3:if(nu=null,o=Ut,Ut=Eu(t.containerInfo),et(t,e),Ut=o,tt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ro(t.containerInfo)}catch(b){ae(e,e.return,b)}Li&&(Li=!1,$g(e));break;case 4:l=Ut,Ut=Eu(e.stateNode.containerInfo),et(t,e),tt(e),Ut=l;break;case 12:et(t,e),tt(e);break;case 31:et(t,e),tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Fr(e,l)));break;case 13:et(t,e),tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Wu=ht()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Fr(e,l)));break;case 22:o=e.memoizedState!==null;var s=a!==null&&a.memoizedState!==null,i=pa,d=ke;if(pa=i||o,ke=d||s,et(t,e),ke=d,pa=i,tt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||s||pa||ke||Ll(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){s=a=t;try{if(n=s.stateNode,o)r=n.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{u=s.stateNode;var g=s.memoizedProps.style,f=g!=null&&g.hasOwnProperty("display")?g.display:null;u.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(b){ae(s,s.return,b)}}}else if(t.tag===6){if(a===null){s=t;try{s.stateNode.nodeValue=o?"":s.memoizedProps}catch(b){ae(s,s.return,b)}}}else if(t.tag===18){if(a===null){s=t;try{var m=s.stateNode;o?Fm(m,!0):Fm(s.stateNode,!1)}catch(b){ae(s,s.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Fr(e,a))));break;case 19:et(t,e),tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Fr(e,l)));break;case 30:break;case 21:break;default:et(t,e),tt(e)}}function tt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Xg(l)){a=l;break}l=l.return}if(a==null)throw Error(I(160));switch(a.tag){case 27:var o=a.stateNode,n=bi(e);Iu(e,n,o);break;case 5:var r=a.stateNode;a.flags&32&&(Co(r,""),a.flags&=-33);var u=bi(e);Iu(e,u,r);break;case 3:case 4:var s=a.stateNode.containerInfo,i=bi(e);rd(e,i,s);break;default:throw Error(I(161))}}catch(d){ae(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $g(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$g(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zg(e,t.alternate,t),t=t.sibling}function Ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:al(4,t,t.return),Ll(t);break;case 1:Jt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Gg(t,t.return,a),Ll(t);break;case 27:In(t.stateNode);case 26:case 5:Jt(t,t.return),Ll(t);break;case 22:t.memoizedState===null&&Ll(t);break;case 30:Ll(t);break;default:Ll(t)}e=e.sibling}}function ca(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,n=t,r=n.flags;switch(n.tag){case 0:case 11:case 15:ca(o,n,a),Zn(4,n);break;case 1:if(ca(o,n,a),l=n,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(i){ae(l,l.return,i)}if(l=n,o=l.updateQueue,o!==null){var u=l.stateNode;try{var s=o.shared.hiddenCallbacks;if(s!==null)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)Kp(s[o],u)}catch(i){ae(l,l.return,i)}}a&&r&64&&_g(n),vn(n,n.return);break;case 27:Yg(n);case 26:case 5:ca(o,n,a),a&&l===null&&r&4&&Vg(n),vn(n,n.return);break;case 12:ca(o,n,a);break;case 31:ca(o,n,a),a&&r&4&&Kg(o,n);break;case 13:ca(o,n,a),a&&r&4&&Qg(o,n);break;case 22:n.memoizedState===null&&ca(o,n,a),vn(n,n.return);break;case 30:break;default:ca(o,n,a)}t=t.sibling}}function nf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Xn(a))}function rf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xn(e))}function zt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eh(e,t,a,l),t=t.sibling}function eh(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:zt(e,t,a,l),o&2048&&Zn(9,t);break;case 1:zt(e,t,a,l);break;case 3:zt(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xn(e)));break;case 12:if(o&2048){zt(e,t,a,l),e=t.stateNode;try{var n=t.memoizedProps,r=n.id,u=n.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){ae(t,t.return,s)}}else zt(e,t,a,l);break;case 31:zt(e,t,a,l);break;case 13:zt(e,t,a,l);break;case 23:break;case 22:n=t.stateNode,r=t.alternate,t.memoizedState!==null?n._visibility&2?zt(e,t,a,l):yn(e,t):n._visibility&2?zt(e,t,a,l):(n._visibility|=2,$l(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&nf(r,t);break;case 24:zt(e,t,a,l),o&2048&&rf(t.alternate,t);break;default:zt(e,t,a,l)}}function $l(e,t,a,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=e,r=t,u=a,s=l,i=r.flags;switch(r.tag){case 0:case 11:case 15:$l(n,r,u,s,o),Zn(8,r);break;case 23:break;case 22:var d=r.stateNode;r.memoizedState!==null?d._visibility&2?$l(n,r,u,s,o):yn(n,r):(d._visibility|=2,$l(n,r,u,s,o)),o&&i&2048&&nf(r.alternate,r);break;case 24:$l(n,r,u,s,o),o&&i&2048&&rf(r.alternate,r);break;default:$l(n,r,u,s,o)}t=t.sibling}}function yn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:yn(a,l),o&2048&&nf(l.alternate,l);break;case 24:yn(a,l),o&2048&&rf(l.alternate,l);break;default:yn(a,l)}t=t.sibling}}var fn=8192;function Jl(e,t,a){if(e.subtreeFlags&fn)for(e=e.child;e!==null;)th(e,t,a),e=e.sibling}function th(e,t,a){switch(e.tag){case 26:Jl(e,t,a),e.flags&fn&&e.memoizedState!==null&&Py(a,Ut,e.memoizedState,e.memoizedProps);break;case 5:Jl(e,t,a);break;case 3:case 4:var l=Ut;Ut=Eu(e.stateNode.containerInfo),Jl(e,t,a),Ut=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=fn,fn=16777216,Jl(e,t,a),fn=l):Jl(e,t,a));break;default:Jl(e,t,a)}}function ah(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ln(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];He=l,oh(l,e)}ah(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lh(e),e=e.sibling}function lh(e){switch(e.tag){case 0:case 11:case 15:ln(e),e.flags&2048&&al(9,e,e.return);break;case 3:ln(e);break;case 12:ln(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lu(e)):ln(e);break;default:ln(e)}}function lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];He=l,oh(l,e)}ah(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:al(8,t,t.return),lu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,lu(t));break;default:lu(t)}e=e.sibling}}function oh(e,t){for(;He!==null;){var a=He;switch(a.tag){case 0:case 11:case 15:al(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Xn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,He=l;else e:for(a=e;He!==null;){l=He;var o=l.sibling,n=l.return;if(Wg(l),l===a){He=null;break e}if(o!==null){o.return=n,He=o;break e}He=n}}}var $v={getCacheForType:function(e){var t=Fe(Me),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Fe(Me).controller.signal}},ey=typeof WeakMap=="function"?WeakMap:Map,Q=0,se=null,V=null,X=0,te=0,ct=null,_a=!1,Po=!1,uf=!1,wa=0,xe=0,ll=0,Il=0,sf=0,gt=0,Mo=0,Sn=null,lt=null,ud=!1,Wu=0,nh=0,wu=1/0,ku=null,ja=null,Te=0,Ka=null,Ao=null,va=0,sd=0,id=null,rh=null,Cn=0,dd=null;function Lt(){return(Q&2)!==0&&X!==0?X&-X:O.T!==null?ff():gp()}function uh(){if(gt===0)if((X&536870912)===0||Y){var e=Rr;Rr<<=1,(Rr&3932160)===0&&(Rr=262144),gt=e}else gt=536870912;return e=yt.current,e!==null&&(e.flags|=32),gt}function ot(e,t,a){(e===se&&(te===2||te===9)||e.cancelPendingCommit!==null)&&(To(e,0),Ga(e,X,gt,!1)),_n(e,a),((Q&2)===0||e!==se)&&(e===se&&((Q&2)===0&&(Il|=a),xe===4&&Ga(e,X,gt,!1)),ta(e))}function sh(e,t,a){if((Q&6)!==0)throw Error(I(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Fn(e,t),o=l?ly(e,t):vi(e,t,!0),n=l;do{if(o===0){Po&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!ty(a)){o=vi(e,t,!1),n=!1;continue}if(o===2){if(n=t,e.errorRecoveryDisabledLanes&n)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var u=e;o=Sn;var s=u.current.memoizedState.isDehydrated;if(s&&(To(u,r).flags|=256),r=vi(u,r,!1),r!==2){if(uf&&!s){u.errorRecoveryDisabledLanes|=n,Il|=n,o=4;break e}n=lt,lt=o,n!==null&&(lt===null?lt=n:lt.push.apply(lt,n))}o=r}if(n=!1,o!==2)continue}}if(o===1){To(e,0),Ga(e,t,0,!0);break}e:{switch(l=e,n=o,n){case 0:case 1:throw Error(I(345));case 4:if((t&4194048)!==t)break;case 6:Ga(l,t,gt,!_a);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(I(329))}if((t&62914560)===t&&(o=Wu+300-ht(),10<o)){if(Ga(l,t,gt,!_a),Ou(l,0,!0)!==0)break e;va=t,l.timeoutHandle=Ah(km.bind(null,l,a,lt,ku,ud,t,gt,Il,Mo,_a,n,"Throttled",-0,0),o);break e}km(l,a,lt,ku,ud,t,gt,Il,Mo,_a,n,null,-0,0)}}break}while(!0);ta(e)}function km(e,t,a,l,o,n,r,u,s,i,d,g,f,m){if(e.timeoutHandle=-1,g=t.subtreeFlags,g&8192||(g&16785408)===16785408){g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},th(t,n,g);var b=(n&62914560)===n?Wu-ht():(n&4194048)===n?nh-ht():0;if(b=Oy(g,b),b!==null){va=n,e.cancelPendingCommit=b(Am.bind(null,e,t,n,a,l,o,r,u,s,d,g,null,f,m)),Ga(e,n,r,!i);return}}Am(e,t,n,a,l,o,r,u,s)}function ty(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],n=o.getSnapshot;o=o.value;try{if(!vt(n(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ga(e,t,a,l){t&=~sf,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var n=31-bt(o),r=1<<n;l[n]=-1,o&=~r}a!==0&&cp(e,a,t)}function ju(){return(Q&6)===0?(Wn(0,!1),!1):!0}function df(){if(V!==null){if(te===0)var e=V.return;else e=V,xa=Bl=null,Wd(e),bo=null,Rn=0,e=V;for(;e!==null;)Fg(e.alternate,e),e=e.return;V=null}}function To(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ly(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),va=0,df(),se=e,V=a=ba(e.current,null),X=t,te=0,ct=null,_a=!1,Po=Fn(e,t),uf=!1,Mo=gt=sf=Il=ll=xe=0,lt=Sn=null,ud=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-bt(l),n=1<<o;t|=e[o],l&=~n}return wa=t,Fu(),a}function ih(e,t){q=null,O.H=Nn,t===Ho||t===Gu?(t=om(),te=3):t===Fd?(t=om(),te=4):te=t===lf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ct=t,V===null&&(xe=1,Su(e,Tt(t,e.current)))}function dh(){var e=yt.current;return e===null?!0:(X&4194048)===X?Rt===null:(X&62914560)===X||(X&536870912)!==0?e===Rt:!1}function fh(){var e=O.H;return O.H=Nn,e===null?Nn:e}function ch(){var e=O.A;return O.A=$v,e}function Mu(){xe=4,_a||(X&4194048)!==X&&yt.current!==null||(Po=!0),(ll&134217727)===0&&(Il&134217727)===0||se===null||Ga(se,X,gt,!1)}function vi(e,t,a){var l=Q;Q|=2;var o=fh(),n=ch();(se!==e||X!==t)&&(ku=null,To(e,t)),t=!1;var r=xe;e:do try{if(te!==0&&V!==null){var u=V,s=ct;switch(te){case 8:df(),r=6;break e;case 3:case 2:case 9:case 6:yt.current===null&&(t=!0);var i=te;if(te=0,ct=null,mo(e,u,s,i),a&&Po){r=0;break e}break;default:i=te,te=0,ct=null,mo(e,u,s,i)}}ay(),r=xe;break}catch(d){ih(e,d)}while(!0);return t&&e.shellSuspendCounter++,xa=Bl=null,Q=l,O.H=o,O.A=n,V===null&&(se=null,X=0,Fu()),r}function ay(){for(;V!==null;)mh(V)}function ly(e,t){var a=Q;Q|=2;var l=fh(),o=ch();se!==e||X!==t?(ku=null,wu=ht()+500,To(e,t)):Po=Fn(e,t);e:do try{if(te!==0&&V!==null){t=V;var n=ct;t:switch(te){case 1:te=0,ct=null,mo(e,t,n,1);break;case 2:case 9:if(lm(n)){te=0,ct=null,Mm(t);break}t=function(){te!==2&&te!==9||se!==e||(te=7),ta(e)},n.then(t,t);break e;case 3:te=7;break e;case 4:te=5;break e;case 7:lm(n)?(te=0,ct=null,Mm(t)):(te=0,ct=null,mo(e,t,n,7));break;case 5:var r=null;switch(V.tag){case 26:r=V.memoizedState;case 5:case 27:var u=V;if(r?Nh(r):u.stateNode.complete){te=0,ct=null;var s=u.sibling;if(s!==null)V=s;else{var i=u.return;i!==null?(V=i,Ku(i)):V=null}break t}}te=0,ct=null,mo(e,t,n,5);break;case 6:te=0,ct=null,mo(e,t,n,6);break;case 8:df(),xe=6;break e;default:throw Error(I(462))}}oy();break}catch(d){ih(e,d)}while(!0);return xa=Bl=null,O.H=l,O.A=o,Q=a,V!==null?0:(se=null,X=0,Fu(),xe)}function oy(){for(;V!==null&&!ML();)mh(V)}function mh(e){var t=qg(e.alternate,e,wa);e.memoizedProps=e.pendingProps,t===null?Ku(e):V=t}function Mm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=vm(a,t,t.pendingProps,t.type,void 0,X);break;case 11:t=vm(a,t,t.pendingProps,t.type.render,t.ref,X);break;case 5:Wd(t);default:Fg(a,t),t=V=Fp(t,wa),t=qg(a,t,wa)}e.memoizedProps=e.pendingProps,t===null?Ku(e):V=t}function mo(e,t,a,l){xa=Bl=null,Wd(t),bo=null,Rn=0;var o=t.return;try{if(Yv(e,o,t,a,X)){xe=1,Su(e,Tt(a,e.current)),V=null;return}}catch(n){if(o!==null)throw V=o,n;xe=1,Su(e,Tt(a,e.current)),V=null;return}t.flags&32768?(Y||l===1?e=!0:Po||(X&536870912)!==0?e=!1:(_a=e=!0,(l===2||l===9||l===3||l===6)&&(l=yt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ph(t,e)):Ku(t)}function Ku(e){var t=e;do{if((t.flags&32768)!==0){ph(t,_a);return}e=t.return;var a=jv(t.alternate,t,wa);if(a!==null){V=a;return}if(t=t.sibling,t!==null){V=t;return}V=t=e}while(t!==null);xe===0&&(xe=5)}function ph(e,t){do{var a=Kv(e.alternate,e);if(a!==null){a.flags&=32767,V=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){V=e;return}V=e=a}while(e!==null);xe=6,V=null}function Am(e,t,a,l,o,n,r,u,s){e.cancelPendingCommit=null;do Qu();while(Te!==0);if((Q&6)!==0)throw Error(I(327));if(t!==null){if(t===e.current)throw Error(I(177));if(n=t.lanes|t.childLanes,n|=Bd,OL(e,a,n,r,u,s),e===se&&(V=se=null,X=0),Ao=t,Ka=e,va=a,sd=n,id=o,rh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,sy(fu,function(){return Lh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,o=J.p,J.p=2,r=Q,Q|=4;try{Qv(e,t,a)}finally{Q=r,J.p=o,O.T=l}}Te=1,gh(),hh(),xh()}}function gh(){if(Te===1){Te=0;var e=Ka,t=Ao,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var l=J.p;J.p=2;var o=Q;Q|=4;try{Jg(t,e);var n=pd,r=Np(e.containerInfo),u=n.focusedElem,s=n.selectionRange;if(r!==u&&u&&u.ownerDocument&&Ep(u.ownerDocument.documentElement,u)){if(s!==null&&Nd(u)){var i=s.start,d=s.end;if(d===void 0&&(d=i),"selectionStart"in u)u.selectionStart=i,u.selectionEnd=Math.min(d,u.value.length);else{var g=u.ownerDocument||document,f=g&&g.defaultView||window;if(f.getSelection){var m=f.getSelection(),b=u.textContent.length,v=Math.min(s.start,b),D=s.end===void 0?v:Math.min(s.end,b);!m.extend&&v>D&&(r=D,D=v,v=r);var p=Kc(u,v),c=Kc(u,D);if(p&&c&&(m.rangeCount!==1||m.anchorNode!==p.node||m.anchorOffset!==p.offset||m.focusNode!==c.node||m.focusOffset!==c.offset)){var h=g.createRange();h.setStart(p.node,p.offset),m.removeAllRanges(),v>D?(m.addRange(h),m.extend(c.node,c.offset)):(h.setEnd(c.node,c.offset),m.addRange(h))}}}}for(g=[],m=u;m=m.parentNode;)m.nodeType===1&&g.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<g.length;u++){var L=g[u];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Hu=!!md,pd=md=null}finally{Q=o,J.p=l,O.T=a}}e.current=t,Te=2}}function hh(){if(Te===2){Te=0;var e=Ka,t=Ao,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var l=J.p;J.p=2;var o=Q;Q|=4;try{Zg(e,t.alternate,t)}finally{Q=o,J.p=l,O.T=a}}Te=3}}function xh(){if(Te===4||Te===3){Te=0,AL();var e=Ka,t=Ao,a=va,l=rh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Te=5:(Te=0,Ao=Ka=null,bh(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ja=null),kd(a),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(qn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,o=J.p,J.p=2,O.T=null;try{for(var n=e.onRecoverableError,r=0;r<l.length;r++){var u=l[r];n(u.value,{componentStack:u.stack})}}finally{O.T=t,J.p=o}}(va&3)!==0&&Qu(),ta(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===dd?Cn++:(Cn=0,dd=e):Cn=0,Wn(0,!1)}}function bh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Xn(t)))}function Qu(){return gh(),hh(),xh(),Lh()}function Lh(){if(Te!==5)return!1;var e=Ka,t=sd;sd=0;var a=kd(va),l=O.T,o=J.p;try{J.p=32>a?32:a,O.T=null,a=id,id=null;var n=Ka,r=va;if(Te=0,Ao=Ka=null,va=0,(Q&6)!==0)throw Error(I(331));var u=Q;if(Q|=4,lh(n.current),eh(n,n.current,r,a),Q=u,Wn(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(qn,n)}catch{}return!0}finally{J.p=o,O.T=l,bh(e,t)}}function Tm(e,t,a){t=Tt(a,t),t=ld(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(_n(e,2),ta(e))}function ae(e,t,a){if(e.tag===3)Tm(e,e,a);else for(;t!==null;){if(t.tag===3){Tm(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ja===null||!ja.has(l))){e=Tt(a,e),a=Bg(2),l=Wa(t,a,2),l!==null&&(Hg(a,l,t,e),_n(l,2),ta(l));break}}t=t.return}}function yi(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new ey;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(uf=!0,o.add(a),e=ny.bind(null,e,t,a),t.then(e,e))}function ny(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,se===e&&(X&a)===a&&(xe===4||xe===3&&(X&62914560)===X&&300>ht()-Wu?(Q&2)===0&&To(e,0):sf|=a,Mo===X&&(Mo=0)),ta(e)}function vh(e,t){t===0&&(t=fp()),e=Nl(e,t),e!==null&&(_n(e,t),ta(e))}function ry(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),vh(e,a)}function uy(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(I(314))}l!==null&&l.delete(t),vh(e,a)}function sy(e,t){return Id(e,t)}var Au=null,eo=null,fd=!1,Tu=!1,Si=!1,Va=0;function ta(e){e!==eo&&e.next===null&&(eo===null?Au=eo=e:eo=eo.next=e),Tu=!0,fd||(fd=!0,dy())}function Wn(e,t){if(!Si&&Tu){Si=!0;do for(var a=!1,l=Au;l!==null;){if(!t)if(e!==0){var o=l.pendingLanes;if(o===0)var n=0;else{var r=l.suspendedLanes,u=l.pingedLanes;n=(1<<31-bt(42|e)+1)-1,n&=o&~(r&~u),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,Dm(l,n))}else n=X,n=Ou(l,l===se?n:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(n&3)===0||Fn(l,n)||(a=!0,Dm(l,n));l=l.next}while(a);Si=!1}}function iy(){yh()}function yh(){Tu=fd=!1;var e=0;Va!==0&&by()&&(e=Va);for(var t=ht(),a=null,l=Au;l!==null;){var o=l.next,n=Sh(l,t);n===0?(l.next=null,a===null?Au=o:a.next=o,o===null&&(eo=a)):(a=l,(e!==0||(n&3)!==0)&&(Tu=!0)),l=o}Te!==0&&Te!==5||Wn(e,!1),Va!==0&&(Va=0)}function Sh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var r=31-bt(n),u=1<<r,s=o[r];s===-1?((u&a)===0||(u&l)!==0)&&(o[r]=PL(u,t)):s<=t&&(e.expiredLanes|=u),n&=~u}if(t=se,a=X,a=Ou(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(te===2||te===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Qs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Fn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Qs(l),kd(a)){case 2:case 8:a=ip;break;case 32:a=fu;break;case 268435456:a=dp;break;default:a=fu}return l=Ch.bind(null,e),a=Id(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Qs(l),e.callbackPriority=2,e.callbackNode=null,2}function Ch(e,t){if(Te!==0&&Te!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qu()&&e.callbackNode!==a)return null;var l=X;return l=Ou(e,e===se?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(sh(e,l,t),Sh(e,ht()),e.callbackNode!=null&&e.callbackNode===a?Ch.bind(null,e):null)}function Dm(e,t){if(Qu())return null;sh(e,t,!0)}function dy(){vy(function(){(Q&6)!==0?Id(sp,iy):yh()})}function ff(){if(Va===0){var e=Io;e===0&&(e=Dr,Dr<<=1,(Dr&261888)===0&&(Dr=256)),Va=e}return Va}function Rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wr(""+e)}function Em(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function fy(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var n=Rm((o[nt]||null).action),r=l.submitter;r&&(t=(t=r[nt]||null)?Rm(t.formAction):r.getAttribute("formAction"),t!==null&&(n=t,r=null));var u=new zu("action","action",null,l,o);e.push({event:u,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Va!==0){var s=r?Em(o,r):new FormData(o);td(a,{pending:!0,data:s,method:o.method,action:n},null,s)}}else typeof n=="function"&&(u.preventDefault(),s=r?Em(o,r):new FormData(o),td(a,{pending:!0,data:s,method:o.method,action:n},n,s))},currentTarget:o}]})}}for(_r=0;_r<Gi.length;_r++)Gr=Gi[_r],Nm=Gr.toLowerCase(),Bm=Gr[0].toUpperCase()+Gr.slice(1),qt(Nm,"on"+Bm);var Gr,Nm,Bm,_r;qt(Hp,"onAnimationEnd");qt(Pp,"onAnimationIteration");qt(Op,"onAnimationStart");qt("dblclick","onDoubleClick");qt("focusin","onFocus");qt("focusout","onBlur");qt(Tv,"onTransitionRun");qt(Dv,"onTransitionStart");qt(Rv,"onTransitionCancel");qt(zp,"onTransitionEnd");So("onMouseEnter",["mouseout","mouseover"]);So("onMouseLeave",["mouseout","mouseover"]);So("onPointerEnter",["pointerout","pointerover"]);So("onPointerLeave",["pointerout","pointerover"]);Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bn="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(" "),cy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bn));function Ih(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var n=void 0;if(t)for(var r=l.length-1;0<=r;r--){var u=l[r],s=u.instance,i=u.currentTarget;if(u=u.listener,s!==n&&o.isPropagationStopped())break e;n=u,o.currentTarget=i;try{n(o)}catch(d){mu(d)}o.currentTarget=null,n=s}else for(r=0;r<l.length;r++){if(u=l[r],s=u.instance,i=u.currentTarget,u=u.listener,s!==n&&o.isPropagationStopped())break e;n=u,o.currentTarget=i;try{n(o)}catch(d){mu(d)}o.currentTarget=null,n=s}}}}function G(e,t){var a=t[Hi];a===void 0&&(a=t[Hi]=new Set);var l=e+"__bubble";a.has(l)||(wh(t,e,2,!1),a.add(l))}function Ci(e,t,a){var l=0;t&&(l|=4),wh(a,e,l,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function cf(e){if(!e[Vr]){e[Vr]=!0,hp.forEach(function(a){a!=="selectionchange"&&(cy.has(a)||Ci(a,!1,e),Ci(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vr]||(t[Vr]=!0,Ci("selectionchange",!1,t))}}function wh(e,t,a,l){switch(zh(t)){case 2:var o=qy;break;case 8:o=Fy;break;default:o=hf}a=o.bind(null,t,a,e),o=void 0,!qi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Ii(e,t,a,l,o){var n=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var u=l.stateNode.containerInfo;if(u===o)break;if(r===4)for(r=l.return;r!==null;){var s=r.tag;if((s===3||s===4)&&r.stateNode.containerInfo===o)return;r=r.return}for(;u!==null;){if(r=lo(u),r===null)return;if(s=r.tag,s===5||s===6||s===26||s===27){l=n=r;continue e}u=u.parentNode}}l=l.return}Ip(function(){var i=n,d=Td(a),g=[];e:{var f=Up.get(e);if(f!==void 0){var m=zu,b=e;switch(e){case"keypress":if(Kr(a)===0)break e;case"keydown":case"keyup":m=uv;break;case"focusin":b="focus",m=ai;break;case"focusout":b="blur",m=ai;break;case"beforeblur":case"afterblur":m=ai;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=jL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=dv;break;case Hp:case Pp:case Op:m=JL;break;case zp:m=cv;break;case"scroll":case"scrollend":m=ZL;break;case"wheel":m=pv;break;case"copy":case"cut":case"paste":m=ev;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Gc;break;case"toggle":case"beforetoggle":m=hv}var v=(t&4)!==0,D=!v&&(e==="scroll"||e==="scrollend"),p=v?f!==null?f+"Capture":null:f;v=[];for(var c=i,h;c!==null;){var L=c;if(h=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||h===null||p===null||(L=kn(c,p),L!=null&&v.push(Hn(c,L,h))),D)break;c=c.return}0<v.length&&(f=new m(f,b,null,a,d),g.push({event:f,listeners:v}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&a!==Ui&&(b=a.relatedTarget||a.fromElement)&&(lo(b)||b[Eo]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(b=a.relatedTarget||a.toElement,m=i,b=b?lo(b):null,b!==null&&(D=Un(b),v=b.tag,b!==D||v!==5&&v!==27&&v!==6)&&(b=null)):(m=null,b=i),m!==b)){if(v=Fc,L="onMouseLeave",p="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(v=Gc,L="onPointerLeave",p="onPointerEnter",c="pointer"),D=m==null?f:sn(m),h=b==null?f:sn(b),f=new v(L,c+"leave",m,a,d),f.target=D,f.relatedTarget=h,L=null,lo(d)===i&&(v=new v(p,c+"enter",b,a,d),v.target=h,v.relatedTarget=D,L=v),D=L,m&&b)t:{for(v=my,p=m,c=b,h=0,L=p;L;L=v(L))h++;L=0;for(var T=c;T;T=v(T))L++;for(;0<h-L;)p=v(p),h--;for(;0<L-h;)c=v(c),L--;for(;h--;){if(p===c||c!==null&&p===c.alternate){v=p;break t}p=v(p),c=v(c)}v=null}else v=null;m!==null&&Hm(g,f,m,v,!1),b!==null&&D!==null&&Hm(g,D,b,v,!0)}}e:{if(f=i?sn(i):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var R=Zc;else if(Yc(f))if(Dp)R=kv;else{R=Iv;var A=Cv}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?i&&Ad(i.elementType)&&(R=Zc):R=wv;if(R&&(R=R(e,i))){Tp(g,R,a,d);break e}A&&A(e,f,i),e==="focusout"&&i&&f.type==="number"&&i.memoizedProps.value!=null&&zi(f,"number",f.value)}switch(A=i?sn(i):window,e){case"focusin":(Yc(A)||A.contentEditable==="true")&&(ro=A,Fi=i,pn=null);break;case"focusout":pn=Fi=ro=null;break;case"mousedown":_i=!0;break;case"contextmenu":case"mouseup":case"dragend":_i=!1,Qc(g,a,d);break;case"selectionchange":if(Av)break;case"keydown":case"keyup":Qc(g,a,d)}var y;if(Ed)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else no?Mp(e,a)&&(k="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(k="onCompositionStart");k&&(kp&&a.locale!=="ko"&&(no||k!=="onCompositionStart"?k==="onCompositionEnd"&&no&&(y=wp()):(Fa=d,Dd="value"in Fa?Fa.value:Fa.textContent,no=!0)),A=Du(i,k),0<A.length&&(k=new _c(k,e,null,a,d),g.push({event:k,listeners:A}),y?k.data=y:(y=Ap(a),y!==null&&(k.data=y)))),(y=bv?Lv(e,a):vv(e,a))&&(k=Du(i,"onBeforeInput"),0<k.length&&(A=new _c("onBeforeInput","beforeinput",null,a,d),g.push({event:A,listeners:k}),A.data=y)),fy(g,e,i,a,d)}Ih(g,t)})}function Hn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Du(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,n=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||n===null||(o=kn(e,a),o!=null&&l.unshift(Hn(e,o,n)),o=kn(e,t),o!=null&&l.push(Hn(e,o,n))),e.tag===3)return l;e=e.return}return[]}function my(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hm(e,t,a,l,o){for(var n=t._reactName,r=[];a!==null&&a!==l;){var u=a,s=u.alternate,i=u.stateNode;if(u=u.tag,s!==null&&s===l)break;u!==5&&u!==26&&u!==27||i===null||(s=i,o?(i=kn(a,n),i!=null&&r.unshift(Hn(a,i,s))):o||(i=kn(a,n),i!=null&&r.push(Hn(a,i,s)))),a=a.return}r.length!==0&&e.push({event:t,listeners:r})}var py=/\r\n?/g,gy=/\u0000|\uFFFD/g;function Pm(e){return(typeof e=="string"?e:""+e).replace(py,`
|
|
9
|
+
`).replace(gy,"")}function kh(e,t){return t=Pm(t),Pm(e)===t}function ne(e,t,a,l,o,n){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Co(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Co(e,""+l);break;case"className":Nr(e,"class",l);break;case"tabIndex":Nr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Nr(e,a,l);break;case"style":Cp(e,l,n);break;case"data":if(t!=="object"){Nr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Wr(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.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 n=="function"&&(a==="formAction"?(t!=="input"&&ne(e,t,"name",o.name,o,null),ne(e,t,"formEncType",o.formEncType,o,null),ne(e,t,"formMethod",o.formMethod,o,null),ne(e,t,"formTarget",o.formTarget,o,null)):(ne(e,t,"encType",o.encType,o,null),ne(e,t,"method",o.method,o,null),ne(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Wr(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ha);break;case"onScroll":l!=null&&G("scroll",e);break;case"onScrollEnd":l!=null&&G("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(I(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(I(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Wr(""+l),e.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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":G("beforetoggle",e),G("toggle",e),Zr(e,"popover",l);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Zr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=XL.get(a)||a,Zr(e,a,l))}}function cd(e,t,a,l,o,n){switch(a){case"style":Cp(e,l,n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(I(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(I(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Co(e,l):(typeof l=="number"||typeof l=="bigint")&&Co(e,""+l);break;case"onScroll":l!=null&&G("scroll",e);break;case"onScrollEnd":l!=null&&G("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),n=e[nt]||null,n=n!=null?n[a]:null,typeof n=="function"&&e.removeEventListener(t,n,o),typeof l=="function")){typeof n!="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Zr(e,a,l)}}}function _e(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":G("error",e),G("load",e);var l=!1,o=!1,n;for(n in a)if(a.hasOwnProperty(n)){var r=a[n];if(r!=null)switch(n){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:ne(e,t,n,r,a,null)}}o&&ne(e,t,"srcSet",a.srcSet,a,null),l&&ne(e,t,"src",a.src,a,null);return;case"input":G("invalid",e);var u=n=r=o=null,s=null,i=null;for(l in a)if(a.hasOwnProperty(l)){var d=a[l];if(d!=null)switch(l){case"name":o=d;break;case"type":r=d;break;case"checked":s=d;break;case"defaultChecked":i=d;break;case"value":n=d;break;case"defaultValue":u=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(I(137,t));break;default:ne(e,t,l,d,a,null)}}vp(e,n,u,s,i,r,o,!1);return;case"select":G("invalid",e),l=r=n=null;for(o in a)if(a.hasOwnProperty(o)&&(u=a[o],u!=null))switch(o){case"value":n=u;break;case"defaultValue":r=u;break;case"multiple":l=u;default:ne(e,t,o,u,a,null)}t=n,a=r,e.multiple=!!l,t!=null?go(e,!!l,t,!1):a!=null&&go(e,!!l,a,!0);return;case"textarea":G("invalid",e),n=o=l=null;for(r in a)if(a.hasOwnProperty(r)&&(u=a[r],u!=null))switch(r){case"value":l=u;break;case"defaultValue":o=u;break;case"children":n=u;break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(I(91));break;default:ne(e,t,r,u,a,null)}Sp(e,l,o,n);return;case"option":for(s in a)a.hasOwnProperty(s)&&(l=a[s],l!=null)&&(s==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":ne(e,t,s,l,a,null));return;case"dialog":G("beforetoggle",e),G("toggle",e),G("cancel",e),G("close",e);break;case"iframe":case"object":G("load",e);break;case"video":case"audio":for(l=0;l<Bn.length;l++)G(Bn[l],e);break;case"image":G("error",e),G("load",e);break;case"details":G("toggle",e);break;case"embed":case"source":case"link":G("error",e),G("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:ne(e,t,i,l,a,null)}return;default:if(Ad(t)){for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!==void 0&&cd(e,t,d,l,a,void 0));return}}for(u in a)a.hasOwnProperty(u)&&(l=a[u],l!=null&&ne(e,t,u,l,a,null))}function hy(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,n=null,r=null,u=null,s=null,i=null,d=null;for(m in a){var g=a[m];if(a.hasOwnProperty(m)&&g!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":s=g;default:l.hasOwnProperty(m)||ne(e,t,m,null,l,g)}}for(var f in l){var m=l[f];if(g=a[f],l.hasOwnProperty(f)&&(m!=null||g!=null))switch(f){case"type":n=m;break;case"name":o=m;break;case"checked":i=m;break;case"defaultChecked":d=m;break;case"value":r=m;break;case"defaultValue":u=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(I(137,t));break;default:m!==g&&ne(e,t,f,m,l,g)}}Oi(e,r,u,s,i,d,n,o);return;case"select":m=r=u=f=null;for(n in a)if(s=a[n],a.hasOwnProperty(n)&&s!=null)switch(n){case"value":break;case"multiple":m=s;default:l.hasOwnProperty(n)||ne(e,t,n,null,l,s)}for(o in l)if(n=l[o],s=a[o],l.hasOwnProperty(o)&&(n!=null||s!=null))switch(o){case"value":f=n;break;case"defaultValue":u=n;break;case"multiple":r=n;default:n!==s&&ne(e,t,o,n,l,s)}t=u,a=r,l=m,f!=null?go(e,!!a,f,!1):!!l!=!!a&&(t!=null?go(e,!!a,t,!0):go(e,!!a,a?[]:"",!1));return;case"textarea":m=f=null;for(u in a)if(o=a[u],a.hasOwnProperty(u)&&o!=null&&!l.hasOwnProperty(u))switch(u){case"value":break;case"children":break;default:ne(e,t,u,null,l,o)}for(r in l)if(o=l[r],n=a[r],l.hasOwnProperty(r)&&(o!=null||n!=null))switch(r){case"value":f=o;break;case"defaultValue":m=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(I(91));break;default:o!==n&&ne(e,t,r,o,l,n)}yp(e,f,m);return;case"option":for(var b in a)f=a[b],a.hasOwnProperty(b)&&f!=null&&!l.hasOwnProperty(b)&&(b==="selected"?e.selected=!1:ne(e,t,b,null,l,f));for(s in l)f=l[s],m=a[s],l.hasOwnProperty(s)&&f!==m&&(f!=null||m!=null)&&(s==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":ne(e,t,s,f,l,m));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 v in a)f=a[v],a.hasOwnProperty(v)&&f!=null&&!l.hasOwnProperty(v)&&ne(e,t,v,null,l,f);for(i in l)if(f=l[i],m=a[i],l.hasOwnProperty(i)&&f!==m&&(f!=null||m!=null))switch(i){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(I(137,t));break;default:ne(e,t,i,f,l,m)}return;default:if(Ad(t)){for(var D in a)f=a[D],a.hasOwnProperty(D)&&f!==void 0&&!l.hasOwnProperty(D)&&cd(e,t,D,void 0,l,f);for(d in l)f=l[d],m=a[d],!l.hasOwnProperty(d)||f===m||f===void 0&&m===void 0||cd(e,t,d,f,l,m);return}}for(var p in a)f=a[p],a.hasOwnProperty(p)&&f!=null&&!l.hasOwnProperty(p)&&ne(e,t,p,null,l,f);for(g in l)f=l[g],m=a[g],!l.hasOwnProperty(g)||f===m||f==null&&m==null||ne(e,t,g,f,l,m)}function Om(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],n=o.transferSize,r=o.initiatorType,u=o.duration;if(n&&u&&Om(r)){for(r=0,u=o.responseEnd,l+=1;l<a.length;l++){var s=a[l],i=s.startTime;if(i>u)break;var d=s.transferSize,g=s.initiatorType;d&&Om(g)&&(s=s.responseEnd,r+=d*(s<u?1:(u-i)/(s-i)))}if(--l,t+=8*(n+r)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var md=null,pd=null;function Ru(e){return e.nodeType===9?e:e.ownerDocument}function zm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wi=null;function by(){var e=window.event;return e&&e.type==="popstate"?e===wi?!1:(wi=e,!0):(wi=null,!1)}var Ah=typeof setTimeout=="function"?setTimeout:void 0,Ly=typeof clearTimeout=="function"?clearTimeout:void 0,Um=typeof Promise=="function"?Promise:void 0,vy=typeof queueMicrotask=="function"?queueMicrotask:typeof Um<"u"?function(e){return Um.resolve(null).then(e).catch(yy)}:Ah;function yy(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function qm(e,t){var a=t,l=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(o),Ro(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")In(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,In(a);for(var n=a.firstChild;n;){var r=n.nextSibling,u=n.nodeName;n[Gn]||u==="SCRIPT"||u==="STYLE"||u==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=r}}else a==="body"&&In(e.ownerDocument.body);a=o}while(a);Ro(t)}function Fm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function hd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":hd(a),Md(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Sy(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Gn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=Et(e.nextSibling),e===null)break}return null}function Cy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Et(e.nextSibling),e===null))return null;return e}function Th(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Et(e.nextSibling),e===null))return null;return e}function xd(e){return e.data==="$?"||e.data==="$~"}function bd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Iy(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Et(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ld=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Et(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Dh(e,t,a){switch(t=Ru(a),e){case"html":if(e=t.documentElement,!e)throw Error(I(452));return e;case"head":if(e=t.head,!e)throw Error(I(453));return e;case"body":if(e=t.body,!e)throw Error(I(454));return e;default:throw Error(I(451))}}function In(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Md(e)}var Nt=new Map,Vm=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ka=J.d;J.d={f:wy,r:ky,D:My,C:Ay,L:Ty,m:Dy,X:Ey,S:Ry,M:Ny};function wy(){var e=ka.f(),t=ju();return e||t}function ky(e){var t=No(e);t!==null&&t.tag===5&&t.type==="form"?Cg(t):ka.r(e)}var Oo=typeof document>"u"?null:document;function Rh(e,t,a){var l=Oo;if(l&&typeof t=="string"&&t){var o=At(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Vm.has(o)||(Vm.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),_e(t,"link",e),Pe(t),l.head.appendChild(t)))}}function My(e){ka.D(e),Rh("dns-prefetch",e,null)}function Ay(e,t){ka.C(e,t),Rh("preconnect",e,t)}function Ty(e,t,a){ka.L(e,t,a);var l=Oo;if(l&&e&&t){var o='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+At(a.imageSizes)+'"]')):o+='[href="'+At(e)+'"]';var n=o;switch(t){case"style":n=Do(e);break;case"script":n=zo(e)}Nt.has(n)||(e=me({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Nt.set(n,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(jn(n))||t==="script"&&l.querySelector(Kn(n))||(t=l.createElement("link"),_e(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Dy(e,t){ka.m(e,t);var a=Oo;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+At(l)+'"][href="'+At(e)+'"]',n=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=zo(e)}if(!Nt.has(n)&&(e=me({rel:"modulepreload",href:e},t),Nt.set(n,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Kn(n)))return}l=a.createElement("link"),_e(l,"link",e),Pe(l),a.head.appendChild(l)}}}function Ry(e,t,a){ka.S(e,t,a);var l=Oo;if(l&&e){var o=po(l).hoistableStyles,n=Do(e);t=t||"default";var r=o.get(n);if(!r){var u={loading:0,preload:null};if(r=l.querySelector(jn(n)))u.loading=5;else{e=me({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Nt.get(n))&&mf(e,a);var s=r=l.createElement("link");Pe(s),_e(s,"link",e),s._p=new Promise(function(i,d){s.onload=i,s.onerror=d}),s.addEventListener("load",function(){u.loading|=1}),s.addEventListener("error",function(){u.loading|=2}),u.loading|=4,ou(r,t,l)}r={type:"stylesheet",instance:r,count:1,state:u},o.set(n,r)}}}function Ey(e,t){ka.X(e,t);var a=Oo;if(a&&e){var l=po(a).hoistableScripts,o=zo(e),n=l.get(o);n||(n=a.querySelector(Kn(o)),n||(e=me({src:e,async:!0},t),(t=Nt.get(o))&&pf(e,t),n=a.createElement("script"),Pe(n),_e(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},l.set(o,n))}}function Ny(e,t){ka.M(e,t);var a=Oo;if(a&&e){var l=po(a).hoistableScripts,o=zo(e),n=l.get(o);n||(n=a.querySelector(Kn(o)),n||(e=me({src:e,async:!0,type:"module"},t),(t=Nt.get(o))&&pf(e,t),n=a.createElement("script"),Pe(n),_e(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},l.set(o,n))}}function Xm(e,t,a,l){var o=(o=Xa.current)?Eu(o):null;if(!o)throw Error(I(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Do(a.href),a=po(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Do(a.href);var n=po(o).hoistableStyles,r=n.get(e);if(r||(o=o.ownerDocument||o,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,r),(n=o.querySelector(jn(e)))&&!n._p&&(r.instance=n,r.state.loading=5),Nt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Nt.set(e,a),n||By(o,e,a,r.state))),t&&l===null)throw Error(I(528,""));return r}if(t&&l!==null)throw Error(I(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=zo(a),a=po(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,e))}}function Do(e){return'href="'+At(e)+'"'}function jn(e){return'link[rel="stylesheet"]['+e+"]"}function Eh(e){return me({},e,{"data-precedence":e.precedence,precedence:null})}function By(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),_e(t,"link",a),Pe(t),e.head.appendChild(t))}function zo(e){return'[src="'+At(e)+'"]'}function Kn(e){return"script[async]"+e}function Ym(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(l)return t.instance=l,Pe(l),l;var o=me({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),_e(l,"style",o),ou(l,a.precedence,e),t.instance=l;case"stylesheet":o=Do(a.href);var n=e.querySelector(jn(o));if(n)return t.state.loading|=4,t.instance=n,Pe(n),n;l=Eh(a),(o=Nt.get(o))&&mf(l,o),n=(e.ownerDocument||e).createElement("link"),Pe(n);var r=n;return r._p=new Promise(function(u,s){r.onload=u,r.onerror=s}),_e(n,"link",l),t.state.loading|=4,ou(n,a.precedence,e),t.instance=n;case"script":return n=zo(a.src),(o=e.querySelector(Kn(n)))?(t.instance=o,Pe(o),o):(l=a,(o=Nt.get(n))&&(l=me({},a),pf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Pe(o),_e(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(I(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ou(l,a.precedence,e));return t.instance}function ou(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,n=o,r=0;r<l.length;r++){var u=l[r];if(u.dataset.precedence===t)n=u;else if(n!==o)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nu=null;function Zm(e,t,a){if(nu===null){var l=new Map,o=nu=new Map;o.set(a,l)}else o=nu,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var n=a[o];if(!(n[Gn]||n[Ue]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var r=n.getAttribute(t)||"";r=e+r;var u=l.get(r);u?u.push(n):l.set(r,[n])}}return l}function Wm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Hy(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Nh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Py(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Do(l.href),n=t.querySelector(jn(o));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Nu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,Pe(n);return}n=t.ownerDocument||t,l=Eh(l),(o=Nt.get(o))&&mf(l,o),n=n.createElement("link"),Pe(n);var r=n;r._p=new Promise(function(u,s){r.onload=u,r.onerror=s}),_e(n,"link",l),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Nu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ki=0;function Oy(e,t){return e.stylesheets&&e.count===0&&ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+t);0<e.imgBytes&&ki===0&&(ki=62500*xy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>ki?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bu=null;function ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bu=new Map,t.forEach(zy,e),Bu=null,Nu.call(e))}function zy(e,t){if(!(t.state.loading&4)){var a=Bu.get(e);if(a)var l=a.get(null);else{a=new Map,Bu.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<o.length;n++){var r=o[n];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(a.set(r.dataset.precedence,r),l=r)}l&&a.set(null,l)}o=t.instance,r=o.getAttribute("data-precedence"),n=a.get(r)||l,n===l&&a.set(null,o),a.set(r,o),this.count++,l=Nu.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),n?n.parentNode.insertBefore(o,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Pn={$$typeof:ga,Provider:null,Consumer:null,_currentValue:vl,_currentValue2:vl,_threadCount:0};function Uy(e,t,a,l,o,n,r,u,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Js(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Js(0),this.hiddenUpdates=Js(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=n,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Bh(e,t,a,l,o,n,r,u,s,i,d,g){return e=new Uy(e,t,a,r,s,i,d,g,u),t=1,n===!0&&(t|=24),n=pt(3,null,null,t),e.current=n,n.stateNode=e,t=Ud(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:l,isDehydrated:a,cache:t},_d(n),e}function Hh(e){return e?(e=io,e):io}function Ph(e,t,a,l,o,n){o=Hh(o),l.context===null?l.context=o:l.pendingContext=o,l=Za(t),l.payload={element:a},n=n===void 0?null:n,n!==null&&(l.callback=n),a=Wa(e,l,t),a!==null&&(ot(a,e,t),hn(a,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function gf(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Oh(e){if(e.tag===13||e.tag===31){var t=Nl(e,67108864);t!==null&&ot(t,e,67108864),gf(e,67108864)}}function Km(e){if(e.tag===13||e.tag===31){var t=Lt();t=wd(t);var a=Nl(e,t);a!==null&&ot(a,e,t),gf(e,t)}}var Hu=!0;function qy(e,t,a,l){var o=O.T;O.T=null;var n=J.p;try{J.p=2,hf(e,t,a,l)}finally{J.p=n,O.T=o}}function Fy(e,t,a,l){var o=O.T;O.T=null;var n=J.p;try{J.p=8,hf(e,t,a,l)}finally{J.p=n,O.T=o}}function hf(e,t,a,l){if(Hu){var o=vd(l);if(o===null)Ii(e,t,l,Pu,a),Qm(e,l);else if(Gy(o,e,t,a,l))l.stopPropagation();else if(Qm(e,l),t&4&&-1<_y.indexOf(e)){for(;o!==null;){var n=No(o);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var r=xl(n.pendingLanes);if(r!==0){var u=n;for(u.pendingLanes|=2,u.entangledLanes|=2;r;){var s=1<<31-bt(r);u.entanglements[1]|=s,r&=~s}ta(n),(Q&6)===0&&(wu=ht()+500,Wn(0,!1))}}break;case 31:case 13:u=Nl(n,2),u!==null&&ot(u,n,2),ju(),gf(n,2)}if(n=vd(l),n===null&&Ii(e,t,l,Pu,a),n===o)break;o=n}o!==null&&l.stopPropagation()}else Ii(e,t,l,null,a)}}function vd(e){return e=Td(e),xf(e)}var Pu=null;function xf(e){if(Pu=null,e=lo(e),e!==null){var t=Un(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=lp(t),e!==null)return e;e=null}else if(a===31){if(e=op(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pu=e,null}function zh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(TL()){case sp:return 2;case ip:return 8;case fu:case DL:return 32;case dp:return 268435456;default:return 32}default:return 32}}var yd=!1,Qa=null,Ja=null,$a=null,On=new Map,zn=new Map,Ua=[],_y="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 Qm(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":$a=null;break;case"pointerover":case"pointerout":On.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zn.delete(t.pointerId)}}function on(e,t,a,l,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:n,targetContainers:[o]},t!==null&&(t=No(t),t!==null&&Oh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Gy(e,t,a,l,o){switch(t){case"focusin":return Qa=on(Qa,e,t,a,l,o),!0;case"dragenter":return Ja=on(Ja,e,t,a,l,o),!0;case"mouseover":return $a=on($a,e,t,a,l,o),!0;case"pointerover":var n=o.pointerId;return On.set(n,on(On.get(n)||null,e,t,a,l,o)),!0;case"gotpointercapture":return n=o.pointerId,zn.set(n,on(zn.get(n)||null,e,t,a,l,o)),!0}return!1}function Uh(e){var t=lo(e.target);if(t!==null){var a=Un(t);if(a!==null){if(t=a.tag,t===13){if(t=lp(a),t!==null){e.blockedOn=t,Bc(e.priority,function(){Km(a)});return}}else if(t===31){if(t=op(a),t!==null){e.blockedOn=t,Bc(e.priority,function(){Km(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function uu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=vd(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ui=l,a.target.dispatchEvent(l),Ui=null}else return t=No(a),t!==null&&Oh(t),e.blockedOn=a,!1;t.shift()}return!0}function Jm(e,t,a){uu(e)&&a.delete(t)}function Vy(){yd=!1,Qa!==null&&uu(Qa)&&(Qa=null),Ja!==null&&uu(Ja)&&(Ja=null),$a!==null&&uu($a)&&($a=null),On.forEach(Jm),zn.forEach(Jm)}function Xr(e,t){e.blockedOn===t&&(e.blockedOn=null,yd||(yd=!0,De.unstable_scheduleCallback(De.unstable_NormalPriority,Vy)))}var Yr=null;function $m(e){Yr!==e&&(Yr=e,De.unstable_scheduleCallback(De.unstable_NormalPriority,function(){Yr===e&&(Yr=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(xf(l||a)===null)continue;break}var n=No(a);n!==null&&(e.splice(t,3),t-=3,td(n,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ro(e){function t(s){return Xr(s,e)}Qa!==null&&Xr(Qa,e),Ja!==null&&Xr(Ja,e),$a!==null&&Xr($a,e),On.forEach(t),zn.forEach(t);for(var a=0;a<Ua.length;a++){var l=Ua[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ua.length&&(a=Ua[0],a.blockedOn===null);)Uh(a),a.blockedOn===null&&Ua.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],n=a[l+1],r=o[nt]||null;if(typeof n=="function")r||$m(a);else if(r){var u=null;if(n&&n.hasAttribute("formAction")){if(o=n,r=n[nt]||null)u=r.formAction;else if(xf(o)!==null)continue}else u=r.action;typeof u=="function"?a[l+1]=u:(a.splice(l,3),l-=3),$m(a)}}}function qh(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(r){return o=r})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function bf(e){this._internalRoot=e}Ju.prototype.render=bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));var a=t.current,l=Lt();Ph(a,l,e,t,null,null)};Ju.prototype.unmount=bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ph(e.current,2,null,e,null,null),ju(),t[Eo]=null}};function Ju(e){this._internalRoot=e}Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=gp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ua.length&&t!==0&&t<Ua[a].priority;a++);Ua.splice(a,0,e),a===0&&Uh(e)}};var ep=tp.version;if(ep!=="19.2.8")throw Error(I(527,ep,"19.2.8"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=SL(t),e=e!==null?np(e):null,e=e===null?null:e.stateNode,e};var Xy={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(nn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!nn.isDisabled&&nn.supportsFiber))try{qn=nn.inject(Xy),xt=nn}catch{}var nn;$u.createRoot=function(e,t){if(!ap(e))throw Error(I(299));var a=!1,l="",o=Rg,n=Eg,r=Ng;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Bh(e,1,!1,null,null,a,l,null,o,n,r,qh),e[Eo]=t.current,cf(e),new bf(t)};$u.hydrateRoot=function(e,t,a){if(!ap(e))throw Error(I(299));var l=!1,o="",n=Rg,r=Eg,u=Ng,s=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(r=a.onCaughtError),a.onRecoverableError!==void 0&&(u=a.onRecoverableError),a.formState!==void 0&&(s=a.formState)),t=Bh(e,1,!0,t,a??null,l,o,s,n,r,u,qh),t.context=Hh(null),a=t.current,l=Lt(),l=wd(l),o=Za(l),o.callback=null,Wa(a,o,l),a=l,t.current.lanes=a,_n(t,a),ta(t),e[Eo]=t.current,cf(e),new Ju(t)};$u.version="19.2.8"});var Vh=Wt((U0,Gh)=>{"use strict";function _h(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_h)}catch(e){console.error(e)}}_h(),Gh.exports=Fh()});var hx=Wt(os=>{"use strict";var BS=Symbol.for("react.transitional.element"),HS=Symbol.for("react.fragment");function gx(e,t,a){var l=null;if(a!==void 0&&(l=""+a),t.key!==void 0&&(l=""+t.key),"key"in t){a={};for(var o in t)o!=="key"&&(a[o]=t[o])}else a=t;return t=a.ref,{$$typeof:BS,type:e,key:l,ref:t!==void 0?t:null,props:a}}os.Fragment=HS;os.jsx=gx;os.jsxs=gx});var S=Wt((K0,xx)=>{"use strict";xx.exports=hx()});var Zb=x(Vh(),1);var As=x(H(),1);function Xh(e){var t,a,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=Xh(e[t]))&&(l&&(l+=" "),l+=a)}else for(a in e)e[a]&&(l&&(l+=" "),l+=a);return l}function es(){for(var e,t,a=0,l="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Xh(e))&&(l&&(l+=" "),l+=t);return l}var Yy=(e,t)=>{let a=new Array(e.length+t.length);for(let l=0;l<e.length;l++)a[l]=e[l];for(let l=0;l<t.length;l++)a[e.length+l]=t[l];return a},Zy=(e,t)=>({classGroupId:e,validator:t}),Qh=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var Yh=[],Wy="arbitrary..",jy=e=>{let t=Qy(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return Ky(r);let u=r.split("-"),s=u[0]===""&&u.length>1?1:0;return Jh(u,s,t)},getConflictingClassGroupIds:(r,u)=>{if(u){let s=l[r],i=a[r];return s?i?Yy(i,s):s:i||Yh}return a[r]||Yh}}},Jh=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let o=e[t],n=a.nextPart.get(o);if(n){let i=Jh(e,t+1,n);if(i)return i}let r=a.validators;if(r===null)return;let u=t===0?e.join("-"):e.slice(t).join("-"),s=r.length;for(let i=0;i<s;i++){let d=r[i];if(d.validator(u))return d.classGroupId}},Ky=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),l=t.slice(0,a);return l?Wy+l:void 0})(),Qy=e=>{let{theme:t,classGroups:a}=e;return Jy(a,t)},Jy=(e,t)=>{let a=Qh();for(let l in e){let o=e[l];vf(o,a,l,t)}return a},vf=(e,t,a,l)=>{let o=e.length;for(let n=0;n<o;n++){let r=e[n];$y(r,t,a,l)}},$y=(e,t,a,l)=>{if(typeof e=="string"){eS(e,t,a);return}if(typeof e=="function"){tS(e,t,a,l);return}aS(e,t,a,l)},eS=(e,t,a)=>{let l=e===""?t:$h(t,e);l.classGroupId=a},tS=(e,t,a,l)=>{if(lS(e)){vf(e(l),t,a,l);return}t.validators===null&&(t.validators=[]),t.validators.push(Zy(a,e))},aS=(e,t,a,l)=>{let o=Object.entries(e),n=o.length;for(let r=0;r<n;r++){let[u,s]=o[r];vf(s,$h(t,u),a,l)}},$h=(e,t)=>{let a=e,l=t.split("-"),o=l.length;for(let n=0;n<o;n++){let r=l[n],u=a.nextPart.get(r);u||(u=Qh(),a.nextPart.set(r,u)),a=u}return a},lS=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,oS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),l=Object.create(null),o=(n,r)=>{a[n]=r,t++,t>e&&(t=0,l=a,a=Object.create(null))};return{get(n){let r=a[n];if(r!==void 0)return r;if((r=l[n])!==void 0)return o(n,r),r},set(n,r){n in a?a[n]=r:o(n,r)}}};var nS=[],Zh=(e,t,a,l,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:l,isExternal:o}),rS=e=>{let{prefix:t,experimentalParseClassName:a}=e,l=o=>{let n=[],r=0,u=0,s=0,i,d=o.length;for(let v=0;v<d;v++){let D=o[v];if(r===0&&u===0){if(D===":"){n.push(o.slice(s,v)),s=v+1;continue}if(D==="/"){i=v;continue}}D==="["?r++:D==="]"?r--:D==="("?u++:D===")"&&u--}let g=n.length===0?o:o.slice(s),f=g,m=!1;g.endsWith("!")?(f=g.slice(0,-1),m=!0):g.startsWith("!")&&(f=g.slice(1),m=!0);let b=i&&i>s?i-s:void 0;return Zh(n,m,f,b)};if(t){let o=t+":",n=l;l=r=>r.startsWith(o)?n(r.slice(o.length)):Zh(nS,!1,r,void 0,!0)}if(a){let o=l;l=n=>a({className:n,parseClassName:o})}return l},uS=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,l)=>{t.set(a,1e6+l)}),a=>{let l=[],o=[];for(let n=0;n<a.length;n++){let r=a[n],u=r[0]==="[",s=t.has(r);u||s?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(r)):o.push(r)}return o.length>0&&(o.sort(),l.push(...o)),l}},sS=e=>({cache:oS(e.cacheSize),parseClassName:rS(e),sortModifiers:uS(e),...jy(e)}),iS=/\s+/,dS=(e,t)=>{let{parseClassName:a,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:n}=t,r=[],u=e.trim().split(iS),s="";for(let i=u.length-1;i>=0;i-=1){let d=u[i],{isExternal:g,modifiers:f,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}=a(d);if(g){s=d+(s.length>0?" "+s:s);continue}let D=!!v,p=l(D?b.substring(0,v):b);if(!p){if(!D){s=d+(s.length>0?" "+s:s);continue}if(p=l(b),!p){s=d+(s.length>0?" "+s:s);continue}D=!1}let c=f.length===0?"":f.length===1?f[0]:n(f).join(":"),h=m?c+"!":c,L=h+p;if(r.indexOf(L)>-1)continue;r.push(L);let T=o(p,D);for(let R=0;R<T.length;++R){let A=T[R];r.push(h+A)}s=d+(s.length>0?" "+s:s)}return s},fS=(...e)=>{let t=0,a,l,o="";for(;t<e.length;)(a=e[t++])&&(l=ex(a))&&(o&&(o+=" "),o+=l);return o},ex=e=>{if(typeof e=="string")return e;let t,a="";for(let l=0;l<e.length;l++)e[l]&&(t=ex(e[l]))&&(a&&(a+=" "),a+=t);return a},cS=(e,...t)=>{let a,l,o,n,r=s=>{let i=t.reduce((d,g)=>g(d),e());return a=sS(i),l=a.cache.get,o=a.cache.set,n=u,u(s)},u=s=>{let i=l(s);if(i)return i;let d=dS(s,a);return o(s,d),d};return n=r,(...s)=>n(fS(...s))},mS=[],Re=e=>{let t=a=>a[e]||mS;return t.isThemeGetter=!0,t},tx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ax=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,LS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rl=e=>pS.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),ul=e=>!!e&&Number.isInteger(Number(e)),Lf=e=>e.endsWith("%")&&F(e.slice(0,-1)),Ma=e=>gS.test(e),lx=()=>!0,vS=e=>hS.test(e)&&!xS.test(e),yf=()=>!1,yS=e=>bS.test(e),SS=e=>LS.test(e),CS=e=>!E(e)&&!B(e),IS=e=>sl(e,rx,yf),E=e=>tx.test(e),Hl=e=>sl(e,ux,vS),Wh=e=>sl(e,ES,F),wS=e=>sl(e,ix,lx),kS=e=>sl(e,sx,yf),jh=e=>sl(e,ox,yf),MS=e=>sl(e,nx,SS),ts=e=>sl(e,dx,yS),B=e=>ax.test(e),Qn=e=>Pl(e,ux),AS=e=>Pl(e,sx),Kh=e=>Pl(e,ox),TS=e=>Pl(e,rx),DS=e=>Pl(e,nx),as=e=>Pl(e,dx,!0),RS=e=>Pl(e,ix,!0),sl=(e,t,a)=>{let l=tx.exec(e);return l?l[1]?t(l[1]):a(l[2]):!1},Pl=(e,t,a=!1)=>{let l=ax.exec(e);return l?l[1]?t(l[1]):a:!1},ox=e=>e==="position"||e==="percentage",nx=e=>e==="image"||e==="url",rx=e=>e==="length"||e==="size"||e==="bg-size",ux=e=>e==="length",ES=e=>e==="number",sx=e=>e==="family-name",ix=e=>e==="number"||e==="weight",dx=e=>e==="shadow";var NS=()=>{let e=Re("color"),t=Re("font"),a=Re("text"),l=Re("font-weight"),o=Re("tracking"),n=Re("leading"),r=Re("breakpoint"),u=Re("container"),s=Re("spacing"),i=Re("radius"),d=Re("shadow"),g=Re("inset-shadow"),f=Re("text-shadow"),m=Re("drop-shadow"),b=Re("blur"),v=Re("perspective"),D=Re("aspect"),p=Re("ease"),c=Re("animate"),h=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...L(),B,E],R=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],y=()=>[B,E,s],k=()=>[rl,"full","auto",...y()],w=()=>[ul,"none","subgrid",B,E],N=()=>["auto",{span:["full",ul,B,E]},ul,B,E],Z=()=>[ul,"auto",B,E],Xl=()=>["auto","min","max","fr",B,E],Ra=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ra=()=>["start","end","center","stretch","center-safe","end-safe"],Ge=()=>["auto",...y()],pl=()=>[rl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],Ts=()=>[rl,"screen","full","dvw","lvw","svw","min","max","fit",...y()],Ds=()=>[rl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],P=()=>[e,B,E],Kf=()=>[...L(),Kh,jh,{position:[B,E]}],Qf=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Jf=()=>["auto","cover","contain",TS,IS,{size:[B,E]}],Rs=()=>[Lf,Qn,Hl],We=()=>["","none","full",i,B,E],je=()=>["",F,Qn,Hl],vr=()=>["solid","dashed","dotted","double"],$f=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Be=()=>[F,Lf,Kh,jh],ec=()=>["","none",b,B,E],yr=()=>["none",F,B,E],Sr=()=>["none",F,B,E],Es=()=>[F,B,E],Cr=()=>[rl,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ma],breakpoint:[Ma],color:[lx],container:[Ma],"drop-shadow":[Ma],ease:["in","out","in-out"],font:[CS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ma],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ma],shadow:[Ma],spacing:["px",F],text:[Ma],"text-shadow":[Ma],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rl,E,B,D]}],container:["container"],columns:[{columns:[F,E,B,u]}],"break-after":[{"break-after":h()}],"break-before":[{"break-before":h()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[ul,"auto",B,E]}],basis:[{basis:[rl,"full","auto",u,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,rl,"auto","initial","none",E]}],grow:[{grow:["",F,B,E]}],shrink:[{shrink:["",F,B,E]}],order:[{order:[ul,"first","last","none",B,E]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Xl()}],"auto-rows":[{"auto-rows":Xl()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...Ra(),"normal"]}],"justify-items":[{"justify-items":[...ra(),"normal"]}],"justify-self":[{"justify-self":["auto",...ra()]}],"align-content":[{content:["normal",...Ra()]}],"align-items":[{items:[...ra(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ra(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ra()}],"place-items":[{"place-items":[...ra(),"baseline"]}],"place-self":[{"place-self":["auto",...ra()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:Ge()}],mx:[{mx:Ge()}],my:[{my:Ge()}],ms:[{ms:Ge()}],me:[{me:Ge()}],mbs:[{mbs:Ge()}],mbe:[{mbe:Ge()}],mt:[{mt:Ge()}],mr:[{mr:Ge()}],mb:[{mb:Ge()}],ml:[{ml:Ge()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:pl()}],"inline-size":[{inline:["auto",...Ts()]}],"min-inline-size":[{"min-inline":["auto",...Ts()]}],"max-inline-size":[{"max-inline":["none",...Ts()]}],"block-size":[{block:["auto",...Ds()]}],"min-block-size":[{"min-block":["auto",...Ds()]}],"max-block-size":[{"max-block":["none",...Ds()]}],w:[{w:[u,"screen",...pl()]}],"min-w":[{"min-w":[u,"screen","none",...pl()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[r]},...pl()]}],h:[{h:["screen","lh",...pl()]}],"min-h":[{"min-h":["screen","lh","none",...pl()]}],"max-h":[{"max-h":["screen","lh",...pl()]}],"font-size":[{text:["base",a,Qn,Hl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,RS,wS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lf,E]}],"font-family":[{font:[AS,kS,t]}],"font-features":[{"font-features":[E]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,B,E]}],"line-clamp":[{"line-clamp":[F,"none",B,Wh]}],leading:[{leading:[n,...y()]}],"list-image":[{"list-image":["none",B,E]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...vr(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",B,Hl]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[F,"auto",B,E]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,E]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B,E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Kf()}],"bg-repeat":[{bg:Qf()}],"bg-size":[{bg:Jf()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ul,B,E],radial:["",B,E],conic:[ul,B,E]},DS,MS]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:Rs()}],"gradient-via-pos":[{via:Rs()}],"gradient-to-pos":[{to:Rs()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:We()}],"rounded-s":[{"rounded-s":We()}],"rounded-e":[{"rounded-e":We()}],"rounded-t":[{"rounded-t":We()}],"rounded-r":[{"rounded-r":We()}],"rounded-b":[{"rounded-b":We()}],"rounded-l":[{"rounded-l":We()}],"rounded-ss":[{"rounded-ss":We()}],"rounded-se":[{"rounded-se":We()}],"rounded-ee":[{"rounded-ee":We()}],"rounded-es":[{"rounded-es":We()}],"rounded-tl":[{"rounded-tl":We()}],"rounded-tr":[{"rounded-tr":We()}],"rounded-br":[{"rounded-br":We()}],"rounded-bl":[{"rounded-bl":We()}],"border-w":[{border:je()}],"border-w-x":[{"border-x":je()}],"border-w-y":[{"border-y":je()}],"border-w-s":[{"border-s":je()}],"border-w-e":[{"border-e":je()}],"border-w-bs":[{"border-bs":je()}],"border-w-be":[{"border-be":je()}],"border-w-t":[{"border-t":je()}],"border-w-r":[{"border-r":je()}],"border-w-b":[{"border-b":je()}],"border-w-l":[{"border-l":je()}],"divide-x":[{"divide-x":je()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":je()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...vr(),"hidden","none"]}],"divide-style":[{divide:[...vr(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...vr(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,B,E]}],"outline-w":[{outline:["",F,Qn,Hl]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",d,as,ts]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",g,as,ts]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:je()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[F,Hl]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":je()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,as,ts]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[F,B,E]}],"mix-blend":[{"mix-blend":[...$f(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":$f()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":Be()}],"mask-image-linear-to-pos":[{"mask-linear-to":Be()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":Be()}],"mask-image-t-to-pos":[{"mask-t-to":Be()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":Be()}],"mask-image-r-to-pos":[{"mask-r-to":Be()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":Be()}],"mask-image-b-to-pos":[{"mask-b-to":Be()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":Be()}],"mask-image-l-to-pos":[{"mask-l-to":Be()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":Be()}],"mask-image-x-to-pos":[{"mask-x-to":Be()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":Be()}],"mask-image-y-to-pos":[{"mask-y-to":Be()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[B,E]}],"mask-image-radial-from-pos":[{"mask-radial-from":Be()}],"mask-image-radial-to-pos":[{"mask-radial-to":Be()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":Be()}],"mask-image-conic-to-pos":[{"mask-conic-to":Be()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Kf()}],"mask-repeat":[{mask:Qf()}],"mask-size":[{mask:Jf()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,E]}],filter:[{filter:["","none",B,E]}],blur:[{blur:ec()}],brightness:[{brightness:[F,B,E]}],contrast:[{contrast:[F,B,E]}],"drop-shadow":[{"drop-shadow":["","none",m,as,ts]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",F,B,E]}],"hue-rotate":[{"hue-rotate":[F,B,E]}],invert:[{invert:["",F,B,E]}],saturate:[{saturate:[F,B,E]}],sepia:[{sepia:["",F,B,E]}],"backdrop-filter":[{"backdrop-filter":["","none",B,E]}],"backdrop-blur":[{"backdrop-blur":ec()}],"backdrop-brightness":[{"backdrop-brightness":[F,B,E]}],"backdrop-contrast":[{"backdrop-contrast":[F,B,E]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,B,E]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,B,E]}],"backdrop-invert":[{"backdrop-invert":["",F,B,E]}],"backdrop-opacity":[{"backdrop-opacity":[F,B,E]}],"backdrop-saturate":[{"backdrop-saturate":[F,B,E]}],"backdrop-sepia":[{"backdrop-sepia":["",F,B,E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,E]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",B,E]}],ease:[{ease:["linear","initial",p,B,E]}],delay:[{delay:[F,B,E]}],animate:[{animate:["none",c,B,E]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,B,E]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:yr()}],"rotate-x":[{"rotate-x":yr()}],"rotate-y":[{"rotate-y":yr()}],"rotate-z":[{"rotate-z":yr()}],scale:[{scale:Sr()}],"scale-x":[{"scale-x":Sr()}],"scale-y":[{"scale-y":Sr()}],"scale-z":[{"scale-z":Sr()}],"scale-3d":["scale-3d"],skew:[{skew:Es()}],"skew-x":[{"skew-x":Es()}],"skew-y":[{"skew-y":Es()}],transform:[{transform:[B,E,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Cr()}],"translate-x":[{"translate-x":Cr()}],"translate-y":[{"translate-y":Cr()}],"translate-z":[{"translate-z":Cr()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B,E]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B,E]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[F,Qn,Hl,Wh]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var fx=cS(NS);function M(...e){return fx(es(e))}var Uo=x(H(),1);var cx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mx=es,Se=(e,t)=>a=>{var l;if(t?.variants==null)return mx(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,r=Object.keys(o).map(i=>{let d=a?.[i],g=n?.[i];if(d===null)return null;let f=cx(d)||cx(g);return o[i][f]}),u=a&&Object.entries(a).reduce((i,d)=>{let[g,f]=d;return f===void 0||(i[g]=f),i},{}),s=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((i,d)=>{let{class:g,className:f,...m}=d;return Object.entries(m).every(b=>{let[v,D]=b;return Array.isArray(D)?D.includes({...n,...u}[v]):{...n,...u}[v]===D})?[...i,g,f]:i},[]);return mx(e,r,s,a?.class,a?.className)};var px="h-9 rounded-md text-xs font-medium",ls=Se("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",toolbar:`${px} px-3`,"toolbar-icon":"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});var bx=x(S(),1),aa=(0,Uo.forwardRef)(({className:e,variant:t,size:a,asChild:l=!1,children:o,...n},r)=>l&&(0,Uo.isValidElement)(o)?(0,Uo.cloneElement)(o,{className:M(ls({variant:t,size:a}),o.props.className,e),ref:r,...n}):(0,bx.jsx)("button",{className:M(ls({variant:t,size:a,className:e})),ref:r,...n,children:o}));aa.displayName="Button";var Sf=x(H(),1);var Cf=x(S(),1),Ol=(0,Sf.forwardRef)(({className:e,type:t,...a},l)=>(0,Cf.jsx)("input",{type:t,className:M("flex h-10 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",e),ref:l,...a}));Ol.displayName="Input";var Ft=(0,Sf.forwardRef)(({className:e,...t},a)=>(0,Cf.jsx)("label",{ref:a,className:M("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));Ft.displayName="Label";var zl=x(H(),1);var Ul=x(S(),1),Lx=(0,zl.forwardRef)(({className:e,...t},a)=>(0,Ul.jsx)("div",{ref:a,className:M("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Lx.displayName="Card";var vx=(0,zl.forwardRef)(({className:e,...t},a)=>(0,Ul.jsx)("div",{ref:a,className:M("flex flex-col space-y-1.5 p-6",e),...t}));vx.displayName="CardHeader";var yx=(0,zl.forwardRef)(({className:e,...t},a)=>(0,Ul.jsx)("h3",{ref:a,className:M("text-2xl font-semibold leading-none tracking-tight",e),...t}));yx.displayName="CardTitle";var Sx=(0,zl.forwardRef)(({className:e,...t},a)=>(0,Ul.jsx)("p",{ref:a,className:M("text-sm text-muted-foreground",e),...t}));Sx.displayName="CardDescription";var Cx=(0,zl.forwardRef)(({className:e,...t},a)=>(0,Ul.jsx)("div",{ref:a,className:M("p-6 pt-0",e),...t}));Cx.displayName="CardContent";var Ix=(0,zl.forwardRef)(({className:e,...t},a)=>(0,Ul.jsx)("div",{ref:a,className:M("flex items-center p-6 pt-0",e),...t}));Ix.displayName="CardFooter";var Vt=x(H(),1),FS=x($e(),1);var ns=x(H(),1);var wx=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function kx(e,t,a=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:wx(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var Mx=e=>{let t="",a=!1;for(let l of e){if(l==="-"||l==="_"||l<=" "){a=t.length>0;continue}t.length===0?t+=l.toLowerCase():t+=a?l.toUpperCase():l,a=!1}return t};var Ax=e=>{let t=Mx(e);return t.charAt(0).toUpperCase()+t.slice(1)};var $n=x(H(),1);var Jn=(...e)=>e.filter((t,a,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===a).join(" ").trim();var il={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function If(e){return e!=null}function Tx(e,t={}){let a=t.attributeNames??{},l=f=>a[f]??f,o=e.size??e.width??il.width,n=e.size??e.height??il.height,r=e.aliases?.filter(f=>typeof f=="string"&&f.trim()!=="").map(f=>`lucide-${f}`)??[],u=[...e.name?[`lucide-${e.name}`]:[],...r],s=t.className?.split(" ").filter(Boolean)??[],i=t.includeDefaultClasses===!1?Jn(...s):Jn("lucide",...u,...s),d=t.absoluteStrokeWidth?Number(t.strokeWidth??il["stroke-width"])*Number(e.size??e.width??il.width)/Number(t.size??t.width??il.width):t.strokeWidth??il["stroke-width"];return["svg",{...Object.entries(il).reduce((f,[m,b])=>(f[l(m)]=b,f),{}),..."color"in t&&t.color&&{[l("stroke")]:t.color},..."size"in t&&If(t.size)&&{[l("width")]:t.size,[l("height")]:t.size},..."width"in t&&If(t.width)&&{[l("width")]:t.width},..."height"in t&&If(t.height)&&{[l("height")]:t.height},[l("stroke-width")]:d,...i&&{[l("class")]:i},[l("viewBox")]:`0 0 ${o} ${n}`,...t.hasA11yProp===!1?{[l("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(f=>{let[m,b,v]=f,D=t.nonScalingStroke?{[l("vector-effect")]:"non-scaling-stroke",...b}:b;return v?[m,D,v]:[m,D]})]}function Dx(e,t={}){return Tx(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var Rx=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var qo=x(H(),1);var PS=(0,qo.createContext)({});var Ex=()=>(0,qo.useContext)(PS);var Nx=(0,$n.forwardRef)(({color:e,size:t,width:a,height:l,strokeWidth:o,absoluteStrokeWidth:n,nonScalingStroke:r,className:u="",children:s,iconNode:i=[],icon:d={node:i,aliases:[],size:24},...g},f)=>{let{size:m=24,strokeWidth:b=2,absoluteStrokeWidth:v=!1,nonScalingStroke:D=!1,color:p="currentColor",className:c=""}=Ex()??{},h=!!s||Rx(g),[L,T,R=[]]=Dx(d,{color:e??p,width:a??t??m,height:l??t??m,strokeWidth:o??b,absoluteStrokeWidth:n??v,nonScalingStroke:r??D,className:Jn(c,u),hasA11yProp:h,attributes:g});return(0,$n.createElement)(L,{ref:f,...T},[...R.map(([A,y])=>(0,$n.createElement)(A,y)),...Array.isArray(s)?s:[s]])});function Bt(e,t=[],a=[]){let l=typeof e=="string"?kx(e,t,a):e,o=(0,ns.forwardRef)(({className:n,...r},u)=>(0,ns.createElement)(Nx,{ref:u,icon:l,className:n,...r}));return l.name&&(o.displayName=Ax(l.name)),o}var Bx={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Bx.node;var ql=Bt(Bx);var Hx={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Hx.node;var dl=Bt(Hx);var Px={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};Px.node;var er=Bt(Px);var Ox={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};Ox.node;var tr=Bt(Ox);var zx={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};zx.node;var ar=Bt(zx);var Ux={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};Ux.node;var lr=Bt(Ux);var Xe=x(H(),1),_t=[];function qx(e){if(e.key!=="Escape")return;let t=_t[_t.length-1];t&&(e.preventDefault(),e.stopPropagation(),t.dismiss())}function OS(e){_t.length===0&&window.addEventListener("keydown",qx,!0);let t=e.chain[e.chain.length-1],a=_t.findIndex(l=>l.chain.includes(t));a>=0?_t.splice(a,0,e):_t.push(e)}function zS(e){let t=_t.lastIndexOf(e);t>=0&&_t.splice(t,1),_t.length===0&&window.removeEventListener("keydown",qx,!0)}var rs=(0,Xe.createContext)([]);function Gt(e,t=!0){let a=(0,Xe.useRef)(e);a.current=e;let l=(0,Xe.useId)(),o=(0,Xe.useContext)(rs),n=(0,Xe.useMemo)(()=>[...o,l],[o,l]),r=(0,Xe.useRef)(null);(0,Xe.useEffect)(()=>{if(!t)return;let s={dismiss:()=>a.current(),chain:n};return r.current=s,OS(s),()=>{zS(s),r.current===s&&(r.current=null)}},[t,n]);let u=(0,Xe.useCallback)(()=>{let s=r.current;return s!==null&&_t[_t.length-1]===s},[]);return(0,Xe.useMemo)(()=>({scope:n,isTopmost:u}),[n,u])}var US=x(H(),1);var us=x(H(),1),Fx=(0,us.createContext)(void 0);var kf=x(S(),1),tI=(0,Vt.createContext)({open:!1,onOpenChange:()=>{},titleId:"",registerTitle:()=>{},hasTitle:!1});var aI=(0,Vt.createContext)(!1);var or=x(H(),1);var _S=x(S(),1),nI=(0,or.createContext)({allowed:!0,resolveSrc:null});var nr=x(S(),1),GS={twitch:{paths:["M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714z"]},youtube:{paths:["M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"]},kick:{paths:["M1.333 0h8v5.333H12V2.667h2.667V0h8v8H20v2.667h-2.667v2.666H20V16h2.667v8h-8v-2.667H12v-2.666H9.333V24h-8Z"]},discord:{paths:["M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"]},spotify:{paths:["M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"]},google:{paths:["M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z","M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z","M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z","M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"],pathColors:["#4285F4","#34A853","#FBBC05","#EA4335"]},"7tv":{viewBox:"0 0 28 20",paths:["M20.7465 5.48825L21.9799 3.33745L22.646 2.20024L21.4125 0.0494437V0H14.8259L17.2928 4.3016L17.9836 5.48825H20.7465Z","M7.15395 19.9258L14.5546 7.02104L15.4673 5.43884L13.0004 1.13724L12.3097 0.0247596H1.8995L0.666057 2.17556L0 3.31276L1.23344 5.46356V5.51301H9.12745L2.96025 16.267L2.09685 17.7998L3.33029 19.9506V20H7.15395","M17.4655 19.9257H21.2398L26.1736 11.3225L27.037 9.83924L25.8036 7.68844V7.63899H22.0046L19.5377 11.9406L19.365 12.262L16.8981 7.96038L16.7255 7.63899L14.2586 11.9406L13.5679 13.1272L17.2682 19.5796L17.4655 19.9257Z"]},bttv:{viewBox:"0 0 300 300",paths:["M150 1.74C68.409 1.74 1.74 68.41 1.74 150S68.41 298.26 150 298.26h148.26V150.17h-.004c0-.057.004-.113.004-.17C298.26 68.409 231.59 1.74 150 1.74zm0 49c55.11 0 99.26 44.15 99.26 99.26 0 55.11-44.15 99.26-99.26 99.26-55.11 0-99.26-44.15-99.26-99.26 0-55.11 44.15-99.26 99.26-99.26z","M161.388 70.076c-10.662 0-19.42 7.866-19.42 17.67 0 9.803 8.758 17.67 19.42 17.67 10.662 0 19.42-7.867 19.42-17.67 0-9.804-8.758-17.67-19.42-17.67zm45.346 24.554-.02.022-.004.002c-5.402 2.771-11.53 6.895-18.224 11.978l-.002.002-.004.002c-25.943 19.766-60.027 54.218-80.344 80.33h-.072l-1.352 1.768c-5.114 6.69-9.267 12.762-12.098 18.006l-.082.082.022.021v.002l.004.002.174.176.052-.053.102.053-.07.072c30.826 30.537 81.213 30.431 111.918-.273 30.783-30.784 30.8-81.352.04-112.152l-.005-.004zM87.837 142.216c-9.803 0-17.67 8.758-17.67 19.42 0 10.662 7.867 19.42 17.67 19.42 9.804 0 17.67-8.758 17.67-19.42 0-10.662-7.866-19.42-17.67-19.42z"]},ffz:{imageUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAeCAYAAABe3VzdAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTFEMzQxREZDNUM5MTFFMzhCRURDNDY3QzIxRDY2ODciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTFEMzQxRTBDNUM5MTFFMzhCRURDNDY3QzIxRDY2ODciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBMUQzNDFEREM1QzkxMUUzOEJFREM0NjdDMjFENjY4NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBMUQzNDFERUM1QzkxMUUzOEJFREM0NjdDMjFENjY4NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PkLJna0AAAJRSURBVHjazJhPSBRRHMdn112NtJSkPRhqGatmdAgK+gOCROXFSwVWBy3xEBQJHiK8eBeKwNAuQV06FBJCgXSJwLp0LSLBqCQpggj8Q4Y4fV78Fh4yb2b3vdHdL3yY2Z3f/Pa7M++9+f0m4fu+56hLcBNS8vkPPIURWHBN7imDlqThlm/WOzjlkP8/LuYm/GjNQpWLwaTlhb8DZ/KIa4KLLnc4YTEGT8NUAfEzcMh2PNpcwc4C45vhiu0VtDG4ZnHOVaiJw2AGOuAE7DSc89fidxqhN+D7cuiBYajPZ5l5ps3Ar9AZMLMe+nb6BLXrct3Tjr+BmrBlpi8g6U9o1GIGfTcNaLm6A45PQirI4A74Ykjao53w0tHge9giuV4bYm4HrYPnoMEwfqq0/bTjg6sN2mEPHDHEXIOj+iRJQF9I0l+yVZOmznOXmtG1ISuIugiDusH9spCaNC/bR/LPXXUQtsJKSMzJ3KxWBg9AmSFwGWZht9yaOFQBS7AYElMNXTmDx0ICX8E3WWTTMRlUa20W3kbEXcgZzIYEzUGLFAcJLz7dgNWImMPKmyoWPrDTaghaEWPlXnF0ORUxFiq84uq4usXTXumqKSn9xPMSNTiVe6RUwhO/tDQCSb1YSMJoCRhbk6LE2DQNFdHcd+jKp6s7Cz822ZwqtXYV0nZm4MEmGJuHXpe++Dq8gPNw19HMZ/go+wuSLxN3466q4uUCjS3CsKwWin7IbuSbhb0wDksRxn7DGLTavlmwadx17ZOurE6K0O2wTV4kPYb7Wj1ppX8CDACiyHIampRAYAAAAABJRU5ErkJggg==",paths:[]},streamelements:{paths:["M13 2L3 14h7l-2 8 10-12h-7l2-8z"]},shopify:{paths:["M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.746a.372.372 0 00-.331-.311c-.144-.011-2.955-.072-2.955-.072s-1.963-1.905-2.176-2.119a.566.566 0 00-.394-.142l-1.1 22.302","M13.025 8.333s-1.159-.606-2.576-.606c-2.084 0-2.188 1.308-2.188 1.636 0 1.798 4.684 2.488 4.684 6.707 0 3.316-2.105 5.45-4.943 5.45-3.407 0-5.149-2.121-5.149-2.121l.912-3.013s1.793 1.541 3.306 1.541c.989 0 1.392-.779 1.392-1.348 0-2.35-3.843-2.453-3.843-6.312C4.62 6.939 7.158 4 10.968 4c1.465 0 2.19.42 2.19.42l-1.133 3.913z"]}},VS={twitch:"#9146FF",youtube:"#FF0000",kick:"#53FC18",discord:"#5865F2",spotify:"#1DB954",google:"#4285F4","7tv":"#4FC2BC",bttv:"#D50014",ffz:"#4285F4",streamelements:"#F59E0B",shopify:"#96BF48"};function ss({platform:e,size:t=18,color:a,className:l}){let o=a??VS[e]??"#666",n=GS[e];if(!n)return(0,nr.jsx)("span",{className:M("inline-flex items-center justify-center rounded text-xs font-bold",l),style:{color:o,width:t,height:t},children:e.charAt(0).toUpperCase()});if(n.imageUrl)return(0,nr.jsx)("img",{src:n.imageUrl,alt:e,width:t,height:t,className:M("object-contain",l)});let r=n.pathColors&&n.pathColors.length===n.paths.length;return(0,nr.jsx)("svg",{viewBox:n.viewBox??"0 0 24 24",width:t,height:t,fill:r?void 0:n.stroke?"none":o,stroke:n.stroke?o:"none",strokeWidth:n.stroke?2:0,overflow:"visible",className:l,children:n.paths.map((u,s)=>(0,nr.jsx)("path",{d:u,fill:r?n.pathColors[s]:void 0},s))})}var Gx=x(S(),1),cI=Se("shrink-0 rounded-full px-2 py-0.5 text-xs font-medium",{variants:{status:{disconnected:"bg-destructive/15 text-destructive",scope:"bg-warning/15 text-warning",connected:"bg-primary/10 text-primary"}}});var Xx=x(S(),1),Vx=Se("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",success:"border-transparent bg-green-500/15 text-green-700 dark:text-green-400",warning:"border-transparent bg-yellow-500/15 text-yellow-700 dark:text-yellow-400",live:"border-transparent bg-destructive/15 text-destructive",accent:"border-transparent bg-primary/15 text-primary"}},defaultVariants:{variant:"default"}});function Xt({className:e,variant:t,...a}){return(0,Xx.jsx)("span",{className:M(Vx({variant:t}),e),...a})}var Ht=x(H(),1),XS=(e,t,a,l,o,n,r,u)=>{let s=document.documentElement,i=["light","dark"];function d(m){(Array.isArray(e)?e:[e]).forEach(b=>{let v=b==="class",D=v&&n?o.map(p=>n[p]||p):o;v?(s.classList.remove(...D),s.classList.add(n&&n[m]?n[m]:m)):s.setAttribute(b,m)}),g(m)}function g(m){u&&i.includes(m)&&(s.style.colorScheme=m)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)d(l);else try{let m=localStorage.getItem(t)||a,b=r&&m==="system"?f():m;d(b)}catch{}};var xI=Ht.createContext(void 0);var bI=Ht.memo(({forcedTheme:e,storageKey:t,attribute:a,enableSystem:l,enableColorScheme:o,defaultTheme:n,value:r,themes:u,nonce:s,scriptProps:i})=>{let d=JSON.stringify([a,t,n,e,u,r,l,o]).slice(1,-1);return Ht.createElement("script",{...i,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${XS.toString()})(${d})`}})});var ds=x(H(),1),YS=x($e(),1);var Fl=x(S(),1),Yx=Se("animate-pulse bg-muted",{variants:{shape:{block:"rounded-md",circle:"rounded-full",line:"h-3 rounded"}},defaultVariants:{shape:"block"}});function Pt({className:e,shape:t,...a}){return(0,Fl.jsx)("div",{"aria-hidden":"true","data-slot":"skeleton",className:M(Yx({shape:t}),e),...a})}function is({lines:e=3,className:t,lineClassName:a,...l}){return(0,Fl.jsx)("div",{"aria-hidden":"true",className:M("flex flex-col gap-2",t),...l,children:Array.from({length:e},(o,n)=>(0,Fl.jsx)(Pt,{shape:"line",className:M(n===e-1&&e>1?"w-3/5":"w-full",a)},n))})}function rr({label:e,children:t,className:a,...l}){return(0,Fl.jsxs)("div",{role:"status","aria-busy":"true","aria-live":"polite",className:a,...l,children:[(0,Fl.jsx)("span",{className:"sr-only",children:e}),t]})}var Mf=x(S(),1);var Tf=x(H(),1),WS=x($e(),1);function _l(e,t,{preferred:a="bottom",desiredHeight:l,gap:o=4,margin:n=8,bounds:r}){let u=Math.min(t.height,r?.bottom??t.height),s=Math.max(0,r?.top??0),i=u-e.bottom-o-n,d=e.top-s-o-n,g=a==="bottom"?i:d,f=a==="bottom"?d:i,m=a;g<l&&f>g&&(m=a==="bottom"?"top":"bottom");let b=Math.max(0,m==="bottom"?i:d),v=Math.min(l,b);return m==="bottom"?{side:m,top:e.bottom+o,maxHeight:v,availableHeight:b}:{side:m,bottom:t.height-e.top+o,maxHeight:v,availableHeight:b}}function fs(e,t,a,l=0){let o=e+t;return o<=a+l?o:a}function cs(e){let t=getComputedStyle(e);return(parseFloat(t.borderTopWidth)||0)+(parseFloat(t.borderBottomWidth)||0)}var Zx="data-popover-boundary";function ms(e){let t=e.closest(`[${Zx}]`);if(!t)return;let a=t.getBoundingClientRect();return{left:a.left,right:a.right,top:a.top,bottom:a.bottom}}function ps(e,t,a,l="start",o=8,n){let r=Math.max(0,n?.left??0)+o,u=Math.min(t,n?.right??t)-a-o,s;if(l==="center")s=e.left+(e.right-e.left)/2-a/2;else{let i=e.left,d=e.right-a,g=b=>b>=r&&b<=u,[f,m]=l==="end"?[d,i]:[i,d];s=g(f)||!g(m)?f:m}return Math.max(r,Math.min(s,u))}var ZS=384;function Af(e,t,a,l=ZS,o=8){let n=Math.max(Math.min(e,l),t);return Math.max(0,Math.min(n,a-2*o))}var Df=x(S(),1);var Wx=x(S(),1);var j=x(H(),1),jx=x($e(),1);var be=x(S(),1);function jS(e){let t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}var Rf=240,KS=16,ur=(0,j.createContext)({value:"",onValueChange:()=>{},open:!1,setOpen:()=>{},triggerRef:{current:null},labels:new Map,haystacks:new Map,labelsVersion:0,bumpLabels:()=>{},searchable:!1,search:"",setSearch:()=>{}});function sr({value:e,onValueChange:t,children:a,searchable:l=!1,searchPlaceholder:o,searchEmptyText:n}){let[r,u]=(0,j.useState)(!1),[s,i]=(0,j.useState)(""),d=(0,j.useRef)(null),[g]=(0,j.useState)(()=>new Map),[f]=(0,j.useState)(()=>new Map),[m,b]=(0,j.useState)(0),v=(0,j.useCallback)(()=>b(c=>c+1),[]),D=(0,j.useCallback)(c=>{u(c),c||i("")},[]),p=(0,j.useCallback)(c=>{t(c),D(!1)},[t,D]);return(0,be.jsx)(ur.Provider,{value:{value:e,onValueChange:p,open:r,setOpen:D,triggerRef:d,labels:g,haystacks:f,labelsVersion:m,bumpLabels:v,searchable:l,search:s,setSearch:i,searchPlaceholder:o,searchEmptyText:n},children:(0,be.jsx)("div",{className:"relative",children:a})})}function ir({className:e,children:t,icon:a,...l}){let{open:o,setOpen:n,triggerRef:r}=(0,j.useContext)(ur);return(0,be.jsxs)("button",{ref:r,type:"button",role:"combobox","aria-expanded":o,onClick:()=>n(!o),className:M("flex h-9 w-full items-center justify-between gap-2 rounded-lg border border-input bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus:outline-none focus:border-primary","disabled:cursor-not-allowed disabled:opacity-50",e),...l,children:[t,a??(0,be.jsx)(dl,{className:M("h-4 w-4 opacity-50 shrink-0 transition-transform",o&&"rotate-180")})]})}function dr({placeholder:e}){let{value:t,labels:a,labelsVersion:l}=(0,j.useContext)(ur),o=t?a.get(t):void 0,[,n]=(0,j.useState)(0);return(0,j.useLayoutEffect)(()=>{t&&!o&&n(u=>u+1)},[t,o]),(0,be.jsx)("span",{className:"line-clamp-1",children:o??e??""})}function fr({className:e,children:t,contentFontSize:a,position:l,matchTriggerWidth:o=!1,...n}){let{open:r,setOpen:u,triggerRef:s,searchable:i,search:d,setSearch:g,searchPlaceholder:f,searchEmptyText:m,haystacks:b,labelsVersion:v}=(0,j.useContext)(ur),D=(0,j.useRef)(null),p=(0,j.useRef)(null),c=i?d.trim().toLowerCase():"",h=(0,j.useMemo)(()=>{if(!c)return!0;for(let R of b.values())if(R.toLowerCase().includes(c))return!0;return!1},[c,b,v]);(0,j.useEffect)(()=>{r&&i&&p.current?.focus()},[r,i]);let[L,T]=(0,j.useState)({left:0,width:0,maxHeight:Rf});return(0,j.useLayoutEffect)(()=>{if(!r||!s.current)return;let R=s.current,A=R.getBoundingClientRect(),y=document.documentElement.clientWidth||window.innerWidth,k=ms(R),w=k?Math.min(y,k.right)-Math.max(0,k.left):y,N=D.current,Z=A.width;N&&(N.style.maxHeight="none",o||(N.style.width="max-content",Z=Af(Math.ceil(N.getBoundingClientRect().width),Math.ceil(A.width),w)),N.style.width=`${Z}px`);let Xl=fs(N?.scrollHeight??Rf,N?cs(N):0,Rf,KS),Ra=_l({top:A.top,bottom:A.bottom},{height:window.innerHeight},{preferred:l==="top"?"top":"bottom",desiredHeight:Xl,gap:4,bounds:k});if(N&&(N.style.maxHeight=`${Ra.maxHeight}px`),N&&!o){if(N.scrollHeight>N.clientHeight){let Ge=N.offsetWidth-N.clientWidth-jS(N);Ge>0&&(Z=Af(Z+Ge,Math.ceil(A.width),w,1/0))}N.style.width=`${Z}px`}T({top:Ra.top,bottom:Ra.bottom,left:ps({left:A.left,right:A.right},y,Z,"start",8,k),width:Z,maxHeight:Ra.maxHeight});let ra=Ge=>{D.current?.contains(Ge.target)||u(!1)};return window.addEventListener("scroll",ra,{capture:!0,passive:!0}),()=>window.removeEventListener("scroll",ra,{capture:!0})},[r,l,o,u,s]),(0,j.useEffect)(()=>{if(!r)return;let R=A=>{D.current&&!D.current.contains(A.target)&&s.current&&!s.current.contains(A.target)&&u(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[r,u,s]),Gt(()=>u(!1),r),(0,be.jsxs)(be.Fragment,{children:[!r&&(0,be.jsx)("div",{style:{display:"none"},children:t}),r&&(0,jx.createPortal)((0,be.jsxs)("div",{ref:D,style:{position:"fixed",...L.top!=null?{top:L.top}:{},...L.bottom!=null?{bottom:L.bottom}:{},left:L.left,width:L.width,maxHeight:L.maxHeight,zIndex:9999,...a!=null?{fontSize:a}:{}},className:M("min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg",i?"p-0":"p-1",e),...n,children:[i&&(0,be.jsx)("div",{className:"sticky top-0 z-10 border-b border-border bg-popover p-1",children:(0,be.jsxs)("div",{className:"relative",children:[(0,be.jsx)(ar,{className:"pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),(0,be.jsx)("input",{ref:p,type:"text",autoComplete:"off",value:d,onChange:R=>g(R.target.value),placeholder:f,"aria-label":f,size:Math.max(20,(f?.length??0)+2),className:"w-full rounded-md bg-transparent py-1.5 pl-7 pr-2 text-[0.875em] outline-none placeholder:text-muted-foreground"})]})}),i?(0,be.jsx)("div",{className:"p-1",children:t}):t,i&&!h&&(0,be.jsx)("div",{className:"px-2 py-3 text-center text-[0.875em] text-muted-foreground",children:m})]}),document.body)]})}var QS="pl-[2em] pr-2";function la({className:e,value:t,textValue:a,searchText:l,wrap:o=!1,children:n,...r}){let{value:u,onValueChange:s,labels:i,haystacks:d,bumpLabels:g,searchable:f,search:m}=(0,j.useContext)(ur),b=u===t,v=a??(typeof n=="string"?n:t),D=l?`${v} ${l}`:v,p=i.get(t);i.set(t,v),d.set(t,D),(0,j.useEffect)(()=>{p!==v&&g()},[p,v,g]);let c=f?m.trim().toLowerCase():"";return c&&!D.toLowerCase().includes(c)?null:(0,be.jsxs)("div",{role:"option","aria-selected":b,onClick:()=>s(t),className:M("relative flex cursor-pointer select-none items-center rounded-md py-1.5 text-[0.875em] outline-none",QS,"hover:bg-accent hover:text-accent-foreground",b&&"bg-accent text-accent-foreground",e),...r,children:[(0,be.jsx)("span",{"aria-hidden":"true",className:"absolute left-[0.5em] top-1/2 flex size-[1em] -translate-y-1/2 items-center justify-center",children:b&&(0,be.jsx)(ql,{className:"size-[0.875em]"})}),(0,be.jsx)("span",{className:M("min-w-0 flex-1",o?"whitespace-normal break-words":"truncate"),onMouseEnter:h=>{let L=h.currentTarget;L.title=L.scrollWidth>L.clientWidth?v:""},children:n})]})}var gs=x(H(),1);var JS=x(S(),1),_I=(0,gs.createContext)({value:"",onValueChange:()=>{}});var cr=x(H(),1);var Qx=x(S(),1);var ZI=Se("relative flex min-w-0 select-none overflow-x-auto overscroll-x-contain snap-x [@media(hover:hover)_and_(pointer:fine)]:snap-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",{variants:{variant:{pill:"w-fit max-w-full scroll-px-1 gap-0.5 rounded-xl border border-border/60 bg-muted p-1",underline:"gap-1 border-b border-border"}}}),WI=Se("relative z-10 inline-flex shrink-0 snap-start items-center gap-1.5 whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{pill:"rounded-lg px-3 py-1.5",underline:"-mb-px border-b-2 border-transparent px-4 py-2"},active:{true:"",false:"text-muted-foreground hover:text-foreground"}},compoundVariants:[{variant:"pill",active:!0,className:"text-foreground"},{variant:"underline",active:!0,className:"text-primary"}]});var jI=Se("pointer-events-none absolute motion-ok:transition-[left,width] motion-ok:duration-[220ms] motion-ok:ease-out",{variants:{variant:{pill:"rounded-lg bg-card shadow-sm ring-1 ring-border/60",underline:"bottom-0 h-0.5 bg-primary"}}}),KI=Se("absolute top-1/2 z-20 hidden h-7 w-7 -translate-y-1/2 items-center justify-center rounded-full border border-border bg-card text-muted-foreground shadow-sm transition-colors hover:bg-muted hover:text-foreground [@media(hover:hover)_and_(pointer:fine)]:flex",{variants:{side:{start:"left-0.5",end:"right-0.5"}}});var hs=x(S(),1);function Ef({className:e,checked:t,indeterminate:a,onCheckedChange:l,onChange:o,...n}){return(0,hs.jsx)("button",{type:"button",role:"checkbox","aria-checked":a?"mixed":!!t,onClick:()=>l?.(!t),className:M("peer h-4 w-4 shrink-0 rounded-sm border border-muted-foreground ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",(t||a)&&"border-primary bg-primary text-primary-foreground",e),...n,children:a?(0,hs.jsx)(tr,{className:"h-3 w-3 mx-auto"}):t?(0,hs.jsx)(ql,{className:"h-3 w-3 mx-auto"}):null})}var mr=x(H(),1);var Bf=x(S(),1);var rw=Se("relative isolate text-card-foreground",{variants:{size:{bar:"border-b border-border bg-card",compact:"border-b border-border bg-card",card:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",auto:"border-b border-border bg-card"}}}),eC="[grid-template-areas:'icon_head_ctrl'_'icon_desc_act']",Nf="[grid-template-areas:'icon_head_ctrl'_'desc_desc_desc'_'act_act_act']",uw=Se("grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-3",{variants:{size:{bar:M(eC,"px-3 py-2.5"),compact:M(Nf,"px-3 py-2.5"),card:M(Nf,"@[480px]:[grid-template-areas:'icon_head_ctrl'_'icon_desc_act']","px-4 py-3"),auto:M(Nf,"@[480px]:[grid-template-areas:'icon_head_ctrl'_'icon_desc_act']","px-3 py-2.5")}}}),sw=Se("",{variants:{severity:{error:"",warning:""},part:{edge:"",wash:"",icon:"",chip:"",primary:""}},compoundVariants:[{severity:"error",part:"edge",className:"bg-destructive"},{severity:"warning",part:"edge",className:"bg-warning"},{severity:"error",part:"wash",className:"from-destructive/10"},{severity:"warning",part:"wash",className:"from-warning/10"},{severity:"error",part:"icon",className:"bg-destructive/10 text-destructive"},{severity:"warning",part:"icon",className:"bg-warning/10 text-warning"},{severity:"error",part:"chip",className:"border-destructive/40 bg-destructive/10 text-foreground"},{severity:"warning",part:"chip",className:"border-warning/40 bg-warning/10 text-foreground"},{severity:"error",part:"primary",className:"bg-destructive text-destructive-foreground [@media(hover:hover)_and_(pointer:fine)]:hover:bg-destructive/90"},{severity:"warning",part:"primary",className:"bg-warning text-warning-foreground [@media(hover:hover)_and_(pointer:fine)]:hover:bg-warning/90"}]});var Jx=x(S(),1);var aC=x(H(),1);var xs={brand:{from:"#2BEEB7",to:"#1DC9C9",glyph:"#0F1019"},admin:{from:"#8C8C8C",to:"#4D4D4D",glyph:"#FFFFFF"}};var $x=x(S(),1),lC={brand:{from:"hsl(var(--brand-gradient-start, 163 85% 55%))",to:"hsl(var(--brand-gradient-end, 180 75% 45%))",glyph:xs.brand.glyph},admin:xs.admin},oC=Se("shrink-0",{variants:{variant:{brand:"",admin:""}},defaultVariants:{variant:"brand"}});var bs=x(H(),1),nC=x($e(),1),rC=x(S(),1);var Hf=x(S(),1);var eb=x(S(),1);var Ls=x(H(),1),cC=x($e(),1);var Pf=x(S(),1);var pC=x(H(),1);var tb=x(S(),1);var Of=x(H(),1);var ab=x(S(),1);var zw=Se("absolute inset-0 pointer-events-auto",{variants:{backdrop:{dim:"bg-black/40",clear:""}},defaultVariants:{backdrop:"dim"}});var zf=x(H(),1),gC=x(S(),1),qw=(0,zf.createContext)({reveal:"Reveal",hide:"Hide",amountHidden:"Amount hidden (streamer mode)"});var hC=x(H(),1);var ob=x(S(),1);var xC=x(H(),1);var nb=x(S(),1);var rb=x(H(),1);var ub=x(S(),1);var sb=x(H(),1);var Fo=x(S(),1),ib=(0,sb.forwardRef)(({className:e,prefix:t,suffix:a,onValueChange:l,...o},n)=>(0,Fo.jsxs)("div",{className:"relative flex items-center",children:[t!=null&&(0,Fo.jsx)("span",{className:"absolute left-2.5 flex items-center text-xs text-muted-foreground pointer-events-none select-none",children:t}),(0,Fo.jsx)("input",{ref:n,className:M("flex h-9 w-full rounded-lg border border-border bg-background text-sm tabular-nums transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",t!=null&&typeof t=="string"&&t.length>2?"pl-14":t!=null?"pl-8":"",a!=null&&"pr-8",!t&&!a&&"px-3",t&&!a&&"pr-3",!t&&a&&"pl-3",e),onChange:r=>{l&&o.type==="number"&&l(r.target.valueAsNumber||0)},...o}),a!=null&&(0,Fo.jsx)("span",{className:"absolute right-2.5 text-[10px] text-muted-foreground pointer-events-none select-none",children:a})]}));ib.displayName="PrefixInput";var le=x(H(),1),db=x($e(),1);var K=x(S(),1);function vs(e){let t=0,a=0,l=0,o=1,n=e.replace("#","");(n.length===6||n.length===8)&&(t=parseInt(n.slice(0,2),16)/255,a=parseInt(n.slice(2,4),16)/255,l=parseInt(n.slice(4,6),16)/255,n.length===8&&(o=parseInt(n.slice(6,8),16)/255));let r=Math.max(t,a,l),u=Math.min(t,a,l),s=r-u,i=0;return s!==0&&(r===t?i=((a-l)/s+(a<l?6:0))/6:r===a?i=((l-t)/s+2)/6:i=((t-a)/s+4)/6),{h:i,s:r===0?0:s/r,v:r,a:o}}function ys(e){let{h:t,s:a,v:l,a:o}=e,n=Math.floor(t*6),r=t*6-n,u=l*(1-a),s=l*(1-r*a),i=l*(1-(1-r)*a),d=0,g=0,f=0;switch(n%6){case 0:d=l,g=i,f=u;break;case 1:d=s,g=l,f=u;break;case 2:d=u,g=l,f=i;break;case 3:d=u,g=s,f=l;break;case 4:d=i,g=u,f=l;break;case 5:d=l,g=u,f=s;break}let m=v=>Math.round(v*255).toString(16).padStart(2,"0"),b=`#${m(d)}${m(g)}${m(f)}`;return o<1?`${b}${m(o)}`:b}function fb(e){return ys({h:e,s:1,v:1,a:1})}function bC({hsv:e,onChange:t}){let a=(0,le.useRef)(null),l=(0,le.useRef)(!1),o=(0,le.useCallback)(n=>{let r=a.current?.getBoundingClientRect();if(!r)return;let u=Math.max(0,Math.min(1,(n.clientX-r.left)/r.width)),s=Math.max(0,Math.min(1,1-(n.clientY-r.top)/r.height));t(u,s)},[t]);return(0,le.useEffect)(()=>{let n=u=>{l.current&&o(u)},r=()=>{l.current=!1};return window.addEventListener("mousemove",n),window.addEventListener("mouseup",r),()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",r)}},[o]),(0,K.jsx)("div",{ref:a,className:"relative h-40 w-full rounded-md cursor-crosshair overflow-hidden",style:{background:`linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, ${fb(e.h)})`},onMouseDown:n=>{l.current=!0,o(n)},children:(0,K.jsx)("div",{className:"absolute h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-md pointer-events-none",style:{left:`${e.s*100}%`,top:`${(1-e.v)*100}%`,background:ys(e)}})})}function LC({hue:e,onChange:t}){let a=(0,le.useRef)(null),l=(0,le.useRef)(!1),o=(0,le.useCallback)(n=>{let r=a.current?.getBoundingClientRect();r&&t(Math.max(0,Math.min(1,(n.clientX-r.left)/r.width)))},[t]);return(0,le.useEffect)(()=>{let n=u=>{l.current&&o(u)},r=()=>{l.current=!1};return window.addEventListener("mousemove",n),window.addEventListener("mouseup",r),()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",r)}},[o]),(0,K.jsx)("div",{ref:a,className:"relative h-3 w-full rounded-full cursor-pointer",style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"},onMouseDown:n=>{l.current=!0,o(n)},children:(0,K.jsx)("div",{className:"absolute top-1/2 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-md pointer-events-none",style:{left:`${e*100}%`,background:fb(e)}})})}function vC({alpha:e,color:t,onChange:a}){let l=(0,le.useRef)(null),o=(0,le.useRef)(!1),n=(0,le.useCallback)(r=>{let u=l.current?.getBoundingClientRect();u&&a(Math.max(0,Math.min(1,(r.clientX-u.left)/u.width)))},[a]);return(0,le.useEffect)(()=>{let r=s=>{o.current&&n(s)},u=()=>{o.current=!1};return window.addEventListener("mousemove",r),window.addEventListener("mouseup",u),()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",u)}},[n]),(0,K.jsx)("div",{ref:l,className:"relative h-3 w-full rounded-full cursor-pointer",style:{background:`linear-gradient(to right, transparent, ${t.slice(0,7)}), repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 0 0 / 8px 8px`},onMouseDown:r=>{o.current=!0,n(r)},children:(0,K.jsx)("div",{className:"absolute top-1/2 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-md pointer-events-none",style:{left:`${e*100}%`}})})}var cb="lumio:recent-colors",mb=12;function _o(){try{let e=localStorage.getItem(cb);return e?JSON.parse(e).slice(0,mb):[]}catch{return[]}}function Uf(e){try{let t=_o().filter(a=>a.toLowerCase()!==e.toLowerCase());t.unshift(e),localStorage.setItem(cb,JSON.stringify(t.slice(0,mb)))}catch{}}function Ss({value:e,onChange:t,showAlpha:a=!1,allowTransparent:l=!0,className:o,inline:n=!1,recentLabel:r="Recent",transparentLabel:u="Transparent"}){let[s,i]=(0,le.useState)(!1),[d,g]=(0,le.useState)(()=>vs(e||"#ffffff")),[f,m]=(0,le.useState)(e?.replace("#","").slice(0,6).toUpperCase()||"FFFFFF"),[b,v]=(0,le.useState)([]),D=(0,le.useRef)(null),p=(0,le.useRef)(null),[c,h]=(0,le.useState)({top:0,left:0});(0,le.useEffect)(()=>{let w=vs(e||"#ffffff");g(w),m((e||"#ffffff").replace("#","").slice(0,6).toUpperCase())},[e]);let L=(0,le.useCallback)(()=>{if(!D.current)return;let w=D.current.getBoundingClientRect(),N=p.current?.offsetHeight??0,Z=window.innerHeight-w.bottom,Xl=N>0&&Z<N+6&&w.top>N+6;h({top:Xl?w.top-N-6:w.bottom+6,left:Math.min(w.left,window.innerWidth-252)})},[]);(0,le.useEffect)(()=>{n&&v(_o())},[n]),(0,le.useEffect)(()=>{if(!s)return;v(_o()),L(),requestAnimationFrame(L);let w=()=>{s&&i(!1)},N=Z=>{p.current&&!p.current.contains(Z.target)&&D.current&&!D.current.contains(Z.target)&&i(!1)};return window.addEventListener("scroll",w,!0),document.addEventListener("mousedown",N),()=>{window.removeEventListener("scroll",w,!0),document.removeEventListener("mousedown",N)}},[s,L]);let T=(0,le.useCallback)(w=>{let N={...d,...w};g(N);let Z=ys(N);m(Z.replace("#","").slice(0,6).toUpperCase()),Uf(Z),v(_o()),t(Z)},[d,t]),R=(0,le.useCallback)(()=>{let w=f.replace("#","").replace(/[^0-9a-fA-F]/g,"");if(w.length===6||w.length===8){let N=`#${w}`;g(vs(N)),Uf(N),v(_o()),t(N)}},[f,t]),A=e==="transparent",y=A?"transparent":ys(d),k=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(bC,{hsv:d,onChange:(w,N)=>T({s:w,v:N})}),(0,K.jsx)(LC,{hue:d.h,onChange:w=>T({h:w})}),a&&(0,K.jsx)(vC,{alpha:d.a,color:y,onChange:w=>T({a:w})}),(0,K.jsxs)("div",{className:"flex items-center gap-2",children:[(0,K.jsx)("div",{className:"h-8 w-8 shrink-0 rounded-md border border-border/60",style:A?{background:"repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 0 0 / 8px 8px"}:{background:y}}),(0,K.jsx)("div",{className:"relative flex-1",children:(0,K.jsx)("input",{value:A?"transparent":f,onChange:w=>m(w.target.value.toUpperCase()),onBlur:R,onKeyDown:w=>{w.key==="Enter"&&R()},className:"h-8 w-full rounded-lg border border-border bg-background px-2 font-mono text-xs uppercase text-foreground focus-visible:outline-none focus-visible:border-primary",maxLength:8})}),a&&(0,K.jsxs)("span",{className:"text-xs tabular-nums text-muted-foreground shrink-0",children:[Math.round(d.a*100),"%"]})]}),l&&(0,K.jsxs)("button",{type:"button",onClick:()=>{t("transparent"),i(!1)},className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs transition-colors hover:bg-accent/50",children:[(0,K.jsx)("div",{className:"h-5 w-5 rounded-md border border-border/60",style:{background:"repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 0 0 / 8px 8px"}}),(0,K.jsx)("span",{className:"text-muted-foreground",children:u})]}),b.length>0&&(0,K.jsxs)("div",{children:[(0,K.jsx)("p",{className:"text-[10px] text-muted-foreground mb-1.5",children:r}),(0,K.jsx)("div",{className:"flex flex-wrap gap-1.5",children:b.map((w,N)=>(0,K.jsx)("button",{type:"button",onClick:()=>{let Z=vs(w);g(Z),m(w.replace("#","").slice(0,6).toUpperCase()),Uf(w),v(_o()),t(w)},className:M("h-5 w-5 rounded-md border border-border/60 transition-transform hover:scale-110",w.toLowerCase()===y.toLowerCase()&&"ring-1 ring-primary ring-offset-1 ring-offset-background"),style:{background:w}},`${w}-${N}`))})]})]});return n?(0,K.jsx)("div",{className:M("space-y-3",o),children:k}):(0,K.jsxs)("div",{className:M("relative",o),children:[(0,K.jsxs)("button",{ref:D,type:"button",onClick:()=>i(!s),className:"flex w-full items-center gap-2 rounded-lg border border-border bg-background px-2 py-1.5 text-sm transition-colors hover:border-primary",children:[(0,K.jsx)("div",{className:"h-6 w-6 rounded-md border border-border/60 shrink-0",style:A?{background:"repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 0 0 / 8px 8px"}:{background:y}}),(0,K.jsx)("span",{className:"font-mono text-xs text-foreground uppercase truncate",children:A?u:f})]}),s&&(0,db.createPortal)((0,K.jsx)("div",{ref:p,"data-colorpicker-portal":!0,className:"fixed z-[9999] w-60 rounded-xl border border-border bg-popover p-3 shadow-xl space-y-3",style:{top:c.top,left:c.left},children:k}),document.body)]})}var Go=x(H(),1),yC=x($e(),1);var pb=x(S(),1);var pr=x(H(),1),SC=x($e(),1);var CC=x(S(),1);var gr=x(H(),1);var qf=x(S(),1);var gb=x(S(),1);var hr=x(H(),1);var hb=x(S(),1);var fl=x(H(),1),AC=x($e(),1);var Ff=x(S(),1),C2=(0,fl.createContext)({close:()=>{}});var Cs=x(H(),1),TC=x($e(),1);var _f=x(S(),1);var xb=x(H(),1);var Aa=x(S(),1);function Is({className:e}){return(0,Aa.jsx)("span",{"aria-hidden":"true",className:M("inline-block h-4 w-4 shrink-0 rounded-full border-2 border-current opacity-40","motion-ok:animate-spin motion-ok:border-t-transparent motion-ok:opacity-90",e)})}var bb=(0,xb.forwardRef)(({pending:e=!1,pendingLabel:t,children:a,disabled:l,className:o,...n},r)=>{let u=t??a;return(0,Aa.jsxs)(aa,{ref:r,disabled:l||e,"aria-busy":e||void 0,className:M("disabled:opacity-100",e&&"cursor-progress",!e&&l&&"disabled:opacity-50",o),...n,children:[(0,Aa.jsxs)("span",{className:"grid place-items-center",children:[(0,Aa.jsx)("span",{className:M("col-start-1 row-start-1 inline-flex items-center gap-2 transition-opacity duration-(--motion-duration-fast)",e&&"invisible opacity-0"),children:a}),(0,Aa.jsxs)("span",{"aria-hidden":!e,className:M("col-start-1 row-start-1 inline-flex items-center gap-2 transition-opacity duration-(--motion-duration-fast)",!e&&"invisible opacity-0"),children:[(0,Aa.jsx)(Is,{}),u]})]}),(0,Aa.jsx)("span",{className:"sr-only","aria-live":"polite",children:e&&typeof u=="string"?u:""})]})});bb.displayName="PendingButton";var ws=x(H(),1);var Lb=x(H(),1);var DC=x(S(),1);var Ee=x(H(),1);var Yt=x(S(),1),RC="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",xr=null;function EC(){return typeof window>"u"?Promise.reject(new Error("no window")):window.turnstile?Promise.resolve(window.turnstile):xr||(xr=new Promise((e,t)=>{let a=document.createElement("script");a.src=RC,a.async=!0,a.defer=!0,a.onload=()=>{window.turnstile?e(window.turnstile):t(new Error("turnstile missing"))},a.onerror=()=>{xr=null,t(new Error("turnstile script failed"))},document.head.appendChild(a)}),xr)}var NC=(0,Ee.forwardRef)(function({enabled:t,siteKey:a,action:l,theme:o="auto",language:n,onStateChange:r,notice:u,challengeHint:s,challengeHintPlacement:i="above",align:d="center",className:g},f){let m=(0,Ee.useRef)(null),b=(0,Ee.useRef)(null),v=(0,Ee.useRef)(null),D=(0,Ee.useRef)([]),[p,c]=(0,Ee.useState)(t?"checking":"disabled"),h=(0,Ee.useRef)(p),L=(0,Ee.useRef)(r);(0,Ee.useEffect)(()=>{L.current=r},[r]);let T=(0,Ee.useCallback)(y=>{h.current=y,c(y),L.current?.(y)},[]),R=(0,Ee.useCallback)(y=>{let k=D.current;D.current=[];for(let w of k)w(y)},[]);if((0,Ee.useEffect)(()=>{if(!t||!a){T("disabled");return}let y=!1;return T("checking"),EC().then(k=>{y||!m.current||(b.current=k.render(m.current,{sitekey:a,action:l,theme:o,language:n,appearance:"interaction-only",size:"flexible","refresh-expired":"auto",callback:w=>{v.current=w,T("ready"),R(w)},"error-callback":()=>(v.current=null,T("error"),R(null),!0),"expired-callback":()=>{v.current=null,T("checking")},"timeout-callback":()=>{v.current=null,T("error"),R(null)},"before-interactive-callback":()=>{T("interactive"),R(null)},"after-interactive-callback":()=>{v.current||T("checking")},"unsupported-callback":()=>{T("unsupported"),R(null)}}))}).catch(()=>{y||(T("error"),R(null))}),()=>{if(y=!0,b.current&&window.turnstile)try{window.turnstile.remove(b.current)}catch{}b.current=null,v.current=null}},[t,a,l,o,n,T,R]),(0,Ee.useImperativeHandle)(f,()=>({getToken:()=>t&&a?v.current:"",waitForToken:(y=1e4)=>!t||!a?Promise.resolve(""):v.current?Promise.resolve(v.current):p==="interactive"||p==="error"||p==="unsupported"?Promise.resolve(null):new Promise(k=>{let w=setTimeout(()=>{D.current=D.current.filter(Z=>Z!==N),k(null)},y),N=Z=>{clearTimeout(w),k(Z)};D.current.push(N)}),reset:()=>{v.current=null,b.current&&window.turnstile&&(T("checking"),window.turnstile.reset(b.current))},getState:()=>h.current}),[t,a,p,T]),!t||!a)return null;let A=p==="interactive";return(0,Yt.jsxs)("div",{className:M("space-y-2",g),children:[(0,Yt.jsx)("div",{className:M("grid transition-[grid-template-rows,opacity] duration-(--motion-duration-base) ease-out",A?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),"aria-hidden":!A,children:(0,Yt.jsxs)("div",{className:"min-h-0 overflow-hidden",children:[s&&i==="above"&&(0,Yt.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:s}),(0,Yt.jsx)("div",{ref:m,className:M("flex w-full [&>*]:w-full",d==="start"?"justify-start":"justify-center")}),s&&i==="below"&&(0,Yt.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:s})]})}),u&&!A&&(0,Yt.jsxs)("p",{className:M("flex items-center gap-1.5 text-[11px] text-muted-foreground",d==="start"?"justify-start":"justify-center"),children:[(0,Yt.jsx)(lr,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),(0,Yt.jsx)("span",{children:u})]})]})});var vb=x(S(),1);var Vo=x(H(),1);var br="shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_1px_2px_rgb(0_0_0/0.18)]",yb={twitch:`border-transparent bg-[#9146FF] text-white hover:bg-[#7F2FFF] ${br}`,kick:`border-transparent bg-[#53FC18] text-[#0B0E0F] hover:bg-[#48E312] ${br}`,discord:`border-transparent bg-[#5865F2] text-white hover:bg-[#4752C4] ${br}`,youtube:`border-transparent bg-[#E6002E] text-white hover:bg-[#CC0029] ${br}`,spotify:`border-transparent bg-[#1DB954] text-[#0B0E0F] hover:bg-[#1AA34A] ${br}`,google:"border-[#747775] bg-[#FFFFFF] text-[#1F1F1F] hover:bg-[#F2F2F2] shadow-[0_1px_2px_rgb(0_0_0/0.12)]"},BC="border-input bg-background text-foreground hover:bg-accent";function Gf(e){return yb[e]??BC}var Sb={lg:"h-11 px-3.5",md:"h-10 px-4",sm:"h-9 px-3"},Cb=["relative inline-flex shrink-0 items-center justify-center rounded-xl border","text-sm font-semibold leading-5 whitespace-nowrap","transition-[background-color,transform,opacity] duration-(--motion-duration-fast)","motion-ok:active:scale-[0.97] motion-ok:active:duration-[180ms]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50"].join(" ");var Ye=x(S(),1),HC={lg:18,md:16,sm:16},Ib=(0,Vo.forwardRef)(({platform:e,size:t="md",pinLogo:a,pending:l=!1,pendingLabel:o,badge:n,trailing:r,asChild:u=!1,className:s,children:i,disabled:d,...g},f)=>{let m=a??t==="lg",b=u&&(0,Vo.isValidElement)(i)?i:null,v=b?b.props.children:i,D=o??v,p=(0,Ye.jsx)(ss,{platform:e,size:HC[t],color:"currentColor",className:"shrink-0"}),c=M(Cb,Sb[t],Gf(e),m&&"px-10",l&&"cursor-progress disabled:cursor-progress disabled:opacity-100",s),h=(0,Ye.jsxs)(Ye.Fragment,{children:[m&&(0,Ye.jsx)("span",{"aria-hidden":"true",className:M("absolute left-3.5 top-1/2 flex -translate-y-1/2 transition-opacity duration-(--motion-duration-fast)",l&&"opacity-0"),children:p}),(0,Ye.jsxs)("span",{className:"grid min-w-0 place-items-center",children:[(0,Ye.jsxs)("span",{className:M("col-start-1 row-start-1 inline-flex min-w-0 items-center gap-2 transition-opacity duration-(--motion-duration-fast)",l&&"invisible opacity-0"),children:[!m&&p,(0,Ye.jsx)("span",{className:"truncate",children:v}),r]}),(0,Ye.jsxs)("span",{"aria-hidden":!l,className:M("col-start-1 row-start-1 inline-flex min-w-0 items-center gap-2 transition-opacity duration-(--motion-duration-fast)",!l&&"invisible opacity-0"),children:[(0,Ye.jsx)(Is,{}),(0,Ye.jsx)("span",{className:"truncate",children:D})]})]}),n&&!l&&(0,Ye.jsx)("span",{className:"pointer-events-none absolute -right-1.5 -top-2.5 z-10",children:n}),(0,Ye.jsx)("span",{className:"sr-only","aria-live":"polite",children:l&&typeof D=="string"?D:""})]});return b?(0,Vo.cloneElement)(b,{...g,ref:f,className:M(c,b.props.className),"aria-busy":l||void 0,children:h}):(0,Ye.jsx)("button",{ref:f,type:"button",disabled:d||l,"aria-busy":l||void 0,className:c,...g,children:h})});Ib.displayName="PlatformButton";var UC=x(H(),1);var wb=x(S(),1);var Xo=x(H(),1),kb=document.querySelector('meta[name="lumio-dev-token"]')?.getAttribute("content")??"",Mb={"x-lumio-dev-token":kb};async function Vf(e){let t=await fetch(e,{headers:Mb}),a=await t.json();if(!t.ok)throw new Error(a.message??`${t.status} ${t.statusText}`);return a}async function Gl(e){try{return await(await fetch("/__lumio/events",{method:"POST",headers:{...Mb,"Content-Type":"application/json","x-lumio-source":"panel"},body:JSON.stringify(e)})).json()}catch(t){let a=t instanceof Error?t.message:String(t);return{ok:!1,output:[`error: ${a}`],error:a}}}function Ab(){let[e,t]=(0,Xo.useState)(null),[a,l]=(0,Xo.useState)(null),[o,n]=(0,Xo.useState)(!1);return(0,Xo.useEffect)(()=>{let r=!1;Vf("/__lumio/meta").then(s=>!r&&l(s),()=>{});let u=new EventSource(`/__lumio/stream?token=${encodeURIComponent(kb)}`);return u.addEventListener("state",s=>{t(JSON.parse(s.data)),n(!0)}),u.addEventListener("error",()=>n(!1)),()=>{r=!0,u.close()}},[]),{state:e,meta:a,connected:o}}function Tb(e){let t={};for(let a of e.trim().split(/\s+/).filter(Boolean)){let l=a.indexOf("=");if(l<=0)throw new Error(`Expected key=value, got "${a}"`);let o=a.slice(l+1);t[a.slice(0,l)]=o==="true"?!0:o==="false"?!1:/^-?\d+(\.\d+)?$/.test(o)?Number(o):o}return t}var cl=x(H(),1),Rb=x($e(),1);var oa=x(H(),1);var C=x(S(),1),ks=oa.default.createContext({selectPlaceholder:"Select...",channelPlaceholder:"Channel...",selectFont:"Select font..."}),Xf=ks.Provider;function Le(e,t,a){let l=`__handler_${t}`,o=e[l];if(o)return(...n)=>a(o,n)}function qC({node:e,onCallback:t}){let a=e.props.style;return(0,C.jsx)("div",{style:a,"data-lumio-id":e._id,children:(0,C.jsx)(Zo,{nodes:e.children,onCallback:t})})}function FC({node:e,onCallback:t}){let a=e.props.gap,l=e.props.style,o={display:"flex",flexDirection:"column",...a!==void 0?{gap:`${a}px`}:{},...l};return(0,C.jsx)("div",{style:o,"data-lumio-id":e._id,children:(0,C.jsx)(Zo,{nodes:e.children,onCallback:t})})}function _C({node:e,onCallback:t}){let a=e.props.gap,l=e.props.style,o={display:"flex",flexDirection:"row",...a!==void 0?{gap:`${a}px`}:{},...l};return(0,C.jsx)("div",{style:o,"data-lumio-id":e._id,children:(0,C.jsx)(Zo,{nodes:e.children,onCallback:t})})}function GC({node:e,onCallback:t}){let a=e.props.title;return(0,C.jsxs)("div",{style:{padding:"8px"},"data-lumio-id":e._id,children:[(0,C.jsx)("h3",{children:a}),(0,C.jsx)(Zo,{nodes:e.children,onCallback:t})]})}function VC({node:e,onCallback:t}){let a=e.props.emptyText;return e.children.length===0?(0,C.jsx)("div",{"data-lumio-id":e._id,children:a??""}):(0,C.jsx)("div",{"data-lumio-id":e._id,children:e.children.map(l=>(0,C.jsx)("div",{children:(0,C.jsx)(Yo,{node:l,onCallback:t})},l._id))})}function XC({node:e}){let t=e.props.content,a=e.props.variant??"default";return a==="heading"?(0,C.jsx)("h2",{"data-lumio-id":e._id,children:t}):a==="muted"?(0,C.jsx)("span",{style:{opacity:.6},"data-lumio-id":e._id,children:t}):(0,C.jsx)("span",{"data-lumio-id":e._id,children:t})}function YC({node:e}){let t=e.props.src,a=e.props.alt,l=e.props.objectFit;return(0,C.jsx)("img",{src:t,alt:a,style:{maxWidth:"100%",...l?{objectFit:l}:{}},"data-lumio-id":e._id})}function ZC({node:e,onCallback:t}){let a=e.props.label,l=e.props.variant??"default",o=e.props.disabled??!1,r=e.props["__handler_onClick"];return(0,C.jsx)("button",{"data-variant":l,disabled:o,onClick:o?void 0:r?()=>t(r,[]):void 0,"data-lumio-id":e._id,children:a})}function WC({node:e,onCallback:t}){let a=e.props.label,l=e.props.checked,o=Le(e.props,"onChange",t);return(0,C.jsxs)("label",{"data-lumio-id":e._id,children:[(0,C.jsx)("input",{type:"checkbox",checked:l,onChange:n=>o?.(n.target.checked)}),a]})}function jC({node:e,onCallback:t}){let a=e.props.label,l=e.props.value,o=e.props.placeholder,n=Le(e.props,"onChange",t);return(0,C.jsxs)("label",{"data-lumio-id":e._id,children:[a,(0,C.jsx)("input",{type:"text",value:l,placeholder:o,onChange:r=>n?.(r.target.value)})]})}function KC({node:e,onCallback:t}){let a=e.props.label,l=e.props.value,o=e.props.placeholder,n=e.props.rows??3,r=Le(e.props,"onChange",t);return(0,C.jsxs)("label",{"data-lumio-id":e._id,children:[a,(0,C.jsx)("textarea",{value:l,placeholder:o,rows:n,onChange:u=>r?.(u.target.value)})]})}function QC({node:e,onCallback:t}){let a=e.props.label,l=e.props.value,o=e.props.min,n=e.props.max,r=e.props.step,u=Le(e.props,"onChange",t);return(0,C.jsxs)("label",{"data-lumio-id":e._id,children:[a,(0,C.jsx)("input",{type:"number",value:l,min:o,max:n,step:r,onChange:s=>u?.(s.target.valueAsNumber)})]})}function JC({node:e,onCallback:t}){let a=e.props.label,l=e.props.value,o=e.props.options,n=Le(e.props,"onChange",t);return(0,C.jsxs)("label",{"data-lumio-id":e._id,children:[a,(0,C.jsx)("select",{value:l,onChange:r=>n?.(r.target.value),children:(o??[]).map(r=>(0,C.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function $C({node:e,onCallback:t}){let a=e.props.label,l=e.props.value,o=e.props.min,n=e.props.max,r=e.props.step??1,u=Le(e.props,"onChange",t);return(0,C.jsxs)("label",{"data-lumio-id":e._id,children:[`${a}: ${l}`,(0,C.jsx)("input",{type:"range",value:l,min:o,max:n,step:r,onChange:s=>u?.(s.target.valueAsNumber)})]})}function e0({node:e,onCallback:t}){let a=Le(e.props,"onChange",t),l=e.props.type??"text";return(0,C.jsxs)("div",{className:"space-y-1.5 mb-3","data-lumio-id":e._id,children:[e.props.label!=null?(0,C.jsx)(Ft,{className:"text-xs text-muted-foreground",children:String(e.props.label)}):null,(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[(0,C.jsx)(Ol,{id:e.props.id,type:l,value:String(e.props.value??""),placeholder:e.props.placeholder,min:e.props.min,max:e.props.max,step:e.props.step,onChange:o=>{a?.(l==="number"?o.target.valueAsNumber:o.target.value)}}),e.props.unit?(0,C.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:String(e.props.unit)}):null]})]})}function t0({node:e,onCallback:t}){let a=Le(e.props,"onChange",t),l=e.props.rows??3;return(0,C.jsxs)("div",{className:"space-y-1.5 mb-3","data-lumio-id":e._id,children:[e.props.label!=null?(0,C.jsx)(Ft,{className:"text-xs text-muted-foreground",children:String(e.props.label)}):null,(0,C.jsx)("textarea",{id:e.props.id,value:String(e.props.value??""),placeholder:e.props.placeholder,rows:l,onChange:o=>a?.(o.target.value),className:"flex w-full rounded-lg border border-border bg-background px-3 py-2 text-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 resize-y"})]})}function a0({node:e,onCallback:t}){let a=oa.default.useContext(ks),l=Le(e.props,"onChange",t),o=e.props.options??[],n=String(e.props.value??"");return(0,C.jsxs)("div",{className:"space-y-1.5 mb-3","data-lumio-id":e._id,children:[e.props.label!=null?(0,C.jsx)(Ft,{className:"text-xs text-muted-foreground",children:String(e.props.label)}):null,(0,C.jsxs)(sr,{value:n,onValueChange:r=>l?.(r),children:[(0,C.jsx)(ir,{id:e.props.id,children:(0,C.jsx)(dr,{placeholder:a.selectPlaceholder})}),(0,C.jsx)(fr,{children:o.map(r=>(0,C.jsx)(la,{value:r.value,children:r.label},r.value))})]})]})}function l0({node:e,onCallback:t}){let a=Le(e.props,"onChange",t),l=e.props.checked??!1;return(0,C.jsxs)("div",{className:"flex items-center gap-2","data-lumio-id":e._id,children:[(0,C.jsx)(Ef,{id:e.props.id,checked:l,onCheckedChange:o=>a?.(o)}),(0,C.jsx)(Ft,{htmlFor:e.props.id,className:"text-sm leading-none cursor-pointer",children:String(e.props.label??"")})]})}function o0({node:e,onCallback:t}){let a=Le(e.props,"onChange",t),l=e.props.value??0,o=e.props.min??0,n=e.props.max??100,r=e.props.step??1;return(0,C.jsxs)("div",{className:"space-y-1.5 mb-3","data-lumio-id":e._id,children:[e.props.label!=null?(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)(Ft,{className:"text-xs text-muted-foreground",children:String(e.props.label)}),(0,C.jsxs)("span",{className:"text-xs text-muted-foreground tabular-nums",children:[l,e.props.unit?String(e.props.unit):""]})]}):null,(0,C.jsx)("input",{id:e.props.id,type:"range",value:l,min:o,max:n,step:r,onChange:u=>a?.(u.target.valueAsNumber),className:"w-full accent-primary"})]})}function n0({node:e,onCallback:t}){let a=Le(e.props,"onChange",t),l=String(e.props.value??"#000000");return(0,C.jsxs)("div",{className:"space-y-1.5","data-lumio-id":e._id,children:[e.props.label!=null?(0,C.jsx)(Ft,{className:"text-xs text-muted-foreground",children:String(e.props.label)}):null,(0,C.jsx)(Ss,{value:l,onChange:o=>a?.(o),showAlpha:!!e.props.showAlpha})]})}function r0({node:e,onCallback:t}){let a=e.props.collapsed??!1,[l,o]=(0,oa.useState)(a);return(0,C.jsxs)("div",{className:"space-y-2","data-lumio-id":e._id,children:[(0,C.jsxs)("button",{type:"button",onClick:()=>o(!l),className:"flex w-full items-center justify-between text-sm font-medium",children:[String(e.props.label??""),(0,C.jsx)(dl,{className:M("h-4 w-4 text-muted-foreground transition-transform",l&&"-rotate-90")})]}),!l&&(0,C.jsx)("div",{className:"space-y-3 pl-1",children:(0,C.jsx)(Zo,{nodes:e.children,onCallback:t})})]})}function u0({node:e}){let t=e.props.required??!1;return(0,C.jsxs)(Ft,{htmlFor:e.props.htmlFor,className:"text-sm font-medium","data-lumio-id":e._id,children:[String(e.props.text??""),t&&(0,C.jsx)("span",{className:"ml-0.5 text-destructive",children:"*"})]})}function s0({node:e}){return(0,C.jsx)("hr",{className:"my-1 border-border/60","data-lumio-id":e._id})}function i0({node:e}){return(0,C.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted/50 px-3 py-2 text-xs text-muted-foreground","data-lumio-id":e._id,children:[(0,C.jsx)(er,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),(0,C.jsx)("span",{children:String(e.props.content??"")})]})}function d0({node:e,onCallback:t}){let a=Le(e.props,"onFontWeightChange",t),l=Le(e.props,"onItalicChange",t),o=Le(e.props,"onFontSizeChange",t),n=Le(e.props,"onFontColorChange",t),r=String(e.props.fontWeight??"400"),u=!!(e.props.italic??!1);return(0,C.jsxs)("div",{className:"flex items-center gap-1.5","data-lumio-id":e._id,children:[(0,C.jsx)("button",{type:"button",onClick:()=>a?.(r==="700"?"400":"700"),className:M("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border text-sm font-bold transition-colors",r==="700"||r==="800"?"bg-primary text-primary-foreground border-primary":"bg-background text-foreground hover:bg-accent"),children:"B"}),(0,C.jsx)("button",{type:"button",onClick:()=>l?.(!u),className:M("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border text-sm italic transition-colors",u?"bg-primary text-primary-foreground border-primary":"bg-background text-foreground hover:bg-accent"),children:"I"}),(0,C.jsx)(Ol,{type:"number",value:Number(e.props.fontSize??16),min:8,max:200,onChange:s=>o?.(s.target.valueAsNumber||16),className:"h-9 w-16 shrink-0 text-sm tabular-nums"}),(0,C.jsx)("span",{className:"text-xs text-muted-foreground shrink-0",children:"px"}),(0,C.jsx)("div",{className:"shrink-0",children:(0,C.jsx)(Ss,{value:String(e.props.fontColor??"#ffffff"),onChange:s=>n?.(s)})})]})}function f0({node:e,onCallback:t}){let a=oa.default.useContext(ks),l=Le(e.props,"onPlatformChange",t),o=Le(e.props,"onChannelChange",t),n=Le(e.props,"onColorChange",t),r=Le(e.props,"onRemove",t),u=String(e.props.platform??"twitch"),s=String(e.props.channel??""),i=String(e.props.color??"#000000"),d=e.props.platforms??[{value:"twitch",label:"Twitch"},{value:"youtube",label:"YouTube"},{value:"kick",label:"Kick"}];return(0,C.jsxs)("div",{className:"flex items-center gap-1.5 rounded-lg bg-muted/30 p-2","data-lumio-id":e._id,children:[(0,C.jsxs)(sr,{value:u,onValueChange:g=>l?.(g),children:[(0,C.jsx)(ir,{className:"h-8 w-24 shrink-0 text-xs",children:(0,C.jsx)(dr,{})}),(0,C.jsx)(fr,{children:d.map(g=>(0,C.jsx)(la,{value:g.value,children:g.label},g.value))})]}),(0,C.jsx)(Ol,{value:s,onChange:g=>o?.(g.target.value),placeholder:a.channelPlaceholder,"aria-label":a.channelPlaceholder,className:"h-8 flex-1 text-xs"}),(0,C.jsx)("input",{type:"color",value:i,onChange:g=>n?.(g.target.value),className:"h-8 w-8 shrink-0 cursor-pointer rounded border border-border bg-background p-0.5"}),(0,C.jsx)("button",{type:"button",onClick:()=>r?.(),className:"shrink-0 p-1 text-muted-foreground hover:text-destructive",children:(0,C.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("path",{d:"M3 6h18"}),(0,C.jsx)("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),(0,C.jsx)("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})]})})]})}function c0({node:e,onCallback:t}){let a=oa.default.useContext(ks),l=String(e.props.value??""),o=String(e.props.weight??"400"),n=e.props.__handler_onChange,r=e.props.__handler_onWeightChange,u=Le(e.props,"onWeightChange",t);return(0,C.jsxs)("div",{className:"space-y-1.5","data-lumio-id":e._id,children:[e.props.label!=null?(0,C.jsx)(Ft,{className:"text-xs text-muted-foreground",children:String(e.props.label)}):null,(0,C.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,C.jsxs)("button",{type:"button",onClick:()=>{n&&t("__font_picker_open",[n,l,r])},className:"flex flex-1 items-center justify-between rounded-lg border border-border bg-background px-3 py-2 text-sm transition-colors hover:border-primary",children:[(0,C.jsx)("span",{style:l?{fontFamily:`"${l}", sans-serif`}:void 0,className:M(!l&&"text-muted-foreground"),children:l||a.selectFont}),(0,C.jsx)(dl,{className:"h-4 w-4 text-muted-foreground"})]}),(0,C.jsxs)(sr,{value:o,onValueChange:s=>u?.(s),children:[(0,C.jsx)(ir,{className:"h-9 w-24 shrink-0 text-xs",children:(0,C.jsx)(dr,{})}),(0,C.jsxs)(fr,{children:[(0,C.jsx)(la,{value:"300",children:"Light"}),(0,C.jsx)(la,{value:"400",children:"Regular"}),(0,C.jsx)(la,{value:"500",children:"Medium"}),(0,C.jsx)(la,{value:"600",children:"Semi Bold"}),(0,C.jsx)(la,{value:"700",children:"Bold"}),(0,C.jsx)(la,{value:"800",children:"Extra Bold"})]})]})]})]})}function m0({node:e,onCallback:t}){let a=Le(e.props,"onClick",t),l=e.props.variant??"default",o=e.props.fullWidth!==!1,n=e.props.disabled??!1;return(0,C.jsx)("button",{type:"button",onClick:n?void 0:()=>a?.(),disabled:n,className:M("rounded-lg px-4 py-2.5 text-sm font-medium transition-colors",o&&"w-full",l==="primary"&&"bg-primary text-primary-foreground hover:bg-primary/90",l==="destructive"&&"bg-destructive text-destructive-foreground hover:bg-destructive/90",l==="default"&&"border border-border bg-background text-foreground hover:bg-accent",n&&"opacity-50 cursor-not-allowed"),"data-lumio-id":e._id,children:String(e.props.label??"")})}var p0={Box:qC,VStack:FC,HStack:_C,CompactView:GC,List:VC,Text:XC,Image:YC,Button:ZC,Toggle:WC,TextField:jC,TextArea:KC,NumberField:QC,Dropdown:JC,Slider:$C,EditorInput:e0,EditorTextarea:t0,EditorSelect:a0,EditorCheckbox:l0,EditorSlider:o0,EditorColorPicker:n0,EditorGroup:r0,EditorLabel:u0,EditorDivider:s0,EditorInfo:i0,EditorFontRow:d0,EditorButton:m0,EditorFontPicker:c0,EditorChannelRow:f0},g0=new Set(["div","span","p","h1","h2","h3","h4","h5","h6","ul","ol","li","dl","dt","dd","label","input","select","option","textarea","button","form","fieldset","legend","table","thead","tbody","tfoot","tr","th","td","a","img","br","hr","strong","em","code","pre","section","article","nav","header","footer","main","aside","details","summary","figure","figcaption","svg","path","circle","rect","line","polyline","polygon","g"]),h0={onChange:"onChange",onClick:"onClick",onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onSubmit:"onSubmit"},x0=new Set(["option","title","textarea"]);function Db(e){return e.props.content?String(e.props.content):e.children.map(Db).join("")}function b0({node:e,onCallback:t}){let{type:a,props:l,children:o}=e,n={"data-lumio-id":e._id};for(let[u,s]of Object.entries(l)){if(u.startsWith("__handler_")){let i=u.slice(10),d=s;h0[i]&&(n[i]=g=>{let f=g.target,m={target:{value:f.value,checked:f.checked,valueAsNumber:f.valueAsNumber,type:f.type}};t(d,[m])});continue}u!=="content"&&(n[u]=s)}if(!(o.length>0||l.content))return oa.default.createElement(a,n);if(x0.has(a)){let u=l.content?String(l.content):o.map(Db).join("");return oa.default.createElement(a,n,u)}return oa.default.createElement(a,n,l.content?String(l.content):null,...o.map(u=>(0,C.jsx)(Yo,{node:u,onCallback:t},u._id)))}function Yo({node:e,onCallback:t}){let a=p0[e.type];return a?e.type.startsWith("Editor")?(0,C.jsx)("div",{className:"mb-3",children:(0,C.jsx)(a,{node:e,onCallback:t})}):(0,C.jsx)(a,{node:e,onCallback:t}):g0.has(e.type)?(0,C.jsx)(b0,{node:e,onCallback:t}):null}function Zo({nodes:e,onCallback:t}){return(0,C.jsx)(C.Fragment,{children:e.map(a=>(0,C.jsx)(Yo,{node:a,onCallback:t},a._id))})}var Lr=x(S(),1);function Yf({tree:e,onCallback:t}){return(0,Lr.jsx)(Lr.Fragment,{children:e.map(a=>(0,Lr.jsx)(Yo,{node:a,onCallback:t},a._id))})}var ut=x(S(),1);function L0(e,t){let a;try{a=JSON.parse(JSON.stringify(t))}catch{a=[]}Gl({kind:"callback",handlerId:e,args:a})}function v0({state:e}){let t=(0,cl.useRef)(null),[a,l]=(0,cl.useState)(null);return(0,cl.useEffect)(()=>{let o=t.current;if(!o||o.shadowRoot)return;let n=o.attachShadow({mode:"open"}),r=document.createElement("link");r.rel="stylesheet",r.href="/sandbox/sandbox.css";let u=document.createElement("link");u.rel="stylesheet",u.dataset.lumioExtensionCss="";let s=document.createElement("div");s.style.cssText="width:100%;height:100%;",n.append(r,u,s),l(s)},[]),(0,cl.useEffect)(()=>{let o=t.current?.shadowRoot?.querySelector("link[data-lumio-extension-css]");o&&e.cssVersion>0&&(o.href=`/bundles/styles.css?v=${e.cssVersion}`)},[e.cssVersion,a]),(0,cl.useEffect)(()=>{a&&(a.className=e.themeMode==="dark"?"dark text-foreground":"text-foreground")},[a,e.themeMode]),(0,ut.jsx)("div",{ref:t,className:"h-full w-full",children:a&&(0,Rb.createPortal)((0,ut.jsx)(Xf,{value:{selectPlaceholder:"Select...",channelPlaceholder:"Channel...",selectFont:"Select font..."},children:(0,ut.jsx)(Yf,{tree:e.tree,onCallback:L0})}),a)})}function Eb({state:e}){let t=e.view;if(!t)return(0,ut.jsx)("div",{className:"flex h-full items-center justify-center p-6 text-sm text-muted-foreground",children:"This project has no editor or layer surface. Use the chat and the REPL to drive its bot module."});let a=e.tree.length===0,l=e.mountError??(e.mounted&&a?"The extension rendered nothing yet.":null);return(0,ut.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-2 p-3",children:[(0,ut.jsx)("div",{className:t==="layer"?"lumio-checkerboard relative aspect-video w-full overflow-hidden rounded-md border border-border":"relative min-h-64 w-full flex-1 overflow-auto rounded-md border border-border bg-card p-4","aria-label":t==="layer"?"Layer preview (transparent areas show as a checkerboard)":"Editor preview",role:"region",children:!e.mounted&&!e.mountError?(0,ut.jsxs)(rr,{label:"Loading the extension",className:"flex flex-col gap-3 p-4",children:[(0,ut.jsx)(Pt,{shape:"line",className:"w-1/3"}),(0,ut.jsx)(Pt,{className:"h-9 w-full"}),(0,ut.jsx)(Pt,{className:"h-9 w-2/3"})]}):(0,ut.jsx)(v0,{state:e})}),l&&(0,ut.jsx)("p",{role:e.mountError?"alert":"status",className:e.mountError?"text-sm text-destructive":"text-sm text-muted-foreground",children:l})]})}var Zt=x(H(),1);var na=x(H(),1);var Ne=x(S(),1),Ze="h-9 w-full rounded-md border border-border bg-background px-2.5 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",Ta=Ze,y0="w-full rounded-md border border-border bg-background p-2 font-mono text-xs text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";function Ce({label:e,children:t,hint:a}){let l=(0,na.useId)();return(0,Ne.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,Ne.jsx)("label",{htmlFor:l,className:"text-xs font-medium text-muted-foreground",children:e}),t(l),a&&(0,Ne.jsx)("p",{className:"text-xs text-muted-foreground",children:a})]})}function st({children:e}){return(0,Ne.jsx)("h3",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:e})}function it(){let[e,t]=(0,na.useState)(!1),[a,l]=(0,na.useState)(null);return{run:(0,na.useCallback)(async n=>{t(!0);try{let r=await Gl(n);return l(r),r}finally{t(!1)}},[]),busy:e,result:a,clear:()=>l(null)}}function dt({result:e}){return e?e.ok?(0,Ne.jsx)("p",{role:"status",className:"rounded-md bg-muted px-2 py-1.5 font-mono text-xs text-muted-foreground break-all",children:e.output.join(" \xB7 ")||"sent"}):(0,Ne.jsx)("p",{role:"alert",className:"rounded-md border border-destructive/40 bg-destructive/10 px-2 py-1.5 text-xs text-destructive",children:e.error??e.output.join(`
|
|
10
|
+
`)}):null}function ee({children:e,onClick:t,busy:a,variant:l="default",size:o="sm",className:n,label:r}){return(0,Ne.jsx)(aa,{type:"button",variant:l,size:o,disabled:a,"aria-busy":a,"aria-label":r,onClick:t,className:n,children:e})}function Vl({label:e,value:t,onChange:a,rows:l=8}){let o=null;try{t.trim()!==""&&JSON.parse(t)}catch(n){o=n.message}return(0,Ne.jsx)(Ce,{label:e,children:n=>(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("textarea",{id:n,value:t,rows:l,spellCheck:!1,"aria-invalid":o!==null,onChange:r=>a(r.target.value),className:M(y0,o&&"border-destructive")}),o&&(0,Ne.jsx)("p",{className:"text-xs text-destructive",children:o})]})})}function Nb({tabs:e,value:t,onChange:a,label:l,className:o}){let n=(0,na.useId)(),r=(0,na.useRef)([]),u=Math.max(0,e.findIndex(d=>d.id===t)),s=d=>{let g=e.length-1,f=d.key==="ArrowRight"?u===g?0:u+1:d.key==="ArrowLeft"?u===0?g:u-1:d.key==="Home"?0:d.key==="End"?g:null;f!==null&&(d.preventDefault(),a(e[f].id),r.current[f]?.focus())},i=e[u];return(0,Ne.jsxs)("div",{className:M("flex min-h-0 flex-col",o),children:[(0,Ne.jsx)("div",{role:"tablist","aria-label":l,className:"flex flex-wrap gap-1 border-b border-border px-2 pt-2",onKeyDown:s,children:e.map((d,g)=>(0,Ne.jsx)("button",{ref:f=>{r.current[g]=f},type:"button",role:"tab",id:`${n}-tab-${d.id}`,"aria-selected":g===u,"aria-controls":`${n}-panel-${d.id}`,tabIndex:g===u?0:-1,onClick:()=>a(d.id),className:M("-mb-px rounded-t-md border-b-2 px-2 py-1.5 text-xs font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",g===u?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"),children:d.label},d.id))}),i&&(0,Ne.jsx)("div",{role:"tabpanel",id:`${n}-panel-${i.id}`,"aria-labelledby":`${n}-tab-${i.id}`,tabIndex:0,className:"min-h-0 flex-1 overflow-y-auto p-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",children:i.content})]})}function Da(e){return JSON.stringify(e,null,2)??"null"}var Ie=x(S(),1);function Bb({state:e,meta:t,autoFocus:a}){let[l,o]=(0,Zt.useState)(""),[n,r]=(0,Zt.useState)(e.defaults.user),[u,s]=(0,Zt.useState)(e.defaults.role),[i,d]=(0,Zt.useState)(e.defaults.platform),{run:g,busy:f,result:m}=it(),b=(0,Zt.useRef)(null),v=(0,Zt.useRef)(null);(0,Zt.useEffect)(()=>{a&&b.current?.focus()},[a]);let D=e.log.filter(c=>c.kind==="chat"||c.kind==="bot").slice(-80);(0,Zt.useEffect)(()=>{v.current?.lastElementChild?.scrollIntoView({block:"nearest"})},[D.length]);let p=c=>{c.preventDefault(),l.trim()&&g({kind:"chat",text:l,user:{name:n.trim()||e.defaults.user,role:u},platform:i}).then(h=>{h.ok&&o("")})};return(0,Ie.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[(0,Ie.jsxs)("ol",{ref:v,"aria-label":"Chat","aria-live":"polite",className:"min-h-40 flex-1 space-y-1 overflow-y-auto rounded-md border border-border bg-card p-2 text-sm",children:[D.length===0&&(0,Ie.jsx)("li",{className:"text-muted-foreground",children:"No messages yet. Try !help or a command your bot module declares."}),D.map(c=>(0,Ie.jsx)("li",{className:c.kind==="bot"?"text-success":"whitespace-pre-wrap text-foreground",children:c.text},c.id))]}),(0,Ie.jsxs)("form",{onSubmit:p,className:"flex flex-col gap-2",children:[(0,Ie.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,Ie.jsx)(Ce,{label:"User",children:c=>(0,Ie.jsx)("input",{id:c,className:Ze,value:n,onChange:h=>r(h.target.value)})}),(0,Ie.jsx)(Ce,{label:"Role",children:c=>(0,Ie.jsx)("select",{id:c,className:Ta,value:u,onChange:h=>s(h.target.value),children:t.roles.map(h=>(0,Ie.jsx)("option",{value:h,children:h},h))})}),(0,Ie.jsx)(Ce,{label:"Platform",children:c=>(0,Ie.jsx)("select",{id:c,className:Ta,value:i,onChange:h=>d(h.target.value),children:t.platforms.map(h=>(0,Ie.jsx)("option",{value:h,children:h},h))})})]}),(0,Ie.jsxs)("div",{className:"flex gap-2",children:[(0,Ie.jsx)("label",{htmlFor:"lumio-chat-input",className:"sr-only",children:"Message"}),(0,Ie.jsx)("input",{id:"lumio-chat-input",ref:b,className:Ze,value:l,placeholder:"!points 100",autoComplete:"off",onChange:c=>o(c.target.value)}),(0,Ie.jsx)(aa,{type:"submit",size:"sm",disabled:f,"aria-busy":f,className:"h-9 shrink-0",children:"Send"})]})]}),(0,Ie.jsx)(dt,{result:m&&!m.ok?m:null})]})}var Wo=x(H(),1);var _=x(S(),1);function S0(e){try{let t=JSON.parse(e);return t!==null&&typeof t=="object"&&!Array.isArray(t)?t:null}catch{return null}}function Hb({state:e}){let{run:t,busy:a,result:l}=it(),[o,n]=(0,Wo.useState)(""),[r,u]=(0,Wo.useState)(""),[s,i]=(0,Wo.useState)(Da(e.settings)),d=JSON.stringify(e.settings);(0,Wo.useEffect)(()=>i(Da(JSON.parse(d))),[d]);let g,f=o.trim()!=="";try{g=JSON.parse(r)}catch{f=!1}let m=S0(s);return(0,_.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,_.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Storage",children:[(0,_.jsx)(st,{children:"Storage"}),Object.keys(e.storage).length===0?(0,_.jsx)("p",{className:"text-xs text-muted-foreground",children:"Empty."}):(0,_.jsx)("dl",{className:"flex flex-col gap-1 text-xs",children:Object.entries(e.storage).map(([b,v])=>(0,_.jsxs)("div",{className:"flex gap-2",children:[(0,_.jsx)("dt",{className:"font-mono font-medium",children:b}),(0,_.jsx)("dd",{className:"min-w-0 flex-1 break-all font-mono text-muted-foreground",children:JSON.stringify(v)}),(0,_.jsx)(ee,{variant:"ghost",label:`Edit ${b}`,onClick:()=>{n(b),u(Da(v))},children:"Edit"})]},b))}),(0,_.jsxs)("div",{className:"grid grid-cols-1 gap-2",children:[(0,_.jsx)(Ce,{label:"Key",children:b=>(0,_.jsx)("input",{id:b,className:Ze,value:o,onChange:v=>n(v.target.value)})}),(0,_.jsx)(Vl,{label:"Value (JSON)",value:r,onChange:u,rows:4}),(0,_.jsx)("div",{children:(0,_.jsx)(ee,{busy:a||!f,onClick:()=>{t({kind:"storage",key:o.trim(),value:g})},children:"Set storage"})})]})]}),(0,_.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Settings",children:[(0,_.jsx)(st,{children:"Install settings (config.update)"}),(0,_.jsx)(Vl,{label:"Settings",value:s,onChange:i,rows:5}),(0,_.jsx)("div",{children:(0,_.jsx)(ee,{busy:a||!m,onClick:()=>m&&void t({kind:"config",settings:m}),children:"Apply settings"})})]}),(0,_.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"ctx.db",children:[(0,_.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_.jsx)(st,{children:"ctx.db"}),e.db&&(0,_.jsx)(ee,{variant:"ghost",busy:a,onClick:()=>{t({kind:"db",reset:!0})},children:"Clear all rows"})]}),e.db===null&&(0,_.jsx)("p",{className:"text-xs text-muted-foreground",children:"This project has no server code, so it has no ctx.db."}),e.db?.length===0&&(0,_.jsx)("p",{className:"text-xs text-muted-foreground",children:"server/schema.ts declares no tables."}),e.db?.map(b=>(0,_.jsxs)("details",{className:"rounded-md border border-border p-2 text-xs",open:b.rows.length>0&&b.rows.length<=20,children:[(0,_.jsxs)("summary",{className:"cursor-pointer font-medium",children:[b.table," (",b.rows.length,")"]}),(0,_.jsx)("pre",{className:"mt-2 max-h-64 overflow-auto font-mono text-muted-foreground",children:Da(b.rows)})]},b.table))]}),(e.timers.length>0||e.db!==null)&&(0,_.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Timers and deferred jobs",children:[(0,_.jsx)(st,{children:"Timers and ctx.defer"}),(0,_.jsxs)("div",{className:"flex flex-wrap gap-2",children:[e.timers.map(b=>(0,_.jsxs)(ee,{variant:"outline",busy:a,label:`Fire timer ${b.name} (every ${b.intervalSecs} s)`,onClick:()=>{t({kind:"timer",name:b.name})},children:["Fire ",b.name]},b.name)),(0,_.jsxs)(ee,{variant:"outline",busy:a||e.pendingDeferred===0,onClick:()=>{t({kind:"defer-run"})},children:["Run deferred jobs (",e.pendingDeferred,")"]})]}),(0,_.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Live: ",Object.entries(e.live).filter(([,b])=>b).map(([b])=>b).join(", ")||"no platform"," (timers with onlyWhenLive need a *:stream_online event)"]})]}),(0,_.jsx)(dt,{result:l})]})}var Ot=x(H(),1);var $=x(S(),1);function Zf(e,t=""){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0?Object.entries(e).flatMap(([a,l])=>Zf(l,t?`${t}.${a}`:a)):[{path:t,value:e}]}function C0(e,t,a){let l=t.split("."),o=e;for(let n of l.slice(0,-1))(typeof o[n]!="object"||o[n]===null)&&(o[n]={}),o=o[n];o[l[l.length-1]]=a}function I0(e){return typeof e=="string"?e:JSON.stringify(e)}function w0(e,t){if(typeof e=="string")return t;if(typeof e=="number")return t.trim()===""?e:Number(t);if(typeof e=="boolean")return t==="true";try{return JSON.parse(t)}catch{return t}}function Pb({state:e,meta:t}){let[a,l]=(0,Ot.useState)(t.eventTypes.find(k=>k.forwarded)?.type??t.eventTypes[0]?.type??""),[o,n]=(0,Ot.useState)(null),[r,u]=(0,Ot.useState)({}),[s,i]=(0,Ot.useState)("form"),[d,g]=(0,Ot.useState)(""),[f,m]=(0,Ot.useState)(""),[b,v]=(0,Ot.useState)(null),{run:D,busy:p,result:c}=it(),h=async k=>{v(null);try{let w=await Vf(`/__lumio/event-template?type=${encodeURIComponent(k)}`);n(w.payload),u(Object.fromEntries(Zf(w.payload).map(N=>[N.path,I0(N.value)]))),g(Da(w.payload))}catch(w){v(w.message)}};(0,Ot.useEffect)(()=>{a&&h(a)},[a]);let L=(0,Ot.useMemo)(()=>{let k=new Map;for(let w of t.eventTypes){let N=w.type.split(":")[0];k.set(N,[...k.get(N)??[],w])}return[...k]},[t.eventTypes]),T=t.eventTypes.find(k=>k.type===a),R=o===null?[]:Zf(o),A=!0;try{let k=JSON.parse(d);A=k!==null&&typeof k=="object"&&!Array.isArray(k)}catch{A=!1}let y=()=>{let k;if(s==="json"){if(!A)return;k=JSON.parse(d)}else{k={};for(let w of R)C0(k,w.path,w0(w.value,r[w.path]??""))}D({kind:"event",type:a,data:k,user:f.trim()?{name:f.trim()}:void 0})};return(0,$.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,$.jsx)(Ce,{label:"Event type",children:k=>(0,$.jsx)("select",{id:k,className:Ta,value:a,onChange:w=>l(w.target.value),children:L.map(([w,N])=>(0,$.jsx)("optgroup",{label:w,children:N.map(Z=>(0,$.jsxs)("option",{value:Z.type,children:[Z.type,Z.forwarded?"":" (not forwarded yet)"]},Z.type))},w))})}),(0,$.jsx)(Ce,{label:"Viewer (optional)",hint:"Keeps the same identity across chat, rewards and events",children:k=>(0,$.jsx)("input",{id:k,className:Ze,value:f,placeholder:"alice",onChange:w=>m(w.target.value)})})]}),T&&!T.forwarded&&(0,$.jsxs)("p",{className:"text-xs text-warning",children:["Production does not forward ",T.type," to extensions yet",T.reason?`: ${T.reason}`:"","."]}),(0,$.jsxs)("div",{className:"flex flex-wrap items-center gap-2",role:"group","aria-label":"Payload editor",children:[(0,$.jsx)(ee,{variant:s==="form"?"secondary":"ghost",onClick:()=>i("form"),children:"Form"}),(0,$.jsx)(ee,{variant:s==="json"?"secondary":"ghost",onClick:()=>i("json"),children:"JSON"}),(0,$.jsx)(ee,{variant:"ghost",onClick:()=>{h(a)},children:"New random values"})]}),b&&(0,$.jsx)("p",{role:"alert",className:"text-xs text-destructive",children:b}),s==="form"?(0,$.jsx)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:R.map(k=>(0,$.jsx)(Ce,{label:k.path,children:w=>typeof k.value=="boolean"?(0,$.jsxs)("select",{id:w,className:Ta,value:r[k.path],onChange:N=>u({...r,[k.path]:N.target.value}),children:[(0,$.jsx)("option",{value:"true",children:"true"}),(0,$.jsx)("option",{value:"false",children:"false"})]}):(0,$.jsx)("input",{id:w,className:Ze,type:typeof k.value=="number"?"number":"text",value:r[k.path]??"",onChange:N=>u({...r,[k.path]:N.target.value})})},k.path))}):(0,$.jsx)(Vl,{label:"Payload",value:d,onChange:g,rows:14}),(0,$.jsx)("div",{className:"flex items-center gap-2",children:(0,$.jsxs)(ee,{busy:p||s==="json"&&!A,onClick:y,children:["Send ",a]})}),(0,$.jsx)(dt,{result:c}),(0,$.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Presets",children:[(0,$.jsx)(st,{children:"Presets (lumio/mocks/events/)"}),e.presets.length===0?(0,$.jsx)("p",{className:"text-xs text-muted-foreground",children:"No presets. Add a file like lumio/mocks/events/big-sub.json."}):(0,$.jsx)("div",{className:"flex flex-wrap gap-2",children:e.presets.map(k=>(0,$.jsxs)(ee,{variant:"outline",busy:p,onClick:()=>{D({kind:"event",preset:k})},children:["@",k]},k))})]})]})}var ml=x(H(),1);var ft=x(S(),1),Ob=[{id:"all",label:"All",kinds:null},{id:"events",label:"Events",kinds:["event"]},{id:"chat",label:"Chat",kinds:["chat","bot","handler"]},{id:"actions",label:"Actions",kinds:["action","storage"]},{id:"server",label:"Server",kinds:["server"]},{id:"problems",label:"Problems",kinds:["error","warning"]}],k0={error:"text-destructive",warning:"text-warning",bot:"text-success",handler:"text-success",input:"text-muted-foreground",build:"text-muted-foreground"};function zb({state:e}){let[t,a]=(0,ml.useState)("all"),[l,o]=(0,ml.useState)(null),n=(0,ml.useRef)(null),r=Ob.find(d=>d.id===t)?.kinds??null,u=e.log.filter(d=>!r||r.includes(d.kind)).slice(-300),s=u.at(-1)?.id,i=(0,ml.useRef)(!0);return(0,ml.useEffect)(()=>{let d=n.current;d&&i.current&&(d.scrollTop=d.scrollHeight)},[s,t]),(0,ft.jsxs)("section",{className:"flex h-full min-h-0 flex-col","aria-label":"Action log",children:[(0,ft.jsxs)("div",{className:"flex flex-wrap items-center gap-1 border-b border-border px-3 py-1.5",role:"group","aria-label":"Filter the log",children:[(0,ft.jsx)("h2",{className:"mr-2 text-sm font-semibold",children:"Log"}),Ob.map(d=>(0,ft.jsx)("button",{type:"button","aria-pressed":t===d.id,onClick:()=>a(d.id),className:M("rounded-md px-2 py-0.5 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",t===d.id?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:d.label},d.id))]}),(0,ft.jsxs)("ol",{ref:n,onScroll:d=>{let g=d.currentTarget;i.current=g.scrollHeight-g.scrollTop-g.clientHeight<40},className:"min-h-0 flex-1 overflow-y-auto px-3 py-1 font-mono text-xs",children:[u.length===0&&(0,ft.jsx)("li",{className:"py-1 text-muted-foreground",children:"Nothing yet."}),u.map(d=>(0,ft.jsxs)("li",{className:"border-b border-border/40 py-0.5",children:[(0,ft.jsxs)("div",{className:"flex gap-2",children:[(0,ft.jsx)("time",{className:"shrink-0 text-muted-foreground",dateTime:d.at,children:d.at.slice(11,19)}),(0,ft.jsx)("span",{className:M("min-w-0 flex-1 whitespace-pre-wrap break-all",k0[d.kind]),children:d.text}),d.payload!==void 0&&(0,ft.jsx)("button",{type:"button","aria-expanded":l===d.id,onClick:()=>o(l===d.id?null:d.id),className:"shrink-0 rounded px-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:l===d.id?"hide payload":"payload"})]}),l===d.id&&(0,ft.jsx)("pre",{className:"my-1 max-h-72 overflow-auto rounded bg-muted p-2 text-foreground",children:JSON.stringify(d.payload,null,2)})]},d.id))]})]})}var qb=x(H(),1);var W=x(S(),1);function Ub(e){let t=Math.floor(e/1e3);return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}function Fb({state:e}){let t=e.player,{run:a,busy:l,result:o}=it(),[n,r]=(0,qb.useState)("1:30"),u=(s,...i)=>{a({kind:"music",op:s,args:i})};return(0,W.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,W.jsxs)("div",{className:"rounded-md border border-border bg-card p-3",children:[(0,W.jsx)("p",{className:"text-sm font-medium",children:t.track?t.track.name:"Nothing playing"}),t.track&&(0,W.jsxs)("p",{className:"text-xs text-muted-foreground",children:[t.track.artist," \xB7 ",Ub(t.progress_ms)," / ",Ub(t.track.duration_ms)," \xB7 ",t.is_playing?"playing":"paused"," \xB7 ",t.device.name]})]}),(0,W.jsxs)("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Playback",children:[(0,W.jsx)(ee,{busy:l,onClick:()=>u(t.is_playing?"pause":"play"),children:t.is_playing?"Pause":"Play"}),(0,W.jsx)(ee,{variant:"outline",busy:l,onClick:()=>u("skip"),children:"Skip"}),(0,W.jsx)(ee,{variant:"outline",busy:l,onClick:()=>u("advance","30s"),children:"+30 s"}),(0,W.jsxs)(ee,{variant:"outline",busy:l,onClick:()=>u("shuffle",t.shuffle?"off":"on"),children:["Shuffle ",t.shuffle?"off":"on"]})]}),(0,W.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,W.jsx)(Ce,{label:"Seek to",children:s=>(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("input",{id:s,className:Ze,value:n,onChange:i=>r(i.target.value)}),(0,W.jsx)(ee,{variant:"outline",busy:l,onClick:()=>u("seek",n),children:"Seek"})]})}),(0,W.jsx)(Ce,{label:`Volume (${t.device.volume_percent}%)`,children:s=>(0,W.jsx)("input",{id:s,type:"range",min:0,max:100,defaultValue:t.device.volume_percent,onKeyUp:i=>u("volume",i.target.value),onPointerUp:i=>u("volume",i.target.value),className:"h-9 w-full accent-primary"})}),(0,W.jsx)(Ce,{label:"Repeat",children:s=>(0,W.jsxs)("select",{id:s,className:Ta,value:t.repeat,onChange:i=>u("repeat",i.target.value),children:[(0,W.jsx)("option",{value:"off",children:"off"}),(0,W.jsx)("option",{value:"context",children:"context"}),(0,W.jsx)("option",{value:"track",children:"track"})]})}),(0,W.jsx)(Ce,{label:"Device",children:s=>(0,W.jsx)("select",{id:s,className:Ta,value:t.device.name,onChange:i=>u("device",i.target.value),children:t.devices.map(i=>(0,W.jsx)("option",{value:i.name,children:i.name},i.id))})})]}),(0,W.jsx)(dt,{result:o}),(0,W.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Queue",children:[(0,W.jsx)(st,{children:"Queue"}),(0,W.jsx)("ol",{className:"flex flex-col gap-1 text-xs",children:t.queue.map((s,i)=>(0,W.jsxs)("li",{className:"flex justify-between gap-2",children:[(0,W.jsxs)("span",{className:"truncate",children:[s.name," \xB7 ",(0,W.jsx)("span",{className:"text-muted-foreground",children:s.artist})]}),(0,W.jsx)(ee,{variant:"ghost",busy:l,label:`Play ${s.name} now`,onClick:()=>u("play",s.uri),children:"Play"})]},`${s.id}-${i}`))})]})]})}var Wf=x(H(),1);var ue=x(S(),1);function _b({state:e,meta:t}){let[a,l]=(0,Wf.useState)(e.defaults.user),[o,n]=(0,Wf.useState)(""),{run:r,busy:u,result:s}=it();return(0,ue.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ue.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ue.jsx)(Ce,{label:"Viewer",children:i=>(0,ue.jsx)("input",{id:i,className:Ze,value:a,onChange:d=>l(d.target.value)})}),(0,ue.jsx)(Ce,{label:"Viewer input",hint:"Sent with rewards that ask for text",children:i=>(0,ue.jsx)("input",{id:i,className:Ze,value:o,onChange:d=>n(d.target.value)})})]}),(0,ue.jsx)("ul",{className:"flex flex-col gap-2","aria-label":"Rewards",children:e.rewards.map(i=>(0,ue.jsxs)("li",{className:"flex items-center justify-between gap-2 rounded-md border border-border bg-card p-2",children:[(0,ue.jsxs)("div",{className:"min-w-0",children:[(0,ue.jsxs)("p",{className:"truncate text-sm font-medium",children:[i.title," ",(0,ue.jsxs)("span",{className:"text-muted-foreground",children:["\xB7 ",i.cost]})]}),(0,ue.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:i.prompt})]}),(0,ue.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,ue.jsx)(Xt,{variant:"outline",children:i.platform}),(0,ue.jsx)(ee,{variant:"outline",busy:u,label:`Redeem ${i.title} on ${i.platform}`,onClick:()=>{r({kind:"reward",reward:i.id,platform:i.platform,user:{name:a.trim()||e.defaults.user},input:o||void 0})},children:"Redeem"})]})]},`${i.platform}:${i.id}`))}),(0,ue.jsx)(dt,{result:s}),(0,ue.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Redemptions",children:[(0,ue.jsx)(st,{children:"Redemptions"}),e.redemptions.length===0&&(0,ue.jsx)("p",{className:"text-xs text-muted-foreground",children:"Nothing redeemed yet."}),(0,ue.jsx)("ul",{className:"flex flex-col gap-2",children:[...e.redemptions].reverse().map(i=>(0,ue.jsxs)("li",{className:"flex flex-wrap items-center gap-2 rounded-md border border-border p-2 text-xs",children:[(0,ue.jsx)("span",{className:"font-medium",children:i.viewer}),(0,ue.jsx)("span",{className:"text-muted-foreground",children:e.rewards.find(d=>d.id===i.rewardId)?.title??i.rewardId}),(0,ue.jsx)(Xt,{variant:"secondary",children:i.status}),(0,ue.jsx)("span",{className:"ml-auto flex gap-1",children:(t.rewardStatuses[i.platform]??[]).map(d=>(0,ue.jsx)(ee,{variant:"ghost",busy:u,label:`Set ${i.viewer}'s redemption to ${d}`,onClick:()=>{r({kind:"reward-status",id:i.id,status:d})},children:d},d))})]},i.id))})]})]})}var Ms=x(H(),1);var St=x(S(),1),M0={raid:"viewers=500 chatters=5",subBomb:"count=5 platform=twitch",giftBomb:"count=5 gifter=alice",hypeTrain:"levels=3",cheerStorm:"count=10 minBits=100 maxBits=1000",chatBurst:"count=20",conversation:"users=alice,bob rounds=2",streamLifecycle:"platform=twitch durationMs=60000",musicSession:"tracks=2 stepMs=30000",skipSpam:"count=10",deviceSwitch:"",playlistEdit:"name=Stream_picks",rewardRush:"reward=Hydrate count=10"};function Gb({meta:e}){let[t,a]=(0,Ms.useState)({}),[l,o]=(0,Ms.useState)(!1),[n,r]=(0,Ms.useState)(null),{run:u,busy:s,result:i}=it(),d=g=>{r(null);let f;try{f=Tb(t[g]??"")}catch(m){r(m.message);return}u({kind:"scenario",name:g,options:{...f,...l?{instant:!0}:{}}})};return(0,St.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,St.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,St.jsx)("input",{type:"checkbox",checked:l,onChange:g=>o(g.target.checked),className:"size-4 accent-primary"}),"Skip the waits between events"]}),(0,St.jsx)("ul",{className:"flex flex-col gap-2",children:e.scenarios.map(g=>(0,St.jsxs)("li",{className:"flex items-end gap-2",children:[(0,St.jsx)("div",{className:"min-w-0 flex-1",children:(0,St.jsx)(Ce,{label:`${g} options`,children:f=>(0,St.jsx)("input",{id:f,className:Ze,placeholder:M0[g]??"key=value",value:t[g]??"",onChange:m=>a({...t,[g]:m.target.value})})})}),(0,St.jsx)(ee,{variant:"outline",busy:s,label:`Play ${g}`,onClick:()=>d(g),className:"shrink-0",children:"Play"})]},g))}),n&&(0,St.jsx)("p",{role:"alert",className:"text-xs text-destructive",children:n}),(0,St.jsx)(dt,{result:i})]})}var jf=x(H(),1);var oe=x(S(),1);function Vb({state:e}){let{run:t,busy:a,result:l}=it(),[o,n]=(0,jf.useState)(null),[r,u]=(0,jf.useState)(""),s=[...new Set([...e.functions,...Object.keys(e.overrides),...e.serverCalls.map(f=>f.fn)])].sort(),i=f=>{n(f);let m=[...e.serverCalls].reverse().find(b=>b.fn===f);u(Da(e.overrides[f]??(m?.error?{error:{code:"FAILED",message:m.error.message}}:{result:m?.result??null})))},d=null;try{d=JSON.parse(r)}catch{d=null}let g=d!==null&&typeof d=="object"&&("result"in d||"error"in d);return(0,oe.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,oe.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Functions",children:[(0,oe.jsx)(st,{children:"Functions"}),s.length===0&&(0,oe.jsx)("p",{className:"text-xs text-muted-foreground",children:"No server functions (server/functions.ts) and no calls yet."}),(0,oe.jsx)("ul",{className:"flex flex-col gap-1",children:s.map(f=>(0,oe.jsxs)("li",{className:"flex items-center gap-2 text-sm",children:[(0,oe.jsx)("span",{className:"font-mono",children:f}),f in e.overrides&&(0,oe.jsx)(Xt,{variant:"secondary",children:"override"}),(0,oe.jsxs)("span",{className:"ml-auto flex gap-1",children:[(0,oe.jsx)(ee,{variant:"ghost",label:`Override ${f}`,onClick:()=>i(f),children:"Override"}),f in e.overrides&&(0,oe.jsx)(ee,{variant:"ghost",busy:a,label:`Remove the override of ${f}`,onClick:()=>{t({kind:"server-override",fn:f,answer:null})},children:"Remove"})]})]},f))})]}),o&&(0,oe.jsxs)("section",{className:"flex flex-col gap-2","aria-label":`Override ${o}`,children:[(0,oe.jsx)(Vl,{label:`Answer of ${o}: { "result": \u2026 } or { "error": { "code": "DENIED", "message": "\u2026" } }`,value:r,onChange:u,rows:6}),(0,oe.jsxs)("div",{className:"flex gap-2",children:[(0,oe.jsx)(ee,{busy:a||!g,onClick:()=>{t({kind:"server-override",fn:o,answer:d}).then(f=>f.ok&&n(null))},children:"Save override"}),(0,oe.jsx)(ee,{variant:"ghost",onClick:()=>n(null),children:"Cancel"})]})]}),(0,oe.jsx)(dt,{result:l}),(0,oe.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Calls",children:[(0,oe.jsx)(st,{children:"Calls"}),e.serverCalls.length===0&&(0,oe.jsx)("p",{className:"text-xs text-muted-foreground",children:"The extension has not called a server function yet."}),(0,oe.jsx)("ol",{className:"flex flex-col gap-2",children:[...e.serverCalls].reverse().map(f=>(0,oe.jsxs)("li",{className:"rounded-md border border-border p-2 text-xs",children:[(0,oe.jsxs)("p",{className:"font-medium",children:[f.method," ",(0,oe.jsx)("span",{className:"font-mono",children:f.fn})," ",f.overridden&&(0,oe.jsx)(Xt,{variant:"secondary",children:"override"})]}),(0,oe.jsxs)("p",{className:"break-all font-mono text-muted-foreground",children:["params ",JSON.stringify(f.params)]}),(0,oe.jsx)("p",{className:f.error?"break-all font-mono text-destructive":"break-all font-mono text-muted-foreground",children:f.error?`error ${f.error.code}: ${f.error.message}`:`\u2192 ${JSON.stringify(f.result)}`})]},f.id))})]})]})}var z=x(S(),1);function A0(){return(0,z.jsxs)(rr,{label:"Connecting to lumio dev",className:"flex h-screen flex-col",children:[(0,z.jsxs)("div",{className:"flex h-12 items-center gap-3 border-b border-border px-4",children:[(0,z.jsx)(Pt,{shape:"line",className:"w-40"}),(0,z.jsx)(Pt,{className:"h-7 w-32"})]}),(0,z.jsxs)("div",{className:"grid min-h-0 flex-1 grid-cols-1 lg:grid-cols-[minmax(0,1fr)_26rem]",children:[(0,z.jsx)("div",{className:"flex flex-col gap-3 p-3",children:(0,z.jsx)(Pt,{className:"aspect-video w-full"})}),(0,z.jsxs)("div",{className:"flex flex-col gap-3 border-l border-border p-3",children:[(0,z.jsx)(Pt,{className:"h-8 w-full"}),(0,z.jsx)(is,{lines:6})]})]}),(0,z.jsx)("div",{className:"h-48 border-t border-border p-3",children:(0,z.jsx)(is,{lines:4})})]})}function T0({state:e,connected:t}){let a=o=>{Gl({kind:"view",target:o})},l=e.build.errors;return(0,z.jsxs)("header",{className:"flex flex-wrap items-center gap-3 border-b border-border px-4 py-2",children:[(0,z.jsxs)("h1",{className:"text-sm font-semibold",children:["Lumio dev ",(0,z.jsxs)("span",{className:"font-normal text-muted-foreground",children:["\xB7 ",e.project.name," (",e.project.category,")"]})]}),e.targets.length>0&&(0,z.jsx)("div",{role:"group","aria-label":"Surface",className:"flex rounded-md border border-border p-0.5",children:e.targets.map(o=>(0,z.jsx)("button",{type:"button","aria-pressed":e.view===o,onClick:()=>a(o),className:M("rounded px-3 py-1 text-xs font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e.view===o?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:o},o))}),(0,z.jsxs)("span",{className:"ml-auto flex items-center gap-2",children:[e.build.ok?(0,z.jsx)(Xt,{variant:"outline",children:"Build ok"}):(0,z.jsx)(Xt,{variant:"destructive",title:l.join(`
|
|
11
|
+
`),children:"Build failed"}),(0,z.jsx)(Xt,{variant:t?"outline":"destructive",children:t?"Connected":"Reconnecting\u2026"}),(0,z.jsx)("button",{type:"button",onClick:()=>{Gl({kind:"theme",mode:e.themeMode==="dark"?"light":"dark"})},className:"rounded-md border border-border px-2.5 py-1 text-xs font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":`Switch to the ${e.themeMode==="dark"?"light":"dark"} theme`,children:e.themeMode==="dark"?"Light theme":"Dark theme"})]})]})}function D0({state:e,meta:t}){let[a,l]=(0,As.useState)(e.chatFirst||e.targets.length===0?"chat":"events"),o=[{id:"events",label:"Events",content:(0,z.jsx)(Pb,{state:e,meta:t})},{id:"chat",label:"Chat",content:(0,z.jsx)(Bb,{state:e,meta:t,autoFocus:e.chatFirst})},{id:"rewards",label:"Rewards",content:(0,z.jsx)(_b,{state:e,meta:t})},{id:"music",label:"Music",content:(0,z.jsx)(Fb,{state:e})},{id:"scenarios",label:"Scenarios",content:(0,z.jsx)(Gb,{meta:t})},{id:"data",label:"Data",content:(0,z.jsx)(Hb,{state:e})},{id:"server",label:"Server",content:(0,z.jsx)(Vb,{state:e})}],n=e.chatFirst?[o[1],o[0],...o.slice(2)]:o;return(0,z.jsx)(Nb,{tabs:n,value:a,onChange:l,label:"Inputs",className:"h-full"})}function Xb(){let{state:e,meta:t,connected:a}=Ab();return(0,As.useEffect)(()=>{e&&document.documentElement.classList.toggle("dark",e.themeMode==="dark")},[e?.themeMode]),!e||!t?(0,z.jsx)(A0,{}):(0,z.jsxs)("div",{className:"flex h-screen flex-col overflow-hidden",children:[(0,z.jsx)(T0,{state:e,connected:a}),!e.build.ok&&(0,z.jsxs)("div",{role:"alert",className:"max-h-32 overflow-auto border-b border-destructive/40 bg-destructive/10 px-4 py-2 font-mono text-xs text-destructive",children:[e.build.errors.map((l,o)=>(0,z.jsx)("p",{children:l},o)),(0,z.jsx)("p",{className:"text-muted-foreground",children:"The last good build keeps running."})]}),(0,z.jsxs)("main",{className:"grid min-h-0 flex-1 grid-cols-1 lg:grid-cols-[minmax(0,1fr)_26rem]",children:[(0,z.jsx)("div",{className:"min-h-0 overflow-auto",children:(0,z.jsx)(Eb,{state:e})}),(0,z.jsx)("aside",{className:"min-h-0 border-t border-border lg:border-l lg:border-t-0","aria-label":"Inputs",children:(0,z.jsx)(D0,{state:e,meta:t})})]}),(0,z.jsx)("div",{className:"h-56 shrink-0 border-t border-border",children:(0,z.jsx)(zb,{state:e})})]})}var Wb=x(S(),1),Yb=document.getElementById("root");Yb&&(0,Zb.createRoot)(Yb).render((0,Wb.jsx)(Xb,{}));})();
|