@xpert-ai/chatkit-powerpoint-addin 0.1.1 → 0.1.3
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.
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
var _p=Object.defineProperty;var Xd=f=>{throw TypeError(f)};var Ap=(f,u,c)=>u in f?_p(f,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[u]=c;var St=(f,u,c)=>Ap(f,typeof u!="symbol"?u+"":u,c),Gd=(f,u,c)=>u.has(f)||Xd("Cannot "+c);var zu=(f,u,c)=>(Gd(f,u,"read from private field"),c?c.call(f):u.get(f)),rf=(f,u,c)=>u.has(f)?Xd("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(f):u.set(f,c),hf=(f,u,c,s)=>(Gd(f,u,"write to private field"),s?s.call(f,c):u.set(f,c),c);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))s(h);new MutationObserver(h=>{for(const d of h)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&s(y)}).observe(document,{childList:!0,subtree:!0});function c(h){const d={};return h.integrity&&(d.integrity=h.integrity),h.referrerPolicy&&(d.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?d.credentials="include":h.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(h){if(h.ep)return;h.ep=!0;const d=c(h);fetch(h.href,d)}})();function Mp(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var df={exports:{}},ei={};/**
|
|
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 Qd;function Op(){if(Qd)return ei;Qd=1;var f=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(s,h,d){var y=null;if(d!==void 0&&(y=""+d),h.key!==void 0&&(y=""+h.key),"key"in h){d={};for(var v in h)v!=="key"&&(d[v]=h[v])}else d=h;return h=d.ref,{$$typeof:f,type:s,key:y,ref:h!==void 0?h:null,props:d}}return ei.Fragment=u,ei.jsx=c,ei.jsxs=c,ei}var Zd;function zp(){return Zd||(Zd=1,df.exports=Op()),df.exports}var Pt=zp(),mf={exports:{}},Z={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.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 Vd;function xp(){if(Vd)return Z;Vd=1;var f=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),et=Symbol.iterator;function mt(p){return p===null||typeof p!="object"?null:(p=et&&p[et]||p["@@iterator"],typeof p=="function"?p:null)}var Et={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ct=Object.assign,Xt={};function Mt(p,D,U){this.props=p,this.context=D,this.refs=Xt,this.updater=U||Et}Mt.prototype.isReactComponent={},Mt.prototype.setState=function(p,D){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,D,"setState")},Mt.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function kt(){}kt.prototype=Mt.prototype;function Bt(p,D,U){this.props=p,this.context=D,this.refs=Xt,this.updater=U||Et}var te=Bt.prototype=new kt;te.constructor=Bt,Ct(te,Mt.prototype),te.isPureReactComponent=!0;var ee=Array.isArray;function Lt(){}var k={H:null,A:null,T:null,S:null},Tt=Object.prototype.hasOwnProperty;function Ge(p,D,U){var L=U.ref;return{$$typeof:f,type:p,key:D,ref:L!==void 0?L:null,props:U}}function gn(p,D){return Ge(p.type,D,p.props)}function Qe(p){return typeof p=="object"&&p!==null&&p.$$typeof===f}function le(p){var D={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(U){return D[U]})}var kl=/\/+/g;function Fe(p,D){return typeof p=="object"&&p!==null&&p.key!=null?le(""+p.key):D.toString(36)}function He(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Lt,Lt):(p.status="pending",p.then(function(D){p.status==="pending"&&(p.status="fulfilled",p.value=D)},function(D){p.status==="pending"&&(p.status="rejected",p.reason=D)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function z(p,D,U,L,V){var W=typeof p;(W==="undefined"||W==="boolean")&&(p=null);var it=!1;if(p===null)it=!0;else switch(W){case"bigint":case"string":case"number":it=!0;break;case"object":switch(p.$$typeof){case f:case u:it=!0;break;case N:return it=p._init,z(it(p._payload),D,U,L,V)}}if(it)return V=V(p),it=L===""?"."+Fe(p,0):L,ee(V)?(U="",it!=null&&(U=it.replace(kl,"$&/")+"/"),z(V,D,U,"",function(ca){return ca})):V!=null&&(Qe(V)&&(V=gn(V,U+(V.key==null||p&&p.key===V.key?"":(""+V.key).replace(kl,"$&/")+"/")+it)),D.push(V)),1;it=0;var Ft=L===""?".":L+":";if(ee(p))for(var Ot=0;Ot<p.length;Ot++)L=p[Ot],W=Ft+Fe(L,Ot),it+=z(L,D,U,W,V);else if(Ot=mt(p),typeof Ot=="function")for(p=Ot.call(p),Ot=0;!(L=p.next()).done;)L=L.value,W=Ft+Fe(L,Ot++),it+=z(L,D,U,W,V);else if(W==="object"){if(typeof p.then=="function")return z(He(p),D,U,L,V);throw D=String(p),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return it}function R(p,D,U){if(p==null)return p;var L=[],V=0;return z(p,L,"","",function(W){return D.call(U,W,V++)}),L}function Q(p){if(p._status===-1){var D=p._result;D=D(),D.then(function(U){(p._status===0||p._status===-1)&&(p._status=1,p._result=U)},function(U){(p._status===0||p._status===-1)&&(p._status=2,p._result=U)}),p._status===-1&&(p._status=0,p._result=D)}if(p._status===1)return p._result.default;throw p._result}var ct=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},ht={map:R,forEach:function(p,D,U){R(p,function(){D.apply(this,arguments)},U)},count:function(p){var D=0;return R(p,function(){D++}),D},toArray:function(p){return R(p,function(D){return D})||[]},only:function(p){if(!Qe(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return Z.Activity=B,Z.Children=ht,Z.Component=Mt,Z.Fragment=c,Z.Profiler=h,Z.PureComponent=Bt,Z.StrictMode=s,Z.Suspense=E,Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Z.__COMPILER_RUNTIME={__proto__:null,c:function(p){return k.H.useMemoCache(p)}},Z.cache=function(p){return function(){return p.apply(null,arguments)}},Z.cacheSignal=function(){return null},Z.cloneElement=function(p,D,U){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var L=Ct({},p.props),V=p.key;if(D!=null)for(W in D.key!==void 0&&(V=""+D.key),D)!Tt.call(D,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&D.ref===void 0||(L[W]=D[W]);var W=arguments.length-2;if(W===1)L.children=U;else if(1<W){for(var it=Array(W),Ft=0;Ft<W;Ft++)it[Ft]=arguments[Ft+2];L.children=it}return Ge(p.type,V,L)},Z.createContext=function(p){return p={$$typeof:y,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:d,_context:p},p},Z.createElement=function(p,D,U){var L,V={},W=null;if(D!=null)for(L in D.key!==void 0&&(W=""+D.key),D)Tt.call(D,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(V[L]=D[L]);var it=arguments.length-2;if(it===1)V.children=U;else if(1<it){for(var Ft=Array(it),Ot=0;Ot<it;Ot++)Ft[Ot]=arguments[Ot+2];V.children=Ft}if(p&&p.defaultProps)for(L in it=p.defaultProps,it)V[L]===void 0&&(V[L]=it[L]);return Ge(p,W,V)},Z.createRef=function(){return{current:null}},Z.forwardRef=function(p){return{$$typeof:v,render:p}},Z.isValidElement=Qe,Z.lazy=function(p){return{$$typeof:N,_payload:{_status:-1,_result:p},_init:Q}},Z.memo=function(p,D){return{$$typeof:S,type:p,compare:D===void 0?null:D}},Z.startTransition=function(p){var D=k.T,U={};k.T=U;try{var L=p(),V=k.S;V!==null&&V(U,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(Lt,ct)}catch(W){ct(W)}finally{D!==null&&U.types!==null&&(D.types=U.types),k.T=D}},Z.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Z.use=function(p){return k.H.use(p)},Z.useActionState=function(p,D,U){return k.H.useActionState(p,D,U)},Z.useCallback=function(p,D){return k.H.useCallback(p,D)},Z.useContext=function(p){return k.H.useContext(p)},Z.useDebugValue=function(){},Z.useDeferredValue=function(p,D){return k.H.useDeferredValue(p,D)},Z.useEffect=function(p,D){return k.H.useEffect(p,D)},Z.useEffectEvent=function(p){return k.H.useEffectEvent(p)},Z.useId=function(){return k.H.useId()},Z.useImperativeHandle=function(p,D,U){return k.H.useImperativeHandle(p,D,U)},Z.useInsertionEffect=function(p,D){return k.H.useInsertionEffect(p,D)},Z.useLayoutEffect=function(p,D){return k.H.useLayoutEffect(p,D)},Z.useMemo=function(p,D){return k.H.useMemo(p,D)},Z.useOptimistic=function(p,D){return k.H.useOptimistic(p,D)},Z.useReducer=function(p,D,U){return k.H.useReducer(p,D,U)},Z.useRef=function(p){return k.H.useRef(p)},Z.useState=function(p){return k.H.useState(p)},Z.useSyncExternalStore=function(p,D,U){return k.H.useSyncExternalStore(p,D,U)},Z.useTransition=function(){return k.H.useTransition()},Z.version="19.2.3",Z}var Kd;function Uf(){return Kd||(Kd=1,mf.exports=xp()),mf.exports}var Ht=Uf();const Jd=Mp(Ht);var yf={exports:{}},li={},gf={exports:{}},pf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.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 kd;function Cp(){return kd||(kd=1,(function(f){function u(z,R){var Q=z.length;z.push(R);t:for(;0<Q;){var ct=Q-1>>>1,ht=z[ct];if(0<h(ht,R))z[ct]=R,z[Q]=ht,Q=ct;else break t}}function c(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var R=z[0],Q=z.pop();if(Q!==R){z[0]=Q;t:for(var ct=0,ht=z.length,p=ht>>>1;ct<p;){var D=2*(ct+1)-1,U=z[D],L=D+1,V=z[L];if(0>h(U,Q))L<ht&&0>h(V,U)?(z[ct]=V,z[L]=Q,ct=L):(z[ct]=U,z[D]=Q,ct=D);else if(L<ht&&0>h(V,Q))z[ct]=V,z[L]=Q,ct=L;else break t}}return R}function h(z,R){var Q=z.sortIndex-R.sortIndex;return Q!==0?Q:z.id-R.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;f.unstable_now=function(){return d.now()}}else{var y=Date,v=y.now();f.unstable_now=function(){return y.now()-v}}var E=[],S=[],N=1,B=null,et=3,mt=!1,Et=!1,Ct=!1,Xt=!1,Mt=typeof setTimeout=="function"?setTimeout:null,kt=typeof clearTimeout=="function"?clearTimeout:null,Bt=typeof setImmediate<"u"?setImmediate:null;function te(z){for(var R=c(S);R!==null;){if(R.callback===null)s(S);else if(R.startTime<=z)s(S),R.sortIndex=R.expirationTime,u(E,R);else break;R=c(S)}}function ee(z){if(Ct=!1,te(z),!Et)if(c(E)!==null)Et=!0,Lt||(Lt=!0,le());else{var R=c(S);R!==null&&He(ee,R.startTime-z)}}var Lt=!1,k=-1,Tt=5,Ge=-1;function gn(){return Xt?!0:!(f.unstable_now()-Ge<Tt)}function Qe(){if(Xt=!1,Lt){var z=f.unstable_now();Ge=z;var R=!0;try{t:{Et=!1,Ct&&(Ct=!1,kt(k),k=-1),mt=!0;var Q=et;try{e:{for(te(z),B=c(E);B!==null&&!(B.expirationTime>z&&gn());){var ct=B.callback;if(typeof ct=="function"){B.callback=null,et=B.priorityLevel;var ht=ct(B.expirationTime<=z);if(z=f.unstable_now(),typeof ht=="function"){B.callback=ht,te(z),R=!0;break e}B===c(E)&&s(E),te(z)}else s(E);B=c(E)}if(B!==null)R=!0;else{var p=c(S);p!==null&&He(ee,p.startTime-z),R=!1}}break t}finally{B=null,et=Q,mt=!1}R=void 0}}finally{R?le():Lt=!1}}}var le;if(typeof Bt=="function")le=function(){Bt(Qe)};else if(typeof MessageChannel<"u"){var kl=new MessageChannel,Fe=kl.port2;kl.port1.onmessage=Qe,le=function(){Fe.postMessage(null)}}else le=function(){Mt(Qe,0)};function He(z,R){k=Mt(function(){z(f.unstable_now())},R)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(z){z.callback=null},f.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Tt=0<z?Math.floor(1e3/z):5},f.unstable_getCurrentPriorityLevel=function(){return et},f.unstable_next=function(z){switch(et){case 1:case 2:case 3:var R=3;break;default:R=et}var Q=et;et=R;try{return z()}finally{et=Q}},f.unstable_requestPaint=function(){Xt=!0},f.unstable_runWithPriority=function(z,R){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Q=et;et=z;try{return R()}finally{et=Q}},f.unstable_scheduleCallback=function(z,R,Q){var ct=f.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ct+Q:ct):Q=ct,z){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=Q+ht,z={id:N++,callback:R,priorityLevel:z,startTime:Q,expirationTime:ht,sortIndex:-1},Q>ct?(z.sortIndex=Q,u(S,z),c(E)===null&&z===c(S)&&(Ct?(kt(k),k=-1):Ct=!0,He(ee,Q-ct))):(z.sortIndex=ht,u(E,z),Et||mt||(Et=!0,Lt||(Lt=!0,le()))),z},f.unstable_shouldYield=gn,f.unstable_wrapCallback=function(z){var R=et;return function(){var Q=et;et=R;try{return z.apply(this,arguments)}finally{et=Q}}}})(pf)),pf}var Wd;function Dp(){return Wd||(Wd=1,gf.exports=Cp()),gf.exports}var vf={exports:{}},Wt={};/**
|
|
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 $d;function wp(){if($d)return Wt;$d=1;var f=Uf();function u(E){var S="https://react.dev/errors/"+E;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)S+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+E+"; visit "+S+" 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(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},h=Symbol.for("react.portal");function d(E,S,N){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:B==null?null:""+B,children:E,containerInfo:S,implementation:N}}var y=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(E,S){if(E==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Wt.createPortal=function(E,S){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(u(299));return d(E,S,null,N)},Wt.flushSync=function(E){var S=y.T,N=s.p;try{if(y.T=null,s.p=2,E)return E()}finally{y.T=S,s.p=N,s.d.f()}},Wt.preconnect=function(E,S){typeof E=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,s.d.C(E,S))},Wt.prefetchDNS=function(E){typeof E=="string"&&s.d.D(E)},Wt.preinit=function(E,S){if(typeof E=="string"&&S&&typeof S.as=="string"){var N=S.as,B=v(N,S.crossOrigin),et=typeof S.integrity=="string"?S.integrity:void 0,mt=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;N==="style"?s.d.S(E,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:B,integrity:et,fetchPriority:mt}):N==="script"&&s.d.X(E,{crossOrigin:B,integrity:et,fetchPriority:mt,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},Wt.preinitModule=function(E,S){if(typeof E=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var N=v(S.as,S.crossOrigin);s.d.M(E,{crossOrigin:N,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&s.d.M(E)},Wt.preload=function(E,S){if(typeof E=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var N=S.as,B=v(N,S.crossOrigin);s.d.L(E,N,{crossOrigin:B,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},Wt.preloadModule=function(E,S){if(typeof E=="string")if(S){var N=v(S.as,S.crossOrigin);s.d.m(E,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:N,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else s.d.m(E)},Wt.requestFormReset=function(E){s.d.r(E)},Wt.unstable_batchedUpdates=function(E,S){return E(S)},Wt.useFormState=function(E,S,N){return y.H.useFormState(E,S,N)},Wt.useFormStatus=function(){return y.H.useHostTransitionStatus()},Wt.version="19.2.3",Wt}var Fd;function Rp(){if(Fd)return vf.exports;Fd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(u){console.error(u)}}return f(),vf.exports=wp(),vf.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 Id;function Up(){if(Id)return li;Id=1;var f=Dp(),u=Uf(),c=Rp();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function E(t){if(d(t)!==t)throw Error(s(188))}function S(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(s(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return E(a),t;if(i===n)return E(a),e;i=i.sibling}throw Error(s(188))}if(l.return!==n.return)l=a,n=i;else{for(var o=!1,r=a.child;r;){if(r===l){o=!0,l=a,n=i;break}if(r===n){o=!0,n=a,l=i;break}r=r.sibling}if(!o){for(r=i.child;r;){if(r===l){o=!0,l=i,n=a;break}if(r===n){o=!0,n=i,l=a;break}r=r.sibling}if(!o)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:e}function N(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=N(t),e!==null)return e;t=t.sibling}return null}var B=Object.assign,et=Symbol.for("react.element"),mt=Symbol.for("react.transitional.element"),Et=Symbol.for("react.portal"),Ct=Symbol.for("react.fragment"),Xt=Symbol.for("react.strict_mode"),Mt=Symbol.for("react.profiler"),kt=Symbol.for("react.consumer"),Bt=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Lt=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),Tt=Symbol.for("react.lazy"),Ge=Symbol.for("react.activity"),gn=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function le(t){return t===null||typeof t!="object"?null:(t=Qe&&t[Qe]||t["@@iterator"],typeof t=="function"?t:null)}var kl=Symbol.for("react.client.reference");function Fe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===kl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ct:return"Fragment";case Mt:return"Profiler";case Xt:return"StrictMode";case ee:return"Suspense";case Lt:return"SuspenseList";case Ge:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Et:return"Portal";case Bt:return t.displayName||"Context";case kt:return(t._context.displayName||"Context")+".Consumer";case te:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:Fe(t.type)||"Memo";case Tt:e=t._payload,t=t._init;try{return Fe(t(e))}catch{}}return null}var He=Array.isArray,z=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ct=[],ht=-1;function p(t){return{current:t}}function D(t){0>ht||(t.current=ct[ht],ct[ht]=null,ht--)}function U(t,e){ht++,ct[ht]=t.current,t.current=e}var L=p(null),V=p(null),W=p(null),it=p(null);function Ft(t,e){switch(U(W,e),U(V,t),U(L,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?od(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=od(e),t=rd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(L),U(L,t)}function Ot(){D(L),D(V),D(W)}function ca(t){t.memoizedState!==null&&U(it,t);var e=L.current,l=rd(e,t.type);e!==l&&(U(V,t),U(L,l))}function fi(t){V.current===t&&(D(L),D(V)),it.current===t&&(D(it),Fa._currentValue=Q)}var Ku,qf;function Wl(t){if(Ku===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ku=e&&e[1]||"",qf=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ku+t+qf}var Ju=!1;function ku(t,e){if(!t||Ju)return"";Ju=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){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(M){var A=M}Reflect.construct(t,[],C)}else{try{C.call()}catch(M){A=M}t.call(C.prototype)}}else{try{throw Error()}catch(M){A=M}(C=t())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(M){if(M&&A&&typeof M.stack=="string")return[M.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],r=i[1];if(o&&r){var m=o.split(`
|
|
44
|
+
`),_=r.split(`
|
|
45
|
+
`);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<_.length&&!_[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===_.length)for(n=m.length-1,a=_.length-1;1<=n&&0<=a&&m[n]!==_[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==_[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==_[a]){var O=`
|
|
46
|
+
`+m[n].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=n&&0<=a);break}}}finally{Ju=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Wl(l):""}function ty(t,e){switch(t.tag){case 26:case 27:case 5:return Wl(t.type);case 16:return Wl("Lazy");case 13:return t.child!==e&&e!==null?Wl("Suspense Fallback"):Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 15:return ku(t.type,!1);case 11:return ku(t.type.render,!1);case 1:return ku(t.type,!0);case 31:return Wl("Activity");default:return""}}function jf(t){try{var e="",l=null;do e+=ty(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
|
|
47
|
+
Error generating stack: `+n.message+`
|
|
48
|
+
`+n.stack}}var Wu=Object.prototype.hasOwnProperty,$u=f.unstable_scheduleCallback,Fu=f.unstable_cancelCallback,ey=f.unstable_shouldYield,ly=f.unstable_requestPaint,re=f.unstable_now,ny=f.unstable_getCurrentPriorityLevel,Xf=f.unstable_ImmediatePriority,Gf=f.unstable_UserBlockingPriority,oi=f.unstable_NormalPriority,ay=f.unstable_LowPriority,Qf=f.unstable_IdlePriority,iy=f.log,uy=f.unstable_setDisableYieldValue,fa=null,he=null;function Sl(t){if(typeof iy=="function"&&uy(t),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(fa,t)}catch{}}var de=Math.clz32?Math.clz32:fy,sy=Math.log,cy=Math.LN2;function fy(t){return t>>>=0,t===0?32:31-(sy(t)/cy|0)|0}var ri=256,hi=262144,di=4194304;function $l(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function mi(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var r=n&134217727;return r!==0?(n=r&~i,n!==0?a=$l(n):(o&=r,o!==0?a=$l(o):l||(l=r&~t,l!==0&&(a=$l(l))))):(r=n&~i,r!==0?a=$l(r):o!==0?a=$l(o):l||(l=n&~t,l!==0&&(a=$l(l)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:a}function oa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function oy(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zf(){var t=di;return di<<=1,(di&62914560)===0&&(di=4194304),t}function Iu(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function ra(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ry(t,e,l,n,a,i){var o=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var r=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(l=o&~l;0<l;){var O=31-de(l),C=1<<O;r[O]=0,m[O]=-1;var A=_[O];if(A!==null)for(_[O]=null,O=0;O<A.length;O++){var M=A[O];M!==null&&(M.lane&=-536870913)}l&=~C}n!==0&&Vf(t,n,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e))}function Vf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-de(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function Kf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-de(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function Jf(t,e){var l=e&-e;return l=(l&42)!==0?1:Pu(l),(l&(t.suspendedLanes|e))!==0?0:l}function Pu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ts(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function kf(){var t=R.p;return t!==0?t:(t=window.event,t===void 0?32:Nd(t.type))}function Wf(t,e){var l=R.p;try{return R.p=t,e()}finally{R.p=l}}var bl=Math.random().toString(36).slice(2),Gt="__reactFiber$"+bl,ne="__reactProps$"+bl,pn="__reactContainer$"+bl,es="__reactEvents$"+bl,hy="__reactListeners$"+bl,dy="__reactHandles$"+bl,$f="__reactResources$"+bl,ha="__reactMarker$"+bl;function ls(t){delete t[Gt],delete t[ne],delete t[es],delete t[hy],delete t[dy]}function vn(t){var e=t[Gt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[pn]||l[Gt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=vd(t);t!==null;){if(l=t[Gt])return l;t=vd(t)}return e}t=l,l=t.parentNode}return null}function Sn(t){if(t=t[Gt]||t[pn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function da(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function bn(t){var e=t[$f];return e||(e=t[$f]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Yt(t){t[ha]=!0}var Ff=new Set,If={};function Fl(t,e){En(t,e),En(t+"Capture",e)}function En(t,e){for(If[t]=e,t=0;t<e.length;t++)Ff.add(e[t])}var my=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]*$"),Pf={},to={};function yy(t){return Wu.call(to,t)?!0:Wu.call(Pf,t)?!1:my.test(t)?to[t]=!0:(Pf[t]=!0,!1)}function yi(t,e,l){if(yy(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function gi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Ie(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function _e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function eo(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function gy(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){l=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ns(t){if(!t._valueTracker){var e=eo(t)?"checked":"value";t._valueTracker=gy(t,e,""+t[e])}}function lo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=eo(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function pi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var py=/[\n"\\]/g;function Ae(t){return t.replace(py,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function as(t,e,l,n,a,i,o,r){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+_e(e)):t.value!==""+_e(e)&&(t.value=""+_e(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?is(t,o,_e(e)):l!=null?is(t,o,_e(l)):n!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+_e(r):t.removeAttribute("name")}function no(t,e,l,n,a,i,o,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){ns(t);return}l=l!=null?""+_e(l):"",e=e!=null?""+_e(e):l,r||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=r?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),ns(t)}function is(t,e,l){e==="number"&&pi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Tn(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+_e(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function ao(t,e,l){if(e!=null&&(e=""+_e(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+_e(l):""}function io(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(s(92));if(He(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=_e(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),ns(t)}function _n(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var vy=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 uo(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||vy.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function so(t,e,l){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&uo(t,a,n)}else for(var i in e)e.hasOwnProperty(i)&&uo(t,i,e[i])}function us(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sy=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"]]),by=/^[\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 vi(t){return by.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Pe(){}var ss=null;function cs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var An=null,Mn=null;function co(t){var e=Sn(t);if(e&&(t=e.stateNode)){var l=t[ne]||null;t:switch(t=e.stateNode,e.type){case"input":if(as(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ae(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[ne]||null;if(!a)throw Error(s(90));as(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&lo(n)}break t;case"textarea":ao(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Tn(t,!!l.multiple,e,!1)}}}var fs=!1;function fo(t,e,l){if(fs)return t(e,l);fs=!0;try{var n=t(e);return n}finally{if(fs=!1,(An!==null||Mn!==null)&&(iu(),An&&(e=An,t=Mn,Mn=An=null,co(e),t)))for(e=0;e<t.length;e++)co(t[e])}}function ma(t,e){var l=t.stateNode;if(l===null)return null;var n=l[ne]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(s(231,e,typeof l));return l}var tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),os=!1;if(tl)try{var ya={};Object.defineProperty(ya,"passive",{get:function(){os=!0}}),window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch{os=!1}var El=null,rs=null,Si=null;function oo(){if(Si)return Si;var t,e=rs,l=e.length,n,a="value"in El?El.value:El.textContent,i=a.length;for(t=0;t<l&&e[t]===a[t];t++);var o=l-t;for(n=1;n<=o&&e[l-n]===a[i-n];n++);return Si=a.slice(t,1<n?1-n:void 0)}function bi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ei(){return!0}function ro(){return!1}function ae(t){function e(l,n,a,i,o){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(l=t[r],this[r]=l?l(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ei:ro,this.isPropagationStopped=ro,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),e}var Il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ti=ae(Il),ga=B({},Il,{view:0,detail:0}),Ey=ae(ga),hs,ds,pa,_i=B({},ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ys,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==pa&&(pa&&t.type==="mousemove"?(hs=t.screenX-pa.screenX,ds=t.screenY-pa.screenY):ds=hs=0,pa=t),hs)},movementY:function(t){return"movementY"in t?t.movementY:ds}}),ho=ae(_i),Ty=B({},_i,{dataTransfer:0}),_y=ae(Ty),Ay=B({},ga,{relatedTarget:0}),ms=ae(Ay),My=B({},Il,{animationName:0,elapsedTime:0,pseudoElement:0}),Oy=ae(My),zy=B({},Il,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xy=ae(zy),Cy=B({},Il,{data:0}),mo=ae(Cy),Dy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wy={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"},Ry={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Ry[t])?!!e[t]:!1}function ys(){return Uy}var Ny=B({},ga,{key:function(t){if(t.key){var e=Dy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=bi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ys,charCode:function(t){return t.type==="keypress"?bi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Hy=ae(Ny),By=B({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yo=ae(By),Ly=B({},ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ys}),Yy=ae(Ly),qy=B({},Il,{propertyName:0,elapsedTime:0,pseudoElement:0}),jy=ae(qy),Xy=B({},_i,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Gy=ae(Xy),Qy=B({},Il,{newState:0,oldState:0}),Zy=ae(Qy),Vy=[9,13,27,32],gs=tl&&"CompositionEvent"in window,va=null;tl&&"documentMode"in document&&(va=document.documentMode);var Ky=tl&&"TextEvent"in window&&!va,go=tl&&(!gs||va&&8<va&&11>=va),po=" ",vo=!1;function So(t,e){switch(t){case"keyup":return Vy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function Jy(t,e){switch(t){case"compositionend":return bo(e);case"keypress":return e.which!==32?null:(vo=!0,po);case"textInput":return t=e.data,t===po&&vo?null:t;default:return null}}function ky(t,e){if(On)return t==="compositionend"||!gs&&So(t,e)?(t=oo(),Si=rs=El=null,On=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return go&&e.locale!=="ko"?null:e.data;default:return null}}var Wy={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 Eo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Wy[t.type]:e==="textarea"}function To(t,e,l,n){An?Mn?Mn.push(n):Mn=[n]:An=n,e=hu(e,"onChange"),0<e.length&&(l=new Ti("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var Sa=null,ba=null;function $y(t){ad(t,0)}function Ai(t){var e=da(t);if(lo(e))return t}function _o(t,e){if(t==="change")return e}var Ao=!1;if(tl){var ps;if(tl){var vs="oninput"in document;if(!vs){var Mo=document.createElement("div");Mo.setAttribute("oninput","return;"),vs=typeof Mo.oninput=="function"}ps=vs}else ps=!1;Ao=ps&&(!document.documentMode||9<document.documentMode)}function Oo(){Sa&&(Sa.detachEvent("onpropertychange",zo),ba=Sa=null)}function zo(t){if(t.propertyName==="value"&&Ai(ba)){var e=[];To(e,ba,t,cs(t)),fo($y,e)}}function Fy(t,e,l){t==="focusin"?(Oo(),Sa=e,ba=l,Sa.attachEvent("onpropertychange",zo)):t==="focusout"&&Oo()}function Iy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ai(ba)}function Py(t,e){if(t==="click")return Ai(e)}function tg(t,e){if(t==="input"||t==="change")return Ai(e)}function eg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var me=typeof Object.is=="function"?Object.is:eg;function Ea(t,e){if(me(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Wu.call(e,a)||!me(t[a],e[a]))return!1}return!0}function xo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Co(t,e){var l=xo(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=xo(l)}}function Do(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Do(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=pi(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=pi(t.document)}return e}function Ss(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var lg=tl&&"documentMode"in document&&11>=document.documentMode,zn=null,bs=null,Ta=null,Es=!1;function Ro(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Es||zn==null||zn!==pi(n)||(n=zn,"selectionStart"in n&&Ss(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ta&&Ea(Ta,n)||(Ta=n,n=hu(bs,"onSelect"),0<n.length&&(e=new Ti("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=zn)))}function Pl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var xn={animationend:Pl("Animation","AnimationEnd"),animationiteration:Pl("Animation","AnimationIteration"),animationstart:Pl("Animation","AnimationStart"),transitionrun:Pl("Transition","TransitionRun"),transitionstart:Pl("Transition","TransitionStart"),transitioncancel:Pl("Transition","TransitionCancel"),transitionend:Pl("Transition","TransitionEnd")},Ts={},Uo={};tl&&(Uo=document.createElement("div").style,"AnimationEvent"in window||(delete xn.animationend.animation,delete xn.animationiteration.animation,delete xn.animationstart.animation),"TransitionEvent"in window||delete xn.transitionend.transition);function tn(t){if(Ts[t])return Ts[t];if(!xn[t])return t;var e=xn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Uo)return Ts[t]=e[l];return t}var No=tn("animationend"),Ho=tn("animationiteration"),Bo=tn("animationstart"),ng=tn("transitionrun"),ag=tn("transitionstart"),ig=tn("transitioncancel"),Lo=tn("transitionend"),Yo=new Map,_s="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(" ");_s.push("scrollEnd");function Be(t,e){Yo.set(t,e),Fl(e,[t])}var Mi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Me=[],Cn=0,As=0;function Oi(){for(var t=Cn,e=As=Cn=0;e<t;){var l=Me[e];Me[e++]=null;var n=Me[e];Me[e++]=null;var a=Me[e];Me[e++]=null;var i=Me[e];if(Me[e++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}i!==0&&qo(l,a,i)}}function zi(t,e,l,n){Me[Cn++]=t,Me[Cn++]=e,Me[Cn++]=l,Me[Cn++]=n,As|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Ms(t,e,l,n){return zi(t,e,l,n),xi(t)}function en(t,e){return zi(t,null,null,e),xi(t)}function qo(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=t.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-de(l),t=i.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),i):null}function xi(t){if(50<Za)throw Za=0,Nc=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Dn={};function ug(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ye(t,e,l,n){return new ug(t,e,l,n)}function Os(t){return t=t.prototype,!(!t||!t.isReactComponent)}function el(t,e){var l=t.alternate;return l===null?(l=ye(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function jo(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ci(t,e,l,n,a,i){var o=0;if(n=t,typeof t=="function")Os(t)&&(o=1);else if(typeof t=="string")o=rp(t,l,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ge:return t=ye(31,l,e,a),t.elementType=Ge,t.lanes=i,t;case Ct:return ln(l.children,a,i,e);case Xt:o=8,a|=24;break;case Mt:return t=ye(12,l,e,a|2),t.elementType=Mt,t.lanes=i,t;case ee:return t=ye(13,l,e,a),t.elementType=ee,t.lanes=i,t;case Lt:return t=ye(19,l,e,a),t.elementType=Lt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Bt:o=10;break t;case kt:o=9;break t;case te:o=11;break t;case k:o=14;break t;case Tt:o=16,n=null;break t}o=29,l=Error(s(130,t===null?"null":typeof t,"")),n=null}return e=ye(o,l,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function ln(t,e,l,n){return t=ye(7,t,n,e),t.lanes=l,t}function zs(t,e,l){return t=ye(6,t,null,e),t.lanes=l,t}function Xo(t){var e=ye(18,null,null,0);return e.stateNode=t,e}function xs(t,e,l){return e=ye(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Go=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var l=Go.get(t);return l!==void 0?l:(e={value:t,source:e,stack:jf(e)},Go.set(t,e),e)}return{value:t,source:e,stack:jf(e)}}var wn=[],Rn=0,Di=null,_a=0,ze=[],xe=0,Tl=null,Ze=1,Ve="";function ll(t,e){wn[Rn++]=_a,wn[Rn++]=Di,Di=t,_a=e}function Qo(t,e,l){ze[xe++]=Ze,ze[xe++]=Ve,ze[xe++]=Tl,Tl=t;var n=Ze;t=Ve;var a=32-de(n)-1;n&=~(1<<a),l+=1;var i=32-de(e)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,Ze=1<<32-de(e)+a|l<<a|n,Ve=i+t}else Ze=1<<i|l<<a|n,Ve=t}function Cs(t){t.return!==null&&(ll(t,1),Qo(t,1,0))}function Ds(t){for(;t===Di;)Di=wn[--Rn],wn[Rn]=null,_a=wn[--Rn],wn[Rn]=null;for(;t===Tl;)Tl=ze[--xe],ze[xe]=null,Ve=ze[--xe],ze[xe]=null,Ze=ze[--xe],ze[xe]=null}function Zo(t,e){ze[xe++]=Ze,ze[xe++]=Ve,ze[xe++]=Tl,Ze=e.id,Ve=e.overflow,Tl=t}var Qt=null,pt=null,tt=!1,_l=null,Ce=!1,ws=Error(s(519));function Al(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Aa(Oe(e,t)),ws}function Vo(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Gt]=t,e[ne]=n,l){case"dialog":F("cancel",e),F("close",e);break;case"iframe":case"object":case"embed":F("load",e);break;case"video":case"audio":for(l=0;l<Ka.length;l++)F(Ka[l],e);break;case"source":F("error",e);break;case"img":case"image":case"link":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"input":F("invalid",e),no(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":F("invalid",e);break;case"textarea":F("invalid",e),io(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||cd(e.textContent,l)?(n.popover!=null&&(F("beforetoggle",e),F("toggle",e)),n.onScroll!=null&&F("scroll",e),n.onScrollEnd!=null&&F("scrollend",e),n.onClick!=null&&(e.onclick=Pe),e=!0):e=!1,e||Al(t,!0)}function Ko(t){for(Qt=t.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:Ce=!1;return;case 27:case 3:Ce=!0;return;default:Qt=Qt.return}}function Un(t){if(t!==Qt)return!1;if(!tt)return Ko(t),tt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Wc(t.type,t.memoizedProps)),l=!l),l&&pt&&Al(t),Ko(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));pt=pd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));pt=pd(t)}else e===27?(e=pt,Yl(t.type)?(t=tf,tf=null,pt=t):pt=e):pt=Qt?we(t.stateNode.nextSibling):null;return!0}function nn(){pt=Qt=null,tt=!1}function Rs(){var t=_l;return t!==null&&(ce===null?ce=t:ce.push.apply(ce,t),_l=null),t}function Aa(t){_l===null?_l=[t]:_l.push(t)}var Us=p(null),an=null,nl=null;function Ml(t,e,l){U(Us,e._currentValue),e._currentValue=l}function al(t){t._currentValue=Us.current,D(Us)}function Ns(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function Hs(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;t:for(;i!==null;){var r=i;i=a;for(var m=0;m<e.length;m++)if(r.context===e[m]){i.lanes|=l,r=i.alternate,r!==null&&(r.lanes|=l),Ns(i.return,l,t),n||(o=null);break t}i=r.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(s(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),Ns(o,l,t),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function Nn(t,e,l,n){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var r=a.type;me(a.pendingProps.value,o.value)||(t!==null?t.push(r):t=[r])}}else if(a===it.current){if(o=a.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Fa):t=[Fa])}a=a.return}t!==null&&Hs(e,t,l,n),e.flags|=262144}function wi(t){for(t=t.firstContext;t!==null;){if(!me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function un(t){an=t,nl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Jo(an,t)}function Ri(t,e){return an===null&&un(t),Jo(t,e)}function Jo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},nl===null){if(t===null)throw Error(s(308));nl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else nl=nl.next=e;return l}var sg=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},cg=f.unstable_scheduleCallback,fg=f.unstable_NormalPriority,Dt={$$typeof:Bt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bs(){return{controller:new sg,data:new Map,refCount:0}}function Ma(t){t.refCount--,t.refCount===0&&cg(fg,function(){t.controller.abort()})}var Oa=null,Ls=0,Hn=0,Bn=null;function og(t,e){if(Oa===null){var l=Oa=[];Ls=0,Hn=jc(),Bn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Ls++,e.then(ko,ko),e}function ko(){if(--Ls===0&&Oa!==null){Bn!==null&&(Bn.status="fulfilled");var t=Oa;Oa=null,Hn=0,Bn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function rg(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Wo=z.S;z.S=function(t,e){Rh=re(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&og(t,e),Wo!==null&&Wo(t,e)};var sn=p(null);function Ys(){var t=sn.current;return t!==null?t:dt.pooledCache}function Ui(t,e){e===null?U(sn,sn.current):U(sn,e.pool)}function $o(){var t=Ys();return t===null?null:{parent:Dt._currentValue,pool:t}}var Ln=Error(s(460)),qs=Error(s(474)),Ni=Error(s(542)),Hi={then:function(){}};function Fo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Io(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Pe,Pe),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,tr(t),t;default:if(typeof e.status=="string")e.then(Pe,Pe);else{if(t=dt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,tr(t),t}throw fn=e,Ln}}function cn(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(fn=l,Ln):l}}var fn=null;function Po(){if(fn===null)throw Error(s(459));var t=fn;return fn=null,t}function tr(t){if(t===Ln||t===Ni)throw Error(s(483))}var Yn=null,za=0;function Bi(t){var e=za;return za+=1,Yn===null&&(Yn=[]),Io(Yn,t,e)}function xa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Li(t,e){throw e.$$typeof===et?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function er(t){function e(b,g){if(t){var T=b.deletions;T===null?(b.deletions=[g],b.flags|=16):T.push(g)}}function l(b,g){if(!t)return null;for(;g!==null;)e(b,g),g=g.sibling;return null}function n(b){for(var g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function a(b,g){return b=el(b,g),b.index=0,b.sibling=null,b}function i(b,g,T){return b.index=T,t?(T=b.alternate,T!==null?(T=T.index,T<g?(b.flags|=67108866,g):T):(b.flags|=67108866,g)):(b.flags|=1048576,g)}function o(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function r(b,g,T,x){return g===null||g.tag!==6?(g=zs(T,b.mode,x),g.return=b,g):(g=a(g,T),g.return=b,g)}function m(b,g,T,x){var q=T.type;return q===Ct?O(b,g,T.props.children,x,T.key):g!==null&&(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&cn(q)===g.type)?(g=a(g,T.props),xa(g,T),g.return=b,g):(g=Ci(T.type,T.key,T.props,null,b.mode,x),xa(g,T),g.return=b,g)}function _(b,g,T,x){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=xs(T,b.mode,x),g.return=b,g):(g=a(g,T.children||[]),g.return=b,g)}function O(b,g,T,x,q){return g===null||g.tag!==7?(g=ln(T,b.mode,x,q),g.return=b,g):(g=a(g,T),g.return=b,g)}function C(b,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=zs(""+g,b.mode,T),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mt:return T=Ci(g.type,g.key,g.props,null,b.mode,T),xa(T,g),T.return=b,T;case Et:return g=xs(g,b.mode,T),g.return=b,g;case Tt:return g=cn(g),C(b,g,T)}if(He(g)||le(g))return g=ln(g,b.mode,T,null),g.return=b,g;if(typeof g.then=="function")return C(b,Bi(g),T);if(g.$$typeof===Bt)return C(b,Ri(b,g),T);Li(b,g)}return null}function A(b,g,T,x){var q=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return q!==null?null:r(b,g,""+T,x);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case mt:return T.key===q?m(b,g,T,x):null;case Et:return T.key===q?_(b,g,T,x):null;case Tt:return T=cn(T),A(b,g,T,x)}if(He(T)||le(T))return q!==null?null:O(b,g,T,x,null);if(typeof T.then=="function")return A(b,g,Bi(T),x);if(T.$$typeof===Bt)return A(b,g,Ri(b,T),x);Li(b,T)}return null}function M(b,g,T,x,q){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return b=b.get(T)||null,r(g,b,""+x,q);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case mt:return b=b.get(x.key===null?T:x.key)||null,m(g,b,x,q);case Et:return b=b.get(x.key===null?T:x.key)||null,_(g,b,x,q);case Tt:return x=cn(x),M(b,g,T,x,q)}if(He(x)||le(x))return b=b.get(T)||null,O(g,b,x,q,null);if(typeof x.then=="function")return M(b,g,T,Bi(x),q);if(x.$$typeof===Bt)return M(b,g,T,Ri(g,x),q);Li(g,x)}return null}function H(b,g,T,x){for(var q=null,lt=null,Y=g,J=g=0,P=null;Y!==null&&J<T.length;J++){Y.index>J?(P=Y,Y=null):P=Y.sibling;var nt=A(b,Y,T[J],x);if(nt===null){Y===null&&(Y=P);break}t&&Y&&nt.alternate===null&&e(b,Y),g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt,Y=P}if(J===T.length)return l(b,Y),tt&&ll(b,J),q;if(Y===null){for(;J<T.length;J++)Y=C(b,T[J],x),Y!==null&&(g=i(Y,g,J),lt===null?q=Y:lt.sibling=Y,lt=Y);return tt&&ll(b,J),q}for(Y=n(Y);J<T.length;J++)P=M(Y,b,J,T[J],x),P!==null&&(t&&P.alternate!==null&&Y.delete(P.key===null?J:P.key),g=i(P,g,J),lt===null?q=P:lt.sibling=P,lt=P);return t&&Y.forEach(function(Ql){return e(b,Ql)}),tt&&ll(b,J),q}function X(b,g,T,x){if(T==null)throw Error(s(151));for(var q=null,lt=null,Y=g,J=g=0,P=null,nt=T.next();Y!==null&&!nt.done;J++,nt=T.next()){Y.index>J?(P=Y,Y=null):P=Y.sibling;var Ql=A(b,Y,nt.value,x);if(Ql===null){Y===null&&(Y=P);break}t&&Y&&Ql.alternate===null&&e(b,Y),g=i(Ql,g,J),lt===null?q=Ql:lt.sibling=Ql,lt=Ql,Y=P}if(nt.done)return l(b,Y),tt&&ll(b,J),q;if(Y===null){for(;!nt.done;J++,nt=T.next())nt=C(b,nt.value,x),nt!==null&&(g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt);return tt&&ll(b,J),q}for(Y=n(Y);!nt.done;J++,nt=T.next())nt=M(Y,b,J,nt.value,x),nt!==null&&(t&&nt.alternate!==null&&Y.delete(nt.key===null?J:nt.key),g=i(nt,g,J),lt===null?q=nt:lt.sibling=nt,lt=nt);return t&&Y.forEach(function(Tp){return e(b,Tp)}),tt&&ll(b,J),q}function rt(b,g,T,x){if(typeof T=="object"&&T!==null&&T.type===Ct&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case mt:t:{for(var q=T.key;g!==null;){if(g.key===q){if(q=T.type,q===Ct){if(g.tag===7){l(b,g.sibling),x=a(g,T.props.children),x.return=b,b=x;break t}}else if(g.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Tt&&cn(q)===g.type){l(b,g.sibling),x=a(g,T.props),xa(x,T),x.return=b,b=x;break t}l(b,g);break}else e(b,g);g=g.sibling}T.type===Ct?(x=ln(T.props.children,b.mode,x,T.key),x.return=b,b=x):(x=Ci(T.type,T.key,T.props,null,b.mode,x),xa(x,T),x.return=b,b=x)}return o(b);case Et:t:{for(q=T.key;g!==null;){if(g.key===q)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){l(b,g.sibling),x=a(g,T.children||[]),x.return=b,b=x;break t}else{l(b,g);break}else e(b,g);g=g.sibling}x=xs(T,b.mode,x),x.return=b,b=x}return o(b);case Tt:return T=cn(T),rt(b,g,T,x)}if(He(T))return H(b,g,T,x);if(le(T)){if(q=le(T),typeof q!="function")throw Error(s(150));return T=q.call(T),X(b,g,T,x)}if(typeof T.then=="function")return rt(b,g,Bi(T),x);if(T.$$typeof===Bt)return rt(b,g,Ri(b,T),x);Li(b,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(l(b,g.sibling),x=a(g,T),x.return=b,b=x):(l(b,g),x=zs(T,b.mode,x),x.return=b,b=x),o(b)):l(b,g)}return function(b,g,T,x){try{za=0;var q=rt(b,g,T,x);return Yn=null,q}catch(Y){if(Y===Ln||Y===Ni)throw Y;var lt=ye(29,Y,null,b.mode);return lt.lanes=x,lt.return=b,lt}finally{}}}var on=er(!0),lr=er(!1),Ol=!1;function js(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function xl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(at&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=xi(t),qo(t,null,l),e}return zi(t,n,e,l),xi(t)}function Ca(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Kf(t,l)}}function Gs(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?a=i=e:i=i.next=e}else a=i=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Qs=!1;function Da(){if(Qs){var t=Bn;if(t!==null)throw t}}function wa(t,e,l,n){Qs=!1;var a=t.updateQueue;Ol=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var m=r,_=m.next;m.next=null,o===null?i=_:o.next=_,o=m;var O=t.alternate;O!==null&&(O=O.updateQueue,r=O.lastBaseUpdate,r!==o&&(r===null?O.firstBaseUpdate=_:r.next=_,O.lastBaseUpdate=m))}if(i!==null){var C=a.baseState;o=0,O=_=m=null,r=i;do{var A=r.lane&-536870913,M=A!==r.lane;if(M?(I&A)===A:(n&A)===A){A!==0&&A===Hn&&(Qs=!0),O!==null&&(O=O.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var H=t,X=r;A=e;var rt=l;switch(X.tag){case 1:if(H=X.payload,typeof H=="function"){C=H.call(rt,C,A);break t}C=H;break t;case 3:H.flags=H.flags&-65537|128;case 0:if(H=X.payload,A=typeof H=="function"?H.call(rt,C,A):H,A==null)break t;C=B({},C,A);break t;case 2:Ol=!0}}A=r.callback,A!==null&&(t.flags|=64,M&&(t.flags|=8192),M=a.callbacks,M===null?a.callbacks=[A]:M.push(A))}else M={lane:A,tag:r.tag,payload:r.payload,callback:r.callback,next:null},O===null?(_=O=M,m=C):O=O.next=M,o|=A;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;M=r,r=M.next,M.next=null,a.lastBaseUpdate=M,a.shared.pending=null}}while(!0);O===null&&(m=C),a.baseState=m,a.firstBaseUpdate=_,a.lastBaseUpdate=O,i===null&&(a.shared.lanes=0),Ul|=o,t.lanes=o,t.memoizedState=C}}function nr(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function ar(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)nr(l[t],e)}var qn=p(null),Yi=p(0);function ir(t,e){t=dl,U(Yi,t),U(qn,e),dl=t|e.baseLanes}function Zs(){U(Yi,dl),U(qn,qn.current)}function Vs(){dl=Yi.current,D(qn),D(Yi)}var ge=p(null),De=null;function Cl(t){var e=t.alternate;U(zt,zt.current&1),U(ge,t),De===null&&(e===null||qn.current!==null||e.memoizedState!==null)&&(De=t)}function Ks(t){U(zt,zt.current),U(ge,t),De===null&&(De=t)}function ur(t){t.tag===22?(U(zt,zt.current),U(ge,t),De===null&&(De=t)):Dl()}function Dl(){U(zt,zt.current),U(ge,ge.current)}function pe(t){D(ge),De===t&&(De=null),D(zt)}var zt=p(0);function qi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ic(l)||Pc(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var il=0,K=null,ft=null,wt=null,ji=!1,jn=!1,rn=!1,Xi=0,Ra=0,Xn=null,hg=0;function _t(){throw Error(s(321))}function Js(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!me(t[l],e[l]))return!1;return!0}function ks(t,e,l,n,a,i){return il=i,K=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Qr:fc,rn=!1,i=l(n,a),rn=!1,jn&&(i=cr(e,l,n,a)),sr(t),i}function sr(t){z.H=Ha;var e=ft!==null&&ft.next!==null;if(il=0,wt=ft=K=null,ji=!1,Ra=0,Xn=null,e)throw Error(s(300));t===null||Rt||(t=t.dependencies,t!==null&&wi(t)&&(Rt=!0))}function cr(t,e,l,n){K=t;var a=0;do{if(jn&&(Xn=null),Ra=0,jn=!1,25<=a)throw Error(s(301));if(a+=1,wt=ft=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}z.H=Zr,i=e(l,n)}while(jn);return i}function dg(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?Ua(e):e,t=t.useState()[0],(ft!==null?ft.memoizedState:null)!==t&&(K.flags|=1024),e}function Ws(){var t=Xi!==0;return Xi=0,t}function $s(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Fs(t){if(ji){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ji=!1}il=0,wt=ft=K=null,jn=!1,Ra=Xi=0,Xn=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?K.memoizedState=wt=t:wt=wt.next=t,wt}function xt(){if(ft===null){var t=K.alternate;t=t!==null?t.memoizedState:null}else t=ft.next;var e=wt===null?K.memoizedState:wt.next;if(e!==null)wt=e,ft=t;else{if(t===null)throw K.alternate===null?Error(s(467)):Error(s(310));ft=t,t={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},wt===null?K.memoizedState=wt=t:wt=wt.next=t}return wt}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ua(t){var e=Ra;return Ra+=1,Xn===null&&(Xn=[]),t=Io(Xn,t,e),e=K,(wt===null?e.memoizedState:wt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Qr:fc),t}function Qi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ua(t);if(t.$$typeof===Bt)return Zt(t)}throw Error(s(438,String(t)))}function Is(t){var e=null,l=K.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=K.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Gi(),K.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=gn;return e.index++,l}function ul(t,e){return typeof e=="function"?e(t):e}function Zi(t){var e=xt();return Ps(e,ft,t)}function Ps(t,e,l){var n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var a=t.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}e.baseQueue=a=i,n.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var r=o=null,m=null,_=e,O=!1;do{var C=_.lane&-536870913;if(C!==_.lane?(I&C)===C:(il&C)===C){var A=_.revertLane;if(A===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),C===Hn&&(O=!0);else if((il&A)===A){_=_.next,A===Hn&&(O=!0);continue}else C={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(r=m=C,o=i):m=m.next=C,K.lanes|=A,Ul|=A;C=_.action,rn&&l(i,C),i=_.hasEagerState?_.eagerState:l(i,C)}else A={lane:C,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(r=m=A,o=i):m=m.next=A,K.lanes|=C,Ul|=C;_=_.next}while(_!==null&&_!==e);if(m===null?o=i:m.next=r,!me(i,t.memoizedState)&&(Rt=!0,O&&(l=Bn,l!==null)))throw l;t.memoizedState=i,t.baseState=o,t.baseQueue=m,n.lastRenderedState=i}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function tc(t){var e=xt(),l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,i=e.memoizedState;if(a!==null){l.pending=null;var o=a=a.next;do i=t(i,o.action),o=o.next;while(o!==a);me(i,e.memoizedState)||(Rt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,n]}function fr(t,e,l){var n=K,a=xt(),i=tt;if(i){if(l===void 0)throw Error(s(407));l=l()}else l=e();var o=!me((ft||a).memoizedState,l);if(o&&(a.memoizedState=l,Rt=!0),a=a.queue,nc(hr.bind(null,n,a,t),[t]),a.getSnapshot!==e||o||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,Gn(9,{destroy:void 0},rr.bind(null,n,a,l,e),null),dt===null)throw Error(s(349));i||(il&127)!==0||or(n,e,l)}return l}function or(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=K.updateQueue,e===null?(e=Gi(),K.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function rr(t,e,l,n){e.value=l,e.getSnapshot=n,dr(e)&&mr(t)}function hr(t,e,l){return l(function(){dr(e)&&mr(t)})}function dr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!me(t,l)}catch{return!0}}function mr(t){var e=en(t,2);e!==null&&fe(e,t,2)}function ec(t){var e=It();if(typeof t=="function"){var l=t;if(t=l(),rn){Sl(!0);try{l()}finally{Sl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:t},e}function yr(t,e,l,n){return t.baseState=l,Ps(t,ft,typeof n=="function"?n:ul)}function mg(t,e,l,n,a){if(Ji(t))throw Error(s(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};z.T!==null?l(!0):i.isTransition=!1,n(i),l=e.pending,l===null?(i.next=e.pending=i,gr(e,i)):(i.next=l.next,e.pending=l.next=i)}}function gr(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var i=z.T,o={};z.T=o;try{var r=l(a,n),m=z.S;m!==null&&m(o,r),pr(t,e,r)}catch(_){lc(t,e,_)}finally{i!==null&&o.types!==null&&(i.types=o.types),z.T=i}}else try{i=l(a,n),pr(t,e,i)}catch(_){lc(t,e,_)}}function pr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){vr(t,e,n)},function(n){return lc(t,e,n)}):vr(t,e,l)}function vr(t,e,l){e.status="fulfilled",e.value=l,Sr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,gr(t,l)))}function lc(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Sr(e),e=e.next;while(e!==n)}t.action=null}function Sr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function br(t,e){return e}function Er(t,e){if(tt){var l=dt.formState;if(l!==null){t:{var n=K;if(tt){if(pt){e:{for(var a=pt,i=Ce;a.nodeType!==8;){if(!i){a=null;break e}if(a=we(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){pt=we(a.nextSibling),n=a.data==="F!";break t}}Al(n)}n=!1}n&&(e=l[0])}}return l=It(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:e},l.queue=n,l=jr.bind(null,K,n),n.dispatch=l,n=ec(!1),i=cc.bind(null,K,!1,n.queue),n=It(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=mg.bind(null,K,a,i,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Tr(t){var e=xt();return _r(e,ft,t)}function _r(t,e,l){if(e=Ps(t,e,br)[0],t=Zi(ul)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Ua(e)}catch(o){throw o===Ln?Ni:o}else n=e;e=xt();var a=e.queue,i=a.dispatch;return l!==e.memoizedState&&(K.flags|=2048,Gn(9,{destroy:void 0},yg.bind(null,a,l),null)),[n,i,t]}function yg(t,e){t.action=e}function Ar(t){var e=xt(),l=ft;if(l!==null)return _r(e,l,t);xt(),e=e.memoizedState,l=xt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Gn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=K.updateQueue,e===null&&(e=Gi(),K.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function Mr(){return xt().memoizedState}function Vi(t,e,l,n){var a=It();K.flags|=t,a.memoizedState=Gn(1|e,{destroy:void 0},l,n===void 0?null:n)}function Ki(t,e,l,n){var a=xt();n=n===void 0?null:n;var i=a.memoizedState.inst;ft!==null&&n!==null&&Js(n,ft.memoizedState.deps)?a.memoizedState=Gn(e,i,l,n):(K.flags|=t,a.memoizedState=Gn(1|e,i,l,n))}function Or(t,e){Vi(8390656,8,t,e)}function nc(t,e){Ki(2048,8,t,e)}function gg(t){K.flags|=4;var e=K.updateQueue;if(e===null)e=Gi(),K.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function zr(t){var e=xt().memoizedState;return gg({ref:e,nextImpl:t}),function(){if((at&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function xr(t,e){return Ki(4,2,t,e)}function Cr(t,e){return Ki(4,4,t,e)}function Dr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function wr(t,e,l){l=l!=null?l.concat([t]):null,Ki(4,4,Dr.bind(null,e,t),l)}function ac(){}function Rr(t,e){var l=xt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Js(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Ur(t,e){var l=xt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Js(e,n[1]))return n[0];if(n=t(),rn){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[n,e],n}function ic(t,e,l){return l===void 0||(il&1073741824)!==0&&(I&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Nh(),K.lanes|=t,Ul|=t,l)}function Nr(t,e,l,n){return me(l,e)?l:qn.current!==null?(t=ic(t,l,n),me(t,e)||(Rt=!0),t):(il&42)===0||(il&1073741824)!==0&&(I&261930)===0?(Rt=!0,t.memoizedState=l):(t=Nh(),K.lanes|=t,Ul|=t,e)}function Hr(t,e,l,n,a){var i=R.p;R.p=i!==0&&8>i?i:8;var o=z.T,r={};z.T=r,cc(t,!1,e,l);try{var m=a(),_=z.S;if(_!==null&&_(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=rg(m,n);Na(t,e,O,be(t))}else Na(t,e,n,be(t))}catch(C){Na(t,e,{then:function(){},status:"rejected",reason:C},be())}finally{R.p=i,o!==null&&r.types!==null&&(o.types=r.types),z.T=o}}function pg(){}function uc(t,e,l,n){if(t.tag!==5)throw Error(s(476));var a=Br(t).queue;Hr(t,a,e,Q,l===null?pg:function(){return Lr(t),l(n)})}function Br(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:Q},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Lr(t){var e=Br(t);e.next===null&&(e=t.alternate.memoizedState),Na(t,e.next.queue,{},be())}function sc(){return Zt(Fa)}function Yr(){return xt().memoizedState}function qr(){return xt().memoizedState}function vg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=be();t=zl(l);var n=xl(e,t,l);n!==null&&(fe(n,e,l),Ca(n,e,l)),e={cache:Bs()},t.payload=e;return}e=e.return}}function Sg(t,e,l){var n=be();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(t)?Xr(e,l):(l=Ms(t,e,l,n),l!==null&&(fe(l,t,n),Gr(l,e,n)))}function jr(t,e,l){var n=be();Na(t,e,l,n)}function Na(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ji(t))Xr(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,r=i(o,l);if(a.hasEagerState=!0,a.eagerState=r,me(r,o))return zi(t,e,a,0),dt===null&&Oi(),!1}catch{}finally{}if(l=Ms(t,e,a,n),l!==null)return fe(l,t,n),Gr(l,e,n),!0}return!1}function cc(t,e,l,n){if(n={lane:2,revertLane:jc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ji(t)){if(e)throw Error(s(479))}else e=Ms(t,l,n,2),e!==null&&fe(e,t,2)}function Ji(t){var e=t.alternate;return t===K||e!==null&&e===K}function Xr(t,e){jn=ji=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Gr(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Kf(t,l)}}var Ha={readContext:Zt,use:Qi,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};Ha.useEffectEvent=_t;var Qr={readContext:Zt,use:Qi,useCallback:function(t,e){return It().memoizedState=[t,e===void 0?null:e],t},useContext:Zt,useEffect:Or,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Vi(4194308,4,Dr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Vi(4194308,4,t,e)},useInsertionEffect:function(t,e){Vi(4,2,t,e)},useMemo:function(t,e){var l=It();e=e===void 0?null:e;var n=t();if(rn){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=It();if(l!==void 0){var a=l(e);if(rn){Sl(!0);try{l(e)}finally{Sl(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Sg.bind(null,K,t),[n.memoizedState,t]},useRef:function(t){var e=It();return t={current:t},e.memoizedState=t},useState:function(t){t=ec(t);var e=t.queue,l=jr.bind(null,K,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:ac,useDeferredValue:function(t,e){var l=It();return ic(l,t,e)},useTransition:function(){var t=ec(!1);return t=Hr.bind(null,K,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=K,a=It();if(tt){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),dt===null)throw Error(s(349));(I&127)!==0||or(n,e,l)}a.memoizedState=l;var i={value:l,getSnapshot:e};return a.queue=i,Or(hr.bind(null,n,i,t),[t]),n.flags|=2048,Gn(9,{destroy:void 0},rr.bind(null,n,i,l,e),null),l},useId:function(){var t=It(),e=dt.identifierPrefix;if(tt){var l=Ve,n=Ze;l=(n&~(1<<32-de(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Xi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=hg++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:sc,useFormState:Er,useActionState:Er,useOptimistic:function(t){var e=It();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=cc.bind(null,K,!0,l),l.dispatch=e,[t,e]},useMemoCache:Is,useCacheRefresh:function(){return It().memoizedState=vg.bind(null,K)},useEffectEvent:function(t){var e=It(),l={impl:t};return e.memoizedState=l,function(){if((at&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},fc={readContext:Zt,use:Qi,useCallback:Rr,useContext:Zt,useEffect:nc,useImperativeHandle:wr,useInsertionEffect:xr,useLayoutEffect:Cr,useMemo:Ur,useReducer:Zi,useRef:Mr,useState:function(){return Zi(ul)},useDebugValue:ac,useDeferredValue:function(t,e){var l=xt();return Nr(l,ft.memoizedState,t,e)},useTransition:function(){var t=Zi(ul)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Ua(t),e]},useSyncExternalStore:fr,useId:Yr,useHostTransitionStatus:sc,useFormState:Tr,useActionState:Tr,useOptimistic:function(t,e){var l=xt();return yr(l,ft,t,e)},useMemoCache:Is,useCacheRefresh:qr};fc.useEffectEvent=zr;var Zr={readContext:Zt,use:Qi,useCallback:Rr,useContext:Zt,useEffect:nc,useImperativeHandle:wr,useInsertionEffect:xr,useLayoutEffect:Cr,useMemo:Ur,useReducer:tc,useRef:Mr,useState:function(){return tc(ul)},useDebugValue:ac,useDeferredValue:function(t,e){var l=xt();return ft===null?ic(l,t,e):Nr(l,ft.memoizedState,t,e)},useTransition:function(){var t=tc(ul)[0],e=xt().memoizedState;return[typeof t=="boolean"?t:Ua(t),e]},useSyncExternalStore:fr,useId:Yr,useHostTransitionStatus:sc,useFormState:Ar,useActionState:Ar,useOptimistic:function(t,e){var l=xt();return ft!==null?yr(l,ft,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Is,useCacheRefresh:qr};Zr.useEffectEvent=zr;function oc(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var rc={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=be(),a=zl(n);a.payload=e,l!=null&&(a.callback=l),e=xl(t,a,n),e!==null&&(fe(e,t,n),Ca(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=be(),a=zl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=xl(t,a,n),e!==null&&(fe(e,t,n),Ca(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=be(),n=zl(l);n.tag=2,e!=null&&(n.callback=e),e=xl(t,n,l),e!==null&&(fe(e,t,l),Ca(e,t,l))}};function Vr(t,e,l,n,a,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!Ea(l,n)||!Ea(a,i):!0}function Kr(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&rc.enqueueReplaceState(e,e.state,null)}function hn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function Jr(t){Mi(t)}function kr(t){console.error(t)}function Wr(t){Mi(t)}function ki(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function $r(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function hc(t,e,l){return l=zl(l),l.tag=3,l.payload={element:null},l.callback=function(){ki(t,e)},l}function Fr(t){return t=zl(t),t.tag=3,t}function Ir(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;t.payload=function(){return a(i)},t.callback=function(){$r(e,l,n)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){$r(e,l,n),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var r=n.stack;this.componentDidCatch(n.value,{componentStack:r!==null?r:""})})}function bg(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&Nn(e,l,a,!0),l=ge.current,l!==null){switch(l.tag){case 31:case 13:return De===null?uu():l.alternate===null&&At===0&&(At=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Hi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),Lc(t,n,a)),!1;case 22:return l.flags|=65536,n===Hi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),Lc(t,n,a)),!1}throw Error(s(435,l.tag))}return Lc(t,n,a),uu(),!1}if(tt)return e=ge.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==ws&&(t=Error(s(422),{cause:n}),Aa(Oe(t,l)))):(n!==ws&&(e=Error(s(423),{cause:n}),Aa(Oe(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Oe(n,l),a=hc(t.stateNode,n,a),Gs(t,a),At!==4&&(At=2)),!1;var i=Error(s(520),{cause:n});if(i=Oe(i,l),Qa===null?Qa=[i]:Qa.push(i),At!==4&&(At=2),e===null)return!0;n=Oe(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=hc(l.stateNode,n,t),Gs(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Nl===null||!Nl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Fr(a),Ir(a,t,l,n),Gs(l,a),!1}l=l.return}while(l!==null);return!1}var dc=Error(s(461)),Rt=!1;function Vt(t,e,l,n){e.child=t===null?lr(e,null,l,n):on(e,t.child,l,n)}function Pr(t,e,l,n,a){l=l.render;var i=e.ref;if("ref"in n){var o={};for(var r in n)r!=="ref"&&(o[r]=n[r])}else o=n;return un(e),n=ks(t,e,l,o,i,a),r=Ws(),t!==null&&!Rt?($s(t,e,a),sl(t,e,a)):(tt&&r&&Cs(e),e.flags|=1,Vt(t,e,n,a),e.child)}function th(t,e,l,n,a){if(t===null){var i=l.type;return typeof i=="function"&&!Os(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,eh(t,e,i,n,a)):(t=Ci(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Ec(t,a)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:Ea,l(o,n)&&t.ref===e.ref)return sl(t,e,a)}return e.flags|=1,t=el(i,n),t.ref=e.ref,t.return=e,e.child=t}function eh(t,e,l,n,a){if(t!==null){var i=t.memoizedProps;if(Ea(i,n)&&t.ref===e.ref)if(Rt=!1,e.pendingProps=n=i,Ec(t,a))(t.flags&131072)!==0&&(Rt=!0);else return e.lanes=t.lanes,sl(t,e,a)}return mc(t,e,l,n,a)}function lh(t,e,l,n){var a=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,e.child=null;return nh(t,e,i,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ui(e,i!==null?i.cachePool:null),i!==null?ir(e,i):Zs(),ur(e);else return n=e.lanes=536870912,nh(t,e,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(Ui(e,i.cachePool),ir(e,i),Dl(),e.memoizedState=null):(t!==null&&Ui(e,null),Zs(),Dl());return Vt(t,e,a,l),e.child}function Ba(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function nh(t,e,l,n,a){var i=Ys();return i=i===null?null:{parent:Dt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Ui(e,null),Zs(),ur(e),t!==null&&Nn(t,e,n,!0),e.childLanes=a,null}function Wi(t,e){return e=Fi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ah(t,e,l){return on(e,t.child,null,l),t=Wi(e,e.pendingProps),t.flags|=2,pe(e),e.memoizedState=null,t}function Eg(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(tt){if(n.mode==="hidden")return t=Wi(e,n),e.lanes=536870912,Ba(null,t);if(Ks(e),(t=pt)?(t=gd(t,Ce),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ze,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Xo(t),l.return=e,e.child=l,Qt=e,pt=null)):t=null,t===null)throw Al(e);return e.lanes=536870912,null}return Wi(e,n)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(Ks(e),a)if(e.flags&256)e.flags&=-257,e=ah(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(Rt||Nn(t,e,l,!1),a=(l&t.childLanes)!==0,Rt||a){if(n=dt,n!==null&&(o=Jf(n,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,en(t,o),fe(n,t,o),dc;uu(),e=ah(t,e,l)}else t=i.treeContext,pt=we(o.nextSibling),Qt=e,tt=!0,_l=null,Ce=!1,t!==null&&Zo(e,t),e=Wi(e,n),e.flags|=4096;return e}return t=el(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function $i(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function mc(t,e,l,n,a){return un(e),l=ks(t,e,l,n,void 0,a),n=Ws(),t!==null&&!Rt?($s(t,e,a),sl(t,e,a)):(tt&&n&&Cs(e),e.flags|=1,Vt(t,e,l,a),e.child)}function ih(t,e,l,n,a,i){return un(e),e.updateQueue=null,l=cr(e,n,l,a),sr(t),n=Ws(),t!==null&&!Rt?($s(t,e,i),sl(t,e,i)):(tt&&n&&Cs(e),e.flags|=1,Vt(t,e,l,i),e.child)}function uh(t,e,l,n,a){if(un(e),e.stateNode===null){var i=Dn,o=l.contextType;typeof o=="object"&&o!==null&&(i=Zt(o)),i=new l(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=rc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},js(e),o=l.contextType,i.context=typeof o=="object"&&o!==null?Zt(o):Dn,i.state=e.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(oc(e,l,o,n),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&rc.enqueueReplaceState(i,i.state,null),wa(e,n,i,a),Da(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){i=e.stateNode;var r=e.memoizedProps,m=hn(l,r);i.props=m;var _=i.context,O=l.contextType;o=Dn,typeof O=="object"&&O!==null&&(o=Zt(O));var C=l.getDerivedStateFromProps;O=typeof C=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||_!==o)&&Kr(e,i,n,o),Ol=!1;var A=e.memoizedState;i.state=A,wa(e,n,i,a),Da(),_=e.memoizedState,r||A!==_||Ol?(typeof C=="function"&&(oc(e,l,C,n),_=e.memoizedState),(m=Ol||Vr(e,l,m,n,A,_,o))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=_),i.props=n,i.state=_,i.context=o,n=m):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,Xs(t,e),o=e.memoizedProps,O=hn(l,o),i.props=O,C=e.pendingProps,A=i.context,_=l.contextType,m=Dn,typeof _=="object"&&_!==null&&(m=Zt(_)),r=l.getDerivedStateFromProps,(_=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==C||A!==m)&&Kr(e,i,n,m),Ol=!1,A=e.memoizedState,i.state=A,wa(e,n,i,a),Da();var M=e.memoizedState;o!==C||A!==M||Ol||t!==null&&t.dependencies!==null&&wi(t.dependencies)?(typeof r=="function"&&(oc(e,l,r,n),M=e.memoizedState),(O=Ol||Vr(e,l,O,n,A,M,m)||t!==null&&t.dependencies!==null&&wi(t.dependencies))?(_||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,M,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,M,m)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=M),i.props=n,i.state=M,i.context=m,n=O):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),n=!1)}return i=n,$i(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=on(e,t.child,null,a),e.child=on(e,null,l,a)):Vt(t,e,l,a),e.memoizedState=i.state,t=e.child):t=sl(t,e,a),t}function sh(t,e,l,n){return nn(),e.flags|=256,Vt(t,e,l,n),e.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(t){return{baseLanes:t,cachePool:$o()}}function pc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Se),t}function ch(t,e,l){var n=e.pendingProps,a=!1,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),o&&(a=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(tt){if(a?Cl(e):Dl(),(t=pt)?(t=gd(t,Ce),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tl!==null?{id:Ze,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Xo(t),l.return=e,e.child=l,Qt=e,pt=null)):t=null,t===null)throw Al(e);return Pc(t)?e.lanes=32:e.lanes=536870912,null}var r=n.children;return n=n.fallback,a?(Dl(),a=e.mode,r=Fi({mode:"hidden",children:r},a),n=ln(n,a,l,null),r.return=e,n.return=e,r.sibling=n,e.child=r,n=e.child,n.memoizedState=gc(l),n.childLanes=pc(t,o,l),e.memoizedState=yc,Ba(null,n)):(Cl(e),vc(e,r))}var m=t.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(i)e.flags&256?(Cl(e),e.flags&=-257,e=Sc(t,e,l)):e.memoizedState!==null?(Dl(),e.child=t.child,e.flags|=128,e=null):(Dl(),r=n.fallback,a=e.mode,n=Fi({mode:"visible",children:n.children},a),r=ln(r,a,l,null),r.flags|=2,n.return=e,r.return=e,n.sibling=r,e.child=n,on(e,t.child,null,l),n=e.child,n.memoizedState=gc(l),n.childLanes=pc(t,o,l),e.memoizedState=yc,e=Ba(null,n));else if(Cl(e),Pc(r)){if(o=r.nextSibling&&r.nextSibling.dataset,o)var _=o.dgst;o=_,n=Error(s(419)),n.stack="",n.digest=o,Aa({value:n,source:null,stack:null}),e=Sc(t,e,l)}else if(Rt||Nn(t,e,l,!1),o=(l&t.childLanes)!==0,Rt||o){if(o=dt,o!==null&&(n=Jf(o,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,en(t,n),fe(o,t,n),dc;Ic(r)||uu(),e=Sc(t,e,l)}else Ic(r)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,pt=we(r.nextSibling),Qt=e,tt=!0,_l=null,Ce=!1,t!==null&&Zo(e,t),e=vc(e,n.children),e.flags|=4096);return e}return a?(Dl(),r=n.fallback,a=e.mode,m=t.child,_=m.sibling,n=el(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,_!==null?r=el(_,r):(r=ln(r,a,l,null),r.flags|=2),r.return=e,n.return=e,n.sibling=r,e.child=n,Ba(null,n),n=e.child,r=t.child.memoizedState,r===null?r=gc(l):(a=r.cachePool,a!==null?(m=Dt._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=$o(),r={baseLanes:r.baseLanes|l,cachePool:a}),n.memoizedState=r,n.childLanes=pc(t,o,l),e.memoizedState=yc,Ba(t.child,n)):(Cl(e),l=t.child,t=l.sibling,l=el(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=l,e.memoizedState=null,l)}function vc(t,e){return e=Fi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Fi(t,e){return t=ye(22,t,null,e),t.lanes=0,t}function Sc(t,e,l){return on(e,t.child,null,l),t=vc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function fh(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ns(t.return,e,l)}function bc(t,e,l,n,a,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=l,o.tailMode=a,o.treeForkCount=i)}function oh(t,e,l){var n=e.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var o=zt.current,r=(o&2)!==0;if(r?(o=o&1|2,e.flags|=128):o&=1,U(zt,o),Vt(t,e,n,l),n=tt?_a:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fh(t,l,e);else if(t.tag===19)fh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&qi(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),bc(e,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&qi(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}bc(e,!0,l,null,i,n);break;case"together":bc(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function sl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Ul|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Nn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,l=el(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=el(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Ec(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&wi(t)))}function Tg(t,e,l){switch(e.tag){case 3:Ft(e,e.stateNode.containerInfo),Ml(e,Dt,t.memoizedState.cache),nn();break;case 27:case 5:ca(e);break;case 4:Ft(e,e.stateNode.containerInfo);break;case 10:Ml(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ks(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Cl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?ch(t,e,l):(Cl(e),t=sl(t,e,l),t!==null?t.sibling:null);Cl(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(Nn(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return oh(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(zt,zt.current),n)break;return null;case 22:return e.lanes=0,lh(t,e,l,e.pendingProps);case 24:Ml(e,Dt,t.memoizedState.cache)}return sl(t,e,l)}function rh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Rt=!0;else{if(!Ec(t,l)&&(e.flags&128)===0)return Rt=!1,Tg(t,e,l);Rt=(t.flags&131072)!==0}else Rt=!1,tt&&(e.flags&1048576)!==0&&Qo(e,_a,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=cn(e.elementType),e.type=t,typeof t=="function")Os(t)?(n=hn(t,n),e.tag=1,e=uh(null,e,t,n,l)):(e.tag=0,e=mc(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===te){e.tag=11,e=Pr(null,e,t,n,l);break t}else if(a===k){e.tag=14,e=th(null,e,t,n,l);break t}}throw e=Fe(t)||t,Error(s(306,e,""))}}return e;case 0:return mc(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=hn(n,e.pendingProps),uh(t,e,n,a,l);case 3:t:{if(Ft(e,e.stateNode.containerInfo),t===null)throw Error(s(387));n=e.pendingProps;var i=e.memoizedState;a=i.element,Xs(t,e),wa(e,n,null,l);var o=e.memoizedState;if(n=o.cache,Ml(e,Dt,n),n!==i.cache&&Hs(e,[Dt],l,!0),Da(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=sh(t,e,n,l);break t}else if(n!==a){a=Oe(Error(s(424)),e),Aa(a),e=sh(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(pt=we(t.firstChild),Qt=e,tt=!0,_l=null,Ce=!0,l=lr(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(nn(),n===a){e=sl(t,e,l);break t}Vt(t,e,n,l)}e=e.child}return e;case 26:return $i(t,e),t===null?(l=Td(e.type,null,e.pendingProps,null))?e.memoizedState=l:tt||(l=e.type,t=e.pendingProps,n=du(W.current).createElement(l),n[Gt]=e,n[ne]=t,Kt(n,l,t),Yt(n),e.stateNode=n):e.memoizedState=Td(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ca(e),t===null&&tt&&(n=e.stateNode=Sd(e.type,e.pendingProps,W.current),Qt=e,Ce=!0,a=pt,Yl(e.type)?(tf=a,pt=we(n.firstChild)):pt=a),Vt(t,e,e.pendingProps.children,l),$i(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&tt&&((a=n=pt)&&(n=Ig(n,e.type,e.pendingProps,Ce),n!==null?(e.stateNode=n,Qt=e,pt=we(n.firstChild),Ce=!1,a=!0):a=!1),a||Al(e)),ca(e),a=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,n=i.children,Wc(a,i)?n=null:o!==null&&Wc(a,o)&&(e.flags|=32),e.memoizedState!==null&&(a=ks(t,e,dg,null,null,l),Fa._currentValue=a),$i(t,e),Vt(t,e,n,l),e.child;case 6:return t===null&&tt&&((t=l=pt)&&(l=Pg(l,e.pendingProps,Ce),l!==null?(e.stateNode=l,Qt=e,pt=null,t=!0):t=!1),t||Al(e)),null;case 13:return ch(t,e,l);case 4:return Ft(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=on(e,null,n,l):Vt(t,e,n,l),e.child;case 11:return Pr(t,e,e.type,e.pendingProps,l);case 7:return Vt(t,e,e.pendingProps,l),e.child;case 8:return Vt(t,e,e.pendingProps.children,l),e.child;case 12:return Vt(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,Ml(e,e.type,n.value),Vt(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,un(e),a=Zt(a),n=n(a),e.flags|=1,Vt(t,e,n,l),e.child;case 14:return th(t,e,e.type,e.pendingProps,l);case 15:return eh(t,e,e.type,e.pendingProps,l);case 19:return oh(t,e,l);case 31:return Eg(t,e,l);case 22:return lh(t,e,l,e.pendingProps);case 24:return un(e),n=Zt(Dt),t===null?(a=Ys(),a===null&&(a=dt,i=Bs(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),e.memoizedState={parent:n,cache:a},js(e),Ml(e,Dt,a)):((t.lanes&l)!==0&&(Xs(t,e),wa(e,null,null,l),Da()),a=t.memoizedState,i=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Ml(e,Dt,n)):(n=i.cache,Ml(e,Dt,n),n!==a.cache&&Hs(e,[Dt],l,!0))),Vt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function cl(t){t.flags|=4}function Tc(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(Yh())t.flags|=8192;else throw fn=Hi,qs}else t.flags&=-16777217}function hh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zd(e))if(Yh())t.flags|=8192;else throw fn=Hi,qs}function Ii(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Zf():536870912,t.lanes|=e,Kn|=e)}function La(t,e){if(!tt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function vt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function _g(t,e,l){var n=e.pendingProps;switch(Ds(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(e),null;case 1:return vt(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),al(Dt),Ot(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Un(e)?cl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Rs())),vt(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(cl(e),i!==null?(vt(e),hh(e,i)):(vt(e),Tc(e,a,null,n,l))):i?i!==t.memoizedState?(cl(e),vt(e),hh(e,i)):(vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&cl(e),vt(e),Tc(e,a,t,n,l)),null;case 27:if(fi(e),l=W.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&cl(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return vt(e),null}t=L.current,Un(e)?Vo(e):(t=Sd(a,n,l),e.stateNode=t,cl(e))}return vt(e),null;case 5:if(fi(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&cl(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return vt(e),null}if(i=L.current,Un(e))Vo(e);else{var o=du(W.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}i[Gt]=e,i[ne]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=i;t:switch(Kt(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&cl(e)}}return vt(e),Tc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&cl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(s(166));if(t=W.current,Un(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Qt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[Gt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||cd(t.nodeValue,l)),t||Al(e,!0)}else t=du(t).createTextNode(n),t[Gt]=e,e.stateNode=t}return vt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=Un(e),l!==null){if(t===null){if(!n)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[Gt]=e}else nn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;vt(e),t=!1}else l=Rs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(pe(e),e):(pe(e),null);if((e.flags&128)!==0)throw Error(s(558))}return vt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Un(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[Gt]=e}else nn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;vt(e),a=!1}else a=Rs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(pe(e),e):(pe(e),null)}return pe(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ii(e,e.updateQueue),vt(e),null);case 4:return Ot(),t===null&&Zc(e.stateNode.containerInfo),vt(e),null;case 10:return al(e.type),vt(e),null;case 19:if(D(zt),n=e.memoizedState,n===null)return vt(e),null;if(a=(e.flags&128)!==0,i=n.rendering,i===null)if(a)La(n,!1);else{if(At!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=qi(t),i!==null){for(e.flags|=128,La(n,!1),t=i.updateQueue,e.updateQueue=t,Ii(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)jo(l,t),l=l.sibling;return U(zt,zt.current&1|2),tt&&ll(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&re()>nu&&(e.flags|=128,a=!0,La(n,!1),e.lanes=4194304)}else{if(!a)if(t=qi(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Ii(e,t),La(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!tt)return vt(e),null}else 2*re()-n.renderingStartTime>nu&&l!==536870912&&(e.flags|=128,a=!0,La(n,!1),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=re(),t.sibling=null,l=zt.current,U(zt,a?l&1|2:l&1),tt&&ll(e,n.treeForkCount),t):(vt(e),null);case 22:case 23:return pe(e),Vs(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(vt(e),e.subtreeFlags&6&&(e.flags|=8192)):vt(e),l=e.updateQueue,l!==null&&Ii(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&D(sn),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),al(Dt),vt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Ag(t,e){switch(Ds(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return al(Dt),Ot(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return fi(e),null;case 31:if(e.memoizedState!==null){if(pe(e),e.alternate===null)throw Error(s(340));nn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(pe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));nn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(zt),null;case 4:return Ot(),null;case 10:return al(e.type),null;case 22:case 23:return pe(e),Vs(),t!==null&&D(sn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return al(Dt),null;case 25:return null;default:return null}}function dh(t,e){switch(Ds(e),e.tag){case 3:al(Dt),Ot();break;case 26:case 27:case 5:fi(e);break;case 4:Ot();break;case 31:e.memoizedState!==null&&pe(e);break;case 13:pe(e);break;case 19:D(zt);break;case 10:al(e.type);break;case 22:case 23:pe(e),Vs(),t!==null&&D(sn);break;case 24:al(Dt)}}function Ya(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var i=l.create,o=l.inst;n=i(),o.destroy=n}l=l.next}while(l!==a)}}catch(r){st(e,e.return,r)}}function wl(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){var o=n.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,a=e;var m=l,_=r;try{_()}catch(O){st(a,m,O)}}}n=n.next}while(n!==i)}}catch(O){st(e,e.return,O)}}function mh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{ar(e,l)}catch(n){st(t,t.return,n)}}}function yh(t,e,l){l.props=hn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){st(t,e,n)}}function qa(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){st(t,e,a)}}function Ke(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){st(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){st(t,e,a)}else l.current=null}function gh(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){st(t,t.return,a)}}function _c(t,e,l){try{var n=t.stateNode;Kg(n,t.type,l,e),n[ne]=e}catch(a){st(t,t.return,a)}}function ph(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yl(t.type)||t.tag===4}function Ac(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ph(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Mc(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Pe));else if(n!==4&&(n===27&&Yl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Mc(t,e,l),t=t.sibling;t!==null;)Mc(t,e,l),t=t.sibling}function Pi(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Yl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Pi(t,e,l),t=t.sibling;t!==null;)Pi(t,e,l),t=t.sibling}function vh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Kt(e,n,l),e[Gt]=t,e[ne]=l}catch(i){st(t,t.return,i)}}var fl=!1,Ut=!1,Oc=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,qt=null;function Mg(t,e){if(t=t.containerInfo,Jc=bu,t=wo(t),Ss(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var o=0,r=-1,m=-1,_=0,O=0,C=t,A=null;e:for(;;){for(var M;C!==l||a!==0&&C.nodeType!==3||(r=o+a),C!==i||n!==0&&C.nodeType!==3||(m=o+n),C.nodeType===3&&(o+=C.nodeValue.length),(M=C.firstChild)!==null;)A=C,C=M;for(;;){if(C===t)break e;if(A===l&&++_===a&&(r=o),A===i&&++O===n&&(m=o),(M=C.nextSibling)!==null)break;C=A,A=C.parentNode}C=M}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(kc={focusedElem:t,selectionRange:l},bu=!1,qt=e;qt!==null;)if(e=qt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,qt=t;else for(;qt!==null;){switch(e=qt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var H=hn(l.type,a);t=n.getSnapshotBeforeUpdate(H,i),n.__reactInternalSnapshotBeforeUpdate=t}catch(X){st(l,l.return,X)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Fc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Fc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=e.sibling,t!==null){t.return=e.return,qt=t;break}qt=e.return}}function bh(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:rl(t,l),n&4&&Ya(5,l);break;case 1:if(rl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(o){st(l,l.return,o)}else{var a=hn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){st(l,l.return,o)}}n&64&&mh(l),n&512&&qa(l,l.return);break;case 3:if(rl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{ar(t,e)}catch(o){st(l,l.return,o)}}break;case 27:e===null&&n&4&&vh(l);case 26:case 5:rl(t,l),e===null&&n&4&&gh(l),n&512&&qa(l,l.return);break;case 12:rl(t,l);break;case 31:rl(t,l),n&4&&_h(t,l);break;case 13:rl(t,l),n&4&&Ah(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Ng.bind(null,l),tp(t,l))));break;case 22:if(n=l.memoizedState!==null||fl,!n){e=e!==null&&e.memoizedState!==null||Ut,a=fl;var i=Ut;fl=n,(Ut=e)&&!i?hl(t,l,(l.subtreeFlags&8772)!==0):rl(t,l),fl=a,Ut=i}break;case 30:break;default:rl(t,l)}}function Eh(t){var e=t.alternate;e!==null&&(t.alternate=null,Eh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ls(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var bt=null,ie=!1;function ol(t,e,l){for(l=l.child;l!==null;)Th(t,e,l),l=l.sibling}function Th(t,e,l){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(fa,l)}catch{}switch(l.tag){case 26:Ut||Ke(l,e),ol(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ut||Ke(l,e);var n=bt,a=ie;Yl(l.type)&&(bt=l.stateNode,ie=!1),ol(t,e,l),ka(l.stateNode),bt=n,ie=a;break;case 5:Ut||Ke(l,e);case 6:if(n=bt,a=ie,bt=null,ol(t,e,l),bt=n,ie=a,bt!==null)if(ie)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(l.stateNode)}catch(i){st(l,e,i)}else try{bt.removeChild(l.stateNode)}catch(i){st(l,e,i)}break;case 18:bt!==null&&(ie?(t=bt,md(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ta(t)):md(bt,l.stateNode));break;case 4:n=bt,a=ie,bt=l.stateNode.containerInfo,ie=!0,ol(t,e,l),bt=n,ie=a;break;case 0:case 11:case 14:case 15:wl(2,l,e),Ut||wl(4,l,e),ol(t,e,l);break;case 1:Ut||(Ke(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&yh(l,e,n)),ol(t,e,l);break;case 21:ol(t,e,l);break;case 22:Ut=(n=Ut)||l.memoizedState!==null,ol(t,e,l),Ut=n;break;default:ol(t,e,l)}}function _h(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ta(t)}catch(l){st(e,e.return,l)}}}function Ah(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ta(t)}catch(l){st(e,e.return,l)}}function Og(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Sh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Sh),e;default:throw Error(s(435,t.tag))}}function tu(t,e){var l=Og(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=Hg.bind(null,t,n);n.then(a,a)}})}function ue(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=t,o=e,r=o;t:for(;r!==null;){switch(r.tag){case 27:if(Yl(r.type)){bt=r.stateNode,ie=!1;break t}break;case 5:bt=r.stateNode,ie=!1;break t;case 3:case 4:bt=r.stateNode.containerInfo,ie=!0;break t}r=r.return}if(bt===null)throw Error(s(160));Th(i,o,a),bt=null,ie=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Mh(e,t),e=e.sibling}var Le=null;function Mh(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ue(e,t),se(t),n&4&&(wl(3,t,t.return),Ya(3,t),wl(5,t,t.return));break;case 1:ue(e,t),se(t),n&512&&(Ut||l===null||Ke(l,l.return)),n&64&&fl&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Le;if(ue(e,t),se(t),n&512&&(Ut||l===null||Ke(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[ha]||i[Gt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Kt(i,n,l),i[Gt]=t,Yt(i),n=i;break t;case"link":var o=Md("link","href",a).get(n+(l.href||""));if(o){for(var r=0;r<o.length;r++)if(i=o[r],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(r,1);break e}}i=a.createElement(n),Kt(i,n,l),a.head.appendChild(i);break;case"meta":if(o=Md("meta","content",a).get(n+(l.content||""))){for(r=0;r<o.length;r++)if(i=o[r],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(r,1);break e}}i=a.createElement(n),Kt(i,n,l),a.head.appendChild(i);break;default:throw Error(s(468,n))}i[Gt]=t,Yt(i),n=i}t.stateNode=n}else Od(a,t.type,t.stateNode);else t.stateNode=Ad(a,n,t.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?Od(a,t.type,t.stateNode):Ad(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&_c(t,t.memoizedProps,l.memoizedProps)}break;case 27:ue(e,t),se(t),n&512&&(Ut||l===null||Ke(l,l.return)),l!==null&&n&4&&_c(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ue(e,t),se(t),n&512&&(Ut||l===null||Ke(l,l.return)),t.flags&32){a=t.stateNode;try{_n(a,"")}catch(H){st(t,t.return,H)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,_c(t,a,l!==null?l.memoizedProps:a)),n&1024&&(Oc=!0);break;case 6:if(ue(e,t),se(t),n&4){if(t.stateNode===null)throw Error(s(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(H){st(t,t.return,H)}}break;case 3:if(gu=null,a=Le,Le=mu(e.containerInfo),ue(e,t),Le=a,se(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{ta(e.containerInfo)}catch(H){st(t,t.return,H)}Oc&&(Oc=!1,Oh(t));break;case 4:n=Le,Le=mu(t.stateNode.containerInfo),ue(e,t),se(t),Le=n;break;case 12:ue(e,t),se(t);break;case 31:ue(e,t),se(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,tu(t,n)));break;case 13:ue(e,t),se(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(lu=re()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,tu(t,n)));break;case 22:a=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,_=fl,O=Ut;if(fl=_||a,Ut=O||m,ue(e,t),Ut=O,fl=_,se(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||m||fl||Ut||dn(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(i=m.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{r=m.stateNode;var C=m.memoizedProps.style,A=C!=null&&C.hasOwnProperty("display")?C.display:null;r.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(H){st(m,m.return,H)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(H){st(m,m.return,H)}}}else if(e.tag===18){if(l===null){m=e;try{var M=m.stateNode;a?yd(M,!0):yd(m.stateNode,!1)}catch(H){st(m,m.return,H)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,tu(t,l))));break;case 19:ue(e,t),se(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,tu(t,n)));break;case 30:break;case 21:break;default:ue(e,t),se(t)}}function se(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(ph(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var a=l.stateNode,i=Ac(t);Pi(t,i,a);break;case 5:var o=l.stateNode;l.flags&32&&(_n(o,""),l.flags&=-33);var r=Ac(t);Pi(t,r,o);break;case 3:case 4:var m=l.stateNode.containerInfo,_=Ac(t);Mc(t,_,m);break;default:throw Error(s(161))}}catch(O){st(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Oh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Oh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function rl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)bh(t,e.alternate,e),e=e.sibling}function dn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:wl(4,e,e.return),dn(e);break;case 1:Ke(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&yh(e,e.return,l),dn(e);break;case 27:ka(e.stateNode);case 26:case 5:Ke(e,e.return),dn(e);break;case 22:e.memoizedState===null&&dn(e);break;case 30:dn(e);break;default:dn(e)}t=t.sibling}}function hl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,i=e,o=i.flags;switch(i.tag){case 0:case 11:case 15:hl(a,i,l),Ya(4,i);break;case 1:if(hl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(_){st(n,n.return,_)}if(n=i,a=n.updateQueue,a!==null){var r=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)nr(m[a],r)}catch(_){st(n,n.return,_)}}l&&o&64&&mh(i),qa(i,i.return);break;case 27:vh(i);case 26:case 5:hl(a,i,l),l&&n===null&&o&4&&gh(i),qa(i,i.return);break;case 12:hl(a,i,l);break;case 31:hl(a,i,l),l&&o&4&&_h(a,i);break;case 13:hl(a,i,l),l&&o&4&&Ah(a,i);break;case 22:i.memoizedState===null&&hl(a,i,l),qa(i,i.return);break;case 30:break;default:hl(a,i,l)}e=e.sibling}}function zc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Ma(l))}function xc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ma(t))}function Ye(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zh(t,e,l,n),e=e.sibling}function zh(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,l,n),a&2048&&Ya(9,e);break;case 1:Ye(t,e,l,n);break;case 3:Ye(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ma(t)));break;case 12:if(a&2048){Ye(t,e,l,n),t=e.stateNode;try{var i=e.memoizedProps,o=i.id,r=i.onPostCommit;typeof r=="function"&&r(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){st(e,e.return,m)}}else Ye(t,e,l,n);break;case 31:Ye(t,e,l,n);break;case 13:Ye(t,e,l,n);break;case 23:break;case 22:i=e.stateNode,o=e.alternate,e.memoizedState!==null?i._visibility&2?Ye(t,e,l,n):ja(t,e):i._visibility&2?Ye(t,e,l,n):(i._visibility|=2,Qn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&zc(o,e);break;case 24:Ye(t,e,l,n),a&2048&&xc(e.alternate,e);break;default:Ye(t,e,l,n)}}function Qn(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,o=e,r=l,m=n,_=o.flags;switch(o.tag){case 0:case 11:case 15:Qn(i,o,r,m,a),Ya(8,o);break;case 23:break;case 22:var O=o.stateNode;o.memoizedState!==null?O._visibility&2?Qn(i,o,r,m,a):ja(i,o):(O._visibility|=2,Qn(i,o,r,m,a)),a&&_&2048&&zc(o.alternate,o);break;case 24:Qn(i,o,r,m,a),a&&_&2048&&xc(o.alternate,o);break;default:Qn(i,o,r,m,a)}e=e.sibling}}function ja(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:ja(l,n),a&2048&&zc(n.alternate,n);break;case 24:ja(l,n),a&2048&&xc(n.alternate,n);break;default:ja(l,n)}e=e.sibling}}var Xa=8192;function Zn(t,e,l){if(t.subtreeFlags&Xa)for(t=t.child;t!==null;)xh(t,e,l),t=t.sibling}function xh(t,e,l){switch(t.tag){case 26:Zn(t,e,l),t.flags&Xa&&t.memoizedState!==null&&hp(l,Le,t.memoizedState,t.memoizedProps);break;case 5:Zn(t,e,l);break;case 3:case 4:var n=Le;Le=mu(t.stateNode.containerInfo),Zn(t,e,l),Le=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Xa,Xa=16777216,Zn(t,e,l),Xa=n):Zn(t,e,l));break;default:Zn(t,e,l)}}function Ch(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ga(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];qt=n,wh(n,t)}Ch(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dh(t),t=t.sibling}function Dh(t){switch(t.tag){case 0:case 11:case 15:Ga(t),t.flags&2048&&wl(9,t,t.return);break;case 3:Ga(t);break;case 12:Ga(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,eu(t)):Ga(t);break;default:Ga(t)}}function eu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];qt=n,wh(n,t)}Ch(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wl(8,e,e.return),eu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,eu(e));break;default:eu(e)}t=t.sibling}}function wh(t,e){for(;qt!==null;){var l=qt;switch(l.tag){case 0:case 11:case 15:wl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ma(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,qt=n;else t:for(l=t;qt!==null;){n=qt;var a=n.sibling,i=n.return;if(Eh(n),n===l){qt=null;break t}if(a!==null){a.return=i,qt=a;break t}qt=i}}}var zg={getCacheForType:function(t){var e=Zt(Dt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Zt(Dt).controller.signal}},xg=typeof WeakMap=="function"?WeakMap:Map,at=0,dt=null,$=null,I=0,ut=0,ve=null,Rl=!1,Vn=!1,Cc=!1,dl=0,At=0,Ul=0,mn=0,Dc=0,Se=0,Kn=0,Qa=null,ce=null,wc=!1,lu=0,Rh=0,nu=1/0,au=null,Nl=null,Nt=0,Hl=null,Jn=null,ml=0,Rc=0,Uc=null,Uh=null,Za=0,Nc=null;function be(){return(at&2)!==0&&I!==0?I&-I:z.T!==null?jc():kf()}function Nh(){if(Se===0)if((I&536870912)===0||tt){var t=hi;hi<<=1,(hi&3932160)===0&&(hi=262144),Se=t}else Se=536870912;return t=ge.current,t!==null&&(t.flags|=32),Se}function fe(t,e,l){(t===dt&&(ut===2||ut===9)||t.cancelPendingCommit!==null)&&(kn(t,0),Bl(t,I,Se,!1)),ra(t,l),((at&2)===0||t!==dt)&&(t===dt&&((at&2)===0&&(mn|=l),At===4&&Bl(t,I,Se,!1)),Je(t))}function Hh(t,e,l){if((at&6)!==0)throw Error(s(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||oa(t,e),a=n?wg(t,e):Bc(t,e,!0),i=n;do{if(a===0){Vn&&!n&&Bl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!Cg(l)){a=Bc(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var r=t;a=Qa;var m=r.current.memoizedState.isDehydrated;if(m&&(kn(r,o).flags|=256),o=Bc(r,o,!1),o!==2){if(Cc&&!m){r.errorRecoveryDisabledLanes|=i,mn|=i,a=4;break t}i=ce,ce=a,i!==null&&(ce===null?ce=i:ce.push.apply(ce,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){kn(t,0),Bl(t,e,0,!0);break}t:{switch(n=t,i=a,i){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Bl(n,e,Se,!Rl);break t;case 2:ce=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=lu+300-re(),10<a)){if(Bl(n,e,Se,!Rl),mi(n,0,!0)!==0)break t;ml=e,n.timeoutHandle=hd(Bh.bind(null,n,l,ce,au,wc,e,Se,mn,Kn,Rl,i,"Throttled",-0,0),a);break t}Bh(n,l,ce,au,wc,e,Se,mn,Kn,Rl,i,null,-0,0)}}break}while(!0);Je(t)}function Bh(t,e,l,n,a,i,o,r,m,_,O,C,A,M){if(t.timeoutHandle=-1,C=e.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pe},xh(e,i,C);var H=(i&62914560)===i?lu-re():(i&4194048)===i?Rh-re():0;if(H=dp(C,H),H!==null){ml=i,t.cancelPendingCommit=H(Zh.bind(null,t,e,i,l,n,a,o,r,m,O,C,null,A,M)),Bl(t,i,o,!_);return}}Zh(t,e,i,l,n,a,o,r,m)}function Cg(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!me(i(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bl(t,e,l,n){e&=~Dc,e&=~mn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var i=31-de(a),o=1<<i;n[i]=-1,a&=~o}l!==0&&Vf(t,l,e)}function iu(){return(at&6)===0?(Va(0),!1):!0}function Hc(){if($!==null){if(ut===0)var t=$.return;else t=$,nl=an=null,Fs(t),Yn=null,za=0,t=$;for(;t!==null;)dh(t.alternate,t),t=t.return;$=null}}function kn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Wg(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ml=0,Hc(),dt=t,$=l=el(t.current,null),I=e,ut=0,ve=null,Rl=!1,Vn=oa(t,e),Cc=!1,Kn=Se=Dc=mn=Ul=At=0,ce=Qa=null,wc=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-de(n),i=1<<a;e|=t[a],n&=~i}return dl=e,Oi(),l}function Lh(t,e){K=null,z.H=Ha,e===Ln||e===Ni?(e=Po(),ut=3):e===qs?(e=Po(),ut=4):ut=e===dc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ve=e,$===null&&(At=1,ki(t,Oe(e,t.current)))}function Yh(){var t=ge.current;return t===null?!0:(I&4194048)===I?De===null:(I&62914560)===I||(I&536870912)!==0?t===De:!1}function qh(){var t=z.H;return z.H=Ha,t===null?Ha:t}function jh(){var t=z.A;return z.A=zg,t}function uu(){At=4,Rl||(I&4194048)!==I&&ge.current!==null||(Vn=!0),(Ul&134217727)===0&&(mn&134217727)===0||dt===null||Bl(dt,I,Se,!1)}function Bc(t,e,l){var n=at;at|=2;var a=qh(),i=jh();(dt!==t||I!==e)&&(au=null,kn(t,e)),e=!1;var o=At;t:do try{if(ut!==0&&$!==null){var r=$,m=ve;switch(ut){case 8:Hc(),o=6;break t;case 3:case 2:case 9:case 6:ge.current===null&&(e=!0);var _=ut;if(ut=0,ve=null,Wn(t,r,m,_),l&&Vn){o=0;break t}break;default:_=ut,ut=0,ve=null,Wn(t,r,m,_)}}Dg(),o=At;break}catch(O){Lh(t,O)}while(!0);return e&&t.shellSuspendCounter++,nl=an=null,at=n,z.H=a,z.A=i,$===null&&(dt=null,I=0,Oi()),o}function Dg(){for(;$!==null;)Xh($)}function wg(t,e){var l=at;at|=2;var n=qh(),a=jh();dt!==t||I!==e?(au=null,nu=re()+500,kn(t,e)):Vn=oa(t,e);t:do try{if(ut!==0&&$!==null){e=$;var i=ve;e:switch(ut){case 1:ut=0,ve=null,Wn(t,e,i,1);break;case 2:case 9:if(Fo(i)){ut=0,ve=null,Gh(e);break}e=function(){ut!==2&&ut!==9||dt!==t||(ut=7),Je(t)},i.then(e,e);break t;case 3:ut=7;break t;case 4:ut=5;break t;case 7:Fo(i)?(ut=0,ve=null,Gh(e)):(ut=0,ve=null,Wn(t,e,i,7));break;case 5:var o=null;switch($.tag){case 26:o=$.memoizedState;case 5:case 27:var r=$;if(o?zd(o):r.stateNode.complete){ut=0,ve=null;var m=r.sibling;if(m!==null)$=m;else{var _=r.return;_!==null?($=_,su(_)):$=null}break e}}ut=0,ve=null,Wn(t,e,i,5);break;case 6:ut=0,ve=null,Wn(t,e,i,6);break;case 8:Hc(),At=6;break t;default:throw Error(s(462))}}Rg();break}catch(O){Lh(t,O)}while(!0);return nl=an=null,z.H=n,z.A=a,at=l,$!==null?0:(dt=null,I=0,Oi(),At)}function Rg(){for(;$!==null&&!ey();)Xh($)}function Xh(t){var e=rh(t.alternate,t,dl);t.memoizedProps=t.pendingProps,e===null?su(t):$=e}function Gh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=ih(l,e,e.pendingProps,e.type,void 0,I);break;case 11:e=ih(l,e,e.pendingProps,e.type.render,e.ref,I);break;case 5:Fs(e);default:dh(l,e),e=$=jo(e,dl),e=rh(l,e,dl)}t.memoizedProps=t.pendingProps,e===null?su(t):$=e}function Wn(t,e,l,n){nl=an=null,Fs(e),Yn=null,za=0;var a=e.return;try{if(bg(t,a,e,l,I)){At=1,ki(t,Oe(l,t.current)),$=null;return}}catch(i){if(a!==null)throw $=a,i;At=1,ki(t,Oe(l,t.current)),$=null;return}e.flags&32768?(tt||n===1?t=!0:Vn||(I&536870912)!==0?t=!1:(Rl=t=!0,(n===2||n===9||n===3||n===6)&&(n=ge.current,n!==null&&n.tag===13&&(n.flags|=16384))),Qh(e,t)):su(e)}function su(t){var e=t;do{if((e.flags&32768)!==0){Qh(e,Rl);return}t=e.return;var l=_g(e.alternate,e,dl);if(l!==null){$=l;return}if(e=e.sibling,e!==null){$=e;return}$=e=t}while(e!==null);At===0&&(At=5)}function Qh(t,e){do{var l=Ag(t.alternate,t);if(l!==null){l.flags&=32767,$=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){$=t;return}$=t=l}while(t!==null);At=6,$=null}function Zh(t,e,l,n,a,i,o,r,m){t.cancelPendingCommit=null;do cu();while(Nt!==0);if((at&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(i=e.lanes|e.childLanes,i|=As,ry(t,l,i,o,r,m),t===dt&&($=dt=null,I=0),Jn=e,Hl=t,ml=l,Rc=i,Uc=a,Uh=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Bg(oi,function(){return Wh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=z.T,z.T=null,a=R.p,R.p=2,o=at,at|=4;try{Mg(t,e,l)}finally{at=o,R.p=a,z.T=n}}Nt=1,Vh(),Kh(),Jh()}}function Vh(){if(Nt===1){Nt=0;var t=Hl,e=Jn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var n=R.p;R.p=2;var a=at;at|=4;try{Mh(e,t);var i=kc,o=wo(t.containerInfo),r=i.focusedElem,m=i.selectionRange;if(o!==r&&r&&r.ownerDocument&&Do(r.ownerDocument.documentElement,r)){if(m!==null&&Ss(r)){var _=m.start,O=m.end;if(O===void 0&&(O=_),"selectionStart"in r)r.selectionStart=_,r.selectionEnd=Math.min(O,r.value.length);else{var C=r.ownerDocument||document,A=C&&C.defaultView||window;if(A.getSelection){var M=A.getSelection(),H=r.textContent.length,X=Math.min(m.start,H),rt=m.end===void 0?X:Math.min(m.end,H);!M.extend&&X>rt&&(o=rt,rt=X,X=o);var b=Co(r,X),g=Co(r,rt);if(b&&g&&(M.rangeCount!==1||M.anchorNode!==b.node||M.anchorOffset!==b.offset||M.focusNode!==g.node||M.focusOffset!==g.offset)){var T=C.createRange();T.setStart(b.node,b.offset),M.removeAllRanges(),X>rt?(M.addRange(T),M.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),M.addRange(T))}}}}for(C=[],M=r;M=M.parentNode;)M.nodeType===1&&C.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<C.length;r++){var x=C[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}bu=!!Jc,kc=Jc=null}finally{at=a,R.p=n,z.T=l}}t.current=e,Nt=2}}function Kh(){if(Nt===2){Nt=0;var t=Hl,e=Jn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var n=R.p;R.p=2;var a=at;at|=4;try{bh(t,e.alternate,e)}finally{at=a,R.p=n,z.T=l}}Nt=3}}function Jh(){if(Nt===4||Nt===3){Nt=0,ly();var t=Hl,e=Jn,l=ml,n=Uh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Nt=5:(Nt=0,Jn=Hl=null,kh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Nl=null),ts(l),e=e.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(fa,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=z.T,a=R.p,R.p=2,z.T=null;try{for(var i=t.onRecoverableError,o=0;o<n.length;o++){var r=n[o];i(r.value,{componentStack:r.stack})}}finally{z.T=e,R.p=a}}(ml&3)!==0&&cu(),Je(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===Nc?Za++:(Za=0,Nc=t):Za=0,Va(0)}}function kh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ma(e)))}function cu(){return Vh(),Kh(),Jh(),Wh()}function Wh(){if(Nt!==5)return!1;var t=Hl,e=Rc;Rc=0;var l=ts(ml),n=z.T,a=R.p;try{R.p=32>l?32:l,z.T=null,l=Uc,Uc=null;var i=Hl,o=ml;if(Nt=0,Jn=Hl=null,ml=0,(at&6)!==0)throw Error(s(331));var r=at;if(at|=4,Dh(i.current),zh(i,i.current,o,l),at=r,Va(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(fa,i)}catch{}return!0}finally{R.p=a,z.T=n,kh(t,e)}}function $h(t,e,l){e=Oe(l,e),e=hc(t.stateNode,e,2),t=xl(t,e,2),t!==null&&(ra(t,2),Je(t))}function st(t,e,l){if(t.tag===3)$h(t,t,l);else for(;e!==null;){if(e.tag===3){$h(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nl===null||!Nl.has(n))){t=Oe(l,t),l=Fr(2),n=xl(e,l,2),n!==null&&(Ir(l,n,e,t),ra(n,2),Je(n));break}}e=e.return}}function Lc(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new xg;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(Cc=!0,a.add(l),t=Ug.bind(null,t,e,l),e.then(t,t))}function Ug(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,dt===t&&(I&l)===l&&(At===4||At===3&&(I&62914560)===I&&300>re()-lu?(at&2)===0&&kn(t,0):Dc|=l,Kn===I&&(Kn=0)),Je(t)}function Fh(t,e){e===0&&(e=Zf()),t=en(t,e),t!==null&&(ra(t,e),Je(t))}function Ng(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Fh(t,l)}function Hg(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(e),Fh(t,l)}function Bg(t,e){return $u(t,e)}var fu=null,$n=null,Yc=!1,ou=!1,qc=!1,Ll=0;function Je(t){t!==$n&&t.next===null&&($n===null?fu=$n=t:$n=$n.next=t),ou=!0,Yc||(Yc=!0,Yg())}function Va(t,e){if(!qc&&ou){qc=!0;do for(var l=!1,n=fu;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var o=n.suspendedLanes,r=n.pingedLanes;i=(1<<31-de(42|t)+1)-1,i&=a&~(o&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,ed(n,i))}else i=I,i=mi(n,n===dt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||oa(n,i)||(l=!0,ed(n,i));n=n.next}while(l);qc=!1}}function Lg(){Ih()}function Ih(){ou=Yc=!1;var t=0;Ll!==0&&kg()&&(t=Ll);for(var e=re(),l=null,n=fu;n!==null;){var a=n.next,i=Ph(n,e);i===0?(n.next=null,l===null?fu=a:l.next=a,a===null&&($n=l)):(l=n,(t!==0||(i&3)!==0)&&(ou=!0)),n=a}Nt!==0&&Nt!==5||Va(t),Ll!==0&&(Ll=0)}function Ph(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-de(i),r=1<<o,m=a[o];m===-1?((r&l)===0||(r&n)!==0)&&(a[o]=oy(r,e)):m<=e&&(t.expiredLanes|=r),i&=~r}if(e=dt,l=I,l=mi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(ut===2||ut===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Fu(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||oa(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Fu(n),ts(l)){case 2:case 8:l=Gf;break;case 32:l=oi;break;case 268435456:l=Qf;break;default:l=oi}return n=td.bind(null,t),l=$u(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Fu(n),t.callbackPriority=2,t.callbackNode=null,2}function td(t,e){if(Nt!==0&&Nt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(cu()&&t.callbackNode!==l)return null;var n=I;return n=mi(t,t===dt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Hh(t,n,e),Ph(t,re()),t.callbackNode!=null&&t.callbackNode===l?td.bind(null,t):null)}function ed(t,e){if(cu())return null;Hh(t,e,!0)}function Yg(){$g(function(){(at&6)!==0?$u(Xf,Lg):Ih()})}function jc(){if(Ll===0){var t=Hn;t===0&&(t=ri,ri<<=1,(ri&261888)===0&&(ri=256)),Ll=t}return Ll}function ld(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vi(""+t)}function nd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function qg(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var i=ld((a[ne]||null).action),o=n.submitter;o&&(e=(e=o[ne]||null)?ld(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var r=new Ti("action","action",null,n,a);t.push({event:r,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ll!==0){var m=o?nd(a,o):new FormData(a);uc(l,{pending:!0,data:m,method:a.method,action:i},null,m)}}else typeof i=="function"&&(r.preventDefault(),m=o?nd(a,o):new FormData(a),uc(l,{pending:!0,data:m,method:a.method,action:i},i,m))},currentTarget:a}]})}}for(var Xc=0;Xc<_s.length;Xc++){var Gc=_s[Xc],jg=Gc.toLowerCase(),Xg=Gc[0].toUpperCase()+Gc.slice(1);Be(jg,"on"+Xg)}Be(No,"onAnimationEnd"),Be(Ho,"onAnimationIteration"),Be(Bo,"onAnimationStart"),Be("dblclick","onDoubleClick"),Be("focusin","onFocus"),Be("focusout","onBlur"),Be(ng,"onTransitionRun"),Be(ag,"onTransitionStart"),Be(ig,"onTransitionCancel"),Be(Lo,"onTransitionEnd"),En("onMouseEnter",["mouseout","mouseover"]),En("onMouseLeave",["mouseout","mouseover"]),En("onPointerEnter",["pointerout","pointerover"]),En("onPointerLeave",["pointerout","pointerover"]),Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ka="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(" "),Gg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ka));function ad(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var r=n[o],m=r.instance,_=r.currentTarget;if(r=r.listener,m!==i&&a.isPropagationStopped())break t;i=r,a.currentTarget=_;try{i(a)}catch(O){Mi(O)}a.currentTarget=null,i=m}else for(o=0;o<n.length;o++){if(r=n[o],m=r.instance,_=r.currentTarget,r=r.listener,m!==i&&a.isPropagationStopped())break t;i=r,a.currentTarget=_;try{i(a)}catch(O){Mi(O)}a.currentTarget=null,i=m}}}}function F(t,e){var l=e[es];l===void 0&&(l=e[es]=new Set);var n=t+"__bubble";l.has(n)||(id(e,t,2,!1),l.add(n))}function Qc(t,e,l){var n=0;e&&(n|=4),id(l,t,n,e)}var ru="_reactListening"+Math.random().toString(36).slice(2);function Zc(t){if(!t[ru]){t[ru]=!0,Ff.forEach(function(l){l!=="selectionchange"&&(Gg.has(l)||Qc(l,!1,t),Qc(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ru]||(e[ru]=!0,Qc("selectionchange",!1,e))}}function id(t,e,l,n){switch(Nd(e)){case 2:var a=gp;break;case 8:a=pp;break;default:a=uf}l=a.bind(null,e,l,t),a=void 0,!os||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function Vc(t,e,l,n,a){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var r=n.stateNode.containerInfo;if(r===a)break;if(o===4)for(o=n.return;o!==null;){var m=o.tag;if((m===3||m===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;r!==null;){if(o=vn(r),o===null)return;if(m=o.tag,m===5||m===6||m===26||m===27){n=i=o;continue t}r=r.parentNode}}n=n.return}fo(function(){var _=i,O=cs(l),C=[];t:{var A=Yo.get(t);if(A!==void 0){var M=Ti,H=t;switch(t){case"keypress":if(bi(l)===0)break t;case"keydown":case"keyup":M=Hy;break;case"focusin":H="focus",M=ms;break;case"focusout":H="blur",M=ms;break;case"beforeblur":case"afterblur":M=ms;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=ho;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=_y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Yy;break;case No:case Ho:case Bo:M=Oy;break;case Lo:M=jy;break;case"scroll":case"scrollend":M=Ey;break;case"wheel":M=Gy;break;case"copy":case"cut":case"paste":M=xy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=yo;break;case"toggle":case"beforetoggle":M=Zy}var X=(e&4)!==0,rt=!X&&(t==="scroll"||t==="scrollend"),b=X?A!==null?A+"Capture":null:A;X=[];for(var g=_,T;g!==null;){var x=g;if(T=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||T===null||b===null||(x=ma(g,b),x!=null&&X.push(Ja(g,x,T))),rt)break;g=g.return}0<X.length&&(A=new M(A,H,null,l,O),C.push({event:A,listeners:X}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",M=t==="mouseout"||t==="pointerout",A&&l!==ss&&(H=l.relatedTarget||l.fromElement)&&(vn(H)||H[pn]))break t;if((M||A)&&(A=O.window===O?O:(A=O.ownerDocument)?A.defaultView||A.parentWindow:window,M?(H=l.relatedTarget||l.toElement,M=_,H=H?vn(H):null,H!==null&&(rt=d(H),X=H.tag,H!==rt||X!==5&&X!==27&&X!==6)&&(H=null)):(M=null,H=_),M!==H)){if(X=ho,x="onMouseLeave",b="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(X=yo,x="onPointerLeave",b="onPointerEnter",g="pointer"),rt=M==null?A:da(M),T=H==null?A:da(H),A=new X(x,g+"leave",M,l,O),A.target=rt,A.relatedTarget=T,x=null,vn(O)===_&&(X=new X(b,g+"enter",H,l,O),X.target=T,X.relatedTarget=rt,x=X),rt=x,M&&H)e:{for(X=Qg,b=M,g=H,T=0,x=b;x;x=X(x))T++;x=0;for(var q=g;q;q=X(q))x++;for(;0<T-x;)b=X(b),T--;for(;0<x-T;)g=X(g),x--;for(;T--;){if(b===g||g!==null&&b===g.alternate){X=b;break e}b=X(b),g=X(g)}X=null}else X=null;M!==null&&ud(C,A,M,X,!1),H!==null&&rt!==null&&ud(C,rt,H,X,!0)}}t:{if(A=_?da(_):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var lt=_o;else if(Eo(A))if(Ao)lt=tg;else{lt=Iy;var Y=Fy}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?_&&us(_.elementType)&&(lt=_o):lt=Py;if(lt&&(lt=lt(t,_))){To(C,lt,l,O);break t}Y&&Y(t,A,_),t==="focusout"&&_&&A.type==="number"&&_.memoizedProps.value!=null&&is(A,"number",A.value)}switch(Y=_?da(_):window,t){case"focusin":(Eo(Y)||Y.contentEditable==="true")&&(zn=Y,bs=_,Ta=null);break;case"focusout":Ta=bs=zn=null;break;case"mousedown":Es=!0;break;case"contextmenu":case"mouseup":case"dragend":Es=!1,Ro(C,l,O);break;case"selectionchange":if(lg)break;case"keydown":case"keyup":Ro(C,l,O)}var J;if(gs)t:{switch(t){case"compositionstart":var P="onCompositionStart";break t;case"compositionend":P="onCompositionEnd";break t;case"compositionupdate":P="onCompositionUpdate";break t}P=void 0}else On?So(t,l)&&(P="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(P="onCompositionStart");P&&(go&&l.locale!=="ko"&&(On||P!=="onCompositionStart"?P==="onCompositionEnd"&&On&&(J=oo()):(El=O,rs="value"in El?El.value:El.textContent,On=!0)),Y=hu(_,P),0<Y.length&&(P=new mo(P,t,null,l,O),C.push({event:P,listeners:Y}),J?P.data=J:(J=bo(l),J!==null&&(P.data=J)))),(J=Ky?Jy(t,l):ky(t,l))&&(P=hu(_,"onBeforeInput"),0<P.length&&(Y=new mo("onBeforeInput","beforeinput",null,l,O),C.push({event:Y,listeners:P}),Y.data=J)),qg(C,t,_,l,O)}ad(C,e)})}function Ja(t,e,l){return{instance:t,listener:e,currentTarget:l}}function hu(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=ma(t,l),a!=null&&n.unshift(Ja(t,a,i)),a=ma(t,e),a!=null&&n.push(Ja(t,a,i))),t.tag===3)return n;t=t.return}return[]}function Qg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ud(t,e,l,n,a){for(var i=e._reactName,o=[];l!==null&&l!==n;){var r=l,m=r.alternate,_=r.stateNode;if(r=r.tag,m!==null&&m===n)break;r!==5&&r!==26&&r!==27||_===null||(m=_,a?(_=ma(l,i),_!=null&&o.unshift(Ja(l,_,m))):a||(_=ma(l,i),_!=null&&o.push(Ja(l,_,m)))),l=l.return}o.length!==0&&t.push({event:e,listeners:o})}var Zg=/\r\n?/g,Vg=/\u0000|\uFFFD/g;function sd(t){return(typeof t=="string"?t:""+t).replace(Zg,`
|
|
49
|
+
`).replace(Vg,"")}function cd(t,e){return e=sd(e),sd(t)===e}function ot(t,e,l,n,a,i){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||_n(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&_n(t,""+n);break;case"className":gi(t,"class",n);break;case"tabIndex":gi(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":gi(t,l,n);break;case"style":so(t,n,i);break;case"data":if(e!=="object"){gi(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=vi(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"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 i=="function"&&(l==="formAction"?(e!=="input"&&ot(t,e,"name",a.name,a,null),ot(t,e,"formEncType",a.formEncType,a,null),ot(t,e,"formMethod",a.formMethod,a,null),ot(t,e,"formTarget",a.formTarget,a,null)):(ot(t,e,"encType",a.encType,a,null),ot(t,e,"method",a.method,a,null),ot(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=vi(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=Pe);break;case"onScroll":n!=null&&F("scroll",t);break;case"onScrollEnd":n!=null&&F("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=vi(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":F("beforetoggle",t),F("toggle",t),yi(t,"popover",n);break;case"xlinkActuate":Ie(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Ie(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Ie(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Ie(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Ie(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Ie(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":yi(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Sy.get(l)||l,yi(t,l,n))}}function Kc(t,e,l,n,a,i){switch(l){case"style":so(t,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof n=="string"?_n(t,n):(typeof n=="number"||typeof n=="bigint")&&_n(t,""+n);break;case"onScroll":n!=null&&F("scroll",t);break;case"onScrollEnd":n!=null&&F("scrollend",t);break;case"onClick":n!=null&&(t.onclick=Pe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!If.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),i=t[ne]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):yi(t,l,n)}}}function Kt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",t),F("load",t);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:ot(t,e,i,o,l,null)}}a&&ot(t,e,"srcSet",l.srcSet,l,null),n&&ot(t,e,"src",l.src,l,null);return;case"input":F("invalid",t);var r=i=o=a=null,m=null,_=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":o=O;break;case"checked":m=O;break;case"defaultChecked":_=O;break;case"value":i=O;break;case"defaultValue":r=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,e));break;default:ot(t,e,n,O,l,null)}}no(t,i,r,m,_,o,a,!1);return;case"select":F("invalid",t),n=o=i=null;for(a in l)if(l.hasOwnProperty(a)&&(r=l[a],r!=null))switch(a){case"value":i=r;break;case"defaultValue":o=r;break;case"multiple":n=r;default:ot(t,e,a,r,l,null)}e=i,l=o,t.multiple=!!n,e!=null?Tn(t,!!n,e,!1):l!=null&&Tn(t,!!n,l,!0);return;case"textarea":F("invalid",t),i=a=n=null;for(o in l)if(l.hasOwnProperty(o)&&(r=l[o],r!=null))switch(o){case"value":n=r;break;case"defaultValue":a=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:ot(t,e,o,r,l,null)}io(t,n,a,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ot(t,e,m,n,l,null)}return;case"dialog":F("beforetoggle",t),F("toggle",t),F("cancel",t),F("close",t);break;case"iframe":case"object":F("load",t);break;case"video":case"audio":for(n=0;n<Ka.length;n++)F(Ka[n],t);break;case"image":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"embed":case"source":case"link":F("error",t),F("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(n=l[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:ot(t,e,_,n,l,null)}return;default:if(us(e)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&Kc(t,e,O,n,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(n=l[r],n!=null&&ot(t,e,r,n,l,null))}function Kg(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,r=null,m=null,_=null,O=null;for(M in l){var C=l[M];if(l.hasOwnProperty(M)&&C!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":m=C;default:n.hasOwnProperty(M)||ot(t,e,M,null,n,C)}}for(var A in n){var M=n[A];if(C=l[A],n.hasOwnProperty(A)&&(M!=null||C!=null))switch(A){case"type":i=M;break;case"name":a=M;break;case"checked":_=M;break;case"defaultChecked":O=M;break;case"value":o=M;break;case"defaultValue":r=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,e));break;default:M!==C&&ot(t,e,A,M,n,C)}}as(t,o,r,m,_,O,i,a);return;case"select":M=o=r=A=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":M=m;default:n.hasOwnProperty(i)||ot(t,e,i,null,n,m)}for(a in n)if(i=n[a],m=l[a],n.hasOwnProperty(a)&&(i!=null||m!=null))switch(a){case"value":A=i;break;case"defaultValue":r=i;break;case"multiple":o=i;default:i!==m&&ot(t,e,a,i,n,m)}e=r,l=o,n=M,A!=null?Tn(t,!!l,A,!1):!!n!=!!l&&(e!=null?Tn(t,!!l,e,!0):Tn(t,!!l,l?[]:"",!1));return;case"textarea":M=A=null;for(r in l)if(a=l[r],l.hasOwnProperty(r)&&a!=null&&!n.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ot(t,e,r,null,n,a)}for(o in n)if(a=n[o],i=l[o],n.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":A=a;break;case"defaultValue":M=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==i&&ot(t,e,o,a,n,i)}ao(t,A,M);return;case"option":for(var H in l)if(A=l[H],l.hasOwnProperty(H)&&A!=null&&!n.hasOwnProperty(H))switch(H){case"selected":t.selected=!1;break;default:ot(t,e,H,null,n,A)}for(m in n)if(A=n[m],M=l[m],n.hasOwnProperty(m)&&A!==M&&(A!=null||M!=null))switch(m){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:ot(t,e,m,A,n,M)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var X in l)A=l[X],l.hasOwnProperty(X)&&A!=null&&!n.hasOwnProperty(X)&&ot(t,e,X,null,n,A);for(_ in n)if(A=n[_],M=l[_],n.hasOwnProperty(_)&&A!==M&&(A!=null||M!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,e));break;default:ot(t,e,_,A,n,M)}return;default:if(us(e)){for(var rt in l)A=l[rt],l.hasOwnProperty(rt)&&A!==void 0&&!n.hasOwnProperty(rt)&&Kc(t,e,rt,void 0,n,A);for(O in n)A=n[O],M=l[O],!n.hasOwnProperty(O)||A===M||A===void 0&&M===void 0||Kc(t,e,O,A,n,M);return}}for(var b in l)A=l[b],l.hasOwnProperty(b)&&A!=null&&!n.hasOwnProperty(b)&&ot(t,e,b,null,n,A);for(C in n)A=n[C],M=l[C],!n.hasOwnProperty(C)||A===M||A==null&&M==null||ot(t,e,C,A,n,M)}function fd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,o=a.initiatorType,r=a.duration;if(i&&r&&fd(o)){for(o=0,r=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],_=m.startTime;if(_>r)break;var O=m.transferSize,C=m.initiatorType;O&&fd(C)&&(m=m.responseEnd,o+=O*(m<r?1:(r-_)/(m-_)))}if(--n,e+=8*(i+o)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Jc=null,kc=null;function du(t){return t.nodeType===9?t:t.ownerDocument}function od(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Wc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var $c=null;function kg(){var t=window.event;return t&&t.type==="popstate"?t===$c?!1:($c=t,!0):($c=null,!1)}var hd=typeof setTimeout=="function"?setTimeout:void 0,Wg=typeof clearTimeout=="function"?clearTimeout:void 0,dd=typeof Promise=="function"?Promise:void 0,$g=typeof queueMicrotask=="function"?queueMicrotask:typeof dd<"u"?function(t){return dd.resolve(null).then(t).catch(Fg)}:hd;function Fg(t){setTimeout(function(){throw t})}function Yl(t){return t==="head"}function md(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),ta(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")ka(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,ka(l);for(var i=l.firstChild;i;){var o=i.nextSibling,r=i.nodeName;i[ha]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=o}}else l==="body"&&ka(t.ownerDocument.body);l=a}while(l);ta(e)}function yd(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Fc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Fc(l),ls(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Ig(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[ha])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function Pg(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=we(t.nextSibling),t===null))return null;return t}function gd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function Ic(t){return t.data==="$?"||t.data==="$~"}function Pc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function tp(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function we(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var tf=null;function pd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return we(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function vd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Sd(t,e,l){switch(e=du(l),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function ka(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ls(t)}var Re=new Map,bd=new Set;function mu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yl=R.d;R.d={f:ep,r:lp,D:np,C:ap,L:ip,m:up,X:cp,S:sp,M:fp};function ep(){var t=yl.f(),e=iu();return t||e}function lp(t){var e=Sn(t);e!==null&&e.tag===5&&e.type==="form"?Lr(e):yl.r(t)}var Fn=typeof document>"u"?null:document;function Ed(t,e,l){var n=Fn;if(n&&typeof e=="string"&&e){var a=Ae(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),bd.has(a)||(bd.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Kt(e,"link",t),Yt(e),n.head.appendChild(e)))}}function np(t){yl.D(t),Ed("dns-prefetch",t,null)}function ap(t,e){yl.C(t,e),Ed("preconnect",t,e)}function ip(t,e,l){yl.L(t,e,l);var n=Fn;if(n&&t&&e){var a='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Ae(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Ae(l.imageSizes)+'"]')):a+='[href="'+Ae(t)+'"]';var i=a;switch(e){case"style":i=In(t);break;case"script":i=Pn(t)}Re.has(i)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Re.set(i,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Wa(i))||e==="script"&&n.querySelector($a(i))||(e=n.createElement("link"),Kt(e,"link",t),Yt(e),n.head.appendChild(e)))}}function up(t,e){yl.m(t,e);var l=Fn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Ae(n)+'"][href="'+Ae(t)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Pn(t)}if(!Re.has(i)&&(t=B({rel:"modulepreload",href:t},e),Re.set(i,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector($a(i)))return}n=l.createElement("link"),Kt(n,"link",t),Yt(n),l.head.appendChild(n)}}}function sp(t,e,l){yl.S(t,e,l);var n=Fn;if(n&&t){var a=bn(n).hoistableStyles,i=In(t);e=e||"default";var o=a.get(i);if(!o){var r={loading:0,preload:null};if(o=n.querySelector(Wa(i)))r.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Re.get(i))&&ef(t,l);var m=o=n.createElement("link");Yt(m),Kt(m,"link",t),m._p=new Promise(function(_,O){m.onload=_,m.onerror=O}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,yu(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:r},a.set(i,o)}}}function cp(t,e){yl.X(t,e);var l=Fn;if(l&&t){var n=bn(l).hoistableScripts,a=Pn(t),i=n.get(a);i||(i=l.querySelector($a(a)),i||(t=B({src:t,async:!0},e),(e=Re.get(a))&&lf(t,e),i=l.createElement("script"),Yt(i),Kt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function fp(t,e){yl.M(t,e);var l=Fn;if(l&&t){var n=bn(l).hoistableScripts,a=Pn(t),i=n.get(a);i||(i=l.querySelector($a(a)),i||(t=B({src:t,async:!0,type:"module"},e),(e=Re.get(a))&&lf(t,e),i=l.createElement("script"),Yt(i),Kt(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Td(t,e,l,n){var a=(a=W.current)?mu(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=In(l.href),l=bn(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=In(l.href);var i=bn(a).hoistableStyles,o=i.get(t);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=a.querySelector(Wa(t)))&&!i._p&&(o.instance=i,o.state.loading=5),Re.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Re.set(t,l),i||op(a,t,l,o.state))),e&&n===null)throw Error(s(528,""));return o}if(e&&n!==null)throw Error(s(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Pn(l),l=bn(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function In(t){return'href="'+Ae(t)+'"'}function Wa(t){return'link[rel="stylesheet"]['+t+"]"}function _d(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function op(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Kt(e,"link",l),Yt(e),t.head.appendChild(e))}function Pn(t){return'[src="'+Ae(t)+'"]'}function $a(t){return"script[async]"+t}function Ad(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ae(l.href)+'"]');if(n)return e.instance=n,Yt(n),n;var a=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Yt(n),Kt(n,"style",a),yu(n,l.precedence,t),e.instance=n;case"stylesheet":a=In(l.href);var i=t.querySelector(Wa(a));if(i)return e.state.loading|=4,e.instance=i,Yt(i),i;n=_d(l),(a=Re.get(a))&&ef(n,a),i=(t.ownerDocument||t).createElement("link"),Yt(i);var o=i;return o._p=new Promise(function(r,m){o.onload=r,o.onerror=m}),Kt(i,"link",n),e.state.loading|=4,yu(i,l.precedence,t),e.instance=i;case"script":return i=Pn(l.src),(a=t.querySelector($a(i)))?(e.instance=a,Yt(a),a):(n=l,(a=Re.get(i))&&(n=B({},l),lf(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Yt(a),Kt(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,yu(n,l.precedence,t));return e.instance}function yu(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,o=0;o<n.length;o++){var r=n[o];if(r.dataset.precedence===e)i=r;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function ef(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function lf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var gu=null;function Md(t,e,l){if(gu===null){var n=new Map,a=gu=new Map;a.set(l,n)}else a=gu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var i=l[a];if(!(i[ha]||i[Gt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var r=n.get(o);r?r.push(i):n.set(o,[i])}}return n}function Od(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function rp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function zd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function hp(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=In(n.href),i=e.querySelector(Wa(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=pu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Yt(i);return}i=e.ownerDocument||e,n=_d(n),(a=Re.get(a))&&ef(n,a),i=i.createElement("link"),Yt(i);var o=i;o._p=new Promise(function(r,m){o.onload=r,o.onerror=m}),Kt(i,"link",n),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=pu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var nf=0;function dp(t,e){return t.stylesheets&&t.count===0&&Su(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&nf===0&&(nf=62500*Jg());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>nf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Su(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vu=null;function Su(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vu=new Map,e.forEach(mp,t),vu=null,pu.call(t))}function mp(t,e){if(!(e.state.loading&4)){var l=vu.get(t);if(l)var n=l.get(null);else{l=new Map,vu.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),n=o)}n&&l.set(null,n)}a=e.instance,o=a.getAttribute("data-precedence"),i=l.get(o)||n,i===n&&l.set(null,a),l.set(o,a),this.count++,n=pu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Fa={$$typeof:Bt,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function yp(t,e,l,n,a,i,o,r,m){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.hiddenUpdates=Iu(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function xd(t,e,l,n,a,i,o,r,m,_,O,C){return t=new yp(t,e,l,o,m,_,O,C,r),e=1,i===!0&&(e|=24),i=ye(3,null,null,e),t.current=i,i.stateNode=t,e=Bs(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:e},js(i),t}function Cd(t){return t?(t=Dn,t):Dn}function Dd(t,e,l,n,a,i){a=Cd(a),n.context===null?n.context=a:n.pendingContext=a,n=zl(e),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=xl(t,n,e),l!==null&&(fe(l,t,e),Ca(l,t,e))}function wd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function af(t,e){wd(t,e),(t=t.alternate)&&wd(t,e)}function Rd(t){if(t.tag===13||t.tag===31){var e=en(t,67108864);e!==null&&fe(e,t,67108864),af(t,67108864)}}function Ud(t){if(t.tag===13||t.tag===31){var e=be();e=Pu(e);var l=en(t,e);l!==null&&fe(l,t,e),af(t,e)}}var bu=!0;function gp(t,e,l,n){var a=z.T;z.T=null;var i=R.p;try{R.p=2,uf(t,e,l,n)}finally{R.p=i,z.T=a}}function pp(t,e,l,n){var a=z.T;z.T=null;var i=R.p;try{R.p=8,uf(t,e,l,n)}finally{R.p=i,z.T=a}}function uf(t,e,l,n){if(bu){var a=sf(n);if(a===null)Vc(t,e,n,Eu,l),Hd(t,n);else if(Sp(a,t,e,l,n))n.stopPropagation();else if(Hd(t,n),e&4&&-1<vp.indexOf(t)){for(;a!==null;){var i=Sn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=$l(i.pendingLanes);if(o!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var m=1<<31-de(o);r.entanglements[1]|=m,o&=~m}Je(i),(at&6)===0&&(nu=re()+500,Va(0))}}break;case 31:case 13:r=en(i,2),r!==null&&fe(r,i,2),iu(),af(i,2)}if(i=sf(n),i===null&&Vc(t,e,n,Eu,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else Vc(t,e,n,null,l)}}function sf(t){return t=cs(t),cf(t)}var Eu=null;function cf(t){if(Eu=null,t=vn(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=v(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Eu=t,null}function Nd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ny()){case Xf:return 2;case Gf:return 8;case oi:case ay:return 32;case Qf:return 268435456;default:return 32}default:return 32}}var ff=!1,ql=null,jl=null,Xl=null,Ia=new Map,Pa=new Map,Gl=[],vp="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 Hd(t,e){switch(t){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Xl=null;break;case"pointerover":case"pointerout":Ia.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pa.delete(e.pointerId)}}function ti(t,e,l,n,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},e!==null&&(e=Sn(e),e!==null&&Rd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Sp(t,e,l,n,a){switch(e){case"focusin":return ql=ti(ql,t,e,l,n,a),!0;case"dragenter":return jl=ti(jl,t,e,l,n,a),!0;case"mouseover":return Xl=ti(Xl,t,e,l,n,a),!0;case"pointerover":var i=a.pointerId;return Ia.set(i,ti(Ia.get(i)||null,t,e,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Pa.set(i,ti(Pa.get(i)||null,t,e,l,n,a)),!0}return!1}function Bd(t){var e=vn(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,Wf(t.priority,function(){Ud(l)});return}}else if(e===31){if(e=v(l),e!==null){t.blockedOn=e,Wf(t.priority,function(){Ud(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Tu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=sf(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);ss=n,l.target.dispatchEvent(n),ss=null}else return e=Sn(l),e!==null&&Rd(e),t.blockedOn=l,!1;e.shift()}return!0}function Ld(t,e,l){Tu(t)&&l.delete(e)}function bp(){ff=!1,ql!==null&&Tu(ql)&&(ql=null),jl!==null&&Tu(jl)&&(jl=null),Xl!==null&&Tu(Xl)&&(Xl=null),Ia.forEach(Ld),Pa.forEach(Ld)}function _u(t,e){t.blockedOn===e&&(t.blockedOn=null,ff||(ff=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,bp)))}var Au=null;function Yd(t){Au!==t&&(Au=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Au===t&&(Au=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(cf(n||l)===null)continue;break}var i=Sn(l);i!==null&&(t.splice(e,3),e-=3,uc(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ta(t){function e(m){return _u(m,t)}ql!==null&&_u(ql,t),jl!==null&&_u(jl,t),Xl!==null&&_u(Xl,t),Ia.forEach(e),Pa.forEach(e);for(var l=0;l<Gl.length;l++){var n=Gl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Gl.length&&(l=Gl[0],l.blockedOn===null);)Bd(l),l.blockedOn===null&&Gl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],o=a[ne]||null;if(typeof i=="function")o||Yd(l);else if(o){var r=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[ne]||null)r=o.formAction;else if(cf(a)!==null)continue}else r=o.action;typeof r=="function"?l[n+1]=r:(l.splice(n,3),n-=3),Yd(l)}}}function qd(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function of(t){this._internalRoot=t}Mu.prototype.render=of.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var l=e.current,n=be();Dd(l,n,t,e,null,null)},Mu.prototype.unmount=of.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Dd(t.current,2,null,t,null,null),iu(),e[pn]=null}};function Mu(t){this._internalRoot=t}Mu.prototype.unstable_scheduleHydration=function(t){if(t){var e=kf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Gl.length&&e!==0&&e<Gl[l].priority;l++);Gl.splice(l,0,t),l===0&&Bd(t)}};var jd=u.version;if(jd!=="19.2.3")throw Error(s(527,jd,"19.2.3"));R.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=S(e),t=t!==null?N(t):null,t=t===null?null:t.stateNode,t};var Ep={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ou.isDisabled&&Ou.supportsFiber)try{fa=Ou.inject(Ep),he=Ou}catch{}}return li.createRoot=function(t,e){if(!h(t))throw Error(s(299));var l=!1,n="",a=Jr,i=kr,o=Wr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=xd(t,1,!1,null,null,l,n,null,a,i,o,qd),t[pn]=e.current,Zc(t),new of(e)},li.hydrateRoot=function(t,e,l){if(!h(t))throw Error(s(299));var n=!1,a="",i=Jr,o=kr,r=Wr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=xd(t,1,!0,e,l??null,n,a,m,i,o,r,qd),e.context=Cd(null),l=e.current,n=be(),n=Pu(n),a=zl(n),a.callback=null,xl(l,a,n),l=n,e.current.lanes=l,ra(e,l),Je(e),t[pn]=e.current,Zc(t),new Mu(e)},li.version="19.2.3",li}var Pd;function Np(){if(Pd)return yf.exports;Pd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(u){console.error(u)}}return f(),yf.exports=Up(),yf.exports}var Hp=Np();function tm(f){return f!==null&&typeof f=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(f))||Array.isArray(f)}function Mf(f,u,c=new WeakMap){if(Object.is(f,u))return!0;if(typeof f=="function"&&typeof u=="function")return typeof f==typeof u;if(!tm(f)||!tm(u))return!1;const s=c.get(f);if(s&&s===u)return!0;if(c.set(f,u),Array.isArray(f)||Array.isArray(u)){if(!Array.isArray(f)||!Array.isArray(u)||f.length!==u.length)return!1;for(let y=0;y<f.length;y++)if(!Mf(f[y],u[y],c))return!1;return!0}const h=Object.keys(f),d=Object.keys(u);if(h.length!==d.length)return!1;for(let y=0;y<h.length;y++){const v=h[y];if(!Object.prototype.hasOwnProperty.call(u,v))return!1;const E=f[v],S=u[v];if(!Mf(E,S,c))return!1}return!0}function Bp(f){const u=[],c=(d,y)=>y.reduce((v,E)=>v==null?v:v[E],d),s=(d,y)=>(...v)=>{const E=c(f.current,d),S=E==null?void 0:E[y];if(typeof S=="function")return S.apply(E,v)},h=d=>{if(typeof d=="function"){const y=u[u.length-1],v=u.slice(0,-1);return s(v,y)}if(Array.isArray(d)){const y=u.length,v=new Array(d.length);for(let E=0;E<d.length;E++)u[y]=E,v[E]=h(d[E]);return u.length=y,v}if(d&&typeof d=="object"){const y=u.length,v={};for(const E of Object.keys(d))u[y]=E,v[E]=h(d[E]);return u.length=y,v}return d};return h(f.current)}function Lp(f){const u=Jd.useRef(f);u.current=f;const c=Jd.useRef(null);return(!c.current||!Mf(c.current.snapshot,f))&&(c.current={snapshot:f,shaped:Bp(u)}),c.current.shaped}const Yp=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","setRuntimeCapabilities","fetchUpdates","sendCustomAction"]);function qp(f){const u=Ht.useRef(null),c=Lp(f),s=Ht.useMemo(()=>Yp.reduce((y,v)=>(y[v]=(...E)=>{if(!u.current){console.warn("ChatKit element is not mounted");return}return u.current[v](...E)},y),{}),[]),h=Ht.useCallback(y=>{u.current=y},[]),d=Ht.useMemo(()=>{const y={},v={};for(const[E,S]of Object.entries(c))/^on[A-Z]/.test(E)&&E!=="onClientTool"?v[E]=S:y[E]=S;return{setInstance:h,options:y,handlers:v}},[c,h]);return Ht.useMemo(()=>({...s,control:d,ref:u}),[s,d])}class jp{constructor(){St(this,"callbacks",new Map)}on(u,c){this.callbacks.has(u)||this.callbacks.set(u,new Set),this.callbacks.get(u).add(c)}emit(u,...c){var h;const s=c[0];(h=this.callbacks.get(u))==null||h.forEach(d=>d(s))}off(u,c){var s;c?(s=this.callbacks.get(u))==null||s.delete(c):this.callbacks.delete(u)}allOff(){this.callbacks.clear()}}async function Xp(f,u){const c=f.getReader();let s;for(;!(s=await c.read()).done;)u(s.value)}function Gp(f){let u,c,s,h=!1;return function(y){u===void 0?(u=y,c=0,s=-1):u=Zp(u,y);const v=u.length;let E=0;for(;c<v;){h&&(u[c]===10&&(E=++c),h=!1);let S=-1;for(;c<v&&S===-1;++c)switch(u[c]){case 58:s===-1&&(s=c-E);break;case 13:h=!0;case 10:S=c;break}if(S===-1)break;f(u.subarray(E,S),s),E=c,s=-1}E===v?u=void 0:E!==0&&(u=u.subarray(E),c-=E)}}function Qp(f,u,c){let s=em();const h=new TextDecoder;return function(y,v){if(y.length===0)c==null||c(s),s=em();else if(v>0){const E=h.decode(y.subarray(0,v)),S=v+(y[v+1]===32?2:1),N=h.decode(y.subarray(S));switch(E){case"data":s.data=s.data?s.data+`
|
|
50
|
+
`+N:N;break;case"event":s.event=N;break;case"id":f(s.id=N);break;case"retry":const B=parseInt(N,10);isNaN(B)||u(s.retry=B);break}}}}function Zp(f,u){const c=new Uint8Array(f.length+u.length);return c.set(f),c.set(u,f.length),c}function em(){return{data:"",event:"",id:"",retry:void 0}}var Vp=function(f,u){var c={};for(var s in f)Object.prototype.hasOwnProperty.call(f,s)&&u.indexOf(s)<0&&(c[s]=f[s]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,s=Object.getOwnPropertySymbols(f);h<s.length;h++)u.indexOf(s[h])<0&&Object.prototype.propertyIsEnumerable.call(f,s[h])&&(c[s[h]]=f[s[h]]);return c};const Of="text/event-stream",Kp=1e3,lm="last-event-id";function Jp(f,u){var{signal:c,headers:s,onopen:h,onmessage:d,onclose:y,onerror:v,openWhenHidden:E,fetch:S}=u,N=Vp(u,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((B,et)=>{const mt=Object.assign({},s);mt.accept||(mt.accept=Of);let Et;function Ct(){Et.abort(),document.hidden||ee()}E||document.addEventListener("visibilitychange",Ct);let Xt=Kp,Mt=0;function kt(){document.removeEventListener("visibilitychange",Ct),window.clearTimeout(Mt),Et.abort()}c==null||c.addEventListener("abort",()=>{kt(),B()});const Bt=S??window.fetch,te=h??kp;async function ee(){var Lt;Et=new AbortController;try{const k=await Bt(f,Object.assign(Object.assign({},N),{headers:mt,signal:Et.signal}));await te(k),await Xp(k.body,Gp(Qp(Tt=>{Tt?mt[lm]=Tt:delete mt[lm]},Tt=>{Xt=Tt},d))),y==null||y(),kt(),B()}catch(k){if(!Et.signal.aborted)try{const Tt=(Lt=v==null?void 0:v(k))!==null&&Lt!==void 0?Lt:Xt;window.clearTimeout(Mt),Mt=window.setTimeout(ee,Tt)}catch(Tt){kt(),et(Tt)}}}ee()})}function kp(f){const u=f.headers.get("content-type");if(!(u!=null&&u.startsWith(Of)))throw new Error(`Expected content-type to be ${Of}, Actual: ${u}`)}const ia="__chatkit_error__";class qu extends Error{constructor(c,s,h){super(c);St(this,"status");St(this,"statusText");St(this,"metadata");this.name="HttpError",this.statusText=s.statusText,this.status=s.status,this.metadata=h}static fromPossibleFrameSafeError(c){if(c instanceof qu)return c;if(c&&typeof c=="object"&&ia in c&&c[ia]==="HttpError"){const s=c,h=new qu(s.message,{status:s.status,statusText:s.statusText},s.metadata);return h.stack=s.stack,h}return null}}var bm;bm=ia;const Yf=class Yf{constructor(u,c,s){St(this,bm,"HttpError");St(this,"message");St(this,"stack");St(this,"status");St(this,"statusText");St(this,"metadata");this.message=u,this.stack=new Error(u).stack,this.status=c.status,this.statusText=c.statusText,this.metadata=s}static fromHttpError(u){return new Yf(u.message,{status:u.status,statusText:u.statusText},u.metadata)}};let ju=Yf;const Wp=1e3,$p=1e4,Fp=5,Ip=(f,u=$p,c=Wp)=>{const s=Math.min(u,c*2**f);return Math.floor(s*(.5+Math.random()*.5))};class nm extends Error{constructor(u){super(),this.cause=u}}const Pp=async(f,u)=>{let c=0;const{onopen:s,...h}=u;await Jp(f,{...h,onopen:async d=>{var v;if(s==null||s(d),d.ok&&((v=d.headers.get("content-type"))!=null&&v.startsWith("text/event-stream"))){c=0;return}const y=new ju(`Streaming failed: ${d.statusText}`,d);throw d.status>=400&&d.status<500?y:new nm(y)},onerror:d=>{if(d instanceof nm){if(c>=Fp)throw d.cause;return c+=1,Ip(c)}throw d}})};function Sf(){const f=globalThis.crypto;if(typeof(f==null?void 0:f.randomUUID)=="function")return f.randomUUID();if(typeof(f==null?void 0:f.getRandomValues)=="function"){const u=new Uint8Array(16);return f.getRandomValues(u),u[6]=u[6]&15|64,u[8]=u[8]&63|128,[...u].map(c=>c.toString(16).padStart(2,"0")).join("").replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5")}return`ck_${Date.now()}_${Math.random().toString(16).slice(2)}`}let t0=class Tm extends Error{constructor(c){super(c);St(this,"_name");this.name="IntegrationError",this._name=this.name}static fromPossibleFrameSafeError(c){if(c&&typeof c=="object"&&ia in c&&c[ia]==="IntegrationError"){const s=c,h=new Tm(s.message);return h.stack=s.stack,h}return null}};var Em;Em=ia;class e0{constructor(u){St(this,Em,"IntegrationError");St(this,"message");St(this,"stack");this.message=u,this.stack=new Error(u).stack}}class l0{constructor({handlers:u,target:c,targetOrigin:s,fetch:h=window.fetch}){St(this,"targetOrigin");St(this,"target");St(this,"commandHandlers");St(this,"_fetch");St(this,"emitter",new jp);St(this,"handlers",new Map);St(this,"fetchEventSourceHandlers",new Map);St(this,"abortControllers",new Map);St(this,"commands",new Proxy({},{get:(u,c)=>(s,h)=>new Promise((d,y)=>{const v=Sf();this.handlers.set(v,{resolve:d,reject:y,stack:new Error().stack||""}),this.sendMessage({type:"command",nonce:v,command:`on${c.charAt(0).toUpperCase()}${c.slice(1)}`,data:s},h)})}));St(this,"handleMessage",async u=>{var s,h,d,y;if(!u.data||u.data.__xpaiChatKit!==!0||u.origin!==this.targetOrigin||u.source!==this.target())return;const c=u.data;switch(c.type){case"event":{this.emitter.emit(c.event,c.data);break}case"fetch":{try{if(c.formData){const N=new FormData;for(const[B,et]of Object.entries(c.formData))N.append(B,et);c.params.body=N}const v=new AbortController;this.abortControllers.set(c.nonce,v),c.params.signal=v.signal;const E=await this._fetch(c.url,c.params);if(!E.ok){const N=await E.json().then(B=>B.message||E.statusText).catch(()=>E.statusText);throw new ju(N,E)}const S=await E.json().catch(()=>({}));this.sendMessage({type:"response",response:S,nonce:c.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:c.nonce})}break}case"fetchEventSource":{try{const v=new AbortController;this.abortControllers.set(c.nonce,v),await Pp(c.url,{...c.params,signal:v.signal,fetch:this._fetch,onmessage:E=>{this.sendMessage({type:"fetchEventSourceMessage",message:E,nonce:c.nonce})}}),this.sendMessage({type:"response",response:void 0,nonce:c.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:c.nonce})}break}case"command":{if(!this.canReceiveCommand(c.command)){this.sendMessage({type:"response",error:new e0(`Command ${c.command} not supported`),nonce:c.nonce});return}try{const v=await((h=(s=this.commandHandlers)[c.command])==null?void 0:h.call(s,c.data));this.sendMessage({type:"response",response:v,nonce:c.nonce})}catch(v){this.sendMessage({type:"response",error:v,nonce:c.nonce})}break}case"response":{const v=this.handlers.get(c.nonce);if(!v){console.error("No handler found for nonce",c.nonce);return}if(c.error){const E=t0.fromPossibleFrameSafeError(c.error),S=qu.fromPossibleFrameSafeError(c.error);E?(E.stack=v.stack,v.reject(E)):S?v.reject(S):v.reject(c.error)}else v.resolve(c.response);this.handlers.delete(c.nonce);break}case"fetchEventSourceMessage":{if(!this.fetchEventSourceHandlers.get(c.nonce)){console.error("No handler found for nonce",c.nonce);return}(y=(d=this.fetchEventSourceHandlers.get(c.nonce))==null?void 0:d.onmessage)==null||y.call(d,c.message);break}case"abortSignal":{const v=this.abortControllers.get(c.nonce);v&&(v.abort(c.reason),this.abortControllers.delete(c.nonce));break}}});this.commandHandlers=u,this.target=c,this.targetOrigin=s,this._fetch=((...d)=>h(...d))}setTargetOrigin(u){this.targetOrigin=u}sendMessage(u,c){var h;const s={__xpaiChatKit:!0,...u};(h=this.target())==null||h.postMessage(s,this.targetOrigin,c)}connect(){window.addEventListener("message",this.handleMessage)}disconnect(){window.removeEventListener("message",this.handleMessage)}fetch(u,c){return new Promise((s,h)=>{const d=Sf();this.handlers.set(d,{resolve:s,reject:h,stack:new Error().stack||""});let y;if(c.body instanceof FormData){y={};for(const[v,E]of c.body.entries())y[v]=E;c.body=void 0}c.signal&&(c.signal.addEventListener("abort",()=>{var v;this.sendMessage({type:"abortSignal",nonce:d,reason:(v=c.signal)==null?void 0:v.reason})}),c.signal=void 0),this.sendMessage({type:"fetch",nonce:d,params:c,formData:y,url:u})})}fetchEventSource(u,c){return new Promise((s,h)=>{const{onmessage:d,signal:y,...v}=c,E=Sf();this.handlers.set(E,{resolve:s,reject:h,stack:new Error().stack||""}),this.fetchEventSourceHandlers.set(E,{onmessage:d}),y&&y.addEventListener("abort",()=>{this.sendMessage({type:"abortSignal",nonce:E,reason:y.reason})}),this.sendMessage({type:"fetchEventSource",nonce:E,params:v,url:u})})}emit(...[u,c,s]){this.sendMessage({type:"event",event:u,data:c},s)}on(...[u,c]){this.emitter.on(u,c)}destroy(){window.removeEventListener("message",this.handleMessage),this.emitter.allOff(),this.handlers.clear()}}const n0=f=>btoa(f).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),a0=f=>{if(f===void 0)throw new TypeError("encodeBase64: `undefined` cannot be encoded to valid JSON. Pass null instead.");const u=JSON.stringify(f),c=new TextEncoder().encode(u);let s="";for(const h of c)s+=String.fromCharCode(h);return n0(s)};class Ee extends Error{}function i0(f){return f.message}const u0=["command.setOptions","command.sendUserMessage","command.setComposerValue","command.setRuntimeCapabilities","command.setThreadId","command.focusComposer","command.fetchUpdates","command.sendCustomAction","command.showHistory","command.hideHistory","event.ready","event.error","event.log","event.response.start","event.response.end","event.response.stop","event.thread.change","event.tool.change","event.thread.load.start","event.thread.load.end","event.deeplink","event.effect","error.StreamError","error.StreamEventParsingError","error.WidgetItemError","error.InitialThreadLoadError","error.FileAttachmentError","error.HistoryViewError","error.FatalAppError","error.IntegrationError","error.EntitySearchError","error.DomainVerificationRequestError","backend.threads.get_by_id","backend.threads.list","backend.threads.update","backend.threads.delete","backend.threads.create","backend.threads.add_user_message","backend.threads.add_client_tool_output","backend.threads.retry_after_item","backend.threads.custom_action","backend.attachments.create","backend.attachments.get_preview","backend.attachments.delete","backend.items.list","backend.items.feedback","thread.item.generated_image","thread.item.user_message","thread.item.assistant_message","thread.item.client_tool_call","thread.item.widget","thread.item.task","thread.item.workflow","thread.item.end_of_turn","thread.item.image_generation","widget.Basic","widget.Card","widget.ListView","widget.ListViewItem","widget.Badge","widget.Box","widget.Row","widget.Col","widget.Button","widget.Caption","widget.Chart","widget.Checkbox","widget.DatePicker","widget.Divider","widget.Form","widget.Icon","widget.Image","widget.Input","widget.Label","widget.Markdown","widget.RadioGroup","widget.Select","widget.Spacer","widget.Text","widget.Textarea","widget.Title","widget.Transition"],s0=["command.shareThread","command.setTrainingOptOut","event.thread.restore","event.message.share","event.image.download","event.history.open","event.history.close","event.log.chatgpt","error.HttpError","error.NetworkError","error.UnhandledError","error.UnhandledPromiseRejectionError","error.StreamEventHandlingError","error.StreamStopError","error.ThreadRenderingError","error.IntlError","error.AppError","backend.threads.stop","backend.threads.share","backend.threads.create_from_shared","backend.threads.init","backend.attachments.process","widget.CardCarousel","widget.Favicon","widget.CardLinkItem","widget.Map"],c0={chatkit:{allow:[...u0,"thread.item.image_generation"],deny:s0}},am=f=>{const u=c0[f],c=new Set(u.allow);for(const S of u.deny??[])c.delete(S);const s=new Set,h=new Set,d=new Set,y=new Set,v=new Set,E=new Set;for(const S of c){if(S.startsWith("command.")){s.add(S.slice(8));continue}if(S.startsWith("event.")){h.add(S.slice(6));continue}if(S.startsWith("backend.")){d.add(S.slice(8));continue}if(S.startsWith("thread.item.")&&y.add(S.slice(12)),S.startsWith("error.")){v.add(S.slice(6));continue}if(S.startsWith("widget.")){E.add(S.slice(7));continue}}return{commands:s,events:h,backend:d,threadItems:y,errors:v,widgets:E}};class f0 extends l0{canReceiveCommand(u){return!0}}const o0=["idle","running-right","running-left","waving","jumping","failed","waiting","running","review"],ni={columns:8,rows:9,cellWidth:192,cellHeight:208,animations:{idle:{row:0,frames:6,frameDurations:[280,110,110,140,140,320]},"running-right":{row:1,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},"running-left":{row:2,frames:8,frameDurations:[120,120,120,120,120,120,120,220]},waving:{row:3,frames:4,frameDurations:[140,140,140,280]},jumping:{row:4,frames:5,frameDurations:[140,140,140,140,280]},failed:{row:5,frames:8,frameDurations:[140,140,140,140,140,140,140,240]},waiting:{row:6,frames:6,frameDurations:[150,150,150,150,150,260]},running:{row:7,frames:6,frameDurations:[120,120,120,120,120,220]},review:{row:8,frames:6,frameDurations:[150,150,150,150,150,280]}}},xu={top:0,right:0,bottom:0,left:0},im="chatkit:pet:position:v1",r0="/pets/boba/spritesheet.webp",zf={type:"sprite-atlas",src:r0},um={pin:"bottom-right",draggable:!0,scale:.25,persist:!0,zIndex:40};function h0(f,u){return{row:(u==null?void 0:u.row)??f.row,frames:(u==null?void 0:u.frames)??f.frames,frameDurations:u!=null&&u.frameDurations&&u.frameDurations.length>0?u.frameDurations:f.frameDurations}}function d0(f){var c;const u={};for(const s of o0)u[s]=h0(ni.animations[s],(c=f==null?void 0:f.animations)==null?void 0:c[s]);return{columns:(f==null?void 0:f.columns)??ni.columns,rows:(f==null?void 0:f.rows)??ni.rows,cellWidth:(f==null?void 0:f.cellWidth)??ni.cellWidth,cellHeight:(f==null?void 0:f.cellHeight)??ni.cellHeight,animations:u}}function m0(f){return f&&f.src?f:zf}function si(f){return f?f===!0?{character:zf,position:um,behavior:"auto",ariaLabel:"Animated pet",imageRendering:"auto"}:f.enabled===!1?null:{character:m0(f.character),position:{...um,...f.position},behavior:f.behavior??"auto",ariaLabel:f.ariaLabel??"Animated pet",imageRendering:f.imageRendering??"auto"}:null}function y0(f){return f.src?{kind:"atlas",src:f.src,atlas:d0(f.atlas)}:null}function bf(f){return typeof f=="number"?{top:f,right:f,bottom:f,left:f}:{top:(f==null?void 0:f.top)??xu.top,right:(f==null?void 0:f.right)??xu.right,bottom:(f==null?void 0:f.bottom)??xu.bottom,left:(f==null?void 0:f.left)??xu.left}}function Ue(f,u,c,s){const h=s.left,d=s.top,y=Math.max(h,c.width-u.width-s.right),v=Math.max(d,c.height-u.height-s.bottom);return{x:Math.min(y,Math.max(h,f.x)),y:Math.min(v,Math.max(d,f.y))}}function g0(f,u,c,s){const h=(c.width-u.width)/2,d=(c.height-u.height)/2,y=c.width-u.width-s.right,v=c.height-u.height-s.bottom;switch(f){case"top-left":return Ue({x:s.left,y:s.top},u,c,s);case"top":return Ue({x:h,y:s.top},u,c,s);case"top-right":return Ue({x:y,y:s.top},u,c,s);case"left":return Ue({x:s.left,y:d},u,c,s);case"center":return Ue({x:h,y:d},u,c,s);case"right":return Ue({x:y,y:d},u,c,s);case"bottom-left":return Ue({x:s.left,y:v},u,c,s);case"bottom":return Ue({x:h,y:v},u,c,s);case"bottom-right":default:return Ue({x:y,y:v},u,c,s)}}const xf=(f,u=new WeakSet)=>{if(typeof f=="function")return"[ChatKitMethod]";if(typeof f!="object"||f===null||u.has(f))return f;if(u.add(f),Array.isArray(f))return f.map(s=>xf(s,u));const c={};for(const[s,h]of Object.entries(f))typeof h!="function"?c[s]=xf(h,u):c[s]="[ChatKitMethod]";return c},Cu=2,p0=.5,v0=1.5,S0=3,b0=2e3,sm=12,E0=320,ke=12,ea=8,T0='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',cm={"en-US":{closePetMenuItem:"Close pet",hideMessage:"Hide message",expandMessage:"Expand message",collapseMessage:"Collapse message",restoreMessage:"Show message",replyButton:"Reply",replyPlaceholder:"Reply...",sendButton:"Send",sendingButton:"Sending...",sendFailed:"Failed to send"},"zh-CN":{closePetMenuItem:"关闭宠物",hideMessage:"隐藏消息",expandMessage:"展开消息",collapseMessage:"收起消息",restoreMessage:"显示消息",replyButton:"回复",replyPlaceholder:"输入回复...",sendButton:"发送",sendingButton:"发送中...",sendFailed:"发送失败"}};function Du(f){f.stopPropagation()}function la(){const f=window.visualViewport;return{width:(f==null?void 0:f.width)||window.innerWidth||320,height:(f==null?void 0:f.height)||window.innerHeight||480}}function _0(f,u){if(!u)return null;try{const c=window.localStorage.getItem(f);if(!c)return null;const s=JSON.parse(c);return!s||typeof s!="object"||typeof s.x!="number"||typeof s.y!="number"?null:{x:s.x,y:s.y}}catch{return null}}function A0(f,u,c){if(u)try{window.localStorage.setItem(f,JSON.stringify(c))}catch{}}function M0(f){return f.replace(/["\\]/g,"\\$&")}function fm(f){return Math.max(.1,f)*p0}function Vl(f,u,c){return Math.min(c,Math.max(u,f))}function O0(){if(typeof window<"u")try{const f=window.localStorage.getItem("chatkit:locale");if(f)return f}catch{}return typeof navigator<"u"?navigator.language:null}function om(f){const u=(f??O0()??"").trim().toLowerCase();return u==="zh-cn"||u==="zh-hans"||u.startsWith("zh")?"zh-CN":"en-US"}function z0(f){switch(f){case"compact":return{padding:"8px 10px",gap:6,marginTop:3,toggleSize:30,actionSize:22};case"spacious":return{padding:"14px 16px",gap:10,marginTop:6,toggleSize:38,actionSize:28};case"normal":default:return{padding:"12px 14px",gap:8,marginTop:4,toggleSize:34,actionSize:26}}}function x0(f){switch(f){case"pill":return 24;case"round":return 16;case"sharp":return 0;case"soft":default:return 12}}function ai(f){var v,E;const u=typeof f=="string"?null:f,c=((v=u==null?void 0:u.typography)==null?void 0:v.baseSize)??16,s=(u==null?void 0:u.density)??"normal",h=s==="compact"?-1:s==="spacious"?1:0,d=Vl(c-2+h,11,17);return{...z0(s),bodySize:d,titleSize:d+1,iconSize:Vl(d+2,13,19),radius:x0(u==null?void 0:u.radius),fontFamily:((E=u==null?void 0:u.typography)==null?void 0:E.fontFamily)??T0}}function C0(f){return f==="idle"||f==="running-right"||f==="running-left"||f==="waving"||f==="jumping"||f==="failed"||f==="waiting"||f==="running"||f==="review"}function D0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return C0(u.state)?{state:u.state}:null}function w0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return u.pet===null||typeof u.pet=="boolean"?{pet:u.pet}:u.pet&&typeof u.pet=="object"&&!Array.isArray(u.pet)?{pet:u.pet}:null}function R0(f){return f==="running"||f==="completed"||f==="failed"}function rm(f){return f?[f.threadId,f.messageId||f.updatedAt||f.message].join(":"):null}function hm(f){return f?[f.threadId,f.messageId??""].join(":"):null}function U0(f){if(f===null)return{summary:null};if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return typeof u.threadId!="string"||!u.threadId.trim()||typeof u.title!="string"||!u.title.trim()||typeof u.message!="string"||!u.message.trim()||!R0(u.status)?null:{summary:{threadId:u.threadId,title:u.title,message:u.message,status:u.status,...typeof u.messageId=="string"&&u.messageId.trim()?{messageId:u.messageId}:{},...typeof u.updatedAt=="string"&&u.updatedAt.trim()?{updatedAt:u.updatedAt}:{}}}}function N0(f){if(!f||typeof f!="object"||Array.isArray(f))return null;const u=f;return u.name!=="thread.summary"?null:U0(u.data??null)}class H0{constructor(u,c){this.overlayElement=null,this.petElement=null,this.contextMenuElement=null,this.summaryElement=null,this.summaryToggleElement=null,this.mediaElement=null,this.options=null,this.theme=null,this.resolved=null,this.summary=null,this.summaryRenderKey=null,this.dismissedSummaryKey=null,this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.replyInputElement=null,this.copyLocale=om(),this.copy=cm[this.copyLocale],this.currentState="waiting",this.lastAutoState="waiting",this.transient=null,this.position=null,this.dragPosition=null,this.dragOffset={x:0,y:0},this.lastDragPosition=null,this.lastDragClientX=null,this.dragAnimation=null,this.isDragging=!1,this.isHovering=!1,this.movedDuringDrag=!1,this.prefersReducedMotion=!1,this.frame=0,this.completed=!1,this.activeAnimationName=null,this.activeAnimationMode=null,this.frameTimer=null,this.restingDelayTimer=null,this.mediaQuery=null,this.connected=!1,this.handleViewportChange=()=>{this.closeContextMenu(),this.render()},this.handleReducedMotionChange=()=>{var s;this.prefersReducedMotion=!!((s=this.mediaQuery)!=null&&s.matches),this.prefersReducedMotion&&(this.transient=null),this.render()},this.handlePointerEnter=()=>{this.clearRestingDelayTimer(),this.isHovering=!0,this.rescheduleAnimation()},this.handlePointerLeave=()=>{this.isDragging||this.enterRestingAfterDelay()},this.handleContextMenu=s=>{s.preventDefault(),s.stopPropagation(),this.openContextMenu({x:s.clientX,y:s.clientY})},this.handleContextMenuEvent=s=>{s.preventDefault(),s.stopPropagation()},this.handleContextMenuOutsidePointerDown=s=>{const h=this.contextMenuElement;h&&s.composedPath().includes(h)||this.closeContextMenu()},this.handleContextMenuKeyDown=s=>{s.key==="Escape"&&(s.preventDefault(),this.closeContextMenu())},this.handleClosePetMenuItemClick=s=>{var h;s.preventDefault(),s.stopPropagation(),this.closeContextMenu(),(h=this.onClose)==null||h.call(this)},this.handleSummaryPointerEnter=()=>{this.isSummaryHovering=!0,this.render()},this.handleSummaryPointerLeave=()=>{this.isSummaryHovering=!1,this.isReplyOpen||this.render()},this.handleSummaryClick=()=>{var h,d;const s=(h=this.summary)==null?void 0:h.threadId.trim();s&&((d=this.onThreadSummaryActivate)==null||d.call(this,s))},this.handleSummaryDelete=()=>{const s=rm(this.summary);s&&(this.dismissedSummaryKey=s),this.isSummaryCollapsed=!1,this.isReplyOpen=!1,this.replyDraft="",this.replyError=null,this.removeSummaryElements()},this.handleSummaryCollapseToggle=()=>{this.isSummaryCollapsed=!this.isSummaryCollapsed,this.isSummaryExpanded=!1,this.isReplyOpen=!1,this.replyError=null,this.render()},this.handleSummaryExpandToggle=()=>{this.isSummaryExpanded=!this.isSummaryExpanded,this.render()},this.handleReplyOpen=()=>{this.isReplyOpen=!0,this.replyError=null,this.render()},this.handleReplyInput=s=>{const h=s.currentTarget;h instanceof HTMLInputElement&&(this.replyDraft=h.value,this.replyError=null)},this.handleReplySubmit=s=>{s.preventDefault(),this.submitReply()},this.handleReplyKeyDown=s=>{s.key==="Escape"&&(s.preventDefault(),this.isReplyOpen=!1,this.replyError=null,this.render())},this.handlePointerDown=s=>{var y,v;if(s.button!==0||s.ctrlKey||(this.closeContextMenu(),!((y=this.options)!=null&&y.position.draggable)))return;s.preventDefault();const h=(v=this.petElement)==null?void 0:v.getBoundingClientRect();if(!h)return;const d={x:h.left,y:h.top};this.dragOffset={x:s.clientX-h.left,y:s.clientY-h.top},this.lastDragPosition=d,this.lastDragClientX=s.clientX,this.dragAnimation=null,this.movedDuringDrag=!1,this.dragPosition=d,this.isDragging=!0,this.clearRestingDelayTimer(),this.isHovering=!0,this.installDragListeners(),this.rescheduleAnimation()},this.handlePointerMove=s=>{const h=this.getNextDragPosition(s),d=this.lastDragPosition;if(d&&(Math.abs(d.x-h.x)>Cu||Math.abs(d.y-h.y)>Cu)&&(this.movedDuringDrag=!0),this.lastDragClientX!==null){const y=s.clientX-this.lastDragClientX;y>Cu?this.dragAnimation="running-right":y<-Cu&&(this.dragAnimation="running-left")}this.lastDragClientX=s.clientX,this.lastDragPosition=h,this.dragPosition=h,this.render()},this.handlePointerUp=s=>{const h=this.lastDragPosition??this.getNextDragPosition(s);this.isDragging=!1,this.dragPosition=null,this.dragAnimation=null,this.lastDragClientX=null,this.removeDragListeners(),this.persistPosition(h),s.pointerType==="mouse"&&this.isPointerOverPet(s)?(this.isHovering=!0,this.rescheduleAnimation()):(this.enterRestingAfterDelay(),this.rescheduleAnimation())},this.handleClick=()=>{var s;this.movedDuringDrag||((s=this.onActivate)==null||s.call(this),!this.prefersReducedMotion&&(this.transient={name:"waving"},this.render()))},this.root=u,this.onActivate=c==null?void 0:c.onActivate,this.onClose=c==null?void 0:c.onClose,this.onReply=c==null?void 0:c.onReply,this.onThreadSummaryActivate=c==null?void 0:c.onThreadSummaryActivate,this.connect()}connect(){this.connected||(this.connected=!0,this.installViewportListeners(),this.installReducedMotionListener(),this.render())}setOptions(u,c){this.closeContextMenu();const s=si(u);if(this.options=s,this.theme=c??null,!s){this.isDragging=!1,this.isHovering=!1,this.position=null,this.dragPosition=null,this.dragAnimation=null,this.lastDragPosition=null,this.lastDragClientX=null,this.transient=null,this.resolved=null,this.clearRestingDelayTimer(),this.removeDragListeners(),this.removeOverlay();return}this.position=_0(im,s.position.persist),s.behavior==="auto"&&!this.prefersReducedMotion&&(this.transient={name:"waving"}),this.resolveCharacter(),this.render()}setState(u){var s;const c=this.lastAutoState;this.lastAutoState=u,this.currentState=u,((s=this.options)==null?void 0:s.behavior)==="auto"&&!this.prefersReducedMotion&&u==="idle"&&(c==="running"||c==="review")&&!this.transient?this.transient={name:"jumping"}:u!=="idle"&&(this.transient=null),this.render()}setLocale(u){const c=om(u);c!==this.copyLocale&&(this.copyLocale=c,this.copy=cm[c],this.summaryRenderKey=null,this.closeContextMenu(),this.render())}setThreadSummary(u){const c=hm(this.summary),s=hm(u);if(this.summary=u,!u){this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft="",this.summaryRenderKey=null,this.removeSummaryElements();return}c!==s&&(this.isSummaryCollapsed=!1,this.isSummaryExpanded=!1,this.isSummaryHovering=!1,this.isReplyOpen=!1,this.isReplySubmitting=!1,this.replyError=null,this.replyDraft=""),this.render()}setThreadSummaryStatus(u){!this.summary||this.summary.status===u||(this.summary={...this.summary,status:u},this.render())}destroy(){var u,c,s,h;this.connected&&(this.connected=!1,this.clearRestingDelayTimer(),this.clearTimers(),this.removeDragListeners(),this.removeOverlay(),window.removeEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.removeEventListener("resize",this.handleViewportChange),(c=window.visualViewport)==null||c.removeEventListener("scroll",this.handleViewportChange),(h=(s=this.mediaQuery)==null?void 0:s.removeEventListener)==null||h.call(s,"change",this.handleReducedMotionChange),this.mediaQuery=null)}installViewportListeners(){var u,c;window.addEventListener("resize",this.handleViewportChange),(u=window.visualViewport)==null||u.addEventListener("resize",this.handleViewportChange),(c=window.visualViewport)==null||c.addEventListener("scroll",this.handleViewportChange)}installReducedMotionListener(){var u,c;window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.prefersReducedMotion=this.mediaQuery.matches,(c=(u=this.mediaQuery).addEventListener)==null||c.call(u,"change",this.handleReducedMotionChange))}resolveCharacter(){if(!this.options){this.resolved=null;return}const u=this.options.character;this.resolved=y0(u)}ensureOverlay(){if(this.overlayElement&&this.petElement)return;const u=document.createElement("div");u.setAttribute("data-chatkit-host-pet-layer",""),u.style.position="fixed",u.style.inset="0",u.style.pointerEvents="none",u.style.overflow="visible";const c=document.createElement("style");c.textContent=`
|
|
51
|
+
@keyframes chatkit-pet-summary-spin {
|
|
52
|
+
to { transform: rotate(360deg); }
|
|
53
|
+
}
|
|
54
|
+
`;const s=document.createElement("div");s.setAttribute("data-chatkit-host-pet",""),s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.pointerEvents="auto",s.style.touchAction="none",s.style.userSelect="none",s.style.willChange="transform",s.addEventListener("pointerenter",this.handlePointerEnter),s.addEventListener("pointerleave",this.handlePointerLeave),s.addEventListener("pointerdown",this.handlePointerDown),s.addEventListener("contextmenu",this.handleContextMenu),s.addEventListener("click",this.handleClick),u.append(c,s),this.root.append(u),this.overlayElement=u,this.petElement=s}removeOverlay(){var u;this.clearRestingDelayTimer(),this.clearTimers(),this.closeContextMenu(),this.petElement&&(this.petElement.removeEventListener("pointerenter",this.handlePointerEnter),this.petElement.removeEventListener("pointerleave",this.handlePointerLeave),this.petElement.removeEventListener("pointerdown",this.handlePointerDown),this.petElement.removeEventListener("contextmenu",this.handleContextMenu),this.petElement.removeEventListener("click",this.handleClick)),this.isHovering=!1,this.removeSummaryElements(),(u=this.overlayElement)==null||u.remove(),this.overlayElement=null,this.petElement=null,this.mediaElement=null}removeSummaryElements(){var u,c;(u=this.summaryElement)==null||u.remove(),(c=this.summaryToggleElement)==null||c.remove(),this.summaryElement=null,this.summaryToggleElement=null,this.replyInputElement=null,this.summaryRenderKey=null}getSize(){if(!this.options||!this.resolved)return{width:0,height:0};const u=fm(this.options.position.scale),c={width:this.resolved.atlas.cellWidth,height:this.resolved.atlas.cellHeight};return{width:c.width*u,height:c.height*u}}getCurrentPosition(u){const c=this.options;if(!c)return{x:0,y:0};const s=la(),h=bf(c.position.boundsPadding),d=c.position.pin===void 0?"bottom-right":c.position.pin,y=d?g0(d,u,s,h):null;return Ue(this.dragPosition??this.position??y??{x:h.left,y:h.top},u,s,h)}persistPosition(u){if(!this.options)return;const c=this.getSize(),s=Ue(u,c,la(),bf(this.options.position.boundsPadding));this.position=s,A0(im,this.options.position.persist,s)}getActiveAnimationName(){return this.options?this.isDragging?this.dragAnimation??"running":this.transient?this.transient.name:this.options.behavior==="manual"?"idle":this.currentState:"idle"}getActiveAnimationMode(){return this.isDragging?"loop":this.transient?"once":"loop"}resetAnimationIfNeeded(u,c){this.activeAnimationName===u&&this.activeAnimationMode===c||(this.clearTimers(),this.activeAnimationName=u,this.activeAnimationMode=c,this.frame=0,this.completed=!1)}render(){if(!this.options||!this.resolved){this.clearTimers(),this.petElement&&this.petElement.replaceChildren(),this.removeSummaryElements(),this.mediaElement=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.frame=0,this.completed=!1;return}this.ensureOverlay();const u=this.overlayElement,c=this.petElement;if(!u||!c)return;const s=this.getSize(),h=this.getCurrentPosition(s),d=this.getActiveAnimationName(),y=this.getActiveAnimationMode();this.resetAnimationIfNeeded(d,y),u.style.zIndex=String(this.options.position.zIndex),c.style.width=`${s.width}px`,c.style.height=`${s.height}px`,c.style.transform=`translate3d(${h.x}px, ${h.y}px, 0)`,c.style.cursor=this.options.position.draggable?this.isDragging?"grabbing":"grab":"default",c.dataset.petAnimation=d,c.setAttribute("aria-label",this.options.ariaLabel),c.setAttribute("role","img"),this.renderAtlas(d,y),this.renderThreadSummary(h,s),this.scheduleNextFrame(d,y)}renderThreadSummary(u,c){var y,v,E;const s=this.summary,h=rm(s);if(!s||!h||this.dismissedSummaryKey===h){this.removeSummaryElements();return}if(this.isSummaryCollapsed){this.renderCollapsedSummary(u,c);return}const d=[this.copyLocale,this.isSummaryExpanded?"expanded":"compact",this.isSummaryHovering?"hover":"rest",this.isReplyOpen?"reply":"closed",this.isReplySubmitting?"submitting":"ready",this.replyError??""].join("|");(!this.summaryElement||this.summaryRenderKey!==d)&&((y=this.summaryElement)==null||y.remove(),(v=this.summaryToggleElement)==null||v.remove(),this.summaryElement=this.createSummaryBubble(s),this.summaryToggleElement=this.createSummaryToggleButton("v"),(E=this.overlayElement)==null||E.append(this.summaryElement,this.summaryToggleElement),this.summaryRenderKey=d,this.isReplyOpen&&!this.isReplySubmitting&&window.setTimeout(()=>{var S;return(S=this.replyInputElement)==null?void 0:S.focus()},0)),this.updateSummaryBubbleContent(s),this.positionSummaryBubble(u,c)}renderCollapsedSummary(u,c){var s,h;(s=this.summaryElement)==null||s.remove(),this.summaryElement=null,this.summaryRenderKey=null,this.summaryToggleElement||(this.summaryToggleElement=this.createSummaryToggleButton("1"),(h=this.overlayElement)==null||h.append(this.summaryToggleElement)),this.summaryToggleElement.textContent="1",this.positionSummaryToggleBadge(u,c)}positionSummaryToggleBadge(u,c){const s=this.summaryToggleElement;if(!s)return;const h=la(),d=ai(this.theme).toggleSize,y=Vl(u.x+c.width-d*.35,ke,h.width-d-ke),v=Vl(u.y-d*.35,ke,h.height-d-ke);s.style.width=`${d}px`,s.style.height=`${d}px`,s.style.transform=`translate3d(${y}px, ${v}px, 0)`,s.style.borderRadius="999px"}positionSummaryBubble(u,c){const s=this.summaryElement,h=this.summaryToggleElement;if(!s||!h)return;const d=la(),y=Math.min(E0,d.width-ke*2);s.style.width=`${y}px`;const v=s.offsetHeight||96,E=u.y-v-sm,N=E>=ke?E:Vl(u.y+c.height+sm,ke,d.height-v-ke),B=Vl(u.x+c.width/2-y/2,ke,d.width-y-ke);s.style.transform=`translate3d(${B}px, ${N}px, 0)`,this.positionSummaryToggleBadge(u,c)}createSummaryBubble(u){const c=this.isSummaryHovering&&!this.isReplyOpen,s=ai(this.theme),h=document.createElement("div");h.setAttribute("data-chatkit-pet-summary",""),h.addEventListener("pointerenter",this.handleSummaryPointerEnter),h.addEventListener("pointerleave",this.handleSummaryPointerLeave),h.addEventListener("click",this.handleSummaryClick),h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.boxSizing="border-box",h.style.pointerEvents="auto",h.style.padding=s.padding,h.style.border="1px solid rgba(148, 163, 184, 0.22)",h.style.borderRadius=`${s.radius}px`,h.style.background="rgba(255, 255, 255, 0.94)",h.style.color="#1f2937",h.style.boxShadow="0 8px 24px rgba(15, 23, 42, 0.1)",h.style.font=`500 ${s.bodySize}px/1.35 ${s.fontFamily}`,h.style.backdropFilter="blur(10px)";const d=document.createElement("div");d.style.display="flex",d.style.alignItems="center",d.style.gap=`${s.gap}px`,(this.isSummaryHovering||this.isReplyOpen)&&d.append(this.createSummaryActionButton("x",this.copy.hideMessage,this.handleSummaryDelete));const y=document.createElement("div");y.textContent=u.title,y.style.minWidth="0",y.style.flex="1",y.style.overflow="hidden",y.style.textOverflow="ellipsis",y.style.whiteSpace="nowrap",y.style.fontWeight="700",y.style.fontSize=`${s.titleSize}px`,y.dataset.chatkitPetSummaryTitle="",d.append(y),this.isSummaryHovering||this.isReplyOpen?d.append(this.createSummaryActionButton(this.isSummaryExpanded?"-":">",this.isSummaryExpanded?this.copy.collapseMessage:this.copy.expandMessage,this.handleSummaryExpandToggle)):d.append(this.createStatusIcon(u.status));const v=document.createElement("div");if(v.textContent=u.message,v.style.marginTop=`${s.marginTop}px`,v.style.fontWeight="400",v.style.color="#374151",v.style.overflow="hidden",this.isSummaryExpanded?(v.style.maxHeight="7em",v.style.overflowY="auto"):(v.style.display="-webkit-box",v.style.setProperty("-webkit-line-clamp","2"),v.style.setProperty("-webkit-box-orient","vertical")),v.dataset.chatkitPetSummaryMessage="",h.append(d,v),c){const E=this.createTextButton(this.copy.replyButton,this.handleReplyOpen);E.style.position="absolute",E.style.right="14px",E.style.bottom="10px",h.append(E)}return this.isReplyOpen&&h.append(this.createReplyForm()),h}updateSummaryBubbleContent(u){var d,y,v;const c=(d=this.summaryElement)==null?void 0:d.querySelector("[data-chatkit-pet-summary-title]");c&&c.textContent!==u.title&&(c.textContent=u.title);const s=(y=this.summaryElement)==null?void 0:y.querySelector("[data-chatkit-pet-summary-message]");s&&s.textContent!==u.message&&(s.textContent=u.message);const h=(v=this.summaryElement)==null?void 0:v.querySelector("[data-chatkit-pet-summary-status]");if(h&&h.dataset.chatkitPetSummaryStatus!==u.status){const E=this.createStatusIcon(u.status);h.replaceWith(E)}}createSummaryToggleButton(u){const c=ai(this.theme),s=document.createElement("button");return s.type="button",s.textContent=u,s.title=u==="1"?this.copy.restoreMessage:this.copy.collapseMessage,s.addEventListener("click",Du),s.addEventListener("click",this.handleSummaryCollapseToggle),s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.pointerEvents="auto",s.style.border="1px solid rgba(148, 163, 184, 0.28)",s.style.background="rgba(248, 250, 252, 0.94)",s.style.color="#475569",s.style.boxShadow="0 6px 18px rgba(15, 23, 42, 0.1)",s.style.cursor="pointer",s.style.font=`600 ${c.titleSize}px/1 ${c.fontFamily}`,s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",s}createStatusIcon(u){const s=ai(this.theme).iconSize,h=document.createElement("span");if(h.setAttribute("aria-hidden","true"),h.dataset.chatkitPetSummaryStatus=u,h.style.display="inline-flex",h.style.width=`${s}px`,h.style.height=`${s}px`,h.style.alignItems="center",h.style.justifyContent="center",h.style.flex="0 0 auto",u==="running")return h.style.border="2px solid rgba(71, 85, 105, 0.32)",h.style.borderTopColor="#64748b",h.style.borderRadius="999px",h.style.animation="chatkit-pet-summary-spin 900ms linear infinite",h;if(h.style.borderRadius="999px",h.style.fontSize=`${Math.max(10,s-4)}px`,h.style.fontWeight="700",u==="failed")return h.textContent="!",h.style.background="#fee2e2",h.style.color="#b91c1c",h;h.textContent="",h.style.border="2px solid #22c55e",h.style.position="relative";const d=document.createElement("span");return d.style.width=`${Math.round(s*.44)}px`,d.style.height=`${Math.round(s*.25)}px`,d.style.borderLeft="2px solid #22c55e",d.style.borderBottom="2px solid #22c55e",d.style.transform="rotate(-45deg) translate(1px, -1px)",h.append(d),h}createSummaryActionButton(u,c,s){const h=ai(this.theme),d=document.createElement("button");return d.type="button",d.textContent=u,d.title=c,d.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),s()}),d.style.width=`${h.actionSize}px`,d.style.height=`${h.actionSize}px`,d.style.border="0",d.style.borderRadius="999px",d.style.background="rgba(241, 245, 249, 0.96)",d.style.color="#475569",d.style.cursor="pointer",d.style.font=`600 ${h.titleSize}px/1 ${h.fontFamily}`,d}createTextButton(u,c){const s=document.createElement("button");return s.type="button",s.textContent=u,s.addEventListener("click",h=>{h.preventDefault(),h.stopPropagation(),c()}),s.style.border="1px solid rgba(148, 163, 184, 0.28)",s.style.borderRadius="999px",s.style.background="rgba(248, 250, 252, 0.95)",s.style.color="#334155",s.style.cursor="pointer",s.style.padding="3px 10px",s.style.font='600 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',s}createReplyForm(){const u=document.createElement("form");u.addEventListener("click",Du),u.addEventListener("submit",this.handleReplySubmit),u.addEventListener("keydown",this.handleReplyKeyDown),u.style.display="flex",u.style.gap="6px",u.style.alignItems="center",u.style.marginTop="8px";const c=document.createElement("input");c.type="text",c.value=this.replyDraft,c.disabled=this.isReplySubmitting,c.placeholder=this.copy.replyPlaceholder,c.addEventListener("input",this.handleReplyInput),c.style.minWidth="0",c.style.flex="1",c.style.border="1px solid rgba(148, 163, 184, 0.35)",c.style.borderRadius="999px",c.style.padding="6px 10px",c.style.font='400 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',this.replyInputElement=c;const s=document.createElement("button");if(s.type="submit",s.textContent=this.isReplySubmitting?this.copy.sendingButton:this.copy.sendButton,s.disabled=this.isReplySubmitting,s.style.border="0",s.style.borderRadius="999px",s.style.background="#22c55e",s.style.color="#052e16",s.style.cursor=this.isReplySubmitting?"default":"pointer",s.style.padding="6px 10px",s.style.font='700 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.append(c,s),this.replyError){const h=document.createElement("div");h.textContent=this.copy.sendFailed,h.style.flexBasis="100%",h.style.color="#b91c1c",h.style.fontSize="12px",u.style.flexWrap="wrap",u.append(h)}return u}createContextMenu(){const u=document.createElement("div");u.setAttribute("data-chatkit-pet-context-menu",""),u.setAttribute("role","menu"),u.addEventListener("contextmenu",this.handleContextMenuEvent),u.addEventListener("pointerdown",Du),u.addEventListener("click",Du),u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.boxSizing="border-box",u.style.minWidth="132px",u.style.padding="4px",u.style.pointerEvents="auto",u.style.border="1px solid rgba(148, 163, 184, 0.28)",u.style.borderRadius="10px",u.style.background="rgba(255, 255, 255, 0.96)",u.style.color="#1f2937",u.style.boxShadow="0 12px 28px rgba(15, 23, 42, 0.16)",u.style.font='500 13px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',u.style.backdropFilter="blur(10px)";const c=document.createElement("button");return c.type="button",c.textContent=this.copy.closePetMenuItem,c.setAttribute("role","menuitem"),c.addEventListener("click",this.handleClosePetMenuItemClick),c.style.display="block",c.style.width="100%",c.style.border="0",c.style.borderRadius="7px",c.style.background="transparent",c.style.color="inherit",c.style.cursor="pointer",c.style.padding="7px 10px",c.style.textAlign="left",c.style.font="inherit",u.append(c),u}openContextMenu(u){var h;const c=this.overlayElement;if(!c)return;this.closeContextMenu();const s=this.createContextMenu();c.append(s),this.contextMenuElement=s,this.positionContextMenu(u),(h=s.querySelector("button"))==null||h.focus({preventScroll:!0}),window.addEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.addEventListener("keydown",this.handleContextMenuKeyDown)}closeContextMenu(){var u;(u=this.contextMenuElement)==null||u.remove(),this.contextMenuElement=null,window.removeEventListener("pointerdown",this.handleContextMenuOutsidePointerDown,!0),window.removeEventListener("keydown",this.handleContextMenuKeyDown)}positionContextMenu(u){const c=this.contextMenuElement;if(!c)return;const s=la(),h=c.offsetWidth||132,d=c.offsetHeight||40,y=Math.max(ea,s.width-h-ea),v=Math.max(ea,s.height-d-ea),E=Vl(u.x,ea,y),S=Vl(u.y,ea,v);c.style.transform=`translate3d(${E}px, ${S}px, 0)`}renderAtlas(u,c){var et;if(!this.petElement||((et=this.resolved)==null?void 0:et.kind)!=="atlas"||!this.options)return;if(!(this.mediaElement instanceof HTMLDivElement)){const mt=document.createElement("div");mt.setAttribute("aria-hidden","true"),this.petElement.replaceChildren(mt),this.mediaElement=mt}const s=this.mediaElement,h=this.resolved.atlas,d=h.animations[u]??h.animations.idle,y=c==="once"&&this.completed?Math.max(0,d.frames-1):Math.min(this.frame,Math.max(0,d.frames-1)),v=fm(this.options.position.scale),E=h.cellWidth,S=h.cellHeight,N=h.columns*E,B=h.rows*S;s.style.width=`${E}px`,s.style.height=`${S}px`,s.style.overflow="hidden",s.style.transform=`scale(${v})`,s.style.transformOrigin="top left",s.style.pointerEvents="none",s.style.backgroundImage=`url("${M0(this.resolved.src)}")`,s.style.backgroundRepeat="no-repeat",s.style.backgroundSize=`${N}px ${B}px`,s.style.backgroundPosition=`${-y*E}px ${-d.row*S}px`,s.style.imageRendering=this.options.imageRendering,s.dataset.petFrame=String(y)}scheduleNextFrame(u,c){if(this.prefersReducedMotion||this.completed||!this.resolved){this.clearTimers();return}if(this.frameTimer!==null)return;const s=this.resolved.atlas,h=s.animations[u]??s.animations.idle,y=(h.frameDurations[this.frame]??h.frameDurations[h.frameDurations.length-1]??150)*v0,v=this.isHovering||this.isDragging?y:y*S0;this.frameTimer=window.setTimeout(()=>{this.frameTimer=null;const E=this.frame+1;if(E>=h.frames){if(c==="once"){this.completed=!0,this.frame=Math.max(0,h.frames-1),this.finishTransient();return}this.frame=0,this.render();return}this.frame=E,this.render()},v)}clearTimers(){this.frameTimer!==null&&(window.clearTimeout(this.frameTimer),this.frameTimer=null)}clearRestingDelayTimer(){this.restingDelayTimer!==null&&(window.clearTimeout(this.restingDelayTimer),this.restingDelayTimer=null)}finishTransient(){this.transient=null,this.activeAnimationName=null,this.activeAnimationMode=null,this.render()}rescheduleAnimation(){this.clearTimers(),this.render()}enterRestingAfterDelay(){this.clearRestingDelayTimer(),this.isHovering=!0,this.restingDelayTimer=window.setTimeout(()=>{this.restingDelayTimer=null,!this.isDragging&&(this.isHovering=!1,this.rescheduleAnimation())},b0)}isPointOverPet(u,c){var h;const s=(h=this.petElement)==null?void 0:h.getBoundingClientRect();return s?u>=s.left&&u<=s.right&&c>=s.top&&c<=s.bottom:!1}isPointerOverPet(u){return this.isPointOverPet(u.clientX,u.clientY)}async submitReply(){var c;const u=this.replyDraft.trim();if(!(!u||this.isReplySubmitting)){this.isReplySubmitting=!0,this.replyError=null,this.render();try{await((c=this.onReply)==null?void 0:c.call(this,u)),this.replyDraft="",this.isReplyOpen=!1,this.isSummaryHovering=!1}catch{this.replyError="Failed to send"}finally{this.isReplySubmitting=!1,this.render()}}}getNextDragPosition(u){return this.options?Ue({x:u.clientX-this.dragOffset.x,y:u.clientY-this.dragOffset.y},this.getSize(),la(),bf(this.options.position.boundsPadding)):{x:0,y:0}}installDragListeners(){window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp,{once:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{once:!0})}removeDragListeners(){window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}var B0=Object.create,_m=Object.defineProperty,L0=Object.getOwnPropertyDescriptor,Am=(f,u)=>(u=Symbol[f])?u:Symbol.for("Symbol."+f),Xu=f=>{throw TypeError(f)},Y0=(f,u,c)=>u in f?_m(f,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[u]=c,q0=f=>[,,,B0((f==null?void 0:f[Am("metadata")])??null)],Mm=["class","method","getter","setter","accessor","field","value","get","set"],Om=f=>f!==void 0&&typeof f!="function"?Xu("Function expected"):f,j0=(f,u,c,s,h)=>({kind:Mm[f],name:u,metadata:s,addInitializer:d=>c._?Xu("Already initialized"):h.push(Om(d||null))}),X0=(f,u)=>Y0(u,Am("metadata"),f[3]),G0=(f,u,c,s)=>{for(var h=0,d=f[u>>1],y=d&&d.length;h<y;h++)d[h].call(c);return s},Xe=(f,u,c,s,h,d)=>{for(var y,v,E,S,N=u&7,B=!1,et=!1,mt=2,Et=Mm[N+5],Ct=f[mt]||(f[mt]=[]),Xt=(h=h.prototype,L0(h,c)),Mt=s.length-1;Mt>=0;Mt--)E=j0(N,c,v={},f[3],Ct),E.static=B,E.private=et,S=E.access={has:kt=>c in kt},S.get=kt=>kt[c],y=(0,s[Mt])(Xt[Et],E),v._=1,Om(y)&&(Xt[Et]=y);return Xt&&_m(h,c,Xt),h},Nf=(f,u,c)=>u.has(f)||Xu("Cannot "+c),w=(f,u,c)=>(Nf(f,u,"read from private field"),c?c.call(f):u.get(f)),jt=(f,u,c)=>u.has(f)?Xu("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(f):u.set(f,c),$t=(f,u,c,s)=>(Nf(f,u,"write to private field"),u.set(f,c),c),G=(f,u,c)=>(Nf(f,u,"access private method"),c),zm,xm,Cm,Dm,wm,Rm,Um,Nm,Hm,Bm,Lm,Cf,gt,Kl,gl,pl,Hu,Hf,Gu,ua,yn,We,Ne,Bu,Jt,yt,j,Zl,Bf,vl,Qu,Ym,Zu,qm,jm,Lf,Jl,ci,Df,Xm,Gm,Qm,Zm,Lu,Vm,Km,Jm,Yu,sa,wf,oe;function km(f){return xf(f)}function qe(f,u){const c=String(u.name);return function(...s){if(!this.capabilities.commands.has(c))throw new Ee(`ChatKit command "${String(c)}" is not available for the "${this.profile}" profile.`);return f.apply(this,s)}}class Te extends(Cf=HTMLElement,Lm=[qe],Bm=[qe],Hm=[qe],Nm=[qe],Um=[qe],Rm=[qe],wm=[qe],Dm=[qe],Cm=[qe],xm=[qe],zm=[qe],Cf){constructor({profile:u}){super(),G0(oe,5,this),jt(this,j),this.profile=void 0,this.capabilities=void 0,jt(this,gt),jt(this,Kl),jt(this,gl),jt(this,pl),jt(this,Hu),jt(this,Hf,!1),jt(this,Gu,!1),jt(this,ua),jt(this,yn,!1),jt(this,We,this.attachShadow({mode:"open"})),jt(this,Ne,new H0(w(this,We),{onActivate:()=>G(this,j,Xm).call(this),onClose:()=>G(this,j,Gm).call(this),onReply:c=>G(this,j,Qm).call(this,c),onThreadSummaryActivate:c=>void G(this,j,Zm).call(this,c)})),jt(this,Bu),jt(this,Jt,new Promise(c=>{$t(this,Bu,c)})),jt(this,yt,new f0({fetch:((...c)=>{var h;const s=((h=w(this,gt))==null?void 0:h.api)&&"fetch"in w(this,gt).api&&w(this,gt).api.fetch;return s?s(...c):fetch(...c)}),target:()=>{var c;return((c=w(this,gl))==null?void 0:c.contentWindow)??null},targetOrigin:window.location.origin,handlers:{onFileInputClick:({inputAttributes:c})=>new Promise(s=>{const h=document.createElement("input");for(const[y,v]of Object.entries(c))h.setAttribute(y,String(v));const d=()=>{s(Array.from(h.files||[])),w(this,We).contains(h)&&w(this,We).removeChild(h)};h.addEventListener("cancel",d),h.addEventListener("change",d),w(this,We).appendChild(h),h.click()}),onClientToolCall:async({name:c,params:s,id:h,tool_call_id:d})=>{var v;const y=(v=w(this,gt))==null?void 0:v.onClientTool;return y||G(this,j,Zl).call(this,new Ee("No handler for client tool calls. You'll need to add onClientTool to your ChatKit options.")),y({name:c,params:s,id:h,tool_call_id:d})},onToolOutputAttachmentPreview:async c=>{var h,d;const s=(d=(h=w(this,gt))==null?void 0:h.toolOutputAttachments)==null?void 0:d.onRequestPreview;return s||G(this,j,Zl).call(this,new Ee("No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options.")),s(c)},onWorkbenchClientCommand:async({commandKey:c,payload:s,hostType:h,hostId:d,viewKey:y})=>{var E,S;const v=(S=(E=w(this,gt))==null?void 0:E.workbench)==null?void 0:S.onClientCommand;return v||G(this,j,Zl).call(this,new Ee(`No handler for workbench client command "${c}". Add workbench.onClientCommand to your ChatKit options.`)),v({commandKey:c,payload:s,hostType:h,hostId:d,viewKey:y})},onWidgetAction:async({action:c,widgetItem:s})=>{var d,y;const h=(y=(d=w(this,gt))==null?void 0:d.widgets)==null?void 0:y.onAction;return h||G(this,j,Zl).call(this,new Ee("No handler for widget actions. You'll need to add widgets.onAction to your ChatKit options.")),h(c,s)},onEntitySearch:async({query:c})=>{var s,h,d;return((d=(h=(s=w(this,gt))==null?void 0:s.entities)==null?void 0:h.onTagSearch)==null?void 0:d.call(h,c))??[]},onEntityClick:async({entity:c})=>{var s,h,d;return(d=(h=(s=w(this,gt))==null?void 0:s.entities)==null?void 0:h.onClick)==null?void 0:d.call(h,c)},onEntityPreview:async({entity:c})=>{var s,h,d;return((d=(h=(s=w(this,gt))==null?void 0:s.entities)==null?void 0:h.onRequestPreview)==null?void 0:d.call(h,c))??{preview:null}},onGetClientSecret:async c=>((!w(this,gt)||!("getClientSecret"in w(this,gt).api)||!w(this,gt).api.getClientSecret)&&G(this,j,Zl).call(this,new Ee("Could not refresh the session because ChatKitOptions.api.getClientSecret is not configured.")),w(this,gt).api.getClientSecret(c??null)),onAddMetadataToRequest:({op:c,params:s})=>{throw new Ee("ChatKit: onAddMetadataToRequest is unimplemented.")}}})),jt(this,Lu,()=>{G(this,j,Jl).call(this,!1)}),jt(this,Yu,()=>{var c;this.dataset.loaded="true",this.dispatchEvent(new CustomEvent("chatkit.ready",{bubbles:!0,composed:!0})),(c=w(this,Bu))==null||c.call(this)}),jt(this,sa,!1),this.profile=u,this.capabilities=am(u)}setProfile(u){this.profile=u,this.capabilities=am(u)}connectedCallback(){w(this,Ne).connect();const u=document.createElement("style");u.textContent=`
|
|
55
|
+
:host {
|
|
56
|
+
display: block;
|
|
57
|
+
position: relative;
|
|
58
|
+
height: 100%;
|
|
59
|
+
width: 100%;
|
|
60
|
+
overflow: visible;
|
|
61
|
+
}
|
|
62
|
+
:host([data-display-mode="pet"]) {
|
|
63
|
+
display: contents;
|
|
64
|
+
}
|
|
65
|
+
:host([data-chat-minimized-to-pet="true"]) {
|
|
66
|
+
display: contents;
|
|
67
|
+
}
|
|
68
|
+
.ck-iframe {
|
|
69
|
+
border: none;
|
|
70
|
+
position: absolute;
|
|
71
|
+
inset: 0;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
color-scheme: light only;
|
|
76
|
+
}
|
|
77
|
+
.ck-wrapper {
|
|
78
|
+
position: absolute;
|
|
79
|
+
inset: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
.ck-launcher-close {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
:host([data-display-mode="pet"]) .ck-wrapper {
|
|
89
|
+
position: fixed;
|
|
90
|
+
inset: auto 16px 16px auto;
|
|
91
|
+
width: min(420px, calc(100vw - 32px));
|
|
92
|
+
height: min(720px, calc(100vh - 32px));
|
|
93
|
+
max-height: calc(100vh - 32px);
|
|
94
|
+
overflow: visible;
|
|
95
|
+
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
96
|
+
border-radius: 18px;
|
|
97
|
+
background: Canvas;
|
|
98
|
+
box-shadow:
|
|
99
|
+
0 24px 80px rgba(15, 23, 42, 0.22),
|
|
100
|
+
0 0 0 1px rgba(15, 23, 42, 0.04);
|
|
101
|
+
opacity: 0;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
transform: translateY(12px) scale(0.98);
|
|
104
|
+
transition:
|
|
105
|
+
opacity 160ms ease,
|
|
106
|
+
transform 160ms ease;
|
|
107
|
+
z-index: 39;
|
|
108
|
+
}
|
|
109
|
+
:host([data-display-mode="pet"][data-chat-open="true"]) .ck-wrapper {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
pointer-events: auto;
|
|
112
|
+
transform: translateY(0) scale(1);
|
|
113
|
+
}
|
|
114
|
+
:host([data-display-mode="pet"]) .ck-iframe {
|
|
115
|
+
border-radius: inherit;
|
|
116
|
+
}
|
|
117
|
+
:host([data-display-mode="pet"]) .ck-launcher-close {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
position: absolute;
|
|
120
|
+
top: -10px;
|
|
121
|
+
right: -10px;
|
|
122
|
+
z-index: 2;
|
|
123
|
+
width: 28px;
|
|
124
|
+
height: 28px;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
border: 1px solid rgba(148, 163, 184, 0.45);
|
|
128
|
+
border-radius: 999px;
|
|
129
|
+
background: rgba(255, 255, 255, 0.96);
|
|
130
|
+
color: #475569;
|
|
131
|
+
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
font: inherit;
|
|
134
|
+
font-size: 0;
|
|
135
|
+
line-height: 1;
|
|
136
|
+
}
|
|
137
|
+
:host([data-display-mode="pet"]) .ck-launcher-close::before,
|
|
138
|
+
:host([data-display-mode="pet"]) .ck-launcher-close::after {
|
|
139
|
+
content: '';
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: 50%;
|
|
142
|
+
left: 50%;
|
|
143
|
+
width: 14px;
|
|
144
|
+
height: 2px;
|
|
145
|
+
border-radius: 999px;
|
|
146
|
+
background: currentColor;
|
|
147
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
148
|
+
}
|
|
149
|
+
:host([data-display-mode="pet"]) .ck-launcher-close::after {
|
|
150
|
+
transform: translate(-50%, -50%) rotate(-45deg);
|
|
151
|
+
}
|
|
152
|
+
:host([data-display-mode="pet"]) .ck-launcher-close:hover {
|
|
153
|
+
background: #fff;
|
|
154
|
+
color: #0f172a;
|
|
155
|
+
}
|
|
156
|
+
:host([data-color-scheme="dark"]) .ck-iframe {
|
|
157
|
+
color-scheme: dark only;
|
|
158
|
+
}
|
|
159
|
+
:host([data-color-scheme="dark"][data-display-mode="pet"]) .ck-wrapper {
|
|
160
|
+
border-color: rgba(148, 163, 184, 0.28);
|
|
161
|
+
background: #020617;
|
|
162
|
+
box-shadow:
|
|
163
|
+
0 24px 80px rgba(0, 0, 0, 0.5),
|
|
164
|
+
0 0 0 1px rgba(255, 255, 255, 0.06);
|
|
165
|
+
}
|
|
166
|
+
:host([data-color-scheme="dark"][data-display-mode="pet"]) .ck-launcher-close {
|
|
167
|
+
background: rgba(15, 23, 42, 0.88);
|
|
168
|
+
border-color: rgba(148, 163, 184, 0.32);
|
|
169
|
+
color: #cbd5e1;
|
|
170
|
+
}
|
|
171
|
+
:host([data-color-scheme="dark"][data-display-mode="pet"]) .ck-launcher-close:hover {
|
|
172
|
+
background: #1e293b;
|
|
173
|
+
color: #f8fafc;
|
|
174
|
+
}
|
|
175
|
+
:host([data-loaded="true"]) .ck-wrapper {
|
|
176
|
+
opacity: 1;
|
|
177
|
+
}
|
|
178
|
+
:host([data-chat-minimized-to-pet="true"]) .ck-wrapper {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
pointer-events: none;
|
|
181
|
+
visibility: hidden;
|
|
182
|
+
}
|
|
183
|
+
:host([data-display-mode="pet"]:not([data-chat-open="true"])) .ck-wrapper {
|
|
184
|
+
opacity: 0;
|
|
185
|
+
}
|
|
186
|
+
@media (max-width: 520px) {
|
|
187
|
+
:host([data-display-mode="pet"]) .ck-wrapper {
|
|
188
|
+
inset: auto 8px 8px 8px;
|
|
189
|
+
width: auto;
|
|
190
|
+
height: min(680px, calc(100vh - 16px));
|
|
191
|
+
max-height: calc(100vh - 16px);
|
|
192
|
+
border-radius: 16px;
|
|
193
|
+
}
|
|
194
|
+
:host([data-display-mode="pet"]) .ck-launcher-close {
|
|
195
|
+
top: -8px;
|
|
196
|
+
right: 8px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
`;const c=document.createElement("iframe");c.className="ck-iframe",c.name="chatkit",c.role="presentation",c.tabIndex=0,c.setAttribute("allowtransparency","true"),c.setAttribute("frameborder","0"),c.setAttribute("scrolling","no"),c.setAttribute("allow","clipboard-read; clipboard-write"),$t(this,gl,c);const s=document.createElement("div");s.className="ck-wrapper",s.appendChild(c),$t(this,pl,s);const h=document.createElement("button");h.className="ck-launcher-close",h.type="button",h.setAttribute("aria-label","Close chat"),h.addEventListener("click",w(this,Lu)),s.appendChild(h),$t(this,Hu,h),w(this,We).append(u),w(this,yt).on("left_header_icon_click",()=>{var d,y,v;(v=(y=(d=w(this,gt))==null?void 0:d.header)==null?void 0:y.leftAction)==null||v.onClick()}),w(this,yt).on("right_header_icon_click",()=>{var d,y,v;(v=(y=(d=w(this,gt))==null?void 0:d.header)==null?void 0:y.rightAction)==null||v.onClick()}),w(this,yt).on("public_event",([d,y])=>{if(d==="log"){const v=N0(y);v&&w(this,Ne).setThreadSummary(v.summary)}else d==="response.start"?w(this,Ne).setThreadSummaryStatus("running"):d==="response.end"?w(this,Ne).setThreadSummaryStatus("completed"):d==="response.stop"&&w(this,Ne).setThreadSummaryStatus("completed");if(this.capabilities.events.has(d)){if(d==="error"&&"error"in y){const v=i0(y.error);if(this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:v}})),v instanceof Ee)throw v;return}this.dispatchEvent(new CustomEvent(`chatkit.${d}`,{detail:y}))}}),w(this,yt).on("pet_state_change",d=>{const y=D0(d);y&&w(this,Ne).setState(y.state)}),w(this,yt).on("pet_options_change",d=>{const y=w0(d);y&&((!w(this,yn)||y.pet===null)&&$t(this,yn,!1),$t(this,ua,y.pet),G(this,j,Df).call(this))}),w(this,yt).on("chat_minimize_change",d=>{const y=typeof d=="object"&&d!==null&&"minimized"in d&&d.minimized===!0;y&&!G(this,j,Zu).call(this)||(G(this,j,ci).call(this,y),y&&G(this,j,Jl).call(this,!1))}),w(this,yt).on("unmount",()=>{w(this,pl)&&w(this,We).contains(w(this,pl))&&(w(this,We).removeChild(w(this,pl)),$t(this,pl,void 0),$t(this,gl,void 0))}),w(this,yt).on("capabilities_profile_change",({profile:d})=>{this.setProfile(d)}),c.addEventListener("load",w(this,Yu),{once:!0});try{G(this,j,wf).call(this)}catch(d){console.error(d),G(this,j,Zl).call(this,d instanceof Error?d:new Ee("Failed to initialize ChatKit"))}}disconnectedCallback(){var u,c;(u=w(this,gl))==null||u.removeEventListener("load",w(this,Yu)),(c=w(this,Hu))==null||c.removeEventListener("click",w(this,Lu)),w(this,yt).disconnect(),w(this,Ne).destroy()}applySanitizedOptions(u){$t(this,gt,u),$t(this,yn,!1),w(this,Ne).setLocale(u.locale),G(this,j,Df).call(this),w(this,sa)?(G(this,j,Bf).call(this,w(this,gt)),w(this,Jt).then(()=>{w(this,yt).commands.setOptions(km(G(this,j,Lf).call(this,u)))})):G(this,j,wf).call(this)}setOptions(u){try{const c=this.sanitizeOptions(u);G(this,j,Jm).call(this,c),this.applySanitizedOptions(c)}catch(c){G(this,j,Zl).call(this,c instanceof Error?c:new Ee("Failed to parse options"))}}async focusComposer(){var u,c;await w(this,Jt),(u=w(this,gl))==null||u.focus(),await((c=w(this,yt))==null?void 0:c.commands.focusComposer())}async fetchUpdates(){var u;await w(this,Jt),await((u=w(this,yt))==null?void 0:u.commands.fetchUpdates())}async sendUserMessage(u){var c;await w(this,Jt),await((c=w(this,yt))==null?void 0:c.commands.sendUserMessage(u))}async setComposerValue(u){var c;await w(this,Jt),await((c=w(this,yt))==null?void 0:c.commands.setComposerValue(u))}async setRuntimeCapabilities(u){var c;await w(this,Jt),await((c=w(this,yt))==null?void 0:c.commands.setRuntimeCapabilities(u))}async setThreadId(u){var c;await w(this,Jt),await((c=w(this,yt))==null?void 0:c.commands.setThreadId({threadId:u}))}async shareThread(){var u;return await w(this,Jt),(u=w(this,yt))==null?void 0:u.commands.shareThread()}async sendCustomAction(u,c){var s;return await w(this,Jt),(s=w(this,yt))==null?void 0:s.commands.sendCustomAction({action:u,itemId:c})}async showHistory(){var u;return await w(this,Jt),(u=w(this,yt))==null?void 0:u.commands.showHistory()}async hideHistory(){var u;return await w(this,Jt),(u=w(this,yt))==null?void 0:u.commands.hideHistory()}async setTrainingOptOut(u){var c;return await w(this,Jt),(c=w(this,yt))==null?void 0:c.commands.setTrainingOptOut({value:u})}}oe=q0(Cf);gt=new WeakMap;Kl=new WeakMap;gl=new WeakMap;pl=new WeakMap;Hu=new WeakMap;Hf=new WeakMap;Gu=new WeakMap;ua=new WeakMap;yn=new WeakMap;We=new WeakMap;Ne=new WeakMap;Bu=new WeakMap;Jt=new WeakMap;yt=new WeakMap;j=new WeakSet;Zl=function(f){throw this.dispatchEvent(new CustomEvent("chatkit.error",{detail:{error:f}})),f};Bf=function(f){var u;this.dataset.colorScheme=typeof f.theme=="string"?f.theme:((u=f.theme)==null?void 0:u.colorScheme)??"light",this.dataset.displayMode=G(this,j,vl).call(this,f),G(this,j,vl).call(this,f)!=="pet"&&G(this,j,Jl).call(this,!1)};vl=function(f=w(this,gt)){return(f==null?void 0:f.displayMode)==="pet"?"pet":"chat"};Qu=function(f=w(this,gt)){return f?G(this,j,vl).call(this,f)==="pet"&&!si(f.pet??null)?!0:f.pet??null:null};Ym=function(f){if(!f)return f;const u=si(G(this,j,Qu).call(this)??null);return u?f===!0?{position:u.position}:f.position?{...f,position:{...u.position,...f.position,boundsPadding:f.position.boundsPadding??u.position.boundsPadding,pin:"pin"in f.position?f.position.pin:u.position.pin}}:{...f,position:u.position}:f};Zu=function(){if(w(this,yn))return null;let f;return w(this,ua)!==void 0?f=G(this,j,Ym).call(this,w(this,ua)):f=G(this,j,Qu).call(this),G(this,j,vl).call(this)==="pet"&&!si(f??null)&&(f=!0),G(this,j,jm).call(this,f)};qm=function(f){try{const u=new URL(w(this,Kl)??window.location.href,window.location.origin);return new URL(f,u).toString()}catch{return f}};jm=function(f){const u=si(f??null);return u?{character:{...u.character,src:G(this,j,qm).call(this,u.character.src)},position:u.position,behavior:u.behavior,ariaLabel:u.ariaLabel,imageRendering:u.imageRendering}:null};Lf=function(f){const u=G(this,j,Qu).call(this,f);if(u===(f.pet??null))return f;const c={...f};return u===null?delete c.pet:c.pet=u,c};Jl=function(f){$t(this,Hf,f),f?this.dataset.chatOpen="true":delete this.dataset.chatOpen};ci=function(f){const u=f&&!!G(this,j,Zu).call(this);$t(this,Gu,u),u?this.dataset.chatMinimizedToPet="true":delete this.dataset.chatMinimizedToPet};Df=function(){var u;const f=G(this,j,Zu).call(this);w(this,Ne).setOptions(f,(u=w(this,gt))==null?void 0:u.theme),f||G(this,j,ci).call(this,!1)};Xm=function(){if(w(this,Gu)){G(this,j,ci).call(this,!1),G(this,j,vl).call(this)==="pet"&&G(this,j,Jl).call(this,!0),w(this,Jt).then(()=>this.focusComposer()).catch(()=>{});return}G(this,j,vl).call(this)==="pet"&&(G(this,j,Jl).call(this,!0),w(this,Jt).then(()=>this.focusComposer()).catch(()=>{}))};Gm=function(){$t(this,yn,!0),$t(this,ua,null),G(this,j,ci).call(this,!1),G(this,j,Jl).call(this,!1),w(this,Ne).setOptions(null),G(this,j,vl).call(this)!=="pet"&&w(this,Jt).then(()=>w(this,yt).commands.setPetEnabled({enabled:!1})).catch(()=>{})};Qm=async function(f){await this.sendUserMessage({text:f})};Zm=async function(f){G(this,j,vl).call(this)==="pet"&&G(this,j,Jl).call(this,!0),await this.setThreadId(f),await this.focusComposer()};Lu=new WeakMap;Vm=function(){if(!w(this,Kl))throw new Ee("ChatKit frameUrl is not configured. Provide it via setOptions({ frameUrl }) before mounting.");return w(this,Kl)};Km=function(f){if(w(this,sa)&&w(this,Kl)&&w(this,Kl)!==f)throw new Ee("ChatKit frameUrl cannot be changed after initialization. Create a new element to use a different URL.");$t(this,Kl,f)};Jm=function(f){if(!("frameUrl"in f))return;const u=f.frameUrl;if(delete f.frameUrl,u!=null){if(typeof u!="string"||u.trim()==="")throw new Ee("ChatKit frameUrl must be a non-empty string.");G(this,j,Km).call(this,u)}};Yu=new WeakMap;sa=new WeakMap;wf=function(){if(w(this,sa)||!w(this,gl)||!w(this,gt))return;$t(this,sa,!0),G(this,j,Bf).call(this,w(this,gt));const f=new URL(G(this,j,Vm).call(this),window.location.origin);w(this,yt).setTargetOrigin(f.origin),f.hash=a0({options:km(G(this,j,Lf).call(this,w(this,gt))),referrer:window.location.origin,profile:this.profile}),w(this,yt).connect(),w(this,gl).src=f.toString(),w(this,pl)&&w(this,We).append(w(this,pl))};Xe(oe,1,"focusComposer",Lm,Te);Xe(oe,1,"fetchUpdates",Bm,Te);Xe(oe,1,"sendUserMessage",Hm,Te);Xe(oe,1,"setComposerValue",Nm,Te);Xe(oe,1,"setRuntimeCapabilities",Um,Te);Xe(oe,1,"setThreadId",Rm,Te);Xe(oe,1,"shareThread",wm,Te);Xe(oe,1,"sendCustomAction",Dm,Te);Xe(oe,1,"showHistory",Cm,Te);Xe(oe,1,"hideHistory",xm,Te);Xe(oe,1,"setTrainingOptOut",zm,Te);X0(oe,Te);class Q0 extends Te{constructor(){super({profile:"chatkit"})}sanitizeOptions(u){var c;return(c=u.threadItemActions)==null||delete c.share,u}}function Z0(f="xpertai-chatkit"){"customElements"in globalThis&&(customElements.get(f)||customElements.define(f,Q0))}Z0();const Wm={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.ready":"onReady","chatkit.effect":"onEffect"},V0=Object.keys(Wm),K0=Ht.forwardRef(function({control:u,...c},s){const h=Ht.useRef(null);return Ht.useLayoutEffect(()=>{const d=h.current;if(!d)return;if(customElements.get("xpertai-chatkit")){d.setOptions(u.options);return}let y=!0;return customElements.whenDefined("xpertai-chatkit").then(()=>{y&&d.setOptions(u.options)}),()=>{y=!1}},[u.options]),Ht.useEffect(()=>{const d=h.current;if(!d)return;const y=new AbortController;for(const v of V0)d.addEventListener(v,E=>{const S=Wm[v],N=u.handlers[S];typeof N=="function"&&N(E.detail)},{signal:y.signal});return()=>{y.abort()}},[u.handlers]),Pt.jsx("xpertai-chatkit",{ref:d=>{h.current=d,u.setInstance(d),typeof s=="function"?s(d):s&&(s.current=d),h.current},...c})}),J0=["office_powerpoint_snapshot","office_powerpoint_select_slide","office_powerpoint_add_slide","office_powerpoint_delete_slide","office_powerpoint_add_text_box","office_powerpoint_add_shape","office_powerpoint_update_shape","office_powerpoint_delete_shape","office_powerpoint_insert_image"],k0=new Set(J0);function W0(f){return k0.has(f)}const $0=80;function $e(f){return typeof f=="string"&&f.trim()?f.trim():void 0}function dm(f,u){const c=$e(f);if(!c)throw new Error(`${u} must be a non-empty string.`);return c}function je(f){return typeof f=="number"&&Number.isFinite(f)?f:void 0}function wu(f,u){const c=je(f);if(c===void 0)throw new Error(`${u} must be a finite number.`);return c}function Vu(f){if(!(typeof f!="number"||!Number.isInteger(f)||f<=0))return f}function mm(f,u){const c=Vu(f);if(c===void 0)throw new Error(`${u} must be a positive integer.`);return c}function ym(f,u){if(f!==!0)throw new Error(`${u} requires confirm: true.`)}function F0(f){return f-1}function Ru(f,u){return Vu(f.slideIndex)??u??1}function Ef(f){return{left:je(f.left),top:je(f.top),width:je(f.width),height:je(f.height)}}function Tf(f){return{fillColor:$e(f.fillColor),lineColor:$e(f.lineColor),text:$e(f.text),name:$e(f.name)}}function gm(f){return{slideIndex:Vu(f.slideIndex),shapeId:$e(f.shapeId),shapeName:$e(f.shapeName)}}function pm(f){return Object.fromEntries(Object.entries(f).filter(u=>u[1]!==void 0))}function I0(f,u){u.left!==void 0&&(f.left=u.left),u.top!==void 0&&(f.top=u.top),u.width!==void 0&&(f.width=u.width),u.height!==void 0&&(f.height=u.height)}function _f(f,u){var s,h;const c=f;u.name&&(f.name=u.name),u.fillColor&&((h=(s=c.fill)==null?void 0:s.setSolidColor)==null||h.call(s,u.fillColor)),u.lineColor&&c.lineFormat&&(c.lineFormat.color=u.lineColor),u.text!==void 0&&(f.textFrame.textRange.text=u.text)}function Uu(f){return{id:f.id,name:f.name,type:f.type,left:f.left,top:f.top,width:f.width,height:f.height}}function Nu(f){f.load("id,name,type,left,top,width,height")}async function na(){var f,u;return(u=(f=globalThis.Office)==null?void 0:f.context)!=null&&u.document?new Promise(c=>{Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange,s=>{if(s.status!==Office.AsyncResultStatus.Succeeded){c([]);return}const h=s.value;c(Array.isArray(h.slides)?h.slides:[])})}):[]}async function vm(f){var u,c;if(!((c=(u=globalThis.Office)==null?void 0:u.context)!=null&&c.document))throw new Error("Office.context.document is unavailable.");await new Promise((s,h)=>{Office.context.document.goToByIdAsync(f,Office.GoToType.Index,{selectionMode:Office.SelectionMode.None},d=>{var y;d.status===Office.AsyncResultStatus.Succeeded?s():h(new Error(((y=d.error)==null?void 0:y.message)||"Failed to select slide."))})})}async function P0(f,u){var c,s;if(!((s=(c=globalThis.Office)==null?void 0:c.context)!=null&&s.document))throw new Error("Office.context.document is unavailable.");await new Promise((h,d)=>{Office.context.document.setSelectedDataAsync(f,u,y=>{var v;y.status===Office.AsyncResultStatus.Succeeded?h():d(new Error(((v=y.error)==null?void 0:v.message)||"Failed to insert image."))})})}function tv(f){const u=";base64,",c=f.indexOf(u);return c===-1?f:f.slice(c+u.length)}function ev(){var f,u,c,s;return{host:(u=(f=globalThis.Office)==null?void 0:f.context)==null?void 0:u.host,platform:(s=(c=globalThis.Office)==null?void 0:c.context)==null?void 0:s.platform}}function lv(){var u,c;const f=(c=(u=globalThis.Office)==null?void 0:u.context)==null?void 0:c.requirements;return{powerpointApi:{"1.1":!!(f!=null&&f.isSetSupported("PowerPointApi","1.1")),"1.3":!!(f!=null&&f.isSetSupported("PowerPointApi","1.3")),"1.4":!!(f!=null&&f.isSetSupported("PowerPointApi","1.4")),"1.6":!!(f!=null&&f.isSetSupported("PowerPointApi","1.6"))},imageCoercion:{"1.1":!!(f!=null&&f.isSetSupported("ImageCoercion","1.1"))}}}function Rf(f){return f.presentation.slides}async function ii(f,u){return Rf(f).getItemAt(F0(u))}async function Sm(f,u){const c=await ii(f,u.slideIndex??1);if(u.shapeId)return c.shapes.getItem(u.shapeId);const s=u.shapeName;if(!s)throw new Error("shapeId or shapeName is required.");const h=c.shapes;h.load("items/id,items/name"),await f.sync();const d=h.items.find(y=>y.name===s);if(!d)throw new Error(`Shape not found: ${s}`);return h.getItem(d.id)}var ui;class nv{constructor(u={}){rf(this,ui);this.host="PowerPoint",hf(this,ui,u.maxSnapshotShapes??$0)}supports(u){return W0(u)}async execute(u,c){switch(u){case"office_powerpoint_snapshot":return this.snapshot(c);case"office_powerpoint_select_slide":return this.selectSlide(c);case"office_powerpoint_add_slide":return this.addSlide(c);case"office_powerpoint_delete_slide":return this.deleteSlide(c);case"office_powerpoint_add_text_box":return this.addTextBox(c);case"office_powerpoint_add_shape":return this.addShape(c);case"office_powerpoint_update_shape":return this.updateShape(c);case"office_powerpoint_delete_shape":return this.deleteShape(c);case"office_powerpoint_insert_image":return this.insertImage(c)}}async snapshot(u){var y;const c=await na(),s=(y=c[0])==null?void 0:y.index,h=Ru(u,s),d=Vu(u.maxShapes)??zu(this,ui);return PowerPoint.run(async v=>{const E=Rf(v);E.load("items/id");const S=await ii(v,h);S.load("id"),S.shapes.load("items"),await v.sync();const N=S.shapes.items.slice(0,d);return N.forEach(Nu),await v.sync(),{host:ev(),requirements:lv(),slideCount:E.items.length,selectedSlides:c,slide:{index:h,id:S.id,shapeCount:S.shapes.items.length,shapes:N.map(Uu),truncated:S.shapes.items.length>N.length}}})}async selectSlide(u){const c=mm(u.slideIndex,"slideIndex");return await vm(c),{slideIndex:c}}async addSlide(u){const c=$e(u.slideMasterId),s=$e(u.layoutId),h={...c?{slideMasterId:c}:{},...s?{layoutId:s}:{}};return PowerPoint.run(async d=>{const y=Rf(d);return Object.keys(h).length?y.add(h):y.add(),y.load("items/id"),await d.sync(),{slideIndex:y.items.length,slideCount:y.items.length}})}async deleteSlide(u){ym(u.confirm,"Deleting a slide");const c=mm(u.slideIndex,"slideIndex");return PowerPoint.run(async s=>((await ii(s,c)).delete(),await s.sync(),{slideIndex:c,deleted:!0}))}async addTextBox(u){var v;const c=await na(),s=Ru(u,(v=c[0])==null?void 0:v.index),h=dm(u.text,"text"),d=Ef(u),y=Tf(u);return PowerPoint.run(async E=>{const N=(await ii(E,s)).shapes.addTextBox(h,pm(d));return _f(N,y),Nu(N),await E.sync(),{slideIndex:s,shape:Uu(N)}})}async addShape(u){var v;const c=await na(),s=Ru(u,(v=c[0])==null?void 0:v.index),h=$e(u.shapeType)??"Rectangle",d=Ef(u),y=Tf(u);return PowerPoint.run(async E=>{const N=(await ii(E,s)).shapes.addGeometricShape(h,pm(d));return _f(N,y),Nu(N),await E.sync(),{slideIndex:s,shape:Uu(N)}})}async updateShape(u){var y;const c=gm(u),s=await na();c.slideIndex=c.slideIndex??((y=s[0])==null?void 0:y.index)??1;const h=Ef(u),d=Tf(u);return PowerPoint.run(async v=>{const E=await Sm(v,c);return I0(E,h),_f(E,d),Nu(E),await v.sync(),{slideIndex:c.slideIndex,shape:Uu(E)}})}async deleteShape(u){var h;ym(u.confirm,"Deleting a shape");const c=gm(u),s=await na();return c.slideIndex=c.slideIndex??((h=s[0])==null?void 0:h.index)??1,PowerPoint.run(async d=>((await Sm(d,c)).delete(),await d.sync(),{slideIndex:c.slideIndex,shapeId:c.shapeId,shapeName:c.shapeName,deleted:!0}))}async insertImage(u){var y;const c=await na(),s=Ru(u,(y=c[0])==null?void 0:y.index),h=tv(dm(u.base64??u.dataUrl,"base64"));await vm(s);const d={coercionType:Office.CoercionType.Image,...je(u.left)!==void 0?{imageLeft:wu(u.left,"left")}:{},...je(u.top)!==void 0?{imageTop:wu(u.top,"top")}:{},...je(u.width)!==void 0?{imageWidth:wu(u.width,"width")}:{},...je(u.height)!==void 0?{imageHeight:wu(u.height,"height")}:{}};return await P0(h,d),{slideIndex:s,inserted:!0,width:je(u.width),height:je(u.height)}}}ui=new WeakMap;function $m(f={}){return new nv(f)}var aa;class av{constructor(u){rf(this,aa);hf(this,aa,u)}supports(u){return zu(this,aa).some(c=>c.supports(u))}async execute(u,c){const s=zu(this,aa).find(h=>h.supports(u));if(!s)throw new Error(`Unknown Office tool: ${u}`);return s.execute(u,c)}}aa=new WeakMap;function iv(f){return new av(f)}function uv(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)?f:{}}function Af(f,u,c){return{tool_call_id:f.tool_call_id??f.id,name:f.name,status:u,content:JSON.stringify(c)}}function sv(f){return f instanceof Error?f.message:String(f)}function cv(f={}){const u=f.registry??iv([f.adapter??$m()]);return async c=>{if(!u.supports(c.name))return Af(c,"error",{ok:!1,error:`Unknown Office tool: ${c.name}`});try{const s=await u.execute(c.name,uv(c.params));return Af(c,"success",{ok:!0,result:s})}catch(s){return Af(c,"error",{ok:!1,error:sv(s)})}}}const fv="/api/create-session";async function Fm(f){const u=await fetch(fv,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(f?{currentClientSecret:f}:{})}),c=await u.json().catch(()=>({}));if(!u.ok)throw new Error(c.error||`HTTP ${u.status}`);if(!c.client_secret||!c.apiUrl||!c.frameUrl||!c.xpertId)throw new Error("ChatKit session response is missing required fields.");return c}async function ov(){var u;if(!((u=globalThis.Office)!=null&&u.onReady))return{isOfficeHost:!1};const f=await Office.onReady();return{host:f.host,platform:f.platform,isOfficeHost:!0}}function Im(f){return f instanceof Error?f.message:String(f)}function rv(){return navigator.language.toLowerCase().startsWith("zh")?"zh-Hans":"en"}function hv({initialSession:f}){const[u,c]=Ht.useState(f),[s,h]=Ht.useState(null),d=Ht.useMemo(()=>cv({adapter:$m()}),[]),y=Ht.useMemo(()=>({frameUrl:u.frameUrl,locale:rv(),api:{apiUrl:u.apiUrl,xpertId:u.xpertId,getClientSecret:async E=>{const S=E?await Fm(E):u;return c(S),S.organizationId?{secret:S.client_secret,organizationId:S.organizationId}:S.client_secret}},theme:{colorScheme:"light",radius:"round",density:"compact",typography:{baseSize:14,fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'},color:{accent:{primary:"#0f766e",level:1}}},composer:{placeholder:"Ask XpertAI to edit this presentation...",attachments:{enabled:!0}},startScreen:{greeting:"PowerPoint Copilot is ready.",prompts:[{icon:"sparkle",label:"Draft an outline",prompt:"Create a 5-slide outline for this presentation."},{icon:"square-text",label:"Add a slide",prompt:"Add a concise summary slide after the current slide."}]},header:{enabled:!0,title:{enabled:!0,text:"XpertAI PowerPoint Copilot"}},onClientTool:async E=>{h(null);const S=await d(E);return S.status==="error"&&h(typeof S.content=="string"?S.content:"Office tool failed."),S},onError:E=>{h(Im(E))}}),[d,u]),v=qp(y);return Pt.jsxs("main",{className:"taskpane",children:[s?Pt.jsx("div",{className:"status-banner error",children:s}):null,Pt.jsx(K0,{control:v.control,className:"chatkit-shell"})]})}function dv(){const[f,u]=Ht.useState(null),[c,s]=Ht.useState(null),[h,d]=Ht.useState(null);return Ht.useEffect(()=>{let y=!1;async function v(){try{const[E,S]=await Promise.all([ov(),Fm()]);y||(u(E),s(S))}catch(E){y||d(Im(E))}}return v(),()=>{y=!0}},[]),h?Pt.jsx("main",{className:"taskpane centered",children:Pt.jsxs("div",{className:"status-card",children:[Pt.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),Pt.jsx("p",{children:h})]})}):!f||!c?Pt.jsx("main",{className:"taskpane centered",children:Pt.jsxs("div",{className:"status-card",children:[Pt.jsx("h1",{children:"XpertAI PowerPoint Copilot"}),Pt.jsx("p",{children:"Connecting..."})]})}):Pt.jsx(hv,{initialSession:c})}const Pm=document.getElementById("root");if(!Pm)throw new Error("Missing #root element.");Hp.createRoot(Pm).render(Pt.jsx(Ht.StrictMode,{children:Pt.jsx(dv,{})}));
|