semantic-golfer 0.0.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +48 -0
- package/dist/assets/index-BpGPtiwR.css +1 -0
- package/dist/assets/index-chSqUrSa.js +9 -0
- package/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/icon.png +0 -0
- package/dist/icon.svg +48 -0
- package/dist/index.html +15 -0
- package/dist/licenses/Inter-OFL.txt +93 -0
- package/dist/licenses/icons/LICENSE +202 -0
- package/dist/licenses/icons/LICENSE-MIT +21 -0
- package/dist/licenses/icons/LICENSES.md +13 -0
- package/dist-cli/index.js +97 -0
- package/dist-cli/prepareUpdate.js +90 -0
- package/dist-electron/index.js +2072 -0
- package/dist-electron/preload.mjs +1 -0
- package/package.json +45 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function s(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(h){if(h.ep)return;h.ep=!0;const m=s(h);fetch(h.href,m)}})();function d1(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var er={exports:{}},Ni={};var Xm;function Ny(){if(Xm)return Ni;Xm=1;var c=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(o,h,m){var p=null;if(m!==void 0&&(p=""+m),h.key!==void 0&&(p=""+h.key),"key"in h){m={};for(var v in h)v!=="key"&&(m[v]=h[v])}else m=h;return h=m.ref,{$$typeof:c,type:o,key:p,ref:h!==void 0?h:null,props:m}}return Ni.Fragment=n,Ni.jsx=s,Ni.jsxs=s,Ni}var Zm;function Ey(){return Zm||(Zm=1,er.exports=Ny()),er.exports}var f=Ey(),tr={exports:{}},he={};var km;function jy(){if(km)return he;km=1;var c=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),M=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),N=Symbol.for("react.view_transition"),D=Symbol.iterator;function q(T){return T===null||typeof T!="object"?null:(T=D&&T[D]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,G={};function Z(T,Y,le){this.props=T,this.context=Y,this.refs=G,this.updater=le||C}Z.prototype.isReactComponent={},Z.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},Z.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function ne(){}ne.prototype=Z.prototype;function F(T,Y,le){this.props=T,this.context=Y,this.refs=G,this.updater=le||C}var Q=F.prototype=new ne;Q.constructor=F,U(Q,Z.prototype),Q.isPureReactComponent=!0;var H=Array.isArray;function B(){}var L={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function ie(T,Y,le){var ae=le.ref;return{$$typeof:c,type:T,key:Y,ref:ae!==void 0?ae:null,props:le}}function k(T,Y){return ie(T.type,Y,T.props)}function V(T){return typeof T=="object"&&T!==null&&T.$$typeof===c}function P(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(le){return Y[le]})}var J=/\/+/g;function ce(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?P(""+T.key):Y.toString(36)}function X(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(B,B):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function $(T,Y,le,ae,be){var ge=typeof T;(ge==="undefined"||ge==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(ge){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case c:case n:Se=!0;break;case b:return Se=T._init,$(Se(T._payload),Y,le,ae,be)}}if(Se)return be=be(T),Se=ae===""?"."+ce(T,0):ae,H(be)?(le="",Se!=null&&(le=Se.replace(J,"$&/")+"/"),$(be,Y,le,"",function(Nt){return Nt})):be!=null&&(V(be)&&(be=k(be,le+(be.key==null||T&&T.key===be.key?"":(""+be.key).replace(J,"$&/")+"/")+Se)),Y.push(be)),1;Se=0;var ee=ae===""?".":ae+":";if(H(T))for(var oe=0;oe<T.length;oe++)ae=T[oe],ge=ee+ce(ae,oe),Se+=$(ae,Y,le,ge,be);else if(oe=q(T),typeof oe=="function")for(T=oe.call(T),oe=0;!(ae=T.next()).done;)ae=ae.value,ge=ee+ce(ae,oe++),Se+=$(ae,Y,le,ge,be);else if(ge==="object"){if(typeof T.then=="function")return $(X(T),Y,le,ae,be);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Se}function W(T,Y,le){if(T==null)return T;var ae=[],be=0;return $(T,ae,"","",function(ge){return Y.call(le,ge,be++)}),ae}function pe(T){if(T._status===-1){var Y=T._result,le=Y();le.then(function(ae){(T._status===0||T._status===-1)&&(T._status=1,T._result=ae,le.status===void 0&&(le.status="fulfilled",le.value=ae))},function(ae){(T._status===0||T._status===-1)&&(T._status=2,T._result=ae,le.status===void 0&&(le.status="rejected",le.reason=ae))}),T._status===-1&&(T._status=0,T._result=le)}if(T._status===1)return T._result.default;throw T._result}var me=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function Qe(T){var Y=L.T,le={};le.types=Y!==null?Y.types:null,L.T=le;try{var ae=T(),be=L.S;be!==null&&be(le,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(B,me)}catch(ge){me(ge)}finally{Y!==null&&le.types!==null&&(Y.types=le.types),L.T=Y}}function Ve(T){var Y=L.T;if(Y!==null){var le=Y.types;le===null?Y.types=[T]:le.indexOf(T)===-1&&le.push(T)}else Qe(Ve.bind(null,T))}var et={map:W,forEach:function(T,Y,le){W(T,function(){Y.apply(this,arguments)},le)},count:function(T){var Y=0;return W(T,function(){Y++}),Y},toArray:function(T){return W(T,function(Y){return Y})||[]},only:function(T){if(!V(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return he.Activity=g,he.Children=et,he.Component=Z,he.Fragment=s,he.Profiler=h,he.PureComponent=F,he.StrictMode=o,he.Suspense=_,he.ViewTransition=N,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,he.__COMPILER_RUNTIME={__proto__:null,c:function(T){return L.H.useMemoCache(T)}},he.addTransitionType=Ve,he.cache=function(T){return function(){return T.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(T,Y,le){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ae=U({},T.props),be=T.key;if(Y!=null)for(ge in Y.key!==void 0&&(be=""+Y.key),Y)!I.call(Y,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&Y.ref===void 0||(ae[ge]=Y[ge]);var ge=arguments.length-2;if(ge===1)ae.children=le;else if(1<ge){for(var Se=Array(ge),ee=0;ee<ge;ee++)Se[ee]=arguments[ee+2];ae.children=Se}return ie(T.type,be,ae)},he.createContext=function(T){return T={$$typeof:p,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},he.createElement=function(T,Y,le){var ae,be={},ge=null;if(Y!=null)for(ae in Y.key!==void 0&&(ge=""+Y.key),Y)I.call(Y,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(be[ae]=Y[ae]);var Se=arguments.length-2;if(Se===1)be.children=le;else if(1<Se){for(var ee=Array(Se),oe=0;oe<Se;oe++)ee[oe]=arguments[oe+2];be.children=ee}if(T&&T.defaultProps)for(ae in Se=T.defaultProps,Se)be[ae]===void 0&&(be[ae]=Se[ae]);return ie(T,ge,be)},he.createRef=function(){return{current:null}},he.forwardRef=function(T){return{$$typeof:v,render:T}},he.isValidElement=V,he.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:pe}},he.memo=function(T,Y){return{$$typeof:M,type:T,compare:Y===void 0?null:Y}},he.startTransition=Qe,he.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},he.use=function(T){return L.H.use(T)},he.useActionState=function(T,Y,le){return L.H.useActionState(T,Y,le)},he.useCallback=function(T,Y){return L.H.useCallback(T,Y)},he.useContext=function(T){return L.H.useContext(T)},he.useDebugValue=function(){},he.useDeferredValue=function(T,Y){return L.H.useDeferredValue(T,Y)},he.useEffect=function(T,Y){return L.H.useEffect(T,Y)},he.useEffectEvent=function(T){return L.H.useEffectEvent(T)},he.useId=function(){return L.H.useId()},he.useImperativeHandle=function(T,Y,le){return L.H.useImperativeHandle(T,Y,le)},he.useInsertionEffect=function(T,Y){return L.H.useInsertionEffect(T,Y)},he.useLayoutEffect=function(T,Y){return L.H.useLayoutEffect(T,Y)},he.useMemo=function(T,Y){return L.H.useMemo(T,Y)},he.useOptimistic=function(T,Y){return L.H.useOptimistic(T,Y)},he.useReducer=function(T,Y,le){return L.H.useReducer(T,Y,le)},he.useRef=function(T){return L.H.useRef(T)},he.useState=function(T){return L.H.useState(T)},he.useSyncExternalStore=function(T,Y,le){return L.H.useSyncExternalStore(T,Y,le)},he.useTransition=function(){return L.H.useTransition()},he.version="19.3.0",he}var Km;function yc(){return Km||(Km=1,tr.exports=jy()),tr.exports}var ze=yc();const My=d1(ze);var lr={exports:{}},Ei={},ar={exports:{}},nr={};var Jm;function zy(){return Jm||(Jm=1,(function(c){function n(X,$){var W=X.length;X.push($);e:for(;0<W;){var pe=W-1>>>1,me=X[pe];if(0<h(me,$))X[pe]=$,X[W]=me,W=pe;else break e}}function s(X){return X.length===0?null:X[0]}function o(X){if(X.length===0)return null;var $=X[0],W=X.pop();if(W!==$){X[0]=W;e:for(var pe=0,me=X.length,Qe=me>>>1;pe<Qe;){var Ve=2*(pe+1)-1,et=X[Ve],T=Ve+1,Y=X[T];if(0>h(et,W))T<me&&0>h(Y,et)?(X[pe]=Y,X[T]=W,pe=T):(X[pe]=et,X[Ve]=W,pe=Ve);else if(T<me&&0>h(Y,W))X[pe]=Y,X[T]=W,pe=T;else break e}}return $}function h(X,$){var W=X.sortIndex-$.sortIndex;return W!==0?W:X.id-$.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;c.unstable_now=function(){return m.now()}}else{var p=Date,v=p.now();c.unstable_now=function(){return p.now()-v}}var _=[],M=[],b=1,g=null,N=3,D=!1,q=!1,C=!1,U=!1,G=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,ne=typeof setImmediate<"u"?setImmediate:null;function F(X){for(var $=s(M);$!==null;){if($.callback===null)o(M);else if($.startTime<=X)o(M),$.sortIndex=$.expirationTime,n(_,$);else break;$=s(M)}}function Q(X){if(C=!1,F(X),!q)if(s(_)!==null)q=!0,H||(H=!0,V());else{var $=s(M);$!==null&&ce(Q,$.startTime-X)}}var H=!1,B=-1,L=5,I=-1;function ie(){return U?!0:!(c.unstable_now()-I<L)}function k(){if(U=!1,H){var X=c.unstable_now();I=X;var $=!0;try{e:{q=!1,C&&(C=!1,Z(B),B=-1),D=!0;var W=N;try{t:{for(F(X),g=s(_);g!==null&&!(g.expirationTime>X&&ie());){var pe=g.callback;if(typeof pe=="function"){g.callback=null,N=g.priorityLevel;var me=pe(g.expirationTime<=X);if(X=c.unstable_now(),typeof me=="function"){g.callback=me,F(X),$=!0;break t}g===s(_)&&o(_),F(X)}else o(_);g=s(_)}if(g!==null)$=!0;else{var Qe=s(M);Qe!==null&&ce(Q,Qe.startTime-X),$=!1}}break e}finally{g=null,N=W,D=!1}$=void 0}}finally{$?V():H=!1}}}var V;if(typeof ne=="function")V=function(){ne(k)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,J=P.port2;P.port1.onmessage=k,V=function(){J.postMessage(null)}}else V=function(){G(k,0)};function ce(X,$){B=G(function(){X(c.unstable_now())},$)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(X){X.callback=null},c.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<X?Math.floor(1e3/X):5},c.unstable_getCurrentPriorityLevel=function(){return N},c.unstable_next=function(X){switch(N){case 1:case 2:case 3:var $=3;break;default:$=N}var W=N;N=$;try{return X()}finally{N=W}},c.unstable_requestPaint=function(){U=!0},c.unstable_runWithPriority=function(X,$){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var W=N;N=X;try{return $()}finally{N=W}},c.unstable_scheduleCallback=function(X,$,W){var pe=c.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pe+W:pe):W=pe,X){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=W+me,X={id:b++,callback:$,priorityLevel:X,startTime:W,expirationTime:me,sortIndex:-1},W>pe?(X.sortIndex=W,n(M,X),s(_)===null&&X===s(M)&&(C?(Z(B),B=-1):C=!0,ce(Q,W-pe))):(X.sortIndex=me,n(_,X),q||D||(q=!0,H||(H=!0,V()))),X},c.unstable_shouldYield=ie,c.unstable_wrapCallback=function(X){var $=N;return function(){var W=N;N=$;try{return X.apply(this,arguments)}finally{N=W}}}})(nr)),nr}var $m;function Dy(){return $m||($m=1,ar.exports=zy()),ar.exports}var ir={exports:{}},ht={};var Fm;function Cy(){if(Fm)return ht;Fm=1;var c=yc();function n(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)g+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(n(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},h=Symbol.for("react.portal"),m=Symbol.for("react.recoverable"),p=Symbol.for("react.optimistic_key");function v(b,g,N){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:D==null?null:D===p?p:""+D,children:b,containerInfo:g,implementation:N}}var _=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function M(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ht.browser=function(b){return{$$typeof:m,_reason:b}},ht.createPortal=function(b,g){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return v(b,g,null,N)},ht.flushSync=function(b){var g=_.T,N=o.p;try{if(_.T=null,o.p=2,b)return b()}finally{_.T=g,o.p=N,o.d.f()}},ht.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(b,g))},ht.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},ht.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var N=g.as,D=M(N,g.crossOrigin),q=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;N==="style"?o.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:D,integrity:q,fetchPriority:C}):N==="script"&&o.d.X(b,{crossOrigin:D,integrity:q,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ht.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var N=M(g.as,g.crossOrigin);o.d.M(b,{crossOrigin:N,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&o.d.M(b)},ht.preload=function(b,g){if(typeof b=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var N=g.as,D=M(N,g.crossOrigin);o.d.L(b,N,{crossOrigin:D,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ht.preloadModule=function(b,g){if(typeof b=="string")if(g){var N=M(g.as,g.crossOrigin);o.d.m(b,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:N,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else o.d.m(b)},ht.requestFormReset=function(b){o.d.r(b)},ht.unstable_batchedUpdates=function(b,g){return b(g)},ht.useFormState=function(b,g,N){return _.H.useFormState(b,g,N)},ht.useFormStatus=function(){return _.H.useHostTransitionStatus()},ht.version="19.3.0",ht}var Wm;function h1(){if(Wm)return ir.exports;Wm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(n){console.error(n)}}return c(),ir.exports=Cy(),ir.exports}var Im;function qy(){if(Im)return Ei;Im=1;var c=Dy(),n=yc(),s=h1();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _(e){if(m(e)!==e)throw Error(o(188))}function M(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var u=i.alternate;if(u===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===l)return _(i),e;if(u===a)return _(i),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=i,a=u;else{for(var r=!1,d=i.child;d;){if(d===l){r=!0,l=i,a=u;break}if(d===a){r=!0,a=i,l=u;break}d=d.sibling}if(!r){for(d=u.child;d;){if(d===l){r=!0,l=u,a=i;break}if(d===a){r=!0,a=u,l=i;break}d=d.sibling}if(!r)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}function g(e,t,l,a,i,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,a,i,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,l,a,i,u))return!0;e=e.sibling}return!1}function N(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function D(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function q(e){var t=[null,null],l=N(e);return l===null||C(t,e,l.child,{foundSelf:!1}),t}function C(e,t,l,a){for(;l!==null;){if(l===t)a.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(a.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&C(e,t,l.child,a))return!0;l=l.sibling}return!1}function U(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var G=null,Z=null;function ne(e,t,l){return e===l?!0:e===t?(G=e,!0):!1}function F(e,t,l){return e===l?(Z=e,!1):e===t?(Z!==null&&(G=e),!0):!1}function Q(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function H(e,t,l){for(var a=0,i=e;i;i=l(i))a++;i=0;for(var u=t;u;u=l(u))i++;for(;0<a-i;)e=l(e),a--;for(;0<i-a;)t=l(t),i--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var B=Object.assign,L=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),ie=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),ce=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),Qe=Symbol.for("react.activity"),Ve=Symbol.for("react.legacy_hidden"),et=Symbol.for("react.memo_cache_sentinel"),T=Symbol.for("react.view_transition"),Y=Symbol.for("react.recoverable"),le=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var be=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case P:return"Profiler";case V:return"StrictMode";case $:return"Suspense";case W:return"SuspenseList";case Qe:return"Activity";case T:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ie:return"Portal";case ce:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pe:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case me:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var Se=Array.isArray,ee=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Nt={pending:!1,data:null,method:null,action:null},ll=[],$t=-1;function bt(e){return{current:e}}function Ze(e){0>$t||(e.current=ll[$t],ll[$t]=null,$t--)}function He(e,t){$t++,ll[$t]=e.current,e.current=t}var al=bt(null),Cn=bt(null),Cl=bt(null),Oi=bt(null);function Ri(e,t){switch(He(Cl,t),He(Cn,e),He(al,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ph(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ph(t),e=em(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ze(al),He(al,e)}function Ya(){Ze(al),Ze(Cn),Ze(Cl)}function bc(e){var t=e.memoizedState;t!==null&&(En._currentValue=t.memoizedState,He(Oi,e)),t=al.current;var l=em(t,e.type);t!==l&&(He(Cn,e),He(al,l))}function Ui(e){Cn.current===e&&(Ze(al),Ze(Cn)),Oi.current===e&&(Ze(Oi),En._currentValue=Nt)}var Sc,br;function ql(e){if(Sc===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Sc=t&&t[1]||"",br=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Sc+e+br}var Tc=!1;function _c(e,t){if(!e||Tc)return"";Tc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(K){var A=K}Reflect.construct(e,[],R)}else{try{R.call()}catch(K){A=K}R=!1;try{var j=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),R=!0,new e}finally{R&&(j!==void 0?Object.defineProperty(e.prototype,"props",j):delete e.prototype.props)}}}else{try{throw Error()}catch(K){A=K}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(K){if(K&&A&&typeof K.stack=="string")return[K.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),r=u[0],d=u[1];if(r&&d){var y=r.split(`
|
|
4
|
+
`),w=d.split(`
|
|
5
|
+
`);for(i=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;if(a===y.length||i===w.length)for(a=y.length-1,i=w.length-1;1<=a&&0<=i&&y[a]!==w[i];)i--;for(;1<=a&&0<=i;a--,i--)if(y[a]!==w[i]){if(a!==1||i!==1)do if(a--,i--,0>i||y[a]!==w[i]){var z=`
|
|
6
|
+
`+y[a].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=a&&0<=i);break}}}finally{Tc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ql(l):""}function z1(e,t){switch(e.tag){case 26:case 27:case 5:return ql(e.type);case 16:return ql("Lazy");case 13:return e.child!==t&&t!==null?ql("Suspense Fallback"):ql("Suspense");case 19:return ql("SuspenseList");case 0:case 15:return _c(e.type,!1);case 11:return _c(e.type.render,!1);case 1:return _c(e.type,!0);case 31:return ql("Activity");case 30:return ql("ViewTransition");default:return""}}function Sr(e){try{var t="",l=null;do t+=z1(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var Ac=Object.prototype.hasOwnProperty,xc=c.unstable_scheduleCallback,wc=c.unstable_cancelCallback,D1=c.unstable_shouldYield,C1=c.unstable_requestPaint,Et=c.unstable_now,q1=c.unstable_getCurrentPriorityLevel,Tr=c.unstable_ImmediatePriority,_r=c.unstable_UserBlockingPriority,Hi=c.unstable_NormalPriority,O1=c.unstable_LowPriority,Ar=c.unstable_IdlePriority,R1=c.log,U1=c.unstable_setDisableYieldValue,qn=null,jt=null;function Ol(e){if(typeof R1=="function"&&U1(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(qn,e)}catch{}}var Mt=Math.clz32?Math.clz32:Y1,H1=Math.log,B1=Math.LN2;function Y1(e){return e>>>=0,e===0?32:31-(H1(e)/B1|0)|0}var Bi=256,Yi=262144,Gi=4194304;function oa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,u=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?i=oa(a):(r&=d,r!==0?i=oa(r):l||(l=d&~e,l!==0&&(i=oa(l))))):(d=a&~u,d!==0?i=oa(d):r!==0?i=oa(r):l||(l=a&~e,l!==0&&(i=oa(l)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:i}function On(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xr(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-Mt(l),i=1<<a;t|=e[a],l&=~i}return t}function G1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wr(){var e=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),e}function Nc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Q1(e,t,l,a,i,u){var r=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,w=e.hiddenUpdates;for(l=r&~l;0<l;){var z=31-Mt(l),R=1<<z;d[z]=0,y[z]=-1;var A=w[z];if(A!==null)for(w[z]=null,z=0;z<A.length;z++){var j=A[z];j!==null&&(j.lane&=-536870913)}l&=~R}a!==0&&Nr(e,a,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(r&~t))}function Nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Mt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Er(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Mt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function jr(e,t){var l=t&-t;return l=(l&42)!==0?1:Ec(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ec(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function jc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mr(){var e=oe.p;return e!==0?e:(e=window.event,e===void 0?32:Hm(e.type))}function zr(e,t){var l=oe.p;try{return oe.p=e,t()}finally{oe.p=l}}var vl=Math.random().toString(36).slice(2),ct="__reactFiber$"+vl,St="__reactProps$"+vl,Ga="__reactContainer$"+vl,Dr="__reactEvents$"+vl,L1="__reactListeners$"+vl,V1="__reactHandles$"+vl,Cr="__reactResources$"+vl,Un="__reactMarker$"+vl,Li="__reactLoad$"+vl;function Vi(e){delete e[ct],delete e[St],delete e[L1],delete e[V1]}function ra(e){var t;if(t=e[ct])return t;for(var l=e.parentNode;l;){if(t=l[Ga]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=vm(e);e!==null;){if(l=e[ct])return l;e=vm(e)}return t}e=l,l=e.parentNode}return null}function Qa(e){if(e=e[ct]||e[Ga]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function La(e){var t=e[Cr];return t||(t=e[Cr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Un]=!0}function qr(e){e[Li]=void 0}var Or=new Set,Rr={};function fa(e,t){Va(e,t),Va(e+"Capture",t)}function Va(e,t){for(Rr[e]=t,e=0;e<t.length;e++)Or.add(t[e])}var X1=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]*$"),Ur={},Hr={};function Z1(e){return Ac.call(Hr,e)?!0:Ac.call(Ur,e)?!1:X1.test(e)?Hr[e]=!0:(Ur[e]=!0,!1)}var je=!1;function Br(){var e=je;return je=!1,e}function Xi(e,t,l){if(Z1(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,l)}}function Zi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,l)}}function pl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,a)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k1(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(r){l=""+r,u.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mc(e){if(!e._valueTracker){var t=Yr(e)?"checked":"value";e._valueTracker=k1(e,t,""+e[t])}}function Gr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Yr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var K1=/[\n"\\]/g;function Yt(e){return e.replace(K1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zc(e,t,l,a,i,u,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?r==="number"&&e.value==t?Dc(e,zt(e.value)):Dc(e,zt(t)):l!=null?Dc(e,zt(l)):a!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+zt(d):e.removeAttribute("name")}function Qr(e,t,l,a,i,u,r,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Mc(e);return}l=l!=null?""+zt(l):"",t=t!=null?""+zt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Mc(e)}function Dc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Xa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+zt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lr(e,t,l){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+zt(l):""}function Vr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Se(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=zt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Mc(e)}function Za(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var J1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||J1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Zr(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",je=!0);for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&(Xr(e,i,a),je=!0)}else for(var u in t)t.hasOwnProperty(u)&&Xr(e,u,t[u])}function Cc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $1=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"],["maskType","mask-type"],["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"]]),F1=/^[\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 ki(e){return F1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function nl(){}var qc=null;function Oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ka=null,Ka=null;function kr(e){var t=Qa(e);if(t&&(e=t.stateNode)){var l=e[St]||null;e:switch(e=t.stateNode,t.type){case"input":if(zc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Yt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[St]||null;if(!i)throw Error(o(90));zc(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Gr(a)}break e;case"textarea":Lr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Xa(e,!!l.multiple,t,!1)}}}var Rc=!1;function Kr(e,t,l){if(Rc)return e(t,l);Rc=!0;try{var a=e(t);return a}finally{if(Rc=!1,(ka!==null||Ka!==null)&&(ku(),ka&&(t=ka,e=Ka,Ka=ka=null,kr(t),e)))for(t=0;t<e.length;t++)kr(e[t])}}function Bn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[St]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var bl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=!1;if(bl)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch{Uc=!1}var Rl=null,Hc=null,Ki=null;function Jr(){if(Ki)return Ki;var e,t=Hc,l=t.length,a,i="value"in Rl?Rl.value:Rl.textContent,u=i.length;for(e=0;e<l&&t[e]===i[e];e++);var r=l-e;for(a=1;a<=r&&t[l-a]===i[u-a];a++);return Ki=i.slice(e,1<a?1-a:void 0)}function Ji(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $i(){return!0}function $r(){return!1}function gt(e){function t(l,a,i,u,r){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=u,this.target=r,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?$i:$r,this.isPropagationStopped=$r,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=$i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=$i)},persist:function(){},isPersistent:$i}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=gt(Ul),Gn=B({},Ul,{view:0,detail:0}),W1=gt(Gn),Bc,Yc,Qn,Wi=B({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qn&&(Qn&&e.type==="mousemove"?(Bc=e.screenX-Qn.screenX,Yc=e.screenY-Qn.screenY):Yc=Bc=0,Qn=e),Bc)},movementY:function(e){return"movementY"in e?e.movementY:Yc}}),Fr=gt(Wi),I1=B({},Wi,{dataTransfer:0}),P1=gt(I1),e0=B({},Gn,{relatedTarget:0}),Gc=gt(e0),t0=B({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),l0=gt(t0),a0=B({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n0=gt(a0),i0=B({},Ul,{data:0}),Wr=gt(i0),u0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c0={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"},s0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=s0[e])?!!t[e]:!1}function Qc(){return o0}var r0=B({},Gn,{key:function(e){if(e.key){var t=u0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?c0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f0=gt(r0),d0=B({},Wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ir=gt(d0),h0=B({},Ul,{submitter:0}),m0=gt(h0),g0=B({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),y0=gt(g0),v0=B({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),p0=gt(v0),b0=B({},Wi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),S0=gt(b0),T0=B({},Ul,{newState:0,oldState:0,source:0}),_0=gt(T0),A0=[9,13,27,32],Lc=bl&&"CompositionEvent"in window,Ln=null;bl&&"documentMode"in document&&(Ln=document.documentMode);var x0=bl&&"TextEvent"in window&&!Ln,Pr=bl&&(!Lc||Ln&&8<Ln&&11>=Ln),ef=" ",tf=!1;function lf(e,t){switch(e){case"keyup":return A0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function w0(e,t){switch(e){case"compositionend":return af(t);case"keypress":return t.which!==32?null:(tf=!0,ef);case"textInput":return e=t.data,e===ef&&tf?null:e;default:return null}}function N0(e,t){if(Ja)return e==="compositionend"||!Lc&&lf(e,t)?(e=Jr(),Ki=Hc=Rl=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pr&&t.locale!=="ko"?null:t.data;default:return null}}var E0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E0[e.type]:t==="textarea"}function uf(e,t,l,a){ka?Ka?Ka.push(a):Ka=[a]:ka=a,t=Iu(t,"onChange"),0<t.length&&(l=new Fi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Vn=null,Xn=null;function j0(e){Kh(e,0)}function Ii(e){var t=Hn(e);if(Gr(t))return e}function cf(e,t){if(e==="change")return t}var sf=!1;if(bl){var Vc;if(bl){var Xc="oninput"in document;if(!Xc){var of=document.createElement("div");of.setAttribute("oninput","return;"),Xc=typeof of.oninput=="function"}Vc=Xc}else Vc=!1;sf=Vc&&(!document.documentMode||9<document.documentMode)}function rf(){Vn&&(Vn.detachEvent("onpropertychange",ff),Xn=Vn=null)}function ff(e){if(e.propertyName==="value"&&Ii(Xn)){var t=[];uf(t,Xn,e,Oc(e)),Kr(j0,t)}}function M0(e,t,l){e==="focusin"?(rf(),Vn=t,Xn=l,Vn.attachEvent("onpropertychange",ff)):e==="focusout"&&rf()}function z0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ii(Xn)}function D0(e,t){if(e==="click")return Ii(t)}function C0(e,t){if(e==="input"||e==="change")return Ii(t)}function q0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:q0;function Zn(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!Ac.call(t,i)||!Dt(e[i],t[i]))return!1}return!0}function Zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hf(e,t){var l=df(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=df(l)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zc(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Zc(e.document)}return t}function kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var O0=bl&&"documentMode"in document&&11>=document.documentMode,$a=null,Kc=null,kn=null,Jc=!1;function yf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Jc||$a==null||$a!==Zc(a)||(a=$a,"selectionStart"in a&&kc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),kn&&Zn(kn,a)||(kn=a,a=Iu(Kc,"onSelect"),0<a.length&&(t=new Fi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=$a)))}function da(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Fa={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},$c={},vf={};bl&&(vf=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function ha(e){if($c[e])return $c[e];if(!Fa[e])return e;var t=Fa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in vf)return $c[e]=t[l];return e}var pf=ha("animationend"),bf=ha("animationiteration"),Sf=ha("animationstart"),R0=ha("transitionrun"),U0=ha("transitionstart"),H0=ha("transitioncancel"),Tf=ha("transitionend"),_f=new Map,Fc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Fc.push("scrollEnd");function Ft(e,t){_f.set(e,t),fa(t,[e])}var B0=0;function Sl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=el.identifierPrefix;var l=B0++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function Af(e){if(e==null||typeof e=="string")return e;var t=null,l=vn;if(l!==null)for(var a=0;a<l.length;a++){var i=e[l[a]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function Tl(e,t){return e=Af(e),t=Af(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Pi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Gt=[],Wa=0,Wc=0;function eu(){for(var e=Wa,t=Wc=Wa=0;t<e;){var l=Gt[t];Gt[t++]=null;var a=Gt[t];Gt[t++]=null;var i=Gt[t];Gt[t++]=null;var u=Gt[t];if(Gt[t++]=null,a!==null&&i!==null){var r=a.pending;r===null?i.next=i:(i.next=r.next,r.next=i),a.pending=i}u!==0&&xf(l,i,u)}}function tu(e,t,l,a){Gt[Wa++]=e,Gt[Wa++]=t,Gt[Wa++]=l,Gt[Wa++]=a,Wc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ic(e,t,l,a){return tu(e,t,l,a),lu(e)}function ma(e,t){return tu(e,null,null,t),lu(e)}function xf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Mt(l),e=u.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),u):null}function lu(e){if(50<mi)throw mi=0,Zu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ia={};function Y0(e,t,l,a){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,l,a){return new Y0(e,t,l,a)}function Pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _l(e,t){var l=e.alternate;return l===null?(l=Tt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function wf(e,t){e.flags&=1206910978;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function au(e,t,l,a,i,u){var r=0;if(a=e,typeof a=="function")Pc(a)&&(r=1);else if(typeof a=="string")r=hy(e,l,al.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Qe:return e=Tt(31,l,t,i),e.elementType=Qe,e.lanes=u,e;case k:return ga(l.children,i,u,t);case V:r=8,i|=24;break;case P:return e=Tt(12,l,t,i|2),e.elementType=P,e.lanes=u,e;case $:return e=Tt(13,l,t,i),e.elementType=$,e.lanes=u,e;case W:return e=Tt(19,l,t,i),e.elementType=W,e.lanes=u,e;case Ve:case T:return e=i|32,e=Tt(30,l,t,e),e.elementType=T,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ce:r=10;break e;case J:r=9;break e;case X:r=11;break e;case pe:r=14;break e;case me:r=16,a=null;break e}r=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=Tt(r,l,t,i),t.elementType=e,t.type=a,t.lanes=u,t}function ga(e,t,l,a){return e=Tt(7,e,a,t),e.lanes=l,e}function es(e,t,l){return e=Tt(6,e,null,t),e.lanes=l,e}function Nf(e){var t=Tt(18,null,null,0);return t.stateNode=e,t}function ts(e,t,l){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ef=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=Ef.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Sr(t)},Ef.set(e,t),t)}return{value:e,source:t,stack:Sr(t)}}var Pa=[],en=0,nu=null,Kn=0,Lt=[],Vt=0,Hl=null,il=1,ul="";function Al(e,t){Pa[en++]=Kn,Pa[en++]=nu,nu=e,Kn=t}function jf(e,t,l){Lt[Vt++]=il,Lt[Vt++]=ul,Lt[Vt++]=Hl,Hl=e;var a=il;e=ul;var i=32-Mt(a)-1;a&=~(1<<i),l+=1;var u=32-Mt(t)+i;if(30<u){var r=i-i%5;u=(a&(1<<r)-1).toString(32),a>>=r,i-=r,il=1<<32-Mt(t)+i|l<<i|a,ul=u+e}else il=1<<u|l<<i|a,ul=e}function iu(e){e.return!==null&&(Al(e,1),jf(e,1,0))}function ls(e){for(;e===nu;)nu=Pa[--en],Pa[en]=null,Kn=Pa[--en],Pa[en]=null;for(;e===Hl;)Hl=Lt[--Vt],Lt[Vt]=null,ul=Lt[--Vt],Lt[Vt]=null,il=Lt[--Vt],Lt[Vt]=null}function Mf(e,t){Lt[Vt++]=il,Lt[Vt++]=ul,Lt[Vt++]=Hl,il=t.id,ul=t.overflow,Hl=e}var nt=null,Ye=null,_e=!1,Bl=null,Xt=!1,as=Error(o(519));function Yl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jn(Qt(t,e)),as}function zf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ct]=e,t[St]=a,l){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(l=0;l<yi.length;l++)xe(yi[l],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Qr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Vr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Wh(t.textContent,l)?(a.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),a.onScroll!=null&&xe("scroll",t),a.onScrollEnd!=null&&xe("scrollend",t),a.onClick!=null&&(t.onclick=nl),t=!0):t=!1,t||Yl(e,!0)}function uu(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:nt=nt.return}}function tn(e){if(e!==nt)return!1;if(!_e)return uu(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Oo(e.type,e.memoizedProps)),l=!l),l&&Ye&&Yl(e),uu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ye=ym(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ye=ym(e)}else t===27?(t=Ye,ta(e.type)?(e=Vo,Vo=null,Ye=e):Ye=t):Ye=nt?kt(e.stateNode.nextSibling):null;return!0}function ya(){Ye=nt=null,_e=!1}function ns(){var e=Bl;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Bl=null),e}function Jn(e){Bl===null?Bl=[e]:Bl.push(e)}var is=bt(null),va=null,xl=null;function Gl(e,t,l){He(is,t._currentValue),t._currentValue=l}function wl(e){e._currentValue=is.current,Ze(is)}function cu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function us(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var r=i.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=i;for(var y=0;y<t.length;y++)if(d.context===t[y]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),cu(u.return,l,e),a||(r=null);break e}u=d.next}}else if(i.tag===18){if(r=i.return,r===null)throw Error(o(341));r.lanes|=l,u=r.alternate,u!==null&&(u.lanes|=l),cu(r,l,e),r=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=l,r=i.alternate,r!==null&&(r.lanes|=l),cu(i.return,l,e),r=i.child,r=r!==null?r.sibling:null):r=i.child;if(r!==null)r.return=i;else for(r=i;r!==null;){if(r===e){r=null;break}if(i=r.sibling,i!==null){i.return=r.return,r=i;break}r=r.return}i=r}}function pa(e,t,l,a){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var r=i.alternate;if(r===null)throw Error(o(387));if(r=r.memoizedProps,r!==null){var d=i.type;Dt(i.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(i===Oi.current){if(r=i.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(En):e=[En])}i=i.return}return e!==null&&us(t,e,l,a),t.flags|=262144,e!==null}function su(e){for(e=e.firstContext;e!==null;){if(!Dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ba(e){va=e,xl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Df(va,e)}function ou(e,t){return va===null&&ba(e),Df(e,t)}function Df(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},xl===null){if(e===null)throw Error(o(308));xl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xl=xl.next=t;return l}var G0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Q0=c.unstable_scheduleCallback,L0=c.unstable_NormalPriority,$e={$$typeof:ce,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cs(){return{controller:new G0,data:new Map,refCount:0}}function $n(e){e.refCount--,e.refCount===0&&Q0(L0,function(){e.controller.abort()})}function Cf(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];l.indexOf(a)===-1&&l.push(a)}}}var Fn=null;function V0(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Wn=null,ss=0,Sa=0,ln=null;function X0(e,t){if(Wn===null){var l=Wn=[];ss=0,Sa=wo(),ln={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ss++,t.then(qf,qf),t}function qf(){if(--ss===0&&(Fn=null,Wn!==null)){ln!==null&&(ln.status="fulfilled");var e=Wn;Wn=null,Sa=0,ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Z0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var Of=ee.S;ee.S=function(e,t){if(Nh=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&X0(e,t),Fn!==null)for(var l=Tn;l!==null;)Cf(l,Fn),l=l.next;if(l=e.types,l!==null){for(var a=Tn;a!==null;)Cf(a,l),a=a.next;if(Sa!==0){a=Fn,a===null&&(a=Fn=[]);for(var i=0;i<l.length;i++){var u=l[i];a.indexOf(u)===-1&&a.push(u)}}}Of!==null&&Of(e,t)};var Ta=bt(null);function os(){var e=Ta.current;return e!==null?e:Be.pooledCache}function ru(e,t){t===null?He(Ta,Ta.current):He(Ta,t.pool)}function Rf(){var e=os();return e===null?null:{parent:$e._currentValue,pool:e}}var an=Error(o(460)),rs=Error(o(474)),fu=Error(o(542)),du={then:function(){}};function Uf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(nl,nl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yf(e),e===void 0&&!("reason"in t)?Error(o(600)):e;default:if(typeof t.status=="string")t.then(nl,nl);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yf(e),e}throw Aa=t,an}}function _a(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Aa=l,an):l}}var Aa=null;function Bf(){if(Aa===null)throw Error(o(459));var e=Aa;return Aa=null,e}function Yf(e){if(e===an||e===fu)throw Error(o(483))}var nn=null,In=0;function hu(e){var t=In;return In+=1,nn===null&&(nn=[]),Hf(nn,e,t)}function Ql(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mu(e,t){throw t.$$typeof===L?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gf(e){function t(x,S){if(e){var E=x.deletions;E===null?(x.deletions=[S],x.flags|=16):E.push(S)}}function l(x,S){if(!e)return null;for(;S!==null;)t(x,S),S=S.sibling;return null}function a(x){for(var S=new Map;x!==null;)x.key===null?S.set(x.index,x):S.set(x.key,x),x=x.sibling;return S}function i(x,S){return x=_l(x,S),x.index=0,x.sibling=null,x}function u(x,S,E){return x.index=E,e?(E=x.alternate,E!==null?(E=E.index,E<S?(x.flags|=2,S):E):(x.flags|=134217730,S)):(x.flags|=1048576,S)}function r(x){return e&&x.alternate===null&&(x.flags|=134217730),x}function d(x,S,E,O){return S===null||S.tag!==6?(S=es(E,x.mode,O),S.return=x,S):(S=i(S,E),S.return=x,S)}function y(x,S,E,O){var te=E.type;return te===k?(x=z(x,S,E.props.children,O,E.key),Ql(x,E),x):S!==null&&(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===me&&_a(te)===S.type)?(S=i(S,E.props),Ql(S,E),S.return=x,S):(S=au(E.type,E.key,E.props,null,x.mode,O),Ql(S,E),S.return=x,S)}function w(x,S,E,O){return S===null||S.tag!==4||S.stateNode.containerInfo!==E.containerInfo||S.stateNode.implementation!==E.implementation?(S=ts(E,x.mode,O),S.return=x,S):(S=i(S,E.children||[]),S.return=x,S)}function z(x,S,E,O,te){return S===null||S.tag!==7?(S=ga(E,x.mode,O,te),S.return=x,S):(S=i(S,E),S.return=x,S)}function R(x,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=es(""+S,x.mode,E),S.return=x,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case I:return E=au(S.type,S.key,S.props,null,x.mode,E),Ql(E,S),E.return=x,E;case ie:return S=ts(S,x.mode,E),S.return=x,S;case me:return S=_a(S),R(x,S,E)}if(Se(S)||ae(S))return S=ga(S,x.mode,E,null),S.return=x,S;if(typeof S.then=="function")return R(x,hu(S),E);if(S.$$typeof===ce)return R(x,ou(x,S),E);mu(x,S)}return null}function A(x,S,E,O){var te=S!==null?S.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return te!==null?null:d(x,S,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case I:return E.key===te?y(x,S,E,O):null;case ie:return E.key===te?w(x,S,E,O):null;case me:return E=_a(E),A(x,S,E,O)}if(Se(E)||ae(E))return te!==null?null:z(x,S,E,O,null);if(typeof E.then=="function")return A(x,S,hu(E),O);if(E.$$typeof===ce)return A(x,S,ou(x,E),O);mu(x,E)}return null}function j(x,S,E,O,te){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return x=x.get(E)||null,d(S,x,""+O,te);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case I:return x=x.get(O.key===null?E:O.key)||null,y(S,x,O,te);case ie:return x=x.get(O.key===null?E:O.key)||null,w(S,x,O,te);case me:return O=_a(O),j(x,S,E,O,te)}if(Se(O)||ae(O))return x=x.get(E)||null,z(S,x,O,te,null);if(typeof O.then=="function")return j(x,S,E,hu(O),te);if(O.$$typeof===ce)return j(x,S,E,ou(S,O),te);mu(S,O)}return null}function K(x,S,E,O){for(var te=null,Ne=null,se=S,de=S=0,Ie=null;se!==null&&de<E.length;de++){se.index>de?(Ie=se,se=null):Ie=se.sibling;var Ee=A(x,se,E[de],O);if(Ee===null){se===null&&(se=Ie);break}e&&se&&Ee.alternate===null&&t(x,se),S=u(Ee,S,de),Ne===null?te=Ee:Ne.sibling=Ee,Ne=Ee,se=Ie}if(de===E.length)return l(x,se),_e&&Al(x,de),te;if(se===null){for(;de<E.length;de++)se=R(x,E[de],O),se!==null&&(S=u(se,S,de),Ne===null?te=se:Ne.sibling=se,Ne=se);return _e&&Al(x,de),te}for(se=a(se);de<E.length;de++)Ie=j(se,x,de,E[de],O),Ie!==null&&(e&&(Ee=Ie.alternate,Ee!==null&&se.delete(Ee.key===null?de:Ee.key)),S=u(Ie,S,de),Ne===null?te=Ie:Ne.sibling=Ie,Ne=Ie);return e&&se.forEach(function(ua){return t(x,ua)}),_e&&Al(x,de),te}function ue(x,S,E,O){if(E==null)throw Error(o(151));for(var te=null,Ne=null,se=S,de=S=0,Ie=null,Ee=E.next();se!==null&&!Ee.done;de++,Ee=E.next()){se.index>de?(Ie=se,se=null):Ie=se.sibling;var ua=A(x,se,Ee.value,O);if(ua===null){se===null&&(se=Ie);break}e&&se&&ua.alternate===null&&t(x,se),S=u(ua,S,de),Ne===null?te=ua:Ne.sibling=ua,Ne=ua,se=Ie}if(Ee.done)return l(x,se),_e&&Al(x,de),te;if(se===null){for(;!Ee.done;de++,Ee=E.next())Ee=R(x,Ee.value,O),Ee!==null&&(S=u(Ee,S,de),Ne===null?te=Ee:Ne.sibling=Ee,Ne=Ee);return _e&&Al(x,de),te}for(se=a(se);!Ee.done;de++,Ee=E.next())Ee=j(se,x,de,Ee.value,O),Ee!==null&&(e&&(Ie=Ee.alternate,Ie!==null&&se.delete(Ie.key===null?de:Ie.key)),S=u(Ee,S,de),Ne===null?te=Ee:Ne.sibling=Ee,Ne=Ee);return e&&se.forEach(function(wy){return t(x,wy)}),_e&&Al(x,de),te}function ve(x,S,E,O){if(typeof E=="object"&&E!==null&&E.type===k&&E.key===null&&E.props.ref===void 0&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case I:e:{for(var te=E.key;S!==null;){if(S.key===te){if(te=E.type,te===k){if(S.tag===7){l(x,S.sibling),O=i(S,E.props.children),Ql(O,E),O.return=x,x=O;break e}}else if(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===me&&_a(te)===S.type){l(x,S.sibling),O=i(S,E.props),Ql(O,E),O.return=x,x=O;break e}l(x,S);break}else t(x,S);S=S.sibling}E.type===k?(O=ga(E.props.children,x.mode,O,E.key),Ql(O,E),O.return=x,x=O):(O=au(E.type,E.key,E.props,null,x.mode,O),Ql(O,E),O.return=x,x=O)}return r(x);case ie:e:{for(te=E.key;S!==null;){if(S.key===te)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){l(x,S.sibling),O=i(S,E.children||[]),O.return=x,x=O;break e}else{l(x,S);break}else t(x,S);S=S.sibling}O=ts(E,x.mode,O),O.return=x,x=O}return r(x);case me:return E=_a(E),ve(x,S,E,O)}if(Se(E))return K(x,S,E,O);if(ae(E)){if(te=ae(E),typeof te!="function")throw Error(o(150));return E=te.call(E),ue(x,S,E,O)}if(typeof E.then=="function")return ve(x,S,hu(E),O);if(E.$$typeof===ce)return ve(x,S,ou(x,E),O);mu(x,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,S!==null&&S.tag===6?(l(x,S.sibling),O=i(S,E),O.return=x,x=O):(l(x,S),O=es(E,x.mode,O),O.return=x,x=O),r(x)):l(x,S)}return function(x,S,E,O){try{In=0;var te=ve(x,S,E,O);return nn=null,te}catch(se){if(se===an||se===fu)throw se;var Ne=Tt(29,se,null,x.mode);return Ne.lanes=O,Ne.return=x,Ne}}}var xa=Gf(!0),Qf=Gf(!1),Ll=!1;function fs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ds(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Me&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=lu(e),xf(e,null,l),t}return tu(e,a,t,l),lu(e)}function Pn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Er(e,l)}}function hs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?i=u=r:u=u.next=r,l=l.next}while(l!==null);u===null?i=u=t:u=u.next=t}else i=u=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ms=!1;function ei(){if(ms){var e=ln;if(e!==null)throw e}}function ti(e,t,l,a){ms=!1;var i=e.updateQueue;Ll=!1;var u=i.firstBaseUpdate,r=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var y=d,w=y.next;y.next=null,r===null?u=w:r.next=w,r=y;var z=e.alternate;z!==null&&(z=z.updateQueue,d=z.lastBaseUpdate,d!==r&&(d===null?z.firstBaseUpdate=w:d.next=w,z.lastBaseUpdate=y))}if(u!==null){var R=i.baseState;r=0,z=w=y=null,d=u;do{var A=d.lane&-536870913,j=A!==d.lane;if(j?(we&A)===A:(a&A)===A){A!==0&&A===Sa&&(ms=!0),z!==null&&(z=z.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var K=e,ue=d;A=t;var ve=l;switch(ue.tag){case 1:if(K=ue.payload,typeof K=="function"){R=K.call(ve,R,A);break e}R=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=ue.payload,A=typeof K=="function"?K.call(ve,R,A):K,A==null)break e;R=B({},R,A);break e;case 2:Ll=!0}}A=d.callback,A!==null&&(e.flags|=64,j&&(e.flags|=8192),j=i.callbacks,j===null?i.callbacks=[A]:j.push(A))}else j={lane:A,tag:d.tag,payload:d.payload,callback:d.callback,next:null},z===null?(w=z=j,y=R):z=z.next=j,r|=A;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;j=d,d=j.next,j.next=null,i.lastBaseUpdate=j,i.shared.pending=null}}while(!0);z===null&&(y=R),i.baseState=y,i.firstBaseUpdate=w,i.lastBaseUpdate=z,u===null&&(i.shared.lanes=0),Wl|=r,e.lanes=r,e.memoizedState=R}}function Lf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Vf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Lf(l[e],t)}var Zl=bt(null),gu=bt(0);function Xf(e,t){e=zl,He(gu,e),He(Zl,t),zl=e|t.baseLanes}function gs(){He(gu,zl),He(Zl,Zl.current)}function ys(){zl=gu.current,Ze(Zl),Ze(gu)}var ot=bt(null),mt=null;function kl(e){var t=e.alternate;He(rt,rt.current&1),He(ot,e),mt===null&&(t===null||Zl.current!==null||t.memoizedState!==null)&&(mt=e)}function vs(e){He(rt,rt.current),He(ot,e),mt===null&&(mt=e)}function Zf(e){e.tag===22?(He(rt,rt.current),He(ot,e),mt===null&&(mt=e)):Kl()}function Kl(){He(rt,rt.current),He(ot,ot.current)}function Ct(e){Ze(ot),mt===e&&(mt=null),Ze(rt)}var rt=bt(0);function li(e,t){He(ot,ot.current),He(rt,t)}function ps(e){Ze(rt),Ze(ot),mt===e&&(mt=null)}function yu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Qo(l)||Lo(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nl=0,ye=null,Ue=null,Fe=null,vu=!1,un=!1,wa=!1,pu=0,ai=0,cn=null,k0=0;function ke(){throw Error(o(321))}function bs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Dt(e[l],t[l]))return!1;return!0}function Ss(e,t,l,a,i,u){return Nl=u,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ee.H=e===null||e.memoizedState===null?jd:Md,wa=!1,u=l(a,i),wa=!1,un&&(u=Kf(t,l,a,i)),kf(e),u}function kf(e){ee.H=wu;var t=Ue!==null&&Ue.next!==null;if(Nl=0,Fe=Ue=ye=null,vu=!1,ai=0,cn=null,t)throw Error(o(300));e===null||We||(e=e.dependencies,e!==null&&su(e)&&(We=!0))}function Kf(e,t,l,a){ye=e;var i=0;do{if(un&&(cn=null),ai=0,un=!1,25<=i)throw Error(o(301));if(i+=1,Fe=Ue=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}ee.H=eg,u=t(l,a)}while(un);return u}function K0(){var e=ee.H,t=e.useState()[0];return t=typeof t.then=="function"?ni(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(ye.flags|=1024),t}function Ts(){var e=pu!==0;return pu=0,e}function _s(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function As(e){if(vu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vu=!1}Nl=0,Fe=Ue=ye=null,un=!1,ai=pu=0,cn=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?ye.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Je(){if(Ue===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=Fe===null?ye.memoizedState:Fe.next;if(t!==null)Fe=t,Ue=e;else{if(e===null)throw ye.alternate===null?Error(o(467)):Error(o(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Fe===null?ye.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ni(e){var t=ai;return ai+=1,cn===null&&(cn=[]),e=Hf(cn,e,t),t=ye,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,ee.H=t===null||t.memoizedState===null?jd:Md),e}function Su(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ni(e);if(e.$$typeof===Y)return;if(e.$$typeof===ce)return st(e)}throw Error(o(438,String(e)))}function xs(e){var t=null,l=ye.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ye.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bu(),ye.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=et;return t.index++,l}function El(e,t){return typeof t=="function"?t(e):t}function Tu(e){var t=Je();return ws(t,Ue,e)}function ws(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var i=e.baseQueue,u=a.pending;if(u!==null){if(i!==null){var r=i.next;i.next=u.next,u.next=r}t.baseQueue=i=u,a.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var d=r=null,y=null,w=t,z=!1;do{var R=w.lane&-536870913;if(R!==w.lane?(we&R)===R:(Nl&R)===R){var A=w.revertLane;if(A===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),R===Sa&&(z=!0);else if((Nl&A)===A){w=w.next,A===Sa&&(z=!0);continue}else R={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},y===null?(d=y=R,r=u):y=y.next=R,ye.lanes|=A,Wl|=A;R=w.action,wa&&l(u,R),u=w.hasEagerState?w.eagerState:l(u,R)}else A={lane:R,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},y===null?(d=y=A,r=u):y=y.next=A,ye.lanes|=R,Wl|=R;w=w.next}while(w!==null&&w!==t);if(y===null?r=u:y.next=d,!Dt(u,e.memoizedState)&&(We=!0,z&&(l=ln,l!==null)))throw l;e.memoizedState=u,e.baseState=r,e.baseQueue=y,a.lastRenderedState=u}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ns(e){var t=Je(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,u=t.memoizedState;if(i!==null){l.pending=null;var r=i=i.next;do u=e(u,r.action),r=r.next;while(r!==i);Dt(u,t.memoizedState)||(We=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Jf(e,t,l){var a=ye,i=Je(),u=_e;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var r=!Dt((Ue||i).memoizedState,l);if(r&&(i.memoizedState=l,We=!0),i=i.queue,Ms(Wf.bind(null,a,i,e),[e]),e=i.getSnapshot!==t||r||Fe!==null&&(Fe.memoizedState.tag&1)!==0,sn(e?9:8,{destroy:void 0},Ff.bind(null,a,i,l,t),null),e){if(a.flags|=2048,Be===null)throw Error(o(349));u||(Nl&127)!==0||$f(a,t,l)}return l}function $f(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ye.updateQueue,t===null?(t=bu(),ye.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Ff(e,t,l,a){t.value=l,t.getSnapshot=a,If(t)&&Pf(e)}function Wf(e,t,l){return l(function(){If(t)&&Pf(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Dt(e,l)}catch{return!0}}function Pf(e){var t=ma(e,2);t!==null&&wt(t,e,2)}function Es(e){var t=yt();if(typeof e=="function"){var l=e;if(e=l(),wa){Ol(!0);try{l()}finally{Ol(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:e},t}function ed(e,t,l,a){return e.baseState=l,ws(e,Ue,typeof a=="function"?a:El)}function J0(e,t,l,a,i){if(xu(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){u.listeners.push(r)}};ee.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,td(t,u)):(u.next=l.next,t.pending=l.next=u)}}function td(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var u=ee.T,r={};r.types=u!==null?u.types:null,ee.T=r;try{var d=l(i,a),y=ee.S;y!==null&&y(r,d),ld(e,t,d)}catch(w){js(e,t,w)}finally{u!==null&&r.types!==null&&(u.types=r.types),ee.T=u}}else try{u=l(i,a),ld(e,t,u)}catch(w){js(e,t,w)}}function ld(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ad(e,t,a)},function(a){return js(e,t,a)}):ad(e,t,l)}function ad(e,t,l){t.status="fulfilled",t.value=l,nd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,td(e,l)))}function js(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,nd(t),t=t.next;while(t!==a)}e.action=null}function nd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function id(e,t){return t}function ud(e,t){if(_e){var l=Be.formState;if(l!==null){e:{var a=ye;if(_e){if(Ye){t:{for(var i=Ye,u=Xt;i.nodeType!==8;){if(!u){i=null;break t}if(i=kt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Ye=kt(i.nextSibling),a=i.data==="F!";break e}}Yl(a)}a=!1}a&&(t=l[0])}}return l=yt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:id,lastRenderedState:t},l.queue=a,l=wd.bind(null,ye,a),a.dispatch=l,a=Es(!1),u=Os.bind(null,ye,!1,a.queue),a=yt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=J0.bind(null,ye,i,u,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function cd(e){var t=Je();return sd(t,Ue,e)}function sd(e,t,l){if(t=ws(e,t,id)[0],e=Tu(El)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ni(t)}catch(r){throw r===an?fu:r}else a=t;t=Je();var i=t.queue,u=i.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,sn(9,{destroy:void 0},$0.bind(null,i,l),null)),[a,u,e]}function $0(e,t){e.action=t}function od(e){var t=Je(),l=Ue;if(l!==null)return sd(t,l,e);Je(),t=t.memoizedState,l=Je();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function sn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ye.updateQueue,t===null&&(t=bu(),ye.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function rd(){return Je().memoizedState}function _u(e,t,l,a){var i=yt();ye.flags|=e,i.memoizedState=sn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Au(e,t,l,a){var i=Je();a=a===void 0?null:a;var u=i.memoizedState.inst;Ue!==null&&a!==null&&bs(a,Ue.memoizedState.deps)?i.memoizedState=sn(t,u,l,a):(ye.flags|=e,i.memoizedState=sn(1|t,u,l,a))}function fd(e,t){_u(8390656,8,e,t)}function Ms(e,t){Au(2048,8,e,t)}function F0(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=bu(),ye.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function dd(e){var t=Je().memoizedState;return F0({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function hd(e,t){return Au(4,2,e,t)}function md(e,t){return Au(4,4,e,t)}function gd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yd(e,t,l){l=l!=null?l.concat([e]):null,Au(4,4,gd.bind(null,t,e),l)}function zs(){}function vd(e,t){var l=Je();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&bs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function pd(e,t){var l=Je();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&bs(t,a[1]))return a[0];if(a=e(),wa){Ol(!0);try{e()}finally{Ol(!1)}}return l.memoizedState=[a,t],a}function Ds(e,t,l){return l===void 0||(Nl&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=jh(),ye.lanes|=e,Wl|=e,l)}function bd(e,t,l,a){return Dt(l,t)?l:Zl.current!==null?(e=Ds(e,l,a),Dt(e,t)||(We=!0),e):(Nl&106)===0||(Nl&1073741824)!==0&&(we&261930)===0?(We=!0,e.memoizedState=l):(e=jh(),ye.lanes|=e,Wl|=e,t)}function Sd(e,t,l,a,i){var u=oe.p;oe.p=u!==0&&8>u?u:8;var r=ee.T,d={};d.types=r!==null?r.types:null,ee.T=d,Os(e,!1,t,l);try{var y=i(),w=ee.S;if(w!==null&&w(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var z=Z0(y,a);ii(e,t,z,Ut(e))}else ii(e,t,a,Ut(e))}catch(R){ii(e,t,{then:function(){},status:"rejected",reason:R},Ut())}finally{oe.p=u,r!==null&&d.types!==null&&(r.types=d.types),ee.T=r}}function W0(){}function Cs(e,t,l,a){if(e.tag!==5)throw Error(o(476));var i=Td(e).queue;Sd(e,i,t,Nt,l===null?W0:function(){return _d(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Nt,baseState:Nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:Nt},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _d(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ii(e,t.next.queue,{},Ut())}function qs(){return st(En)}function Ad(){return Je().memoizedState}function xd(){return Je().memoizedState}function I0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ut();e=Vl(l);var a=Xl(t,e,l);a!==null&&(wt(a,t,l),Pn(a,t,l)),t={cache:cs()},e.payload=t;return}t=t.return}}function P0(e,t,l){var a=Ut();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xu(e)?Nd(t,l):(l=Ic(e,t,l,a),l!==null&&(wt(l,e,a),Ed(l,t,a)))}function wd(e,t,l){var a=Ut();ii(e,t,l,a)}function ii(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(xu(e))Nd(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var r=t.lastRenderedState,d=u(r,l);if(i.hasEagerState=!0,i.eagerState=d,Dt(d,r))return tu(e,t,i,0),Be===null&&eu(),!1}catch{}if(l=Ic(e,t,i,a),l!==null)return wt(l,e,a),Ed(l,t,a),!0}return!1}function Os(e,t,l,a){if(a={lane:2,revertLane:wo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xu(e)){if(t)throw Error(o(479))}else t=Ic(e,l,a,2),t!==null&&wt(t,e,2)}function xu(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Nd(e,t){un=vu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ed(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Er(e,l)}}var wu={readContext:st,use:Su,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke,useEffectEvent:ke},jd={readContext:st,use:Su,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:fd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_u(4194308,4,gd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _u(4194308,4,e,t)},useInsertionEffect:function(e,t){_u(4,2,e,t)},useMemo:function(e,t){var l=yt();t=t===void 0?null:t;var a=e();if(wa){Ol(!0);try{e()}finally{Ol(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=yt();if(l!==void 0){var i=l(t);if(wa){Ol(!0);try{l(t)}finally{Ol(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=P0.bind(null,ye,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Es(e);var t=e.queue,l=wd.bind(null,ye,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zs,useDeferredValue:function(e,t){var l=yt();return Ds(l,e,t)},useTransition:function(){var e=Es(!1);return e=Sd.bind(null,ye,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ye,i=yt();if(_e){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Be===null)throw Error(o(349));(we&127)!==0||$f(a,t,l)}i.memoizedState=l;var u={value:l,getSnapshot:t};return i.queue=u,fd(Wf.bind(null,a,u,e),[e]),a.flags|=2048,sn(9,{destroy:void 0},Ff.bind(null,a,u,l,t),null),l},useId:function(){var e=yt(),t=Be.identifierPrefix;if(_e){var l=ul,a=il;l=(a&~(1<<32-Mt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=pu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=k0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qs,useFormState:ud,useActionState:ud,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Os.bind(null,ye,!0,l),l.dispatch=t,[e,t]},useMemoCache:xs,useCacheRefresh:function(){return yt().memoizedState=I0.bind(null,ye)},useEffectEvent:function(e){var t=yt(),l={impl:e};return t.memoizedState=l,function(){if((Me&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Md={readContext:st,use:Su,useCallback:vd,useContext:st,useEffect:Ms,useImperativeHandle:yd,useInsertionEffect:hd,useLayoutEffect:md,useMemo:pd,useReducer:Tu,useRef:rd,useState:function(){return Tu(El)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Je();return bd(l,Ue.memoizedState,e,t)},useTransition:function(){var e=Tu(El)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Jf,useId:Ad,useHostTransitionStatus:qs,useFormState:cd,useActionState:cd,useOptimistic:function(e,t){var l=Je();return ed(l,Ue,e,t)},useMemoCache:xs,useCacheRefresh:xd,useEffectEvent:dd},eg={readContext:st,use:Su,useCallback:vd,useContext:st,useEffect:Ms,useImperativeHandle:yd,useInsertionEffect:hd,useLayoutEffect:md,useMemo:pd,useReducer:Ns,useRef:rd,useState:function(){return Ns(El)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Je();return Ue===null?Ds(l,e,t):bd(l,Ue.memoizedState,e,t)},useTransition:function(){var e=Ns(El)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Jf,useId:Ad,useHostTransitionStatus:qs,useFormState:od,useActionState:od,useOptimistic:function(e,t){var l=Je();return Ue!==null?ed(l,Ue,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:xs,useCacheRefresh:xd,useEffectEvent:dd};function Rs(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:B({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Us={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Ut(),i=Vl(a);i.payload=t,l!=null&&(i.callback=l),t=Xl(e,i,a),t!==null&&(wt(t,e,a),Pn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Ut(),i=Vl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=Xl(e,i,a),t!==null&&(wt(t,e,a),Pn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ut(),a=Vl(l);a.tag=2,t!=null&&(a.callback=t),t=Xl(e,a,l),t!==null&&(wt(t,e,l),Pn(t,e,l))}};function zd(e,t,l,a,i,u,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,r):t.prototype&&t.prototype.isPureReactComponent?!Zn(l,a)||!Zn(i,u):!0}function Dd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Na(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=B({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Cd(e){Pi(e)}function qd(e){console.error(e)}function Od(e){Pi(e)}function Nu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Rd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Hs(e,t,l){return l=Vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Nu(e,t)},l}function Ud(e){return e=Vl(e),e.tag=3,e}function Hd(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var u=a.value;e.payload=function(){return i(u)},e.callback=function(){Rd(t,l,a)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Rd(t,l,a),typeof i!="function"&&(Il===null?Il=new Set([this]):Il.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function tg(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,i,!0),l=ot.current,l!==null){switch(l.tag){case 31:case 13:case 19:return mt===null?Ku():l.alternate===null&&Ke===0&&(Ke=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===du?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),_o(e,a,i)),!1;case 22:return l.flags|=65536,a===du?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),_o(e,a,i)),!1}throw Error(o(435,l.tag))}return _o(e,a,i),Ku(),!1}if(_e)return t=ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==as&&(e=Error(o(422),{cause:a}),Jn(Qt(e,l)))):(a!==as&&(t=Error(o(423),{cause:a}),Jn(Qt(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Qt(a,l),i=Hs(e.stateNode,a,i),hs(e,i),Ke!==4&&(Ke=2)),!1;var u=Error(o(520),{cause:a});if(u=Qt(u,l),hi===null?hi=[u]:hi.push(u),Ke!==4&&(Ke=2),t===null)return!0;a=Qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Hs(l.stateNode,a,e),hs(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Il===null||!Il.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Ud(i),Hd(i,e,l,a),hs(l,i),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var Bs=Error(o(461)),We=!1;function tt(e,t,l,a){t.child=e===null?Qf(t,null,l,a):xa(t,e.child,l,a)}function Bd(e,t,l,a,i){l=l.render;var u=t.ref;if("ref"in a){var r={};for(var d in a)d!=="ref"&&(r[d]=a[d])}else r=a;return ba(t),a=Ss(e,t,l,r,u,i),d=Ts(),e!==null&&!We?(_s(e,t,i),jl(e,t,i)):(_e&&d&&iu(t),t.flags|=1,tt(e,t,a,i),t.child)}function Yd(e,t,l,a,i){if(e===null){var u=l.type;return typeof u=="function"&&!Pc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Gd(e,t,u,a,i)):(e=au(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ks(e,i)){var r=u.memoizedProps;if(l=l.compare,l=l!==null?l:Zn,l(r,a)&&e.ref===t.ref)return jl(e,t,i)}return t.flags|=1,e=_l(u,a),e.ref=t.ref,e.return=t,t.child=e}function Gd(e,t,l,a,i){if(e!==null){var u=e.memoizedProps;if(Zn(u,a)&&e.ref===t.ref)if(We=!1,t.pendingProps=a=u,ks(e,i))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,jl(e,t,i)}return Ys(e,t,l,a,i)}function Qd(e,t,l,a){var i=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~u}else a=0,t.child=null;return Ld(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ru(t,u!==null?u.cachePool:null),u!==null?Xf(t,u):gs(),Zf(t);else return a=t.lanes=536870912,Ld(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(ru(t,u.cachePool),Xf(t,u),Kl(),t.memoizedState=null):(e!==null&&ru(t,null),gs(),Kl());return tt(e,t,i,l),t.child}function ui(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ld(e,t,l,a,i){var u=os();return u=u===null?null:{parent:$e._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ru(t,null),gs(),Zf(t),e!==null&&pa(e,t,a,!0),t.childLanes=i,null}function Eu(e,t){return t=ju({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vd(e,t,l){return xa(t,e.child,null,l),e=Eu(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function lg(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(a.mode==="hidden")return e=Eu(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},ui(null,e);if(vs(t),(e=Ye)?(e=gm(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hl!==null?{id:il,overflow:ul}:null,retryLane:536870912,hydrationErrors:null},l=Nf(e),l.return=t,t.child=l,nt=t,Ye=null)):e=null,e===null)throw Yl(t);return t.lanes=536870912,null}return Eu(t,a)}var u=e.memoizedState;if(u!==null){var r=u.dehydrated;if(vs(t),i)if(t.flags&256)t.flags&=-257,t=Vd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(We||pa(e,t,l,!1),i=(l&e.childLanes)!==0,We||i){if(Zl.current===null){if(a=Be,a!==null&&(r=jr(a,l),r!==0&&r!==u.retryLane))throw u.retryLane=r,ma(e,r),wt(a,e,r),Bs;Ku()}t=Vd(e,t,l)}else e=u.treeContext,Ye=kt(r.nextSibling),nt=t,_e=!0,Bl=null,Xt=!1,e!==null&&Mf(t,e),t=Eu(t,a),t.flags|=134221824;return t}return e=_l(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function on(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ys(e,t,l,a,i){return ba(t),l=Ss(e,t,l,a,void 0,i),a=Ts(),e!==null&&!We?(_s(e,t,i),jl(e,t,i)):(_e&&a&&iu(t),t.flags|=1,tt(e,t,l,i),t.child)}function Xd(e,t,l,a,i,u){return ba(t),t.updateQueue=null,l=Kf(t,a,l,i),kf(e),a=Ts(),e!==null&&!We?(_s(e,t,u),jl(e,t,u)):(_e&&a&&iu(t),t.flags|=1,tt(e,t,l,u),t.child)}function Zd(e,t,l,a,i){if(ba(t),t.stateNode===null){var u=Ia,r=l.contextType;typeof r=="object"&&r!==null&&(u=st(r)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Us,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},fs(t),r=l.contextType,u.context=typeof r=="object"&&r!==null?st(r):Ia,u.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(Rs(t,l,r,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&Us.enqueueReplaceState(u,u.state,null),ti(t,a,u,i),ei(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,y=Na(l,d);u.props=y;var w=u.context,z=l.contextType;r=Ia,typeof z=="object"&&z!==null&&(r=st(z));var R=l.getDerivedStateFromProps;z=typeof R=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||w!==r)&&Dd(t,u,a,r),Ll=!1;var A=t.memoizedState;u.state=A,ti(t,a,u,i),ei(),w=t.memoizedState,d||A!==w||Ll?(typeof R=="function"&&(Rs(t,l,R,a),w=t.memoizedState),(y=Ll||zd(t,l,y,a,A,w,r))?(z||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=w),u.props=a,u.state=w,u.context=r,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,ds(e,t),r=t.memoizedProps,z=Na(l,r),u.props=z,R=t.pendingProps,A=u.context,w=l.contextType,y=Ia,typeof w=="object"&&w!==null&&(y=st(w)),d=l.getDerivedStateFromProps,(w=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==R||A!==y)&&Dd(t,u,a,y),Ll=!1,A=t.memoizedState,u.state=A,ti(t,a,u,i),ei();var j=t.memoizedState;r!==R||A!==j||Ll||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof d=="function"&&(Rs(t,l,d,a),j=t.memoizedState),(z=Ll||zd(t,l,z,a,A,j,y)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(w||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,j,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,j,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),u.props=a,u.state=j,u.context=y,a=z):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,on(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=xa(t,e.child,null,i),t.child=xa(t,null,l,i)):tt(e,t,l,i),t.memoizedState=u.state,e=t.child):e=jl(e,t,i),e}function kd(e,t,l,a){return ya(),t.flags|=256,tt(e,t,l,a),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qs(e){return{baseLanes:e,cachePool:Rf()}}function Ls(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Rt),e}function Kd(e,t,l){var a=t.pendingProps,i=!1,u=(t.flags&128)!==0,r;if((r=u)||(r=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),r&&(i=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(i?kl(t):Kl(),(e=Ye)?(e=gm(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hl!==null?{id:il,overflow:ul}:null,retryLane:536870912,hydrationErrors:null},l=Nf(e),l.return=t,t.child=l,nt=t,Ye=null)):e=null,e===null)throw Yl(t);return Lo(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,i?(Kl(),i=t.mode,u=ju({mode:"hidden",children:u},i),a=ga(a,i,l,null),u.return=t,a.return=t,u.sibling=a,t.child=u,a=t.child,a.memoizedState=Qs(l),a.childLanes=Ls(e,r,l),t.memoizedState=Gs,ui(null,a)):(kl(t),Vs(t,u))}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(y!==null)return ag(e,t,u,r,a,y,d,l)}return i?(Kl(),i=a.fallback,u=t.mode,d=e.child,y=d.sibling,a=_l(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&1206910976,y!==null?i=_l(y,i):(i=ga(i,u,l,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,ui(null,a),a=t.child,i=e.child.memoizedState,i===null?i=Qs(l):(u=i.cachePool,u!==null?(d=$e._currentValue,u=u.parent!==d?{parent:d,pool:d}:u):u=Rf(),i={baseLanes:i.baseLanes|l,cachePool:u}),a.memoizedState=i,a.childLanes=Ls(e,r,l),t.memoizedState=Gs,ui(e.child,a)):(kl(t),l=e.child,e=l.sibling,l=_l(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function Vs(e,t){return t=ju({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ju(e,t){return e=Tt(22,e,null,t),e.lanes=0,e}function Mu(e,t,l){return xa(t,e.child,null,l),e=Vs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ag(e,t,l,a,i,u,r,d){if(l)return t.flags&256?(kl(t),t.flags&=-257,Mu(e,t,d)):t.memoizedState!==null?(Kl(),t.child=e.child,t.flags|=128,null):(Kl(),u=i.fallback,r=t.mode,i=ju({mode:"visible",children:i.children},r),u=ga(u,r,d,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,xa(t,e.child,null,d),i=t.child,i.memoizedState=Qs(d),i.childLanes=Ls(e,a,d),t.memoizedState=Gs,ui(null,i));if(kl(t),Lo(u)){if(a=u.nextSibling&&u.nextSibling.dataset,a)var y=a.dgst;return a=y,a!==""&&(i=Error(o(419)),i.stack="",i.digest=a,Jn({value:i,source:null,stack:null})),Mu(e,t,d)}if(We||pa(e,t,d,!1),a=(d&e.childLanes)!==0,We||a){if(Zl.current!==null)return Mu(e,t,d);if(a=Be,a!==null&&(i=jr(a,d),i!==0&&i!==r.retryLane))throw r.retryLane=i,ma(e,i),wt(a,e,i),Bs;return Qo(u)||Ku(),Mu(e,t,d)}return Qo(u)?(t.flags|=192,t.child=e.child,null):(e=r.treeContext,Ye=kt(u.nextSibling),nt=t,_e=!0,Bl=null,Xt=!1,e!==null&&Mf(t,e),t=Vs(t,i.children),t.flags|=134221824,t)}function Jd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),cu(e.return,t,l)}function $d(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&yu(l)===null&&(t=e),e=e.sibling}return t}function zu(e,t,l,a,i,u){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:u}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=l,r.tailMode=i,r.treeForkCount=u)}function Xs(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function Zs(e,t,l){var a=t.pendingProps,i=a.revealOrder,u=a.tail;a=a.children;var r=rt.current;if(t.flags&128)return li(t,r),null;var d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,li(t,r),i==="backwards"&&e!==null?(Xs(e),tt(e,t,a,l),Xs(e)):tt(e,t,a,l),a=_e?Kn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jd(e,l,t);else if(e.tag===19)Jd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":l=$d(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null,Xs(t)),zu(t,!0,i,null,u,a);break;case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yu(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}zu(t,!0,l,null,u,a);break;case"together":zu(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:l=$d(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),zu(t,!1,i,l,u,a)}return t.child}function Fd(e,t,l){var a=t.pendingProps;return Gl(t,t.type,a.value),tt(e,t,a.children,l),t.child}function jl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Wl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=_l(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=_l(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ks(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function ng(e,t,l){switch(t.tag){case 3:Ri(t,t.stateNode.containerInfo),Gl(t,$e,e.memoizedState.cache),ya();break;case 27:case 5:bc(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:Gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vs(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return kl(t),t.flags|=128,null;a=pa(e,t,l,!1);var i=t.child.childLanes;return a||(l&i)!==0?Kd(e,t,l):(kl(t),e=jl(e,t,l),e!==null?e.sibling:null)}kl(t);break;case 19:if(t.flags&128)return Zs(e,t,l);if(i=(e.flags&128)!==0,a=(l&t.childLanes)!==0,a||(pa(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return Zs(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),li(t,rt.current),a)break;return null;case 22:return t.lanes=0,Qd(e,t,l,t.pendingProps);case 24:Gl(t,$e,e.memoizedState.cache)}return jl(e,t,l)}function Wd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!ks(e,l)&&(t.flags&128)===0)return We=!1,ng(e,t,l);We=(e.flags&131072)!==0}else We=!1,_e&&(t.flags&1048576)!==0&&jf(t,Kn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=_a(t.elementType),t.type=e,typeof e=="function")Pc(e)?(a=Na(e,a),t.tag=1,t=Zd(null,t,e,a,l)):(t.tag=0,t=Ys(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===X){t.tag=11,t=Bd(null,t,e,a,l);break e}else if(i===pe){t.tag=14,t=Yd(null,t,e,a,l);break e}else if(i===ce){t.tag=10,t.type=e,t=Fd(null,t,l);break e}}throw t=ge(e)||e,Error(o(306,t,""))}}return t;case 0:return Ys(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=Na(a,t.pendingProps),Zd(e,t,a,i,l);case 3:e:{if(Ri(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;i=u.element,ds(e,t),ti(t,a,null,l);var r=t.memoizedState;if(a=r.cache,Gl(t,$e,a),a!==u.cache&&us(t,[$e],l,!0),ei(),a=r.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=kd(e,t,a,l);break e}else if(a!==i){i=Qt(Error(o(424)),t),Jn(i),t=kd(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ye=kt(e.firstChild),nt=t,_e=!0,Bl=null,Xt=!0,l=Qf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling;else{if(ya(),a===i){t=jl(e,t,l);break e}tt(e,t,a,l)}t=t.child}return t;case 26:return on(e,t),e===null?(l=_m(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(t.stateNode=tm(t.type,t.pendingProps,Cl.current,t)):t.memoizedState=_m(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return bc(t),e===null&&_e&&(a=t.stateNode=pm(t.type,t.pendingProps,Cl.current),nt=t,Xt=!0,i=Ye,ta(t.type)?(Vo=i,Ye=kt(a.firstChild)):Ye=i),tt(e,t,t.pendingProps.children,l),on(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((i=a=Ye)&&(a=Ig(a,t.type,t.pendingProps,Xt),a!==null?(t.stateNode=a,nt=t,Ye=kt(a.firstChild),Xt=!1,i=!0):i=!1),i||Yl(t)),bc(t),i=t.type,u=t.pendingProps,r=e!==null?e.memoizedProps:null,a=u.children,Oo(i,u)?a=null:r!==null&&Oo(i,r)&&(t.flags|=32),t.memoizedState!==null&&(i=Ss(e,t,K0,null,null,l),En._currentValue=i),on(e,t),tt(e,t,a,l),t.child;case 6:return e===null&&_e&&((e=l=Ye)&&(l=Pg(l,t.pendingProps,Xt),l!==null?(t.stateNode=l,nt=t,Ye=null,e=!0):e=!1),e||Yl(t)),null;case 13:return Kd(e,t,l);case 4:return Ri(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=xa(t,null,a,l):tt(e,t,a,l),t.child;case 11:return Bd(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,on(e,t),tt(e,t,a,l),t.child;case 8:return tt(e,t,t.pendingProps.children,l),t.child;case 12:return tt(e,t,t.pendingProps.children,l),t.child;case 10:return Fd(e,t,l);case 9:return i=t.type._context,a=t.pendingProps.children,ba(t),i=st(i),a=a(i),t.flags|=1,tt(e,t,a,l),t.child;case 14:return Yd(e,t,t.type,t.pendingProps,l);case 15:return Gd(e,t,t.type,t.pendingProps,l);case 19:return Zs(e,t,l);case 31:return lg(e,t,l);case 22:return Qd(e,t,l,t.pendingProps);case 24:return ba(t),a=st($e),e===null?(i=os(),i===null&&(i=Be,u=cs(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),t.memoizedState={parent:a,cache:i},fs(t),Gl(t,$e,i)):((e.lanes&l)!==0&&(ds(e,t),ti(t,null,null,l),ei()),i=e.memoizedState,u=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gl(t,$e,a)):(a=u.cache,Gl(t,$e,a),a!==i.cache&&us(t,[$e],l,!0))),tt(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:_e&&iu(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:on(e,t),tt(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Ml(e){e.flags|=4}function Ks(e,t,l,a,i){var u;if((u=(e.mode&32)!==0)&&(u=l===null?Nm(t,a):Nm(t,a)&&(a.src!==l.src||a.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ch())e.flags|=8192;else throw Aa=du,rs}else e.flags&=-16777217}function Id(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t))if(Ch())e.flags|=8192;else throw Aa=du,rs}function Du(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wr():536870912,e.lanes|=t,mn|=t)}function ci(e,t){if(!_e)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&1206910976,a|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function ig(e,t,l){var a=t.pendingProps;switch(ls(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),wl($e),Ya(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(tn(t)?Ml(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ns())),Ge(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(Ml(t),u!==null?(Ge(t),Id(t,u)):(Ge(t),Ks(t,i,null,a,l))):u?u!==e.memoizedState?(Ml(t),Ge(t),Id(t,u)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ml(t),Ge(t),Ks(t,i,e,a,l)),null;case 27:if(Ui(t),l=Cl.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ml(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ge(t),t.subtreeFlags&=-33554433,null}e=al.current,tn(t)?zf(t):(e=pm(i,a,l),t.stateNode=e,Ml(t))}return Ge(t),t.subtreeFlags&=-33554433,null;case 5:if(Ui(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ml(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ge(t),t.subtreeFlags&=-33554433,null}if(u=al.current,tn(t))zf(t);else{var r=pi(Cl.current);switch(u){case 1:u=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=r.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?r.createElement(i,{is:a.is}):r.createElement(i)}}u[ct]=t,u[St]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)u.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=u;e:switch(dt(u,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ml(t)}}return Ge(t),t.subtreeFlags&=-33554433,Ks(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ml(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=Cl.current,tn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=nt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Wh(e.nodeValue,l)),e||Yl(t,!0)}else e=pi(e).createTextNode(a),e[ct]=t,t.stateNode=e}return Ge(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=tn(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[ct]=t}else ya(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else l=ns(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ge(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=tn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[ct]=t}else ya(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else i=ns(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Du(t,t.updateQueue),Ge(t),null);case 4:return Ya(),e===null&&Mo(t.stateNode.containerInfo),t.flags|=67108864,Ge(t),null;case 10:return wl(t.type),Ge(t),null;case 19:if(ps(t),a=t.memoizedState,a===null)return Ge(t),null;if(i=(t.flags&128)!==0,u=a.rendering,u===null)if(i)ci(a,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=yu(e),u!==null){for(t.flags|=128,ci(a,!1),e=u.updateQueue,t.updateQueue=e,Du(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)wf(l,e),l=l.sibling;return li(t,rt.current&1|2),_e&&Al(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Et()>Vu&&(t.flags|=128,i=!0,ci(a,!1),t.lanes=4194304)}else{if(!i)if(e=yu(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Du(t,e),ci(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!_e)return Ge(t),null}else 2*Et()-a.renderingStartTime>Vu&&l!==536870912&&(t.flags|=128,i=!0,ci(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}if(a.tail!==null){e=a.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Et(),e.sibling=null,u=rt.current,u=i?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||_e?li(t,u):(l=u,He(ot,t),He(rt,l),mt===null&&(mt=t)),_e&&Al(t,a.treeForkCount),e}return Ge(t),null;case 22:case 23:return Ct(t),ys(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),l=t.updateQueue,l!==null&&Du(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&Ze(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wl($e),Ge(t),null;case 25:return null;case 30:return t.flags|=33554432,Ge(t),null}throw Error(o(156,t.tag))}function ug(e,t){switch(ls(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wl($e),Ya(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ui(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(o(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ps(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ya(),null;case 10:return wl(t.type),null;case 22:case 23:return Ct(t),ys(),e!==null&&Ze(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wl($e),null;case 25:return null;default:return null}}function Pd(e,t){switch(ls(t),t.tag){case 3:wl($e),Ya();break;case 26:case 27:case 5:Ui(t);break;case 4:Ya();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:ps(t);break;case 10:wl(t.type);break;case 22:case 23:Ct(t),ys(),e!==null&&Ze(Ta);break;case 24:wl($e)}}function si(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var u=l.create,r=l.inst;a=u(),r.destroy=a}l=l.next}while(l!==i)}}catch(d){qe(t,t.return,d)}}function Jl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){var r=a.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,i=t;var y=l,w=d;try{w()}catch(z){qe(i,y,z)}}}a=a.next}while(a!==u)}}catch(z){qe(t,t.return,z)}}function eh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Vf(t,l)}catch(a){qe(e,e.return,a)}}}function th(e,t,l){l.props=Na(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){qe(e,t,a)}}function cl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var i=e.stateNode,u=Sl(e.memoizedProps,i);(i.ref===null||i.ref.name!==u)&&(i.ref=sm(u)),a=i.ref;break;case 7:if(e.stateNode===null){var r=new Ht(e);g(e.child,!1,Fg,r,void 0,void 0),e.stateNode=r}a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(d){qe(e,t,d)}}function ft(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){qe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){qe(e,t,i)}else l.current=null}function Cu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)mm(e.stateNode,t[l])}function lh(e){for(var t=e.return;t!==null&&($s(t)&&mm(e.stateNode,t.stateNode),!Js(t));)t=t.return}function oi(e){for(var t=e.return;t!==null&&($s(t)&&Wg(e.stateNode,t.stateNode),!Js(t));)t=t.return}function Js(e){return e.tag===5||e.tag===3||e.tag===27}function $s(e){return e&&e.tag===7&&e.stateNode!==null}function Fs(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){qe(e,e.return,i)}}function Ws(e,t,l){try{var a=e.stateNode;Cg(a,e.type,l,t),a[St]=t}catch(i){qe(e,e.return,i)}}function ah(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ta(e.type)||e.tag===4}function Is(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ah(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ta(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ps(e,t,l,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(i,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(i),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=nl)),Cu(e,a),je=!0;else if(i!==4&&(i===27&&(Cu(e,a),a=null,ta(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Ps(e,t,l,a),e=e.sibling;e!==null;)Ps(e,t,l,a),e=e.sibling}function qu(e,t,l,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?l.insertBefore(i,t):l.appendChild(i),Cu(e,a),je=!0;else if(i!==4&&(i===27&&(Cu(e,a),a=null,ta(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(qu(e,t,l,a),e=e.sibling;e!==null;)qu(e,t,l,a),e=e.sibling}function nh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[St]=l}catch(u){qe(e,e.return,u)}}var Ou=!1,qt=null;function ih(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Ou=!0)}var sl=null;function uh(){var e=sl;return sl=null,e}var _t=0;function rn(e,t,l,a,i){return _t=0,ch(e.child,t,l,a,i)}function ch(e,t,l,a,i){for(var u=!1;e!==null;){if(e.tag===5){var r=e.stateNode;if(a!==null){var d=Ho(r);a.push(d),d.view&&(u=!0)}else u||Ho(r).view&&(u=!0);Ou=!0,um(r,_t===0?t:t+"_"+_t,l),_t++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||ch(e.child,t,l,a,i)&&(u=!0));e=e.sibling}return u}function ol(e,t){for(;e!==null;)e.tag===5?cm(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||ol(e.child,t)),e=e.sibling}function Ru(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ru(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(o(544));var l=t.name;t=Tl(t.default,t.share),t!=="none"&&(rn(e,l,t,null,!1)||ol(e.child,!1))}e=e.sibling}}function eo(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,i=Sl(a,l),u=Tl(a.default,l.paired?a.share:a.enter);u!=="none"?rn(e,i,u,null,!1)?(Ru(e),l.paired||t||pn(e,a.onEnter)):ol(e.child,!1):Ru(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)eo(e,t),e=e.sibling;else Ru(e)}function to(e){if(qt!==null&&qt.size!==0){var t=qt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var i=t.get(a);if(i!==void 0){var u=Tl(l.default,l.share);if(u!=="none"&&(rn(e,a,u,null,!1)?(u=e.stateNode,i.paired=u,u.paired=i,pn(e,l.onShare)):ol(e.child,!1)),t.delete(a),t.size===0)break}}}to(e)}e=e.sibling}}}function lo(e){if(e.tag===30){var t=e.memoizedProps,l=Sl(t,e.stateNode),a=qt!==null?qt.get(l):void 0,i=Tl(t.default,a!==void 0?t.share:t.exit);i!=="none"&&(rn(e,l,i,null,!1)?a!==void 0?(i=e.stateNode,a.paired=i,i.paired=a,qt.delete(l),pn(e,t.onShare)):pn(e,t.onExit):ol(e.child,!1)),qt!==null&&to(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)lo(e),e=e.sibling;else qt!==null&&to(e)}function sh(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=Sl(t,e.stateNode);t=Tl(t.default,t.update),e.flags&=-5,t!=="none"&&rn(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&sh(e);e=e.sibling}}function ao(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,ol(e.child,!1))}ao(e)}e=e.sibling}}function Uu(e){if(e.tag===30)e.stateNode.paired=null,ol(e.child,!1),ao(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Uu(e),e=e.sibling;else ao(e)}function oh(e){for(e=e.child;e!==null;)e.tag===30?ol(e.child,!1):(e.subtreeFlags&33554432)!==0&&oh(e),e=e.sibling}function no(e,t,l,a,i,u,r){for(var d=!1;t!==null;){if(t.tag===5){var y=t.stateNode;if(u!==null&&_t<u.length){var w=u[_t],z=Ho(y);(w.view||z.view)&&(d=!0);var R;if(R=(e.flags&4)===0)if(z.clip)R=!0;else{R=w.rect;var A=z.rect;R=R.y!==A.y||R.x!==A.x||R.height!==A.height||R.width!==A.width}R&&(e.flags|=4),z.abs?z=!w.abs:(w=w.rect,z=z.rect,z=w.height!==z.height||w.width!==z.width),z&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&um(y,_t===0?l:l+"_"+_t,i),d&&(e.flags&4)!==0||(sl===null&&(sl=[]),sl.push(y,_t===0?a:a+"_"+_t,t.memoizedProps)),_t++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&r?e.flags|=t.flags&32:no(e,t.child,l,a,i,u,r)&&(d=!0));t=t.sibling}return d}function rh(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,i=Sl(l,a),u=Tl(l.default,l.update),r;r=e.memoizedState,e.memoizedState=null,a=e;var d=e.child;_t=0,i=no(a,d,i,i,u,r,!1),(e.flags&4)!==0&&i&&pn(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&rh(e);e=e.sibling}}var it=!1,De=!1,rl=!1,io=!1,fh=typeof WeakSet=="function"?WeakSet:Set,ut=null,fl=!1,ri=!1,Hu=!1,uo=!1;function cg(e,t,l){if(e=e.containerInfo,Co=jn,e=gf(e),kc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,y=-1,w=-1,z=0,R=0,A=e,j=null;t:for(;;){for(var K;A!==a||u!==0&&A.nodeType!==3||(y=d+u),A!==r||i!==0&&A.nodeType!==3||(w=d+i),A.nodeType===3&&(d+=A.nodeValue.length),(K=A.firstChild)!==null;)j=A,A=K;for(;;){if(A===e)break t;if(j===a&&++z===u&&(y=d),j===r&&++R===i&&(w=d),(K=A.nextSibling)!==null)break;A=j,j=A.parentNode}A=K}a=y===-1||w===-1?null:{start:y,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(qo={focusedElem:e,selectionRange:a},jn=!1,l=(l&335544064)===l,ut=t,t=l?9270:1024;ut!==null;){if(e=ut,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&lo(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&ih(e),Bu(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&lo(a),Bu(l);continue}else if(a!==null&&a.memoizedState!==null){l&&ih(e),Bu(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,ut=a):(l&&sh(e),Bu(l))}}qt=null}function Bu(e){for(;ut!==null;){var t=ut,l=e,a=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&a!==null){l=void 0,i=a.memoizedProps,a=a.memoizedState;var u=t.stateNode;try{var r=Na(t.type,i);l=u.getSnapshotBeforeUpdate(r,a),u.__reactInternalSnapshotBeforeUpdate=l}catch(d){qe(t,t.return,d)}}break;case 3:if((i&1024)!==0){if(a=t.stateNode.containerInfo,l=a.nodeType,l===9)Go(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Go(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=Sl(a.memoizedProps,a.stateNode),i=t.memoizedProps,i=Tl(i.default,i.update),i!=="none"&&rn(a,l,i,a.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(o(163))}if(a=t.sibling,a!==null){a.return=t.return,ut=a;break}ut=t.return}}function dh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:dl(e,l),a&4&&si(5,l);break;case 1:if(dl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){qe(l,l.return,r)}else{var i=Na(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){qe(l,l.return,r)}}a&64&&eh(l),a&512&&cl(l,l.return);break;case 3:if(dl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Vf(e,t)}catch(r){qe(l,l.return,r)}}break;case 27:t===null&&a&4&&nh(l);case 26:case 5:dl(e,l),t===null&&a&4&&Fs(l),a&512&&cl(l,l.return);break;case 12:dl(e,l);break;case 31:dl(e,l),a&4&&yh(e,l);break;case 13:dl(e,l),a&4&&vh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=bg.bind(null,l),ey(e,l))));break;case 22:if(a=l.memoizedState!==null||it,!a){var u=t!==null&&t.memoizedState!==null||De;t=it,i=De,it=a,(De=u)&&!i?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),Pt(e,l,a)):dl(e,l),it=t,De=i}break;case 30:dl(e,l),a&512&&cl(l,l.return);break;case 7:a&512&&cl(l,l.return);default:dl(e,l)}}function co(e,t){for(e=e.child;e!==null;)hh(e,t),e=e.sibling}function hh(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var a=l.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var i=e.stateNode,u=e.memoizedProps.style,r=u!=null&&u.hasOwnProperty("display")?u.display:null;i.style.display=r==null||typeof r=="boolean"?"":(""+r).trim()}}catch(y){qe(e,e.return,y)}so(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,je=!0}catch(y){qe(e,e.return,y)}break;case 18:try{var d=e.stateNode;t?im(d,!0):im(e.stateNode,!1)}catch(y){qe(e,e.return,y)}break;case 22:case 23:e.memoizedState===null&&co(e,t);break;default:co(e,t)}}function so(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:hh(l,a);break e;case 22:l.memoizedState===null&&so(l,a);break e;default:so(l,a)}}e=e.sibling}}function mh(e){var t=e.alternate;t!==null&&(e.alternate=null,mh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Vi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Le=null,At=!1;function Wt(e,t,l){for(l=l.child;l!==null;)gh(e,t,l),l=l.sibling}function gh(e,t,l){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(qn,l)}catch{}switch(l.tag){case 26:De||ft(l,t),Wt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!De&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:De||ft(l,t),oi(l);var a=Le,i=At;ta(l.type)&&(Le=l.stateNode,At=!1),Wt(e,t,l),bm(l.stateNode,l.type,l.memoizedProps),Le=a,At=i;break;case 5:De||ft(l,t),oi(l);case 6:if(l.tag===6&&oi(l),a=Le,i=At,Le=null,Wt(e,t,l),Le=a,At=i,Le!==null)if(At)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(l.stateNode),je=!0}catch(u){qe(l,t,u)}else try{Le.removeChild(l.stateNode),je=!0}catch(u){qe(l,t,u)}break;case 18:Le!==null&&(At?(e=Le,nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Mn(e)):nm(Le,l.stateNode));break;case 4:a=Le,i=At,Le=l.stateNode.containerInfo,At=!0,Wt(e,t,l),Le=a,At=i;break;case 0:case 11:case 14:case 15:Jl(2,l,t),De||Jl(4,l,t),Wt(e,t,l);break;case 1:De||(ft(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&th(l,t,a)),Wt(e,t,l);break;case 21:Wt(e,t,l);break;case 22:De=(a=De)||l.memoizedState!==null,Wt(e,t,l),De=a;break;case 30:ft(l,t),Wt(e,t,l);break;case 7:De||ft(l,t),Wt(e,t,l);break;default:Wt(e,t,l)}}function yh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Mn(e)}catch(l){qe(t,t.return,l)}}}function vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Mn(e)}catch(l){qe(t,t.return,l)}}function sg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fh),t;default:throw Error(o(435,e.tag))}}function Yu(e,t){var l=sg(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=Sg.bind(null,e,a);a.then(i,i)}})}function vt(e,t,l){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],r=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(ta(y.type)){Le=y.stateNode,At=!1;break e}break;case 5:Le=y.stateNode,At=!1;break e;case 3:case 4:Le=y.stateNode.containerInfo,At=!0;break e}y=y.return}if(Le===null)throw Error(o(160));gh(r,d,u),Le=null,At=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ph(t,e,l),t=t.sibling}var It=null;function ph(e,t,l){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var u=0;u<a.length;u++){var r=a[u];r.ref.impl=r.nextImpl}vt(t,e,l),pt(e),i&4&&(Jl(3,e,e.return),si(3,e),Jl(5,e,e.return));break;case 1:vt(t,e,l),pt(e),i&512&&(De||a===null||ft(a,a.return)),i&64&&it&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=It,vt(t,e,l),pt(e),i&512&&(De||a===null||ft(a,a.return)),i&4)if(i=a!==null?a.memoizedState:null,l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null)if(it)e.stateNode=tm(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,i=u.ownerDocument||u;t:switch(t){case"title":a=i.getElementsByTagName("title")[0],(!a||a[Un]||a[ct]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(t),i.head.insertBefore(a,i.querySelector("head > title"))),dt(a,t,l),a[ct]=e,at(a),t=a;break e;case"link":if(u=wm("link","href",i).get(t+(l.href||""))){for(r=0;r<u.length;r++)if(a=u[r],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(r,1);break t}}a=i.createElement(t),dt(a,t,l),i.head.appendChild(a);break;case"meta":if(u=wm("meta","content",i).get(t+(l.content||""))){for(r=0;r<u.length;r++)if(a=u[r],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(r,1);break t}}a=i.createElement(t),dt(a,t,l),i.head.appendChild(a);break;default:throw Error(o(468,t))}a[ct]=e,at(a),t=a}e.stateNode=t}else it||Ko(u,e.type,e.stateNode);else e.stateNode=xm(u,l,e.memoizedProps);else i!==l?(i===null?(t=a.stateNode,t===null||De||t.parentNode.removeChild(t)):i.count--,l===null?it||Ko(u,e.type,e.stateNode):xm(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ws(e,e.memoizedProps,a.memoizedProps);break;case 27:vt(t,e,l),pt(e),i&512&&(De||a===null||ft(a,a.return)),a!==null&&i&4&&Ws(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=rl,rl=!1,vt(t,e,l),rl=u,pt(e),i&512&&(De||a===null||ft(a,a.return)),e.flags&32){t=e.stateNode;try{Za(t,""),je=!0}catch(z){qe(e,e.return,z)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Ws(e,t,a!==null?a.memoizedProps:t)),i&1024&&(io=!0);break;case 6:if(vt(t,e,l),pt(e),i&4){if(e.stateNode===null)throw Error(o(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,je=!0}catch(z){qe(e,e.return,z)}}break;case 3:if(je=!1,ec=null,u=It,It=bi(t.containerInfo),vt(t,e,l),It=u,pt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Mn(t.containerInfo)}catch(z){qe(e,e.return,z)}io&&(io=!1,bh(e)),je=!1;break;case 4:i=rl,rl=it,a=Br(),u=It,It=bi(e.stateNode.containerInfo),vt(t,e,l),pt(e),It=u,je&&ri&&(Hu=!0),je=a,rl=i;break;case 12:vt(t,e,l),pt(e);break;case 31:vt(t,e,l),pt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Yu(e,t)));break;case 13:vt(t,e,l),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Lu=Et()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Yu(e,t)));break;case 22:u=e.memoizedState!==null,r=a!==null&&a.memoizedState!==null;var d=it,y=De,w=rl;it=d||u,rl=w||u,De=y||r,vt(t,e,l),De=y,rl=w,it=d,pt(e),i&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||r||it||De||(t=r||De,l=it,a=De,it=u||it,De=t,$l(e,2),it=l,De=a),!u&&rl||co(e,u)),i&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,Yu(e,l))));break;case 19:vt(t,e,l),pt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Yu(e,t)));break;case 30:i&512&&(De||a===null||ft(a,a.return)),i=Br(),u=ri,r=(l&335544064)===l,d=e.memoizedProps,ri=r&&Tl(d.default,d.update)!=="none",vt(t,e,l),pt(e),r&&a!==null&&je&&(e.flags|=4),ri=u,je=i;break;case 21:break;case 7:i&512&&(De||a===null||ft(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:vt(t,e,l),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ah(a)){l=a;break}a=a.return}a=null;for(var i=e.return;i!==null;){if($s(i)){var u=i.stateNode;a===null?a=[u]:a.push(u)}if(Js(i))break;i=i.return}var r=a;if(l==null)throw Error(o(160));switch(l.tag){case 27:var d=l.stateNode,y=Is(e);qu(e,y,d,r);break;case 5:var w=l.stateNode;l.flags&32&&(Za(w,""),l.flags&=-33);var z=Is(e);qu(e,z,w,r);break;case 3:case 4:var R=l.stateNode.containerInfo,A=Is(e);Ps(e,A,R,r);break;default:throw Error(o(161))}}catch(j){qe(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bh(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,jn=!0,t.reset(),jn=!1),e=e.sibling}}function fn(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Sh(t,e),t=t.sibling;else rh(t)}function Sh(e,t){var l=e.alternate;if(l===null)eo(e,!1);else switch(e.tag){case 3:if(uo=fl=!1,uh(),fn(t,e),!fl&&!Hu){if(e=sl,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var i=e[a+1];cm(l,e[a+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),uo=!0}sl=null;break;case 5:fn(t,e);break;case 4:a=fl,fl=!1,fn(t,e),fl&&(Hu=!0),fl=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?eo(e,!1):fn(t,e));break;case 30:a=fl,i=uh(),fl=!1,fn(t,e),fl&&(e.flags|=4);var u=e.memoizedProps,r=e.stateNode;t=Sl(u,r),r=Sl(l.memoizedProps,r);var d=Tl(u.default,u.update);d==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,_t=0,t=no(e,l,t,r,d,u,!0),_t!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(pn(e,e.memoizedProps.onUpdate),sl=i):i!==null&&(i.push.apply(i,sl),sl=i),fl=(e.flags&32)!==0?!0:a;break;default:fn(t,e)}}function dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dh(e,t.alternate,t),t=t.sibling}function $l(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:Jl(4,l,l.return),$l(l,a);break;case 1:ft(l,l.return);var i=l.stateNode;typeof i.componentWillUnmount=="function"&&th(l,l.return,i),$l(l,a);break;case 27:(a&2)!==0&&bm(l.stateNode,l.type,l.memoizedProps);case 5:ft(l,l.return),l.tag!==5&&l.tag!==27||oi(l),$l(l,a);break;case 6:oi(l);break;case 26:ft(l,l.return),i=l.stateNode,l.memoizedState!==null||i===null||De||i.parentNode.removeChild(i),$l(l,a);break;case 22:l.memoizedState===null&&$l(l,a);break;case 30:ft(l,l.return),$l(l,a);break;case 7:ft(l,l.return);default:$l(l,a)}e=e.sibling}}function Pt(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var a=t.alternate,i=e,u=t,r=u.flags,d=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:Pt(i,u,l),si(4,u);break;case 1:if(Pt(i,u,l),a=u,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(z){qe(a,a.return,z)}if(a=u,i=a.updateQueue,i!==null){var y=a.stateNode;try{var w=i.shared.hiddenCallbacks;if(w!==null)for(i.shared.hiddenCallbacks=null,i=0;i<w.length;i++)Lf(w[i],y)}catch(z){qe(a,a.return,z)}}d&&r&64&&eh(u),cl(u,u.return);break;case 27:(l&2)!==0&&nh(u);case 5:u.tag!==5&&u.tag!==27||lh(u),Pt(i,u,l),d&&a===null&&r&4&&Fs(u),cl(u,u.return);break;case 6:lh(u);break;case 26:y=u.stateNode,u.memoizedState!==null||y===null||it||Ko(bi(y.ownerDocument),u.type,y),Pt(i,u,l),d&&a===null&&r&4&&Fs(u),cl(u,u.return);break;case 12:Pt(i,u,l);break;case 31:Pt(i,u,l),d&&r&4&&yh(i,u);break;case 13:Pt(i,u,l),d&&r&4&&vh(i,u);break;case 22:u.memoizedState===null&&Pt(i,u,l),cl(u,u.return);break;case 30:Pt(i,u,l),cl(u,u.return);break;case 7:cl(u,u.return);default:Pt(i,u,l)}t=t.sibling}}function oo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&$n(l))}function ro(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$n(e))}function Zt(e,t,l,a){var i=(l&335544064)===l;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Th(e,t,l,a),t=t.sibling;else i&&oh(t)}function Th(e,t,l,a){var i=(l&335544064)===l;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Uu(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,l,a),u&2048&&si(9,t);break;case 1:Zt(e,t,l,a);break;case 3:Zt(e,t,l,a),i&&uo&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&$n(u)));break;case 12:if(u&2048){Zt(e,t,l,a),u=t.stateNode;try{var r=t.memoizedProps,d=r.id,y=r.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(w){qe(t,t.return,w)}}else Zt(e,t,l,a);break;case 31:Zt(e,t,l,a);break;case 13:Zt(e,t,l,a);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?(i&&d!==null&&d.memoizedState===null&&Uu(d),r._visibility&2?Zt(e,t,l,a):fi(e,t)):(i&&d!==null&&d.memoizedState!==null&&Uu(t),r._visibility&2?Zt(e,t,l,a):(r._visibility|=2,dn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1))),u&2048&&oo(d,t);break;case 24:Zt(e,t,l,a),u&2048&&ro(t.alternate,t);break;case 30:i&&(u=t.alternate,u!==null&&(ol(u.child,!0),ol(t.child,!0))),Zt(e,t,l,a);break;default:Zt(e,t,l,a)}}function dn(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,r=t,d=l,y=a,w=r.flags;switch(r.tag){case 0:case 11:case 15:dn(u,r,d,y,i),si(8,r);break;case 23:break;case 22:var z=r.stateNode;r.memoizedState!==null?z._visibility&2?dn(u,r,d,y,i):fi(u,r):(z._visibility|=2,dn(u,r,d,y,i)),i&&w&2048&&oo(r.alternate,r);break;case 24:dn(u,r,d,y,i),i&&w&2048&&ro(r.alternate,r);break;default:dn(u,r,d,y,i)}t=t.sibling}}function fi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:fi(l,a),i&2048&&oo(a.alternate,a);break;case 24:fi(l,a),i&2048&&ro(a.alternate,a);break;default:fi(l,a)}t=t.sibling}}var Ea=8192;function ja(e,t,l){if(e.subtreeFlags&Ea)for(e=e.child;e!==null;)_h(e,t,l),e=e.sibling}function _h(e,t,l){switch(e.tag){case 26:ja(e,t,l),e.flags&Ea&&(e.memoizedState!==null?my(l,It,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Mm(l,e)));break;case 5:ja(e,t,l),e.flags&Ea&&(e=e.stateNode,(t&335544128)===t&&Mm(l,e));break;case 3:case 4:var a=It;It=bi(e.stateNode.containerInfo),ja(e,t,l),It=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ea,Ea=16777216,ja(e,t,l),Ea=a):ja(e,t,l));break;case 30:if((e.flags&Ea)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var i=e.stateNode;i.paired=null,qt===null&&(qt=new Map),qt.set(a,i)}ja(e,t,l);break;default:ja(e,t,l)}}function Ah(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ut=a,wh(a,e)}Ah(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xh(e),e=e.sibling}function xh(e){switch(e.tag){case 0:case 11:case 15:di(e),e.flags&2048&&Jl(9,e,e.return);break;case 3:di(e);break;case 12:di(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gu(e)):di(e);break;default:di(e)}}function Gu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ut=a,wh(a,e)}Ah(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jl(8,t,t.return),Gu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Gu(t));break;default:Gu(t)}e=e.sibling}}function wh(e,t){for(;ut!==null;){var l=ut;switch(l.tag){case 0:case 11:case 15:Jl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:$n(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ut=a;else e:for(l=e;ut!==null;){a=ut;var i=a.sibling,u=a.return;if(mh(a),a===l){ut=null;break e}if(i!==null){i.return=u,ut=i;break e}ut=u}}}var og={getCacheForType:function(e){var t=st($e),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return st($e).controller.signal}},rg=typeof WeakMap=="function"?WeakMap:Map,Me=0,Be=null,Ae=null,we=0,Ce=0,Ot=null,Fl=!1,hn=!1,fo=!1,zl=0,Ke=0,Wl=0,Ma=0,Qu=0,Rt=0,mn=0,hi=null,xt=null,ho=!1,Lu=0,Nh=0,Vu=1/0,Xu=null,Il=null,Xe=0,el=null,za=null,hl=0,mo=0,go=null,Eh=null,gn=null,yn=null,vn=null,mi=0,Zu=null;function Ut(){return(Me&2)!==0&&we!==0?we&-we:ee.T!==null?wo():Mr()}function jh(){if(Rt===0)if((we&536870912)===0||_e){var e=Yi;Yi<<=1,(Yi&3932160)===0&&(Yi=262144),Rt=e}else Rt=536870912;return e=ot.current,e!==null&&(e.flags|=32),Rt}function pn(e,t){if(t!=null){var l=e.stateNode,a=l.ref;a===null&&(a=l.ref=sm(Sl(e.memoizedProps,l))),yn===null&&(yn=[]),yn.push(t.bind(null,a))}}function wt(e,t,l){(e===Be&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(bn(e,0),Pl(e,we,Rt,!1)),Rn(e,l),((Me&2)===0||e!==Be)&&(e===Be&&((Me&2)===0&&(Ma|=l),Ke===4&&Pl(e,we,Rt,!1)),ml(e))}function Mh(e,t,l){if((Me&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||On(e,t),i=a?hg(e,t):vo(e,t,!0),u=a;do{if(i===0){hn&&!a&&Pl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!fg(l)){i=vo(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;i=hi;var y=d.current.memoizedState.isDehydrated;if(y&&(bn(d,r).flags|=256),r=vo(d,r,!1),r!==2&&r!==6){if(fo&&!y){d.errorRecoveryDisabledLanes|=u,Ma|=u,i=4;break e}u=xt,xt=i,u!==null&&(xt===null?xt=u:xt.push.apply(xt,u))}i=r}if(u=!1,i!==2)continue}}if(i===1){bn(e,0),Pl(e,t,0,!0);break}e:{switch(a=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Pl(a,t,Rt,!Fl);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Lu+300-Et(),10<i)){if(Pl(a,t,Rt,!Fl),Qi(a,0,!0)!==0)break e;hl=t,a.timeoutHandle=Uo(zh.bind(null,a,l,xt,Xu,ho,t,Rt,Ma,mn,Fl,u,"Throttled",-0,0),i);break e}zh(a,l,xt,Xu,ho,t,Rt,Ma,mn,Fl,u,null,-0,0)}}break}while(!0);ml(e)}function zh(e,t,l,a,i,u,r,d,y,w,z,R,A,j){e.timeoutHandle=-1;var K=t.subtreeFlags,ue=(u&335544064)===u;if(R=null,(ue||K&8192||(K&16785408)===16785408)&&(R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nl},qt=null,_h(t,u,R),ue&&(K=R,ue=e.containerInfo,ue=(ue.nodeType===9?ue:ue.ownerDocument).__reactViewTransition,ue!=null&&(K.count++,K.waitingForViewTransition=!0,K=_i.bind(K),ue.finished.then(K,K))),K=(u&62914560)===u?Lu-Et():(u&4194048)===u?Nh-Et():0,K=gy(R,K),K!==null)){hl=u,e.cancelPendingCommit=K(Bh.bind(null,e,t,u,l,a,i,r,d,y,w,z,R,null,A,j)),Pl(e,u,r,!w);return}Bh(e,t,u,l,a,i,r,d,y,w,z,R)}function fg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],u=i.getSnapshot;i=i.value;try{if(!Dt(u(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pl(e,t,l,a){t=xr(e,t),t&=~Qu,t&=~Ma,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var u=31-Mt(i),r=1<<u;a[u]=-1,i&=~r}l!==0&&Nr(e,l,t)}function ku(){return(Me&6)===0?(gi(0),!1):!0}function yo(){if(Ae!==null){if(Ce===0)var e=Ae.return;else e=Ae,xl=va=null,As(e),nn=null,In=0,e=Ae;for(;e!==null;)Pd(e.alternate,e),e=e.return;Ae=null}}function bn(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Rg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),hl=0,yo(),Be=e,Ae=l=_l(e.current,null),we=t,Ce=0,Ot=null,Fl=!1,hn=On(e,t),fo=!1,mn=Rt=Qu=Ma=Wl=Ke=0,xt=hi=null,ho=!1,zl=xr(e,t),eu(),l}function Dh(e,t){ye=null,ee.H=wu,t===an||t===fu?(t=Bf(),Ce=3):t===rs?(t=Bf(),Ce=4):Ce=t===Bs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,Ae===null&&(Ke=1,Nu(e,Qt(t,e.current)))}function Ch(){var e=ot.current;return e===null?!0:(we&4194048)===we?mt===null:(we&62914560)===we||(we&536870912)!==0?e===mt:!1}function qh(){var e=ee.H;return ee.H=wu,e===null?wu:e}function Oh(){var e=ee.A;return ee.A=og,e}function Ku(){Ke=4,Fl||(we&4194048)!==we&&ot.current!==null||(hn=!0),(Wl&134217727)===0&&(Ma&134217727)===0||Be===null||Pl(Be,we,Rt,!1)}function vo(e,t,l){var a=Me;Me|=2;var i=qh(),u=Oh();(Be!==e||we!==t)&&(Xu=null,bn(e,t)),t=!1;var r=Ke;e:do try{if(Ce!==0&&Ae!==null){var d=Ae,y=Ot;switch(Ce){case 8:yo(),r=6;break e;case 3:case 2:case 9:case 6:ot.current===null&&(t=!0);var w=Ce;if(Ce=0,Ot=null,Sn(e,d,y,w),l&&hn){r=0;break e}break;default:w=Ce,Ce=0,Ot=null,Sn(e,d,y,w)}}dg(),r=Ke;break}catch(z){Dh(e,z)}while(!0);return t&&e.shellSuspendCounter++,xl=va=null,Me=a,ee.H=i,ee.A=u,Ae===null&&(Be=null,we=0,eu()),r}function dg(){for(;Ae!==null;)Rh(Ae)}function hg(e,t){var l=Me;Me|=2;var a=qh(),i=Oh();Be!==e||we!==t?(Xu=null,Vu=Et()+500,bn(e,t)):hn=On(e,t);e:do try{if(Ce!==0&&Ae!==null){t=Ae;var u=Ot;t:switch(Ce){case 1:Ce=0,Ot=null,Sn(e,t,u,1);break;case 2:case 9:if(Uf(u)){Ce=0,Ot=null,Uh(t);break}t=function(){Ce!==2&&Ce!==9||Be!==e||(Ce=7),ml(e)},u.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:Uf(u)?(Ce=0,Ot=null,Uh(t)):(Ce=0,Ot=null,Sn(e,t,u,7));break;case 5:var r=null;switch(Ae.tag){case 26:r=Ae.memoizedState;case 5:case 27:var d=Ae;if(r?Em(r):d.stateNode.complete){Ce=0,Ot=null;var y=d.sibling;if(y!==null)Ae=y;else{var w=d.return;w!==null?(Ae=w,Ju(w)):Ae=null}break t}}Ce=0,Ot=null,Sn(e,t,u,5);break;case 6:Ce=0,Ot=null,Sn(e,t,u,6);break;case 8:yo(),Ke=6;break e;default:throw Error(o(462))}}mg();break}catch(z){Dh(e,z)}while(!0);return xl=va=null,ee.H=a,ee.A=i,Me=l,Ae!==null?0:(Be=null,we=0,eu(),Ke)}function mg(){for(;Ae!==null&&!D1();)Rh(Ae)}function Rh(e){var t=Wd(e.alternate,e,zl);e.memoizedProps=e.pendingProps,t===null?Ju(e):Ae=t}function Uh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Xd(l,t,t.pendingProps,t.type,void 0,we);break;case 11:t=Xd(l,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:As(t);var a=t;a===nt&&(_e?(uu(a),a.tag===5&&a.stateNode!=null&&(Ye=a.stateNode)):(uu(a),_e=!0));default:Pd(l,t),t=Ae=wf(t,zl),t=Wd(l,t,zl)}e.memoizedProps=e.pendingProps,t===null?Ju(e):Ae=t}function Sn(e,t,l,a){xl=va=null,As(t),nn=null,In=0;var i=t.return;try{if(tg(e,i,t,l,we)){Ke=1,Nu(e,Qt(l,e.current)),Ae=null;return}}catch(u){if(i!==null)throw Ae=i,u;Ke=1,Nu(e,Qt(l,e.current)),Ae=null;return}t.flags&32768?(_e||a===1?e=!0:hn||(we&536870912)!==0?e=!1:(Fl=e=!0,(a===2||a===9||a===3||a===6)&&(a=ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),Hh(t,e)):Ju(t)}function Ju(e){var t=e;do{if((t.flags&32768)!==0){Hh(t,Fl);return}e=t.return;var l=ig(t.alternate,t,zl);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Ke===0&&(Ke=5)}function Hh(e,t){do{var l=ug(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);Ke=6,Ae=null}function Bh(e,t,l,a,i,u,r,d,y,w,z,R){e.cancelPendingCommit=null;do $u();while(Xe!==0);if((Me&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));e===Be&&(Ae=Be=null,we=0),za=t,el=e,hl=l,go=i,Eh=a,gg(e,t,l,r,d,y,R)}}function gg(e,t,l,a,i,u,r){var d=t.lanes|t.childLanes;if(mo=d,d|=Wc,Q1(e,l,d,a,i,u),yn=null,(l&335544064)===l?(vn=V0(e),a=10262):(vn=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,Tg(Hi,function(){return To(),null})):(e.callbackNode=null,e.callbackPriority=0),Ou=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=ee.T,ee.T=null,i=oe.p,oe.p=2,u=Me,Me|=4;try{cg(e,t,l)}finally{Me=u,oe.p=i,ee.T=a}}Xe=1,Ou?gn=Qg(r,e.containerInfo,vn,po,bo,vg,So,To,yg):(po(),bo(),So())}function yg(e){if(Xe!==0){var t=el.onRecoverableError;t(e,{componentStack:null})}}function vg(){Xe===3&&(Xe=0,Sh(za,el),Xe=4)}function po(){if(Xe===1){Xe=0;var e=el,t=za,l=hl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=ee.T,ee.T=null;var i=oe.p;oe.p=2;var u=Me;Me|=4;try{ri=Hu=!1,ph(t,e,l),l=qo;var r=gf(e.containerInfo),d=l.focusedElem,y=l.selectionRange;if(r!==d&&d&&d.ownerDocument&&mf(d.ownerDocument.documentElement,d)){if(y!==null&&kc(d)){var w=y.start,z=y.end;if(z===void 0&&(z=w),"selectionStart"in d)d.selectionStart=w,d.selectionEnd=Math.min(z,d.value.length);else{var R=d.ownerDocument||document,A=R&&R.defaultView||window;if(A.getSelection){var j=A.getSelection(),K=d.textContent.length,ue=Math.min(y.start,K),ve=y.end===void 0?ue:Math.min(y.end,K);!j.extend&&ue>ve&&(r=ve,ve=ue,ue=r);var x=hf(d,ue),S=hf(d,ve);if(x&&S&&(j.rangeCount!==1||j.anchorNode!==x.node||j.anchorOffset!==x.offset||j.focusNode!==S.node||j.focusOffset!==S.offset)){var E=R.createRange();E.setStart(x.node,x.offset),j.removeAllRanges(),ue>ve?(j.addRange(E),j.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),j.addRange(E))}}}}for(R=[],j=d;j=j.parentNode;)j.nodeType===1&&R.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<R.length;d++){var O=R[d];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}jn=!!Co,qo=Co=null}finally{Me=u,oe.p=i,ee.T=a}}e.current=t,Xe=2}}function bo(){if(Xe===2){Xe=0;var e=el,t=za,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=ee.T,ee.T=null;var a=oe.p;oe.p=2;var i=Me;Me|=4;try{dh(e,t.alternate,t)}finally{Me=i,oe.p=a,ee.T=l}}Xe=3}}function So(){if(Xe===4||Xe===3){Xe=0;var e=gn;gn=null,C1();var t=el,l=za,a=hl,i=Eh,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Xe=5:(Xe=0,za=el=null,Yh(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(Il=null),jc(a),l=l.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(qn,l,void 0,(l.current.flags&128)===128)}catch{}if(i!==null){l=ee.T,u=oe.p,oe.p=2,ee.T=null;try{for(var r=t.onRecoverableError,d=0;d<i.length;d++){var y=i[d];r(y.value,{componentStack:y.stack})}}finally{ee.T=l,oe.p=u}}if(i=yn,r=vn,vn=null,i!==null&&(yn=null,r===null&&(r=[]),e!==null))for(y=0;y<i.length;y++)l=(0,i[y])(r),l!==void 0&&e.finished.finally(l);(hl&3)!==0&&$u(),ml(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===Zu?mi++:(mi=0,Zu=t):(mi=0,Zu=null),gi(0)}}function Yh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$n(t)))}function $u(){return gn!==null&&(gn.skipTransition(),gn=null),po(),bo(),So(),To()}function To(){if(Xe!==5)return!1;var e=el,t=mo;mo=0;var l=jc(hl),a=ee.T,i=oe.p;try{oe.p=32>l?32:l,ee.T=null,l=go,go=null;var u=el,r=hl;if(Xe=0,za=el=null,hl=0,(Me&6)!==0)throw Error(o(331));var d=Me;if(Me|=4,xh(u.current),Th(u,u.current,r,l),Me=d,gi(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(qn,u)}catch{}return!0}finally{oe.p=i,ee.T=a,Yh(e,t)}}function Gh(e,t,l){t=Qt(l,t),t=Hs(e.stateNode,t,2),e=Xl(e,t,2),e!==null&&(Rn(e,2),ml(e))}function qe(e,t,l){if(e.tag===3)Gh(e,e,l);else for(;t!==null;){if(t.tag===3){Gh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Il===null||!Il.has(a))){e=Qt(l,e),l=Ud(2),a=Xl(t,l,2),a!==null&&(Hd(l,a,t,e),Rn(a,2),ml(a));break}}t=t.return}}function _o(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new rg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(fo=!0,i.add(l),e=pg.bind(null,e,t,l),t.then(e,e))}function pg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Be===e&&(we&l)===l&&((Ke===4||Ke===3&&(we&62914560)===we&&300>Et()-Lu)&&(Me&2)===0?bn(e,0):Qu|=l,mn===we&&(mn=0)),ml(e)}function Qh(e,t){t===0&&(t=wr()),e=ma(e,t),e!==null&&(Rn(e,t),ml(e))}function bg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qh(e,l)}function Sg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Qh(e,l)}function Tg(e,t){return xc(e,t)}var Tn=null,_n=null,Ao=!1,Fu=!1,xo=!1,ea=0;function ml(e){e!==_n&&e.next===null&&(_n===null?Tn=_n=e:_n=_n.next=e),Fu=!0,Ao||(Ao=!0,Ag())}function gi(e,t){if(!xo&&Fu){xo=!0;do for(var l=!1,a=Tn;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var u=0;else{var r=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-Mt(42|e)+1)-1,u&=i&~(r&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Zh(a,u))}else u=we,u=Qi(a,a===Be?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||On(a,u)||(l=!0,Zh(a,u));a=a.next}while(l);xo=!1}}function _g(){Lh()}function Lh(){Fu=Ao=!1;var e=0;ea!==0&&Og()&&(e=ea);for(var t=Et(),l=null,a=Tn;a!==null;){var i=a.next,u=Vh(a,t);u===0?(a.next=null,l===null?Tn=i:l.next=i,i===null&&(_n=l)):(l=a,(e!==0||(u&3)!==0)&&(Fu=!0)),a=i}Xe!==0&&Xe!==5||gi(e),ea!==0&&(ea=0)}function Vh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var r=31-Mt(u),d=1<<r,y=i[r];y===-1?((d&l)===0||(d&a)!==0)&&(i[r]=G1(d,t)):y<=t&&(e.expiredLanes|=d),u&=~d}if(t=Be,l=we,l=Qi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&wc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||On(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&wc(a),jc(l)){case 2:case 8:l=_r;break;case 32:l=Hi;break;case 268435456:l=Ar;break;default:l=Hi}return a=Xh.bind(null,e),l=xc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&wc(a),e.callbackPriority=2,e.callbackNode=null,2}function Xh(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if($u()&&e.callbackNode!==l)return null;var a=we;return a=Qi(e,e===Be?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Mh(e,a,t),Vh(e,Et()),e.callbackNode!=null&&e.callbackNode===l?Xh.bind(null,e):null)}function Zh(e,t){if($u())return null;Mh(e,t,!0)}function Ag(){Ug(function(){(Me&6)!==0?xc(Tr,_g):Lh()})}function wo(){if(ea===0){var e=Sa;e===0&&(e=Bi,Bi<<=1,(Bi&261888)===0&&(Bi=256)),ea=e}return ea}function kh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ki(e)}function xg(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var u=kh((i[St]||null).action),r=a.submitter;r&&(t=(t=r[St]||null)?kh(t.formAction):r.getAttribute("formAction"),t!==null&&(u=t,r=null));var d=new Fi("action","action",null,a,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ea!==0){var y=new FormData(i,r);Cs(l,{pending:!0,data:y,method:i.method,action:u},null,y)}}else typeof u=="function"&&(d.preventDefault(),y=new FormData(i,r),Cs(l,{pending:!0,data:y,method:i.method,action:u},u,y))},currentTarget:i}]})}}for(var No=0;No<Fc.length;No++){var Eo=Fc[No],wg=Eo.toLowerCase(),Ng=Eo[0].toUpperCase()+Eo.slice(1);Ft(wg,"on"+Ng)}Ft(pf,"onAnimationEnd"),Ft(bf,"onAnimationIteration"),Ft(Sf,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(R0,"onTransitionRun"),Ft(U0,"onTransitionStart"),Ft(H0,"onTransitionCancel"),Ft(Tf,"onTransitionEnd"),Va("onMouseEnter",["mouseout","mouseover"]),Va("onMouseLeave",["mouseout","mouseover"]),Va("onPointerEnter",["pointerout","pointerover"]),Va("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Eg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yi));function Kh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var r=a.length-1;0<=r;r--){var d=a[r],y=d.instance,w=d.currentTarget;if(d=d.listener,y!==u&&i.isPropagationStopped())break e;u=d,i.currentTarget=w;try{u(i)}catch(z){Pi(z)}i.currentTarget=null,u=y}else for(r=0;r<a.length;r++){if(d=a[r],y=d.instance,w=d.currentTarget,d=d.listener,y!==u&&i.isPropagationStopped())break e;u=d,i.currentTarget=w;try{u(i)}catch(z){Pi(z)}i.currentTarget=null,u=y}}}}function xe(e,t){var l=t[Dr];l===void 0&&(l=t[Dr]=new Set);var a=e+"__bubble";l.has(a)||(Jh(t,e,2,!1),l.add(a))}function jo(e,t,l){var a=0;t&&(a|=4),Jh(l,e,a,t)}var Wu="_reactListening"+Math.random().toString(36).slice(2);function Mo(e){if(!e[Wu]){e[Wu]=!0,Or.forEach(function(l){l!=="selectionchange"&&(Eg.has(l)||jo(l,!1,e),jo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wu]||(t[Wu]=!0,jo("selectionchange",!1,t))}}function Jh(e,t,l,a){switch(Hm(t)){case 2:var i=by;break;case 8:i=Sy;break;default:i=$o}l=i.bind(null,t,l,e),i=void 0,!Uc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function zo(e,t,l,a,i){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var d=a.stateNode.containerInfo;if(d===i)break;if(r===4)for(r=a.return;r!==null;){var y=r.tag;if((y===3||y===4)&&r.stateNode.containerInfo===i)return;r=r.return}for(;d!==null;){if(r=ra(d),r===null)return;if(y=r.tag,y===5||y===6||y===26||y===27){a=u=r;continue e}d=d.parentNode}}a=a.return}Kr(function(){var w=u,z=Oc(l),R=[];e:{var A=_f.get(e);if(A!==void 0){var j=Fi,K=e;switch(e){case"keypress":if(Ji(l)===0)break e;case"keydown":case"keyup":j=f0;break;case"focusin":K="focus",j=Gc;break;case"focusout":K="blur",j=Gc;break;case"beforeblur":case"afterblur":j=Gc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=P1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=y0;break;case pf:case bf:case Sf:j=l0;break;case Tf:j=p0;break;case"scroll":case"scrollend":j=W1;break;case"wheel":j=S0;break;case"copy":case"cut":case"paste":j=n0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Ir;break;case"submit":j=m0;break;case"toggle":case"beforetoggle":j=_0}var ue=(t&4)!==0,ve=!ue&&(e==="scroll"||e==="scrollend"),x=ue?A!==null?A+"Capture":null:A;ue=[];for(var S=w,E;S!==null;){var O=S;if(E=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||E===null||x===null||(O=Bn(S,x),O!=null&&ue.push(vi(S,O,E))),ve)break;S=S.return}0<ue.length&&(A=new j(A,K,null,l,z),R.push({event:A,listeners:ue}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",j&&l!==qc&&(K=l.relatedTarget||l.fromElement)&&(ra(K)||K[Ga]))break e;(A||j)&&(K=z.window===z?z:(j=z.ownerDocument)?j.defaultView||j.parentWindow:window,A?(j=l.relatedTarget||l.toElement,A=w,j=j?ra(j):null,j!==null&&(ve=m(j),ue=j.tag,j!==ve||ue!==5&&ue!==27&&ue!==6)&&(j=null)):(A=null,j=w),A!==j&&(ue=Fr,O="onMouseLeave",x="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Ir,O="onPointerLeave",x="onPointerEnter",S="pointer"),ve=A==null?K:Hn(A),E=j==null?K:Hn(j),K=new ue(O,S+"leave",A,l,z),K.target=ve,K.relatedTarget=E,O=null,ra(z)===w&&(ue=new ue(x,S+"enter",j,l,z),ue.target=E,ue.relatedTarget=ve,O=ue),ve=O,ue=A&&j?H(A,j,jg):null,A!==null&&$h(R,K,A,ue,!1),j!==null&&ve!==null&&$h(R,ve,j,ue,!0)))}e:{if(A=w?Hn(w):window,j=A.nodeName&&A.nodeName.toLowerCase(),j==="select"||j==="input"&&A.type==="file")var te=cf;else if(nf(A))if(sf)te=C0;else{te=z0;var Ne=M0}else j=A.nodeName,!j||j.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?w&&Cc(w.elementType)&&(te=cf):te=D0;if(te&&(te=te(e,w))){uf(R,te,l,z);break e}Ne&&Ne(e,A,w)}switch(Ne=w?Hn(w):window,e){case"focusin":(nf(Ne)||Ne.contentEditable==="true")&&($a=Ne,Kc=w,kn=null);break;case"focusout":kn=Kc=$a=null;break;case"mousedown":Jc=!0;break;case"contextmenu":case"mouseup":case"dragend":Jc=!1,yf(R,l,z);break;case"selectionchange":if(O0)break;case"keydown":case"keyup":yf(R,l,z)}var se;if(Lc)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ja?lf(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(Pr&&l.locale!=="ko"&&(Ja||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ja&&(se=Jr()):(Rl=z,Hc="value"in Rl?Rl.value:Rl.textContent,Ja=!0)),Ne=Iu(w,de),0<Ne.length&&(de=new Wr(de,e,null,l,z),R.push({event:de,listeners:Ne}),se?de.data=se:(se=af(l),se!==null&&(de.data=se)))),(se=x0?w0(e,l):N0(e,l))&&(de=Iu(w,"onBeforeInput"),0<de.length&&(Ne=new Wr("onBeforeInput","beforeinput",null,l,z),R.push({event:Ne,listeners:de}),Ne.data=se)),xg(R,e,w,l,z)}Kh(R,t)})}function vi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Iu(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Bn(e,l),i!=null&&a.unshift(vi(e,i,u)),i=Bn(e,t),i!=null&&a.push(vi(e,i,u))),e.tag===3)return a;e=e.return}return[]}function jg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $h(e,t,l,a,i){for(var u=t._reactName,r=[];l!==null&&l!==a;){var d=l,y=d.alternate,w=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||w===null||(y=w,i?(w=Bn(l,u),w!=null&&r.unshift(vi(l,w,y))):i||(w=Bn(l,u),w!=null&&r.push(vi(l,w,y)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var Mg=/\r\n?/g,zg=/\u0000|\uFFFD/g;function Fh(e){return(typeof e=="string"?e:""+e).replace(Mg,`
|
|
9
|
+
`).replace(zg,"")}function Wh(e,t){return t=Fh(t),Fh(e)===t}function Oe(e,t,l,a,i,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Za(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Za(e,""+a);else return;break;case"className":Zi(e,"class",a);break;case"tabIndex":Zi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Zi(e,l,a);break;case"style":Zr(e,a,u);return;case"data":if(t!=="object"){Zi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ki(a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.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 u=="function"&&(l==="formAction"?(t!=="input"&&Oe(e,t,"name",i.name,i,null),Oe(e,t,"formEncType",i.formEncType,i,null),Oe(e,t,"formMethod",i.formMethod,i,null),Oe(e,t,"formTarget",i.formTarget,i,null)):(Oe(e,t,"encType",i.encType,i,null),Oe(e,t,"method",i.method,i,null),Oe(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ki(a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=nl);return;case"onScroll":a!=null&&xe("scroll",e);return;case"onScrollEnd":a!=null&&xe("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));u?.__html!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=ki(a),e.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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Xi(e,"popover",a);break;case"xlinkActuate":pl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":pl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":pl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":pl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":pl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":pl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":pl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":pl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":pl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Xi(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=$1.get(l)||l,Xi(e,l,a);else return}je=!0}function Do(e,t,l,a,i,u){switch(l){case"style":Zr(e,a,u);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));u?.__html!==l&&(e.innerHTML=l)}}break;case"children":if(typeof a=="string")Za(e,a);else if(typeof a=="number"||typeof a=="bigint")Za(e,""+a);else return;break;case"onScroll":a!=null&&xe("scroll",e);return;case"onScrollEnd":a!=null&&xe("scrollend",e);return;case"onClick":a!=null&&(e.onclick=nl);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Rr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),u=l.slice(2,i?l.length-7:void 0),t=e[St]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,i),typeof a=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,a,i);break e}je=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):Xi(e,l,a)}return}je=!0}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var a=!1,i=!1,u;for(u in l)if(l.hasOwnProperty(u)){var r=l[u];if(r!=null)switch(u){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,u,r,l,null)}}i&&Oe(e,t,"srcSet",l.srcSet,l,null),a&&Oe(e,t,"src",l.src,l,null);return;case"input":xe("invalid",e);var d=u=r=i=null,y=null,w=null;for(a in l)if(l.hasOwnProperty(a)){var z=l[a];if(z!=null)switch(a){case"name":i=z;break;case"type":r=z;break;case"checked":y=z;break;case"defaultChecked":w=z;break;case"value":u=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Oe(e,t,a,z,l,null)}}Qr(e,u,d,y,w,r,i,!1);return;case"select":xe("invalid",e),a=r=u=null;for(i in l)if(l.hasOwnProperty(i)&&(d=l[i],d!=null))switch(i){case"value":u=d;break;case"defaultValue":r=d;break;case"multiple":a=d;default:Oe(e,t,i,d,l,null)}t=u,l=r,e.multiple=!!a,t!=null?Xa(e,!!a,t,!1):l!=null&&Xa(e,!!a,l,!0);return;case"textarea":xe("invalid",e),u=i=a=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){case"value":a=d;break;case"defaultValue":i=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Oe(e,t,r,d,l,null)}Vr(e,a,i,u);return;case"option":for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null)&&(y==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Oe(e,t,y,a,l,null));return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(a=0;a<yi.length;a++)xe(yi[a],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in l)if(l.hasOwnProperty(w)&&(a=l[w],a!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,w,a,l,null)}return;default:if(Cc(t)){for(z in l)l.hasOwnProperty(z)&&(a=l[z],a!==void 0&&Do(e,t,z,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Oe(e,t,d,a,l,null))}var Dg={};function Cg(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,r=null,d=null,y=null,w=null,z=null;for(j in l){var R=l[j];if(l.hasOwnProperty(j)&&R!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":y=R;default:a.hasOwnProperty(j)||Oe(e,t,j,null,a,R)}}for(var A in a){var j=a[A];if(R=l[A],a.hasOwnProperty(A)&&(j!=null||R!=null))switch(A){case"type":j!==R&&(je=!0),u=j;break;case"name":j!==R&&(je=!0),i=j;break;case"checked":j!==R&&(je=!0),w=j;break;case"defaultChecked":j!==R&&(je=!0),z=j;break;case"value":j!==R&&(je=!0),r=j;break;case"defaultValue":j!==R&&(je=!0),d=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,t));break;default:j!==R&&Oe(e,t,A,j,a,R)}}zc(e,r,d,y,w,z,u,i);return;case"select":j=r=d=A=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":j=y;default:a.hasOwnProperty(u)||Oe(e,t,u,null,a,y)}for(i in a)if(u=a[i],y=l[i],a.hasOwnProperty(i)&&(u!=null||y!=null))switch(i){case"value":u!==y&&(je=!0),A=u;break;case"defaultValue":u!==y&&(je=!0),d=u;break;case"multiple":u!==y&&(je=!0),r=u;default:u!==y&&Oe(e,t,i,u,a,y)}t=d,l=r,a=j,A!=null?Xa(e,!!l,A,!1):!!a!=!!l&&(t!=null?Xa(e,!!l,t,!0):Xa(e,!!l,l?[]:"",!1));return;case"textarea":j=A=null;for(d in l)if(i=l[d],l.hasOwnProperty(d)&&i!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Oe(e,t,d,null,a,i)}for(r in a)if(i=a[r],u=l[r],a.hasOwnProperty(r)&&(i!=null||u!=null))switch(r){case"value":i!==u&&(je=!0),A=i;break;case"defaultValue":i!==u&&(je=!0),j=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&Oe(e,t,r,i,a,u)}Lr(e,A,j);return;case"option":for(var K in l)A=l[K],l.hasOwnProperty(K)&&A!=null&&!a.hasOwnProperty(K)&&(K==="selected"?e.selected=!1:Oe(e,t,K,null,a,A));for(y in a)A=a[y],j=l[y],a.hasOwnProperty(y)&&A!==j&&(A!=null||j!=null)&&(y==="selected"?(A!==j&&(je=!0),e.selected=A&&typeof A!="function"&&typeof A!="symbol"):Oe(e,t,y,A,a,j));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 ue in l)A=l[ue],l.hasOwnProperty(ue)&&A!=null&&!a.hasOwnProperty(ue)&&Oe(e,t,ue,null,a,A);for(w in a)if(A=a[w],j=l[w],a.hasOwnProperty(w)&&A!==j&&(A!=null||j!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:Oe(e,t,w,A,a,j)}return;default:if(Cc(t)){for(var ve in l)A=l[ve],l.hasOwnProperty(ve)&&A!==void 0&&!a.hasOwnProperty(ve)&&Do(e,t,ve,void 0,a,A);for(z in a)A=a[z],j=l[z],!a.hasOwnProperty(z)||A===j||A===void 0&&j===void 0||Do(e,t,z,A,a,j);return}}for(var x in l)A=l[x],l.hasOwnProperty(x)&&A!=null&&!a.hasOwnProperty(x)&&Oe(e,t,x,null,a,A);for(R in a)A=a[R],j=l[R],!a.hasOwnProperty(R)||A===j||A==null&&j==null||Oe(e,t,R,A,a,j)}function Ih(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],u=i.transferSize,r=i.initiatorType,d=i.duration;if(u&&d&&Ih(r)){for(r=0,d=i.responseEnd,a+=1;a<l.length;a++){var y=l[a],w=y.startTime;if(w>d)break;var z=y.transferSize,R=y.initiatorType;z&&Ih(R)&&(y=y.responseEnd,r+=z*(y<d?1:(d-w)/(y-w)))}if(--a,t+=8*(u+r)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Co=null,qo=null;function pi(e){return e.nodeType===9?e:e.ownerDocument}function Ph(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function em(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function tm(e,t,l,a){return l=pi(l).createElement(e),l[ct]=a,l[St]=t,dt(l,e,t),at(l),l}function Oo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ro=null;function Og(){var e=window.event;return e&&e.type==="popstate"?e===Ro?!1:(Ro=e,!0):(Ro=null,!1)}var Uo=typeof setTimeout=="function"?setTimeout:void 0,Rg=typeof clearTimeout=="function"?clearTimeout:void 0,lm=typeof Promise=="function"?Promise:void 0,am=typeof requestAnimationFrame=="function"?requestAnimationFrame:Uo,Ug=typeof queueMicrotask=="function"?queueMicrotask:typeof lm<"u"?function(e){return lm.resolve(null).then(e).catch(Hg)}:Uo;function Hg(e){setTimeout(function(){throw e})}function ta(e){return e==="head"}function nm(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),Mn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Xo(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Xo(l);for(var u=l.firstChild;u;){var r=u.nextSibling,d=u.nodeName;u[Un]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=r}}else l==="body"&&Xo(e.ownerDocument.body);l=i}while(l);Mn(t)}function im(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function um(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var i=a=0;i<t.length;i++){var u=t[i];0<u.width&&0<u.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function cm(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Bg(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function Ho(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return Bg(t,l,e)}function Yg(e){return e.documentElement.clientHeight}function Gg(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Qg(e,t,l,a,i,u,r,d,y){var w=t.nodeType===9?t:t.ownerDocument;try{var z=w.startViewTransition({update:function(){var A=w.defaultView,j=A.navigation&&A.navigation.transition,K=w.fonts.status;a();var ue=[];if(K==="loaded"&&(Yg(w),w.fonts.status==="loading"&&ue.push(w.fonts.ready)),K=ue.length,e!==null)for(var ve=e.suspenseyImages,x=0,S=0;S<ve.length;S++){var E=ve[S];if(!E.complete){var O=E.getBoundingClientRect();if(0<O.bottom&&0<O.right&&O.top<A.innerHeight&&O.left<A.innerWidth){if(x+=jm(E),x>tc){ue.length=K;break}E=new Promise(Gg.bind(E)),ue.push(E)}}}if(0<ue.length)return A=Promise.race([Promise.all(ue),new Promise(function(te){return setTimeout(te,500)})]).then(i,i),(j?Promise.allSettled([j.finished,A]):A).then(u,u);if(i(),j)return j.finished.then(u,u);u()},types:l});w.__reactViewTransition=z;var R=[];return z.ready.then(function(){for(var A=w.documentElement.getAnimations({subtree:!0}),j=0;j<A.length;j++){var K=A[j],ue=K.effect,ve=ue.pseudoElement;if(ve!=null&&ve.startsWith("::view-transition")){R.push(K),K=ue.getKeyframes();for(var x=ve=void 0,S=!0,E=0;E<K.length;E++){var O=K[E],te=O.width;if(ve===void 0)ve=te;else if(ve!==te){S=!1;break}if(te=O.height,x===void 0)x=te;else if(x!==te){S=!1;break}delete O.width,delete O.height,O.transform==="none"&&delete O.transform}S&&ve!==void 0&&x!==void 0&&(ue.setKeyframes(K),S=getComputedStyle(ue.target,ue.pseudoElement),S.width!==ve||S.height!==x)&&(S=K[0],S.width=ve,S.height=x,S=K[K.length-1],S.width=ve,S.height=x,ue.setKeyframes(K))}}r()},function(A){w.__reactViewTransition===z&&(w.__reactViewTransition=null);try{typeof A=="object"&&A!==null&&A.name==="InvalidStateError"&&(A.message==="View transition was skipped because document visibility state is hidden."||A.message==="Skipping view transition because document visibility state has become hidden."||A.message==="Skipping view transition because viewport size changed."||A.message==="Transition was aborted because of invalid state")&&(A=null),A!==null&&y(A)}finally{a(),i(),r()}}),z.finished.finally(function(){for(var A=0;A<R.length;A++)R[A].cancel();w.__reactViewTransition===z&&(w.__reactViewTransition=null),d()}),z}catch{return a(),i(),r(),null}}function Da(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Da.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:B({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Da.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),a=[],i=0;i<l.length;i++){var u=l[i].effect;u!==null&&u.target===e&&u.pseudoElement===t&&a.push(l[i])}return a},Da.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function sm(e){return{name:e,group:new Da("group",e),imagePair:new Da("image-pair",e),old:new Da("old",e),new:new Da("new",e)}}function Ht(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Ht.prototype.addEventListener=function(e,t,l){var a=null,i=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(rm(u,e,t,l)===-1){var r=this,d=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(d=function(y){r.removeEventListener(e,t,l),typeof t=="function"?t.call(this,y):t.handleEvent(y)}),a!==null&&(i=r.removeEventListener.bind(r,e,t,l),a.addEventListener("abort",i,{once:!0}),i=a.removeEventListener.bind(a,"abort",i)),a=An(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:d,cleanup:i}),g(this._fragmentFiber.child,!1,Lg,e,d,a)}this._eventListeners=u}};function Lg(e,t,l,a){return U(e).addEventListener(t,l,a),!1}Ht.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=rm(a,e,t,l),t!==-1)){var i=a[t];l=i.attachedListener;var u=i.cleanup;i=An(i.optionsOrUseCapture),g(this._fragmentFiber.child,!1,Vg,e,l,i),a.splice(t,1),u!==null&&u()}};function Vg(e,t,l,a){return U(e).removeEventListener(t,l,a),!1}function An(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function om(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function rm(e,t,l,a){if(e.length===0)return-1;a=om(a);for(var i=0;i<e.length;i++){var u=e[i];if(u.type===t&&u.listener===l&&om(u.optionsOrUseCapture)===a)return i}return-1}Ht.prototype.dispatchEvent=function(e){var t=N(this._fragmentFiber);if(t===null)return!0;t=U(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var i=0;i<l.length;i++){var u=l[i];a.addEventListener(u.type,u.attachedListener,An(u.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),l)for(i=0;i<l.length;i++)u=l[i],a.removeEventListener(u.type,u.attachedListener,An(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Ht.prototype.focus=function(e){g(this._fragmentFiber.child,!0,fm,e,void 0,void 0)};function fm(e,t){return e.tag===6?!1:(e=U(e),ty(e,t))}Ht.prototype.focusLast=function(e){var t=[];g(this._fragmentFiber.child,!0,Bo,t,void 0,void 0);for(var l=t.length-1;0<=l&&!fm(t[l],e);l--);};function Bo(e,t){return t.push(e),!1}Ht.prototype.blur=function(){var e=N(this._fragmentFiber);e!==null&&(e=U(e),e=pi(e).activeElement,e!==null&&g(this._fragmentFiber.child,!1,Xg,e,void 0,void 0))};function Xg(e,t){return e.tag===6?!1:(e=U(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Ht.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),g(this._fragmentFiber.child,!1,Zg,e,void 0,void 0)};function Zg(e,t){return e.tag===6||(e=U(e),t.observe(e)),!1}Ht.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),g(this._fragmentFiber.child,!1,kg,e,void 0,void 0);for(var l=t=0;l<tl.length;l++){var a=tl[l];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):tl[t++]=a}tl.length=t}};function kg(e,t){return e.tag===6||(e=U(e),t.unobserve(e)),!1}var tl=[],Yo=!1;function Kg(e,t,l){tl.push({fragmentInstance:e,observer:t,instance:l}),Yo||(Yo=!0,ly(function(){Yo=!1;var a=tl;tl=[];for(var i=0;i<a.length;i++){var u=a[i];u.observer.unobserve(u.instance)}}))}Ht.prototype.getClientRects=function(){var e=[];return g(this._fragmentFiber.child,!1,Jg,e,void 0,void 0),e};function Jg(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=U(e),t.push.apply(t,e.getClientRects());return!1}Ht.prototype.getRootNode=function(e){var t=N(this._fragmentFiber);return t===null?this:U(t).getRootNode(e)},Ht.prototype.compareDocumentPosition=function(e){var t=N(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];g(this._fragmentFiber.child,!1,Bo,l,void 0,void 0);var a=U(t);if(l.length===0){if(l=a,D(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var i=a=l.compareDocumentPosition(e);return l===e?i=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=q(t)[1],l===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=U(l).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=U(l[0]),i=U(l[l.length-1]);var u=D(this._fragmentFiber)?t.parentElement:a;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var r=t.compareDocumentPosition(e),d=i.compareDocumentPosition(e),y=r&Node.DOCUMENT_POSITION_CONTAINED_BY||d&Node.DOCUMENT_POSITION_CONTAINED_BY;return d=a&&u&&r&Node.DOCUMENT_POSITION_FOLLOWING&&d&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||u&&i===e||y||d?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!u&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:r,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$g(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $g(e,t,l,a,i){var u=ra(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=i.ownerDocument,i===u||i===u.documentElement||i===u.body;e:{for(u=t,t=N(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=H(l,u,Q),t===null?t=!1:(g(t,!0,ne,u,l),u=G,G=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=H(a,u,Q),t===null?t=!1:(g(t,!0,F,u,a),u=G,Z=G=null,t=u!==null)),t):!1}function dm(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Ht.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(o(566));var t=[];g(this._fragmentFiber.child,!1,Bo,t,void 0,void 0);var l=e!==!1;if(t.length===0){var a=q(this._fragmentFiber);if(a=l?a[1]||a[0]||N(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=U(a),dm(e,l);return}if(a=U(a),a.nodeType!==9){if(a.nodeType===11){l="host"in a?a.host:null,l!==null&&l.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=l?t.length-1:0;a!==(l?-1:t.length);){var i=t[a];i.tag===6?(i=U(i),dm(i,l)):U(i).scrollIntoView(e),a+=l?-1:1}};function Fg(e,t){return e=U(e),hm(e,t),!1}function hm(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function mm(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a];e.addEventListener(i.type,i.attachedListener,An(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var r=0,d=0;d<tl.length;d++){var y=tl[d];(y.fragmentInstance!==t||y.observer!==u||y.instance!==e)&&(tl[r++]=y)}tl.length=r,u.observe(e)}),hm(e,t))}function Wg(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a];e.removeEventListener(i.type,i.attachedListener,An(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?Kg(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Go(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Go(l),Vi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ig(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Un])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=kt(e.nextSibling),e===null)break}return null}function Pg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=kt(e.nextSibling),e===null))return null;return e}function gm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=kt(e.nextSibling),e===null))return null;return e}function Qo(e){return e.data==="$?"||e.data==="$~"}function Lo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ey(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function kt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Vo=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return kt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function ty(e,t){function l(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return a}function ly(e){am(function(){am(function(t){return e(t)})})}function pm(e,t,l){switch(t=pi(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function bm(e,t,l){for(var a in l){var i=l[a];l.hasOwnProperty(a)&&i!=null&&Oe(e,t,a,null,Dg,i)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===nl&&(e.onclick=null),Vi(e)}function Xo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Vi(e)}var Kt=new Map,Sm=new Set;function bi(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Dl=oe.d;oe.d={f:ay,r:ny,D:iy,C:uy,L:cy,m:sy,X:ry,S:oy,M:fy};function ay(){var e=Dl.f(),t=ku();return e||t}function ny(e){var t=Qa(e);t!==null&&t.tag===5&&t.type==="form"?_d(t):Dl.r(e)}var xn=typeof document>"u"?null:document;function Tm(e,t,l){var a=xn;if(a&&typeof t=="string"&&t){var i=Yt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),Sm.has(i)||(Sm.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),at(t),a.head.appendChild(t)))}}function iy(e){Dl.D(e),Tm("dns-prefetch",e,null)}function uy(e,t){Dl.C(e,t),Tm("preconnect",e,t)}function cy(e,t,l){Dl.L(e,t,l);var a=xn;if(a&&e&&t){var i='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+Yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+Yt(l.imageSizes)+'"]')):i+='[href="'+Yt(e)+'"]';var u=i;switch(t){case"style":u=wn(e);break;case"script":u=Nn(e)}if(!(Kt.has(u)||(e=B({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Kt.set(u,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Si(u))||t==="script"&&a.querySelector(Ti(u))))){var r=a.createElement("link");dt(r,"link",e),t==="style"&&(r[Li]=!0,r.onload=r.onerror=function(){qr(r)}),at(r),a.head.appendChild(r)}}}function sy(e,t){Dl.m(e,t);var l=xn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Yt(a)+'"][href="'+Yt(e)+'"]',u=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Nn(e)}if(!Kt.has(u)&&(e=B({rel:"modulepreload",href:e},t),Kt.set(u,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ti(u)))return}a=l.createElement("link"),dt(a,"link",e),at(a),l.head.appendChild(a)}}}function oy(e,t,l){Dl.S(e,t,l);var a=xn;if(a&&e){var i=La(a).hoistableStyles,u=wn(e);t=t||"default";var r=i.get(u);if(!r){var d={loading:0,preload:null};if(r=a.querySelector(Si(u)))d.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Kt.get(u))&&Zo(e,l);var y=r=a.createElement("link");at(y),dt(y,"link",e),y._p=new Promise(function(w,z){y.onload=w,y.onerror=z}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Pu(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:d},i.set(u,r)}}}function ry(e,t){Dl.X(e,t);var l=xn;if(l&&e){var a=La(l).hoistableScripts,i=Nn(e),u=a.get(i);u||(u=l.querySelector(Ti(i)),u||(e=B({src:e,async:!0},t),(t=Kt.get(i))&&ko(e,t),u=l.createElement("script"),at(u),dt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function fy(e,t){Dl.M(e,t);var l=xn;if(l&&e){var a=La(l).hoistableScripts,i=Nn(e),u=a.get(i);u||(u=l.querySelector(Ti(i)),u||(e=B({src:e,async:!0,type:"module"},t),(t=Kt.get(i))&&ko(e,t),u=l.createElement("script"),at(u),dt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function _m(e,t,l,a){var i=(i=Cl.current)?bi(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=wn(l.href),t=La(i).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var u=La(i).hoistableStyles,r=u.get(e);if(r||(i=i.ownerDocument||i,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,r),(u=i.querySelector(Si(e)))?u._p||(r.instance=u,r.state.loading=5):(u=Kt.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Kt.set(e,u)),dy(i,e,u,r.state))),t&&a===null)throw Error(o(528,""));return r}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Nn(l),t=La(i).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function wn(e){return'href="'+Yt(e)+'"'}function Si(e){return'link[rel="stylesheet"]['+e+"]"}function Am(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function dy(e,t,l,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Li]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[Li]=!0,t.onload=t.onerror=qr.bind(null,t),dt(t,"link",l),at(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Nn(e){return'[src="'+Yt(e)+'"]'}function Ti(e){return"script[async]"+e}function xm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Yt(l.href)+'"]');if(a)return t.instance=a,at(a),a;var i=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),dt(a,"style",i),Pu(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var u=e.querySelector(Si(i));if(u)return t.state.loading|=4,t.instance=u,at(u),u;a=Am(l),(i=Kt.get(i))&&Zo(a,i),u=(e.ownerDocument||e).createElement("link"),at(u);var r=u;return r._p=new Promise(function(d,y){r.onload=d,r.onerror=y}),dt(u,"link",a),t.state.loading|=4,Pu(u,l.precedence,e),t.instance=u;case"script":return u=Nn(l.src),(i=e.querySelector(Ti(u)))?(t.instance=i,at(i),i):(a=l,(i=Kt.get(u))&&(a=B({},l),ko(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),at(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pu(a,l.precedence,e));return t.instance}function Pu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,u=i,r=0;r<a.length;r++){var d=a[r];if(d.dataset.precedence===t)u=d;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Zo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ko(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ec=null;function wm(e,t,l){if(ec===null){var a=new Map,i=ec=new Map;i.set(l,a)}else i=ec,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var u=l[i];if(!(u[Un]||u[ct]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(t)||"";r=e+r;var d=a.get(r);d?d.push(u):a.set(r,[u])}}return a}function Ko(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function hy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Nm(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Em(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Mm(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=jm(t),e.suspenseyImages.push(t)),e=yy.bind(e),t.decode().then(e,e))}function my(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),u=t.querySelector(Si(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_i.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,at(u);return}u=t.ownerDocument||t,a=Am(a),(i=Kt.get(i))&&Zo(a,i),u=u.createElement("link"),at(u);var r=u;r._p=new Promise(function(d,y){r.onload=d,r.onerror=y}),dt(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=_i.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var tc=0;function gy(e,t){return e.stylesheets&&e.count===0&&ac(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&tc===0&&(tc=62500*qg());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>tc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function zm(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ac(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function _i(){this.count--,zm(this)}function yy(){this.imgCount--,zm(this)}var lc=null;function ac(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lc=new Map,t.forEach(vy,e),lc=null,_i.call(e))}function vy(e,t){if(!(t.state.loading&4)){var l=lc.get(e);if(l)var a=l.get(null);else{l=new Map,lc.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var r=i[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),a=r)}a&&l.set(null,a)}i=t.instance,r=i.getAttribute("data-precedence"),u=l.get(r)||a,u===a&&l.set(null,i),l.set(r,i),this.count++,a=_i.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var En={$$typeof:ce,Provider:null,Consumer:null,_currentValue:Nt,_currentValue2:Nt,_threadCount:0};function py(e,t,l,a,i,u,r,d,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Nc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nc(0),this.hiddenUpdates=Nc(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.transitionTypes=null,this.incompleteTransitions=new Map}function Dm(e,t,l,a,i,u,r,d,y,w,z,R){return e=new py(e,t,l,r,y,w,z,R,d),t=1,u===!0&&(t|=24),u=Tt(3,null,null,t),e.current=u,u.stateNode=e,t=cs(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},fs(u),e}function Cm(e){return e?(e=Ia,e):Ia}function qm(e,t,l,a,i,u){i=Cm(i),a.context===null?a.context=i:a.pendingContext=i,a=Vl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Xl(e,a,t),l!==null&&(wt(l,e,t),Pn(l,e,t))}function Om(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Jo(e,t){Om(e,t),(e=e.alternate)&&Om(e,t)}function Rm(e){if(e.tag===13||e.tag===31){var t=ma(e,67108864);t!==null&&wt(t,e,67108864),Jo(e,67108864)}}function Um(e){if(e.tag===13||e.tag===31){var t=Ut();t=Ec(t);var l=ma(e,t);l!==null&&wt(l,e,t),Jo(e,t)}}var jn=!0;function by(e,t,l,a){var i=ee.T;ee.T=null;var u=oe.p;try{oe.p=2,$o(e,t,l,a)}finally{oe.p=u,ee.T=i}}function Sy(e,t,l,a){var i=ee.T;ee.T=null;var u=oe.p;try{oe.p=8,$o(e,t,l,a)}finally{oe.p=u,ee.T=i}}function $o(e,t,l,a){if(jn){var i=Fo(a);if(i===null)zo(e,t,a,nc,l),Bm(e,a);else if(_y(i,e,t,l,a))a.stopPropagation();else if(Bm(e,a),t&4&&-1<Ty.indexOf(e)){for(;i!==null;){var u=Qa(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=oa(u.pendingLanes);if(r!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var y=1<<31-Mt(r);d.entanglements[1]|=y,r&=~y}ml(u),(Me&6)===0&&(Vu=Et()+500,gi(0))}}break;case 31:case 13:d=ma(u,2),d!==null&&wt(d,u,2),ku(),Jo(u,2)}if(u=Fo(a),u===null&&zo(e,t,a,nc,l),u===i)break;i=u}i!==null&&a.stopPropagation()}else zo(e,t,a,null,l)}}function Fo(e){return e=Oc(e),Wo(e)}var nc=null;function Wo(e){if(nc=null,e=ra(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=v(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nc=e,null}function Hm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(q1()){case Tr:return 2;case _r:return 8;case Hi:case O1:return 32;case Ar:return 268435456;default:return 32}default:return 32}}var Io=!1,la=null,aa=null,na=null,Ai=new Map,xi=new Map,ia=[],Ty="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 Bm(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":aa=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":Ai.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(t.pointerId)}}function wi(e,t,l,a,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Qa(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _y(e,t,l,a,i){switch(t){case"focusin":return la=wi(la,e,t,l,a,i),!0;case"dragenter":return aa=wi(aa,e,t,l,a,i),!0;case"mouseover":return na=wi(na,e,t,l,a,i),!0;case"pointerover":var u=i.pointerId;return Ai.set(u,wi(Ai.get(u)||null,e,t,l,a,i)),!0;case"gotpointercapture":return u=i.pointerId,xi.set(u,wi(xi.get(u)||null,e,t,l,a,i)),!0}return!1}function Ym(e){var t=ra(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,zr(e.priority,function(){Um(l)});return}}else if(t===31){if(t=v(l),t!==null){e.blockedOn=t,zr(e.priority,function(){Um(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ic(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Fo(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);qc=a,l.target.dispatchEvent(a),qc=null}else return t=Qa(l),t!==null&&Rm(t),e.blockedOn=l,!1;t.shift()}return!0}function Gm(e,t,l){ic(e)&&l.delete(t)}function Ay(){Io=!1,la!==null&&ic(la)&&(la=null),aa!==null&&ic(aa)&&(aa=null),na!==null&&ic(na)&&(na=null),Ai.forEach(Gm),xi.forEach(Gm)}function uc(e,t){e.blockedOn===t&&(e.blockedOn=null,Io||(Io=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,Ay)))}var cc=null;function Qm(e){cc!==e&&(cc=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){cc===e&&(cc=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Wo(a||l)===null)continue;break}var u=Qa(l);u!==null&&(e.splice(t,3),t-=3,Cs(u,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function Mn(e){function t(y){return uc(y,e)}la!==null&&uc(la,e),aa!==null&&uc(aa,e),na!==null&&uc(na,e),Ai.forEach(t),xi.forEach(t);for(var l=0;l<ia.length;l++){var a=ia[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ia.length&&(l=ia[0],l.blockedOn===null);)Ym(l),l.blockedOn===null&&ia.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],u=l[a+1],r=i[St]||null;if(typeof u=="function")r||Qm(l);else if(r){var d=null;if(u&&u.hasAttribute("formAction")){if(i=u,r=u[St]||null)d=r.formAction;else if(Wo(i)!==null)continue}else d=r.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Qm(l)}}}function Lm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(r){return i=r})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Po(e){this._internalRoot=e}sc.prototype.render=Po.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Ut();qm(l,a,e,t,null,null)},sc.prototype.unmount=Po.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qm(e.current,2,null,e,null,null),ku(),t[Ga]=null}};function sc(e){this._internalRoot=e}sc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ia.length&&t!==0&&t<ia[l].priority;l++);ia.splice(l,0,e),l===0&&Ym(e)}};var Vm=n.version;if(Vm!=="19.3.0")throw Error(o(527,Vm,"19.3.0"));oe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=M(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var xy={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{qn=oc.inject(xy),jt=oc}catch{}}return Ei.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",i=Cd,u=qd,r=Od;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Dm(e,1,!1,null,null,l,a,null,i,u,r,Lm),e[Ga]=t.current,Mo(e),new Po(t)},Ei.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,i="",u=Cd,r=qd,d=Od,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=Dm(e,1,!0,t,l??null,a,i,y,u,r,d,Lm),t.context=Cm(null),l=t.current,a=Ut(),a=Ec(a),i=Vl(a),i.callback=null,Xl(l,i,a),l=a,t.current.lanes=l,Rn(t,l),ml(t),e[Ga]=t.current,Mo(e),new sc(t)},Ei.version="19.3.0",Ei}var Pm;function Oy(){if(Pm)return lr.exports;Pm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(n){console.error(n)}}return c(),lr.exports=qy(),lr.exports}var Ry=Oy();const Uy=d1(Ry);var ur={exports:{}},cr={};var e1;function Hy(){if(e1)return cr;e1=1;var c=yc().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return cr.c=function(n){return c.H.useMemoCache(n)},cr}var t1;function By(){return t1||(t1=1,ur.exports=Hy()),ur.exports}var Te=By();function Pe(c,n){const s=Te.c(8);let o;s[0]!==n||s[1]!==c.state?(o=()=>n==null?c.state:n(c.state),s[0]=n,s[1]=c.state,s[2]=o):o=s[2];const[h,m]=ze.useState(o);let p;s[3]!==n||s[4]!==c?(p=()=>c.createChangeListener(_=>{m(n==null?_:n(_))},!0).dispose,s[3]=n,s[4]=c,s[5]=p):p=s[5];let v;return s[6]!==c?(v=[c],s[6]=c,s[7]=v):v=s[7],ze.useEffect(p,v),h}const Ca=Symbol();class m1{_map=new Map;_keys=new Map;constructor(n){if(n!=null)for(const[s,o]of n)this.set(s,o)}set(n,s){let o=this._map;for(let m=0;m<n.length;m++){const p=n[m];let v=o.get(p);v==null&&(v=new Map,o.set(p,v)),o=v}const h=o.has(Ca)?o.get(Ca):n.slice();return this._keys.set(h,s),o.set(Ca,h),this}get(n){let s=this._map;for(let h=0;h<n.length&&s!=null;h++)s=s.get(n[h]);if(s==null)return;const o=s.get(Ca);if(o!=null)return this._keys.get(o)}has(n){let s=this._map;for(let o=0;o<n.length&&s!=null;o++)s=s.get(n[o]);return s!=null&&s.has(Ca)}delete(n){let s=this._map;const o=[];for(let m=0;m<n.length&&s!=null;m++)o.push([s,n[m]]),s=s.get(n[m]);if(s==null)return!1;const h=s.get(Ca);if(h==null)return!1;s.delete(Ca),this._keys.delete(h);for(let m=o.length-1;m>=0;m--){const[p,v]=o[m];if(s.size!==0)break;p.delete(v),s=p}return!0}clear(){this._map.clear(),this._keys.clear()}get size(){return this._keys.size}*entries(){for(const[n,s]of this._keys)yield[n.slice(),s]}*keys(){for(const n of this._keys.keys())yield n.slice()}*values(){for(const n of this._keys.values())yield n}forEach(n,s){for(const[o,h]of this.entries())s!==void 0?n.call(s,h,o,this):n.call(this,h,o,this)}[Symbol.iterator](){return this.entries()}}class dc{_items;_head=0;_compactAt;constructor(n,s){this._compactAt=s?.compactAt??4096,n instanceof dc?this._items=n._items.slice(n._head):this._items=n==null?[]:Array.from(n)}get length(){return this._items.length-this._head}get isEmpty(){return this._head===this._items.length}get first(){if(this._head!==this._items.length)return this._items[this._head]}get last(){if(this._head!==this._items.length)return this._items[this._items.length-1]}push(n){this._items.push(n)}shift(){if(this._head===this._items.length)return;const n=this._items[this._head];return this._items[this._head]=null,this._head++,this._head>=this._compactAt&&this._head*2>=this._items.length&&(this._items=this._items.slice(this._head),this._head=0),n}enqueue(n){return this.push(n)}dequeue(){return this.shift()}peek(){return this.first}at(n){if(n=Math.trunc(n)||0,n<0&&(n+=this.length),!(n<0||n>=this.length))return this._items[this._head+n]}delete(n,s){const o=this.length;if(n=Math.trunc(n)||0,n<0?n=Math.max(o+n,0):n=Math.min(n,o),s==null?s=Math.min(n+1,o):(s=Math.trunc(s)||0,s<0?s=Math.max(o+s,0):s=Math.min(s,o)),s<=n)return 0;const h=s-n;return h===o?(this._items=[],this._head=0,h):n===0?(this._items.fill(null,this._head,this._head+h),this._head+=h,this._head>=this._compactAt&&this._head*2>=this._items.length&&(this._items=this._items.slice(this._head),this._head=0),h):s===o?(this._items.length=this._head+n,h):(this._items.splice(this._head+n,h),h)}indexOf(n,s=0){const o=this.length;if(o===0||(s=Math.trunc(s)||0,s>=o))return-1;s<0&&(s=Math.max(o+s,0));const h=this._items.indexOf(n,this._head+s);return h<0?-1:h-this._head}lastIndexOf(n,s){const o=this.length;if(o===0||(s==null?s=o-1:s=Math.trunc(s)||0,s>=0?s=Math.min(s,o-1):s+=o,s<0))return-1;const h=this._items.lastIndexOf(n,this._head+s);return h<this._head?-1:h-this._head}*entries(){let n=0;for(;n<this.length;)yield[n,this._items[this._head+n]],n++}*values(){let n=0;for(;n<this.length;)yield this._items[this._head+n],n++}toArray(){return this._items.slice(this._head)}clear(){this._items=[],this._head=0}[Symbol.iterator](){return this.values()}}const or=new m1;async function Yy(c,n,s){let o;if(n instanceof AbortSignal?o=n:n!=null&&(s=n),s==null)throw new Error("callback is required");if(o?.aborted)throw o.reason;const h=c.slice();let m=or.get(h);m!=null?await Qy(m[0],o,m):(m=[new dc,new dc],or.set(h,m));try{return await s()}finally{Gy(h,m)}}function Gy(c,n){const s=n[0];if(!s.isEmpty){const h=s.first;return typeof h=="function"?(s.shift(),void h()):void g1(n)}or.delete(c);const o=n[1];for(const h of o.values())h();o.clear()}function g1(c){const n=c[0];let s=0;for(const o of n.values()){if(typeof o=="function")break;s++,o[0]()}c[2]=(c[2]??0)+s,n.delete(0,s)}function Qy(c,n,s){return n==null?new Promise(o=>{c.push(o)}):new Promise((o,h)=>{function m(){n.removeEventListener("abort",v),o()}const p=c.length;function v(){const _=c.lastIndexOf(m,p);_>=0&&(c.delete(_),s!=null&&_===0&&s[2]!=null&&!c.isEmpty&&typeof c.first!="function"&&g1(s)),n.removeEventListener("abort",v),h(n.reason)}c.push(m),n.addEventListener("abort",v)})}const l1=2147483647;class rr{_callback;_startTime;_delay;_timeout;constructor(n,s){this._callback=n,this._delay=s,this._startTime=Date.now(),this._onTimeout=this._onTimeout.bind(this),this._timeout=setTimeout(this._onTimeout,Math.floor(Math.max(0,Math.min(s,l1))))}dispose(){this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=void 0)}[Symbol.dispose](){this.dispose()}get disposed(){return this._timeout==null}_onTimeout(){const s=Date.now()-this._startTime,o=this._delay-s;o<=0?(this._timeout=void 0,this._callback()):this._timeout=setTimeout(this._onTimeout,Math.min(o,l1))}}class Ly extends Promise{constructor(n,s){s==null||typeof n=="function"?super(n):super((o,h)=>{if(n?.aborted){h(n.reason);return}let m=!1,p=!1,v,_=!1;function M(N){m||(m=!0,p=!0,n?.removeEventListener("abort",b),o(N),v==null?_=!0:v(p))}function b(N){m||(m=!0,n.removeEventListener("abort",b),h(n.reason),v==null?_=!0:v(p))}function g(N){m||(m=!0,n?.removeEventListener("abort",b),h(N),v==null?_=!0:v(p))}n?.addEventListener("abort",b);try{v=s(M,g)}catch(N){g(N);return}_&&v?.(p)})}static all(n,s){return s!=null?this.resolve(this.withSignal(n,Promise.all(s))):this.resolve(Promise.all(n))}static race(n,s){return s!=null?this.resolve(this.withSignal(n,Promise.race(s))):this.resolve(Promise.race(n))}static any(n,s){return s!=null?this.resolve(this.withSignal(n,Promise.any(s))):this.resolve(Promise.any(n))}static allSettled(n,s){return s!=null?this.resolve(this.withSignal(n,Promise.allSettled(s))):this.resolve(Promise.allSettled(n))}static withSignal(n,s){return n==null?s:n.aborted?(s.catch(Vy),this.reject(n.reason)):new this(n,(o,h)=>{s.then(o,h)})}static sleep(n,s){return s==null||typeof n=="number"?new this(o=>{new rr(o,n)}):n?.aborted?this.reject(n.reason):new this(n,o=>{const h=new rr(o,s);return h.dispose.bind(h)})}}function Vy(){}const rc=new m1;function y1(c,n,s){let o;if(n instanceof AbortSignal?o=n:n!=null&&(s=n),s==null)return Promise.reject(new Error("callback is required"));if(o?.aborted)return Promise.reject(o.reason);let h=rc.get(c);if(h==null){const m=new AbortController,p=c.slice(),[v,_]=Xy();h=[v,m,1,p],rc.set(p,h);const M=Yy(p,o==null?void 0:m.signal,()=>s(m.signal));h[0]=M;const b=()=>{h[2]!==0&&(h[2]=0,rc.delete(h[3]))};M.then(b,b),v.catch(Zy),_(M)}else h[2]++;return o==null?h[0]:o.aborted?(a1(h,o),Promise.reject(o.reason)):Promise.resolve(new Ly(o,(m,p)=>(h[0].then(m,p),v=>{!v&&o.aborted&&a1(h,o)})))}function a1(c,n){const s=c[2];s===1?(c[2]=0,rc.delete(c[3]),c[1].abort(n.reason)):s!==0&&(c[2]=s-1)}function Xy(){let c;return[new Promise(s=>{c=s}),c]}function Zy(){}class yl{_queueEvents;_listenerCallbacks;_state;_changeEventMicrotaskQueued;constructor(n,{queueEvents:s=!0}={}){this._queueEvents=s,this._listenerCallbacks=new Map,this._state=n,this._changeEventMicrotaskQueued=!1,this.createChangeListener=this.createChangeListener.bind(this),this.clearChangeListeners=this.clearChangeListeners.bind(this)}get state(){return this._state}set state(n){this._state!==n&&(this._state=n,this._queueEvents?this._changeEventMicrotaskQueued||(this._changeEventMicrotaskQueued=!0,(globalThis.queueMicrotask||globalThis.setTimeout)(()=>{this._changeEventMicrotaskQueued=!1,this._dispatchChangeEvent(this._state)})):this._dispatchChangeEvent(this._state))}createChangeListener(n,s=!1){if(this._listenerCallbacks.set(n,this._state),s)try{n(this._state,void 0)}catch(o){console.error(o)}return hc._create(()=>{this._listenerCallbacks.delete(n)})}clearChangeListeners(){this._listenerCallbacks.clear()}get changeListenerCount(){return this._listenerCallbacks.size}_dispatchChangeEvent(n){for(const[s,o]of Array.from(this._listenerCallbacks.entries()))if(o!==n){this._listenerCallbacks.has(s)&&this._listenerCallbacks.set(s,n);try{s(n,o)}catch(h){console.error(h)}}}static createCombinedChangeListener(n,s,{callInstantlyWithCurrentState:o=!1,queueEvents:h=!0}={}){let m=!1;const p=()=>n.map(g=>g.state);let v=p();const _=(g=!0,N=!0)=>{const D=p(),q=v;if(!(g&&D.every((C,U)=>C===q[U]))){v=D;try{s(D,N?q:q.map(()=>{}))}catch(C){console.error(C)}}},M=()=>{m||(h?(m=!0,(globalThis.queueMicrotask||globalThis.setTimeout)(()=>{m=!1,_()})):_())},b=n.map(g=>g.createChangeListener(M,!1));return o&&_(!1,!1),hc._create(()=>b.forEach(g=>g.dispose()))}}class hc{_dispose;constructor(n){this._dispose=n,this.dispose=this.dispose.bind(this),this[Symbol.dispose]=this[Symbol.dispose].bind(this)}dispose(){this._dispose!=null&&(this._dispose(),this._dispose=null)}[Symbol.dispose](){this.dispose()}get disposed(){return this._dispose==null}static _create(n){return new hc(n)}}new FinalizationRegistry(ky);const n1=new WeakSet;async function ky([c,n]){if(c instanceof Promise)try{c=await c}catch(s){n1.delete(n),console.error(s);return}try{if(c==null)return;typeof c=="function"?await c():Symbol.asyncDispose!=null&&Symbol.asyncDispose in c&&typeof c[Symbol.asyncDispose]=="function"?await c[Symbol.asyncDispose]():Symbol.dispose!=null&&Symbol.dispose in c&&typeof c[Symbol.dispose]=="function"?c[Symbol.dispose]():"dispose"in c&&typeof c.dispose=="function"&&await c.dispose()}catch(s){console.error(s)}finally{n1.delete(n)}}const Ky={models:{},localModels:[],scores:[]};function Jy(c){const n=Object.values(c.models).flatMap(o=>o?.download==null?[]:[o.download]),s=n.reduce((o,h)=>o+h.totalSize,0);return{count:n.length,progress:s>0&&n.every(o=>o.totalSize>0)?n.reduce((o,h)=>o+h.downloadedSize,0)/s:void 0}}const Bt=new yl(Ky),i1={animal:["Names an animal","Does the text contain an actual animal name? A category label is not an animal name.","An animal name like cat, dog, or fox appears in the text.","No animal name appears in the text."],help:["Asks for help","Does the writer ask someone for help?","The writer requests assistance or asks someone to help."],urgent:["Needs action now","Does the text explicitly call for immediate action?","The message requests action now, immediately, or describes an emergency."],apology:["Apologizes","Does the writer apologize?","The writer expresses regret for something and says sorry or apologizes."],weather:["Names bad weather","Does the text name a bad-weather condition?","A concrete condition is named, such as rain, snow, or a storm. The generic phrase bad weather alone does not count. Do not infer unfinished words."],alternative:["Proposes another plan","Does the writer propose a replacement plan?","The writer suggests doing something else instead of the original plan."],food:["Names a food","Does the text name a food?","The text names a food such as pizza, bread, soup, or rice. The generic word food alone does not count. Do not infer unfinished words."],question:["Asks a question","Does the quoted Text contain an interrogative sentence? Judge only the quoted Text. Unfinished words do not count; do not guess what comes next.","The text contains a question.","The text contains no questions."],excited:["Shows excitement","Does the writer express excitement?","The writer expresses enthusiasm, delight, or eagerness about something."],thanks:["Expresses thanks","Does the writer thank someone?","The text includes thanks, thank you, or another expression of gratitude."],time:["Gives a time","Does the text mention a time or day?","A specific time or day is mentioned, such as noon, six, Friday, or tomorrow."],place:["Names a location","Does the text mention a place or location?","A concrete place is named, such as a house, river, bridge, park, kitchen, or office."],invite:["Invites someone","Does the writer invite someone to take part?","The writer invites the reader to join an activity or come somewhere."],warning:["Warns of a risk","Does the message warn someone about a danger or problem?","The writer warns of a specific risk or harmful possibility."],reason:["Explains why","Does the message give a reason for a situation, action, or request?","A reason is given for a situation, request, or action, for example using because or so."],condition:["Sets a condition","Does the message make an action depend on a condition?","An action or outcome depends on an explicit condition, for example if or unless something happens."],offer:["Offers assistance","Does the writer offer to help someone?","The writer offers their own help or assistance."],promise:["Makes a commitment","Does the writer commit to a future action?","The writer states something they will do or promises to do it."],contrast:["Contrasts two facts","Does the text contrast two facts or qualities?","The text presents contrasting preferences or facts, often joined by but, although, or despite."],refuse:["Declines a request","Does the writer decline or refuse something?","The writer clearly says they cannot or will not accept, attend, or do something."],repair:["Offers to make amends","Does the writer offer to put right something that went wrong?","The writer proposes a concrete repair, replacement, repayment, or corrective action."],quantity:["Gives a quantity","Does the message state how many or how much?","There is a count of things, people, or payments, expressed in digits or words."],transport:["Names a vehicle","Does the text name a vehicle?","The text names a vehicle, such as a train, bus, bike, car, or boat. Do not infer unfinished words."],sequence:["Orders two actions","Does the message explicitly put two actions in order?","The message says one action should happen before or after another, or gives a first step and then a second."],compare:["Makes a comparison","Does the message contain an explicit comparison?","A comparison is made, for example saying one thing is cheaper, faster, higher, or lower than another."],consequence:["States a consequence","Does the message state what will result from an action or event?","The message explicitly connects an action or event to a resulting outcome."],permission:["Asks permission","Does the writer ask permission to do something?","The writer asks whether they may do a specific action."],compromise:["Proposes a compromise","Does the writer propose meeting someone halfway?","The writer proposes a middle ground or concession that accommodates two different needs or preferences."],choice:["Offers a choice","Does the writer give the reader a choice between alternatives?","The reader is offered two or more specific alternatives to choose from."],money:["Mentions a price","Does the text mention an amount of money?","The text mentions a sum of money, such as $5 or ten dollars."],reassure:["Reassures someone","Does the writer reassure someone who might worry?","The writer explicitly offers reassurance that a situation is safe, manageable, or will be taken care of."],credit:["Credits someone else","Does the writer give someone else credit for a contribution?","Another person or group is acknowledged for a helpful action, idea, or achievement."],instructions:["Gives an instruction","Does the message tell the reader to do a specific action?","The writer directly instructs the reader to do something concrete."]};function re(c,n,s,...o){const h=o.map(m=>i1[m]);return{id:c,title:n,limit:s,labels:h.map(([m])=>m),questions:o.map(m=>{const[,p,v,_]=i1[m];return _!=null?{type:"noul",instruction:p,criteria:[v,_]}:{type:"noul",instruction:`${p} Answer yes if ${v[0].toLowerCase()}${v.slice(1)} Answer no otherwise.`,criteria:["Yes","No"]}})}}const $y=[{id:1,title:"Make yourself understood",skill:"Combine a topic, a purpose, and a tone.",rounds:[re("1-1","A small emergency",120,"animal","help","urgent"),re("1-2","Change of plans",110,"apology","weather","alternative"),re("1-3","A bright idea",100,"food","question","excited")]},{id:2,title:"Say what you need",skill:"Make requests and invitations precise.",rounds:[re("2-1","Lunch is on me",100,"food","invite","time"),re("2-2","A helpful neighbor",100,"thanks","animal","offer"),re("2-3","A clear handoff",95,"instructions","place","time")]},{id:3,title:"Give it a reason",skill:"Connect a request or change to its cause.",rounds:[re("3-1","The rainy picnic",125,"weather","alternative","reason","invite"),re("3-2","Running late",120,"apology","transport","reason","time"),re("3-3","A hungry guest",115,"food","help","reason","thanks")]},{id:4,title:"Plan ahead",skill:"Use conditions and sequences without losing clarity.",rounds:[re("4-1","Weather permitting",120,"condition","weather","invite","place"),re("4-2","Dinner in order",115,"food","sequence","instructions","time"),re("4-3","The early train",115,"transport","condition","promise","time"),re("4-4","A careful crossing",115,"warning","sequence","instructions","reason")]},{id:5,title:"Small repairs",skill:"Take responsibility and propose a useful next step.",rounds:[re("5-1","The broken mug",140,"apology","repair","promise","time","reason"),re("5-2","Dinner went wrong",135,"food","apology","repair","choice","time"),re("5-3","Sorry I can't make it",130,"refuse","apology","reason","alternative","time"),re("5-4","A borrowed bicycle",130,"transport","thanks","promise","time","place")]},{id:6,title:"Make room for both",skill:"Compare choices and balance different needs.",rounds:[re("6-1","A quieter dinner",135,"food","contrast","compare","choice","question"),re("6-2","Meet halfway",130,"compromise","place","time","invite","reason"),re("6-3","The cheaper journey",125,"transport","compare","money","choice","question"),re("6-4","A little reassurance",125,"animal","warning","reassure","offer","condition")]},{id:7,title:"Useful details",skill:"Fit six pieces of useful information into one message.",rounds:[re("7-1","Soup for the team",155,"food","quantity","time","place","invite","question"),re("7-2","A rescue plan",150,"animal","help","urgent","place","warning","instructions"),re("7-3","A missed delivery",145,"apology","repair","promise","time","choice","place"),re("7-4","The last bus",140,"transport","warning","condition","consequence","alternative","time"),re("7-5","A generous offer",140,"thanks","credit","offer","time","place","question")]},{id:8,title:"Tact and tradeoffs",skill:"Keep the relationship intact while changing the plan.",rounds:[re("8-1","A fair split",150,"compromise","money","quantity","reason","choice","time"),re("8-2","Not tonight",145,"refuse","apology","reason","alternative","invite","time"),re("8-3","A safer outing",145,"weather","warning","alternative","reason","invite","place"),re("8-4","A careful favor",140,"permission","animal","condition","promise","place","time"),re("8-5","Dinner, revised",140,"food","contrast","compromise","choice","time","question")]},{id:9,title:"Seven moving parts",skill:"Combine seven conditions in a coherent message.",rounds:[re("9-1","The surprise picnic",175,"food","excited","invite","quantity","time","place","question"),re("9-2","A wet-weather rescue",170,"animal","weather","help","urgent","place","warning","instructions"),re("9-3","Make it right",165,"apology","repair","promise","time","money","choice","reason"),re("9-4","Two ways home",165,"transport","compare","money","time","choice","condition","question"),re("9-5","A team effort",160,"thanks","credit","offer","promise","time","place","reason"),re("9-6","A safe sequence",160,"food","warning","sequence","instructions","condition","consequence","reason")]},{id:10,title:"Every word earns its place",skill:"Keep the same meaning while trimming seven-part messages.",rounds:[re("10-1","The short invitation",135,"food","invite","time","place","quantity","excited","question"),re("10-2","The short apology",135,"apology","refuse","reason","alternative","invite","time","place"),re("10-3","The short rescue",130,"animal","help","urgent","place","warning","instructions","reason"),re("10-4","The short bargain",130,"compromise","compare","money","choice","condition","promise","time"),re("10-5","The short handoff",130,"instructions","sequence","time","place","quantity","food","thanks"),re("10-6","The short reassurance",130,"animal","reassure","offer","condition","promise","time","place")]},{id:11,title:"The final edit",skill:"Eight different situations. Seven conditions. Make each message count.",rounds:[re("11-1","The gathering",145,"food","invite","excited","quantity","time","place","question"),re("11-2","The setback",140,"weather","apology","reason","alternative","invite","time","place"),re("11-3","The emergency",140,"animal","help","urgent","warning","place","instructions","reason"),re("11-4","The repair",140,"apology","repair","promise","time","choice","money","reason"),re("11-5","The negotiation",140,"compromise","refuse","reason","alternative","condition","promise","money"),re("11-6","The journey",135,"transport","compare","choice","money","time","condition","question"),re("11-7","The handover",135,"food","sequence","instructions","warning","reason","time","thanks"),re("11-8","The thank-you",135,"thanks","credit","offer","promise","invite","time","place")]}],u1={praise:["Praise","Does the quoted Text contain any praise or compliment, even if it also contains criticism?"],complaint:["Complaint","Does the quoted Text complain about a problem the writer has experienced? A warning about a possible danger is not a complaint."],question:["Question","Does the quoted Text contain an interrogative sentence?"],apology:["Apology","Does the writer explicitly apologize, such as saying sorry or I apologize?"],invitation:["Invitation","Does the quoted Text directly ask another person to join the writer in an activity?"],warning:["Warning","Does the text warn of a danger?"],thanks:["Gratitude","Is there an expression of gratitude anywhere in the quoted Text?"],offer:["Offer of help",'Does the quoted Text explicitly volunteer help to another person, such as "I can help you"?'],request:["Request for help","Does the writer ask the reader to provide help? Offering help is different."],promise:["Promise","Does the writer explicitly commit to a future action, such as saying I promise or I will? Describing a current activity is not a promise."],refusal:["Refusal","Does the writer turn down an invitation, offer, or request?"],food:["Food","Is a food item or ingredient named anywhere in the text?"],nature:["Nature","Does the text mention wild animals, wild plants, or a natural landscape?"],pets:["Pets","Does the text mention a pet?"],travel:["Travel","Does the text describe a person taking a journey or visiting a different place? Mentioning a location alone is not travel."],work:["Work","Does the text explicitly mention a paid job, employment, or professional duties?"],leisure:["Leisure","Does the text explicitly say an activity is done for fun, pleasure, or as a hobby? Performing an activity alone does not say it is recreation."],shopping:["Shopping","Does the text explicitly describe buying, selling, or ordering goods?"],learning:["Learning","Does the text explicitly describe someone learning, studying, or being taught? Performing an activity alone is not evidence of learning."],science:["Science","Does the text mention a scientific fact, scientific process, experiment, or scientific study?"],music:["Music","Does the text mention singing or playing music?"],sport:["Sport","Does the text mention a sport or physical exercise?"],art:["Art","Does the text mention drawing, painting, or sculpture?"],technology:["Technology","Does the text mention computers, software, or electronic devices?"],health:["Health","Does the text describe an illness, injury, or medical treatment?"],gardening:["Gardening","Does the text describe cultivating plants in a garden? Look for an actual gardening action, such as planting seeds or watering flowers."],cooking:["Cooking","Does the text explicitly describe preparing or cooking food, such as chopping, mixing, baking, or boiling? Eating or tasting food alone does not count."],repair:["Repair","Does the quoted Text identify a broken object and describe repairing it? Do not infer or complete missing text."],transport:["Transport","Does the text mention a vehicle?"],weather:["Weather","Does the text mention a weather condition?"],celebration:["Celebration","Does the text describe celebrating a special occasion?"],family:["Family","Does the text mention a family member?"],history:["History","Does the quoted Text name a particular ancient civilization or a specific historical event?"]},c1={question:["The text contains a question.","The text contains no questions."],praise:["The writer gives a compliment or positive feedback.","The writer gives no compliment or positive feedback."],complaint:["An actual complaint about a bad experience.","No complaint about a bad experience."],learning:["Someone is explicitly learning, studying, or receiving a lesson.","No learning, study, or lesson is described."],offer:["An explicit offer to help another person.","A personal activity or other message without an offer of help."],leisure:["An activity is explicitly done for fun or as a hobby.","No recreational purpose is stated. This includes unrelated text or fragments without enough information."],shopping:["Goods are bought, sold, or ordered.","No goods are bought, sold, or ordered."],apology:["The writer explicitly apologizes.","The writer does not apologize."],invitation:["A direct invitation addressed to another person.","No direct invitation is addressed to another person."],warning:["The text warns someone about a specific danger.","The text does not warn of a danger."],thanks:["Thanks, thank you, or being grateful is expressed.","No expression of gratitude is present."],promise:["The writer commits to a future action.","No commitment to a future action is made."],refusal:["The writer says no to an invitation, offer, or request.","The writer does not turn down an invitation, offer, or request."],request:["The writer asks someone else for assistance.","The writer does not ask for assistance."],food:["A food or ingredient is named, such as bread, rice, cake, or lemon.","No actual food or ingredient is named; the text may be unrelated or unfinished."],nature:["Wild animals, wild plants, or a natural landscape are mentioned.","No wild animals, wild plants, or natural landscape are mentioned."],pets:["The text mentions an animal kept as a pet.","No pet is mentioned."],travel:["Someone is traveling or visiting a place.","No one is traveling or visiting a place."],work:["The text explicitly describes paid work, employment, or professional duties.","The text does not describe paid work, employment, or professional duties."],science:["A scientific process, finding, experiment, or study is described.","No scientific process, finding, experiment, or study is described."],music:["Singing, playing music, or a musical instrument is mentioned.","No singing, music, or musical instrument is mentioned."],sport:["A sport or physical exercise is mentioned.","No sport or physical exercise is mentioned."],art:["Drawing, painting, or sculpture is mentioned.","No drawing, painting, or sculpture is mentioned."],technology:["Computers, software, or electronic devices are mentioned.","No computers, software, or electronic devices are mentioned. This includes unrelated text or fragments without enough information."],health:["An illness, injury, or medical treatment is described.","No illness, injury, or medical treatment is described."],gardening:["An actual gardening action is described.","No gardening action is described."],cooking:["Preparing or cooking food is described.","No preparation or cooking of food is described."],repair:["The text identifies a broken object and describes a repair.","No specific broken object and repair are described; the text may be unrelated or unfinished."],transport:["The text names a vehicle, such as a car, bus, bicycle, or train.","No vehicle is named."],weather:["A specific weather condition is mentioned.","No weather condition is mentioned."],celebration:["Someone celebrates a special occasion.","No celebration of a special occasion is described."],family:["A family member is mentioned.","No family member is mentioned."],history:["The text names an ancient civilization or a historical event.","No ancient civilization or historical event is named in the text."]};function fe(c,n,s,...o){const h=o.map(m=>u1[m]);return{id:c,title:n,limit:s,labels:h.map(([m])=>m),questions:o.map(m=>({type:"choice",instruction:u1[m][1],criteria:[c1[m][1],c1[m][0]]}))}}const Fy=[{id:1,title:"Two meanings at once",skill:"Blend two clear meanings and avoid the distractions.",rounds:[fe("1-1","Praise and criticism",120,"praise","complaint","question","apology"),fe("1-2","Work can be fun",110,"work","leisure","shopping","warning"),fe("1-3","An invitation with a catch",110,"invitation","warning","apology","refusal")]},{id:2,title:"Cross the topics",skill:"Make one activity connect two different subjects.",rounds:[fe("2-1","Edible experiments",110,"food","science","shopping","complaint"),fe("2-2","A musical lesson",100,"music","learning","work","shopping"),fe("2-3","The active pet",100,"pets","sport","shopping","warning")]},{id:3,title:"Purpose and subject",skill:"Give a familiar topic a distinct purpose.",rounds:[fe("3-1","A helpful meal",110,"food","offer","request","apology","shopping"),fe("3-2","A digital question",105,"technology","question","complaint","shopping","promise"),fe("3-3","A grateful patient",105,"health","thanks","complaint","question","warning")]},{id:4,title:"The obvious wrong answer",skill:"Make the distinction that the distractor tries to blur.",rounds:[fe("4-1","Making it, not buying it",105,"cooking","leisure","shopping","work","request"),fe("4-2","Practice without a paycheck",100,"learning","technology","work","shopping","complaint"),fe("4-3","A stroll through time",100,"travel","history","shopping","work","sport"),fe("4-4","Helping, not asking",100,"repair","offer","request","shopping","apology")]},{id:5,title:"Mixed feelings",skill:"Combine two intentions without accidentally adding a third.",rounds:[fe("5-1","A grateful critic",105,"thanks","complaint","apology","request","question"),fe("5-2","No, but thank you",100,"refusal","thanks","apology","question","promise"),fe("5-3","Sorry, let me help",100,"apology","offer","request","warning","promise"),fe("5-4","A promise of praise",100,"promise","praise","invitation","question","thanks")]},{id:6,title:"Find the connection",skill:"Connect subjects through one concrete detail.",rounds:[fe("6-1","A living laboratory",105,"gardening","science","shopping","work","food","warning"),fe("6-2","A painted past",100,"art","history","shopping","travel","work","music"),fe("6-3","A family melody",100,"family","music","shopping","work","question","complaint"),fe("6-4","Recover through movement",100,"health","sport","shopping","work","warning","complaint")]},{id:7,title:"Six-way distinction",skill:"Keep two signals strong among four plausible alternatives.",rounds:[fe("7-1","A scientific repair",105,"repair","science","shopping","work","question","request"),fe("7-2","The birthday recipe",100,"cooking","celebration","shopping","work","invitation","question"),fe("7-3","A wildlife lesson",100,"nature","learning","travel","sport","gardening","work"),fe("7-4","Rain on the route",100,"weather","transport","travel","warning","shopping","question"),fe("7-5","An artistic hobby",95,"art","leisure","shopping","work","learning","question")]},{id:8,title:"Close neighbors",skill:"Separate related meanings with carefully chosen details.",rounds:[fe("8-1","Wild, not a pet",100,"nature","science","pets","gardening","travel","shopping"),fe("8-2","Enjoying, not cooking",95,"food","praise","cooking","shopping","thanks","question"),fe("8-3","Teach, don't take over",95,"learning","repair","offer","request","work","shopping"),fe("8-4","Praise without gratitude",95,"praise","art","thanks","shopping","question","offer"),fe("8-5","A plan, not an invitation",95,"promise","transport","invitation","offer","question","warning")]},{id:9,title:"Seven signals",skill:"Keep five distracting meanings out of a two-topic message.",rounds:[fe("9-1","The singing family",110,"family","music","work","shopping","invitation","learning","complaint"),fe("9-2","The kitchen experiment",105,"cooking","science","shopping","work","health","question","warning"),fe("9-3","The outdoor painting",105,"art","nature","gardening","pets","travel","shopping","work"),fe("9-4","A polite no",105,"refusal","thanks","apology","promise","question","complaint","offer"),fe("9-5","The recovery routine",100,"health","sport","work","shopping","complaint","warning","request"),fe("9-6","A promised repair",100,"repair","promise","apology","request","shopping","question","warning")]},{id:10,title:"Distill the meaning",skill:"Keep two meanings and lose the spare words.",rounds:[fe("10-1","A concise review",80,"praise","complaint","thanks","apology","question","request","warning"),fe("10-2","A concise invitation",80,"invitation","warning","apology","refusal","complaint","promise","thanks"),fe("10-3","A concise lesson",80,"music","learning","work","shopping","invitation","question","promise"),fe("10-4","A concise offer",80,"offer","food","request","shopping","apology","question","warning"),fe("10-5","A concise connection",80,"gardening","technology","shopping","work","food","question","warning"),fe("10-6","A concise experiment",80,"pets","science","work","shopping","health","warning","question")]},{id:11,title:"Perfectly mixed",skill:"Eight blends, with five distractions to avoid in each.",rounds:[fe("11-1","The balanced verdict",85,"praise","complaint","thanks","apology","question","request","warning"),fe("11-2","The cautious welcome",85,"invitation","warning","apology","refusal","complaint","promise","thanks"),fe("11-3","The playful profession",85,"work","leisure","shopping","learning","apology","question","offer"),fe("11-4","The ancient canvas",85,"art","history","travel","shopping","work","learning","question"),fe("11-5","The growing gadget",85,"gardening","technology","shopping","work","food","question","warning"),fe("11-6","The family feast",85,"family","celebration","invitation","shopping","question","thanks","promise"),fe("11-7","The scientific snack",85,"food","science","shopping","work","health","question","warning"),fe("11-8","The gracious exit",85,"refusal","thanks","apology","promise","question","complaint","offer")]}],Ha=.7,gl={min:Ha,other:Ha},lt={lock:{name:"Semantic Golfing",description:"Write a short message that matches every condition within the character limit.",levels:$y},signalMixing:{name:"Signal Mixing",description:"Blend two meanings in a short message while keeping the other categories out.",levels:Fy}};function Oa(c){return Array.from(c).length}function mr(c,n,s){const o=n.questions.map(h=>({...h,document:`Text: ${JSON.stringify(s)}`}));return{modelId:c,input:o[0],...o.length>1?{additionalInputs:o.slice(1)}:{}}}function gr(c,n){return n==null?[]:[n.answer,...n.additionalAnswers??[]].map(s=>c==="lock"?s.type==="noul"?s.value:0:s.type==="choice"?s.probabilities[1]??0:0)}function vc(c,n,s,o){return!s.trim()||Oa(s)>n.limit||o.length!==n.labels.length||o.some(h=>!Number.isFinite(h)||h<0||h>1)?!1:o.every((h,m)=>c==="lock"||m<2?h>=(c==="lock"?Ha:gl.min):h<gl.other)}function v1(c,n){if(!Number.isInteger(n)||n<1||n>c.limit)throw new Error("The answer must fit the round's character limit.");return Math.max(1,Math.round(1e3*(1-n/c.limit)))}function Wy(c,n){if(n.length!==c.rounds.length)throw new Error("Finish every round before saving a level score.");return c.rounds.reduce((s,o,h)=>s+v1(o,n[h]),0)}function Iy(){let c,n;return{promise:new Promise((s,o)=>{c=s,n=o}),resolve:c,reject:n}}const Py=Math.random.bind(Math),ev="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function tv(c=21){let n="",s=c;for(;s--;)n+=ev[Py()*64|0];return n}const lv=6e4,p1=c=>c,av=p1,{clearTimeout:s1,setTimeout:nv}=globalThis;function iv(c,n){const{post:s,on:o,off:h=()=>{},eventNames:m=[],serialize:p=p1,deserialize:v=av,resolver:_,bind:M="rpc",timeout:b=lv,proxify:g=!0}=n;let N=!1;const D=new Map;let q,C;async function U(Q,H,B,L){if(N)throw new Error(`[birpc] rpc is closed, cannot call "${Q}"`);const I={m:Q,a:H,t:"q"};L&&(I.o=!0);const ie=async $=>s(p($));if(B){await ie(I);return}if(q)try{await q}finally{q=void 0}let{promise:k,resolve:V,reject:P}=Iy();const J=tv();I.i=J;let ce;async function X($=I){return b>=0&&(ce=nv(()=>{try{if(n.onTimeoutError?.call(C,Q,H)!==!0)throw new Error(`[birpc] timeout on calling "${Q}"`)}catch(W){P(W)}D.delete(J)},b),typeof ce=="object"&&(ce=ce.unref?.())),D.set(J,{resolve:V,reject:P,timeoutId:ce,method:Q}),await ie($),k}try{n.onRequest?await n.onRequest.call(C,I,X,V):await X()}catch($){if(n.onGeneralError?.call(C,$)!==!0)throw $;return}finally{s1(ce),D.delete(J)}return k}const G={$call:(Q,...H)=>U(Q,H,!1),$callOptional:(Q,...H)=>U(Q,H,!1,!0),$callEvent:(Q,...H)=>U(Q,H,!0),$callRaw:Q=>U(Q.method,Q.args,Q.event,Q.optional),$rejectPendingCalls:ne,get $closed(){return N},get $meta(){return n.meta},$close:Z,$functions:c};g?C=new Proxy({},{get(Q,H){if(Object.hasOwn(G,H))return G[H];if(H==="then"&&!m.includes("then")&&!("then"in c))return;const B=(...I)=>U(H,I,!0);if(m.includes(H))return B.asEvent=B,B;const L=(...I)=>U(H,I,!1);return L.asEvent=B,L}}):C=G;function Z(Q){N=!0,D.forEach(({reject:H,method:B})=>{const L=new Error(`[birpc] rpc is closed, cannot call "${B}"`);if(Q)return Q.cause??=L,H(Q);H(L)}),D.clear(),h(F)}function ne(Q){const H=Array.from(D.values()).map(({method:B,reject:L})=>Q?Q({method:B,reject:L}):L(new Error(`[birpc]: rejected pending call "${B}".`)));return D.clear(),H}async function F(Q,...H){let B;try{B=v(Q)}catch(L){if(n.onGeneralError?.call(C,L)!==!0)throw L;return}if(B.t==="q"){const{m:L,a:I,o:ie}=B;let k,V,P=await(_?_.call(C,L,c[L]):c[L]);if(ie&&(P||=()=>{}),!P)V=new Error(`[birpc] function "${L}" not found`);else try{k=await P.apply(M==="rpc"?C:c,I)}catch(J){V=J}if(B.i){if(V&&n.onFunctionError&&n.onFunctionError.call(C,V,L,I)===!0)return;if(!V)try{await s(p({t:"s",i:B.i,r:k}),...H);return}catch(J){if(V=J,n.onGeneralError?.call(C,J,L,I)!==!0)throw J}try{await s(p({t:"s",i:B.i,e:V}),...H)}catch(J){if(n.onGeneralError?.call(C,J,L,I)!==!0)throw J}}}else{const{i:L,r:I,e:ie}=B,k=D.get(L);k&&(s1(k.timeoutId),ie?k.reject(ie):k.resolve(I)),D.delete(L)}}return q=o(F),C}function uv(c,n,s){return iv(s,{timeout:-1,post:o=>window.ipcRenderer.send(n,o),on:o=>window.ipcRenderer.on(c,(h,m)=>{o(m)}),serialize:o=>JSON.stringify(o,(h,m)=>m instanceof Error?String(m):m),deserialize:o=>JSON.parse(o)})}const cv={updateState(c){Bt.state=c}},Jt=uv("llmRpc","llmRpc",cv);Jt.getState().then(c=>{Bt.state=c}).catch(c=>{Bt.state={...Bt.state,error:"Could not connect to the app: "+String(c)}});const sv={document:"",answers:[]},qa=new yl("play",{queueEvents:!1}),Re=new yl({screen:"games",game:"lock",level:1,drafts:{}},{queueEvents:!1});function Ba(c,n,s,o){return c[`${n}/${s}/${o}`]??sv}function Ra(c,n,s,o){Re.state={...Re.state,drafts:{...Re.state.drafts,[`${c}/${n}/${s}`]:{...Ba(Re.state.drafts,c,n,s),...o}}}}function b1(c,n){Re.state={...Re.state,screen:"round",game:c,level:n}}function ov(c,n,s,o){const h=Ba(Re.state.drafts,c,n,s),m=lt[n].levels.find(({id:v})=>v===s),p=m.rounds[h.answers.length];p==null||o.error!=null||o.result==null||JSON.stringify(o.result.request)!==JSON.stringify(mr(c,p,h.document))||!vc(n,p,h.document,gr(n,o.result))||(Ra(c,n,s,{answers:[...h.answers,h.document],document:"",startedAt:void 0}),h.answers.length+1===m.rounds.length&&S1(c,n,s))}async function S1(c,n,s){const o=Ba(Re.state.drafts,c,n,s);if(!(o.saving||o.completion!=null)){Ra(c,n,s,{saving:!0,error:void 0});try{const h=await Jt.saveLevelScore({modelId:c,game:n,level:s,characters:o.answers.map(Oa)});Ra(c,n,s,{completion:h,saving:!1})}catch(h){Ra(c,n,s,{error:String(h),saving:!1})}}}var Mi=h1();function rv(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function o1(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88a.996.996 0 1 0 1.41 1.41L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}const pc=[{id:"gemma-q8",name:"Gemma 4",parameters:"5B E2B",quant:"Q8_0",size:"5.0 GB",uri:"hf:giladgd/gemma-4-E2B-it-GGUF:Q8_0"},{id:"gemma-q6",name:"Gemma 4",parameters:"5B E2B",quant:"Q6_K",size:"3.9 GB",uri:"hf:giladgd/gemma-4-E2B-it-GGUF:Q6_K"},{id:"qwen-2b",name:"Qwen 3.5",parameters:"2B",quant:"Q4_K_M",size:"1.3 GB",uri:"hf:unsloth/Qwen3.5-2B-GGUF:Q4_K_M"},{id:"qwen-0.8b",name:"Qwen 3.5",parameters:"0.8B",quant:"Q8_0",size:"0.8 GB",uri:"hf:unsloth/Qwen3.5-0.8B-GGUF:Q8_0"}];function fr(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{d:"M11.0771 7.45801V8.54199H10.0635V10.498H11.0771V10.5693H9.99023V7.45801H11.0771ZM6.00879 5.43066V6.5166H4.99609V8.4707H6.00879V8.54199H4.92383V5.43066H6.00879ZM7.96289 3.47461H2.98145V2.89551H13.0195V3.91016H14.1172V12.0908H13.0332V8.97656H13.0342V5.50293H8.03711V5.97266L8.03613 12.0557V12.5264H13.0195V13.1055H2.98145V12.0908H1.88184V3.91016H2.96777V10.498H7.96191V6.95117H7.96289V3.47461Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.941177"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{viewBox:"0 0 16 16",width:"24",height:"24",fill:"none","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function fv(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M11.625 14.913q-.175-.063-.325-.213l-4.6-4.6q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275t.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function Ua(c){const n=Te.c(9),{value:s,label:o}=c;let h;n[0]!==s?(h=s==null?void 0:Math.round(s*100),n[0]=s,n[1]=h):h=n[1];const m=s==null||void 0,p=`scaleX(${Math.max(0,Math.min(1,s??.35))})`;let v;n[2]!==p?(v=f.jsx("div",{className:"fill",style:{transform:p}}),n[2]=p,n[3]=v):v=n[3];let _;return n[4]!==o||n[5]!==h||n[6]!==m||n[7]!==v?(_=f.jsx("div",{className:"decisionProgressBar",role:"progressbar","aria-label":o,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,"data-indeterminate":m,children:v}),n[4]=o,n[5]=h,n[6]=m,n[7]=v,n[8]=_):_=n[8],_}const r1=c=>Number.isFinite(c)?c:0;function dv(c){return{days:Math.trunc(c/864e5),hours:Math.trunc(c/36e5%24),minutes:Math.trunc(c/6e4%60),seconds:Math.trunc(c/1e3%60),milliseconds:Math.trunc(c%1e3),microseconds:Math.trunc(r1(c*1e3)%1e3),nanoseconds:Math.trunc(r1(c*1e6)%1e3)}}function hv(c){return{days:c/86400000n,hours:c/3600000n%24n,minutes:c/60000n%60n,seconds:c/1000n%60n,milliseconds:c%1000n,microseconds:0n,nanoseconds:0n}}function mv(c){switch(typeof c){case"number":{if(Number.isFinite(c))return dv(c);break}case"bigint":return hv(c)}throw new TypeError("Expected a finite number or bigint")}const gv=c=>c===0||c===0n,yv=(c,n)=>n===1||n===1n?c:`${c}s`,vv=1e-7,pv=24n*60n*60n*1000n;function bv(c,n){const s=typeof c=="bigint";if(!s&&!Number.isFinite(c))throw new TypeError("Expected a finite number or bigint");n={...n};const o=c<0?"-":"";c=c<0?-c:c,n.colonNotation&&(n.compact=!1,n.formatSubMilliseconds=!1,n.separateMilliseconds=!1,n.verbose=!1),n.compact&&(n.unitCount=1,n.secondsDecimalDigits=0,n.millisecondsDecimalDigits=0);let h=[];const m=(b,g)=>{const N=Math.floor(b*10**g+vv);return(Math.round(N)/10**g).toFixed(g)},p=(b,g,N,D)=>{if(!((h.length===0||!n.colonNotation)&&gv(b)&&!(n.colonNotation&&N==="m"))){if(D??=String(b),n.colonNotation){const q=D.includes(".")?D.split(".")[0].length:D.length,C=h.length>0?2:1;D="0".repeat(Math.max(0,C-q))+D}else D+=n.verbose?" "+yv(g,b):N;h.push(D)}},v=mv(c),_=BigInt(v.days);if(n.hideYearAndDays?p(BigInt(_)*24n+BigInt(v.hours),"hour","h"):(n.hideYear?p(_,"day","d"):(p(_/365n,"year","y"),p(_%365n,"day","d")),p(Number(v.hours),"hour","h")),p(Number(v.minutes),"minute","m"),!n.hideSeconds)if(n.separateMilliseconds||n.formatSubMilliseconds||!n.colonNotation&&c<1e3&&!n.subSecondsAsDecimals){const b=Number(v.seconds),g=Number(v.milliseconds),N=Number(v.microseconds),D=Number(v.nanoseconds);if(p(b,"second","s"),n.formatSubMilliseconds)p(g,"millisecond","ms"),p(N,"microsecond","µs"),p(D,"nanosecond","ns");else{const q=g+N/1e3+D/1e6,C=typeof n.millisecondsDecimalDigits=="number"?n.millisecondsDecimalDigits:0,U=q>=1?Math.round(q):Math.ceil(q),G=1e3-10**-C,Z=C?Math.min(q,G).toFixed(C):Math.min(U,G);p(Number.parseFloat(Z),"millisecond","ms",Z)}}else{const b=(s?Number(c%pv):c)/1e3%60,g=typeof n.secondsDecimalDigits=="number"?n.secondsDecimalDigits:1,N=m(b,g),D=n.keepDecimalsOnWholeSeconds?N:N.replace(/\.0+$/,"");p(Number.parseFloat(D),"second","s",D)}if(h.length===0)return o+"0"+(n.verbose?" milliseconds":"ms");const M=n.colonNotation?":":" ";return typeof n.unitCount=="number"&&(h=h.slice(0,Math.max(n.unitCount,1))),o+h.join(M)}const zi=new yl(void 0);function yr(c){const n=zi.state;zi.state=void 0,n?.resolve(c)}function dr(c){return y1([zi],async()=>{const n=Bt.state.loadedModelId;if(c===n)return;const s=Re.state,o=lt[s.game].levels.find(({id:h})=>h===s.level);if(n!=null&&qa.state==="play"&&s.screen==="round"&&Ba(s.drafts,n,s.game,s.level).answers.length<o.rounds.length){if(!await new Promise(m=>{zi.state={resolve:m}}))return;Ra(n,s.game,s.level,{document:"",startedAt:void 0}),Re.state={...Re.state,screen:"levels"}}await Jt.loadModel(c)})}function Sv(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{d:"M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function mc(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function T1(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{d:"M280-120q-33 0-56.5-23.5T200-200v-520q-17 0-28.5-11.5T160-760q0-17 11.5-28.5T200-800h160q0-17 11.5-28.5T400-840h160q17 0 28.5 11.5T600-800h160q17 0 28.5 11.5T800-760q0 17-11.5 28.5T760-720v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520Zm-400 0v520-520Zm200 316 76 76q11 11 28 11t28-11q11-11 11-28t-11-28l-76-76 76-76q11-11 11-28t-11-28q-11-11-28-11t-28 11l-76 76-76-76q-11-11-28-11t-28 11q-11 11-11 28t11 28l76 76-76 76q-11 11-11 28t11 28q11 11 28 11t28-11l76-76Z"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function Tv(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function _v(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M6 22q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h7.175q.4 0 .763.15t.637.425l4.85 4.85q.275.275.425.638t.15.762V20q0 .825-.587 1.413T18 22zm7-14q0 .425.288.713T14 9h4l-5-5z"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function Av({dialogRef:c,modelId:n,disabled:s}){const o=ze.useId(),h=ze.useId(),[m,p]=ze.useState(!1),[v,_]=ze.useState(),M=pc.find(g=>g.id===n);async function b(){if(!(n==null||s||m)){p(!0),_(void 0);try{await Jt.deleteModel(n),c.current?.close()}catch(g){_(String(g))}finally{p(!1)}}}return f.jsxs("dialog",{className:"deleteModelDialog",ref:c,"aria-labelledby":o,"aria-describedby":h,"aria-busy":m,onClose:()=>_(void 0),onCancel:g=>{m&&g.preventDefault()},children:[f.jsxs("h2",{id:o,children:["Delete ",M==null?"model":`${M.name} ${M.parameters}`,"?"]}),f.jsx("p",{id:h,children:"You can always download the model again"}),v!=null&&f.jsx("div",{className:"deleteError",role:"alert",children:v}),f.jsxs("div",{className:"dialogActions",children:[f.jsx("button",{autoFocus:!0,disabled:m,onClick:()=>c.current?.close(),children:"Cancel"}),f.jsx("button",{className:"confirmDelete",disabled:s||m,onClick:()=>{b()},children:m?"Deleting…":"Delete model"})]})]})}function f1(c){const n=Te.c(39),{state:s}=c,[o,h]=ze.useState(),[m,p]=ze.useState(!1),[v,_]=ze.useState(),M=ze.useRef(null);let b;n[0]===Symbol.for("react.memo_cache_sentinel")?(b=function(V){return h(void 0),V.catch(P=>h(String(P)))},n[0]=b):b=n[0];const g=b;let N;n[1]!==s.loading||n[2]!==s.models?(N=function(V){const P=s.models[V]?.download,J=s.loading?.modelId===V?s.loading:void 0;if(P!=null){const ce=P.totalSize>0?P.downloadedSize/P.totalSize:void 0;return f.jsxs("div",{className:"modelProgress",children:[f.jsxs("div",{children:[f.jsxs("span",{children:[ce==null?"Connecting…":`${Math.floor(ce*100)}%`,ce!=null&&P.speed!=null&&` · ${(P.speed/1e6).toFixed(1)} MB/s`]}),f.jsx("span",{children:P.status==="canceling"?"Canceling…":P.eta==null?"Estimating…":`${bv(P.eta,{compact:!0})} left`})]}),f.jsx(Ua,{value:ce,label:`${V} download`})]})}return J!=null?f.jsxs("div",{className:"modelProgress",children:[f.jsx("span",{children:J.stage==="model"?`Loading ${Math.round(J.progress*100)}%`:J.stage==="context"?"Preparing context…":"Warming up…"}),f.jsx(Ua,{value:J.stage==="model"?J.progress:void 0,label:`Loading ${V}`})]}):null},n[1]=s.loading,n[2]=s.models,n[3]=N):N=n[3];const D=N;let q;n[4]!==D||n[5]!==s.loadedModelId||n[6]!==s.loading||n[7]!==s.models?(q=pc.map(k=>{const V=s.models[k.id],P=s.loadedModelId===k.id,J=k.id==="gemma-q8",ce=`${k.name} ${k.parameters}`;return f.jsxs("article",{className:"modelRow","data-active":P,children:[f.jsxs("div",{className:"modelRowMain",children:[f.jsxs("button",{className:"modelSelect",disabled:P||V?.download!=null||V?.deleting||V?.downloaded&&s.loading!=null,"aria-label":`${P?"Loaded":V?.downloaded?"Load":"Download"} ${ce} ${k.quant}`,"aria-description":J?"Our pick":void 0,onClick:()=>{g(V?.downloaded?dr(k.id):Jt.downloadModel(k.id))},children:[f.jsx("span",{className:"modelIcon",children:P?f.jsx(mc,{}):V?.downloaded?f.jsx(fr,{}):f.jsx(Sv,{})}),f.jsxs("span",{className:"modelDetails",children:[f.jsx("span",{className:"modelName",children:ce}),f.jsxs("span",{className:"modelMeta",children:[f.jsx("span",{className:"modelTag",children:k.quant}),f.jsx("span",{className:"modelTag",children:k.size}),J&&f.jsx("span",{className:"modelTag ourPick",children:"Our pick"})]})]})]}),V?.download!=null?f.jsx("button",{className:"cancelDownload",disabled:V.download.status==="canceling",onClick:()=>{g(Jt.cancelDownload(k.id))},"aria-label":`Cancel ${ce} download`,children:"Cancel"}):V?.downloaded&&f.jsx("button",{className:"deleteModel",disabled:V.deleting||s.loading!=null,onClick:()=>{_(k.id),M.current?.showModal()},"aria-label":`Delete ${ce} ${k.quant}`,title:"Delete model",children:f.jsx(T1,{})})]}),D(k.id),V?.error!=null&&f.jsx("div",{className:"error",role:"alert",children:V.error})]},k.id)}),n[4]=D,n[5]=s.loadedModelId,n[6]=s.loading,n[7]=s.models,n[8]=q):q=n[8];let C;if(n[9]!==D||n[10]!==s.loadedModelId||n[11]!==s.loading||n[12]!==s.localModels){let k;n[14]!==D||n[15]!==s.loadedModelId||n[16]!==s.loading?(k=V=>f.jsxs("article",{className:"modelRow","data-active":s.loadedModelId===V.id,children:[f.jsxs("button",{className:"modelSelect",disabled:s.loadedModelId===V.id||s.loading!=null,onClick:()=>{g(dr(V.id))},title:V.name,children:[f.jsx("span",{className:"modelIcon",children:s.loadedModelId===V.id?f.jsx(mc,{}):f.jsx(fr,{})}),f.jsxs("span",{className:"modelDetails",children:[f.jsx("span",{className:"modelName",children:V.name}),f.jsx("span",{className:"modelMeta",children:f.jsx("span",{className:"modelTag",children:"Local file"})})]})]}),D(V.id)]},V.id),n[14]=D,n[15]=s.loadedModelId,n[16]=s.loading,n[17]=k):k=n[17],C=s.localModels.map(k),n[9]=D,n[10]=s.loadedModelId,n[11]=s.loading,n[12]=s.localModels,n[13]=C}else C=n[13];let U;n[18]!==q||n[19]!==C?(U=f.jsxs("div",{className:"modelRows",children:[q,C]}),n[18]=q,n[19]=C,n[20]=U):U=n[20];const G=m||s.loading!=null;let Z,ne;n[21]===Symbol.for("react.memo_cache_sentinel")?(Z=()=>{p(!0),g(Jt.selectModelFile().then(xv)).finally(()=>p(!1))},ne=f.jsx(_v,{}),n[21]=Z,n[22]=ne):(Z=n[21],ne=n[22]);let F;n[23]!==G?(F=f.jsxs("button",{disabled:G,onClick:Z,children:[ne,"Select model file…"]}),n[23]=G,n[24]=F):F=n[24];let Q;n[25]===Symbol.for("react.memo_cache_sentinel")?(Q=f.jsxs("button",{onClick:()=>{g(Jt.openModelsDirectory())},children:[f.jsx(Tv,{}),"Models folder"]}),n[25]=Q):Q=n[25];let H;n[26]!==F?(H=f.jsxs("div",{className:"fileActions",children:[F,Q]}),n[26]=F,n[27]=H):H=n[27];let B;n[28]!==o||n[29]!==s.error?(B=(o??s.error)!=null&&f.jsx("div",{className:"error",role:"alert",children:o??s.error}),n[28]=o,n[29]=s.error,n[30]=B):B=n[30];const L=s.loading!=null||v==null||!s.models[v]?.downloaded;let I;n[31]!==v||n[32]!==L?(I=f.jsx(Av,{dialogRef:M,modelId:v,disabled:L}),n[31]=v,n[32]=L,n[33]=I):I=n[33];let ie;return n[34]!==H||n[35]!==B||n[36]!==I||n[37]!==U?(ie=f.jsxs("div",{className:"modelList","aria-label":"Models",children:[U,H,B,I]}),n[34]=H,n[35]=B,n[36]=I,n[37]=U,n[38]=ie):ie=n[38],ie}function xv(c){if(c!=null)return dr(c)}function wv(){const c=Te.c(9),n=Pe(zi),s=ze.useRef(null),o=ze.useId();let h,m;c[0]!==n?(h=()=>{n!=null?s.current?.showModal():s.current?.close()},m=[n],c[0]=n,c[1]=h,c[2]=m):(h=c[1],m=c[2]),ze.useEffect(h,m);let p;c[3]!==o?(p=f.jsx("p",{id:o,children:"Switching a model now will stop the current play round. Are you sure?"}),c[3]=o,c[4]=p):p=c[4];let v;c[5]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsxs("div",{className:"dialogActions",children:[f.jsx("button",{autoFocus:!0,onClick:Ev,children:"Cancel"}),f.jsx("button",{className:"confirmSwitch",onClick:Nv,children:"Switch model"})]}),c[5]=v):v=c[5];let _;return c[6]!==o||c[7]!==p?(_=f.jsxs("dialog",{className:"switchModelDialog",ref:s,"aria-label":"Switch model","aria-describedby":o,onCancel:jv,children:[p,v]}),c[6]=o,c[7]=p,c[8]=_):_=c[8],_}function Nv(){return yr(!0)}function Ev(){return yr(!1)}function jv(){return yr(!1)}function Mv(c){const n=Te.c(37),{state:s}=c,o=ze.useRef(null),h=ze.useRef(null),m=s.loading!=null,p=s.loadedModelId==null,[v,_]=ze.useState(p);!m&&v!==p&&_(p);const M=s.loading?.modelId??s.loadedModelId;let b;n[0]!==M?(b=pc.find(ce=>ce.id===M),n[0]=M,n[1]=b):b=n[1];const g=b;let N;n[2]!==g||n[3]!==M||n[4]!==s.localModels?(N=g==null?s.localModels.find(ce=>ce.id===M)?.name:`${g.name} ${g.parameters}`,n[2]=g,n[3]=M,n[4]=s.localModels,n[5]=N):N=n[5];const D=N;let q;n[6]!==s?(q=Jy(s),n[6]=s,n[7]=q):q=n[7];const C=q;let U,G;n[8]!==m||n[9]!==v?(U=()=>{v?(h.current?.hidePopover(),o.current?.showModal()):(o.current?.close(),m&&h.current?.showPopover())},G=[v,m],n[8]=m,n[9]=v,n[10]=U,n[11]=G):(U=n[10],G=n[11]),ze.useEffect(U,G);const Z=`Models: ${D??"Get a model"}`;let ne;n[12]===Symbol.for("react.memo_cache_sentinel")?(ne=f.jsx(fr,{}),n[12]=ne):ne=n[12];const F=D??"Get a model";let Q;n[13]!==F?(Q=f.jsx("span",{className:"modelButtonName",children:F}),n[13]=F,n[14]=Q):Q=n[14];let H;n[15]===Symbol.for("react.memo_cache_sentinel")?(H=f.jsx(fv,{}),n[15]=H):H=n[15];let B;n[16]!==D||n[17]!==Z||n[18]!==Q?(B=f.jsxs("button",{className:"modelButton",popoverTarget:"modelsPopover",title:D,"aria-label":Z,children:[ne,Q,H]}),n[16]=D,n[17]=Z,n[18]=Q,n[19]=B):B=n[19];let L;n[20]!==C.count||n[21]!==C.progress?(L=C.count>0&&f.jsx(Ua,{value:C.progress,label:"Total download progress"}),n[20]=C.count,n[21]=C.progress,n[22]=L):L=n[22];let I;n[23]!==v||n[24]!==B||n[25]!==L?(I=f.jsxs("div",{className:"modelButtonArea",hidden:v,children:[B,L]}),n[23]=v,n[24]=B,n[25]=L,n[26]=I):I=n[26];let ie;n[27]!==s?(ie=f.jsx("div",{className:"modelsPopover",id:"modelsPopover",popover:"auto",ref:h,children:f.jsx(f1,{state:s})}),n[27]=s,n[28]=ie):ie=n[28];let k;n[29]===Symbol.for("react.memo_cache_sentinel")?(k=f.jsx("h1",{id:"pickModelHeading",children:"Pick a model"}),n[29]=k):k=n[29];let V;n[30]!==s?(V=f.jsxs("dialog",{className:"requiredPicker",ref:o,onCancel:zv,"aria-labelledby":"pickModelHeading",children:[k,f.jsx(f1,{state:s})]}),n[30]=s,n[31]=V):V=n[31];let P;n[32]===Symbol.for("react.memo_cache_sentinel")?(P=f.jsx(wv,{}),n[32]=P):P=n[32];let J;return n[33]!==I||n[34]!==ie||n[35]!==V?(J=f.jsxs("div",{className:"modelPicker",children:[I,ie,V,P]}),n[33]=I,n[34]=ie,n[35]=V,n[36]=J):J=n[36],J}function zv(c){c.target===c.currentTarget&&c.preventDefault()}function Dv(c){const n=Te.c(18),{state:s}=c,o=Pe(qa);let h;n[0]===Symbol.for("react.memo_cache_sentinel")?(h=function(Z){if(Z!==qa.state){if(matchMedia("(prefers-reduced-motion: reduce)").matches){qa.state=Z;return}document.startViewTransition({types:[`to-${Z}`],update:()=>{Mi.flushSync(()=>{qa.state=Z});for(const ne of document.querySelector(".mainContent > .page")?.getAnimations()??[])ne.finish()}})}},n[0]=h):h=n[0];const m=h;let p;n[1]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs("a",{className:"appIdentity",href:"https://github.com/giladgd/semantic-golfer",target:"_blank",rel:"noreferrer",title:"Semantic Golfer on GitHub",draggable:!1,children:[f.jsx("img",{className:"appMark",src:"./icon.svg",alt:"",draggable:!1}),f.jsx("strong",{children:"Semantic Golfer"}),f.jsx(o1,{className:"identityLinkIcon","aria-hidden":"true"})]}),n[1]=p):p=n[1];const v=o==="play"?"page":void 0;let _;n[2]===Symbol.for("react.memo_cache_sentinel")?(_=()=>m("play"),n[2]=_):_=n[2];let M;n[3]!==v?(M=f.jsx("button",{"aria-current":v,onClick:_,children:"Play"}),n[3]=v,n[4]=M):M=n[4];const b=o==="playground"?"page":void 0;let g;n[5]===Symbol.for("react.memo_cache_sentinel")?(g=()=>m("playground"),n[5]=g):g=n[5];let N;n[6]!==b?(N=f.jsx("button",{"aria-current":b,onClick:g,children:"Playground"}),n[6]=b,n[7]=N):N=n[7];let D;n[8]!==M||n[9]!==N?(D=f.jsxs("nav",{"aria-label":"Main navigation",children:[M,N]}),n[8]=M,n[9]=N,n[10]=D):D=n[10];let q;n[11]===Symbol.for("react.memo_cache_sentinel")?(q=f.jsxs("a",{className:"repositoryLink",href:"https://github.com/withcatai/node-llama-cpp?utm_source=semantic_golfer",target:"_blank",rel:"noreferrer",title:"node-llama-cpp on GitHub","aria-label":"node-llama-cpp on GitHub",draggable:!1,children:[f.jsx(rv,{"aria-hidden":"true"}),f.jsx("code",{children:"node-llama-cpp"}),f.jsx(o1,{className:"externalLinkIcon"})]}),n[11]=q):q=n[11];let C;n[12]!==s?(C=f.jsxs("div",{className:"headerActions",children:[q,f.jsx(Mv,{state:s})]}),n[12]=s,n[13]=C):C=n[13];let U;return n[14]!==o||n[15]!==C||n[16]!==D?(U=f.jsxs("header",{className:"topBar","data-platform":window.platform,"data-mode":o,children:[p,D,C]}),n[14]=o,n[15]=C,n[16]=D,n[17]=U):U=n[17],U}const _1=["noul","choice","score"],Di={noul:2,choice:50,score:10};function Cv(c){const n=hr(c?.input);if(n!=null)return n;if(c.additionalInputs!=null){if(!Array.isArray(c.additionalInputs)||c.additionalInputs.length>6)return"Use at most seven questions per document.";for(const s of c.additionalInputs){const o=hr(s);if(o!=null)return o;if(s.document!==c.input.document)return"All questions must use the same document."}}}function A1(c,n){return typeof c=="string"&&c.length<=1e3&&(n==="noul"||c.trim().length>0)}function qi({type:c,criteria:n}){if(c==="noul")return n;let s=n.length;for(;s>0;){const o=n[s-1];if(typeof o!="string"||o.length>1e3||o.trim())break;s--}return s===n.length?n:n.slice(0,s)}function hr(c){if(c==null||!_1.includes(c.type))return"Choose a decision type.";if(typeof c.document!="string"||c.document.length>32e3)return"Keep the document under 32,000 characters.";if(typeof c.instruction!="string"||!c.instruction.trim()||c.instruction.length>1e3)return"Enter a question (up to 1,000 characters).";if(!Array.isArray(c.criteria)||c.criteria.length<2||c.criteria.length>Di[c.type])return c.type==="noul"?"Use exactly two criteria.":`Use between 2 and ${Di[c.type]} criteria.`;const n=qi(c);if(n.length<2)return"Enter at least two nonempty criteria.";if(n.some(s=>!A1(s,c.type)))return c.type==="noul"?"Use text of up to 1,000 characters for each criterion.":"Fill in each criterion (up to 1,000 characters)."}class qv{state=new yl({running:!1});latest;completedKey;evaluate;constructor(n){this.evaluate=n}setInput(n){const s=JSON.stringify(n)!==JSON.stringify(this.latest);return this.latest=n,n==null?(this.completedKey=void 0,this.state.state={running:!1}):s&&this.state.state.error!=null&&(this.state.state={...this.state.state,error:void 0}),y1([this],async()=>{for(;this.latest!=null&&Cv(this.latest)==null&&JSON.stringify(this.latest)!==this.completedKey;){const o=this.latest,h=JSON.stringify(o);this.state.state={...this.state.state,running:!0,error:void 0};try{const m=await this.evaluate(o);this.latest?.modelId===o.modelId&&(this.state.state={running:!0,result:{...m,request:o}})}catch(m){JSON.stringify(this.latest)===h&&(this.state.state={...this.state.state,error:String(m)})}this.completedKey=this.latest==null?void 0:h}this.state.state={...this.state.state,running:!1}})}retry(){return this.state.state.running||this.state.state.error==null?Promise.resolve():(this.completedKey=void 0,this.setInput(this.latest))}}const sr="My whole team is locked out of our accounts. None of us can sign in, so we cannot continue our work.",fc={noul:[{name:"Shared issue",input:{type:"noul",document:sr,instruction:"Does this issue affect multiple people?",criteria:["Multiple people are affected","No indication multiple people are affected"]}},{name:"An animal",input:{type:"noul",document:"A small cat curled up on my keyboard while I was working.",instruction:"Does this text mention an animal?",criteria:["An animal is mentioned","No animal is mentioned"]}},{name:"Needs a reply",input:{type:"noul",document:"Thanks for sending the notes. Could you confirm whether Tuesday at 10 works for the review?",instruction:"Does this message need a reply?",criteria:["The sender asks a question or requests action","The message is informational and needs no response"]}}],choice:[{name:"Support routing",input:{type:"choice",document:sr,instruction:"Which support team should handle this ticket?",criteria:["Accounts: signing in, passwords, and account access","Billing: invoices, payments, and refunds","Technical: problems using features after signing in"]}},{name:"Delivery",input:{type:"choice",document:"I need it delivered as soon as possible",instruction:"Which delivery method has the customer chosen?",criteria:["Standard shipping","Express courier","Store pickup"]}},{name:"Intent",input:{type:"choice",document:"Please add an option to export the dashboard charts as SVG files. This export option is currently missing.",instruction:"What is the main intent of this message?",criteria:["Report a bug","Request a feature","Ask for help","Give a compliment"]}}],score:[{name:"Issue severity",input:{type:"score",document:sr,instruction:"How much is the issue affecting the customer's work?",criteria:["No interruption to work","Some tasks are slower or harder","The customer cannot continue their work"]}},{name:"Intent",input:{type:"score",document:"We want to buy 20 seats, but only if your product integrates with our CRM. We need to confirm that before purchasing.",instruction:"How strongly does the customer express an intention to purchase?",criteria:["Not interested","Just browsing","Considering purchasing","Conditional intent to purchase","Ready to buy"]}},{name:"Satisfaction",input:{type:"score",document:"The app saves me time every day. The confusing menus still annoy me, but overall I’m happy with it",instruction:"How satisfied is the customer with their overall experience?",criteria:["Very dissatisfied","Somewhat dissatisfied","Neutral","Somewhat satisfied","Very satisfied"]}}]},zn=new yl({type:"noul",drafts:{noul:fc.noul[0].input,choice:fc.choice[0].input,score:fc.score[0].input}},{queueEvents:!1}),sa=new qv(c=>Jt.evaluateDecision(c));function ji(c){zn.state={...zn.state,drafts:{...zn.state.drafts,[c.type]:c}}}yl.createCombinedChangeListener([zn,Bt,qa,Re],([c,n,s,o])=>{if(n.loadedModelId==null)sa.setInput(void 0);else if(s==="playground"){const h=c.drafts[c.type];sa.setInput({modelId:n.loadedModelId,input:{...h,criteria:qi(h)}})}else{const h=o.screen==="round"?Ba(o.drafts,n.loadedModelId,o.game,o.level):void 0,m=lt[o.game].levels.find(({id:v})=>v===o.level),p=h==null?void 0:m?.rounds[h.answers.length];sa.setInput(p!=null&&h?.document.trim()?mr(n.loadedModelId,p,h.document):void 0)}},{callInstantlyWithCurrentState:!0});function Ov(c){const n=Te.c(37),{input:s,disabled:o,onChange:h}=c;let m;n[0]!==s?(m=qi(s),n[0]=s,n[1]=m):m=n[1];const p=m;let v;n[2]!==s.criteria||n[3]!==s.type?(v=s.type!=="noul"&&s.criteria.length<Di[s.type]&&s.criteria.at(-1)?.trim()?[...s.criteria,""]:s.criteria,n[2]=s.criteria,n[3]=s.type,n[4]=v):v=n[4];const _=v;let M;n[5]===Symbol.for("react.memo_cache_sentinel")?(M=f.jsx("span",{children:"Instruction"}),n[5]=M):M=n[5];let b;n[6]!==s||n[7]!==h?(b=F=>h({...s,instruction:F.target.value}),n[6]=s,n[7]=h,n[8]=b):b=n[8];let g;n[9]!==s.instruction||n[10]!==b?(g=f.jsxs("label",{className:"instructionHeader",htmlFor:"decisionQuestion",children:[M,f.jsx("textarea",{id:"decisionQuestion","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",rows:1,value:s.instruction,title:s.instruction,maxLength:1e3,onChange:b})]}),n[9]=s.instruction,n[10]=b,n[11]=g):g=n[11];let N;n[12]===Symbol.for("react.memo_cache_sentinel")?(N=f.jsx("h2",{className:"criteriaTitle",children:"Criteria"}),n[12]=N):N=n[12];let D;if(n[13]!==p||n[14]!==s||n[15]!==h||n[16]!==_){let F;n[18]!==p||n[19]!==s||n[20]!==h?(F=(Q,H)=>f.jsxs("div",{className:"criterion",children:[f.jsx("label",{htmlFor:`criterion-${H}`,children:s.type==="noul"?H===0?"Yes":"No":s.type==="score"?H:x1(H)}),f.jsx("textarea",{id:`criterion-${H}`,"data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",rows:1,"aria-label":`Criterion ${H+1}`,"aria-invalid":H<p.length&&!A1(Q,s.type),value:Q,title:Q,maxLength:1e3,placeholder:s.type==="choice"?"Describe this choice":s.type==="score"?"Describe this level":H===0?"Describe what counts as yes":"Describe what counts as no",onChange:B=>{const L=[...s.criteria];L[H]=B.target.value,h({...s,criteria:L})}}),f.jsx("button",{className:"removeButton","aria-label":`Remove criterion ${H+1}`,disabled:s.type==="noul"||H>=p.length||p.length<=2,onClick:()=>h({...s,criteria:s.criteria.filter((B,L)=>L!==H)}),children:f.jsx(T1,{})})]},H),n[18]=p,n[19]=s,n[20]=h,n[21]=F):F=n[21],D=_.map(F),n[13]=p,n[14]=s,n[15]=h,n[16]=_,n[17]=D}else D=n[17];let q;n[22]!==D?(q=f.jsx("div",{className:"criteriaList",children:D}),n[22]=D,n[23]=q):q=n[23];let C;n[24]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsx("span",{children:"Examples"}),n[24]=C):C=n[24];const U=fc[s.type];let G;if(n[25]!==h||n[26]!==U){let F;n[28]!==h?(F=Q=>f.jsxs("button",{onClick:()=>h(Q.input),children:[Q.name,f.jsx("span",{"aria-hidden":"true",children:"↗"})]},Q.name),n[28]=h,n[29]=F):F=n[29],G=U.map(F),n[25]=h,n[26]=U,n[27]=G}else G=n[27];let Z;n[30]!==G?(Z=f.jsxs("div",{className:"examples","aria-label":"Examples",children:[C,G]}),n[30]=G,n[31]=Z):Z=n[31];let ne;return n[32]!==o||n[33]!==Z||n[34]!==g||n[35]!==q?(ne=f.jsxs("fieldset",{className:"criteriaEditor",disabled:o,children:[g,N,q,Z]}),n[32]=o,n[33]=Z,n[34]=g,n[35]=q,n[36]=ne):ne=n[36],ne}function x1(c){return(c>=26?x1(Math.floor(c/26)-1):"")+String.fromCharCode(65+c%26)}function Rv(c){const n=Te.c(14),{value:s,disabled:o,onChange:h}=c;let m;n[0]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx("label",{htmlFor:"documentText",children:"Document"}),n[0]=m):m=n[0];let p;n[1]!==h?(p=g=>h(g.target.value),n[1]=h,n[2]=p):p=n[2];let v;n[3]!==o||n[4]!==p||n[5]!==s?(v=f.jsx("textarea",{id:"documentText","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",value:s,disabled:o,maxLength:32e3,spellCheck:!1,placeholder:"Type a document…",onChange:p}),n[3]=o,n[4]=p,n[5]=s,n[6]=v):v=n[6];let _;n[7]!==s.length?(_=s.length.toLocaleString(),n[7]=s.length,n[8]=_):_=n[8];let M;n[9]!==_?(M=f.jsxs("div",{className:"documentFooter",children:[_," characters"]}),n[9]=_,n[10]=M):M=n[10];let b;return n[11]!==v||n[12]!==M?(b=f.jsxs("section",{className:"documentInput",children:[m,v,M]}),n[11]=v,n[12]=M,n[13]=b):b=n[13],b}function Uv(c){const n=Te.c(9),{value:s}=c,o=s==null?void 0:"meter",h=s==null?void 0:s*100;let m;n[0]!==s?(m=s!=null&&f.jsx("span",{className:"position",style:{left:`${Math.max(0,Math.min(1,s))*100}%`}}),n[0]=s,n[1]=m):m=n[1];let p;n[2]!==m?(p=f.jsx("div",{className:"track",children:m}),n[2]=m,n[3]=p):p=n[3];let v;n[4]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsxs("div",{className:"labels","aria-hidden":"true",children:[f.jsx("span",{children:"No"}),f.jsx("span",{children:"Yes"})]}),n[4]=v):v=n[4];let _;return n[5]!==o||n[6]!==h||n[7]!==p?(_=f.jsxs("div",{className:"noulScale",role:o,"aria-label":"Probability of yes","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,children:[p,v]}),n[5]=o,n[6]=h,n[7]=p,n[8]=_):_=n[8],_}function Hv(c){const n=Te.c(55),{input:s,evaluation:o,ready:h,validationError:m,onRetry:p}=c,v=o.result?.request.input.type===s.type?o.result:void 0,_=v?.answer,M=_!=null&&_.type!=="noul"?_.confidence:void 0;let b,g,N,D,q,C,U,G,Z,ne,F,Q;if(n[0]!==_||n[1]!==o.error||n[2]!==o.running||n[3]!==s||n[4]!==p||n[5]!==h||n[6]!==v?.request.input||n[7]!==m){const V=qi(v?.request.input??s),P=_?.type==="choice"?Number(_.choice):void 0,J=_?.type==="choice"?V.map(($,W)=>_.probabilities[String(W)]??0):_?.type==="score"?_.probabilities:void 0,ce=h?m==null?"Waiting for a decision":"Complete the criteria":"Load a model to begin";ne="decisionResult",F=s.type,Q="Decision results",g=o.running,n[20]===Symbol.for("react.memo_cache_sentinel")?(N=f.jsx("h2",{children:"Decision"}),n[20]=N):N=n[20],n[21]!==o.error||n[22]!==o.running||n[23]!==p||n[24]!==h||n[25]!==m?(D=(m??o.error)!=null&&f.jsxs("div",{className:"error",children:[f.jsx("div",{role:"alert",children:m??o.error}),m==null&&h&&!o.running&&f.jsx("button",{onClick:p,children:"Retry"})]}),n[21]=o.error,n[22]=o.running,n[23]=p,n[24]=h,n[25]=m,n[26]=D):D=n[26],b="decisionContent",q=0,C="region",U="Decision details";const X=s.type==="choice"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"choiceValue",children:[V.map(($,W)=>f.jsx("span",{"data-selected":P===W,"aria-hidden":P!==W,children:$},W)),P==null&&f.jsx("span",{"data-selected":!0,children:"—"})]}),f.jsx("div",{className:"answerLabel",children:_==null?ce:"Selected choice"})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"answerValue","data-empty":_==null,children:_?.type==="noul"?f.jsxs(f.Fragment,{children:[(_.value*100).toFixed(1),f.jsx("span",{children:"%"})]}):_?.type==="score"?f.jsxs(f.Fragment,{children:[_.score.toFixed(2),f.jsxs("span",{children:[" / ",V.length-1]})]}):"—"}),f.jsx("div",{className:"answerLabel",children:_==null?ce:s.type==="noul"?"Probability of yes":"Score"})]});n[27]!==X?(G=f.jsx("div",{className:"answerSummary",children:X}),n[27]=X,n[28]=G):G=n[28],Z=s.type==="noul"?f.jsx(Uv,{value:_?.type==="noul"?_.value:void 0}):f.jsxs(f.Fragment,{children:[s.type==="score"&&f.jsxs("div",{className:"scoreScale",children:[f.jsx(Ua,{value:_?.type==="score"?_.score/(V.length-1):0,label:"Decision score"}),f.jsx("div",{className:"scoreMarkers",children:V.map(Bv)}),f.jsxs("div",{className:"scoreEndpoints",children:[f.jsx("span",{children:V[0]}),f.jsx("span",{children:V.at(-1)})]})]}),f.jsx("div",{className:"probabilities",children:V.map(($,W)=>f.jsxs("div",{className:"probability","data-selected":P===W,children:[f.jsxs("div",{className:"probabilityLabel",children:[f.jsxs("span",{className:"criterionLabel",title:$,children:[s.type==="choice"&&f.jsx(mc,{className:"selectedIcon"}),s.type==="score"?`${W} · ${$}`:$]}),f.jsx("span",{children:J==null?"—":`${((J[W]??0)*100).toFixed(1)}%`})]}),f.jsx(Ua,{value:J?.[W]??0,label:`${$}${P===W?", selected":""}`})]},W))})]}),n[0]=_,n[1]=o.error,n[2]=o.running,n[3]=s,n[4]=p,n[5]=h,n[6]=v?.request.input,n[7]=m,n[8]=b,n[9]=g,n[10]=N,n[11]=D,n[12]=q,n[13]=C,n[14]=U,n[15]=G,n[16]=Z,n[17]=ne,n[18]=F,n[19]=Q}else b=n[8],g=n[9],N=n[10],D=n[11],q=n[12],C=n[13],U=n[14],G=n[15],Z=n[16],ne=n[17],F=n[18],Q=n[19];let H;n[29]!==b||n[30]!==q||n[31]!==C||n[32]!==U||n[33]!==G||n[34]!==Z?(H=f.jsxs("div",{className:b,tabIndex:q,role:C,"aria-label":U,children:[G,Z]}),n[29]=b,n[30]=q,n[31]=C,n[32]=U,n[33]=G,n[34]=Z,n[35]=H):H=n[35];let B;n[36]!==M||n[37]!==s.type?(B=s.type!=="noul"&&f.jsxs("div",{className:"confidence",children:[f.jsx("span",{children:"Confidence"}),f.jsx("strong",{children:M==null?"—":`${(M*100).toFixed(1)}%`}),f.jsx(Ua,{value:M??0,label:"Decision confidence"})]}),n[36]=M,n[37]=s.type,n[38]=B):B=n[38];let L;n[39]!==v?(L=v==null?"—":f.jsxs(f.Fragment,{children:[v.duration.toLocaleString(void 0,{maximumFractionDigits:1}),f.jsx("span",{children:" ms"})]}),n[39]=v,n[40]=L):L=n[40];let I;n[41]!==L?(I=f.jsx("div",{className:"timing","aria-label":"Decision time",children:f.jsx("strong",{children:L})}),n[41]=L,n[42]=I):I=n[42];let ie;n[43]!==B||n[44]!==I?(ie=f.jsxs("div",{className:"resultFooter",children:[B,I]}),n[43]=B,n[44]=I,n[45]=ie):ie=n[45];let k;return n[46]!==g||n[47]!==N||n[48]!==D||n[49]!==H||n[50]!==ie||n[51]!==ne||n[52]!==F||n[53]!==Q?(k=f.jsxs("section",{className:ne,"data-type":F,"aria-label":Q,"aria-busy":g,children:[N,D,H,ie]}),n[46]=g,n[47]=N,n[48]=D,n[49]=H,n[50]=ie,n[51]=ne,n[52]=F,n[53]=Q,n[54]=k):k=n[54],k}function Bv(c,n){return f.jsx("span",{title:c,children:n},n)}function Yv(){const c=Te.c(33),n=Pe(Bt),s=Pe(zn),o=Pe(sa.state),h=s.drafts[s.type],m=n.loadedModelId!=null;let p;c[0]!==h?(p=function(H){const B=H.target;if(!(B instanceof HTMLTextAreaElement)||B.selectionStart!==B.selectionEnd||H.defaultPrevented||H.nativeEvent.isComposing||H.shiftKey||H.metaKey||H.ctrlKey||H.altKey||!["Enter","Backspace","ArrowUp","ArrowDown","Escape"].includes(H.key))return;const L=H.currentTarget,I=B.selectionStart===0,ie=B.selectionStart===B.value.length;let k,V;if(B.id==="documentText")H.key==="Escape"&&(k="decisionQuestion");else if(B.id==="decisionQuestion")H.key==="Escape"?k="documentText":ie&&(H.key==="Enter"||H.key==="ArrowDown")&&(k="criterion-0",V="start");else{const P=[...L.querySelectorAll(".criterion textarea")],J=P.indexOf(B),ce=qi(h);if(J<0)return;if(H.key==="Escape")k="documentText";else if(H.key==="ArrowUp"&&I)k=J===0?"decisionQuestion":`criterion-${J-1}`,V="end";else if(H.key==="ArrowDown"&&ie&&J<P.length-1)k=`criterion-${J+1}`,V="start";else if(H.key==="Enter"&&ie&&h.type!=="noul"&&ce.length<Di[h.type]){if(J<ce.length-1)Mi.flushSync(()=>ji({...h,criteria:[...ce.slice(0,J+1),"",...ce.slice(J+1)]}));else if(J===P.length-1){if(P.length>=Di[h.type])return;Mi.flushSync(()=>ji({...h,criteria:[...h.criteria.slice(0,J),B.value,""]}))}k=`criterion-${J+1}`,V="start"}else H.key==="Backspace"&&B.value===""&&h.type!=="noul"&&(ce.length>2||J>=ce.length&&J>0)&&(J<h.criteria.length&&Mi.flushSync(()=>ji({...h,criteria:h.criteria.filter((X,$)=>$!==J)})),k=`criterion-${Math.max(0,J-1)}`,V=J===0?"start":"end")}if(k!=null){H.preventDefault();const P=L.querySelector(`#${k}`);if(P?.focus(),P!=null&&V!=null){const J=V==="end"?P.value.length:0;P.setSelectionRange(J,J)}}},c[0]=h,c[1]=p):p=c[1];const v=p;let _;c[2]!==s?(_=_1.map(Q=>f.jsx("button",{"aria-pressed":s.type===Q,onClick:()=>{zn.state={...s,type:Q}},children:Q},Q)),c[2]=s,c[3]=_):_=c[3];let M;c[4]!==_?(M=f.jsx("div",{className:"typeSwitch",role:"group","aria-label":"Decision type",children:_}),c[4]=_,c[5]=M):M=c[5];let b;c[6]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsxs("span",{className:"localBadge",children:[f.jsx("span",{}),"On device"]}),c[6]=b):b=c[6];let g;c[7]!==M?(g=f.jsxs("div",{className:"workspaceToolbar",children:[M,b]}),c[7]=M,c[8]=g):g=c[8];const N=!m;let D;c[9]!==h||c[10]!==N?(D=f.jsx(Ov,{input:h,disabled:N,onChange:ji}),c[9]=h,c[10]=N,c[11]=D):D=c[11];const q=!m;let C;c[12]!==h?(C=Q=>ji({...h,document:Q}),c[12]=h,c[13]=C):C=c[13];let U;c[14]!==h.document||c[15]!==q||c[16]!==C?(U=f.jsx(Rv,{value:h.document,disabled:q,onChange:C}),c[14]=h.document,c[15]=q,c[16]=C,c[17]=U):U=c[17];let G;c[18]!==h?(G=hr(h),c[18]=h,c[19]=G):G=c[19];let Z;c[20]!==o||c[21]!==h||c[22]!==m||c[23]!==G?(Z=f.jsx(Hv,{input:h,evaluation:o,ready:m,validationError:G,onRetry:Gv}),c[20]=o,c[21]=h,c[22]=m,c[23]=G,c[24]=Z):Z=c[24];let ne;c[25]!==v||c[26]!==Z||c[27]!==D||c[28]!==U?(ne=f.jsxs("div",{className:"editorGrid",onKeyDown:v,children:[D,U,Z]}),c[25]=v,c[26]=Z,c[27]=D,c[28]=U,c[29]=ne):ne=c[29];let F;return c[30]!==ne||c[31]!==g?(F=f.jsxs("section",{className:"playground","aria-label":"Decision playground",children:[g,ne]}),c[30]=ne,c[31]=g,c[32]=F):F=c[32],F}function Gv(){sa.retry()}function Dn(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{d:"M19 12H5m7-7-7 7 7 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function w1(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{d:"m12 3 9 5-9 5-9-5 9-5ZM3 12l9 5 9-5M3 16l9 5 9-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function Qv(c){const n=Te.c(4);let s,o;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),o=f.jsx("path",{d:"M12 7v5l3 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=s,n[1]=o):(s=n[0],o=n[1]);let h;return n[2]!==c?(h=f.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...c,children:[s,o]}),n[2]=c,n[3]=h):h=n[3],h}function Lv(c){const n=Te.c(4);let s,o;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M272 320.46V202.3l166.62-75.73a16 16 0 0 0 0-29.14l-176-80A16 16 0 0 0 240 32v288.46q8-.45 16-.46t16 .46"}),o=f.jsx("path",{fill:"currentColor",d:"M463.33 457.5c-8.56-42.85-35.11-78.74-76.78-103.8c-32.5-19.55-72.67-31.3-114.55-33.7v79.75a16 16 0 1 1-32 0V320c-41.88 2.4-82.05 14.15-114.55 33.7c-41.67 25.06-68.22 60.95-76.78 103.8a32.49 32.49 0 0 0 6.44 27.08C61.13 492 70 496 80 496h352c10 0 18.88-4.05 24.9-11.42a32.49 32.49 0 0 0 6.43-27.08"}),n[0]=s,n[1]=o):(s=n[0],o=n[1]);let h;return n[2]!==c?(h=f.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 512 512","aria-hidden":"true",...c,children:[s,o]}),n[2]=c,n[3]=h):h=n[3],h}function Vv(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[f.jsx("path",{d:"M21.97 12c0 3.31-2.69 6-6 6a5.93 5.93 0 0 1-4-1.54c1.23-1.09 2-2.69 2-4.46s-.77-3.37-2-4.46a5.93 5.93 0 0 1 4-1.54c3.31 0 6 2.69 6 6"}),f.jsx("path",{d:"M13.97 12c0 1.77-.77 3.37-2 4.46a5.93 5.93 0 0 1-4 1.54c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.54 0 2.94.58 4 1.54c1.23 1.09 2 2.69 2 4.46"})]}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function N1(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M7 10.8V7H5v1q0 .95.55 1.713T7 10.8m10 0q.9-.325 1.45-1.088T19 8V7h-2zM11 19v-3.1q-1.225-.275-2.187-1.037T7.4 12.95q-1.875-.225-3.137-1.637T3 8V7q0-.825.588-1.412T5 5h2q0-.825.588-1.412T9 3h6q.825 0 1.413.588T17 5h2q.825 0 1.413.588T21 7v1q0 1.9-1.263 3.313T16.6 12.95q-.45 1.15-1.412 1.913T13 15.9V19h3q.425 0 .713.288T17 20t-.288.713T16 21H8q-.425 0-.712-.288T7 20t.288-.712T8 19z"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function vr(c,n,s,o){return c.find(h=>h.modelId===n&&h.game===s&&h.level===o)}function Xv(c,n,s){let o;for(const h of c)h.game===n&&h.level===s&&(o==null||Date.parse(h.completedAt)>Date.parse(o.completedAt))&&(o=h);return o}function Zv(c,n,s){return c.filter(o=>o.modelId===n&&o.game===s).reduce((o,h)=>o+h.best,0)}const Ci=new yl(void 0),E1=new Set;function kv(c){if(E1.has(c))return!0;try{return localStorage.getItem(`game-help:${c}`)==="seen"||c==="signalMixing"&&localStorage.getItem("game-help:camouflage")==="seen"}catch{return!1}}function Kv(c){E1.add(c);try{localStorage.setItem(`game-help:${c}`,"seen")}catch{}Ci.state=void 0}function Jv(c){const n=Te.c(19),{game:s,modelId:o}=c,h=Pe(Bt,Iv),m=Pe(Re,Wv);let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs("button",{className:"backButton",onClick:Fv,children:[f.jsx(Dn,{"aria-hidden":"true"}),"Games"]}),n[0]=p):p=n[0];const v=lt[s];let _;n[1]!==v.name?(_=f.jsx("h1",{children:v.name}),n[1]=v.name,n[2]=_):_=n[2];const M=lt[s];let b;if(n[3]!==m||n[4]!==s||n[5]!==o||n[6]!==h||n[7]!==M.levels){let D;n[9]!==m||n[10]!==s||n[11]!==o||n[12]!==h?(D=q=>{const C=(o==null?void 0:vr(h,o,s,q.id))??Xv(h,s,q.id),U=o==null?void 0:Ba(m,o,s,q.id),G=U!=null&&(U.answers.length>0||U.document.length>0);return f.jsxs("button",{className:"level",disabled:o==null,onClick:()=>{b1(s,q.id),kv(s)||(Ci.state=s)},children:[f.jsx("span",{className:"levelNumber",children:q.id}),f.jsxs("span",{className:"levelDetails",children:[f.jsx("strong",{children:q.title}),f.jsx("span",{children:q.skill}),f.jsxs("span",{className:"levelMeta",children:[q.rounds.length," rounds · ",Math.max(...q.rounds.map($v))," bars"]})]}),f.jsx("span",{className:"levelScore","data-played":C!=null,children:C==null?f.jsxs("span",{className:"playAction",children:[G?"Continue":"Play",f.jsx(Dn,{"aria-hidden":"true"})]}):C.modelId===o?f.jsxs(f.Fragment,{children:[f.jsx("strong",{children:C.latest.toLocaleString()}),f.jsx("span",{children:"Last score"})]}):f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"Played with"}),f.jsx("strong",{className:"modelName",title:C.modelName,children:C.modelName})]})})]},q.id)},n[9]=m,n[10]=s,n[11]=o,n[12]=h,n[13]=D):D=n[13],b=M.levels.map(D),n[3]=m,n[4]=s,n[5]=o,n[6]=h,n[7]=M.levels,n[8]=b}else b=n[8];let g;n[14]!==b?(g=f.jsx("div",{className:"levels",children:b}),n[14]=b,n[15]=g):g=n[15];let N;return n[16]!==_||n[17]!==g?(N=f.jsxs("section",{className:"levelPicker",children:[p,_,g]}),n[16]=_,n[17]=g,n[18]=N):N=n[18],N}function $v(c){return c.labels.length}function Fv(){Re.state={...Re.state,screen:"games"}}function Wv(c){return c.drafts}function Iv(c){return c.scores}function Pv(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M8.488 21.288q-1.638-.713-2.85-1.925t-1.925-2.85T3 13q0-.425.288-.712T4 12t.713.288T5 13q0 2.925 2.038 4.963T12 20t4.963-2.037T19 13t-2.037-4.962T12 6h-.15l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L8.7 5.7q-.3-.3-.3-.7t.3-.7l2.575-2.575q.3-.3.713-.288t.712.313q.275.3.288.7t-.288.7l-.85.85H12q1.875 0 3.513.713t2.85 1.925t1.925 2.85T21 13t-.712 3.513t-1.925 2.85t-2.85 1.925T12 22t-3.512-.712"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function e2(c){const n=Te.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("path",{fill:"currentColor",d:"M2.7 20L6.475 9.5q.125-.325.388-.5t.562-.175q.2 0 .375.075t.325.225l6.75 6.75q.15.15.225.325t.075.375q0 .3-.175.563t-.5.387L4 21.3q-.3.125-.575.038t-.475-.288t-.288-.475T2.7 20M23.025 7.025q-.225.225-.525.225t-.525-.225L21.9 6.95q-.35-.35-.875-.35t-.875.35l-5.075 5.075q-.225.225-.525.225t-.525-.225t-.225-.525t.225-.525L19.1 5.9q.8-.8 1.925-.8t1.925.8l.075.075q.225.225.225.525t-.225.525m-13.05-3Q10.2 3.8 10.5 3.8t.525.225l.125.125q.8.8.8 1.9t-.8 1.9l-.075.075q-.225.225-.525.225t-.525-.225T9.8 7.5t.225-.525L10.1 6.9q.35-.35.35-.85t-.35-.85l-.125-.125Q9.75 4.85 9.75 4.55t.225-.525m4.05-2q.225-.225.525-.225t.525.225L16.15 3.1q.8.8.8 1.925t-.8 1.925l-3.075 3.075q-.225.225-.525.225t-.525-.225T11.8 9.5t.225-.525L15.1 5.9q.35-.35.35-.875t-.35-.875l-1.075-1.075Q13.8 2.85 13.8 2.55t.225-.525m8 12q-.225.225-.525.225t-.525-.225L19.9 12.95q-.35-.35-.875-.35t-.875.35l-1.075 1.075q-.225.225-.525.225t-.525-.225t-.225-.525t.225-.525L17.1 11.9q.8-.8 1.925-.8t1.925.8l1.075 1.075q.225.225.225.525t-.225.525"}),n[0]=s):s=n[0];let o;return n[1]!==c?(o=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...c,children:s}),n[1]=c,n[2]=o):o=n[2],o}function j1(c){const n=Te.c(11);let s,o,h;n[0]!==c?({children:s,className:h,...o}=c,n[0]=c,n[1]=s,n[2]=o,n[3]=h):(s=n[1],o=n[2],h=n[3]);const m=h===void 0?"":h,p=ze.useRef(null),v=window.platform==="darwin";let _,M;n[4]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{const D=q=>{q.key!=="Enter"||q.isComposing||q.defaultPrevented||q.altKey||q.shiftKey||(v?!q.metaKey||q.ctrlKey:!q.ctrlKey||q.metaKey)||document.querySelector(":modal, :popover-open")!=null||p.current?.closest("[inert]")!=null||(q.preventDefault(),q.repeat||p.current?.click())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},M=[v],n[4]=_,n[5]=M):(_=n[4],M=n[5]),ze.useEffect(_,M);const b=`advanceButton ${m}`;let g;n[6]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsxs("kbd",{"aria-hidden":"true",children:[v?"⌘":"Ctrl",f.jsx("span",{children:"↵"})]}),n[6]=g):g=n[6];let N;return n[7]!==s||n[8]!==o||n[9]!==b?(N=f.jsxs("button",{...o,ref:p,className:b,"aria-keyshortcuts":v?"Meta+Enter":"Control+Enter",children:[s,g]}),n[7]=s,n[8]=o,n[9]=b,n[10]=N):N=n[10],N}function t2(c){const n=Te.c(96),{game:s,level:o,modelId:h,draft:m}=c,p=Pe(Bt,n2);let v,_,M,b,g,N,D,q,C,U;if(n[0]!==m.answers||n[1]!==m.completion?.record.best||n[2]!==s||n[3]!==o||n[4]!==h||n[5]!==p){const T=Wy(o,m.answers.map(Oa));let Y;n[16]!==m.completion?.record.best||n[17]!==s||n[18]!==o.id||n[19]!==h||n[20]!==p?(Y=m.completion?.record.best??vr(p,h,s,o.id)?.best,n[16]=m.completion?.record.best,n[17]=s,n[18]=o.id,n[19]=h,n[20]=p,n[21]=Y):Y=n[21],v=Y;const le=lt[s];let ae;if(n[22]!==o.id||n[23]!==le.levels){let ge;n[25]!==o.id?(ge=Se=>{const{id:ee}=Se;return ee===o.id+1},n[25]=o.id,n[26]=ge):ge=n[26],ae=le.levels.find(ge),n[22]=o.id,n[23]=le.levels,n[24]=ae}else ae=n[24];_=ae,q="levelResult";const be=lt[s];n[27]!==o.id||n[28]!==be.name?(C=f.jsxs("span",{className:"levelName",children:[be.name," · Level ",o.id]}),n[27]=o.id,n[28]=be.name,n[29]=C):C=n[29],n[30]!==o.title?(U=f.jsx("h1",{children:o.title}),n[30]=o.title,n[31]=U):U=n[31],N="scoreSummary",D="polite",b="yourScore",n[32]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsx("span",{children:"Your score"}),n[32]=g):g=n[32],M=T.toLocaleString(),n[0]=m.answers,n[1]=m.completion?.record.best,n[2]=s,n[3]=o,n[4]=h,n[5]=p,n[6]=v,n[7]=_,n[8]=M,n[9]=b,n[10]=g,n[11]=N,n[12]=D,n[13]=q,n[14]=C,n[15]=U}else v=n[6],_=n[7],M=n[8],b=n[9],g=n[10],N=n[11],D=n[12],q=n[13],C=n[14],U=n[15];let G;n[33]!==M?(G=f.jsx("strong",{children:M}),n[33]=M,n[34]=G):G=n[34];let Z;n[35]!==b||n[36]!==g||n[37]!==G?(Z=f.jsxs("div",{className:b,children:[g,G]}),n[35]=b,n[36]=g,n[37]=G,n[38]=Z):Z=n[38];let ne;n[39]===Symbol.for("react.memo_cache_sentinel")?(ne=f.jsx("span",{children:"Best score"}),n[39]=ne):ne=n[39];let F;n[40]!==v?(F=v?.toLocaleString()??"—",n[40]=v,n[41]=F):F=n[41];let Q;n[42]!==F?(Q=f.jsxs("div",{className:"bestScore",children:[ne,f.jsx("strong",{children:F})]}),n[42]=F,n[43]=Q):Q=n[43];let H;n[44]!==Z||n[45]!==Q||n[46]!==N||n[47]!==D?(H=f.jsxs("div",{className:N,"aria-live":D,children:[Z,Q]}),n[44]=Z,n[45]=Q,n[46]=N,n[47]=D,n[48]=H):H=n[48];let B;n[49]!==m.completion?(B=m.completion!=null&&m.completion.record.latest>m.completion.previousBest&&f.jsxs("p",{className:"newBest",children:[f.jsx(e2,{"aria-hidden":"true"}),"New record for this model!"]}),n[49]=m.completion,n[50]=B):B=n[50];let L;if(n[51]!==m.answers||n[52]!==o.rounds){let T;n[54]!==m.answers?(T=(Y,le)=>f.jsxs("div",{className:"roundScore",children:[f.jsxs("span",{children:[le+1,". ",Y.title,f.jsxs("small",{children:[Oa(m.answers[le])," / ",Y.limit," characters"]})]}),f.jsx("strong",{children:v1(Y,Oa(m.answers[le])).toLocaleString()})]},Y.id),n[54]=m.answers,n[55]=T):T=n[55],L=o.rounds.map(T),n[51]=m.answers,n[52]=o.rounds,n[53]=L}else L=n[53];let I;n[56]!==L?(I=f.jsx("div",{className:"roundScores",children:L}),n[56]=L,n[57]=I):I=n[57];let ie;n[58]!==m.saving?(ie=m.saving&&f.jsx("p",{role:"status",children:"Saving score…"}),n[58]=m.saving,n[59]=ie):ie=n[59];let k;n[60]!==m.error||n[61]!==s||n[62]!==o.id||n[63]!==h?(k=m.error!=null&&f.jsxs("p",{className:"saveError",role:"alert",children:[m.error,f.jsx("button",{onClick:()=>{S1(h,s,o.id)},children:"Retry saving"})]}),n[60]=m.error,n[61]=s,n[62]=o.id,n[63]=h,n[64]=k):k=n[64];let V;n[65]===Symbol.for("react.memo_cache_sentinel")?(V=f.jsxs("button",{onClick:a2,children:[f.jsx(w1,{"aria-hidden":"true"}),"Levels"]}),n[65]=V):V=n[65];const P=m.saving||m.completion==null;let J;n[66]!==s||n[67]!==o.id||n[68]!==h?(J=()=>Ra(h,s,o.id,{answers:[],document:"",startedAt:void 0,completion:void 0,error:void 0}),n[66]=s,n[67]=o.id,n[68]=h,n[69]=J):J=n[69];let ce;n[70]===Symbol.for("react.memo_cache_sentinel")?(ce=f.jsx(Pv,{"aria-hidden":"true"}),n[70]=ce):ce=n[70];let X;n[71]!==P||n[72]!==J?(X=f.jsxs("button",{disabled:P,onClick:J,children:[ce,"Play again"]}),n[71]=P,n[72]=J,n[73]=X):X=n[73];const $=_==null;let W;n[74]===Symbol.for("react.memo_cache_sentinel")?(W=f.jsx(N1,{"aria-hidden":"true"}),n[74]=W):W=n[74];let pe;n[75]!==$?(pe=f.jsxs("button",{autoFocus:$,onClick:l2,children:[W,"My scores"]}),n[75]=$,n[76]=pe):pe=n[76];let me;n[77]!==X||n[78]!==pe?(me=f.jsxs("div",{className:"secondaryActions",children:[V,X,pe]}),n[77]=X,n[78]=pe,n[79]=me):me=n[79];let Qe;n[80]!==s||n[81]!==_?(Qe=_!=null&&f.jsxs(j1,{className:"nextLevel",autoFocus:!0,onClick:()=>b1(s,_.id),children:["Next level",f.jsx(Dn,{"aria-hidden":"true"})]}),n[80]=s,n[81]=_,n[82]=Qe):Qe=n[82];let Ve;n[83]!==me||n[84]!==Qe?(Ve=f.jsxs("div",{className:"resultActions",children:[me,Qe]}),n[83]=me,n[84]=Qe,n[85]=Ve):Ve=n[85];let et;return n[86]!==H||n[87]!==B||n[88]!==I||n[89]!==ie||n[90]!==k||n[91]!==Ve||n[92]!==q||n[93]!==C||n[94]!==U?(et=f.jsxs("section",{className:q,children:[C,U,H,B,I,ie,k,Ve]}),n[86]=H,n[87]=B,n[88]=I,n[89]=ie,n[90]=k,n[91]=Ve,n[92]=q,n[93]=C,n[94]=U,n[95]=et):et=n[95],et}function l2(){Re.state={...Re.state,screen:"scores"}}function a2(){Re.state={...Re.state,screen:"levels"}}function n2(c){return c.scores}function i2(){const c=Te.c(26),{scores:n,scoreError:s,loadedModelId:o,localModels:h}=Pe(Bt);let m,p,v,_,M,b,g;if(c[0]!==o||c[1]!==h||c[2]!==s||c[3]!==n){const q=new Map(n.filter(r2).map(o2));for(const{id:U,name:G}of h)q.set(U,G);const C=[...pc.map(s2),...Array.from(q,c2)];_="myLevel",c[11]===Symbol.for("react.memo_cache_sentinel")?(M=f.jsxs("button",{className:"backButton",onClick:u2,children:[f.jsx(Dn,{"aria-hidden":"true"}),"Games"]}),b=f.jsx("h1",{children:"My scores"}),g=f.jsx("p",{children:"Best scores for each model. Shorter successful answers earn more points."}),c[11]=M,c[12]=b,c[13]=g):(M=c[11],b=c[12],g=c[13]),m="scoreContent",c[14]!==s?(p=s!=null&&f.jsx("p",{className:"scoreError",role:"alert",children:s}),c[14]=s,c[15]=p):p=c[15],v=Object.keys(lt).map(U=>f.jsx("div",{className:"scoreTable",children:f.jsxs("table",{children:[f.jsx("caption",{children:lt[U].name}),f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"col",children:"Level"}),C.map(G=>f.jsxs("th",{scope:"col","data-loaded":G.id===o,children:[G.name,f.jsx("small",{children:G.detail})]},G.id))]})}),f.jsx("tbody",{children:lt[U].levels.map(G=>f.jsxs("tr",{children:[f.jsxs("th",{scope:"row",children:[f.jsx("span",{children:G.id}),G.title]}),C.map(Z=>{const ne=vr(n,Z.id,U,G.id);return f.jsx("td",{"data-loaded":Z.id===o,children:ne==null?f.jsx("span",{className:"notPlayed","aria-label":"Not played",children:"—"}):f.jsx("strong",{children:ne.best.toLocaleString()})},Z.id)})]},G.id))}),f.jsx("tfoot",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"row",children:"Total"}),C.map(G=>f.jsx("td",{"data-loaded":G.id===o,children:Zv(n,G.id,U).toLocaleString()},G.id))]})})]})},U)),c[0]=o,c[1]=h,c[2]=s,c[3]=n,c[4]=m,c[5]=p,c[6]=v,c[7]=_,c[8]=M,c[9]=b,c[10]=g}else m=c[4],p=c[5],v=c[6],_=c[7],M=c[8],b=c[9],g=c[10];let N;c[16]!==m||c[17]!==p||c[18]!==v?(N=f.jsxs("div",{className:m,children:[p,v]}),c[16]=m,c[17]=p,c[18]=v,c[19]=N):N=c[19];let D;return c[20]!==_||c[21]!==M||c[22]!==b||c[23]!==g||c[24]!==N?(D=f.jsxs("section",{className:_,children:[M,b,g,N]}),c[20]=_,c[21]=M,c[22]=b,c[23]=g,c[24]=N,c[25]=D):D=c[25],D}function u2(){Re.state={...Re.state,screen:"games"}}function c2(c){const[n,s]=c;return{id:n,name:s,detail:"Local file"}}function s2(c){return{id:c.id,name:`${c.name} ${c.parameters}`,detail:c.quant}}function o2(c){const{modelId:n,modelName:s}=c;return[n,s]}function r2(c){const{modelId:n}=c;return n.startsWith("local:")}function M1(c){const n=Te.c(10),{game:s,labels:o,probabilities:h}=c;let m;if(n[0]!==s||n[1]!==o||n[2]!==h){let v;n[4]!==s||n[5]!==h?(v=(_,M)=>{const b=h[M],g=s==="lock"?Ha:M<2?gl.min:void 0,N=s==="signalMixing"&&M>=2?gl.other:void 0,D=b!=null&&(g==null||b>=g)&&(N==null||b<N);return f.jsxs("div",{className:"gameMeter","data-target":D,children:[f.jsxs("div",{className:"meterHeading",children:[f.jsxs("span",{children:[s==="lock"&&f.jsx("span",{className:"lockNumber",children:M+1}),_]}),f.jsx("strong",{children:b==null?"—":`${(b*100).toFixed(1)}%`})]}),f.jsxs("div",{className:"meterBar",children:[f.jsx(Ua,{value:b??0,label:_}),g!=null&&f.jsx("span",{className:"threshold","data-bound":"minimum",style:{left:`${g*100}%`},"aria-hidden":"true"}),N!=null&&f.jsx("span",{className:"threshold","data-bound":"maximum",style:{left:`${N*100}%`},"aria-hidden":"true"})]})]},_)},n[4]=s,n[5]=h,n[6]=v):v=n[6],m=o.map(v),n[0]=s,n[1]=o,n[2]=h,n[3]=m}else m=n[3];let p;return n[7]!==s||n[8]!==m?(p=f.jsx("div",{className:"gameMeterList","data-game":s,children:m}),n[7]=s,n[8]=m,n[9]=p):p=n[9],p}const gc=3e3,pr={lock:{limit:40,steps:[{text:"My cat",probabilities:[.9,.1,.08],caption:"Mention an animal to pass the first threshold."},{text:"My cat is stuck",probabilities:[.94,.32,.38],caption:"A problem alone does not ask for help."},{text:"My cat is stuck. Please help",probabilities:[.96,.91,.42],caption:"Ask for help to open the second lock."},{text:"My cat is stuck. Please help now!",probabilities:[.96,.94,.92],caption:"Add urgency to get every bar past its target."}]},signalMixing:{limit:60,steps:[{text:"I absolutely love the cake!",probabilities:[.86,.06,.04,.04],caption:"Start with praise and watch which category rises."},{text:"I absolutely love the cake! I hated",probabilities:[.72,.18,.04,.06],caption:"Add a contrasting detail to express both meanings."},{text:"I absolutely love the cake! I hated the rude service",probabilities:[.91,.88,.04,.04],caption:"Get both target bars past their thresholds, and keep the rest low."}]}};function f2(c,n){const s=pr[c],o=Math.min(s.steps.length-1,Math.floor(Math.max(0,n)/gc)),h=s.steps[o],m=s.steps[o-1],p=Math.floor(Math.max(0,n-o*gc-350)/65),v=h.text.slice(0,(m?.text.length??0)+p);return{document:v,probabilities:v===h.text?h.probabilities:m?.probabilities??h.probabilities.map(()=>0),caption:h.caption}}const ca=new yl({elapsed:0,playing:!1});function d2(c){const n=Te.c(50),{game:s,active:o}=c,h=Pe(ca),m=pr[s],p=m.steps.length*gc;let v,_,M;n[0]!==m.limit||n[1]!==s||n[2]!==h.elapsed?(v=f2(s,h.elapsed),_={...lt[s].levels[0].rounds[0],limit:m.limit},M=vc(s,_,v.document,v.probabilities),n[0]=m.limit,n[1]=s,n[2]=h.elapsed,n[3]=v,n[4]=_,n[5]=M):(v=n[3],_=n[4],M=n[5]);const b=M;let g,N;n[6]!==o||n[7]!==p?(g=()=>{const V=matchMedia("(prefers-reduced-motion: reduce)"),P=()=>{V.matches&&(ca.state={elapsed:p,playing:!1})};return o?ca.state={elapsed:V.matches?p:0,playing:!V.matches}:ca.state={...ca.state,playing:!1},V.addEventListener("change",P),()=>V.removeEventListener("change",P)},N=[o,p],n[6]=o,n[7]=p,n[8]=g,n[9]=N):(g=n[8],N=n[9]),ze.useEffect(g,N);let D;n[10]!==o||n[11]!==p||n[12]!==h.elapsed||n[13]!==h.playing?(D=()=>{if(!o||!h.playing)return;const V=performance.now(),P=new rr(()=>{const J=Math.min(p,h.elapsed+performance.now()-V);ca.state={elapsed:J,playing:J<p}},65);return()=>P.dispose()},n[10]=o,n[11]=p,n[12]=h.elapsed,n[13]=h.playing,n[14]=D):D=n[14];let q;n[15]!==o||n[16]!==p||n[17]!==h?(q=[o,p,h],n[15]=o,n[16]=p,n[17]=h,n[18]=q):q=n[18],ze.useEffect(D,q);let C;n[19]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsx("span",{className:"demoLabel",children:"Your sentence"}),n[19]=C):C=n[19];let U;n[20]!==h.playing?(U=f.jsx("span",{className:"caret","data-playing":h.playing,"aria-hidden":"true"}),n[20]=h.playing,n[21]=U):U=n[21];let G;n[22]!==v.document||n[23]!==U?(G=f.jsxs("div",{className:"demoSentence",children:[v.document,U]}),n[22]=v.document,n[23]=U,n[24]=G):G=n[24];let Z;n[25]===Symbol.for("react.memo_cache_sentinel")?(Z=f.jsx(mc,{}),n[25]=Z):Z=n[25];const ne=s==="lock"?"Unlocked":"Blended";let F;n[26]!==ne||n[27]!==b?(F=f.jsxs("span",{className:"demoSuccess","data-won":b,children:[Z,ne]}),n[26]=ne,n[27]=b,n[28]=F):F=n[28];let Q;n[29]!==m.limit||n[30]!==v.document.length?(Q=f.jsxs("span",{children:[v.document.length," / ",m.limit," characters"]}),n[29]=m.limit,n[30]=v.document.length,n[31]=Q):Q=n[31];let H;n[32]!==F||n[33]!==Q?(H=f.jsxs("div",{className:"demoFooter",children:[F,Q]}),n[32]=F,n[33]=Q,n[34]=H):H=n[34];let B;n[35]!==H||n[36]!==G?(B=f.jsxs("div",{className:"demoDocument",children:[C,G,H]}),n[35]=H,n[36]=G,n[37]=B):B=n[37];let L;n[38]!==v.probabilities||n[39]!==s||n[40]!==_.labels?(L=f.jsx("div",{className:"demoMeters",children:f.jsx(M1,{game:s,labels:_.labels,probabilities:v.probabilities})}),n[38]=v.probabilities,n[39]=s,n[40]=_.labels,n[41]=L):L=n[41];let I;n[42]!==B||n[43]!==L?(I=f.jsxs("div",{className:"demoScene",children:[B,L]}),n[42]=B,n[43]=L,n[44]=I):I=n[44];let ie;n[45]!==v.caption?(ie=f.jsx("figcaption",{children:v.caption}),n[45]=v.caption,n[46]=ie):ie=n[46];let k;return n[47]!==I||n[48]!==ie?(k=f.jsxs("figure",{className:"gameDemo","aria-label":"Example round",children:[I,ie]}),n[47]=I,n[48]=ie,n[49]=k):k=n[49],k}function h2(c){const n=Te.c(13),{game:s}=c,o=Pe(ca),h=pr[s].steps.length*gc,m=o.elapsed/h*100,p=`${m}% 100%`;let v;n[0]!==p?(v={backgroundSize:p},n[0]=p,n[1]=v):v=n[1];let _;n[2]!==m?(_=Math.round(m),n[2]=m,n[3]=_):_=n[3];const M=`Demo progress: ${_}%`;let b;n[4]!==h||n[5]!==o.elapsed||n[6]!==o.playing?(b=()=>{ca.state={elapsed:o.elapsed>=h?0:o.elapsed,playing:!o.playing}},n[4]=h,n[5]=o.elapsed,n[6]=o.playing,n[7]=b):b=n[7];const g=o.playing?"Pause demo":o.elapsed>=h?"Replay demo":"Play demo";let N;return n[8]!==v||n[9]!==M||n[10]!==b||n[11]!==g?(N=f.jsx("button",{className:"gameDemoPlayback",style:v,"aria-description":M,onClick:b,children:g}),n[8]=v,n[9]=M,n[10]=b,n[11]=g,n[12]=N):N=n[12],N}function m2(c){const n=Te.c(31),{game:s,ready:o}=c,h=Pe(Ci),m=ze.useRef(null),p=ze.useRef(null),v=ze.useId(),_=ze.useId(),M=h===s&&o;let b,g;n[0]!==M?(b=()=>{M?(m.current?.showModal(),p.current?.focus()):m.current?.close()},g=[M],n[0]=M,n[1]=b,n[2]=g):(b=n[1],g=n[2]),ze.useEffect(b,g);let N;n[3]!==s||n[4]!==o?(N=()=>{o&&Ci.state===s&&Kv(s)},n[3]=s,n[4]=o,n[5]=N):N=n[5];const D=lt[s];let q;n[6]!==v||n[7]!==D.name?(q=f.jsx("h2",{id:v,children:D.name}),n[6]=v,n[7]=D.name,n[8]=q):q=n[8];let C;n[9]!==s?(C=s==="lock"?f.jsxs(f.Fragment,{children:["Write a message that meets every condition. Get every bar to ",Ha*100,"% or more while staying within the character limit."]}):f.jsxs(f.Fragment,{children:["Blend the first two categories at ",gl.min*100,"% or more each. Keep every other category below ",gl.other*100,"%, within the character limit. Use details, rather than naming the categories."]}),n[9]=s,n[10]=C):C=n[10];let U;n[11]!==_||n[12]!==C?(U=f.jsx("p",{id:_,children:C}),n[11]=_,n[12]=C,n[13]=U):U=n[13];let G;n[14]===Symbol.for("react.memo_cache_sentinel")?(G=f.jsx("p",{children:"Shorter answers earn more points. Finish every round to save your level score for this model."}),n[14]=G):G=n[14];let Z;n[15]!==s||n[16]!==M?(Z=f.jsx(d2,{game:s,active:M}),n[15]=s,n[16]=M,n[17]=Z):Z=n[17];let ne;n[18]!==s?(ne=f.jsx(h2,{game:s}),n[18]=s,n[19]=ne):ne=n[19];let F;n[20]===Symbol.for("react.memo_cache_sentinel")?(F=f.jsx("button",{className:"startButton",ref:p,onClick:()=>m.current?.close(),children:"Start playing"}),n[20]=F):F=n[20];let Q;n[21]!==ne?(Q=f.jsxs("div",{className:"dialogActions",children:[ne,F]}),n[21]=ne,n[22]=Q):Q=n[22];let H;return n[23]!==_||n[24]!==v||n[25]!==Q||n[26]!==N||n[27]!==q||n[28]!==U||n[29]!==Z?(H=f.jsxs("dialog",{className:"gameHelpDialog",ref:m,"aria-labelledby":v,"aria-describedby":_,onClose:N,children:[q,U,G,Z,Q]}),n[23]=_,n[24]=v,n[25]=Q,n[26]=N,n[27]=q,n[28]=U,n[29]=Z,n[30]=H):H=n[30],H}const g2={lock:[{compactQuick:"A few words straight to the point",compactClear:"Small message with a strong signal",compact:"Every word pulling its weight",quickClear:"Instantly understood",quick:"You found your words quickly",clear:"Your meaning comes through clearly",balanced:"Every part of the message lands",close:"Just enough to get your meaning across",persistent:"You found a way to be understood",detailed:"A fully expressed thought",finish:"A clear finish to your first challenge",steady:"Your message gets through"},{compactQuick:"A clear request in no time",compactClear:"A small message with everything needed",compact:"All the essentials in a few words",quickClear:"Quickly made actionable",quick:"Straight to what matters",clear:"Nothing needed is left unsaid",balanced:"Every useful detail in balance",close:"Just enough detail to act on",persistent:"You worked out what to say",detailed:"Room for every useful detail",finish:"A complete set of clear messages",steady:"Ready for someone to act on"},{compactQuick:"A reason delivered without delay",compactClear:"A short message with solid reasoning",compact:"The reason without the extra words",quickClear:"Your reasoning lands immediately",quick:"Quick thinking with a clear cause",clear:"The why comes through strongly",balanced:"Purpose and reason evenly matched",close:"Your reasoning clears every bar",persistent:"You found the connection that works",detailed:"The whole explanation fits",finish:"A well-reasoned finish",steady:"A message with a clear why"},{compactQuick:"A plan made clear in a few beats",compactClear:"A compact plan with solid footing",compact:"A whole plan in very few words",quickClear:"Quick planning with clear intent",quick:"You put the plan together quickly",clear:"Every part of the plan is clear",balanced:"All the moving parts line up",close:"The plan clears every condition",persistent:"Your planning paid off",detailed:"Every step has room to land",finish:"A neatly planned finish",steady:"A plan that holds together"},{compactQuick:"A useful response without hesitation",compactClear:"A small message with real substance",compact:"Responsibility without excess words",quickClear:"A clear response right away",quick:"Quickly found the right response",clear:"Every part of your response lands",balanced:"Responsibility and action in balance",close:"Just enough to put things right",persistent:"You worked toward a useful response",detailed:"A complete and thoughtful response",finish:"A constructive finish",steady:"A useful way forward"},{compactQuick:"A quick solution in a small space",compactClear:"Compact wording with a strong balance",compact:"Room for both in very few words",quickClear:"A clear balance found quickly",quick:"You weighed it up quickly",clear:"Every side comes through clearly",balanced:"A remarkably even balance",close:"A balance that just clears the bars",persistent:"You found a way to make it work",detailed:"Enough room for every side",finish:"A well-balanced finish",steady:"Both sides have a place"},{compactQuick:"Six details in a quick little message",compactClear:"Six strong signals in a small space",compact:"Six details without the word count",quickClear:"Six clear signals right away",quick:"You fitted the details in quickly",clear:"Every useful detail stands out",balanced:"Six details pulling together",close:"All six details just clear",persistent:"You made room for every detail",detailed:"The full picture fits",finish:"A complete set of useful details",steady:"Nothing essential left behind"},{compactQuick:"A tactful answer without delay",compactClear:"A short message with a sure touch",compact:"Tact without the extra words",quickClear:"A clear way through found quickly",quick:"Quick thinking with a careful touch",clear:"Every intention comes through clearly",balanced:"Careful wording in good balance",close:"A delicate balance that holds",persistent:"You found the right approach",detailed:"Enough room for a thoughtful answer",finish:"A considerate finish",steady:"A careful choice of words"},{compactQuick:"Seven signals in a quick little message",compactClear:"Seven strong signals in a small space",compact:"Seven conditions without the sprawl",quickClear:"Seven clear matches right away",quick:"You assembled all seven quickly",clear:"Every one of the seven stands out",balanced:"Seven conditions in harmony",close:"All seven just over the line",persistent:"You brought all seven together",detailed:"A complete seven-part message",finish:"Seven moving parts brought home",steady:"All seven working together"},{compactQuick:"A fast edit with very little left over",compactClear:"Lean wording with a strong signal",compact:"Every word earns its place",quickClear:"A precise edit without hesitation",quick:"You found the short route quickly",clear:"The meaning survived the edit",balanced:"Seven signals in a lean balance",close:"Trimmed close without losing the match",persistent:"Your careful editing paid off",detailed:"Every available word put to use",finish:"A sharp finish to the editing challenge",steady:"A message worth its word count"},{compactQuick:"A swift finish in remarkably few words",compactClear:"A compact answer with masterful clarity",compact:"A final edit without excess",quickClear:"Seven clear matches at a glance",quick:"You found the final wording quickly",clear:"A strong answer to a demanding brief",balanced:"Seven intentions in fine balance",close:"A narrow path through all seven",persistent:"You worked this one into shape",detailed:"A demanding brief fully answered",finish:"A fitting final edit",steady:"A well-crafted answer"}],signalMixing:[{compactQuick:"Two meanings found in a few beats",compactClear:"A small message with two clear signals",compact:"Two meanings without extra words",quickClear:"A clear blend straight away",quick:"You found the blend quickly",clear:"Both meanings stand out",balanced:"Two meanings in balance",close:"A blend that just clears the lines",persistent:"You found a blend that works",detailed:"Enough room for both meanings",finish:"A clean finish to your first blends",steady:"Two meanings sharing one message"},{compactQuick:"A quick connection in a small space",compactClear:"Two strong topics in very few words",compact:"A connection without the word count",quickClear:"A clear crossover without hesitation",quick:"You connected the subjects quickly",clear:"Both subjects come through strongly",balanced:"An even mix of two subjects",close:"A connection that just makes it",persistent:"You found the link between them",detailed:"Both subjects have room to breathe",finish:"A well-connected finish",steady:"A natural meeting of topics"},{compactQuick:"A purpose found in a few quick words",compactClear:"A short message with clear intent",compact:"Purpose without the extra words",quickClear:"Topic and purpose clear at once",quick:"You found the intention quickly",clear:"The subject and purpose both land",balanced:"Subject and purpose in balance",close:"The intention just clears the line",persistent:"You shaped a clear intention",detailed:"Room for the subject and its purpose",finish:"A purposeful finish",steady:"A topic with a clear intention"},{compactQuick:"A quick distinction in a small space",compactClear:"A short answer with a clear boundary",compact:"The distinction without extra words",quickClear:"The right distinction made immediately",quick:"You spotted the difference quickly",clear:"The intended meanings stand apart",balanced:"Two targets cleanly balanced",close:"A narrow escape from the distractors",persistent:"You found what makes them different",detailed:"A fully drawn distinction",finish:"A sharp finish to the distinctions",steady:"The right side of the distinction"},{compactQuick:"Mixed intentions in a few quick words",compactClear:"A short message with two firm intentions",compact:"Two intentions without the excess",quickClear:"Your intentions land straight away",quick:"You found the right tone quickly",clear:"Both intentions come through strongly",balanced:"Mixed feelings in fine balance",close:"A delicate mix that holds",persistent:"You found words for both intentions",detailed:"Room for both sides of the message",finish:"A thoughtful finish to the mixed feelings",steady:"Two intentions carefully expressed"},{compactQuick:"A quick connection with little ink",compactClear:"A tiny message with a strong link",compact:"A connection made with few words",quickClear:"A clear link found immediately",quick:"You found the common thread quickly",clear:"The connection comes through strongly",balanced:"Two subjects sharing the spotlight",close:"A link that just clears the lines",persistent:"You found a concrete connection",detailed:"A fully expressed connection",finish:"A well-connected finish",steady:"One detail bringing two subjects together"},{compactQuick:"A quick blend through six categories",compactClear:"Two strong signals in a tiny message",compact:"Six categories navigated with few words",quickClear:"A clear distinction made at speed",quick:"You sorted the meanings quickly",clear:"Two signals above the distractions",balanced:"Two targets in an even balance",close:"A close pass through the distractions",persistent:"You separated the meanings with care",detailed:"A complete blend within the budget",finish:"A clear finish among six categories",steady:"The intended pair comes through"},{compactQuick:"Close meanings separated in a few beats",compactClear:"A small message with a clear distinction",compact:"Fine distinctions with few words",quickClear:"A precise separation made quickly",quick:"You found the boundary quickly",clear:"Related meanings kept distinct",balanced:"The right pair in a careful balance",close:"A fine line successfully walked",persistent:"You worked out the subtle difference",detailed:"Room for a careful distinction",finish:"A precise finish among close neighbors",steady:"The distinction comes through"},{compactQuick:"Two meanings found quickly among seven",compactClear:"Two firm signals with very few words",compact:"Seven categories handled with little text",quickClear:"A clean blend among seven at speed",quick:"You found the pair quickly",clear:"Two strong signals above five distractions",balanced:"A balanced pair among seven",close:"A narrow route past five distractions",persistent:"You found a way through all seven",detailed:"The whole blend fits the budget",finish:"A clean finish among seven signals",steady:"The right pair among seven"},{compactQuick:"A quick blend with no wasted space",compactClear:"A distilled message with strong meaning",compact:"Two meanings distilled to few words",quickClear:"A sharp blend found immediately",quick:"You found the concise version quickly",clear:"Both meanings survived the edit",balanced:"A compact blend in good balance",close:"Trimmed close without losing the blend",persistent:"Your patient editing found the blend",detailed:"Every available character at work",finish:"A concise finish to the blending challenge",steady:"The essence of both meanings"},{compactQuick:"A final blend in a few quick words",compactClear:"A compact blend with unmistakable targets",compact:"A demanding blend without excess",quickClear:"Two clear meanings found at speed",quick:"You found the final blend quickly",clear:"A strong blend through five distractions",balanced:"A finely balanced final blend",close:"A narrow route to the right pair",persistent:"You worked this blend into shape",detailed:"A demanding blend fully expressed",finish:"A perfectly mixed finish",steady:"A carefully composed blend"}]},y2={lock:[["A clear call for urgent help","A considerate change of plans","An appetite for a bright idea"],["An invitation with the essentials","A neighborly offer of help","A handoff ready to follow"],["A rainy day with a reasoned alternative","A delay with a clear explanation","A request with a reason to help"],["A plan with weather accounted for","Dinner in a clear sequence","A journey with a clear condition","A crossing planned with care"],["A concrete way to make amends","A useful response to a spoiled dinner","A considerate alternative to attending","A borrowed bike with a clear promise"],["Dinner choices clearly weighed","A meeting that makes room for both","A journey with the costs laid out","Reassurance with a useful offer"],["An invitation with all six details","A rescue message ready for action","A missed delivery with a concrete remedy","A backup plan for the last bus","A generous offer with proper credit"],["A fair split clearly proposed","A refusal that leaves another opening","A safer outing clearly explained","A favor with clear boundaries","A revised dinner with room for choice"],["A gathering with every detail covered","A rescue plan through bad weather","A complete proposal to make things right","Two routes with clear tradeoffs","A team effort given proper credit","A safe sequence clearly explained"],["A little invitation with everything needed","A considerate refusal neatly condensed","A compact message ready for rescue","A bargain with its essentials intact","A handoff without the spare words","Reassurance in a small space"],["A complete gathering in one message","A setback turned into a clear plan","An emergency message ready to act on","A repair with a concrete commitment","A negotiation with clear boundaries","A journey with the choices made clear","A handover with every step accounted for","A thank-you with a generous follow-through"]],signalMixing:[["A review with both sides expressed","Work with a little room for fun","A welcome with a clear caution"],["A meeting of food and science","Music with something to learn","An active life with a pet"],["A meal with an offer of help","A digital topic with a clear question","Gratitude with health in the picture"],["Making something for the pleasure of it","Technology as a chance to learn","A journey with history in view","A repair offered without a request"],["Gratitude with room for criticism","A thankful way to decline","An apology with an offer to help","A promise with praise expressed"],["A garden with a scientific connection","Art with a link to history","Music as a family connection","Movement with health in mind"],["A repair with science behind it","A recipe for a celebration","A lesson drawn from the wild","Weather on the transport route","Art for the pleasure of making it"],["The wild through a scientific lens","Food appreciated without a cooking lesson","A repair with something to learn","Art praised on its own merits","A journey promised without an invitation"],["A family connection through music","Cooking with a scientific thread","Nature finding its way into art","A refusal with gratitude intact","A recovery routine expressed clearly","A repair with a firm commitment"],["Both sides of a review in little space","A welcome with a compact caution","A little message with music to learn","A concise offer of help with food","A garden connected to technology","A small meeting of pets and science"],["A verdict with both sides intact","A cautious welcome clearly expressed","A profession with room for play","History finding its way onto the canvas","A growing connection to technology","A celebration with family at its heart","A snack with science behind it","A gracious way to say no"]]};function v2(c,n,s,o,h,m){if(!vc(c,s,o,h))return;const p=Oa(o)/s.limit,v=c==="lock"?h:h.slice(0,2),_=h.map((G,Z)=>c==="lock"?G-Ha:Z<2?G-gl.min:gl.other-G),M=Math.min(..._),b=M>=.18,g=p<=.45,N=m<=(25+s.labels.length*6)*1e3,D=Math.max(...v)-Math.min(...v)<=.06&&M>=.08,q=n.rounds.indexOf(s);let C;M<.035?C="close":g&&N?C="compactQuick":g&&b?C="compactClear":g?C="compact":N&&b?C="quickClear":N?C="quick":m>=15e4?C="persistent":b?C="clear":D?C="balanced":p>.82?C="detailed":q===n.rounds.length-1?C="finish":C="steady";const U=Array.from(o).reduce((G,Z)=>G+Z.codePointAt(0),q)%3;if(U===0&&["clear","steady","finish"].includes(C))return y2[c][n.id-1][q];if(U===0&&C==="balanced")return c==="lock"?`All ${v.length} conditions in balance`:`${s.labels[0]} and ${s.labels[1]} in balance`;if(U===0&&C==="close"&&c==="signalMixing"){const G=_.indexOf(M);return`${s.labels[G]} ${G<2?"just over":"kept below"} the line`}return g2[c][n.id-1][C]}function p2({won:c,game:n,level:s,round:o,document:h,result:m,startedAt:p}){const[v]=ze.useState(()=>new yl("",{queueEvents:!1})),_=Pe(v);return ze.useEffect(()=>{c&&(v.state=v2(n,s,o,h,gr(n,m),p==null?1/0:performance.now()-p)??"")},[c,n,s,o,h,m,p,v]),f.jsx("span",{className:"roundFeedback",role:"status","aria-hidden":!c,"data-visible":c&&_!=="",children:_})}function b2(c){const n=Te.c(109),{game:s,level:o,modelId:h,draft:m}=c,p=Pe(sa.state),v=o.rounds[m.answers.length],_=_2;let M,b,g,N;if(n[0]!==m.document||n[1]!==p.error||n[2]!==p.result||n[3]!==s||n[4]!==h||n[5]!==v){const bt=mr(h,v,m.document);b=p.result;let Ze;n[10]!==h||n[11]!==b||n[12]!==v.questions?(Ze=b!=null&&b.request.modelId===h&&JSON.stringify([b.request.input,...b.request.additionalInputs??[]].map(T2))===JSON.stringify(v.questions),n[10]=h,n[11]=b,n[12]=v.questions,n[13]=Ze):Ze=n[13],g=Ze,M=gr(s,g?b:void 0),N=b!=null&&JSON.stringify(b.request)===JSON.stringify(bt)&&p.error==null&&vc(s,v,m.document,M),n[0]=m.document,n[1]=p.error,n[2]=p.result,n[3]=s,n[4]=h,n[5]=v,n[6]=M,n[7]=b,n[8]=g,n[9]=N}else M=n[6],b=n[7],g=n[8],N=n[9];const D=N,q=Oa(m.document),C=lt[s];let U;n[14]===Symbol.for("react.memo_cache_sentinel")?(U=f.jsx("div",{className:"spacer"}),n[14]=U):U=n[14];let G;n[15]===Symbol.for("react.memo_cache_sentinel")?(G=f.jsxs("button",{className:"backButton",onClick:_,children:[f.jsx(Dn,{"aria-hidden":"true"}),"Levels"]}),n[15]=G):G=n[15];const Z=lt[s];let ne;n[16]!==Z.name?(ne=f.jsxs("div",{className:"gameHeading",children:[G,f.jsx("span",{children:Z.name})]}),n[16]=Z.name,n[17]=ne):ne=n[17];let F;n[18]!==v.title?(F=f.jsx("h1",{children:v.title}),n[18]=v.title,n[19]=F):F=n[19];let Q;n[20]!==s||n[21]!==v.labels?(Q=s==="lock"?`Get every condition to ${Ha*100}% or more.`:f.jsxs(f.Fragment,{children:["Bring ",v.labels[0]," and ",v.labels[1]," to ",gl.min*100,"% or more each. Keep every other category below ",gl.other*100,"%."]}),n[20]=s,n[21]=v.labels,n[22]=Q):Q=n[22];let H;n[23]!==Q?(H=f.jsx("p",{children:Q}),n[23]=Q,n[24]=H):H=n[24];let B;n[25]!==F||n[26]!==H?(B=f.jsxs("div",{className:"roundIntro",children:[F,H]}),n[25]=F,n[26]=H,n[27]=B):B=n[27];const L=m.answers.length+1;let I;n[28]!==o.id||n[29]!==o.rounds.length||n[30]!==L?(I=f.jsxs("div",{className:"roundCount",children:["Level ",o.id," · Round ",L," / ",o.rounds.length]}),n[28]=o.id,n[29]=o.rounds.length,n[30]=L,n[31]=I):I=n[31];let ie;n[32]!==B||n[33]!==I?(ie=f.jsxs("div",{className:"roundHeader",children:[B,I]}),n[32]=B,n[33]=I,n[34]=ie):ie=n[34];let k;n[35]===Symbol.for("react.memo_cache_sentinel")?(k=f.jsx("label",{className:"writingHeading",htmlFor:"gameDocument",children:"Your message"}),n[35]=k):k=n[35];const V=h==null;let P;n[36]!==m.startedAt||n[37]!==s||n[38]!==o.id||n[39]!==h||n[40]!==v.limit?(P=bt=>Ra(h,s,o.id,{startedAt:m.startedAt??performance.now(),document:Array.from(bt.target.value).slice(0,v.limit).join("")}),n[36]=m.startedAt,n[37]=s,n[38]=o.id,n[39]=h,n[40]=v.limit,n[41]=P):P=n[41];let J;n[42]!==m.document||n[43]!==V||n[44]!==P?(J=f.jsx("textarea",{id:"gameDocument","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",value:m.document,autoFocus:!0,placeholder:"Make every character count…","aria-describedby":"characterLimit",spellCheck:!1,disabled:V,onChange:P}),n[42]=m.document,n[43]=V,n[44]=P,n[45]=J):J=n[45];const ce=q>=v.limit;let X;n[46]!==q||n[47]!==v.limit||n[48]!==ce?(X=f.jsx("div",{className:"writingFooter",children:f.jsxs("span",{id:"characterLimit",className:"characterBudget","data-full":ce,children:[q," / ",v.limit," characters"]})}),n[46]=q,n[47]=v.limit,n[48]=ce,n[49]=X):X=n[49];let $;n[50]!==J||n[51]!==X?($=f.jsxs("div",{className:"writingArea",children:[k,J,X]}),n[50]=J,n[51]=X,n[52]=$):$=n[52];let W;n[53]!==s||n[54]!==M||n[55]!==v.labels?(W=f.jsx(M1,{game:s,labels:v.labels,probabilities:M}),n[53]=s,n[54]=M,n[55]=v.labels,n[56]=W):W=n[56];let pe;n[57]!==b||n[58]!==g?(pe=g?f.jsxs(f.Fragment,{children:[b.duration.toLocaleString(void 0,{maximumFractionDigits:1}),f.jsx("span",{children:" ms"})]}):"—",n[57]=b,n[58]=g,n[59]=pe):pe=n[59];let me;n[60]!==pe?(me=f.jsx("div",{className:"gameTiming","aria-label":"Decision time",children:f.jsx("strong",{children:pe})}),n[60]=pe,n[61]=me):me=n[61];let Qe;n[62]!==p.error||n[63]!==p.running?(Qe=p.error!=null&&f.jsxs("div",{className:"gameError",role:"alert",children:[p.error,f.jsx("button",{onClick:S2,disabled:p.running,children:"Retry"})]}),n[62]=p.error,n[63]=p.running,n[64]=Qe):Qe=n[64];let Ve;n[65]!==p.running||n[66]!==W||n[67]!==me||n[68]!==Qe?(Ve=f.jsxs("div",{className:"gameMeters","aria-label":"Live results","aria-busy":p.running,children:[W,me,Qe]}),n[65]=p.running,n[66]=W,n[67]=me,n[68]=Qe,n[69]=Ve):Ve=n[69];let et;n[70]!==$||n[71]!==Ve?(et=f.jsxs("div",{className:"gameBoard",children:[$,Ve]}),n[70]=$,n[71]=Ve,n[72]=et):et=n[72];let T;n[73]!==s?(T=f.jsx("button",{className:"howToPlay",onClick:()=>{Ci.state=s},children:"How to play"}),n[73]=s,n[74]=T):T=n[74];let Y;n[75]!==m.document||n[76]!==m.startedAt||n[77]!==s||n[78]!==o||n[79]!==b||n[80]!==v||n[81]!==D?(Y=f.jsx(p2,{won:D,game:s,level:o,round:v,document:m.document,result:b,startedAt:m.startedAt}),n[75]=m.document,n[76]=m.startedAt,n[77]=s,n[78]=o,n[79]=b,n[80]=v,n[81]=D,n[82]=Y):Y=n[82];const le=!D;let ae;n[83]!==m.answers.length||n[84]!==s||n[85]!==o.id||n[86]!==o.rounds.length||n[87]!==h?(ae=()=>{document.startViewTransition({types:[m.answers.length===o.rounds.length-1?"level-result":"next-round"],update:()=>Mi.flushSync(()=>ov(h,s,o.id,sa.state.state))})},n[83]=m.answers.length,n[84]=s,n[85]=o.id,n[86]=o.rounds.length,n[87]=h,n[88]=ae):ae=n[88];const be=m.answers.length===o.rounds.length-1?"Finish level":"Next round";let ge;n[89]===Symbol.for("react.memo_cache_sentinel")?(ge=f.jsx("span",{"aria-hidden":"true",children:" →"}),n[89]=ge):ge=n[89];let Se;n[90]!==le||n[91]!==ae||n[92]!==be?(Se=f.jsxs(j1,{className:"nextButton",disabled:le,onClick:ae,children:[be,ge]}),n[90]=le,n[91]=ae,n[92]=be,n[93]=Se):Se=n[93];let ee;n[94]!==T||n[95]!==Y||n[96]!==Se?(ee=f.jsxs("div",{className:"roundFooter",children:[T,Y,Se]}),n[94]=T,n[95]=Y,n[96]=Se,n[97]=ee):ee=n[97];let oe;n[98]===Symbol.for("react.memo_cache_sentinel")?(oe=f.jsx("div",{className:"spacer"}),n[98]=oe):oe=n[98];const Nt=h!=null;let ll;n[99]!==s||n[100]!==Nt?(ll=f.jsx(m2,{game:s,ready:Nt}),n[99]=s,n[100]=Nt,n[101]=ll):ll=n[101];let $t;return n[102]!==ie||n[103]!==C.name||n[104]!==et||n[105]!==ee||n[106]!==ll||n[107]!==ne?($t=f.jsxs("section",{className:"playRound","aria-label":C.name,children:[U,ne,ie,et,ee,oe,ll]}),n[102]=ie,n[103]=C.name,n[104]=et,n[105]=ee,n[106]=ll,n[107]=ne,n[108]=$t):$t=n[108],$t}function S2(){sa.retry()}function T2(c){const{document:n,...s}=c;return s}function _2(){Re.state={...Re.state,screen:"levels"}}function A2(){const c=Te.c(27),n=Pe(Re),s=Pe(Bt,E2),o=Pe(Bt,N2);if(n.screen==="scores"){let b;return c[0]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx(i2,{}),c[0]=b):b=c[0],b}if(n.screen==="levels"){let b;return c[1]!==s||c[2]!==n.game?(b=f.jsx(Jv,{game:n.game,modelId:s}),c[1]=s,c[2]=n.game,c[3]=b):b=c[3],b}if(n.screen==="round"&&s!=null){const b=lt[n.game];let g;if(c[4]!==n.level||c[5]!==b.levels){let U;c[7]!==n.level?(U=G=>{const{id:Z}=G;return Z===n.level},c[7]=n.level,c[8]=U):U=c[8],g=b.levels.find(U),c[4]=n.level,c[5]=b.levels,c[6]=g}else g=c[6];const N=g;let D;c[9]!==s||c[10]!==n.drafts||c[11]!==n.game||c[12]!==n.level?(D=Ba(n.drafts,s,n.game,n.level),c[9]=s,c[10]=n.drafts,c[11]=n.game,c[12]=n.level,c[13]=D):D=c[13];const q=D;let C;return c[14]!==q||c[15]!==N||c[16]!==s||c[17]!==n.game?(C=q.answers.length===N.rounds.length?f.jsx(t2,{game:n.game,level:N,modelId:s,draft:q}):f.jsx(b2,{game:n.game,level:N,modelId:s,draft:q},q.answers.length),c[14]=q,c[15]=N,c[16]=s,c[17]=n.game,c[18]=C):C=c[18],C}let h;c[19]===Symbol.for("react.memo_cache_sentinel")?(h=f.jsx("h1",{children:"Play with meaning"}),c[19]=h):h=c[19];let m;c[20]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsxs("div",{className:"intro",children:[h,f.jsxs("button",{onClick:w2,children:[f.jsx(N1,{"aria-hidden":"true"}),"My scores"]})]}),c[20]=m):m=c[20];let p;c[21]===Symbol.for("react.memo_cache_sentinel")?(p=Object.keys(lt),c[21]=p):p=c[21];let v;c[22]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsx("div",{className:"gameChoices",children:p.map(x2)}),c[22]=v):v=c[22];let _;c[23]!==o?(_=o!=null&&f.jsxs("span",{className:"appVersion",children:["v",o]}),c[23]=o,c[24]=_):_=c[24];let M;return c[25]!==_?(M=f.jsxs("section",{className:"play","aria-label":"Games",children:[m,v,_]}),c[25]=_,c[26]=M):M=c[26],M}function x2(c){return f.jsxs("button",{className:"gameChoice",disabled:c==="signalMixing",onClick:()=>{Re.state={...Re.state,screen:"levels",game:c}},children:[f.jsx("span",{className:"gameSymbol","aria-hidden":"true",children:c==="lock"?f.jsx(Lv,{}):f.jsx(Vv,{})}),f.jsx("span",{className:"gameName",children:lt[c].name}),f.jsx("span",{className:"description",children:lt[c].description}),f.jsx("span",{className:"gameMeta",children:c==="signalMixing"?f.jsx("span",{className:"gameTag",children:"Coming soon"}):f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"gameTag",children:[f.jsx(w1,{"aria-hidden":"true"}),lt[c].levels.length," levels"]}),f.jsxs("span",{className:"gameTag",children:[f.jsx(Qv,{"aria-hidden":"true"}),"5–10 min / level"]}),f.jsxs("span",{className:"playGame",children:["Play game ",f.jsx(Dn,{"aria-hidden":"true"})]})]})})]},c)}function w2(){Re.state={...Re.state,screen:"scores"}}function N2(c){return c.appVersion}function E2(c){return c.loadedModelId}function j2(c){const n=Te.c(25),{update:s}=c,o=ze.useRef(null),h=s!=null&&!s.dismissed;let m,p;if(n[0]!==h?(m=()=>{h?o.current?.showPopover():o.current?.hidePopover()},p=[h],n[0]=h,n[1]=m,n[2]=p):(m=n[1],p=n[2]),ze.useEffect(m,p),!s)return null;const v=s.status==="downloading"||s.status==="installing",_=s.status==="checking"?"Checking for updates…":s.status==="current"?"You’re up to date":s.status==="installing"?"Restarting to update…":s.version?`${s.version} is available`:"Could not check for updates";let M;n[3]!==_?(M=f.jsx("strong",{children:_}),n[3]=_,n[4]=M):M=n[4];let b;n[5]!==s.error||n[6]!==s.manual?(b=(s.error??s.manual)&&f.jsx("span",{children:s.error??s.manual}),n[5]=s.error,n[6]=s.manual,n[7]=b):b=n[7];let g;n[8]!==M||n[9]!==b?(g=f.jsxs("div",{className:"updateMessage",role:"status",children:[M,b]}),n[8]=M,n[9]=b,n[10]=g):g=n[10];let N;n[11]===Symbol.for("react.memo_cache_sentinel")?(N=f.jsx("button",{className:"dismissUpdate","aria-label":"Dismiss update notification",onClick:D2,children:f.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:f.jsx("path",{d:"m7 7 10 10M7 17 17 7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),n[11]=N):N=n[11];let D;n[12]!==v||n[13]!==s.manual||n[14]!==s.progress||n[15]!==s.status||n[16]!==s.version?(D=s.version&&f.jsxs("button",{className:"installUpdate",disabled:v,onClick:z2,children:[v&&f.jsx("progress",{"aria-label":"Update progress",max:1,value:s.progress}),f.jsx("span",{children:s.status==="installing"?"Restarting…":v?`Updating${s.progress==null?"…":` ${Math.round(s.progress*100)}%`}`:s.manual?"Download update":s.status==="error"?"Retry update":"Update"})]}),n[12]=v,n[13]=s.manual,n[14]=s.progress,n[15]=s.status,n[16]=s.version,n[17]=D):D=n[17];let q;n[18]!==s.status||n[19]!==s.version?(q=!s.version&&s.status==="error"&&f.jsx("button",{className:"installUpdate",onClick:M2,children:"Try again"}),n[18]=s.status,n[19]=s.version,n[20]=q):q=n[20];let C;return n[21]!==g||n[22]!==D||n[23]!==q?(C=f.jsxs("aside",{className:"updateToast",popover:"manual",ref:o,"aria-label":"App update",children:[g,N,D,q]}),n[21]=g,n[22]=D,n[23]=q,n[24]=C):C=n[24],C}function M2(){Jt.checkForUpdates()}function z2(){Jt.installUpdate()}function D2(){Jt.dismissUpdate()}function C2(){const c=Te.c(18),n=Pe(Bt),s=Pe(qa),o=Pe(Re,q2);let h;c[0]!==n?(h=f.jsx(Dv,{state:n}),c[0]=n,c[1]=h):h=c[1];const m=n.loadedModelId==null,p=n.loadedModelId==null,v=s==="play"?o:s;let _;c[2]!==s?(_=s==="play"?f.jsx(A2,{}):f.jsx(Yv,{}),c[2]=s,c[3]=_):_=c[3];let M;c[4]!==v||c[5]!==_?(M=f.jsx("div",{className:"page",children:_},v),c[4]=v,c[5]=_,c[6]=M):M=c[6];let b;c[7]!==s||c[8]!==m||c[9]!==p||c[10]!==M?(b=f.jsx("main",{className:"mainContent","data-mode":s,"data-blocked":m,inert:p,children:M}),c[7]=s,c[8]=m,c[9]=p,c[10]=M,c[11]=b):b=c[11];let g;c[12]!==n.update?(g=f.jsx(j2,{update:n.update}),c[12]=n.update,c[13]=g):g=c[13];let N;return c[14]!==h||c[15]!==b||c[16]!==g?(N=f.jsxs("div",{className:"app",children:[h,b,g]}),c[14]=h,c[15]=b,c[16]=g,c[17]=N):N=c[17],N}function q2(c){const{screen:n,game:s,level:o}=c;return`${n}/${s}/${o}`}Uy.createRoot(document.getElementById("root")).render(f.jsx(My.StrictMode,{children:f.jsx(C2,{})}));
|