@telemetryos/development-application-host-ui 1.6.1 → 1.7.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 i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&s(v)}).observe(document,{childList:!0,subtree:!0});function c(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function s(f){if(f.ep)return;f.ep=!0;const m=c(f);fetch(f.href,m)}})();var sr={exports:{}},ti={};/**
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 gh;function b0(){if(gh)return ti;gh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,f,m){var v=null;if(m!==void 0&&(v=""+m),f.key!==void 0&&(v=""+f.key),"key"in f){m={};for(var b in f)b!=="key"&&(m[b]=f[b])}else m=f;return f=m.ref,{$$typeof:r,type:s,key:v,ref:f!==void 0?f:null,props:m}}return ti.Fragment=i,ti.jsx=c,ti.jsxs=c,ti}var _h;function S0(){return _h||(_h=1,sr.exports=b0()),sr.exports}var z=S0(),rr={exports:{}},ai={},fr={exports:{}},or={};/**
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 bh;function T0(){return bh||(bh=1,function(r){function i(O,H){var V=O.length;O.push(H);e:for(;0<V;){var _e=V-1>>>1,y=O[_e];if(0<f(y,H))O[_e]=H,O[V]=y,V=_e;else break e}}function c(O){return O.length===0?null:O[0]}function s(O){if(O.length===0)return null;var H=O[0],V=O.pop();if(V!==H){O[0]=V;e:for(var _e=0,y=O.length,D=y>>>1;_e<D;){var B=2*(_e+1)-1,Z=O[B],Y=B+1,re=O[Y];if(0>f(Z,V))Y<y&&0>f(re,Z)?(O[_e]=re,O[Y]=V,_e=Y):(O[_e]=Z,O[B]=V,_e=B);else if(Y<y&&0>f(re,V))O[_e]=re,O[Y]=V,_e=Y;else break e}}return H}function f(O,H){var V=O.sortIndex-H.sortIndex;return V!==0?V:O.id-H.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;r.unstable_now=function(){return m.now()}}else{var v=Date,b=v.now();r.unstable_now=function(){return v.now()-b}}var T=[],g=[],j=1,W=null,ee=3,Ee=!1,Ne=!1,ve=!1,Te=!1,Pe=typeof setTimeout=="function"?setTimeout:null,Ge=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;function Oe(O){for(var H=c(g);H!==null;){if(H.callback===null)s(g);else if(H.startTime<=O)s(g),H.sortIndex=H.expirationTime,i(T,H);else break;H=c(g)}}function le(O){if(ve=!1,Oe(O),!Ne)if(c(T)!==null)Ne=!0,et||(et=!0,Ke());else{var H=c(g);H!==null&&Je(le,H.startTime-O)}}var et=!1,st=-1,rt=5,kt=-1;function dl(){return Te?!0:!(r.unstable_now()-kt<rt)}function Kt(){if(Te=!1,et){var O=r.unstable_now();kt=O;var H=!0;try{e:{Ne=!1,ve&&(ve=!1,Ge(st),st=-1),Ee=!0;var V=ee;try{t:{for(Oe(O),W=c(T);W!==null&&!(W.expirationTime>O&&dl());){var _e=W.callback;if(typeof _e=="function"){W.callback=null,ee=W.priorityLevel;var y=_e(W.expirationTime<=O);if(O=r.unstable_now(),typeof y=="function"){W.callback=y,Oe(O),H=!0;break t}W===c(T)&&s(T),Oe(O)}else s(T);W=c(T)}if(W!==null)H=!0;else{var D=c(g);D!==null&&Je(le,D.startTime-O),H=!1}}break e}finally{W=null,ee=V,Ee=!1}H=void 0}}finally{H?Ke():et=!1}}}var Ke;if(typeof de=="function")Ke=function(){de(Kt)};else if(typeof MessageChannel<"u"){var La=new MessageChannel,Ya=La.port2;La.port1.onmessage=Kt,Ke=function(){Ya.postMessage(null)}}else Ke=function(){Pe(Kt,0)};function Je(O,H){st=Pe(function(){O(r.unstable_now())},H)}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 ee},r.unstable_next=function(O){switch(ee){case 1:case 2:case 3:var H=3;break;default:H=ee}var V=ee;ee=H;try{return O()}finally{ee=V}},r.unstable_requestPaint=function(){Te=!0},r.unstable_runWithPriority=function(O,H){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var V=ee;ee=O;try{return H()}finally{ee=V}},r.unstable_scheduleCallback=function(O,H,V){var _e=r.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?_e+V:_e):V=_e,O){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=V+y,O={id:j++,callback:H,priorityLevel:O,startTime:V,expirationTime:y,sortIndex:-1},V>_e?(O.sortIndex=V,i(g,O),c(T)===null&&O===c(g)&&(ve?(Ge(st),st=-1):ve=!0,Je(le,V-_e))):(O.sortIndex=y,i(T,O),Ne||Ee||(Ne=!0,et||(et=!0,Ke()))),O},r.unstable_shouldYield=dl,r.unstable_wrapCallback=function(O){var H=ee;return function(){var V=ee;ee=H;try{return O.apply(this,arguments)}finally{ee=V}}}}(or)),or}var Sh;function A0(){return Sh||(Sh=1,fr.exports=T0()),fr.exports}var dr={exports:{}},I={};/**
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 Th;function x0(){if(Th)return I;Th=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),W=Symbol.iterator;function ee(y){return y===null||typeof y!="object"?null:(y=W&&y[W]||y["@@iterator"],typeof y=="function"?y:null)}var Ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ne=Object.assign,ve={};function Te(y,D,B){this.props=y,this.context=D,this.refs=ve,this.updater=B||Ee}Te.prototype.isReactComponent={},Te.prototype.setState=function(y,D){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,D,"setState")},Te.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function Pe(){}Pe.prototype=Te.prototype;function Ge(y,D,B){this.props=y,this.context=D,this.refs=ve,this.updater=B||Ee}var de=Ge.prototype=new Pe;de.constructor=Ge,Ne(de,Te.prototype),de.isPureReactComponent=!0;var Oe=Array.isArray,le={H:null,A:null,T:null,S:null,V:null},et=Object.prototype.hasOwnProperty;function st(y,D,B,Z,Y,re){return B=re.ref,{$$typeof:r,type:y,key:D,ref:B!==void 0?B:null,props:re}}function rt(y,D){return st(y.type,D,void 0,void 0,void 0,y.props)}function kt(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function dl(y){var D={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(B){return D[B]})}var Kt=/\/+/g;function Ke(y,D){return typeof y=="object"&&y!==null&&y.key!=null?dl(""+y.key):D.toString(36)}function La(){}function Ya(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(La,La):(y.status="pending",y.then(function(D){y.status==="pending"&&(y.status="fulfilled",y.value=D)},function(D){y.status==="pending"&&(y.status="rejected",y.reason=D)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function Je(y,D,B,Z,Y){var re=typeof y;(re==="undefined"||re==="boolean")&&(y=null);var $=!1;if(y===null)$=!0;else switch(re){case"bigint":case"string":case"number":$=!0;break;case"object":switch(y.$$typeof){case r:case i:$=!0;break;case j:return $=y._init,Je($(y._payload),D,B,Z,Y)}}if($)return Y=Y(y),$=Z===""?"."+Ke(y,0):Z,Oe(Y)?(B="",$!=null&&(B=$.replace(Kt,"$&/")+"/"),Je(Y,D,B,"",function(oa){return oa})):Y!=null&&(kt(Y)&&(Y=rt(Y,B+(Y.key==null||y&&y.key===Y.key?"":(""+Y.key).replace(Kt,"$&/")+"/")+$)),D.push(Y)),1;$=0;var ft=Z===""?".":Z+":";if(Oe(y))for(var Ae=0;Ae<y.length;Ae++)Z=y[Ae],re=ft+Ke(Z,Ae),$+=Je(Z,D,B,re,Y);else if(Ae=ee(y),typeof Ae=="function")for(y=Ae.call(y),Ae=0;!(Z=y.next()).done;)Z=Z.value,re=ft+Ke(Z,Ae++),$+=Je(Z,D,B,re,Y);else if(re==="object"){if(typeof y.then=="function")return Je(Ya(y),D,B,Z,Y);throw D=String(y),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return $}function O(y,D,B){if(y==null)return y;var Z=[],Y=0;return Je(y,Z,"","",function(re){return D.call(B,re,Y++)}),Z}function H(y){if(y._status===-1){var D=y._result;D=D(),D.then(function(B){(y._status===0||y._status===-1)&&(y._status=1,y._result=B)},function(B){(y._status===0||y._status===-1)&&(y._status=2,y._result=B)}),y._status===-1&&(y._status=0,y._result=D)}if(y._status===1)return y._result.default;throw y._result}var V=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function _e(){}return I.Children={map:O,forEach:function(y,D,B){O(y,function(){D.apply(this,arguments)},B)},count:function(y){var D=0;return O(y,function(){D++}),D},toArray:function(y){return O(y,function(D){return D})||[]},only:function(y){if(!kt(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},I.Component=Te,I.Fragment=c,I.Profiler=f,I.PureComponent=Ge,I.StrictMode=s,I.Suspense=T,I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,I.__COMPILER_RUNTIME={__proto__:null,c:function(y){return le.H.useMemoCache(y)}},I.cache=function(y){return function(){return y.apply(null,arguments)}},I.cloneElement=function(y,D,B){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var Z=Ne({},y.props),Y=y.key,re=void 0;if(D!=null)for($ in D.ref!==void 0&&(re=void 0),D.key!==void 0&&(Y=""+D.key),D)!et.call(D,$)||$==="key"||$==="__self"||$==="__source"||$==="ref"&&D.ref===void 0||(Z[$]=D[$]);var $=arguments.length-2;if($===1)Z.children=B;else if(1<$){for(var ft=Array($),Ae=0;Ae<$;Ae++)ft[Ae]=arguments[Ae+2];Z.children=ft}return st(y.type,Y,void 0,void 0,re,Z)},I.createContext=function(y){return y={$$typeof:v,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:m,_context:y},y},I.createElement=function(y,D,B){var Z,Y={},re=null;if(D!=null)for(Z in D.key!==void 0&&(re=""+D.key),D)et.call(D,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(Y[Z]=D[Z]);var $=arguments.length-2;if($===1)Y.children=B;else if(1<$){for(var ft=Array($),Ae=0;Ae<$;Ae++)ft[Ae]=arguments[Ae+2];Y.children=ft}if(y&&y.defaultProps)for(Z in $=y.defaultProps,$)Y[Z]===void 0&&(Y[Z]=$[Z]);return st(y,re,void 0,void 0,null,Y)},I.createRef=function(){return{current:null}},I.forwardRef=function(y){return{$$typeof:b,render:y}},I.isValidElement=kt,I.lazy=function(y){return{$$typeof:j,_payload:{_status:-1,_result:y},_init:H}},I.memo=function(y,D){return{$$typeof:g,type:y,compare:D===void 0?null:D}},I.startTransition=function(y){var D=le.T,B={};le.T=B;try{var Z=y(),Y=le.S;Y!==null&&Y(B,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(_e,V)}catch(re){V(re)}finally{le.T=D}},I.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},I.use=function(y){return le.H.use(y)},I.useActionState=function(y,D,B){return le.H.useActionState(y,D,B)},I.useCallback=function(y,D){return le.H.useCallback(y,D)},I.useContext=function(y){return le.H.useContext(y)},I.useDebugValue=function(){},I.useDeferredValue=function(y,D){return le.H.useDeferredValue(y,D)},I.useEffect=function(y,D,B){var Z=le.H;if(typeof B=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect(y,D)},I.useId=function(){return le.H.useId()},I.useImperativeHandle=function(y,D,B){return le.H.useImperativeHandle(y,D,B)},I.useInsertionEffect=function(y,D){return le.H.useInsertionEffect(y,D)},I.useLayoutEffect=function(y,D){return le.H.useLayoutEffect(y,D)},I.useMemo=function(y,D){return le.H.useMemo(y,D)},I.useOptimistic=function(y,D){return le.H.useOptimistic(y,D)},I.useReducer=function(y,D,B){return le.H.useReducer(y,D,B)},I.useRef=function(y){return le.H.useRef(y)},I.useState=function(y){return le.H.useState(y)},I.useSyncExternalStore=function(y,D,B){return le.H.useSyncExternalStore(y,D,B)},I.useTransition=function(){return le.H.useTransition()},I.version="19.1.1",I}var Ah;function Sr(){return Ah||(Ah=1,dr.exports=x0()),dr.exports}var hr={exports:{}},Fe={};/**
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 xh;function E0(){if(xh)return Fe;xh=1;var r=Sr();function i(T){var g="https://react.dev/errors/"+T;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)g+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+T+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(T,g,j){var W=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:W==null?null:""+W,children:T,containerInfo:g,implementation:j}}var v=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(T,g){if(T==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Fe.createPortal=function(T,g){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return m(T,g,null,j)},Fe.flushSync=function(T){var g=v.T,j=s.p;try{if(v.T=null,s.p=2,T)return T()}finally{v.T=g,s.p=j,s.d.f()}},Fe.preconnect=function(T,g){typeof T=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(T,g))},Fe.prefetchDNS=function(T){typeof T=="string"&&s.d.D(T)},Fe.preinit=function(T,g){if(typeof T=="string"&&g&&typeof g.as=="string"){var j=g.as,W=b(j,g.crossOrigin),ee=typeof g.integrity=="string"?g.integrity:void 0,Ee=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;j==="style"?s.d.S(T,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:W,integrity:ee,fetchPriority:Ee}):j==="script"&&s.d.X(T,{crossOrigin:W,integrity:ee,fetchPriority:Ee,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Fe.preinitModule=function(T,g){if(typeof T=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var j=b(g.as,g.crossOrigin);s.d.M(T,{crossOrigin:j,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(T)},Fe.preload=function(T,g){if(typeof T=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var j=g.as,W=b(j,g.crossOrigin);s.d.L(T,j,{crossOrigin:W,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Fe.preloadModule=function(T,g){if(typeof T=="string")if(g){var j=b(g.as,g.crossOrigin);s.d.m(T,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:j,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(T)},Fe.requestFormReset=function(T){s.d.r(T)},Fe.unstable_batchedUpdates=function(T,g){return T(g)},Fe.useFormState=function(T,g,j){return v.H.useFormState(T,g,j)},Fe.useFormStatus=function(){return v.H.useHostTransitionStatus()},Fe.version="19.1.1",Fe}var Eh;function N0(){if(Eh)return hr.exports;Eh=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(i){console.error(i)}}return r(),hr.exports=E0(),hr.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 Nh;function O0(){if(Nh)return ai;Nh=1;var r=A0(),i=Sr(),c=N0();function s(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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(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 v(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 b(e){if(m(e)!==e)throw Error(s(188))}function T(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var u=n.alternate;if(u===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===a)return b(n),e;if(u===l)return b(n),t;u=u.sibling}throw Error(s(188))}if(a.return!==l.return)a=n,l=u;else{for(var o=!1,d=n.child;d;){if(d===a){o=!0,a=n,l=u;break}if(d===l){o=!0,l=n,a=u;break}d=d.sibling}if(!o){for(d=u.child;d;){if(d===a){o=!0,a=u,l=n;break}if(d===l){o=!0,l=u,a=n;break}d=d.sibling}if(!o)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,W=Symbol.for("react.element"),ee=Symbol.for("react.transitional.element"),Ee=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Te=Symbol.for("react.profiler"),Pe=Symbol.for("react.provider"),Ge=Symbol.for("react.consumer"),de=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),kt=Symbol.for("react.activity"),dl=Symbol.for("react.memo_cache_sentinel"),Kt=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=Kt&&e[Kt]||e["@@iterator"],typeof e=="function"?e:null)}var La=Symbol.for("react.client.reference");function Ya(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===La?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ne:return"Fragment";case Te:return"Profiler";case ve:return"StrictMode";case le:return"Suspense";case et:return"SuspenseList";case kt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ee:return"Portal";case de:return(e.displayName||"Context")+".Provider";case Ge:return(e._context.displayName||"Context")+".Consumer";case Oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case st:return t=e.displayName||null,t!==null?t:Ya(e.type)||"Memo";case rt:t=e._payload,e=e._init;try{return Ya(e(t))}catch{}}return null}var Je=Array.isArray,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},_e=[],y=-1;function D(e){return{current:e}}function B(e){0>y||(e.current=_e[y],_e[y]=null,y--)}function Z(e,t){y++,_e[y]=e.current,e.current=t}var Y=D(null),re=D(null),$=D(null),ft=D(null);function Ae(e,t){switch(Z($,t),Z(re,e),Z(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qd(t),e=Kd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(Y),Z(Y,e)}function oa(){B(Y),B(re),B($)}function Ku(e){e.memoizedState!==null&&Z(ft,e);var t=Y.current,a=Kd(t,e.type);t!==a&&(Z(re,e),Z(Y,a))}function Si(e){re.current===e&&(B(Y),B(re)),ft.current===e&&(B(ft),$n._currentValue=V)}var Ju=Object.prototype.hasOwnProperty,Wu=r.unstable_scheduleCallback,$u=r.unstable_cancelCallback,Ih=r.unstable_shouldYield,Ph=r.unstable_requestPaint,Bt=r.unstable_now,em=r.unstable_getCurrentPriorityLevel,xr=r.unstable_ImmediatePriority,Er=r.unstable_UserBlockingPriority,Ti=r.unstable_NormalPriority,tm=r.unstable_LowPriority,Nr=r.unstable_IdlePriority,am=r.log,lm=r.unstable_setDisableYieldValue,ln=null,ot=null;function da(e){if(typeof am=="function"&&lm(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(ln,e)}catch{}}var dt=Math.clz32?Math.clz32:um,nm=Math.log,im=Math.LN2;function um(e){return e>>>=0,e===0?32:31-(nm(e)/im|0)|0}var Ai=256,xi=4194304;function Ga(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Ei(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~u,l!==0?n=Ga(l):(o&=d,o!==0?n=Ga(o):a||(a=d&~e,a!==0&&(n=Ga(a))))):(d=l&~u,d!==0?n=Ga(d):o!==0?n=Ga(o):a||(a=l&~e,a!==0&&(n=Ga(a)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:n}function nn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cm(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 Or(){var e=Ai;return Ai<<=1,(Ai&4194048)===0&&(Ai=256),e}function Mr(){var e=xi;return xi<<=1,(xi&62914560)===0&&(xi=4194304),e}function Fu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function un(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sm(e,t,a,l,n,u){var o=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 d=e.entanglements,h=e.expirationTimes,A=e.hiddenUpdates;for(a=o&~a;0<a;){var N=31-dt(a),C=1<<N;d[N]=0,h[N]=-1;var x=A[N];if(x!==null)for(A[N]=null,N=0;N<x.length;N++){var E=x[N];E!==null&&(E.lane&=-536870913)}a&=~C}l!==0&&zr(e,l,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function zr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-dt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function Cr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-dt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Iu(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 Pu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dr(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:dh(e.type))}function rm(e,t){var a=H.p;try{return H.p=e,t()}finally{H.p=a}}var ha=Math.random().toString(36).slice(2),We="__reactFiber$"+ha,lt="__reactProps$"+ha,hl="__reactContainer$"+ha,ec="__reactEvents$"+ha,fm="__reactListeners$"+ha,om="__reactHandles$"+ha,Rr="__reactResources$"+ha,cn="__reactMarker$"+ha;function tc(e){delete e[We],delete e[lt],delete e[ec],delete e[fm],delete e[om]}function ml(e){var t=e[We];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hl]||a[We]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Fd(e);e!==null;){if(a=e[We])return a;e=Fd(e)}return t}e=a,a=e.parentNode}return null}function vl(e){if(e=e[We]||e[hl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function sn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function yl(e){var t=e[Rr];return t||(t=e[Rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[cn]=!0}var jr=new Set,Ur={};function Xa(e,t){pl(e,t),pl(e+"Capture",t)}function pl(e,t){for(Ur[e]=t,e=0;e<t.length;e++)jr.add(t[e])}var dm=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]*$"),Zr={},Hr={};function hm(e){return Ju.call(Hr,e)?!0:Ju.call(Zr,e)?!1:dm.test(e)?Hr[e]=!0:(Zr[e]=!0,!1)}function Ni(e,t,a){if(hm(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Oi(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 Jt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var ac,kr;function gl(e){if(ac===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ac=t&&t[1]||"",kr=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ac+e+kr}var lc=!1;function nc(e,t){if(!e||lc)return"";lc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(E){var x=E}Reflect.construct(e,[],C)}else{try{C.call()}catch(E){x=E}e.call(C.prototype)}}else{try{throw Error()}catch(E){x=E}(C=e())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(E){if(E&&x&&typeof E.stack=="string")return[E.stack,x.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),o=u[0],d=u[1];if(o&&d){var h=o.split(`
44
- `),A=d.split(`
45
- `);for(n=l=0;l<h.length&&!h[l].includes("DetermineComponentFrameRoot");)l++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(l===h.length||n===A.length)for(l=h.length-1,n=A.length-1;1<=l&&0<=n&&h[l]!==A[n];)n--;for(;1<=l&&0<=n;l--,n--)if(h[l]!==A[n]){if(l!==1||n!==1)do if(l--,n--,0>n||h[l]!==A[n]){var N=`
46
- `+h[l].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=l&&0<=n);break}}}finally{lc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?gl(a):""}function mm(e){switch(e.tag){case 26:case 27:case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 15:return nc(e.type,!1);case 11:return nc(e.type.render,!1);case 1:return nc(e.type,!0);case 31:return gl("Activity");default:return""}}function Br(e){try{var t="";do t+=mm(e),e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}function St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vm(e){var t=qr(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=vm(e))}function wr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=qr(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function zi(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 ym=/[\n"\\]/g;function Tt(e){return e.replace(ym,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ic(e,t,a,l,n,u,o,d){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?uc(e,o,St(t)):a!=null?uc(e,o,St(a)):l!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+St(d):e.removeAttribute("name")}function Lr(e,t,a,l,n,u,o,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null))return;a=a!=null?""+St(a):"",t=t!=null?""+St(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o)}function uc(e,t,a){t==="number"&&zi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function _l(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+St(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Yr(e,t,a){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+St(a):""}function Gr(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Je(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=St(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function bl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var pm=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 Xr(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||pm.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Vr(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&Xr(e,n,l)}else for(var u in t)t.hasOwnProperty(u)&&Xr(e,u,t[u])}function cc(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 gm=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"]]),_m=/^[\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 Ci(e){return _m.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var sc=null;function rc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,Tl=null;function Qr(e){var t=vl(e);if(t&&(e=t.stateNode)){var a=e[lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ic(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="'+Tt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[lt]||null;if(!n)throw Error(s(90));ic(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&wr(l)}break e;case"textarea":Yr(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&_l(e,!!a.multiple,t,!1)}}}var fc=!1;function Kr(e,t,a){if(fc)return e(t,a);fc=!0;try{var l=e(t);return l}finally{if(fc=!1,(Sl!==null||Tl!==null)&&(vu(),Sl&&(t=Sl,e=Tl,Tl=Sl=null,Qr(t),e)))for(t=0;t<e.length;t++)Qr(e[t])}}function rn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[lt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=!1;if(Wt)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){oc=!0}}),window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{oc=!1}var ma=null,dc=null,Di=null;function Jr(){if(Di)return Di;var e,t=dc,a=t.length,l,n="value"in ma?ma.value:ma.textContent,u=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[u-l];l++);return Di=n.slice(e,1<l?1-l:void 0)}function Ri(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 ji(){return!0}function Wr(){return!1}function nt(e){function t(a,l,n,u,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ji:Wr,this.isPropagationStopped=Wr,this}return j(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=ji)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=nt(Va),on=j({},Va,{view:0,detail:0}),bm=nt(on),hc,mc,dn,Zi=j({},on,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yc,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!==dn&&(dn&&e.type==="mousemove"?(hc=e.screenX-dn.screenX,mc=e.screenY-dn.screenY):mc=hc=0,dn=e),hc)},movementY:function(e){return"movementY"in e?e.movementY:mc}}),$r=nt(Zi),Sm=j({},Zi,{dataTransfer:0}),Tm=nt(Sm),Am=j({},on,{relatedTarget:0}),vc=nt(Am),xm=j({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),Em=nt(xm),Nm=j({},Va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Om=nt(Nm),Mm=j({},Va,{data:0}),Fr=nt(Mm),zm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cm={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"},Dm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dm[e])?!!t[e]:!1}function yc(){return Rm}var jm=j({},on,{key:function(e){if(e.key){var t=zm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yc,charCode:function(e){return e.type==="keypress"?Ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Um=nt(jm),Zm=j({},Zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ir=nt(Zm),Hm=j({},on,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yc}),km=nt(Hm),Bm=j({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),qm=nt(Bm),wm=j({},Zi,{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}),Lm=nt(wm),Ym=j({},Va,{newState:0,oldState:0}),Gm=nt(Ym),Xm=[9,13,27,32],pc=Wt&&"CompositionEvent"in window,hn=null;Wt&&"documentMode"in document&&(hn=document.documentMode);var Vm=Wt&&"TextEvent"in window&&!hn,Pr=Wt&&(!pc||hn&&8<hn&&11>=hn),ef=" ",tf=!1;function af(e,t){switch(e){case"keyup":return Xm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Al=!1;function Qm(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(tf=!0,ef);case"textInput":return e=t.data,e===ef&&tf?null:e;default:return null}}function Km(e,t){if(Al)return e==="compositionend"||!pc&&af(e,t)?(e=Jr(),Di=dc=ma=null,Al=!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 Pr&&t.locale!=="ko"?null:t.data;default:return null}}var Jm={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 nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jm[e.type]:t==="textarea"}function uf(e,t,a,l){Sl?Tl?Tl.push(l):Tl=[l]:Sl=l,t=Su(t,"onChange"),0<t.length&&(a=new Ui("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var mn=null,vn=null;function Wm(e){Ld(e,0)}function Hi(e){var t=sn(e);if(wr(t))return e}function cf(e,t){if(e==="change")return t}var sf=!1;if(Wt){var gc;if(Wt){var _c="oninput"in document;if(!_c){var rf=document.createElement("div");rf.setAttribute("oninput","return;"),_c=typeof rf.oninput=="function"}gc=_c}else gc=!1;sf=gc&&(!document.documentMode||9<document.documentMode)}function ff(){mn&&(mn.detachEvent("onpropertychange",of),vn=mn=null)}function of(e){if(e.propertyName==="value"&&Hi(vn)){var t=[];uf(t,vn,e,rc(e)),Kr(Wm,t)}}function $m(e,t,a){e==="focusin"?(ff(),mn=t,vn=a,mn.attachEvent("onpropertychange",of)):e==="focusout"&&ff()}function Fm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hi(vn)}function Im(e,t){if(e==="click")return Hi(t)}function Pm(e,t){if(e==="input"||e==="change")return Hi(t)}function ev(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:ev;function yn(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!Ju.call(t,n)||!ht(e[n],t[n]))return!1}return!0}function df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hf(e,t){var a=df(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=df(a)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zi(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=zi(e.document)}return t}function bc(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 tv=Wt&&"documentMode"in document&&11>=document.documentMode,xl=null,Sc=null,pn=null,Tc=!1;function yf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tc||xl==null||xl!==zi(l)||(l=xl,"selectionStart"in l&&bc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),pn&&yn(pn,l)||(pn=l,l=Su(Sc,"onSelect"),0<l.length&&(t=new Ui("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=xl)))}function Qa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var El={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},Ac={},pf={};Wt&&(pf=document.createElement("div").style,"AnimationEvent"in window||(delete El.animationend.animation,delete El.animationiteration.animation,delete El.animationstart.animation),"TransitionEvent"in window||delete El.transitionend.transition);function Ka(e){if(Ac[e])return Ac[e];if(!El[e])return e;var t=El[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in pf)return Ac[e]=t[a];return e}var gf=Ka("animationend"),_f=Ka("animationiteration"),bf=Ka("animationstart"),av=Ka("transitionrun"),lv=Ka("transitionstart"),nv=Ka("transitioncancel"),Sf=Ka("transitionend"),Tf=new Map,xc="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(" ");xc.push("scrollEnd");function Ct(e,t){Tf.set(e,t),Xa(t,[e])}var Af=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var a=Af.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Br(t)},Af.set(e,t),t)}return{value:e,source:t,stack:Br(t)}}var xt=[],Nl=0,Ec=0;function ki(){for(var e=Nl,t=Ec=Nl=0;t<e;){var a=xt[t];xt[t++]=null;var l=xt[t];xt[t++]=null;var n=xt[t];xt[t++]=null;var u=xt[t];if(xt[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}u!==0&&xf(a,n,u)}}function Bi(e,t,a,l){xt[Nl++]=e,xt[Nl++]=t,xt[Nl++]=a,xt[Nl++]=l,Ec|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Nc(e,t,a,l){return Bi(e,t,a,l),qi(e)}function Ol(e,t){return Bi(e,null,null,t),qi(e)}function xf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-dt(a),e=u.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),u):null}function qi(e){if(50<Yn)throw Yn=0,Rs=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ml={};function iv(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,a,l){return new iv(e,t,a,l)}function Oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var a=e.alternate;return a===null?(a=mt(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 Ef(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 wi(e,t,a,l,n,u){var o=0;if(l=e,typeof e=="function")Oc(e)&&(o=1);else if(typeof e=="string")o=c0(e,a,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case kt:return e=mt(31,a,t,n),e.elementType=kt,e.lanes=u,e;case Ne:return Ja(a.children,n,u,t);case ve:o=8,n|=24;break;case Te:return e=mt(12,a,t,n|2),e.elementType=Te,e.lanes=u,e;case le:return e=mt(13,a,t,n),e.elementType=le,e.lanes=u,e;case et:return e=mt(19,a,t,n),e.elementType=et,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pe:case de:o=10;break e;case Ge:o=9;break e;case Oe:o=11;break e;case st:o=14;break e;case rt:o=16,l=null;break e}o=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=mt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=u,t}function Ja(e,t,a,l){return e=mt(7,e,l,t),e.lanes=a,e}function Mc(e,t,a){return e=mt(6,e,null,t),e.lanes=a,e}function zc(e,t,a){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zl=[],Cl=0,Li=null,Yi=0,Et=[],Nt=0,Wa=null,Ft=1,It="";function $a(e,t){zl[Cl++]=Yi,zl[Cl++]=Li,Li=e,Yi=t}function Nf(e,t,a){Et[Nt++]=Ft,Et[Nt++]=It,Et[Nt++]=Wa,Wa=e;var l=Ft;e=It;var n=32-dt(l)-1;l&=~(1<<n),a+=1;var u=32-dt(t)+n;if(30<u){var o=n-n%5;u=(l&(1<<o)-1).toString(32),l>>=o,n-=o,Ft=1<<32-dt(t)+n|a<<n|l,It=u+e}else Ft=1<<u|a<<n|l,It=e}function Cc(e){e.return!==null&&($a(e,1),Nf(e,1,0))}function Dc(e){for(;e===Li;)Li=zl[--Cl],zl[Cl]=null,Yi=zl[--Cl],zl[Cl]=null;for(;e===Wa;)Wa=Et[--Nt],Et[Nt]=null,It=Et[--Nt],Et[Nt]=null,Ft=Et[--Nt],Et[Nt]=null}var tt=null,Ce=null,oe=!1,Fa=null,qt=!1,Rc=Error(s(519));function Ia(e){var t=Error(s(418,""));throw bn(At(t,e)),Rc}function Of(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[We]=e,t[lt]=l,a){case"dialog":ie("cancel",t),ie("close",t);break;case"iframe":case"object":case"embed":ie("load",t);break;case"video":case"audio":for(a=0;a<Xn.length;a++)ie(Xn[a],t);break;case"source":ie("error",t);break;case"img":case"image":case"link":ie("error",t),ie("load",t);break;case"details":ie("toggle",t);break;case"input":ie("invalid",t),Lr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Mi(t);break;case"select":ie("invalid",t);break;case"textarea":ie("invalid",t),Gr(t,l.value,l.defaultValue,l.children),Mi(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Vd(t.textContent,a)?(l.popover!=null&&(ie("beforetoggle",t),ie("toggle",t)),l.onScroll!=null&&ie("scroll",t),l.onScrollEnd!=null&&ie("scrollend",t),l.onClick!=null&&(t.onclick=Tu),t=!0):t=!1,t||Ia(e)}function Mf(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:tt=tt.return}}function gn(e){if(e!==tt)return!1;if(!oe)return Mf(e),oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Js(e.type,e.memoizedProps)),a=!a),a&&Ce&&Ia(e),Mf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Ce=Rt(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ce=null}}else t===27?(t=Ce,Ca(e.type)?(e=Is,Is=null,Ce=e):Ce=t):Ce=tt?Rt(e.stateNode.nextSibling):null;return!0}function _n(){Ce=tt=null,oe=!1}function zf(){var e=Fa;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),Fa=null),e}function bn(e){Fa===null?Fa=[e]:Fa.push(e)}var jc=D(null),Pa=null,Pt=null;function va(e,t,a){Z(jc,t._currentValue),t._currentValue=a}function ea(e){e._currentValue=jc.current,B(jc)}function Uc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Zc(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var o=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var h=0;h<t.length;h++)if(d.context===t[h]){u.lanes|=a,d=u.alternate,d!==null&&(d.lanes|=a),Uc(u.return,a,e),l||(o=null);break e}u=d.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(s(341));o.lanes|=a,u=o.alternate,u!==null&&(u.lanes|=a),Uc(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Sn(e,t,a,l){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var d=n.type;ht(n.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(n===ft.current){if(o=n.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push($n):e=[$n])}n=n.return}e!==null&&Zc(t,e,a,l),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function el(e){Pa=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return Cf(Pa,e)}function Xi(e,t){return Pa===null&&el(e),Cf(e,t)}function Cf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Pt===null){if(e===null)throw Error(s(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return a}var uv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},cv=r.unstable_scheduleCallback,sv=r.unstable_NormalPriority,ke={$$typeof:de,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new uv,data:new Map,refCount:0}}function Tn(e){e.refCount--,e.refCount===0&&cv(sv,function(){e.controller.abort()})}var An=null,kc=0,Dl=0,Rl=null;function rv(e,t){if(An===null){var a=An=[];kc=0,Dl=qs(),Rl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return kc++,t.then(Df,Df),t}function Df(){if(--kc===0&&An!==null){Rl!==null&&(Rl.status="fulfilled");var e=An;An=null,Dl=0,Rl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fv(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Rf=O.S;O.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&rv(e,t),Rf!==null&&Rf(e,t)};var tl=D(null);function Bc(){var e=tl.current;return e!==null?e:Se.pooledCache}function Vi(e,t){t===null?Z(tl,tl.current):Z(tl,t.pool)}function jf(){var e=Bc();return e===null?null:{parent:ke._currentValue,pool:e}}var xn=Error(s(460)),Uf=Error(s(474)),Qi=Error(s(542)),qc={then:function(){}};function Zf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ki(){}function Hf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ki,Ki),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e;default:if(typeof t.status=="string")t.then(Ki,Ki);else{if(e=Se,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e}throw En=t,xn}}var En=null;function kf(){if(En===null)throw Error(s(459));var e=En;return En=null,e}function Bf(e){if(e===xn||e===Qi)throw Error(s(483))}var ya=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lc(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 pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ga(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(he&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=qi(e),xf(e,null,a),t}return Bi(e,l,t,a),qi(e)}function Nn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Cr(e,a)}}function Yc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?n=u=o:u=u.next=o,a=a.next}while(a!==null);u===null?n=u=t:u=u.next=t}else n=u=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Gc=!1;function On(){if(Gc){var e=Rl;if(e!==null)throw e}}function Mn(e,t,a,l){Gc=!1;var n=e.updateQueue;ya=!1;var u=n.firstBaseUpdate,o=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var h=d,A=h.next;h.next=null,o===null?u=A:o.next=A,o=h;var N=e.alternate;N!==null&&(N=N.updateQueue,d=N.lastBaseUpdate,d!==o&&(d===null?N.firstBaseUpdate=A:d.next=A,N.lastBaseUpdate=h))}if(u!==null){var C=n.baseState;o=0,N=A=h=null,d=u;do{var x=d.lane&-536870913,E=x!==d.lane;if(E?(ce&x)===x:(l&x)===x){x!==0&&x===Dl&&(Gc=!0),N!==null&&(N=N.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var K=e,G=d;x=t;var ge=a;switch(G.tag){case 1:if(K=G.payload,typeof K=="function"){C=K.call(ge,C,x);break e}C=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=G.payload,x=typeof K=="function"?K.call(ge,C,x):K,x==null)break e;C=j({},C,x);break e;case 2:ya=!0}}x=d.callback,x!==null&&(e.flags|=64,E&&(e.flags|=8192),E=n.callbacks,E===null?n.callbacks=[x]:E.push(x))}else E={lane:x,tag:d.tag,payload:d.payload,callback:d.callback,next:null},N===null?(A=N=E,h=C):N=N.next=E,o|=x;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;E=d,d=E.next,E.next=null,n.lastBaseUpdate=E,n.shared.pending=null}}while(!0);N===null&&(h=C),n.baseState=h,n.firstBaseUpdate=A,n.lastBaseUpdate=N,u===null&&(n.shared.lanes=0),Na|=o,e.lanes=o,e.memoizedState=C}}function qf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function wf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)qf(a[e],t)}var jl=D(null),Ji=D(0);function Lf(e,t){e=ca,Z(Ji,e),Z(jl,t),ca=e|t.baseLanes}function Xc(){Z(Ji,ca),Z(jl,jl.current)}function Vc(){ca=Ji.current,B(jl),B(Ji)}var _a=0,te=null,ye=null,Ze=null,Wi=!1,Ul=!1,al=!1,$i=0,zn=0,Zl=null,ov=0;function Re(){throw Error(s(321))}function Qc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ht(e[a],t[a]))return!1;return!0}function Kc(e,t,a,l,n,u){return _a=u,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Eo:No,al=!1,u=a(l,n),al=!1,Ul&&(u=Gf(t,a,l,n)),Yf(e),u}function Yf(e){O.H=au;var t=ye!==null&&ye.next!==null;if(_a=0,Ze=ye=te=null,Wi=!1,zn=0,Zl=null,t)throw Error(s(300));e===null||we||(e=e.dependencies,e!==null&&Gi(e)&&(we=!0))}function Gf(e,t,a,l){te=e;var n=0;do{if(Ul&&(Zl=null),zn=0,Ul=!1,25<=n)throw Error(s(301));if(n+=1,Ze=ye=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=gv,u=t(a,l)}while(Ul);return u}function dv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Cn(t):t,e=e.useState()[0],(ye!==null?ye.memoizedState:null)!==e&&(te.flags|=1024),t}function Jc(){var e=$i!==0;return $i=0,e}function Wc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function $c(e){if(Wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wi=!1}_a=0,Ze=ye=te=null,Ul=!1,zn=$i=0,Zl=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?te.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function He(){if(ye===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=Ze===null?te.memoizedState:Ze.next;if(t!==null)Ze=t,ye=e;else{if(e===null)throw te.alternate===null?Error(s(467)):Error(s(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Ze===null?te.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Fc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cn(e){var t=zn;return zn+=1,Zl===null&&(Zl=[]),e=Hf(Zl,e,t),t=te,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Eo:No),e}function Fi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cn(e);if(e.$$typeof===de)return $e(e)}throw Error(s(438,String(e)))}function Ic(e){var t=null,a=te.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=te.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Fc(),te.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=dl;return t.index++,a}function ta(e,t){return typeof t=="function"?t(e):t}function Ii(e){var t=He();return Pc(t,ye,e)}function Pc(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var n=e.baseQueue,u=l.pending;if(u!==null){if(n!==null){var o=n.next;n.next=u.next,u.next=o}t.baseQueue=n=u,l.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=o=null,h=null,A=t,N=!1;do{var C=A.lane&-536870913;if(C!==A.lane?(ce&C)===C:(_a&C)===C){var x=A.revertLane;if(x===0)h!==null&&(h=h.next={lane:0,revertLane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),C===Dl&&(N=!0);else if((_a&x)===x){A=A.next,x===Dl&&(N=!0);continue}else C={lane:0,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},h===null?(d=h=C,o=u):h=h.next=C,te.lanes|=x,Na|=x;C=A.action,al&&a(u,C),u=A.hasEagerState?A.eagerState:a(u,C)}else x={lane:C,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},h===null?(d=h=x,o=u):h=h.next=x,te.lanes|=C,Na|=C;A=A.next}while(A!==null&&A!==t);if(h===null?o=u:h.next=d,!ht(u,e.memoizedState)&&(we=!0,N&&(a=Rl,a!==null)))throw a;e.memoizedState=u,e.baseState=o,e.baseQueue=h,l.lastRenderedState=u}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function es(e){var t=He(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,u=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do u=e(u,o.action),o=o.next;while(o!==n);ht(u,t.memoizedState)||(we=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function Xf(e,t,a){var l=te,n=He(),u=oe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var o=!ht((ye||n).memoizedState,a);o&&(n.memoizedState=a,we=!0),n=n.queue;var d=Kf.bind(null,l,n,e);if(Dn(2048,8,d,[e]),n.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,Hl(9,Pi(),Qf.bind(null,l,n,a,t),null),Se===null)throw Error(s(349));u||(_a&124)!==0||Vf(l,t,a)}return a}function Vf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=te.updateQueue,t===null?(t=Fc(),te.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Qf(e,t,a,l){t.value=a,t.getSnapshot=l,Jf(t)&&Wf(e)}function Kf(e,t,a){return a(function(){Jf(t)&&Wf(e)})}function Jf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ht(e,a)}catch{return!0}}function Wf(e){var t=Ol(e,2);t!==null&&_t(t,e,2)}function ts(e){var t=it();if(typeof e=="function"){var a=e;if(e=a(),al){da(!0);try{a()}finally{da(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t}function $f(e,t,a,l){return e.baseState=a,Pc(e,ye,typeof l=="function"?l:ta)}function hv(e,t,a,l,n){if(tu(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};O.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,Ff(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Ff(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var u=O.T,o={};O.T=o;try{var d=a(n,l),h=O.S;h!==null&&h(o,d),If(e,t,d)}catch(A){as(e,t,A)}finally{O.T=u}}else try{u=a(n,l),If(e,t,u)}catch(A){as(e,t,A)}}function If(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Pf(e,t,l)},function(l){return as(e,t,l)}):Pf(e,t,a)}function Pf(e,t,a){t.status="fulfilled",t.value=a,eo(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ff(e,a)))}function as(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,eo(t),t=t.next;while(t!==l)}e.action=null}function eo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function to(e,t){return t}function ao(e,t){if(oe){var a=Se.formState;if(a!==null){e:{var l=te;if(oe){if(Ce){t:{for(var n=Ce,u=qt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ce=Rt(n.nextSibling),l=n.data==="F!";break e}}Ia(l)}l=!1}l&&(t=a[0])}}return a=it(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:t},a.queue=l,a=To.bind(null,te,l),l.dispatch=a,l=ts(!1),u=cs.bind(null,te,!1,l.queue),l=it(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=hv.bind(null,te,n,u,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function lo(e){var t=He();return no(t,ye,e)}function no(e,t,a){if(t=Pc(e,t,to)[0],e=Ii(ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Cn(t)}catch(o){throw o===xn?Qi:o}else l=t;t=He();var n=t.queue,u=n.dispatch;return a!==t.memoizedState&&(te.flags|=2048,Hl(9,Pi(),mv.bind(null,n,a),null)),[l,u,e]}function mv(e,t){e.action=t}function io(e){var t=He(),a=ye;if(a!==null)return no(t,a,e);He(),t=t.memoizedState,a=He();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Hl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=te.updateQueue,t===null&&(t=Fc(),te.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Pi(){return{destroy:void 0,resource:void 0}}function uo(){return He().memoizedState}function eu(e,t,a,l){var n=it();l=l===void 0?null:l,te.flags|=e,n.memoizedState=Hl(1|t,Pi(),a,l)}function Dn(e,t,a,l){var n=He();l=l===void 0?null:l;var u=n.memoizedState.inst;ye!==null&&l!==null&&Qc(l,ye.memoizedState.deps)?n.memoizedState=Hl(t,u,a,l):(te.flags|=e,n.memoizedState=Hl(1|t,u,a,l))}function co(e,t){eu(8390656,8,e,t)}function so(e,t){Dn(2048,8,e,t)}function ro(e,t){return Dn(4,2,e,t)}function fo(e,t){return Dn(4,4,e,t)}function oo(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 ho(e,t,a){a=a!=null?a.concat([e]):null,Dn(4,4,oo.bind(null,t,e),a)}function ls(){}function mo(e,t){var a=He();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Qc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function vo(e,t){var a=He();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Qc(t,l[1]))return l[0];if(l=e(),al){da(!0);try{e()}finally{da(!1)}}return a.memoizedState=[l,t],l}function ns(e,t,a){return a===void 0||(_a&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=gd(),te.lanes|=e,Na|=e,a)}function yo(e,t,a,l){return ht(a,t)?a:jl.current!==null?(e=ns(e,a,l),ht(e,t)||(we=!0),e):(_a&42)===0?(we=!0,e.memoizedState=a):(e=gd(),te.lanes|=e,Na|=e,t)}function po(e,t,a,l,n){var u=H.p;H.p=u!==0&&8>u?u:8;var o=O.T,d={};O.T=d,cs(e,!1,t,a);try{var h=n(),A=O.S;if(A!==null&&A(d,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var N=fv(h,l);Rn(e,t,N,gt(e))}else Rn(e,t,l,gt(e))}catch(C){Rn(e,t,{then:function(){},status:"rejected",reason:C},gt())}finally{H.p=u,O.T=o}}function vv(){}function is(e,t,a,l){if(e.tag!==5)throw Error(s(476));var n=go(e).queue;po(e,n,t,V,a===null?vv:function(){return _o(e),a(l)})}function go(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:V},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 _o(e){var t=go(e).next.queue;Rn(e,t,{},gt())}function us(){return $e($n)}function bo(){return He().memoizedState}function So(){return He().memoizedState}function yv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=gt();e=pa(a);var l=ga(t,e,a);l!==null&&(_t(l,t,a),Nn(l,t,a)),t={cache:Hc()},e.payload=t;return}t=t.return}}function pv(e,t,a){var l=gt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},tu(e)?Ao(t,a):(a=Nc(e,t,a,l),a!==null&&(_t(a,e,l),xo(a,t,l)))}function To(e,t,a){var l=gt();Rn(e,t,a,l)}function Rn(e,t,a,l){var n={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(tu(e))Ao(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,d=u(o,a);if(n.hasEagerState=!0,n.eagerState=d,ht(d,o))return Bi(e,t,n,0),Se===null&&ki(),!1}catch{}finally{}if(a=Nc(e,t,n,l),a!==null)return _t(a,e,l),xo(a,t,l),!0}return!1}function cs(e,t,a,l){if(l={lane:2,revertLane:qs(),action:l,hasEagerState:!1,eagerState:null,next:null},tu(e)){if(t)throw Error(s(479))}else t=Nc(e,a,l,2),t!==null&&_t(t,e,2)}function tu(e){var t=e.alternate;return e===te||t!==null&&t===te}function Ao(e,t){Ul=Wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xo(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Cr(e,a)}}var au={readContext:$e,use:Fi,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re},Eo={readContext:$e,use:Fi,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:co,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,eu(4194308,4,oo.bind(null,t,e),a)},useLayoutEffect:function(e,t){return eu(4194308,4,e,t)},useInsertionEffect:function(e,t){eu(4,2,e,t)},useMemo:function(e,t){var a=it();t=t===void 0?null:t;var l=e();if(al){da(!0);try{e()}finally{da(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=it();if(a!==void 0){var n=a(t);if(al){da(!0);try{a(t)}finally{da(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=pv.bind(null,te,e),[l.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=ts(e);var t=e.queue,a=To.bind(null,te,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ls,useDeferredValue:function(e,t){var a=it();return ns(a,e,t)},useTransition:function(){var e=ts(!1);return e=po.bind(null,te,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=te,n=it();if(oe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Se===null)throw Error(s(349));(ce&124)!==0||Vf(l,t,a)}n.memoizedState=a;var u={value:a,getSnapshot:t};return n.queue=u,co(Kf.bind(null,l,u,e),[e]),l.flags|=2048,Hl(9,Pi(),Qf.bind(null,l,u,a,t),null),a},useId:function(){var e=it(),t=Se.identifierPrefix;if(oe){var a=It,l=Ft;a=(l&~(1<<32-dt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=$i++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=ov++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:us,useFormState:ao,useActionState:ao,useOptimistic:function(e){var t=it();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=cs.bind(null,te,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ic,useCacheRefresh:function(){return it().memoizedState=yv.bind(null,te)}},No={readContext:$e,use:Fi,useCallback:mo,useContext:$e,useEffect:so,useImperativeHandle:ho,useInsertionEffect:ro,useLayoutEffect:fo,useMemo:vo,useReducer:Ii,useRef:uo,useState:function(){return Ii(ta)},useDebugValue:ls,useDeferredValue:function(e,t){var a=He();return yo(a,ye.memoizedState,e,t)},useTransition:function(){var e=Ii(ta)[0],t=He().memoizedState;return[typeof e=="boolean"?e:Cn(e),t]},useSyncExternalStore:Xf,useId:bo,useHostTransitionStatus:us,useFormState:lo,useActionState:lo,useOptimistic:function(e,t){var a=He();return $f(a,ye,e,t)},useMemoCache:Ic,useCacheRefresh:So},gv={readContext:$e,use:Fi,useCallback:mo,useContext:$e,useEffect:so,useImperativeHandle:ho,useInsertionEffect:ro,useLayoutEffect:fo,useMemo:vo,useReducer:es,useRef:uo,useState:function(){return es(ta)},useDebugValue:ls,useDeferredValue:function(e,t){var a=He();return ye===null?ns(a,e,t):yo(a,ye.memoizedState,e,t)},useTransition:function(){var e=es(ta)[0],t=He().memoizedState;return[typeof e=="boolean"?e:Cn(e),t]},useSyncExternalStore:Xf,useId:bo,useHostTransitionStatus:us,useFormState:io,useActionState:io,useOptimistic:function(e,t){var a=He();return ye!==null?$f(a,ye,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ic,useCacheRefresh:So},kl=null,jn=0;function lu(e){var t=jn;return jn+=1,kl===null&&(kl=[]),Hf(kl,e,t)}function Un(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function nu(e,t){throw t.$$typeof===W?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Oo(e){var t=e._init;return t(e._payload)}function Mo(e){function t(_,p){if(e){var S=_.deletions;S===null?(_.deletions=[p],_.flags|=16):S.push(p)}}function a(_,p){if(!e)return null;for(;p!==null;)t(_,p),p=p.sibling;return null}function l(_){for(var p=new Map;_!==null;)_.key!==null?p.set(_.key,_):p.set(_.index,_),_=_.sibling;return p}function n(_,p){return _=$t(_,p),_.index=0,_.sibling=null,_}function u(_,p,S){return _.index=S,e?(S=_.alternate,S!==null?(S=S.index,S<p?(_.flags|=67108866,p):S):(_.flags|=67108866,p)):(_.flags|=1048576,p)}function o(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function d(_,p,S,M){return p===null||p.tag!==6?(p=Mc(S,_.mode,M),p.return=_,p):(p=n(p,S),p.return=_,p)}function h(_,p,S,M){var q=S.type;return q===Ne?N(_,p,S.props.children,M,S.key):p!==null&&(p.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===rt&&Oo(q)===p.type)?(p=n(p,S.props),Un(p,S),p.return=_,p):(p=wi(S.type,S.key,S.props,null,_.mode,M),Un(p,S),p.return=_,p)}function A(_,p,S,M){return p===null||p.tag!==4||p.stateNode.containerInfo!==S.containerInfo||p.stateNode.implementation!==S.implementation?(p=zc(S,_.mode,M),p.return=_,p):(p=n(p,S.children||[]),p.return=_,p)}function N(_,p,S,M,q){return p===null||p.tag!==7?(p=Ja(S,_.mode,M,q),p.return=_,p):(p=n(p,S),p.return=_,p)}function C(_,p,S){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Mc(""+p,_.mode,S),p.return=_,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ee:return S=wi(p.type,p.key,p.props,null,_.mode,S),Un(S,p),S.return=_,S;case Ee:return p=zc(p,_.mode,S),p.return=_,p;case rt:var M=p._init;return p=M(p._payload),C(_,p,S)}if(Je(p)||Ke(p))return p=Ja(p,_.mode,S,null),p.return=_,p;if(typeof p.then=="function")return C(_,lu(p),S);if(p.$$typeof===de)return C(_,Xi(_,p),S);nu(_,p)}return null}function x(_,p,S,M){var q=p!==null?p.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return q!==null?null:d(_,p,""+S,M);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ee:return S.key===q?h(_,p,S,M):null;case Ee:return S.key===q?A(_,p,S,M):null;case rt:return q=S._init,S=q(S._payload),x(_,p,S,M)}if(Je(S)||Ke(S))return q!==null?null:N(_,p,S,M,null);if(typeof S.then=="function")return x(_,p,lu(S),M);if(S.$$typeof===de)return x(_,p,Xi(_,S),M);nu(_,S)}return null}function E(_,p,S,M,q){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return _=_.get(S)||null,d(p,_,""+M,q);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ee:return _=_.get(M.key===null?S:M.key)||null,h(p,_,M,q);case Ee:return _=_.get(M.key===null?S:M.key)||null,A(p,_,M,q);case rt:var ae=M._init;return M=ae(M._payload),E(_,p,S,M,q)}if(Je(M)||Ke(M))return _=_.get(S)||null,N(p,_,M,q,null);if(typeof M.then=="function")return E(_,p,S,lu(M),q);if(M.$$typeof===de)return E(_,p,S,Xi(p,M),q);nu(p,M)}return null}function K(_,p,S,M){for(var q=null,ae=null,L=p,X=p=0,Ye=null;L!==null&&X<S.length;X++){L.index>X?(Ye=L,L=null):Ye=L.sibling;var fe=x(_,L,S[X],M);if(fe===null){L===null&&(L=Ye);break}e&&L&&fe.alternate===null&&t(_,L),p=u(fe,p,X),ae===null?q=fe:ae.sibling=fe,ae=fe,L=Ye}if(X===S.length)return a(_,L),oe&&$a(_,X),q;if(L===null){for(;X<S.length;X++)L=C(_,S[X],M),L!==null&&(p=u(L,p,X),ae===null?q=L:ae.sibling=L,ae=L);return oe&&$a(_,X),q}for(L=l(L);X<S.length;X++)Ye=E(L,_,X,S[X],M),Ye!==null&&(e&&Ye.alternate!==null&&L.delete(Ye.key===null?X:Ye.key),p=u(Ye,p,X),ae===null?q=Ye:ae.sibling=Ye,ae=Ye);return e&&L.forEach(function(Za){return t(_,Za)}),oe&&$a(_,X),q}function G(_,p,S,M){if(S==null)throw Error(s(151));for(var q=null,ae=null,L=p,X=p=0,Ye=null,fe=S.next();L!==null&&!fe.done;X++,fe=S.next()){L.index>X?(Ye=L,L=null):Ye=L.sibling;var Za=x(_,L,fe.value,M);if(Za===null){L===null&&(L=Ye);break}e&&L&&Za.alternate===null&&t(_,L),p=u(Za,p,X),ae===null?q=Za:ae.sibling=Za,ae=Za,L=Ye}if(fe.done)return a(_,L),oe&&$a(_,X),q;if(L===null){for(;!fe.done;X++,fe=S.next())fe=C(_,fe.value,M),fe!==null&&(p=u(fe,p,X),ae===null?q=fe:ae.sibling=fe,ae=fe);return oe&&$a(_,X),q}for(L=l(L);!fe.done;X++,fe=S.next())fe=E(L,_,X,fe.value,M),fe!==null&&(e&&fe.alternate!==null&&L.delete(fe.key===null?X:fe.key),p=u(fe,p,X),ae===null?q=fe:ae.sibling=fe,ae=fe);return e&&L.forEach(function(_0){return t(_,_0)}),oe&&$a(_,X),q}function ge(_,p,S,M){if(typeof S=="object"&&S!==null&&S.type===Ne&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ee:e:{for(var q=S.key;p!==null;){if(p.key===q){if(q=S.type,q===Ne){if(p.tag===7){a(_,p.sibling),M=n(p,S.props.children),M.return=_,_=M;break e}}else if(p.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===rt&&Oo(q)===p.type){a(_,p.sibling),M=n(p,S.props),Un(M,S),M.return=_,_=M;break e}a(_,p);break}else t(_,p);p=p.sibling}S.type===Ne?(M=Ja(S.props.children,_.mode,M,S.key),M.return=_,_=M):(M=wi(S.type,S.key,S.props,null,_.mode,M),Un(M,S),M.return=_,_=M)}return o(_);case Ee:e:{for(q=S.key;p!==null;){if(p.key===q)if(p.tag===4&&p.stateNode.containerInfo===S.containerInfo&&p.stateNode.implementation===S.implementation){a(_,p.sibling),M=n(p,S.children||[]),M.return=_,_=M;break e}else{a(_,p);break}else t(_,p);p=p.sibling}M=zc(S,_.mode,M),M.return=_,_=M}return o(_);case rt:return q=S._init,S=q(S._payload),ge(_,p,S,M)}if(Je(S))return K(_,p,S,M);if(Ke(S)){if(q=Ke(S),typeof q!="function")throw Error(s(150));return S=q.call(S),G(_,p,S,M)}if(typeof S.then=="function")return ge(_,p,lu(S),M);if(S.$$typeof===de)return ge(_,p,Xi(_,S),M);nu(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,p!==null&&p.tag===6?(a(_,p.sibling),M=n(p,S),M.return=_,_=M):(a(_,p),M=Mc(S,_.mode,M),M.return=_,_=M),o(_)):a(_,p)}return function(_,p,S,M){try{jn=0;var q=ge(_,p,S,M);return kl=null,q}catch(L){if(L===xn||L===Qi)throw L;var ae=mt(29,L,null,_.mode);return ae.lanes=M,ae.return=_,ae}finally{}}}var Bl=Mo(!0),zo=Mo(!1),Ot=D(null),wt=null;function ba(e){var t=e.alternate;Z(Be,Be.current&1),Z(Ot,e),wt===null&&(t===null||jl.current!==null||t.memoizedState!==null)&&(wt=e)}function Co(e){if(e.tag===22){if(Z(Be,Be.current),Z(Ot,e),wt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(wt=e)}}else Sa()}function Sa(){Z(Be,Be.current),Z(Ot,Ot.current)}function aa(e){B(Ot),wt===e&&(wt=null),B(Be)}var Be=D(0);function iu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Fs(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function ss(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:j({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var rs={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=gt(),n=pa(l);n.payload=t,a!=null&&(n.callback=a),t=ga(e,n,l),t!==null&&(_t(t,e,l),Nn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=gt(),n=pa(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=ga(e,n,l),t!==null&&(_t(t,e,l),Nn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=gt(),l=pa(a);l.tag=2,t!=null&&(l.callback=t),t=ga(e,l,a),t!==null&&(_t(t,e,a),Nn(t,e,a))}};function Do(e,t,a,l,n,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,o):t.prototype&&t.prototype.isPureReactComponent?!yn(a,l)||!yn(n,u):!0}function Ro(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=j({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}var uu=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)};function jo(e){uu(e)}function Uo(e){console.error(e)}function Zo(e){uu(e)}function cu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ho(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function fs(e,t,a){return a=pa(a),a.tag=3,a.payload={element:null},a.callback=function(){cu(e,t)},a}function ko(e){return e=pa(e),e.tag=3,e}function Bo(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var u=l.value;e.payload=function(){return n(u)},e.callback=function(){Ho(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Ho(t,a,l),typeof n!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function _v(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Sn(t,a,n,!0),a=Ot.current,a!==null){switch(a.tag){case 13:return wt===null?Us():a.alternate===null&&De===0&&(De=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===qc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Hs(e,l,n)),!1;case 22:return a.flags|=65536,l===qc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Hs(e,l,n)),!1}throw Error(s(435,a.tag))}return Hs(e,l,n),Us(),!1}if(oe)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Rc&&(e=Error(s(422),{cause:l}),bn(At(e,a)))):(l!==Rc&&(t=Error(s(423),{cause:l}),bn(At(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=At(l,a),n=fs(e.stateNode,l,n),Yc(e,n),De!==4&&(De=2)),!1;var u=Error(s(520),{cause:l});if(u=At(u,a),Ln===null?Ln=[u]:Ln.push(u),De!==4&&(De=2),t===null)return!0;l=At(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=fs(a.stateNode,l,e),Yc(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Oa===null||!Oa.has(u))))return a.flags|=65536,n&=-n,a.lanes|=n,n=ko(n),Bo(n,e,a,l),Yc(a,n),!1}a=a.return}while(a!==null);return!1}var qo=Error(s(461)),we=!1;function Xe(e,t,a,l){t.child=e===null?zo(t,null,a,l):Bl(t,e.child,a,l)}function wo(e,t,a,l,n){a=a.render;var u=t.ref;if("ref"in l){var o={};for(var d in l)d!=="ref"&&(o[d]=l[d])}else o=l;return el(t),l=Kc(e,t,a,o,u,n),d=Jc(),e!==null&&!we?(Wc(e,t,n),la(e,t,n)):(oe&&d&&Cc(t),t.flags|=1,Xe(e,t,l,n),t.child)}function Lo(e,t,a,l,n){if(e===null){var u=a.type;return typeof u=="function"&&!Oc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,Yo(e,t,u,l,n)):(e=wi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!gs(e,n)){var o=u.memoizedProps;if(a=a.compare,a=a!==null?a:yn,a(o,l)&&e.ref===t.ref)return la(e,t,n)}return t.flags|=1,e=$t(u,l),e.ref=t.ref,e.return=t,t.child=e}function Yo(e,t,a,l,n){if(e!==null){var u=e.memoizedProps;if(yn(u,l)&&e.ref===t.ref)if(we=!1,t.pendingProps=l=u,gs(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,la(e,t,n)}return os(e,t,a,l,n)}function Go(e,t,a){var l=t.pendingProps,n=l.children,u=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=u!==null?u.baseLanes|a:a,e!==null){for(n=t.child=e.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;t.childLanes=u&~l}else t.childLanes=0,t.child=null;return Xo(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vi(t,u!==null?u.cachePool:null),u!==null?Lf(t,u):Xc(),Co(t);else return t.lanes=t.childLanes=536870912,Xo(e,t,u!==null?u.baseLanes|a:a,a)}else u!==null?(Vi(t,u.cachePool),Lf(t,u),Sa(),t.memoizedState=null):(e!==null&&Vi(t,null),Xc(),Sa());return Xe(e,t,n,a),t.child}function Xo(e,t,a,l){var n=Bc();return n=n===null?null:{parent:ke._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&Vi(t,null),Xc(),Co(t),e!==null&&Sn(e,t,l,!0),null}function su(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function os(e,t,a,l,n){return el(t),a=Kc(e,t,a,l,void 0,n),l=Jc(),e!==null&&!we?(Wc(e,t,n),la(e,t,n)):(oe&&l&&Cc(t),t.flags|=1,Xe(e,t,a,n),t.child)}function Vo(e,t,a,l,n,u){return el(t),t.updateQueue=null,a=Gf(t,l,a,n),Yf(e),l=Jc(),e!==null&&!we?(Wc(e,t,u),la(e,t,u)):(oe&&l&&Cc(t),t.flags|=1,Xe(e,t,a,u),t.child)}function Qo(e,t,a,l,n){if(el(t),t.stateNode===null){var u=Ml,o=a.contextType;typeof o=="object"&&o!==null&&(u=$e(o)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=rs,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},wc(t),o=a.contextType,u.context=typeof o=="object"&&o!==null?$e(o):Ml,u.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(ss(t,a,o,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&rs.enqueueReplaceState(u,u.state,null),Mn(t,l,u,n),On(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,h=ll(a,d);u.props=h;var A=u.context,N=a.contextType;o=Ml,typeof N=="object"&&N!==null&&(o=$e(N));var C=a.getDerivedStateFromProps;N=typeof C=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,N||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||A!==o)&&Ro(t,u,l,o),ya=!1;var x=t.memoizedState;u.state=x,Mn(t,l,u,n),On(),A=t.memoizedState,d||x!==A||ya?(typeof C=="function"&&(ss(t,a,C,l),A=t.memoizedState),(h=ya||Do(t,a,h,l,x,A,o))?(N||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=A),u.props=l,u.state=A,u.context=o,l=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Lc(e,t),o=t.memoizedProps,N=ll(a,o),u.props=N,C=t.pendingProps,x=u.context,A=a.contextType,h=Ml,typeof A=="object"&&A!==null&&(h=$e(A)),d=a.getDerivedStateFromProps,(A=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==C||x!==h)&&Ro(t,u,l,h),ya=!1,x=t.memoizedState,u.state=x,Mn(t,l,u,n),On();var E=t.memoizedState;o!==C||x!==E||ya||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof d=="function"&&(ss(t,a,d,l),E=t.memoizedState),(N=ya||Do(t,a,N,l,x,E,h)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,E,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,E,h)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=E),u.props=l,u.state=E,u.context=h,l=N):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,su(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Bl(t,e.child,null,n),t.child=Bl(t,null,a,n)):Xe(e,t,a,n),t.memoizedState=u.state,e=t.child):e=la(e,t,n),e}function Ko(e,t,a,l){return _n(),t.flags|=256,Xe(e,t,a,l),t.child}var ds={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hs(e){return{baseLanes:e,cachePool:jf()}}function ms(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Jo(e,t,a){var l=t.pendingProps,n=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?ba(t):Sa(),oe){var d=Ce,h;if(h=d){e:{for(h=d,d=qt;h.nodeType!==8;){if(!d){d=null;break e}if(h=Rt(h.nextSibling),h===null){d=null;break e}}d=h}d!==null?(t.memoizedState={dehydrated:d,treeContext:Wa!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},h=mt(18,null,null,0),h.stateNode=d,h.return=t,t.child=h,tt=t,Ce=null,h=!0):h=!1}h||Ia(t)}if(d=t.memoizedState,d!==null&&(d=d.dehydrated,d!==null))return Fs(d)?t.lanes=32:t.lanes=536870912,null;aa(t)}return d=l.children,l=l.fallback,n?(Sa(),n=t.mode,d=ru({mode:"hidden",children:d},n),l=Ja(l,n,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,n=t.child,n.memoizedState=hs(a),n.childLanes=ms(e,o,a),t.memoizedState=ds,l):(ba(t),vs(t,d))}if(h=e.memoizedState,h!==null&&(d=h.dehydrated,d!==null)){if(u)t.flags&256?(ba(t),t.flags&=-257,t=ys(e,t,a)):t.memoizedState!==null?(Sa(),t.child=e.child,t.flags|=128,t=null):(Sa(),n=l.fallback,d=t.mode,l=ru({mode:"visible",children:l.children},d),n=Ja(n,d,a,null),n.flags|=2,l.return=t,n.return=t,l.sibling=n,t.child=l,Bl(t,e.child,null,a),l=t.child,l.memoizedState=hs(a),l.childLanes=ms(e,o,a),t.memoizedState=ds,t=n);else if(ba(t),Fs(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var A=o.dgst;o=A,l=Error(s(419)),l.stack="",l.digest=o,bn({value:l,source:null,stack:null}),t=ys(e,t,a)}else if(we||Sn(e,t,a,!1),o=(a&e.childLanes)!==0,we||o){if(o=Se,o!==null&&(l=a&-a,l=(l&42)!==0?1:Iu(l),l=(l&(o.suspendedLanes|a))!==0?0:l,l!==0&&l!==h.retryLane))throw h.retryLane=l,Ol(e,l),_t(o,e,l),qo;d.data==="$?"||Us(),t=ys(e,t,a)}else d.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=h.treeContext,Ce=Rt(d.nextSibling),tt=t,oe=!0,Fa=null,qt=!1,e!==null&&(Et[Nt++]=Ft,Et[Nt++]=It,Et[Nt++]=Wa,Ft=e.id,It=e.overflow,Wa=t),t=vs(t,l.children),t.flags|=4096);return t}return n?(Sa(),n=l.fallback,d=t.mode,h=e.child,A=h.sibling,l=$t(h,{mode:"hidden",children:l.children}),l.subtreeFlags=h.subtreeFlags&65011712,A!==null?n=$t(A,n):(n=Ja(n,d,a,null),n.flags|=2),n.return=t,l.return=t,l.sibling=n,t.child=l,l=n,n=t.child,d=e.child.memoizedState,d===null?d=hs(a):(h=d.cachePool,h!==null?(A=ke._currentValue,h=h.parent!==A?{parent:A,pool:A}:h):h=jf(),d={baseLanes:d.baseLanes|a,cachePool:h}),n.memoizedState=d,n.childLanes=ms(e,o,a),t.memoizedState=ds,l):(ba(t),a=e.child,e=a.sibling,a=$t(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function vs(e,t){return t=ru({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ru(e,t){return e=mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ys(e,t,a){return Bl(t,e.child,null,a),e=vs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wo(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Uc(e.return,t,a)}function ps(e,t,a,l,n){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=a,u.tailMode=n)}function $o(e,t,a){var l=t.pendingProps,n=l.revealOrder,u=l.tail;if(Xe(e,t,l.children,a),l=Be.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wo(e,a,t);else if(e.tag===19)Wo(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}l&=1}switch(Z(Be,l),n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&iu(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),ps(t,!1,n,a,u);break;case"backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&iu(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}ps(t,!0,a,null,u);break;case"together":ps(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function la(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Na|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Sn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=$t(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=$t(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function bv(e,t,a){switch(t.tag){case 3:Ae(t,t.stateNode.containerInfo),va(t,ke,e.memoizedState.cache),_n();break;case 27:case 5:Ku(t);break;case 4:Ae(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ba(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Jo(e,t,a):(ba(t),e=la(e,t,a),e!==null?e.sibling:null);ba(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Sn(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return $o(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(Be,Be.current),l)break;return null;case 22:case 23:return t.lanes=0,Go(e,t,a);case 24:va(t,ke,e.memoizedState.cache)}return la(e,t,a)}function Fo(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!gs(e,a)&&(t.flags&128)===0)return we=!1,bv(e,t,a);we=(e.flags&131072)!==0}else we=!1,oe&&(t.flags&1048576)!==0&&Nf(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,n=l._init;if(l=n(l._payload),t.type=l,typeof l=="function")Oc(l)?(e=ll(l,e),t.tag=1,t=Qo(null,t,l,e,a)):(t.tag=0,t=os(null,t,l,e,a));else{if(l!=null){if(n=l.$$typeof,n===Oe){t.tag=11,t=wo(null,t,l,e,a);break e}else if(n===st){t.tag=14,t=Lo(null,t,l,e,a);break e}}throw t=Ya(l)||l,Error(s(306,t,""))}}return t;case 0:return os(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=ll(l,t.pendingProps),Qo(e,t,l,n,a);case 3:e:{if(Ae(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;n=u.element,Lc(e,t),Mn(t,l,null,a);var o=t.memoizedState;if(l=o.cache,va(t,ke,l),l!==u.cache&&Zc(t,[ke],a,!0),On(),l=o.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Ko(e,t,l,a);break e}else if(l!==n){n=At(Error(s(424)),t),bn(n),t=Ko(e,t,l,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(Ce=Rt(e.firstChild),tt=t,oe=!0,Fa=null,qt=!0,a=zo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(_n(),l===n){t=la(e,t,a);break e}Xe(e,t,l,a)}t=t.child}return t;case 26:return su(e,t),e===null?(a=th(t.type,null,t.pendingProps,null))?t.memoizedState=a:oe||(a=t.type,e=t.pendingProps,l=Au($.current).createElement(a),l[We]=t,l[lt]=e,Qe(l,a,e),qe(l),t.stateNode=l):t.memoizedState=th(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ku(t),e===null&&oe&&(l=t.stateNode=Id(t.type,t.pendingProps,$.current),tt=t,qt=!0,n=Ce,Ca(t.type)?(Is=n,Ce=Rt(l.firstChild)):Ce=n),Xe(e,t,t.pendingProps.children,a),su(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=l=Ce)&&(l=Jv(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,tt=t,Ce=Rt(l.firstChild),qt=!1,n=!0):n=!1),n||Ia(t)),Ku(t),n=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,l=u.children,Js(n,u)?l=null:o!==null&&Js(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Kc(e,t,dv,null,null,a),$n._currentValue=n),su(e,t),Xe(e,t,l,a),t.child;case 6:return e===null&&oe&&((e=a=Ce)&&(a=Wv(a,t.pendingProps,qt),a!==null?(t.stateNode=a,tt=t,Ce=null,e=!0):e=!1),e||Ia(t)),null;case 13:return Jo(e,t,a);case 4:return Ae(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Bl(t,null,l,a):Xe(e,t,l,a),t.child;case 11:return wo(e,t,t.type,t.pendingProps,a);case 7:return Xe(e,t,t.pendingProps,a),t.child;case 8:return Xe(e,t,t.pendingProps.children,a),t.child;case 12:return Xe(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,va(t,t.type,l.value),Xe(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,el(t),n=$e(n),l=l(n),t.flags|=1,Xe(e,t,l,a),t.child;case 14:return Lo(e,t,t.type,t.pendingProps,a);case 15:return Yo(e,t,t.type,t.pendingProps,a);case 19:return $o(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=ru(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=$t(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Go(e,t,a);case 24:return el(t),l=$e(ke),e===null?(n=Bc(),n===null&&(n=Se,u=Hc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=a),n=u),t.memoizedState={parent:l,cache:n},wc(t),va(t,ke,n)):((e.lanes&a)!==0&&(Lc(e,t),Mn(t,null,null,a),On()),n=e.memoizedState,u=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),va(t,ke,l)):(l=u.cache,va(t,ke,l),l!==n.cache&&Zc(t,[ke],a,!0))),Xe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function na(e){e.flags|=4}function Io(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!uh(t)){if(t=Ot.current,t!==null&&((ce&4194048)===ce?wt!==null:(ce&62914560)!==ce&&(ce&536870912)===0||t!==wt))throw En=qc,Uf;e.flags|=8192}}function fu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mr():536870912,e.lanes|=t,Yl|=t)}function Zn(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Sv(e,t,a){var l=t.pendingProps;switch(Dc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ea(ke),oa(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gn(t)?na(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zf())),Me(t),null;case 26:return a=t.memoizedState,e===null?(na(t),a!==null?(Me(t),Io(t,a)):(Me(t),t.flags&=-16777217)):a?a!==e.memoizedState?(na(t),Me(t),Io(t,a)):(Me(t),t.flags&=-16777217):(e.memoizedProps!==l&&na(t),Me(t),t.flags&=-16777217),null;case 27:Si(t),a=$.current;var n=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}e=Y.current,gn(t)?Of(t):(e=Id(n,l,a),t.stateNode=e,na(t))}return Me(t),null;case 5:if(Si(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}if(e=Y.current,gn(t))Of(t);else{switch(n=Au($.current),e){case 1:e=n.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=n.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=n.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=n.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?n.createElement("select",{is:l.is}):n.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?n.createElement(a,{is:l.is}):n.createElement(a)}}e[We]=t,e[lt]=l;e:for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}t.stateNode=e;e:switch(Qe(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&na(t)}}return Me(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=$.current,gn(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=tt,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[We]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Vd(e.nodeValue,a)),e||Ia(t)}else e=Au(e).createTextNode(l),e[We]=t,t.stateNode=e}return Me(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=gn(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[We]=t}else _n(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),n=!1}else n=zf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(aa(t),t):(aa(t),null)}if(aa(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool);var u=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==n&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),fu(t,t.updateQueue),Me(t),null;case 4:return oa(),e===null&&Gs(t.stateNode.containerInfo),Me(t),null;case 10:return ea(t.type),Me(t),null;case 19:if(B(Be),n=t.memoizedState,n===null)return Me(t),null;if(l=(t.flags&128)!==0,u=n.rendering,u===null)if(l)Zn(n,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=iu(e),u!==null){for(t.flags|=128,Zn(n,!1),e=u.updateQueue,t.updateQueue=e,fu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ef(a,e),a=a.sibling;return Z(Be,Be.current&1|2),t.child}e=e.sibling}n.tail!==null&&Bt()>hu&&(t.flags|=128,l=!0,Zn(n,!1),t.lanes=4194304)}else{if(!l)if(e=iu(u),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,fu(t,e),Zn(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!oe)return Me(t),null}else 2*Bt()-n.renderingStartTime>hu&&a!==536870912&&(t.flags|=128,l=!0,Zn(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Bt(),t.sibling=null,e=Be.current,Z(Be,l?e&1|2:e&1),t):(Me(t),null);case 22:case 23:return aa(t),Vc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),a=t.updateQueue,a!==null&&fu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&B(tl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ea(ke),Me(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Tv(e,t){switch(Dc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(ke),oa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Si(t),null;case 13:if(aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));_n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Be),null;case 4:return oa(),null;case 10:return ea(t.type),null;case 22:case 23:return aa(t),Vc(),e!==null&&B(tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(ke),null;case 25:return null;default:return null}}function Po(e,t){switch(Dc(t),t.tag){case 3:ea(ke),oa();break;case 26:case 27:case 5:Si(t);break;case 4:oa();break;case 13:aa(t);break;case 19:B(Be);break;case 10:ea(t.type);break;case 22:case 23:aa(t),Vc(),e!==null&&B(tl);break;case 24:ea(ke)}}function Hn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var u=a.create,o=a.inst;l=u(),o.destroy=l}a=a.next}while(a!==n)}}catch(d){be(t,t.return,d)}}function Ta(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&e)===e){var o=l.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,n=t;var h=a,A=d;try{A()}catch(N){be(n,h,N)}}}l=l.next}while(l!==u)}}catch(N){be(t,t.return,N)}}function ed(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{wf(t,a)}catch(l){be(e,e.return,l)}}}function td(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){be(e,t,l)}}function kn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){be(e,t,n)}}function Lt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){be(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){be(e,t,n)}else a.current=null}function ad(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){be(e,e.return,n)}}function _s(e,t,a){try{var l=e.stateNode;Gv(l,e.type,a,t),l[lt]=t}catch(n){be(e,e.return,n)}}function ld(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ca(e.type)||e.tag===4}function bs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ld(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&&Ca(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 Ss(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Tu));else if(l!==4&&(l===27&&Ca(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ss(e,t,a),e=e.sibling;e!==null;)Ss(e,t,a),e=e.sibling}function ou(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ca(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ou(e,t,a),e=e.sibling;e!==null;)ou(e,t,a),e=e.sibling}function nd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Qe(t,l,a),t[We]=e,t[lt]=a}catch(u){be(e,e.return,u)}}var ia=!1,je=!1,Ts=!1,id=typeof WeakSet=="function"?WeakSet:Set,Le=null;function Av(e,t){if(e=e.containerInfo,Qs=zu,e=vf(e),bc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var o=0,d=-1,h=-1,A=0,N=0,C=e,x=null;t:for(;;){for(var E;C!==a||n!==0&&C.nodeType!==3||(d=o+n),C!==u||l!==0&&C.nodeType!==3||(h=o+l),C.nodeType===3&&(o+=C.nodeValue.length),(E=C.firstChild)!==null;)x=C,C=E;for(;;){if(C===e)break t;if(x===a&&++A===n&&(d=o),x===u&&++N===l&&(h=o),(E=C.nextSibling)!==null)break;C=x,x=C.parentNode}C=E}a=d===-1||h===-1?null:{start:d,end:h}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ks={focusedElem:e,selectionRange:a},zu=!1,Le=t;Le!==null;)if(t=Le,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Le=e;else for(;Le!==null;){switch(t=Le,u=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,n=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var K=ll(a.type,n,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(K,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(G){be(a,a.return,G)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)$s(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$s(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Le=e;break}Le=t.return}}function ud(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Aa(e,a),l&4&&Hn(5,a);break;case 1:if(Aa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){be(a,a.return,o)}else{var n=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){be(a,a.return,o)}}l&64&&ed(a),l&512&&kn(a,a.return);break;case 3:if(Aa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{wf(e,t)}catch(o){be(a,a.return,o)}}break;case 27:t===null&&l&4&&nd(a);case 26:case 5:Aa(e,a),t===null&&l&4&&ad(a),l&512&&kn(a,a.return);break;case 12:Aa(e,a);break;case 13:Aa(e,a),l&4&&rd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Rv.bind(null,a),$v(e,a))));break;case 22:if(l=a.memoizedState!==null||ia,!l){t=t!==null&&t.memoizedState!==null||je,n=ia;var u=je;ia=l,(je=t)&&!u?xa(e,a,(a.subtreeFlags&8772)!==0):Aa(e,a),ia=n,je=u}break;case 30:break;default:Aa(e,a)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&tc(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,ut=!1;function ua(e,t,a){for(a=a.child;a!==null;)sd(e,t,a),a=a.sibling}function sd(e,t,a){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(ln,a)}catch{}switch(a.tag){case 26:je||Lt(a,t),ua(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:je||Lt(a,t);var l=xe,n=ut;Ca(a.type)&&(xe=a.stateNode,ut=!1),ua(e,t,a),Qn(a.stateNode),xe=l,ut=n;break;case 5:je||Lt(a,t);case 6:if(l=xe,n=ut,xe=null,ua(e,t,a),xe=l,ut=n,xe!==null)if(ut)try{(xe.nodeType===9?xe.body:xe.nodeName==="HTML"?xe.ownerDocument.body:xe).removeChild(a.stateNode)}catch(u){be(a,t,u)}else try{xe.removeChild(a.stateNode)}catch(u){be(a,t,u)}break;case 18:xe!==null&&(ut?(e=xe,$d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ei(e)):$d(xe,a.stateNode));break;case 4:l=xe,n=ut,xe=a.stateNode.containerInfo,ut=!0,ua(e,t,a),xe=l,ut=n;break;case 0:case 11:case 14:case 15:je||Ta(2,a,t),je||Ta(4,a,t),ua(e,t,a);break;case 1:je||(Lt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&td(a,t,l)),ua(e,t,a);break;case 21:ua(e,t,a);break;case 22:je=(l=je)||a.memoizedState!==null,ua(e,t,a),je=l;break;default:ua(e,t,a)}}function rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ei(e)}catch(a){be(t,t.return,a)}}function xv(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new id),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new id),t;default:throw Error(s(435,e.tag))}}function As(e,t){var a=xv(e);t.forEach(function(l){var n=jv.bind(null,e,l);a.has(l)||(a.add(l),l.then(n,n))})}function vt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],u=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(Ca(d.type)){xe=d.stateNode,ut=!1;break e}break;case 5:xe=d.stateNode,ut=!1;break e;case 3:case 4:xe=d.stateNode.containerInfo,ut=!0;break e}d=d.return}if(xe===null)throw Error(s(160));sd(u,o,n),xe=null,ut=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}var Dt=null;function fd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),yt(e),l&4&&(Ta(3,e,e.return),Hn(3,e),Ta(5,e,e.return));break;case 1:vt(t,e),yt(e),l&512&&(je||a===null||Lt(a,a.return)),l&64&&ia&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Dt;if(vt(t,e),yt(e),l&512&&(je||a===null||Lt(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":u=n.getElementsByTagName("title")[0],(!u||u[cn]||u[We]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(l),n.head.insertBefore(u,n.querySelector("head > title"))),Qe(u,l,a),u[We]=e,qe(u),l=u;break e;case"link":var o=nh("link","href",n).get(l+(a.href||""));if(o){for(var d=0;d<o.length;d++)if(u=o[d],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(d,1);break t}}u=n.createElement(l),Qe(u,l,a),n.head.appendChild(u);break;case"meta":if(o=nh("meta","content",n).get(l+(a.content||""))){for(d=0;d<o.length;d++)if(u=o[d],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(d,1);break t}}u=n.createElement(l),Qe(u,l,a),n.head.appendChild(u);break;default:throw Error(s(468,l))}u[We]=e,qe(u),l=u}e.stateNode=l}else ih(n,e.type,e.stateNode);else e.stateNode=lh(n,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?ih(n,e.type,e.stateNode):lh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&_s(e,e.memoizedProps,a.memoizedProps)}break;case 27:vt(t,e),yt(e),l&512&&(je||a===null||Lt(a,a.return)),a!==null&&l&4&&_s(e,e.memoizedProps,a.memoizedProps);break;case 5:if(vt(t,e),yt(e),l&512&&(je||a===null||Lt(a,a.return)),e.flags&32){n=e.stateNode;try{bl(n,"")}catch(E){be(e,e.return,E)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,_s(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Ts=!0);break;case 6:if(vt(t,e),yt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(E){be(e,e.return,E)}}break;case 3:if(Nu=null,n=Dt,Dt=xu(t.containerInfo),vt(t,e),Dt=n,yt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{ei(t.containerInfo)}catch(E){be(e,e.return,E)}Ts&&(Ts=!1,od(e));break;case 4:l=Dt,Dt=xu(e.stateNode.containerInfo),vt(t,e),yt(e),Dt=l;break;case 12:vt(t,e),yt(e);break;case 13:vt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(zs=Bt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,As(e,l)));break;case 22:n=e.memoizedState!==null;var h=a!==null&&a.memoizedState!==null,A=ia,N=je;if(ia=A||n,je=N||h,vt(t,e),je=N,ia=A,yt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||h||ia||je||nl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){h=a=t;try{if(u=h.stateNode,n)o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=h.stateNode;var C=h.memoizedProps.style,x=C!=null&&C.hasOwnProperty("display")?C.display:null;d.style.display=x==null||typeof x=="boolean"?"":(""+x).trim()}}catch(E){be(h,h.return,E)}}}else if(t.tag===6){if(a===null){h=t;try{h.stateNode.nodeValue=n?"":h.memoizedProps}catch(E){be(h,h.return,E)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,As(e,a))));break;case 19:vt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,As(e,l)));break;case 30:break;case 21:break;default:vt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(ld(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var n=a.stateNode,u=bs(e);ou(e,u,n);break;case 5:var o=a.stateNode;a.flags&32&&(bl(o,""),a.flags&=-33);var d=bs(e);ou(e,d,o);break;case 3:case 4:var h=a.stateNode.containerInfo,A=bs(e);Ss(e,A,h);break;default:throw Error(s(161))}}catch(N){be(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function od(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;od(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Aa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ud(e,t.alternate,t),t=t.sibling}function nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ta(4,t,t.return),nl(t);break;case 1:Lt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&td(t,t.return,a),nl(t);break;case 27:Qn(t.stateNode);case 26:case 5:Lt(t,t.return),nl(t);break;case 22:t.memoizedState===null&&nl(t);break;case 30:nl(t);break;default:nl(t)}e=e.sibling}}function xa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,u=t,o=u.flags;switch(u.tag){case 0:case 11:case 15:xa(n,u,a),Hn(4,u);break;case 1:if(xa(n,u,a),l=u,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){be(l,l.return,A)}if(l=u,n=l.updateQueue,n!==null){var d=l.stateNode;try{var h=n.shared.hiddenCallbacks;if(h!==null)for(n.shared.hiddenCallbacks=null,n=0;n<h.length;n++)qf(h[n],d)}catch(A){be(l,l.return,A)}}a&&o&64&&ed(u),kn(u,u.return);break;case 27:nd(u);case 26:case 5:xa(n,u,a),a&&l===null&&o&4&&ad(u),kn(u,u.return);break;case 12:xa(n,u,a);break;case 13:xa(n,u,a),a&&o&4&&rd(n,u);break;case 22:u.memoizedState===null&&xa(n,u,a),kn(u,u.return);break;case 30:break;default:xa(n,u,a)}t=t.sibling}}function xs(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&&Tn(a))}function Es(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tn(e))}function Yt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dd(e,t,a,l),t=t.sibling}function dd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,a,l),n&2048&&Hn(9,t);break;case 1:Yt(e,t,a,l);break;case 3:Yt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tn(e)));break;case 12:if(n&2048){Yt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,o=u.id,d=u.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(h){be(t,t.return,h)}}else Yt(e,t,a,l);break;case 13:Yt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,o=t.alternate,t.memoizedState!==null?u._visibility&2?Yt(e,t,a,l):Bn(e,t):u._visibility&2?Yt(e,t,a,l):(u._visibility|=2,ql(e,t,a,l,(t.subtreeFlags&10256)!==0)),n&2048&&xs(o,t);break;case 24:Yt(e,t,a,l),n&2048&&Es(t.alternate,t);break;default:Yt(e,t,a,l)}}function ql(e,t,a,l,n){for(n=n&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var u=e,o=t,d=a,h=l,A=o.flags;switch(o.tag){case 0:case 11:case 15:ql(u,o,d,h,n),Hn(8,o);break;case 23:break;case 22:var N=o.stateNode;o.memoizedState!==null?N._visibility&2?ql(u,o,d,h,n):Bn(u,o):(N._visibility|=2,ql(u,o,d,h,n)),n&&A&2048&&xs(o.alternate,o);break;case 24:ql(u,o,d,h,n),n&&A&2048&&Es(o.alternate,o);break;default:ql(u,o,d,h,n)}t=t.sibling}}function Bn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Bn(a,l),n&2048&&xs(l.alternate,l);break;case 24:Bn(a,l),n&2048&&Es(l.alternate,l);break;default:Bn(a,l)}t=t.sibling}}var qn=8192;function wl(e){if(e.subtreeFlags&qn)for(e=e.child;e!==null;)hd(e),e=e.sibling}function hd(e){switch(e.tag){case 26:wl(e),e.flags&qn&&e.memoizedState!==null&&r0(Dt,e.memoizedState,e.memoizedProps);break;case 5:wl(e);break;case 3:case 4:var t=Dt;Dt=xu(e.stateNode.containerInfo),wl(e),Dt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=qn,qn=16777216,wl(e),qn=t):wl(e));break;default:wl(e)}}function md(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 wn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Le=l,yd(l,e)}md(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vd(e),e=e.sibling}function vd(e){switch(e.tag){case 0:case 11:case 15:wn(e),e.flags&2048&&Ta(9,e,e.return);break;case 3:wn(e);break;case 12:wn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,du(e)):wn(e);break;default:wn(e)}}function du(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Le=l,yd(l,e)}md(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ta(8,t,t.return),du(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,du(t));break;default:du(t)}e=e.sibling}}function yd(e,t){for(;Le!==null;){var a=Le;switch(a.tag){case 0:case 11:case 15:Ta(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Tn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Le=l;else e:for(a=e;Le!==null;){l=Le;var n=l.sibling,u=l.return;if(cd(l),l===a){Le=null;break e}if(n!==null){n.return=u,Le=n;break e}Le=u}}}var Ev={getCacheForType:function(e){var t=$e(ke),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Nv=typeof WeakMap=="function"?WeakMap:Map,he=0,Se=null,ne=null,ce=0,me=0,pt=null,Ea=!1,Ll=!1,Ns=!1,ca=0,De=0,Na=0,il=0,Os=0,Mt=0,Yl=0,Ln=null,ct=null,Ms=!1,zs=0,hu=1/0,mu=null,Oa=null,Ve=0,Ma=null,Gl=null,Xl=0,Cs=0,Ds=null,pd=null,Yn=0,Rs=null;function gt(){if((he&2)!==0&&ce!==0)return ce&-ce;if(O.T!==null){var e=Dl;return e!==0?e:qs()}return Dr()}function gd(){Mt===0&&(Mt=(ce&536870912)===0||oe?Or():536870912);var e=Ot.current;return e!==null&&(e.flags|=32),Mt}function _t(e,t,a){(e===Se&&(me===2||me===9)||e.cancelPendingCommit!==null)&&(Vl(e,0),za(e,ce,Mt,!1)),un(e,a),((he&2)===0||e!==Se)&&(e===Se&&((he&2)===0&&(il|=a),De===4&&za(e,ce,Mt,!1)),Gt(e))}function _d(e,t,a){if((he&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||nn(e,t),n=l?zv(e,t):Zs(e,t,!0),u=l;do{if(n===0){Ll&&!l&&za(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Ov(a)){n=Zs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var d=e;n=Ln;var h=d.current.memoizedState.isDehydrated;if(h&&(Vl(d,o).flags|=256),o=Zs(d,o,!1),o!==2){if(Ns&&!h){d.errorRecoveryDisabledLanes|=u,il|=u,n=4;break e}u=ct,ct=n,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}n=o}if(u=!1,n!==2)continue}}if(n===1){Vl(e,0),za(e,t,0,!0);break}e:{switch(l=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:za(l,t,Mt,!Ea);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=zs+300-Bt(),10<n)){if(za(l,t,Mt,!Ea),Ei(l,0,!0)!==0)break e;l.timeoutHandle=Jd(bd.bind(null,l,a,ct,mu,Ms,t,Mt,il,Yl,Ea,u,2,-0,0),n);break e}bd(l,a,ct,mu,Ms,t,Mt,il,Yl,Ea,u,0,-0,0)}}break}while(!0);Gt(e)}function bd(e,t,a,l,n,u,o,d,h,A,N,C,x,E){if(e.timeoutHandle=-1,C=t.subtreeFlags,(C&8192||(C&16785408)===16785408)&&(Wn={stylesheets:null,count:0,unsuspend:s0},hd(t),C=f0(),C!==null)){e.cancelPendingCommit=C(Od.bind(null,e,t,u,a,l,n,o,d,h,N,1,x,E)),za(e,u,o,!A);return}Od(e,t,u,a,l,n,o,d,h)}function Ov(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],u=n.getSnapshot;n=n.value;try{if(!ht(u(),n))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 za(e,t,a,l){t&=~Os,t&=~il,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var u=31-dt(n),o=1<<u;l[u]=-1,n&=~o}a!==0&&zr(e,a,t)}function vu(){return(he&6)===0?(Gn(0),!1):!0}function js(){if(ne!==null){if(me===0)var e=ne.return;else e=ne,Pt=Pa=null,$c(e),kl=null,jn=0,e=ne;for(;e!==null;)Po(e.alternate,e),e=e.return;ne=null}}function Vl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Vv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),js(),Se=e,ne=a=$t(e.current,null),ce=t,me=0,pt=null,Ea=!1,Ll=nn(e,t),Ns=!1,Yl=Mt=Os=il=Na=De=0,ct=Ln=null,Ms=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-dt(l),u=1<<n;t|=e[n],l&=~u}return ca=t,ki(),a}function Sd(e,t){te=null,O.H=au,t===xn||t===Qi?(t=kf(),me=3):t===Uf?(t=kf(),me=4):me=t===qo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,ne===null&&(De=1,cu(e,At(t,e.current)))}function Td(){var e=O.H;return O.H=au,e===null?au:e}function Ad(){var e=O.A;return O.A=Ev,e}function Us(){De=4,Ea||(ce&4194048)!==ce&&Ot.current!==null||(Ll=!0),(Na&134217727)===0&&(il&134217727)===0||Se===null||za(Se,ce,Mt,!1)}function Zs(e,t,a){var l=he;he|=2;var n=Td(),u=Ad();(Se!==e||ce!==t)&&(mu=null,Vl(e,t)),t=!1;var o=De;e:do try{if(me!==0&&ne!==null){var d=ne,h=pt;switch(me){case 8:js(),o=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var A=me;if(me=0,pt=null,Ql(e,d,h,A),a&&Ll){o=0;break e}break;default:A=me,me=0,pt=null,Ql(e,d,h,A)}}Mv(),o=De;break}catch(N){Sd(e,N)}while(!0);return t&&e.shellSuspendCounter++,Pt=Pa=null,he=l,O.H=n,O.A=u,ne===null&&(Se=null,ce=0,ki()),o}function Mv(){for(;ne!==null;)xd(ne)}function zv(e,t){var a=he;he|=2;var l=Td(),n=Ad();Se!==e||ce!==t?(mu=null,hu=Bt()+500,Vl(e,t)):Ll=nn(e,t);e:do try{if(me!==0&&ne!==null){t=ne;var u=pt;t:switch(me){case 1:me=0,pt=null,Ql(e,t,u,1);break;case 2:case 9:if(Zf(u)){me=0,pt=null,Ed(t);break}t=function(){me!==2&&me!==9||Se!==e||(me=7),Gt(e)},u.then(t,t);break e;case 3:me=7;break e;case 4:me=5;break e;case 7:Zf(u)?(me=0,pt=null,Ed(t)):(me=0,pt=null,Ql(e,t,u,7));break;case 5:var o=null;switch(ne.tag){case 26:o=ne.memoizedState;case 5:case 27:var d=ne;if(!o||uh(o)){me=0,pt=null;var h=d.sibling;if(h!==null)ne=h;else{var A=d.return;A!==null?(ne=A,yu(A)):ne=null}break t}}me=0,pt=null,Ql(e,t,u,5);break;case 6:me=0,pt=null,Ql(e,t,u,6);break;case 8:js(),De=6;break e;default:throw Error(s(462))}}Cv();break}catch(N){Sd(e,N)}while(!0);return Pt=Pa=null,O.H=l,O.A=n,he=a,ne!==null?0:(Se=null,ce=0,ki(),De)}function Cv(){for(;ne!==null&&!Ih();)xd(ne)}function xd(e){var t=Fo(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?yu(e):ne=t}function Ed(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Vo(a,t,t.pendingProps,t.type,void 0,ce);break;case 11:t=Vo(a,t,t.pendingProps,t.type.render,t.ref,ce);break;case 5:$c(t);default:Po(a,t),t=ne=Ef(t,ca),t=Fo(a,t,ca)}e.memoizedProps=e.pendingProps,t===null?yu(e):ne=t}function Ql(e,t,a,l){Pt=Pa=null,$c(t),kl=null,jn=0;var n=t.return;try{if(_v(e,n,t,a,ce)){De=1,cu(e,At(a,e.current)),ne=null;return}}catch(u){if(n!==null)throw ne=n,u;De=1,cu(e,At(a,e.current)),ne=null;return}t.flags&32768?(oe||l===1?e=!0:Ll||(ce&536870912)!==0?e=!1:(Ea=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ot.current,l!==null&&l.tag===13&&(l.flags|=16384))),Nd(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){Nd(t,Ea);return}e=t.return;var a=Sv(t.alternate,t,ca);if(a!==null){ne=a;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);De===0&&(De=5)}function Nd(e,t){do{var a=Tv(e.alternate,e);if(a!==null){a.flags&=32767,ne=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ne=e;return}ne=e=a}while(e!==null);De=6,ne=null}function Od(e,t,a,l,n,u,o,d,h){e.cancelPendingCommit=null;do pu();while(Ve!==0);if((he&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Ec,sm(e,a,u,o,d,h),e===Se&&(ne=Se=null,ce=0),Gl=t,Ma=e,Xl=a,Cs=u,Ds=n,pd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uv(Ti,function(){return Rd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,n=H.p,H.p=2,o=he,he|=4;try{Av(e,t,a)}finally{he=o,H.p=n,O.T=l}}Ve=1,Md(),zd(),Cd()}}function Md(){if(Ve===1){Ve=0;var e=Ma,t=Gl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var l=H.p;H.p=2;var n=he;he|=4;try{fd(t,e);var u=Ks,o=vf(e.containerInfo),d=u.focusedElem,h=u.selectionRange;if(o!==d&&d&&d.ownerDocument&&mf(d.ownerDocument.documentElement,d)){if(h!==null&&bc(d)){var A=h.start,N=h.end;if(N===void 0&&(N=A),"selectionStart"in d)d.selectionStart=A,d.selectionEnd=Math.min(N,d.value.length);else{var C=d.ownerDocument||document,x=C&&C.defaultView||window;if(x.getSelection){var E=x.getSelection(),K=d.textContent.length,G=Math.min(h.start,K),ge=h.end===void 0?G:Math.min(h.end,K);!E.extend&&G>ge&&(o=ge,ge=G,G=o);var _=hf(d,G),p=hf(d,ge);if(_&&p&&(E.rangeCount!==1||E.anchorNode!==_.node||E.anchorOffset!==_.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)){var S=C.createRange();S.setStart(_.node,_.offset),E.removeAllRanges(),G>ge?(E.addRange(S),E.extend(p.node,p.offset)):(S.setEnd(p.node,p.offset),E.addRange(S))}}}}for(C=[],E=d;E=E.parentNode;)E.nodeType===1&&C.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<C.length;d++){var M=C[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}zu=!!Qs,Ks=Qs=null}finally{he=n,H.p=l,O.T=a}}e.current=t,Ve=2}}function zd(){if(Ve===2){Ve=0;var e=Ma,t=Gl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var l=H.p;H.p=2;var n=he;he|=4;try{ud(e,t.alternate,t)}finally{he=n,H.p=l,O.T=a}}Ve=3}}function Cd(){if(Ve===4||Ve===3){Ve=0,Ph();var e=Ma,t=Gl,a=Xl,l=pd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ve=5:(Ve=0,Gl=Ma=null,Dd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Oa=null),Pu(a),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(ln,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,n=H.p,H.p=2,O.T=null;try{for(var u=e.onRecoverableError,o=0;o<l.length;o++){var d=l[o];u(d.value,{componentStack:d.stack})}}finally{O.T=t,H.p=n}}(Xl&3)!==0&&pu(),Gt(e),n=e.pendingLanes,(a&4194090)!==0&&(n&42)!==0?e===Rs?Yn++:(Yn=0,Rs=e):Yn=0,Gn(0)}}function Dd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tn(t)))}function pu(e){return Md(),zd(),Cd(),Rd()}function Rd(){if(Ve!==5)return!1;var e=Ma,t=Cs;Cs=0;var a=Pu(Xl),l=O.T,n=H.p;try{H.p=32>a?32:a,O.T=null,a=Ds,Ds=null;var u=Ma,o=Xl;if(Ve=0,Gl=Ma=null,Xl=0,(he&6)!==0)throw Error(s(331));var d=he;if(he|=4,vd(u.current),dd(u,u.current,o,a),he=d,Gn(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(ln,u)}catch{}return!0}finally{H.p=n,O.T=l,Dd(e,t)}}function jd(e,t,a){t=At(a,t),t=fs(e.stateNode,t,2),e=ga(e,t,2),e!==null&&(un(e,2),Gt(e))}function be(e,t,a){if(e.tag===3)jd(e,e,a);else for(;t!==null;){if(t.tag===3){jd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Oa===null||!Oa.has(l))){e=At(a,e),a=ko(2),l=ga(t,a,2),l!==null&&(Bo(a,l,t,e),un(l,2),Gt(l));break}}t=t.return}}function Hs(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Nv;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Ns=!0,n.add(a),e=Dv.bind(null,e,t,a),t.then(e,e))}function Dv(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Se===e&&(ce&a)===a&&(De===4||De===3&&(ce&62914560)===ce&&300>Bt()-zs?(he&2)===0&&Vl(e,0):Os|=a,Yl===ce&&(Yl=0)),Gt(e)}function Ud(e,t){t===0&&(t=Mr()),e=Ol(e,t),e!==null&&(un(e,t),Gt(e))}function Rv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ud(e,a)}function jv(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Ud(e,a)}function Uv(e,t){return Wu(e,t)}var gu=null,Kl=null,ks=!1,_u=!1,Bs=!1,ul=0;function Gt(e){e!==Kl&&e.next===null&&(Kl===null?gu=Kl=e:Kl=Kl.next=e),_u=!0,ks||(ks=!0,Hv())}function Gn(e,t){if(!Bs&&_u){Bs=!0;do for(var a=!1,l=gu;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var u=0;else{var o=l.suspendedLanes,d=l.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=n&~(o&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Bd(l,u))}else u=ce,u=Ei(l,l===Se?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||nn(l,u)||(a=!0,Bd(l,u));l=l.next}while(a);Bs=!1}}function Zv(){Zd()}function Zd(){_u=ks=!1;var e=0;ul!==0&&(Xv()&&(e=ul),ul=0);for(var t=Bt(),a=null,l=gu;l!==null;){var n=l.next,u=Hd(l,t);u===0?(l.next=null,a===null?gu=n:a.next=n,n===null&&(Kl=a)):(a=l,(e!==0||(u&3)!==0)&&(_u=!0)),l=n}Gn(e)}function Hd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-dt(u),d=1<<o,h=n[o];h===-1?((d&a)===0||(d&l)!==0)&&(n[o]=cm(d,t)):h<=t&&(e.expiredLanes|=d),u&=~d}if(t=Se,a=ce,a=Ei(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(me===2||me===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&$u(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&$u(l),Pu(a)){case 2:case 8:a=Er;break;case 32:a=Ti;break;case 268435456:a=Nr;break;default:a=Ti}return l=kd.bind(null,e),a=Wu(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&$u(l),e.callbackPriority=2,e.callbackNode=null,2}function kd(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(pu()&&e.callbackNode!==a)return null;var l=ce;return l=Ei(e,e===Se?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(_d(e,l,t),Hd(e,Bt()),e.callbackNode!=null&&e.callbackNode===a?kd.bind(null,e):null)}function Bd(e,t){if(pu())return null;_d(e,t,!0)}function Hv(){Qv(function(){(he&6)!==0?Wu(xr,Zv):Zd()})}function qs(){return ul===0&&(ul=Or()),ul}function qd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function wd(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 kv(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var u=qd((n[lt]||null).action),o=l.submitter;o&&(t=(t=o[lt]||null)?qd(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var d=new Ui("action","action",null,l,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ul!==0){var h=o?wd(n,o):new FormData(n);is(a,{pending:!0,data:h,method:n.method,action:u},null,h)}}else typeof u=="function"&&(d.preventDefault(),h=o?wd(n,o):new FormData(n),is(a,{pending:!0,data:h,method:n.method,action:u},u,h))},currentTarget:n}]})}}for(var ws=0;ws<xc.length;ws++){var Ls=xc[ws],Bv=Ls.toLowerCase(),qv=Ls[0].toUpperCase()+Ls.slice(1);Ct(Bv,"on"+qv)}Ct(gf,"onAnimationEnd"),Ct(_f,"onAnimationIteration"),Ct(bf,"onAnimationStart"),Ct("dblclick","onDoubleClick"),Ct("focusin","onFocus"),Ct("focusout","onBlur"),Ct(av,"onTransitionRun"),Ct(lv,"onTransitionStart"),Ct(nv,"onTransitionCancel"),Ct(Sf,"onTransitionEnd"),pl("onMouseEnter",["mouseout","mouseover"]),pl("onMouseLeave",["mouseout","mouseover"]),pl("onPointerEnter",["pointerout","pointerover"]),pl("onPointerLeave",["pointerout","pointerover"]),Xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xn="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(" "),wv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xn));function Ld(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var o=l.length-1;0<=o;o--){var d=l[o],h=d.instance,A=d.currentTarget;if(d=d.listener,h!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=A;try{u(n)}catch(N){uu(N)}n.currentTarget=null,u=h}else for(o=0;o<l.length;o++){if(d=l[o],h=d.instance,A=d.currentTarget,d=d.listener,h!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=A;try{u(n)}catch(N){uu(N)}n.currentTarget=null,u=h}}}}function ie(e,t){var a=t[ec];a===void 0&&(a=t[ec]=new Set);var l=e+"__bubble";a.has(l)||(Yd(t,e,2,!1),a.add(l))}function Ys(e,t,a){var l=0;t&&(l|=4),Yd(a,e,l,t)}var bu="_reactListening"+Math.random().toString(36).slice(2);function Gs(e){if(!e[bu]){e[bu]=!0,jr.forEach(function(a){a!=="selectionchange"&&(wv.has(a)||Ys(a,!1,e),Ys(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bu]||(t[bu]=!0,Ys("selectionchange",!1,t))}}function Yd(e,t,a,l){switch(dh(t)){case 2:var n=h0;break;case 8:n=m0;break;default:n=lr}a=n.bind(null,t,a,e),n=void 0,!oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Xs(e,t,a,l,n){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var d=l.stateNode.containerInfo;if(d===n)break;if(o===4)for(o=l.return;o!==null;){var h=o.tag;if((h===3||h===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;d!==null;){if(o=ml(d),o===null)return;if(h=o.tag,h===5||h===6||h===26||h===27){l=u=o;continue e}d=d.parentNode}}l=l.return}Kr(function(){var A=u,N=rc(a),C=[];e:{var x=Tf.get(e);if(x!==void 0){var E=Ui,K=e;switch(e){case"keypress":if(Ri(a)===0)break e;case"keydown":case"keyup":E=Um;break;case"focusin":K="focus",E=vc;break;case"focusout":K="blur",E=vc;break;case"beforeblur":case"afterblur":E=vc;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":E=$r;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Tm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=km;break;case gf:case _f:case bf:E=Em;break;case Sf:E=qm;break;case"scroll":case"scrollend":E=bm;break;case"wheel":E=Lm;break;case"copy":case"cut":case"paste":E=Om;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Ir;break;case"toggle":case"beforetoggle":E=Gm}var G=(t&4)!==0,ge=!G&&(e==="scroll"||e==="scrollend"),_=G?x!==null?x+"Capture":null:x;G=[];for(var p=A,S;p!==null;){var M=p;if(S=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||S===null||_===null||(M=rn(p,_),M!=null&&G.push(Vn(p,M,S))),ge)break;p=p.return}0<G.length&&(x=new E(x,K,null,a,N),C.push({event:x,listeners:G}))}}if((t&7)===0){e:{if(x=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",x&&a!==sc&&(K=a.relatedTarget||a.fromElement)&&(ml(K)||K[hl]))break e;if((E||x)&&(x=N.window===N?N:(x=N.ownerDocument)?x.defaultView||x.parentWindow:window,E?(K=a.relatedTarget||a.toElement,E=A,K=K?ml(K):null,K!==null&&(ge=m(K),G=K.tag,K!==ge||G!==5&&G!==27&&G!==6)&&(K=null)):(E=null,K=A),E!==K)){if(G=$r,M="onMouseLeave",_="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(G=Ir,M="onPointerLeave",_="onPointerEnter",p="pointer"),ge=E==null?x:sn(E),S=K==null?x:sn(K),x=new G(M,p+"leave",E,a,N),x.target=ge,x.relatedTarget=S,M=null,ml(N)===A&&(G=new G(_,p+"enter",K,a,N),G.target=S,G.relatedTarget=ge,M=G),ge=M,E&&K)t:{for(G=E,_=K,p=0,S=G;S;S=Jl(S))p++;for(S=0,M=_;M;M=Jl(M))S++;for(;0<p-S;)G=Jl(G),p--;for(;0<S-p;)_=Jl(_),S--;for(;p--;){if(G===_||_!==null&&G===_.alternate)break t;G=Jl(G),_=Jl(_)}G=null}else G=null;E!==null&&Gd(C,x,E,G,!1),K!==null&&ge!==null&&Gd(C,ge,K,G,!0)}}e:{if(x=A?sn(A):window,E=x.nodeName&&x.nodeName.toLowerCase(),E==="select"||E==="input"&&x.type==="file")var q=cf;else if(nf(x))if(sf)q=Pm;else{q=Fm;var ae=$m}else E=x.nodeName,!E||E.toLowerCase()!=="input"||x.type!=="checkbox"&&x.type!=="radio"?A&&cc(A.elementType)&&(q=cf):q=Im;if(q&&(q=q(e,A))){uf(C,q,a,N);break e}ae&&ae(e,x,A),e==="focusout"&&A&&x.type==="number"&&A.memoizedProps.value!=null&&uc(x,"number",x.value)}switch(ae=A?sn(A):window,e){case"focusin":(nf(ae)||ae.contentEditable==="true")&&(xl=ae,Sc=A,pn=null);break;case"focusout":pn=Sc=xl=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,yf(C,a,N);break;case"selectionchange":if(tv)break;case"keydown":case"keyup":yf(C,a,N)}var L;if(pc)e:{switch(e){case"compositionstart":var X="onCompositionStart";break e;case"compositionend":X="onCompositionEnd";break e;case"compositionupdate":X="onCompositionUpdate";break e}X=void 0}else Al?af(e,a)&&(X="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(X="onCompositionStart");X&&(Pr&&a.locale!=="ko"&&(Al||X!=="onCompositionStart"?X==="onCompositionEnd"&&Al&&(L=Jr()):(ma=N,dc="value"in ma?ma.value:ma.textContent,Al=!0)),ae=Su(A,X),0<ae.length&&(X=new Fr(X,e,null,a,N),C.push({event:X,listeners:ae}),L?X.data=L:(L=lf(a),L!==null&&(X.data=L)))),(L=Vm?Qm(e,a):Km(e,a))&&(X=Su(A,"onBeforeInput"),0<X.length&&(ae=new Fr("onBeforeInput","beforeinput",null,a,N),C.push({event:ae,listeners:X}),ae.data=L)),kv(C,e,A,a,N)}Ld(C,t)})}function Vn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Su(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=rn(e,a),n!=null&&l.unshift(Vn(e,n,u)),n=rn(e,t),n!=null&&l.push(Vn(e,n,u))),e.tag===3)return l;e=e.return}return[]}function Jl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gd(e,t,a,l,n){for(var u=t._reactName,o=[];a!==null&&a!==l;){var d=a,h=d.alternate,A=d.stateNode;if(d=d.tag,h!==null&&h===l)break;d!==5&&d!==26&&d!==27||A===null||(h=A,n?(A=rn(a,u),A!=null&&o.unshift(Vn(a,A,h))):n||(A=rn(a,u),A!=null&&o.push(Vn(a,A,h)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var Lv=/\r\n?/g,Yv=/\u0000|\uFFFD/g;function Xd(e){return(typeof e=="string"?e:""+e).replace(Lv,`
49
- `).replace(Yv,"")}function Vd(e,t){return t=Xd(t),Xd(e)===t}function Tu(){}function pe(e,t,a,l,n,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||bl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&bl(e,""+l);break;case"className":Oi(e,"class",l);break;case"tabIndex":Oi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(e,a,l);break;case"style":Vr(e,l,u);break;case"data":if(t!=="object"){Oi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ci(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&pe(e,t,"name",n.name,n,null),pe(e,t,"formEncType",n.formEncType,n,null),pe(e,t,"formMethod",n.formMethod,n,null),pe(e,t,"formTarget",n.formTarget,n,null)):(pe(e,t,"encType",n.encType,n,null),pe(e,t,"method",n.method,n,null),pe(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ci(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Tu);break;case"onScroll":l!=null&&ie("scroll",e);break;case"onScrollEnd":l!=null&&ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ci(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ie("beforetoggle",e),ie("toggle",e),Ni(e,"popover",l);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ni(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=gm.get(a)||a,Ni(e,a,l))}}function Vs(e,t,a,l,n,u){switch(a){case"style":Vr(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?bl(e,l):(typeof l=="number"||typeof l=="bigint")&&bl(e,""+l);break;case"onScroll":l!=null&&ie("scroll",e);break;case"onScrollEnd":l!=null&&ie("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Tu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ur.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),u=e[lt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ni(e,a,l)}}}function Qe(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ie("error",e),ie("load",e);var l=!1,n=!1,u;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];if(o!=null)switch(u){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:pe(e,t,u,o,a,null)}}n&&pe(e,t,"srcSet",a.srcSet,a,null),l&&pe(e,t,"src",a.src,a,null);return;case"input":ie("invalid",e);var d=u=o=n=null,h=null,A=null;for(l in a)if(a.hasOwnProperty(l)){var N=a[l];if(N!=null)switch(l){case"name":n=N;break;case"type":o=N;break;case"checked":h=N;break;case"defaultChecked":A=N;break;case"value":u=N;break;case"defaultValue":d=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:pe(e,t,l,N,a,null)}}Lr(e,u,d,h,A,o,n,!1),Mi(e);return;case"select":ie("invalid",e),l=o=u=null;for(n in a)if(a.hasOwnProperty(n)&&(d=a[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":o=d;break;case"multiple":l=d;default:pe(e,t,n,d,a,null)}t=u,a=o,e.multiple=!!l,t!=null?_l(e,!!l,t,!1):a!=null&&_l(e,!!l,a,!0);return;case"textarea":ie("invalid",e),u=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(d=a[o],d!=null))switch(o){case"value":l=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:pe(e,t,o,d,a,null)}Gr(e,l,n,u),Mi(e);return;case"option":for(h in a)if(a.hasOwnProperty(h)&&(l=a[h],l!=null))switch(h){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:pe(e,t,h,l,a,null)}return;case"dialog":ie("beforetoggle",e),ie("toggle",e),ie("cancel",e),ie("close",e);break;case"iframe":case"object":ie("load",e);break;case"video":case"audio":for(l=0;l<Xn.length;l++)ie(Xn[l],e);break;case"image":ie("error",e),ie("load",e);break;case"details":ie("toggle",e);break;case"embed":case"source":case"link":ie("error",e),ie("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(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:pe(e,t,A,l,a,null)}return;default:if(cc(t)){for(N in a)a.hasOwnProperty(N)&&(l=a[N],l!==void 0&&Vs(e,t,N,l,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!=null&&pe(e,t,d,l,a,null))}function Gv(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,o=null,d=null,h=null,A=null,N=null;for(E in a){var C=a[E];if(a.hasOwnProperty(E)&&C!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":h=C;default:l.hasOwnProperty(E)||pe(e,t,E,null,l,C)}}for(var x in l){var E=l[x];if(C=a[x],l.hasOwnProperty(x)&&(E!=null||C!=null))switch(x){case"type":u=E;break;case"name":n=E;break;case"checked":A=E;break;case"defaultChecked":N=E;break;case"value":o=E;break;case"defaultValue":d=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(137,t));break;default:E!==C&&pe(e,t,x,E,l,C)}}ic(e,o,d,h,A,N,u,n);return;case"select":E=o=d=x=null;for(u in a)if(h=a[u],a.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":E=h;default:l.hasOwnProperty(u)||pe(e,t,u,null,l,h)}for(n in l)if(u=l[n],h=a[n],l.hasOwnProperty(n)&&(u!=null||h!=null))switch(n){case"value":x=u;break;case"defaultValue":d=u;break;case"multiple":o=u;default:u!==h&&pe(e,t,n,u,l,h)}t=d,a=o,l=E,x!=null?_l(e,!!a,x,!1):!!l!=!!a&&(t!=null?_l(e,!!a,t,!0):_l(e,!!a,a?[]:"",!1));return;case"textarea":E=x=null;for(d in a)if(n=a[d],a.hasOwnProperty(d)&&n!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:pe(e,t,d,null,l,n)}for(o in l)if(n=l[o],u=a[o],l.hasOwnProperty(o)&&(n!=null||u!=null))switch(o){case"value":x=n;break;case"defaultValue":E=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&pe(e,t,o,n,l,u)}Yr(e,x,E);return;case"option":for(var K in a)if(x=a[K],a.hasOwnProperty(K)&&x!=null&&!l.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:pe(e,t,K,null,l,x)}for(h in l)if(x=l[h],E=a[h],l.hasOwnProperty(h)&&x!==E&&(x!=null||E!=null))switch(h){case"selected":e.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:pe(e,t,h,x,l,E)}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 G in a)x=a[G],a.hasOwnProperty(G)&&x!=null&&!l.hasOwnProperty(G)&&pe(e,t,G,null,l,x);for(A in l)if(x=l[A],E=a[A],l.hasOwnProperty(A)&&x!==E&&(x!=null||E!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(137,t));break;default:pe(e,t,A,x,l,E)}return;default:if(cc(t)){for(var ge in a)x=a[ge],a.hasOwnProperty(ge)&&x!==void 0&&!l.hasOwnProperty(ge)&&Vs(e,t,ge,void 0,l,x);for(N in l)x=l[N],E=a[N],!l.hasOwnProperty(N)||x===E||x===void 0&&E===void 0||Vs(e,t,N,x,l,E);return}}for(var _ in a)x=a[_],a.hasOwnProperty(_)&&x!=null&&!l.hasOwnProperty(_)&&pe(e,t,_,null,l,x);for(C in l)x=l[C],E=a[C],!l.hasOwnProperty(C)||x===E||x==null&&E==null||pe(e,t,C,x,l,E)}var Qs=null,Ks=null;function Au(e){return e.nodeType===9?e:e.ownerDocument}function Qd(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 Kd(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 Js(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 Ws=null;function Xv(){var e=window.event;return e&&e.type==="popstate"?e===Ws?!1:(Ws=e,!0):(Ws=null,!1)}var Jd=typeof setTimeout=="function"?setTimeout:void 0,Vv=typeof clearTimeout=="function"?clearTimeout:void 0,Wd=typeof Promise=="function"?Promise:void 0,Qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Wd<"u"?function(e){return Wd.resolve(null).then(e).catch(Kv)}:Jd;function Kv(e){setTimeout(function(){throw e})}function Ca(e){return e==="head"}function $d(e,t){var a=t,l=0,n=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(0<l&&8>l){a=l;var o=e.ownerDocument;if(a&1&&Qn(o.documentElement),a&2&&Qn(o.body),a&4)for(a=o.head,Qn(a),o=a.firstChild;o;){var d=o.nextSibling,h=o.nodeName;o[cn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=d}}if(n===0){e.removeChild(u),ei(t);return}n--}else a==="$"||a==="$?"||a==="$!"?n++:l=a.charCodeAt(0)-48;else l=0;a=u}while(a);ei(t)}function $s(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":$s(a),tc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Jv(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[cn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Rt(e.nextSibling),e===null)break}return null}function Wv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Rt(e.nextSibling),e===null))return null;return e}function Fs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function $v(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Rt(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Is=null;function Fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Id(e,t,a){switch(t=Au(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Qn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);tc(e)}var zt=new Map,Pd=new Set;function xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sa=H.d;H.d={f:Fv,r:Iv,D:Pv,C:e0,L:t0,m:a0,X:n0,S:l0,M:i0};function Fv(){var e=sa.f(),t=vu();return e||t}function Iv(e){var t=vl(e);t!==null&&t.tag===5&&t.type==="form"?_o(t):sa.r(e)}var Wl=typeof document>"u"?null:document;function eh(e,t,a){var l=Wl;if(l&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Pd.has(n)||(Pd.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),Qe(t,"link",e),qe(t),l.head.appendChild(t)))}}function Pv(e){sa.D(e),eh("dns-prefetch",e,null)}function e0(e,t){sa.C(e,t),eh("preconnect",e,t)}function t0(e,t,a){sa.L(e,t,a);var l=Wl;if(l&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Tt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Tt(a.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var u=n;switch(t){case"style":u=$l(e);break;case"script":u=Fl(e)}zt.has(u)||(e=j({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),zt.set(u,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Kn(u))||t==="script"&&l.querySelector(Jn(u))||(t=l.createElement("link"),Qe(t,"link",e),qe(t),l.head.appendChild(t)))}}function a0(e,t){sa.m(e,t);var a=Wl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(l)+'"][href="'+Tt(e)+'"]',u=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Fl(e)}if(!zt.has(u)&&(e=j({rel:"modulepreload",href:e},t),zt.set(u,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Jn(u)))return}l=a.createElement("link"),Qe(l,"link",e),qe(l),a.head.appendChild(l)}}}function l0(e,t,a){sa.S(e,t,a);var l=Wl;if(l&&e){var n=yl(l).hoistableStyles,u=$l(e);t=t||"default";var o=n.get(u);if(!o){var d={loading:0,preload:null};if(o=l.querySelector(Kn(u)))d.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},a),(a=zt.get(u))&&Ps(e,a);var h=o=l.createElement("link");qe(h),Qe(h,"link",e),h._p=new Promise(function(A,N){h.onload=A,h.onerror=N}),h.addEventListener("load",function(){d.loading|=1}),h.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Eu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:d},n.set(u,o)}}}function n0(e,t){sa.X(e,t);var a=Wl;if(a&&e){var l=yl(a).hoistableScripts,n=Fl(e),u=l.get(n);u||(u=a.querySelector(Jn(n)),u||(e=j({src:e,async:!0},t),(t=zt.get(n))&&er(e,t),u=a.createElement("script"),qe(u),Qe(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function i0(e,t){sa.M(e,t);var a=Wl;if(a&&e){var l=yl(a).hoistableScripts,n=Fl(e),u=l.get(n);u||(u=a.querySelector(Jn(n)),u||(e=j({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&er(e,t),u=a.createElement("script"),qe(u),Qe(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function th(e,t,a,l){var n=(n=$.current)?xu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=$l(a.href),a=yl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=$l(a.href);var u=yl(n).hoistableStyles,o=u.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=n.querySelector(Kn(e)))&&!u._p&&(o.instance=u,o.state.loading=5),zt.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},zt.set(e,a),u||u0(n,e,a,o.state))),t&&l===null)throw Error(s(528,""));return o}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fl(a),a=yl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function $l(e){return'href="'+Tt(e)+'"'}function Kn(e){return'link[rel="stylesheet"]['+e+"]"}function ah(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function u0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Qe(t,"link",a),qe(t),e.head.appendChild(t))}function Fl(e){return'[src="'+Tt(e)+'"]'}function Jn(e){return"script[async]"+e}function lh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Tt(a.href)+'"]');if(l)return t.instance=l,qe(l),l;var n=j({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),qe(l),Qe(l,"style",n),Eu(l,a.precedence,e),t.instance=l;case"stylesheet":n=$l(a.href);var u=e.querySelector(Kn(n));if(u)return t.state.loading|=4,t.instance=u,qe(u),u;l=ah(a),(n=zt.get(n))&&Ps(l,n),u=(e.ownerDocument||e).createElement("link"),qe(u);var o=u;return o._p=new Promise(function(d,h){o.onload=d,o.onerror=h}),Qe(u,"link",l),t.state.loading|=4,Eu(u,a.precedence,e),t.instance=u;case"script":return u=Fl(a.src),(n=e.querySelector(Jn(u)))?(t.instance=n,qe(n),n):(l=a,(n=zt.get(u))&&(l=j({},a),er(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),qe(n),Qe(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Eu(l,a.precedence,e));return t.instance}function Eu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,u=n,o=0;o<l.length;o++){var d=l[o];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function er(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nu=null;function nh(e,t,a){if(Nu===null){var l=new Map,n=Nu=new Map;n.set(a,l)}else n=Nu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var u=a[n];if(!(u[cn]||u[We]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(t)||"";o=e+o;var d=l.get(o);d?d.push(u):l.set(o,[u])}}return l}function ih(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function c0(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 uh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Wn=null;function s0(){}function r0(e,t,a){if(Wn===null)throw Error(s(475));var l=Wn;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=$l(a.href),u=e.querySelector(Kn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Ou.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=u,qe(u);return}u=e.ownerDocument||e,a=ah(a),(n=zt.get(n))&&Ps(a,n),u=u.createElement("link"),qe(u);var o=u;o._p=new Promise(function(d,h){o.onload=d,o.onerror=h}),Qe(u,"link",a),t.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Ou.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function f0(){if(Wn===null)throw Error(s(475));var e=Wn;return e.stylesheets&&e.count===0&&tr(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&tr(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function Ou(){if(this.count--,this.count===0){if(this.stylesheets)tr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mu=null;function tr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mu=new Map,t.forEach(o0,e),Mu=null,Ou.call(e))}function o0(e,t){if(!(t.state.loading&4)){var a=Mu.get(e);if(a)var l=a.get(null);else{a=new Map,Mu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var o=n[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),u=a.get(o)||l,u===l&&a.set(null,n),a.set(o,n),this.count++,l=Ou.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var $n={$$typeof:de,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function d0(e,t,a,l,n,u,o,d){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=Fu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fu(0),this.hiddenUpdates=Fu(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function ch(e,t,a,l,n,u,o,d,h,A,N,C){return e=new d0(e,t,a,o,d,h,A,C),t=1,u===!0&&(t|=24),u=mt(3,null,null,t),e.current=u,u.stateNode=e,t=Hc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},wc(u),e}function sh(e){return e?(e=Ml,e):Ml}function rh(e,t,a,l,n,u){n=sh(n),l.context===null?l.context=n:l.pendingContext=n,l=pa(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=ga(e,l,t),a!==null&&(_t(a,e,t),Nn(a,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ar(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function oh(e){if(e.tag===13){var t=Ol(e,67108864);t!==null&&_t(t,e,67108864),ar(e,67108864)}}var zu=!0;function h0(e,t,a,l){var n=O.T;O.T=null;var u=H.p;try{H.p=2,lr(e,t,a,l)}finally{H.p=u,O.T=n}}function m0(e,t,a,l){var n=O.T;O.T=null;var u=H.p;try{H.p=8,lr(e,t,a,l)}finally{H.p=u,O.T=n}}function lr(e,t,a,l){if(zu){var n=nr(l);if(n===null)Xs(e,t,l,Cu,a),hh(e,l);else if(y0(n,e,t,a,l))l.stopPropagation();else if(hh(e,l),t&4&&-1<v0.indexOf(e)){for(;n!==null;){var u=vl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=Ga(u.pendingLanes);if(o!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var h=1<<31-dt(o);d.entanglements[1]|=h,o&=~h}Gt(u),(he&6)===0&&(hu=Bt()+500,Gn(0))}}break;case 13:d=Ol(u,2),d!==null&&_t(d,u,2),vu(),ar(u,2)}if(u=nr(l),u===null&&Xs(e,t,l,Cu,a),u===n)break;n=u}n!==null&&l.stopPropagation()}else Xs(e,t,l,null,a)}}function nr(e){return e=rc(e),ir(e)}var Cu=null;function ir(e){if(Cu=null,e=ml(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(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 Cu=e,null}function dh(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(em()){case xr:return 2;case Er:return 8;case Ti:case tm:return 32;case Nr:return 268435456;default:return 32}default:return 32}}var ur=!1,Da=null,Ra=null,ja=null,Fn=new Map,In=new Map,Ua=[],v0="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 hh(e,t){switch(e){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Ra=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":Fn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(t.pointerId)}}function Pn(e,t,a,l,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[n]},t!==null&&(t=vl(t),t!==null&&oh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function y0(e,t,a,l,n){switch(t){case"focusin":return Da=Pn(Da,e,t,a,l,n),!0;case"dragenter":return Ra=Pn(Ra,e,t,a,l,n),!0;case"mouseover":return ja=Pn(ja,e,t,a,l,n),!0;case"pointerover":var u=n.pointerId;return Fn.set(u,Pn(Fn.get(u)||null,e,t,a,l,n)),!0;case"gotpointercapture":return u=n.pointerId,In.set(u,Pn(In.get(u)||null,e,t,a,l,n)),!0}return!1}function mh(e){var t=ml(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,rm(e.priority,function(){if(a.tag===13){var l=gt();l=Iu(l);var n=Ol(a,l);n!==null&&_t(n,a,l),ar(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=nr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);sc=l,a.target.dispatchEvent(l),sc=null}else return t=vl(a),t!==null&&oh(t),e.blockedOn=a,!1;t.shift()}return!0}function vh(e,t,a){Du(e)&&a.delete(t)}function p0(){ur=!1,Da!==null&&Du(Da)&&(Da=null),Ra!==null&&Du(Ra)&&(Ra=null),ja!==null&&Du(ja)&&(ja=null),Fn.forEach(vh),In.forEach(vh)}function Ru(e,t){e.blockedOn===t&&(e.blockedOn=null,ur||(ur=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,p0)))}var ju=null;function yh(e){ju!==e&&(ju=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){ju===e&&(ju=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(ir(l||a)===null)continue;break}var u=vl(a);u!==null&&(e.splice(t,3),t-=3,is(u,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function ei(e){function t(h){return Ru(h,e)}Da!==null&&Ru(Da,e),Ra!==null&&Ru(Ra,e),ja!==null&&Ru(ja,e),Fn.forEach(t),In.forEach(t);for(var a=0;a<Ua.length;a++){var l=Ua[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ua.length&&(a=Ua[0],a.blockedOn===null);)mh(a),a.blockedOn===null&&Ua.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],u=a[l+1],o=n[lt]||null;if(typeof u=="function")o||yh(a);else if(o){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,o=u[lt]||null)d=o.formAction;else if(ir(n)!==null)continue}else d=o.action;typeof d=="function"?a[l+1]=d:(a.splice(l,3),l-=3),yh(a)}}}function cr(e){this._internalRoot=e}Uu.prototype.render=cr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=gt();rh(a,l,e,t,null,null)},Uu.prototype.unmount=cr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rh(e.current,2,null,e,null,null),vu(),t[hl]=null}};function Uu(e){this._internalRoot=e}Uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dr();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ua.length&&t!==0&&t<Ua[a].priority;a++);Ua.splice(a,0,e),a===0&&mh(e)}};var ph=i.version;if(ph!=="19.1.1")throw Error(s(527,ph,"19.1.1"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=T(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var g0={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{ln=Zu.inject(g0),ot=Zu}catch{}}return ai.createRoot=function(e,t){if(!f(e))throw Error(s(299));var a=!1,l="",n=jo,u=Uo,o=Zo,d=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(d=t.unstable_transitionCallbacks)),t=ch(e,1,!1,null,null,a,l,n,u,o,d,null),e[hl]=t.current,Gs(e),new cr(t)},ai.hydrateRoot=function(e,t,a){if(!f(e))throw Error(s(299));var l=!1,n="",u=jo,o=Uo,d=Zo,h=null,A=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(h=a.unstable_transitionCallbacks),a.formState!==void 0&&(A=a.formState)),t=ch(e,1,!0,t,a??null,l,n,u,o,d,h,A),t.context=sh(null),a=t.current,l=gt(),l=Iu(l),n=pa(l),n.callback=null,ga(a,n,l),a=l,t.current.lanes=a,un(t,a),Gt(t),e[hl]=t.current,Gs(e),new Uu(t)},ai.version="19.1.1",ai}var Oh;function M0(){if(Oh)return rr.exports;Oh=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(i){console.error(i)}}return r(),rr.exports=O0(),rr.exports}var z0=M0(),Ue=Sr();const mr=new Set;let Mh=!1,zh=null;function Tr(){return Ue.useEffect(()=>{Mh||(Mh=!0,fetch("/__tos-config__").then(i=>i.json()).then(i=>{zh=i;for(const c of mr)c()}))},[]),Ue.useSyncExternalStore(i=>(mr.add(i),()=>{mr.delete(i)}),()=>zh)}function C0(){var r,i;const c=Ue.useRef({isResizing:!1,startX:0,startY:0,startWidth:0,startHeight:0,maxWidth:0,maxHeight:0}),s=Ue.useRef(null),f=Ue.useRef(null),m=Ue.useRef(null),v=Tr(),b=()=>{const W=m.current;if(!W)return;const ee=ve=>{const Te=s.current,Pe=f.current;if(!Te||!Pe)return;console.log("start"),ve.preventDefault();const{width:Ge,height:de}=Te.getBoundingClientRect(),{width:Oe,height:le}=Pe.getBoundingClientRect();c.current.isResizing=!0,c.current.startX=ve.clientX,c.current.startY=ve.clientY,c.current.startWidth=Oe,c.current.startHeight=le,c.current.maxWidth=Ge,c.current.maxHeight=de,Pe.style.pointerEvents="none"},Ee=ve=>{const Te=f.current;if(!Te||!c.current.isResizing)return;ve.preventDefault();const Pe=(ve.clientX-c.current.startX)*2,Ge=(ve.clientY-c.current.startY)*2;let de=c.current.startWidth+Pe,Oe=c.current.startHeight+Ge;de=Math.max(Math.min(de,c.current.maxWidth),100),Oe=Math.max(Math.min(Oe,c.current.maxHeight),100),Te.style.width=`${de}px`,Te.style.height=`${Oe}px`},Ne=ve=>{const Te=f.current;Te&&c.current.isResizing&&(ve.preventDefault(),c.current.isResizing=!1,Te.style.pointerEvents="")};return W.addEventListener("mousedown",ee),document.addEventListener("mousemove",Ee),document.addEventListener("mouseup",Ne),()=>{W.removeEventListener("mousedown",ee),document.removeEventListener("mousemove",Ee),document.removeEventListener("mouseup",Ne)}};if(Ue.useEffect(b,[v]),!v)return z.jsx("div",{className:"canvas",children:"Loading..."});const T=(r=v.devServer)===null||r===void 0?void 0:r.url;if(!T)return z.jsx("div",{className:"canvas",children:"No dev server URL configured"});let g=(i=v.mountPoints)===null||i===void 0?void 0:i.render;if(typeof g=="object"&&(g=g.path),!g)return z.jsx("div",{className:"canvas",children:"No render mount point configured"});const j=`${T}${g}?applicationInstance=development&applicationSpecifier=0000000000000000000000000000000000000000`;return z.jsx("div",{className:"canvas",ref:s,children:z.jsxs("div",{className:"canvas__application-container",ref:f,style:{width:"100%",height:"100%"},children:[z.jsx("iframe",{src:j}),z.jsx("div",{className:"canvas__application-container-drag-handle",ref:m,children:z.jsxs("svg",{viewBox:"0 0 16 16",children:[z.jsx("line",{x1:"1",y1:"16",x2:"16",y2:"1",stroke:"black",strokeWidth:"1"}),z.jsx("line",{x1:"9",y1:"16",x2:"16",y2:"9",stroke:"black",strokeWidth:"1"}),z.jsx("line",{x1:"0",y1:"16",x2:"16",y2:"0",stroke:"white",strokeWidth:"1"}),z.jsx("line",{x1:"8",y1:"16",x2:"16",y2:"8",stroke:"white",strokeWidth:"1"})]})})]})})}const D0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},kh=Ue.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:c,absoluteStrokeWidth:s=!1,className:f="",altIcon:m,showAlt:v=!1,icon:b,primaryColor:T,secondaryColor:g,disableSecondaryOpacity:j=!1,...W},ee)=>{const Ee=c!==void 0?s?Number(c)*24/Number(i):c:void 0,Ne=Ee!==void 0?{strokeWidth:Ee,stroke:"currentColor"}:{},ve={ref:ee,...D0,width:i,height:i,color:T||r,className:f,...Ne,...W},Pe=[...v&&m?m:b].sort(([,Ge],[,de])=>{const Oe=Ge.opacity!==void 0;return de.opacity!==void 0?1:Oe?-1:0}).map(([Ge,de])=>{const Oe=de.opacity!==void 0,le=Oe&&!j?de.opacity:void 0,et=g?{...de.stroke!==void 0?{stroke:Oe?g:T||r}:{fill:Oe?g:T||r}}:{};return Ue.createElement(Ge,{...de,...Ne,...et,opacity:le,key:de.key})});return Ue.createElement("svg",ve,Pe)});kh.displayName="HugeiconsIcon";const R0=[["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"}]],j0=[["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"}]],U0=[["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"}]],Z0=[["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"}]],H0=[["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"}]];function k0(){var r;const i=Tr();return i?z.jsxs("div",{className:"application-info",children:[z.jsxs("div",{className:"application-info__section",children:[z.jsx("h3",{className:"application-info__section-title",children:"Application Details"}),z.jsxs("div",{className:"application-info__field",children:[z.jsx("label",{className:"application-info__label",children:"Name"}),z.jsx("div",{className:"application-info__value",children:i.name||"Not configured"})]}),z.jsxs("div",{className:"application-info__field",children:[z.jsx("label",{className:"application-info__label",children:"Thumbnail"}),i.thumbnailPath?z.jsx("div",{className:"application-info__thumbnail-container",children:z.jsx("img",{className:"application-info__thumbnail",src:"/__tos-thumbnail__",alt:`${i.name||"Application"} thumbnail`})}):z.jsx("div",{className:"application-info__value",children:"Not configured"})]}),z.jsxs("div",{className:"application-info__field",children:[z.jsx("label",{className:"application-info__label",children:"Version"}),z.jsx("div",{className:"application-info__value",children:i.version||"Not configured"})]})]}),z.jsxs("div",{className:"application-info__section",children:[z.jsx("h3",{className:"application-info__section-title",children:"Development Server"}),z.jsxs("div",{className:"application-info__field",children:[z.jsx("label",{className:"application-info__label",children:"URL"}),z.jsx("div",{className:"application-info__value",children:((r=i.devServer)===null||r===void 0?void 0:r.url)||"Not configured"})]})]}),z.jsxs("div",{className:"application-info__section",children:[z.jsx("h3",{className:"application-info__section-title",children:"Mount Points"}),i.mountPoints?Object.entries(i.mountPoints).map(([c,s])=>{const f=typeof s=="object"?s.path:s||"Not configured";return z.jsxs("div",{className:"application-info__field",children:[z.jsx("label",{className:"application-info__label",children:c}),z.jsx("div",{className:"application-info__value",children:f})]},c)}):z.jsx("div",{className:"application-info__empty",children:"No mount points configured"})]})]}):z.jsx("div",{className:"application-info__empty",children:"Loading configuration..."})}function B0(){var r,i;const c=Tr();if(!c)return z.jsx("div",{className:"application-settings__loading",children:"Loading..."});const s=(r=c==null?void 0:c.devServer)===null||r===void 0?void 0:r.url;let f=(i=c==null?void 0:c.mountPoints)===null||i===void 0?void 0:i.settings;if(typeof f=="object"&&(f=f.path),!(s&&f))return z.jsx("div",{className:"application-settings",children:z.jsx("div",{className:"application-settings__empty",children:"No settings mount point configured in telemetry.config.json"})});const v=`${s}${f}?applicationInstance=development&applicationSpecifier=0000000000000000000000000000000000000000`;return z.jsx("iframe",{src:v,style:{width:"100%",height:"100%",border:"none"}})}const Ch="tos-dev-stubs-config",yr={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:"dark"},overrides:[],weather:{conditions:{CityLocalized:"New York",CityEnglish:"New York",WindAbbr:"N",CountryCode:"US",Timezone:"America/New_York",WeatherText:"Partly Cloudy",State:"NY",Pod:"day",WeatherCode:"802",WindDirectionDegrees:"0",WindDirectionEnglish:"North",WindDirectionLocalized:"North",RelativeHumidity:65,Timestamp:Date.now()/1e3,Longitude:-74.006,Latitude:40.7128,Temp:72,Pressure:1013,WindSpeed:10,Visibility:10,Precip:0},dailyForecast:[{Datetime:new Date().toISOString(),Pod:"day",Label:"Partly Cloudy",WeatherCode:"802",Timestamp:Date.now()/1e3,Temp:72,MinTemp:65,MaxTemp:78}],hourlyForecast:[{Datetime:new Date().toISOString(),Pod:"day",Label:"Partly Cloudy",WeatherCode:"802",Timestamp:Date.now()/1e3,Temp:72,MinTemp:70,MaxTemp:74}]}},q0={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:[]},w0={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"]},L0={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:[]},Dh=[{name:"default",label:"Default",config:yr},{name:"minimal",label:"Minimal",config:q0},{name:"rich",label:"Rich",config:w0},{name:"errors",label:"Error States",config:L0}];class Y0{constructor(){this.listeners=new Set,this.config=this.loadFromLocalStorage()||structuredClone(yr)}get(i){const c=i.split(".");let s=this.config;for(const f of c)if(s=s==null?void 0:s[f],s===void 0)break;return s!==void 0&&typeof s=="object"?structuredClone(s):s}set(i,c){const s=i.split("."),f=s.pop();let m=this.config;for(const v of s)v in m||(m[v]={}),m=m[v];m[f]=c,this.saveToLocalStorage(),this.notifyListeners()}getAll(){return this.config}reset(){this.config=structuredClone(yr),this.saveToLocalStorage(),this.notifyListeners()}loadPreset(i){const c=Dh.find(s=>s.name===i);c&&(this.config=structuredClone(c.config),this.saveToLocalStorage(),this.notifyListeners())}getPresets(){return Dh}exportConfig(){return JSON.stringify(this.config,null,2)}importConfig(i){try{const c=JSON.parse(i);return this.config=c,this.saveToLocalStorage(),this.notifyListeners(),!0}catch{return!1}}onChange(i){return this.listeners.add(i),()=>this.listeners.delete(i)}notifyListeners(){this.listeners.forEach(i=>i())}saveToLocalStorage(){try{localStorage.setItem(Ch,JSON.stringify(this.config))}catch(i){console.error("Failed to save stubs config to localStorage",i)}}loadFromLocalStorage(){try{const i=localStorage.getItem(Ch);return i?JSON.parse(i):null}catch(i){return console.error("Failed to load stubs config from localStorage",i),null}}}const ue=new Y0;function G0(){const[r,i]=Ue.useState(ue.get("device"));Ue.useEffect(()=>ue.onChange(()=>{i(ue.get("device"))}),[]);const c=(s,f)=>{ue.set(`device.${s}`,f)};return z.jsx("div",{className:"device-config",children:z.jsxs("div",{className:"device-config__section",children:[z.jsx("h3",{className:"device-config__section-title",children:"Device Information"}),z.jsxs("div",{className:"device-config__field",children:[z.jsx("label",{className:"device-config__label",children:"Name"}),z.jsx("input",{type:"text",className:"device-config__input",value:r.name,onChange:s=>c("name",s.target.value)})]}),z.jsxs("div",{className:"device-config__field",children:[z.jsx("label",{className:"device-config__label",children:"ID"}),z.jsx("input",{type:"text",className:"device-config__input",value:r.id,onChange:s=>c("id",s.target.value)})]}),z.jsxs("div",{className:"device-config__field",children:[z.jsx("label",{className:"device-config__label",children:"Status"}),z.jsxs("select",{className:"device-config__select",value:r.status,onChange:s=>c("status",s.target.value),children:[z.jsx("option",{value:"online",children:"Online"}),z.jsx("option",{value:"offline",children:"Offline"})]})]})]})})}function X0(){const[r,i]=Ue.useState(ue.get("account")),[c,s]=Ue.useState(ue.get("user"));Ue.useEffect(()=>ue.onChange(()=>{i(ue.get("account")),s(ue.get("user"))}),[]);const f=(v,b)=>{ue.set(`account.${v}`,b)},m=(v,b)=>{ue.set(`user.${v}`,b)};return z.jsxs("div",{className:"account-config",children:[z.jsxs("div",{className:"account-config__section",children:[z.jsx("h3",{className:"account-config__section-title",children:"Account Information"}),z.jsxs("div",{className:"account-config__field",children:[z.jsx("label",{className:"account-config__label",children:"Name"}),z.jsx("input",{type:"text",className:"account-config__input",value:r.name,onChange:v=>f("name",v.target.value)})]}),z.jsxs("div",{className:"account-config__field",children:[z.jsx("label",{className:"account-config__label",children:"Email"}),z.jsx("input",{type:"email",className:"account-config__input",value:r.email,onChange:v=>f("email",v.target.value)})]}),z.jsxs("div",{className:"account-config__field",children:[z.jsx("label",{className:"account-config__label",children:"ID"}),z.jsx("input",{type:"text",className:"account-config__input",value:r.id,onChange:v=>f("id",v.target.value)})]})]}),z.jsxs("div",{className:"account-config__section",children:[z.jsx("h3",{className:"account-config__section-title",children:"User Information"}),z.jsxs("div",{className:"account-config__field",children:[z.jsx("label",{className:"account-config__label",children:"Name"}),z.jsx("input",{type:"text",className:"account-config__input",value:c.name,onChange:v=>m("name",v.target.value)})]}),z.jsxs("div",{className:"account-config__field",children:[z.jsx("label",{className:"account-config__label",children:"Email"}),z.jsx("input",{type:"email",className:"account-config__input",value:c.email,onChange:v=>m("email",v.target.value)})]}),z.jsxs("div",{className:"account-config__field",children:[z.jsx("label",{className:"account-config__label",children:"ID"}),z.jsx("input",{type:"text",className:"account-config__input",value:c.id,onChange:v=>m("id",v.target.value)})]})]})]})}function V0(){const[r,i]=Ue.useState(ue.get("mediaFolders"));Ue.useEffect(()=>ue.onChange(()=>{i(ue.get("mediaFolders"))}),[]);const c=()=>{const m={id:`folder-${Date.now()}`,name:"New Folder",parentId:null,children:[]};ue.set("mediaFolders",[...r,m])},s=m=>{const v=r.filter((b,T)=>T!==m);ue.set("mediaFolders",v)},f=(m,v,b)=>{const T=[...r];T[m]={...T[m],[v]:b},ue.set("mediaFolders",T)};return z.jsx("div",{className:"media-config",children:z.jsxs("div",{className:"media-config__section",children:[z.jsxs("div",{className:"media-config__section-header",children:[z.jsxs("h3",{className:"media-config__section-title",children:["Media Folders (",r.length,")"]}),z.jsx("button",{className:"media-config__button media-config__button--small",onClick:c,children:"+ Add"})]}),r.length===0&&z.jsx("div",{className:"media-config__empty",children:'No media folders configured. Click "Add" to create one.'}),r.map((m,v)=>z.jsxs("div",{className:"media-config__item",children:[z.jsxs("div",{className:"media-config__item-header",children:[z.jsxs("span",{className:"media-config__item-title",children:["Folder ",v+1]}),z.jsx("button",{className:"media-config__button media-config__button--danger media-config__button--small",onClick:()=>s(v),children:"Remove"})]}),z.jsxs("div",{className:"media-config__field",children:[z.jsx("label",{className:"media-config__label",children:"Name"}),z.jsx("input",{type:"text",className:"media-config__input",value:m.name,onChange:b=>f(v,"name",b.target.value)})]}),z.jsxs("div",{className:"media-config__field",children:[z.jsx("label",{className:"media-config__label",children:"ID"}),z.jsx("input",{type:"text",className:"media-config__input",value:m.id,onChange:b=>f(v,"id",b.target.value)})]})]},m.id))]})})}const Rh=[{id:"info",label:"App Info",icon:U0},{id:"settings",label:"App Settings",icon:H0},{id:"device",label:"Device",icon:R0},{id:"account",label:"Account",icon:Z0},{id:"media",label:"Media",icon:j0}];function Q0(){const[r,i]=Ue.useState("info"),c=()=>{switch(r){case"info":return z.jsx(k0,{});case"settings":return z.jsx(B0,{});case"device":return z.jsx(G0,{});case"account":return z.jsx(X0,{});case"media":return z.jsx(V0,{})}},s=Rh.find(f=>f.id===r);return z.jsxs("div",{className:"right-sidebar",children:[z.jsx("div",{className:"right-sidebar__nav",children:Rh.map(f=>z.jsx("button",{className:`right-sidebar__nav-button ${r===f.id?"right-sidebar__nav-button--active":""}`,onClick:()=>i(f.id),title:f.label,children:z.jsx(kh,{icon:f.icon,size:20,strokeWidth:1.5})},f.id))}),z.jsxs("div",{className:"right-sidebar__container",children:[z.jsx("div",{className:"right-sidebar__header",children:z.jsx("div",{className:"right-sidebar__header-title",children:s==null?void 0:s.label})}),z.jsx("div",{className:"right-sidebar__content",children:c()})]})]})}function K0(r){const{internalSize:i,children:c}=r,{width:s,height:f}=i,m=Ue.useRef(null),v=Ue.useRef(null),b=()=>{const T=m.current;if(!T)return;const g=new ResizeObserver(()=>{const{width:j,height:W}=T.getBoundingClientRect(),ee=j/s,Ee=W/f,Ne=Math.min(ee,Ee),ve=v.current;ve&&(ve.style.width=`${s}px`,ve.style.height=`${f}px`,ve.style.transform=`scale(${Ne})`)});return g.observe(T),()=>g.disconnect()};return Ue.useEffect(b,[]),z.jsx("div",{className:"scaling-container",ref:m,children:z.jsx("div",{className:"scaling-container__inner",ref:v,children:c})})}function J0(){return z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"app__canvas-surround",children:z.jsx(K0,{internalSize:{width:1280,height:720},children:z.jsx(C0,{})})}),z.jsx(Q0,{})]})}var se;(function(r){r.assertEqual=f=>f;function i(f){}r.assertIs=i;function c(f){throw new Error}r.assertNever=c,r.arrayToEnum=f=>{const m={};for(const v of f)m[v]=v;return m},r.getValidEnumValues=f=>{const m=r.objectKeys(f).filter(b=>typeof f[f[b]]!="number"),v={};for(const b of m)v[b]=f[b];return r.objectValues(v)},r.objectValues=f=>r.objectKeys(f).map(function(m){return f[m]}),r.objectKeys=typeof Object.keys=="function"?f=>Object.keys(f):f=>{const m=[];for(const v in f)Object.prototype.hasOwnProperty.call(f,v)&&m.push(v);return m},r.find=(f,m)=>{for(const v of f)if(m(v))return v},r.isInteger=typeof Number.isInteger=="function"?f=>Number.isInteger(f):f=>typeof f=="number"&&isFinite(f)&&Math.floor(f)===f;function s(f,m=" | "){return f.map(v=>typeof v=="string"?`'${v}'`:v).join(m)}r.joinValues=s,r.jsonStringifyReplacer=(f,m)=>typeof m=="bigint"?m.toString():m})(se||(se={}));var pr;(function(r){r.mergeShapes=(i,c)=>({...i,...c})})(pr||(pr={}));const k=se.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ra=r=>{switch(typeof r){case"undefined":return k.undefined;case"string":return k.string;case"number":return 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}},R=se.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"]),W0=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class bt extends Error{get errors(){return this.issues}constructor(i){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const c=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,c):this.__proto__=c,this.name="ZodError",this.issues=i}format(i){const c=i||function(m){return m.message},s={_errors:[]},f=m=>{for(const v of m.issues)if(v.code==="invalid_union")v.unionErrors.map(f);else if(v.code==="invalid_return_type")f(v.returnTypeError);else if(v.code==="invalid_arguments")f(v.argumentsError);else if(v.path.length===0)s._errors.push(c(v));else{let b=s,T=0;for(;T<v.path.length;){const g=v.path[T];T===v.path.length-1?(b[g]=b[g]||{_errors:[]},b[g]._errors.push(c(v))):b[g]=b[g]||{_errors:[]},b=b[g],T++}}};return f(this),s}static assert(i){if(!(i instanceof bt))throw new Error(`Not a ZodError: ${i}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,se.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(i=c=>c.message){const c={},s=[];for(const f of this.issues)f.path.length>0?(c[f.path[0]]=c[f.path[0]]||[],c[f.path[0]].push(i(f))):s.push(i(f));return{formErrors:s,fieldErrors:c}}get formErrors(){return this.flatten()}}bt.create=r=>new bt(r);const en=(r,i)=>{let c;switch(r.code){case R.invalid_type:r.received===k.undefined?c="Required":c=`Expected ${r.expected}, received ${r.received}`;break;case R.invalid_literal:c=`Invalid literal value, expected ${JSON.stringify(r.expected,se.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:c=`Unrecognized key(s) in object: ${se.joinValues(r.keys,", ")}`;break;case R.invalid_union:c="Invalid input";break;case R.invalid_union_discriminator:c=`Invalid discriminator value. Expected ${se.joinValues(r.options)}`;break;case R.invalid_enum_value:c=`Invalid enum value. Expected ${se.joinValues(r.options)}, received '${r.received}'`;break;case R.invalid_arguments:c="Invalid function arguments";break;case R.invalid_return_type:c="Invalid function return type";break;case R.invalid_date:c="Invalid date";break;case R.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(c=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(c=`${c} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?c=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?c=`Invalid input: must end with "${r.validation.endsWith}"`:se.assertNever(r.validation):r.validation!=="regex"?c=`Invalid ${r.validation}`:c="Invalid";break;case R.too_small:r.type==="array"?c=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?c=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?c=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?c=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:c="Invalid input";break;case R.too_big:r.type==="array"?c=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?c=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?c=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?c=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?c=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:c="Invalid input";break;case R.custom:c="Invalid input";break;case R.invalid_intersection_types:c="Intersection results could not be merged";break;case R.not_multiple_of:c=`Number must be a multiple of ${r.multipleOf}`;break;case R.not_finite:c="Number must be finite";break;default:c=i.defaultError,se.assertNever(r)}return{message:c}};let Bh=en;function $0(r){Bh=r}function Bu(){return Bh}const qu=r=>{const{data:i,path:c,errorMaps:s,issueData:f}=r,m=[...c,...f.path||[]],v={...f,path:m};if(f.message!==void 0)return{...f,path:m,message:f.message};let b="";const T=s.filter(g=>!!g).slice().reverse();for(const g of T)b=g(v,{data:i,defaultError:b}).message;return{...f,path:m,message:b}},F0=[];function U(r,i){const c=Bu(),s=qu({issueData:i,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,c,c===en?void 0:en].filter(f=>!!f)});r.common.issues.push(s)}class Ie{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(i,c){const s=[];for(const f of c){if(f.status==="aborted")return J;f.status==="dirty"&&i.dirty(),s.push(f.value)}return{status:i.value,value:s}}static async mergeObjectAsync(i,c){const s=[];for(const f of c){const m=await f.key,v=await f.value;s.push({key:m,value:v})}return Ie.mergeObjectSync(i,s)}static mergeObjectSync(i,c){const s={};for(const f of c){const{key:m,value:v}=f;if(m.status==="aborted"||v.status==="aborted")return J;m.status==="dirty"&&i.dirty(),v.status==="dirty"&&i.dirty(),m.value!=="__proto__"&&(typeof v.value<"u"||f.alwaysSet)&&(s[m.value]=v.value)}return{status:i.value,value:s}}}const J=Object.freeze({status:"aborted"}),wu=r=>({status:"dirty",value:r}),at=r=>({status:"valid",value:r}),gr=r=>r.status==="aborted",_r=r=>r.status==="dirty",rl=r=>r.status==="valid",ci=r=>typeof Promise<"u"&&r instanceof Promise;function Lu(r,i,c,s){if(typeof i=="function"?r!==i||!0:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i.get(r)}function qh(r,i,c,s,f){if(typeof i=="function"?r!==i||!0:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i.set(r,c),c}var w;(function(r){r.errToObj=i=>typeof i=="string"?{message:i}:i||{},r.toString=i=>typeof i=="string"?i:i==null?void 0:i.message})(w||(w={}));var ni,ii;class Vt{constructor(i,c,s,f){this._cachedPath=[],this.parent=i,this.data=c,this._path=s,this._key=f}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const jh=(r,i)=>{if(rl(i))return{success:!0,data:i.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 c=new bt(r.common.issues);return this._error=c,this._error}}};function F(r){if(!r)return{};const{errorMap:i,invalid_type_error:c,required_error:s,description:f}=r;if(i&&(c||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return i?{errorMap:i,description:f}:{errorMap:(m,v)=>{var b,T;const{message:g}=r;return m.code==="invalid_enum_value"?{message:g??v.defaultError}:typeof v.data>"u"?{message:(b=g??s)!==null&&b!==void 0?b:v.defaultError}:m.code!=="invalid_type"?{message:v.defaultError}:{message:(T=g??c)!==null&&T!==void 0?T:v.defaultError}},description:f}}class P{get description(){return this._def.description}_getType(i){return ra(i.data)}_getOrReturnCtx(i,c){return c||{common:i.parent.common,data:i.data,parsedType:ra(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}_processInputParams(i){return{status:new Ie,ctx:{common:i.parent.common,data:i.data,parsedType:ra(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}}_parseSync(i){const c=this._parse(i);if(ci(c))throw new Error("Synchronous parse encountered promise.");return c}_parseAsync(i){const c=this._parse(i);return Promise.resolve(c)}parse(i,c){const s=this.safeParse(i,c);if(s.success)return s.data;throw s.error}safeParse(i,c){var s;const f={common:{issues:[],async:(s=c==null?void 0:c.async)!==null&&s!==void 0?s:!1,contextualErrorMap:c==null?void 0:c.errorMap},path:(c==null?void 0:c.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:ra(i)},m=this._parseSync({data:i,path:f.path,parent:f});return jh(f,m)}"~validate"(i){var c,s;const f={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:ra(i)};if(!this["~standard"].async)try{const m=this._parseSync({data:i,path:[],parent:f});return rl(m)?{value:m.value}:{issues:f.common.issues}}catch(m){!((s=(c=m==null?void 0:m.message)===null||c===void 0?void 0:c.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),f.common={issues:[],async:!0}}return this._parseAsync({data:i,path:[],parent:f}).then(m=>rl(m)?{value:m.value}:{issues:f.common.issues})}async parseAsync(i,c){const s=await this.safeParseAsync(i,c);if(s.success)return s.data;throw s.error}async safeParseAsync(i,c){const s={common:{issues:[],contextualErrorMap:c==null?void 0:c.errorMap,async:!0},path:(c==null?void 0:c.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:ra(i)},f=this._parse({data:i,path:s.path,parent:s}),m=await(ci(f)?f:Promise.resolve(f));return jh(s,m)}refine(i,c){const s=f=>typeof c=="string"||typeof c>"u"?{message:c}:typeof c=="function"?c(f):c;return this._refinement((f,m)=>{const v=i(f),b=()=>m.addIssue({code:R.custom,...s(f)});return typeof Promise<"u"&&v instanceof Promise?v.then(T=>T?!0:(b(),!1)):v?!0:(b(),!1)})}refinement(i,c){return this._refinement((s,f)=>i(s)?!0:(f.addIssue(typeof c=="function"?c(s,f):c),!1))}_refinement(i){return new Ht({schema:this,typeName:Q.ZodEffects,effect:{type:"refinement",refinement:i}})}superRefine(i){return this._refinement(i)}constructor(i){this.spa=this.safeParseAsync,this._def=i,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:c=>this["~validate"](c)}}optional(){return Xt.create(this,this._def)}nullable(){return wa.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zt.create(this)}promise(){return an.create(this,this._def)}or(i){return oi.create([this,i],this._def)}and(i){return di.create(this,i,this._def)}transform(i){return new Ht({...F(this._def),schema:this,typeName:Q.ZodEffects,effect:{type:"transform",transform:i}})}default(i){const c=typeof i=="function"?i:()=>i;return new pi({...F(this._def),innerType:this,defaultValue:c,typeName:Q.ZodDefault})}brand(){return new Ar({typeName:Q.ZodBranded,type:this,...F(this._def)})}catch(i){const c=typeof i=="function"?i:()=>i;return new gi({...F(this._def),innerType:this,catchValue:c,typeName:Q.ZodCatch})}describe(i){const c=this.constructor;return new c({...this._def,description:i})}pipe(i){return bi.create(this,i)}readonly(){return _i.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I0=/^c[^\s-]{8,}$/i,P0=/^[0-9a-z]+$/,ey=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ty=/^[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,ay=/^[a-z0-9_-]{21}$/i,ly=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ny=/^[-+]?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)?)??$/,iy=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let vr;const cy=/^(?:(?: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])$/,sy=/^(?:(?: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])$/,ry=/^(([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]))$/,fy=/^(([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])$/,oy=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,dy=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,wh="((\\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])))",hy=new RegExp(`^${wh}$`);function Lh(r){let i="[0-5]\\d";r.precision?i=`${i}\\.\\d{${r.precision}}`:r.precision==null&&(i=`${i}(\\.\\d+)?`);const c=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${i})${c}`}function my(r){return new RegExp(`^${Lh(r)}$`)}function Yh(r){let i=`${wh}T${Lh(r)}`;const c=[];return c.push(r.local?"Z?":"Z"),r.offset&&c.push("([+-]\\d{2}:?\\d{2})"),i=`${i}(${c.join("|")})`,new RegExp(`^${i}$`)}function vy(r,i){return!!((i==="v4"||!i)&&cy.test(r)||(i==="v6"||!i)&&ry.test(r))}function yy(r,i){if(!ly.test(r))return!1;try{const[c]=r.split("."),s=c.replace(/-/g,"+").replace(/_/g,"/").padEnd(c.length+(4-c.length%4)%4,"="),f=JSON.parse(atob(s));return!(typeof f!="object"||f===null||!f.typ||!f.alg||i&&f.alg!==i)}catch{return!1}}function py(r,i){return!!((i==="v4"||!i)&&sy.test(r)||(i==="v6"||!i)&&fy.test(r))}class Ut extends P{_parse(i){if(this._def.coerce&&(i.data=String(i.data)),this._getType(i)!==k.string){const f=this._getOrReturnCtx(i);return U(f,{code:R.invalid_type,expected:k.string,received:f.parsedType}),J}const c=new Ie;let s;for(const f of this._def.checks)if(f.kind==="min")i.data.length<f.value&&(s=this._getOrReturnCtx(i,s),U(s,{code:R.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),c.dirty());else if(f.kind==="max")i.data.length>f.value&&(s=this._getOrReturnCtx(i,s),U(s,{code:R.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),c.dirty());else if(f.kind==="length"){const m=i.data.length>f.value,v=i.data.length<f.value;(m||v)&&(s=this._getOrReturnCtx(i,s),m?U(s,{code:R.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):v&&U(s,{code:R.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),c.dirty())}else if(f.kind==="email")iy.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"email",code:R.invalid_string,message:f.message}),c.dirty());else if(f.kind==="emoji")vr||(vr=new RegExp(uy,"u")),vr.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"emoji",code:R.invalid_string,message:f.message}),c.dirty());else if(f.kind==="uuid")ty.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"uuid",code:R.invalid_string,message:f.message}),c.dirty());else if(f.kind==="nanoid")ay.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"nanoid",code:R.invalid_string,message:f.message}),c.dirty());else if(f.kind==="cuid")I0.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"cuid",code:R.invalid_string,message:f.message}),c.dirty());else if(f.kind==="cuid2")P0.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"cuid2",code:R.invalid_string,message:f.message}),c.dirty());else if(f.kind==="ulid")ey.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"ulid",code:R.invalid_string,message:f.message}),c.dirty());else if(f.kind==="url")try{new URL(i.data)}catch{s=this._getOrReturnCtx(i,s),U(s,{validation:"url",code:R.invalid_string,message:f.message}),c.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"regex",code:R.invalid_string,message:f.message}),c.dirty())):f.kind==="trim"?i.data=i.data.trim():f.kind==="includes"?i.data.includes(f.value,f.position)||(s=this._getOrReturnCtx(i,s),U(s,{code:R.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),c.dirty()):f.kind==="toLowerCase"?i.data=i.data.toLowerCase():f.kind==="toUpperCase"?i.data=i.data.toUpperCase():f.kind==="startsWith"?i.data.startsWith(f.value)||(s=this._getOrReturnCtx(i,s),U(s,{code:R.invalid_string,validation:{startsWith:f.value},message:f.message}),c.dirty()):f.kind==="endsWith"?i.data.endsWith(f.value)||(s=this._getOrReturnCtx(i,s),U(s,{code:R.invalid_string,validation:{endsWith:f.value},message:f.message}),c.dirty()):f.kind==="datetime"?Yh(f).test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{code:R.invalid_string,validation:"datetime",message:f.message}),c.dirty()):f.kind==="date"?hy.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{code:R.invalid_string,validation:"date",message:f.message}),c.dirty()):f.kind==="time"?my(f).test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{code:R.invalid_string,validation:"time",message:f.message}),c.dirty()):f.kind==="duration"?ny.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"duration",code:R.invalid_string,message:f.message}),c.dirty()):f.kind==="ip"?vy(i.data,f.version)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"ip",code:R.invalid_string,message:f.message}),c.dirty()):f.kind==="jwt"?yy(i.data,f.alg)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"jwt",code:R.invalid_string,message:f.message}),c.dirty()):f.kind==="cidr"?py(i.data,f.version)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"cidr",code:R.invalid_string,message:f.message}),c.dirty()):f.kind==="base64"?oy.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"base64",code:R.invalid_string,message:f.message}),c.dirty()):f.kind==="base64url"?dy.test(i.data)||(s=this._getOrReturnCtx(i,s),U(s,{validation:"base64url",code:R.invalid_string,message:f.message}),c.dirty()):se.assertNever(f);return{status:c.value,value:i.data}}_regex(i,c,s){return this.refinement(f=>i.test(f),{validation:c,code:R.invalid_string,...w.errToObj(s)})}_addCheck(i){return new Ut({...this._def,checks:[...this._def.checks,i]})}email(i){return this._addCheck({kind:"email",...w.errToObj(i)})}url(i){return this._addCheck({kind:"url",...w.errToObj(i)})}emoji(i){return this._addCheck({kind:"emoji",...w.errToObj(i)})}uuid(i){return this._addCheck({kind:"uuid",...w.errToObj(i)})}nanoid(i){return this._addCheck({kind:"nanoid",...w.errToObj(i)})}cuid(i){return this._addCheck({kind:"cuid",...w.errToObj(i)})}cuid2(i){return this._addCheck({kind:"cuid2",...w.errToObj(i)})}ulid(i){return this._addCheck({kind:"ulid",...w.errToObj(i)})}base64(i){return this._addCheck({kind:"base64",...w.errToObj(i)})}base64url(i){return this._addCheck({kind:"base64url",...w.errToObj(i)})}jwt(i){return this._addCheck({kind:"jwt",...w.errToObj(i)})}ip(i){return this._addCheck({kind:"ip",...w.errToObj(i)})}cidr(i){return this._addCheck({kind:"cidr",...w.errToObj(i)})}datetime(i){var c,s;return typeof i=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:i}):this._addCheck({kind:"datetime",precision:typeof(i==null?void 0:i.precision)>"u"?null:i==null?void 0:i.precision,offset:(c=i==null?void 0:i.offset)!==null&&c!==void 0?c:!1,local:(s=i==null?void 0:i.local)!==null&&s!==void 0?s:!1,...w.errToObj(i==null?void 0:i.message)})}date(i){return this._addCheck({kind:"date",message:i})}time(i){return typeof i=="string"?this._addCheck({kind:"time",precision:null,message:i}):this._addCheck({kind:"time",precision:typeof(i==null?void 0:i.precision)>"u"?null:i==null?void 0:i.precision,...w.errToObj(i==null?void 0:i.message)})}duration(i){return this._addCheck({kind:"duration",...w.errToObj(i)})}regex(i,c){return this._addCheck({kind:"regex",regex:i,...w.errToObj(c)})}includes(i,c){return this._addCheck({kind:"includes",value:i,position:c==null?void 0:c.position,...w.errToObj(c==null?void 0:c.message)})}startsWith(i,c){return this._addCheck({kind:"startsWith",value:i,...w.errToObj(c)})}endsWith(i,c){return this._addCheck({kind:"endsWith",value:i,...w.errToObj(c)})}min(i,c){return this._addCheck({kind:"min",value:i,...w.errToObj(c)})}max(i,c){return this._addCheck({kind:"max",value:i,...w.errToObj(c)})}length(i,c){return this._addCheck({kind:"length",value:i,...w.errToObj(c)})}nonempty(i){return this.min(1,w.errToObj(i))}trim(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(i=>i.kind==="datetime")}get isDate(){return!!this._def.checks.find(i=>i.kind==="date")}get isTime(){return!!this._def.checks.find(i=>i.kind==="time")}get isDuration(){return!!this._def.checks.find(i=>i.kind==="duration")}get isEmail(){return!!this._def.checks.find(i=>i.kind==="email")}get isURL(){return!!this._def.checks.find(i=>i.kind==="url")}get isEmoji(){return!!this._def.checks.find(i=>i.kind==="emoji")}get isUUID(){return!!this._def.checks.find(i=>i.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(i=>i.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(i=>i.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(i=>i.kind==="cuid2")}get isULID(){return!!this._def.checks.find(i=>i.kind==="ulid")}get isIP(){return!!this._def.checks.find(i=>i.kind==="ip")}get isCIDR(){return!!this._def.checks.find(i=>i.kind==="cidr")}get isBase64(){return!!this._def.checks.find(i=>i.kind==="base64")}get isBase64url(){return!!this._def.checks.find(i=>i.kind==="base64url")}get minLength(){let i=null;for(const c of this._def.checks)c.kind==="min"&&(i===null||c.value>i)&&(i=c.value);return i}get maxLength(){let i=null;for(const c of this._def.checks)c.kind==="max"&&(i===null||c.value<i)&&(i=c.value);return i}}Ut.create=r=>{var i;return new Ut({checks:[],typeName:Q.ZodString,coerce:(i=r==null?void 0:r.coerce)!==null&&i!==void 0?i:!1,...F(r)})};function gy(r,i){const c=(r.toString().split(".")[1]||"").length,s=(i.toString().split(".")[1]||"").length,f=c>s?c:s,m=parseInt(r.toFixed(f).replace(".","")),v=parseInt(i.toFixed(f).replace(".",""));return m%v/Math.pow(10,f)}class ka extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(i){if(this._def.coerce&&(i.data=Number(i.data)),this._getType(i)!==k.number){const f=this._getOrReturnCtx(i);return U(f,{code:R.invalid_type,expected:k.number,received:f.parsedType}),J}let c;const s=new Ie;for(const f of this._def.checks)f.kind==="int"?se.isInteger(i.data)||(c=this._getOrReturnCtx(i,c),U(c,{code:R.invalid_type,expected:"integer",received:"float",message:f.message}),s.dirty()):f.kind==="min"?(f.inclusive?i.data<f.value:i.data<=f.value)&&(c=this._getOrReturnCtx(i,c),U(c,{code:R.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),s.dirty()):f.kind==="max"?(f.inclusive?i.data>f.value:i.data>=f.value)&&(c=this._getOrReturnCtx(i,c),U(c,{code:R.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),s.dirty()):f.kind==="multipleOf"?gy(i.data,f.value)!==0&&(c=this._getOrReturnCtx(i,c),U(c,{code:R.not_multiple_of,multipleOf:f.value,message:f.message}),s.dirty()):f.kind==="finite"?Number.isFinite(i.data)||(c=this._getOrReturnCtx(i,c),U(c,{code:R.not_finite,message:f.message}),s.dirty()):se.assertNever(f);return{status:s.value,value:i.data}}gte(i,c){return this.setLimit("min",i,!0,w.toString(c))}gt(i,c){return this.setLimit("min",i,!1,w.toString(c))}lte(i,c){return this.setLimit("max",i,!0,w.toString(c))}lt(i,c){return this.setLimit("max",i,!1,w.toString(c))}setLimit(i,c,s,f){return new ka({...this._def,checks:[...this._def.checks,{kind:i,value:c,inclusive:s,message:w.toString(f)}]})}_addCheck(i){return new ka({...this._def,checks:[...this._def.checks,i]})}int(i){return this._addCheck({kind:"int",message:w.toString(i)})}positive(i){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString(i)})}negative(i){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString(i)})}multipleOf(i,c){return this._addCheck({kind:"multipleOf",value:i,message:w.toString(c)})}finite(i){return this._addCheck({kind:"finite",message:w.toString(i)})}safe(i){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(i)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(i)})}get minValue(){let i=null;for(const c of this._def.checks)c.kind==="min"&&(i===null||c.value>i)&&(i=c.value);return i}get maxValue(){let i=null;for(const c of this._def.checks)c.kind==="max"&&(i===null||c.value<i)&&(i=c.value);return i}get isInt(){return!!this._def.checks.find(i=>i.kind==="int"||i.kind==="multipleOf"&&se.isInteger(i.value))}get isFinite(){let i=null,c=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(c===null||s.value>c)&&(c=s.value):s.kind==="max"&&(i===null||s.value<i)&&(i=s.value)}return Number.isFinite(c)&&Number.isFinite(i)}}ka.create=r=>new ka({checks:[],typeName:Q.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...F(r)});class Ba extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(i){if(this._def.coerce)try{i.data=BigInt(i.data)}catch{return this._getInvalidInput(i)}if(this._getType(i)!==k.bigint)return this._getInvalidInput(i);let c;const s=new Ie;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?i.data<f.value:i.data<=f.value)&&(c=this._getOrReturnCtx(i,c),U(c,{code:R.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),s.dirty()):f.kind==="max"?(f.inclusive?i.data>f.value:i.data>=f.value)&&(c=this._getOrReturnCtx(i,c),U(c,{code:R.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),s.dirty()):f.kind==="multipleOf"?i.data%f.value!==BigInt(0)&&(c=this._getOrReturnCtx(i,c),U(c,{code:R.not_multiple_of,multipleOf:f.value,message:f.message}),s.dirty()):se.assertNever(f);return{status:s.value,value:i.data}}_getInvalidInput(i){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.bigint,received:c.parsedType}),J}gte(i,c){return this.setLimit("min",i,!0,w.toString(c))}gt(i,c){return this.setLimit("min",i,!1,w.toString(c))}lte(i,c){return this.setLimit("max",i,!0,w.toString(c))}lt(i,c){return this.setLimit("max",i,!1,w.toString(c))}setLimit(i,c,s,f){return new Ba({...this._def,checks:[...this._def.checks,{kind:i,value:c,inclusive:s,message:w.toString(f)}]})}_addCheck(i){return new Ba({...this._def,checks:[...this._def.checks,i]})}positive(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString(i)})}negative(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString(i)})}multipleOf(i,c){return this._addCheck({kind:"multipleOf",value:i,message:w.toString(c)})}get minValue(){let i=null;for(const c of this._def.checks)c.kind==="min"&&(i===null||c.value>i)&&(i=c.value);return i}get maxValue(){let i=null;for(const c of this._def.checks)c.kind==="max"&&(i===null||c.value<i)&&(i=c.value);return i}}Ba.create=r=>{var i;return new Ba({checks:[],typeName:Q.ZodBigInt,coerce:(i=r==null?void 0:r.coerce)!==null&&i!==void 0?i:!1,...F(r)})};class si extends P{_parse(i){if(this._def.coerce&&(i.data=!!i.data),this._getType(i)!==k.boolean){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.boolean,received:c.parsedType}),J}return at(i.data)}}si.create=r=>new si({typeName:Q.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...F(r)});class fl extends P{_parse(i){if(this._def.coerce&&(i.data=new Date(i.data)),this._getType(i)!==k.date){const f=this._getOrReturnCtx(i);return U(f,{code:R.invalid_type,expected:k.date,received:f.parsedType}),J}if(isNaN(i.data.getTime())){const f=this._getOrReturnCtx(i);return U(f,{code:R.invalid_date}),J}const c=new Ie;let s;for(const f of this._def.checks)f.kind==="min"?i.data.getTime()<f.value&&(s=this._getOrReturnCtx(i,s),U(s,{code:R.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),c.dirty()):f.kind==="max"?i.data.getTime()>f.value&&(s=this._getOrReturnCtx(i,s),U(s,{code:R.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),c.dirty()):se.assertNever(f);return{status:c.value,value:new Date(i.data.getTime())}}_addCheck(i){return new fl({...this._def,checks:[...this._def.checks,i]})}min(i,c){return this._addCheck({kind:"min",value:i.getTime(),message:w.toString(c)})}max(i,c){return this._addCheck({kind:"max",value:i.getTime(),message:w.toString(c)})}get minDate(){let i=null;for(const c of this._def.checks)c.kind==="min"&&(i===null||c.value>i)&&(i=c.value);return i!=null?new Date(i):null}get maxDate(){let i=null;for(const c of this._def.checks)c.kind==="max"&&(i===null||c.value<i)&&(i=c.value);return i!=null?new Date(i):null}}fl.create=r=>new fl({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:Q.ZodDate,...F(r)});class Yu extends P{_parse(i){if(this._getType(i)!==k.symbol){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.symbol,received:c.parsedType}),J}return at(i.data)}}Yu.create=r=>new Yu({typeName:Q.ZodSymbol,...F(r)});class ri extends P{_parse(i){if(this._getType(i)!==k.undefined){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.undefined,received:c.parsedType}),J}return at(i.data)}}ri.create=r=>new ri({typeName:Q.ZodUndefined,...F(r)});class fi extends P{_parse(i){if(this._getType(i)!==k.null){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.null,received:c.parsedType}),J}return at(i.data)}}fi.create=r=>new fi({typeName:Q.ZodNull,...F(r)});class tn extends P{constructor(){super(...arguments),this._any=!0}_parse(i){return at(i.data)}}tn.create=r=>new tn({typeName:Q.ZodAny,...F(r)});class sl extends P{constructor(){super(...arguments),this._unknown=!0}_parse(i){return at(i.data)}}sl.create=r=>new sl({typeName:Q.ZodUnknown,...F(r)});class fa extends P{_parse(i){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.never,received:c.parsedType}),J}}fa.create=r=>new fa({typeName:Q.ZodNever,...F(r)});class Gu extends P{_parse(i){if(this._getType(i)!==k.undefined){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.void,received:c.parsedType}),J}return at(i.data)}}Gu.create=r=>new Gu({typeName:Q.ZodVoid,...F(r)});class Zt extends P{_parse(i){const{ctx:c,status:s}=this._processInputParams(i),f=this._def;if(c.parsedType!==k.array)return U(c,{code:R.invalid_type,expected:k.array,received:c.parsedType}),J;if(f.exactLength!==null){const v=c.data.length>f.exactLength.value,b=c.data.length<f.exactLength.value;(v||b)&&(U(c,{code:v?R.too_big:R.too_small,minimum:b?f.exactLength.value:void 0,maximum:v?f.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:f.exactLength.message}),s.dirty())}if(f.minLength!==null&&c.data.length<f.minLength.value&&(U(c,{code:R.too_small,minimum:f.minLength.value,type:"array",inclusive:!0,exact:!1,message:f.minLength.message}),s.dirty()),f.maxLength!==null&&c.data.length>f.maxLength.value&&(U(c,{code:R.too_big,maximum:f.maxLength.value,type:"array",inclusive:!0,exact:!1,message:f.maxLength.message}),s.dirty()),c.common.async)return Promise.all([...c.data].map((v,b)=>f.type._parseAsync(new Vt(c,v,c.path,b)))).then(v=>Ie.mergeArray(s,v));const m=[...c.data].map((v,b)=>f.type._parseSync(new Vt(c,v,c.path,b)));return Ie.mergeArray(s,m)}get element(){return this._def.type}min(i,c){return new Zt({...this._def,minLength:{value:i,message:w.toString(c)}})}max(i,c){return new Zt({...this._def,maxLength:{value:i,message:w.toString(c)}})}length(i,c){return new Zt({...this._def,exactLength:{value:i,message:w.toString(c)}})}nonempty(i){return this.min(1,i)}}Zt.create=(r,i)=>new Zt({type:r,minLength:null,maxLength:null,exactLength:null,typeName:Q.ZodArray,...F(i)});function Il(r){if(r instanceof ze){const i={};for(const c in r.shape){const s=r.shape[c];i[c]=Xt.create(Il(s))}return new ze({...r._def,shape:()=>i})}else return r instanceof Zt?new Zt({...r._def,type:Il(r.element)}):r instanceof Xt?Xt.create(Il(r.unwrap())):r instanceof wa?wa.create(Il(r.unwrap())):r instanceof Qt?Qt.create(r.items.map(i=>Il(i))):r}class ze extends P{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const i=this._def.shape(),c=se.objectKeys(i);return this._cached={shape:i,keys:c}}_parse(i){if(this._getType(i)!==k.object){const T=this._getOrReturnCtx(i);return U(T,{code:R.invalid_type,expected:k.object,received:T.parsedType}),J}const{status:c,ctx:s}=this._processInputParams(i),{shape:f,keys:m}=this._getCached(),v=[];if(!(this._def.catchall instanceof fa&&this._def.unknownKeys==="strip"))for(const T in s.data)m.includes(T)||v.push(T);const b=[];for(const T of m){const g=f[T],j=s.data[T];b.push({key:{status:"valid",value:T},value:g._parse(new Vt(s,j,s.path,T)),alwaysSet:T in s.data})}if(this._def.catchall instanceof fa){const T=this._def.unknownKeys;if(T==="passthrough")for(const g of v)b.push({key:{status:"valid",value:g},value:{status:"valid",value:s.data[g]}});else if(T==="strict")v.length>0&&(U(s,{code:R.unrecognized_keys,keys:v}),c.dirty());else if(T!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const T=this._def.catchall;for(const g of v){const j=s.data[g];b.push({key:{status:"valid",value:g},value:T._parse(new Vt(s,j,s.path,g)),alwaysSet:g in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const T=[];for(const g of b){const j=await g.key,W=await g.value;T.push({key:j,value:W,alwaysSet:g.alwaysSet})}return T}).then(T=>Ie.mergeObjectSync(c,T)):Ie.mergeObjectSync(c,b)}get shape(){return this._def.shape()}strict(i){return w.errToObj,new ze({...this._def,unknownKeys:"strict",...i!==void 0?{errorMap:(c,s)=>{var f,m,v,b;const T=(v=(m=(f=this._def).errorMap)===null||m===void 0?void 0:m.call(f,c,s).message)!==null&&v!==void 0?v:s.defaultError;return c.code==="unrecognized_keys"?{message:(b=w.errToObj(i).message)!==null&&b!==void 0?b:T}:{message:T}}}:{}})}strip(){return new ze({...this._def,unknownKeys:"strip"})}passthrough(){return new ze({...this._def,unknownKeys:"passthrough"})}extend(i){return new ze({...this._def,shape:()=>({...this._def.shape(),...i})})}merge(i){return new ze({unknownKeys:i._def.unknownKeys,catchall:i._def.catchall,shape:()=>({...this._def.shape(),...i._def.shape()}),typeName:Q.ZodObject})}setKey(i,c){return this.augment({[i]:c})}catchall(i){return new ze({...this._def,catchall:i})}pick(i){const c={};return se.objectKeys(i).forEach(s=>{i[s]&&this.shape[s]&&(c[s]=this.shape[s])}),new ze({...this._def,shape:()=>c})}omit(i){const c={};return se.objectKeys(this.shape).forEach(s=>{i[s]||(c[s]=this.shape[s])}),new ze({...this._def,shape:()=>c})}deepPartial(){return Il(this)}partial(i){const c={};return se.objectKeys(this.shape).forEach(s=>{const f=this.shape[s];i&&!i[s]?c[s]=f:c[s]=f.optional()}),new ze({...this._def,shape:()=>c})}required(i){const c={};return se.objectKeys(this.shape).forEach(s=>{if(i&&!i[s])c[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof Xt;)f=f._def.innerType;c[s]=f}}),new ze({...this._def,shape:()=>c})}keyof(){return Gh(se.objectKeys(this.shape))}}ze.create=(r,i)=>new ze({shape:()=>r,unknownKeys:"strip",catchall:fa.create(),typeName:Q.ZodObject,...F(i)});ze.strictCreate=(r,i)=>new ze({shape:()=>r,unknownKeys:"strict",catchall:fa.create(),typeName:Q.ZodObject,...F(i)});ze.lazycreate=(r,i)=>new ze({shape:r,unknownKeys:"strip",catchall:fa.create(),typeName:Q.ZodObject,...F(i)});class oi extends P{_parse(i){const{ctx:c}=this._processInputParams(i),s=this._def.options;function f(m){for(const b of m)if(b.result.status==="valid")return b.result;for(const b of m)if(b.result.status==="dirty")return c.common.issues.push(...b.ctx.common.issues),b.result;const v=m.map(b=>new bt(b.ctx.common.issues));return U(c,{code:R.invalid_union,unionErrors:v}),J}if(c.common.async)return Promise.all(s.map(async m=>{const v={...c,common:{...c.common,issues:[]},parent:null};return{result:await m._parseAsync({data:c.data,path:c.path,parent:v}),ctx:v}})).then(f);{let m;const v=[];for(const T of s){const g={...c,common:{...c.common,issues:[]},parent:null},j=T._parseSync({data:c.data,path:c.path,parent:g});if(j.status==="valid")return j;j.status==="dirty"&&!m&&(m={result:j,ctx:g}),g.common.issues.length&&v.push(g.common.issues)}if(m)return c.common.issues.push(...m.ctx.common.issues),m.result;const b=v.map(T=>new bt(T));return U(c,{code:R.invalid_union,unionErrors:b}),J}}get options(){return this._def.options}}oi.create=(r,i)=>new oi({options:r,typeName:Q.ZodUnion,...F(i)});const Ha=r=>r instanceof mi?Ha(r.schema):r instanceof Ht?Ha(r.innerType()):r instanceof vi?[r.value]:r instanceof qa?r.options:r instanceof yi?se.objectValues(r.enum):r instanceof pi?Ha(r._def.innerType):r instanceof ri?[void 0]:r instanceof fi?[null]:r instanceof Xt?[void 0,...Ha(r.unwrap())]:r instanceof wa?[null,...Ha(r.unwrap())]:r instanceof Ar||r instanceof _i?Ha(r.unwrap()):r instanceof gi?Ha(r._def.innerType):[];class Qu extends P{_parse(i){const{ctx:c}=this._processInputParams(i);if(c.parsedType!==k.object)return U(c,{code:R.invalid_type,expected:k.object,received:c.parsedType}),J;const s=this.discriminator,f=c.data[s],m=this.optionsMap.get(f);return m?c.common.async?m._parseAsync({data:c.data,path:c.path,parent:c}):m._parseSync({data:c.data,path:c.path,parent:c}):(U(c,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(i,c,s){const f=new Map;for(const m of c){const v=Ha(m.shape[i]);if(!v.length)throw new Error(`A discriminator value for key \`${i}\` could not be extracted from all schema options`);for(const b of v){if(f.has(b))throw new Error(`Discriminator property ${String(i)} has duplicate value ${String(b)}`);f.set(b,m)}}return new Qu({typeName:Q.ZodDiscriminatedUnion,discriminator:i,options:c,optionsMap:f,...F(s)})}}function br(r,i){const c=ra(r),s=ra(i);if(r===i)return{valid:!0,data:r};if(c===k.object&&s===k.object){const f=se.objectKeys(i),m=se.objectKeys(r).filter(b=>f.indexOf(b)!==-1),v={...r,...i};for(const b of m){const T=br(r[b],i[b]);if(!T.valid)return{valid:!1};v[b]=T.data}return{valid:!0,data:v}}else if(c===k.array&&s===k.array){if(r.length!==i.length)return{valid:!1};const f=[];for(let m=0;m<r.length;m++){const v=r[m],b=i[m],T=br(v,b);if(!T.valid)return{valid:!1};f.push(T.data)}return{valid:!0,data:f}}else return c===k.date&&s===k.date&&+r==+i?{valid:!0,data:r}:{valid:!1}}class di extends P{_parse(i){const{status:c,ctx:s}=this._processInputParams(i),f=(m,v)=>{if(gr(m)||gr(v))return J;const b=br(m.value,v.value);return b.valid?((_r(m)||_r(v))&&c.dirty(),{status:c.value,value:b.data}):(U(s,{code:R.invalid_intersection_types}),J)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([m,v])=>f(m,v)):f(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}di.create=(r,i,c)=>new di({left:r,right:i,typeName:Q.ZodIntersection,...F(c)});class Qt extends P{_parse(i){const{status:c,ctx:s}=this._processInputParams(i);if(s.parsedType!==k.array)return U(s,{code:R.invalid_type,expected:k.array,received:s.parsedType}),J;if(s.data.length<this._def.items.length)return U(s,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&s.data.length>this._def.items.length&&(U(s,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),c.dirty());const f=[...s.data].map((m,v)=>{const b=this._def.items[v]||this._def.rest;return b?b._parse(new Vt(s,m,s.path,v)):null}).filter(m=>!!m);return s.common.async?Promise.all(f).then(m=>Ie.mergeArray(c,m)):Ie.mergeArray(c,f)}get items(){return this._def.items}rest(i){return new Qt({...this._def,rest:i})}}Qt.create=(r,i)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qt({items:r,typeName:Q.ZodTuple,rest:null,...F(i)})};class hi extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:c,ctx:s}=this._processInputParams(i);if(s.parsedType!==k.object)return U(s,{code:R.invalid_type,expected:k.object,received:s.parsedType}),J;const f=[],m=this._def.keyType,v=this._def.valueType;for(const b in s.data)f.push({key:m._parse(new Vt(s,b,s.path,b)),value:v._parse(new Vt(s,s.data[b],s.path,b)),alwaysSet:b in s.data});return s.common.async?Ie.mergeObjectAsync(c,f):Ie.mergeObjectSync(c,f)}get element(){return this._def.valueType}static create(i,c,s){return c instanceof P?new hi({keyType:i,valueType:c,typeName:Q.ZodRecord,...F(s)}):new hi({keyType:Ut.create(),valueType:i,typeName:Q.ZodRecord,...F(c)})}}class Xu extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:c,ctx:s}=this._processInputParams(i);if(s.parsedType!==k.map)return U(s,{code:R.invalid_type,expected:k.map,received:s.parsedType}),J;const f=this._def.keyType,m=this._def.valueType,v=[...s.data.entries()].map(([b,T],g)=>({key:f._parse(new Vt(s,b,s.path,[g,"key"])),value:m._parse(new Vt(s,T,s.path,[g,"value"]))}));if(s.common.async){const b=new Map;return Promise.resolve().then(async()=>{for(const T of v){const g=await T.key,j=await T.value;if(g.status==="aborted"||j.status==="aborted")return J;(g.status==="dirty"||j.status==="dirty")&&c.dirty(),b.set(g.value,j.value)}return{status:c.value,value:b}})}else{const b=new Map;for(const T of v){const g=T.key,j=T.value;if(g.status==="aborted"||j.status==="aborted")return J;(g.status==="dirty"||j.status==="dirty")&&c.dirty(),b.set(g.value,j.value)}return{status:c.value,value:b}}}}Xu.create=(r,i,c)=>new Xu({valueType:i,keyType:r,typeName:Q.ZodMap,...F(c)});class ol extends P{_parse(i){const{status:c,ctx:s}=this._processInputParams(i);if(s.parsedType!==k.set)return U(s,{code:R.invalid_type,expected:k.set,received:s.parsedType}),J;const f=this._def;f.minSize!==null&&s.data.size<f.minSize.value&&(U(s,{code:R.too_small,minimum:f.minSize.value,type:"set",inclusive:!0,exact:!1,message:f.minSize.message}),c.dirty()),f.maxSize!==null&&s.data.size>f.maxSize.value&&(U(s,{code:R.too_big,maximum:f.maxSize.value,type:"set",inclusive:!0,exact:!1,message:f.maxSize.message}),c.dirty());const m=this._def.valueType;function v(T){const g=new Set;for(const j of T){if(j.status==="aborted")return J;j.status==="dirty"&&c.dirty(),g.add(j.value)}return{status:c.value,value:g}}const b=[...s.data.values()].map((T,g)=>m._parse(new Vt(s,T,s.path,g)));return s.common.async?Promise.all(b).then(T=>v(T)):v(b)}min(i,c){return new ol({...this._def,minSize:{value:i,message:w.toString(c)}})}max(i,c){return new ol({...this._def,maxSize:{value:i,message:w.toString(c)}})}size(i,c){return this.min(i,c).max(i,c)}nonempty(i){return this.min(1,i)}}ol.create=(r,i)=>new ol({valueType:r,minSize:null,maxSize:null,typeName:Q.ZodSet,...F(i)});class Pl extends P{constructor(){super(...arguments),this.validate=this.implement}_parse(i){const{ctx:c}=this._processInputParams(i);if(c.parsedType!==k.function)return U(c,{code:R.invalid_type,expected:k.function,received:c.parsedType}),J;function s(b,T){return qu({data:b,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,Bu(),en].filter(g=>!!g),issueData:{code:R.invalid_arguments,argumentsError:T}})}function f(b,T){return qu({data:b,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,Bu(),en].filter(g=>!!g),issueData:{code:R.invalid_return_type,returnTypeError:T}})}const m={errorMap:c.common.contextualErrorMap},v=c.data;if(this._def.returns instanceof an){const b=this;return at(async function(...T){const g=new bt([]),j=await b._def.args.parseAsync(T,m).catch(ee=>{throw g.addIssue(s(T,ee)),g}),W=await Reflect.apply(v,this,j);return await b._def.returns._def.type.parseAsync(W,m).catch(ee=>{throw g.addIssue(f(W,ee)),g})})}else{const b=this;return at(function(...T){const g=b._def.args.safeParse(T,m);if(!g.success)throw new bt([s(T,g.error)]);const j=Reflect.apply(v,this,g.data),W=b._def.returns.safeParse(j,m);if(!W.success)throw new bt([f(j,W.error)]);return W.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...i){return new Pl({...this._def,args:Qt.create(i).rest(sl.create())})}returns(i){return new Pl({...this._def,returns:i})}implement(i){return this.parse(i)}strictImplement(i){return this.parse(i)}static create(i,c,s){return new Pl({args:i||Qt.create([]).rest(sl.create()),returns:c||sl.create(),typeName:Q.ZodFunction,...F(s)})}}class mi extends P{get schema(){return this._def.getter()}_parse(i){const{ctx:c}=this._processInputParams(i);return this._def.getter()._parse({data:c.data,path:c.path,parent:c})}}mi.create=(r,i)=>new mi({getter:r,typeName:Q.ZodLazy,...F(i)});class vi extends P{_parse(i){if(i.data!==this._def.value){const c=this._getOrReturnCtx(i);return U(c,{received:c.data,code:R.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:i.data}}get value(){return this._def.value}}vi.create=(r,i)=>new vi({value:r,typeName:Q.ZodLiteral,...F(i)});function Gh(r,i){return new qa({values:r,typeName:Q.ZodEnum,...F(i)})}class qa extends P{constructor(){super(...arguments),ni.set(this,void 0)}_parse(i){if(typeof i.data!="string"){const c=this._getOrReturnCtx(i),s=this._def.values;return U(c,{expected:se.joinValues(s),received:c.parsedType,code:R.invalid_type}),J}if(Lu(this,ni)||qh(this,ni,new Set(this._def.values)),!Lu(this,ni).has(i.data)){const c=this._getOrReturnCtx(i),s=this._def.values;return U(c,{received:c.data,code:R.invalid_enum_value,options:s}),J}return at(i.data)}get options(){return this._def.values}get enum(){const i={};for(const c of this._def.values)i[c]=c;return i}get Values(){const i={};for(const c of this._def.values)i[c]=c;return i}get Enum(){const i={};for(const c of this._def.values)i[c]=c;return i}extract(i,c=this._def){return qa.create(i,{...this._def,...c})}exclude(i,c=this._def){return qa.create(this.options.filter(s=>!i.includes(s)),{...this._def,...c})}}ni=new WeakMap;qa.create=Gh;class yi extends P{constructor(){super(...arguments),ii.set(this,void 0)}_parse(i){const c=se.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(i);if(s.parsedType!==k.string&&s.parsedType!==k.number){const f=se.objectValues(c);return U(s,{expected:se.joinValues(f),received:s.parsedType,code:R.invalid_type}),J}if(Lu(this,ii)||qh(this,ii,new Set(se.getValidEnumValues(this._def.values))),!Lu(this,ii).has(i.data)){const f=se.objectValues(c);return U(s,{received:s.data,code:R.invalid_enum_value,options:f}),J}return at(i.data)}get enum(){return this._def.values}}ii=new WeakMap;yi.create=(r,i)=>new yi({values:r,typeName:Q.ZodNativeEnum,...F(i)});class an extends P{unwrap(){return this._def.type}_parse(i){const{ctx:c}=this._processInputParams(i);if(c.parsedType!==k.promise&&c.common.async===!1)return U(c,{code:R.invalid_type,expected:k.promise,received:c.parsedType}),J;const s=c.parsedType===k.promise?c.data:Promise.resolve(c.data);return at(s.then(f=>this._def.type.parseAsync(f,{path:c.path,errorMap:c.common.contextualErrorMap})))}}an.create=(r,i)=>new an({type:r,typeName:Q.ZodPromise,...F(i)});class Ht extends P{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(i){const{status:c,ctx:s}=this._processInputParams(i),f=this._def.effect||null,m={addIssue:v=>{U(s,v),v.fatal?c.abort():c.dirty()},get path(){return s.path}};if(m.addIssue=m.addIssue.bind(m),f.type==="preprocess"){const v=f.transform(s.data,m);if(s.common.async)return Promise.resolve(v).then(async b=>{if(c.value==="aborted")return J;const T=await this._def.schema._parseAsync({data:b,path:s.path,parent:s});return T.status==="aborted"?J:T.status==="dirty"||c.value==="dirty"?wu(T.value):T});{if(c.value==="aborted")return J;const b=this._def.schema._parseSync({data:v,path:s.path,parent:s});return b.status==="aborted"?J:b.status==="dirty"||c.value==="dirty"?wu(b.value):b}}if(f.type==="refinement"){const v=b=>{const T=f.refinement(b,m);if(s.common.async)return Promise.resolve(T);if(T instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return b};if(s.common.async===!1){const b=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return b.status==="aborted"?J:(b.status==="dirty"&&c.dirty(),v(b.value),{status:c.value,value:b.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(b=>b.status==="aborted"?J:(b.status==="dirty"&&c.dirty(),v(b.value).then(()=>({status:c.value,value:b.value}))))}if(f.type==="transform")if(s.common.async===!1){const v=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!rl(v))return v;const b=f.transform(v.value,m);if(b instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:c.value,value:b}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(v=>rl(v)?Promise.resolve(f.transform(v.value,m)).then(b=>({status:c.value,value:b})):v);se.assertNever(f)}}Ht.create=(r,i,c)=>new Ht({schema:r,typeName:Q.ZodEffects,effect:i,...F(c)});Ht.createWithPreprocess=(r,i,c)=>new Ht({schema:i,effect:{type:"preprocess",transform:r},typeName:Q.ZodEffects,...F(c)});class Xt extends P{_parse(i){return this._getType(i)===k.undefined?at(void 0):this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}Xt.create=(r,i)=>new Xt({innerType:r,typeName:Q.ZodOptional,...F(i)});class wa extends P{_parse(i){return this._getType(i)===k.null?at(null):this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}wa.create=(r,i)=>new wa({innerType:r,typeName:Q.ZodNullable,...F(i)});class pi extends P{_parse(i){const{ctx:c}=this._processInputParams(i);let s=c.data;return c.parsedType===k.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:c.path,parent:c})}removeDefault(){return this._def.innerType}}pi.create=(r,i)=>new pi({innerType:r,typeName:Q.ZodDefault,defaultValue:typeof i.default=="function"?i.default:()=>i.default,...F(i)});class gi extends P{_parse(i){const{ctx:c}=this._processInputParams(i),s={...c,common:{...c.common,issues:[]}},f=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ci(f)?f.then(m=>({status:"valid",value:m.status==="valid"?m.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})})):{status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}gi.create=(r,i)=>new gi({innerType:r,typeName:Q.ZodCatch,catchValue:typeof i.catch=="function"?i.catch:()=>i.catch,...F(i)});class Vu extends P{_parse(i){if(this._getType(i)!==k.nan){const c=this._getOrReturnCtx(i);return U(c,{code:R.invalid_type,expected:k.nan,received:c.parsedType}),J}return{status:"valid",value:i.data}}}Vu.create=r=>new Vu({typeName:Q.ZodNaN,...F(r)});const _y=Symbol("zod_brand");class Ar extends P{_parse(i){const{ctx:c}=this._processInputParams(i),s=c.data;return this._def.type._parse({data:s,path:c.path,parent:c})}unwrap(){return this._def.type}}class bi extends P{_parse(i){const{status:c,ctx:s}=this._processInputParams(i);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?J:f.status==="dirty"?(c.dirty(),wu(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const f=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?J:f.status==="dirty"?(c.dirty(),{status:"dirty",value:f.value}):this._def.out._parseSync({data:f.value,path:s.path,parent:s})}}static create(i,c){return new bi({in:i,out:c,typeName:Q.ZodPipeline})}}class _i extends P{_parse(i){const c=this._def.innerType._parse(i),s=f=>(rl(f)&&(f.value=Object.freeze(f.value)),f);return ci(c)?c.then(f=>s(f)):s(c)}unwrap(){return this._def.innerType}}_i.create=(r,i)=>new _i({innerType:r,typeName:Q.ZodReadonly,...F(i)});function Uh(r,i){const c=typeof r=="function"?r(i):typeof r=="string"?{message:r}:r;return typeof c=="string"?{message:c}:c}function Xh(r,i={},c){return r?tn.create().superRefine((s,f)=>{var m,v;const b=r(s);if(b instanceof Promise)return b.then(T=>{var g,j;if(!T){const W=Uh(i,s),ee=(j=(g=W.fatal)!==null&&g!==void 0?g:c)!==null&&j!==void 0?j:!0;f.addIssue({code:"custom",...W,fatal:ee})}});if(!b){const T=Uh(i,s),g=(v=(m=T.fatal)!==null&&m!==void 0?m:c)!==null&&v!==void 0?v:!0;f.addIssue({code:"custom",...T,fatal:g})}}):tn.create()}const by={object:ze.lazycreate};var Q;(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"})(Q||(Q={}));const Sy=(r,i={message:`Input not instance of ${r.name}`})=>Xh(c=>c instanceof r,i),Vh=Ut.create,Qh=ka.create,Ty=Vu.create,Ay=Ba.create,Kh=si.create,xy=fl.create,Ey=Yu.create,Ny=ri.create,Oy=fi.create,My=tn.create,zy=sl.create,Cy=fa.create,Dy=Gu.create,Ry=Zt.create,jy=ze.create,Uy=ze.strictCreate,Zy=oi.create,Hy=Qu.create,ky=di.create,By=Qt.create,qy=hi.create,wy=Xu.create,Ly=ol.create,Yy=Pl.create,Gy=mi.create,Xy=vi.create,Vy=qa.create,Qy=yi.create,Ky=an.create,Zh=Ht.create,Jy=Xt.create,Wy=wa.create,$y=Ht.createWithPreprocess,Fy=bi.create,Iy=()=>Vh().optional(),Py=()=>Qh().optional(),ep=()=>Kh().optional(),tp={string:r=>Ut.create({...r,coerce:!0}),number:r=>ka.create({...r,coerce:!0}),boolean:r=>si.create({...r,coerce:!0}),bigint:r=>Ba.create({...r,coerce:!0}),date:r=>fl.create({...r,coerce:!0})},ap=J;var jt=Object.freeze({__proto__:null,defaultErrorMap:en,setErrorMap:$0,getErrorMap:Bu,makeIssue:qu,EMPTY_PATH:F0,addIssueToContext:U,ParseStatus:Ie,INVALID:J,DIRTY:wu,OK:at,isAborted:gr,isDirty:_r,isValid:rl,isAsync:ci,get util(){return se},get objectUtil(){return pr},ZodParsedType:k,getParsedType:ra,ZodType:P,datetimeRegex:Yh,ZodString:Ut,ZodNumber:ka,ZodBigInt:Ba,ZodBoolean:si,ZodDate:fl,ZodSymbol:Yu,ZodUndefined:ri,ZodNull:fi,ZodAny:tn,ZodUnknown:sl,ZodNever:fa,ZodVoid:Gu,ZodArray:Zt,ZodObject:ze,ZodUnion:oi,ZodDiscriminatedUnion:Qu,ZodIntersection:di,ZodTuple:Qt,ZodRecord:hi,ZodMap:Xu,ZodSet:ol,ZodFunction:Pl,ZodLazy:mi,ZodLiteral:vi,ZodEnum:qa,ZodNativeEnum:yi,ZodPromise:an,ZodEffects:Ht,ZodTransformer:Ht,ZodOptional:Xt,ZodNullable:wa,ZodDefault:pi,ZodCatch:gi,ZodNaN:Vu,BRAND:_y,ZodBranded:Ar,ZodPipeline:bi,ZodReadonly:_i,custom:Xh,Schema:P,ZodSchema:P,late:by,get ZodFirstPartyTypeKind(){return Q},coerce:tp,any:My,array:Ry,bigint:Ay,boolean:Kh,date:xy,discriminatedUnion:Hy,effect:Zh,enum:Vy,function:Yy,instanceof:Sy,intersection:ky,lazy:Gy,literal:Xy,map:wy,nan:Ty,nativeEnum:Qy,never:Cy,null:Oy,nullable:Wy,number:Qh,object:jy,oboolean:ep,onumber:Py,optional:Jy,ostring:Iy,pipeline:Fy,preprocess:$y,promise:Ky,record:qy,set:Ly,strictObject:Uy,string:Vh,symbol:Ey,transformer:Zh,tuple:By,undefined:Ny,union:Zy,unknown:zy,void:Dy,NEVER:ap,ZodIssueCode:R,quotelessJson:W0,ZodError:bt});function lp(r){return{...r,type:"bridge"}}const np=jt.object({type:jt.literal("client"),telemetrySdkVersion:jt.string(),applicationName:jt.string(),applicationSpecifier:jt.string(),applicationInstance:jt.string(),name:jt.string(),data:jt.any(),responseName:jt.string().optional(),subscriptionName:jt.string().optional(),unsubscribeName:jt.string().optional()});class ip{bind(){this._windowMessageHandler=i=>{var c;if(i.source===window)return;const s=np.safeParse(i.data);if(!s.success)return;const f=s.data;(c=this.onMessage)===null||c===void 0||c.call(this,f)},window.addEventListener("message",this._windowMessageHandler)}unbind(){this._windowMessageHandler&&window.removeEventListener("message",this._windowMessageHandler)}send(i){for(let c=0;c<window.frames.length;c+=1)window.frames[c].postMessage(lp(i),"*")}}const Jh=new Map,Wh=new Map,$h=new Map,Fh=new Map,Hu=new Map;function ui(r,i){const c={application:Jh,instance:Wh,device:$h,shared:Fh}[r];if(!c)throw new Error(`Unknown store kind: ${r}`);let s=c.get(i);return s||(s=new Map,c.set(i,s)),s}up();function li(r,i){switch(i.name){case"store.get":r.send({name:i.responseName,data:{success:!0,value:ui(i.data.kind,i.data.namespace).get(i.data.key)}});break;case"store.set":{ui(i.data.kind,i.data.namespace).set(i.data.key,i.data.value),Hh();const c=Hu.get(i.data.key);if(c)for(const s of c)r.send({name:s,data:i.data.value});r.send({name:i.responseName,data:{success:!0}});break}case"store.subscribe":{const c=ui(i.data.kind,i.data.namespace).get(i.data.key);let s=Hu.get(i.data.key);s||(s=new Set,Hu.set(i.data.key,s)),s.add(i.subscriptionName),r.send({name:i.subscriptionName,data:c}),r.send({name:i.responseName,data:{success:!0}});break}case"store.unsubscribe":for(const c of Hu.values())c.delete(i.unsubscribeName);break;case"store.delete":{ui(i.data.kind,i.data.namespace).delete(i.data.key),Hh(),r.send({name:i.responseName,data:{success:!0}});break}}}function up(){const r=localStorage.getItem("tos-dev-store");if(!r)return;let i;try{i=JSON.parse(r)}catch{localStorage.removeItem("tos-dev-store");return}for(const[c,s]of Object.entries(i)){const[f,m,...v]=c.split("."),b=v.join(".");!f||!m||!b||ui({a:"application",i:"instance",d:"device",s:"shared"}[f],m).set(b,s)}}function Hh(){const r={};for(const[i,c]of Jh.entries())for(const[s,f]of c.entries())r[`a.${i}.${s}`]=f;for(const[i,c]of Wh.entries())for(const[s,f]of c.entries())r[`i.${i}.${s}`]=f;for(const[i,c]of $h.entries())for(const[s,f]of c.entries())r[`d.${i}.${s}`]=f;for(const[i,c]of Fh.entries())for(const[s,f]of c.entries())r[`s.${i}.${s}`]=f;localStorage.setItem("tos-dev-store",JSON.stringify(r))}class cp{constructor(i){this._bridge=i,this._storeSubscriptions=new Map,this._subscriptionStates=new Map,this._handlers={"devices.getInformation":c=>this._handleDevicesGetInformation(c),"environment.getColorScheme":c=>this._handleEnvironmentGetColorScheme(c),"accounts.getCurrent":c=>this._handleAccountsGetCurrent(c),"users.getCurrent":c=>this._handleUsersGetCurrent(c),"applications.getAllByMountPoint":c=>this._handleApplicationsGetAllByMountPoint(c),"applications.getByName":c=>this._handleApplicationsGetByName(c),"applications.setDependencies":c=>this._handleApplicationsSetDependencies(c),"mediaFolders.getAll":c=>this._handleMediaFoldersGetAll(c),"media.getAllByFolderId":c=>this._handleMediaGetAllByFolderId(c),"media.getAllByTag":c=>this._handleMediaGetAllByTag(c),"media.getById":c=>this._handleMediaGetById(c),"weather.getConditions":c=>this._handleWeatherGetConditions(c),"weather.getDailyForecast":c=>this._handleWeatherGetDailyForecast(c),"weather.getHourlyForecast":c=>this._handleWeatherGetHourlyForecast(c),"weather.getAccuWeatherConditions":c=>this._handleWeatherGetAccuWeatherConditions(c),"weather.getAccuWeatherDailyForecast":c=>this._handleWeatherGetAccuWeatherDailyForecast(c),"weather.getAccuWeatherHourlyForecast":c=>this._handleWeatherGetAccuWeatherHourlyForecast(c),"proxy.fetch":c=>this._handleProxyFetch(c),"playlist.nextPage":c=>this._handlePlaylistNextPage(c),"playlist.previousPage":c=>this._handlePlaylistPreviousPage(c),"playlist.setDuration":c=>this._handlePlaylistSetDuration(c),"overrides.setOverride":c=>this._handleOverridesSetOverride(c),"overrides.clearOverride":c=>this._handleOverridesClearOverride(c),"store.set":c=>this._handleStoreSet(c),"store.get":c=>this._handleStoreGet(c),"store.subscribe":c=>this._handleStoreSubscribe(c),"store.unsubscribe":c=>this._handleStoreUnsubscribe(c),"store.delete":c=>this._handleStoreDelete(c),"websiteapp.injectScriptToIframe":c=>this._handleWebsiteAppInjectScriptToIframe(c),"report.playback":c=>this._handleReportPlayback(c),"report.campaignView":c=>this._handleReportCampaignView(c),"report.adPlayed":c=>this._handleReportAdPlayed(c),"report.deviceLog":c=>this._handleReportDeviceLog(c),"campaigns.getNextAd":c=>this._handleCampaignsGetNextAd(c)}}handleMessage(i){var c;const s=this._handlers[i.name];if(s)return(c=s(i))===null||c===void 0?void 0:c.catch(f=>console.error("Error handling client message",{message:i,err:f}));console.warn(`No handler for client message ${i.name}`)}_handleDevicesGetInformation(i){const c=ue.get("device");this._bridge.send({name:i.responseName,data:{success:!0,deviceInformation:{deviceSerialNumber:c.serialNumber||"DEV-123456",deviceModel:c.model||"Development Device",deviceManufacturer:c.manufacturer||"TelemetryOS",devicePlatform:c.platform||"linux"}}})}_handleEnvironmentGetColorScheme(i){const c=ue.get("environment.colorScheme");this._bridge.send({name:i.responseName,data:{colorScheme:c||"dark"}})}_handleAccountsGetCurrent(i){const c=ue.get("account");this._bridge.send({name:i.responseName,data:{success:!0,account:c}})}_handleUsersGetCurrent(i){const c=ue.get("user");this._bridge.send({name:i.responseName,data:{success:!0,user:c}})}_handleApplicationsGetAllByMountPoint(i){var c;const s=ue.get("applications")||[],f=(c=i.data)===null||c===void 0?void 0:c.mountPoint,m=s.filter(v=>{var b;return(b=v.mountPoints)===null||b===void 0?void 0:b[f]});this._bridge.send({name:i.responseName,data:{applications:m}})}_handleApplicationsGetByName(i){var c;const s=ue.get("applications")||[],f=(c=i.data)===null||c===void 0?void 0:c.name,m=s.find(v=>v.name===f);this._bridge.send({name:i.responseName,data:{application:m||null}})}_handleApplicationsSetDependencies(i){var c;const s=((c=i.data)===null||c===void 0?void 0:c.applicationSpecifiers)||[];this._bridge.send({name:i.responseName,data:{ready:s,unavailable:[]}})}_handleMediaFoldersGetAll(i){const c=ue.get("mediaFolders")||[];this._bridge.send({name:i.responseName,data:{folders:c}})}_handleMediaGetAllByFolderId(i){var c;const s=(c=i.data)===null||c===void 0?void 0:c.folderId,m=(ue.get("mediaContents")||[]).filter(v=>v.contentFolderId===s);this._bridge.send({name:i.responseName,data:{contents:m}})}_handleMediaGetAllByTag(i){var c;const s=(c=i.data)===null||c===void 0?void 0:c.tagName,m=(ue.get("mediaContents")||[]).filter(v=>{var b;return(b=v.tags)===null||b===void 0?void 0:b.includes(s)});this._bridge.send({name:i.responseName,data:{contents:m}})}_handleMediaGetById(i){var c;const s=(c=i.data)===null||c===void 0?void 0:c.id,m=(ue.get("mediaContents")||[]).find(v=>v.id===s);this._bridge.send({name:i.responseName,data:{content:m||null}})}_handleWeatherGetConditions(i){const c=ue.get("weather");this._bridge.send({name:i.responseName,data:{success:!0,conditions:(c==null?void 0:c.conditions)||null}})}_handleWeatherGetDailyForecast(i){const c=ue.get("weather");this._bridge.send({name:i.responseName,data:{success:!0,forecast:(c==null?void 0:c.dailyForecast)||[]}})}_handleWeatherGetHourlyForecast(i){const c=ue.get("weather");this._bridge.send({name:i.responseName,data:{success:!0,forecast:(c==null?void 0:c.hourlyForecast)||[]}})}_handleWeatherGetAccuWeatherConditions(i){const c=ue.get("weather");this._bridge.send({name:i.responseName,data:{success:!0,data:(c==null?void 0:c.accuWeatherConditions)||{}}})}_handleWeatherGetAccuWeatherDailyForecast(i){const c=ue.get("weather");this._bridge.send({name:i.responseName,data:{success:!0,data:(c==null?void 0:c.accuWeatherDailyForecast)||{}}})}_handleWeatherGetAccuWeatherHourlyForecast(i){const c=ue.get("weather");this._bridge.send({name:i.responseName,data:{success:!0,data:(c==null?void 0:c.accuWeatherHourlyForecast)||{}}})}async _handleProxyFetch(i){var c,s,f,m;const v=(c=i.data)===null||c===void 0?void 0:c.url,b=((s=i.data)===null||s===void 0?void 0:s.method)||"GET";console.info("Proxy fetch requested",{url:v,method:b});try{const g=await(await fetch("/__dev_proxy__",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:v,method:b,headers:(f=i.data)===null||f===void 0?void 0:f.headers,body:(m=i.data)===null||m===void 0?void 0:m.body})})).json();this._bridge.send({name:i.responseName,data:g})}catch(T){console.error(T),this._bridge.send({name:i.responseName,data:{success:!1,errorMessage:`Error accessing the proxy: ${T}`,errorCause:T.cause?String(T.cause):void 0}})}}_handlePlaylistNextPage(i){console.info("Playlist next page requested"),this._bridge.send({name:i.responseName,data:{success:!0}})}_handlePlaylistPreviousPage(i){console.info("Playlist previous page requested"),this._bridge.send({name:i.responseName,data:{success:!0}})}_handlePlaylistSetDuration(i){var c;const s=(c=i.data)===null||c===void 0?void 0:c.duration;console.info("Playlist set duration requested",{duration:s}),this._bridge.send({name:i.responseName,data:{success:!0}})}_handleOverridesSetOverride(i){var c;const s=(c=i.data)===null||c===void 0?void 0:c.name;console.info("Override set requested",{name:s});const f=ue.get("overrides")||[];f.includes(s)||ue.set("overrides",[...f,s]),this._bridge.send({name:i.responseName,data:{success:!0}})}_handleOverridesClearOverride(i){var c;const s=(c=i.data)===null||c===void 0?void 0:c.name;console.info("Override clear requested",{name:s});const f=ue.get("overrides")||[];ue.set("overrides",f.filter(m=>m!==s)),this._bridge.send({name:i.responseName,data:{success:!0}})}_handleWebsiteAppInjectScriptToIframe(i){var c;console.info("Script injection requested",{iframeId:(c=i.data)===null||c===void 0?void 0:c.iframeId}),this._bridge.send({name:i.responseName,data:{success:!1}})}_handleReportPlayback(i){console.info("Playback report received",i.data),this._bridge.send({name:i.responseName,data:{success:!0}})}_handleReportCampaignView(i){console.info("Campaign view report received",i.data),this._bridge.send({name:i.responseName,data:{success:!0}})}_handleReportAdPlayed(i){console.info("Ad played report received",i.data),this._bridge.send({name:i.responseName,data:{success:!0}})}_handleReportDeviceLog(i){console.info("Device log report received",i.data),this._bridge.send({name:i.responseName,data:{success:!0}})}_handleCampaignsGetNextAd(i){this._bridge.send({name:i.responseName,data:{success:!1}})}_handleStoreSet(i){li(this._bridge,i)}_handleStoreGet(i){li(this._bridge,i)}_handleStoreSubscribe(i){li(this._bridge,i)}_handleStoreUnsubscribe(i){li(this._bridge,i)}_handleStoreDelete(i){li(this._bridge,i)}}let cl=null,ku=null;function sp(){cl=new ip,ku=new cp(cl),cl.onMessage=r=>rp(r),cl.bind()}function rp(r){console.log("Received message from application:",r);const i=cl.send;cl.send=(...c)=>{console.log("Sending message to application:",...c),i.apply(cl,c)},ku==null||ku.handleMessage(r)}sp();z0.createRoot(document.querySelector("#app")).render(z.jsx(J0,{}));