@telemetryos/development-application-host-ui 1.9.0 → 1.11.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.
@@ -1,49 +0,0 @@
1
- (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function l(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(o){if(o.ep)return;o.ep=!0;const d=l(o);fetch(o.href,d)}})();var oo={exports:{}},Ql={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ep;function Rg(){if(ep)return Ql;ep=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(u,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var p in o)p!=="key"&&(d[p]=o[p])}else d=o;return o=d.ref,{$$typeof:r,type:u,key:h,ref:o!==void 0?o:null,props:d}}return Ql.Fragment=n,Ql.jsx=l,Ql.jsxs=l,Ql}var tp;function Ug(){return tp||(tp=1,oo.exports=Rg()),oo.exports}var y=Ug(),fo={exports:{}},Jl={},ho={exports:{}},mo={};/**
10
- * @license React
11
- * scheduler.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var ap;function Lg(){return ap||(ap=1,(function(r){function n(O,Z){var I=O.length;O.push(Z);e:for(;0<I;){var De=I-1>>>1,je=O[De];if(0<o(je,Z))O[De]=Z,O[I]=je,I=De;else break e}}function l(O){return O.length===0?null:O[0]}function u(O){if(O.length===0)return null;var Z=O[0],I=O.pop();if(I!==Z){O[0]=I;e:for(var De=0,je=O.length,S=je>>>1;De<S;){var j=2*(De+1)-1,H=O[j],Y=j+1,te=O[Y];if(0>o(H,I))Y<je&&0>o(te,H)?(O[De]=te,O[Y]=I,De=Y):(O[De]=H,O[j]=I,De=j);else if(Y<je&&0>o(te,I))O[De]=te,O[Y]=I,De=Y;else break e}}return Z}function o(O,Z){var I=O.sortIndex-Z.sortIndex;return I!==0?I:O.id-Z.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();r.unstable_now=function(){return h.now()-p}}var v=[],_=[],D=1,L=null,P=3,we=!1,Oe=!1,Ve=!1,et=!1,Qe=typeof setTimeout=="function"?setTimeout:null,Ue=typeof clearTimeout=="function"?clearTimeout:null,fe=typeof setImmediate<"u"?setImmediate:null;function Be(O){for(var Z=l(_);Z!==null;){if(Z.callback===null)u(_);else if(Z.startTime<=O)u(_),Z.sortIndex=Z.expirationTime,n(v,Z);else break;Z=l(_)}}function ut(O){if(Ve=!1,Be(O),!Oe)if(l(v)!==null)Oe=!0,Ye||(Ye=!0,xt());else{var Z=l(_);Z!==null&&jt(ut,Z.startTime-O)}}var Ye=!1,ee=-1,rt=5,Kt=-1;function pa(){return et?!0:!(r.unstable_now()-Kt<rt)}function ct(){if(et=!1,Ye){var O=r.unstable_now();Kt=O;var Z=!0;try{e:{Oe=!1,Ve&&(Ve=!1,Ue(ee),ee=-1),we=!0;var I=P;try{t:{for(Be(O),L=l(v);L!==null&&!(L.expirationTime>O&&pa());){var De=L.callback;if(typeof De=="function"){L.callback=null,P=L.priorityLevel;var je=De(L.expirationTime<=O);if(O=r.unstable_now(),typeof je=="function"){L.callback=je,Be(O),Z=!0;break t}L===l(v)&&u(v),Be(O)}else u(v);L=l(v)}if(L!==null)Z=!0;else{var S=l(_);S!==null&&jt(ut,S.startTime-O),Z=!1}}break e}finally{L=null,P=I,we=!1}Z=void 0}}finally{Z?xt():Ye=!1}}}var xt;if(typeof fe=="function")xt=function(){fe(ct)};else if(typeof MessageChannel<"u"){var Xt=new MessageChannel,la=Xt.port2;Xt.port1.onmessage=ct,xt=function(){la.postMessage(null)}}else xt=function(){Qe(ct,0)};function jt(O,Z){ee=Qe(function(){O(r.unstable_now())},Z)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(O){O.callback=null},r.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):rt=0<O?Math.floor(1e3/O):5},r.unstable_getCurrentPriorityLevel=function(){return P},r.unstable_next=function(O){switch(P){case 1:case 2:case 3:var Z=3;break;default:Z=P}var I=P;P=Z;try{return O()}finally{P=I}},r.unstable_requestPaint=function(){et=!0},r.unstable_runWithPriority=function(O,Z){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=P;P=O;try{return Z()}finally{P=I}},r.unstable_scheduleCallback=function(O,Z,I){var De=r.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?De+I:De):I=De,O){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=I+je,O={id:D++,callback:Z,priorityLevel:O,startTime:I,expirationTime:je,sortIndex:-1},I>De?(O.sortIndex=I,n(_,O),l(v)===null&&O===l(_)&&(Ve?(Ue(ee),ee=-1):Ve=!0,jt(ut,I-De))):(O.sortIndex=je,n(v,O),Oe||we||(Oe=!0,Ye||(Ye=!0,xt()))),O},r.unstable_shouldYield=pa,r.unstable_wrapCallback=function(O){var Z=P;return function(){var I=P;P=Z;try{return O.apply(this,arguments)}finally{P=I}}}})(mo)),mo}var np;function Zg(){return np||(np=1,ho.exports=Lg()),ho.exports}var po={exports:{}},ae={};/**
18
- * @license React
19
- * react.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var ip;function Hg(){if(ip)return ae;ip=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),P=Symbol.iterator;function we(S){return S===null||typeof S!="object"?null:(S=P&&S[P]||S["@@iterator"],typeof S=="function"?S:null)}var Oe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ve=Object.assign,et={};function Qe(S,j,H){this.props=S,this.context=j,this.refs=et,this.updater=H||Oe}Qe.prototype.isReactComponent={},Qe.prototype.setState=function(S,j){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,j,"setState")},Qe.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function Ue(){}Ue.prototype=Qe.prototype;function fe(S,j,H){this.props=S,this.context=j,this.refs=et,this.updater=H||Oe}var Be=fe.prototype=new Ue;Be.constructor=fe,Ve(Be,Qe.prototype),Be.isPureReactComponent=!0;var ut=Array.isArray;function Ye(){}var ee={H:null,A:null,T:null,S:null},rt=Object.prototype.hasOwnProperty;function Kt(S,j,H){var Y=H.ref;return{$$typeof:r,type:S,key:j,ref:Y!==void 0?Y:null,props:H}}function pa(S,j){return Kt(S.type,j,S.props)}function ct(S){return typeof S=="object"&&S!==null&&S.$$typeof===r}function xt(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(H){return j[H]})}var Xt=/\/+/g;function la(S,j){return typeof S=="object"&&S!==null&&S.key!=null?xt(""+S.key):j.toString(36)}function jt(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Ye,Ye):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function O(S,j,H,Y,te){var de=typeof S;(de==="undefined"||de==="boolean")&&(S=null);var Ce=!1;if(S===null)Ce=!0;else switch(de){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(S.$$typeof){case r:case n:Ce=!0;break;case D:return Ce=S._init,O(Ce(S._payload),j,H,Y,te)}}if(Ce)return te=te(S),Ce=Y===""?"."+la(S,0):Y,ut(te)?(H="",Ce!=null&&(H=Ce.replace(Xt,"$&/")+"/"),O(te,j,H,"",function(xn){return xn})):te!=null&&(ct(te)&&(te=pa(te,H+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(Xt,"$&/")+"/")+Ce)),j.push(te)),1;Ce=0;var pt=Y===""?".":Y+":";if(ut(S))for(var Je=0;Je<S.length;Je++)Y=S[Je],de=pt+la(Y,Je),Ce+=O(Y,j,H,de,te);else if(Je=we(S),typeof Je=="function")for(S=Je.call(S),Je=0;!(Y=S.next()).done;)Y=Y.value,de=pt+la(Y,Je++),Ce+=O(Y,j,H,de,te);else if(de==="object"){if(typeof S.then=="function")return O(jt(S),j,H,Y,te);throw j=String(S),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function Z(S,j,H){if(S==null)return S;var Y=[],te=0;return O(S,Y,"","",function(de){return j.call(H,de,te++)}),Y}function I(S){if(S._status===-1){var j=S._result;j=j(),j.then(function(H){(S._status===0||S._status===-1)&&(S._status=1,S._result=H)},function(H){(S._status===0||S._status===-1)&&(S._status=2,S._result=H)}),S._status===-1&&(S._status=0,S._result=j)}if(S._status===1)return S._result.default;throw S._result}var De=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},je={map:Z,forEach:function(S,j,H){Z(S,function(){j.apply(this,arguments)},H)},count:function(S){var j=0;return Z(S,function(){j++}),j},toArray:function(S){return Z(S,function(j){return j})||[]},only:function(S){if(!ct(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=L,ae.Children=je,ae.Component=Qe,ae.Fragment=l,ae.Profiler=o,ae.PureComponent=fe,ae.StrictMode=u,ae.Suspense=v,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ee.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,j,H){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Y=Ve({},S.props),te=S.key;if(j!=null)for(de in j.key!==void 0&&(te=""+j.key),j)!rt.call(j,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&j.ref===void 0||(Y[de]=j[de]);var de=arguments.length-2;if(de===1)Y.children=H;else if(1<de){for(var Ce=Array(de),pt=0;pt<de;pt++)Ce[pt]=arguments[pt+2];Y.children=Ce}return Kt(S.type,te,Y)},ae.createContext=function(S){return S={$$typeof:h,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},ae.createElement=function(S,j,H){var Y,te={},de=null;if(j!=null)for(Y in j.key!==void 0&&(de=""+j.key),j)rt.call(j,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=j[Y]);var Ce=arguments.length-2;if(Ce===1)te.children=H;else if(1<Ce){for(var pt=Array(Ce),Je=0;Je<Ce;Je++)pt[Je]=arguments[Je+2];te.children=pt}if(S&&S.defaultProps)for(Y in Ce=S.defaultProps,Ce)te[Y]===void 0&&(te[Y]=Ce[Y]);return Kt(S,de,te)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:p,render:S}},ae.isValidElement=ct,ae.lazy=function(S){return{$$typeof:D,_payload:{_status:-1,_result:S},_init:I}},ae.memo=function(S,j){return{$$typeof:_,type:S,compare:j===void 0?null:j}},ae.startTransition=function(S){var j=ee.T,H={};ee.T=H;try{var Y=S(),te=ee.S;te!==null&&te(H,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Ye,De)}catch(de){De(de)}finally{j!==null&&H.types!==null&&(j.types=H.types),ee.T=j}},ae.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},ae.use=function(S){return ee.H.use(S)},ae.useActionState=function(S,j,H){return ee.H.useActionState(S,j,H)},ae.useCallback=function(S,j){return ee.H.useCallback(S,j)},ae.useContext=function(S){return ee.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,j){return ee.H.useDeferredValue(S,j)},ae.useEffect=function(S,j){return ee.H.useEffect(S,j)},ae.useEffectEvent=function(S){return ee.H.useEffectEvent(S)},ae.useId=function(){return ee.H.useId()},ae.useImperativeHandle=function(S,j,H){return ee.H.useImperativeHandle(S,j,H)},ae.useInsertionEffect=function(S,j){return ee.H.useInsertionEffect(S,j)},ae.useLayoutEffect=function(S,j){return ee.H.useLayoutEffect(S,j)},ae.useMemo=function(S,j){return ee.H.useMemo(S,j)},ae.useOptimistic=function(S,j){return ee.H.useOptimistic(S,j)},ae.useReducer=function(S,j,H){return ee.H.useReducer(S,j,H)},ae.useRef=function(S){return ee.H.useRef(S)},ae.useState=function(S){return ee.H.useState(S)},ae.useSyncExternalStore=function(S,j,H){return ee.H.useSyncExternalStore(S,j,H)},ae.useTransition=function(){return ee.H.useTransition()},ae.version="19.2.0",ae}var lp;function Qo(){return lp||(lp=1,po.exports=Hg()),po.exports}var vo={exports:{}},Ct={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var sp;function Bg(){if(sp)return Ct;sp=1;var r=Qo();function n(v){var _="https://react.dev/errors/"+v;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)_+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+v+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var u={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(v,_,D){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:L==null?null:""+L,children:v,containerInfo:_,implementation:D}}var h=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,_){if(v==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Ct.createPortal=function(v,_){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(n(299));return d(v,_,null,D)},Ct.flushSync=function(v){var _=h.T,D=u.p;try{if(h.T=null,u.p=2,v)return v()}finally{h.T=_,u.p=D,u.d.f()}},Ct.preconnect=function(v,_){typeof v=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,u.d.C(v,_))},Ct.prefetchDNS=function(v){typeof v=="string"&&u.d.D(v)},Ct.preinit=function(v,_){if(typeof v=="string"&&_&&typeof _.as=="string"){var D=_.as,L=p(D,_.crossOrigin),P=typeof _.integrity=="string"?_.integrity:void 0,we=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;D==="style"?u.d.S(v,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:L,integrity:P,fetchPriority:we}):D==="script"&&u.d.X(v,{crossOrigin:L,integrity:P,fetchPriority:we,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},Ct.preinitModule=function(v,_){if(typeof v=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var D=p(_.as,_.crossOrigin);u.d.M(v,{crossOrigin:D,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&u.d.M(v)},Ct.preload=function(v,_){if(typeof v=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var D=_.as,L=p(D,_.crossOrigin);u.d.L(v,D,{crossOrigin:L,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},Ct.preloadModule=function(v,_){if(typeof v=="string")if(_){var D=p(_.as,_.crossOrigin);u.d.m(v,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:D,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else u.d.m(v)},Ct.requestFormReset=function(v){u.d.r(v)},Ct.unstable_batchedUpdates=function(v,_){return v(_)},Ct.useFormState=function(v,_,D){return h.H.useFormState(v,_,D)},Ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},Ct.version="19.2.0",Ct}var up;function qg(){if(up)return vo.exports;up=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),vo.exports=Bg(),vo.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var rp;function Vg(){if(rp)return Jl;rp=1;var r=Zg(),n=Qo(),l=qg();function u(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(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 h(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 p(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 v(e){if(d(e)!==e)throw Error(u(188))}function _(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return v(s),e;if(c===i)return v(s),t;c=c.sibling}throw Error(u(188))}if(a.return!==i.return)a=s,i=c;else{for(var f=!1,m=s.child;m;){if(m===a){f=!0,a=s,i=c;break}if(m===i){f=!0,i=s,a=c;break}m=m.sibling}if(!f){for(m=c.child;m;){if(m===a){f=!0,a=c,i=s;break}if(m===i){f=!0,i=c,a=s;break}m=m.sibling}if(!f)throw Error(u(189))}}if(a.alternate!==i)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function D(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=D(e),t!==null)return t;e=e.sibling}return null}var L=Object.assign,P=Symbol.for("react.element"),we=Symbol.for("react.transitional.element"),Oe=Symbol.for("react.portal"),Ve=Symbol.for("react.fragment"),et=Symbol.for("react.strict_mode"),Qe=Symbol.for("react.profiler"),Ue=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),ut=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),Kt=Symbol.for("react.activity"),pa=Symbol.for("react.memo_cache_sentinel"),ct=Symbol.iterator;function xt(e){return e===null||typeof e!="object"?null:(e=ct&&e[ct]||e["@@iterator"],typeof e=="function"?e:null)}var Xt=Symbol.for("react.client.reference");function la(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ve:return"Fragment";case Qe:return"Profiler";case et:return"StrictMode";case ut:return"Suspense";case Ye:return"SuspenseList";case Kt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Oe:return"Portal";case fe:return e.displayName||"Context";case Ue:return(e._context.displayName||"Context")+".Consumer";case Be:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:la(e.type)||"Memo";case rt:t=e._payload,e=e._init;try{return la(e(t))}catch{}}return null}var jt=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},De=[],je=-1;function S(e){return{current:e}}function j(e){0>je||(e.current=De[je],De[je]=null,je--)}function H(e,t){je++,De[je]=e.current,e.current=t}var Y=S(null),te=S(null),de=S(null),Ce=S(null);function pt(e,t){switch(H(de,t),H(te,e),H(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cm(t),e=Nm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(Y),H(Y,e)}function Je(){j(Y),j(te),j(de)}function xn(e){e.memoizedState!==null&&H(Ce,e);var t=Y.current,a=Nm(t,e.type);t!==a&&(H(te,e),H(Y,a))}function Xn(e){te.current===e&&(j(Y),j(te)),Ce.current===e&&(j(Ce),Yl._currentValue=I)}var Wi,rs;function va(e){if(Wi===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Wi=t&&t[1]||"",rs=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Wi+e+rs}var Ii=!1;function Pi(e,t){if(!e||Ii)return"";Ii=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(M){var A=M}Reflect.construct(e,[],k)}else{try{k.call()}catch(M){A=M}e.call(k.prototype)}}else{try{throw Error()}catch(M){A=M}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(M){if(M&&A&&typeof M.stack=="string")return[M.stack,A.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),f=c[0],m=c[1];if(f&&m){var g=f.split(`
44
- `),N=m.split(`
45
- `);for(s=i=0;i<g.length&&!g[i].includes("DetermineComponentFrameRoot");)i++;for(;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;if(i===g.length||s===N.length)for(i=g.length-1,s=N.length-1;1<=i&&0<=s&&g[i]!==N[s];)s--;for(;1<=i&&0<=s;i--,s--)if(g[i]!==N[s]){if(i!==1||s!==1)do if(i--,s--,0>s||g[i]!==N[s]){var w=`
46
- `+g[i].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=i&&0<=s);break}}}finally{Ii=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?va(a):""}function Wu(e,t){switch(e.tag){case 26:case 27:case 5:return va(e.type);case 16:return va("Lazy");case 13:return e.child!==t&&t!==null?va("Suspense Fallback"):va("Suspense");case 19:return va("SuspenseList");case 0:case 15:return Pi(e.type,!1);case 11:return Pi(e.type.render,!1);case 1:return Pi(e.type,!0);case 31:return va("Activity");default:return""}}function cs(e){try{var t="",a=null;do t+=Wu(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
47
- Error generating stack: `+i.message+`
48
- `+i.stack}}var el=Object.prototype.hasOwnProperty,Qn=r.unstable_scheduleCallback,T=r.unstable_cancelCallback,F=r.unstable_shouldYield,be=r.unstable_requestPaint,We=r.unstable_now,pv=r.unstable_getCurrentPriorityLevel,ed=r.unstable_ImmediatePriority,td=r.unstable_UserBlockingPriority,os=r.unstable_NormalPriority,vv=r.unstable_LowPriority,ad=r.unstable_IdlePriority,yv=r.log,gv=r.unstable_setDisableYieldValue,tl=null,zt=null;function La(e){if(typeof yv=="function"&&gv(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(tl,e)}catch{}}var Rt=Math.clz32?Math.clz32:Sv,_v=Math.log,bv=Math.LN2;function Sv(e){return e>>>=0,e===0?32:31-(_v(e)/bv|0)|0}var ds=256,fs=262144,hs=4194304;function Cn(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 ms(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var s=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=i&134217727;return m!==0?(i=m&~c,i!==0?s=Cn(i):(f&=m,f!==0?s=Cn(f):a||(a=m&~e,a!==0&&(s=Cn(a))))):(m=i&~c,m!==0?s=Cn(m):f!==0?s=Cn(f):a||(a=i&~e,a!==0&&(s=Cn(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function al(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xv(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 nd(){var e=hs;return hs<<=1,(hs&62914560)===0&&(hs=4194304),e}function Iu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function nl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cv(e,t,a,i,s,c){var f=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 m=e.entanglements,g=e.expirationTimes,N=e.hiddenUpdates;for(a=f&~a;0<a;){var w=31-Rt(a),k=1<<w;m[w]=0,g[w]=-1;var A=N[w];if(A!==null)for(N[w]=null,w=0;w<A.length;w++){var M=A[w];M!==null&&(M.lane&=-536870913)}a&=~k}i!==0&&id(e,i,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function id(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Rt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function ld(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Rt(a),s=1<<i;s&t|e[i]&t&&(e[i]|=t),a&=~s}}function sd(e,t){var a=t&-t;return a=(a&42)!==0?1:Pu(a),(a&(e.suspendedLanes|t))!==0?0:a}function Pu(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 er(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ud(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Qm(e.type))}function rd(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Za=Math.random().toString(36).slice(2),vt="__reactFiber$"+Za,At="__reactProps$"+Za,Jn="__reactContainer$"+Za,tr="__reactEvents$"+Za,Nv="__reactListeners$"+Za,Tv="__reactHandles$"+Za,cd="__reactResources$"+Za,il="__reactMarker$"+Za;function ar(e){delete e[vt],delete e[At],delete e[tr],delete e[Nv],delete e[Tv]}function Fn(e){var t=e[vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Jn]||a[vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Dm(e);e!==null;){if(a=e[vt])return a;e=Dm(e)}return t}e=a,a=e.parentNode}return null}function $n(e){if(e=e[vt]||e[Jn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ll(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Wn(e){var t=e[cd];return t||(t=e[cd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[il]=!0}var od=new Set,dd={};function Nn(e,t){In(e,t),In(e+"Capture",t)}function In(e,t){for(dd[e]=t,e=0;e<t.length;e++)od.add(t[e])}var Av=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]*$"),fd={},hd={};function Mv(e){return el.call(hd,e)?!0:el.call(fd,e)?!1:Av.test(e)?hd[e]=!0:(fd[e]=!0,!1)}function ps(e,t,a){if(Mv(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function vs(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 ya(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function md(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wv(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){a=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nr(e){if(!e._valueTracker){var t=md(e)?"checked":"value";e._valueTracker=wv(e,t,""+e[t])}}function pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=md(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function ys(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 Ov=/[\n"\\]/g;function Jt(e){return e.replace(Ov,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ir(e,t,a,i,s,c,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?lr(e,f,Qt(t)):a!=null?lr(e,f,Qt(a)):i!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Qt(m):e.removeAttribute("name")}function vd(e,t,a,i,s,c,f,m){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){nr(e);return}a=a!=null?""+Qt(a):"",t=t!=null?""+Qt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=m?e.checked:!!i,e.defaultChecked=!!i,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),nr(e)}function lr(e,t,a){t==="number"&&ys(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Pn(e,t,a,i){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Qt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function yd(e,t,a){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Qt(a):""}function gd(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(u(92));if(jt(i)){if(1<i.length)throw Error(u(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Qt(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),nr(e)}function ei(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Ev=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 _d(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Ev.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function bd(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&a[s]!==i&&_d(e,s,i)}else for(var c in t)t.hasOwnProperty(c)&&_d(e,c,t[c])}function sr(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 Dv=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"]]),kv=/^[\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 gs(e){return kv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ga(){}var ur=null;function rr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ti=null,ai=null;function Sd(e){var t=$n(e);if(t&&(e=t.stateNode)){var a=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(ir(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="'+Jt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var s=i[At]||null;if(!s)throw Error(u(90));ir(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&pd(i)}break e;case"textarea":yd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Pn(e,!!a.multiple,t,!1)}}}var cr=!1;function xd(e,t,a){if(cr)return e(t,a);cr=!0;try{var i=e(t);return i}finally{if(cr=!1,(ti!==null||ai!==null)&&(lu(),ti&&(t=ti,e=ai,ai=ti=null,Sd(t),e)))for(t=0;t<e.length;t++)Sd(e[t])}}function sl(e,t){var a=e.stateNode;if(a===null)return null;var i=a[At]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var _a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),or=!1;if(_a)try{var ul={};Object.defineProperty(ul,"passive",{get:function(){or=!0}}),window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{or=!1}var Ha=null,dr=null,_s=null;function Cd(){if(_s)return _s;var e,t=dr,a=t.length,i,s="value"in Ha?Ha.value:Ha.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var f=a-e;for(i=1;i<=f&&t[a-i]===s[c-i];i++);return _s=s.slice(e,1<i?1-i:void 0)}function bs(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 Ss(){return!0}function Nd(){return!1}function Mt(e){function t(a,i,s,c,f){this._reactName=a,this._targetInst=s,this.type=i,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(c):c[m]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ss:Nd,this.isPropagationStopped=Nd,this}return L(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=Ss)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ss)},persist:function(){},isPersistent:Ss}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=Mt(Tn),rl=L({},Tn,{view:0,detail:0}),jv=Mt(rl),fr,hr,cl,Cs=L({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pr,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!==cl&&(cl&&e.type==="mousemove"?(fr=e.screenX-cl.screenX,hr=e.screenY-cl.screenY):hr=fr=0,cl=e),fr)},movementY:function(e){return"movementY"in e?e.movementY:hr}}),Td=Mt(Cs),zv=L({},Cs,{dataTransfer:0}),Rv=Mt(zv),Uv=L({},rl,{relatedTarget:0}),mr=Mt(Uv),Lv=L({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0}),Zv=Mt(Lv),Hv=L({},Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bv=Mt(Hv),qv=L({},Tn,{data:0}),Ad=Mt(qv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gv[e])?!!t[e]:!1}function pr(){return Kv}var Xv=L({},rl,{key:function(e){if(e.key){var t=Vv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pr,charCode:function(e){return e.type==="keypress"?bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qv=Mt(Xv),Jv=L({},Cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Md=Mt(Jv),Fv=L({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pr}),$v=Mt(Fv),Wv=L({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Iv=Mt(Wv),Pv=L({},Cs,{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}),ey=Mt(Pv),ty=L({},Tn,{newState:0,oldState:0}),ay=Mt(ty),ny=[9,13,27,32],vr=_a&&"CompositionEvent"in window,ol=null;_a&&"documentMode"in document&&(ol=document.documentMode);var iy=_a&&"TextEvent"in window&&!ol,wd=_a&&(!vr||ol&&8<ol&&11>=ol),Od=" ",Ed=!1;function Dd(e,t){switch(e){case"keyup":return ny.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ni=!1;function ly(e,t){switch(e){case"compositionend":return kd(t);case"keypress":return t.which!==32?null:(Ed=!0,Od);case"textInput":return e=t.data,e===Od&&Ed?null:e;default:return null}}function sy(e,t){if(ni)return e==="compositionend"||!vr&&Dd(e,t)?(e=Cd(),_s=dr=Ha=null,ni=!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 wd&&t.locale!=="ko"?null:t.data;default:return null}}var uy={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 jd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uy[e.type]:t==="textarea"}function zd(e,t,a,i){ti?ai?ai.push(i):ai=[i]:ti=i,t=fu(t,"onChange"),0<t.length&&(a=new xs("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var dl=null,fl=null;function ry(e){ym(e,0)}function Ns(e){var t=ll(e);if(pd(t))return e}function Rd(e,t){if(e==="change")return t}var Ud=!1;if(_a){var yr;if(_a){var gr="oninput"in document;if(!gr){var Ld=document.createElement("div");Ld.setAttribute("oninput","return;"),gr=typeof Ld.oninput=="function"}yr=gr}else yr=!1;Ud=yr&&(!document.documentMode||9<document.documentMode)}function Zd(){dl&&(dl.detachEvent("onpropertychange",Hd),fl=dl=null)}function Hd(e){if(e.propertyName==="value"&&Ns(fl)){var t=[];zd(t,fl,e,rr(e)),xd(ry,t)}}function cy(e,t,a){e==="focusin"?(Zd(),dl=t,fl=a,dl.attachEvent("onpropertychange",Hd)):e==="focusout"&&Zd()}function oy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ns(fl)}function dy(e,t){if(e==="click")return Ns(t)}function fy(e,t){if(e==="input"||e==="change")return Ns(t)}function hy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:hy;function hl(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var s=a[i];if(!el.call(t,s)||!Ut(e[s],t[s]))return!1}return!0}function Bd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qd(e,t){var a=Bd(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Bd(a)}}function Vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ys(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=ys(e.document)}return t}function _r(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 my=_a&&"documentMode"in document&&11>=document.documentMode,ii=null,br=null,ml=null,Sr=!1;function Gd(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Sr||ii==null||ii!==ys(i)||(i=ii,"selectionStart"in i&&_r(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ml&&hl(ml,i)||(ml=i,i=fu(br,"onSelect"),0<i.length&&(t=new xs("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ii)))}function An(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var li={animationend:An("Animation","AnimationEnd"),animationiteration:An("Animation","AnimationIteration"),animationstart:An("Animation","AnimationStart"),transitionrun:An("Transition","TransitionRun"),transitionstart:An("Transition","TransitionStart"),transitioncancel:An("Transition","TransitionCancel"),transitionend:An("Transition","TransitionEnd")},xr={},Kd={};_a&&(Kd=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function Mn(e){if(xr[e])return xr[e];if(!li[e])return e;var t=li[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Kd)return xr[e]=t[a];return e}var Xd=Mn("animationend"),Qd=Mn("animationiteration"),Jd=Mn("animationstart"),py=Mn("transitionrun"),vy=Mn("transitionstart"),yy=Mn("transitioncancel"),Fd=Mn("transitionend"),$d=new Map,Cr="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(" ");Cr.push("scrollEnd");function sa(e,t){$d.set(e,t),Nn(t,[e])}var Ts=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)},Ft=[],si=0,Nr=0;function As(){for(var e=si,t=Nr=si=0;t<e;){var a=Ft[t];Ft[t++]=null;var i=Ft[t];Ft[t++]=null;var s=Ft[t];Ft[t++]=null;var c=Ft[t];if(Ft[t++]=null,i!==null&&s!==null){var f=i.pending;f===null?s.next=s:(s.next=f.next,f.next=s),i.pending=s}c!==0&&Wd(a,s,c)}}function Ms(e,t,a,i){Ft[si++]=e,Ft[si++]=t,Ft[si++]=a,Ft[si++]=i,Nr|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Tr(e,t,a,i){return Ms(e,t,a,i),ws(e)}function wn(e,t){return Ms(e,null,null,t),ws(e)}function Wd(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Rt(a),e=c.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=a|536870912),c):null}function ws(e){if(50<Ul)throw Ul=0,zc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function gy(e,t,a,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,a,i){return new gy(e,t,a,i)}function Ar(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ba(e,t){var a=e.alternate;return a===null?(a=Lt(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 Id(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 Os(e,t,a,i,s,c){var f=0;if(i=e,typeof e=="function")Ar(e)&&(f=1);else if(typeof e=="string")f=Cg(e,a,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Kt:return e=Lt(31,a,t,s),e.elementType=Kt,e.lanes=c,e;case Ve:return On(a.children,s,c,t);case et:f=8,s|=24;break;case Qe:return e=Lt(12,a,t,s|2),e.elementType=Qe,e.lanes=c,e;case ut:return e=Lt(13,a,t,s),e.elementType=ut,e.lanes=c,e;case Ye:return e=Lt(19,a,t,s),e.elementType=Ye,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fe:f=10;break e;case Ue:f=9;break e;case Be:f=11;break e;case ee:f=14;break e;case rt:f=16,i=null;break e}f=29,a=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Lt(f,a,t,s),t.elementType=e,t.type=i,t.lanes=c,t}function On(e,t,a,i){return e=Lt(7,e,i,t),e.lanes=a,e}function Mr(e,t,a){return e=Lt(6,e,null,t),e.lanes=a,e}function Pd(e){var t=Lt(18,null,null,0);return t.stateNode=e,t}function wr(e,t,a){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ef=new WeakMap;function $t(e,t){if(typeof e=="object"&&e!==null){var a=ef.get(e);return a!==void 0?a:(t={value:e,source:t,stack:cs(t)},ef.set(e,t),t)}return{value:e,source:t,stack:cs(t)}}var ri=[],ci=0,Es=null,pl=0,Wt=[],It=0,Ba=null,oa=1,da="";function Sa(e,t){ri[ci++]=pl,ri[ci++]=Es,Es=e,pl=t}function tf(e,t,a){Wt[It++]=oa,Wt[It++]=da,Wt[It++]=Ba,Ba=e;var i=oa;e=da;var s=32-Rt(i)-1;i&=~(1<<s),a+=1;var c=32-Rt(t)+s;if(30<c){var f=s-s%5;c=(i&(1<<f)-1).toString(32),i>>=f,s-=f,oa=1<<32-Rt(t)+s|a<<s|i,da=c+e}else oa=1<<c|a<<s|i,da=e}function Or(e){e.return!==null&&(Sa(e,1),tf(e,1,0))}function Er(e){for(;e===Es;)Es=ri[--ci],ri[ci]=null,pl=ri[--ci],ri[ci]=null;for(;e===Ba;)Ba=Wt[--It],Wt[It]=null,da=Wt[--It],Wt[It]=null,oa=Wt[--It],Wt[It]=null}function af(e,t){Wt[It++]=oa,Wt[It++]=da,Wt[It++]=Ba,oa=t.id,da=t.overflow,Ba=e}var yt=null,Ge=null,_e=!1,qa=null,Pt=!1,Dr=Error(u(519));function Va(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vl($t(t,e)),Dr}function nf(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[vt]=e,t[At]=i,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<Zl.length;a++)ve(Zl[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),vd(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),gd(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Sm(t.textContent,a)?(i.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),i.onScroll!=null&&ve("scroll",t),i.onScrollEnd!=null&&ve("scrollend",t),i.onClick!=null&&(t.onclick=ga),t=!0):t=!1,t||Va(e,!0)}function lf(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:yt=yt.return}}function oi(e){if(e!==yt)return!1;if(!_e)return lf(e),_e=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Fc(e.type,e.memoizedProps)),a=!a),a&&Ge&&Va(e),lf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=Em(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=Em(e)}else t===27?(t=Ge,an(e.type)?(e=eo,eo=null,Ge=e):Ge=t):Ge=yt?ta(e.stateNode.nextSibling):null;return!0}function En(){Ge=yt=null,_e=!1}function kr(){var e=qa;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),qa=null),e}function vl(e){qa===null?qa=[e]:qa.push(e)}var jr=S(null),Dn=null,xa=null;function Ya(e,t,a){H(jr,t._currentValue),t._currentValue=a}function Ca(e){e._currentValue=jr.current,j(jr)}function zr(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Rr(e,t,a,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var f=s.child;c=c.firstContext;e:for(;c!==null;){var m=c;c=s;for(var g=0;g<t.length;g++)if(m.context===t[g]){c.lanes|=a,m=c.alternate,m!==null&&(m.lanes|=a),zr(c.return,a,e),i||(f=null);break e}c=m.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(u(341));f.lanes|=a,c=f.alternate,c!==null&&(c.lanes|=a),zr(f,a,e),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===e){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function di(e,t,a,i){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(u(387));if(f=f.memoizedProps,f!==null){var m=s.type;Ut(s.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(s===Ce.current){if(f=s.alternate,f===null)throw Error(u(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Yl):e=[Yl])}s=s.return}e!==null&&Rr(t,e,a,i),t.flags|=262144}function Ds(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kn(e){Dn=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return sf(Dn,e)}function ks(e,t){return Dn===null&&kn(e),sf(e,t)}function sf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xa===null){if(e===null)throw Error(u(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return a}var _y=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},by=r.unstable_scheduleCallback,Sy=r.unstable_NormalPriority,tt={$$typeof:fe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ur(){return{controller:new _y,data:new Map,refCount:0}}function yl(e){e.refCount--,e.refCount===0&&by(Sy,function(){e.controller.abort()})}var gl=null,Lr=0,fi=0,hi=null;function xy(e,t){if(gl===null){var a=gl=[];Lr=0,fi=Bc(),hi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Lr++,t.then(uf,uf),t}function uf(){if(--Lr===0&&gl!==null){hi!==null&&(hi.status="fulfilled");var e=gl;gl=null,fi=0,hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Cy(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),i}var rf=O.S;O.S=function(e,t){Kh=We(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&xy(e,t),rf!==null&&rf(e,t)};var jn=S(null);function Zr(){var e=jn.current;return e!==null?e:qe.pooledCache}function js(e,t){t===null?H(jn,jn.current):H(jn,t.pool)}function cf(){var e=Zr();return e===null?null:{parent:tt._currentValue,pool:e}}var mi=Error(u(460)),Hr=Error(u(474)),zs=Error(u(542)),Rs={then:function(){}};function of(e){return e=e.status,e==="fulfilled"||e==="rejected"}function df(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ga,ga),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hf(e),e;default:if(typeof t.status=="string")t.then(ga,ga);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hf(e),e}throw Rn=t,mi}}function zn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Rn=a,mi):a}}var Rn=null;function ff(){if(Rn===null)throw Error(u(459));var e=Rn;return Rn=null,e}function hf(e){if(e===mi||e===zs)throw Error(u(483))}var pi=null,_l=0;function Us(e){var t=_l;return _l+=1,pi===null&&(pi=[]),df(pi,e,t)}function bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ls(e,t){throw t.$$typeof===P?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function mf(e){function t(x,b){if(e){var C=x.deletions;C===null?(x.deletions=[b],x.flags|=16):C.push(b)}}function a(x,b){if(!e)return null;for(;b!==null;)t(x,b),b=b.sibling;return null}function i(x){for(var b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function s(x,b){return x=ba(x,b),x.index=0,x.sibling=null,x}function c(x,b,C){return x.index=C,e?(C=x.alternate,C!==null?(C=C.index,C<b?(x.flags|=67108866,b):C):(x.flags|=67108866,b)):(x.flags|=1048576,b)}function f(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function m(x,b,C,E){return b===null||b.tag!==6?(b=Mr(C,x.mode,E),b.return=x,b):(b=s(b,C),b.return=x,b)}function g(x,b,C,E){var $=C.type;return $===Ve?w(x,b,C.props.children,E,C.key):b!==null&&(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===rt&&zn($)===b.type)?(b=s(b,C.props),bl(b,C),b.return=x,b):(b=Os(C.type,C.key,C.props,null,x.mode,E),bl(b,C),b.return=x,b)}function N(x,b,C,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=wr(C,x.mode,E),b.return=x,b):(b=s(b,C.children||[]),b.return=x,b)}function w(x,b,C,E,$){return b===null||b.tag!==7?(b=On(C,x.mode,E,$),b.return=x,b):(b=s(b,C),b.return=x,b)}function k(x,b,C){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Mr(""+b,x.mode,C),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case we:return C=Os(b.type,b.key,b.props,null,x.mode,C),bl(C,b),C.return=x,C;case Oe:return b=wr(b,x.mode,C),b.return=x,b;case rt:return b=zn(b),k(x,b,C)}if(jt(b)||xt(b))return b=On(b,x.mode,C,null),b.return=x,b;if(typeof b.then=="function")return k(x,Us(b),C);if(b.$$typeof===fe)return k(x,ks(x,b),C);Ls(x,b)}return null}function A(x,b,C,E){var $=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return $!==null?null:m(x,b,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case we:return C.key===$?g(x,b,C,E):null;case Oe:return C.key===$?N(x,b,C,E):null;case rt:return C=zn(C),A(x,b,C,E)}if(jt(C)||xt(C))return $!==null?null:w(x,b,C,E,null);if(typeof C.then=="function")return A(x,b,Us(C),E);if(C.$$typeof===fe)return A(x,b,ks(x,C),E);Ls(x,C)}return null}function M(x,b,C,E,$){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return x=x.get(C)||null,m(b,x,""+E,$);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case we:return x=x.get(E.key===null?C:E.key)||null,g(b,x,E,$);case Oe:return x=x.get(E.key===null?C:E.key)||null,N(b,x,E,$);case rt:return E=zn(E),M(x,b,C,E,$)}if(jt(E)||xt(E))return x=x.get(C)||null,w(b,x,E,$,null);if(typeof E.then=="function")return M(x,b,C,Us(E),$);if(E.$$typeof===fe)return M(x,b,C,ks(b,E),$);Ls(b,E)}return null}function V(x,b,C,E){for(var $=null,Ne=null,X=b,ce=b=0,ge=null;X!==null&&ce<C.length;ce++){X.index>ce?(ge=X,X=null):ge=X.sibling;var Te=A(x,X,C[ce],E);if(Te===null){X===null&&(X=ge);break}e&&X&&Te.alternate===null&&t(x,X),b=c(Te,b,ce),Ne===null?$=Te:Ne.sibling=Te,Ne=Te,X=ge}if(ce===C.length)return a(x,X),_e&&Sa(x,ce),$;if(X===null){for(;ce<C.length;ce++)X=k(x,C[ce],E),X!==null&&(b=c(X,b,ce),Ne===null?$=X:Ne.sibling=X,Ne=X);return _e&&Sa(x,ce),$}for(X=i(X);ce<C.length;ce++)ge=M(X,x,ce,C[ce],E),ge!==null&&(e&&ge.alternate!==null&&X.delete(ge.key===null?ce:ge.key),b=c(ge,b,ce),Ne===null?$=ge:Ne.sibling=ge,Ne=ge);return e&&X.forEach(function(rn){return t(x,rn)}),_e&&Sa(x,ce),$}function W(x,b,C,E){if(C==null)throw Error(u(151));for(var $=null,Ne=null,X=b,ce=b=0,ge=null,Te=C.next();X!==null&&!Te.done;ce++,Te=C.next()){X.index>ce?(ge=X,X=null):ge=X.sibling;var rn=A(x,X,Te.value,E);if(rn===null){X===null&&(X=ge);break}e&&X&&rn.alternate===null&&t(x,X),b=c(rn,b,ce),Ne===null?$=rn:Ne.sibling=rn,Ne=rn,X=ge}if(Te.done)return a(x,X),_e&&Sa(x,ce),$;if(X===null){for(;!Te.done;ce++,Te=C.next())Te=k(x,Te.value,E),Te!==null&&(b=c(Te,b,ce),Ne===null?$=Te:Ne.sibling=Te,Ne=Te);return _e&&Sa(x,ce),$}for(X=i(X);!Te.done;ce++,Te=C.next())Te=M(X,x,ce,Te.value,E),Te!==null&&(e&&Te.alternate!==null&&X.delete(Te.key===null?ce:Te.key),b=c(Te,b,ce),Ne===null?$=Te:Ne.sibling=Te,Ne=Te);return e&&X.forEach(function(zg){return t(x,zg)}),_e&&Sa(x,ce),$}function He(x,b,C,E){if(typeof C=="object"&&C!==null&&C.type===Ve&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case we:e:{for(var $=C.key;b!==null;){if(b.key===$){if($=C.type,$===Ve){if(b.tag===7){a(x,b.sibling),E=s(b,C.props.children),E.return=x,x=E;break e}}else if(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===rt&&zn($)===b.type){a(x,b.sibling),E=s(b,C.props),bl(E,C),E.return=x,x=E;break e}a(x,b);break}else t(x,b);b=b.sibling}C.type===Ve?(E=On(C.props.children,x.mode,E,C.key),E.return=x,x=E):(E=Os(C.type,C.key,C.props,null,x.mode,E),bl(E,C),E.return=x,x=E)}return f(x);case Oe:e:{for($=C.key;b!==null;){if(b.key===$)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){a(x,b.sibling),E=s(b,C.children||[]),E.return=x,x=E;break e}else{a(x,b);break}else t(x,b);b=b.sibling}E=wr(C,x.mode,E),E.return=x,x=E}return f(x);case rt:return C=zn(C),He(x,b,C,E)}if(jt(C))return V(x,b,C,E);if(xt(C)){if($=xt(C),typeof $!="function")throw Error(u(150));return C=$.call(C),W(x,b,C,E)}if(typeof C.then=="function")return He(x,b,Us(C),E);if(C.$$typeof===fe)return He(x,b,ks(x,C),E);Ls(x,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,b!==null&&b.tag===6?(a(x,b.sibling),E=s(b,C),E.return=x,x=E):(a(x,b),E=Mr(C,x.mode,E),E.return=x,x=E),f(x)):a(x,b)}return function(x,b,C,E){try{_l=0;var $=He(x,b,C,E);return pi=null,$}catch(X){if(X===mi||X===zs)throw X;var Ne=Lt(29,X,null,x.mode);return Ne.lanes=E,Ne.return=x,Ne}finally{}}}var Un=mf(!0),pf=mf(!1),Ga=!1;function Br(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qr(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 Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ee&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=ws(e),Wd(e,null,a),t}return Ms(e,i,t,a),ws(e)}function Sl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ld(e,a)}}function Vr(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=f:c=c.next=f,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Yr=!1;function xl(){if(Yr){var e=hi;if(e!==null)throw e}}function Cl(e,t,a,i){Yr=!1;var s=e.updateQueue;Ga=!1;var c=s.firstBaseUpdate,f=s.lastBaseUpdate,m=s.shared.pending;if(m!==null){s.shared.pending=null;var g=m,N=g.next;g.next=null,f===null?c=N:f.next=N,f=g;var w=e.alternate;w!==null&&(w=w.updateQueue,m=w.lastBaseUpdate,m!==f&&(m===null?w.firstBaseUpdate=N:m.next=N,w.lastBaseUpdate=g))}if(c!==null){var k=s.baseState;f=0,w=N=g=null,m=c;do{var A=m.lane&-536870913,M=A!==m.lane;if(M?(ye&A)===A:(i&A)===A){A!==0&&A===fi&&(Yr=!0),w!==null&&(w=w.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var V=e,W=m;A=t;var He=a;switch(W.tag){case 1:if(V=W.payload,typeof V=="function"){k=V.call(He,k,A);break e}k=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=W.payload,A=typeof V=="function"?V.call(He,k,A):V,A==null)break e;k=L({},k,A);break e;case 2:Ga=!0}}A=m.callback,A!==null&&(e.flags|=64,M&&(e.flags|=8192),M=s.callbacks,M===null?s.callbacks=[A]:M.push(A))}else M={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},w===null?(N=w=M,g=k):w=w.next=M,f|=A;if(m=m.next,m===null){if(m=s.shared.pending,m===null)break;M=m,m=M.next,M.next=null,s.lastBaseUpdate=M,s.shared.pending=null}}while(!0);w===null&&(g=k),s.baseState=g,s.firstBaseUpdate=N,s.lastBaseUpdate=w,c===null&&(s.shared.lanes=0),Wa|=f,e.lanes=f,e.memoizedState=k}}function vf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function yf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)vf(a[e],t)}var vi=S(null),Zs=S(0);function gf(e,t){e=ka,H(Zs,e),H(vi,t),ka=e|t.baseLanes}function Gr(){H(Zs,ka),H(vi,vi.current)}function Kr(){ka=Zs.current,j(vi),j(Zs)}var Zt=S(null),ea=null;function Qa(e){var t=e.alternate;H(Ie,Ie.current&1),H(Zt,e),ea===null&&(t===null||vi.current!==null||t.memoizedState!==null)&&(ea=e)}function Xr(e){H(Ie,Ie.current),H(Zt,e),ea===null&&(ea=e)}function _f(e){e.tag===22?(H(Ie,Ie.current),H(Zt,e),ea===null&&(ea=e)):Ja()}function Ja(){H(Ie,Ie.current),H(Zt,Zt.current)}function Ht(e){j(Zt),ea===e&&(ea=null),j(Ie)}var Ie=S(0);function Hs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ic(a)||Pc(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 Na=0,re=null,Le=null,at=null,Bs=!1,yi=!1,Ln=!1,qs=0,Nl=0,gi=null,Ny=0;function Fe(){throw Error(u(321))}function Qr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ut(e[a],t[a]))return!1;return!0}function Jr(e,t,a,i,s,c){return Na=c,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?ah:cc,Ln=!1,c=a(i,s),Ln=!1,yi&&(c=Sf(t,a,i,s)),bf(e),c}function bf(e){O.H=Ml;var t=Le!==null&&Le.next!==null;if(Na=0,at=Le=re=null,Bs=!1,Nl=0,gi=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&Ds(e)&&(nt=!0))}function Sf(e,t,a,i){re=e;var s=0;do{if(yi&&(gi=null),Nl=0,yi=!1,25<=s)throw Error(u(301));if(s+=1,at=Le=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}O.H=nh,c=t(a,i)}while(yi);return c}function Ty(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Tl(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(re.flags|=1024),t}function Fr(){var e=qs!==0;return qs=0,e}function $r(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Wr(e){if(Bs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bs=!1}Na=0,at=Le=re=null,yi=!1,Nl=qs=0,gi=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?re.memoizedState=at=e:at=at.next=e,at}function Pe(){if(Le===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=at===null?re.memoizedState:at.next;if(t!==null)at=t,Le=e;else{if(e===null)throw re.alternate===null?Error(u(467)):Error(u(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},at===null?re.memoizedState=at=e:at=at.next=e}return at}function Vs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tl(e){var t=Nl;return Nl+=1,gi===null&&(gi=[]),e=df(gi,e,t),t=re,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?ah:cc),e}function Ys(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tl(e);if(e.$$typeof===fe)return gt(e)}throw Error(u(438,String(e)))}function Ir(e){var t=null,a=re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=re.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Vs(),re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=pa;return t.index++,a}function Ta(e,t){return typeof t=="function"?t(e):t}function Gs(e){var t=Pe();return Pr(t,Le,e)}function Pr(e,t,a){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=a;var s=e.baseQueue,c=i.pending;if(c!==null){if(s!==null){var f=s.next;s.next=c.next,c.next=f}t.baseQueue=s=c,i.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var m=f=null,g=null,N=t,w=!1;do{var k=N.lane&-536870913;if(k!==N.lane?(ye&k)===k:(Na&k)===k){var A=N.revertLane;if(A===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),k===fi&&(w=!0);else if((Na&A)===A){N=N.next,A===fi&&(w=!0);continue}else k={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},g===null?(m=g=k,f=c):g=g.next=k,re.lanes|=A,Wa|=A;k=N.action,Ln&&a(c,k),c=N.hasEagerState?N.eagerState:a(c,k)}else A={lane:k,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},g===null?(m=g=A,f=c):g=g.next=A,re.lanes|=k,Wa|=k;N=N.next}while(N!==null&&N!==t);if(g===null?f=c:g.next=m,!Ut(c,e.memoizedState)&&(nt=!0,w&&(a=hi,a!==null)))throw a;e.memoizedState=c,e.baseState=f,e.baseQueue=g,i.lastRenderedState=c}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ec(e){var t=Pe(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var i=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var f=s=s.next;do c=e(c,f.action),f=f.next;while(f!==s);Ut(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function xf(e,t,a){var i=re,s=Pe(),c=_e;if(c){if(a===void 0)throw Error(u(407));a=a()}else a=t();var f=!Ut((Le||s).memoizedState,a);if(f&&(s.memoizedState=a,nt=!0),s=s.queue,nc(Tf.bind(null,i,s,e),[e]),s.getSnapshot!==t||f||at!==null&&at.memoizedState.tag&1){if(i.flags|=2048,_i(9,{destroy:void 0},Nf.bind(null,i,s,a,t),null),qe===null)throw Error(u(349));c||(Na&127)!==0||Cf(i,t,a)}return a}function Cf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=re.updateQueue,t===null?(t=Vs(),re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Nf(e,t,a,i){t.value=a,t.getSnapshot=i,Af(t)&&Mf(e)}function Tf(e,t,a){return a(function(){Af(t)&&Mf(e)})}function Af(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ut(e,a)}catch{return!0}}function Mf(e){var t=wn(e,2);t!==null&&kt(t,e,2)}function tc(e){var t=Tt();if(typeof e=="function"){var a=e;if(e=a(),Ln){La(!0);try{a()}finally{La(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t}function wf(e,t,a,i){return e.baseState=a,Pr(e,Le,typeof i=="function"?i:Ta)}function Ay(e,t,a,i,s){if(Qs(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};O.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Of(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Of(e,t){var a=t.action,i=t.payload,s=e.state;if(t.isTransition){var c=O.T,f={};O.T=f;try{var m=a(s,i),g=O.S;g!==null&&g(f,m),Ef(e,t,m)}catch(N){ac(e,t,N)}finally{c!==null&&f.types!==null&&(c.types=f.types),O.T=c}}else try{c=a(s,i),Ef(e,t,c)}catch(N){ac(e,t,N)}}function Ef(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Df(e,t,i)},function(i){return ac(e,t,i)}):Df(e,t,a)}function Df(e,t,a){t.status="fulfilled",t.value=a,kf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Of(e,a)))}function ac(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,kf(t),t=t.next;while(t!==i)}e.action=null}function kf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jf(e,t){return t}function zf(e,t){if(_e){var a=qe.formState;if(a!==null){e:{var i=re;if(_e){if(Ge){t:{for(var s=Ge,c=Pt;s.nodeType!==8;){if(!c){s=null;break t}if(s=ta(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Ge=ta(s.nextSibling),i=s.data==="F!";break e}}Va(i)}i=!1}i&&(t=a[0])}}return a=Tt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jf,lastRenderedState:t},a.queue=i,a=Pf.bind(null,re,i),i.dispatch=a,i=tc(!1),c=rc.bind(null,re,!1,i.queue),i=Tt(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,a=Ay.bind(null,re,s,c,a),s.dispatch=a,i.memoizedState=e,[t,a,!1]}function Rf(e){var t=Pe();return Uf(t,Le,e)}function Uf(e,t,a){if(t=Pr(e,t,jf)[0],e=Gs(Ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Tl(t)}catch(f){throw f===mi?zs:f}else i=t;t=Pe();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(re.flags|=2048,_i(9,{destroy:void 0},My.bind(null,s,a),null)),[i,c,e]}function My(e,t){e.action=t}function Lf(e){var t=Pe(),a=Le;if(a!==null)return Uf(t,a,e);Pe(),t=t.memoizedState,a=Pe();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function _i(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=re.updateQueue,t===null&&(t=Vs(),re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function Zf(){return Pe().memoizedState}function Ks(e,t,a,i){var s=Tt();re.flags|=e,s.memoizedState=_i(1|t,{destroy:void 0},a,i===void 0?null:i)}function Xs(e,t,a,i){var s=Pe();i=i===void 0?null:i;var c=s.memoizedState.inst;Le!==null&&i!==null&&Qr(i,Le.memoizedState.deps)?s.memoizedState=_i(t,c,a,i):(re.flags|=e,s.memoizedState=_i(1|t,c,a,i))}function Hf(e,t){Ks(8390656,8,e,t)}function nc(e,t){Xs(2048,8,e,t)}function wy(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Vs(),re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Bf(e){var t=Pe().memoizedState;return wy({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function qf(e,t){return Xs(4,2,e,t)}function Vf(e,t){return Xs(4,4,e,t)}function Yf(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 Gf(e,t,a){a=a!=null?a.concat([e]):null,Xs(4,4,Yf.bind(null,t,e),a)}function ic(){}function Kf(e,t){var a=Pe();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Qr(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Xf(e,t){var a=Pe();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Qr(t,i[1]))return i[0];if(i=e(),Ln){La(!0);try{e()}finally{La(!1)}}return a.memoizedState=[i,t],i}function lc(e,t,a){return a===void 0||(Na&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Qh(),re.lanes|=e,Wa|=e,a)}function Qf(e,t,a,i){return Ut(a,t)?a:vi.current!==null?(e=lc(e,a,i),Ut(e,t)||(nt=!0),e):(Na&42)===0||(Na&1073741824)!==0&&(ye&261930)===0?(nt=!0,e.memoizedState=a):(e=Qh(),re.lanes|=e,Wa|=e,t)}function Jf(e,t,a,i,s){var c=Z.p;Z.p=c!==0&&8>c?c:8;var f=O.T,m={};O.T=m,rc(e,!1,t,a);try{var g=s(),N=O.S;if(N!==null&&N(m,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var w=Cy(g,i);Al(e,t,w,Vt(e))}else Al(e,t,i,Vt(e))}catch(k){Al(e,t,{then:function(){},status:"rejected",reason:k},Vt())}finally{Z.p=c,f!==null&&m.types!==null&&(f.types=m.types),O.T=f}}function Oy(){}function sc(e,t,a,i){if(e.tag!==5)throw Error(u(476));var s=Ff(e).queue;Jf(e,s,t,I,a===null?Oy:function(){return $f(e),a(i)})}function Ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:I},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $f(e){var t=Ff(e);t.next===null&&(t=e.alternate.memoizedState),Al(e,t.next.queue,{},Vt())}function uc(){return gt(Yl)}function Wf(){return Pe().memoizedState}function If(){return Pe().memoizedState}function Ey(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Vt();e=Ka(a);var i=Xa(t,e,a);i!==null&&(kt(i,t,a),Sl(i,t,a)),t={cache:Ur()},e.payload=t;return}t=t.return}}function Dy(e,t,a){var i=Vt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Qs(e)?eh(t,a):(a=Tr(e,t,a,i),a!==null&&(kt(a,e,i),th(a,t,i)))}function Pf(e,t,a){var i=Vt();Al(e,t,a,i)}function Al(e,t,a,i){var s={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))eh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,m=c(f,a);if(s.hasEagerState=!0,s.eagerState=m,Ut(m,f))return Ms(e,t,s,0),qe===null&&As(),!1}catch{}finally{}if(a=Tr(e,t,s,i),a!==null)return kt(a,e,i),th(a,t,i),!0}return!1}function rc(e,t,a,i){if(i={lane:2,revertLane:Bc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Qs(e)){if(t)throw Error(u(479))}else t=Tr(e,a,i,2),t!==null&&kt(t,e,2)}function Qs(e){var t=e.alternate;return e===re||t!==null&&t===re}function eh(e,t){yi=Bs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function th(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ld(e,a)}}var Ml={readContext:gt,use:Ys,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Ml.useEffectEvent=Fe;var ah={readContext:gt,use:Ys,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Hf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ks(4194308,4,Yf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ks(4194308,4,e,t)},useInsertionEffect:function(e,t){Ks(4,2,e,t)},useMemo:function(e,t){var a=Tt();t=t===void 0?null:t;var i=e();if(Ln){La(!0);try{e()}finally{La(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Tt();if(a!==void 0){var s=a(t);if(Ln){La(!0);try{a(t)}finally{La(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=Dy.bind(null,re,e),[i.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=tc(e);var t=e.queue,a=Pf.bind(null,re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ic,useDeferredValue:function(e,t){var a=Tt();return lc(a,e,t)},useTransition:function(){var e=tc(!1);return e=Jf.bind(null,re,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=re,s=Tt();if(_e){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),qe===null)throw Error(u(349));(ye&127)!==0||Cf(i,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,Hf(Tf.bind(null,i,c,e),[e]),i.flags|=2048,_i(9,{destroy:void 0},Nf.bind(null,i,c,a,t),null),a},useId:function(){var e=Tt(),t=qe.identifierPrefix;if(_e){var a=da,i=oa;a=(i&~(1<<32-Rt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=qs++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Ny++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:uc,useFormState:zf,useActionState:zf,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=rc.bind(null,re,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ir,useCacheRefresh:function(){return Tt().memoizedState=Ey.bind(null,re)},useEffectEvent:function(e){var t=Tt(),a={impl:e};return t.memoizedState=a,function(){if((Ee&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},cc={readContext:gt,use:Ys,useCallback:Kf,useContext:gt,useEffect:nc,useImperativeHandle:Gf,useInsertionEffect:qf,useLayoutEffect:Vf,useMemo:Xf,useReducer:Gs,useRef:Zf,useState:function(){return Gs(Ta)},useDebugValue:ic,useDeferredValue:function(e,t){var a=Pe();return Qf(a,Le.memoizedState,e,t)},useTransition:function(){var e=Gs(Ta)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]},useSyncExternalStore:xf,useId:Wf,useHostTransitionStatus:uc,useFormState:Rf,useActionState:Rf,useOptimistic:function(e,t){var a=Pe();return wf(a,Le,e,t)},useMemoCache:Ir,useCacheRefresh:If};cc.useEffectEvent=Bf;var nh={readContext:gt,use:Ys,useCallback:Kf,useContext:gt,useEffect:nc,useImperativeHandle:Gf,useInsertionEffect:qf,useLayoutEffect:Vf,useMemo:Xf,useReducer:ec,useRef:Zf,useState:function(){return ec(Ta)},useDebugValue:ic,useDeferredValue:function(e,t){var a=Pe();return Le===null?lc(a,e,t):Qf(a,Le.memoizedState,e,t)},useTransition:function(){var e=ec(Ta)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]},useSyncExternalStore:xf,useId:Wf,useHostTransitionStatus:uc,useFormState:Lf,useActionState:Lf,useOptimistic:function(e,t){var a=Pe();return Le!==null?wf(a,Le,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ir,useCacheRefresh:If};nh.useEffectEvent=Bf;function oc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:L({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var dc={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Vt(),s=Ka(i);s.payload=t,a!=null&&(s.callback=a),t=Xa(e,s,i),t!==null&&(kt(t,e,i),Sl(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Vt(),s=Ka(i);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Xa(e,s,i),t!==null&&(kt(t,e,i),Sl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Vt(),i=Ka(a);i.tag=2,t!=null&&(i.callback=t),t=Xa(e,i,a),t!==null&&(kt(t,e,a),Sl(t,e,a))}};function ih(e,t,a,i,s,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,f):t.prototype&&t.prototype.isPureReactComponent?!hl(a,i)||!hl(s,c):!0}function lh(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function Zn(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=L({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function sh(e){Ts(e)}function uh(e){console.error(e)}function rh(e){Ts(e)}function Js(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ch(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function fc(e,t,a){return a=Ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Js(e,t)},a}function oh(e){return e=Ka(e),e.tag=3,e}function dh(e,t,a,i){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=i.value;e.payload=function(){return s(c)},e.callback=function(){ch(t,a,i)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){ch(t,a,i),typeof s!="function"&&(Ia===null?Ia=new Set([this]):Ia.add(this));var m=i.stack;this.componentDidCatch(i.value,{componentStack:m!==null?m:""})})}function ky(e,t,a,i,s){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&di(t,a,s,!0),a=Zt.current,a!==null){switch(a.tag){case 31:case 13:return ea===null?su():a.alternate===null&&$e===0&&($e=3),a.flags&=-257,a.flags|=65536,a.lanes=s,i===Rs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Lc(e,i,s)),!1;case 22:return a.flags|=65536,i===Rs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Lc(e,i,s)),!1}throw Error(u(435,a.tag))}return Lc(e,i,s),su(),!1}if(_e)return t=Zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Dr&&(e=Error(u(422),{cause:i}),vl($t(e,a)))):(i!==Dr&&(t=Error(u(423),{cause:i}),vl($t(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=$t(i,a),s=fc(e.stateNode,i,s),Vr(e,s),$e!==4&&($e=2)),!1;var c=Error(u(520),{cause:i});if(c=$t(c,a),Rl===null?Rl=[c]:Rl.push(c),$e!==4&&($e=2),t===null)return!0;i=$t(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=fc(a.stateNode,i,e),Vr(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ia===null||!Ia.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=oh(s),dh(s,e,a,i),Vr(a,s),!1}a=a.return}while(a!==null);return!1}var hc=Error(u(461)),nt=!1;function _t(e,t,a,i){t.child=e===null?pf(t,null,a,i):Un(t,e.child,a,i)}function fh(e,t,a,i,s){a=a.render;var c=t.ref;if("ref"in i){var f={};for(var m in i)m!=="ref"&&(f[m]=i[m])}else f=i;return kn(t),i=Jr(e,t,a,f,c,s),m=Fr(),e!==null&&!nt?($r(e,t,s),Aa(e,t,s)):(_e&&m&&Or(t),t.flags|=1,_t(e,t,i,s),t.child)}function hh(e,t,a,i,s){if(e===null){var c=a.type;return typeof c=="function"&&!Ar(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,mh(e,t,c,i,s)):(e=Os(a.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Sc(e,s)){var f=c.memoizedProps;if(a=a.compare,a=a!==null?a:hl,a(f,i)&&e.ref===t.ref)return Aa(e,t,s)}return t.flags|=1,e=ba(c,i),e.ref=t.ref,e.return=t,t.child=e}function mh(e,t,a,i,s){if(e!==null){var c=e.memoizedProps;if(hl(c,i)&&e.ref===t.ref)if(nt=!1,t.pendingProps=i=c,Sc(e,s))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Aa(e,t,s)}return mc(e,t,a,i,s)}function ph(e,t,a,i){var s=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~c}else i=0,t.child=null;return vh(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&js(t,c!==null?c.cachePool:null),c!==null?gf(t,c):Gr(),_f(t);else return i=t.lanes=536870912,vh(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(js(t,c.cachePool),gf(t,c),Ja(),t.memoizedState=null):(e!==null&&js(t,null),Gr(),Ja());return _t(e,t,s,a),t.child}function wl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vh(e,t,a,i,s){var c=Zr();return c=c===null?null:{parent:tt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&js(t,null),Gr(),_f(t),e!==null&&di(e,t,i,!0),t.childLanes=s,null}function Fs(e,t){return t=Ws({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yh(e,t,a){return Un(t,e.child,null,a),e=Fs(t,t.pendingProps),e.flags|=2,Ht(t),t.memoizedState=null,e}function jy(e,t,a){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(i.mode==="hidden")return e=Fs(t,i),t.lanes=536870912,wl(null,e);if(Xr(t),(e=Ge)?(e=Om(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:oa,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=Pd(e),a.return=t,t.child=a,yt=t,Ge=null)):e=null,e===null)throw Va(t);return t.lanes=536870912,null}return Fs(t,i)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Xr(t),s)if(t.flags&256)t.flags&=-257,t=yh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||di(e,t,a,!1),s=(a&e.childLanes)!==0,nt||s){if(i=qe,i!==null&&(f=sd(i,a),f!==0&&f!==c.retryLane))throw c.retryLane=f,wn(e,f),kt(i,e,f),hc;su(),t=yh(e,t,a)}else e=c.treeContext,Ge=ta(f.nextSibling),yt=t,_e=!0,qa=null,Pt=!1,e!==null&&af(t,e),t=Fs(t,i),t.flags|=4096;return t}return e=ba(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function $s(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(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function mc(e,t,a,i,s){return kn(t),a=Jr(e,t,a,i,void 0,s),i=Fr(),e!==null&&!nt?($r(e,t,s),Aa(e,t,s)):(_e&&i&&Or(t),t.flags|=1,_t(e,t,a,s),t.child)}function gh(e,t,a,i,s,c){return kn(t),t.updateQueue=null,a=Sf(t,i,a,s),bf(e),i=Fr(),e!==null&&!nt?($r(e,t,c),Aa(e,t,c)):(_e&&i&&Or(t),t.flags|=1,_t(e,t,a,c),t.child)}function _h(e,t,a,i,s){if(kn(t),t.stateNode===null){var c=ui,f=a.contextType;typeof f=="object"&&f!==null&&(c=gt(f)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=dc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Br(t),f=a.contextType,c.context=typeof f=="object"&&f!==null?gt(f):ui,c.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(oc(t,a,f,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&dc.enqueueReplaceState(c,c.state,null),Cl(t,i,c,s),xl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var m=t.memoizedProps,g=Zn(a,m);c.props=g;var N=c.context,w=a.contextType;f=ui,typeof w=="object"&&w!==null&&(f=gt(w));var k=a.getDerivedStateFromProps;w=typeof k=="function"||typeof c.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m||N!==f)&&lh(t,c,i,f),Ga=!1;var A=t.memoizedState;c.state=A,Cl(t,i,c,s),xl(),N=t.memoizedState,m||A!==N||Ga?(typeof k=="function"&&(oc(t,a,k,i),N=t.memoizedState),(g=Ga||ih(t,a,g,i,A,N,f))?(w||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=N),c.props=i,c.state=N,c.context=f,i=g):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,qr(e,t),f=t.memoizedProps,w=Zn(a,f),c.props=w,k=t.pendingProps,A=c.context,N=a.contextType,g=ui,typeof N=="object"&&N!==null&&(g=gt(N)),m=a.getDerivedStateFromProps,(N=typeof m=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==k||A!==g)&&lh(t,c,i,g),Ga=!1,A=t.memoizedState,c.state=A,Cl(t,i,c,s),xl();var M=t.memoizedState;f!==k||A!==M||Ga||e!==null&&e.dependencies!==null&&Ds(e.dependencies)?(typeof m=="function"&&(oc(t,a,m,i),M=t.memoizedState),(w=Ga||ih(t,a,w,i,A,M,g)||e!==null&&e.dependencies!==null&&Ds(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,M,g),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,M,g)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=M),c.props=i,c.state=M,c.context=g,i=w):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,$s(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Un(t,e.child,null,s),t.child=Un(t,null,a,s)):_t(e,t,a,s),t.memoizedState=c.state,e=t.child):e=Aa(e,t,s),e}function bh(e,t,a,i){return En(),t.flags|=256,_t(e,t,a,i),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:cf()}}function yc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=qt),e}function Sh(e,t,a){var i=t.pendingProps,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),f&&(s=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(s?Qa(t):Ja(),(e=Ge)?(e=Om(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:oa,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=Pd(e),a.return=t,t.child=a,yt=t,Ge=null)):e=null,e===null)throw Va(t);return Pc(e)?t.lanes=32:t.lanes=536870912,null}var m=i.children;return i=i.fallback,s?(Ja(),s=t.mode,m=Ws({mode:"hidden",children:m},s),i=On(i,s,a,null),m.return=t,i.return=t,m.sibling=i,t.child=m,i=t.child,i.memoizedState=vc(a),i.childLanes=yc(e,f,a),t.memoizedState=pc,wl(null,i)):(Qa(t),gc(t,m))}var g=e.memoizedState;if(g!==null&&(m=g.dehydrated,m!==null)){if(c)t.flags&256?(Qa(t),t.flags&=-257,t=_c(e,t,a)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,t=null):(Ja(),m=i.fallback,s=t.mode,i=Ws({mode:"visible",children:i.children},s),m=On(m,s,a,null),m.flags|=2,i.return=t,m.return=t,i.sibling=m,t.child=i,Un(t,e.child,null,a),i=t.child,i.memoizedState=vc(a),i.childLanes=yc(e,f,a),t.memoizedState=pc,t=wl(null,i));else if(Qa(t),Pc(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var N=f.dgst;f=N,i=Error(u(419)),i.stack="",i.digest=f,vl({value:i,source:null,stack:null}),t=_c(e,t,a)}else if(nt||di(e,t,a,!1),f=(a&e.childLanes)!==0,nt||f){if(f=qe,f!==null&&(i=sd(f,a),i!==0&&i!==g.retryLane))throw g.retryLane=i,wn(e,i),kt(f,e,i),hc;Ic(m)||su(),t=_c(e,t,a)}else Ic(m)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Ge=ta(m.nextSibling),yt=t,_e=!0,qa=null,Pt=!1,e!==null&&af(t,e),t=gc(t,i.children),t.flags|=4096);return t}return s?(Ja(),m=i.fallback,s=t.mode,g=e.child,N=g.sibling,i=ba(g,{mode:"hidden",children:i.children}),i.subtreeFlags=g.subtreeFlags&65011712,N!==null?m=ba(N,m):(m=On(m,s,a,null),m.flags|=2),m.return=t,i.return=t,i.sibling=m,t.child=i,wl(null,i),i=t.child,m=e.child.memoizedState,m===null?m=vc(a):(s=m.cachePool,s!==null?(g=tt._currentValue,s=s.parent!==g?{parent:g,pool:g}:s):s=cf(),m={baseLanes:m.baseLanes|a,cachePool:s}),i.memoizedState=m,i.childLanes=yc(e,f,a),t.memoizedState=pc,wl(e.child,i)):(Qa(t),a=e.child,e=a.sibling,a=ba(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function gc(e,t){return t=Ws({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ws(e,t){return e=Lt(22,e,null,t),e.lanes=0,e}function _c(e,t,a){return Un(t,e.child,null,a),e=gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xh(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),zr(e.return,t,a)}function bc(e,t,a,i,s,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:s,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=a,f.tailMode=s,f.treeForkCount=c)}function Ch(e,t,a){var i=t.pendingProps,s=i.revealOrder,c=i.tail;i=i.children;var f=Ie.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,H(Ie,f),_t(e,t,i,a),i=_e?pl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xh(e,a,t);else if(e.tag===19)xh(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(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Hs(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),bc(t,!1,s,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Hs(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}bc(t,!0,a,null,c,i);break;case"together":bc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Aa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Wa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(di(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(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 Sc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ds(e)))}function zy(e,t,a){switch(t.tag){case 3:pt(t,t.stateNode.containerInfo),Ya(t,tt,e.memoizedState.cache),En();break;case 27:case 5:xn(t);break;case 4:pt(t,t.stateNode.containerInfo);break;case 10:Ya(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xr(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Qa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Sh(e,t,a):(Qa(t),e=Aa(e,t,a),e!==null?e.sibling:null);Qa(t);break;case 19:var s=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(di(e,t,a,!1),i=(a&t.childLanes)!==0),s){if(i)return Ch(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),H(Ie,Ie.current),i)break;return null;case 22:return t.lanes=0,ph(e,t,a,t.pendingProps);case 24:Ya(t,tt,e.memoizedState.cache)}return Aa(e,t,a)}function Nh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Sc(e,a)&&(t.flags&128)===0)return nt=!1,zy(e,t,a);nt=(e.flags&131072)!==0}else nt=!1,_e&&(t.flags&1048576)!==0&&tf(t,pl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=zn(t.elementType),t.type=e,typeof e=="function")Ar(e)?(i=Zn(e,i),t.tag=1,t=_h(null,t,e,i,a)):(t.tag=0,t=mc(null,t,e,i,a));else{if(e!=null){var s=e.$$typeof;if(s===Be){t.tag=11,t=fh(null,t,e,i,a);break e}else if(s===ee){t.tag=14,t=hh(null,t,e,i,a);break e}}throw t=la(e)||e,Error(u(306,t,""))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,s=Zn(i,t.pendingProps),_h(e,t,i,s,a);case 3:e:{if(pt(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var c=t.memoizedState;s=c.element,qr(e,t),Cl(t,i,null,a);var f=t.memoizedState;if(i=f.cache,Ya(t,tt,i),i!==c.cache&&Rr(t,[tt],a,!0),xl(),i=f.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=bh(e,t,i,a);break e}else if(i!==s){s=$t(Error(u(424)),t),vl(s),t=bh(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=ta(e.firstChild),yt=t,_e=!0,qa=null,Pt=!0,a=pf(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(En(),i===s){t=Aa(e,t,a);break e}_t(e,t,i,a)}t=t.child}return t;case 26:return $s(e,t),e===null?(a=Rm(t.type,null,t.pendingProps,null))?t.memoizedState=a:_e||(a=t.type,e=t.pendingProps,i=hu(de.current).createElement(a),i[vt]=t,i[At]=e,bt(i,a,e),ft(i),t.stateNode=i):t.memoizedState=Rm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xn(t),e===null&&_e&&(i=t.stateNode=km(t.type,t.pendingProps,de.current),yt=t,Pt=!0,s=Ge,an(t.type)?(eo=s,Ge=ta(i.firstChild)):Ge=s),_t(e,t,t.pendingProps.children,a),$s(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((s=i=Ge)&&(i=og(i,t.type,t.pendingProps,Pt),i!==null?(t.stateNode=i,yt=t,Ge=ta(i.firstChild),Pt=!1,s=!0):s=!1),s||Va(t)),xn(t),s=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,i=c.children,Fc(s,c)?i=null:f!==null&&Fc(s,f)&&(t.flags|=32),t.memoizedState!==null&&(s=Jr(e,t,Ty,null,null,a),Yl._currentValue=s),$s(e,t),_t(e,t,i,a),t.child;case 6:return e===null&&_e&&((e=a=Ge)&&(a=dg(a,t.pendingProps,Pt),a!==null?(t.stateNode=a,yt=t,Ge=null,e=!0):e=!1),e||Va(t)),null;case 13:return Sh(e,t,a);case 4:return pt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Un(t,null,i,a):_t(e,t,i,a),t.child;case 11:return fh(e,t,t.type,t.pendingProps,a);case 7:return _t(e,t,t.pendingProps,a),t.child;case 8:return _t(e,t,t.pendingProps.children,a),t.child;case 12:return _t(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Ya(t,t.type,i.value),_t(e,t,i.children,a),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,kn(t),s=gt(s),i=i(s),t.flags|=1,_t(e,t,i,a),t.child;case 14:return hh(e,t,t.type,t.pendingProps,a);case 15:return mh(e,t,t.type,t.pendingProps,a);case 19:return Ch(e,t,a);case 31:return jy(e,t,a);case 22:return ph(e,t,a,t.pendingProps);case 24:return kn(t),i=gt(tt),e===null?(s=Zr(),s===null&&(s=qe,c=Ur(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:i,cache:s},Br(t),Ya(t,tt,s)):((e.lanes&a)!==0&&(qr(e,t),Cl(t,null,null,a),xl()),s=e.memoizedState,c=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Ya(t,tt,i)):(i=c.cache,Ya(t,tt,i),i!==s.cache&&Rr(t,[tt],a,!0))),_t(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Ma(e){e.flags|=4}function xc(e,t,a,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Wh())e.flags|=8192;else throw Rn=Rs,Hr}else e.flags&=-16777217}function Th(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bm(t))if(Wh())e.flags|=8192;else throw Rn=Rs,Hr}function Is(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nd():536870912,e.lanes|=t,Ci|=t)}function Ol(e,t){if(!_e)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 i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Ry(e,t,a){var i=t.pendingProps;switch(Er(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ca(tt),Je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?Ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kr())),Ke(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Ma(t),c!==null?(Ke(t),Th(t,c)):(Ke(t),xc(t,s,null,i,a))):c?c!==e.memoizedState?(Ma(t),Ke(t),Th(t,c)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Ma(t),Ke(t),xc(t,s,e,i,a)),null;case 27:if(Xn(t),a=de.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ma(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ke(t),null}e=Y.current,oi(t)?nf(t):(e=km(s,i,a),t.stateNode=e,Ma(t))}return Ke(t),null;case 5:if(Xn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ma(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ke(t),null}if(c=Y.current,oi(t))nf(t);else{var f=hu(de.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?f.createElement("select",{is:i.is}):f.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?f.createElement(s,{is:i.is}):f.createElement(s)}}c[vt]=t,c[At]=i;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(bt(c,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ma(t)}}return Ke(t),xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ma(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=de.current,oi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,s=yt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[vt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Sm(e.nodeValue,a)),e||Va(t,!0)}else e=hu(e).createTextNode(i),e[vt]=t,t.stateNode=e}return Ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=oi(t),a!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[vt]=t}else En(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else a=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ht(t),t):(Ht(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ke(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=oi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[vt]=t}else En(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),s=!1}else s=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Ht(t),t):(Ht(t),null)}return Ht(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==s&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Is(t,t.updateQueue),Ke(t),null);case 4:return Je(),e===null&&Gc(t.stateNode.containerInfo),Ke(t),null;case 10:return Ca(t.type),Ke(t),null;case 19:if(j(Ie),i=t.memoizedState,i===null)return Ke(t),null;if(s=(t.flags&128)!==0,c=i.rendering,c===null)if(s)Ol(i,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Hs(e),c!==null){for(t.flags|=128,Ol(i,!1),e=c.updateQueue,t.updateQueue=e,Is(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Id(a,e),a=a.sibling;return H(Ie,Ie.current&1|2),_e&&Sa(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&We()>nu&&(t.flags|=128,s=!0,Ol(i,!1),t.lanes=4194304)}else{if(!s)if(e=Hs(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Is(t,e),Ol(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!_e)return Ke(t),null}else 2*We()-i.renderingStartTime>nu&&a!==536870912&&(t.flags|=128,s=!0,Ol(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=We(),e.sibling=null,a=Ie.current,H(Ie,s?a&1|2:a&1),_e&&Sa(t,i.treeForkCount),e):(Ke(t),null);case 22:case 23:return Ht(t),Kr(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),a=t.updateQueue,a!==null&&Is(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&j(jn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ca(tt),Ke(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Uy(e,t){switch(Er(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(tt),Je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Xn(t),null;case 31:if(t.memoizedState!==null){if(Ht(t),t.alternate===null)throw Error(u(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Ie),null;case 4:return Je(),null;case 10:return Ca(t.type),null;case 22:case 23:return Ht(t),Kr(),e!==null&&j(jn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ca(tt),null;case 25:return null;default:return null}}function Ah(e,t){switch(Er(t),t.tag){case 3:Ca(tt),Je();break;case 26:case 27:case 5:Xn(t);break;case 4:Je();break;case 31:t.memoizedState!==null&&Ht(t);break;case 13:Ht(t);break;case 19:j(Ie);break;case 10:Ca(t.type);break;case 22:case 23:Ht(t),Kr(),e!==null&&j(jn);break;case 24:Ca(tt)}}function El(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){i=void 0;var c=a.create,f=a.inst;i=c(),f.destroy=i}a=a.next}while(a!==s)}}catch(m){Re(t,t.return,m)}}function Fa(e,t,a){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var c=s.next;i=c;do{if((i.tag&e)===e){var f=i.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,s=t;var g=a,N=m;try{N()}catch(w){Re(s,g,w)}}}i=i.next}while(i!==c)}}catch(w){Re(t,t.return,w)}}function Mh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{yf(t,a)}catch(i){Re(e,e.return,i)}}}function wh(e,t,a){a.props=Zn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Re(e,t,i)}}function Dl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(s){Re(e,t,s)}}function fa(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(s){Re(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Re(e,t,s)}else a.current=null}function Oh(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(s){Re(e,e.return,s)}}function Cc(e,t,a){try{var i=e.stateNode;ig(i,e.type,a,t),i[At]=t}catch(s){Re(e,e.return,s)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&an(e.type)||e.tag===4}function Nc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(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&&an(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 Tc(e,t,a){var i=e.tag;if(i===5||i===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=ga));else if(i!==4&&(i===27&&an(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Tc(e,t,a),e=e.sibling;e!==null;)Tc(e,t,a),e=e.sibling}function Ps(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&an(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ps(e,t,a),e=e.sibling;e!==null;)Ps(e,t,a),e=e.sibling}function Dh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);bt(t,i,a),t[vt]=e,t[At]=a}catch(c){Re(e,e.return,c)}}var wa=!1,it=!1,Ac=!1,kh=typeof WeakSet=="function"?WeakSet:Set,ht=null;function Ly(e,t){if(e=e.containerInfo,Qc=bu,e=Yd(e),_r(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var s=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var f=0,m=-1,g=-1,N=0,w=0,k=e,A=null;t:for(;;){for(var M;k!==a||s!==0&&k.nodeType!==3||(m=f+s),k!==c||i!==0&&k.nodeType!==3||(g=f+i),k.nodeType===3&&(f+=k.nodeValue.length),(M=k.firstChild)!==null;)A=k,k=M;for(;;){if(k===e)break t;if(A===a&&++N===s&&(m=f),A===c&&++w===i&&(g=f),(M=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=M}a=m===-1||g===-1?null:{start:m,end:g}}else a=null}a=a||{start:0,end:0}}else a=null;for(Jc={focusedElem:e,selectionRange:a},bu=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=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++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var V=Zn(a.type,s);e=i.getSnapshotBeforeUpdate(V,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(W){Re(a,a.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Wc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wc(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function jh(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:Ea(e,a),i&4&&El(5,a);break;case 1:if(Ea(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Re(a,a.return,f)}else{var s=Zn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Re(a,a.return,f)}}i&64&&Mh(a),i&512&&Dl(a,a.return);break;case 3:if(Ea(e,a),i&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{yf(e,t)}catch(f){Re(a,a.return,f)}}break;case 27:t===null&&i&4&&Dh(a);case 26:case 5:Ea(e,a),t===null&&i&4&&Oh(a),i&512&&Dl(a,a.return);break;case 12:Ea(e,a);break;case 31:Ea(e,a),i&4&&Uh(e,a);break;case 13:Ea(e,a),i&4&&Lh(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Xy.bind(null,a),fg(e,a))));break;case 22:if(i=a.memoizedState!==null||wa,!i){t=t!==null&&t.memoizedState!==null||it,s=wa;var c=it;wa=i,(it=t)&&!c?Da(e,a,(a.subtreeFlags&8772)!==0):Ea(e,a),wa=s,it=c}break;case 30:break;default:Ea(e,a)}}function zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ar(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 Xe=null,wt=!1;function Oa(e,t,a){for(a=a.child;a!==null;)Rh(e,t,a),a=a.sibling}function Rh(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(tl,a)}catch{}switch(a.tag){case 26:it||fa(a,t),Oa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:it||fa(a,t);var i=Xe,s=wt;an(a.type)&&(Xe=a.stateNode,wt=!1),Oa(e,t,a),Bl(a.stateNode),Xe=i,wt=s;break;case 5:it||fa(a,t);case 6:if(i=Xe,s=wt,Xe=null,Oa(e,t,a),Xe=i,wt=s,Xe!==null)if(wt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(c){Re(a,t,c)}else try{Xe.removeChild(a.stateNode)}catch(c){Re(a,t,c)}break;case 18:Xe!==null&&(wt?(e=Xe,Mm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Di(e)):Mm(Xe,a.stateNode));break;case 4:i=Xe,s=wt,Xe=a.stateNode.containerInfo,wt=!0,Oa(e,t,a),Xe=i,wt=s;break;case 0:case 11:case 14:case 15:Fa(2,a,t),it||Fa(4,a,t),Oa(e,t,a);break;case 1:it||(fa(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&wh(a,t,i)),Oa(e,t,a);break;case 21:Oa(e,t,a);break;case 22:it=(i=it)||a.memoizedState!==null,Oa(e,t,a),it=i;break;default:Oa(e,t,a)}}function Uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Di(e)}catch(a){Re(t,t.return,a)}}}function Lh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Di(e)}catch(a){Re(t,t.return,a)}}function Zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new kh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new kh),t;default:throw Error(u(435,e.tag))}}function eu(e,t){var a=Zy(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var s=Qy.bind(null,e,i);i.then(s,s)}})}function Ot(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var s=a[i],c=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(an(m.type)){Xe=m.stateNode,wt=!1;break e}break;case 5:Xe=m.stateNode,wt=!1;break e;case 3:case 4:Xe=m.stateNode.containerInfo,wt=!0;break e}m=m.return}if(Xe===null)throw Error(u(160));Rh(c,f,s),Xe=null,wt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Zh(t,e),t=t.sibling}var ua=null;function Zh(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Et(e),i&4&&(Fa(3,e,e.return),El(3,e),Fa(5,e,e.return));break;case 1:Ot(t,e),Et(e),i&512&&(it||a===null||fa(a,a.return)),i&64&&wa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var s=ua;if(Ot(t,e),Et(e),i&512&&(it||a===null||fa(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":c=s.getElementsByTagName("title")[0],(!c||c[il]||c[vt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(i),s.head.insertBefore(c,s.querySelector("head > title"))),bt(c,i,a),c[vt]=e,ft(c),i=c;break e;case"link":var f=Zm("link","href",s).get(i+(a.href||""));if(f){for(var m=0;m<f.length;m++)if(c=f[m],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(m,1);break t}}c=s.createElement(i),bt(c,i,a),s.head.appendChild(c);break;case"meta":if(f=Zm("meta","content",s).get(i+(a.content||""))){for(m=0;m<f.length;m++)if(c=f[m],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(m,1);break t}}c=s.createElement(i),bt(c,i,a),s.head.appendChild(c);break;default:throw Error(u(468,i))}c[vt]=e,ft(c),i=c}e.stateNode=i}else Hm(s,e.type,e.stateNode);else e.stateNode=Lm(s,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?Hm(s,e.type,e.stateNode):Lm(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ot(t,e),Et(e),i&512&&(it||a===null||fa(a,a.return)),a!==null&&i&4&&Cc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ot(t,e),Et(e),i&512&&(it||a===null||fa(a,a.return)),e.flags&32){s=e.stateNode;try{ei(s,"")}catch(V){Re(e,e.return,V)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,Cc(e,s,a!==null?a.memoizedProps:s)),i&1024&&(Ac=!0);break;case 6:if(Ot(t,e),Et(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(V){Re(e,e.return,V)}}break;case 3:if(vu=null,s=ua,ua=mu(t.containerInfo),Ot(t,e),ua=s,Et(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(V){Re(e,e.return,V)}Ac&&(Ac=!1,Hh(e));break;case 4:i=ua,ua=mu(e.stateNode.containerInfo),Ot(t,e),Et(e),ua=i;break;case 12:Ot(t,e),Et(e);break;case 31:Ot(t,e),Et(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(e,i)));break;case 13:Ot(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(au=We()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(e,i)));break;case 22:s=e.memoizedState!==null;var g=a!==null&&a.memoizedState!==null,N=wa,w=it;if(wa=N||s,it=w||g,Ot(t,e),it=w,wa=N,Et(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||g||wa||it||Hn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){g=a=t;try{if(c=g.stateNode,s)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=g.stateNode;var k=g.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(V){Re(g,g.return,V)}}}else if(t.tag===6){if(a===null){g=t;try{g.stateNode.nodeValue=s?"":g.memoizedProps}catch(V){Re(g,g.return,V)}}}else if(t.tag===18){if(a===null){g=t;try{var M=g.stateNode;s?wm(M,!0):wm(g.stateNode,!1)}catch(V){Re(g,g.return,V)}}}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}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,eu(e,a))));break;case 19:Ot(t,e),Et(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(e,i)));break;case 30:break;case 21:break;default:Ot(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Eh(i)){a=i;break}i=i.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,c=Nc(e);Ps(e,c,s);break;case 5:var f=a.stateNode;a.flags&32&&(ei(f,""),a.flags&=-33);var m=Nc(e);Ps(e,m,f);break;case 3:case 4:var g=a.stateNode.containerInfo,N=Nc(e);Tc(e,N,g);break;default:throw Error(u(161))}}catch(w){Re(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jh(e,t.alternate,t),t=t.sibling}function Hn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Fa(4,t,t.return),Hn(t);break;case 1:fa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wh(t,t.return,a),Hn(t);break;case 27:Bl(t.stateNode);case 26:case 5:fa(t,t.return),Hn(t);break;case 22:t.memoizedState===null&&Hn(t);break;case 30:Hn(t);break;default:Hn(t)}e=e.sibling}}function Da(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:Da(s,c,a),El(4,c);break;case 1:if(Da(s,c,a),i=c,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(N){Re(i,i.return,N)}if(i=c,s=i.updateQueue,s!==null){var m=i.stateNode;try{var g=s.shared.hiddenCallbacks;if(g!==null)for(s.shared.hiddenCallbacks=null,s=0;s<g.length;s++)vf(g[s],m)}catch(N){Re(i,i.return,N)}}a&&f&64&&Mh(c),Dl(c,c.return);break;case 27:Dh(c);case 26:case 5:Da(s,c,a),a&&i===null&&f&4&&Oh(c),Dl(c,c.return);break;case 12:Da(s,c,a);break;case 31:Da(s,c,a),a&&f&4&&Uh(s,c);break;case 13:Da(s,c,a),a&&f&4&&Lh(s,c);break;case 22:c.memoizedState===null&&Da(s,c,a),Dl(c,c.return);break;case 30:break;default:Da(s,c,a)}t=t.sibling}}function Mc(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&&yl(a))}function wc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e))}function ra(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bh(e,t,a,i),t=t.sibling}function Bh(e,t,a,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:ra(e,t,a,i),s&2048&&El(9,t);break;case 1:ra(e,t,a,i);break;case 3:ra(e,t,a,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e)));break;case 12:if(s&2048){ra(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,m=c.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){Re(t,t.return,g)}}else ra(e,t,a,i);break;case 31:ra(e,t,a,i);break;case 13:ra(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?ra(e,t,a,i):kl(e,t):c._visibility&2?ra(e,t,a,i):(c._visibility|=2,bi(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Mc(f,t);break;case 24:ra(e,t,a,i),s&2048&&wc(t.alternate,t);break;default:ra(e,t,a,i)}}function bi(e,t,a,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,m=a,g=i,N=f.flags;switch(f.tag){case 0:case 11:case 15:bi(c,f,m,g,s),El(8,f);break;case 23:break;case 22:var w=f.stateNode;f.memoizedState!==null?w._visibility&2?bi(c,f,m,g,s):kl(c,f):(w._visibility|=2,bi(c,f,m,g,s)),s&&N&2048&&Mc(f.alternate,f);break;case 24:bi(c,f,m,g,s),s&&N&2048&&wc(f.alternate,f);break;default:bi(c,f,m,g,s)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,s=i.flags;switch(i.tag){case 22:kl(a,i),s&2048&&Mc(i.alternate,i);break;case 24:kl(a,i),s&2048&&wc(i.alternate,i);break;default:kl(a,i)}t=t.sibling}}var jl=8192;function Si(e,t,a){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)qh(e,t,a),e=e.sibling}function qh(e,t,a){switch(e.tag){case 26:Si(e,t,a),e.flags&jl&&e.memoizedState!==null&&Ng(a,ua,e.memoizedState,e.memoizedProps);break;case 5:Si(e,t,a);break;case 3:case 4:var i=ua;ua=mu(e.stateNode.containerInfo),Si(e,t,a),ua=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=jl,jl=16777216,Si(e,t,a),jl=i):Si(e,t,a));break;default:Si(e,t,a)}}function Vh(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 zl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];ht=i,Gh(i,e)}Vh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yh(e),e=e.sibling}function Yh(e){switch(e.tag){case 0:case 11:case 15:zl(e),e.flags&2048&&Fa(9,e,e.return);break;case 3:zl(e);break;case 12:zl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tu(e)):zl(e);break;default:zl(e)}}function tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];ht=i,Gh(i,e)}Vh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Fa(8,t,t.return),tu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,tu(t));break;default:tu(t)}e=e.sibling}}function Gh(e,t){for(;ht!==null;){var a=ht;switch(a.tag){case 0:case 11:case 15:Fa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:yl(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,ht=i;else e:for(a=e;ht!==null;){i=ht;var s=i.sibling,c=i.return;if(zh(i),i===a){ht=null;break e}if(s!==null){s.return=c,ht=s;break e}ht=c}}}var Hy={getCacheForType:function(e){var t=gt(tt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return gt(tt).controller.signal}},By=typeof WeakMap=="function"?WeakMap:Map,Ee=0,qe=null,pe=null,ye=0,ze=0,Bt=null,$a=!1,xi=!1,Oc=!1,ka=0,$e=0,Wa=0,Bn=0,Ec=0,qt=0,Ci=0,Rl=null,Dt=null,Dc=!1,au=0,Kh=0,nu=1/0,iu=null,Ia=null,ot=0,Pa=null,Ni=null,ja=0,kc=0,jc=null,Xh=null,Ul=0,zc=null;function Vt(){return(Ee&2)!==0&&ye!==0?ye&-ye:O.T!==null?Bc():ud()}function Qh(){if(qt===0)if((ye&536870912)===0||_e){var e=fs;fs<<=1,(fs&3932160)===0&&(fs=262144),qt=e}else qt=536870912;return e=Zt.current,e!==null&&(e.flags|=32),qt}function kt(e,t,a){(e===qe&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Ti(e,0),en(e,ye,qt,!1)),nl(e,a),((Ee&2)===0||e!==qe)&&(e===qe&&((Ee&2)===0&&(Bn|=a),$e===4&&en(e,ye,qt,!1)),ha(e))}function Jh(e,t,a){if((Ee&6)!==0)throw Error(u(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||al(e,t),s=i?Yy(e,t):Uc(e,t,!0),c=i;do{if(s===0){xi&&!i&&en(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!qy(a)){s=Uc(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;s=Rl;var g=m.current.memoizedState.isDehydrated;if(g&&(Ti(m,f).flags|=256),f=Uc(m,f,!1),f!==2){if(Oc&&!g){m.errorRecoveryDisabledLanes|=c,Bn|=c,s=4;break e}c=Dt,Dt=s,c!==null&&(Dt===null?Dt=c:Dt.push.apply(Dt,c))}s=f}if(c=!1,s!==2)continue}}if(s===1){Ti(e,0),en(e,t,0,!0);break}e:{switch(i=e,c=s,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:en(i,t,qt,!$a);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=au+300-We(),10<s)){if(en(i,t,qt,!$a),ms(i,0,!0)!==0)break e;ja=t,i.timeoutHandle=Tm(Fh.bind(null,i,a,Dt,iu,Dc,t,qt,Bn,Ci,$a,c,"Throttled",-0,0),s);break e}Fh(i,a,Dt,iu,Dc,t,qt,Bn,Ci,$a,c,null,-0,0)}}break}while(!0);ha(e)}function Fh(e,t,a,i,s,c,f,m,g,N,w,k,A,M){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ga},qh(t,c,k);var V=(c&62914560)===c?au-We():(c&4194048)===c?Kh-We():0;if(V=Tg(k,V),V!==null){ja=c,e.cancelPendingCommit=V(nm.bind(null,e,t,c,a,i,s,f,m,g,w,k,null,A,M)),en(e,c,f,!N);return}}nm(e,t,c,a,i,s,f,m,g)}function qy(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 i=0;i<a.length;i++){var s=a[i],c=s.getSnapshot;s=s.value;try{if(!Ut(c(),s))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 en(e,t,a,i){t&=~Ec,t&=~Bn,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var c=31-Rt(s),f=1<<c;i[c]=-1,s&=~f}a!==0&&id(e,a,t)}function lu(){return(Ee&6)===0?(Ll(0),!1):!0}function Rc(){if(pe!==null){if(ze===0)var e=pe.return;else e=pe,xa=Dn=null,Wr(e),pi=null,_l=0,e=pe;for(;e!==null;)Ah(e.alternate,e),e=e.return;pe=null}}function Ti(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ug(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ja=0,Rc(),qe=e,pe=a=ba(e.current,null),ye=t,ze=0,Bt=null,$a=!1,xi=al(e,t),Oc=!1,Ci=qt=Ec=Bn=Wa=$e=0,Dt=Rl=null,Dc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-Rt(i),c=1<<s;t|=e[s],i&=~c}return ka=t,As(),a}function $h(e,t){re=null,O.H=Ml,t===mi||t===zs?(t=ff(),ze=3):t===Hr?(t=ff(),ze=4):ze=t===hc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,pe===null&&($e=1,Js(e,$t(t,e.current)))}function Wh(){var e=Zt.current;return e===null?!0:(ye&4194048)===ye?ea===null:(ye&62914560)===ye||(ye&536870912)!==0?e===ea:!1}function Ih(){var e=O.H;return O.H=Ml,e===null?Ml:e}function Ph(){var e=O.A;return O.A=Hy,e}function su(){$e=4,$a||(ye&4194048)!==ye&&Zt.current!==null||(xi=!0),(Wa&134217727)===0&&(Bn&134217727)===0||qe===null||en(qe,ye,qt,!1)}function Uc(e,t,a){var i=Ee;Ee|=2;var s=Ih(),c=Ph();(qe!==e||ye!==t)&&(iu=null,Ti(e,t)),t=!1;var f=$e;e:do try{if(ze!==0&&pe!==null){var m=pe,g=Bt;switch(ze){case 8:Rc(),f=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(t=!0);var N=ze;if(ze=0,Bt=null,Ai(e,m,g,N),a&&xi){f=0;break e}break;default:N=ze,ze=0,Bt=null,Ai(e,m,g,N)}}Vy(),f=$e;break}catch(w){$h(e,w)}while(!0);return t&&e.shellSuspendCounter++,xa=Dn=null,Ee=i,O.H=s,O.A=c,pe===null&&(qe=null,ye=0,As()),f}function Vy(){for(;pe!==null;)em(pe)}function Yy(e,t){var a=Ee;Ee|=2;var i=Ih(),s=Ph();qe!==e||ye!==t?(iu=null,nu=We()+500,Ti(e,t)):xi=al(e,t);e:do try{if(ze!==0&&pe!==null){t=pe;var c=Bt;t:switch(ze){case 1:ze=0,Bt=null,Ai(e,t,c,1);break;case 2:case 9:if(of(c)){ze=0,Bt=null,tm(t);break}t=function(){ze!==2&&ze!==9||qe!==e||(ze=7),ha(e)},c.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:of(c)?(ze=0,Bt=null,tm(t)):(ze=0,Bt=null,Ai(e,t,c,7));break;case 5:var f=null;switch(pe.tag){case 26:f=pe.memoizedState;case 5:case 27:var m=pe;if(f?Bm(f):m.stateNode.complete){ze=0,Bt=null;var g=m.sibling;if(g!==null)pe=g;else{var N=m.return;N!==null?(pe=N,uu(N)):pe=null}break t}}ze=0,Bt=null,Ai(e,t,c,5);break;case 6:ze=0,Bt=null,Ai(e,t,c,6);break;case 8:Rc(),$e=6;break e;default:throw Error(u(462))}}Gy();break}catch(w){$h(e,w)}while(!0);return xa=Dn=null,O.H=i,O.A=s,Ee=a,pe!==null?0:(qe=null,ye=0,As(),$e)}function Gy(){for(;pe!==null&&!F();)em(pe)}function em(e){var t=Nh(e.alternate,e,ka);e.memoizedProps=e.pendingProps,t===null?uu(e):pe=t}function tm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=gh(a,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=gh(a,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:Wr(t);default:Ah(a,t),t=pe=Id(t,ka),t=Nh(a,t,ka)}e.memoizedProps=e.pendingProps,t===null?uu(e):pe=t}function Ai(e,t,a,i){xa=Dn=null,Wr(t),pi=null,_l=0;var s=t.return;try{if(ky(e,s,t,a,ye)){$e=1,Js(e,$t(a,e.current)),pe=null;return}}catch(c){if(s!==null)throw pe=s,c;$e=1,Js(e,$t(a,e.current)),pe=null;return}t.flags&32768?(_e||i===1?e=!0:xi||(ye&536870912)!==0?e=!1:($a=e=!0,(i===2||i===9||i===3||i===6)&&(i=Zt.current,i!==null&&i.tag===13&&(i.flags|=16384))),am(t,e)):uu(t)}function uu(e){var t=e;do{if((t.flags&32768)!==0){am(t,$a);return}e=t.return;var a=Ry(t.alternate,t,ka);if(a!==null){pe=a;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);$e===0&&($e=5)}function am(e,t){do{var a=Uy(e.alternate,e);if(a!==null){a.flags&=32767,pe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=a}while(e!==null);$e=6,pe=null}function nm(e,t,a,i,s,c,f,m,g){e.cancelPendingCommit=null;do ru();while(ot!==0);if((Ee&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Nr,Cv(e,a,c,f,m,g),e===qe&&(pe=qe=null,ye=0),Ni=t,Pa=e,ja=a,kc=c,jc=s,Xh=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jy(os,function(){return rm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,s=Z.p,Z.p=2,f=Ee,Ee|=4;try{Ly(e,t,a)}finally{Ee=f,Z.p=s,O.T=i}}ot=1,im(),lm(),sm()}}function im(){if(ot===1){ot=0;var e=Pa,t=Ni,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var i=Z.p;Z.p=2;var s=Ee;Ee|=4;try{Zh(t,e);var c=Jc,f=Yd(e.containerInfo),m=c.focusedElem,g=c.selectionRange;if(f!==m&&m&&m.ownerDocument&&Vd(m.ownerDocument.documentElement,m)){if(g!==null&&_r(m)){var N=g.start,w=g.end;if(w===void 0&&(w=N),"selectionStart"in m)m.selectionStart=N,m.selectionEnd=Math.min(w,m.value.length);else{var k=m.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var M=A.getSelection(),V=m.textContent.length,W=Math.min(g.start,V),He=g.end===void 0?W:Math.min(g.end,V);!M.extend&&W>He&&(f=He,He=W,W=f);var x=qd(m,W),b=qd(m,He);if(x&&b&&(M.rangeCount!==1||M.anchorNode!==x.node||M.anchorOffset!==x.offset||M.focusNode!==b.node||M.focusOffset!==b.offset)){var C=k.createRange();C.setStart(x.node,x.offset),M.removeAllRanges(),W>He?(M.addRange(C),M.extend(b.node,b.offset)):(C.setEnd(b.node,b.offset),M.addRange(C))}}}}for(k=[],M=m;M=M.parentNode;)M.nodeType===1&&k.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<k.length;m++){var E=k[m];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}bu=!!Qc,Jc=Qc=null}finally{Ee=s,Z.p=i,O.T=a}}e.current=t,ot=2}}function lm(){if(ot===2){ot=0;var e=Pa,t=Ni,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var i=Z.p;Z.p=2;var s=Ee;Ee|=4;try{jh(e,t.alternate,t)}finally{Ee=s,Z.p=i,O.T=a}}ot=3}}function sm(){if(ot===4||ot===3){ot=0,be();var e=Pa,t=Ni,a=ja,i=Xh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Ni=Pa=null,um(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ia=null),er(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,s=Z.p,Z.p=2,O.T=null;try{for(var c=e.onRecoverableError,f=0;f<i.length;f++){var m=i[f];c(m.value,{componentStack:m.stack})}}finally{O.T=t,Z.p=s}}(ja&3)!==0&&ru(),ha(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===zc?Ul++:(Ul=0,zc=e):Ul=0,Ll(0)}}function um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yl(t)))}function ru(){return im(),lm(),sm(),rm()}function rm(){if(ot!==5)return!1;var e=Pa,t=kc;kc=0;var a=er(ja),i=O.T,s=Z.p;try{Z.p=32>a?32:a,O.T=null,a=jc,jc=null;var c=Pa,f=ja;if(ot=0,Ni=Pa=null,ja=0,(Ee&6)!==0)throw Error(u(331));var m=Ee;if(Ee|=4,Yh(c.current),Bh(c,c.current,f,a),Ee=m,Ll(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(tl,c)}catch{}return!0}finally{Z.p=s,O.T=i,um(e,t)}}function cm(e,t,a){t=$t(a,t),t=fc(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&(nl(e,2),ha(e))}function Re(e,t,a){if(e.tag===3)cm(e,e,a);else for(;t!==null;){if(t.tag===3){cm(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ia===null||!Ia.has(i))){e=$t(a,e),a=oh(2),i=Xa(t,a,2),i!==null&&(dh(a,i,t,e),nl(i,2),ha(i));break}}t=t.return}}function Lc(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new By;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(a)||(Oc=!0,s.add(a),e=Ky.bind(null,e,t,a),t.then(e,e))}function Ky(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(ye&a)===a&&($e===4||$e===3&&(ye&62914560)===ye&&300>We()-au?(Ee&2)===0&&Ti(e,0):Ec|=a,Ci===ye&&(Ci=0)),ha(e)}function om(e,t){t===0&&(t=nd()),e=wn(e,t),e!==null&&(nl(e,t),ha(e))}function Xy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),om(e,a)}function Qy(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),om(e,a)}function Jy(e,t){return Qn(e,t)}var cu=null,Mi=null,Zc=!1,ou=!1,Hc=!1,tn=0;function ha(e){e!==Mi&&e.next===null&&(Mi===null?cu=Mi=e:Mi=Mi.next=e),ou=!0,Zc||(Zc=!0,$y())}function Ll(e,t){if(!Hc&&ou){Hc=!0;do for(var a=!1,i=cu;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var c=0;else{var f=i.suspendedLanes,m=i.pingedLanes;c=(1<<31-Rt(42|e)+1)-1,c&=s&~(f&~m),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,mm(i,c))}else c=ye,c=ms(i,i===qe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||al(i,c)||(a=!0,mm(i,c));i=i.next}while(a);Hc=!1}}function Fy(){dm()}function dm(){ou=Zc=!1;var e=0;tn!==0&&sg()&&(e=tn);for(var t=We(),a=null,i=cu;i!==null;){var s=i.next,c=fm(i,t);c===0?(i.next=null,a===null?cu=s:a.next=s,s===null&&(Mi=a)):(a=i,(e!==0||(c&3)!==0)&&(ou=!0)),i=s}ot!==0&&ot!==5||Ll(e),tn!==0&&(tn=0)}function fm(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-Rt(c),m=1<<f,g=s[f];g===-1?((m&a)===0||(m&i)!==0)&&(s[f]=xv(m,t)):g<=t&&(e.expiredLanes|=m),c&=~m}if(t=qe,a=ye,a=ms(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&T(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||al(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&T(i),er(a)){case 2:case 8:a=td;break;case 32:a=os;break;case 268435456:a=ad;break;default:a=os}return i=hm.bind(null,e),a=Qn(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&T(i),e.callbackPriority=2,e.callbackNode=null,2}function hm(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ru()&&e.callbackNode!==a)return null;var i=ye;return i=ms(e,e===qe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Jh(e,i,t),fm(e,We()),e.callbackNode!=null&&e.callbackNode===a?hm.bind(null,e):null)}function mm(e,t){if(ru())return null;Jh(e,t,!0)}function $y(){rg(function(){(Ee&6)!==0?Qn(ed,Fy):dm()})}function Bc(){if(tn===0){var e=fi;e===0&&(e=ds,ds<<=1,(ds&261888)===0&&(ds=256)),tn=e}return tn}function pm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gs(""+e)}function vm(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 Wy(e,t,a,i,s){if(t==="submit"&&a&&a.stateNode===s){var c=pm((s[At]||null).action),f=i.submitter;f&&(t=(t=f[At]||null)?pm(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var m=new xs("action","action",null,i,s);e.push({event:m,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(tn!==0){var g=f?vm(s,f):new FormData(s);sc(a,{pending:!0,data:g,method:s.method,action:c},null,g)}}else typeof c=="function"&&(m.preventDefault(),g=f?vm(s,f):new FormData(s),sc(a,{pending:!0,data:g,method:s.method,action:c},c,g))},currentTarget:s}]})}}for(var qc=0;qc<Cr.length;qc++){var Vc=Cr[qc],Iy=Vc.toLowerCase(),Py=Vc[0].toUpperCase()+Vc.slice(1);sa(Iy,"on"+Py)}sa(Xd,"onAnimationEnd"),sa(Qd,"onAnimationIteration"),sa(Jd,"onAnimationStart"),sa("dblclick","onDoubleClick"),sa("focusin","onFocus"),sa("focusout","onBlur"),sa(py,"onTransitionRun"),sa(vy,"onTransitionStart"),sa(yy,"onTransitionCancel"),sa(Fd,"onTransitionEnd"),In("onMouseEnter",["mouseout","mouseover"]),In("onMouseLeave",["mouseout","mouseover"]),In("onPointerEnter",["pointerout","pointerover"]),In("onPointerLeave",["pointerout","pointerover"]),Nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),eg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function ym(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],s=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var f=i.length-1;0<=f;f--){var m=i[f],g=m.instance,N=m.currentTarget;if(m=m.listener,g!==c&&s.isPropagationStopped())break e;c=m,s.currentTarget=N;try{c(s)}catch(w){Ts(w)}s.currentTarget=null,c=g}else for(f=0;f<i.length;f++){if(m=i[f],g=m.instance,N=m.currentTarget,m=m.listener,g!==c&&s.isPropagationStopped())break e;c=m,s.currentTarget=N;try{c(s)}catch(w){Ts(w)}s.currentTarget=null,c=g}}}}function ve(e,t){var a=t[tr];a===void 0&&(a=t[tr]=new Set);var i=e+"__bubble";a.has(i)||(gm(t,e,2,!1),a.add(i))}function Yc(e,t,a){var i=0;t&&(i|=4),gm(a,e,i,t)}var du="_reactListening"+Math.random().toString(36).slice(2);function Gc(e){if(!e[du]){e[du]=!0,od.forEach(function(a){a!=="selectionchange"&&(eg.has(a)||Yc(a,!1,e),Yc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[du]||(t[du]=!0,Yc("selectionchange",!1,t))}}function gm(e,t,a,i){switch(Qm(t)){case 2:var s=wg;break;case 8:s=Og;break;default:s=lo}a=s.bind(null,t,a,e),s=void 0,!or||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function Kc(e,t,a,i,s){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var f=i.tag;if(f===3||f===4){var m=i.stateNode.containerInfo;if(m===s)break;if(f===4)for(f=i.return;f!==null;){var g=f.tag;if((g===3||g===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;m!==null;){if(f=Fn(m),f===null)return;if(g=f.tag,g===5||g===6||g===26||g===27){i=c=f;continue e}m=m.parentNode}}i=i.return}xd(function(){var N=c,w=rr(a),k=[];e:{var A=$d.get(e);if(A!==void 0){var M=xs,V=e;switch(e){case"keypress":if(bs(a)===0)break e;case"keydown":case"keyup":M=Qv;break;case"focusin":V="focus",M=mr;break;case"focusout":V="blur",M=mr;break;case"beforeblur":case"afterblur":M=mr;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=Td;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Rv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=$v;break;case Xd:case Qd:case Jd:M=Zv;break;case Fd:M=Iv;break;case"scroll":case"scrollend":M=jv;break;case"wheel":M=ey;break;case"copy":case"cut":case"paste":M=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Md;break;case"toggle":case"beforetoggle":M=ay}var W=(t&4)!==0,He=!W&&(e==="scroll"||e==="scrollend"),x=W?A!==null?A+"Capture":null:A;W=[];for(var b=N,C;b!==null;){var E=b;if(C=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||C===null||x===null||(E=sl(b,x),E!=null&&W.push(Hl(b,E,C))),He)break;b=b.return}0<W.length&&(A=new M(A,V,null,a,w),k.push({event:A,listeners:W}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",A&&a!==ur&&(V=a.relatedTarget||a.fromElement)&&(Fn(V)||V[Jn]))break e;if((M||A)&&(A=w.window===w?w:(A=w.ownerDocument)?A.defaultView||A.parentWindow:window,M?(V=a.relatedTarget||a.toElement,M=N,V=V?Fn(V):null,V!==null&&(He=d(V),W=V.tag,V!==He||W!==5&&W!==27&&W!==6)&&(V=null)):(M=null,V=N),M!==V)){if(W=Td,E="onMouseLeave",x="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(W=Md,E="onPointerLeave",x="onPointerEnter",b="pointer"),He=M==null?A:ll(M),C=V==null?A:ll(V),A=new W(E,b+"leave",M,a,w),A.target=He,A.relatedTarget=C,E=null,Fn(w)===N&&(W=new W(x,b+"enter",V,a,w),W.target=C,W.relatedTarget=He,E=W),He=E,M&&V)t:{for(W=tg,x=M,b=V,C=0,E=x;E;E=W(E))C++;E=0;for(var $=b;$;$=W($))E++;for(;0<C-E;)x=W(x),C--;for(;0<E-C;)b=W(b),E--;for(;C--;){if(x===b||b!==null&&x===b.alternate){W=x;break t}x=W(x),b=W(b)}W=null}else W=null;M!==null&&_m(k,A,M,W,!1),V!==null&&He!==null&&_m(k,He,V,W,!0)}}e:{if(A=N?ll(N):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var Ne=Rd;else if(jd(A))if(Ud)Ne=fy;else{Ne=oy;var X=cy}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?N&&sr(N.elementType)&&(Ne=Rd):Ne=dy;if(Ne&&(Ne=Ne(e,N))){zd(k,Ne,a,w);break e}X&&X(e,A,N),e==="focusout"&&N&&A.type==="number"&&N.memoizedProps.value!=null&&lr(A,"number",A.value)}switch(X=N?ll(N):window,e){case"focusin":(jd(X)||X.contentEditable==="true")&&(ii=X,br=N,ml=null);break;case"focusout":ml=br=ii=null;break;case"mousedown":Sr=!0;break;case"contextmenu":case"mouseup":case"dragend":Sr=!1,Gd(k,a,w);break;case"selectionchange":if(my)break;case"keydown":case"keyup":Gd(k,a,w)}var ce;if(vr)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else ni?Dd(e,a)&&(ge="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ge="onCompositionStart");ge&&(wd&&a.locale!=="ko"&&(ni||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&ni&&(ce=Cd()):(Ha=w,dr="value"in Ha?Ha.value:Ha.textContent,ni=!0)),X=fu(N,ge),0<X.length&&(ge=new Ad(ge,e,null,a,w),k.push({event:ge,listeners:X}),ce?ge.data=ce:(ce=kd(a),ce!==null&&(ge.data=ce)))),(ce=iy?ly(e,a):sy(e,a))&&(ge=fu(N,"onBeforeInput"),0<ge.length&&(X=new Ad("onBeforeInput","beforeinput",null,a,w),k.push({event:X,listeners:ge}),X.data=ce)),Wy(k,e,N,a,w)}ym(k,t)})}function Hl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function fu(e,t){for(var a=t+"Capture",i=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=sl(e,a),s!=null&&i.unshift(Hl(e,s,c)),s=sl(e,t),s!=null&&i.push(Hl(e,s,c))),e.tag===3)return i;e=e.return}return[]}function tg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _m(e,t,a,i,s){for(var c=t._reactName,f=[];a!==null&&a!==i;){var m=a,g=m.alternate,N=m.stateNode;if(m=m.tag,g!==null&&g===i)break;m!==5&&m!==26&&m!==27||N===null||(g=N,s?(N=sl(a,c),N!=null&&f.unshift(Hl(a,N,g))):s||(N=sl(a,c),N!=null&&f.push(Hl(a,N,g)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var ag=/\r\n?/g,ng=/\u0000|\uFFFD/g;function bm(e){return(typeof e=="string"?e:""+e).replace(ag,`
49
- `).replace(ng,"")}function Sm(e,t){return t=bm(t),bm(e)===t}function Ze(e,t,a,i,s,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ei(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ei(e,""+i);break;case"className":vs(e,"class",i);break;case"tabIndex":vs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":vs(e,a,i);break;case"style":bd(e,i,c);break;case"data":if(t!=="object"){vs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=gs(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="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 c=="function"&&(a==="formAction"?(t!=="input"&&Ze(e,t,"name",s.name,s,null),Ze(e,t,"formEncType",s.formEncType,s,null),Ze(e,t,"formMethod",s.formMethod,s,null),Ze(e,t,"formTarget",s.formTarget,s,null)):(Ze(e,t,"encType",s.encType,s,null),Ze(e,t,"method",s.method,s,null),Ze(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=gs(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=ga);break;case"onScroll":i!=null&&ve("scroll",e);break;case"onScrollEnd":i!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=gs(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":ve("beforetoggle",e),ve("toggle",e),ps(e,"popover",i);break;case"xlinkActuate":ya(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ya(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ya(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ya(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ya(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ya(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ya(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ya(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ya(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ps(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Dv.get(a)||a,ps(e,a,i))}}function Xc(e,t,a,i,s,c){switch(a){case"style":bd(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof i=="string"?ei(e,i):(typeof i=="number"||typeof i=="bigint")&&ei(e,""+i);break;case"onScroll":i!=null&&ve("scroll",e);break;case"onScrollEnd":i!=null&&ve("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ga);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[At]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,s);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):ps(e,a,i)}}}function bt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var i=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var f=a[c];if(f!=null)switch(c){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ze(e,t,c,f,a,null)}}s&&Ze(e,t,"srcSet",a.srcSet,a,null),i&&Ze(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var m=c=f=s=null,g=null,N=null;for(i in a)if(a.hasOwnProperty(i)){var w=a[i];if(w!=null)switch(i){case"name":s=w;break;case"type":f=w;break;case"checked":g=w;break;case"defaultChecked":N=w;break;case"value":c=w;break;case"defaultValue":m=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(u(137,t));break;default:Ze(e,t,i,w,a,null)}}vd(e,c,m,g,N,f,s,!1);return;case"select":ve("invalid",e),i=f=c=null;for(s in a)if(a.hasOwnProperty(s)&&(m=a[s],m!=null))switch(s){case"value":c=m;break;case"defaultValue":f=m;break;case"multiple":i=m;default:Ze(e,t,s,m,a,null)}t=c,a=f,e.multiple=!!i,t!=null?Pn(e,!!i,t,!1):a!=null&&Pn(e,!!i,a,!0);return;case"textarea":ve("invalid",e),c=s=i=null;for(f in a)if(a.hasOwnProperty(f)&&(m=a[f],m!=null))switch(f){case"value":i=m;break;case"defaultValue":s=m;break;case"children":c=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(u(91));break;default:Ze(e,t,f,m,a,null)}gd(e,i,s,c);return;case"option":for(g in a)if(a.hasOwnProperty(g)&&(i=a[g],i!=null))switch(g){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ze(e,t,g,i,a,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(i=0;i<Zl.length;i++)ve(Zl[i],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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(N in a)if(a.hasOwnProperty(N)&&(i=a[N],i!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ze(e,t,N,i,a,null)}return;default:if(sr(t)){for(w in a)a.hasOwnProperty(w)&&(i=a[w],i!==void 0&&Xc(e,t,w,i,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(i=a[m],i!=null&&Ze(e,t,m,i,a,null))}function ig(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,f=null,m=null,g=null,N=null,w=null;for(M in a){var k=a[M];if(a.hasOwnProperty(M)&&k!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":g=k;default:i.hasOwnProperty(M)||Ze(e,t,M,null,i,k)}}for(var A in i){var M=i[A];if(k=a[A],i.hasOwnProperty(A)&&(M!=null||k!=null))switch(A){case"type":c=M;break;case"name":s=M;break;case"checked":N=M;break;case"defaultChecked":w=M;break;case"value":f=M;break;case"defaultValue":m=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(u(137,t));break;default:M!==k&&Ze(e,t,A,M,i,k)}}ir(e,f,m,g,N,w,c,s);return;case"select":M=f=m=A=null;for(c in a)if(g=a[c],a.hasOwnProperty(c)&&g!=null)switch(c){case"value":break;case"multiple":M=g;default:i.hasOwnProperty(c)||Ze(e,t,c,null,i,g)}for(s in i)if(c=i[s],g=a[s],i.hasOwnProperty(s)&&(c!=null||g!=null))switch(s){case"value":A=c;break;case"defaultValue":m=c;break;case"multiple":f=c;default:c!==g&&Ze(e,t,s,c,i,g)}t=m,a=f,i=M,A!=null?Pn(e,!!a,A,!1):!!i!=!!a&&(t!=null?Pn(e,!!a,t,!0):Pn(e,!!a,a?[]:"",!1));return;case"textarea":M=A=null;for(m in a)if(s=a[m],a.hasOwnProperty(m)&&s!=null&&!i.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ze(e,t,m,null,i,s)}for(f in i)if(s=i[f],c=a[f],i.hasOwnProperty(f)&&(s!=null||c!=null))switch(f){case"value":A=s;break;case"defaultValue":M=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==c&&Ze(e,t,f,s,i,c)}yd(e,A,M);return;case"option":for(var V in a)if(A=a[V],a.hasOwnProperty(V)&&A!=null&&!i.hasOwnProperty(V))switch(V){case"selected":e.selected=!1;break;default:Ze(e,t,V,null,i,A)}for(g in i)if(A=i[g],M=a[g],i.hasOwnProperty(g)&&A!==M&&(A!=null||M!=null))switch(g){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Ze(e,t,g,A,i,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 W in a)A=a[W],a.hasOwnProperty(W)&&A!=null&&!i.hasOwnProperty(W)&&Ze(e,t,W,null,i,A);for(N in i)if(A=i[N],M=a[N],i.hasOwnProperty(N)&&A!==M&&(A!=null||M!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(u(137,t));break;default:Ze(e,t,N,A,i,M)}return;default:if(sr(t)){for(var He in a)A=a[He],a.hasOwnProperty(He)&&A!==void 0&&!i.hasOwnProperty(He)&&Xc(e,t,He,void 0,i,A);for(w in i)A=i[w],M=a[w],!i.hasOwnProperty(w)||A===M||A===void 0&&M===void 0||Xc(e,t,w,A,i,M);return}}for(var x in a)A=a[x],a.hasOwnProperty(x)&&A!=null&&!i.hasOwnProperty(x)&&Ze(e,t,x,null,i,A);for(k in i)A=i[k],M=a[k],!i.hasOwnProperty(k)||A===M||A==null&&M==null||Ze(e,t,k,A,i,M)}function xm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var s=a[i],c=s.transferSize,f=s.initiatorType,m=s.duration;if(c&&m&&xm(f)){for(f=0,m=s.responseEnd,i+=1;i<a.length;i++){var g=a[i],N=g.startTime;if(N>m)break;var w=g.transferSize,k=g.initiatorType;w&&xm(k)&&(g=g.responseEnd,f+=w*(g<m?1:(m-N)/(g-N)))}if(--i,t+=8*(c+f)/(s.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 Qc=null,Jc=null;function hu(e){return e.nodeType===9?e:e.ownerDocument}function Cm(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 Nm(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 Fc(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 $c=null;function sg(){var e=window.event;return e&&e.type==="popstate"?e===$c?!1:($c=e,!0):($c=null,!1)}var Tm=typeof setTimeout=="function"?setTimeout:void 0,ug=typeof clearTimeout=="function"?clearTimeout:void 0,Am=typeof Promise=="function"?Promise:void 0,rg=typeof queueMicrotask=="function"?queueMicrotask:typeof Am<"u"?function(e){return Am.resolve(null).then(e).catch(cg)}:Tm;function cg(e){setTimeout(function(){throw e})}function an(e){return e==="head"}function Mm(e,t){var a=t,i=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(s),Di(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Bl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Bl(a);for(var c=a.firstChild;c;){var f=c.nextSibling,m=c.nodeName;c[il]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=f}}else a==="body"&&Bl(e.ownerDocument.body);a=s}while(a);Di(t)}function wm(e,t){var a=e;e=0;do{var i=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||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Wc(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":Wc(a),ar(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function og(e,t,a,i){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[il])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ta(e.nextSibling),e===null)break}return null}function dg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ta(e.nextSibling),e===null))return null;return e}function Om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ta(e.nextSibling),e===null))return null;return e}function Ic(e){return e.data==="$?"||e.data==="$~"}function Pc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function fg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function ta(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 eo=null;function Em(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ta(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Dm(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 km(e,t,a){switch(t=hu(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Bl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ar(e)}var aa=new Map,jm=new Set;function mu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var za=Z.d;Z.d={f:hg,r:mg,D:pg,C:vg,L:yg,m:gg,X:bg,S:_g,M:Sg};function hg(){var e=za.f(),t=lu();return e||t}function mg(e){var t=$n(e);t!==null&&t.tag===5&&t.type==="form"?$f(t):za.r(e)}var wi=typeof document>"u"?null:document;function zm(e,t,a){var i=wi;if(i&&typeof t=="string"&&t){var s=Jt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),jm.has(s)||(jm.add(s),e={rel:e,crossOrigin:a,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),bt(t,"link",e),ft(t),i.head.appendChild(t)))}}function pg(e){za.D(e),zm("dns-prefetch",e,null)}function vg(e,t){za.C(e,t),zm("preconnect",e,t)}function yg(e,t,a){za.L(e,t,a);var i=wi;if(i&&e&&t){var s='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Jt(a.imageSizes)+'"]')):s+='[href="'+Jt(e)+'"]';var c=s;switch(t){case"style":c=Oi(e);break;case"script":c=Ei(e)}aa.has(c)||(e=L({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),aa.set(c,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(ql(c))||t==="script"&&i.querySelector(Vl(c))||(t=i.createElement("link"),bt(t,"link",e),ft(t),i.head.appendChild(t)))}}function gg(e,t){za.m(e,t);var a=wi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Jt(i)+'"][href="'+Jt(e)+'"]',c=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ei(e)}if(!aa.has(c)&&(e=L({rel:"modulepreload",href:e},t),aa.set(c,e),a.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Vl(c)))return}i=a.createElement("link"),bt(i,"link",e),ft(i),a.head.appendChild(i)}}}function _g(e,t,a){za.S(e,t,a);var i=wi;if(i&&e){var s=Wn(i).hoistableStyles,c=Oi(e);t=t||"default";var f=s.get(c);if(!f){var m={loading:0,preload:null};if(f=i.querySelector(ql(c)))m.loading=5;else{e=L({rel:"stylesheet",href:e,"data-precedence":t},a),(a=aa.get(c))&&to(e,a);var g=f=i.createElement("link");ft(g),bt(g,"link",e),g._p=new Promise(function(N,w){g.onload=N,g.onerror=w}),g.addEventListener("load",function(){m.loading|=1}),g.addEventListener("error",function(){m.loading|=2}),m.loading|=4,pu(f,t,i)}f={type:"stylesheet",instance:f,count:1,state:m},s.set(c,f)}}}function bg(e,t){za.X(e,t);var a=wi;if(a&&e){var i=Wn(a).hoistableScripts,s=Ei(e),c=i.get(s);c||(c=a.querySelector(Vl(s)),c||(e=L({src:e,async:!0},t),(t=aa.get(s))&&ao(e,t),c=a.createElement("script"),ft(c),bt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}}function Sg(e,t){za.M(e,t);var a=wi;if(a&&e){var i=Wn(a).hoistableScripts,s=Ei(e),c=i.get(s);c||(c=a.querySelector(Vl(s)),c||(e=L({src:e,async:!0,type:"module"},t),(t=aa.get(s))&&ao(e,t),c=a.createElement("script"),ft(c),bt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}}function Rm(e,t,a,i){var s=(s=de.current)?mu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Oi(a.href),a=Wn(s).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Oi(a.href);var c=Wn(s).hoistableStyles,f=c.get(e);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=s.querySelector(ql(e)))&&!c._p&&(f.instance=c,f.state.loading=5),aa.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},aa.set(e,a),c||xg(s,e,a,f.state))),t&&i===null)throw Error(u(528,""));return f}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ei(a),a=Wn(s).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Oi(e){return'href="'+Jt(e)+'"'}function ql(e){return'link[rel="stylesheet"]['+e+"]"}function Um(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function xg(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),bt(t,"link",a),ft(t),e.head.appendChild(t))}function Ei(e){return'[src="'+Jt(e)+'"]'}function Vl(e){return"script[async]"+e}function Lm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Jt(a.href)+'"]');if(i)return t.instance=i,ft(i),i;var s=L({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ft(i),bt(i,"style",s),pu(i,a.precedence,e),t.instance=i;case"stylesheet":s=Oi(a.href);var c=e.querySelector(ql(s));if(c)return t.state.loading|=4,t.instance=c,ft(c),c;i=Um(a),(s=aa.get(s))&&to(i,s),c=(e.ownerDocument||e).createElement("link"),ft(c);var f=c;return f._p=new Promise(function(m,g){f.onload=m,f.onerror=g}),bt(c,"link",i),t.state.loading|=4,pu(c,a.precedence,e),t.instance=c;case"script":return c=Ei(a.src),(s=e.querySelector(Vl(c)))?(t.instance=s,ft(s),s):(i=a,(s=aa.get(c))&&(i=L({},a),ao(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),ft(s),bt(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,pu(i,a.precedence,e));return t.instance}function pu(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,c=s,f=0;f<i.length;f++){var m=i[f];if(m.dataset.precedence===t)c=m;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function to(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vu=null;function Zm(e,t,a){if(vu===null){var i=new Map,s=vu=new Map;s.set(a,i)}else s=vu,i=s.get(a),i||(i=new Map,s.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[il]||c[vt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var m=i.get(f);m?m.push(c):i.set(f,[c])}}return i}function Hm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Cg(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;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ng(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Oi(i.href),c=t.querySelector(ql(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ft(c);return}c=t.ownerDocument||t,i=Um(i),(s=aa.get(s))&&to(i,s),c=c.createElement("link"),ft(c);var f=c;f._p=new Promise(function(m,g){f.onload=m,f.onerror=g}),bt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=yu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var no=0;function Tg(e,t){return e.stylesheets&&e.count===0&&_u(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&_u(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&no===0&&(no=62500*lg());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_u(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>no?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_u(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gu=null;function _u(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gu=new Map,t.forEach(Ag,e),gu=null,yu.call(e))}function Ag(e,t){if(!(t.state.loading&4)){var a=gu.get(e);if(a)var i=a.get(null);else{a=new Map,gu.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var f=s[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),i=f)}i&&a.set(null,i)}s=t.instance,f=s.getAttribute("data-precedence"),c=a.get(f)||i,c===i&&a.set(null,s),a.set(f,s),this.count++,i=yu.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Yl={$$typeof:fe,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Mg(e,t,a,i,s,c,f,m,g){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=Iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.hiddenUpdates=Iu(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function qm(e,t,a,i,s,c,f,m,g,N,w,k){return e=new Mg(e,t,a,f,g,N,w,k,m),t=1,c===!0&&(t|=24),c=Lt(3,null,null,t),e.current=c,c.stateNode=e,t=Ur(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},Br(c),e}function Vm(e){return e?(e=ui,e):ui}function Ym(e,t,a,i,s,c){s=Vm(s),i.context===null?i.context=s:i.pendingContext=s,i=Ka(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Xa(e,i,t),a!==null&&(kt(a,e,t),Sl(a,e,t))}function Gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function io(e,t){Gm(e,t),(e=e.alternate)&&Gm(e,t)}function Km(e){if(e.tag===13||e.tag===31){var t=wn(e,67108864);t!==null&&kt(t,e,67108864),io(e,67108864)}}function Xm(e){if(e.tag===13||e.tag===31){var t=Vt();t=Pu(t);var a=wn(e,t);a!==null&&kt(a,e,t),io(e,t)}}var bu=!0;function wg(e,t,a,i){var s=O.T;O.T=null;var c=Z.p;try{Z.p=2,lo(e,t,a,i)}finally{Z.p=c,O.T=s}}function Og(e,t,a,i){var s=O.T;O.T=null;var c=Z.p;try{Z.p=8,lo(e,t,a,i)}finally{Z.p=c,O.T=s}}function lo(e,t,a,i){if(bu){var s=so(i);if(s===null)Kc(e,t,i,Su,a),Jm(e,i);else if(Dg(s,e,t,a,i))i.stopPropagation();else if(Jm(e,i),t&4&&-1<Eg.indexOf(e)){for(;s!==null;){var c=$n(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Cn(c.pendingLanes);if(f!==0){var m=c;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var g=1<<31-Rt(f);m.entanglements[1]|=g,f&=~g}ha(c),(Ee&6)===0&&(nu=We()+500,Ll(0))}}break;case 31:case 13:m=wn(c,2),m!==null&&kt(m,c,2),lu(),io(c,2)}if(c=so(i),c===null&&Kc(e,t,i,Su,a),c===s)break;s=c}s!==null&&i.stopPropagation()}else Kc(e,t,i,null,a)}}function so(e){return e=rr(e),uo(e)}var Su=null;function uo(e){if(Su=null,e=Fn(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=p(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 Su=e,null}function Qm(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(pv()){case ed:return 2;case td:return 8;case os:case vv:return 32;case ad:return 268435456;default:return 32}default:return 32}}var ro=!1,nn=null,ln=null,sn=null,Gl=new Map,Kl=new Map,un=[],Eg="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 Jm(e,t){switch(e){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":Gl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(t.pointerId)}}function Xl(e,t,a,i,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[s]},t!==null&&(t=$n(t),t!==null&&Km(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Dg(e,t,a,i,s){switch(t){case"focusin":return nn=Xl(nn,e,t,a,i,s),!0;case"dragenter":return ln=Xl(ln,e,t,a,i,s),!0;case"mouseover":return sn=Xl(sn,e,t,a,i,s),!0;case"pointerover":var c=s.pointerId;return Gl.set(c,Xl(Gl.get(c)||null,e,t,a,i,s)),!0;case"gotpointercapture":return c=s.pointerId,Kl.set(c,Xl(Kl.get(c)||null,e,t,a,i,s)),!0}return!1}function Fm(e){var t=Fn(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,rd(e.priority,function(){Xm(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,rd(e.priority,function(){Xm(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 xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=so(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);ur=i,a.target.dispatchEvent(i),ur=null}else return t=$n(a),t!==null&&Km(t),e.blockedOn=a,!1;t.shift()}return!0}function $m(e,t,a){xu(e)&&a.delete(t)}function kg(){ro=!1,nn!==null&&xu(nn)&&(nn=null),ln!==null&&xu(ln)&&(ln=null),sn!==null&&xu(sn)&&(sn=null),Gl.forEach($m),Kl.forEach($m)}function Cu(e,t){e.blockedOn===t&&(e.blockedOn=null,ro||(ro=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,kg)))}var Nu=null;function Wm(e){Nu!==e&&(Nu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Nu===e&&(Nu=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(uo(i||a)===null)continue;break}var c=$n(a);c!==null&&(e.splice(t,3),t-=3,sc(c,{pending:!0,data:s,method:a.method,action:i},i,s))}}))}function Di(e){function t(g){return Cu(g,e)}nn!==null&&Cu(nn,e),ln!==null&&Cu(ln,e),sn!==null&&Cu(sn,e),Gl.forEach(t),Kl.forEach(t);for(var a=0;a<un.length;a++){var i=un[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<un.length&&(a=un[0],a.blockedOn===null);)Fm(a),a.blockedOn===null&&un.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var s=a[i],c=a[i+1],f=s[At]||null;if(typeof c=="function")f||Wm(a);else if(f){var m=null;if(c&&c.hasAttribute("formAction")){if(s=c,f=c[At]||null)m=f.formAction;else if(uo(s)!==null)continue}else m=f.action;typeof m=="function"?a[i+1]=m:(a.splice(i,3),i-=3),Wm(a)}}}function Im(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function co(e){this._internalRoot=e}Tu.prototype.render=co.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,i=Vt();Ym(a,i,e,t,null,null)},Tu.prototype.unmount=co.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ym(e.current,2,null,e,null,null),lu(),t[Jn]=null}};function Tu(e){this._internalRoot=e}Tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ud();e={blockedOn:null,target:e,priority:t};for(var a=0;a<un.length&&t!==0&&t<un[a].priority;a++);un.splice(a,0,e),a===0&&Fm(e)}};var Pm=n.version;if(Pm!=="19.2.0")throw Error(u(527,Pm,"19.2.0"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=_(t),e=e!==null?D(e):null,e=e===null?null:e.stateNode,e};var jg={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{tl=Au.inject(jg),zt=Au}catch{}}return Jl.createRoot=function(e,t){if(!o(e))throw Error(u(299));var a=!1,i="",s=sh,c=uh,f=rh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=qm(e,1,!1,null,null,a,i,null,s,c,f,Im),e[Jn]=t.current,Gc(e),new co(t)},Jl.hydrateRoot=function(e,t,a){if(!o(e))throw Error(u(299));var i=!1,s="",c=sh,f=uh,m=rh,g=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(g=a.formState)),t=qm(e,1,!0,t,a??null,i,s,g,c,f,m,Im),t.context=Vm(null),a=t.current,i=Vt(),i=Pu(i),s=Ka(i),s.callback=null,Xa(a,s,i),a=i,t.current.lanes=a,nl(t,a),ha(t),e[Jn]=t.current,Gc(e),new Tu(t)},Jl.version="19.2.0",Jl}var cp;function Yg(){if(cp)return fo.exports;cp=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),fo.exports=Vg(),fo.exports}var Gg=Yg(),ne=Qo();class Kg{constructor(){this._config=null,this._hasFetched=!1,this._onChangeHandlers=new Set}async fetch(){if(this._hasFetched)return this._config;this._hasFetched=!0;try{const l=await(await fetch("/__tos-config__")).json();return this._hasConfigChanged(this._config,l)&&(this._config=l,this._notifyListeners()),this._config}catch(n){return console.error("Failed to fetch config:",n),null}}get(){return this._config}subscribe(n){return this._onChangeHandlers.add(n),()=>{this._onChangeHandlers.delete(n)}}_hasConfigChanged(n,l){return n===null&&l===null?!1:n===null||l===null?!0:JSON.stringify(n)!==JSON.stringify(l)}_notifyListeners(){for(const n of this._onChangeHandlers)n()}}const Li=new Kg;function Xg(r,n=console.error){var l;(l=r())===null||l===void 0||l.catch(n)}function Jo(){return ne.useEffect(()=>{Xg(()=>Li.fetch())},[]),ne.useSyncExternalStore(n=>Li.subscribe(n),()=>Li.get())}const zu="dev-root-0000000000000000000000000000000";function Qg(r,n){if(r===0||n===0)return"";const l=r/n;let u=1,o=1,d=1/0;for(let h=1;h<=9;h++){const p=Math.round(l*h);if(p<1)continue;const v=Math.abs(l-p/h);v<d&&(d=v,u=p,o=h)}for(let h=1;h<=9;h++){const p=Math.round(h/l);if(p<1)continue;const v=Math.abs(l-h/p);v<d&&(d=v,u=h,o=p)}return`${u}:${o} (${l.toFixed(2)})`}function Jg(){var r,n;const l=ne.useRef({isResizing:!1,startX:0,startY:0,startWidth:0,startHeight:0,maxWidth:0,maxHeight:0}),[u,o]=ne.useState({width:0,height:0}),d=ne.useRef(null),h=ne.useRef(null),p=ne.useRef(null),v=Jo(),_=()=>{const we=p.current;if(!we)return;const Oe=Ue=>{const fe=d.current,Be=h.current;if(!fe||!Be)return;Ue.preventDefault();const{width:ut,height:Ye}=fe.getBoundingClientRect(),{width:ee,height:rt}=Be.getBoundingClientRect();l.current.isResizing=!0,l.current.startX=Ue.clientX,l.current.startY=Ue.clientY,l.current.startWidth=ee,l.current.startHeight=rt,l.current.maxWidth=ut,l.current.maxHeight=Ye,Be.style.pointerEvents="none"},Ve=Ue=>{const fe=h.current;if(!fe||!l.current.isResizing)return;Ue.preventDefault();const Be=(Ue.clientX-l.current.startX)*2,ut=(Ue.clientY-l.current.startY)*2;let Ye=l.current.startWidth+Be,ee=l.current.startHeight+ut;Ye=Math.max(Math.min(Ye,l.current.maxWidth-20),151),ee=Math.max(Math.min(ee,l.current.maxHeight-50),151),fe.style.width=`${Ye}px`,fe.style.height=`${ee}px`,o({width:Ye,height:ee})},et=Ue=>{const fe=h.current;fe&&l.current.isResizing&&(Ue.preventDefault(),l.current.isResizing=!1,fe.style.pointerEvents="")};we.addEventListener("mousedown",Oe),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",et);const Qe=h.current;if(Qe){const{width:Ue,height:fe}=Qe.getBoundingClientRect();o({width:Ue,height:fe})}return()=>{we.removeEventListener("mousedown",Oe),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",et)}};if(ne.useEffect(_,[v]),!v)return y.jsx("div",{className:"canvas",children:"Loading..."});const D=(r=v.devServer)===null||r===void 0?void 0:r.url;if(!D)return y.jsx("div",{className:"canvas",children:"No dev server URL configured"});let L=(n=v.mountPoints)===null||n===void 0?void 0:n.render;if(typeof L=="object"&&(L=L.path),!L)return y.jsx("div",{className:"canvas",children:"No render mount point configured"});const P=`${D}${L}?applicationInstance=development&applicationSpecifier=${zu}`;return y.jsx("div",{className:"canvas",ref:d,children:y.jsxs("div",{className:"canvas__application-container",ref:h,style:{width:"calc(100% - 20px)",aspectRatio:16/9},children:[y.jsx("iframe",{src:P}),y.jsx("div",{className:"canvas__application-container-drag-handle",ref:p,children:y.jsxs("svg",{viewBox:"0 0 16 16",children:[y.jsx("line",{x1:"1",y1:"16",x2:"16",y2:"1",stroke:"black",strokeWidth:"1"}),y.jsx("line",{x1:"9",y1:"16",x2:"16",y2:"9",stroke:"black",strokeWidth:"1"}),y.jsx("line",{x1:"0",y1:"16",x2:"16",y2:"0",stroke:"white",strokeWidth:"1"}),y.jsx("line",{x1:"8",y1:"16",x2:"16",y2:"8",stroke:"white",strokeWidth:"1"})]})}),y.jsx("div",{className:"canvas__aspect-ratio",children:Qg(u.width,u.height)})]})})}const Fg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Pl=ne.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:l,absoluteStrokeWidth:u=!1,className:o="",altIcon:d,showAlt:h=!1,icon:p,primaryColor:v,secondaryColor:_,disableSecondaryOpacity:D=!1,...L},P)=>{const we=l!==void 0?u?Number(l)*24/Number(n):l:void 0,Oe=we!==void 0?{strokeWidth:we,stroke:"currentColor"}:{},Ve={ref:P,...Fg,width:n,height:n,color:v||r,className:o,...Oe,...L},Qe=[...h&&d?d:p].sort(([,Ue],[,fe])=>{const Be=Ue.opacity!==void 0;return fe.opacity!==void 0?1:Be?-1:0}).map(([Ue,fe])=>{const Be=fe.opacity!==void 0,ut=Be&&!D?fe.opacity:void 0,Ye=_?{...fe.stroke!==void 0?{stroke:Be?_:v||r}:{fill:Be?_:v||r}}:{};return ne.createElement(Ue,{...fe,...Oe,...Ye,opacity:ut,key:fe.key})});return ne.createElement("svg",Ve,Qe)});Pl.displayName="HugeiconsIcon";const $p=[["path",{d:"M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],$g=[["path",{d:"M3 16L7.46967 11.5303C7.80923 11.1908 8.26978 11 8.75 11C9.23022 11 9.69077 11.1908 10.0303 11.5303L14 15.5M15.5 17L14 15.5M21 16L18.5303 13.5303C18.1908 13.1908 17.7302 13 17.25 13C16.7698 13 16.3092 13.1908 15.9697 13.5303L14 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 8C15.7761 8 16 7.77614 16 7.5C16 7.22386 15.7761 7 15.5 7M15.5 8C15.2239 8 15 7.77614 15 7.5C15 7.22386 15.2239 7 15.5 7M15.5 8V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.69797 19.7472C2.5 18.3446 2.5 16.2297 2.5 12C2.5 7.77027 2.5 5.6554 3.69797 4.25276C3.86808 4.05358 4.05358 3.86808 4.25276 3.69797C5.6554 2.5 7.77027 2.5 12 2.5C16.2297 2.5 18.3446 2.5 19.7472 3.69797C19.9464 3.86808 20.1319 4.05358 20.302 4.25276C21.5 5.6554 21.5 7.77027 21.5 12C21.5 16.2297 21.5 18.3446 20.302 19.7472C20.1319 19.9464 19.9464 20.1319 19.7472 20.302C18.3446 21.5 16.2297 21.5 12 21.5C7.77027 21.5 5.6554 21.5 4.25276 20.302C4.05358 20.1319 3.86808 19.9464 3.69797 19.7472Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Wg=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8.01172V8.00172",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8",key:"2"}]],Ig=[["path",{d:"M21.5 14.0784C20.3003 14.7189 18.9301 15.0821 17.4751 15.0821C12.7491 15.0821 8.91792 11.2509 8.91792 6.52485C8.91792 5.06986 9.28105 3.69968 9.92163 2.5C5.66765 3.49698 2.5 7.31513 2.5 11.8731C2.5 17.1899 6.8101 21.5 12.1269 21.5C16.6849 21.5 20.503 18.3324 21.5 14.0784Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Pg=[["path",{d:"M2 12C2 7.75736 2 5.63604 3.46447 4.31802C4.92893 3 7.28596 3 12 3C16.714 3 19.0711 3 20.5355 4.31802C22 5.63604 22 7.75736 22 12C22 16.2426 22 18.364 20.5355 19.682C19.0711 21 16.714 21 12 21C7.28596 21 4.92893 21 3.46447 19.682C2 18.364 2 16.2426 2 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.4 8H7.6C6.84575 8 6.46863 8 6.23431 8.23431C6 8.46863 6 8.84575 6 9.6V10.4C6 11.1542 6 11.5314 6.23431 11.7657C6.46863 12 6.84575 12 7.6 12H8.4C9.15425 12 9.53137 12 9.76569 11.7657C10 11.5314 10 11.1542 10 10.4V9.6C10 8.84576 10 8.46863 9.76569 8.23431C9.53137 8 9.15425 8 8.4 8Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 16H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 8H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M14 16H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],e0=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],t0=[["path",{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.9955 3H12.0045M11.9961 21H12.0051M18.3588 5.63599H18.3678M5.63409 18.364H5.64307M5.63409 5.63647H5.64307M18.3582 18.3645H18.3672M20.991 12.0006H21M3 12.0006H3.00898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"1"}]],a0=[["path",{d:"M17.4776 11.0001C17.485 11 17.4925 11 17.5 11C19.9853 11 22 13.0147 22 15.5C22 17.9853 19.9853 20 17.5 20H7C4.23858 20 2 17.7614 2 15C2 12.4003 3.98398 10.2641 6.52042 10.0227M17.4776 11.0001C17.4924 10.8354 17.5 10.6686 17.5 10.5C17.5 7.46243 15.0376 5 12 5C9.12324 5 6.76233 7.20862 6.52042 10.0227M17.4776 11.0001C17.3753 12.1345 16.9286 13.1696 16.2428 14M6.52042 10.0227C6.67826 10.0077 6.83823 10 7 10C8.12582 10 9.16474 10.3721 10.0005 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 5.65468C8.30552 4.65451 7.15088 4 5.84388 4C3.72096 4 2 5.72674 2 7.85679C2 9.15354 2.63783 10.3008 3.61588 11",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];function n0(){var r;const n=Jo();return n?y.jsxs("div",{className:"application-info",children:[y.jsxs("div",{className:"application-info__section",children:[y.jsx("h3",{className:"application-info__section-title",children:"Application Details"}),y.jsxs("div",{className:"application-info__field",children:[y.jsx("label",{className:"application-info__label",children:"Name"}),y.jsx("div",{className:"application-info__value",children:n.name||"Not configured"})]}),y.jsxs("div",{className:"application-info__field",children:[y.jsx("label",{className:"application-info__label",children:"Thumbnail"}),n.thumbnailPath?y.jsx("div",{className:"application-info__thumbnail-container",children:y.jsx("img",{className:"application-info__thumbnail",src:"/__tos-thumbnail__",alt:`${n.name||"Application"} thumbnail`})}):y.jsx("div",{className:"application-info__value",children:"Not configured"})]}),y.jsxs("div",{className:"application-info__field",children:[y.jsx("label",{className:"application-info__label",children:"Version"}),y.jsx("div",{className:"application-info__value",children:n.version||"Not configured"})]})]}),y.jsxs("div",{className:"application-info__section",children:[y.jsx("h3",{className:"application-info__section-title",children:"Development Server"}),y.jsxs("div",{className:"application-info__field",children:[y.jsx("label",{className:"application-info__label",children:"URL"}),y.jsx("div",{className:"application-info__value",children:((r=n.devServer)===null||r===void 0?void 0:r.url)||"Not configured"})]})]}),y.jsxs("div",{className:"application-info__section",children:[y.jsx("h3",{className:"application-info__section-title",children:"Mount Points"}),n.mountPoints?Object.entries(n.mountPoints).map(([l,u])=>{const o=typeof u=="object"?u.path:u||"Not configured";return y.jsxs("div",{className:"application-info__field",children:[y.jsx("label",{className:"application-info__label",children:l}),y.jsx("div",{className:"application-info__value",children:o})]},l)}):y.jsx("div",{className:"application-info__empty",children:"No mount points configured"})]})]}):y.jsx("div",{className:"application-info__empty",children:"Loading configuration..."})}function i0(){var r,n;const l=Jo();if(!l)return y.jsx("div",{className:"application-settings__loading",children:"Loading..."});const u=(r=l==null?void 0:l.devServer)===null||r===void 0?void 0:r.url;let o=(n=l==null?void 0:l.mountPoints)===null||n===void 0?void 0:n.settings;if(typeof o=="object"&&(o=o.path),!(u&&o))return y.jsx("div",{className:"application-settings",children:y.jsx("div",{className:"application-settings__empty",children:"No settings mount point configured in telemetry.config.json"})});const h=`${u}${o}?applicationInstance=development&applicationSpecifier=${zu}`;return y.jsx("iframe",{src:h,style:{width:"100%",height:"100%",border:"none"}})}const op="tos-dev-stubs-config",wo={device:{id:"dev-device-1",name:"Development Device",status:"online",lastSeen:new Date().toISOString(),serialNumber:"DEV-123456",model:"Development Device",manufacturer:"TelemetryOS",platform:"linux"},account:{id:"dev-account-1",name:"Development Account",email:"dev@example.com"},user:{id:"dev-user-1",name:"Development User",email:"dev@example.com"},applications:[],mediaFolders:[{id:"folder-1",name:"Sample Folder",parentId:null,children:[]}],mediaContents:[{id:"content-1",contentFolderId:"folder-1",contentType:"image/jpeg",name:"Sample Image",description:"A sample image for development",thumbnailUrl:"https://via.placeholder.com/150",keys:["sample-image-key"],publicUrls:["https://via.placeholder.com/1920x1080"],hidden:!1,tags:["sample","test"],createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}],environment:{colorScheme:"system"},overrides:[],weather:{conditions:{CityEnglish:"Vancouver",CityLocalized:"Vancouver",CountryCode:"CA",Latitude:49.24966,Longitude:-123.11934,Pod:"d",Precip:0,Pressure:1017,RelativeHumidity:88,State:"",Temp:6.3,Timestamp:1764801428,Timezone:"America/Vancouver",Visibility:16,WeatherCode:"4",WeatherText:"Broken clouds",WindAbbr:"SSW",WindDirectionDegrees:"",WindDirectionEnglish:"south-southwest",WindDirectionLocalized:"south-southwest",WindSpeed:1.2},dailyForecast:[{Datetime:"2025-12-03",Label:"Overcast clouds",MaxTemp:7.2,MinTemp:3.1,Pod:"",Temp:5,Timestamp:1764759660,WeatherCode:"8"},{Datetime:"2025-12-04",Label:"Moderate rain",MaxTemp:7.5,MinTemp:4.3,Pod:"",Temp:5.7,Timestamp:1764835260,WeatherCode:"18"},{Datetime:"2025-12-05",Label:"Heavy rain",MaxTemp:9.2,MinTemp:4.8,Pod:"",Temp:6.9,Timestamp:1764921660,WeatherCode:"18"},{Datetime:"2025-12-06",Label:"Moderate rain",MaxTemp:9.1,MinTemp:5.1,Pod:"",Temp:7.2,Timestamp:1765008060,WeatherCode:"18"},{Datetime:"2025-12-07",Label:"Heavy rain",MaxTemp:9.8,MinTemp:6.3,Pod:"",Temp:7.9,Timestamp:1765094460,WeatherCode:"18"}],hourlyForecast:[{Datetime:"2025-12-03:23",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"d",Temp:6.5,Timestamp:1764802800,WeatherCode:"8"},{Datetime:"2025-12-04:00",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"d",Temp:6,Timestamp:1764806400,WeatherCode:"8"},{Datetime:"2025-12-04:01",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5.9,Timestamp:176481e4,WeatherCode:"8"},{Datetime:"2025-12-04:02",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5.5,Timestamp:1764813600,WeatherCode:"8"},{Datetime:"2025-12-04:03",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5.3,Timestamp:1764817200,WeatherCode:"8"},{Datetime:"2025-12-04:04",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5.2,Timestamp:1764820800,WeatherCode:"8"},{Datetime:"2025-12-04:05",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5.3,Timestamp:1764824400,WeatherCode:"8"},{Datetime:"2025-12-04:06",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:4.9,Timestamp:1764828e3,WeatherCode:"8"},{Datetime:"2025-12-04:07",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5,Timestamp:1764831600,WeatherCode:"8"},{Datetime:"2025-12-04:08",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5.1,Timestamp:1764835200,WeatherCode:"8"},{Datetime:"2025-12-04:09",Label:"Overcast clouds",MaxTemp:0,MinTemp:0,Pod:"n",Temp:4.7,Timestamp:1764838800,WeatherCode:"8"},{Datetime:"2025-12-04:10",Label:"Moderate rain",MaxTemp:0,MinTemp:0,Pod:"n",Temp:5.8,Timestamp:1764842400,WeatherCode:"18"}]}},l0={device:{id:"dev-1",name:"Device",status:"online"},account:{id:"acc-1",name:"Account",email:"test@test.com"},user:{id:"user-1",name:"User",email:"test@test.com"},mediaFolders:[],environment:{colorScheme:"dark"},overrides:[]},s0={device:{id:"dev-device-pro",name:"Production-like Device",status:"online",lastSeen:new Date().toISOString()},account:{id:"acc-enterprise-1",name:"Enterprise Account",email:"admin@enterprise.com"},user:{id:"user-admin-1",name:"Admin User",email:"admin@enterprise.com"},mediaFolders:[{id:"folder-images",name:"Images",parentId:null,children:[{id:"folder-images-banners",name:"Banners",parentId:"folder-images",children:[]},{id:"folder-images-logos",name:"Logos",parentId:"folder-images",children:[]}]},{id:"folder-videos",name:"Videos",parentId:null,children:[{id:"folder-videos-promos",name:"Promotional",parentId:"folder-videos",children:[]}]}],environment:{colorScheme:"dark"},overrides:["test-override"]},u0={device:{id:"dev-error",name:"Offline Device",status:"offline",lastSeen:new Date(Date.now()-864e5).toISOString()},account:{id:"acc-suspended",name:"Suspended Account",email:"suspended@example.com"},user:{id:"user-limited",name:"Limited User",email:"limited@example.com"},mediaFolders:[],environment:{colorScheme:"light"},overrides:[]},dp=[{name:"default",label:"Default",config:wo},{name:"minimal",label:"Minimal",config:l0},{name:"rich",label:"Rich",config:s0},{name:"errors",label:"Error States",config:u0}];class r0{constructor(){this.listeners=new Set,this.config=this.loadFromLocalStorage()||structuredClone(wo)}get(n){const l=n.split(".");let u=this.config;for(const o of l)if(u=u==null?void 0:u[o],u===void 0)break;return u!==void 0&&typeof u=="object"?structuredClone(u):u}set(n,l){const u=n.split("."),o=u.pop();let d=this.config;for(const h of u)h in d||(d[h]={}),d=d[h];d[o]=l,this.saveToLocalStorage(),this.notifyListeners()}getAll(){return this.config}reset(){this.config=structuredClone(wo),this.saveToLocalStorage(),this.notifyListeners()}loadPreset(n){const l=dp.find(u=>u.name===n);l&&(this.config=structuredClone(l.config),this.saveToLocalStorage(),this.notifyListeners())}getPresets(){return dp}exportConfig(){return JSON.stringify(this.config,null,2)}importConfig(n){try{const l=JSON.parse(n);return this.config=l,this.saveToLocalStorage(),this.notifyListeners(),!0}catch{return!1}}onChange(n){return this.listeners.add(n),()=>this.listeners.delete(n)}notifyListeners(){this.listeners.forEach(n=>n())}saveToLocalStorage(){try{localStorage.setItem(op,JSON.stringify(this.config))}catch(n){console.error("Failed to save stubs config to localStorage",n)}}loadFromLocalStorage(){try{const n=localStorage.getItem(op);return n?JSON.parse(n):null}catch(n){return console.error("Failed to load stubs config from localStorage",n),null}}}const ke=new r0;function c0(){const[r,n]=ne.useState(ke.get("device"));ne.useEffect(()=>ke.onChange(()=>{n(ke.get("device"))}),[]);const l=(u,o)=>{ke.set(`device.${u}`,o)};return y.jsx("div",{className:"device-config",children:y.jsxs("div",{className:"device-config__section",children:[y.jsx("h3",{className:"device-config__section-title",children:"Device Information"}),y.jsxs("div",{className:"device-config__field",children:[y.jsx("label",{className:"device-config__label",children:"Name"}),y.jsx("input",{type:"text",className:"device-config__input",value:r.name,onChange:u=>l("name",u.target.value)})]}),y.jsxs("div",{className:"device-config__field",children:[y.jsx("label",{className:"device-config__label",children:"ID"}),y.jsx("input",{type:"text",className:"device-config__input",value:r.id,onChange:u=>l("id",u.target.value)})]}),y.jsxs("div",{className:"device-config__field",children:[y.jsx("label",{className:"device-config__label",children:"Status"}),y.jsxs("select",{className:"device-config__select",value:r.status,onChange:u=>l("status",u.target.value),children:[y.jsx("option",{value:"online",children:"Online"}),y.jsx("option",{value:"offline",children:"Offline"})]})]})]})})}function o0(){const[r,n]=ne.useState(ke.get("account")),[l,u]=ne.useState(ke.get("user"));ne.useEffect(()=>ke.onChange(()=>{n(ke.get("account")),u(ke.get("user"))}),[]);const o=(h,p)=>{ke.set(`account.${h}`,p)},d=(h,p)=>{ke.set(`user.${h}`,p)};return y.jsxs("div",{className:"account-config",children:[y.jsxs("div",{className:"account-config__section",children:[y.jsx("h3",{className:"account-config__section-title",children:"Account Information"}),y.jsxs("div",{className:"account-config__field",children:[y.jsx("label",{className:"account-config__label",children:"Name"}),y.jsx("input",{type:"text",className:"account-config__input",value:r.name,onChange:h=>o("name",h.target.value)})]}),y.jsxs("div",{className:"account-config__field",children:[y.jsx("label",{className:"account-config__label",children:"Email"}),y.jsx("input",{type:"email",className:"account-config__input",value:r.email,onChange:h=>o("email",h.target.value)})]}),y.jsxs("div",{className:"account-config__field",children:[y.jsx("label",{className:"account-config__label",children:"ID"}),y.jsx("input",{type:"text",className:"account-config__input",value:r.id,onChange:h=>o("id",h.target.value)})]})]}),y.jsxs("div",{className:"account-config__section",children:[y.jsx("h3",{className:"account-config__section-title",children:"User Information"}),y.jsxs("div",{className:"account-config__field",children:[y.jsx("label",{className:"account-config__label",children:"Name"}),y.jsx("input",{type:"text",className:"account-config__input",value:l.name,onChange:h=>d("name",h.target.value)})]}),y.jsxs("div",{className:"account-config__field",children:[y.jsx("label",{className:"account-config__label",children:"Email"}),y.jsx("input",{type:"email",className:"account-config__input",value:l.email,onChange:h=>d("email",h.target.value)})]}),y.jsxs("div",{className:"account-config__field",children:[y.jsx("label",{className:"account-config__label",children:"ID"}),y.jsx("input",{type:"text",className:"account-config__input",value:l.id,onChange:h=>d("id",h.target.value)})]})]})]})}function d0(){const[r,n]=ne.useState(ke.get("mediaFolders"));ne.useEffect(()=>ke.onChange(()=>{n(ke.get("mediaFolders"))}),[]);const l=()=>{const d={id:`folder-${Date.now()}`,name:"New Folder",parentId:null,children:[]};ke.set("mediaFolders",[...r,d])},u=d=>{const h=r.filter((p,v)=>v!==d);ke.set("mediaFolders",h)},o=(d,h,p)=>{const v=[...r];v[d]={...v[d],[h]:p},ke.set("mediaFolders",v)};return y.jsx("div",{className:"media-config",children:y.jsxs("div",{className:"media-config__section",children:[y.jsxs("div",{className:"media-config__section-header",children:[y.jsxs("h3",{className:"media-config__section-title",children:["Media Folders (",r.length,")"]}),y.jsx("button",{className:"media-config__button media-config__button--small",onClick:l,children:"+ Add"})]}),r.length===0&&y.jsx("div",{className:"media-config__empty",children:'No media folders configured. Click "Add" to create one.'}),r.map((d,h)=>y.jsxs("div",{className:"media-config__item",children:[y.jsxs("div",{className:"media-config__item-header",children:[y.jsxs("span",{className:"media-config__item-title",children:["Folder ",h+1]}),y.jsx("button",{className:"media-config__button media-config__button--danger media-config__button--small",onClick:()=>u(h),children:"Remove"})]}),y.jsxs("div",{className:"media-config__field",children:[y.jsx("label",{className:"media-config__label",children:"Name"}),y.jsx("input",{type:"text",className:"media-config__input",value:d.name,onChange:p=>o(h,"name",p.target.value)})]}),y.jsxs("div",{className:"media-config__field",children:[y.jsx("label",{className:"media-config__label",children:"ID"}),y.jsx("input",{type:"text",className:"media-config__input",value:d.id,onChange:p=>o(h,"id",p.target.value)})]})]},d.id))]})})}var Ae;(function(r){r.assertEqual=o=>{};function n(o){}r.assertIs=n;function l(o){throw new Error}r.assertNever=l,r.arrayToEnum=o=>{const d={};for(const h of o)d[h]=h;return d},r.getValidEnumValues=o=>{const d=r.objectKeys(o).filter(p=>typeof o[o[p]]!="number"),h={};for(const p of d)h[p]=o[p];return r.objectValues(h)},r.objectValues=o=>r.objectKeys(o).map(function(d){return o[d]}),r.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const d=[];for(const h in o)Object.prototype.hasOwnProperty.call(o,h)&&d.push(h);return d},r.find=(o,d)=>{for(const h of o)if(d(h))return h},r.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function u(o,d=" | "){return o.map(h=>typeof h=="string"?`'${h}'`:h).join(d)}r.joinValues=u,r.jsonStringifyReplacer=(o,d)=>typeof d=="bigint"?d.toString():d})(Ae||(Ae={}));var fp;(function(r){r.mergeShapes=(n,l)=>({...n,...l})})(fp||(fp={}));const G=Ae.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),on=r=>{switch(typeof r){case"undefined":return G.undefined;case"string":return G.string;case"number":return Number.isNaN(r)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(r)?G.array:r===null?G.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?G.promise:typeof Map<"u"&&r instanceof Map?G.map:typeof Set<"u"&&r instanceof Set?G.set:typeof Date<"u"&&r instanceof Date?G.date:G.object;default:return G.unknown}},R=Ae.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ra extends Error{get errors(){return this.issues}constructor(n){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=n}format(n){const l=n||function(d){return d.message},u={_errors:[]},o=d=>{for(const h of d.issues)if(h.code==="invalid_union")h.unionErrors.map(o);else if(h.code==="invalid_return_type")o(h.returnTypeError);else if(h.code==="invalid_arguments")o(h.argumentsError);else if(h.path.length===0)u._errors.push(l(h));else{let p=u,v=0;for(;v<h.path.length;){const _=h.path[v];v===h.path.length-1?(p[_]=p[_]||{_errors:[]},p[_]._errors.push(l(h))):p[_]=p[_]||{_errors:[]},p=p[_],v++}}};return o(this),u}static assert(n){if(!(n instanceof Ra))throw new Error(`Not a ZodError: ${n}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ae.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=l=>l.message){const l={},u=[];for(const o of this.issues)if(o.path.length>0){const d=o.path[0];l[d]=l[d]||[],l[d].push(n(o))}else u.push(n(o));return{formErrors:u,fieldErrors:l}}get formErrors(){return this.flatten()}}Ra.create=r=>new Ra(r);const Oo=(r,n)=>{let l;switch(r.code){case R.invalid_type:r.received===G.undefined?l="Required":l=`Expected ${r.expected}, received ${r.received}`;break;case R.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(r.expected,Ae.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:l=`Unrecognized key(s) in object: ${Ae.joinValues(r.keys,", ")}`;break;case R.invalid_union:l="Invalid input";break;case R.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${Ae.joinValues(r.options)}`;break;case R.invalid_enum_value:l=`Invalid enum value. Expected ${Ae.joinValues(r.options)}, received '${r.received}'`;break;case R.invalid_arguments:l="Invalid function arguments";break;case R.invalid_return_type:l="Invalid function return type";break;case R.invalid_date:l="Invalid date";break;case R.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(l=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?l=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?l=`Invalid input: must end with "${r.validation.endsWith}"`:Ae.assertNever(r.validation):r.validation!=="regex"?l=`Invalid ${r.validation}`:l="Invalid";break;case R.too_small:r.type==="array"?l=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?l=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?l=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?l=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?l=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:l="Invalid input";break;case R.too_big:r.type==="array"?l=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?l=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?l=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?l=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?l=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:l="Invalid input";break;case R.custom:l="Invalid input";break;case R.invalid_intersection_types:l="Intersection results could not be merged";break;case R.not_multiple_of:l=`Number must be a multiple of ${r.multipleOf}`;break;case R.not_finite:l="Number must be finite";break;default:l=n.defaultError,Ae.assertNever(r)}return{message:l}};let f0=Oo;function h0(){return f0}const m0=r=>{const{data:n,path:l,errorMaps:u,issueData:o}=r,d=[...l,...o.path||[]],h={...o,path:d};if(o.message!==void 0)return{...o,path:d,message:o.message};let p="";const v=u.filter(_=>!!_).slice().reverse();for(const _ of v)p=_(h,{data:n,defaultError:p}).message;return{...o,path:d,message:p}};function B(r,n){const l=h0(),u=m0({issueData:n,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,l,l===Oo?void 0:Oo].filter(o=>!!o)});r.common.issues.push(u)}class Yt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,l){const u=[];for(const o of l){if(o.status==="aborted")return ie;o.status==="dirty"&&n.dirty(),u.push(o.value)}return{status:n.value,value:u}}static async mergeObjectAsync(n,l){const u=[];for(const o of l){const d=await o.key,h=await o.value;u.push({key:d,value:h})}return Yt.mergeObjectSync(n,u)}static mergeObjectSync(n,l){const u={};for(const o of l){const{key:d,value:h}=o;if(d.status==="aborted"||h.status==="aborted")return ie;d.status==="dirty"&&n.dirty(),h.status==="dirty"&&n.dirty(),d.value!=="__proto__"&&(typeof h.value<"u"||o.alwaysSet)&&(u[d.value]=h.value)}return{status:n.value,value:u}}}const ie=Object.freeze({status:"aborted"}),Wl=r=>({status:"dirty",value:r}),na=r=>({status:"valid",value:r}),hp=r=>r.status==="aborted",mp=r=>r.status==="dirty",Zi=r=>r.status==="valid",Ru=r=>typeof Promise<"u"&&r instanceof Promise;var Q;(function(r){r.errToObj=n=>typeof n=="string"?{message:n}:n||{},r.toString=n=>typeof n=="string"?n:n==null?void 0:n.message})(Q||(Q={}));class vn{constructor(n,l,u,o){this._cachedPath=[],this.parent=n,this.data=l,this._path=u,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const pp=(r,n)=>{if(Zi(n))return{success:!0,data:n.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Ra(r.common.issues);return this._error=l,this._error}}};function he(r){if(!r)return{};const{errorMap:n,invalid_type_error:l,required_error:u,description:o}=r;if(n&&(l||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:o}:{errorMap:(h,p)=>{const{message:v}=r;return h.code==="invalid_enum_value"?{message:v??p.defaultError}:typeof p.data>"u"?{message:v??u??p.defaultError}:h.code!=="invalid_type"?{message:p.defaultError}:{message:v??l??p.defaultError}},description:o}}class Se{get description(){return this._def.description}_getType(n){return on(n.data)}_getOrReturnCtx(n,l){return l||{common:n.parent.common,data:n.data,parsedType:on(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new Yt,ctx:{common:n.parent.common,data:n.data,parsedType:on(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const l=this._parse(n);if(Ru(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(n){const l=this._parse(n);return Promise.resolve(l)}parse(n,l){const u=this.safeParse(n,l);if(u.success)return u.data;throw u.error}safeParse(n,l){const u={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:on(n)},o=this._parseSync({data:n,path:u.path,parent:u});return pp(u,o)}"~validate"(n){var u,o;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:on(n)};if(!this["~standard"].async)try{const d=this._parseSync({data:n,path:[],parent:l});return Zi(d)?{value:d.value}:{issues:l.common.issues}}catch(d){(o=(u=d==null?void 0:d.message)==null?void 0:u.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:n,path:[],parent:l}).then(d=>Zi(d)?{value:d.value}:{issues:l.common.issues})}async parseAsync(n,l){const u=await this.safeParseAsync(n,l);if(u.success)return u.data;throw u.error}async safeParseAsync(n,l){const u={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:on(n)},o=this._parse({data:n,path:u.path,parent:u}),d=await(Ru(o)?o:Promise.resolve(o));return pp(u,d)}refine(n,l){const u=o=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(o):l;return this._refinement((o,d)=>{const h=n(o),p=()=>d.addIssue({code:R.custom,...u(o)});return typeof Promise<"u"&&h instanceof Promise?h.then(v=>v?!0:(p(),!1)):h?!0:(p(),!1)})}refinement(n,l){return this._refinement((u,o)=>n(u)?!0:(o.addIssue(typeof l=="function"?l(u,o):l),!1))}_refinement(n){return new qi({schema:this,typeName:le.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return mn.create(this,this._def)}nullable(){return Vi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ma.create(this)}promise(){return Hu.create(this,this._def)}or(n){return Lu.create([this,n],this._def)}and(n){return Zu.create(this,n,this._def)}transform(n){return new qi({...he(this._def),schema:this,typeName:le.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const l=typeof n=="function"?n:()=>n;return new Do({...he(this._def),innerType:this,defaultValue:l,typeName:le.ZodDefault})}brand(){return new L0({typeName:le.ZodBranded,type:this,...he(this._def)})}catch(n){const l=typeof n=="function"?n:()=>n;return new ko({...he(this._def),innerType:this,catchValue:l,typeName:le.ZodCatch})}describe(n){const l=this.constructor;return new l({...this._def,description:n})}pipe(n){return Fo.create(this,n)}readonly(){return jo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const p0=/^c[^\s-]{8,}$/i,v0=/^[0-9a-z]+$/,y0=/^[0-9A-HJKMNP-TV-Z]{26}$/i,g0=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_0=/^[a-z0-9_-]{21}$/i,b0=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,S0=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,x0=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,C0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let yo;const N0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,T0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,A0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,M0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,w0=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,O0=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Wp="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",E0=new RegExp(`^${Wp}$`);function Ip(r){let n="[0-5]\\d";r.precision?n=`${n}\\.\\d{${r.precision}}`:r.precision==null&&(n=`${n}(\\.\\d+)?`);const l=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${n})${l}`}function D0(r){return new RegExp(`^${Ip(r)}$`)}function k0(r){let n=`${Wp}T${Ip(r)}`;const l=[];return l.push(r.local?"Z?":"Z"),r.offset&&l.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${l.join("|")})`,new RegExp(`^${n}$`)}function j0(r,n){return!!((n==="v4"||!n)&&N0.test(r)||(n==="v6"||!n)&&A0.test(r))}function z0(r,n){if(!b0.test(r))return!1;try{const[l]=r.split(".");if(!l)return!1;const u=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),o=JSON.parse(atob(u));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||n&&o.alg!==n)}catch{return!1}}function R0(r,n){return!!((n==="v4"||!n)&&T0.test(r)||(n==="v6"||!n)&&M0.test(r))}class fn extends Se{_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==G.string){const d=this._getOrReturnCtx(n);return B(d,{code:R.invalid_type,expected:G.string,received:d.parsedType}),ie}const u=new Yt;let o;for(const d of this._def.checks)if(d.kind==="min")n.data.length<d.value&&(o=this._getOrReturnCtx(n,o),B(o,{code:R.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),u.dirty());else if(d.kind==="max")n.data.length>d.value&&(o=this._getOrReturnCtx(n,o),B(o,{code:R.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),u.dirty());else if(d.kind==="length"){const h=n.data.length>d.value,p=n.data.length<d.value;(h||p)&&(o=this._getOrReturnCtx(n,o),h?B(o,{code:R.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):p&&B(o,{code:R.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),u.dirty())}else if(d.kind==="email")x0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"email",code:R.invalid_string,message:d.message}),u.dirty());else if(d.kind==="emoji")yo||(yo=new RegExp(C0,"u")),yo.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"emoji",code:R.invalid_string,message:d.message}),u.dirty());else if(d.kind==="uuid")g0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"uuid",code:R.invalid_string,message:d.message}),u.dirty());else if(d.kind==="nanoid")_0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"nanoid",code:R.invalid_string,message:d.message}),u.dirty());else if(d.kind==="cuid")p0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"cuid",code:R.invalid_string,message:d.message}),u.dirty());else if(d.kind==="cuid2")v0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"cuid2",code:R.invalid_string,message:d.message}),u.dirty());else if(d.kind==="ulid")y0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"ulid",code:R.invalid_string,message:d.message}),u.dirty());else if(d.kind==="url")try{new URL(n.data)}catch{o=this._getOrReturnCtx(n,o),B(o,{validation:"url",code:R.invalid_string,message:d.message}),u.dirty()}else d.kind==="regex"?(d.regex.lastIndex=0,d.regex.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"regex",code:R.invalid_string,message:d.message}),u.dirty())):d.kind==="trim"?n.data=n.data.trim():d.kind==="includes"?n.data.includes(d.value,d.position)||(o=this._getOrReturnCtx(n,o),B(o,{code:R.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),u.dirty()):d.kind==="toLowerCase"?n.data=n.data.toLowerCase():d.kind==="toUpperCase"?n.data=n.data.toUpperCase():d.kind==="startsWith"?n.data.startsWith(d.value)||(o=this._getOrReturnCtx(n,o),B(o,{code:R.invalid_string,validation:{startsWith:d.value},message:d.message}),u.dirty()):d.kind==="endsWith"?n.data.endsWith(d.value)||(o=this._getOrReturnCtx(n,o),B(o,{code:R.invalid_string,validation:{endsWith:d.value},message:d.message}),u.dirty()):d.kind==="datetime"?k0(d).test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{code:R.invalid_string,validation:"datetime",message:d.message}),u.dirty()):d.kind==="date"?E0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{code:R.invalid_string,validation:"date",message:d.message}),u.dirty()):d.kind==="time"?D0(d).test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{code:R.invalid_string,validation:"time",message:d.message}),u.dirty()):d.kind==="duration"?S0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"duration",code:R.invalid_string,message:d.message}),u.dirty()):d.kind==="ip"?j0(n.data,d.version)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"ip",code:R.invalid_string,message:d.message}),u.dirty()):d.kind==="jwt"?z0(n.data,d.alg)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"jwt",code:R.invalid_string,message:d.message}),u.dirty()):d.kind==="cidr"?R0(n.data,d.version)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"cidr",code:R.invalid_string,message:d.message}),u.dirty()):d.kind==="base64"?w0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"base64",code:R.invalid_string,message:d.message}),u.dirty()):d.kind==="base64url"?O0.test(n.data)||(o=this._getOrReturnCtx(n,o),B(o,{validation:"base64url",code:R.invalid_string,message:d.message}),u.dirty()):Ae.assertNever(d);return{status:u.value,value:n.data}}_regex(n,l,u){return this.refinement(o=>n.test(o),{validation:l,code:R.invalid_string,...Q.errToObj(u)})}_addCheck(n){return new fn({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...Q.errToObj(n)})}url(n){return this._addCheck({kind:"url",...Q.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...Q.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...Q.errToObj(n)})}nanoid(n){return this._addCheck({kind:"nanoid",...Q.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...Q.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...Q.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...Q.errToObj(n)})}base64(n){return this._addCheck({kind:"base64",...Q.errToObj(n)})}base64url(n){return this._addCheck({kind:"base64url",...Q.errToObj(n)})}jwt(n){return this._addCheck({kind:"jwt",...Q.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...Q.errToObj(n)})}cidr(n){return this._addCheck({kind:"cidr",...Q.errToObj(n)})}datetime(n){return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,offset:(n==null?void 0:n.offset)??!1,local:(n==null?void 0:n.local)??!1,...Q.errToObj(n==null?void 0:n.message)})}date(n){return this._addCheck({kind:"date",message:n})}time(n){return typeof n=="string"?this._addCheck({kind:"time",precision:null,message:n}):this._addCheck({kind:"time",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,...Q.errToObj(n==null?void 0:n.message)})}duration(n){return this._addCheck({kind:"duration",...Q.errToObj(n)})}regex(n,l){return this._addCheck({kind:"regex",regex:n,...Q.errToObj(l)})}includes(n,l){return this._addCheck({kind:"includes",value:n,position:l==null?void 0:l.position,...Q.errToObj(l==null?void 0:l.message)})}startsWith(n,l){return this._addCheck({kind:"startsWith",value:n,...Q.errToObj(l)})}endsWith(n,l){return this._addCheck({kind:"endsWith",value:n,...Q.errToObj(l)})}min(n,l){return this._addCheck({kind:"min",value:n,...Q.errToObj(l)})}max(n,l){return this._addCheck({kind:"max",value:n,...Q.errToObj(l)})}length(n,l){return this._addCheck({kind:"length",value:n,...Q.errToObj(l)})}nonempty(n){return this.min(1,Q.errToObj(n))}trim(){return new fn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new fn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new fn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isDate(){return!!this._def.checks.find(n=>n.kind==="date")}get isTime(){return!!this._def.checks.find(n=>n.kind==="time")}get isDuration(){return!!this._def.checks.find(n=>n.kind==="duration")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(n=>n.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get isCIDR(){return!!this._def.checks.find(n=>n.kind==="cidr")}get isBase64(){return!!this._def.checks.find(n=>n.kind==="base64")}get isBase64url(){return!!this._def.checks.find(n=>n.kind==="base64url")}get minLength(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxLength(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}}fn.create=r=>new fn({checks:[],typeName:le.ZodString,coerce:(r==null?void 0:r.coerce)??!1,...he(r)});function U0(r,n){const l=(r.toString().split(".")[1]||"").length,u=(n.toString().split(".")[1]||"").length,o=l>u?l:u,d=Number.parseInt(r.toFixed(o).replace(".","")),h=Number.parseInt(n.toFixed(o).replace(".",""));return d%h/10**o}class Hi extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==G.number){const d=this._getOrReturnCtx(n);return B(d,{code:R.invalid_type,expected:G.number,received:d.parsedType}),ie}let u;const o=new Yt;for(const d of this._def.checks)d.kind==="int"?Ae.isInteger(n.data)||(u=this._getOrReturnCtx(n,u),B(u,{code:R.invalid_type,expected:"integer",received:"float",message:d.message}),o.dirty()):d.kind==="min"?(d.inclusive?n.data<d.value:n.data<=d.value)&&(u=this._getOrReturnCtx(n,u),B(u,{code:R.too_small,minimum:d.value,type:"number",inclusive:d.inclusive,exact:!1,message:d.message}),o.dirty()):d.kind==="max"?(d.inclusive?n.data>d.value:n.data>=d.value)&&(u=this._getOrReturnCtx(n,u),B(u,{code:R.too_big,maximum:d.value,type:"number",inclusive:d.inclusive,exact:!1,message:d.message}),o.dirty()):d.kind==="multipleOf"?U0(n.data,d.value)!==0&&(u=this._getOrReturnCtx(n,u),B(u,{code:R.not_multiple_of,multipleOf:d.value,message:d.message}),o.dirty()):d.kind==="finite"?Number.isFinite(n.data)||(u=this._getOrReturnCtx(n,u),B(u,{code:R.not_finite,message:d.message}),o.dirty()):Ae.assertNever(d);return{status:o.value,value:n.data}}gte(n,l){return this.setLimit("min",n,!0,Q.toString(l))}gt(n,l){return this.setLimit("min",n,!1,Q.toString(l))}lte(n,l){return this.setLimit("max",n,!0,Q.toString(l))}lt(n,l){return this.setLimit("max",n,!1,Q.toString(l))}setLimit(n,l,u,o){return new Hi({...this._def,checks:[...this._def.checks,{kind:n,value:l,inclusive:u,message:Q.toString(o)}]})}_addCheck(n){return new Hi({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:Q.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Q.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Q.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Q.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Q.toString(n)})}multipleOf(n,l){return this._addCheck({kind:"multipleOf",value:n,message:Q.toString(l)})}finite(n){return this._addCheck({kind:"finite",message:Q.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Q.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Q.toString(n)})}get minValue(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxValue(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&Ae.isInteger(n.value))}get isFinite(){let n=null,l=null;for(const u of this._def.checks){if(u.kind==="finite"||u.kind==="int"||u.kind==="multipleOf")return!0;u.kind==="min"?(l===null||u.value>l)&&(l=u.value):u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}return Number.isFinite(l)&&Number.isFinite(n)}}Hi.create=r=>new Hi({checks:[],typeName:le.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...he(r)});class es extends Se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce)try{n.data=BigInt(n.data)}catch{return this._getInvalidInput(n)}if(this._getType(n)!==G.bigint)return this._getInvalidInput(n);let u;const o=new Yt;for(const d of this._def.checks)d.kind==="min"?(d.inclusive?n.data<d.value:n.data<=d.value)&&(u=this._getOrReturnCtx(n,u),B(u,{code:R.too_small,type:"bigint",minimum:d.value,inclusive:d.inclusive,message:d.message}),o.dirty()):d.kind==="max"?(d.inclusive?n.data>d.value:n.data>=d.value)&&(u=this._getOrReturnCtx(n,u),B(u,{code:R.too_big,type:"bigint",maximum:d.value,inclusive:d.inclusive,message:d.message}),o.dirty()):d.kind==="multipleOf"?n.data%d.value!==BigInt(0)&&(u=this._getOrReturnCtx(n,u),B(u,{code:R.not_multiple_of,multipleOf:d.value,message:d.message}),o.dirty()):Ae.assertNever(d);return{status:o.value,value:n.data}}_getInvalidInput(n){const l=this._getOrReturnCtx(n);return B(l,{code:R.invalid_type,expected:G.bigint,received:l.parsedType}),ie}gte(n,l){return this.setLimit("min",n,!0,Q.toString(l))}gt(n,l){return this.setLimit("min",n,!1,Q.toString(l))}lte(n,l){return this.setLimit("max",n,!0,Q.toString(l))}lt(n,l){return this.setLimit("max",n,!1,Q.toString(l))}setLimit(n,l,u,o){return new es({...this._def,checks:[...this._def.checks,{kind:n,value:l,inclusive:u,message:Q.toString(o)}]})}_addCheck(n){return new es({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Q.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Q.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Q.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Q.toString(n)})}multipleOf(n,l){return this._addCheck({kind:"multipleOf",value:n,message:Q.toString(l)})}get minValue(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxValue(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}}es.create=r=>new es({checks:[],typeName:le.ZodBigInt,coerce:(r==null?void 0:r.coerce)??!1,...he(r)});class vp extends Se{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==G.boolean){const u=this._getOrReturnCtx(n);return B(u,{code:R.invalid_type,expected:G.boolean,received:u.parsedType}),ie}return na(n.data)}}vp.create=r=>new vp({typeName:le.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...he(r)});class Uu extends Se{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==G.date){const d=this._getOrReturnCtx(n);return B(d,{code:R.invalid_type,expected:G.date,received:d.parsedType}),ie}if(Number.isNaN(n.data.getTime())){const d=this._getOrReturnCtx(n);return B(d,{code:R.invalid_date}),ie}const u=new Yt;let o;for(const d of this._def.checks)d.kind==="min"?n.data.getTime()<d.value&&(o=this._getOrReturnCtx(n,o),B(o,{code:R.too_small,message:d.message,inclusive:!0,exact:!1,minimum:d.value,type:"date"}),u.dirty()):d.kind==="max"?n.data.getTime()>d.value&&(o=this._getOrReturnCtx(n,o),B(o,{code:R.too_big,message:d.message,inclusive:!0,exact:!1,maximum:d.value,type:"date"}),u.dirty()):Ae.assertNever(d);return{status:u.value,value:new Date(n.data.getTime())}}_addCheck(n){return new Uu({...this._def,checks:[...this._def.checks,n]})}min(n,l){return this._addCheck({kind:"min",value:n.getTime(),message:Q.toString(l)})}max(n,l){return this._addCheck({kind:"max",value:n.getTime(),message:Q.toString(l)})}get minDate(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n!=null?new Date(n):null}}Uu.create=r=>new Uu({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:le.ZodDate,...he(r)});class yp extends Se{_parse(n){if(this._getType(n)!==G.symbol){const u=this._getOrReturnCtx(n);return B(u,{code:R.invalid_type,expected:G.symbol,received:u.parsedType}),ie}return na(n.data)}}yp.create=r=>new yp({typeName:le.ZodSymbol,...he(r)});class gp extends Se{_parse(n){if(this._getType(n)!==G.undefined){const u=this._getOrReturnCtx(n);return B(u,{code:R.invalid_type,expected:G.undefined,received:u.parsedType}),ie}return na(n.data)}}gp.create=r=>new gp({typeName:le.ZodUndefined,...he(r)});class _p extends Se{_parse(n){if(this._getType(n)!==G.null){const u=this._getOrReturnCtx(n);return B(u,{code:R.invalid_type,expected:G.null,received:u.parsedType}),ie}return na(n.data)}}_p.create=r=>new _p({typeName:le.ZodNull,...he(r)});class bp extends Se{constructor(){super(...arguments),this._any=!0}_parse(n){return na(n.data)}}bp.create=r=>new bp({typeName:le.ZodAny,...he(r)});class Sp extends Se{constructor(){super(...arguments),this._unknown=!0}_parse(n){return na(n.data)}}Sp.create=r=>new Sp({typeName:le.ZodUnknown,...he(r)});class yn extends Se{_parse(n){const l=this._getOrReturnCtx(n);return B(l,{code:R.invalid_type,expected:G.never,received:l.parsedType}),ie}}yn.create=r=>new yn({typeName:le.ZodNever,...he(r)});class xp extends Se{_parse(n){if(this._getType(n)!==G.undefined){const u=this._getOrReturnCtx(n);return B(u,{code:R.invalid_type,expected:G.void,received:u.parsedType}),ie}return na(n.data)}}xp.create=r=>new xp({typeName:le.ZodVoid,...he(r)});class ma extends Se{_parse(n){const{ctx:l,status:u}=this._processInputParams(n),o=this._def;if(l.parsedType!==G.array)return B(l,{code:R.invalid_type,expected:G.array,received:l.parsedType}),ie;if(o.exactLength!==null){const h=l.data.length>o.exactLength.value,p=l.data.length<o.exactLength.value;(h||p)&&(B(l,{code:h?R.too_big:R.too_small,minimum:p?o.exactLength.value:void 0,maximum:h?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),u.dirty())}if(o.minLength!==null&&l.data.length<o.minLength.value&&(B(l,{code:R.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),u.dirty()),o.maxLength!==null&&l.data.length>o.maxLength.value&&(B(l,{code:R.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),u.dirty()),l.common.async)return Promise.all([...l.data].map((h,p)=>o.type._parseAsync(new vn(l,h,l.path,p)))).then(h=>Yt.mergeArray(u,h));const d=[...l.data].map((h,p)=>o.type._parseSync(new vn(l,h,l.path,p)));return Yt.mergeArray(u,d)}get element(){return this._def.type}min(n,l){return new ma({...this._def,minLength:{value:n,message:Q.toString(l)}})}max(n,l){return new ma({...this._def,maxLength:{value:n,message:Q.toString(l)}})}length(n,l){return new ma({...this._def,exactLength:{value:n,message:Q.toString(l)}})}nonempty(n){return this.min(1,n)}}ma.create=(r,n)=>new ma({type:r,minLength:null,maxLength:null,exactLength:null,typeName:le.ZodArray,...he(n)});function ji(r){if(r instanceof lt){const n={};for(const l in r.shape){const u=r.shape[l];n[l]=mn.create(ji(u))}return new lt({...r._def,shape:()=>n})}else return r instanceof ma?new ma({...r._def,type:ji(r.element)}):r instanceof mn?mn.create(ji(r.unwrap())):r instanceof Vi?Vi.create(ji(r.unwrap())):r instanceof Yn?Yn.create(r.items.map(n=>ji(n))):r}class lt extends Se{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),l=Ae.objectKeys(n);return this._cached={shape:n,keys:l},this._cached}_parse(n){if(this._getType(n)!==G.object){const _=this._getOrReturnCtx(n);return B(_,{code:R.invalid_type,expected:G.object,received:_.parsedType}),ie}const{status:u,ctx:o}=this._processInputParams(n),{shape:d,keys:h}=this._getCached(),p=[];if(!(this._def.catchall instanceof yn&&this._def.unknownKeys==="strip"))for(const _ in o.data)h.includes(_)||p.push(_);const v=[];for(const _ of h){const D=d[_],L=o.data[_];v.push({key:{status:"valid",value:_},value:D._parse(new vn(o,L,o.path,_)),alwaysSet:_ in o.data})}if(this._def.catchall instanceof yn){const _=this._def.unknownKeys;if(_==="passthrough")for(const D of p)v.push({key:{status:"valid",value:D},value:{status:"valid",value:o.data[D]}});else if(_==="strict")p.length>0&&(B(o,{code:R.unrecognized_keys,keys:p}),u.dirty());else if(_!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const _=this._def.catchall;for(const D of p){const L=o.data[D];v.push({key:{status:"valid",value:D},value:_._parse(new vn(o,L,o.path,D)),alwaysSet:D in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const _=[];for(const D of v){const L=await D.key,P=await D.value;_.push({key:L,value:P,alwaysSet:D.alwaysSet})}return _}).then(_=>Yt.mergeObjectSync(u,_)):Yt.mergeObjectSync(u,v)}get shape(){return this._def.shape()}strict(n){return Q.errToObj,new lt({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(l,u)=>{var d,h;const o=((h=(d=this._def).errorMap)==null?void 0:h.call(d,l,u).message)??u.defaultError;return l.code==="unrecognized_keys"?{message:Q.errToObj(n).message??o}:{message:o}}}:{}})}strip(){return new lt({...this._def,unknownKeys:"strip"})}passthrough(){return new lt({...this._def,unknownKeys:"passthrough"})}extend(n){return new lt({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new lt({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:le.ZodObject})}setKey(n,l){return this.augment({[n]:l})}catchall(n){return new lt({...this._def,catchall:n})}pick(n){const l={};for(const u of Ae.objectKeys(n))n[u]&&this.shape[u]&&(l[u]=this.shape[u]);return new lt({...this._def,shape:()=>l})}omit(n){const l={};for(const u of Ae.objectKeys(this.shape))n[u]||(l[u]=this.shape[u]);return new lt({...this._def,shape:()=>l})}deepPartial(){return ji(this)}partial(n){const l={};for(const u of Ae.objectKeys(this.shape)){const o=this.shape[u];n&&!n[u]?l[u]=o:l[u]=o.optional()}return new lt({...this._def,shape:()=>l})}required(n){const l={};for(const u of Ae.objectKeys(this.shape))if(n&&!n[u])l[u]=this.shape[u];else{let d=this.shape[u];for(;d instanceof mn;)d=d._def.innerType;l[u]=d}return new lt({...this._def,shape:()=>l})}keyof(){return Pp(Ae.objectKeys(this.shape))}}lt.create=(r,n)=>new lt({shape:()=>r,unknownKeys:"strip",catchall:yn.create(),typeName:le.ZodObject,...he(n)});lt.strictCreate=(r,n)=>new lt({shape:()=>r,unknownKeys:"strict",catchall:yn.create(),typeName:le.ZodObject,...he(n)});lt.lazycreate=(r,n)=>new lt({shape:r,unknownKeys:"strip",catchall:yn.create(),typeName:le.ZodObject,...he(n)});class Lu extends Se{_parse(n){const{ctx:l}=this._processInputParams(n),u=this._def.options;function o(d){for(const p of d)if(p.result.status==="valid")return p.result;for(const p of d)if(p.result.status==="dirty")return l.common.issues.push(...p.ctx.common.issues),p.result;const h=d.map(p=>new Ra(p.ctx.common.issues));return B(l,{code:R.invalid_union,unionErrors:h}),ie}if(l.common.async)return Promise.all(u.map(async d=>{const h={...l,common:{...l.common,issues:[]},parent:null};return{result:await d._parseAsync({data:l.data,path:l.path,parent:h}),ctx:h}})).then(o);{let d;const h=[];for(const v of u){const _={...l,common:{...l.common,issues:[]},parent:null},D=v._parseSync({data:l.data,path:l.path,parent:_});if(D.status==="valid")return D;D.status==="dirty"&&!d&&(d={result:D,ctx:_}),_.common.issues.length&&h.push(_.common.issues)}if(d)return l.common.issues.push(...d.ctx.common.issues),d.result;const p=h.map(v=>new Ra(v));return B(l,{code:R.invalid_union,unionErrors:p}),ie}}get options(){return this._def.options}}Lu.create=(r,n)=>new Lu({options:r,typeName:le.ZodUnion,...he(n)});function Eo(r,n){const l=on(r),u=on(n);if(r===n)return{valid:!0,data:r};if(l===G.object&&u===G.object){const o=Ae.objectKeys(n),d=Ae.objectKeys(r).filter(p=>o.indexOf(p)!==-1),h={...r,...n};for(const p of d){const v=Eo(r[p],n[p]);if(!v.valid)return{valid:!1};h[p]=v.data}return{valid:!0,data:h}}else if(l===G.array&&u===G.array){if(r.length!==n.length)return{valid:!1};const o=[];for(let d=0;d<r.length;d++){const h=r[d],p=n[d],v=Eo(h,p);if(!v.valid)return{valid:!1};o.push(v.data)}return{valid:!0,data:o}}else return l===G.date&&u===G.date&&+r==+n?{valid:!0,data:r}:{valid:!1}}class Zu extends Se{_parse(n){const{status:l,ctx:u}=this._processInputParams(n),o=(d,h)=>{if(hp(d)||hp(h))return ie;const p=Eo(d.value,h.value);return p.valid?((mp(d)||mp(h))&&l.dirty(),{status:l.value,value:p.data}):(B(u,{code:R.invalid_intersection_types}),ie)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([d,h])=>o(d,h)):o(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}Zu.create=(r,n,l)=>new Zu({left:r,right:n,typeName:le.ZodIntersection,...he(l)});class Yn extends Se{_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.parsedType!==G.array)return B(u,{code:R.invalid_type,expected:G.array,received:u.parsedType}),ie;if(u.data.length<this._def.items.length)return B(u,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&u.data.length>this._def.items.length&&(B(u,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const d=[...u.data].map((h,p)=>{const v=this._def.items[p]||this._def.rest;return v?v._parse(new vn(u,h,u.path,p)):null}).filter(h=>!!h);return u.common.async?Promise.all(d).then(h=>Yt.mergeArray(l,h)):Yt.mergeArray(l,d)}get items(){return this._def.items}rest(n){return new Yn({...this._def,rest:n})}}Yn.create=(r,n)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Yn({items:r,typeName:le.ZodTuple,rest:null,...he(n)})};class Cp extends Se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.parsedType!==G.map)return B(u,{code:R.invalid_type,expected:G.map,received:u.parsedType}),ie;const o=this._def.keyType,d=this._def.valueType,h=[...u.data.entries()].map(([p,v],_)=>({key:o._parse(new vn(u,p,u.path,[_,"key"])),value:d._parse(new vn(u,v,u.path,[_,"value"]))}));if(u.common.async){const p=new Map;return Promise.resolve().then(async()=>{for(const v of h){const _=await v.key,D=await v.value;if(_.status==="aborted"||D.status==="aborted")return ie;(_.status==="dirty"||D.status==="dirty")&&l.dirty(),p.set(_.value,D.value)}return{status:l.value,value:p}})}else{const p=new Map;for(const v of h){const _=v.key,D=v.value;if(_.status==="aborted"||D.status==="aborted")return ie;(_.status==="dirty"||D.status==="dirty")&&l.dirty(),p.set(_.value,D.value)}return{status:l.value,value:p}}}}Cp.create=(r,n,l)=>new Cp({valueType:n,keyType:r,typeName:le.ZodMap,...he(l)});class ts extends Se{_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.parsedType!==G.set)return B(u,{code:R.invalid_type,expected:G.set,received:u.parsedType}),ie;const o=this._def;o.minSize!==null&&u.data.size<o.minSize.value&&(B(u,{code:R.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),l.dirty()),o.maxSize!==null&&u.data.size>o.maxSize.value&&(B(u,{code:R.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),l.dirty());const d=this._def.valueType;function h(v){const _=new Set;for(const D of v){if(D.status==="aborted")return ie;D.status==="dirty"&&l.dirty(),_.add(D.value)}return{status:l.value,value:_}}const p=[...u.data.values()].map((v,_)=>d._parse(new vn(u,v,u.path,_)));return u.common.async?Promise.all(p).then(v=>h(v)):h(p)}min(n,l){return new ts({...this._def,minSize:{value:n,message:Q.toString(l)}})}max(n,l){return new ts({...this._def,maxSize:{value:n,message:Q.toString(l)}})}size(n,l){return this.min(n,l).max(n,l)}nonempty(n){return this.min(1,n)}}ts.create=(r,n)=>new ts({valueType:r,minSize:null,maxSize:null,typeName:le.ZodSet,...he(n)});class Np extends Se{get schema(){return this._def.getter()}_parse(n){const{ctx:l}=this._processInputParams(n);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}Np.create=(r,n)=>new Np({getter:r,typeName:le.ZodLazy,...he(n)});class Tp extends Se{_parse(n){if(n.data!==this._def.value){const l=this._getOrReturnCtx(n);return B(l,{received:l.data,code:R.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:n.data}}get value(){return this._def.value}}Tp.create=(r,n)=>new Tp({value:r,typeName:le.ZodLiteral,...he(n)});function Pp(r,n){return new Bi({values:r,typeName:le.ZodEnum,...he(n)})}class Bi extends Se{_parse(n){if(typeof n.data!="string"){const l=this._getOrReturnCtx(n),u=this._def.values;return B(l,{expected:Ae.joinValues(u),received:l.parsedType,code:R.invalid_type}),ie}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(n.data)){const l=this._getOrReturnCtx(n),u=this._def.values;return B(l,{received:l.data,code:R.invalid_enum_value,options:u}),ie}return na(n.data)}get options(){return this._def.values}get enum(){const n={};for(const l of this._def.values)n[l]=l;return n}get Values(){const n={};for(const l of this._def.values)n[l]=l;return n}get Enum(){const n={};for(const l of this._def.values)n[l]=l;return n}extract(n,l=this._def){return Bi.create(n,{...this._def,...l})}exclude(n,l=this._def){return Bi.create(this.options.filter(u=>!n.includes(u)),{...this._def,...l})}}Bi.create=Pp;class Ap extends Se{_parse(n){const l=Ae.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(n);if(u.parsedType!==G.string&&u.parsedType!==G.number){const o=Ae.objectValues(l);return B(u,{expected:Ae.joinValues(o),received:u.parsedType,code:R.invalid_type}),ie}if(this._cache||(this._cache=new Set(Ae.getValidEnumValues(this._def.values))),!this._cache.has(n.data)){const o=Ae.objectValues(l);return B(u,{received:u.data,code:R.invalid_enum_value,options:o}),ie}return na(n.data)}get enum(){return this._def.values}}Ap.create=(r,n)=>new Ap({values:r,typeName:le.ZodNativeEnum,...he(n)});class Hu extends Se{unwrap(){return this._def.type}_parse(n){const{ctx:l}=this._processInputParams(n);if(l.parsedType!==G.promise&&l.common.async===!1)return B(l,{code:R.invalid_type,expected:G.promise,received:l.parsedType}),ie;const u=l.parsedType===G.promise?l.data:Promise.resolve(l.data);return na(u.then(o=>this._def.type.parseAsync(o,{path:l.path,errorMap:l.common.contextualErrorMap})))}}Hu.create=(r,n)=>new Hu({type:r,typeName:le.ZodPromise,...he(n)});class qi extends Se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:l,ctx:u}=this._processInputParams(n),o=this._def.effect||null,d={addIssue:h=>{B(u,h),h.fatal?l.abort():l.dirty()},get path(){return u.path}};if(d.addIssue=d.addIssue.bind(d),o.type==="preprocess"){const h=o.transform(u.data,d);if(u.common.async)return Promise.resolve(h).then(async p=>{if(l.value==="aborted")return ie;const v=await this._def.schema._parseAsync({data:p,path:u.path,parent:u});return v.status==="aborted"?ie:v.status==="dirty"||l.value==="dirty"?Wl(v.value):v});{if(l.value==="aborted")return ie;const p=this._def.schema._parseSync({data:h,path:u.path,parent:u});return p.status==="aborted"?ie:p.status==="dirty"||l.value==="dirty"?Wl(p.value):p}}if(o.type==="refinement"){const h=p=>{const v=o.refinement(p,d);if(u.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return p};if(u.common.async===!1){const p=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return p.status==="aborted"?ie:(p.status==="dirty"&&l.dirty(),h(p.value),{status:l.value,value:p.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(p=>p.status==="aborted"?ie:(p.status==="dirty"&&l.dirty(),h(p.value).then(()=>({status:l.value,value:p.value}))))}if(o.type==="transform")if(u.common.async===!1){const h=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!Zi(h))return ie;const p=o.transform(h.value,d);if(p instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:p}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(h=>Zi(h)?Promise.resolve(o.transform(h.value,d)).then(p=>({status:l.value,value:p})):ie);Ae.assertNever(o)}}qi.create=(r,n,l)=>new qi({schema:r,typeName:le.ZodEffects,effect:n,...he(l)});qi.createWithPreprocess=(r,n,l)=>new qi({schema:n,effect:{type:"preprocess",transform:r},typeName:le.ZodEffects,...he(l)});class mn extends Se{_parse(n){return this._getType(n)===G.undefined?na(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}mn.create=(r,n)=>new mn({innerType:r,typeName:le.ZodOptional,...he(n)});class Vi extends Se{_parse(n){return this._getType(n)===G.null?na(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Vi.create=(r,n)=>new Vi({innerType:r,typeName:le.ZodNullable,...he(n)});class Do extends Se{_parse(n){const{ctx:l}=this._processInputParams(n);let u=l.data;return l.parsedType===G.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}Do.create=(r,n)=>new Do({innerType:r,typeName:le.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...he(n)});class ko extends Se{_parse(n){const{ctx:l}=this._processInputParams(n),u={...l,common:{...l.common,issues:[]}},o=this._def.innerType._parse({data:u.data,path:u.path,parent:{...u}});return Ru(o)?o.then(d=>({status:"valid",value:d.status==="valid"?d.value:this._def.catchValue({get error(){return new Ra(u.common.issues)},input:u.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ra(u.common.issues)},input:u.data})}}removeCatch(){return this._def.innerType}}ko.create=(r,n)=>new ko({innerType:r,typeName:le.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...he(n)});class Mp extends Se{_parse(n){if(this._getType(n)!==G.nan){const u=this._getOrReturnCtx(n);return B(u,{code:R.invalid_type,expected:G.nan,received:u.parsedType}),ie}return{status:"valid",value:n.data}}}Mp.create=r=>new Mp({typeName:le.ZodNaN,...he(r)});class L0 extends Se{_parse(n){const{ctx:l}=this._processInputParams(n),u=l.data;return this._def.type._parse({data:u,path:l.path,parent:l})}unwrap(){return this._def.type}}class Fo extends Se{_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.common.async)return(async()=>{const d=await this._def.in._parseAsync({data:u.data,path:u.path,parent:u});return d.status==="aborted"?ie:d.status==="dirty"?(l.dirty(),Wl(d.value)):this._def.out._parseAsync({data:d.value,path:u.path,parent:u})})();{const o=this._def.in._parseSync({data:u.data,path:u.path,parent:u});return o.status==="aborted"?ie:o.status==="dirty"?(l.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:u.path,parent:u})}}static create(n,l){return new Fo({in:n,out:l,typeName:le.ZodPipeline})}}class jo extends Se{_parse(n){const l=this._def.innerType._parse(n),u=o=>(Zi(o)&&(o.value=Object.freeze(o.value)),o);return Ru(l)?l.then(o=>u(o)):u(l)}unwrap(){return this._def.innerType}}jo.create=(r,n)=>new jo({innerType:r,typeName:le.ZodReadonly,...he(n)});var le;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(le||(le={}));const oe=fn.create,z=Hi.create;yn.create;const Qu=ma.create,Ju=lt.create;Lu.create;Zu.create;Yn.create;const $o=Bi.create;Hu.create;mn.create;Vi.create;var go,_o,bo,So,xo,Co;const Fu=Ju({latitude:z(),longitude:z(),cityName:oe(),stateName:oe().optional(),stateCode:oe().optional(),countryName:oe(),countryCode:oe(),timezone:oe()}),Z0=Fu.extend({observedAtSec:z(),observedAtLocal:oe(),sunrise:oe(),sunset:oe(),partOfDay:$o(["day","night"]),weatherCode:z(),weatherDescription:oe(),weatherIcon:oe(),temperatureC:z(),temperatureF:z(),temperatureFeelsLikeC:z(),temperatureFeelsLikeF:z(),dewPointC:z(),dewPointF:z(),windSpeedKph:z(),windSpeedMph:z(),gustSpeedKph:z(),gustSpeedMph:z(),windDirectionDeg:z(),windDirectionFull:oe(),windDirectionShort:oe(),pressureMb:z(),pressureInHg:z(),seaLevelPressureMb:z(),seaLevelPressureInHg:z(),visibilityKm:z(),visibilityMi:z(),humidity:z(),clouds:z(),precipitationRateMmph:z(),precipitationRateInph:z(),snowfallRateMmph:z(),snowfallRateInph:z(),uvIndex:z(),airQualityIndex:z()}),H0=Ju({forecastDate:oe(),forecastDateSec:z(),weatherCode:z(),weatherDescription:oe(),weatherIcon:oe(),precipitationProbability:z(),temperatureC:z(),temperatureF:z(),maxTemperatureC:z(),maxTemperatureF:z(),minTemperatureC:z(),minTemperatureF:z(),highTemperatureC:z(),highTemperatureF:z(),lowTemperatureC:z(),lowTemperatureF:z(),maxTemperatureFeelsLikeC:z(),maxTemperatureFeelsLikeF:z(),minTemperatureFeelsLikeC:z(),minTemperatureFeelsLikeF:z(),dewPointC:z(),dewPointF:z(),windSpeedKph:z(),windSpeedMph:z(),gustSpeedKph:z(),gustSpeedMph:z(),windDirectionDeg:z(),windDirectionFull:oe(),windDirectionShort:oe(),pressureMb:z(),pressureInHg:z(),seaLevelPressureMb:z(),seaLevelPressureInHg:z(),visibilityKm:z(),visibilityMi:z(),humidity:z(),clouds:z(),precipitationMm:z(),precipitationIn:z(),snowfallMm:z(),snowfallIn:z(),snowDepthMm:z(),snowDepthIn:z(),uvIndex:z(),sunrise:oe(),sunset:oe(),moonrise:oe(),moonset:oe(),moonIllumination:z(),moonLunationPhase:z()}),B0=Fu.extend({data:Qu(H0)}),q0=Ju({forecastTimeSec:z(),forecastTimeLocal:oe(),forecastTimeUtc:oe(),partOfDay:$o(["day","night"]),weatherCode:z(),weatherDescription:oe(),weatherIcon:oe(),precipitationProbability:z(),temperatureC:z(),temperatureF:z(),temperatureFeelsLikeC:z(),temperatureFeelsLikeF:z(),dewPointC:z(),dewPointF:z(),windSpeedKph:z(),windSpeedMph:z(),gustSpeedKph:z(),gustSpeedMph:z(),windDirectionDeg:z(),windDirectionFull:oe(),windDirectionShort:oe(),pressureMb:z(),pressureInHg:z(),seaLevelPressureMb:z(),seaLevelPressureInHg:z(),visibilityKm:z(),visibilityMi:z(),humidity:z(),clouds:z(),precipitationMm:z(),precipitationIn:z(),snowfallMm:z(),snowfallIn:z(),snowDepthMm:z(),snowDepthIn:z(),uvIndex:z()}),V0=Fu.extend({data:Qu(q0)}),Y0=Ju({title:oe(),description:oe(),severity:$o(["Advisory","Watch","Warning"]),effectiveSec:z(),effectiveUtc:oe(),effectiveLocal:oe(),expiresSec:z(),expiresUtc:oe(),expiresLocal:oe(),onsetSec:z().optional(),onsetUtc:oe().optional(),onsetLocal:oe().optional(),endsSec:z().optional(),endsUtc:oe().optional(),endsLocal:oe().optional(),uri:oe(),regions:Qu(oe())}),G0=Fu.extend({alerts:Qu(Y0)});function wp(r){try{const n=JSON.parse(r),l=Z0.safeParse(n);return l.success?{success:!0,data:l.data}:{success:!1,error:l.error.message}}catch(n){return{success:!1,error:n instanceof Error?n.message:"Invalid JSON"}}}function Op(r){try{const n=JSON.parse(r),l=B0.safeParse(n);return l.success?{success:!0,data:l.data}:{success:!1,error:l.error.message}}catch(n){return{success:!1,error:n instanceof Error?n.message:"Invalid JSON"}}}function Ep(r){try{const n=JSON.parse(r),l=V0.safeParse(n);return l.success?{success:!0,data:l.data}:{success:!1,error:l.error.message}}catch(n){return{success:!1,error:n instanceof Error?n.message:"Invalid JSON"}}}function Dp(r){try{const n=JSON.parse(r),l=G0.safeParse(n);return l.success?{success:!0,data:l.data}:{success:!1,error:l.error.message}}catch(n){return{success:!1,error:n instanceof Error?n.message:"Invalid JSON"}}}function dt(r){return Math.round((r*9/5+32)*10)/10}function K0(r){return Math.round((r-32)*5/9*10)/10}function gn(r){return Math.round(r*.621371*10)/10}function X0(r){return Math.round(r/.621371*10)/10}function Gn(r){return Math.round(r*.02953*100)/100}function Q0(r){return Math.round(r/.02953*10)/10}function as(r){return Math.round(r*.621371*10)/10}function J0(r){return Math.round(r/.621371*10)/10}function Bu(r){return Math.round(r*.0393701*100)/100}function F0(r){return Math.round(r/.0393701*10)/10}function Sn(r,n){return`${{200:"t01",300:"d01",500:"r01",501:"r02",502:"r03",600:"s01",601:"s02",602:"s03",800:"c01",801:"c02",802:"c02",803:"c03",804:"c04"}[r]||"c04"}${n==="day"?"d":"n"}`}function $0(r){const n=[{abbr:"N",english:"north"},{abbr:"NNE",english:"north-northeast"},{abbr:"NE",english:"northeast"},{abbr:"ENE",english:"east-northeast"},{abbr:"E",english:"east"},{abbr:"ESE",english:"east-southeast"},{abbr:"SE",english:"southeast"},{abbr:"SSE",english:"south-southeast"},{abbr:"S",english:"south"},{abbr:"SSW",english:"south-southwest"},{abbr:"SW",english:"southwest"},{abbr:"WSW",english:"west-southwest"},{abbr:"W",english:"west"},{abbr:"WNW",english:"west-northwest"},{abbr:"NW",english:"northwest"},{abbr:"NNW",english:"north-northwest"}],l=(r%360+360)%360,u=Math.round(l/22.5)%16;return n[u]}function Yi(r){return r>=6&&r<18?"day":"night"}function W0(){return Yi(new Date().getHours())}const kp=[{code:800,label:"Clear sky",temperatureC:22,precipitationMmph:0,humidity:45,visibilityKm:30,windSpeedKph:10,pressureMb:1013},{code:801,label:"Few clouds",temperatureC:20,precipitationMmph:0,humidity:50,visibilityKm:25,windSpeedKph:12,pressureMb:1013},{code:802,label:"Scattered clouds",temperatureC:18,precipitationMmph:0,humidity:60,visibilityKm:20,windSpeedKph:15,pressureMb:1010},{code:803,label:"Broken clouds",temperatureC:16,precipitationMmph:0,humidity:65,visibilityKm:16,windSpeedKph:18,pressureMb:1008},{code:804,label:"Overcast",temperatureC:14,precipitationMmph:0,humidity:70,visibilityKm:15,windSpeedKph:20,pressureMb:1005},{code:300,label:"Drizzle",temperatureC:12,precipitationMmph:1,humidity:80,visibilityKm:10,windSpeedKph:15,pressureMb:1005},{code:500,label:"Light rain",temperatureC:11,precipitationMmph:2.5,humidity:85,visibilityKm:8,windSpeedKph:18,pressureMb:1003},{code:501,label:"Moderate rain",temperatureC:10,precipitationMmph:8,humidity:90,visibilityKm:5,windSpeedKph:22,pressureMb:1e3},{code:502,label:"Heavy rain",temperatureC:9,precipitationMmph:20,humidity:95,visibilityKm:3,windSpeedKph:28,pressureMb:998},{code:600,label:"Light snow",temperatureC:-2,precipitationMmph:0,humidity:75,visibilityKm:6,windSpeedKph:12,pressureMb:1010},{code:601,label:"Snow",temperatureC:-5,precipitationMmph:0,humidity:80,visibilityKm:4,windSpeedKph:15,pressureMb:1008},{code:602,label:"Heavy snow",temperatureC:-8,precipitationMmph:0,humidity:85,visibilityKm:2,windSpeedKph:20,pressureMb:1005},{code:200,label:"Thunderstorm",temperatureC:15,precipitationMmph:15,humidity:90,visibilityKm:4,windSpeedKph:35,pressureMb:995}],ca=[{cityId:2643743,cityName:"London",stateName:"England",countryName:"",countryCode:"GB",latitude:51.50853,longitude:-.12574},{cityId:5367815,cityName:"London",stateName:"California",stateCode:"CA",countryName:"United States",countryCode:"US",latitude:36.47606,longitude:-119.44318},{cityId:4517009,cityName:"London",stateName:"Ohio",stateCode:"OH",countryName:"United States",countryCode:"US",latitude:39.88645,longitude:-83.44825},{cityId:4298960,cityName:"London",stateName:"Kentucky",stateCode:"KY",countryName:"United States",countryCode:"US",latitude:37.12898,longitude:-84.08326},{cityId:4119617,cityName:"London",stateName:"Arkansas",stateCode:"AR",countryName:"United States",countryCode:"US",latitude:35.32897,longitude:-93.25296},{cityId:6058560,cityName:"London",stateName:"Ontario",countryName:"Canada",countryCode:"CA",latitude:42.98339,longitude:-81.23304},{cityId:5128581,cityName:"New York",stateName:"New York",stateCode:"NY",countryName:"United States",countryCode:"US",latitude:40.7128,longitude:-74.006},{cityId:2147714,cityName:"Sydney",stateName:"New South Wales",countryName:"Heard Island and McDonald Islands",countryCode:"AU",latitude:-33.86785,longitude:151.20732},{cityId:6354908,cityName:"Sydney",stateName:"Nova Scotia",countryName:"Canada",countryCode:"CA",latitude:46.1351,longitude:-60.1831},{cityId:1850147,cityName:"Tokyo",stateName:"Tōkyō",countryName:"Japan",countryCode:"JP",latitude:35.6895,longitude:139.69171},{cityId:6090785,cityName:"North Vancouver",stateName:"British Columbia",countryName:"Canada",countryCode:"CA",latitude:49.31636,longitude:-123.06934},{cityId:5814616,cityName:"Vancouver",stateName:"Washington",stateCode:"WA",countryName:"United States",countryCode:"US",latitude:45.63873,longitude:-122.66149},{cityId:6173331,cityName:"Vancouver",stateName:"British Columbia",countryName:"Canada",countryCode:"CA",latitude:49.24966,longitude:-123.11934},{cityId:8533869,cityName:"West Vancouver",stateName:"British Columbia",countryName:"Canada",countryCode:"CA",latitude:49.36672,longitude:-123.16652}];function us(r){return ca.find(n=>n.cityId===r)}function ev(r){const n=us(6173331)||ca[0],l=new Date,u=W0(),o=15.5,d=dt(o),h=o-2,p=dt(h),v=8,_=dt(v),D=11.7,L=gn(D),P=D*1.5,we=gn(P),Oe=1017,Ve=Gn(Oe),et=16,Qe=as(et);return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:"UTC",observedAtSec:Math.floor(l.getTime()/1e3),observedAtLocal:l.toISOString(),sunrise:"06:30",sunset:"18:45",partOfDay:u,weatherCode:803,weatherDescription:"Broken clouds",weatherIcon:Sn(803,u),temperatureC:o,temperatureF:d,temperatureFeelsLikeC:h,temperatureFeelsLikeF:p,dewPointC:v,dewPointF:_,windSpeedKph:D,windSpeedMph:L,gustSpeedKph:P,gustSpeedMph:we,windDirectionDeg:135,windDirectionFull:"southeast",windDirectionShort:"SE",pressureMb:Oe,pressureInHg:Ve,seaLevelPressureMb:Oe,seaLevelPressureInHg:Ve,visibilityKm:et,visibilityMi:Qe,humidity:65,clouds:75,precipitationRateMmph:0,precipitationRateInph:0,snowfallRateMmph:0,snowfallRateInph:0,uvIndex:3,airQualityIndex:55}}function tv(r){const n=us(6173331)||ca[0],l=new Date,u=15.5,o=Array.from({length:5},(d,h)=>{const p=new Date(l);p.setDate(p.getDate()+h);const v=Math.round((u+h*.7)*10)/10,_=dt(v),D=v+3,L=dt(D),P=v-2,we=dt(P);return{forecastDate:p.toISOString().split("T")[0],forecastDateSec:Math.floor(p.getTime()/1e3),weatherCode:h%3===0?803:h%3===1?500:802,weatherDescription:h%3===0?"Broken clouds":h%3===1?"Light rain":"Scattered clouds",weatherIcon:Sn(h%3===0?803:h%3===1?500:802,"day"),precipitationProbability:h%3===1?40:10,temperatureC:v,temperatureF:_,maxTemperatureC:D,maxTemperatureF:L,minTemperatureC:P,minTemperatureF:we,highTemperatureC:D,highTemperatureF:L,lowTemperatureC:P,lowTemperatureF:we,maxTemperatureFeelsLikeC:D-1,maxTemperatureFeelsLikeF:dt(D-1),minTemperatureFeelsLikeC:P-1,minTemperatureFeelsLikeF:dt(P-1),dewPointC:v-5,dewPointF:dt(v-5),windSpeedKph:10+h,windSpeedMph:gn(10+h),gustSpeedKph:16+h*1.5,gustSpeedMph:gn(16+h*1.5),windDirectionDeg:(135+h*20)%360,windDirectionFull:"southeast",windDirectionShort:"SE",pressureMb:1017-h,pressureInHg:Gn(1017-h),seaLevelPressureMb:1017-h,seaLevelPressureInHg:Gn(1017-h),visibilityKm:16-h*.5,visibilityMi:as(16-h*.5),humidity:55+h*5,clouds:40+h*10,precipitationMm:h%3===1?3.5:0,precipitationIn:h%3===1?Bu(3.5):0,snowfallMm:0,snowfallIn:0,snowDepthMm:0,snowDepthIn:0,uvIndex:Math.max(0,5-h),sunrise:"06:30",sunset:"18:45",moonrise:"22:15",moonset:"09:30",moonIllumination:.65,moonLunationPhase:.5}});return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:"UTC",data:o}}function av(r){const n=us(6173331)||ca[0],l=new Date,u=15.5,o=Array.from({length:12},(d,h)=>{const p=new Date(l);p.setHours(p.getHours()+h);const v=p.getHours(),_=v.toString().padStart(2,"0"),D=u+Math.sin((v+h)/12*Math.PI)*5,L=dt(D),P=Yi(v),we=8+Math.random()*4,Oe=14+Math.random()*6;return{forecastTimeSec:Math.floor(p.getTime()/1e3),forecastTimeLocal:`${p.toISOString().split("T")[0]}T${_}:00:00`,forecastTimeUtc:p.toISOString(),partOfDay:P,weatherCode:h%4===0?803:h%4===1?802:h%4===2?500:804,weatherDescription:h%4===0?"Broken clouds":h%4===1?"Scattered clouds":h%4===2?"Light rain":"Overcast",weatherIcon:Sn(h%4===0?803:h%4===1?802:h%4===2?500:804,P),precipitationProbability:h%4===2?35:5,temperatureC:D,temperatureF:L,temperatureFeelsLikeC:D-1,temperatureFeelsLikeF:dt(D-1),dewPointC:D-6,dewPointF:dt(D-6),windSpeedKph:we,windSpeedMph:gn(we),gustSpeedKph:Oe,gustSpeedMph:gn(Oe),windDirectionDeg:(120+h*15)%360,windDirectionFull:"southeast",windDirectionShort:"SE",pressureMb:1017,pressureInHg:Gn(1017),seaLevelPressureMb:1017,seaLevelPressureInHg:Gn(1017),visibilityKm:15,visibilityMi:as(15),humidity:60+Math.random()*20,clouds:50+h*3,precipitationMm:h%4===2?1.2:0,precipitationIn:h%4===2?Bu(1.2):0,snowfallMm:0,snowfallIn:0,snowDepthMm:0,snowDepthIn:0,uvIndex:P==="day"?Math.max(0,4-Math.abs(12-v)/2):0}});return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:"UTC",data:o}}function nv(r){const n=us(6173331)||ca[0];return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:"UTC",alerts:[iv()]}}function I0(r){const n=St(),l=[],u=Date.now();for(let o=0;o<5;o++){const d=r+o*3,h=new Date(u+o*24*60*60*1e3),p=Math.floor(h.getTime()/1e3),v=dt(d);l.push({forecastDate:h.toISOString().split("T")[0],forecastDateSec:p,weatherCode:800+Math.floor(Math.random()*5),weatherDescription:"Mostly clear",weatherIcon:Sn(800,"day"),precipitationProbability:Math.floor(Math.random()*30),temperatureC:d,temperatureF:v,maxTemperatureC:d+3,maxTemperatureF:v+5.4,minTemperatureC:d-3,minTemperatureF:v-5.4,highTemperatureC:d+2,highTemperatureF:v+3.6,lowTemperatureC:d-2,lowTemperatureF:v-3.6,maxTemperatureFeelsLikeC:d+1,maxTemperatureFeelsLikeF:v+1.8,minTemperatureFeelsLikeC:d-4,minTemperatureFeelsLikeF:v-7.2,dewPointC:d-5,dewPointF:v-9,windSpeedKph:15,windSpeedMph:9.3,gustSpeedKph:25,gustSpeedMph:15.5,windDirectionDeg:180,windDirectionFull:"South",windDirectionShort:"S",pressureMb:1013,pressureInHg:29.91,seaLevelPressureMb:1013,seaLevelPressureInHg:29.91,visibilityKm:20,visibilityMi:12.4,humidity:60,clouds:25,precipitationMm:0,precipitationIn:0,snowfallMm:0,snowfallIn:0,snowDepthMm:0,snowDepthIn:0,uvIndex:6,sunrise:"06:30",sunset:"20:15",moonrise:"21:00",moonset:"07:30",moonIllumination:.5,moonLunationPhase:.25})}return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:n.timezone,data:l}}function P0(r){const n=St(),l=[],u=Date.now();for(let o=0;o<5;o++){const d=r-o*3,h=new Date(u+o*24*60*60*1e3),p=Math.floor(h.getTime()/1e3),v=dt(d);l.push({forecastDate:h.toISOString().split("T")[0],forecastDateSec:p,weatherCode:600+Math.floor(Math.random()*3),weatherDescription:"Snow",weatherIcon:Sn(600,"day"),precipitationProbability:60+Math.floor(Math.random()*30),temperatureC:d,temperatureF:v,maxTemperatureC:d+2,maxTemperatureF:v+3.6,minTemperatureC:d-4,minTemperatureF:v-7.2,highTemperatureC:d+1,highTemperatureF:v+1.8,lowTemperatureC:d-3,lowTemperatureF:v-5.4,maxTemperatureFeelsLikeC:d-2,maxTemperatureFeelsLikeF:v-3.6,minTemperatureFeelsLikeC:d-6,minTemperatureFeelsLikeF:v-10.8,dewPointC:d-3,dewPointF:v-5.4,windSpeedKph:20,windSpeedMph:12.4,gustSpeedKph:35,gustSpeedMph:21.7,windDirectionDeg:360,windDirectionFull:"North",windDirectionShort:"N",pressureMb:1005,pressureInHg:29.68,seaLevelPressureMb:1005,seaLevelPressureInHg:29.68,visibilityKm:8,visibilityMi:5,humidity:85,clouds:90,precipitationMm:5,precipitationIn:.2,snowfallMm:50,snowfallIn:2,snowDepthMm:100,snowDepthIn:4,uvIndex:2,sunrise:"06:30",sunset:"20:15",moonrise:"21:00",moonset:"07:30",moonIllumination:.5,moonLunationPhase:.25})}return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:n.timezone,data:l}}function e1(r){const n=St(),l=[],u=Date.now();for(let o=0;o<12;o++){const d=r+o*1,h=new Date(u+o*60*60*1e3),p=Math.floor(h.getTime()/1e3),v=dt(d);l.push({forecastTimeSec:p,forecastTimeLocal:h.toISOString(),forecastTimeUtc:h.toISOString(),partOfDay:Yi(h.getHours()),weatherCode:800,weatherDescription:"Clear",weatherIcon:Sn(800,Yi(h.getHours())),precipitationProbability:10,temperatureC:d,temperatureF:v,temperatureFeelsLikeC:d-1,temperatureFeelsLikeF:v-1.8,dewPointC:d-5,dewPointF:v-9,windSpeedKph:12,windSpeedMph:7.5,gustSpeedKph:20,gustSpeedMph:12.4,windDirectionDeg:180,windDirectionFull:"South",windDirectionShort:"S",pressureMb:1013,pressureInHg:29.91,seaLevelPressureMb:1013,seaLevelPressureInHg:29.91,visibilityKm:20,visibilityMi:12.4,humidity:55,clouds:15,precipitationMm:0,precipitationIn:0,snowfallMm:0,snowfallIn:0,snowDepthMm:0,snowDepthIn:0,uvIndex:5})}return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:n.timezone,data:l}}function t1(r){const n=St(),l=[],u=Date.now();for(let o=0;o<12;o++){const d=r-o*1,h=new Date(u+o*60*60*1e3),p=Math.floor(h.getTime()/1e3),v=dt(d);l.push({forecastTimeSec:p,forecastTimeLocal:h.toISOString(),forecastTimeUtc:h.toISOString(),partOfDay:Yi(h.getHours()),weatherCode:600,weatherDescription:"Snow",weatherIcon:Sn(600,Yi(h.getHours())),precipitationProbability:70,temperatureC:d,temperatureF:v,temperatureFeelsLikeC:d-3,temperatureFeelsLikeF:v-5.4,dewPointC:d-2,dewPointF:v-3.6,windSpeedKph:25,windSpeedMph:15.5,gustSpeedKph:40,gustSpeedMph:24.9,windDirectionDeg:360,windDirectionFull:"North",windDirectionShort:"N",pressureMb:1e3,pressureInHg:29.53,seaLevelPressureMb:1e3,seaLevelPressureInHg:29.53,visibilityKm:5,visibilityMi:3.1,humidity:90,clouds:95,precipitationMm:2,precipitationIn:.08,snowfallMm:20,snowfallIn:.8,snowDepthMm:100,snowDepthIn:4,uvIndex:1})}return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:n.timezone,data:l}}function iv(){const r=Date.now(),n=Math.floor(r/1e3),l=n+3600*6,u=n+1800,o=l-1800,d=new Date(r),h=new Date(l*1e3),p=new Date(u*1e3),v=new Date(o*1e3);return{title:"Weather Advisory",description:"Sample weather advisory. Edit JSON to customize.",severity:"Advisory",effectiveSec:n,effectiveUtc:d.toISOString(),effectiveLocal:d.toLocaleString(),expiresSec:l,expiresUtc:h.toISOString(),expiresLocal:h.toLocaleString(),onsetSec:u,onsetUtc:p.toISOString(),onsetLocal:p.toLocaleString(),endsSec:o,endsUtc:v.toISOString(),endsLocal:v.toLocaleString(),uri:"https://example.com/alert",regions:["Sample Region"]}}const lv="tos-dev-weather";function a1(){try{const r=localStorage.getItem(lv);return r?JSON.parse(r):null}catch{return null}}function Fi(){try{localStorage.setItem(lv,JSON.stringify({conditions:$u,dailyForecast:qn,hourlyForecast:Vn,alerts:ns,selectedCityId:Ri,units:Wo}))}catch(r){console.error("Failed to save weather config to localStorage",r)}}const mt=a1();let $u=(go=mt==null?void 0:mt.conditions)!==null&&go!==void 0?go:ev(),qn=(_o=mt==null?void 0:mt.dailyForecast)!==null&&_o!==void 0?_o:tv(),Vn=(bo=mt==null?void 0:mt.hourlyForecast)!==null&&bo!==void 0?bo:av(),ns=(So=mt==null?void 0:mt.alerts)!==null&&So!==void 0?So:nv(),Ri=(xo=mt==null?void 0:mt.selectedCityId)!==null&&xo!==void 0?xo:6173331,Wo=(Co=mt==null?void 0:mt.units)!==null&&Co!==void 0?Co:"metric";const zo=new Set;function $i(){for(const r of zo)r()}function Fl(r,n){switch(n.name){case"weather.getConditions":{const l=n.data;l!=null&&l.cityId;const u=St();r.send({name:n.responseName,data:{success:!0,...u}});break}case"weather.getDailyForecast":{const l=n.data,u=(l==null?void 0:l.cityId)||Ri,o=(l==null?void 0:l.days)||5,d=Eu(u,o);r.send({name:n.responseName,data:{success:!0,...d}});break}case"weather.getHourlyForecast":{const l=n.data,u=(l==null?void 0:l.cityId)||Ri,o=(l==null?void 0:l.hours)||12,d=Du(u,o);r.send({name:n.responseName,data:{success:!0,...d}});break}case"weather.getCities":{const l=n.data,u=n1(l==null?void 0:l.search,l==null?void 0:l.countryCode);r.send({name:n.responseName,data:{success:!0,data:u}});break}case"weather.getAlerts":{const l=n.data,u=(l==null?void 0:l.cityId)||Ri,o=ku(u);r.send({name:n.responseName,data:{success:!0,...o}});break}}}function St(r){return $u}function Eu(r,n){return n&&n>0&&n<qn.data.length?{...qn,data:qn.data.slice(0,n)}:qn}function Du(r,n){return n&&n>0&&n<Vn.data.length?{...Vn,data:Vn.data.slice(0,n)}:Vn}function n1(r,n){let l=ca;if(r){const u=r.toLowerCase();l=l.filter(o=>{var d;return o.cityName.toLowerCase().includes(u)||((d=o.stateName)===null||d===void 0?void 0:d.toLowerCase().includes(u))||o.countryName.toLowerCase().includes(u)})}return n&&(l=l.filter(u=>u.countryCode===n)),l}function ku(r){if(!r||r===Ri)return ns;const n=us(r)||ca[0];return{latitude:n.latitude,longitude:n.longitude,cityName:n.cityName,stateName:n.stateName,stateCode:n.stateCode,countryName:n.countryName,countryCode:n.countryCode,timezone:"UTC",alerts:ns.alerts}}function i1(){return Wo}function Nt(r){$u=r,Fi(),$i()}function Mu(r){qn=r,Fi(),$i()}function wu(r){Vn=r,Fi(),$i()}function ki(r){ns=r,Fi(),$i()}function l1(r){Wo=r,Fi(),$i()}function s1(){$u=ev(),qn=tv(),Vn=av(),ns=nv(),Fi(),$i()}function u1(r){return zo.add(r),()=>zo.delete(r)}ca.map(r=>({name:r.cityName,latitude:r.latitude,longitude:r.longitude,timezone:"UTC",countryCode:r.countryCode,state:r.stateName||""}));function r1(){const[r,n]=ne.useState(St()),[l,u]=ne.useState(Eu()),[o,d]=ne.useState(Du()),[h,p]=ne.useState(ku()),[v,_]=ne.useState(i1()),D=T=>{l1(T),_(T)},[L,P]=ne.useState(""),[we,Oe]=ne.useState(""),[Ve,et]=ne.useState(""),[Qe,Ue]=ne.useState(""),[fe,Be]=ne.useState(!0),[ut,Ye]=ne.useState(!0),[ee,rt]=ne.useState(!0),[Kt,pa]=ne.useState(!0),[ct,xt]=ne.useState({conditions:!1,daily:!1,hourly:!1,alerts:!1});ne.useEffect(()=>u1(()=>{n(St()),u(Eu()),d(Du()),p(ku())}),[]),ne.useEffect(()=>{P(JSON.stringify(r,null,2)),Be(!0)},[r]),ne.useEffect(()=>{Oe(JSON.stringify(l,null,2)),Ye(!0)},[l]),ne.useEffect(()=>{et(JSON.stringify(o,null,2)),rt(!0)},[o]),ne.useEffect(()=>{Ue(JSON.stringify(h,null,2)),pa(!0)},[h]);const Xt=T=>{xt(F=>({...F,[T]:!F[T]}))},la=T=>{P(T);const F=wp(T);Be(F.success)},jt=()=>{const T=wp(L);T.success&&T.data&&(Nt(T.data),P(JSON.stringify(T.data,null,2)))},O=T=>{const F=ca[T],be={latitude:F.latitude,longitude:F.longitude,cityName:F.cityName,stateName:F.stateName,stateCode:F.stateCode,countryName:F.countryName,countryCode:F.countryCode,timezone:"UTC"};Nt({...St(),...be}),Mu({...Eu(),...be}),wu({...Du(),...be}),ki({...ku(),...be})},Z=T=>{Nt({...St(),partOfDay:T})},I=T=>{const F=St(),be=T.temperatureC,We=dt(T.temperatureC);Nt({...F,weatherCode:T.code,weatherDescription:T.label,weatherIcon:Sn(T.code,F.partOfDay),temperatureC:be,temperatureF:We,temperatureFeelsLikeC:be-2,temperatureFeelsLikeF:We-3.6,precipitationRateMmph:T.precipitationMmph,precipitationRateInph:Bu(T.precipitationMmph),humidity:T.humidity,visibilityKm:T.visibilityKm,visibilityMi:as(T.visibilityKm),windSpeedKph:T.windSpeedKph,windSpeedMph:gn(T.windSpeedKph),pressureMb:T.pressureMb,pressureInHg:Gn(T.pressureMb)})},De=T=>{const F=St();if(v==="imperial"){const be=K0(T);Nt({...F,temperatureC:be,temperatureF:T,temperatureFeelsLikeC:be-2,temperatureFeelsLikeF:T-3.6})}else Nt({...F,temperatureC:T,temperatureF:dt(T),temperatureFeelsLikeC:T-2,temperatureFeelsLikeF:dt(T-2)})},je=T=>{Nt({...St(),humidity:T})},S=T=>{const F=St();if(v==="imperial"){const be=X0(T);Nt({...F,windSpeedKph:be,windSpeedMph:T})}else Nt({...F,windSpeedKph:T,windSpeedMph:gn(T)})},j=T=>{const F=$0(T);Nt({...St(),windDirectionDeg:T,windDirectionFull:F.english,windDirectionShort:F.abbr})},H=T=>{const F=St();if(v==="imperial"){const be=F0(T);Nt({...F,precipitationRateMmph:be,precipitationRateInph:T})}else Nt({...F,precipitationRateMmph:T,precipitationRateInph:Bu(T)})},Y=T=>{const F=St();if(v==="imperial"){const be=Q0(T);Nt({...F,pressureMb:be,pressureInHg:T})}else Nt({...F,pressureMb:T,pressureInHg:Gn(T)})},te=T=>{const F=St();if(v==="imperial"){const be=J0(T);Nt({...F,visibilityKm:be,visibilityMi:T})}else Nt({...F,visibilityKm:T,visibilityMi:as(T)})},de=T=>{Oe(T);const F=Op(T);Ye(F.success)},Ce=()=>{const T=Op(we);T.success&&T.data&&(Mu(T.data),Oe(JSON.stringify(T.data,null,2)))},pt=()=>{const T=I0(r.temperatureC);Mu(T)},Je=()=>{const T=P0(r.temperatureC);Mu(T)},xn=T=>{et(T);const F=Ep(T);rt(F.success)},Xn=()=>{const T=Ep(Ve);T.success&&T.data&&(wu(T.data),et(JSON.stringify(T.data,null,2)))},Wi=()=>{const T=e1(r.temperatureC);wu(T)},rs=()=>{const T=t1(r.temperatureC);wu(T)},va=T=>{Ue(T);const F=Dp(T);pa(F.success)},Ii=()=>{const T=Dp(Qe);T.success&&T.data&&(ki(T.data),Ue(JSON.stringify(T.data,null,2)))},Pi=()=>{const T=iv(),F={...h,alerts:[...h.alerts,T]};p(F),ki(F)},Wu=()=>{const T={...h,alerts:[]};p(T),ki(T)},cs=T=>{const F={...h,alerts:h.alerts.filter((be,We)=>We!==T)};p(F),ki(F)},el=(T,F)=>{const be=[...h.alerts];be[T]={...be[T],severity:F};const We={...h,alerts:be};p(We),ki(We)},Qn=r.windDirectionDeg||0;return y.jsxs("div",{className:"weather-config",children:[y.jsxs("div",{className:"weather-config__top-controls",children:[y.jsx("button",{className:"weather-config__reset-button",onClick:s1,children:"Reset to Defaults"}),y.jsx("select",{className:"weather-config__select weather-config__city-select",value:ca.findIndex(T=>T.latitude===r.latitude&&T.longitude===r.longitude),onChange:T=>O(parseInt(T.target.value,10)),children:ca.map((T,F)=>{var be;return y.jsxs("option",{value:F,children:[T.cityName,", ",(be=T.stateName)!==null&&be!==void 0?be:""]},T.cityId)})}),y.jsxs("div",{className:"weather-config__unit-toggle",children:[y.jsx("span",{className:v==="metric"?"weather-config__unit-active":"",children:"Metric"}),y.jsxs("label",{className:"weather-config__toggle-switch",children:[y.jsx("input",{type:"checkbox",checked:v==="imperial",onChange:T=>D(T.target.checked?"imperial":"metric")}),y.jsx("span",{className:"weather-config__toggle-slider"})]}),y.jsx("span",{className:v==="imperial"?"weather-config__unit-active":"",children:"Imperial"})]})]}),y.jsxs("div",{className:"weather-config__section",children:[y.jsxs("button",{className:"weather-config__section-header",onClick:()=>Xt("conditions"),children:[y.jsx("span",{className:"weather-config__section-title",children:"Current Conditions"}),y.jsx("span",{className:"weather-config__section-toggle",children:ct.conditions?"−":"+"})]}),ct.conditions&&y.jsxs("div",{className:"weather-config__section-content",children:[y.jsx("textarea",{className:`weather-config__json-textarea ${fe?"":"weather-config__json-textarea--invalid"}`,value:L,onChange:T=>la(T.target.value),onBlur:jt,spellCheck:!1}),y.jsxs("div",{className:"weather-config__helpers",children:[y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsx("label",{className:"weather-config__helper-label",children:"Part of Day"}),y.jsxs("div",{className:"weather-config__pod-buttons",children:[y.jsx("button",{className:`weather-config__pod-button ${r.partOfDay==="day"?"weather-config__pod-button--active":""}`,onClick:()=>Z("day"),children:"Day"}),y.jsx("button",{className:`weather-config__pod-button ${r.partOfDay==="night"?"weather-config__pod-button--active":""}`,onClick:()=>Z("night"),children:"Night"})]})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsx("label",{className:"weather-config__helper-label",children:"Condition"}),y.jsx("select",{className:"weather-config__select",value:`${r.weatherCode}-${r.weatherDescription}`,onChange:T=>{const F=kp.find(be=>`${be.code}-${be.label}`===T.target.value);F&&I(F)},children:kp.map(T=>y.jsx("option",{value:`${T.code}-${T.label}`,children:T.label},`${T.code}-${T.label}`))})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsxs("label",{className:"weather-config__helper-label",children:["Temperature:"," ",v==="imperial"?`${r.temperatureF.toFixed(1)}°F`:`${r.temperatureC.toFixed(1)}°C`]}),y.jsx("input",{type:"range",className:"weather-config__slider",min:v==="metric"?"-25":"-13",max:v==="metric"?"50":"120",step:"0.1",value:v==="imperial"?r.temperatureF:r.temperatureC,onChange:T=>De(parseFloat(T.target.value))})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsxs("label",{className:"weather-config__helper-label",children:["Humidity: ",r.humidity,"%"]}),y.jsx("input",{type:"range",className:"weather-config__slider",min:"0",max:"100",step:"1",value:r.humidity,onChange:T=>je(parseInt(T.target.value,10))})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsxs("label",{className:"weather-config__helper-label",children:["Precipitation:"," ",v==="imperial"?`${r.precipitationRateInph.toFixed(2)} in/h`:`${r.precipitationRateMmph.toFixed(1)} mm/h`]}),y.jsx("input",{type:"range",className:"weather-config__slider",min:"0",max:v==="metric"?"50":"2",step:"0.1",value:v==="imperial"?r.precipitationRateInph:r.precipitationRateMmph,onChange:T=>H(parseFloat(T.target.value))})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsxs("label",{className:"weather-config__helper-label",children:["Wind Speed:"," ",v==="imperial"?`${r.windSpeedMph.toFixed(1)} mph`:`${r.windSpeedKph.toFixed(1)} kph`]}),y.jsx("input",{type:"range",className:"weather-config__slider",min:"0",max:v==="metric"?"90":"55",step:"0.1",value:v==="imperial"?r.windSpeedMph:r.windSpeedKph,onChange:T=>S(parseFloat(T.target.value))})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsxs("label",{className:"weather-config__helper-label",children:["Wind Direction: ",Qn,"° (",r.windDirectionShort,")"]}),y.jsx("input",{type:"range",className:"weather-config__slider",min:"0",max:"360",step:"1",value:Qn,onChange:T=>j(parseInt(T.target.value,10))})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsxs("label",{className:"weather-config__helper-label",children:["Pressure:"," ",v==="imperial"?`${r.pressureInHg.toFixed(2)} inHg`:`${r.pressureMb.toFixed(0)} mb`]}),y.jsx("input",{type:"range",className:"weather-config__slider",min:v==="metric"?"950":"28.05",max:v==="metric"?"1050":"31.01",step:v==="metric"?"1":"0.01",value:v==="imperial"?r.pressureInHg:r.pressureMb,onChange:T=>Y(parseFloat(T.target.value))})]}),y.jsxs("div",{className:"weather-config__helper-row",children:[y.jsxs("label",{className:"weather-config__helper-label",children:["Visibility:"," ",v==="imperial"?`${r.visibilityMi.toFixed(0)} mi`:`${r.visibilityKm.toFixed(0)} km`]}),y.jsx("input",{type:"range",className:"weather-config__slider",min:"0",max:v==="metric"?"50":"31",step:"1",value:v==="imperial"?r.visibilityMi:r.visibilityKm,onChange:T=>te(parseFloat(T.target.value))})]})]})]})]}),y.jsxs("div",{className:"weather-config__section",children:[y.jsxs("button",{className:"weather-config__section-header",onClick:()=>Xt("daily"),children:[y.jsx("span",{className:"weather-config__section-title",children:"Daily Forecast (5 days)"}),y.jsx("span",{className:"weather-config__section-toggle",children:ct.daily?"−":"+"})]}),ct.daily&&y.jsxs("div",{className:"weather-config__section-content",children:[y.jsx("textarea",{className:`weather-config__json-textarea ${ut?"":"weather-config__json-textarea--invalid"}`,value:we,onChange:T=>de(T.target.value),onBlur:Ce,spellCheck:!1}),y.jsxs("div",{className:"weather-config__helpers",children:[y.jsx("div",{className:"weather-config__helper-row",children:y.jsxs("div",{className:"weather-config__action-buttons",children:[y.jsx("button",{className:"weather-config__action-button",onClick:pt,children:"Warmer"}),y.jsx("button",{className:"weather-config__action-button",onClick:Je,children:"Colder"})]})}),y.jsx("p",{className:"weather-config__helper-hint",children:"Each day changes 2-4°. 50% chance of random condition per day."})]})]})]}),y.jsxs("div",{className:"weather-config__section",children:[y.jsxs("button",{className:"weather-config__section-header",onClick:()=>Xt("hourly"),children:[y.jsx("span",{className:"weather-config__section-title",children:"Hourly Forecast (12 hours)"}),y.jsx("span",{className:"weather-config__section-toggle",children:ct.hourly?"−":"+"})]}),ct.hourly&&y.jsxs("div",{className:"weather-config__section-content",children:[y.jsx("textarea",{className:`weather-config__json-textarea ${ee?"":"weather-config__json-textarea--invalid"}`,value:Ve,onChange:T=>xn(T.target.value),onBlur:Xn,spellCheck:!1}),y.jsxs("div",{className:"weather-config__helpers",children:[y.jsx("div",{className:"weather-config__helper-row",children:y.jsxs("div",{className:"weather-config__action-buttons",children:[y.jsx("button",{className:"weather-config__action-button",onClick:Wi,children:"Warmer"}),y.jsx("button",{className:"weather-config__action-button",onClick:rs,children:"Colder"})]})}),y.jsx("p",{className:"weather-config__helper-hint",children:"Each hour changes 0.5-1.5°. 25% chance of random condition. Pod set by time of day."})]})]})]}),y.jsxs("div",{className:"weather-config__section",children:[y.jsxs("button",{className:"weather-config__section-header",onClick:()=>Xt("alerts"),children:[y.jsxs("span",{className:"weather-config__section-title",children:["Weather Alerts (",h.alerts.length,")"]}),y.jsx("span",{className:"weather-config__section-toggle",children:ct.alerts?"−":"+"})]}),ct.alerts&&y.jsxs("div",{className:"weather-config__section-content",children:[y.jsx("textarea",{className:`weather-config__json-textarea ${Kt?"":"weather-config__json-textarea--invalid"}`,value:Qe,onChange:T=>va(T.target.value),onBlur:Ii,spellCheck:!1}),y.jsxs("div",{className:"weather-config__helpers",children:[y.jsx("div",{className:"weather-config__helper-row",children:y.jsxs("div",{className:"weather-config__action-buttons",children:[y.jsx("button",{className:"weather-config__action-button",onClick:Pi,children:"Add Alert"}),y.jsx("button",{className:"weather-config__action-button",onClick:Wu,disabled:h.alerts.length===0,children:"Clear All"})]})}),h.alerts.length>0&&y.jsx("div",{className:"weather-config__helper-row",children:y.jsx("div",{className:"weather-config__alerts-list",children:h.alerts.map((T,F)=>y.jsxs("div",{className:"weather-config__alert-item",children:[y.jsxs("div",{className:"weather-config__alert-header",children:[y.jsxs("div",{className:"weather-config__alert-title-row",children:[y.jsx("span",{className:"weather-config__alert-title",children:T.title}),y.jsx("button",{className:"weather-config__alert-remove",onClick:()=>cs(F),title:"Remove alert",children:"×"})]}),y.jsxs("select",{className:"weather-config__select weather-config__alert-severity",value:T.severity,onChange:be=>el(F,be.target.value),children:[y.jsx("option",{value:"Advisory",children:"Advisory"}),y.jsx("option",{value:"Watch",children:"Watch"}),y.jsx("option",{value:"Warning",children:"Warning"})]})]}),y.jsxs("div",{className:"weather-config__alert-times",children:[y.jsxs("div",{className:"weather-config__alert-time-row",children:[y.jsx("span",{className:"weather-config__alert-time-label",children:"Effective:"}),y.jsx("span",{className:"weather-config__alert-time-value",children:T.effectiveLocal})]}),y.jsxs("div",{className:"weather-config__alert-time-row",children:[y.jsx("span",{className:"weather-config__alert-time-label",children:"Expires:"}),y.jsx("span",{className:"weather-config__alert-time-value",children:T.expiresLocal})]})]})]},F))})}),y.jsx("p",{className:"weather-config__helper-hint",children:'Click "Add Alert" to create a new alert with default values. Edit the JSON above to customize titles, descriptions, and times.'})]})]})]})]})}var No;const sv="tos-dev-environment";let Ui=(No=c1())!==null&&No!==void 0?No:"system";const Ro=new Set,Io=new Map;function c1(){const r=localStorage.getItem(sv);return r?JSON.parse(r).colorScheme:null}function o1(){localStorage.setItem(sv,JSON.stringify({colorScheme:Ui}))}function qu(){return Ui}function To(r){if(Ui!==r){Ui=r,o1();for(const n of Ro)n(Ui);for(const[n,l]of Io)l.send({name:n,data:Ui})}}function uv(r){return Ro.add(r),()=>Ro.delete(r)}function d1(r,n){Io.set(r,n)}function f1(r){Io.delete(r)}function Ao(r,n){switch(n.name){case"environment.getColorScheme":{r.send({name:n.responseName,data:{colorScheme:qu()}});break}case"environment.subscribeColorScheme":{d1(n.subscriptionName,r),r.send({name:n.subscriptionName,data:qu()}),r.send({name:n.responseName,data:{success:!0}});break}case"environment.unsubscribeColorScheme":{f1(n.unsubscribeName),r.send({name:n.responseName,data:{success:!0}});break}}}function h1(){const[r,n]=ne.useState(qu),[l,u]=ne.useState(!1),o=ne.useRef(null);return ne.useEffect(()=>uv(n),[]),ne.useEffect(()=>{const d=h=>{o.current&&!o.current.contains(h.target)&&u(!1)};return l&&document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[l]),y.jsxs("div",{className:"color-scheme-toggle",ref:o,children:[y.jsxs("button",{className:"color-scheme-toggle__button",onClick:()=>u(!l),title:"Toggle color scheme",children:[y.jsx(Pl,{icon:t0,className:`color-scheme-toggle__icon ${r==="light"?"color-scheme-toggle__icon--visible":""}`,size:18,strokeWidth:1.5}),y.jsx(Pl,{icon:Ig,className:`color-scheme-toggle__icon ${r==="dark"?"color-scheme-toggle__icon--visible":""}`,size:18,strokeWidth:1.5}),y.jsx(Pl,{icon:$p,className:`color-scheme-toggle__icon ${r==="system"?"color-scheme-toggle__icon--visible":""}`,size:18,strokeWidth:1.5})]}),l&&y.jsxs("div",{className:"color-scheme-toggle__dropdown",children:[y.jsx("button",{className:`color-scheme-toggle__dropdown-item ${r==="light"?"color-scheme-toggle__dropdown-item--active":""}`,onClick:()=>{To("light"),u(!1)},children:"Light"}),y.jsx("button",{className:`color-scheme-toggle__dropdown-item ${r==="dark"?"color-scheme-toggle__dropdown-item--active":""}`,onClick:()=>{To("dark"),u(!1)},children:"Dark"}),y.jsx("button",{className:`color-scheme-toggle__dropdown-item ${r==="system"?"color-scheme-toggle__dropdown-item--active":""}`,onClick:()=>{To("system"),u(!1)},children:"System"})]})]})}const jp="tos-sidebar-tab",Uo=[{id:"info",label:"App Info",icon:Wg},{id:"settings",label:"App Settings",icon:e0},{id:"device",label:"Device",icon:$p},{id:"account",label:"Account",icon:Pg},{id:"media",label:"Media",icon:$g},{id:"weather",label:"Weather",icon:a0}],m1=Uo.map(r=>r.id);function p1(){const[r,n]=ne.useState(()=>{const o=localStorage.getItem(jp);return o&&m1.includes(o)?o:"info"}),l=()=>{switch(r){case"info":return y.jsx(n0,{});case"settings":return y.jsx(i0,{});case"device":return y.jsx(c0,{});case"account":return y.jsx(o0,{});case"media":return y.jsx(d0,{});case"weather":return y.jsx(r1,{})}},u=Uo.find(o=>o.id===r);return y.jsxs("div",{className:"right-sidebar",children:[y.jsxs("div",{className:"right-sidebar__nav",children:[Uo.map(o=>y.jsx("button",{className:`right-sidebar__nav-button ${r===o.id?"right-sidebar__nav-button--active":""}`,onClick:()=>{n(o.id),localStorage.setItem(jp,o.id)},title:o.label,children:y.jsx(Pl,{icon:o.icon,size:20,strokeWidth:1.5})},o.id)),y.jsx("div",{className:"right-sidebar__nav-spacer"}),y.jsx(h1,{})]}),y.jsxs("div",{className:"right-sidebar__container",children:[y.jsx("div",{className:"right-sidebar__header",children:y.jsx("div",{className:"right-sidebar__header-title",children:u==null?void 0:u.label})}),y.jsx("div",{className:"right-sidebar__content",children:l()})]})]})}function v1(){return ne.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{const d=o??qu();let h;d==="system"?h=r.matches:h=d!=="light",h?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")};n();const l=()=>n();r.addEventListener("change",l);const u=uv(n);return()=>{u(),r.removeEventListener("change",l)}},[]),y.jsxs(y.Fragment,{children:[y.jsx(Jg,{}),y.jsx(p1,{})]})}var Me;(function(r){r.assertEqual=o=>{};function n(o){}r.assertIs=n;function l(o){throw new Error}r.assertNever=l,r.arrayToEnum=o=>{const d={};for(const h of o)d[h]=h;return d},r.getValidEnumValues=o=>{const d=r.objectKeys(o).filter(p=>typeof o[o[p]]!="number"),h={};for(const p of d)h[p]=o[p];return r.objectValues(h)},r.objectValues=o=>r.objectKeys(o).map(function(d){return o[d]}),r.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const d=[];for(const h in o)Object.prototype.hasOwnProperty.call(o,h)&&d.push(h);return d},r.find=(o,d)=>{for(const h of o)if(d(h))return h},r.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function u(o,d=" | "){return o.map(h=>typeof h=="string"?`'${h}'`:h).join(d)}r.joinValues=u,r.jsonStringifyReplacer=(o,d)=>typeof d=="bigint"?d.toString():d})(Me||(Me={}));var zp;(function(r){r.mergeShapes=(n,l)=>({...n,...l})})(zp||(zp={}));const K=Me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dn=r=>{switch(typeof r){case"undefined":return K.undefined;case"string":return K.string;case"number":return Number.isNaN(r)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(r)?K.array:r===null?K.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?K.promise:typeof Map<"u"&&r instanceof Map?K.map:typeof Set<"u"&&r instanceof Set?K.set:typeof Date<"u"&&r instanceof Date?K.date:K.object;default:return K.unknown}},U=Me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ua extends Error{get errors(){return this.issues}constructor(n){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=n}format(n){const l=n||function(d){return d.message},u={_errors:[]},o=d=>{for(const h of d.issues)if(h.code==="invalid_union")h.unionErrors.map(o);else if(h.code==="invalid_return_type")o(h.returnTypeError);else if(h.code==="invalid_arguments")o(h.argumentsError);else if(h.path.length===0)u._errors.push(l(h));else{let p=u,v=0;for(;v<h.path.length;){const _=h.path[v];v===h.path.length-1?(p[_]=p[_]||{_errors:[]},p[_]._errors.push(l(h))):p[_]=p[_]||{_errors:[]},p=p[_],v++}}};return o(this),u}static assert(n){if(!(n instanceof Ua))throw new Error(`Not a ZodError: ${n}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=l=>l.message){const l={},u=[];for(const o of this.issues)if(o.path.length>0){const d=o.path[0];l[d]=l[d]||[],l[d].push(n(o))}else u.push(n(o));return{formErrors:u,fieldErrors:l}}get formErrors(){return this.flatten()}}Ua.create=r=>new Ua(r);const Lo=(r,n)=>{let l;switch(r.code){case U.invalid_type:r.received===K.undefined?l="Required":l=`Expected ${r.expected}, received ${r.received}`;break;case U.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(r.expected,Me.jsonStringifyReplacer)}`;break;case U.unrecognized_keys:l=`Unrecognized key(s) in object: ${Me.joinValues(r.keys,", ")}`;break;case U.invalid_union:l="Invalid input";break;case U.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${Me.joinValues(r.options)}`;break;case U.invalid_enum_value:l=`Invalid enum value. Expected ${Me.joinValues(r.options)}, received '${r.received}'`;break;case U.invalid_arguments:l="Invalid function arguments";break;case U.invalid_return_type:l="Invalid function return type";break;case U.invalid_date:l="Invalid date";break;case U.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(l=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?l=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?l=`Invalid input: must end with "${r.validation.endsWith}"`:Me.assertNever(r.validation):r.validation!=="regex"?l=`Invalid ${r.validation}`:l="Invalid";break;case U.too_small:r.type==="array"?l=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?l=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?l=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?l=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?l=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:l="Invalid input";break;case U.too_big:r.type==="array"?l=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?l=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?l=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?l=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?l=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:l="Invalid input";break;case U.custom:l="Invalid input";break;case U.invalid_intersection_types:l="Intersection results could not be merged";break;case U.not_multiple_of:l=`Number must be a multiple of ${r.multipleOf}`;break;case U.not_finite:l="Number must be finite";break;default:l=n.defaultError,Me.assertNever(r)}return{message:l}};let y1=Lo;function g1(){return y1}const _1=r=>{const{data:n,path:l,errorMaps:u,issueData:o}=r,d=[...l,...o.path||[]],h={...o,path:d};if(o.message!==void 0)return{...o,path:d,message:o.message};let p="";const v=u.filter(_=>!!_).slice().reverse();for(const _ of v)p=_(h,{data:n,defaultError:p}).message;return{...o,path:d,message:p}};function q(r,n){const l=g1(),u=_1({issueData:n,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,l,l===Lo?void 0:Lo].filter(o=>!!o)});r.common.issues.push(u)}class Gt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,l){const u=[];for(const o of l){if(o.status==="aborted")return ue;o.status==="dirty"&&n.dirty(),u.push(o.value)}return{status:n.value,value:u}}static async mergeObjectAsync(n,l){const u=[];for(const o of l){const d=await o.key,h=await o.value;u.push({key:d,value:h})}return Gt.mergeObjectSync(n,u)}static mergeObjectSync(n,l){const u={};for(const o of l){const{key:d,value:h}=o;if(d.status==="aborted"||h.status==="aborted")return ue;d.status==="dirty"&&n.dirty(),h.status==="dirty"&&n.dirty(),d.value!=="__proto__"&&(typeof h.value<"u"||o.alwaysSet)&&(u[d.value]=h.value)}return{status:n.value,value:u}}}const ue=Object.freeze({status:"aborted"}),Zo=r=>({status:"dirty",value:r}),ia=r=>({status:"valid",value:r}),Rp=r=>r.status==="aborted",Up=r=>r.status==="dirty",Gi=r=>r.status==="valid",Vu=r=>typeof Promise<"u"&&r instanceof Promise;var J;(function(r){r.errToObj=n=>typeof n=="string"?{message:n}:n||{},r.toString=n=>typeof n=="string"?n:n==null?void 0:n.message})(J||(J={}));class _n{constructor(n,l,u,o){this._cachedPath=[],this.parent=n,this.data=l,this._path=u,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Lp=(r,n)=>{if(Gi(n))return{success:!0,data:n.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Ua(r.common.issues);return this._error=l,this._error}}};function me(r){if(!r)return{};const{errorMap:n,invalid_type_error:l,required_error:u,description:o}=r;if(n&&(l||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:o}:{errorMap:(d,h)=>{const{message:p}=r;return d.code==="invalid_enum_value"?{message:p??h.defaultError}:typeof h.data>"u"?{message:p??u??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:p??l??h.defaultError}},description:o}}class xe{get description(){return this._def.description}_getType(n){return dn(n.data)}_getOrReturnCtx(n,l){return l||{common:n.parent.common,data:n.data,parsedType:dn(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new Gt,ctx:{common:n.parent.common,data:n.data,parsedType:dn(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const l=this._parse(n);if(Vu(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(n){const l=this._parse(n);return Promise.resolve(l)}parse(n,l){const u=this.safeParse(n,l);if(u.success)return u.data;throw u.error}safeParse(n,l){const u={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:dn(n)},o=this._parseSync({data:n,path:u.path,parent:u});return Lp(u,o)}"~validate"(n){var l,u;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:dn(n)};if(!this["~standard"].async)try{const d=this._parseSync({data:n,path:[],parent:o});return Gi(d)?{value:d.value}:{issues:o.common.issues}}catch(d){(u=(l=d==null?void 0:d.message)==null?void 0:l.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:n,path:[],parent:o}).then(d=>Gi(d)?{value:d.value}:{issues:o.common.issues})}async parseAsync(n,l){const u=await this.safeParseAsync(n,l);if(u.success)return u.data;throw u.error}async safeParseAsync(n,l){const u={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:dn(n)},o=this._parse({data:n,path:u.path,parent:u}),d=await(Vu(o)?o:Promise.resolve(o));return Lp(u,d)}refine(n,l){const u=o=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(o):l;return this._refinement((o,d)=>{const h=n(o),p=()=>d.addIssue({code:U.custom,...u(o)});return typeof Promise<"u"&&h instanceof Promise?h.then(v=>v?!0:(p(),!1)):h?!0:(p(),!1)})}refinement(n,l){return this._refinement((u,o)=>n(u)?!0:(o.addIssue(typeof l=="function"?l(u,o):l),!1))}_refinement(n){return new Qi({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return pn.create(this,this._def)}nullable(){return Ji.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ki.create(this)}promise(){return Xu.create(this,this._def)}or(n){return Gu.create([this,n],this._def)}and(n){return Ku.create(this,n,this._def)}transform(n){return new Qi({...me(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const l=typeof n=="function"?n:()=>n;return new Vo({...me(this._def),innerType:this,defaultValue:l,typeName:se.ZodDefault})}brand(){return new V1({typeName:se.ZodBranded,type:this,...me(this._def)})}catch(n){const l=typeof n=="function"?n:()=>n;return new Yo({...me(this._def),innerType:this,catchValue:l,typeName:se.ZodCatch})}describe(n){const l=this.constructor;return new l({...this._def,description:n})}pipe(n){return Po.create(this,n)}readonly(){return Go.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const b1=/^c[^\s-]{8,}$/i,S1=/^[0-9a-z]+$/,x1=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C1=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,N1=/^[a-z0-9_-]{21}$/i,T1=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,A1=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,M1=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,w1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Mo;const O1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,E1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,D1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,k1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,j1=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,z1=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,rv="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",R1=new RegExp(`^${rv}$`);function cv(r){let n="[0-5]\\d";r.precision?n=`${n}\\.\\d{${r.precision}}`:r.precision==null&&(n=`${n}(\\.\\d+)?`);const l=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${n})${l}`}function U1(r){return new RegExp(`^${cv(r)}$`)}function L1(r){let n=`${rv}T${cv(r)}`;const l=[];return l.push(r.local?"Z?":"Z"),r.offset&&l.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${l.join("|")})`,new RegExp(`^${n}$`)}function Z1(r,n){return!!((n==="v4"||!n)&&O1.test(r)||(n==="v6"||!n)&&D1.test(r))}function H1(r,n){if(!T1.test(r))return!1;try{const[l]=r.split(".");if(!l)return!1;const u=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),o=JSON.parse(atob(u));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||n&&o.alg!==n)}catch{return!1}}function B1(r,n){return!!((n==="v4"||!n)&&E1.test(r)||(n==="v6"||!n)&&k1.test(r))}class hn extends xe{_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==K.string){const o=this._getOrReturnCtx(n);return q(o,{code:U.invalid_type,expected:K.string,received:o.parsedType}),ue}const l=new Gt;let u;for(const o of this._def.checks)if(o.kind==="min")n.data.length<o.value&&(u=this._getOrReturnCtx(n,u),q(u,{code:U.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),l.dirty());else if(o.kind==="max")n.data.length>o.value&&(u=this._getOrReturnCtx(n,u),q(u,{code:U.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),l.dirty());else if(o.kind==="length"){const d=n.data.length>o.value,h=n.data.length<o.value;(d||h)&&(u=this._getOrReturnCtx(n,u),d?q(u,{code:U.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):h&&q(u,{code:U.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),l.dirty())}else if(o.kind==="email")M1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"email",code:U.invalid_string,message:o.message}),l.dirty());else if(o.kind==="emoji")Mo||(Mo=new RegExp(w1,"u")),Mo.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"emoji",code:U.invalid_string,message:o.message}),l.dirty());else if(o.kind==="uuid")C1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"uuid",code:U.invalid_string,message:o.message}),l.dirty());else if(o.kind==="nanoid")N1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"nanoid",code:U.invalid_string,message:o.message}),l.dirty());else if(o.kind==="cuid")b1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"cuid",code:U.invalid_string,message:o.message}),l.dirty());else if(o.kind==="cuid2")S1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"cuid2",code:U.invalid_string,message:o.message}),l.dirty());else if(o.kind==="ulid")x1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"ulid",code:U.invalid_string,message:o.message}),l.dirty());else if(o.kind==="url")try{new URL(n.data)}catch{u=this._getOrReturnCtx(n,u),q(u,{validation:"url",code:U.invalid_string,message:o.message}),l.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"regex",code:U.invalid_string,message:o.message}),l.dirty())):o.kind==="trim"?n.data=n.data.trim():o.kind==="includes"?n.data.includes(o.value,o.position)||(u=this._getOrReturnCtx(n,u),q(u,{code:U.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),l.dirty()):o.kind==="toLowerCase"?n.data=n.data.toLowerCase():o.kind==="toUpperCase"?n.data=n.data.toUpperCase():o.kind==="startsWith"?n.data.startsWith(o.value)||(u=this._getOrReturnCtx(n,u),q(u,{code:U.invalid_string,validation:{startsWith:o.value},message:o.message}),l.dirty()):o.kind==="endsWith"?n.data.endsWith(o.value)||(u=this._getOrReturnCtx(n,u),q(u,{code:U.invalid_string,validation:{endsWith:o.value},message:o.message}),l.dirty()):o.kind==="datetime"?L1(o).test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{code:U.invalid_string,validation:"datetime",message:o.message}),l.dirty()):o.kind==="date"?R1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{code:U.invalid_string,validation:"date",message:o.message}),l.dirty()):o.kind==="time"?U1(o).test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{code:U.invalid_string,validation:"time",message:o.message}),l.dirty()):o.kind==="duration"?A1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"duration",code:U.invalid_string,message:o.message}),l.dirty()):o.kind==="ip"?Z1(n.data,o.version)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"ip",code:U.invalid_string,message:o.message}),l.dirty()):o.kind==="jwt"?H1(n.data,o.alg)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"jwt",code:U.invalid_string,message:o.message}),l.dirty()):o.kind==="cidr"?B1(n.data,o.version)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"cidr",code:U.invalid_string,message:o.message}),l.dirty()):o.kind==="base64"?j1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"base64",code:U.invalid_string,message:o.message}),l.dirty()):o.kind==="base64url"?z1.test(n.data)||(u=this._getOrReturnCtx(n,u),q(u,{validation:"base64url",code:U.invalid_string,message:o.message}),l.dirty()):Me.assertNever(o);return{status:l.value,value:n.data}}_regex(n,l,u){return this.refinement(o=>n.test(o),{validation:l,code:U.invalid_string,...J.errToObj(u)})}_addCheck(n){return new hn({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...J.errToObj(n)})}url(n){return this._addCheck({kind:"url",...J.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...J.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...J.errToObj(n)})}nanoid(n){return this._addCheck({kind:"nanoid",...J.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...J.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...J.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...J.errToObj(n)})}base64(n){return this._addCheck({kind:"base64",...J.errToObj(n)})}base64url(n){return this._addCheck({kind:"base64url",...J.errToObj(n)})}jwt(n){return this._addCheck({kind:"jwt",...J.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...J.errToObj(n)})}cidr(n){return this._addCheck({kind:"cidr",...J.errToObj(n)})}datetime(n){return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,offset:(n==null?void 0:n.offset)??!1,local:(n==null?void 0:n.local)??!1,...J.errToObj(n==null?void 0:n.message)})}date(n){return this._addCheck({kind:"date",message:n})}time(n){return typeof n=="string"?this._addCheck({kind:"time",precision:null,message:n}):this._addCheck({kind:"time",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,...J.errToObj(n==null?void 0:n.message)})}duration(n){return this._addCheck({kind:"duration",...J.errToObj(n)})}regex(n,l){return this._addCheck({kind:"regex",regex:n,...J.errToObj(l)})}includes(n,l){return this._addCheck({kind:"includes",value:n,position:l==null?void 0:l.position,...J.errToObj(l==null?void 0:l.message)})}startsWith(n,l){return this._addCheck({kind:"startsWith",value:n,...J.errToObj(l)})}endsWith(n,l){return this._addCheck({kind:"endsWith",value:n,...J.errToObj(l)})}min(n,l){return this._addCheck({kind:"min",value:n,...J.errToObj(l)})}max(n,l){return this._addCheck({kind:"max",value:n,...J.errToObj(l)})}length(n,l){return this._addCheck({kind:"length",value:n,...J.errToObj(l)})}nonempty(n){return this.min(1,J.errToObj(n))}trim(){return new hn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new hn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new hn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isDate(){return!!this._def.checks.find(n=>n.kind==="date")}get isTime(){return!!this._def.checks.find(n=>n.kind==="time")}get isDuration(){return!!this._def.checks.find(n=>n.kind==="duration")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(n=>n.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get isCIDR(){return!!this._def.checks.find(n=>n.kind==="cidr")}get isBase64(){return!!this._def.checks.find(n=>n.kind==="base64")}get isBase64url(){return!!this._def.checks.find(n=>n.kind==="base64url")}get minLength(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxLength(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}}hn.create=r=>new hn({checks:[],typeName:se.ZodString,coerce:(r==null?void 0:r.coerce)??!1,...me(r)});function q1(r,n){const l=(r.toString().split(".")[1]||"").length,u=(n.toString().split(".")[1]||"").length,o=l>u?l:u,d=Number.parseInt(r.toFixed(o).replace(".","")),h=Number.parseInt(n.toFixed(o).replace(".",""));return d%h/10**o}class is extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==K.number){const o=this._getOrReturnCtx(n);return q(o,{code:U.invalid_type,expected:K.number,received:o.parsedType}),ue}let l;const u=new Gt;for(const o of this._def.checks)o.kind==="int"?Me.isInteger(n.data)||(l=this._getOrReturnCtx(n,l),q(l,{code:U.invalid_type,expected:"integer",received:"float",message:o.message}),u.dirty()):o.kind==="min"?(o.inclusive?n.data<o.value:n.data<=o.value)&&(l=this._getOrReturnCtx(n,l),q(l,{code:U.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?n.data>o.value:n.data>=o.value)&&(l=this._getOrReturnCtx(n,l),q(l,{code:U.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="multipleOf"?q1(n.data,o.value)!==0&&(l=this._getOrReturnCtx(n,l),q(l,{code:U.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):o.kind==="finite"?Number.isFinite(n.data)||(l=this._getOrReturnCtx(n,l),q(l,{code:U.not_finite,message:o.message}),u.dirty()):Me.assertNever(o);return{status:u.value,value:n.data}}gte(n,l){return this.setLimit("min",n,!0,J.toString(l))}gt(n,l){return this.setLimit("min",n,!1,J.toString(l))}lte(n,l){return this.setLimit("max",n,!0,J.toString(l))}lt(n,l){return this.setLimit("max",n,!1,J.toString(l))}setLimit(n,l,u,o){return new is({...this._def,checks:[...this._def.checks,{kind:n,value:l,inclusive:u,message:J.toString(o)}]})}_addCheck(n){return new is({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:J.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(n)})}multipleOf(n,l){return this._addCheck({kind:"multipleOf",value:n,message:J.toString(l)})}finite(n){return this._addCheck({kind:"finite",message:J.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(n)})}get minValue(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxValue(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&Me.isInteger(n.value))}get isFinite(){let n=null,l=null;for(const u of this._def.checks){if(u.kind==="finite"||u.kind==="int"||u.kind==="multipleOf")return!0;u.kind==="min"?(l===null||u.value>l)&&(l=u.value):u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}return Number.isFinite(l)&&Number.isFinite(n)}}is.create=r=>new is({checks:[],typeName:se.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...me(r)});class ls extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce)try{n.data=BigInt(n.data)}catch{return this._getInvalidInput(n)}if(this._getType(n)!==K.bigint)return this._getInvalidInput(n);let l;const u=new Gt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?n.data<o.value:n.data<=o.value)&&(l=this._getOrReturnCtx(n,l),q(l,{code:U.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?n.data>o.value:n.data>=o.value)&&(l=this._getOrReturnCtx(n,l),q(l,{code:U.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="multipleOf"?n.data%o.value!==BigInt(0)&&(l=this._getOrReturnCtx(n,l),q(l,{code:U.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):Me.assertNever(o);return{status:u.value,value:n.data}}_getInvalidInput(n){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.bigint,received:l.parsedType}),ue}gte(n,l){return this.setLimit("min",n,!0,J.toString(l))}gt(n,l){return this.setLimit("min",n,!1,J.toString(l))}lte(n,l){return this.setLimit("max",n,!0,J.toString(l))}lt(n,l){return this.setLimit("max",n,!1,J.toString(l))}setLimit(n,l,u,o){return new ls({...this._def,checks:[...this._def.checks,{kind:n,value:l,inclusive:u,message:J.toString(o)}]})}_addCheck(n){return new ls({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(n)})}multipleOf(n,l){return this._addCheck({kind:"multipleOf",value:n,message:J.toString(l)})}get minValue(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxValue(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}}ls.create=r=>new ls({checks:[],typeName:se.ZodBigInt,coerce:(r==null?void 0:r.coerce)??!1,...me(r)});class Zp extends xe{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==K.boolean){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.boolean,received:l.parsedType}),ue}return ia(n.data)}}Zp.create=r=>new Zp({typeName:se.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...me(r)});class Yu extends xe{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==K.date){const o=this._getOrReturnCtx(n);return q(o,{code:U.invalid_type,expected:K.date,received:o.parsedType}),ue}if(Number.isNaN(n.data.getTime())){const o=this._getOrReturnCtx(n);return q(o,{code:U.invalid_date}),ue}const l=new Gt;let u;for(const o of this._def.checks)o.kind==="min"?n.data.getTime()<o.value&&(u=this._getOrReturnCtx(n,u),q(u,{code:U.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),l.dirty()):o.kind==="max"?n.data.getTime()>o.value&&(u=this._getOrReturnCtx(n,u),q(u,{code:U.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),l.dirty()):Me.assertNever(o);return{status:l.value,value:new Date(n.data.getTime())}}_addCheck(n){return new Yu({...this._def,checks:[...this._def.checks,n]})}min(n,l){return this._addCheck({kind:"min",value:n.getTime(),message:J.toString(l)})}max(n,l){return this._addCheck({kind:"max",value:n.getTime(),message:J.toString(l)})}get minDate(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n!=null?new Date(n):null}}Yu.create=r=>new Yu({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:se.ZodDate,...me(r)});class Hp extends xe{_parse(n){if(this._getType(n)!==K.symbol){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.symbol,received:l.parsedType}),ue}return ia(n.data)}}Hp.create=r=>new Hp({typeName:se.ZodSymbol,...me(r)});class Bp extends xe{_parse(n){if(this._getType(n)!==K.undefined){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.undefined,received:l.parsedType}),ue}return ia(n.data)}}Bp.create=r=>new Bp({typeName:se.ZodUndefined,...me(r)});class qp extends xe{_parse(n){if(this._getType(n)!==K.null){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.null,received:l.parsedType}),ue}return ia(n.data)}}qp.create=r=>new qp({typeName:se.ZodNull,...me(r)});class Ho extends xe{constructor(){super(...arguments),this._any=!0}_parse(n){return ia(n.data)}}Ho.create=r=>new Ho({typeName:se.ZodAny,...me(r)});class Vp extends xe{constructor(){super(...arguments),this._unknown=!0}_parse(n){return ia(n.data)}}Vp.create=r=>new Vp({typeName:se.ZodUnknown,...me(r)});class bn extends xe{_parse(n){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.never,received:l.parsedType}),ue}}bn.create=r=>new bn({typeName:se.ZodNever,...me(r)});class Yp extends xe{_parse(n){if(this._getType(n)!==K.undefined){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.void,received:l.parsedType}),ue}return ia(n.data)}}Yp.create=r=>new Yp({typeName:se.ZodVoid,...me(r)});let Ki=class ju extends xe{_parse(n){const{ctx:l,status:u}=this._processInputParams(n),o=this._def;if(l.parsedType!==K.array)return q(l,{code:U.invalid_type,expected:K.array,received:l.parsedType}),ue;if(o.exactLength!==null){const h=l.data.length>o.exactLength.value,p=l.data.length<o.exactLength.value;(h||p)&&(q(l,{code:h?U.too_big:U.too_small,minimum:p?o.exactLength.value:void 0,maximum:h?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),u.dirty())}if(o.minLength!==null&&l.data.length<o.minLength.value&&(q(l,{code:U.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),u.dirty()),o.maxLength!==null&&l.data.length>o.maxLength.value&&(q(l,{code:U.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),u.dirty()),l.common.async)return Promise.all([...l.data].map((h,p)=>o.type._parseAsync(new _n(l,h,l.path,p)))).then(h=>Gt.mergeArray(u,h));const d=[...l.data].map((h,p)=>o.type._parseSync(new _n(l,h,l.path,p)));return Gt.mergeArray(u,d)}get element(){return this._def.type}min(n,l){return new ju({...this._def,minLength:{value:n,message:J.toString(l)}})}max(n,l){return new ju({...this._def,maxLength:{value:n,message:J.toString(l)}})}length(n,l){return new ju({...this._def,exactLength:{value:n,message:J.toString(l)}})}nonempty(n){return this.min(1,n)}};Ki.create=(r,n)=>new Ki({type:r,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...me(n)});function zi(r){if(r instanceof st){const n={};for(const l in r.shape){const u=r.shape[l];n[l]=pn.create(zi(u))}return new st({...r._def,shape:()=>n})}else return r instanceof Ki?new Ki({...r._def,type:zi(r.element)}):r instanceof pn?pn.create(zi(r.unwrap())):r instanceof Ji?Ji.create(zi(r.unwrap())):r instanceof Kn?Kn.create(r.items.map(n=>zi(n))):r}class st extends xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),l=Me.objectKeys(n);return this._cached={shape:n,keys:l},this._cached}_parse(n){if(this._getType(n)!==K.object){const v=this._getOrReturnCtx(n);return q(v,{code:U.invalid_type,expected:K.object,received:v.parsedType}),ue}const{status:l,ctx:u}=this._processInputParams(n),{shape:o,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof bn&&this._def.unknownKeys==="strip"))for(const v in u.data)d.includes(v)||h.push(v);const p=[];for(const v of d){const _=o[v],D=u.data[v];p.push({key:{status:"valid",value:v},value:_._parse(new _n(u,D,u.path,v)),alwaysSet:v in u.data})}if(this._def.catchall instanceof bn){const v=this._def.unknownKeys;if(v==="passthrough")for(const _ of h)p.push({key:{status:"valid",value:_},value:{status:"valid",value:u.data[_]}});else if(v==="strict")h.length>0&&(q(u,{code:U.unrecognized_keys,keys:h}),l.dirty());else if(v!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const v=this._def.catchall;for(const _ of h){const D=u.data[_];p.push({key:{status:"valid",value:_},value:v._parse(new _n(u,D,u.path,_)),alwaysSet:_ in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const v=[];for(const _ of p){const D=await _.key,L=await _.value;v.push({key:D,value:L,alwaysSet:_.alwaysSet})}return v}).then(v=>Gt.mergeObjectSync(l,v)):Gt.mergeObjectSync(l,p)}get shape(){return this._def.shape()}strict(n){return J.errToObj,new st({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(l,u)=>{var o,d;const h=((d=(o=this._def).errorMap)==null?void 0:d.call(o,l,u).message)??u.defaultError;return l.code==="unrecognized_keys"?{message:J.errToObj(n).message??h}:{message:h}}}:{}})}strip(){return new st({...this._def,unknownKeys:"strip"})}passthrough(){return new st({...this._def,unknownKeys:"passthrough"})}extend(n){return new st({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new st({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:se.ZodObject})}setKey(n,l){return this.augment({[n]:l})}catchall(n){return new st({...this._def,catchall:n})}pick(n){const l={};for(const u of Me.objectKeys(n))n[u]&&this.shape[u]&&(l[u]=this.shape[u]);return new st({...this._def,shape:()=>l})}omit(n){const l={};for(const u of Me.objectKeys(this.shape))n[u]||(l[u]=this.shape[u]);return new st({...this._def,shape:()=>l})}deepPartial(){return zi(this)}partial(n){const l={};for(const u of Me.objectKeys(this.shape)){const o=this.shape[u];n&&!n[u]?l[u]=o:l[u]=o.optional()}return new st({...this._def,shape:()=>l})}required(n){const l={};for(const u of Me.objectKeys(this.shape))if(n&&!n[u])l[u]=this.shape[u];else{let o=this.shape[u];for(;o instanceof pn;)o=o._def.innerType;l[u]=o}return new st({...this._def,shape:()=>l})}keyof(){return ov(Me.objectKeys(this.shape))}}st.create=(r,n)=>new st({shape:()=>r,unknownKeys:"strip",catchall:bn.create(),typeName:se.ZodObject,...me(n)});st.strictCreate=(r,n)=>new st({shape:()=>r,unknownKeys:"strict",catchall:bn.create(),typeName:se.ZodObject,...me(n)});st.lazycreate=(r,n)=>new st({shape:r,unknownKeys:"strip",catchall:bn.create(),typeName:se.ZodObject,...me(n)});class Gu extends xe{_parse(n){const{ctx:l}=this._processInputParams(n),u=this._def.options;function o(d){for(const p of d)if(p.result.status==="valid")return p.result;for(const p of d)if(p.result.status==="dirty")return l.common.issues.push(...p.ctx.common.issues),p.result;const h=d.map(p=>new Ua(p.ctx.common.issues));return q(l,{code:U.invalid_union,unionErrors:h}),ue}if(l.common.async)return Promise.all(u.map(async d=>{const h={...l,common:{...l.common,issues:[]},parent:null};return{result:await d._parseAsync({data:l.data,path:l.path,parent:h}),ctx:h}})).then(o);{let d;const h=[];for(const v of u){const _={...l,common:{...l.common,issues:[]},parent:null},D=v._parseSync({data:l.data,path:l.path,parent:_});if(D.status==="valid")return D;D.status==="dirty"&&!d&&(d={result:D,ctx:_}),_.common.issues.length&&h.push(_.common.issues)}if(d)return l.common.issues.push(...d.ctx.common.issues),d.result;const p=h.map(v=>new Ua(v));return q(l,{code:U.invalid_union,unionErrors:p}),ue}}get options(){return this._def.options}}Gu.create=(r,n)=>new Gu({options:r,typeName:se.ZodUnion,...me(n)});function Bo(r,n){const l=dn(r),u=dn(n);if(r===n)return{valid:!0,data:r};if(l===K.object&&u===K.object){const o=Me.objectKeys(n),d=Me.objectKeys(r).filter(p=>o.indexOf(p)!==-1),h={...r,...n};for(const p of d){const v=Bo(r[p],n[p]);if(!v.valid)return{valid:!1};h[p]=v.data}return{valid:!0,data:h}}else if(l===K.array&&u===K.array){if(r.length!==n.length)return{valid:!1};const o=[];for(let d=0;d<r.length;d++){const h=r[d],p=n[d],v=Bo(h,p);if(!v.valid)return{valid:!1};o.push(v.data)}return{valid:!0,data:o}}else return l===K.date&&u===K.date&&+r==+n?{valid:!0,data:r}:{valid:!1}}class Ku extends xe{_parse(n){const{status:l,ctx:u}=this._processInputParams(n),o=(d,h)=>{if(Rp(d)||Rp(h))return ue;const p=Bo(d.value,h.value);return p.valid?((Up(d)||Up(h))&&l.dirty(),{status:l.value,value:p.data}):(q(u,{code:U.invalid_intersection_types}),ue)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([d,h])=>o(d,h)):o(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}Ku.create=(r,n,l)=>new Ku({left:r,right:n,typeName:se.ZodIntersection,...me(l)});class Kn extends xe{_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.parsedType!==K.array)return q(u,{code:U.invalid_type,expected:K.array,received:u.parsedType}),ue;if(u.data.length<this._def.items.length)return q(u,{code:U.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ue;!this._def.rest&&u.data.length>this._def.items.length&&(q(u,{code:U.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const o=[...u.data].map((d,h)=>{const p=this._def.items[h]||this._def.rest;return p?p._parse(new _n(u,d,u.path,h)):null}).filter(d=>!!d);return u.common.async?Promise.all(o).then(d=>Gt.mergeArray(l,d)):Gt.mergeArray(l,o)}get items(){return this._def.items}rest(n){return new Kn({...this._def,rest:n})}}Kn.create=(r,n)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Kn({items:r,typeName:se.ZodTuple,rest:null,...me(n)})};class Gp extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.parsedType!==K.map)return q(u,{code:U.invalid_type,expected:K.map,received:u.parsedType}),ue;const o=this._def.keyType,d=this._def.valueType,h=[...u.data.entries()].map(([p,v],_)=>({key:o._parse(new _n(u,p,u.path,[_,"key"])),value:d._parse(new _n(u,v,u.path,[_,"value"]))}));if(u.common.async){const p=new Map;return Promise.resolve().then(async()=>{for(const v of h){const _=await v.key,D=await v.value;if(_.status==="aborted"||D.status==="aborted")return ue;(_.status==="dirty"||D.status==="dirty")&&l.dirty(),p.set(_.value,D.value)}return{status:l.value,value:p}})}else{const p=new Map;for(const v of h){const _=v.key,D=v.value;if(_.status==="aborted"||D.status==="aborted")return ue;(_.status==="dirty"||D.status==="dirty")&&l.dirty(),p.set(_.value,D.value)}return{status:l.value,value:p}}}}Gp.create=(r,n,l)=>new Gp({valueType:n,keyType:r,typeName:se.ZodMap,...me(l)});class ss extends xe{_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.parsedType!==K.set)return q(u,{code:U.invalid_type,expected:K.set,received:u.parsedType}),ue;const o=this._def;o.minSize!==null&&u.data.size<o.minSize.value&&(q(u,{code:U.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),l.dirty()),o.maxSize!==null&&u.data.size>o.maxSize.value&&(q(u,{code:U.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),l.dirty());const d=this._def.valueType;function h(v){const _=new Set;for(const D of v){if(D.status==="aborted")return ue;D.status==="dirty"&&l.dirty(),_.add(D.value)}return{status:l.value,value:_}}const p=[...u.data.values()].map((v,_)=>d._parse(new _n(u,v,u.path,_)));return u.common.async?Promise.all(p).then(v=>h(v)):h(p)}min(n,l){return new ss({...this._def,minSize:{value:n,message:J.toString(l)}})}max(n,l){return new ss({...this._def,maxSize:{value:n,message:J.toString(l)}})}size(n,l){return this.min(n,l).max(n,l)}nonempty(n){return this.min(1,n)}}ss.create=(r,n)=>new ss({valueType:r,minSize:null,maxSize:null,typeName:se.ZodSet,...me(n)});class Kp extends xe{get schema(){return this._def.getter()}_parse(n){const{ctx:l}=this._processInputParams(n);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}Kp.create=(r,n)=>new Kp({getter:r,typeName:se.ZodLazy,...me(n)});class qo extends xe{_parse(n){if(n.data!==this._def.value){const l=this._getOrReturnCtx(n);return q(l,{received:l.data,code:U.invalid_literal,expected:this._def.value}),ue}return{status:"valid",value:n.data}}get value(){return this._def.value}}qo.create=(r,n)=>new qo({value:r,typeName:se.ZodLiteral,...me(n)});function ov(r,n){return new Xi({values:r,typeName:se.ZodEnum,...me(n)})}class Xi extends xe{_parse(n){if(typeof n.data!="string"){const l=this._getOrReturnCtx(n),u=this._def.values;return q(l,{expected:Me.joinValues(u),received:l.parsedType,code:U.invalid_type}),ue}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(n.data)){const l=this._getOrReturnCtx(n),u=this._def.values;return q(l,{received:l.data,code:U.invalid_enum_value,options:u}),ue}return ia(n.data)}get options(){return this._def.values}get enum(){const n={};for(const l of this._def.values)n[l]=l;return n}get Values(){const n={};for(const l of this._def.values)n[l]=l;return n}get Enum(){const n={};for(const l of this._def.values)n[l]=l;return n}extract(n,l=this._def){return Xi.create(n,{...this._def,...l})}exclude(n,l=this._def){return Xi.create(this.options.filter(u=>!n.includes(u)),{...this._def,...l})}}Xi.create=ov;class Xp extends xe{_parse(n){const l=Me.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(n);if(u.parsedType!==K.string&&u.parsedType!==K.number){const o=Me.objectValues(l);return q(u,{expected:Me.joinValues(o),received:u.parsedType,code:U.invalid_type}),ue}if(this._cache||(this._cache=new Set(Me.getValidEnumValues(this._def.values))),!this._cache.has(n.data)){const o=Me.objectValues(l);return q(u,{received:u.data,code:U.invalid_enum_value,options:o}),ue}return ia(n.data)}get enum(){return this._def.values}}Xp.create=(r,n)=>new Xp({values:r,typeName:se.ZodNativeEnum,...me(n)});class Xu extends xe{unwrap(){return this._def.type}_parse(n){const{ctx:l}=this._processInputParams(n);if(l.parsedType!==K.promise&&l.common.async===!1)return q(l,{code:U.invalid_type,expected:K.promise,received:l.parsedType}),ue;const u=l.parsedType===K.promise?l.data:Promise.resolve(l.data);return ia(u.then(o=>this._def.type.parseAsync(o,{path:l.path,errorMap:l.common.contextualErrorMap})))}}Xu.create=(r,n)=>new Xu({type:r,typeName:se.ZodPromise,...me(n)});class Qi extends xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:l,ctx:u}=this._processInputParams(n),o=this._def.effect||null,d={addIssue:h=>{q(u,h),h.fatal?l.abort():l.dirty()},get path(){return u.path}};if(d.addIssue=d.addIssue.bind(d),o.type==="preprocess"){const h=o.transform(u.data,d);if(u.common.async)return Promise.resolve(h).then(async p=>{if(l.value==="aborted")return ue;const v=await this._def.schema._parseAsync({data:p,path:u.path,parent:u});return v.status==="aborted"?ue:v.status==="dirty"||l.value==="dirty"?Zo(v.value):v});{if(l.value==="aborted")return ue;const p=this._def.schema._parseSync({data:h,path:u.path,parent:u});return p.status==="aborted"?ue:p.status==="dirty"||l.value==="dirty"?Zo(p.value):p}}if(o.type==="refinement"){const h=p=>{const v=o.refinement(p,d);if(u.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return p};if(u.common.async===!1){const p=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return p.status==="aborted"?ue:(p.status==="dirty"&&l.dirty(),h(p.value),{status:l.value,value:p.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(p=>p.status==="aborted"?ue:(p.status==="dirty"&&l.dirty(),h(p.value).then(()=>({status:l.value,value:p.value}))))}if(o.type==="transform")if(u.common.async===!1){const h=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!Gi(h))return ue;const p=o.transform(h.value,d);if(p instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:p}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(h=>Gi(h)?Promise.resolve(o.transform(h.value,d)).then(p=>({status:l.value,value:p})):ue);Me.assertNever(o)}}Qi.create=(r,n,l)=>new Qi({schema:r,typeName:se.ZodEffects,effect:n,...me(l)});Qi.createWithPreprocess=(r,n,l)=>new Qi({schema:n,effect:{type:"preprocess",transform:r},typeName:se.ZodEffects,...me(l)});class pn extends xe{_parse(n){return this._getType(n)===K.undefined?ia(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}pn.create=(r,n)=>new pn({innerType:r,typeName:se.ZodOptional,...me(n)});class Ji extends xe{_parse(n){return this._getType(n)===K.null?ia(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Ji.create=(r,n)=>new Ji({innerType:r,typeName:se.ZodNullable,...me(n)});class Vo extends xe{_parse(n){const{ctx:l}=this._processInputParams(n);let u=l.data;return l.parsedType===K.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}Vo.create=(r,n)=>new Vo({innerType:r,typeName:se.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...me(n)});class Yo extends xe{_parse(n){const{ctx:l}=this._processInputParams(n),u={...l,common:{...l.common,issues:[]}},o=this._def.innerType._parse({data:u.data,path:u.path,parent:{...u}});return Vu(o)?o.then(d=>({status:"valid",value:d.status==="valid"?d.value:this._def.catchValue({get error(){return new Ua(u.common.issues)},input:u.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ua(u.common.issues)},input:u.data})}}removeCatch(){return this._def.innerType}}Yo.create=(r,n)=>new Yo({innerType:r,typeName:se.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...me(n)});class Qp extends xe{_parse(n){if(this._getType(n)!==K.nan){const l=this._getOrReturnCtx(n);return q(l,{code:U.invalid_type,expected:K.nan,received:l.parsedType}),ue}return{status:"valid",value:n.data}}}Qp.create=r=>new Qp({typeName:se.ZodNaN,...me(r)});class V1 extends xe{_parse(n){const{ctx:l}=this._processInputParams(n),u=l.data;return this._def.type._parse({data:u,path:l.path,parent:l})}unwrap(){return this._def.type}}class Po extends xe{_parse(n){const{status:l,ctx:u}=this._processInputParams(n);if(u.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:u.data,path:u.path,parent:u});return o.status==="aborted"?ue:o.status==="dirty"?(l.dirty(),Zo(o.value)):this._def.out._parseAsync({data:o.value,path:u.path,parent:u})})();{const o=this._def.in._parseSync({data:u.data,path:u.path,parent:u});return o.status==="aborted"?ue:o.status==="dirty"?(l.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:u.path,parent:u})}}static create(n,l){return new Po({in:n,out:l,typeName:se.ZodPipeline})}}class Go extends xe{_parse(n){const l=this._def.innerType._parse(n),u=o=>(Gi(o)&&(o.value=Object.freeze(o.value)),o);return Vu(l)?l.then(o=>u(o)):u(l)}unwrap(){return this._def.innerType}}Go.create=(r,n)=>new Go({innerType:r,typeName:se.ZodReadonly,...me(n)});var se;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(se||(se={}));const cn=hn.create,Y1=Ho.create;bn.create;Ki.create;const G1=st.create;Gu.create;Ku.create;Kn.create;const K1=qo.create;Xi.create;Xu.create;pn.create;Ji.create;function X1(r){return{...r,type:"bridge"}}const Q1=G1({type:K1("client"),telemetrySdkVersion:cn(),applicationName:cn(),applicationSpecifier:cn(),applicationInstance:cn(),name:cn(),data:Y1(),responseName:cn().optional(),subscriptionName:cn().optional(),unsubscribeName:cn().optional()});class J1{bind(){this._windowMessageHandler=n=>{var l;if(n.source===window)return;const u=Q1.safeParse(n.data);if(!u.success)return;const o=u.data;(l=this.onMessage)===null||l===void 0||l.call(this,o)},window.addEventListener("message",this._windowMessageHandler)}unbind(){this._windowMessageHandler&&window.removeEventListener("message",this._windowMessageHandler)}send(n){for(let l=0;l<window.frames.length;l+=1)window.frames[l].postMessage(X1(n),"*")}}const dv=new Map,fv=new Map,hv=new Map,mv=new Map,Ou=new Map;function Il(r,n){const l={application:dv,instance:fv,device:hv,shared:mv}[r];if(!l)throw new Error(`Unknown store kind: ${r}`);let u=l.get(n);return u||(u=new Map,l.set(n,u)),u}F1();function $l(r,n){switch(n.name){case"store.get":r.send({name:n.responseName,data:{success:!0,value:Il(n.data.kind,n.data.namespace).get(n.data.key)}});break;case"store.set":{Il(n.data.kind,n.data.namespace).set(n.data.key,n.data.value),Jp();const l=Ou.get(n.data.key);if(l)for(const u of l)r.send({name:u,data:n.data.value});r.send({name:n.responseName,data:{success:!0}});break}case"store.subscribe":{const l=Il(n.data.kind,n.data.namespace).get(n.data.key);let u=Ou.get(n.data.key);u||(u=new Set,Ou.set(n.data.key,u)),u.add(n.subscriptionName),r.send({name:n.subscriptionName,data:l}),r.send({name:n.responseName,data:{success:!0}});break}case"store.unsubscribe":for(const l of Ou.values())l.delete(n.unsubscribeName);r.send({name:n.responseName,data:{success:!0}});break;case"store.delete":{Il(n.data.kind,n.data.namespace).delete(n.data.key),Jp(),r.send({name:n.responseName,data:{success:!0}});break}}}function F1(){const r=localStorage.getItem("tos-dev-store");if(!r)return;let n;try{n=JSON.parse(r)}catch{localStorage.removeItem("tos-dev-store");return}for(const[l,u]of Object.entries(n)){const[o,d,...h]=l.split("."),p=h.join(".");!o||!d||!p||Il({a:"application",i:"instance",d:"device",s:"shared"}[o],d).set(p,u)}}function Jp(){const r={};for(const[n,l]of dv.entries())for(const[u,o]of l.entries())r[`a.${n}.${u}`]=o;for(const[n,l]of fv.entries())for(const[u,o]of l.entries())r[`i.${n}.${u}`]=o;for(const[n,l]of hv.entries())for(const[u,o]of l.entries())r[`d.${n}.${u}`]=o;for(const[n,l]of mv.entries())for(const[u,o]of l.entries())r[`s.${n}.${u}`]=o;localStorage.setItem("tos-dev-store",JSON.stringify(r))}function $1(r,n){return`${r}:${n}`}function W1(r,n){var l;const u=new Map;if(!n||!n.backgroundWorkers)return u;const o=r[zu];if(!o||o.length===0)return u;const d=((l=n.devServer)===null||l===void 0?void 0:l.url)||window.location.origin,h=n.backgroundWorkers;for(const[p,v]of Object.entries(h)){const _=typeof v=="string"?v:v.path;for(const D of o){const L=new URL(_,d);L.searchParams.set("applicationInstance",D),L.searchParams.set("applicationSpecifier",zu);const P=$1(p,D);u.set(P,{workerName:p,instanceId:D,url:L.toString()})}}return u}class I1{constructor(){this.onMessage=null,this._workers=new Map,this._currentDependencies={},this._unsubscribeConfig=null,this._unsubscribeConfig=Li.subscribe(()=>{this._reconcileWorkers()})}async setDependencies(n){this._currentDependencies=n,await Li.fetch(),this._reconcileWorkers()}send(n){for(const l of this._workers.values())l.postMessage(n)}_reconcileWorkers(){const n=Li.get(),l=W1(this._currentDependencies,n),u=new Set(this._workers.keys()),o=new Set(l.keys()),d=u.difference(o),h=o.difference(u);for(const p of d){const v=this._workers.get(p);v&&(v.onmessage=null,v.onerror=null,v.terminate(),this._workers.delete(p))}for(const p of h){const v=l.get(p);if(!v)continue;const _=new Worker(v.url);_.onmessage=D=>{var L;return(L=this.onMessage)===null||L===void 0?void 0:L.call(this,D.data)},this._workers.set(p,_)}}destroy(){this._unsubscribeConfig&&(this._unsubscribeConfig(),this._unsubscribeConfig=null);for(const n of this._workers.values())n.onmessage=null,n.onerror=null,n.terminate();this._workers.clear()}}const Ko=new I1;class P1{constructor(n){this._bridge=n,this._handlers={"devices.getInformation":l=>this._handleDevicesGetInformation(l),"environment.getColorScheme":l=>this._handleEnvironmentGetColorScheme(l),"environment.subscribeColorScheme":l=>this._handleEnvironmentSubscribe(l),"environment.unsubscribeColorScheme":l=>this._handleEnvironmentUnsubscribe(l),"accounts.getCurrent":l=>this._handleAccountsGetCurrent(l),"users.getCurrent":l=>this._handleUsersGetCurrent(l),"applications.getAllByMountPoint":l=>this._handleApplicationsGetAllByMountPoint(l),"applications.getByName":l=>this._handleApplicationsGetByName(l),"applications.setDependencies":l=>this._handleApplicationsSetDependencies(l),"mediaFolders.getAll":l=>this._handleMediaFoldersGetAll(l),"media.getAllByFolderId":l=>this._handleMediaGetAllByFolderId(l),"media.getAllByTag":l=>this._handleMediaGetAllByTag(l),"media.getById":l=>this._handleMediaGetById(l),"weather.getConditions":l=>this._handleWeatherGetConditions(l),"weather.getDailyForecast":l=>this._handleWeatherGetDailyForecast(l),"weather.getHourlyForecast":l=>this._handleWeatherGetHourlyForecast(l),"weather.getCities":l=>this._handleWeatherGetCities(l),"weather.getAlerts":l=>this._handleWeatherGetAlerts(l),"proxy.fetch":l=>this._handleProxyFetch(l),"playlist.nextPage":l=>this._handlePlaylistNextPage(l),"playlist.previousPage":l=>this._handlePlaylistPreviousPage(l),"playlist.setDuration":l=>this._handlePlaylistSetDuration(l),"overrides.setOverride":l=>this._handleOverridesSetOverride(l),"overrides.clearOverride":l=>this._handleOverridesClearOverride(l),"store.set":l=>this._handleStoreSet(l),"store.get":l=>this._handleStoreGet(l),"store.subscribe":l=>this._handleStoreSubscribe(l),"store.unsubscribe":l=>this._handleStoreUnsubscribe(l),"store.delete":l=>this._handleStoreDelete(l),"websiteapp.injectScriptToIframe":l=>this._handleWebsiteAppInjectScriptToIframe(l),"report.playback":l=>this._handleReportPlayback(l),"report.campaignView":l=>this._handleReportCampaignView(l),"report.adPlayed":l=>this._handleReportAdPlayed(l),"report.deviceLog":l=>this._handleReportDeviceLog(l),"campaigns.getNextAd":l=>this._handleCampaignsGetNextAd(l)}}handleMessage(n){var l;const u=this._handlers[n.name];if(u)return(l=u(n))===null||l===void 0?void 0:l.catch(o=>console.error("Error handling client message",{message:n,err:o}));console.warn(`No handler for client message ${n.name}`)}_send(n){this._bridge.send(n),Ko.send(n)}_handleDevicesGetInformation(n){const l=ke.get("device");this._send({name:n.responseName,data:{success:!0,deviceInformation:{deviceSerialNumber:l.serialNumber||"DEV-123456",deviceModel:l.model||"Development Device",deviceManufacturer:l.manufacturer||"TelemetryOS",devicePlatform:l.platform||"linux"}}})}_handleEnvironmentGetColorScheme(n){Ao(this._bridge,n)}_handleEnvironmentSubscribe(n){Ao(this._bridge,n)}_handleEnvironmentUnsubscribe(n){Ao(this._bridge,n)}_handleAccountsGetCurrent(n){const l=ke.get("account");this._send({name:n.responseName,data:{success:!0,account:l}})}_handleUsersGetCurrent(n){const l=ke.get("user");this._send({name:n.responseName,data:{success:!0,user:l}})}_handleApplicationsGetAllByMountPoint(n){var l;const u=ke.get("applications")||[],o=(l=n.data)===null||l===void 0?void 0:l.mountPoint,d=u.filter(h=>{var p;return(p=h.mountPoints)===null||p===void 0?void 0:p[o]});this._send({name:n.responseName,data:{applications:d}})}_handleApplicationsGetByName(n){var l;const u=ke.get("applications")||[],o=(l=n.data)===null||l===void 0?void 0:l.name,d=u.find(h=>h.name===o);this._send({name:n.responseName,data:{application:d||null}})}_handleApplicationsSetDependencies(n){var l;const u=((l=n.data)===null||l===void 0?void 0:l.applicationSpecifiers)||{};Ko.setDependencies(u),this._send({name:n.responseName,data:{ready:Object.keys(u),unavailable:[]}})}_handleMediaFoldersGetAll(n){const l=ke.get("mediaFolders")||[];this._send({name:n.responseName,data:{folders:l}})}_handleMediaGetAllByFolderId(n){var l;const u=(l=n.data)===null||l===void 0?void 0:l.folderId,d=(ke.get("mediaContents")||[]).filter(h=>h.contentFolderId===u);this._send({name:n.responseName,data:{contents:d}})}_handleMediaGetAllByTag(n){var l;const u=(l=n.data)===null||l===void 0?void 0:l.tagName,d=(ke.get("mediaContents")||[]).filter(h=>{var p;return(p=h.tags)===null||p===void 0?void 0:p.includes(u)});this._send({name:n.responseName,data:{contents:d}})}_handleMediaGetById(n){var l;const u=(l=n.data)===null||l===void 0?void 0:l.id,d=(ke.get("mediaContents")||[]).find(h=>h.id===u);this._send({name:n.responseName,data:{content:d||null}})}_handleWeatherGetConditions(n){Fl(this._bridge,n)}_handleWeatherGetDailyForecast(n){Fl(this._bridge,n)}_handleWeatherGetHourlyForecast(n){Fl(this._bridge,n)}_handleWeatherGetCities(n){Fl(this._bridge,n)}_handleWeatherGetAlerts(n){Fl(this._bridge,n)}async _handleProxyFetch(n){var l,u,o,d;const h=(l=n.data)===null||l===void 0?void 0:l.url,p=((u=n.data)===null||u===void 0?void 0:u.method)||"GET";console.info("Proxy fetch requested",{url:h,method:p});try{const _=await(await fetch("/__dev_proxy__",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:h,method:p,headers:(o=n.data)===null||o===void 0?void 0:o.headers,body:(d=n.data)===null||d===void 0?void 0:d.body})})).json();this._send({name:n.responseName,data:_})}catch(v){console.error(v),this._send({name:n.responseName,data:{success:!1,errorMessage:`Error accessing the proxy: ${v}`,errorCause:v.cause?String(v.cause):void 0}})}}_handlePlaylistNextPage(n){console.info("Playlist next page requested"),this._send({name:n.responseName,data:{success:!0}})}_handlePlaylistPreviousPage(n){console.info("Playlist previous page requested"),this._send({name:n.responseName,data:{success:!0}})}_handlePlaylistSetDuration(n){var l;const u=(l=n.data)===null||l===void 0?void 0:l.duration;console.info("Playlist set duration requested",{duration:u}),this._send({name:n.responseName,data:{success:!0}})}_handleOverridesSetOverride(n){var l;const u=(l=n.data)===null||l===void 0?void 0:l.name;console.info("Override set requested",{name:u});const o=ke.get("overrides")||[];o.includes(u)||ke.set("overrides",[...o,u]),this._send({name:n.responseName,data:{success:!0}})}_handleOverridesClearOverride(n){var l;const u=(l=n.data)===null||l===void 0?void 0:l.name;console.info("Override clear requested",{name:u});const o=ke.get("overrides")||[];ke.set("overrides",o.filter(d=>d!==u)),this._send({name:n.responseName,data:{success:!0}})}_handleWebsiteAppInjectScriptToIframe(n){var l;console.info("Script injection requested",{iframeId:(l=n.data)===null||l===void 0?void 0:l.iframeId}),this._send({name:n.responseName,data:{success:!1}})}_handleReportPlayback(n){console.info("Playback report received",n.data),this._send({name:n.responseName,data:{success:!0}})}_handleReportCampaignView(n){console.info("Campaign view report received",n.data),this._send({name:n.responseName,data:{success:!0}})}_handleReportAdPlayed(n){console.info("Ad played report received",n.data),this._send({name:n.responseName,data:{success:!0}})}_handleReportDeviceLog(n){console.info("Device log report received",n.data),this._send({name:n.responseName,data:{success:!0}})}_handleCampaignsGetNextAd(n){this._send({name:n.responseName,data:{success:!1}})}_handleStoreSet(n){$l(this._bridge,n)}_handleStoreGet(n){$l(this._bridge,n)}_handleStoreSubscribe(n){$l(this._bridge,n)}_handleStoreUnsubscribe(n){$l(this._bridge,n)}_handleStoreDelete(n){$l(this._bridge,n)}}const Xo=new J1,Fp=new P1(Xo);function e_(){Xo.onMessage=r=>Fp.handleMessage(r),Ko.onMessage=r=>Fp.handleMessage(r),Xo.bind()}e_();Gg.createRoot(document.querySelector("#app")).render(y.jsx(v1,{}));