@source-repo/rpc-cli 3.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 +1131 -0
- package/dist/bench.d.ts +66 -0
- package/dist/bench.d.ts.map +1 -0
- package/dist/bench.js +109 -0
- package/dist/bench.js.map +1 -0
- package/dist/broker.d.ts +61 -0
- package/dist/broker.d.ts.map +1 -0
- package/dist/broker.js +56 -0
- package/dist/broker.js.map +1 -0
- package/dist/bus.d.ts +142 -0
- package/dist/bus.d.ts.map +1 -0
- package/dist/bus.js +272 -0
- package/dist/bus.js.map +1 -0
- package/dist/bus.types.json +269 -0
- package/dist/conform.d.ts +75 -0
- package/dist/conform.d.ts.map +1 -0
- package/dist/conform.js +152 -0
- package/dist/conform.js.map +1 -0
- package/dist/console.d.ts +285 -0
- package/dist/console.d.ts.map +1 -0
- package/dist/console.js +686 -0
- package/dist/console.js.map +1 -0
- package/dist/console.types.json +1730 -0
- package/dist/extract.d.ts +37 -0
- package/dist/extract.d.ts.map +1 -0
- package/dist/extract.js +272 -0
- package/dist/extract.js.map +1 -0
- package/dist/fake.d.ts +58 -0
- package/dist/fake.d.ts.map +1 -0
- package/dist/fake.js +164 -0
- package/dist/fake.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +905 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp.d.ts +15 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +507 -0
- package/dist/mcp.js.map +1 -0
- package/dist/network.d.ts +58 -0
- package/dist/network.d.ts.map +1 -0
- package/dist/network.js +64 -0
- package/dist/network.js.map +1 -0
- package/dist/record.d.ts +74 -0
- package/dist/record.d.ts.map +1 -0
- package/dist/record.js +221 -0
- package/dist/record.js.map +1 -0
- package/dist/tapping.d.ts +11 -0
- package/dist/tapping.d.ts.map +1 -0
- package/dist/tapping.js +71 -0
- package/dist/tapping.js.map +1 -0
- package/dist/verbs.d.ts +59 -0
- package/dist/verbs.d.ts.map +1 -0
- package/dist/verbs.js +324 -0
- package/dist/verbs.js.map +1 -0
- package/dist/web/app.css +1 -0
- package/dist/web/app.js +2063 -0
- package/dist/web/app.js.map +1 -0
- package/dist/web/index.html +13 -0
- package/package.json +65 -0
package/dist/web/app.js
ADDED
|
@@ -0,0 +1,2063 @@
|
|
|
1
|
+
var Xg=Object.create;var uc=Object.defineProperty;var Gg=Object.getOwnPropertyDescriptor;var Jd=(r,i)=>(i=Symbol[r])?i:Symbol.for("Symbol."+r),es=r=>{throw TypeError(r)};var Fd=(r,i,s)=>i in r?uc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s;var Kd=(r,i)=>uc(r,"name",{value:i,configurable:!0});var Wd=r=>[,,,Xg(r?.[Jd("metadata")]??null)],Id=["class","method","getter","setter","accessor","field","value","get","set"],Pa=r=>r!==void 0&&typeof r!="function"?es("Function expected"):r,Vg=(r,i,s,u,o)=>({kind:Id[r],name:i,metadata:u,addInitializer:h=>s._?es("Already initialized"):o.push(Pa(h||null))}),Qg=(r,i)=>Fd(i,Jd("metadata"),r[3]),cc=(r,i,s,u)=>{for(var o=0,h=r[i>>1],m=h&&h.length;o<m;o++)i&1?h[o].call(s):u=h[o].call(s,u);return u},kl=(r,i,s,u,o,h)=>{var m,p,b,S,R,E=i&7,H=!!(i&8),I=!!(i&16),$=E>3?r.length+1:E?H?1:2:0,X=Id[E+5],re=E>3&&(r[$-1]=[]),ae=r[$]||(r[$]=[]),he=E&&(!I&&!H&&(o=o.prototype),E<5&&(E>3||!I)&&Gg(E<4?o:{get[s](){return $d(this,h)},set[s](k){return Zd(this,h,k)}},s));E?I&&E<4&&Kd(h,(E>2?"set ":E>1?"get ":"")+s):Kd(o,s);for(var ue=u.length-1;ue>=0;ue--)S=Vg(E,s,b={},r[3],ae),E&&(S.static=H,S.private=I,R=S.access={has:I?k=>Kg(o,k):k=>s in k},E^3&&(R.get=I?k=>(E^1?$d:$g)(k,o,E^4?h:he.get):k=>k[s]),E>2&&(R.set=I?(k,U)=>Zd(k,o,U,E^4?h:he.set):(k,U)=>k[s]=U)),p=(0,u[ue])(E?E<4?I?h:he[X]:E>4?void 0:{get:he.get,set:he.set}:o,S),b._=1,E^4||p===void 0?Pa(p)&&(E>4?re.unshift(p):E?I?h=p:he[X]=p:o=p):typeof p!="object"||p===null?es("Object expected"):(Pa(m=p.get)&&(he.get=m),Pa(m=p.set)&&(he.set=m),Pa(m=p.init)&&re.unshift(m));return E||Qg(r,o),he&&uc(o,s,he),I?E^4?h:he:o},Pd=(r,i,s)=>Fd(r,typeof i!="symbol"?i+"":i,s),oc=(r,i,s)=>i.has(r)||es("Cannot "+s),Kg=(r,i)=>Object(i)!==i?es('Cannot use the "in" operator on this value'):r.has(i),$d=(r,i,s)=>(oc(r,i,"read from private field"),s?s.call(r):i.get(r));var Zd=(r,i,s,u)=>(oc(r,i,"write to private field"),u?u.call(r,s):i.set(r,s),s),$g=(r,i,s)=>(oc(r,i,"access private method"),s);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function s(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(o){if(o.ep)return;o.ep=!0;const h=s(o);fetch(o.href,h)}})();function Zg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fc={exports:{}},ts={};var em;function Jg(){if(em)return ts;em=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(u,o,h){var m=null;if(h!==void 0&&(m=""+h),o.key!==void 0&&(m=""+o.key),"key"in o){h={};for(var p in o)p!=="key"&&(h[p]=o[p])}else h=o;return o=h.ref,{$$typeof:r,type:u,key:m,ref:o!==void 0?o:null,props:h}}return ts.Fragment=i,ts.jsx=s,ts.jsxs=s,ts}var tm;function Fg(){return tm||(tm=1,fc.exports=Jg()),fc.exports}var w=Fg(),hc={exports:{}},le={};var nm;function Wg(){if(nm)return le;nm=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),H=Symbol.iterator;function I(v){return v===null||typeof v!="object"?null:(v=H&&v[H]||v["@@iterator"],typeof v=="function"?v:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,re={};function ae(v,C,Y){this.props=v,this.context=C,this.refs=re,this.updater=Y||$}ae.prototype.isReactComponent={},ae.prototype.setState=function(v,C){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,C,"setState")},ae.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function he(){}he.prototype=ae.prototype;function ue(v,C,Y){this.props=v,this.context=C,this.refs=re,this.updater=Y||$}var k=ue.prototype=new he;k.constructor=ue,X(k,ae.prototype),k.isPureReactComponent=!0;var U=Array.isArray;function B(){}var j={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ie(v,C,Y){var K=Y.ref;return{$$typeof:r,type:v,key:C,ref:K!==void 0?K:null,props:Y}}function te(v,C){return ie(v.type,C,v.props)}function Ae(v){return typeof v=="object"&&v!==null&&v.$$typeof===r}function Re(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(Y){return C[Y]})}var P=/\/+/g;function de(v,C){return typeof v=="object"&&v!==null&&v.key!=null?Re(""+v.key):C.toString(36)}function G(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(B,B):(v.status="pending",v.then(function(C){v.status==="pending"&&(v.status="fulfilled",v.value=C)},function(C){v.status==="pending"&&(v.status="rejected",v.reason=C)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function N(v,C,Y,K,ne){var fe=typeof v;(fe==="undefined"||fe==="boolean")&&(v=null);var be=!1;if(v===null)be=!0;else switch(fe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(v.$$typeof){case r:case i:be=!0;break;case R:return be=v._init,N(be(v._payload),C,Y,K,ne)}}if(be)return ne=ne(v),be=K===""?"."+de(v,0):K,U(ne)?(Y="",be!=null&&(Y=be.replace(P,"$&/")+"/"),N(ne,C,Y,"",function($n){return $n})):ne!=null&&(Ae(ne)&&(ne=te(ne,Y+(ne.key==null||v&&v.key===ne.key?"":(""+ne.key).replace(P,"$&/")+"/")+be)),C.push(ne)),1;be=0;var Ie=K===""?".":K+":";if(U(v))for(var Be=0;Be<v.length;Be++)K=v[Be],fe=Ie+de(K,Be),be+=N(K,C,Y,fe,ne);else if(Be=I(v),typeof Be=="function")for(v=Be.call(v),Be=0;!(K=v.next()).done;)K=K.value,fe=Ie+de(K,Be++),be+=N(K,C,Y,fe,ne);else if(fe==="object"){if(typeof v.then=="function")return N(G(v),C,Y,K,ne);throw C=String(v),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return be}function L(v,C,Y){if(v==null)return v;var K=[],ne=0;return N(v,K,"","",function(fe){return C.call(Y,fe,ne++)}),K}function Z(v){if(v._status===-1){var C=v._result;C=C(),C.then(function(Y){(v._status===0||v._status===-1)&&(v._status=1,v._result=Y)},function(Y){(v._status===0||v._status===-1)&&(v._status=2,v._result=Y)}),v._status===-1&&(v._status=0,v._result=C)}if(v._status===1)return v._result.default;throw v._result}var me=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},Te={map:L,forEach:function(v,C,Y){L(v,function(){C.apply(this,arguments)},Y)},count:function(v){var C=0;return L(v,function(){C++}),C},toArray:function(v){return L(v,function(C){return C})||[]},only:function(v){if(!Ae(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return le.Activity=E,le.Children=Te,le.Component=ae,le.Fragment=s,le.Profiler=o,le.PureComponent=ue,le.StrictMode=u,le.Suspense=b,le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,le.__COMPILER_RUNTIME={__proto__:null,c:function(v){return j.H.useMemoCache(v)}},le.cache=function(v){return function(){return v.apply(null,arguments)}},le.cacheSignal=function(){return null},le.cloneElement=function(v,C,Y){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var K=X({},v.props),ne=v.key;if(C!=null)for(fe in C.key!==void 0&&(ne=""+C.key),C)!V.call(C,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&C.ref===void 0||(K[fe]=C[fe]);var fe=arguments.length-2;if(fe===1)K.children=Y;else if(1<fe){for(var be=Array(fe),Ie=0;Ie<fe;Ie++)be[Ie]=arguments[Ie+2];K.children=be}return ie(v.type,ne,K)},le.createContext=function(v){return v={$$typeof:m,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:h,_context:v},v},le.createElement=function(v,C,Y){var K,ne={},fe=null;if(C!=null)for(K in C.key!==void 0&&(fe=""+C.key),C)V.call(C,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ne[K]=C[K]);var be=arguments.length-2;if(be===1)ne.children=Y;else if(1<be){for(var Ie=Array(be),Be=0;Be<be;Be++)Ie[Be]=arguments[Be+2];ne.children=Ie}if(v&&v.defaultProps)for(K in be=v.defaultProps,be)ne[K]===void 0&&(ne[K]=be[K]);return ie(v,fe,ne)},le.createRef=function(){return{current:null}},le.forwardRef=function(v){return{$$typeof:p,render:v}},le.isValidElement=Ae,le.lazy=function(v){return{$$typeof:R,_payload:{_status:-1,_result:v},_init:Z}},le.memo=function(v,C){return{$$typeof:S,type:v,compare:C===void 0?null:C}},le.startTransition=function(v){var C=j.T,Y={};j.T=Y;try{var K=v(),ne=j.S;ne!==null&&ne(Y,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(B,me)}catch(fe){me(fe)}finally{C!==null&&Y.types!==null&&(C.types=Y.types),j.T=C}},le.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},le.use=function(v){return j.H.use(v)},le.useActionState=function(v,C,Y){return j.H.useActionState(v,C,Y)},le.useCallback=function(v,C){return j.H.useCallback(v,C)},le.useContext=function(v){return j.H.useContext(v)},le.useDebugValue=function(){},le.useDeferredValue=function(v,C){return j.H.useDeferredValue(v,C)},le.useEffect=function(v,C){return j.H.useEffect(v,C)},le.useEffectEvent=function(v){return j.H.useEffectEvent(v)},le.useId=function(){return j.H.useId()},le.useImperativeHandle=function(v,C,Y){return j.H.useImperativeHandle(v,C,Y)},le.useInsertionEffect=function(v,C){return j.H.useInsertionEffect(v,C)},le.useLayoutEffect=function(v,C){return j.H.useLayoutEffect(v,C)},le.useMemo=function(v,C){return j.H.useMemo(v,C)},le.useOptimistic=function(v,C){return j.H.useOptimistic(v,C)},le.useReducer=function(v,C,Y){return j.H.useReducer(v,C,Y)},le.useRef=function(v){return j.H.useRef(v)},le.useState=function(v){return j.H.useState(v)},le.useSyncExternalStore=function(v,C,Y){return j.H.useSyncExternalStore(v,C,Y)},le.useTransition=function(){return j.H.useTransition()},le.version="19.2.8",le}var im;function jc(){return im||(im=1,hc.exports=Wg()),hc.exports}var F=jc(),dc={exports:{}},ns={},mc={exports:{}},pc={};var am;function Ig(){return am||(am=1,(function(r){function i(N,L){var Z=N.length;N.push(L);e:for(;0<Z;){var me=Z-1>>>1,Te=N[me];if(0<o(Te,L))N[me]=L,N[Z]=Te,Z=me;else break e}}function s(N){return N.length===0?null:N[0]}function u(N){if(N.length===0)return null;var L=N[0],Z=N.pop();if(Z!==L){N[0]=Z;e:for(var me=0,Te=N.length,v=Te>>>1;me<v;){var C=2*(me+1)-1,Y=N[C],K=C+1,ne=N[K];if(0>o(Y,Z))K<Te&&0>o(ne,Y)?(N[me]=ne,N[K]=Z,me=K):(N[me]=Y,N[C]=Z,me=C);else if(K<Te&&0>o(ne,Z))N[me]=ne,N[K]=Z,me=K;else break e}}return L}function o(N,L){var Z=N.sortIndex-L.sortIndex;return Z!==0?Z:N.id-L.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var b=[],S=[],R=1,E=null,H=3,I=!1,$=!1,X=!1,re=!1,ae=typeof setTimeout=="function"?setTimeout:null,he=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;function k(N){for(var L=s(S);L!==null;){if(L.callback===null)u(S);else if(L.startTime<=N)u(S),L.sortIndex=L.expirationTime,i(b,L);else break;L=s(S)}}function U(N){if(X=!1,k(N),!$)if(s(b)!==null)$=!0,B||(B=!0,Re());else{var L=s(S);L!==null&&G(U,L.startTime-N)}}var B=!1,j=-1,V=5,ie=-1;function te(){return re?!0:!(r.unstable_now()-ie<V)}function Ae(){if(re=!1,B){var N=r.unstable_now();ie=N;var L=!0;try{e:{$=!1,X&&(X=!1,he(j),j=-1),I=!0;var Z=H;try{t:{for(k(N),E=s(b);E!==null&&!(E.expirationTime>N&&te());){var me=E.callback;if(typeof me=="function"){E.callback=null,H=E.priorityLevel;var Te=me(E.expirationTime<=N);if(N=r.unstable_now(),typeof Te=="function"){E.callback=Te,k(N),L=!0;break t}E===s(b)&&u(b),k(N)}else u(b);E=s(b)}if(E!==null)L=!0;else{var v=s(S);v!==null&&G(U,v.startTime-N),L=!1}}break e}finally{E=null,H=Z,I=!1}L=void 0}}finally{L?Re():B=!1}}}var Re;if(typeof ue=="function")Re=function(){ue(Ae)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,de=P.port2;P.port1.onmessage=Ae,Re=function(){de.postMessage(null)}}else Re=function(){ae(Ae,0)};function G(N,L){j=ae(function(){N(r.unstable_now())},L)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(N){N.callback=null},r.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<N?Math.floor(1e3/N):5},r.unstable_getCurrentPriorityLevel=function(){return H},r.unstable_next=function(N){switch(H){case 1:case 2:case 3:var L=3;break;default:L=H}var Z=H;H=L;try{return N()}finally{H=Z}},r.unstable_requestPaint=function(){re=!0},r.unstable_runWithPriority=function(N,L){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var Z=H;H=N;try{return L()}finally{H=Z}},r.unstable_scheduleCallback=function(N,L,Z){var me=r.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?me+Z:me):Z=me,N){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=Z+Te,N={id:R++,callback:L,priorityLevel:N,startTime:Z,expirationTime:Te,sortIndex:-1},Z>me?(N.sortIndex=Z,i(S,N),s(b)===null&&N===s(S)&&(X?(he(j),j=-1):X=!0,G(U,Z-me))):(N.sortIndex=Te,i(b,N),$||I||($=!0,B||(B=!0,Re()))),N},r.unstable_shouldYield=te,r.unstable_wrapCallback=function(N){var L=H;return function(){var Z=H;H=L;try{return N.apply(this,arguments)}finally{H=Z}}}})(pc)),pc}var sm;function Pg(){return sm||(sm=1,mc.exports=Ig()),mc.exports}var yc={exports:{}},lt={};var lm;function e0(){if(lm)return lt;lm=1;var r=jc();function i(b){var S="https://react.dev/errors/"+b;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)S+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+b+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var u={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(b,S,R){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:E==null?null:""+E,children:b,containerInfo:S,implementation:R}}var m=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(b,S){if(b==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,lt.createPortal=function(b,S){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(i(299));return h(b,S,null,R)},lt.flushSync=function(b){var S=m.T,R=u.p;try{if(m.T=null,u.p=2,b)return b()}finally{m.T=S,u.p=R,u.d.f()}},lt.preconnect=function(b,S){typeof b=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,u.d.C(b,S))},lt.prefetchDNS=function(b){typeof b=="string"&&u.d.D(b)},lt.preinit=function(b,S){if(typeof b=="string"&&S&&typeof S.as=="string"){var R=S.as,E=p(R,S.crossOrigin),H=typeof S.integrity=="string"?S.integrity:void 0,I=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;R==="style"?u.d.S(b,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:E,integrity:H,fetchPriority:I}):R==="script"&&u.d.X(b,{crossOrigin:E,integrity:H,fetchPriority:I,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},lt.preinitModule=function(b,S){if(typeof b=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var R=p(S.as,S.crossOrigin);u.d.M(b,{crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&u.d.M(b)},lt.preload=function(b,S){if(typeof b=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var R=S.as,E=p(R,S.crossOrigin);u.d.L(b,R,{crossOrigin:E,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},lt.preloadModule=function(b,S){if(typeof b=="string")if(S){var R=p(S.as,S.crossOrigin);u.d.m(b,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else u.d.m(b)},lt.requestFormReset=function(b){u.d.r(b)},lt.unstable_batchedUpdates=function(b,S){return b(S)},lt.useFormState=function(b,S,R){return m.H.useFormState(b,S,R)},lt.useFormStatus=function(){return m.H.useHostTransitionStatus()},lt.version="19.2.8",lt}var rm;function t0(){if(rm)return yc.exports;rm=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),yc.exports=e0(),yc.exports}var um;function n0(){if(um)return ns;um=1;var r=Pg(),i=jc(),s=t0();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(u(188))}function S(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var l=n.return;if(l===null)break;var c=l.alternate;if(c===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===n)return b(l),e;if(c===a)return b(l),t;c=c.sibling}throw Error(u(188))}if(n.return!==a.return)n=l,a=c;else{for(var f=!1,d=l.child;d;){if(d===n){f=!0,n=l,a=c;break}if(d===a){f=!0,a=l,n=c;break}d=d.sibling}if(!f){for(d=c.child;d;){if(d===n){f=!0,n=c,a=l;break}if(d===a){f=!0,a=c,n=l;break}d=d.sibling}if(!f)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function R(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=R(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,H=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),re=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),he=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Re(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var P=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===P?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case ae:return"Profiler";case re:return"StrictMode";case U:return"Suspense";case B:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case ue:return e.displayName||"Context";case he:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var G=Array.isArray,N=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},me=[],Te=-1;function v(e){return{current:e}}function C(e){0>Te||(e.current=me[Te],me[Te]=null,Te--)}function Y(e,t){Te++,me[Te]=e.current,e.current=t}var K=v(null),ne=v(null),fe=v(null),be=v(null);function Ie(e,t){switch(Y(fe,t),Y(ne,e),Y(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pd(t),e=yd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(K),Y(K,e)}function Be(){C(K),C(ne),C(fe)}function $n(e){e.memoizedState!==null&&Y(be,e);var t=K.current,n=yd(t,e.type);t!==n&&(Y(ne,e),Y(K,n))}function yi(e){ne.current===e&&(C(K),C(ne)),be.current===e&&(C(be),Ja._currentValue=Z)}var Zn,Gt;function q(e){if(Zn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zn=t&&t[1]||"",Gt=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Zn+e+Gt}var se=!1;function Ze(e,t){if(!e||se)return"";se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(O){var A=O}Reflect.construct(e,[],D)}else{try{D.call()}catch(O){A=O}e.call(D.prototype)}}else{try{throw Error()}catch(O){A=O}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(O){if(O&&A&&typeof O.stack=="string")return[O.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],d=c[1];if(f&&d){var y=f.split(`
|
|
4
|
+
`),_=d.split(`
|
|
5
|
+
`);for(l=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;if(a===y.length||l===_.length)for(a=y.length-1,l=_.length-1;1<=a&&0<=l&&y[a]!==_[l];)l--;for(;1<=a&&0<=l;a--,l--)if(y[a]!==_[l]){if(a!==1||l!==1)do if(a--,l--,0>l||y[a]!==_[l]){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<=l);break}}}finally{se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?q(n):""}function bn(e,t){switch(e.tag){case 26:case 27:case 5:return q(e.type);case 16:return q("Lazy");case 13:return e.child!==t&&t!==null?q("Suspense Fallback"):q("Suspense");case 19:return q("SuspenseList");case 0:case 15:return Ze(e.type,!1);case 11:return Ze(e.type.render,!1);case 1:return Ze(e.type,!0);case 31:return q("Activity");default:return""}}function Vt(e){try{var t="",n=null;do t+=bn(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var Jn=Object.prototype.hasOwnProperty,Zl=r.unstable_scheduleCallback,Jl=r.unstable_cancelCallback,Sp=r.unstable_shouldYield,xp=r.unstable_requestPaint,yt=r.unstable_now,Ep=r.unstable_getCurrentPriorityLevel,Qc=r.unstable_ImmediatePriority,Kc=r.unstable_UserBlockingPriority,hs=r.unstable_NormalPriority,wp=r.unstable_LowPriority,$c=r.unstable_IdlePriority,Tp=r.log,_p=r.unstable_setDisableYieldValue,ra=null,gt=null;function Sn(e){if(typeof Tp=="function"&&_p(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(ra,e)}catch{}}var vt=Math.clz32?Math.clz32:Op,Ap=Math.log,Np=Math.LN2;function Op(e){return e>>>=0,e===0?32:31-(Ap(e)/Np|0)|0}var ds=256,ms=262144,ps=4194304;function Fn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ys(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~c,a!==0?l=Fn(a):(f&=d,f!==0?l=Fn(f):n||(n=d&~e,n!==0&&(l=Fn(n))))):(d=a&~c,d!==0?l=Fn(d):f!==0?l=Fn(f):n||(n=a&~e,n!==0&&(l=Fn(n)))),l===0?0:t!==0&&t!==l&&(t&c)===0&&(c=l&-l,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:l}function ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kp(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 Zc(){var e=ps;return ps<<=1,(ps&62914560)===0&&(ps=4194304),e}function Fl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ca(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zp(e,t,n,a,l,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,_=e.hiddenUpdates;for(n=f&~n;0<n;){var z=31-vt(n),D=1<<z;d[z]=0,y[z]=-1;var A=_[z];if(A!==null)for(_[z]=null,z=0;z<A.length;z++){var O=A[z];O!==null&&(O.lane&=-536870913)}n&=~D}a!==0&&Jc(e,a,0),c!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function Jc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-vt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Fc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-vt(n),l=1<<a;l&t|e[a]&t&&(e[a]|=t),n&=~l}}function Wc(e,t){var n=t&-t;return n=(n&42)!==0?1:Wl(n),(n&(e.suspendedLanes|t))!==0?0:n}function Wl(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 Il(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ic(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:Ld(e.type))}function Pc(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var xn=Math.random().toString(36).slice(2),Pe="__reactFiber$"+xn,ct="__reactProps$"+xn,gi="__reactContainer$"+xn,Pl="__reactEvents$"+xn,Up="__reactListeners$"+xn,Mp="__reactHandles$"+xn,eo="__reactResources$"+xn,oa="__reactMarker$"+xn;function er(e){delete e[Pe],delete e[ct],delete e[Pl],delete e[Up],delete e[Mp]}function vi(e){var t=e[Pe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gi]||n[Pe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wd(e);e!==null;){if(n=e[Pe])return n;e=wd(e)}return t}e=n,n=e.parentNode}return null}function bi(e){if(e=e[Pe]||e[gi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Si(e){var t=e[eo];return t||(t=e[eo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[oa]=!0}var to=new Set,no={};function Wn(e,t){xi(e,t),xi(e+"Capture",t)}function xi(e,t){for(no[e]=t,e=0;e<t.length;e++)to.add(t[e])}var Rp=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]*$"),io={},ao={};function Cp(e){return Jn.call(ao,e)?!0:Jn.call(io,e)?!1:Rp.test(e)?ao[e]=!0:(io[e]=!0,!1)}function gs(e,t,n){if(Cp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function vs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Pt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function so(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dp(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tr(e){if(!e._valueTracker){var t=so(e)?"checked":"value";e._valueTracker=Dp(e,t,""+e[t])}}function lo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=so(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function bs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var jp=/[\n"\\]/g;function Ot(e){return e.replace(jp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function nr(e,t,n,a,l,c,f,d){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?ir(e,f,Nt(t)):n!=null?ir(e,f,Nt(n)):a!=null&&e.removeAttribute("value"),l==null&&c!=null&&(e.defaultChecked=!!c),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Nt(d):e.removeAttribute("name")}function ro(e,t,n,a,l,c,f,d){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){tr(e);return}n=n!=null?""+Nt(n):"",t=t!=null?""+Nt(t):n,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),tr(e)}function ir(e,t,n){t==="number"&&bs(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ei(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Nt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,a&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function uo(e,t,n){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Nt(n):""}function co(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(G(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Nt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),tr(e)}function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bp=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 oo(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Bp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function fo(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var l in t)a=t[l],t.hasOwnProperty(l)&&n[l]!==a&&oo(e,l,a)}else for(var c in t)t.hasOwnProperty(c)&&oo(e,c,t[c])}function ar(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 qp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Lp=/^[\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 Ss(e){return Lp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function en(){}var sr=null;function lr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ti=null,_i=null;function ho(e){var t=bi(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(nr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ot(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var l=a[ct]||null;if(!l)throw Error(u(90));nr(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&lo(a)}break e;case"textarea":uo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ei(e,!!n.multiple,t,!1)}}}var rr=!1;function mo(e,t,n){if(rr)return e(t,n);rr=!0;try{var a=e(t);return a}finally{if(rr=!1,(Ti!==null||_i!==null)&&(rl(),Ti&&(t=Ti,e=_i,_i=Ti=null,ho(t),e)))for(t=0;t<e.length;t++)ho(e[t])}}function ha(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ct]||null;if(a===null)return null;n=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(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ur=!1;if(tn)try{var da={};Object.defineProperty(da,"passive",{get:function(){ur=!0}}),window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{ur=!1}var En=null,cr=null,xs=null;function po(){if(xs)return xs;var e,t=cr,n=t.length,a,l="value"in En?En.value:En.textContent,c=l.length;for(e=0;e<n&&t[e]===l[e];e++);var f=n-e;for(a=1;a<=f&&t[n-a]===l[c-a];a++);return xs=l.slice(e,1<a?1-a:void 0)}function Es(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 ws(){return!0}function yo(){return!1}function ot(e){function t(n,a,l,c,f){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(c):c[d]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ws:yo,this.isPropagationStopped=yo,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ws)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ws)},persist:function(){},isPersistent:ws}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ts=ot(In),ma=E({},In,{view:0,detail:0}),Hp=ot(ma),or,fr,pa,_s=E({},ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dr,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!==pa&&(pa&&e.type==="mousemove"?(or=e.screenX-pa.screenX,fr=e.screenY-pa.screenY):fr=or=0,pa=e),or)},movementY:function(e){return"movementY"in e?e.movementY:fr}}),go=ot(_s),Yp=E({},_s,{dataTransfer:0}),Xp=ot(Yp),Gp=E({},ma,{relatedTarget:0}),hr=ot(Gp),Vp=E({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),Qp=ot(Vp),Kp=E({},In,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$p=ot(Kp),Zp=E({},In,{data:0}),vo=ot(Zp),Jp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fp={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"},Wp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ip(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wp[e])?!!t[e]:!1}function dr(){return Ip}var Pp=E({},ma,{key:function(e){if(e.key){var t=Jp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Es(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dr,charCode:function(e){return e.type==="keypress"?Es(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Es(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ey=ot(Pp),ty=E({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bo=ot(ty),ny=E({},ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dr}),iy=ot(ny),ay=E({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),sy=ot(ay),ly=E({},_s,{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}),ry=ot(ly),uy=E({},In,{newState:0,oldState:0}),cy=ot(uy),oy=[9,13,27,32],mr=tn&&"CompositionEvent"in window,ya=null;tn&&"documentMode"in document&&(ya=document.documentMode);var fy=tn&&"TextEvent"in window&&!ya,So=tn&&(!mr||ya&&8<ya&&11>=ya),xo=" ",Eo=!1;function wo(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function To(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ai=!1;function hy(e,t){switch(e){case"compositionend":return To(t);case"keypress":return t.which!==32?null:(Eo=!0,xo);case"textInput":return e=t.data,e===xo&&Eo?null:e;default:return null}}function dy(e,t){if(Ai)return e==="compositionend"||!mr&&wo(e,t)?(e=po(),xs=cr=En=null,Ai=!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 So&&t.locale!=="ko"?null:t.data;default:return null}}var my={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 _o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!my[e.type]:t==="textarea"}function Ao(e,t,n,a){Ti?_i?_i.push(a):_i=[a]:Ti=a,t=ml(t,"onChange"),0<t.length&&(n=new Ts("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ga=null,va=null;function py(e){cd(e,0)}function As(e){var t=fa(e);if(lo(t))return e}function No(e,t){if(e==="change")return t}var Oo=!1;if(tn){var pr;if(tn){var yr="oninput"in document;if(!yr){var ko=document.createElement("div");ko.setAttribute("oninput","return;"),yr=typeof ko.oninput=="function"}pr=yr}else pr=!1;Oo=pr&&(!document.documentMode||9<document.documentMode)}function zo(){ga&&(ga.detachEvent("onpropertychange",Uo),va=ga=null)}function Uo(e){if(e.propertyName==="value"&&As(va)){var t=[];Ao(t,va,e,lr(e)),mo(py,t)}}function yy(e,t,n){e==="focusin"?(zo(),ga=t,va=n,ga.attachEvent("onpropertychange",Uo)):e==="focusout"&&zo()}function gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return As(va)}function vy(e,t){if(e==="click")return As(t)}function by(e,t){if(e==="input"||e==="change")return As(t)}function Sy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Sy;function ba(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Jn.call(t,l)||!bt(e[l],t[l]))return!1}return!0}function Mo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ro(e,t){var n=Mo(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mo(n)}}function Co(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Co(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Do(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bs(e.document)}return t}function gr(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 xy=tn&&"documentMode"in document&&11>=document.documentMode,Ni=null,vr=null,Sa=null,br=!1;function jo(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;br||Ni==null||Ni!==bs(a)||(a=Ni,"selectionStart"in a&&gr(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}),Sa&&ba(Sa,a)||(Sa=a,a=ml(vr,"onSelect"),0<a.length&&(t=new Ts("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ni)))}function Pn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Oi={animationend:Pn("Animation","AnimationEnd"),animationiteration:Pn("Animation","AnimationIteration"),animationstart:Pn("Animation","AnimationStart"),transitionrun:Pn("Transition","TransitionRun"),transitionstart:Pn("Transition","TransitionStart"),transitioncancel:Pn("Transition","TransitionCancel"),transitionend:Pn("Transition","TransitionEnd")},Sr={},Bo={};tn&&(Bo=document.createElement("div").style,"AnimationEvent"in window||(delete Oi.animationend.animation,delete Oi.animationiteration.animation,delete Oi.animationstart.animation),"TransitionEvent"in window||delete Oi.transitionend.transition);function ei(e){if(Sr[e])return Sr[e];if(!Oi[e])return e;var t=Oi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bo)return Sr[e]=t[n];return e}var qo=ei("animationend"),Lo=ei("animationiteration"),Ho=ei("animationstart"),Ey=ei("transitionrun"),wy=ei("transitionstart"),Ty=ei("transitioncancel"),Yo=ei("transitionend"),Xo=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xr.push("scrollEnd");function qt(e,t){Xo.set(e,t),Wn(t,[e])}var Ns=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)},kt=[],ki=0,Er=0;function Os(){for(var e=ki,t=Er=ki=0;t<e;){var n=kt[t];kt[t++]=null;var a=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,a!==null&&l!==null){var f=a.pending;f===null?l.next=l:(l.next=f.next,f.next=l),a.pending=l}c!==0&&Go(n,l,c)}}function ks(e,t,n,a){kt[ki++]=e,kt[ki++]=t,kt[ki++]=n,kt[ki++]=a,Er|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function wr(e,t,n,a){return ks(e,t,n,a),zs(e)}function ti(e,t){return ks(e,null,null,t),zs(e)}function Go(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var l=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(l=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,l&&t!==null&&(l=31-vt(n),e=c.hiddenUpdates,a=e[l],a===null?e[l]=[t]:a.push(t),t.lane=n|536870912),c):null}function zs(e){if(50<Xa)throw Xa=0,Mu=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zi={};function _y(e,t,n,a){this.tag=e,this.key=n,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 St(e,t,n,a){return new _y(e,t,n,a)}function Tr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Vo(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Us(e,t,n,a,l,c){var f=0;if(a=e,typeof e=="function")Tr(e)&&(f=1);else if(typeof e=="string")f=zg(e,n,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=St(31,n,t,l),e.elementType=ie,e.lanes=c,e;case X:return ni(n.children,l,c,t);case re:f=8,l|=24;break;case ae:return e=St(12,n,t,l|2),e.elementType=ae,e.lanes=c,e;case U:return e=St(13,n,t,l),e.elementType=U,e.lanes=c,e;case B:return e=St(19,n,t,l),e.elementType=B,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ue:f=10;break e;case he:f=9;break e;case k:f=11;break e;case j:f=14;break e;case V:f=16,a=null;break e}f=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=St(f,n,t,l),t.elementType=e,t.type=a,t.lanes=c,t}function ni(e,t,n,a){return e=St(7,e,a,t),e.lanes=n,e}function _r(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function Qo(e){var t=St(18,null,null,0);return t.stateNode=e,t}function Ar(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ko=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var n=Ko.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Vt(t)},Ko.set(e,t),t)}return{value:e,source:t,stack:Vt(t)}}var Ui=[],Mi=0,Ms=null,xa=0,Ut=[],Mt=0,wn=null,Qt=1,Kt="";function an(e,t){Ui[Mi++]=xa,Ui[Mi++]=Ms,Ms=e,xa=t}function $o(e,t,n){Ut[Mt++]=Qt,Ut[Mt++]=Kt,Ut[Mt++]=wn,wn=e;var a=Qt;e=Kt;var l=32-vt(a)-1;a&=~(1<<l),n+=1;var c=32-vt(t)+l;if(30<c){var f=l-l%5;c=(a&(1<<f)-1).toString(32),a>>=f,l-=f,Qt=1<<32-vt(t)+l|n<<l|a,Kt=c+e}else Qt=1<<c|n<<l|a,Kt=e}function Nr(e){e.return!==null&&(an(e,1),$o(e,1,0))}function Or(e){for(;e===Ms;)Ms=Ui[--Mi],Ui[Mi]=null,xa=Ui[--Mi],Ui[Mi]=null;for(;e===wn;)wn=Ut[--Mt],Ut[Mt]=null,Kt=Ut[--Mt],Ut[Mt]=null,Qt=Ut[--Mt],Ut[Mt]=null}function Zo(e,t){Ut[Mt++]=Qt,Ut[Mt++]=Kt,Ut[Mt++]=wn,Qt=t.id,Kt=t.overflow,wn=e}var et=null,Ce=null,Se=!1,Tn=null,Rt=!1,kr=Error(u(519));function _n(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ea(zt(t,e)),kr}function Jo(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Pe]=e,t[ct]=a,n){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(n=0;n<Va.length;n++)ye(Va[n],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),ro(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),co(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||dd(t.textContent,n)?(a.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),a.onScroll!=null&&ye("scroll",t),a.onScrollEnd!=null&&ye("scrollend",t),a.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||_n(e,!0)}function Fo(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:et=et.return}}function Ri(e){if(e!==et)return!1;if(!Se)return Fo(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||$u(e.type,e.memoizedProps)),n=!n),n&&Ce&&_n(e),Fo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ce=Ed(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ce=Ed(e)}else t===27?(t=Ce,Ln(e.type)?(e=Iu,Iu=null,Ce=e):Ce=t):Ce=et?Dt(e.stateNode.nextSibling):null;return!0}function ii(){Ce=et=null,Se=!1}function zr(){var e=Tn;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),Tn=null),e}function Ea(e){Tn===null?Tn=[e]:Tn.push(e)}var Ur=v(null),ai=null,sn=null;function An(e,t,n){Y(Ur,t._currentValue),t._currentValue=n}function ln(e){e._currentValue=Ur.current,C(Ur)}function Mr(e,t,n){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===n)break;e=e.return}}function Rr(e,t,n,a){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var c=l.dependencies;if(c!==null){var f=l.child;c=c.firstContext;e:for(;c!==null;){var d=c;c=l;for(var y=0;y<t.length;y++)if(d.context===t[y]){c.lanes|=n,d=c.alternate,d!==null&&(d.lanes|=n),Mr(c.return,n,e),a||(f=null);break e}c=d.next}}else if(l.tag===18){if(f=l.return,f===null)throw Error(u(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Mr(f,n,e),f=null}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===e){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}}function Ci(e,t,n,a){e=null;for(var l=t,c=!1;l!==null;){if(!c){if((l.flags&524288)!==0)c=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var f=l.alternate;if(f===null)throw Error(u(387));if(f=f.memoizedProps,f!==null){var d=l.type;bt(l.pendingProps.value,f.value)||(e!==null?e.push(d):e=[d])}}else if(l===be.current){if(f=l.alternate,f===null)throw Error(u(387));f.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ja):e=[Ja])}l=l.return}e!==null&&Rr(t,e,n,a),t.flags|=262144}function Rs(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function si(e){ai=e,sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return Wo(ai,e)}function Cs(e,t){return ai===null&&si(e),Wo(e,t)}function Wo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},sn===null){if(e===null)throw Error(u(308));sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sn=sn.next=t;return n}var Ay=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ny=r.unstable_scheduleCallback,Oy=r.unstable_NormalPriority,Ge={$$typeof:ue,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cr(){return{controller:new Ay,data:new Map,refCount:0}}function wa(e){e.refCount--,e.refCount===0&&Ny(Oy,function(){e.controller.abort()})}var Ta=null,Dr=0,Di=0,ji=null;function ky(e,t){if(Ta===null){var n=Ta=[];Dr=0,Di=qu(),ji={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Dr++,t.then(Io,Io),t}function Io(){if(--Dr===0&&Ta!==null){ji!==null&&(ji.status="fulfilled");var e=Ta;Ta=null,Di=0,ji=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zy(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Po=N.S;N.S=function(e,t){Bh=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ky(e,t),Po!==null&&Po(e,t)};var li=v(null);function jr(){var e=li.current;return e!==null?e:Me.pooledCache}function Ds(e,t){t===null?Y(li,li.current):Y(li,t.pool)}function ef(){var e=jr();return e===null?null:{parent:Ge._currentValue,pool:e}}var Bi=Error(u(460)),Br=Error(u(474)),js=Error(u(542)),Bs={then:function(){}};function tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(en,en);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=a}},function(a){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw ui=t,Bi}}function ri(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ui=n,Bi):n}}var ui=null;function af(){if(ui===null)throw Error(u(459));var e=ui;return ui=null,e}function sf(e){if(e===Bi||e===js)throw Error(u(483))}var qi=null,_a=0;function qs(e){var t=_a;return _a+=1,qi===null&&(qi=[]),nf(qi,e,t)}function Aa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ls(e,t){throw t.$$typeof===H?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lf(e){function t(x,g){if(e){var T=x.deletions;T===null?(x.deletions=[g],x.flags|=16):T.push(g)}}function n(x,g){if(!e)return null;for(;g!==null;)t(x,g),g=g.sibling;return null}function a(x){for(var g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function l(x,g){return x=nn(x,g),x.index=0,x.sibling=null,x}function c(x,g,T){return x.index=T,e?(T=x.alternate,T!==null?(T=T.index,T<g?(x.flags|=67108866,g):T):(x.flags|=67108866,g)):(x.flags|=1048576,g)}function f(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function d(x,g,T,M){return g===null||g.tag!==6?(g=_r(T,x.mode,M),g.return=x,g):(g=l(g,T),g.return=x,g)}function y(x,g,T,M){var W=T.type;return W===X?z(x,g,T.props.children,M,T.key):g!==null&&(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===V&&ri(W)===g.type)?(g=l(g,T.props),Aa(g,T),g.return=x,g):(g=Us(T.type,T.key,T.props,null,x.mode,M),Aa(g,T),g.return=x,g)}function _(x,g,T,M){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=Ar(T,x.mode,M),g.return=x,g):(g=l(g,T.children||[]),g.return=x,g)}function z(x,g,T,M,W){return g===null||g.tag!==7?(g=ni(T,x.mode,M,W),g.return=x,g):(g=l(g,T),g.return=x,g)}function D(x,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=_r(""+g,x.mode,T),g.return=x,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case I:return T=Us(g.type,g.key,g.props,null,x.mode,T),Aa(T,g),T.return=x,T;case $:return g=Ar(g,x.mode,T),g.return=x,g;case V:return g=ri(g),D(x,g,T)}if(G(g)||Re(g))return g=ni(g,x.mode,T,null),g.return=x,g;if(typeof g.then=="function")return D(x,qs(g),T);if(g.$$typeof===ue)return D(x,Cs(x,g),T);Ls(x,g)}return null}function A(x,g,T,M){var W=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return W!==null?null:d(x,g,""+T,M);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case I:return T.key===W?y(x,g,T,M):null;case $:return T.key===W?_(x,g,T,M):null;case V:return T=ri(T),A(x,g,T,M)}if(G(T)||Re(T))return W!==null?null:z(x,g,T,M,null);if(typeof T.then=="function")return A(x,g,qs(T),M);if(T.$$typeof===ue)return A(x,g,Cs(x,T),M);Ls(x,T)}return null}function O(x,g,T,M,W){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return x=x.get(T)||null,d(g,x,""+M,W);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case I:return x=x.get(M.key===null?T:M.key)||null,y(g,x,M,W);case $:return x=x.get(M.key===null?T:M.key)||null,_(g,x,M,W);case V:return M=ri(M),O(x,g,T,M,W)}if(G(M)||Re(M))return x=x.get(T)||null,z(g,x,M,W,null);if(typeof M.then=="function")return O(x,g,T,qs(M),W);if(M.$$typeof===ue)return O(x,g,T,Cs(g,M),W);Ls(g,M)}return null}function Q(x,g,T,M){for(var W=null,Ee=null,J=g,oe=g=0,ve=null;J!==null&&oe<T.length;oe++){J.index>oe?(ve=J,J=null):ve=J.sibling;var we=A(x,J,T[oe],M);if(we===null){J===null&&(J=ve);break}e&&J&&we.alternate===null&&t(x,J),g=c(we,g,oe),Ee===null?W=we:Ee.sibling=we,Ee=we,J=ve}if(oe===T.length)return n(x,J),Se&&an(x,oe),W;if(J===null){for(;oe<T.length;oe++)J=D(x,T[oe],M),J!==null&&(g=c(J,g,oe),Ee===null?W=J:Ee.sibling=J,Ee=J);return Se&&an(x,oe),W}for(J=a(J);oe<T.length;oe++)ve=O(J,x,oe,T[oe],M),ve!==null&&(e&&ve.alternate!==null&&J.delete(ve.key===null?oe:ve.key),g=c(ve,g,oe),Ee===null?W=ve:Ee.sibling=ve,Ee=ve);return e&&J.forEach(function(Vn){return t(x,Vn)}),Se&&an(x,oe),W}function ee(x,g,T,M){if(T==null)throw Error(u(151));for(var W=null,Ee=null,J=g,oe=g=0,ve=null,we=T.next();J!==null&&!we.done;oe++,we=T.next()){J.index>oe?(ve=J,J=null):ve=J.sibling;var Vn=A(x,J,we.value,M);if(Vn===null){J===null&&(J=ve);break}e&&J&&Vn.alternate===null&&t(x,J),g=c(Vn,g,oe),Ee===null?W=Vn:Ee.sibling=Vn,Ee=Vn,J=ve}if(we.done)return n(x,J),Se&&an(x,oe),W;if(J===null){for(;!we.done;oe++,we=T.next())we=D(x,we.value,M),we!==null&&(g=c(we,g,oe),Ee===null?W=we:Ee.sibling=we,Ee=we);return Se&&an(x,oe),W}for(J=a(J);!we.done;oe++,we=T.next())we=O(J,x,oe,we.value,M),we!==null&&(e&&we.alternate!==null&&J.delete(we.key===null?oe:we.key),g=c(we,g,oe),Ee===null?W=we:Ee.sibling=we,Ee=we);return e&&J.forEach(function(Yg){return t(x,Yg)}),Se&&an(x,oe),W}function Ue(x,g,T,M){if(typeof T=="object"&&T!==null&&T.type===X&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case I:e:{for(var W=T.key;g!==null;){if(g.key===W){if(W=T.type,W===X){if(g.tag===7){n(x,g.sibling),M=l(g,T.props.children),M.return=x,x=M;break e}}else if(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===V&&ri(W)===g.type){n(x,g.sibling),M=l(g,T.props),Aa(M,T),M.return=x,x=M;break e}n(x,g);break}else t(x,g);g=g.sibling}T.type===X?(M=ni(T.props.children,x.mode,M,T.key),M.return=x,x=M):(M=Us(T.type,T.key,T.props,null,x.mode,M),Aa(M,T),M.return=x,x=M)}return f(x);case $:e:{for(W=T.key;g!==null;){if(g.key===W)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){n(x,g.sibling),M=l(g,T.children||[]),M.return=x,x=M;break e}else{n(x,g);break}else t(x,g);g=g.sibling}M=Ar(T,x.mode,M),M.return=x,x=M}return f(x);case V:return T=ri(T),Ue(x,g,T,M)}if(G(T))return Q(x,g,T,M);if(Re(T)){if(W=Re(T),typeof W!="function")throw Error(u(150));return T=W.call(T),ee(x,g,T,M)}if(typeof T.then=="function")return Ue(x,g,qs(T),M);if(T.$$typeof===ue)return Ue(x,g,Cs(x,T),M);Ls(x,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(n(x,g.sibling),M=l(g,T),M.return=x,x=M):(n(x,g),M=_r(T,x.mode,M),M.return=x,x=M),f(x)):n(x,g)}return function(x,g,T,M){try{_a=0;var W=Ue(x,g,T,M);return qi=null,W}catch(J){if(J===Bi||J===js)throw J;var Ee=St(29,J,null,x.mode);return Ee.lanes=M,Ee.return=x,Ee}}}var ci=lf(!0),rf=lf(!1),Nn=!1;function qr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lr(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 On(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(_e&2)!==0){var l=a.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=zs(e),Go(e,null,n),t}return ks(e,a,t,n),zs(e)}function Na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Fc(e,n)}}function Hr(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?l=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?l=c=t:c=c.next=t}else l=c=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Yr=!1;function Oa(){if(Yr){var e=ji;if(e!==null)throw e}}function ka(e,t,n,a){Yr=!1;var l=e.updateQueue;Nn=!1;var c=l.firstBaseUpdate,f=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var y=d,_=y.next;y.next=null,f===null?c=_:f.next=_,f=y;var z=e.alternate;z!==null&&(z=z.updateQueue,d=z.lastBaseUpdate,d!==f&&(d===null?z.firstBaseUpdate=_:d.next=_,z.lastBaseUpdate=y))}if(c!==null){var D=l.baseState;f=0,z=_=y=null,d=c;do{var A=d.lane&-536870913,O=A!==d.lane;if(O?(ge&A)===A:(a&A)===A){A!==0&&A===Di&&(Yr=!0),z!==null&&(z=z.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Q=e,ee=d;A=t;var Ue=n;switch(ee.tag){case 1:if(Q=ee.payload,typeof Q=="function"){D=Q.call(Ue,D,A);break e}D=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=ee.payload,A=typeof Q=="function"?Q.call(Ue,D,A):Q,A==null)break e;D=E({},D,A);break e;case 2:Nn=!0}}A=d.callback,A!==null&&(e.flags|=64,O&&(e.flags|=8192),O=l.callbacks,O===null?l.callbacks=[A]:O.push(A))}else O={lane:A,tag:d.tag,payload:d.payload,callback:d.callback,next:null},z===null?(_=z=O,y=D):z=z.next=O,f|=A;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;O=d,d=O.next,O.next=null,l.lastBaseUpdate=O,l.shared.pending=null}}while(!0);z===null&&(y=D),l.baseState=y,l.firstBaseUpdate=_,l.lastBaseUpdate=z,c===null&&(l.shared.lanes=0),Cn|=f,e.lanes=f,e.memoizedState=D}}function uf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function cf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)uf(n[e],t)}var Li=v(null),Hs=v(0);function of(e,t){e=pn,Y(Hs,e),Y(Li,t),pn=e|t.baseLanes}function Xr(){Y(Hs,pn),Y(Li,Li.current)}function Gr(){pn=Hs.current,C(Li),C(Hs)}var xt=v(null),Ct=null;function zn(e){var t=e.alternate;Y(He,He.current&1),Y(xt,e),Ct===null&&(t===null||Li.current!==null||t.memoizedState!==null)&&(Ct=e)}function Vr(e){Y(He,He.current),Y(xt,e),Ct===null&&(Ct=e)}function ff(e){e.tag===22?(Y(He,He.current),Y(xt,e),Ct===null&&(Ct=e)):Un()}function Un(){Y(He,He.current),Y(xt,xt.current)}function Et(e){C(xt),Ct===e&&(Ct=null),C(He)}var He=v(0);function Ys(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fu(n)||Wu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rn=0,ce=null,ke=null,Ve=null,Xs=!1,Hi=!1,oi=!1,Gs=0,za=0,Yi=null,Uy=0;function qe(){throw Error(u(321))}function Qr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bt(e[n],t[n]))return!1;return!0}function Kr(e,t,n,a,l,c){return rn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Zf:ru,oi=!1,c=n(a,l),oi=!1,Hi&&(c=df(t,n,a,l)),hf(e),c}function hf(e){N.H=Ra;var t=ke!==null&&ke.next!==null;if(rn=0,Ve=ke=ce=null,Xs=!1,za=0,Yi=null,t)throw Error(u(300));e===null||Qe||(e=e.dependencies,e!==null&&Rs(e)&&(Qe=!0))}function df(e,t,n,a){ce=e;var l=0;do{if(Hi&&(Yi=null),za=0,Hi=!1,25<=l)throw Error(u(301));if(l+=1,Ve=ke=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}N.H=Jf,c=t(n,a)}while(Hi);return c}function My(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?Ua(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(ce.flags|=1024),t}function $r(){var e=Gs!==0;return Gs=0,e}function Zr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Jr(e){if(Xs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xs=!1}rn=0,Ve=ke=ce=null,Hi=!1,za=Gs=0,Yi=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?ce.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ye(){if(ke===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=Ve===null?ce.memoizedState:Ve.next;if(t!==null)Ve=t,ke=e;else{if(e===null)throw ce.alternate===null?Error(u(467)):Error(u(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Ve===null?ce.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Vs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ua(e){var t=za;return za+=1,Yi===null&&(Yi=[]),e=nf(Yi,e,t),t=ce,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Zf:ru),e}function Qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ua(e);if(e.$$typeof===ue)return tt(e)}throw Error(u(438,String(e)))}function Fr(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Vs(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=te;return t.index++,n}function un(e,t){return typeof t=="function"?t(e):t}function Ks(e){var t=Ye();return Wr(t,ke,e)}function Wr(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var l=e.baseQueue,c=a.pending;if(c!==null){if(l!==null){var f=l.next;l.next=c.next,c.next=f}t.baseQueue=l=c,a.pending=null}if(c=e.baseState,l===null)e.memoizedState=c;else{t=l.next;var d=f=null,y=null,_=t,z=!1;do{var D=_.lane&-536870913;if(D!==_.lane?(ge&D)===D:(rn&D)===D){var A=_.revertLane;if(A===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),D===Di&&(z=!0);else if((rn&A)===A){_=_.next,A===Di&&(z=!0);continue}else D={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},y===null?(d=y=D,f=c):y=y.next=D,ce.lanes|=A,Cn|=A;D=_.action,oi&&n(c,D),c=_.hasEagerState?_.eagerState:n(c,D)}else A={lane:D,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},y===null?(d=y=A,f=c):y=y.next=A,ce.lanes|=D,Cn|=D;_=_.next}while(_!==null&&_!==t);if(y===null?f=c:y.next=d,!bt(c,e.memoizedState)&&(Qe=!0,z&&(n=ji,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=y,a.lastRenderedState=c}return l===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ir(e){var t=Ye(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,l=n.pending,c=t.memoizedState;if(l!==null){n.pending=null;var f=l=l.next;do c=e(c,f.action),f=f.next;while(f!==l);bt(c,t.memoizedState)||(Qe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function mf(e,t,n){var a=ce,l=Ye(),c=Se;if(c){if(n===void 0)throw Error(u(407));n=n()}else n=t();var f=!bt((ke||l).memoizedState,n);if(f&&(l.memoizedState=n,Qe=!0),l=l.queue,tu(gf.bind(null,a,l,e),[e]),l.getSnapshot!==t||f||Ve!==null&&Ve.memoizedState.tag&1){if(a.flags|=2048,Xi(9,{destroy:void 0},yf.bind(null,a,l,n,t),null),Me===null)throw Error(u(349));c||(rn&127)!==0||pf(a,t,n)}return n}function pf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=Vs(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yf(e,t,n,a){t.value=n,t.getSnapshot=a,vf(t)&&bf(e)}function gf(e,t,n){return n(function(){vf(t)&&bf(e)})}function vf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bt(e,n)}catch{return!0}}function bf(e){var t=ti(e,2);t!==null&&pt(t,e,2)}function Pr(e){var t=rt();if(typeof e=="function"){var n=e;if(e=n(),oi){Sn(!0);try{n()}finally{Sn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:e},t}function Sf(e,t,n,a){return e.baseState=n,Wr(e,ke,typeof a=="function"?a:un)}function Ry(e,t,n,a,l){if(Js(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};N.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,xf(t,c)):(c.next=n.next,t.pending=n.next=c)}}function xf(e,t){var n=t.action,a=t.payload,l=e.state;if(t.isTransition){var c=N.T,f={};N.T=f;try{var d=n(l,a),y=N.S;y!==null&&y(f,d),Ef(e,t,d)}catch(_){eu(e,t,_)}finally{c!==null&&f.types!==null&&(c.types=f.types),N.T=c}}else try{c=n(l,a),Ef(e,t,c)}catch(_){eu(e,t,_)}}function Ef(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){wf(e,t,a)},function(a){return eu(e,t,a)}):wf(e,t,n)}function wf(e,t,n){t.status="fulfilled",t.value=n,Tf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,xf(e,n)))}function eu(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Tf(t),t=t.next;while(t!==a)}e.action=null}function Tf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _f(e,t){return t}function Af(e,t){if(Se){var n=Me.formState;if(n!==null){e:{var a=ce;if(Se){if(Ce){t:{for(var l=Ce,c=Rt;l.nodeType!==8;){if(!c){l=null;break t}if(l=Dt(l.nextSibling),l===null){l=null;break t}}c=l.data,l=c==="F!"||c==="F"?l:null}if(l){Ce=Dt(l.nextSibling),a=l.data==="F!";break e}}_n(a)}a=!1}a&&(t=n[0])}}return n=rt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_f,lastRenderedState:t},n.queue=a,n=Qf.bind(null,ce,a),a.dispatch=n,a=Pr(!1),c=lu.bind(null,ce,!1,a.queue),a=rt(),l={state:t,dispatch:null,action:e,pending:null},a.queue=l,n=Ry.bind(null,ce,l,c,n),l.dispatch=n,a.memoizedState=e,[t,n,!1]}function Nf(e){var t=Ye();return Of(t,ke,e)}function Of(e,t,n){if(t=Wr(e,t,_f)[0],e=Ks(un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ua(t)}catch(f){throw f===Bi?js:f}else a=t;t=Ye();var l=t.queue,c=l.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,Xi(9,{destroy:void 0},Cy.bind(null,l,n),null)),[a,c,e]}function Cy(e,t){e.action=t}function kf(e){var t=Ye(),n=ke;if(n!==null)return Of(t,n,e);Ye(),t=t.memoizedState,n=Ye();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Xi(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Vs(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function zf(){return Ye().memoizedState}function $s(e,t,n,a){var l=rt();ce.flags|=e,l.memoizedState=Xi(1|t,{destroy:void 0},n,a===void 0?null:a)}function Zs(e,t,n,a){var l=Ye();a=a===void 0?null:a;var c=l.memoizedState.inst;ke!==null&&a!==null&&Qr(a,ke.memoizedState.deps)?l.memoizedState=Xi(t,c,n,a):(ce.flags|=e,l.memoizedState=Xi(1|t,c,n,a))}function Uf(e,t){$s(8390656,8,e,t)}function tu(e,t){Zs(2048,8,e,t)}function Dy(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Vs(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Mf(e){var t=Ye().memoizedState;return Dy({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Rf(e,t){return Zs(4,2,e,t)}function Cf(e,t){return Zs(4,4,e,t)}function Df(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jf(e,t,n){n=n!=null?n.concat([e]):null,Zs(4,4,Df.bind(null,t,e),n)}function nu(){}function Bf(e,t){var n=Ye();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Qr(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function qf(e,t){var n=Ye();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Qr(t,a[1]))return a[0];if(a=e(),oi){Sn(!0);try{e()}finally{Sn(!1)}}return n.memoizedState=[a,t],a}function iu(e,t,n){return n===void 0||(rn&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Lh(),ce.lanes|=e,Cn|=e,n)}function Lf(e,t,n,a){return bt(n,t)?n:Li.current!==null?(e=iu(e,n,a),bt(e,t)||(Qe=!0),e):(rn&42)===0||(rn&1073741824)!==0&&(ge&261930)===0?(Qe=!0,e.memoizedState=n):(e=Lh(),ce.lanes|=e,Cn|=e,t)}function Hf(e,t,n,a,l){var c=L.p;L.p=c!==0&&8>c?c:8;var f=N.T,d={};N.T=d,lu(e,!1,t,n);try{var y=l(),_=N.S;if(_!==null&&_(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var z=zy(y,a);Ma(e,t,z,_t(e))}else Ma(e,t,a,_t(e))}catch(D){Ma(e,t,{then:function(){},status:"rejected",reason:D},_t())}finally{L.p=c,f!==null&&d.types!==null&&(f.types=d.types),N.T=f}}function jy(){}function au(e,t,n,a){if(e.tag!==5)throw Error(u(476));var l=Yf(e).queue;Hf(e,l,t,Z,n===null?jy:function(){return Xf(e),n(a)})}function Yf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:Z},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xf(e){var t=Yf(e);t.next===null&&(t=e.alternate.memoizedState),Ma(e,t.next.queue,{},_t())}function su(){return tt(Ja)}function Gf(){return Ye().memoizedState}function Vf(){return Ye().memoizedState}function By(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_t();e=On(n);var a=kn(t,e,n);a!==null&&(pt(a,t,n),Na(a,t,n)),t={cache:Cr()},e.payload=t;return}t=t.return}}function qy(e,t,n){var a=_t();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Js(e)?Kf(t,n):(n=wr(e,t,n,a),n!==null&&(pt(n,e,a),$f(n,t,a)))}function Qf(e,t,n){var a=_t();Ma(e,t,n,a)}function Ma(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(e))Kf(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,d=c(f,n);if(l.hasEagerState=!0,l.eagerState=d,bt(d,f))return ks(e,t,l,0),Me===null&&Os(),!1}catch{}if(n=wr(e,t,l,a),n!==null)return pt(n,e,a),$f(n,t,a),!0}return!1}function lu(e,t,n,a){if(a={lane:2,revertLane:qu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Js(e)){if(t)throw Error(u(479))}else t=wr(e,n,a,2),t!==null&&pt(t,e,2)}function Js(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Kf(e,t){Hi=Xs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $f(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Fc(e,n)}}var Ra={readContext:tt,use:Qs,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};Ra.useEffectEvent=qe;var Zf={readContext:tt,use:Qs,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Uf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$s(4194308,4,Df.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $s(4194308,4,e,t)},useInsertionEffect:function(e,t){$s(4,2,e,t)},useMemo:function(e,t){var n=rt();t=t===void 0?null:t;var a=e();if(oi){Sn(!0);try{e()}finally{Sn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=rt();if(n!==void 0){var l=n(t);if(oi){Sn(!0);try{n(t)}finally{Sn(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=qy.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Pr(e);var t=e.queue,n=Qf.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:nu,useDeferredValue:function(e,t){var n=rt();return iu(n,e,t)},useTransition:function(){var e=Pr(!1);return e=Hf.bind(null,ce,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,l=rt();if(Se){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Me===null)throw Error(u(349));(ge&127)!==0||pf(a,t,n)}l.memoizedState=n;var c={value:n,getSnapshot:t};return l.queue=c,Uf(gf.bind(null,a,c,e),[e]),a.flags|=2048,Xi(9,{destroy:void 0},yf.bind(null,a,c,n,t),null),n},useId:function(){var e=rt(),t=Me.identifierPrefix;if(Se){var n=Kt,a=Qt;n=(a&~(1<<32-vt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Gs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Uy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:su,useFormState:Af,useActionState:Af,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lu.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fr,useCacheRefresh:function(){return rt().memoizedState=By.bind(null,ce)},useEffectEvent:function(e){var t=rt(),n={impl:e};return t.memoizedState=n,function(){if((_e&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},ru={readContext:tt,use:Qs,useCallback:Bf,useContext:tt,useEffect:tu,useImperativeHandle:jf,useInsertionEffect:Rf,useLayoutEffect:Cf,useMemo:qf,useReducer:Ks,useRef:zf,useState:function(){return Ks(un)},useDebugValue:nu,useDeferredValue:function(e,t){var n=Ye();return Lf(n,ke.memoizedState,e,t)},useTransition:function(){var e=Ks(un)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Ua(e),t]},useSyncExternalStore:mf,useId:Gf,useHostTransitionStatus:su,useFormState:Nf,useActionState:Nf,useOptimistic:function(e,t){var n=Ye();return Sf(n,ke,e,t)},useMemoCache:Fr,useCacheRefresh:Vf};ru.useEffectEvent=Mf;var Jf={readContext:tt,use:Qs,useCallback:Bf,useContext:tt,useEffect:tu,useImperativeHandle:jf,useInsertionEffect:Rf,useLayoutEffect:Cf,useMemo:qf,useReducer:Ir,useRef:zf,useState:function(){return Ir(un)},useDebugValue:nu,useDeferredValue:function(e,t){var n=Ye();return ke===null?iu(n,e,t):Lf(n,ke.memoizedState,e,t)},useTransition:function(){var e=Ir(un)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Ua(e),t]},useSyncExternalStore:mf,useId:Gf,useHostTransitionStatus:su,useFormState:kf,useActionState:kf,useOptimistic:function(e,t){var n=Ye();return ke!==null?Sf(n,ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Fr,useCacheRefresh:Vf};Jf.useEffectEvent=Mf;function uu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=_t(),l=On(a);l.payload=t,n!=null&&(l.callback=n),t=kn(e,l,a),t!==null&&(pt(t,e,a),Na(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=_t(),l=On(a);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=kn(e,l,a),t!==null&&(pt(t,e,a),Na(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_t(),a=On(n);a.tag=2,t!=null&&(a.callback=t),t=kn(e,a,n),t!==null&&(pt(t,e,n),Na(t,e,n))}};function Ff(e,t,n,a,l,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,f):t.prototype&&t.prototype.isPureReactComponent?!ba(n,a)||!ba(l,c):!0}function Wf(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&cu.enqueueReplaceState(t,t.state,null)}function fi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=E({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function If(e){Ns(e)}function Pf(e){console.error(e)}function eh(e){Ns(e)}function Fs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function th(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function ou(e,t,n){return n=On(n),n.tag=3,n.payload={element:null},n.callback=function(){Fs(e,t)},n}function nh(e){return e=On(e),e.tag=3,e}function ih(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var c=a.value;e.payload=function(){return l(c)},e.callback=function(){th(t,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){th(t,n,a),typeof l!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Ly(e,t,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ci(t,n,l,!0),n=xt.current,n!==null){switch(n.tag){case 31:case 13:return Ct===null?ul():n.alternate===null&&Le===0&&(Le=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===Bs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Du(e,a,l)),!1;case 22:return n.flags|=65536,a===Bs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Du(e,a,l)),!1}throw Error(u(435,n.tag))}return Du(e,a,l),ul(),!1}if(Se)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==kr&&(e=Error(u(422),{cause:a}),Ea(zt(e,n)))):(a!==kr&&(t=Error(u(423),{cause:a}),Ea(zt(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=zt(a,n),l=ou(e.stateNode,a,l),Hr(e,l),Le!==4&&(Le=2)),!1;var c=Error(u(520),{cause:a});if(c=zt(c,n),Ya===null?Ya=[c]:Ya.push(c),Le!==4&&(Le=2),t===null)return!0;a=zt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=ou(n.stateNode,a,e),Hr(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Dn===null||!Dn.has(c))))return n.flags|=65536,l&=-l,n.lanes|=l,l=nh(l),ih(l,e,n,a),Hr(n,l),!1}n=n.return}while(n!==null);return!1}var fu=Error(u(461)),Qe=!1;function nt(e,t,n,a){t.child=e===null?rf(t,null,n,a):ci(t,e.child,n,a)}function ah(e,t,n,a,l){n=n.render;var c=t.ref;if("ref"in a){var f={};for(var d in a)d!=="ref"&&(f[d]=a[d])}else f=a;return si(t),a=Kr(e,t,n,f,c,l),d=$r(),e!==null&&!Qe?(Zr(e,t,l),cn(e,t,l)):(Se&&d&&Nr(t),t.flags|=1,nt(e,t,a,l),t.child)}function sh(e,t,n,a,l){if(e===null){var c=n.type;return typeof c=="function"&&!Tr(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,lh(e,t,c,a,l)):(e=Us(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!bu(e,l)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:ba,n(f,a)&&e.ref===t.ref)return cn(e,t,l)}return t.flags|=1,e=nn(c,a),e.ref=t.ref,e.return=t,t.child=e}function lh(e,t,n,a,l){if(e!==null){var c=e.memoizedProps;if(ba(c,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=c,bu(e,l))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,cn(e,t,l)}return hu(e,t,n,a,l)}function rh(e,t,n,a){var l=a.children,c=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(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~c}else a=0,t.child=null;return uh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ds(t,c!==null?c.cachePool:null),c!==null?of(t,c):Xr(),ff(t);else return a=t.lanes=536870912,uh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Ds(t,c.cachePool),of(t,c),Un(),t.memoizedState=null):(e!==null&&Ds(t,null),Xr(),Un());return nt(e,t,l,n),t.child}function Ca(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uh(e,t,n,a,l){var c=jr();return c=c===null?null:{parent:Ge._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Ds(t,null),Xr(),ff(t),e!==null&&Ci(e,t,a,!0),t.childLanes=l,null}function Ws(e,t){return t=Ps({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ch(e,t,n){return ci(t,e.child,null,n),e=Ws(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function Hy(e,t,n){var a=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=Ws(t,a),t.lanes=536870912,Ca(null,e);if(Vr(t),(e=Ce)?(e=xd(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wn!==null?{id:Qt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},n=Qo(e),n.return=t,t.child=n,et=t,Ce=null)):e=null,e===null)throw _n(t);return t.lanes=536870912,null}return Ws(t,a)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Vr(t),l)if(t.flags&256)t.flags&=-257,t=ch(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Qe||Ci(e,t,n,!1),l=(n&e.childLanes)!==0,Qe||l){if(a=Me,a!==null&&(f=Wc(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ti(e,f),pt(a,e,f),fu;ul(),t=ch(e,t,n)}else e=c.treeContext,Ce=Dt(f.nextSibling),et=t,Se=!0,Tn=null,Rt=!1,e!==null&&Zo(t,e),t=Ws(t,a),t.flags|=4096;return t}return e=nn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Is(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hu(e,t,n,a,l){return si(t),n=Kr(e,t,n,a,void 0,l),a=$r(),e!==null&&!Qe?(Zr(e,t,l),cn(e,t,l)):(Se&&a&&Nr(t),t.flags|=1,nt(e,t,n,l),t.child)}function oh(e,t,n,a,l,c){return si(t),t.updateQueue=null,n=df(t,a,n,l),hf(e),a=$r(),e!==null&&!Qe?(Zr(e,t,c),cn(e,t,c)):(Se&&a&&Nr(t),t.flags|=1,nt(e,t,n,c),t.child)}function fh(e,t,n,a,l){if(si(t),t.stateNode===null){var c=zi,f=n.contextType;typeof f=="object"&&f!==null&&(c=tt(f)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=cu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},qr(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?tt(f):zi,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(uu(t,n,f,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&cu.enqueueReplaceState(c,c.state,null),ka(t,a,c,l),Oa(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var d=t.memoizedProps,y=fi(n,d);c.props=y;var _=c.context,z=n.contextType;f=zi,typeof z=="object"&&z!==null&&(f=tt(z));var D=n.getDerivedStateFromProps;z=typeof D=="function"||typeof c.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,z||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d||_!==f)&&Wf(t,c,a,f),Nn=!1;var A=t.memoizedState;c.state=A,ka(t,a,c,l),Oa(),_=t.memoizedState,d||A!==_||Nn?(typeof D=="function"&&(uu(t,n,D,a),_=t.memoizedState),(y=Nn||Ff(t,n,y,a,A,_,f))?(z||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=_),c.props=a,c.state=_,c.context=f,a=y):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Lr(e,t),f=t.memoizedProps,z=fi(n,f),c.props=z,D=t.pendingProps,A=c.context,_=n.contextType,y=zi,typeof _=="object"&&_!==null&&(y=tt(_)),d=n.getDerivedStateFromProps,(_=typeof d=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==D||A!==y)&&Wf(t,c,a,y),Nn=!1,A=t.memoizedState,c.state=A,ka(t,a,c,l),Oa();var O=t.memoizedState;f!==D||A!==O||Nn||e!==null&&e.dependencies!==null&&Rs(e.dependencies)?(typeof d=="function"&&(uu(t,n,d,a),O=t.memoizedState),(z=Nn||Ff(t,n,z,a,A,O,y)||e!==null&&e.dependencies!==null&&Rs(e.dependencies))?(_||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,O,y),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,O,y)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),c.props=a,c.state=O,c.context=y,a=z):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Is(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=ci(t,e.child,null,l),t.child=ci(t,null,n,l)):nt(e,t,n,l),t.memoizedState=c.state,e=t.child):e=cn(e,t,l),e}function hh(e,t,n,a){return ii(),t.flags|=256,nt(e,t,n,a),t.child}var du={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mu(e){return{baseLanes:e,cachePool:ef()}}function pu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function dh(e,t,n){var a=t.pendingProps,l=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),f&&(l=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(l?zn(t):Un(),(e=Ce)?(e=xd(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wn!==null?{id:Qt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},n=Qo(e),n.return=t,t.child=n,et=t,Ce=null)):e=null,e===null)throw _n(t);return Wu(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,l?(Un(),l=t.mode,d=Ps({mode:"hidden",children:d},l),a=ni(a,l,n,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=mu(n),a.childLanes=pu(e,f,n),t.memoizedState=du,Ca(null,a)):(zn(t),yu(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(c)t.flags&256?(zn(t),t.flags&=-257,t=gu(e,t,n)):t.memoizedState!==null?(Un(),t.child=e.child,t.flags|=128,t=null):(Un(),d=a.fallback,l=t.mode,a=Ps({mode:"visible",children:a.children},l),d=ni(d,l,n,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ci(t,e.child,null,n),a=t.child,a.memoizedState=mu(n),a.childLanes=pu(e,f,n),t.memoizedState=du,t=Ca(null,a));else if(zn(t),Wu(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var _=f.dgst;f=_,a=Error(u(419)),a.stack="",a.digest=f,Ea({value:a,source:null,stack:null}),t=gu(e,t,n)}else if(Qe||Ci(e,t,n,!1),f=(n&e.childLanes)!==0,Qe||f){if(f=Me,f!==null&&(a=Wc(f,n),a!==0&&a!==y.retryLane))throw y.retryLane=a,ti(e,a),pt(f,e,a),fu;Fu(d)||ul(),t=gu(e,t,n)}else Fu(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Ce=Dt(d.nextSibling),et=t,Se=!0,Tn=null,Rt=!1,e!==null&&Zo(t,e),t=yu(t,a.children),t.flags|=4096);return t}return l?(Un(),d=a.fallback,l=t.mode,y=e.child,_=y.sibling,a=nn(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,_!==null?d=nn(_,d):(d=ni(d,l,n,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Ca(null,a),a=t.child,d=e.child.memoizedState,d===null?d=mu(n):(l=d.cachePool,l!==null?(y=Ge._currentValue,l=l.parent!==y?{parent:y,pool:y}:l):l=ef(),d={baseLanes:d.baseLanes|n,cachePool:l}),a.memoizedState=d,a.childLanes=pu(e,f,n),t.memoizedState=du,Ca(e.child,a)):(zn(t),n=e.child,e=n.sibling,n=nn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function yu(e,t){return t=Ps({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ps(e,t){return e=St(22,e,null,t),e.lanes=0,e}function gu(e,t,n){return ci(t,e.child,null,n),e=yu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Mr(e.return,t,n)}function vu(e,t,n,a,l,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=l,f.treeForkCount=c)}function ph(e,t,n){var a=t.pendingProps,l=a.revealOrder,c=a.tail;a=a.children;var f=He.current,d=(f&2)!==0;if(d?(f=f&1|2,t.flags|=128):f&=1,Y(He,f),nt(e,t,a,n),a=Se?xa:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mh(e,n,t);else if(e.tag===19)mh(e,n,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(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ys(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),vu(t,!1,l,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ys(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}vu(t,!0,n,null,c,a);break;case"together":vu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ci(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rs(e)))}function Yy(e,t,n){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),An(t,Ge,e.memoizedState.cache),ii();break;case 27:case 5:$n(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:An(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(zn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?dh(e,t,n):(zn(t),e=cn(e,t,n),e!==null?e.sibling:null);zn(t);break;case 19:var l=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ci(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return ph(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Y(He,He.current),a)break;return null;case 22:return t.lanes=0,rh(e,t,n,t.pendingProps);case 24:An(t,Ge,e.memoizedState.cache)}return cn(e,t,n)}function yh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!bu(e,n)&&(t.flags&128)===0)return Qe=!1,Yy(e,t,n);Qe=(e.flags&131072)!==0}else Qe=!1,Se&&(t.flags&1048576)!==0&&$o(t,xa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ri(t.elementType),t.type=e,typeof e=="function")Tr(e)?(a=fi(e,a),t.tag=1,t=fh(null,t,e,a,n)):(t.tag=0,t=hu(null,t,e,a,n));else{if(e!=null){var l=e.$$typeof;if(l===k){t.tag=11,t=ah(null,t,e,a,n);break e}else if(l===j){t.tag=14,t=sh(null,t,e,a,n);break e}}throw t=de(e)||e,Error(u(306,t,""))}}return t;case 0:return hu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=fi(a,t.pendingProps),fh(e,t,a,l,n);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var c=t.memoizedState;l=c.element,Lr(e,t),ka(t,a,null,n);var f=t.memoizedState;if(a=f.cache,An(t,Ge,a),a!==c.cache&&Rr(t,[Ge],n,!0),Oa(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=hh(e,t,a,n);break e}else if(a!==l){l=zt(Error(u(424)),t),Ea(l),t=hh(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ce=Dt(e.firstChild),et=t,Se=!0,Tn=null,Rt=!0,n=rf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ii(),a===l){t=cn(e,t,n);break e}nt(e,t,a,n)}t=t.child}return t;case 26:return Is(e,t),e===null?(n=Nd(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=pl(fe.current).createElement(n),a[Pe]=t,a[ct]=e,it(a,n,e),Fe(a),t.stateNode=a):t.memoizedState=Nd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $n(t),e===null&&Se&&(a=t.stateNode=Td(t.type,t.pendingProps,fe.current),et=t,Rt=!0,l=Ce,Ln(t.type)?(Iu=l,Ce=Dt(a.firstChild)):Ce=l),nt(e,t,t.pendingProps.children,n),Is(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((l=a=Ce)&&(a=gg(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,et=t,Ce=Dt(a.firstChild),Rt=!1,l=!0):l=!1),l||_n(t)),$n(t),l=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,a=c.children,$u(l,c)?a=null:f!==null&&$u(l,f)&&(t.flags|=32),t.memoizedState!==null&&(l=Kr(e,t,My,null,null,n),Ja._currentValue=l),Is(e,t),nt(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=Ce)&&(n=vg(n,t.pendingProps,Rt),n!==null?(t.stateNode=n,et=t,Ce=null,e=!0):e=!1),e||_n(t)),null;case 13:return dh(e,t,n);case 4:return Ie(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ci(t,null,a,n):nt(e,t,a,n),t.child;case 11:return ah(e,t,t.type,t.pendingProps,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,An(t,t.type,a.value),nt(e,t,a.children,n),t.child;case 9:return l=t.type._context,a=t.pendingProps.children,si(t),l=tt(l),a=a(l),t.flags|=1,nt(e,t,a,n),t.child;case 14:return sh(e,t,t.type,t.pendingProps,n);case 15:return lh(e,t,t.type,t.pendingProps,n);case 19:return ph(e,t,n);case 31:return Hy(e,t,n);case 22:return rh(e,t,n,t.pendingProps);case 24:return si(t),a=tt(Ge),e===null?(l=jr(),l===null&&(l=Me,c=Cr(),l.pooledCache=c,c.refCount++,c!==null&&(l.pooledCacheLanes|=n),l=c),t.memoizedState={parent:a,cache:l},qr(t),An(t,Ge,l)):((e.lanes&n)!==0&&(Lr(e,t),ka(t,null,null,n),Oa()),l=e.memoizedState,c=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),An(t,Ge,a)):(a=c.cache,An(t,Ge,a),a!==l.cache&&Rr(t,[Ge],n,!0))),nt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function on(e){e.flags|=4}function Su(e,t,n,a,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Gh())e.flags|=8192;else throw ui=Bs,Br}else e.flags&=-16777217}function gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Md(t))if(Gh())e.flags|=8192;else throw ui=Bs,Br}function el(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Zc():536870912,e.lanes|=t,Ki|=t)}function Da(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Xy(e,t,n){var a=t.pendingProps;switch(Or(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ln(Ge),Be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?on(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zr())),De(t),null;case 26:var l=t.type,c=t.memoizedState;return e===null?(on(t),c!==null?(De(t),gh(t,c)):(De(t),Su(t,l,null,a,n))):c?c!==e.memoizedState?(on(t),De(t),gh(t,c)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&on(t),De(t),Su(t,l,e,a,n)),null;case 27:if(yi(t),n=fe.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&on(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return De(t),null}e=K.current,Ri(t)?Jo(t):(e=Td(l,a,n),t.stateNode=e,on(t))}return De(t),null;case 5:if(yi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&on(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return De(t),null}if(c=K.current,Ri(t))Jo(t);else{var f=pl(fe.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(l,{is:a.is}):f.createElement(l)}}c[Pe]=t,c[ct]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(it(c,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&on(t)}}return De(t),Su(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&on(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,l=et,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||dd(e.nodeValue,n)),e||_n(t,!0)}else e=pl(e).createTextNode(a),e[Pe]=t,t.stateNode=e}return De(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ri(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[Pe]=t}else ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else n=zr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(u(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Ri(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[Pe]=t}else ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),l=!1}else l=zr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),el(t,t.updateQueue),De(t),null);case 4:return Be(),e===null&&Xu(t.stateNode.containerInfo),De(t),null;case 10:return ln(t.type),De(t),null;case 19:if(C(He),a=t.memoizedState,a===null)return De(t),null;if(l=(t.flags&128)!==0,c=a.rendering,c===null)if(l)Da(a,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ys(e),c!==null){for(t.flags|=128,Da(a,!1),e=c.updateQueue,t.updateQueue=e,el(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Vo(n,e),n=n.sibling;return Y(He,He.current&1|2),Se&&an(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&yt()>sl&&(t.flags|=128,l=!0,Da(a,!1),t.lanes=4194304)}else{if(!l)if(e=Ys(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,el(t,e),Da(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Se)return De(t),null}else 2*yt()-a.renderingStartTime>sl&&n!==536870912&&(t.flags|=128,l=!0,Da(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=yt(),e.sibling=null,n=He.current,Y(He,l?n&1|2:n&1),Se&&an(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return Et(t),Gr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),n=t.updateQueue,n!==null&&el(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&C(li),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ln(Ge),De(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Gy(e,t){switch(Or(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ln(Ge),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yi(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(u(340));ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return C(He),null;case 4:return Be(),null;case 10:return ln(t.type),null;case 22:case 23:return Et(t),Gr(),e!==null&&C(li),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ln(Ge),null;case 25:return null;default:return null}}function vh(e,t){switch(Or(t),t.tag){case 3:ln(Ge),Be();break;case 26:case 27:case 5:yi(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:C(He);break;case 10:ln(t.type);break;case 22:case 23:Et(t),Gr(),e!==null&&C(li);break;case 24:ln(Ge)}}function ja(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==l)}}catch(d){Oe(t,t.return,d)}}function Mn(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var c=l.next;a=c;do{if((a.tag&e)===e){var f=a.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,l=t;var y=n,_=d;try{_()}catch(z){Oe(l,y,z)}}}a=a.next}while(a!==c)}}catch(z){Oe(t,t.return,z)}}function bh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{cf(t,n)}catch(a){Oe(e,e.return,a)}}}function Sh(e,t,n){n.props=fi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Oe(e,t,a)}}function Ba(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(l){Oe(e,t,l)}}function $t(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){Oe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Oe(e,t,l)}else n.current=null}function xh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){Oe(e,e.return,l)}}function xu(e,t,n){try{var a=e.stateNode;fg(a,e.type,n,t),a[ct]=t}catch(l){Oe(e,e.return,l)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ln(e.type)||e.tag===4}function Eu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ln(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 wu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(a!==4&&(a===27&&Ln(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(wu(e,t,n),e=e.sibling;e!==null;)wu(e,t,n),e=e.sibling}function tl(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ln(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function wh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);it(t,a,n),t[Pe]=e,t[ct]=n}catch(c){Oe(e,e.return,c)}}var fn=!1,Ke=!1,Tu=!1,Th=typeof WeakSet=="function"?WeakSet:Set,We=null;function Vy(e,t){if(e=e.containerInfo,Qu=El,e=Do(e),gr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,d=-1,y=-1,_=0,z=0,D=e,A=null;t:for(;;){for(var O;D!==n||l!==0&&D.nodeType!==3||(d=f+l),D!==c||a!==0&&D.nodeType!==3||(y=f+a),D.nodeType===3&&(f+=D.nodeValue.length),(O=D.firstChild)!==null;)A=D,D=O;for(;;){if(D===e)break t;if(A===n&&++_===l&&(d=f),A===c&&++z===a&&(y=f),(O=D.nextSibling)!==null)break;D=A,A=D.parentNode}D=O}n=d===-1||y===-1?null:{start:d,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ku={focusedElem:e,selectionRange:n},El=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)l=e[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,l=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var Q=fi(n.type,l);e=a.getSnapshotBeforeUpdate(Q,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ee){Oe(n,n.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ju(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ju(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function _h(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:dn(e,n),a&4&&ja(5,n);break;case 1:if(dn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Oe(n,n.return,f)}else{var l=fi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Oe(n,n.return,f)}}a&64&&bh(n),a&512&&Ba(n,n.return);break;case 3:if(dn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{cf(e,t)}catch(f){Oe(n,n.return,f)}}break;case 27:t===null&&a&4&&wh(n);case 26:case 5:dn(e,n),t===null&&a&4&&xh(n),a&512&&Ba(n,n.return);break;case 12:dn(e,n);break;case 31:dn(e,n),a&4&&Oh(e,n);break;case 13:dn(e,n),a&4&&kh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Py.bind(null,n),bg(e,n))));break;case 22:if(a=n.memoizedState!==null||fn,!a){t=t!==null&&t.memoizedState!==null||Ke,l=fn;var c=Ke;fn=a,(Ke=t)&&!c?mn(e,n,(n.subtreeFlags&8772)!==0):dn(e,n),fn=l,Ke=c}break;case 30:break;default:dn(e,n)}}function Ah(e){var t=e.alternate;t!==null&&(e.alternate=null,Ah(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&er(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 je=null,ft=!1;function hn(e,t,n){for(n=n.child;n!==null;)Nh(e,t,n),n=n.sibling}function Nh(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(ra,n)}catch{}switch(n.tag){case 26:Ke||$t(n,t),hn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ke||$t(n,t);var a=je,l=ft;Ln(n.type)&&(je=n.stateNode,ft=!1),hn(e,t,n),Ka(n.stateNode),je=a,ft=l;break;case 5:Ke||$t(n,t);case 6:if(a=je,l=ft,je=null,hn(e,t,n),je=a,ft=l,je!==null)if(ft)try{(je.nodeType===9?je.body:je.nodeName==="HTML"?je.ownerDocument.body:je).removeChild(n.stateNode)}catch(c){Oe(n,t,c)}else try{je.removeChild(n.stateNode)}catch(c){Oe(n,t,c)}break;case 18:je!==null&&(ft?(e=je,bd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ea(e)):bd(je,n.stateNode));break;case 4:a=je,l=ft,je=n.stateNode.containerInfo,ft=!0,hn(e,t,n),je=a,ft=l;break;case 0:case 11:case 14:case 15:Mn(2,n,t),Ke||Mn(4,n,t),hn(e,t,n);break;case 1:Ke||($t(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Sh(n,t,a)),hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:Ke=(a=Ke)||n.memoizedState!==null,hn(e,t,n),Ke=a;break;default:hn(e,t,n)}}function Oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ea(e)}catch(n){Oe(t,t.return,n)}}}function kh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ea(e)}catch(n){Oe(t,t.return,n)}}function Qy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Th),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Th),t;default:throw Error(u(435,e.tag))}}function nl(e,t){var n=Qy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var l=eg.bind(null,e,a);a.then(l,l)}})}function ht(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],c=e,f=t,d=f;e:for(;d!==null;){switch(d.tag){case 27:if(Ln(d.type)){je=d.stateNode,ft=!1;break e}break;case 5:je=d.stateNode,ft=!1;break e;case 3:case 4:je=d.stateNode.containerInfo,ft=!0;break e}d=d.return}if(je===null)throw Error(u(160));Nh(c,f,l),je=null,ft=!1,c=l.alternate,c!==null&&(c.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zh(t,e),t=t.sibling}var Lt=null;function zh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ht(t,e),dt(e),a&4&&(Mn(3,e,e.return),ja(3,e),Mn(5,e,e.return));break;case 1:ht(t,e),dt(e),a&512&&(Ke||n===null||$t(n,n.return)),a&64&&fn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=Lt;if(ht(t,e),dt(e),a&512&&(Ke||n===null||$t(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,l=l.ownerDocument||l;t:switch(a){case"title":c=l.getElementsByTagName("title")[0],(!c||c[oa]||c[Pe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=l.createElement(a),l.head.insertBefore(c,l.querySelector("head > title"))),it(c,a,n),c[Pe]=e,Fe(c),a=c;break e;case"link":var f=zd("link","href",l).get(a+(n.href||""));if(f){for(var d=0;d<f.length;d++)if(c=f[d],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(d,1);break t}}c=l.createElement(a),it(c,a,n),l.head.appendChild(c);break;case"meta":if(f=zd("meta","content",l).get(a+(n.content||""))){for(d=0;d<f.length;d++)if(c=f[d],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(d,1);break t}}c=l.createElement(a),it(c,a,n),l.head.appendChild(c);break;default:throw Error(u(468,a))}c[Pe]=e,Fe(c),a=c}e.stateNode=a}else Ud(l,e.type,e.stateNode);else e.stateNode=kd(l,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Ud(l,e.type,e.stateNode):kd(l,a,e.memoizedProps)):a===null&&e.stateNode!==null&&xu(e,e.memoizedProps,n.memoizedProps)}break;case 27:ht(t,e),dt(e),a&512&&(Ke||n===null||$t(n,n.return)),n!==null&&a&4&&xu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ht(t,e),dt(e),a&512&&(Ke||n===null||$t(n,n.return)),e.flags&32){l=e.stateNode;try{wi(l,"")}catch(Q){Oe(e,e.return,Q)}}a&4&&e.stateNode!=null&&(l=e.memoizedProps,xu(e,l,n!==null?n.memoizedProps:l)),a&1024&&(Tu=!0);break;case 6:if(ht(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Q){Oe(e,e.return,Q)}}break;case 3:if(vl=null,l=Lt,Lt=yl(t.containerInfo),ht(t,e),Lt=l,dt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ea(t.containerInfo)}catch(Q){Oe(e,e.return,Q)}Tu&&(Tu=!1,Uh(e));break;case 4:a=Lt,Lt=yl(e.stateNode.containerInfo),ht(t,e),dt(e),Lt=a;break;case 12:ht(t,e),dt(e);break;case 31:ht(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,nl(e,a)));break;case 13:ht(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(al=yt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,nl(e,a)));break;case 22:l=e.memoizedState!==null;var y=n!==null&&n.memoizedState!==null,_=fn,z=Ke;if(fn=_||l,Ke=z||y,ht(t,e),Ke=z,fn=_,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(n===null||y||fn||Ke||hi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){y=n=t;try{if(c=y.stateNode,l)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=y.stateNode;var D=y.memoizedProps.style,A=D!=null&&D.hasOwnProperty("display")?D.display:null;d.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(Q){Oe(y,y.return,Q)}}}else if(t.tag===6){if(n===null){y=t;try{y.stateNode.nodeValue=l?"":y.memoizedProps}catch(Q){Oe(y,y.return,Q)}}}else if(t.tag===18){if(n===null){y=t;try{var O=y.stateNode;l?Sd(O,!0):Sd(y.stateNode,!1)}catch(Q){Oe(y,y.return,Q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,nl(e,n))));break;case 19:ht(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,nl(e,a)));break;case 30:break;case 21:break;default:ht(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Eh(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var l=n.stateNode,c=Eu(e);tl(e,c,l);break;case 5:var f=n.stateNode;n.flags&32&&(wi(f,""),n.flags&=-33);var d=Eu(e);tl(e,d,f);break;case 3:case 4:var y=n.stateNode.containerInfo,_=Eu(e);wu(e,_,y);break;default:throw Error(u(161))}}catch(z){Oe(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Uh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_h(e,t.alternate,t),t=t.sibling}function hi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Mn(4,t,t.return),hi(t);break;case 1:$t(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Sh(t,t.return,n),hi(t);break;case 27:Ka(t.stateNode);case 26:case 5:$t(t,t.return),hi(t);break;case 22:t.memoizedState===null&&hi(t);break;case 30:hi(t);break;default:hi(t)}e=e.sibling}}function mn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,l=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:mn(l,c,n),ja(4,c);break;case 1:if(mn(l,c,n),a=c,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(_){Oe(a,a.return,_)}if(a=c,l=a.updateQueue,l!==null){var d=a.stateNode;try{var y=l.shared.hiddenCallbacks;if(y!==null)for(l.shared.hiddenCallbacks=null,l=0;l<y.length;l++)uf(y[l],d)}catch(_){Oe(a,a.return,_)}}n&&f&64&&bh(c),Ba(c,c.return);break;case 27:wh(c);case 26:case 5:mn(l,c,n),n&&a===null&&f&4&&xh(c),Ba(c,c.return);break;case 12:mn(l,c,n);break;case 31:mn(l,c,n),n&&f&4&&Oh(l,c);break;case 13:mn(l,c,n),n&&f&4&&kh(l,c);break;case 22:c.memoizedState===null&&mn(l,c,n),Ba(c,c.return);break;case 30:break;default:mn(l,c,n)}t=t.sibling}}function _u(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&wa(n))}function Au(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wa(e))}function Ht(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mh(e,t,n,a),t=t.sibling}function Mh(e,t,n,a){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,n,a),l&2048&&ja(9,t);break;case 1:Ht(e,t,n,a);break;case 3:Ht(e,t,n,a),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wa(e)));break;case 12:if(l&2048){Ht(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,d=c.onPostCommit;typeof d=="function"&&d(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Oe(t,t.return,y)}}else Ht(e,t,n,a);break;case 31:Ht(e,t,n,a);break;case 13:Ht(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?Ht(e,t,n,a):qa(e,t):c._visibility&2?Ht(e,t,n,a):(c._visibility|=2,Gi(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),l&2048&&_u(f,t);break;case 24:Ht(e,t,n,a),l&2048&&Au(t.alternate,t);break;default:Ht(e,t,n,a)}}function Gi(e,t,n,a,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,d=n,y=a,_=f.flags;switch(f.tag){case 0:case 11:case 15:Gi(c,f,d,y,l),ja(8,f);break;case 23:break;case 22:var z=f.stateNode;f.memoizedState!==null?z._visibility&2?Gi(c,f,d,y,l):qa(c,f):(z._visibility|=2,Gi(c,f,d,y,l)),l&&_&2048&&_u(f.alternate,f);break;case 24:Gi(c,f,d,y,l),l&&_&2048&&Au(f.alternate,f);break;default:Gi(c,f,d,y,l)}t=t.sibling}}function qa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,l=a.flags;switch(a.tag){case 22:qa(n,a),l&2048&&_u(a.alternate,a);break;case 24:qa(n,a),l&2048&&Au(a.alternate,a);break;default:qa(n,a)}t=t.sibling}}var La=8192;function Vi(e,t,n){if(e.subtreeFlags&La)for(e=e.child;e!==null;)Rh(e,t,n),e=e.sibling}function Rh(e,t,n){switch(e.tag){case 26:Vi(e,t,n),e.flags&La&&e.memoizedState!==null&&Ug(n,Lt,e.memoizedState,e.memoizedProps);break;case 5:Vi(e,t,n);break;case 3:case 4:var a=Lt;Lt=yl(e.stateNode.containerInfo),Vi(e,t,n),Lt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=La,La=16777216,Vi(e,t,n),La=a):Vi(e,t,n));break;default:Vi(e,t,n)}}function Ch(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 Ha(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];We=a,jh(a,e)}Ch(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dh(e),e=e.sibling}function Dh(e){switch(e.tag){case 0:case 11:case 15:Ha(e),e.flags&2048&&Mn(9,e,e.return);break;case 3:Ha(e);break;case 12:Ha(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,il(e)):Ha(e);break;default:Ha(e)}}function il(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];We=a,jh(a,e)}Ch(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Mn(8,t,t.return),il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,il(t));break;default:il(t)}e=e.sibling}}function jh(e,t){for(;We!==null;){var n=We;switch(n.tag){case 0:case 11:case 15:Mn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:wa(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,We=a;else e:for(n=e;We!==null;){a=We;var l=a.sibling,c=a.return;if(Ah(a),a===n){We=null;break e}if(l!==null){l.return=c,We=l;break e}We=c}}}var Ky={getCacheForType:function(e){var t=tt(Ge),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return tt(Ge).controller.signal}},$y=typeof WeakMap=="function"?WeakMap:Map,_e=0,Me=null,pe=null,ge=0,Ne=0,wt=null,Rn=!1,Qi=!1,Nu=!1,pn=0,Le=0,Cn=0,di=0,Ou=0,Tt=0,Ki=0,Ya=null,mt=null,ku=!1,al=0,Bh=0,sl=1/0,ll=null,Dn=null,Je=0,jn=null,$i=null,yn=0,zu=0,Uu=null,qh=null,Xa=0,Mu=null;function _t(){return(_e&2)!==0&&ge!==0?ge&-ge:N.T!==null?qu():Ic()}function Lh(){if(Tt===0)if((ge&536870912)===0||Se){var e=ms;ms<<=1,(ms&3932160)===0&&(ms=262144),Tt=e}else Tt=536870912;return e=xt.current,e!==null&&(e.flags|=32),Tt}function pt(e,t,n){(e===Me&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Zi(e,0),Bn(e,ge,Tt,!1)),ca(e,n),((_e&2)===0||e!==Me)&&(e===Me&&((_e&2)===0&&(di|=n),Le===4&&Bn(e,ge,Tt,!1)),Zt(e))}function Hh(e,t,n){if((_e&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ua(e,t),l=a?Fy(e,t):Cu(e,t,!0),c=a;do{if(l===0){Qi&&!a&&Bn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Zy(n)){l=Cu(e,t,!1),c=!1;continue}if(l===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var d=e;l=Ya;var y=d.current.memoizedState.isDehydrated;if(y&&(Zi(d,f).flags|=256),f=Cu(d,f,!1),f!==2){if(Nu&&!y){d.errorRecoveryDisabledLanes|=c,di|=c,l=4;break e}c=mt,mt=l,c!==null&&(mt===null?mt=c:mt.push.apply(mt,c))}l=f}if(c=!1,l!==2)continue}}if(l===1){Zi(e,0),Bn(e,t,0,!0);break}e:{switch(a=e,c=l,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Bn(a,t,Tt,!Rn);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(l=al+300-yt(),10<l)){if(Bn(a,t,Tt,!Rn),ys(a,0,!0)!==0)break e;yn=t,a.timeoutHandle=gd(Yh.bind(null,a,n,mt,ll,ku,t,Tt,di,Ki,Rn,c,"Throttled",-0,0),l);break e}Yh(a,n,mt,ll,ku,t,Tt,di,Ki,Rn,c,null,-0,0)}}break}while(!0);Zt(e)}function Yh(e,t,n,a,l,c,f,d,y,_,z,D,A,O){if(e.timeoutHandle=-1,D=t.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Rh(t,c,D);var Q=(c&62914560)===c?al-yt():(c&4194048)===c?Bh-yt():0;if(Q=Mg(D,Q),Q!==null){yn=c,e.cancelPendingCommit=Q(Jh.bind(null,e,t,c,n,a,l,f,d,y,z,D,null,A,O)),Bn(e,c,f,!_);return}}Jh(e,t,c,n,a,l,f,d,y)}function Zy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],c=l.getSnapshot;l=l.value;try{if(!bt(c(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Bn(e,t,n,a){t&=~Ou,t&=~di,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var l=t;0<l;){var c=31-vt(l),f=1<<c;a[c]=-1,l&=~f}n!==0&&Jc(e,n,t)}function rl(){return(_e&6)===0?(Ga(0),!1):!0}function Ru(){if(pe!==null){if(Ne===0)var e=pe.return;else e=pe,sn=ai=null,Jr(e),qi=null,_a=0,e=pe;for(;e!==null;)vh(e.alternate,e),e=e.return;pe=null}}function Zi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,mg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yn=0,Ru(),Me=e,pe=n=nn(e.current,null),ge=t,Ne=0,wt=null,Rn=!1,Qi=ua(e,t),Nu=!1,Ki=Tt=Ou=di=Cn=Le=0,mt=Ya=null,ku=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var l=31-vt(a),c=1<<l;t|=e[l],a&=~c}return pn=t,Os(),n}function Xh(e,t){ce=null,N.H=Ra,t===Bi||t===js?(t=af(),Ne=3):t===Br?(t=af(),Ne=4):Ne=t===fu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,pe===null&&(Le=1,Fs(e,zt(t,e.current)))}function Gh(){var e=xt.current;return e===null?!0:(ge&4194048)===ge?Ct===null:(ge&62914560)===ge||(ge&536870912)!==0?e===Ct:!1}function Vh(){var e=N.H;return N.H=Ra,e===null?Ra:e}function Qh(){var e=N.A;return N.A=Ky,e}function ul(){Le=4,Rn||(ge&4194048)!==ge&&xt.current!==null||(Qi=!0),(Cn&134217727)===0&&(di&134217727)===0||Me===null||Bn(Me,ge,Tt,!1)}function Cu(e,t,n){var a=_e;_e|=2;var l=Vh(),c=Qh();(Me!==e||ge!==t)&&(ll=null,Zi(e,t)),t=!1;var f=Le;e:do try{if(Ne!==0&&pe!==null){var d=pe,y=wt;switch(Ne){case 8:Ru(),f=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var _=Ne;if(Ne=0,wt=null,Ji(e,d,y,_),n&&Qi){f=0;break e}break;default:_=Ne,Ne=0,wt=null,Ji(e,d,y,_)}}Jy(),f=Le;break}catch(z){Xh(e,z)}while(!0);return t&&e.shellSuspendCounter++,sn=ai=null,_e=a,N.H=l,N.A=c,pe===null&&(Me=null,ge=0,Os()),f}function Jy(){for(;pe!==null;)Kh(pe)}function Fy(e,t){var n=_e;_e|=2;var a=Vh(),l=Qh();Me!==e||ge!==t?(ll=null,sl=yt()+500,Zi(e,t)):Qi=ua(e,t);e:do try{if(Ne!==0&&pe!==null){t=pe;var c=wt;t:switch(Ne){case 1:Ne=0,wt=null,Ji(e,t,c,1);break;case 2:case 9:if(tf(c)){Ne=0,wt=null,$h(t);break}t=function(){Ne!==2&&Ne!==9||Me!==e||(Ne=7),Zt(e)},c.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:tf(c)?(Ne=0,wt=null,$h(t)):(Ne=0,wt=null,Ji(e,t,c,7));break;case 5:var f=null;switch(pe.tag){case 26:f=pe.memoizedState;case 5:case 27:var d=pe;if(f?Md(f):d.stateNode.complete){Ne=0,wt=null;var y=d.sibling;if(y!==null)pe=y;else{var _=d.return;_!==null?(pe=_,cl(_)):pe=null}break t}}Ne=0,wt=null,Ji(e,t,c,5);break;case 6:Ne=0,wt=null,Ji(e,t,c,6);break;case 8:Ru(),Le=6;break e;default:throw Error(u(462))}}Wy();break}catch(z){Xh(e,z)}while(!0);return sn=ai=null,N.H=a,N.A=l,_e=n,pe!==null?0:(Me=null,ge=0,Os(),Le)}function Wy(){for(;pe!==null&&!Sp();)Kh(pe)}function Kh(e){var t=yh(e.alternate,e,pn);e.memoizedProps=e.pendingProps,t===null?cl(e):pe=t}function $h(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=oh(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=oh(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Jr(t);default:vh(n,t),t=pe=Vo(t,pn),t=yh(n,t,pn)}e.memoizedProps=e.pendingProps,t===null?cl(e):pe=t}function Ji(e,t,n,a){sn=ai=null,Jr(t),qi=null,_a=0;var l=t.return;try{if(Ly(e,l,t,n,ge)){Le=1,Fs(e,zt(n,e.current)),pe=null;return}}catch(c){if(l!==null)throw pe=l,c;Le=1,Fs(e,zt(n,e.current)),pe=null;return}t.flags&32768?(Se||a===1?e=!0:Qi||(ge&536870912)!==0?e=!1:(Rn=e=!0,(a===2||a===9||a===3||a===6)&&(a=xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Zh(t,e)):cl(t)}function cl(e){var t=e;do{if((t.flags&32768)!==0){Zh(t,Rn);return}e=t.return;var n=Xy(t.alternate,t,pn);if(n!==null){pe=n;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);Le===0&&(Le=5)}function Zh(e,t){do{var n=Gy(e.alternate,e);if(n!==null){n.flags&=32767,pe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=n}while(e!==null);Le=6,pe=null}function Jh(e,t,n,a,l,c,f,d,y){e.cancelPendingCommit=null;do ol();while(Je!==0);if((_e&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Er,zp(e,n,c,f,d,y),e===Me&&(pe=Me=null,ge=0),$i=t,jn=e,yn=n,zu=c,Uu=l,qh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tg(hs,function(){return ed(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null,l=L.p,L.p=2,f=_e,_e|=4;try{Vy(e,t,n)}finally{_e=f,L.p=l,N.T=a}}Je=1,Fh(),Wh(),Ih()}}function Fh(){if(Je===1){Je=0;var e=jn,t=$i,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var a=L.p;L.p=2;var l=_e;_e|=4;try{zh(t,e);var c=Ku,f=Do(e.containerInfo),d=c.focusedElem,y=c.selectionRange;if(f!==d&&d&&d.ownerDocument&&Co(d.ownerDocument.documentElement,d)){if(y!==null&&gr(d)){var _=y.start,z=y.end;if(z===void 0&&(z=_),"selectionStart"in d)d.selectionStart=_,d.selectionEnd=Math.min(z,d.value.length);else{var D=d.ownerDocument||document,A=D&&D.defaultView||window;if(A.getSelection){var O=A.getSelection(),Q=d.textContent.length,ee=Math.min(y.start,Q),Ue=y.end===void 0?ee:Math.min(y.end,Q);!O.extend&&ee>Ue&&(f=Ue,Ue=ee,ee=f);var x=Ro(d,ee),g=Ro(d,Ue);if(x&&g&&(O.rangeCount!==1||O.anchorNode!==x.node||O.anchorOffset!==x.offset||O.focusNode!==g.node||O.focusOffset!==g.offset)){var T=D.createRange();T.setStart(x.node,x.offset),O.removeAllRanges(),ee>Ue?(O.addRange(T),O.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),O.addRange(T))}}}}for(D=[],O=d;O=O.parentNode;)O.nodeType===1&&D.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<D.length;d++){var M=D[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}El=!!Qu,Ku=Qu=null}finally{_e=l,L.p=a,N.T=n}}e.current=t,Je=2}}function Wh(){if(Je===2){Je=0;var e=jn,t=$i,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var a=L.p;L.p=2;var l=_e;_e|=4;try{_h(e,t.alternate,t)}finally{_e=l,L.p=a,N.T=n}}Je=3}}function Ih(){if(Je===4||Je===3){Je=0,xp();var e=jn,t=$i,n=yn,a=qh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,$i=jn=null,Ph(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(Dn=null),Il(n),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(ra,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=N.T,l=L.p,L.p=2,N.T=null;try{for(var c=e.onRecoverableError,f=0;f<a.length;f++){var d=a[f];c(d.value,{componentStack:d.stack})}}finally{N.T=t,L.p=l}}(yn&3)!==0&&ol(),Zt(e),l=e.pendingLanes,(n&261930)!==0&&(l&42)!==0?e===Mu?Xa++:(Xa=0,Mu=e):Xa=0,Ga(0)}}function Ph(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wa(t)))}function ol(){return Fh(),Wh(),Ih(),ed()}function ed(){if(Je!==5)return!1;var e=jn,t=zu;zu=0;var n=Il(yn),a=N.T,l=L.p;try{L.p=32>n?32:n,N.T=null,n=Uu,Uu=null;var c=jn,f=yn;if(Je=0,$i=jn=null,yn=0,(_e&6)!==0)throw Error(u(331));var d=_e;if(_e|=4,Dh(c.current),Mh(c,c.current,f,n),_e=d,Ga(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(ra,c)}catch{}return!0}finally{L.p=l,N.T=a,Ph(e,t)}}function td(e,t,n){t=zt(n,t),t=ou(e.stateNode,t,2),e=kn(e,t,2),e!==null&&(ca(e,2),Zt(e))}function Oe(e,t,n){if(e.tag===3)td(e,e,n);else for(;t!==null;){if(t.tag===3){td(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Dn===null||!Dn.has(a))){e=zt(n,e),n=nh(2),a=kn(t,n,2),a!==null&&(ih(n,a,t,e),ca(a,2),Zt(a));break}}t=t.return}}function Du(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new $y;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(Nu=!0,l.add(n),e=Iy.bind(null,e,t,n),t.then(e,e))}function Iy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(ge&n)===n&&(Le===4||Le===3&&(ge&62914560)===ge&&300>yt()-al?(_e&2)===0&&Zi(e,0):Ou|=n,Ki===ge&&(Ki=0)),Zt(e)}function nd(e,t){t===0&&(t=Zc()),e=ti(e,t),e!==null&&(ca(e,t),Zt(e))}function Py(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function eg(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),nd(e,n)}function tg(e,t){return Zl(e,t)}var fl=null,Fi=null,ju=!1,hl=!1,Bu=!1,qn=0;function Zt(e){e!==Fi&&e.next===null&&(Fi===null?fl=Fi=e:Fi=Fi.next=e),hl=!0,ju||(ju=!0,ig())}function Ga(e,t){if(!Bu&&hl){Bu=!0;do for(var n=!1,a=fl;a!==null;){if(e!==0){var l=a.pendingLanes;if(l===0)var c=0;else{var f=a.suspendedLanes,d=a.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=l&~(f&~d),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,ld(a,c))}else c=ge,c=ys(a,a===Me?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ua(a,c)||(n=!0,ld(a,c));a=a.next}while(n);Bu=!1}}function ng(){id()}function id(){hl=ju=!1;var e=0;qn!==0&&dg()&&(e=qn);for(var t=yt(),n=null,a=fl;a!==null;){var l=a.next,c=ad(a,t);c===0?(a.next=null,n===null?fl=l:n.next=l,l===null&&(Fi=n)):(n=a,(e!==0||(c&3)!==0)&&(hl=!0)),a=l}Je!==0&&Je!==5||Ga(e),qn!==0&&(qn=0)}function ad(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-vt(c),d=1<<f,y=l[f];y===-1?((d&n)===0||(d&a)!==0)&&(l[f]=kp(d,t)):y<=t&&(e.expiredLanes|=d),c&=~d}if(t=Me,n=ge,n=ys(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Jl(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ua(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Jl(a),Il(n)){case 2:case 8:n=Kc;break;case 32:n=hs;break;case 268435456:n=$c;break;default:n=hs}return a=sd.bind(null,e),n=Zl(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Jl(a),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ol()&&e.callbackNode!==n)return null;var a=ge;return a=ys(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Hh(e,a,t),ad(e,yt()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function ld(e,t){if(ol())return null;Hh(e,t,!0)}function ig(){pg(function(){(_e&6)!==0?Zl(Qc,ng):id()})}function qu(){if(qn===0){var e=Di;e===0&&(e=ds,ds<<=1,(ds&261888)===0&&(ds=256)),qn=e}return qn}function rd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ss(""+e)}function ud(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function ag(e,t,n,a,l){if(t==="submit"&&n&&n.stateNode===l){var c=rd((l[ct]||null).action),f=a.submitter;f&&(t=(t=f[ct]||null)?rd(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var d=new Ts("action","action",null,a,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(qn!==0){var y=f?ud(l,f):new FormData(l);au(n,{pending:!0,data:y,method:l.method,action:c},null,y)}}else typeof c=="function"&&(d.preventDefault(),y=f?ud(l,f):new FormData(l),au(n,{pending:!0,data:y,method:l.method,action:c},c,y))},currentTarget:l}]})}}for(var Lu=0;Lu<xr.length;Lu++){var Hu=xr[Lu],sg=Hu.toLowerCase(),lg=Hu[0].toUpperCase()+Hu.slice(1);qt(sg,"on"+lg)}qt(qo,"onAnimationEnd"),qt(Lo,"onAnimationIteration"),qt(Ho,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(Ey,"onTransitionRun"),qt(wy,"onTransitionStart"),qt(Ty,"onTransitionCancel"),qt(Yo,"onTransitionEnd"),xi("onMouseEnter",["mouseout","mouseover"]),xi("onMouseLeave",["mouseout","mouseover"]),xi("onPointerEnter",["pointerout","pointerover"]),xi("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Va="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(" "),rg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Va));function cd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],l=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var f=a.length-1;0<=f;f--){var d=a[f],y=d.instance,_=d.currentTarget;if(d=d.listener,y!==c&&l.isPropagationStopped())break e;c=d,l.currentTarget=_;try{c(l)}catch(z){Ns(z)}l.currentTarget=null,c=y}else for(f=0;f<a.length;f++){if(d=a[f],y=d.instance,_=d.currentTarget,d=d.listener,y!==c&&l.isPropagationStopped())break e;c=d,l.currentTarget=_;try{c(l)}catch(z){Ns(z)}l.currentTarget=null,c=y}}}}function ye(e,t){var n=t[Pl];n===void 0&&(n=t[Pl]=new Set);var a=e+"__bubble";n.has(a)||(od(t,e,2,!1),n.add(a))}function Yu(e,t,n){var a=0;t&&(a|=4),od(n,e,a,t)}var dl="_reactListening"+Math.random().toString(36).slice(2);function Xu(e){if(!e[dl]){e[dl]=!0,to.forEach(function(n){n!=="selectionchange"&&(rg.has(n)||Yu(n,!1,e),Yu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[dl]||(t[dl]=!0,Yu("selectionchange",!1,t))}}function od(e,t,n,a){switch(Ld(t)){case 2:var l=Dg;break;case 8:l=jg;break;default:l=ic}n=l.bind(null,t,n,e),l=void 0,!ur||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),a?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Gu(e,t,n,a,l){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var d=a.stateNode.containerInfo;if(d===l)break;if(f===4)for(f=a.return;f!==null;){var y=f.tag;if((y===3||y===4)&&f.stateNode.containerInfo===l)return;f=f.return}for(;d!==null;){if(f=vi(d),f===null)return;if(y=f.tag,y===5||y===6||y===26||y===27){a=c=f;continue e}d=d.parentNode}}a=a.return}mo(function(){var _=c,z=lr(n),D=[];e:{var A=Xo.get(e);if(A!==void 0){var O=Ts,Q=e;switch(e){case"keypress":if(Es(n)===0)break e;case"keydown":case"keyup":O=ey;break;case"focusin":Q="focus",O=hr;break;case"focusout":Q="blur",O=hr;break;case"beforeblur":case"afterblur":O=hr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=go;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Xp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=iy;break;case qo:case Lo:case Ho:O=Qp;break;case Yo:O=sy;break;case"scroll":case"scrollend":O=Hp;break;case"wheel":O=ry;break;case"copy":case"cut":case"paste":O=$p;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=bo;break;case"toggle":case"beforetoggle":O=cy}var ee=(t&4)!==0,Ue=!ee&&(e==="scroll"||e==="scrollend"),x=ee?A!==null?A+"Capture":null:A;ee=[];for(var g=_,T;g!==null;){var M=g;if(T=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||T===null||x===null||(M=ha(g,x),M!=null&&ee.push(Qa(g,M,T))),Ue)break;g=g.return}0<ee.length&&(A=new O(A,Q,null,n,z),D.push({event:A,listeners:ee}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",A&&n!==sr&&(Q=n.relatedTarget||n.fromElement)&&(vi(Q)||Q[gi]))break e;if((O||A)&&(A=z.window===z?z:(A=z.ownerDocument)?A.defaultView||A.parentWindow:window,O?(Q=n.relatedTarget||n.toElement,O=_,Q=Q?vi(Q):null,Q!==null&&(Ue=h(Q),ee=Q.tag,Q!==Ue||ee!==5&&ee!==27&&ee!==6)&&(Q=null)):(O=null,Q=_),O!==Q)){if(ee=go,M="onMouseLeave",x="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(ee=bo,M="onPointerLeave",x="onPointerEnter",g="pointer"),Ue=O==null?A:fa(O),T=Q==null?A:fa(Q),A=new ee(M,g+"leave",O,n,z),A.target=Ue,A.relatedTarget=T,M=null,vi(z)===_&&(ee=new ee(x,g+"enter",Q,n,z),ee.target=T,ee.relatedTarget=Ue,M=ee),Ue=M,O&&Q)t:{for(ee=ug,x=O,g=Q,T=0,M=x;M;M=ee(M))T++;M=0;for(var W=g;W;W=ee(W))M++;for(;0<T-M;)x=ee(x),T--;for(;0<M-T;)g=ee(g),M--;for(;T--;){if(x===g||g!==null&&x===g.alternate){ee=x;break t}x=ee(x),g=ee(g)}ee=null}else ee=null;O!==null&&fd(D,A,O,ee,!1),Q!==null&&Ue!==null&&fd(D,Ue,Q,ee,!0)}}e:{if(A=_?fa(_):window,O=A.nodeName&&A.nodeName.toLowerCase(),O==="select"||O==="input"&&A.type==="file")var Ee=No;else if(_o(A))if(Oo)Ee=by;else{Ee=gy;var J=yy}else O=A.nodeName,!O||O.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?_&&ar(_.elementType)&&(Ee=No):Ee=vy;if(Ee&&(Ee=Ee(e,_))){Ao(D,Ee,n,z);break e}J&&J(e,A,_),e==="focusout"&&_&&A.type==="number"&&_.memoizedProps.value!=null&&ir(A,"number",A.value)}switch(J=_?fa(_):window,e){case"focusin":(_o(J)||J.contentEditable==="true")&&(Ni=J,vr=_,Sa=null);break;case"focusout":Sa=vr=Ni=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,jo(D,n,z);break;case"selectionchange":if(xy)break;case"keydown":case"keyup":jo(D,n,z)}var oe;if(mr)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Ai?wo(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(So&&n.locale!=="ko"&&(Ai||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Ai&&(oe=po()):(En=z,cr="value"in En?En.value:En.textContent,Ai=!0)),J=ml(_,ve),0<J.length&&(ve=new vo(ve,e,null,n,z),D.push({event:ve,listeners:J}),oe?ve.data=oe:(oe=To(n),oe!==null&&(ve.data=oe)))),(oe=fy?hy(e,n):dy(e,n))&&(ve=ml(_,"onBeforeInput"),0<ve.length&&(J=new vo("onBeforeInput","beforeinput",null,n,z),D.push({event:J,listeners:ve}),J.data=oe)),ag(D,e,_,n,z)}cd(D,t)})}function Qa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",a=[];e!==null;){var l=e,c=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||c===null||(l=ha(e,n),l!=null&&a.unshift(Qa(e,l,c)),l=ha(e,t),l!=null&&a.push(Qa(e,l,c))),e.tag===3)return a;e=e.return}return[]}function ug(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fd(e,t,n,a,l){for(var c=t._reactName,f=[];n!==null&&n!==a;){var d=n,y=d.alternate,_=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||_===null||(y=_,l?(_=ha(n,c),_!=null&&f.unshift(Qa(n,_,y))):l||(_=ha(n,c),_!=null&&f.push(Qa(n,_,y)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var cg=/\r\n?/g,og=/\u0000|\uFFFD/g;function hd(e){return(typeof e=="string"?e:""+e).replace(cg,`
|
|
9
|
+
`).replace(og,"")}function dd(e,t){return t=hd(t),hd(e)===t}function ze(e,t,n,a,l,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||wi(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&wi(e,""+a);break;case"className":vs(e,"class",a);break;case"tabIndex":vs(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":vs(e,n,a);break;case"style":fo(e,a,c);break;case"data":if(t!=="object"){vs(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ss(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",l.name,l,null),ze(e,t,"formEncType",l.formEncType,l,null),ze(e,t,"formMethod",l.formMethod,l,null),ze(e,t,"formTarget",l.formTarget,l,null)):(ze(e,t,"encType",l.encType,l,null),ze(e,t,"method",l.method,l,null),ze(e,t,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ss(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=en);break;case"onScroll":a!=null&&ye("scroll",e);break;case"onScrollEnd":a!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(u(60));e.innerHTML=n}}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}n=Ss(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ye("beforetoggle",e),ye("toggle",e),gs(e,"popover",a);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":gs(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=qp.get(n)||n,gs(e,n,a))}}function Vu(e,t,n,a,l,c){switch(n){case"style":fo(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?wi(e,a):(typeof a=="number"||typeof a=="bigint")&&wi(e,""+a);break;case"onScroll":a!=null&&ye("scroll",e);break;case"onScrollEnd":a!=null&&ye("scrollend",e);break;case"onClick":a!=null&&(e.onclick=en);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!no.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),t=n.slice(2,l?n.length-7:void 0),c=e[ct]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,l),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,l);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):gs(e,n,a)}}}function it(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var a=!1,l=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:ze(e,t,c,f,n,null)}}l&&ze(e,t,"srcSet",n.srcSet,n,null),a&&ze(e,t,"src",n.src,n,null);return;case"input":ye("invalid",e);var d=c=f=l=null,y=null,_=null;for(a in n)if(n.hasOwnProperty(a)){var z=n[a];if(z!=null)switch(a){case"name":l=z;break;case"type":f=z;break;case"checked":y=z;break;case"defaultChecked":_=z;break;case"value":c=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(137,t));break;default:ze(e,t,a,z,n,null)}}ro(e,c,d,y,_,f,l,!1);return;case"select":ye("invalid",e),a=f=c=null;for(l in n)if(n.hasOwnProperty(l)&&(d=n[l],d!=null))switch(l){case"value":c=d;break;case"defaultValue":f=d;break;case"multiple":a=d;default:ze(e,t,l,d,n,null)}t=c,n=f,e.multiple=!!a,t!=null?Ei(e,!!a,t,!1):n!=null&&Ei(e,!!a,n,!0);return;case"textarea":ye("invalid",e),c=l=a=null;for(f in n)if(n.hasOwnProperty(f)&&(d=n[f],d!=null))switch(f){case"value":a=d;break;case"defaultValue":l=d;break;case"children":c=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(u(91));break;default:ze(e,t,f,d,n,null)}co(e,a,l,c);return;case"option":for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null)&&(y==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":ze(e,t,y,a,n,null));return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(a=0;a<Va.length;a++)ye(Va[a],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("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(_ in n)if(n.hasOwnProperty(_)&&(a=n[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:ze(e,t,_,a,n,null)}return;default:if(ar(t)){for(z in n)n.hasOwnProperty(z)&&(a=n[z],a!==void 0&&Vu(e,t,z,a,n,void 0));return}}for(d in n)n.hasOwnProperty(d)&&(a=n[d],a!=null&&ze(e,t,d,a,n,null))}function fg(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,c=null,f=null,d=null,y=null,_=null,z=null;for(O in n){var D=n[O];if(n.hasOwnProperty(O)&&D!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":y=D;default:a.hasOwnProperty(O)||ze(e,t,O,null,a,D)}}for(var A in a){var O=a[A];if(D=n[A],a.hasOwnProperty(A)&&(O!=null||D!=null))switch(A){case"type":c=O;break;case"name":l=O;break;case"checked":_=O;break;case"defaultChecked":z=O;break;case"value":f=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,t));break;default:O!==D&&ze(e,t,A,O,a,D)}}nr(e,f,d,y,_,z,c,l);return;case"select":O=f=d=A=null;for(c in n)if(y=n[c],n.hasOwnProperty(c)&&y!=null)switch(c){case"value":break;case"multiple":O=y;default:a.hasOwnProperty(c)||ze(e,t,c,null,a,y)}for(l in a)if(c=a[l],y=n[l],a.hasOwnProperty(l)&&(c!=null||y!=null))switch(l){case"value":A=c;break;case"defaultValue":d=c;break;case"multiple":f=c;default:c!==y&&ze(e,t,l,c,a,y)}t=d,n=f,a=O,A!=null?Ei(e,!!n,A,!1):!!a!=!!n&&(t!=null?Ei(e,!!n,t,!0):Ei(e,!!n,n?[]:"",!1));return;case"textarea":O=A=null;for(d in n)if(l=n[d],n.hasOwnProperty(d)&&l!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ze(e,t,d,null,a,l)}for(f in a)if(l=a[f],c=n[f],a.hasOwnProperty(f)&&(l!=null||c!=null))switch(f){case"value":A=l;break;case"defaultValue":O=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(u(91));break;default:l!==c&&ze(e,t,f,l,a,c)}uo(e,A,O);return;case"option":for(var Q in n)A=n[Q],n.hasOwnProperty(Q)&&A!=null&&!a.hasOwnProperty(Q)&&(Q==="selected"?e.selected=!1:ze(e,t,Q,null,a,A));for(y in a)A=a[y],O=n[y],a.hasOwnProperty(y)&&A!==O&&(A!=null||O!=null)&&(y==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":ze(e,t,y,A,a,O));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 ee in n)A=n[ee],n.hasOwnProperty(ee)&&A!=null&&!a.hasOwnProperty(ee)&&ze(e,t,ee,null,a,A);for(_ in a)if(A=a[_],O=n[_],a.hasOwnProperty(_)&&A!==O&&(A!=null||O!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(u(137,t));break;default:ze(e,t,_,A,a,O)}return;default:if(ar(t)){for(var Ue in n)A=n[Ue],n.hasOwnProperty(Ue)&&A!==void 0&&!a.hasOwnProperty(Ue)&&Vu(e,t,Ue,void 0,a,A);for(z in a)A=a[z],O=n[z],!a.hasOwnProperty(z)||A===O||A===void 0&&O===void 0||Vu(e,t,z,A,a,O);return}}for(var x in n)A=n[x],n.hasOwnProperty(x)&&A!=null&&!a.hasOwnProperty(x)&&ze(e,t,x,null,a,A);for(D in a)A=a[D],O=n[D],!a.hasOwnProperty(D)||A===O||A==null&&O==null||ze(e,t,D,A,a,O)}function md(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],c=l.transferSize,f=l.initiatorType,d=l.duration;if(c&&d&&md(f)){for(f=0,d=l.responseEnd,a+=1;a<n.length;a++){var y=n[a],_=y.startTime;if(_>d)break;var z=y.transferSize,D=y.initiatorType;z&&md(D)&&(y=y.responseEnd,f+=z*(y<d?1:(d-_)/(y-_)))}if(--a,t+=8*(c+f)/(l.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 Qu=null,Ku=null;function pl(e){return e.nodeType===9?e:e.ownerDocument}function pd(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 yd(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 $u(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 Zu=null;function dg(){var e=window.event;return e&&e.type==="popstate"?e===Zu?!1:(Zu=e,!0):(Zu=null,!1)}var gd=typeof setTimeout=="function"?setTimeout:void 0,mg=typeof clearTimeout=="function"?clearTimeout:void 0,vd=typeof Promise=="function"?Promise:void 0,pg=typeof queueMicrotask=="function"?queueMicrotask:typeof vd<"u"?function(e){return vd.resolve(null).then(e).catch(yg)}:gd;function yg(e){setTimeout(function(){throw e})}function Ln(e){return e==="head"}function bd(e,t){var n=t,a=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(l),ea(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ka(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ka(n);for(var c=n.firstChild;c;){var f=c.nextSibling,d=c.nodeName;c[oa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&Ka(e.ownerDocument.body);n=l}while(n);ea(t)}function Sd(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Ju(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ju(n),er(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function gg(e,t,n,a){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[oa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Dt(e.nextSibling),e===null)break}return null}function vg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Dt(e.nextSibling),e===null))return null;return e}function xd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Dt(e.nextSibling),e===null))return null;return e}function Fu(e){return e.data==="$?"||e.data==="$~"}function Wu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bg(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Dt(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 Iu=null;function Ed(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Dt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function wd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Td(e,t,n){switch(t=pl(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Ka(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);er(e)}var jt=new Map,_d=new Set;function yl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var gn=L.d;L.d={f:Sg,r:xg,D:Eg,C:wg,L:Tg,m:_g,X:Ng,S:Ag,M:Og};function Sg(){var e=gn.f(),t=rl();return e||t}function xg(e){var t=bi(e);t!==null&&t.tag===5&&t.type==="form"?Xf(t):gn.r(e)}var Wi=typeof document>"u"?null:document;function Ad(e,t,n){var a=Wi;if(a&&typeof t=="string"&&t){var l=Ot(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),_d.has(l)||(_d.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),it(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Eg(e){gn.D(e),Ad("dns-prefetch",e,null)}function wg(e,t){gn.C(e,t),Ad("preconnect",e,t)}function Tg(e,t,n){gn.L(e,t,n);var a=Wi;if(a&&e&&t){var l='link[rel="preload"][as="'+Ot(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Ot(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Ot(n.imageSizes)+'"]')):l+='[href="'+Ot(e)+'"]';var c=l;switch(t){case"style":c=Ii(e);break;case"script":c=Pi(e)}jt.has(c)||(e=E({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),jt.set(c,e),a.querySelector(l)!==null||t==="style"&&a.querySelector($a(c))||t==="script"&&a.querySelector(Za(c))||(t=a.createElement("link"),it(t,"link",e),Fe(t),a.head.appendChild(t)))}}function _g(e,t){gn.m(e,t);var n=Wi;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ot(a)+'"][href="'+Ot(e)+'"]',c=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Pi(e)}if(!jt.has(c)&&(e=E({rel:"modulepreload",href:e},t),jt.set(c,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Za(c)))return}a=n.createElement("link"),it(a,"link",e),Fe(a),n.head.appendChild(a)}}}function Ag(e,t,n){gn.S(e,t,n);var a=Wi;if(a&&e){var l=Si(a).hoistableStyles,c=Ii(e);t=t||"default";var f=l.get(c);if(!f){var d={loading:0,preload:null};if(f=a.querySelector($a(c)))d.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},n),(n=jt.get(c))&&Pu(e,n);var y=f=a.createElement("link");Fe(y),it(y,"link",e),y._p=new Promise(function(_,z){y.onload=_,y.onerror=z}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,gl(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:d},l.set(c,f)}}}function Ng(e,t){gn.X(e,t);var n=Wi;if(n&&e){var a=Si(n).hoistableScripts,l=Pi(e),c=a.get(l);c||(c=n.querySelector(Za(l)),c||(e=E({src:e,async:!0},t),(t=jt.get(l))&&ec(e,t),c=n.createElement("script"),Fe(c),it(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(l,c))}}function Og(e,t){gn.M(e,t);var n=Wi;if(n&&e){var a=Si(n).hoistableScripts,l=Pi(e),c=a.get(l);c||(c=n.querySelector(Za(l)),c||(e=E({src:e,async:!0,type:"module"},t),(t=jt.get(l))&&ec(e,t),c=n.createElement("script"),Fe(c),it(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(l,c))}}function Nd(e,t,n,a){var l=(l=fe.current)?yl(l):null;if(!l)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ii(n.href),n=Si(l).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ii(n.href);var c=Si(l).hoistableStyles,f=c.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=l.querySelector($a(e)))&&!c._p&&(f.instance=c,f.state.loading=5),jt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},jt.set(e,n),c||kg(l,e,n,f.state))),t&&a===null)throw Error(u(528,""));return f}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pi(n),n=Si(l).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ii(e){return'href="'+Ot(e)+'"'}function $a(e){return'link[rel="stylesheet"]['+e+"]"}function Od(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function kg(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),it(t,"link",n),Fe(t),e.head.appendChild(t))}function Pi(e){return'[src="'+Ot(e)+'"]'}function Za(e){return"script[async]"+e}function kd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ot(n.href)+'"]');if(a)return t.instance=a,Fe(a),a;var l=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Fe(a),it(a,"style",l),gl(a,n.precedence,e),t.instance=a;case"stylesheet":l=Ii(n.href);var c=e.querySelector($a(l));if(c)return t.state.loading|=4,t.instance=c,Fe(c),c;a=Od(n),(l=jt.get(l))&&Pu(a,l),c=(e.ownerDocument||e).createElement("link"),Fe(c);var f=c;return f._p=new Promise(function(d,y){f.onload=d,f.onerror=y}),it(c,"link",a),t.state.loading|=4,gl(c,n.precedence,e),t.instance=c;case"script":return c=Pi(n.src),(l=e.querySelector(Za(c)))?(t.instance=l,Fe(l),l):(a=n,(l=jt.get(c))&&(a=E({},n),ec(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),Fe(l),it(l,"link",a),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,gl(a,n.precedence,e));return t.instance}function gl(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,c=l,f=0;f<a.length;f++){var d=a[f];if(d.dataset.precedence===t)c=d;else if(c!==l)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Pu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vl=null;function zd(e,t,n){if(vl===null){var a=new Map,l=vl=new Map;l.set(n,a)}else l=vl,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var c=n[l];if(!(c[oa]||c[Pe]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var d=a.get(f);d?d.push(c):a.set(f,[c])}}return a}function Ud(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function zg(e,t,n){if(n===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 Md(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ug(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Ii(a.href),c=t.querySelector($a(l));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Fe(c);return}c=t.ownerDocument||t,a=Od(a),(l=jt.get(l))&&Pu(a,l),c=c.createElement("link"),Fe(c);var f=c;f._p=new Promise(function(d,y){f.onload=d,f.onerror=y}),it(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=bl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var tc=0;function Mg(e,t){return e.stylesheets&&e.count===0&&xl(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&xl(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&tc===0&&(tc=62500*hg());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xl(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>tc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function bl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Sl=null;function xl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sl=new Map,t.forEach(Rg,e),Sl=null,bl.call(e))}function Rg(e,t){if(!(t.state.loading&4)){var n=Sl.get(e);if(n)var a=n.get(null);else{n=new Map,Sl.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<l.length;c++){var f=l[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}l=t.instance,f=l.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,l),n.set(f,l),this.count++,a=bl.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),c?c.parentNode.insertBefore(l,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Ja={$$typeof:ue,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Cg(e,t,n,a,l,c,f,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=Fl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fl(0),this.hiddenUpdates=Fl(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Rd(e,t,n,a,l,c,f,d,y,_,z,D){return e=new Cg(e,t,n,f,y,_,z,D,d),t=1,c===!0&&(t|=24),c=St(3,null,null,t),e.current=c,c.stateNode=e,t=Cr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},qr(c),e}function Cd(e){return e?(e=zi,e):zi}function Dd(e,t,n,a,l,c){l=Cd(l),a.context===null?a.context=l:a.pendingContext=l,a=On(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=kn(e,a,t),n!==null&&(pt(n,e,t),Na(n,e,t))}function jd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function nc(e,t){jd(e,t),(e=e.alternate)&&jd(e,t)}function Bd(e){if(e.tag===13||e.tag===31){var t=ti(e,67108864);t!==null&&pt(t,e,67108864),nc(e,67108864)}}function qd(e){if(e.tag===13||e.tag===31){var t=_t();t=Wl(t);var n=ti(e,t);n!==null&&pt(n,e,t),nc(e,t)}}var El=!0;function Dg(e,t,n,a){var l=N.T;N.T=null;var c=L.p;try{L.p=2,ic(e,t,n,a)}finally{L.p=c,N.T=l}}function jg(e,t,n,a){var l=N.T;N.T=null;var c=L.p;try{L.p=8,ic(e,t,n,a)}finally{L.p=c,N.T=l}}function ic(e,t,n,a){if(El){var l=ac(a);if(l===null)Gu(e,t,a,wl,n),Hd(e,a);else if(qg(l,e,t,n,a))a.stopPropagation();else if(Hd(e,a),t&4&&-1<Bg.indexOf(e)){for(;l!==null;){var c=bi(l);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Fn(c.pendingLanes);if(f!==0){var d=c;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var y=1<<31-vt(f);d.entanglements[1]|=y,f&=~y}Zt(c),(_e&6)===0&&(sl=yt()+500,Ga(0))}}break;case 31:case 13:d=ti(c,2),d!==null&&pt(d,c,2),rl(),nc(c,2)}if(c=ac(a),c===null&&Gu(e,t,a,wl,n),c===l)break;l=c}l!==null&&a.stopPropagation()}else Gu(e,t,a,null,n)}}function ac(e){return e=lr(e),sc(e)}var wl=null;function sc(e){if(wl=null,e=vi(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wl=e,null}function Ld(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ep()){case Qc:return 2;case Kc:return 8;case hs:case wp:return 32;case $c:return 268435456;default:return 32}default:return 32}}var lc=!1,Hn=null,Yn=null,Xn=null,Fa=new Map,Wa=new Map,Gn=[],Bg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Hd(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":Fa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wa.delete(t.pointerId)}}function Ia(e,t,n,a,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[l]},t!==null&&(t=bi(t),t!==null&&Bd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function qg(e,t,n,a,l){switch(t){case"focusin":return Hn=Ia(Hn,e,t,n,a,l),!0;case"dragenter":return Yn=Ia(Yn,e,t,n,a,l),!0;case"mouseover":return Xn=Ia(Xn,e,t,n,a,l),!0;case"pointerover":var c=l.pointerId;return Fa.set(c,Ia(Fa.get(c)||null,e,t,n,a,l)),!0;case"gotpointercapture":return c=l.pointerId,Wa.set(c,Ia(Wa.get(c)||null,e,t,n,a,l)),!0}return!1}function Yd(e){var t=vi(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Pc(e.priority,function(){qd(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Pc(e.priority,function(){qd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ac(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);sr=a,n.target.dispatchEvent(a),sr=null}else return t=bi(n),t!==null&&Bd(t),e.blockedOn=n,!1;t.shift()}return!0}function Xd(e,t,n){Tl(e)&&n.delete(t)}function Lg(){lc=!1,Hn!==null&&Tl(Hn)&&(Hn=null),Yn!==null&&Tl(Yn)&&(Yn=null),Xn!==null&&Tl(Xn)&&(Xn=null),Fa.forEach(Xd),Wa.forEach(Xd)}function _l(e,t){e.blockedOn===t&&(e.blockedOn=null,lc||(lc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Lg)))}var Al=null;function Gd(e){Al!==e&&(Al=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Al===e&&(Al=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],l=e[t+2];if(typeof a!="function"){if(sc(a||n)===null)continue;break}var c=bi(n);c!==null&&(e.splice(t,3),t-=3,au(c,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function ea(e){function t(y){return _l(y,e)}Hn!==null&&_l(Hn,e),Yn!==null&&_l(Yn,e),Xn!==null&&_l(Xn,e),Fa.forEach(t),Wa.forEach(t);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)Yd(n),n.blockedOn===null&&Gn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],c=n[a+1],f=l[ct]||null;if(typeof c=="function")f||Gd(n);else if(f){var d=null;if(c&&c.hasAttribute("formAction")){if(l=c,f=c[ct]||null)d=f.formAction;else if(sc(l)!==null)continue}else d=f.action;typeof d=="function"?n[a+1]=d:(n.splice(a,3),a-=3),Gd(n)}}}function Vd(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return l=f})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function rc(e){this._internalRoot=e}Nl.prototype.render=rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=_t();Dd(n,a,e,t,null,null)},Nl.prototype.unmount=rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dd(e.current,2,null,e,null,null),rl(),t[gi]=null}};function Nl(e){this._internalRoot=e}Nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ic();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gn.length&&t!==0&&t<Gn[n].priority;n++);Gn.splice(n,0,e),n===0&&Yd(e)}};var Qd=i.version;if(Qd!=="19.2.8")throw Error(u(527,Qd,"19.2.8"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=S(t),e=e!==null?R(e):null,e=e===null?null:e.stateNode,e};var Hg={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ol.isDisabled&&Ol.supportsFiber)try{ra=Ol.inject(Hg),gt=Ol}catch{}}return ns.createRoot=function(e,t){if(!o(e))throw Error(u(299));var n=!1,a="",l=If,c=Pf,f=eh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Rd(e,1,!1,null,null,n,a,null,l,c,f,Vd),e[gi]=t.current,Xu(e),new rc(t)},ns.hydrateRoot=function(e,t,n){if(!o(e))throw Error(u(299));var a=!1,l="",c=If,f=Pf,d=eh,y=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError),n.formState!==void 0&&(y=n.formState)),t=Rd(e,1,!0,t,n??null,a,l,y,c,f,d,Vd),t.context=Cd(null),n=t.current,a=_t(),a=Wl(a),l=On(a),l.callback=null,kn(n,l,a),n=a,t.current.lanes=n,ca(t,n),Zt(t),e[gi]=t.current,Xu(e),new Nl(t)},ns.version="19.2.8",ns}var cm;function i0(){if(cm)return dc.exports;cm=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),dc.exports=n0(),dc.exports}var a0=i0(),zl={exports:{}},om;function s0(){if(om)return zl.exports;om=1;var r=typeof Reflect=="object"?Reflect:null,i=r&&typeof r.apply=="function"?r.apply:function(U,B,j){return Function.prototype.apply.call(U,B,j)},s;r&&typeof r.ownKeys=="function"?s=r.ownKeys:Object.getOwnPropertySymbols?s=function(U){return Object.getOwnPropertyNames(U).concat(Object.getOwnPropertySymbols(U))}:s=function(U){return Object.getOwnPropertyNames(U)};function u(k){console&&console.warn&&console.warn(k)}var o=Number.isNaN||function(U){return U!==U};function h(){h.init.call(this)}zl.exports=h,zl.exports.once=ae,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._eventsCount=0,h.prototype._maxListeners=void 0;var m=10;function p(k){if(typeof k!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof k)}Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(k){if(typeof k!="number"||k<0||o(k))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+k+".");m=k}}),h.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},h.prototype.setMaxListeners=function(U){if(typeof U!="number"||U<0||o(U))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+U+".");return this._maxListeners=U,this};function b(k){return k._maxListeners===void 0?h.defaultMaxListeners:k._maxListeners}h.prototype.getMaxListeners=function(){return b(this)},h.prototype.emit=function(U){for(var B=[],j=1;j<arguments.length;j++)B.push(arguments[j]);var V=U==="error",ie=this._events;if(ie!==void 0)V=V&&ie.error===void 0;else if(!V)return!1;if(V){var te;if(B.length>0&&(te=B[0]),te instanceof Error)throw te;var Ae=new Error("Unhandled error."+(te?" ("+te.message+")":""));throw Ae.context=te,Ae}var Re=ie[U];if(Re===void 0)return!1;if(typeof Re=="function")i(Re,this,B);else for(var P=Re.length,de=$(Re,P),j=0;j<P;++j)i(de[j],this,B);return!0};function S(k,U,B,j){var V,ie,te;if(p(B),ie=k._events,ie===void 0?(ie=k._events=Object.create(null),k._eventsCount=0):(ie.newListener!==void 0&&(k.emit("newListener",U,B.listener?B.listener:B),ie=k._events),te=ie[U]),te===void 0)te=ie[U]=B,++k._eventsCount;else if(typeof te=="function"?te=ie[U]=j?[B,te]:[te,B]:j?te.unshift(B):te.push(B),V=b(k),V>0&&te.length>V&&!te.warned){te.warned=!0;var Ae=new Error("Possible EventEmitter memory leak detected. "+te.length+" "+String(U)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ae.name="MaxListenersExceededWarning",Ae.emitter=k,Ae.type=U,Ae.count=te.length,u(Ae)}return k}h.prototype.addListener=function(U,B){return S(this,U,B,!1)},h.prototype.on=h.prototype.addListener,h.prototype.prependListener=function(U,B){return S(this,U,B,!0)};function R(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function E(k,U,B){var j={fired:!1,wrapFn:void 0,target:k,type:U,listener:B},V=R.bind(j);return V.listener=B,j.wrapFn=V,V}h.prototype.once=function(U,B){return p(B),this.on(U,E(this,U,B)),this},h.prototype.prependOnceListener=function(U,B){return p(B),this.prependListener(U,E(this,U,B)),this},h.prototype.removeListener=function(U,B){var j,V,ie,te,Ae;if(p(B),V=this._events,V===void 0)return this;if(j=V[U],j===void 0)return this;if(j===B||j.listener===B)--this._eventsCount===0?this._events=Object.create(null):(delete V[U],V.removeListener&&this.emit("removeListener",U,j.listener||B));else if(typeof j!="function"){for(ie=-1,te=j.length-1;te>=0;te--)if(j[te]===B||j[te].listener===B){Ae=j[te].listener,ie=te;break}if(ie<0)return this;ie===0?j.shift():X(j,ie),j.length===1&&(V[U]=j[0]),V.removeListener!==void 0&&this.emit("removeListener",U,Ae||B)}return this},h.prototype.off=h.prototype.removeListener,h.prototype.removeAllListeners=function(U){var B,j,V;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[U]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[U]),this;if(arguments.length===0){var ie=Object.keys(j),te;for(V=0;V<ie.length;++V)te=ie[V],te!=="removeListener"&&this.removeAllListeners(te);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(B=j[U],typeof B=="function")this.removeListener(U,B);else if(B!==void 0)for(V=B.length-1;V>=0;V--)this.removeListener(U,B[V]);return this};function H(k,U,B){var j=k._events;if(j===void 0)return[];var V=j[U];return V===void 0?[]:typeof V=="function"?B?[V.listener||V]:[V]:B?re(V):$(V,V.length)}h.prototype.listeners=function(U){return H(this,U,!0)},h.prototype.rawListeners=function(U){return H(this,U,!1)},h.listenerCount=function(k,U){return typeof k.listenerCount=="function"?k.listenerCount(U):I.call(k,U)},h.prototype.listenerCount=I;function I(k){var U=this._events;if(U!==void 0){var B=U[k];if(typeof B=="function")return 1;if(B!==void 0)return B.length}return 0}h.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function $(k,U){for(var B=new Array(U),j=0;j<U;++j)B[j]=k[j];return B}function X(k,U){for(;U+1<k.length;U++)k[U]=k[U+1];k.pop()}function re(k){for(var U=new Array(k.length),B=0;B<U.length;++B)U[B]=k[B].listener||k[B];return U}function ae(k,U){return new Promise(function(B,j){function V(te){k.removeListener(U,ie),j(te)}function ie(){typeof k.removeListener=="function"&&k.removeListener("error",V),B([].slice.call(arguments))}ue(k,U,ie,{once:!0}),U!=="error"&&he(k,V,{once:!0})})}function he(k,U,B){typeof k.on=="function"&&ue(k,"error",U,B)}function ue(k,U,B,j){if(typeof k.on=="function")j.once?k.once(U,B):k.on(U,B);else if(typeof k.addEventListener=="function")k.addEventListener(U,function V(ie){j.once&&k.removeEventListener(U,V),B(ie)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof k)}return zl.exports}var Xl=s0();const wc=Zg(Xl),l0=Object.prototype.toString,r0="[object Uint8Array]",u0="[object ArrayBuffer]";function Xm(r,i,s){return r?r.constructor===i?!0:l0.call(r)===s:!1}function c0(r){return Xm(r,Uint8Array,r0)}function o0(r){return Xm(r,ArrayBuffer,u0)}function f0(r){return c0(r)||o0(r)}function h0(r){if(!f0(r))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof r}\``)}const fm={utf8:new globalThis.TextDecoder("utf8")};function Gm(r,i="utf8"){return h0(r),fm[i]??=new globalThis.TextDecoder(i),fm[i].decode(r)}function d0(r){if(typeof r!="string")throw new TypeError(`Expected \`string\`, got \`${typeof r}\``)}const m0=new globalThis.TextEncoder;function Vm(r){return d0(r),m0.encode(r)}Array.from({length:256},(r,i)=>i.toString(16).padStart(2,"0"));const at=[];for(let r=0;r<256;++r)at.push((r+256).toString(16).slice(1));function p0(r,i=0){return(at[r[i+0]]+at[r[i+1]]+at[r[i+2]]+at[r[i+3]]+"-"+at[r[i+4]]+at[r[i+5]]+"-"+at[r[i+6]]+at[r[i+7]]+"-"+at[r[i+8]]+at[r[i+9]]+"-"+at[r[i+10]]+at[r[i+11]]+at[r[i+12]]+at[r[i+13]]+at[r[i+14]]+at[r[i+15]]).toLowerCase()}const y0=new Uint8Array(16);function g0(){return crypto.getRandomValues(y0)}function aa(r,i,s){return crypto.randomUUID?crypto.randomUUID():v0(r)}function v0(r,i,s){r=r||{};const u=r.random??r.rng?.()??g0();if(u.length<16)throw new Error("Random bytes length must be >= 16");return u[6]=u[6]&15|64,u[8]=u[8]&63|128,p0(u)}const Tc=1024,hm="$",mi={openBrace:123,closeBrace:125,quote:34,backslash:92,delimiter:36},dm=(r,i)=>{if(i===0||r(0)!==mi.openBrace)return-1;const s=Math.min(i,Tc);let u=0,o=!1,h=!1;for(let m=0;m<s;m++){const p=r(m);if(o){h?h=!1:p===mi.backslash?h=!0:p===mi.quote&&(o=!1);continue}if(p===mi.quote)o=!0;else if(p===mi.openBrace)u++;else if(p===mi.closeBrace&&--u===0){const b=m+1;return b<s&&r(b)===mi.delimiter?b:-1}}return-1},Xe={connected:"connected",disconnected:"disconnected",peerOnline:"peerOnline",peerGone:"peerGone",peerDisplaced:"peerDisplaced",rejected:"rejected",unroutable:"unroutable",transportError:"transportError",relayed:"relayed"};class Qm{maxPeers;peers=new Map;constructor(i=1e4){this.maxPeers=i}set(i,s){for(this.peers.delete(i),this.peers.set(i,s);this.peers.size>this.maxPeers;){const u=this.peers.keys().next();if(u.done)break;this.peers.delete(u.value)}}get(i){return this.peers.get(i)}delete(i){return this.peers.delete(i)}clear(){this.peers.clear()}get size(){return this.peers.size}namesFor(i){const s=[];for(const[u,o]of this.peers)o===i&&s.push(u);return s}names(){return[...this.peers.keys()]}}class Vl extends Xl.EventEmitter{name;destinations=[];peerRegistry=new Qm;readyFlag=!1;seq=0;constructor(i,s){super(),this.name=i,i||(this.name=aa()),s&&s.forEach(u=>{u.pipe(this)})}async ready(i=3e4){const s=Date.now()+i;for(;!this.readyFlag;){if(Date.now()>s)return!1;await new Promise(u=>setTimeout(u,10))}return!0}async open(){}async close(){}buildHeader(i,s,u){return{source:i,target:s,time:Date.now(),seq:this.seq++,...u}}prependHeader(i,s,u){return this.frameMessage(this.buildHeader(i,s),u)}frameMessage(i,s){const u=JSON.stringify(i)+hm,o=Vm(u);if(o.length>Tc)throw new Error(`message header is ${o.length} bytes, over the ${Tc} byte limit (source '${i.source}', target '${i.target}') - shorten the peer names`);if(typeof s=="string")return u+s;const h=new Uint8Array(o.length+s.length);return h.set(o,0),h.set(s,o.length),h}extractHeader(i){const s=typeof i=="string",u=dm(s?b=>i.charCodeAt(b):b=>i[b],i.length);if(u<0)return[void 0,"","no msgrpc header"];const o=s?i.substring(0,u):Gm(i.subarray(0,u));let h;try{h=JSON.parse(o)}catch(b){return[void 0,"",`unparsable header: ${String(b)}`]}if(!h||typeof h!="object")return[void 0,"","header is not an object"];if(typeof h.target!="string"||!h.target)return[void 0,"","header names no target"];if(typeof h.source!="string"||!h.source)return[void 0,"","header names no source"];const m=u+hm.length,p=s?i.substring(m):i.slice(m);return this.setKnownSource(h.source),[h,p]}getName(){return this.name}targetExists(i,s){let u;this.name===i&&(u=this);const o=this.peerRegistry.get(i);return o&&(u=o),u||this.destinations.map(h=>{!u&&!h.target.isTransport()&&h.target.targetExists(i,(s||0)+1)&&(u=h.target)}),u}pipe(i){const s=aa();return this.destinations.push({id:s,target:i}),()=>{this.destinations=this.destinations.filter(u=>u.id!==s)}}async receive(i,s,u){}async receivePayload(i,s,u){}async send(i,s,u){await Promise.all(this.destinations.map(async o=>await o.target.receive(i,s,u)))}setKnownSource(i){this.peerRegistry.set(i,this)}usePeerRegistry(i){return this.peerRegistry=i,this}getIdentity(i){}async sendPayload(i,s,u,o){}isTransport(){return!1}}var ut;(function(r){r.RequestMessage="REQUEST",r.ResponseMessage="RESPONSE",r.ErrorMessage="ERROR",r.EventMessage="EVENT",r.UnknownMessage="UNKNOWN"})(ut||(ut={}));class b0{type;payload}const S0=(r,i,s,u)=>{const o=new b0;return o.type=u||ut.UnknownMessage,o.payload=r,o};class Km extends Vl{name;constructor(i,s){super(i),this.name=i,i||(this.name=aa()),s&&s.forEach(u=>{u.pipe(this)})}pipe(i){const s=aa();return this.destinations.push({id:s,target:i}),()=>{this.destinations=this.destinations.filter(u=>u.id!==s)}}receive(i,s,u){return Promise.resolve()}async send(i,s,u){await Promise.all(this.destinations.map(async o=>await o.target.receive(i,s,u)))}async sendPayload(i,s,u,o){const h=S0(i,this.name,o,s);await this.send(h,u,o)}}const x0=r=>r==="on"||r==="addListener"||r==="prependListener"||r==="once"||r==="prependOnceListener"||r==="off"||r==="removeListener"||r==="emit"||r==="removeListener"||r==="removeAllListeners"||r==="setMaxListeners"||r==="getMaxListeners";var st;(function(r){r.CallInstanceMethod="POST",r.success="SUCCESS",r.error="ERROR",r.event="EVENT"})(st||(st={}));const Ul={query:0,"idempotent-command":1,"non-repeatable-command":2},gc=r=>{if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r&&typeof r=="object"){const i=r;if(typeof i.message=="string")return{name:typeof i.name=="string"?i.name:"Error",message:i.message}}return{name:"Error",message:String(r)}},E0=r=>"code"in r,_c=new WeakMap,Ac=new WeakMap,w0=(r,i,s)=>{let u=_c.get(r);if(u||_c.set(r,u=new Set),u.add(i),!s)return;let o=Ac.get(r);o||Ac.set(r,o=new Map),o.set(i,s)},mm=(r,i)=>{if(r.static)throw new Error("@rpc: static methods cannot be exposed");if(r.private)throw new Error("@rpc: private methods cannot be exposed");r.addInitializer(function(){w0(this.constructor,String(r.name),i.semantics)})};function Nc(r,i){if(typeof r=="function"&&i)return mm(i,{});const s=r;return(u,o)=>mm(o,s)}const $m=new WeakMap,Zm=(r,i={})=>(s,u)=>($m.set(s,{name:r,version:i.version,execution:i.execution}),s),T0=r=>{for(let i=r.constructor;i;i=Object.getPrototypeOf(i)){const s=$m.get(i);if(s)return s}},_0=r=>{const i=new Set;for(let s=r.constructor;s;s=Object.getPrototypeOf(s))for(const u of _c.get(s)??[])i.add(u);return i.size?i:void 0},A0=r=>{const i=new Map;for(let s=r.constructor;s;s=Object.getPrototypeOf(s))for(const[u,o]of Ac.get(s)??[])i.has(u)||i.set(u,o);return i},pm=32,Yt=r=>r===null?"null":Array.isArray(r)?"array":r instanceof Uint8Array?"bytes":r instanceof Date?"date":typeof r,us=r=>{switch(r.kind){case"literal":return JSON.stringify(r.value);case"array":return`${us(r.items)}[]`;case"tuple":return`[${r.items.map(us).join(", ")}]`;case"union":return r.options.map(us).join(" | ");case"ref":return r.name;case"object":return"object";case"record":return`{ [key: string]: ${us(r.values)} }`;default:return r.kind}},ym=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof Uint8Array)&&!(r instanceof Date),Qn=(r,i,s={},u="",o=0)=>{if(o>pm)return`${u||"value"}: nested deeper than ${pm} levels`;const h=u||"value";switch(i.kind){case"any":return;case"null":return r===null?void 0:`${h}: expected null, got ${Yt(r)}`;case"boolean":return typeof r=="boolean"?void 0:`${h}: expected boolean, got ${Yt(r)}`;case"number":return typeof r!="number"||Number.isNaN(r)?`${h}: expected number, got ${Yt(r)}`:i.integer&&!Number.isInteger(r)?`${h}: expected an integer, got ${r}`:i.min!==void 0&&r<i.min?`${h}: ${r} is below the minimum ${i.min}`:i.max!==void 0&&r>i.max?`${h}: ${r} is above the maximum ${i.max}`:void 0;case"string":return typeof r!="string"?`${h}: expected string, got ${Yt(r)}`:i.minLength!==void 0&&r.length<i.minLength?`${h}: shorter than ${i.minLength} characters`:i.maxLength!==void 0&&r.length>i.maxLength?`${h}: longer than ${i.maxLength} characters`:i.pattern!==void 0&&!new RegExp(i.pattern).test(r)?`${h}: does not match ${i.pattern}`:void 0;case"bytes":return r instanceof Uint8Array?i.maxBytes!==void 0&&r.length>i.maxBytes?`${h}: longer than ${i.maxBytes} bytes`:void 0:`${h}: expected bytes, got ${Yt(r)}`;case"date":return r instanceof Date&&!Number.isNaN(r.getTime())?void 0:`${h}: expected a date, got ${Yt(r)}`;case"literal":return r===i.value?void 0:`${h}: expected ${JSON.stringify(i.value)}`;case"array":{if(!Array.isArray(r))return`${h}: expected an array, got ${Yt(r)}`;if(i.maxItems!==void 0&&r.length>i.maxItems)return`${h}: more than ${i.maxItems} items`;for(let m=0;m<r.length;m++){const p=Qn(r[m],i.items,s,`${h}[${m}]`,o+1);if(p)return p}return}case"tuple":{if(!Array.isArray(r))return`${h}: expected a tuple, got ${Yt(r)}`;if(r.length!==i.items.length)return`${h}: expected ${i.items.length} elements, got ${r.length}`;for(let m=0;m<i.items.length;m++){const p=Qn(r[m],i.items[m],s,`${h}[${m}]`,o+1);if(p)return p}return}case"object":{if(!ym(r))return`${h}: expected an object, got ${Yt(r)}`;const m=r;for(const[p,b]of Object.entries(i.fields)){if(!(m[p]!==void 0)){if(b.optional)continue;return`${h}.${p}: missing`}const R=Qn(m[p],b.type,s,`${h}.${p}`,o+1);if(R)return R}if(!i.additional){const p=Object.keys(m).find(b=>!(b in i.fields));if(p!==void 0)return`${h}.${p}: not part of this type`}return}case"record":{if(!ym(r))return`${h}: expected an object, got ${Yt(r)}`;const m=Object.keys(r);if(i.maxEntries!==void 0&&m.length>i.maxEntries)return`${h}: more than ${i.maxEntries} entries`;const p=i.keyPattern===void 0?void 0:new RegExp(i.keyPattern);for(const b of m){if(p&&!p.test(b))return`${h}.${b}: key does not match ${i.keyPattern}`;const S=Qn(r[b],i.values,s,`${h}.${b}`,o+1);if(S)return S}return}case"union":{for(const m of i.options)if(!Qn(r,m,s,h,o+1))return;return`${h}: expected ${us(i)}, got ${Yt(r)}`}case"ref":{const m=s[i.name];return m?Qn(r,m,s,h,o+1):`${h}: unknown type '${i.name}'`}}return`${h}: unknown type kind '${i.kind}'`},N0=(r,i,s={})=>{const u=i.params.filter((o,h)=>!O0(i.params[h])).length;if(r.length<u)return`expected at least ${u} argument${u===1?"":"s"}, got ${r.length}`;if(r.length>i.params.length&&!i.rest)return`expected at most ${i.params.length} arguments, got ${r.length}`;for(let o=0;o<r.length;o++){const h=o<i.params.length?i.params[o]:i.rest,m=Qn(r[o],h,s,`argument ${o}`);if(m)return m}},O0=r=>r.kind==="any"||r.kind==="union"&&r.options.some(i=>i.kind==="literal"&&i.value===null),Oc=(r,i)=>r.kind==="ref"?Oc(i?.[r.name]??{kind:"any"},i):r,gm=(r,i)=>!(i.integer&&!r.integer||i.min!==void 0&&(r.min===void 0||r.min<i.min)||i.max!==void 0&&(r.max===void 0||r.max>i.max)),vn=(r,i,s={},u=0,o=new Set)=>{if(u>64)return!1;if(r.kind==="ref"&&i.kind==="ref"){const p=`${r.name} <: ${i.name}`;if(o.has(p))return!0;o.add(p)}const h=Oc(r,s),m=Oc(i,s);if(m.kind==="any")return!0;if(h.kind==="any")return!1;if(h.kind==="union")return h.options.every(p=>vn(p,m,s,u+1,o));if(m.kind==="union")return m.options.some(p=>vn(h,p,s,u+1,o));if(h.kind==="literal")return m.kind==="literal"?h.value===m.value:(h.value===null?"null":typeof h.value)!==m.kind?!1:m.kind==="number"&&typeof h.value=="number"?gm({min:h.value,max:h.value,integer:Number.isInteger(h.value)},m):!0;if(h.kind!==m.kind)return!1;switch(h.kind){case"null":case"boolean":case"date":return!0;case"number":return gm(h,m);case"string":{const p=m;return!(p.minLength!==void 0&&(h.minLength===void 0||h.minLength<p.minLength)||p.maxLength!==void 0&&(h.maxLength===void 0||h.maxLength>p.maxLength)||p.pattern!==void 0&&p.pattern!==h.pattern)}case"bytes":{const p=m;return p.maxBytes===void 0||h.maxBytes!==void 0&&h.maxBytes<=p.maxBytes}case"array":{const p=m;return p.maxItems!==void 0&&(h.maxItems===void 0||h.maxItems>p.maxItems)?!1:vn(h.items,p.items,s,u+1,o)}case"tuple":{const p=m;return h.items.length!==p.items.length?!1:h.items.every((b,S)=>vn(b,p.items[S],s,u+1,o))}case"record":{const p=m;return p.maxEntries!==void 0&&(h.maxEntries===void 0||h.maxEntries>p.maxEntries)||p.keyPattern!==void 0&&p.keyPattern!==h.keyPattern?!1:vn(h.values,p.values,s,u+1,o)}case"object":{const p=m;for(const[b,S]of Object.entries(p.fields)){const R=h.fields[b];if(!R){if(S.optional)continue;return!1}if(!S.optional&&R.optional||!vn(R.type,S.type,s,u+1,o))return!1}if(!p.additional){for(const b of Object.keys(h.fields))if(!(b in p.fields))return!1}return!0}default:return!1}},Ml=r=>r.params.filter(i=>!(i.kind==="any"||i.kind==="union"&&i.options.some(s=>s.kind==="literal"&&s.value===null))).length,k0=(r,i,s,u)=>{const o=[];!s.rest&&s.params.length<i.params.length&&o.push({where:r,reason:`takes at most ${s.params.length} arguments, but a caller may send ${i.params.length}`}),Ml(s)>Ml(i)&&o.push({where:r,reason:`requires ${Ml(s)} arguments, but a caller may send as few as ${Ml(i)}`});for(let p=0;p<i.params.length;p++){const b=p<s.params.length?s.params[p]:s.rest;b&&(vn(i.params[p],b,u)||o.push({where:`${r} argument ${p}`,reason:"narrowed, so a value the caller may send is no longer accepted"}))}i.returns&&s.returns&&!vn(s.returns,i.returns,u)&&o.push({where:`${r} return`,reason:"widened, so a value this contract may return is not one the caller expects"});const h=i.semantics,m=s.semantics;return h&&m&&Ul[m]>Ul[h]&&o.push({where:r,reason:`is now ${m} where the caller was told ${h}, so a retry the caller may already make is no longer safe`}),h&&!m&&Ul[h]<Ul["non-repeatable-command"]&&o.push({where:r,reason:`no longer declares that it is ${h}, so a caller relying on that promise has nothing to rely on`}),o},z0=(r,i,s={})=>{const u=[];for(const[o,h]of Object.entries(r.methods)){const m=i.methods[o];if(!m){u.push({where:o,reason:"no longer exists"});continue}u.push(...k0(o,h,m,s))}for(const[o,h]of Object.entries(r.events??{})){const m=i.events?.[o];if(!m){u.push({where:`event ${o}`,reason:"is no longer emitted, so a subscription to it would never fire"});continue}for(let p=0;p<m.params.length;p++){const b=h.params[p];if(!b){u.push({where:`event ${o} argument ${p}`,reason:"is emitted but the caller does not expect it"});continue}vn(m.params[p],b,s)||u.push({where:`event ${o} argument ${p}`,reason:"widened, so a value this contract may emit is not one the caller expects"})}}return u},U0=(r,i,s,u)=>u.length?`${r}@${i} is not compatible with ${r}@${s??"current"}: `+u.map(o=>`${o.where} ${o.reason}`).join("; "):void 0;class M0{rpcServer;instance;event;target;instanceName;listener=(...i)=>{this.rpcServer.sendEvent(this.target,this.event,i,this.instanceName).catch(s=>this.rpcServer.emit("deliveryError",{target:this.target,event:this.event,path:this.instanceName,error:s}))};constructor(i,s,u,o,h){this.rpcServer=i,this.instance=s,this.event=u,this.target=o,this.instanceName=h}attach(){this.instance.on(this.event,this.listener)}detach(){this.instance.removeListener(this.event,this.listener)}}const vm=(r,i,s)=>`${r}\0${i}\0${s}`,bm=r=>r.type===st.CallInstanceMethod,R0=new Set(["Unauthorized","Forbidden","InvalidParams","IncompatibleVersion","ClassNotFound","MethodNotFound","TransportError","Timeout","UnknownOutcome"]),C0=r=>{const i=r?.code;return typeof i=="string"&&R0.has(i)?i:"Exception"};class D0 extends Km{manageRpc=new j0;eventProxies=new Map;authorize;resolveIdentity;requireIdentity=!1;deduplicateRequests=!0;maxTrackedRequests=1e3;refuseExpiredCalls=!0;idempotency;schema;validation="described";validateResults=!1;unknownVersion="allow";compatibility=new Map;recentResponses=new Map;inFlightRequests=new Set;constructor(i,s){super(i,s),this.manageRpc.logger?.log("Information","RpcServerHandler {name} starting",{name:i})}async checkAccess(i,s,u){const o=this.resolveIdentity?.(s);if(this.requireIdentity&&!o)return"Unauthorized";if(!this.authorize)return;const h={identity:o,source:s,instanceName:i.path,method:i.method,params:i.params,subscription:u};try{return await this.authorize(h)?void 0:"Forbidden"}catch{return"Forbidden"}}checkParams(i){if(!this.schema||this.validation==="off")return;const s=this.schema.namespaces[i.path];if(!s)return this.validation==="required"?`${i.path} is not described by the schema`:void 0;if(s.validate===!1)return;const u=s.methods[i.method];if(!u)return this.validation==="required"?`${i.path}.${i.method} is not described by the schema`:void 0;const o=N0(i.params,u,this.schema.types);if(o)return s.version?`${o} (this server serves ${i.path}@${s.version})`:o}checkVersion(i){if(!this.schema||this.validation==="off"||!i.version)return;const s=this.schema.namespaces[i.path];if(!s||i.version===s.version)return;const u=`${i.path}@${i.version}`;if(this.compatibility.has(u))return this.compatibility.get(u);const o=s.history?.[i.version];let h;return o?h=U0(i.path,i.version,s.version,z0(o,s,this.schema.types)):h=this.unknownVersion==="reject"?`${i.path}@${i.version} is unknown to this server, which serves ${i.path}@${s.version??"an unversioned contract"}`:void 0,this.compatibility.set(u,h),h}async receive(i,s,u){this.manageRpc.logger?.log("Debug","RpcServerHandler {name} received message type {type} from {source} to {target}: {message}",{name:this.name,type:i.type,source:s,target:u,message:JSON.stringify(i)}),i.payload&&this.receivePayload(i.payload,s,u).catch(o=>this.emit("handlerError",{source:s,target:u,error:o}))}respond(i,s,u,o){if(this.deduplicateRequests)for(this.inFlightRequests.delete(i),this.recentResponses.set(i,u);this.recentResponses.size>this.maxTrackedRequests;){const h=this.recentResponses.keys().next();if(h.done)break;this.recentResponses.delete(h.value)}return this.sendPayload(u,o,this.name,s)}async receivePayload(i,s,u){try{await this.dispatch(i,s,u)}catch(o){await this.reportDispatchFailure(i,s,o)}}async reportDispatchFailure(i,s,u){this.emit("handlerError",{source:s,payload:i,error:u});const o=i.id;if(!(!bm(i)||!o)){this.deduplicateRequests&&this.inFlightRequests.delete(o);try{await this.sendPayload({type:st.error,id:o,code:"Exception",error:gc(u)},ut.ErrorMessage,this.name,s)}catch{}}}async dispatch(i,s,u){const o=Date.now();if(bm(i)){if(this.deduplicateRequests){const E=this.recentResponses.get(i.id);if(E){const H=E.code?ut.ErrorMessage:ut.ResponseMessage;await this.sendPayload(E,H,this.name,s);return}if(this.inFlightRequests.has(i.id))return;this.inFlightRequests.add(i.id)}const h=this.manageRpc.findNameSpaceMethodMap(i.path),m=h?.get(i.method);if(!m){const E=i.path,H=i.params[0],I=this.manageRpc.exposedNameSpaceInstances[E];if(i.method==="on"&&I instanceof wc){const $=await this.checkAccess(i,s,!0);if($){await this.sendError(i.id,s,$,`not permitted to subscribe to ${i.path}.${H}`);return}const X=vm(E,H,s);let re=this.eventProxies.get(X),ae="ok - already exists";re||(re=new M0(this,I,H,s,E),this.eventProxies.set(X,re),re.attach(),ae="ok"),await this.respond(i.id,s,{type:st.success,result:ae,id:i.id},ut.ResponseMessage)}else if((i.method==="off"||i.method==="removeListener")&&I instanceof wc){const $=vm(E,H,s),X=this.eventProxies.get($);X&&(X.detach(),this.eventProxies.delete($)),await this.respond(i.id,s,{type:st.success,result:X?"ok":"ok - was not subscribed",id:i.id},ut.ResponseMessage)}else await this.sendError(i.id,s,h?"MethodNotFound":"ClassNotFound",`${i.path}.${i.method} is not exposed`);return}const p=await this.checkAccess(i,s,!1);if(p){await this.sendError(i.id,s,p,`not permitted to call ${i.path}.${i.method}`);return}const b=this.checkVersion(i);if(b){await this.sendError(i.id,s,"IncompatibleVersion",b);return}const S=this.checkParams(i);if(S){await this.sendError(i.id,s,"InvalidParams",S);return}const R=this.executionKey(i,s);R===void 0?await this.invoke(i,s,o,m):await this.serialise(R,()=>this.invoke(i,s,o,m))}}async invoke(i,s,u,o){const h=this.expiredBy(i,u);if(h!==void 0){await this.sendError(i.id,s,"Timeout",`${i.path}.${i.method} was not run: its caller stopped waiting ${h} ms ago`);return}const m=this.invocationFor(i,s);let p=!1;if(m){let R;try{R=await this.idempotency.begin(m)}catch(E){await this.sendError(i.id,s,"UnknownOutcome",`${i.path}.${i.method} was not run: its idempotency store could not be reached (${E instanceof Error?E.message:String(E)})`);return}if(R==="in-progress"){this.inFlightRequests.delete(i.id);return}if(R!=="acquired"){const E=E0(R)?{type:st.error,id:i.id,code:R.code,error:R.error}:{type:st.success,id:i.id,result:R.result};await this.respond(i.id,s,E,E.type===st.error?ut.ErrorMessage:ut.ResponseMessage);return}p=!0}const b=[...i.params];let S;try{S=await o(...b);const R=this.checkResult(i,S);if(R){await this.settle(m,p,{code:"InvalidParams",error:{name:"RpcError",message:R}}),await this.sendError(i.id,s,"InvalidParams",R);return}await this.settle(m,p,{result:S}),await this.respond(i.id,s,{type:st.success,id:i.id,result:S},ut.ResponseMessage)}catch(R){const E=C0(R);await this.settle(m,p,{code:E,error:gc(R)}),await this.respond(i.id,s,{type:st.error,id:i.id,code:E,error:gc(R)},ut.ErrorMessage)}}async settle(i,s,u){if(!(!i||!s))try{await this.idempotency.complete(i,u)}catch(o){this.emit("idempotencyError",{invocation:i,outcome:u,error:o})}}invocationFor(i,s){if(!(!this.idempotency||this.semanticsOf(i)!=="non-repeatable-command"))return{idempotencyKey:i.idempotencyKey??i.id,requestId:i.id,scope:`${i.path}.${i.method}`,source:s,...i.ttl!==void 0?{ttl:i.ttl}:{}}}semanticsOf(i){return this.manageRpc.exposedSemantics[i.path]?.get(i.method)??this.schema?.namespaces[i.path]?.methods[i.method]?.semantics}executionKey(i,s){const u=this.manageRpc.exposedExecution[i.path];if(!u||u==="parallel")return;if(u==="serial")return i.path;const o={identity:this.resolveIdentity?.(s),source:s,instanceName:i.path,method:i.method,params:i.params,subscription:!1};try{return`${i.path}\0${u(o)}`}catch{return i.path}}executionQueues=new Map;async serialise(i,s){const u=this.executionQueues.get(i)??Promise.resolve();let o;const h=new Promise(p=>o=p),m=u.then(()=>h);this.executionQueues.set(i,m),await u;try{return await s()}finally{o(),this.executionQueues.get(i)===m&&this.executionQueues.delete(i)}}expiredBy(i,s){if(!this.refuseExpiredCalls||i.ttl===void 0||!Number.isFinite(i.ttl)||i.ttl<0)return;const u=Date.now()-(s+i.ttl);return u>0?u:void 0}checkResult(i,s){if(!this.validateResults||!this.schema)return;const u=this.schema.namespaces[i.path]?.methods[i.method]?.returns;if(!u)return;const o=Qn(s,u,this.schema.types,"result");return o?`${i.path}.${i.method} returned a value its own schema forbids: ${o}`:void 0}sendError(i,s,u,o){return this.respond(i,s,{type:st.error,id:i,code:u,error:{name:"RpcError",message:o}},ut.ErrorMessage)}removePeer(i){for(const[s,u]of this.eventProxies)u.target===i&&(u.detach(),this.eventProxies.delete(s))}async sendEvent(i,s,u,o){return await this.sendPayload({type:st.event,event:s,params:u,path:o},ut.EventMessage,this.name,i)}}class j0{logger;exposedNameSpaceMethodMaps={};exposedNameSpaceInstances={};exposedClasses={};createdInstances=new Map;exposedSemantics={};exposedExecution={};constructor(i){this.logger=i}exposeManagement(){this.getNameSpaceMethodMap("manageRpc").set("createRpcInstance",(...s)=>this.createRpcInstance(s[0],s[1],...s.slice(2))),this.exposedNameSpaceInstances.manageRpc=this}getNameSpaceMethodMap(i){let s=this.exposedNameSpaceMethodMaps[i];return s||(s=new Map,this.exposedNameSpaceMethodMaps[i]=s),s}findNameSpaceMethodMap(i){return this.exposedNameSpaceMethodMaps[i]}requireExplicitExposure=!1;exposeClassInstance(i,s,u){const o=T0(i),h=s??o?.name;if(!h)throw new Error(`exposeClassInstance: ${i.constructor.name} declares no @rpcNamespace, so a name is required`);const m=typeof u=="number"?{prototypeSteps:u}:u??{};let p=m.prototypeSteps;const b=_0(i);if(!b&&this.requireExplicitExposure)throw new Error(`exposeClassInstance: ${i.constructor.name} marks no @rpc methods and requireExplicitExposure is on`);this.exposedNameSpaceInstances[h]=i;const S=m.execution??o?.execution;S&&(this.exposedExecution[h]=S);const R=A0(i);R.size&&(this.exposedSemantics[h]=R);let E=Object.getOwnPropertyNames(i.constructor.prototype),H=Object.getPrototypeOf(i.constructor.prototype);for(;H&&H.constructor.name!=="Object"&&H.constructor.name!=="EventEmitter";){const $=Object.getOwnPropertyNames(H);if(E=E.concat($),H=Object.getPrototypeOf(H),p&&p--===0)break}const I=this.getNameSpaceMethodMap(h);for(const $ of E)$==="constructor"||typeof i[$]!="function"||b&&!b.has($)||I.set($,i[$].bind(i))}exposeClass(i,s){let u=i.name;s&&(u=s),this.exposedClasses[u]=i}exposeObject(i,s){this.exposedNameSpaceInstances[s]=i;const u=Object.getOwnPropertyNames(i);for(const o of u)o!=="constructor"&&typeof i[o]=="function"&&this.getNameSpaceMethodMap(s).set(o,i[o])}expose(i,s){this.getNameSpaceMethodMap(i).set(i,s)}async createRpcInstance(i,s,...u){let o="";const h=this.exposedClasses[i];if(h){const m=s||aa(),p=new h(...u);this.createdInstances.set(m,p),this.exposeClassInstance(p,m),o=m}return o}}const Jm=1e4,vc=(r,i,s)=>`${r}\0${i}\0${s}`;class is extends Error{code;remoteStack;constructor(i,s,u){super(s?`${i}: ${s}`:i),this.code=i,this.remoteStack=u,this.name="RpcError"}}function B0(r){return r.type===st.success}function q0(r){return r.type===st.event}function L0(r){return r.type===st.error}class H0 extends Km{callTimeout;responsePromiseMap=new Map;responseTimeoutMap=new Map;schemaVersions;subscriptions=new Map;eventEmitter=new Xl.EventEmitter;constructor(i,s,u=Jm){super(i,s),this.callTimeout=u}async receive(i,s,u){const o=i.payload;if(o){if(q0(o)){this.deliverEvent(o,s);return}if(B0(o)){this.takePending(o.id)?.resolve(o.result);return}L0(o)&&this.takePending(o.id)?.reject(new is(o.code,o.error?.message,o.error?.stack))}}deliverEvent(i,s){const u=this.eventEmitter;if(u instanceof Xl.EventEmitter){const o=s??"",h=i.path?[vc(o,i.path,i.event),vc("",i.path,i.event)]:u.eventNames().filter(m=>typeof m=="string").filter(m=>{const[p,,b]=m.split("\0");return b===i.event&&(p===o||p==="")});for(const m of new Set(h))this.deliverSafely(()=>u.emit(m,...i.params),i)}this.deliverSafely(()=>this.emit(i.event,i.params),i)}deliverSafely(i,s){try{i()}catch(u){this.emit("subscriberError",{event:s.event,path:s.path,error:u})}}async resubscribe(){const i=await Promise.allSettled([...this.subscriptions.values()].map(u=>this.call(u.remote,u.instanceName,"on",u.event))),s=i.filter(u=>u.status==="rejected").length;return s&&this.emit("resubscribeFailed",s),i.length-s}failPendingCalls(i){for(const s of[...this.responsePromiseMap.keys()]){const u=this.sentRequests.has(s);this.sentRequests.delete(s),this.takePending(s)?.reject(u?new is("UnknownOutcome",`${i}, after the request was sent - it may or may not have run`):new is("TransportError",`${i}, before the request was sent`))}}sentRequests=new Set;takePending(i){if(i===void 0)return;const s=this.responsePromiseMap.get(i);this.responsePromiseMap.delete(i),this.sentRequests.delete(i);const u=this.responseTimeoutMap.get(i);return u!==void 0&&(clearTimeout(u),this.responseTimeoutMap.delete(i)),s}call(i,s,u,...o){return this.callWith({},i,s,u,...o)}callWith(i,s,u,o,...h){const m={id:aa(),type:st.CallInstanceMethod,path:u,method:o,params:h,version:this.schemaVersions?.[u],ttl:this.callTimeout>0?this.callTimeout:void 0,...i.idempotencyKey?{idempotencyKey:i.idempotencyKey}:{}};return new Promise((p,b)=>{this.responsePromiseMap.set(m.id,{resolve:p,reject:b}),this.responseTimeoutMap.set(m.id,setTimeout(()=>{this.takePending(m.id)?.reject(new is("Timeout",`no response to ${u}.${o} within ${this.callTimeout} ms`))},this.callTimeout)),this.sendPayload(m,ut.RequestMessage,this.name,s).then(()=>{this.responsePromiseMap.has(m.id)&&this.sentRequests.add(m.id)},S=>{this.takePending(m.id)?.reject(new is("TransportError",S instanceof Error?S.message:String(S)))})})}proxy(i,s,u={}){const o={};return new Proxy(o,{get:(h,m)=>{let p;if(typeof m=="string"){if(h[m])return h[m];m==="$with"?h[m]=b=>this.proxy(i,s,{...u,...b}):x0(m)?h[m]=(...b)=>{const S=b[0];if(typeof S=="string"){const R=vc(s??"",i,S);this.eventEmitter[m](R,...b.slice(1)),m==="on"?this.subscriptions.set(R,{remote:s,instanceName:i,event:S}):(m==="off"||m==="removeListener")&&this.subscriptions.delete(R)}else this.eventEmitter[m](...b);return this.call(s,i,m,b[0])}:h[m]=(...b)=>this.callWith(u,s,i,m,...b),p=h[m]}return p}})}}const It=Object.create(null);It.open="0";It.close="1";It.ping="2";It.pong="3";It.message="4";It.upgrade="5";It.noop="6";const jl=Object.create(null);Object.keys(It).forEach(r=>{jl[It[r]]=r});const kc={type:"error",data:"parser error"},Fm=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Wm=typeof ArrayBuffer=="function",Im=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,Bc=({type:r,data:i},s,u)=>Fm&&i instanceof Blob?s?u(i):Sm(i,u):Wm&&(i instanceof ArrayBuffer||Im(i))?s?u(i):Sm(new Blob([i]),u):u(It[r]+(i||"")),Sm=(r,i)=>{const s=new FileReader;return s.onload=function(){const u=s.result.split(",")[1];i("b"+(u||""))},s.readAsDataURL(r)};function xm(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let bc;function Y0(r,i){if(Fm&&r.data instanceof Blob)return r.data.arrayBuffer().then(xm).then(i);if(Wm&&(r.data instanceof ArrayBuffer||Im(r.data)))return i(xm(r.data));Bc(r,!1,s=>{bc||(bc=new TextEncoder),i(bc.encode(s))})}const Em="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<Em.length;r++)cs[Em.charCodeAt(r)]=r;const X0=r=>{let i=r.length*.75,s=r.length,u,o=0,h,m,p,b;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);const S=new ArrayBuffer(i),R=new Uint8Array(S);for(u=0;u<s;u+=4)h=cs[r.charCodeAt(u)],m=cs[r.charCodeAt(u+1)],p=cs[r.charCodeAt(u+2)],b=cs[r.charCodeAt(u+3)],R[o++]=h<<2|m>>4,R[o++]=(m&15)<<4|p>>2,R[o++]=(p&3)<<6|b&63;return S},G0=typeof ArrayBuffer=="function",qc=(r,i)=>{if(typeof r!="string")return{type:"message",data:Pm(r,i)};const s=r.charAt(0);return s==="b"?{type:"message",data:V0(r.substring(1),i)}:jl[s]?r.length>1?{type:jl[s],data:r.substring(1)}:{type:jl[s]}:kc},V0=(r,i)=>{if(G0){const s=X0(r);return Pm(s,i)}else return{base64:!0,data:r}},Pm=(r,i)=>i==="blob"?r instanceof Blob?r:new Blob([r]):r instanceof ArrayBuffer?r:r.buffer,ep="",Q0=(r,i)=>{const s=r.length,u=new Array(s);let o=0;r.forEach((h,m)=>{Bc(h,!1,p=>{u[m]=p,++o===s&&i(u.join(ep))})})},K0=(r,i)=>{const s=r.split(ep),u=[];for(let o=0;o<s.length;o++){const h=qc(s[o],i);if(u.push(h),h.type==="error")break}return u};function $0(){return new TransformStream({transform(r,i){Y0(r,s=>{const u=s.length;let o;if(u<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,u);else if(u<65536){o=new Uint8Array(3);const h=new DataView(o.buffer);h.setUint8(0,126),h.setUint16(1,u)}else{o=new Uint8Array(9);const h=new DataView(o.buffer);h.setUint8(0,127),h.setBigUint64(1,BigInt(u))}r.data&&typeof r.data!="string"&&(o[0]|=128),i.enqueue(o),i.enqueue(s)})}})}let Sc;function Rl(r){return r.reduce((i,s)=>i+s.length,0)}function Cl(r,i){if(r[0].length===i)return r.shift();const s=new Uint8Array(i);let u=0;for(let o=0;o<i;o++)s[o]=r[0][u++],u===r[0].length&&(r.shift(),u=0);return r.length&&u<r[0].length&&(r[0]=r[0].slice(u)),s}function Z0(r,i){Sc||(Sc=new TextDecoder);const s=[];let u=0,o=-1,h=!1;return new TransformStream({transform(m,p){for(s.push(m);;){if(u===0){if(Rl(s)<1)break;const b=Cl(s,1);h=(b[0]&128)===128,o=b[0]&127,o<126?u=3:o===126?u=1:u=2}else if(u===1){if(Rl(s)<2)break;const b=Cl(s,2);o=new DataView(b.buffer,b.byteOffset,b.length).getUint16(0),u=3}else if(u===2){if(Rl(s)<8)break;const b=Cl(s,8),S=new DataView(b.buffer,b.byteOffset,b.length),R=S.getUint32(0);if(R>Math.pow(2,21)-1){p.enqueue(kc);break}o=R*Math.pow(2,32)+S.getUint32(4),u=3}else{if(Rl(s)<o)break;const b=Cl(s,o);p.enqueue(qc(h?b:Sc.decode(b),i)),u=0}if(o===0||o>r){p.enqueue(kc);break}}}})}const tp=4;function $e(r){if(r)return J0(r)}function J0(r){for(var i in $e.prototype)r[i]=$e.prototype[i];return r}$e.prototype.on=$e.prototype.addEventListener=function(r,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(i),this};$e.prototype.once=function(r,i){function s(){this.off(r,s),i.apply(this,arguments)}return s.fn=i,this.on(r,s),this};$e.prototype.off=$e.prototype.removeListener=$e.prototype.removeAllListeners=$e.prototype.removeEventListener=function(r,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+r];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var u,o=0;o<s.length;o++)if(u=s[o],u===i||u.fn===i){s.splice(o,1);break}return s.length===0&&delete this._callbacks["$"+r],this};$e.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),s=this._callbacks["$"+r],u=1;u<arguments.length;u++)i[u-1]=arguments[u];if(s){s=s.slice(0);for(var u=0,o=s.length;u<o;++u)s[u].apply(this,i)}return this};$e.prototype.emitReserved=$e.prototype.emit;$e.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};$e.prototype.hasListeners=function(r){return!!this.listeners(r).length};const Ql=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,s)=>s(i,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),F0="arraybuffer";function np(r,...i){return i.reduce((s,u)=>(r.hasOwnProperty(u)&&(s[u]=r[u]),s),{})}const W0=Bt.setTimeout,I0=Bt.clearTimeout;function Kl(r,i){i.useNativeTimers?(r.setTimeoutFn=W0.bind(Bt),r.clearTimeoutFn=I0.bind(Bt)):(r.setTimeoutFn=Bt.setTimeout.bind(Bt),r.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const P0=1.33;function ev(r){return typeof r=="string"?tv(r):Math.ceil((r.byteLength||r.size)*P0)}function tv(r){let i=0,s=0;for(let u=0,o=r.length;u<o;u++)i=r.charCodeAt(u),i<128?s+=1:i<2048?s+=2:i<55296||i>=57344?s+=3:(u++,s+=4);return s}function ip(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function nv(r){let i="";for(let s in r)r.hasOwnProperty(s)&&(i.length&&(i+="&"),i+=encodeURIComponent(s)+"="+encodeURIComponent(r[s]));return i}function iv(r){let i={},s=r.split("&");for(let u=0,o=s.length;u<o;u++){let h=s[u].split("=");i[decodeURIComponent(h[0])]=decodeURIComponent(h[1])}return i}class av extends Error{constructor(i,s,u){super(i),this.description=s,this.context=u,this.type="TransportError"}}class Lc extends $e{constructor(i){super(),this.writable=!1,Kl(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,s,u){return super.emitReserved("error",new av(i,s,u)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const s=qc(i,this.socket.binaryType);this.onPacket(s)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,s={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const s=nv(i);return s.length?"?"+s:""}}class sv extends Lc{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const s=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let u=0;this._polling&&(u++,this.once("pollComplete",function(){--u||s()})),this.writable||(u++,this.once("drain",function(){--u||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const s=u=>{if(this.readyState==="opening"&&u.type==="open"&&this.onOpen(),u.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(u)};K0(i,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Q0(i,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=ip()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(i,s)}}let ap=!1;try{ap=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const lv=ap;function rv(){}class uv extends sv{constructor(i){if(super(i),typeof location<"u"){const s=location.protocol==="https:";let u=location.port;u||(u=s?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||u!==i.port}}doWrite(i,s){const u=this.request({method:"POST",data:i});u.on("success",s),u.on("error",(o,h)=>{this.onError("xhr post error",o,h)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(s,u)=>{this.onError("xhr poll error",s,u)}),this.pollXhr=i}}class Wt extends $e{constructor(i,s,u){super(),this.createRequest=i,Kl(this,u),this._opts=u,this._method=u.method||"GET",this._uri=s,this._data=u.data!==void 0?u.data:null,this._create()}_create(){var i;const s=np(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const u=this._xhr=this.createRequest(s);try{u.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){u.setDisableHeaderCheck&&u.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&u.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{u.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{u.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(u),"withCredentials"in u&&(u.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(u.timeout=this._opts.requestTimeout),u.onreadystatechange=()=>{var o;u.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(u.getResponseHeader("set-cookie"))),u.readyState===4&&(u.status===200||u.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof u.status=="number"?u.status:0)},0))},u.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Wt.requestsCount++,Wt.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=rv,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Wt.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Wt.requestsCount=0;Wt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",wm);else if(typeof addEventListener=="function"){const r="onpagehide"in Bt?"pagehide":"unload";addEventListener(r,wm,!1)}}function wm(){for(let r in Wt.requests)Wt.requests.hasOwnProperty(r)&&Wt.requests[r].abort()}const cv=(function(){const r=sp({xdomain:!1});return r&&r.responseType!==null})();class ov extends uv{constructor(i){super(i);const s=i&&i.forceBase64;this.supportsBinary=cv&&!s}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Wt(sp,this.uri(),i)}}function sp(r){const i=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||lv))return new XMLHttpRequest}catch{}if(!i)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const lp=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class fv extends Lc{get name(){return"websocket"}doOpen(){const i=this.uri(),s=this.opts.protocols,u=lp?{}:np(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(u.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,s,u)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const u=i[s],o=s===i.length-1;Bc(u,this.supportsBinary,h=>{try{this.doWrite(u,h)}catch{}o&&Ql(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=ip()),this.supportsBinary||(s.b64=1),this.createUri(i,s)}}const xc=Bt.WebSocket||Bt.MozWebSocket;class hv extends fv{createSocket(i,s,u){return lp?new xc(i,s,u):s?new xc(i,s):new xc(i)}doWrite(i,s){this.ws.send(s)}}class dv extends Lc{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const s=Z0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=i.readable.pipeThrough(s).getReader(),o=$0();o.readable.pipeTo(i.writable),this._writer=o.writable.getWriter();const h=()=>{u.read().then(({done:p,value:b})=>{p||(this.onPacket(b),h())}).catch(p=>{})};h();const m={type:"open"};this.query.sid&&(m.data=`{"sid":"${this.query.sid}"}`),this._writer.write(m).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const u=i[s],o=s===i.length-1;this._writer.write(u).then(()=>{o&&Ql(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const mv={websocket:hv,webtransport:dv,polling:ov},pv=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yv=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zc(r){if(r.length>8e3)throw"URI too long";const i=r,s=r.indexOf("["),u=r.indexOf("]");s!=-1&&u!=-1&&(r=r.substring(0,s)+r.substring(s,u).replace(/:/g,";")+r.substring(u,r.length));let o=pv.exec(r||""),h={},m=14;for(;m--;)h[yv[m]]=o[m]||"";return s!=-1&&u!=-1&&(h.source=i,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h.pathNames=gv(h,h.path),h.queryKey=vv(h,h.query),h}function gv(r,i){const s=/\/{2,9}/g,u=i.replace(s,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&u.splice(0,1),i.slice(-1)=="/"&&u.splice(u.length-1,1),u}function vv(r,i){const s={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,o,h){o&&(s[o]=h)}),s}const Uc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Bl=[];Uc&&addEventListener("offline",()=>{Bl.forEach(r=>r())},!1);class Kn extends $e{constructor(i,s){if(super(),this.binaryType=F0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(s=i,i=null),i){const u=zc(i);s.hostname=u.host,s.secure=u.protocol==="https"||u.protocol==="wss",s.port=u.port,u.query&&(s.query=u.query)}else s.host&&(s.hostname=zc(s.host).host);Kl(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(u=>{const o=u.prototype.name;this.transports.push(o),this._transportsByName[o]=u}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=iv(this.opts.query)),Uc&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Bl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const s=Object.assign({},this.opts.query);s.EIO=tp,s.transport=i,this.id&&(s.sid=this.id);const u=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](u)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&Kn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(i);s.open(),this.setTransport(s)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",Kn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=i.data,this._onError(s);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let u=0;u<this.writeBuffer.length;u++){const o=this.writeBuffer[u].data;if(o&&(s+=ev(o)),u>0&&s>this._maxPayload)return this.writeBuffer.slice(0,u);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,Ql(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,s,u){return this._sendPacket("message",i,s,u),this}send(i,s,u){return this._sendPacket("message",i,s,u),this}_sendPacket(i,s,u,o){if(typeof s=="function"&&(o=s,s=void 0),typeof u=="function"&&(o=u,u=null),this.readyState==="closing"||this.readyState==="closed")return;u=u||{},u.compress=u.compress!==!1;const h={type:i,data:s,options:u};this.emitReserved("packetCreate",h),this.writeBuffer.push(h),o&&this.once("flush",o),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),i()},u=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?u():i()}):this.upgrading?u():i()),this}_onError(i){if(Kn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Uc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const u=Bl.indexOf(this._offlineEventListener);u!==-1&&Bl.splice(u,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,s),this.writeBuffer=[],this._prevBufferLen=0}}}Kn.protocol=tp;class bv extends Kn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let s=this.createTransport(i),u=!1;Kn.priorWebsocketSuccess=!1;const o=()=>{u||(s.send([{type:"ping",data:"probe"}]),s.once("packet",E=>{if(!u)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;Kn.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{u||this.readyState!=="closed"&&(R(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const H=new Error("probe error");H.transport=s.name,this.emitReserved("upgradeError",H)}}))};function h(){u||(u=!0,R(),s.close(),s=null)}const m=E=>{const H=new Error("probe error: "+E);H.transport=s.name,h(),this.emitReserved("upgradeError",H)};function p(){m("transport closed")}function b(){m("socket closed")}function S(E){s&&E.name!==s.name&&h()}const R=()=>{s.removeListener("open",o),s.removeListener("error",m),s.removeListener("close",p),this.off("close",b),this.off("upgrading",S)};s.once("open",o),s.once("error",m),s.once("close",p),this.once("close",b),this.once("upgrading",S),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{u||s.open()},200):s.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const s=[];for(let u=0;u<i.length;u++)~this.transports.indexOf(i[u])&&s.push(i[u]);return s}}let Sv=class extends bv{constructor(i,s={}){const u=typeof i=="object",o=u?{...i}:{...s};(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(h=>mv[h]).filter(h=>!!h)),super(u?o:i,o)}};function xv(r,i="",s){let u=r;s=s||typeof location<"u"&&location,r==null&&(r=s.protocol+"//"+s.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=s.protocol+r:r=s.host+r),/^(https?|wss?):\/\//.test(r)||(typeof s<"u"?r=s.protocol+"//"+r:r="https://"+r),u=zc(r)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";const h=u.host.indexOf(":")!==-1?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+h+":"+u.port+i,u.href=u.protocol+"://"+h+(s&&s.port===u.port?"":":"+u.port),u}const Ev=typeof ArrayBuffer=="function",wv=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,rp=Object.prototype.toString,Tv=typeof Blob=="function"||typeof Blob<"u"&&rp.call(Blob)==="[object BlobConstructor]",_v=typeof File=="function"||typeof File<"u"&&rp.call(File)==="[object FileConstructor]";function Hc(r){return Ev&&(r instanceof ArrayBuffer||wv(r))||Tv&&r instanceof Blob||_v&&r instanceof File}function ql(r,i){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let s=0,u=r.length;s<u;s++)if(ql(r[s]))return!0;return!1}if(Hc(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return ql(r.toJSON(),!0);for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&ql(r[s]))return!0;return!1}function Av(r){const i=[],s=r.data,u=r;return u.data=Ll(s,i),u.attachments=i.length,{packet:u,buffers:i}}function Ll(r,i,s){if(!r)return r;if(Hc(r)){const u={_placeholder:!0,num:i.length};return i.push(r),u}else if(Array.isArray(r)){const u=new Array(r.length);for(let o=0;o<r.length;o++)u[o]=Ll(r[o],i);return u}else if(typeof r=="object"&&!(r instanceof Date)){if(r.toJSON&&typeof r.toJSON=="function"&&!s)return Ll(r.toJSON(),i,!0);const u={};for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(u[o]=Ll(r[o],i));return u}return r}function Nv(r,i){return r.data=Mc(r.data,i),delete r.attachments,r}function Mc(r,i){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<i.length)return i[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let s=0;s<r.length;s++)r[s]=Mc(r[s],i);else if(typeof r=="object")for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&(r[s]=Mc(r[s],i));return r}const Ov=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var xe;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(xe||(xe={}));let kv=class{constructor(i){this.replacer=i}encode(i){return(i.type===xe.EVENT||i.type===xe.ACK)&&ql(i)?this.encodeAsBinary({type:i.type===xe.EVENT?xe.BINARY_EVENT:xe.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let s=""+i.type;return(i.type===xe.BINARY_EVENT||i.type===xe.BINARY_ACK)&&(s+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(s+=i.nsp+","),i.id!=null&&(s+=i.id),i.data!=null&&(s+=JSON.stringify(i.data,this.replacer)),s}encodeAsBinary(i){const s=Av(i),u=this.encodeAsString(s.packet),o=s.buffers;return o.unshift(u),o}},zv=class up extends $e{constructor(i){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof i=="function"?{reviver:i}:i)}add(i){let s;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(i);const u=s.type===xe.BINARY_EVENT;u||s.type===xe.BINARY_ACK?(s.type=u?xe.EVENT:xe.ACK,this.reconstructor=new Uv(s)):super.emitReserved("decoded",s)}else if(Hc(i)||i.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(i),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let s=0;const u={type:Number(i.charAt(0))};if(xe[u.type]===void 0)throw new Error("unknown packet type "+u.type);if(u.type===xe.BINARY_EVENT||u.type===xe.BINARY_ACK){const h=s+1;for(;i.charAt(++s)!=="-"&&s!=i.length;);const m=i.substring(h,s);if(m!=Number(m)||i.charAt(s)!=="-")throw new Error("Illegal attachments");const p=Number(m);if(!Mv(p)||p<1)throw new Error("Illegal attachments");if(p>this.opts.maxAttachments)throw new Error("too many attachments");u.attachments=p}if(i.charAt(s+1)==="/"){const h=s+1;for(;++s&&!(i.charAt(s)===","||s===i.length););u.nsp=i.substring(h,s)}else u.nsp="/";const o=i.charAt(s+1);if(o!==""&&Number(o)==o){const h=s+1;for(;++s;){const m=i.charAt(s);if(m==null||Number(m)!=m){--s;break}if(s===i.length)break}u.id=Number(i.substring(h,s+1))}if(i.charAt(++s)){const h=this.tryParse(i.substr(s));if(up.isPayloadValid(u.type,h))u.data=h;else throw new Error("invalid payload")}return u}tryParse(i){try{return JSON.parse(i,this.opts.reviver)}catch{return!1}}static isPayloadValid(i,s){switch(i){case xe.CONNECT:return Tm(s);case xe.DISCONNECT:return s===void 0;case xe.CONNECT_ERROR:return typeof s=="string"||Tm(s);case xe.EVENT:case xe.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&Ov.indexOf(s[0])===-1);case xe.ACK:case xe.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}};class Uv{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const s=Nv(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Mv=Number.isInteger||function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r};function Tm(r){return Object.prototype.toString.call(r)==="[object Object]"}const Rv=Object.freeze(Object.defineProperty({__proto__:null,Decoder:zv,Encoder:kv,get PacketType(){return xe}},Symbol.toStringTag,{value:"Module"}));function Xt(r,i,s){return r.on(i,s),function(){r.off(i,s)}}const Cv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class cp extends $e{constructor(i,s,u){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=s,u&&u.auth&&(this.auth=u.auth),this._opts=Object.assign({},u),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Xt(i,"open",this.onopen.bind(this)),Xt(i,"packet",this.onpacket.bind(this)),Xt(i,"error",this.onerror.bind(this)),Xt(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...s){var u,o,h;if(Cv.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(s.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const m={type:xe.EVENT,data:s};if(m.options={},m.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const R=this.ids++,E=s.pop();this._registerAckCallback(R,E),m.id=R}const p=(o=(u=this.io.engine)===null||u===void 0?void 0:u.transport)===null||o===void 0?void 0:o.writable,b=this.connected&&!(!((h=this.io.engine)===null||h===void 0)&&h._hasPingExpired());return this.flags.volatile&&!p||(b?(this.notifyOutgoingListeners(m),this.packet(m)):this.sendBuffer.push(m)),this.flags={},this}_registerAckCallback(i,s){var u;const o=(u=this.flags.timeout)!==null&&u!==void 0?u:this._opts.ackTimeout;if(o===void 0){this.acks[i]=s;return}const h=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===i&&this.sendBuffer.splice(p,1);s.call(this,new Error("operation has timed out"))},o),m=(...p)=>{this.io.clearTimeoutFn(h),s.apply(this,p)};m.withError=!0,this.acks[i]=m}emitWithAck(i,...s){return new Promise((u,o)=>{const h=(m,p)=>m?o(m):u(p);h.withError=!0,s.push(h),this.emit(i,...s)})}_addToQueue(i){let s;typeof i[i.length-1]=="function"&&(s=i.pop());const u={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((o,...h)=>(this._queue[0],o!==null?u.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(o)):(this._queue.shift(),s&&s(null,...h)),u.pending=!1,this._drainQueue())),this._queue.push(u),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!i||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:xe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,s),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(u=>String(u.id)===i)){const u=this.acks[i];delete this.acks[i],u.withError&&u.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case xe.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case xe.EVENT:case xe.BINARY_EVENT:this.onevent(i);break;case xe.ACK:case xe.BINARY_ACK:this.onack(i);break;case xe.DISCONNECT:this.ondisconnect();break;case xe.CONNECT_ERROR:this.destroy();const u=new Error(i.data.message);u.data=i.data.data,this.emitReserved("connect_error",u);break}}onevent(i){const s=i.data||[];i.id!=null&&s.push(this.ack(i.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const u of s)u.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const s=this;let u=!1;return function(...o){u||(u=!0,s.packet({type:xe.ACK,id:i,data:o}))}}onack(i){const s=this.acks[i.id];typeof s=="function"&&(delete this.acks[i.id],s.withError&&i.data.unshift(null),s.apply(this,i.data))}onconnect(i,s){this.id=i,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:xe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const s=this._anyListeners;for(let u=0;u<s.length;u++)if(i===s[u])return s.splice(u,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const s=this._anyOutgoingListeners;for(let u=0;u<s.length;u++)if(i===s[u])return s.splice(u,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const u of s)u.apply(this,i.data)}}}function sa(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}sa.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),s=Math.floor(i*this.jitter*r);r=(Math.floor(i*10)&1)==0?r-s:r+s}return Math.min(r,this.max)|0};sa.prototype.reset=function(){this.attempts=0};sa.prototype.setMin=function(r){this.ms=r};sa.prototype.setMax=function(r){this.max=r};sa.prototype.setJitter=function(r){this.jitter=r};class Rc extends $e{constructor(i,s){var u;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(s=i,i=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,Kl(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((u=s.randomizationFactor)!==null&&u!==void 0?u:.5),this.backoff=new sa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=i;const o=s.parser||Rv;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var s;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(s=this.backoff)===null||s===void 0||s.setMin(i),this)}randomizationFactor(i){var s;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(s=this.backoff)===null||s===void 0||s.setJitter(i),this)}reconnectionDelayMax(i){var s;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(s=this.backoff)===null||s===void 0||s.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new Sv(this.uri,this.opts);const s=this.engine,u=this;this._readyState="opening",this.skipReconnect=!1;const o=Xt(s,"open",function(){u.onopen(),i&&i()}),h=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),i?i(p):this.maybeReconnectOnOpen()},m=Xt(s,"error",h);if(this._timeout!==!1){const p=this._timeout,b=this.setTimeoutFn(()=>{o(),h(new Error("timeout")),s.close()},p);this.opts.autoUnref&&b.unref(),this.subs.push(()=>{this.clearTimeoutFn(b)})}return this.subs.push(o),this.subs.push(m),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Xt(i,"ping",this.onping.bind(this)),Xt(i,"data",this.ondata.bind(this)),Xt(i,"error",this.onerror.bind(this)),Xt(i,"close",this.onclose.bind(this)),Xt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(s){this.onclose("parse error",s)}}ondecoded(i){Ql(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,s){let u=this.nsps[i];return u?this._autoConnect&&!u.active&&u.connect():(u=new cp(this,i,s),this.nsps[i]=u),u}_destroy(i){const s=Object.keys(this.nsps);for(const u of s)if(this.nsps[u].active)return;this._close()}_packet(i){const s=this.encoder.encode(i);for(let u=0;u<s.length;u++)this.engine.write(s[u],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,s){var u;this.cleanup(),(u=this.engine)===null||u===void 0||u.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const u=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(o=>{o?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",o)):i.onreconnect()}))},s);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const as={};function os(r,i){typeof r=="object"&&(i=r,r=void 0),i=i||{};const s=xv(r,i.path||"/socket.io"),u=s.source,o=s.id,h=s.path,m=as[o]&&h in as[o].nsps,p=i.forceNew||i["force new connection"]||i.multiplex===!1||m;let b;return p?b=new Rc(u,i):(as[o]||(as[o]=new Rc(u,i)),b=as[o]),s.query&&!i.query&&(i.query=s.queryKey),b.socket(s.path,i)}Object.assign(os,{Manager:Rc,Socket:cp,io:os,connect:os});function Dv(r){const i=r.length;let s=0,u=0;for(;u<i;){let o=r.charCodeAt(u++);if((o&4294967168)===0){s++;continue}else if((o&4294965248)===0)s+=2;else{if(o>=55296&&o<=56319&&u<i){const h=r.charCodeAt(u);(h&64512)===56320&&(++u,o=((o&1023)<<10)+(h&1023)+65536)}(o&4294901760)===0?s+=3:s+=4}}return s}function jv(r,i,s){const u=r.length;let o=s,h=0;for(;h<u;){let m=r.charCodeAt(h++);if((m&4294967168)===0){i[o++]=m;continue}else if((m&4294965248)===0)i[o++]=m>>6&31|192;else{if(m>=55296&&m<=56319&&h<u){const p=r.charCodeAt(h);(p&64512)===56320&&(++h,m=((m&1023)<<10)+(p&1023)+65536)}(m&4294901760)===0?(i[o++]=m>>12&15|224,i[o++]=m>>6&63|128):(i[o++]=m>>18&7|240,i[o++]=m>>12&63|128,i[o++]=m>>6&63|128)}i[o++]=m&63|128}}const Bv=new TextEncoder,qv=50;function Lv(r,i,s){Bv.encodeInto(r,i.subarray(s))}function Hv(r,i,s){r.length>qv?Lv(r,i,s):jv(r,i,s)}const Yv=4096;function op(r,i,s){let u=i;const o=u+s,h=[];let m="";for(;u<o;){const p=r[u++];if((p&128)===0)h.push(p);else if((p&224)===192){const b=r[u++]&63;h.push((p&31)<<6|b)}else if((p&240)===224){const b=r[u++]&63,S=r[u++]&63;h.push((p&31)<<12|b<<6|S)}else if((p&248)===240){const b=r[u++]&63,S=r[u++]&63,R=r[u++]&63;let E=(p&7)<<18|b<<12|S<<6|R;E>65535&&(E-=65536,h.push(E>>>10&1023|55296),E=56320|E&1023),h.push(E)}else h.push(p);h.length>=Yv&&(m+=String.fromCharCode(...h),h.length=0)}return h.length>0&&(m+=String.fromCharCode(...h)),m}const Xv=new TextDecoder,Gv=200;function Vv(r,i,s){const u=r.subarray(i,i+s);return Xv.decode(u)}function Qv(r,i,s){return s>Gv?Vv(r,i,s):op(r,i,s)}class Dl{type;data;constructor(i,s){this.type=i,this.data=s}}class At extends Error{constructor(i){super(i);const s=Object.create(At.prototype);Object.setPrototypeOf(this,s),Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:At.name})}}const ss=4294967295;function Kv(r,i,s){const u=s/4294967296,o=s;r.setUint32(i,u),r.setUint32(i+4,o)}function fp(r,i,s){const u=Math.floor(s/4294967296),o=s;r.setUint32(i,u),r.setUint32(i+4,o)}function hp(r,i){const s=r.getInt32(i),u=r.getUint32(i+4);return s*4294967296+u}function $v(r,i){const s=r.getUint32(i),u=r.getUint32(i+4);return s*4294967296+u}const Zv=-1,Jv=4294967296-1,Fv=17179869184-1;function Wv({sec:r,nsec:i}){if(r>=0&&i>=0&&r<=Fv)if(i===0&&r<=Jv){const s=new Uint8Array(4);return new DataView(s.buffer).setUint32(0,r),s}else{const s=r/4294967296,u=r&4294967295,o=new Uint8Array(8),h=new DataView(o.buffer);return h.setUint32(0,i<<2|s&3),h.setUint32(4,u),o}else{const s=new Uint8Array(12),u=new DataView(s.buffer);return u.setUint32(0,i),fp(u,4,r),s}}function Iv(r){const i=r.getTime(),s=Math.floor(i/1e3),u=(i-s*1e3)*1e6,o=Math.floor(u/1e9);return{sec:s+o,nsec:u-o*1e9}}function Pv(r){if(r instanceof Date){const i=Iv(r);return Wv(i)}else return null}function eb(r){const i=new DataView(r.buffer,r.byteOffset,r.byteLength);switch(r.byteLength){case 4:return{sec:i.getUint32(0),nsec:0};case 8:{const s=i.getUint32(0),u=i.getUint32(4),o=(s&3)*4294967296+u,h=s>>>2;return{sec:o,nsec:h}}case 12:{const s=hp(i,4),u=i.getUint32(0);return{sec:s,nsec:u}}default:throw new At(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${r.length}`)}}function tb(r){const i=eb(r);return new Date(i.sec*1e3+i.nsec/1e6)}const nb={type:Zv,encode:Pv,decode:tb};class $l{static defaultCodec=new $l;__brand;builtInEncoders=[];builtInDecoders=[];encoders=[];decoders=[];constructor(){this.register(nb)}register({type:i,encode:s,decode:u}){if(i>=0)this.encoders[i]=s,this.decoders[i]=u;else{const o=-1-i;this.builtInEncoders[o]=s,this.builtInDecoders[o]=u}}tryToEncode(i,s){for(let u=0;u<this.builtInEncoders.length;u++){const o=this.builtInEncoders[u];if(o!=null){const h=o(i,s);if(h!=null){const m=-1-u;return new Dl(m,h)}}}for(let u=0;u<this.encoders.length;u++){const o=this.encoders[u];if(o!=null){const h=o(i,s);if(h!=null){const m=u;return new Dl(m,h)}}}return i instanceof Dl?i:null}decode(i,s,u){const o=s<0?this.builtInDecoders[-1-s]:this.decoders[s];return o?o(i,s,u):new Dl(s,i)}}function ib(r){return r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer}function Cc(r){return r instanceof Uint8Array?r:ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):ib(r)?new Uint8Array(r):Uint8Array.from(r)}const ab=100,sb=2048;class Yc{extensionCodec;context;useBigInt64;maxDepth;initialBufferSize;sortKeys;forceFloat32;ignoreUndefined;forceIntegerToFloat;pos;view;bytes;entered=!1;constructor(i){this.extensionCodec=i?.extensionCodec??$l.defaultCodec,this.context=i?.context,this.useBigInt64=i?.useBigInt64??!1,this.maxDepth=i?.maxDepth??ab,this.initialBufferSize=i?.initialBufferSize??sb,this.sortKeys=i?.sortKeys??!1,this.forceFloat32=i?.forceFloat32??!1,this.ignoreUndefined=i?.ignoreUndefined??!1,this.forceIntegerToFloat=i?.forceIntegerToFloat??!1,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}clone(){return new Yc({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,maxDepth:this.maxDepth,initialBufferSize:this.initialBufferSize,sortKeys:this.sortKeys,forceFloat32:this.forceFloat32,ignoreUndefined:this.ignoreUndefined,forceIntegerToFloat:this.forceIntegerToFloat})}reinitializeState(){this.pos=0}encodeSharedRef(i){if(this.entered)return this.clone().encodeSharedRef(i);try{return this.entered=!0,this.reinitializeState(),this.doEncode(i,1),this.bytes.subarray(0,this.pos)}finally{this.entered=!1}}encode(i){if(this.entered)return this.clone().encode(i);try{return this.entered=!0,this.reinitializeState(),this.doEncode(i,1),this.bytes.slice(0,this.pos)}finally{this.entered=!1}}doEncode(i,s){if(s>this.maxDepth)throw new Error(`Too deep objects in depth ${s}`);i==null?this.encodeNil():typeof i=="boolean"?this.encodeBoolean(i):typeof i=="number"?this.forceIntegerToFloat?this.encodeNumberAsFloat(i):this.encodeNumber(i):typeof i=="string"?this.encodeString(i):this.useBigInt64&&typeof i=="bigint"?this.encodeBigInt64(i):this.encodeObject(i,s)}ensureBufferSizeToWrite(i){const s=this.pos+i;this.view.byteLength<s&&this.resizeBuffer(s*2)}resizeBuffer(i){const s=new ArrayBuffer(i),u=new Uint8Array(s),o=new DataView(s);u.set(this.bytes),this.view=o,this.bytes=u}encodeNil(){this.writeU8(192)}encodeBoolean(i){i===!1?this.writeU8(194):this.writeU8(195)}encodeNumber(i){!this.forceIntegerToFloat&&Number.isSafeInteger(i)?i>=0?i<128?this.writeU8(i):i<256?(this.writeU8(204),this.writeU8(i)):i<65536?(this.writeU8(205),this.writeU16(i)):i<4294967296?(this.writeU8(206),this.writeU32(i)):this.useBigInt64?this.encodeNumberAsFloat(i):(this.writeU8(207),this.writeU64(i)):i>=-32?this.writeU8(224|i+32):i>=-128?(this.writeU8(208),this.writeI8(i)):i>=-32768?(this.writeU8(209),this.writeI16(i)):i>=-2147483648?(this.writeU8(210),this.writeI32(i)):this.useBigInt64?this.encodeNumberAsFloat(i):(this.writeU8(211),this.writeI64(i)):this.encodeNumberAsFloat(i)}encodeNumberAsFloat(i){this.forceFloat32?(this.writeU8(202),this.writeF32(i)):(this.writeU8(203),this.writeF64(i))}encodeBigInt64(i){i>=BigInt(0)?(this.writeU8(207),this.writeBigUint64(i)):(this.writeU8(211),this.writeBigInt64(i))}writeStringHeader(i){if(i<32)this.writeU8(160+i);else if(i<256)this.writeU8(217),this.writeU8(i);else if(i<65536)this.writeU8(218),this.writeU16(i);else if(i<4294967296)this.writeU8(219),this.writeU32(i);else throw new Error(`Too long string: ${i} bytes in UTF-8`)}encodeString(i){const u=Dv(i);this.ensureBufferSizeToWrite(5+u),this.writeStringHeader(u),Hv(i,this.bytes,this.pos),this.pos+=u}encodeObject(i,s){const u=this.extensionCodec.tryToEncode(i,this.context);if(u!=null)this.encodeExtension(u);else if(Array.isArray(i))this.encodeArray(i,s);else if(ArrayBuffer.isView(i))this.encodeBinary(i);else if(typeof i=="object")this.encodeMap(i,s);else throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(i)}`)}encodeBinary(i){const s=i.byteLength;if(s<256)this.writeU8(196),this.writeU8(s);else if(s<65536)this.writeU8(197),this.writeU16(s);else if(s<4294967296)this.writeU8(198),this.writeU32(s);else throw new Error(`Too large binary: ${s}`);const u=Cc(i);this.writeU8a(u)}encodeArray(i,s){const u=i.length;if(u<16)this.writeU8(144+u);else if(u<65536)this.writeU8(220),this.writeU16(u);else if(u<4294967296)this.writeU8(221),this.writeU32(u);else throw new Error(`Too large array: ${u}`);for(const o of i)this.doEncode(o,s+1)}countWithoutUndefined(i,s){let u=0;for(const o of s)i[o]!==void 0&&u++;return u}encodeMap(i,s){const u=Object.keys(i);this.sortKeys&&u.sort();const o=this.ignoreUndefined?this.countWithoutUndefined(i,u):u.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else if(o<4294967296)this.writeU8(223),this.writeU32(o);else throw new Error(`Too large map object: ${o}`);for(const h of u){const m=i[h];this.ignoreUndefined&&m===void 0||(this.encodeString(h),this.doEncode(m,s+1))}}encodeExtension(i){if(typeof i.data=="function"){const u=i.data(this.pos+6),o=u.length;if(o>=4294967296)throw new Error(`Too large extension object: ${o}`);this.writeU8(201),this.writeU32(o),this.writeI8(i.type),this.writeU8a(u);return}const s=i.data.length;if(s===1)this.writeU8(212);else if(s===2)this.writeU8(213);else if(s===4)this.writeU8(214);else if(s===8)this.writeU8(215);else if(s===16)this.writeU8(216);else if(s<256)this.writeU8(199),this.writeU8(s);else if(s<65536)this.writeU8(200),this.writeU16(s);else if(s<4294967296)this.writeU8(201),this.writeU32(s);else throw new Error(`Too large extension object: ${s}`);this.writeI8(i.type),this.writeU8a(i.data)}writeU8(i){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,i),this.pos++}writeU8a(i){const s=i.length;this.ensureBufferSizeToWrite(s),this.bytes.set(i,this.pos),this.pos+=s}writeI8(i){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,i),this.pos++}writeU16(i){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,i),this.pos+=2}writeI16(i){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,i),this.pos+=2}writeU32(i){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,i),this.pos+=4}writeI32(i){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,i),this.pos+=4}writeF32(i){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,i),this.pos+=4}writeF64(i){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,i),this.pos+=8}writeU64(i){this.ensureBufferSizeToWrite(8),Kv(this.view,this.pos,i),this.pos+=8}writeI64(i){this.ensureBufferSizeToWrite(8),fp(this.view,this.pos,i),this.pos+=8}writeBigUint64(i){this.ensureBufferSizeToWrite(8),this.view.setBigUint64(this.pos,i),this.pos+=8}writeBigInt64(i){this.ensureBufferSizeToWrite(8),this.view.setBigInt64(this.pos,i),this.pos+=8}}function lb(r,i){return new Yc(i).encodeSharedRef(r)}function Ec(r){return`${r<0?"-":""}0x${Math.abs(r).toString(16).padStart(2,"0")}`}const rb=16,ub=16;class cb{hit=0;miss=0;caches;maxKeyLength;maxLengthPerKey;constructor(i=rb,s=ub){this.maxKeyLength=i,this.maxLengthPerKey=s,this.caches=[];for(let u=0;u<this.maxKeyLength;u++)this.caches.push([])}canBeCached(i){return i>0&&i<=this.maxKeyLength}find(i,s,u){const o=this.caches[u-1];e:for(const h of o){const m=h.bytes;for(let p=0;p<u;p++)if(m[p]!==i[s+p])continue e;return h.str}return null}store(i,s){const u=this.caches[i.length-1],o={bytes:i,str:s};u.length>=this.maxLengthPerKey?u[Math.random()*u.length|0]=o:u.push(o)}decode(i,s,u){const o=this.find(i,s,u);if(o!=null)return this.hit++,o;this.miss++;const h=op(i,s,u),m=Uint8Array.prototype.slice.call(i,s,s+u);return this.store(m,h),h}}const Dc="array",fs="map_key",dp="map_value",ob=r=>{if(typeof r=="string"||typeof r=="number")return r;throw new At("The type of key must be string or number but "+typeof r)};class fb{stack=[];stackHeadPosition=-1;get length(){return this.stackHeadPosition+1}top(){return this.stack[this.stackHeadPosition]}pushArrayState(i){const s=this.getUninitializedStateFromPool();s.type=Dc,s.position=0,s.size=i,s.array=new Array(i)}pushMapState(i){const s=this.getUninitializedStateFromPool();s.type=fs,s.readCount=0,s.size=i,s.map={}}getUninitializedStateFromPool(){if(this.stackHeadPosition++,this.stackHeadPosition===this.stack.length){const i={type:void 0,size:0,array:void 0,position:0,readCount:0,map:void 0,key:null};this.stack.push(i)}return this.stack[this.stackHeadPosition]}release(i){if(this.stack[this.stackHeadPosition]!==i)throw new Error("Invalid stack state. Released state is not on top of the stack.");if(i.type===Dc){const u=i;u.size=0,u.array=void 0,u.position=0,u.type=void 0}if(i.type===fs||i.type===dp){const u=i;u.size=0,u.map=void 0,u.readCount=0,u.type=void 0}this.stackHeadPosition--}reset(){this.stack.length=0,this.stackHeadPosition=-1}}const ls=-1,Xc=new DataView(new ArrayBuffer(0)),hb=new Uint8Array(Xc.buffer);try{Xc.getInt8(0)}catch(r){if(!(r instanceof RangeError))throw new Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access")}const _m=new RangeError("Insufficient data"),db=new cb;class Gc{extensionCodec;context;useBigInt64;rawStrings;maxStrLength;maxBinLength;maxArrayLength;maxMapLength;maxExtLength;keyDecoder;mapKeyConverter;totalPos=0;pos=0;view=Xc;bytes=hb;headByte=ls;stack=new fb;entered=!1;constructor(i){this.extensionCodec=i?.extensionCodec??$l.defaultCodec,this.context=i?.context,this.useBigInt64=i?.useBigInt64??!1,this.rawStrings=i?.rawStrings??!1,this.maxStrLength=i?.maxStrLength??ss,this.maxBinLength=i?.maxBinLength??ss,this.maxArrayLength=i?.maxArrayLength??ss,this.maxMapLength=i?.maxMapLength??ss,this.maxExtLength=i?.maxExtLength??ss,this.keyDecoder=i?.keyDecoder!==void 0?i.keyDecoder:db,this.mapKeyConverter=i?.mapKeyConverter??ob}clone(){return new Gc({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,rawStrings:this.rawStrings,maxStrLength:this.maxStrLength,maxBinLength:this.maxBinLength,maxArrayLength:this.maxArrayLength,maxMapLength:this.maxMapLength,maxExtLength:this.maxExtLength,keyDecoder:this.keyDecoder})}reinitializeState(){this.totalPos=0,this.headByte=ls,this.stack.reset()}setBuffer(i){const s=Cc(i);this.bytes=s,this.view=new DataView(s.buffer,s.byteOffset,s.byteLength),this.pos=0}appendBuffer(i){if(this.headByte===ls&&!this.hasRemaining(1))this.setBuffer(i);else{const s=this.bytes.subarray(this.pos),u=Cc(i),o=new Uint8Array(s.length+u.length);o.set(s),o.set(u,s.length),this.setBuffer(o)}}hasRemaining(i){return this.view.byteLength-this.pos>=i}createExtraByteError(i){const{view:s,pos:u}=this;return new RangeError(`Extra ${s.byteLength-u} of ${s.byteLength} byte(s) found at buffer[${i}]`)}decode(i){if(this.entered)return this.clone().decode(i);try{this.entered=!0,this.reinitializeState(),this.setBuffer(i);const s=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return s}finally{this.entered=!1}}*decodeMulti(i){if(this.entered){yield*this.clone().decodeMulti(i);return}try{for(this.entered=!0,this.reinitializeState(),this.setBuffer(i);this.hasRemaining(1);)yield this.doDecodeSync()}finally{this.entered=!1}}async decodeAsync(i){if(this.entered)return this.clone().decodeAsync(i);try{this.entered=!0;let s=!1,u;for await(const p of i){if(s)throw this.entered=!1,this.createExtraByteError(this.totalPos);this.appendBuffer(p);try{u=this.doDecodeSync(),s=!0}catch(b){if(!(b instanceof RangeError))throw b}this.totalPos+=this.pos}if(s){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return u}const{headByte:o,pos:h,totalPos:m}=this;throw new RangeError(`Insufficient data in parsing ${Ec(o)} at ${m} (${h} in the current buffer)`)}finally{this.entered=!1}}decodeArrayStream(i){return this.decodeMultiAsync(i,!0)}decodeStream(i){return this.decodeMultiAsync(i,!1)}async*decodeMultiAsync(i,s){if(this.entered){yield*this.clone().decodeMultiAsync(i,s);return}try{this.entered=!0;let u=s,o=-1;for await(const h of i){if(s&&o===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(h),u&&(o=this.readArraySize(),u=!1,this.complete());try{for(;yield this.doDecodeSync(),--o!==0;);}catch(m){if(!(m instanceof RangeError))throw m}this.totalPos+=this.pos}}finally{this.entered=!1}}doDecodeSync(){e:for(;;){const i=this.readHeadByte();let s;if(i>=224)s=i-256;else if(i<192)if(i<128)s=i;else if(i<144){const o=i-128;if(o!==0){this.pushMapState(o),this.complete();continue e}else s={}}else if(i<160){const o=i-144;if(o!==0){this.pushArrayState(o),this.complete();continue e}else s=[]}else{const o=i-160;s=this.decodeString(o,0)}else if(i===192)s=null;else if(i===194)s=!1;else if(i===195)s=!0;else if(i===202)s=this.readF32();else if(i===203)s=this.readF64();else if(i===204)s=this.readU8();else if(i===205)s=this.readU16();else if(i===206)s=this.readU32();else if(i===207)this.useBigInt64?s=this.readU64AsBigInt():s=this.readU64();else if(i===208)s=this.readI8();else if(i===209)s=this.readI16();else if(i===210)s=this.readI32();else if(i===211)this.useBigInt64?s=this.readI64AsBigInt():s=this.readI64();else if(i===217){const o=this.lookU8();s=this.decodeString(o,1)}else if(i===218){const o=this.lookU16();s=this.decodeString(o,2)}else if(i===219){const o=this.lookU32();s=this.decodeString(o,4)}else if(i===220){const o=this.readU16();if(o!==0){this.pushArrayState(o),this.complete();continue e}else s=[]}else if(i===221){const o=this.readU32();if(o!==0){this.pushArrayState(o),this.complete();continue e}else s=[]}else if(i===222){const o=this.readU16();if(o!==0){this.pushMapState(o),this.complete();continue e}else s={}}else if(i===223){const o=this.readU32();if(o!==0){this.pushMapState(o),this.complete();continue e}else s={}}else if(i===196){const o=this.lookU8();s=this.decodeBinary(o,1)}else if(i===197){const o=this.lookU16();s=this.decodeBinary(o,2)}else if(i===198){const o=this.lookU32();s=this.decodeBinary(o,4)}else if(i===212)s=this.decodeExtension(1,0);else if(i===213)s=this.decodeExtension(2,0);else if(i===214)s=this.decodeExtension(4,0);else if(i===215)s=this.decodeExtension(8,0);else if(i===216)s=this.decodeExtension(16,0);else if(i===199){const o=this.lookU8();s=this.decodeExtension(o,1)}else if(i===200){const o=this.lookU16();s=this.decodeExtension(o,2)}else if(i===201){const o=this.lookU32();s=this.decodeExtension(o,4)}else throw new At(`Unrecognized type byte: ${Ec(i)}`);this.complete();const u=this.stack;for(;u.length>0;){const o=u.top();if(o.type===Dc)if(o.array[o.position]=s,o.position++,o.position===o.size)s=o.array,u.release(o);else continue e;else if(o.type===fs){if(s==="__proto__")throw new At("The key __proto__ is not allowed");o.key=this.mapKeyConverter(s),o.type=dp;continue e}else if(o.map[o.key]=s,o.readCount++,o.readCount===o.size)s=o.map,u.release(o);else{o.key=null,o.type=fs;continue e}}return s}}readHeadByte(){return this.headByte===ls&&(this.headByte=this.readU8()),this.headByte}complete(){this.headByte=ls}readArraySize(){const i=this.readHeadByte();switch(i){case 220:return this.readU16();case 221:return this.readU32();default:{if(i<160)return i-144;throw new At(`Unrecognized array type byte: ${Ec(i)}`)}}}pushMapState(i){if(i>this.maxMapLength)throw new At(`Max length exceeded: map length (${i}) > maxMapLengthLength (${this.maxMapLength})`);this.stack.pushMapState(i)}pushArrayState(i){if(i>this.maxArrayLength)throw new At(`Max length exceeded: array length (${i}) > maxArrayLength (${this.maxArrayLength})`);this.stack.pushArrayState(i)}decodeString(i,s){return!this.rawStrings||this.stateIsMapKey()?this.decodeUtf8String(i,s):this.decodeBinary(i,s)}decodeUtf8String(i,s){if(i>this.maxStrLength)throw new At(`Max length exceeded: UTF-8 byte length (${i}) > maxStrLength (${this.maxStrLength})`);if(this.bytes.byteLength<this.pos+s+i)throw _m;const u=this.pos+s;let o;return this.stateIsMapKey()&&this.keyDecoder?.canBeCached(i)?o=this.keyDecoder.decode(this.bytes,u,i):o=Qv(this.bytes,u,i),this.pos+=s+i,o}stateIsMapKey(){return this.stack.length>0?this.stack.top().type===fs:!1}decodeBinary(i,s){if(i>this.maxBinLength)throw new At(`Max length exceeded: bin length (${i}) > maxBinLength (${this.maxBinLength})`);if(!this.hasRemaining(i+s))throw _m;const u=this.pos+s,o=this.bytes.subarray(u,u+i);return this.pos+=s+i,o}decodeExtension(i,s){if(i>this.maxExtLength)throw new At(`Max length exceeded: ext length (${i}) > maxExtLength (${this.maxExtLength})`);const u=this.view.getInt8(this.pos+s),o=this.decodeBinary(i,s+1);return this.extensionCodec.decode(o,u,this.context)}lookU8(){return this.view.getUint8(this.pos)}lookU16(){return this.view.getUint16(this.pos)}lookU32(){return this.view.getUint32(this.pos)}readU8(){const i=this.view.getUint8(this.pos);return this.pos++,i}readI8(){const i=this.view.getInt8(this.pos);return this.pos++,i}readU16(){const i=this.view.getUint16(this.pos);return this.pos+=2,i}readI16(){const i=this.view.getInt16(this.pos);return this.pos+=2,i}readU32(){const i=this.view.getUint32(this.pos);return this.pos+=4,i}readI32(){const i=this.view.getInt32(this.pos);return this.pos+=4,i}readU64(){const i=$v(this.view,this.pos);return this.pos+=8,i}readI64(){const i=hp(this.view,this.pos);return this.pos+=8,i}readU64AsBigInt(){const i=this.view.getBigUint64(this.pos);return this.pos+=8,i}readI64AsBigInt(){const i=this.view.getBigInt64(this.pos);return this.pos+=8,i}readF32(){const i=this.view.getFloat32(this.pos);return this.pos+=4,i}readF64(){const i=this.view.getFloat64(this.pos);return this.pos+=8,i}}function mb(r,i){return new Gc(i).decode(r)}const mp={contentType:"application/msgpack",encode:r=>lb(r,{ignoreUndefined:!0}),decode:r=>mb(r)},pb={contentType:"application/json",encode:r=>Vm(JSON.stringify(r)),decode:r=>JSON.parse(Gm(r))},yb=r=>r?mp:pb,Am="presence",gb=128,Nm=8,Om=r=>typeof r=="string"&&r.length>0&&r.length<=gb&&![...r].some(i=>i===" "||i.charCodeAt(0)<32||i.charCodeAt(0)===127);class km extends Vl{url;options;announcePresence;allowInsecureTls;socket;connected=!1;codec=mp;knownPeers=new Set;carrying=[];constructor(i,s,u,o={},h=!0,m=!1){super(i,u),this.url=s,this.options=o,this.announcePresence=h,this.allowInsecureTls=m,queueMicrotask(()=>{this.open().catch(p=>this.emit(Xe.transportError,p))})}async close(){const i=this.socket;if(this.socket=void 0,this.connected=!1,this.readyFlag=!1,!i)return;i.io.reconnection(!1);const s=i.io.engine,u=i.connected&&s?new Promise(o=>{const h=setTimeout(o,2e3);h.unref?.(),s.once("close",()=>{clearTimeout(h),o()})}):Promise.resolve();i.disconnect(),await u,i.removeAllListeners(),this.knownPeers.clear()}async open(){if(this.socket)return;super.open();const i=this.url;this.allowInsecureTls&&(this.options={rejectUnauthorized:!1,...this.options},this.warnAboutInsecureTls()),this.socket=i?os(i,this.options):os(this.options),this.socket.on("message",async s=>{try{const[u,o,h]=this.extractHeader(new Uint8Array(s));if(!u){this.emit(Xe.rejected,{source:"unknown",reason:h??"no msgrpc header"});return}const m=this.codec.decode(o);await this.deliver(m,u.source,u.target,u.hops??0)}catch(u){this.emit(Xe.rejected,{source:"unknown",reason:`undecodable frame: ${String(u)}`,error:u})}}),this.socket.on(Am,s=>{try{this.onPresence(s)}catch(u){this.emit(Xe.rejected,{source:"unknown",reason:`bad presence update: ${String(u)}`,error:u})}}),this.socket.on("connect",()=>{this.connected=!0,this.readyFlag=!0,this.announcePresence&&this.announce(),this.emit(Xe.connected)}),this.socket.on("disconnect",s=>{this.connected=!1,this.readyFlag=!1;for(const u of[...this.knownPeers])this.knownPeers.delete(u),this.emit(Xe.peerGone,u);this.emit(Xe.disconnected,s)})}warnAboutInsecureTls(){!this.url||!/^(https|wss):/i.test(this.url)||console.warn(`source-rpc: '${this.name}' is connecting to ${this.url} with allowInsecureTls, so the server's certificate is not checked. Anything able to answer on that address can read and rewrite this link. Use it for a development server, not a plant.`)}registerIfUnrouted(i){this.peerRegistry.get(i)||this.setKnownSource(i)}announce(){const i={name:this.name};this.carrying.length&&(i.carrying=this.carrying),this.socket?.emit(Am,i)}advertise(i){const s=[...i].sort();s.length===this.carrying.length&&s.every((u,o)=>u===this.carrying[o])||(this.carrying=s,this.connected&&this.announcePresence&&this.announce())}onPresence(i){if(Array.isArray(i.peers)){for(const s of i.peers)!Om(s)||s===this.name||this.knownPeers.has(s)||(this.knownPeers.add(s),this.registerIfUnrouted(s),this.emit(Xe.peerOnline,s));return}if(!(!Om(i.peer)||i.peer===this.name))if(i.state==="offline"){if(!this.knownPeers.delete(i.peer))return;this.emit(Xe.peerGone,i.peer)}else{if(this.knownPeers.has(i.peer))return;this.knownPeers.add(i.peer),this.registerIfUnrouted(i.peer),this.emit(Xe.peerOnline,i.peer)}}async deliver(i,s,u,o){if(u!==this.name){const h=this.peerRegistry.get(u);if(h&&h!==this&&h.isTransport()){if(o+1>Nm){this.emit(Xe.unroutable,{source:s,target:u,reason:`over ${Nm} relays`});return}const m=h;m.forward?m.forward(i,s,u,o+1):await h.receive(i,s,u);return}}if(this.targetExists(u)){await this.send(i,s,u);return}this.emit(Xe.unroutable,{source:s,target:u})}forward(i,s,u,o){try{this.requireSocket().emit("message",this.frameMessage(this.buildHeader(s,u,{hops:o}),this.codec.encode(i)))}catch(h){this.emit(Xe.unroutable,{source:s,target:u,reason:`cannot forward: ${String(h)}`,error:h})}}requireSocket(){if(!this.socket)throw new Error(`SocketIoClientTransport '${this.name}': not connected to ${this.url??"the default url"}`);return this.socket}async receive(i,s,u){this.requireSocket().emit("message",this.frameMessage(this.buildHeader(s,u),this.codec.encode(i)))}isTransport(){return!0}}const Vc=Object.freeze(`abandon
|
|
10
|
+
ability
|
|
11
|
+
able
|
|
12
|
+
about
|
|
13
|
+
above
|
|
14
|
+
absent
|
|
15
|
+
absorb
|
|
16
|
+
abstract
|
|
17
|
+
absurd
|
|
18
|
+
abuse
|
|
19
|
+
access
|
|
20
|
+
accident
|
|
21
|
+
account
|
|
22
|
+
accuse
|
|
23
|
+
achieve
|
|
24
|
+
acid
|
|
25
|
+
acoustic
|
|
26
|
+
acquire
|
|
27
|
+
across
|
|
28
|
+
act
|
|
29
|
+
action
|
|
30
|
+
actor
|
|
31
|
+
actress
|
|
32
|
+
actual
|
|
33
|
+
adapt
|
|
34
|
+
add
|
|
35
|
+
addict
|
|
36
|
+
address
|
|
37
|
+
adjust
|
|
38
|
+
admit
|
|
39
|
+
adult
|
|
40
|
+
advance
|
|
41
|
+
advice
|
|
42
|
+
aerobic
|
|
43
|
+
affair
|
|
44
|
+
afford
|
|
45
|
+
afraid
|
|
46
|
+
again
|
|
47
|
+
age
|
|
48
|
+
agent
|
|
49
|
+
agree
|
|
50
|
+
ahead
|
|
51
|
+
aim
|
|
52
|
+
air
|
|
53
|
+
airport
|
|
54
|
+
aisle
|
|
55
|
+
alarm
|
|
56
|
+
album
|
|
57
|
+
alcohol
|
|
58
|
+
alert
|
|
59
|
+
alien
|
|
60
|
+
all
|
|
61
|
+
alley
|
|
62
|
+
allow
|
|
63
|
+
almost
|
|
64
|
+
alone
|
|
65
|
+
alpha
|
|
66
|
+
already
|
|
67
|
+
also
|
|
68
|
+
alter
|
|
69
|
+
always
|
|
70
|
+
amateur
|
|
71
|
+
amazing
|
|
72
|
+
among
|
|
73
|
+
amount
|
|
74
|
+
amused
|
|
75
|
+
analyst
|
|
76
|
+
anchor
|
|
77
|
+
ancient
|
|
78
|
+
anger
|
|
79
|
+
angle
|
|
80
|
+
angry
|
|
81
|
+
animal
|
|
82
|
+
ankle
|
|
83
|
+
announce
|
|
84
|
+
annual
|
|
85
|
+
another
|
|
86
|
+
answer
|
|
87
|
+
antenna
|
|
88
|
+
antique
|
|
89
|
+
anxiety
|
|
90
|
+
any
|
|
91
|
+
apart
|
|
92
|
+
apology
|
|
93
|
+
appear
|
|
94
|
+
apple
|
|
95
|
+
approve
|
|
96
|
+
april
|
|
97
|
+
arch
|
|
98
|
+
arctic
|
|
99
|
+
area
|
|
100
|
+
arena
|
|
101
|
+
argue
|
|
102
|
+
arm
|
|
103
|
+
armed
|
|
104
|
+
armor
|
|
105
|
+
army
|
|
106
|
+
around
|
|
107
|
+
arrange
|
|
108
|
+
arrest
|
|
109
|
+
arrive
|
|
110
|
+
arrow
|
|
111
|
+
art
|
|
112
|
+
artefact
|
|
113
|
+
artist
|
|
114
|
+
artwork
|
|
115
|
+
ask
|
|
116
|
+
aspect
|
|
117
|
+
assault
|
|
118
|
+
asset
|
|
119
|
+
assist
|
|
120
|
+
assume
|
|
121
|
+
asthma
|
|
122
|
+
athlete
|
|
123
|
+
atom
|
|
124
|
+
attack
|
|
125
|
+
attend
|
|
126
|
+
attitude
|
|
127
|
+
attract
|
|
128
|
+
auction
|
|
129
|
+
audit
|
|
130
|
+
august
|
|
131
|
+
aunt
|
|
132
|
+
author
|
|
133
|
+
auto
|
|
134
|
+
autumn
|
|
135
|
+
average
|
|
136
|
+
avocado
|
|
137
|
+
avoid
|
|
138
|
+
awake
|
|
139
|
+
aware
|
|
140
|
+
away
|
|
141
|
+
awesome
|
|
142
|
+
awful
|
|
143
|
+
awkward
|
|
144
|
+
axis
|
|
145
|
+
baby
|
|
146
|
+
bachelor
|
|
147
|
+
bacon
|
|
148
|
+
badge
|
|
149
|
+
bag
|
|
150
|
+
balance
|
|
151
|
+
balcony
|
|
152
|
+
ball
|
|
153
|
+
bamboo
|
|
154
|
+
banana
|
|
155
|
+
banner
|
|
156
|
+
bar
|
|
157
|
+
barely
|
|
158
|
+
bargain
|
|
159
|
+
barrel
|
|
160
|
+
base
|
|
161
|
+
basic
|
|
162
|
+
basket
|
|
163
|
+
battle
|
|
164
|
+
beach
|
|
165
|
+
bean
|
|
166
|
+
beauty
|
|
167
|
+
because
|
|
168
|
+
become
|
|
169
|
+
beef
|
|
170
|
+
before
|
|
171
|
+
begin
|
|
172
|
+
behave
|
|
173
|
+
behind
|
|
174
|
+
believe
|
|
175
|
+
below
|
|
176
|
+
belt
|
|
177
|
+
bench
|
|
178
|
+
benefit
|
|
179
|
+
best
|
|
180
|
+
betray
|
|
181
|
+
better
|
|
182
|
+
between
|
|
183
|
+
beyond
|
|
184
|
+
bicycle
|
|
185
|
+
bid
|
|
186
|
+
bike
|
|
187
|
+
bind
|
|
188
|
+
biology
|
|
189
|
+
bird
|
|
190
|
+
birth
|
|
191
|
+
bitter
|
|
192
|
+
black
|
|
193
|
+
blade
|
|
194
|
+
blame
|
|
195
|
+
blanket
|
|
196
|
+
blast
|
|
197
|
+
bleak
|
|
198
|
+
bless
|
|
199
|
+
blind
|
|
200
|
+
blood
|
|
201
|
+
blossom
|
|
202
|
+
blouse
|
|
203
|
+
blue
|
|
204
|
+
blur
|
|
205
|
+
blush
|
|
206
|
+
board
|
|
207
|
+
boat
|
|
208
|
+
body
|
|
209
|
+
boil
|
|
210
|
+
bomb
|
|
211
|
+
bone
|
|
212
|
+
bonus
|
|
213
|
+
book
|
|
214
|
+
boost
|
|
215
|
+
border
|
|
216
|
+
boring
|
|
217
|
+
borrow
|
|
218
|
+
boss
|
|
219
|
+
bottom
|
|
220
|
+
bounce
|
|
221
|
+
box
|
|
222
|
+
boy
|
|
223
|
+
bracket
|
|
224
|
+
brain
|
|
225
|
+
brand
|
|
226
|
+
brass
|
|
227
|
+
brave
|
|
228
|
+
bread
|
|
229
|
+
breeze
|
|
230
|
+
brick
|
|
231
|
+
bridge
|
|
232
|
+
brief
|
|
233
|
+
bright
|
|
234
|
+
bring
|
|
235
|
+
brisk
|
|
236
|
+
broccoli
|
|
237
|
+
broken
|
|
238
|
+
bronze
|
|
239
|
+
broom
|
|
240
|
+
brother
|
|
241
|
+
brown
|
|
242
|
+
brush
|
|
243
|
+
bubble
|
|
244
|
+
buddy
|
|
245
|
+
budget
|
|
246
|
+
buffalo
|
|
247
|
+
build
|
|
248
|
+
bulb
|
|
249
|
+
bulk
|
|
250
|
+
bullet
|
|
251
|
+
bundle
|
|
252
|
+
bunker
|
|
253
|
+
burden
|
|
254
|
+
burger
|
|
255
|
+
burst
|
|
256
|
+
bus
|
|
257
|
+
business
|
|
258
|
+
busy
|
|
259
|
+
butter
|
|
260
|
+
buyer
|
|
261
|
+
buzz
|
|
262
|
+
cabbage
|
|
263
|
+
cabin
|
|
264
|
+
cable
|
|
265
|
+
cactus
|
|
266
|
+
cage
|
|
267
|
+
cake
|
|
268
|
+
call
|
|
269
|
+
calm
|
|
270
|
+
camera
|
|
271
|
+
camp
|
|
272
|
+
can
|
|
273
|
+
canal
|
|
274
|
+
cancel
|
|
275
|
+
candy
|
|
276
|
+
cannon
|
|
277
|
+
canoe
|
|
278
|
+
canvas
|
|
279
|
+
canyon
|
|
280
|
+
capable
|
|
281
|
+
capital
|
|
282
|
+
captain
|
|
283
|
+
car
|
|
284
|
+
carbon
|
|
285
|
+
card
|
|
286
|
+
cargo
|
|
287
|
+
carpet
|
|
288
|
+
carry
|
|
289
|
+
cart
|
|
290
|
+
case
|
|
291
|
+
cash
|
|
292
|
+
casino
|
|
293
|
+
castle
|
|
294
|
+
casual
|
|
295
|
+
cat
|
|
296
|
+
catalog
|
|
297
|
+
catch
|
|
298
|
+
category
|
|
299
|
+
cattle
|
|
300
|
+
caught
|
|
301
|
+
cause
|
|
302
|
+
caution
|
|
303
|
+
cave
|
|
304
|
+
ceiling
|
|
305
|
+
celery
|
|
306
|
+
cement
|
|
307
|
+
census
|
|
308
|
+
century
|
|
309
|
+
cereal
|
|
310
|
+
certain
|
|
311
|
+
chair
|
|
312
|
+
chalk
|
|
313
|
+
champion
|
|
314
|
+
change
|
|
315
|
+
chaos
|
|
316
|
+
chapter
|
|
317
|
+
charge
|
|
318
|
+
chase
|
|
319
|
+
chat
|
|
320
|
+
cheap
|
|
321
|
+
check
|
|
322
|
+
cheese
|
|
323
|
+
chef
|
|
324
|
+
cherry
|
|
325
|
+
chest
|
|
326
|
+
chicken
|
|
327
|
+
chief
|
|
328
|
+
child
|
|
329
|
+
chimney
|
|
330
|
+
choice
|
|
331
|
+
choose
|
|
332
|
+
chronic
|
|
333
|
+
chuckle
|
|
334
|
+
chunk
|
|
335
|
+
churn
|
|
336
|
+
cigar
|
|
337
|
+
cinnamon
|
|
338
|
+
circle
|
|
339
|
+
citizen
|
|
340
|
+
city
|
|
341
|
+
civil
|
|
342
|
+
claim
|
|
343
|
+
clap
|
|
344
|
+
clarify
|
|
345
|
+
claw
|
|
346
|
+
clay
|
|
347
|
+
clean
|
|
348
|
+
clerk
|
|
349
|
+
clever
|
|
350
|
+
click
|
|
351
|
+
client
|
|
352
|
+
cliff
|
|
353
|
+
climb
|
|
354
|
+
clinic
|
|
355
|
+
clip
|
|
356
|
+
clock
|
|
357
|
+
clog
|
|
358
|
+
close
|
|
359
|
+
cloth
|
|
360
|
+
cloud
|
|
361
|
+
clown
|
|
362
|
+
club
|
|
363
|
+
clump
|
|
364
|
+
cluster
|
|
365
|
+
clutch
|
|
366
|
+
coach
|
|
367
|
+
coast
|
|
368
|
+
coconut
|
|
369
|
+
code
|
|
370
|
+
coffee
|
|
371
|
+
coil
|
|
372
|
+
coin
|
|
373
|
+
collect
|
|
374
|
+
color
|
|
375
|
+
column
|
|
376
|
+
combine
|
|
377
|
+
come
|
|
378
|
+
comfort
|
|
379
|
+
comic
|
|
380
|
+
common
|
|
381
|
+
company
|
|
382
|
+
concert
|
|
383
|
+
conduct
|
|
384
|
+
confirm
|
|
385
|
+
congress
|
|
386
|
+
connect
|
|
387
|
+
consider
|
|
388
|
+
control
|
|
389
|
+
convince
|
|
390
|
+
cook
|
|
391
|
+
cool
|
|
392
|
+
copper
|
|
393
|
+
copy
|
|
394
|
+
coral
|
|
395
|
+
core
|
|
396
|
+
corn
|
|
397
|
+
correct
|
|
398
|
+
cost
|
|
399
|
+
cotton
|
|
400
|
+
couch
|
|
401
|
+
country
|
|
402
|
+
couple
|
|
403
|
+
course
|
|
404
|
+
cousin
|
|
405
|
+
cover
|
|
406
|
+
coyote
|
|
407
|
+
crack
|
|
408
|
+
cradle
|
|
409
|
+
craft
|
|
410
|
+
cram
|
|
411
|
+
crane
|
|
412
|
+
crash
|
|
413
|
+
crater
|
|
414
|
+
crawl
|
|
415
|
+
crazy
|
|
416
|
+
cream
|
|
417
|
+
credit
|
|
418
|
+
creek
|
|
419
|
+
crew
|
|
420
|
+
cricket
|
|
421
|
+
crime
|
|
422
|
+
crisp
|
|
423
|
+
critic
|
|
424
|
+
crop
|
|
425
|
+
cross
|
|
426
|
+
crouch
|
|
427
|
+
crowd
|
|
428
|
+
crucial
|
|
429
|
+
cruel
|
|
430
|
+
cruise
|
|
431
|
+
crumble
|
|
432
|
+
crunch
|
|
433
|
+
crush
|
|
434
|
+
cry
|
|
435
|
+
crystal
|
|
436
|
+
cube
|
|
437
|
+
culture
|
|
438
|
+
cup
|
|
439
|
+
cupboard
|
|
440
|
+
curious
|
|
441
|
+
current
|
|
442
|
+
curtain
|
|
443
|
+
curve
|
|
444
|
+
cushion
|
|
445
|
+
custom
|
|
446
|
+
cute
|
|
447
|
+
cycle
|
|
448
|
+
dad
|
|
449
|
+
damage
|
|
450
|
+
damp
|
|
451
|
+
dance
|
|
452
|
+
danger
|
|
453
|
+
daring
|
|
454
|
+
dash
|
|
455
|
+
daughter
|
|
456
|
+
dawn
|
|
457
|
+
day
|
|
458
|
+
deal
|
|
459
|
+
debate
|
|
460
|
+
debris
|
|
461
|
+
decade
|
|
462
|
+
december
|
|
463
|
+
decide
|
|
464
|
+
decline
|
|
465
|
+
decorate
|
|
466
|
+
decrease
|
|
467
|
+
deer
|
|
468
|
+
defense
|
|
469
|
+
define
|
|
470
|
+
defy
|
|
471
|
+
degree
|
|
472
|
+
delay
|
|
473
|
+
deliver
|
|
474
|
+
demand
|
|
475
|
+
demise
|
|
476
|
+
denial
|
|
477
|
+
dentist
|
|
478
|
+
deny
|
|
479
|
+
depart
|
|
480
|
+
depend
|
|
481
|
+
deposit
|
|
482
|
+
depth
|
|
483
|
+
deputy
|
|
484
|
+
derive
|
|
485
|
+
describe
|
|
486
|
+
desert
|
|
487
|
+
design
|
|
488
|
+
desk
|
|
489
|
+
despair
|
|
490
|
+
destroy
|
|
491
|
+
detail
|
|
492
|
+
detect
|
|
493
|
+
develop
|
|
494
|
+
device
|
|
495
|
+
devote
|
|
496
|
+
diagram
|
|
497
|
+
dial
|
|
498
|
+
diamond
|
|
499
|
+
diary
|
|
500
|
+
dice
|
|
501
|
+
diesel
|
|
502
|
+
diet
|
|
503
|
+
differ
|
|
504
|
+
digital
|
|
505
|
+
dignity
|
|
506
|
+
dilemma
|
|
507
|
+
dinner
|
|
508
|
+
dinosaur
|
|
509
|
+
direct
|
|
510
|
+
dirt
|
|
511
|
+
disagree
|
|
512
|
+
discover
|
|
513
|
+
disease
|
|
514
|
+
dish
|
|
515
|
+
dismiss
|
|
516
|
+
disorder
|
|
517
|
+
display
|
|
518
|
+
distance
|
|
519
|
+
divert
|
|
520
|
+
divide
|
|
521
|
+
divorce
|
|
522
|
+
dizzy
|
|
523
|
+
doctor
|
|
524
|
+
document
|
|
525
|
+
dog
|
|
526
|
+
doll
|
|
527
|
+
dolphin
|
|
528
|
+
domain
|
|
529
|
+
donate
|
|
530
|
+
donkey
|
|
531
|
+
donor
|
|
532
|
+
door
|
|
533
|
+
dose
|
|
534
|
+
double
|
|
535
|
+
dove
|
|
536
|
+
draft
|
|
537
|
+
dragon
|
|
538
|
+
drama
|
|
539
|
+
drastic
|
|
540
|
+
draw
|
|
541
|
+
dream
|
|
542
|
+
dress
|
|
543
|
+
drift
|
|
544
|
+
drill
|
|
545
|
+
drink
|
|
546
|
+
drip
|
|
547
|
+
drive
|
|
548
|
+
drop
|
|
549
|
+
drum
|
|
550
|
+
dry
|
|
551
|
+
duck
|
|
552
|
+
dumb
|
|
553
|
+
dune
|
|
554
|
+
during
|
|
555
|
+
dust
|
|
556
|
+
dutch
|
|
557
|
+
duty
|
|
558
|
+
dwarf
|
|
559
|
+
dynamic
|
|
560
|
+
eager
|
|
561
|
+
eagle
|
|
562
|
+
early
|
|
563
|
+
earn
|
|
564
|
+
earth
|
|
565
|
+
easily
|
|
566
|
+
east
|
|
567
|
+
easy
|
|
568
|
+
echo
|
|
569
|
+
ecology
|
|
570
|
+
economy
|
|
571
|
+
edge
|
|
572
|
+
edit
|
|
573
|
+
educate
|
|
574
|
+
effort
|
|
575
|
+
egg
|
|
576
|
+
eight
|
|
577
|
+
either
|
|
578
|
+
elbow
|
|
579
|
+
elder
|
|
580
|
+
electric
|
|
581
|
+
elegant
|
|
582
|
+
element
|
|
583
|
+
elephant
|
|
584
|
+
elevator
|
|
585
|
+
elite
|
|
586
|
+
else
|
|
587
|
+
embark
|
|
588
|
+
embody
|
|
589
|
+
embrace
|
|
590
|
+
emerge
|
|
591
|
+
emotion
|
|
592
|
+
employ
|
|
593
|
+
empower
|
|
594
|
+
empty
|
|
595
|
+
enable
|
|
596
|
+
enact
|
|
597
|
+
end
|
|
598
|
+
endless
|
|
599
|
+
endorse
|
|
600
|
+
enemy
|
|
601
|
+
energy
|
|
602
|
+
enforce
|
|
603
|
+
engage
|
|
604
|
+
engine
|
|
605
|
+
enhance
|
|
606
|
+
enjoy
|
|
607
|
+
enlist
|
|
608
|
+
enough
|
|
609
|
+
enrich
|
|
610
|
+
enroll
|
|
611
|
+
ensure
|
|
612
|
+
enter
|
|
613
|
+
entire
|
|
614
|
+
entry
|
|
615
|
+
envelope
|
|
616
|
+
episode
|
|
617
|
+
equal
|
|
618
|
+
equip
|
|
619
|
+
era
|
|
620
|
+
erase
|
|
621
|
+
erode
|
|
622
|
+
erosion
|
|
623
|
+
error
|
|
624
|
+
erupt
|
|
625
|
+
escape
|
|
626
|
+
essay
|
|
627
|
+
essence
|
|
628
|
+
estate
|
|
629
|
+
eternal
|
|
630
|
+
ethics
|
|
631
|
+
evidence
|
|
632
|
+
evil
|
|
633
|
+
evoke
|
|
634
|
+
evolve
|
|
635
|
+
exact
|
|
636
|
+
example
|
|
637
|
+
excess
|
|
638
|
+
exchange
|
|
639
|
+
excite
|
|
640
|
+
exclude
|
|
641
|
+
excuse
|
|
642
|
+
execute
|
|
643
|
+
exercise
|
|
644
|
+
exhaust
|
|
645
|
+
exhibit
|
|
646
|
+
exile
|
|
647
|
+
exist
|
|
648
|
+
exit
|
|
649
|
+
exotic
|
|
650
|
+
expand
|
|
651
|
+
expect
|
|
652
|
+
expire
|
|
653
|
+
explain
|
|
654
|
+
expose
|
|
655
|
+
express
|
|
656
|
+
extend
|
|
657
|
+
extra
|
|
658
|
+
eye
|
|
659
|
+
eyebrow
|
|
660
|
+
fabric
|
|
661
|
+
face
|
|
662
|
+
faculty
|
|
663
|
+
fade
|
|
664
|
+
faint
|
|
665
|
+
faith
|
|
666
|
+
fall
|
|
667
|
+
false
|
|
668
|
+
fame
|
|
669
|
+
family
|
|
670
|
+
famous
|
|
671
|
+
fan
|
|
672
|
+
fancy
|
|
673
|
+
fantasy
|
|
674
|
+
farm
|
|
675
|
+
fashion
|
|
676
|
+
fat
|
|
677
|
+
fatal
|
|
678
|
+
father
|
|
679
|
+
fatigue
|
|
680
|
+
fault
|
|
681
|
+
favorite
|
|
682
|
+
feature
|
|
683
|
+
february
|
|
684
|
+
federal
|
|
685
|
+
fee
|
|
686
|
+
feed
|
|
687
|
+
feel
|
|
688
|
+
female
|
|
689
|
+
fence
|
|
690
|
+
festival
|
|
691
|
+
fetch
|
|
692
|
+
fever
|
|
693
|
+
few
|
|
694
|
+
fiber
|
|
695
|
+
fiction
|
|
696
|
+
field
|
|
697
|
+
figure
|
|
698
|
+
file
|
|
699
|
+
film
|
|
700
|
+
filter
|
|
701
|
+
final
|
|
702
|
+
find
|
|
703
|
+
fine
|
|
704
|
+
finger
|
|
705
|
+
finish
|
|
706
|
+
fire
|
|
707
|
+
firm
|
|
708
|
+
first
|
|
709
|
+
fiscal
|
|
710
|
+
fish
|
|
711
|
+
fit
|
|
712
|
+
fitness
|
|
713
|
+
fix
|
|
714
|
+
flag
|
|
715
|
+
flame
|
|
716
|
+
flash
|
|
717
|
+
flat
|
|
718
|
+
flavor
|
|
719
|
+
flee
|
|
720
|
+
flight
|
|
721
|
+
flip
|
|
722
|
+
float
|
|
723
|
+
flock
|
|
724
|
+
floor
|
|
725
|
+
flower
|
|
726
|
+
fluid
|
|
727
|
+
flush
|
|
728
|
+
fly
|
|
729
|
+
foam
|
|
730
|
+
focus
|
|
731
|
+
fog
|
|
732
|
+
foil
|
|
733
|
+
fold
|
|
734
|
+
follow
|
|
735
|
+
food
|
|
736
|
+
foot
|
|
737
|
+
force
|
|
738
|
+
forest
|
|
739
|
+
forget
|
|
740
|
+
fork
|
|
741
|
+
fortune
|
|
742
|
+
forum
|
|
743
|
+
forward
|
|
744
|
+
fossil
|
|
745
|
+
foster
|
|
746
|
+
found
|
|
747
|
+
fox
|
|
748
|
+
fragile
|
|
749
|
+
frame
|
|
750
|
+
frequent
|
|
751
|
+
fresh
|
|
752
|
+
friend
|
|
753
|
+
fringe
|
|
754
|
+
frog
|
|
755
|
+
front
|
|
756
|
+
frost
|
|
757
|
+
frown
|
|
758
|
+
frozen
|
|
759
|
+
fruit
|
|
760
|
+
fuel
|
|
761
|
+
fun
|
|
762
|
+
funny
|
|
763
|
+
furnace
|
|
764
|
+
fury
|
|
765
|
+
future
|
|
766
|
+
gadget
|
|
767
|
+
gain
|
|
768
|
+
galaxy
|
|
769
|
+
gallery
|
|
770
|
+
game
|
|
771
|
+
gap
|
|
772
|
+
garage
|
|
773
|
+
garbage
|
|
774
|
+
garden
|
|
775
|
+
garlic
|
|
776
|
+
garment
|
|
777
|
+
gas
|
|
778
|
+
gasp
|
|
779
|
+
gate
|
|
780
|
+
gather
|
|
781
|
+
gauge
|
|
782
|
+
gaze
|
|
783
|
+
general
|
|
784
|
+
genius
|
|
785
|
+
genre
|
|
786
|
+
gentle
|
|
787
|
+
genuine
|
|
788
|
+
gesture
|
|
789
|
+
ghost
|
|
790
|
+
giant
|
|
791
|
+
gift
|
|
792
|
+
giggle
|
|
793
|
+
ginger
|
|
794
|
+
giraffe
|
|
795
|
+
girl
|
|
796
|
+
give
|
|
797
|
+
glad
|
|
798
|
+
glance
|
|
799
|
+
glare
|
|
800
|
+
glass
|
|
801
|
+
glide
|
|
802
|
+
glimpse
|
|
803
|
+
globe
|
|
804
|
+
gloom
|
|
805
|
+
glory
|
|
806
|
+
glove
|
|
807
|
+
glow
|
|
808
|
+
glue
|
|
809
|
+
goat
|
|
810
|
+
goddess
|
|
811
|
+
gold
|
|
812
|
+
good
|
|
813
|
+
goose
|
|
814
|
+
gorilla
|
|
815
|
+
gospel
|
|
816
|
+
gossip
|
|
817
|
+
govern
|
|
818
|
+
gown
|
|
819
|
+
grab
|
|
820
|
+
grace
|
|
821
|
+
grain
|
|
822
|
+
grant
|
|
823
|
+
grape
|
|
824
|
+
grass
|
|
825
|
+
gravity
|
|
826
|
+
great
|
|
827
|
+
green
|
|
828
|
+
grid
|
|
829
|
+
grief
|
|
830
|
+
grit
|
|
831
|
+
grocery
|
|
832
|
+
group
|
|
833
|
+
grow
|
|
834
|
+
grunt
|
|
835
|
+
guard
|
|
836
|
+
guess
|
|
837
|
+
guide
|
|
838
|
+
guilt
|
|
839
|
+
guitar
|
|
840
|
+
gun
|
|
841
|
+
gym
|
|
842
|
+
habit
|
|
843
|
+
hair
|
|
844
|
+
half
|
|
845
|
+
hammer
|
|
846
|
+
hamster
|
|
847
|
+
hand
|
|
848
|
+
happy
|
|
849
|
+
harbor
|
|
850
|
+
hard
|
|
851
|
+
harsh
|
|
852
|
+
harvest
|
|
853
|
+
hat
|
|
854
|
+
have
|
|
855
|
+
hawk
|
|
856
|
+
hazard
|
|
857
|
+
head
|
|
858
|
+
health
|
|
859
|
+
heart
|
|
860
|
+
heavy
|
|
861
|
+
hedgehog
|
|
862
|
+
height
|
|
863
|
+
hello
|
|
864
|
+
helmet
|
|
865
|
+
help
|
|
866
|
+
hen
|
|
867
|
+
hero
|
|
868
|
+
hidden
|
|
869
|
+
high
|
|
870
|
+
hill
|
|
871
|
+
hint
|
|
872
|
+
hip
|
|
873
|
+
hire
|
|
874
|
+
history
|
|
875
|
+
hobby
|
|
876
|
+
hockey
|
|
877
|
+
hold
|
|
878
|
+
hole
|
|
879
|
+
holiday
|
|
880
|
+
hollow
|
|
881
|
+
home
|
|
882
|
+
honey
|
|
883
|
+
hood
|
|
884
|
+
hope
|
|
885
|
+
horn
|
|
886
|
+
horror
|
|
887
|
+
horse
|
|
888
|
+
hospital
|
|
889
|
+
host
|
|
890
|
+
hotel
|
|
891
|
+
hour
|
|
892
|
+
hover
|
|
893
|
+
hub
|
|
894
|
+
huge
|
|
895
|
+
human
|
|
896
|
+
humble
|
|
897
|
+
humor
|
|
898
|
+
hundred
|
|
899
|
+
hungry
|
|
900
|
+
hunt
|
|
901
|
+
hurdle
|
|
902
|
+
hurry
|
|
903
|
+
hurt
|
|
904
|
+
husband
|
|
905
|
+
hybrid
|
|
906
|
+
ice
|
|
907
|
+
icon
|
|
908
|
+
idea
|
|
909
|
+
identify
|
|
910
|
+
idle
|
|
911
|
+
ignore
|
|
912
|
+
ill
|
|
913
|
+
illegal
|
|
914
|
+
illness
|
|
915
|
+
image
|
|
916
|
+
imitate
|
|
917
|
+
immense
|
|
918
|
+
immune
|
|
919
|
+
impact
|
|
920
|
+
impose
|
|
921
|
+
improve
|
|
922
|
+
impulse
|
|
923
|
+
inch
|
|
924
|
+
include
|
|
925
|
+
income
|
|
926
|
+
increase
|
|
927
|
+
index
|
|
928
|
+
indicate
|
|
929
|
+
indoor
|
|
930
|
+
industry
|
|
931
|
+
infant
|
|
932
|
+
inflict
|
|
933
|
+
inform
|
|
934
|
+
inhale
|
|
935
|
+
inherit
|
|
936
|
+
initial
|
|
937
|
+
inject
|
|
938
|
+
injury
|
|
939
|
+
inmate
|
|
940
|
+
inner
|
|
941
|
+
innocent
|
|
942
|
+
input
|
|
943
|
+
inquiry
|
|
944
|
+
insane
|
|
945
|
+
insect
|
|
946
|
+
inside
|
|
947
|
+
inspire
|
|
948
|
+
install
|
|
949
|
+
intact
|
|
950
|
+
interest
|
|
951
|
+
into
|
|
952
|
+
invest
|
|
953
|
+
invite
|
|
954
|
+
involve
|
|
955
|
+
iron
|
|
956
|
+
island
|
|
957
|
+
isolate
|
|
958
|
+
issue
|
|
959
|
+
item
|
|
960
|
+
ivory
|
|
961
|
+
jacket
|
|
962
|
+
jaguar
|
|
963
|
+
jar
|
|
964
|
+
jazz
|
|
965
|
+
jealous
|
|
966
|
+
jeans
|
|
967
|
+
jelly
|
|
968
|
+
jewel
|
|
969
|
+
job
|
|
970
|
+
join
|
|
971
|
+
joke
|
|
972
|
+
journey
|
|
973
|
+
joy
|
|
974
|
+
judge
|
|
975
|
+
juice
|
|
976
|
+
jump
|
|
977
|
+
jungle
|
|
978
|
+
junior
|
|
979
|
+
junk
|
|
980
|
+
just
|
|
981
|
+
kangaroo
|
|
982
|
+
keen
|
|
983
|
+
keep
|
|
984
|
+
ketchup
|
|
985
|
+
key
|
|
986
|
+
kick
|
|
987
|
+
kid
|
|
988
|
+
kidney
|
|
989
|
+
kind
|
|
990
|
+
kingdom
|
|
991
|
+
kiss
|
|
992
|
+
kit
|
|
993
|
+
kitchen
|
|
994
|
+
kite
|
|
995
|
+
kitten
|
|
996
|
+
kiwi
|
|
997
|
+
knee
|
|
998
|
+
knife
|
|
999
|
+
knock
|
|
1000
|
+
know
|
|
1001
|
+
lab
|
|
1002
|
+
label
|
|
1003
|
+
labor
|
|
1004
|
+
ladder
|
|
1005
|
+
lady
|
|
1006
|
+
lake
|
|
1007
|
+
lamp
|
|
1008
|
+
language
|
|
1009
|
+
laptop
|
|
1010
|
+
large
|
|
1011
|
+
later
|
|
1012
|
+
latin
|
|
1013
|
+
laugh
|
|
1014
|
+
laundry
|
|
1015
|
+
lava
|
|
1016
|
+
law
|
|
1017
|
+
lawn
|
|
1018
|
+
lawsuit
|
|
1019
|
+
layer
|
|
1020
|
+
lazy
|
|
1021
|
+
leader
|
|
1022
|
+
leaf
|
|
1023
|
+
learn
|
|
1024
|
+
leave
|
|
1025
|
+
lecture
|
|
1026
|
+
left
|
|
1027
|
+
leg
|
|
1028
|
+
legal
|
|
1029
|
+
legend
|
|
1030
|
+
leisure
|
|
1031
|
+
lemon
|
|
1032
|
+
lend
|
|
1033
|
+
length
|
|
1034
|
+
lens
|
|
1035
|
+
leopard
|
|
1036
|
+
lesson
|
|
1037
|
+
letter
|
|
1038
|
+
level
|
|
1039
|
+
liar
|
|
1040
|
+
liberty
|
|
1041
|
+
library
|
|
1042
|
+
license
|
|
1043
|
+
life
|
|
1044
|
+
lift
|
|
1045
|
+
light
|
|
1046
|
+
like
|
|
1047
|
+
limb
|
|
1048
|
+
limit
|
|
1049
|
+
link
|
|
1050
|
+
lion
|
|
1051
|
+
liquid
|
|
1052
|
+
list
|
|
1053
|
+
little
|
|
1054
|
+
live
|
|
1055
|
+
lizard
|
|
1056
|
+
load
|
|
1057
|
+
loan
|
|
1058
|
+
lobster
|
|
1059
|
+
local
|
|
1060
|
+
lock
|
|
1061
|
+
logic
|
|
1062
|
+
lonely
|
|
1063
|
+
long
|
|
1064
|
+
loop
|
|
1065
|
+
lottery
|
|
1066
|
+
loud
|
|
1067
|
+
lounge
|
|
1068
|
+
love
|
|
1069
|
+
loyal
|
|
1070
|
+
lucky
|
|
1071
|
+
luggage
|
|
1072
|
+
lumber
|
|
1073
|
+
lunar
|
|
1074
|
+
lunch
|
|
1075
|
+
luxury
|
|
1076
|
+
lyrics
|
|
1077
|
+
machine
|
|
1078
|
+
mad
|
|
1079
|
+
magic
|
|
1080
|
+
magnet
|
|
1081
|
+
maid
|
|
1082
|
+
mail
|
|
1083
|
+
main
|
|
1084
|
+
major
|
|
1085
|
+
make
|
|
1086
|
+
mammal
|
|
1087
|
+
man
|
|
1088
|
+
manage
|
|
1089
|
+
mandate
|
|
1090
|
+
mango
|
|
1091
|
+
mansion
|
|
1092
|
+
manual
|
|
1093
|
+
maple
|
|
1094
|
+
marble
|
|
1095
|
+
march
|
|
1096
|
+
margin
|
|
1097
|
+
marine
|
|
1098
|
+
market
|
|
1099
|
+
marriage
|
|
1100
|
+
mask
|
|
1101
|
+
mass
|
|
1102
|
+
master
|
|
1103
|
+
match
|
|
1104
|
+
material
|
|
1105
|
+
math
|
|
1106
|
+
matrix
|
|
1107
|
+
matter
|
|
1108
|
+
maximum
|
|
1109
|
+
maze
|
|
1110
|
+
meadow
|
|
1111
|
+
mean
|
|
1112
|
+
measure
|
|
1113
|
+
meat
|
|
1114
|
+
mechanic
|
|
1115
|
+
medal
|
|
1116
|
+
media
|
|
1117
|
+
melody
|
|
1118
|
+
melt
|
|
1119
|
+
member
|
|
1120
|
+
memory
|
|
1121
|
+
mention
|
|
1122
|
+
menu
|
|
1123
|
+
mercy
|
|
1124
|
+
merge
|
|
1125
|
+
merit
|
|
1126
|
+
merry
|
|
1127
|
+
mesh
|
|
1128
|
+
message
|
|
1129
|
+
metal
|
|
1130
|
+
method
|
|
1131
|
+
middle
|
|
1132
|
+
midnight
|
|
1133
|
+
milk
|
|
1134
|
+
million
|
|
1135
|
+
mimic
|
|
1136
|
+
mind
|
|
1137
|
+
minimum
|
|
1138
|
+
minor
|
|
1139
|
+
minute
|
|
1140
|
+
miracle
|
|
1141
|
+
mirror
|
|
1142
|
+
misery
|
|
1143
|
+
miss
|
|
1144
|
+
mistake
|
|
1145
|
+
mix
|
|
1146
|
+
mixed
|
|
1147
|
+
mixture
|
|
1148
|
+
mobile
|
|
1149
|
+
model
|
|
1150
|
+
modify
|
|
1151
|
+
mom
|
|
1152
|
+
moment
|
|
1153
|
+
monitor
|
|
1154
|
+
monkey
|
|
1155
|
+
monster
|
|
1156
|
+
month
|
|
1157
|
+
moon
|
|
1158
|
+
moral
|
|
1159
|
+
more
|
|
1160
|
+
morning
|
|
1161
|
+
mosquito
|
|
1162
|
+
mother
|
|
1163
|
+
motion
|
|
1164
|
+
motor
|
|
1165
|
+
mountain
|
|
1166
|
+
mouse
|
|
1167
|
+
move
|
|
1168
|
+
movie
|
|
1169
|
+
much
|
|
1170
|
+
muffin
|
|
1171
|
+
mule
|
|
1172
|
+
multiply
|
|
1173
|
+
muscle
|
|
1174
|
+
museum
|
|
1175
|
+
mushroom
|
|
1176
|
+
music
|
|
1177
|
+
must
|
|
1178
|
+
mutual
|
|
1179
|
+
myself
|
|
1180
|
+
mystery
|
|
1181
|
+
myth
|
|
1182
|
+
naive
|
|
1183
|
+
name
|
|
1184
|
+
napkin
|
|
1185
|
+
narrow
|
|
1186
|
+
nasty
|
|
1187
|
+
nation
|
|
1188
|
+
nature
|
|
1189
|
+
near
|
|
1190
|
+
neck
|
|
1191
|
+
need
|
|
1192
|
+
negative
|
|
1193
|
+
neglect
|
|
1194
|
+
neither
|
|
1195
|
+
nephew
|
|
1196
|
+
nerve
|
|
1197
|
+
nest
|
|
1198
|
+
net
|
|
1199
|
+
network
|
|
1200
|
+
neutral
|
|
1201
|
+
never
|
|
1202
|
+
news
|
|
1203
|
+
next
|
|
1204
|
+
nice
|
|
1205
|
+
night
|
|
1206
|
+
noble
|
|
1207
|
+
noise
|
|
1208
|
+
nominee
|
|
1209
|
+
noodle
|
|
1210
|
+
normal
|
|
1211
|
+
north
|
|
1212
|
+
nose
|
|
1213
|
+
notable
|
|
1214
|
+
note
|
|
1215
|
+
nothing
|
|
1216
|
+
notice
|
|
1217
|
+
novel
|
|
1218
|
+
now
|
|
1219
|
+
nuclear
|
|
1220
|
+
number
|
|
1221
|
+
nurse
|
|
1222
|
+
nut
|
|
1223
|
+
oak
|
|
1224
|
+
obey
|
|
1225
|
+
object
|
|
1226
|
+
oblige
|
|
1227
|
+
obscure
|
|
1228
|
+
observe
|
|
1229
|
+
obtain
|
|
1230
|
+
obvious
|
|
1231
|
+
occur
|
|
1232
|
+
ocean
|
|
1233
|
+
october
|
|
1234
|
+
odor
|
|
1235
|
+
off
|
|
1236
|
+
offer
|
|
1237
|
+
office
|
|
1238
|
+
often
|
|
1239
|
+
oil
|
|
1240
|
+
okay
|
|
1241
|
+
old
|
|
1242
|
+
olive
|
|
1243
|
+
olympic
|
|
1244
|
+
omit
|
|
1245
|
+
once
|
|
1246
|
+
one
|
|
1247
|
+
onion
|
|
1248
|
+
online
|
|
1249
|
+
only
|
|
1250
|
+
open
|
|
1251
|
+
opera
|
|
1252
|
+
opinion
|
|
1253
|
+
oppose
|
|
1254
|
+
option
|
|
1255
|
+
orange
|
|
1256
|
+
orbit
|
|
1257
|
+
orchard
|
|
1258
|
+
order
|
|
1259
|
+
ordinary
|
|
1260
|
+
organ
|
|
1261
|
+
orient
|
|
1262
|
+
original
|
|
1263
|
+
orphan
|
|
1264
|
+
ostrich
|
|
1265
|
+
other
|
|
1266
|
+
outdoor
|
|
1267
|
+
outer
|
|
1268
|
+
output
|
|
1269
|
+
outside
|
|
1270
|
+
oval
|
|
1271
|
+
oven
|
|
1272
|
+
over
|
|
1273
|
+
own
|
|
1274
|
+
owner
|
|
1275
|
+
oxygen
|
|
1276
|
+
oyster
|
|
1277
|
+
ozone
|
|
1278
|
+
pact
|
|
1279
|
+
paddle
|
|
1280
|
+
page
|
|
1281
|
+
pair
|
|
1282
|
+
palace
|
|
1283
|
+
palm
|
|
1284
|
+
panda
|
|
1285
|
+
panel
|
|
1286
|
+
panic
|
|
1287
|
+
panther
|
|
1288
|
+
paper
|
|
1289
|
+
parade
|
|
1290
|
+
parent
|
|
1291
|
+
park
|
|
1292
|
+
parrot
|
|
1293
|
+
party
|
|
1294
|
+
pass
|
|
1295
|
+
patch
|
|
1296
|
+
path
|
|
1297
|
+
patient
|
|
1298
|
+
patrol
|
|
1299
|
+
pattern
|
|
1300
|
+
pause
|
|
1301
|
+
pave
|
|
1302
|
+
payment
|
|
1303
|
+
peace
|
|
1304
|
+
peanut
|
|
1305
|
+
pear
|
|
1306
|
+
peasant
|
|
1307
|
+
pelican
|
|
1308
|
+
pen
|
|
1309
|
+
penalty
|
|
1310
|
+
pencil
|
|
1311
|
+
people
|
|
1312
|
+
pepper
|
|
1313
|
+
perfect
|
|
1314
|
+
permit
|
|
1315
|
+
person
|
|
1316
|
+
pet
|
|
1317
|
+
phone
|
|
1318
|
+
photo
|
|
1319
|
+
phrase
|
|
1320
|
+
physical
|
|
1321
|
+
piano
|
|
1322
|
+
picnic
|
|
1323
|
+
picture
|
|
1324
|
+
piece
|
|
1325
|
+
pig
|
|
1326
|
+
pigeon
|
|
1327
|
+
pill
|
|
1328
|
+
pilot
|
|
1329
|
+
pink
|
|
1330
|
+
pioneer
|
|
1331
|
+
pipe
|
|
1332
|
+
pistol
|
|
1333
|
+
pitch
|
|
1334
|
+
pizza
|
|
1335
|
+
place
|
|
1336
|
+
planet
|
|
1337
|
+
plastic
|
|
1338
|
+
plate
|
|
1339
|
+
play
|
|
1340
|
+
please
|
|
1341
|
+
pledge
|
|
1342
|
+
pluck
|
|
1343
|
+
plug
|
|
1344
|
+
plunge
|
|
1345
|
+
poem
|
|
1346
|
+
poet
|
|
1347
|
+
point
|
|
1348
|
+
polar
|
|
1349
|
+
pole
|
|
1350
|
+
police
|
|
1351
|
+
pond
|
|
1352
|
+
pony
|
|
1353
|
+
pool
|
|
1354
|
+
popular
|
|
1355
|
+
portion
|
|
1356
|
+
position
|
|
1357
|
+
possible
|
|
1358
|
+
post
|
|
1359
|
+
potato
|
|
1360
|
+
pottery
|
|
1361
|
+
poverty
|
|
1362
|
+
powder
|
|
1363
|
+
power
|
|
1364
|
+
practice
|
|
1365
|
+
praise
|
|
1366
|
+
predict
|
|
1367
|
+
prefer
|
|
1368
|
+
prepare
|
|
1369
|
+
present
|
|
1370
|
+
pretty
|
|
1371
|
+
prevent
|
|
1372
|
+
price
|
|
1373
|
+
pride
|
|
1374
|
+
primary
|
|
1375
|
+
print
|
|
1376
|
+
priority
|
|
1377
|
+
prison
|
|
1378
|
+
private
|
|
1379
|
+
prize
|
|
1380
|
+
problem
|
|
1381
|
+
process
|
|
1382
|
+
produce
|
|
1383
|
+
profit
|
|
1384
|
+
program
|
|
1385
|
+
project
|
|
1386
|
+
promote
|
|
1387
|
+
proof
|
|
1388
|
+
property
|
|
1389
|
+
prosper
|
|
1390
|
+
protect
|
|
1391
|
+
proud
|
|
1392
|
+
provide
|
|
1393
|
+
public
|
|
1394
|
+
pudding
|
|
1395
|
+
pull
|
|
1396
|
+
pulp
|
|
1397
|
+
pulse
|
|
1398
|
+
pumpkin
|
|
1399
|
+
punch
|
|
1400
|
+
pupil
|
|
1401
|
+
puppy
|
|
1402
|
+
purchase
|
|
1403
|
+
purity
|
|
1404
|
+
purpose
|
|
1405
|
+
purse
|
|
1406
|
+
push
|
|
1407
|
+
put
|
|
1408
|
+
puzzle
|
|
1409
|
+
pyramid
|
|
1410
|
+
quality
|
|
1411
|
+
quantum
|
|
1412
|
+
quarter
|
|
1413
|
+
question
|
|
1414
|
+
quick
|
|
1415
|
+
quit
|
|
1416
|
+
quiz
|
|
1417
|
+
quote
|
|
1418
|
+
rabbit
|
|
1419
|
+
raccoon
|
|
1420
|
+
race
|
|
1421
|
+
rack
|
|
1422
|
+
radar
|
|
1423
|
+
radio
|
|
1424
|
+
rail
|
|
1425
|
+
rain
|
|
1426
|
+
raise
|
|
1427
|
+
rally
|
|
1428
|
+
ramp
|
|
1429
|
+
ranch
|
|
1430
|
+
random
|
|
1431
|
+
range
|
|
1432
|
+
rapid
|
|
1433
|
+
rare
|
|
1434
|
+
rate
|
|
1435
|
+
rather
|
|
1436
|
+
raven
|
|
1437
|
+
raw
|
|
1438
|
+
razor
|
|
1439
|
+
ready
|
|
1440
|
+
real
|
|
1441
|
+
reason
|
|
1442
|
+
rebel
|
|
1443
|
+
rebuild
|
|
1444
|
+
recall
|
|
1445
|
+
receive
|
|
1446
|
+
recipe
|
|
1447
|
+
record
|
|
1448
|
+
recycle
|
|
1449
|
+
reduce
|
|
1450
|
+
reflect
|
|
1451
|
+
reform
|
|
1452
|
+
refuse
|
|
1453
|
+
region
|
|
1454
|
+
regret
|
|
1455
|
+
regular
|
|
1456
|
+
reject
|
|
1457
|
+
relax
|
|
1458
|
+
release
|
|
1459
|
+
relief
|
|
1460
|
+
rely
|
|
1461
|
+
remain
|
|
1462
|
+
remember
|
|
1463
|
+
remind
|
|
1464
|
+
remove
|
|
1465
|
+
render
|
|
1466
|
+
renew
|
|
1467
|
+
rent
|
|
1468
|
+
reopen
|
|
1469
|
+
repair
|
|
1470
|
+
repeat
|
|
1471
|
+
replace
|
|
1472
|
+
report
|
|
1473
|
+
require
|
|
1474
|
+
rescue
|
|
1475
|
+
resemble
|
|
1476
|
+
resist
|
|
1477
|
+
resource
|
|
1478
|
+
response
|
|
1479
|
+
result
|
|
1480
|
+
retire
|
|
1481
|
+
retreat
|
|
1482
|
+
return
|
|
1483
|
+
reunion
|
|
1484
|
+
reveal
|
|
1485
|
+
review
|
|
1486
|
+
reward
|
|
1487
|
+
rhythm
|
|
1488
|
+
rib
|
|
1489
|
+
ribbon
|
|
1490
|
+
rice
|
|
1491
|
+
rich
|
|
1492
|
+
ride
|
|
1493
|
+
ridge
|
|
1494
|
+
rifle
|
|
1495
|
+
right
|
|
1496
|
+
rigid
|
|
1497
|
+
ring
|
|
1498
|
+
riot
|
|
1499
|
+
ripple
|
|
1500
|
+
risk
|
|
1501
|
+
ritual
|
|
1502
|
+
rival
|
|
1503
|
+
river
|
|
1504
|
+
road
|
|
1505
|
+
roast
|
|
1506
|
+
robot
|
|
1507
|
+
robust
|
|
1508
|
+
rocket
|
|
1509
|
+
romance
|
|
1510
|
+
roof
|
|
1511
|
+
rookie
|
|
1512
|
+
room
|
|
1513
|
+
rose
|
|
1514
|
+
rotate
|
|
1515
|
+
rough
|
|
1516
|
+
round
|
|
1517
|
+
route
|
|
1518
|
+
royal
|
|
1519
|
+
rubber
|
|
1520
|
+
rude
|
|
1521
|
+
rug
|
|
1522
|
+
rule
|
|
1523
|
+
run
|
|
1524
|
+
runway
|
|
1525
|
+
rural
|
|
1526
|
+
sad
|
|
1527
|
+
saddle
|
|
1528
|
+
sadness
|
|
1529
|
+
safe
|
|
1530
|
+
sail
|
|
1531
|
+
salad
|
|
1532
|
+
salmon
|
|
1533
|
+
salon
|
|
1534
|
+
salt
|
|
1535
|
+
salute
|
|
1536
|
+
same
|
|
1537
|
+
sample
|
|
1538
|
+
sand
|
|
1539
|
+
satisfy
|
|
1540
|
+
satoshi
|
|
1541
|
+
sauce
|
|
1542
|
+
sausage
|
|
1543
|
+
save
|
|
1544
|
+
say
|
|
1545
|
+
scale
|
|
1546
|
+
scan
|
|
1547
|
+
scare
|
|
1548
|
+
scatter
|
|
1549
|
+
scene
|
|
1550
|
+
scheme
|
|
1551
|
+
school
|
|
1552
|
+
science
|
|
1553
|
+
scissors
|
|
1554
|
+
scorpion
|
|
1555
|
+
scout
|
|
1556
|
+
scrap
|
|
1557
|
+
screen
|
|
1558
|
+
script
|
|
1559
|
+
scrub
|
|
1560
|
+
sea
|
|
1561
|
+
search
|
|
1562
|
+
season
|
|
1563
|
+
seat
|
|
1564
|
+
second
|
|
1565
|
+
secret
|
|
1566
|
+
section
|
|
1567
|
+
security
|
|
1568
|
+
seed
|
|
1569
|
+
seek
|
|
1570
|
+
segment
|
|
1571
|
+
select
|
|
1572
|
+
sell
|
|
1573
|
+
seminar
|
|
1574
|
+
senior
|
|
1575
|
+
sense
|
|
1576
|
+
sentence
|
|
1577
|
+
series
|
|
1578
|
+
service
|
|
1579
|
+
session
|
|
1580
|
+
settle
|
|
1581
|
+
setup
|
|
1582
|
+
seven
|
|
1583
|
+
shadow
|
|
1584
|
+
shaft
|
|
1585
|
+
shallow
|
|
1586
|
+
share
|
|
1587
|
+
shed
|
|
1588
|
+
shell
|
|
1589
|
+
sheriff
|
|
1590
|
+
shield
|
|
1591
|
+
shift
|
|
1592
|
+
shine
|
|
1593
|
+
ship
|
|
1594
|
+
shiver
|
|
1595
|
+
shock
|
|
1596
|
+
shoe
|
|
1597
|
+
shoot
|
|
1598
|
+
shop
|
|
1599
|
+
short
|
|
1600
|
+
shoulder
|
|
1601
|
+
shove
|
|
1602
|
+
shrimp
|
|
1603
|
+
shrug
|
|
1604
|
+
shuffle
|
|
1605
|
+
shy
|
|
1606
|
+
sibling
|
|
1607
|
+
sick
|
|
1608
|
+
side
|
|
1609
|
+
siege
|
|
1610
|
+
sight
|
|
1611
|
+
sign
|
|
1612
|
+
silent
|
|
1613
|
+
silk
|
|
1614
|
+
silly
|
|
1615
|
+
silver
|
|
1616
|
+
similar
|
|
1617
|
+
simple
|
|
1618
|
+
since
|
|
1619
|
+
sing
|
|
1620
|
+
siren
|
|
1621
|
+
sister
|
|
1622
|
+
situate
|
|
1623
|
+
six
|
|
1624
|
+
size
|
|
1625
|
+
skate
|
|
1626
|
+
sketch
|
|
1627
|
+
ski
|
|
1628
|
+
skill
|
|
1629
|
+
skin
|
|
1630
|
+
skirt
|
|
1631
|
+
skull
|
|
1632
|
+
slab
|
|
1633
|
+
slam
|
|
1634
|
+
sleep
|
|
1635
|
+
slender
|
|
1636
|
+
slice
|
|
1637
|
+
slide
|
|
1638
|
+
slight
|
|
1639
|
+
slim
|
|
1640
|
+
slogan
|
|
1641
|
+
slot
|
|
1642
|
+
slow
|
|
1643
|
+
slush
|
|
1644
|
+
small
|
|
1645
|
+
smart
|
|
1646
|
+
smile
|
|
1647
|
+
smoke
|
|
1648
|
+
smooth
|
|
1649
|
+
snack
|
|
1650
|
+
snake
|
|
1651
|
+
snap
|
|
1652
|
+
sniff
|
|
1653
|
+
snow
|
|
1654
|
+
soap
|
|
1655
|
+
soccer
|
|
1656
|
+
social
|
|
1657
|
+
sock
|
|
1658
|
+
soda
|
|
1659
|
+
soft
|
|
1660
|
+
solar
|
|
1661
|
+
soldier
|
|
1662
|
+
solid
|
|
1663
|
+
solution
|
|
1664
|
+
solve
|
|
1665
|
+
someone
|
|
1666
|
+
song
|
|
1667
|
+
soon
|
|
1668
|
+
sorry
|
|
1669
|
+
sort
|
|
1670
|
+
soul
|
|
1671
|
+
sound
|
|
1672
|
+
soup
|
|
1673
|
+
source
|
|
1674
|
+
south
|
|
1675
|
+
space
|
|
1676
|
+
spare
|
|
1677
|
+
spatial
|
|
1678
|
+
spawn
|
|
1679
|
+
speak
|
|
1680
|
+
special
|
|
1681
|
+
speed
|
|
1682
|
+
spell
|
|
1683
|
+
spend
|
|
1684
|
+
sphere
|
|
1685
|
+
spice
|
|
1686
|
+
spider
|
|
1687
|
+
spike
|
|
1688
|
+
spin
|
|
1689
|
+
spirit
|
|
1690
|
+
split
|
|
1691
|
+
spoil
|
|
1692
|
+
sponsor
|
|
1693
|
+
spoon
|
|
1694
|
+
sport
|
|
1695
|
+
spot
|
|
1696
|
+
spray
|
|
1697
|
+
spread
|
|
1698
|
+
spring
|
|
1699
|
+
spy
|
|
1700
|
+
square
|
|
1701
|
+
squeeze
|
|
1702
|
+
squirrel
|
|
1703
|
+
stable
|
|
1704
|
+
stadium
|
|
1705
|
+
staff
|
|
1706
|
+
stage
|
|
1707
|
+
stairs
|
|
1708
|
+
stamp
|
|
1709
|
+
stand
|
|
1710
|
+
start
|
|
1711
|
+
state
|
|
1712
|
+
stay
|
|
1713
|
+
steak
|
|
1714
|
+
steel
|
|
1715
|
+
stem
|
|
1716
|
+
step
|
|
1717
|
+
stereo
|
|
1718
|
+
stick
|
|
1719
|
+
still
|
|
1720
|
+
sting
|
|
1721
|
+
stock
|
|
1722
|
+
stomach
|
|
1723
|
+
stone
|
|
1724
|
+
stool
|
|
1725
|
+
story
|
|
1726
|
+
stove
|
|
1727
|
+
strategy
|
|
1728
|
+
street
|
|
1729
|
+
strike
|
|
1730
|
+
strong
|
|
1731
|
+
struggle
|
|
1732
|
+
student
|
|
1733
|
+
stuff
|
|
1734
|
+
stumble
|
|
1735
|
+
style
|
|
1736
|
+
subject
|
|
1737
|
+
submit
|
|
1738
|
+
subway
|
|
1739
|
+
success
|
|
1740
|
+
such
|
|
1741
|
+
sudden
|
|
1742
|
+
suffer
|
|
1743
|
+
sugar
|
|
1744
|
+
suggest
|
|
1745
|
+
suit
|
|
1746
|
+
summer
|
|
1747
|
+
sun
|
|
1748
|
+
sunny
|
|
1749
|
+
sunset
|
|
1750
|
+
super
|
|
1751
|
+
supply
|
|
1752
|
+
supreme
|
|
1753
|
+
sure
|
|
1754
|
+
surface
|
|
1755
|
+
surge
|
|
1756
|
+
surprise
|
|
1757
|
+
surround
|
|
1758
|
+
survey
|
|
1759
|
+
suspect
|
|
1760
|
+
sustain
|
|
1761
|
+
swallow
|
|
1762
|
+
swamp
|
|
1763
|
+
swap
|
|
1764
|
+
swarm
|
|
1765
|
+
swear
|
|
1766
|
+
sweet
|
|
1767
|
+
swift
|
|
1768
|
+
swim
|
|
1769
|
+
swing
|
|
1770
|
+
switch
|
|
1771
|
+
sword
|
|
1772
|
+
symbol
|
|
1773
|
+
symptom
|
|
1774
|
+
syrup
|
|
1775
|
+
system
|
|
1776
|
+
table
|
|
1777
|
+
tackle
|
|
1778
|
+
tag
|
|
1779
|
+
tail
|
|
1780
|
+
talent
|
|
1781
|
+
talk
|
|
1782
|
+
tank
|
|
1783
|
+
tape
|
|
1784
|
+
target
|
|
1785
|
+
task
|
|
1786
|
+
taste
|
|
1787
|
+
tattoo
|
|
1788
|
+
taxi
|
|
1789
|
+
teach
|
|
1790
|
+
team
|
|
1791
|
+
tell
|
|
1792
|
+
ten
|
|
1793
|
+
tenant
|
|
1794
|
+
tennis
|
|
1795
|
+
tent
|
|
1796
|
+
term
|
|
1797
|
+
test
|
|
1798
|
+
text
|
|
1799
|
+
thank
|
|
1800
|
+
that
|
|
1801
|
+
theme
|
|
1802
|
+
then
|
|
1803
|
+
theory
|
|
1804
|
+
there
|
|
1805
|
+
they
|
|
1806
|
+
thing
|
|
1807
|
+
this
|
|
1808
|
+
thought
|
|
1809
|
+
three
|
|
1810
|
+
thrive
|
|
1811
|
+
throw
|
|
1812
|
+
thumb
|
|
1813
|
+
thunder
|
|
1814
|
+
ticket
|
|
1815
|
+
tide
|
|
1816
|
+
tiger
|
|
1817
|
+
tilt
|
|
1818
|
+
timber
|
|
1819
|
+
time
|
|
1820
|
+
tiny
|
|
1821
|
+
tip
|
|
1822
|
+
tired
|
|
1823
|
+
tissue
|
|
1824
|
+
title
|
|
1825
|
+
toast
|
|
1826
|
+
tobacco
|
|
1827
|
+
today
|
|
1828
|
+
toddler
|
|
1829
|
+
toe
|
|
1830
|
+
together
|
|
1831
|
+
toilet
|
|
1832
|
+
token
|
|
1833
|
+
tomato
|
|
1834
|
+
tomorrow
|
|
1835
|
+
tone
|
|
1836
|
+
tongue
|
|
1837
|
+
tonight
|
|
1838
|
+
tool
|
|
1839
|
+
tooth
|
|
1840
|
+
top
|
|
1841
|
+
topic
|
|
1842
|
+
topple
|
|
1843
|
+
torch
|
|
1844
|
+
tornado
|
|
1845
|
+
tortoise
|
|
1846
|
+
toss
|
|
1847
|
+
total
|
|
1848
|
+
tourist
|
|
1849
|
+
toward
|
|
1850
|
+
tower
|
|
1851
|
+
town
|
|
1852
|
+
toy
|
|
1853
|
+
track
|
|
1854
|
+
trade
|
|
1855
|
+
traffic
|
|
1856
|
+
tragic
|
|
1857
|
+
train
|
|
1858
|
+
transfer
|
|
1859
|
+
trap
|
|
1860
|
+
trash
|
|
1861
|
+
travel
|
|
1862
|
+
tray
|
|
1863
|
+
treat
|
|
1864
|
+
tree
|
|
1865
|
+
trend
|
|
1866
|
+
trial
|
|
1867
|
+
tribe
|
|
1868
|
+
trick
|
|
1869
|
+
trigger
|
|
1870
|
+
trim
|
|
1871
|
+
trip
|
|
1872
|
+
trophy
|
|
1873
|
+
trouble
|
|
1874
|
+
truck
|
|
1875
|
+
true
|
|
1876
|
+
truly
|
|
1877
|
+
trumpet
|
|
1878
|
+
trust
|
|
1879
|
+
truth
|
|
1880
|
+
try
|
|
1881
|
+
tube
|
|
1882
|
+
tuition
|
|
1883
|
+
tumble
|
|
1884
|
+
tuna
|
|
1885
|
+
tunnel
|
|
1886
|
+
turkey
|
|
1887
|
+
turn
|
|
1888
|
+
turtle
|
|
1889
|
+
twelve
|
|
1890
|
+
twenty
|
|
1891
|
+
twice
|
|
1892
|
+
twin
|
|
1893
|
+
twist
|
|
1894
|
+
two
|
|
1895
|
+
type
|
|
1896
|
+
typical
|
|
1897
|
+
ugly
|
|
1898
|
+
umbrella
|
|
1899
|
+
unable
|
|
1900
|
+
unaware
|
|
1901
|
+
uncle
|
|
1902
|
+
uncover
|
|
1903
|
+
under
|
|
1904
|
+
undo
|
|
1905
|
+
unfair
|
|
1906
|
+
unfold
|
|
1907
|
+
unhappy
|
|
1908
|
+
uniform
|
|
1909
|
+
unique
|
|
1910
|
+
unit
|
|
1911
|
+
universe
|
|
1912
|
+
unknown
|
|
1913
|
+
unlock
|
|
1914
|
+
until
|
|
1915
|
+
unusual
|
|
1916
|
+
unveil
|
|
1917
|
+
update
|
|
1918
|
+
upgrade
|
|
1919
|
+
uphold
|
|
1920
|
+
upon
|
|
1921
|
+
upper
|
|
1922
|
+
upset
|
|
1923
|
+
urban
|
|
1924
|
+
urge
|
|
1925
|
+
usage
|
|
1926
|
+
use
|
|
1927
|
+
used
|
|
1928
|
+
useful
|
|
1929
|
+
useless
|
|
1930
|
+
usual
|
|
1931
|
+
utility
|
|
1932
|
+
vacant
|
|
1933
|
+
vacuum
|
|
1934
|
+
vague
|
|
1935
|
+
valid
|
|
1936
|
+
valley
|
|
1937
|
+
valve
|
|
1938
|
+
van
|
|
1939
|
+
vanish
|
|
1940
|
+
vapor
|
|
1941
|
+
various
|
|
1942
|
+
vast
|
|
1943
|
+
vault
|
|
1944
|
+
vehicle
|
|
1945
|
+
velvet
|
|
1946
|
+
vendor
|
|
1947
|
+
venture
|
|
1948
|
+
venue
|
|
1949
|
+
verb
|
|
1950
|
+
verify
|
|
1951
|
+
version
|
|
1952
|
+
very
|
|
1953
|
+
vessel
|
|
1954
|
+
veteran
|
|
1955
|
+
viable
|
|
1956
|
+
vibrant
|
|
1957
|
+
vicious
|
|
1958
|
+
victory
|
|
1959
|
+
video
|
|
1960
|
+
view
|
|
1961
|
+
village
|
|
1962
|
+
vintage
|
|
1963
|
+
violin
|
|
1964
|
+
virtual
|
|
1965
|
+
virus
|
|
1966
|
+
visa
|
|
1967
|
+
visit
|
|
1968
|
+
visual
|
|
1969
|
+
vital
|
|
1970
|
+
vivid
|
|
1971
|
+
vocal
|
|
1972
|
+
voice
|
|
1973
|
+
void
|
|
1974
|
+
volcano
|
|
1975
|
+
volume
|
|
1976
|
+
vote
|
|
1977
|
+
voyage
|
|
1978
|
+
wage
|
|
1979
|
+
wagon
|
|
1980
|
+
wait
|
|
1981
|
+
walk
|
|
1982
|
+
wall
|
|
1983
|
+
walnut
|
|
1984
|
+
want
|
|
1985
|
+
warfare
|
|
1986
|
+
warm
|
|
1987
|
+
warrior
|
|
1988
|
+
wash
|
|
1989
|
+
wasp
|
|
1990
|
+
waste
|
|
1991
|
+
water
|
|
1992
|
+
wave
|
|
1993
|
+
way
|
|
1994
|
+
wealth
|
|
1995
|
+
weapon
|
|
1996
|
+
wear
|
|
1997
|
+
weasel
|
|
1998
|
+
weather
|
|
1999
|
+
web
|
|
2000
|
+
wedding
|
|
2001
|
+
weekend
|
|
2002
|
+
weird
|
|
2003
|
+
welcome
|
|
2004
|
+
west
|
|
2005
|
+
wet
|
|
2006
|
+
whale
|
|
2007
|
+
what
|
|
2008
|
+
wheat
|
|
2009
|
+
wheel
|
|
2010
|
+
when
|
|
2011
|
+
where
|
|
2012
|
+
whip
|
|
2013
|
+
whisper
|
|
2014
|
+
wide
|
|
2015
|
+
width
|
|
2016
|
+
wife
|
|
2017
|
+
wild
|
|
2018
|
+
will
|
|
2019
|
+
win
|
|
2020
|
+
window
|
|
2021
|
+
wine
|
|
2022
|
+
wing
|
|
2023
|
+
wink
|
|
2024
|
+
winner
|
|
2025
|
+
winter
|
|
2026
|
+
wire
|
|
2027
|
+
wisdom
|
|
2028
|
+
wise
|
|
2029
|
+
wish
|
|
2030
|
+
witness
|
|
2031
|
+
wolf
|
|
2032
|
+
woman
|
|
2033
|
+
wonder
|
|
2034
|
+
wood
|
|
2035
|
+
wool
|
|
2036
|
+
word
|
|
2037
|
+
work
|
|
2038
|
+
world
|
|
2039
|
+
worry
|
|
2040
|
+
worth
|
|
2041
|
+
wrap
|
|
2042
|
+
wreck
|
|
2043
|
+
wrestle
|
|
2044
|
+
wrist
|
|
2045
|
+
write
|
|
2046
|
+
wrong
|
|
2047
|
+
yard
|
|
2048
|
+
year
|
|
2049
|
+
yellow
|
|
2050
|
+
you
|
|
2051
|
+
young
|
|
2052
|
+
youth
|
|
2053
|
+
zebra
|
|
2054
|
+
zero
|
|
2055
|
+
zone
|
|
2056
|
+
zoo`.split(`
|
|
2057
|
+
`));Vc.length;const vb=r=>{const i=new Uint32Array(r);return crypto.getRandomValues(i),[...i].map(s=>s%Vc.length)},bb=(r=3)=>vb(r).map(i=>Vc[i]).join("-"),Sb=(r,i=3)=>`${r}-${bb(i)}`,xb={ServerDescription:{kind:"object",fields:{name:{type:{kind:"string"}},version:{type:{kind:"string"},optional:!0},validating:{type:{kind:"boolean"}},namespaces:{type:{kind:"array",items:{kind:"ref",name:"DescribedNamespace"}}},types:{type:{kind:"record",values:{kind:"ref",name:"TypeNode"}},optional:!0}}},DescribedNamespace:{kind:"object",fields:{name:{type:{kind:"string"}},version:{type:{kind:"string"},optional:!0},className:{type:{kind:"string"},optional:!0},created:{type:{kind:"boolean"}},emitter:{type:{kind:"boolean"}},serialised:{type:{kind:"boolean"},optional:!0},methods:{type:{kind:"array",items:{kind:"ref",name:"DescribedMethod"}}},events:{type:{kind:"array",items:{kind:"ref",name:"DescribedEvent"}}}}},DescribedMethod:{kind:"object",fields:{name:{type:{kind:"string"}},params:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}},optional:!0},paramNames:{type:{kind:"array",items:{kind:"string"}},optional:!0},rest:{type:{kind:"union",options:[{kind:"object",fields:{kind:{type:{kind:"literal",value:"any"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"null"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"boolean"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"number"}},integer:{type:{kind:"boolean"},optional:!0},min:{type:{kind:"number"},optional:!0},max:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"string"}},pattern:{type:{kind:"string"},optional:!0},minLength:{type:{kind:"number"},optional:!0},maxLength:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"bytes"}},maxBytes:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"date"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"literal"}},value:{type:{kind:"union",options:[{kind:"null"},{kind:"string"},{kind:"number"},{kind:"literal",value:!1},{kind:"literal",value:!0}]},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"array"}},items:{type:{kind:"ref",name:"TypeNode"}},maxItems:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"tuple"}},items:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"object"}},fields:{type:{kind:"record",values:{kind:"ref",name:"FieldNode"}}},additional:{type:{kind:"boolean"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"record"}},values:{type:{kind:"ref",name:"TypeNode"}},keyPattern:{type:{kind:"string"},optional:!0},maxEntries:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"union"}},options:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"ref"}},name:{type:{kind:"string"}}}}]},optional:!0},returns:{type:{kind:"union",options:[{kind:"object",fields:{kind:{type:{kind:"literal",value:"any"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"null"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"boolean"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"number"}},integer:{type:{kind:"boolean"},optional:!0},min:{type:{kind:"number"},optional:!0},max:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"string"}},pattern:{type:{kind:"string"},optional:!0},minLength:{type:{kind:"number"},optional:!0},maxLength:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"bytes"}},maxBytes:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"date"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"literal"}},value:{type:{kind:"union",options:[{kind:"null"},{kind:"string"},{kind:"number"},{kind:"literal",value:!1},{kind:"literal",value:!0}]},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"array"}},items:{type:{kind:"ref",name:"TypeNode"}},maxItems:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"tuple"}},items:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"object"}},fields:{type:{kind:"record",values:{kind:"ref",name:"FieldNode"}}},additional:{type:{kind:"boolean"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"record"}},values:{type:{kind:"ref",name:"TypeNode"}},keyPattern:{type:{kind:"string"},optional:!0},maxEntries:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"union"}},options:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"ref"}},name:{type:{kind:"string"}}}}]},optional:!0},semantics:{type:{kind:"union",options:[{kind:"literal",value:"query"},{kind:"literal",value:"idempotent-command"},{kind:"literal",value:"non-repeatable-command"}]},optional:!0}}},TypeNode:{kind:"union",options:[{kind:"object",fields:{kind:{type:{kind:"literal",value:"any"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"null"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"boolean"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"number"}},integer:{type:{kind:"boolean"},optional:!0},min:{type:{kind:"number"},optional:!0},max:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"string"}},pattern:{type:{kind:"string"},optional:!0},minLength:{type:{kind:"number"},optional:!0},maxLength:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"bytes"}},maxBytes:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"date"}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"literal"}},value:{type:{kind:"union",options:[{kind:"null"},{kind:"string"},{kind:"number"},{kind:"literal",value:!1},{kind:"literal",value:!0}]},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"array"}},items:{type:{kind:"ref",name:"TypeNode"}},maxItems:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"tuple"}},items:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"object"}},fields:{type:{kind:"record",values:{kind:"ref",name:"FieldNode"}}},additional:{type:{kind:"boolean"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"record"}},values:{type:{kind:"ref",name:"TypeNode"}},keyPattern:{type:{kind:"string"},optional:!0},maxEntries:{type:{kind:"number"},optional:!0}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"union"}},options:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}}}}},{kind:"object",fields:{kind:{type:{kind:"literal",value:"ref"}},name:{type:{kind:"string"}}}}]},FieldNode:{kind:"object",fields:{type:{type:{kind:"ref",name:"TypeNode"}},optional:{type:{kind:"boolean"},optional:!0}}},DescribedEvent:{kind:"object",fields:{name:{type:{kind:"string"}},params:{type:{kind:"array",items:{kind:"ref",name:"TypeNode"}},optional:!0},subscribers:{type:{kind:"number"}}}}},Eb={msgrpc:{methods:{describe:{params:[],returns:{kind:"ref",name:"ServerDescription"}}}}},wb={types:xb,namespaces:Eb};var zm=function(r,i,s){for(var u=arguments.length>2,o=0;o<i.length;o++)s=u?i[o].call(r,s):i[o].call(r);return u?s:void 0},Um=function(r,i,s,u,o,h){function m(ae){if(ae!==void 0&&typeof ae!="function")throw new TypeError("Function expected");return ae}for(var p=u.kind,b=p==="getter"?"get":p==="setter"?"set":"value",S=!i&&r?u.static?r:r.prototype:null,R=i||(S?Object.getOwnPropertyDescriptor(S,u.name):{}),E,H=!1,I=s.length-1;I>=0;I--){var $={};for(var X in u)$[X]=X==="access"?{}:u[X];for(var X in u.access)$.access[X]=u.access[X];$.addInitializer=function(ae){if(H)throw new TypeError("Cannot add initializers after decoration has completed");h.push(m(ae||null))};var re=(0,s[I])(p==="accessor"?{get:R.get,set:R.set}:R[b],$);if(p==="accessor"){if(re===void 0)continue;if(re===null||typeof re!="object")throw new TypeError("Object expected");(E=m(re.get))&&(R.get=E),(E=m(re.set))&&(R.set=E),(E=m(re.init))&&o.unshift(E)}else(E=m(re))&&(p==="field"?o.unshift(E):R[b]=E)}S&&Object.defineProperty(S,u.name,R),H=!0};const pp="msgrpc.",Jt=r=>{switch(r.kind){case"ref":return{...r,name:pp+r.name};case"array":return{...r,items:Jt(r.items)};case"record":return{...r,values:Jt(r.values)};case"tuple":return{...r,items:r.items.map(Jt)};case"union":return{...r,options:r.options.map(Jt)};case"object":return{...r,fields:Object.fromEntries(Object.entries(r.fields).map(([i,s])=>[i,{...s,type:Jt(s.type)}]))};default:return r}},Tb=r=>({...r,params:r.params.map(Jt),...r.rest?{rest:Jt(r.rest)}:{},...r.returns?{returns:Jt(r.returns)}:{}}),rs=wb,Mm={namespace:{...rs.namespaces.msgrpc,methods:Object.fromEntries(Object.entries(rs.namespaces.msgrpc.methods).map(([r,i])=>[r,Tb(i)])),...rs.namespaces.msgrpc.events?{events:Object.fromEntries(Object.entries(rs.namespaces.msgrpc.events).map(([r,i])=>[r,{params:i.params.map(Jt)}]))}:{}},types:Object.fromEntries(Object.entries(rs.types??{}).map(([r,i])=>[pp+r,Jt(i)]))},_b=r=>r?.namespaces.msgrpc?r:{schema:1,...r,types:{...r?.types,...Mm.types},namespaces:{...r?.namespaces,msgrpc:Mm.namespace}};let Ab=(()=>{var m;let r=[Zm("msgrpc")],i,s=[],u,o=[],h;return m=class{handler=zm(this,o);constructor(b){this.handler=b}async describe(){const b=this.handler.manageRpc,S=this.handler.schema,R=new Set(b.createdInstances.keys()),E=Object.entries(b.exposedNameSpaceInstances).map(([H,I])=>{const $=S?.namespaces[H],re=[...b.findNameSpaceMethodMap(H)?.keys()??[]].sort().map(k=>{const U=$?.methods[k],B=this.handler.semanticsOf({path:H,method:k});return{name:k,...U?{params:U.params,paramNames:U.paramNames,rest:U.rest,returns:U.returns}:{},...B?{semantics:B}:{}}}),ae=new Set(Object.keys($?.events??{}));for(const k of this.handler.eventProxies.values())k.instanceName===H&&ae.add(k.event);const he=[...ae].sort().map(k=>({name:k,...$?.events?.[k]?{params:$.events[k].params}:{},subscribers:[...this.handler.eventProxies.values()].filter(U=>U.instanceName===H&&U.event===k).length})),ue=b.exposedExecution[H];return{name:H,...$?.version?{version:$.version}:{},...ue&&ue!=="parallel"?{serialised:!0}:{},className:I.constructor?.name,created:R.has(H),emitter:I instanceof wc,methods:re,events:he}});return{name:this.handler.name,...S?.version?{version:S.version}:{},validating:!!S&&this.handler.validation!=="off",namespaces:E.sort((H,I)=>H.name.localeCompare(I.name)),...S?.types?{types:S.types}:{}}}},u=m,(()=>{const b=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;h=[Nc],Um(m,null,h,{kind:"method",name:"describe",static:!1,private:!1,access:{has:S=>"describe"in S,get:S=>S.describe},metadata:b},null,o),Um(null,i={value:u},r,{kind:"class",name:u.name,metadata:b},null,s),u=i.value,b&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:b}),zm(u,s)})(),u})();class Nb extends Vl{getTarget;targets=new Map;constructor(i,s){super("",i),this.getTarget=s}async receive(i,s,u){let o;if(this.getTarget&&(o=this.getTarget(u)),o||(o=this.targetExists(u)),o||(o=super.targetExists(u)),!o)throw this.emit(Xe.unroutable,{source:s,target:u,reason:"no switch target for this peer"}),new Error(`no route to '${u}': nothing here reaches that peer. If it has only just connected, its presence may not have arrived yet - await it before calling.`);await o.receive(i,s,u)}setTarget(i,s){const o=s===void 0?(m=>m.getName())(i):s;this.targets.set(o,i);let h=!1;return()=>{h||(h=!0,this.targets.delete(o))}}setTargets(i){for(const s of i)this.setTarget(s)}targetExists(i,s=0){let u;return this.targets.forEach(o=>{!u&&!o.isTransport()&&o.targetExists(i,s+1)&&(u=o)}),u}}class Ob{rpc;caller;readyFlag=!1;switch;transports=[];peers=new Qm;options={name:"*",transports:[],useMsgPack:!0,readyTimeout:3e4};constructor(i={}){this.options={...this.options,...i},this.rpc=new D0(this.options.name),this.caller=new H0(this.options.name,[],this.options.callTimeout??Jm),this.switch=new Nb([this.rpc,this.caller]);for(const s of[this.rpc,this.caller,this.switch])s.usePeerRegistry(this.peers);this.rpc.authorize=this.options.authorize,this.rpc.requireIdentity=this.options.requireAuthenticatedPeers??!!this.options.authenticate,this.rpc.resolveIdentity=s=>{for(const u of this.transports){const o=u.getIdentity(s);if(o)return o}},this.rpc.schema=this.options.schema,this.rpc.validation=this.options.validation??(this.options.schema?"described":"off"),this.rpc.validateResults=this.options.validateResults??!1,this.rpc.unknownVersion=this.options.unknownVersion??"allow",this.rpc.idempotency=this.options.idempotency,this.rpc.manageRpc.requireExplicitExposure=this.options.requireExplicitExposure??!1,this.options.exposeManagement&&this.rpc.manageRpc.exposeManagement(),this.options.exposeIntrospection&&(this.rpc.manageRpc.exposeClassInstance(new Ab(this.rpc)),this.rpc.schema=_b(this.rpc.schema)),this.starting=this.buildTransports().then(()=>{this.readyFlag=!0},s=>{this.initError=s}),this.init().catch(s=>{this.initError=s,this.emitSafely("initError",s)})}initError;starting=Promise.resolve();configuredTransports(){return this.options.transports}async buildTransport(i){if(i instanceof Vl)return i;if(i.connect){const s=i;return new km(this.options.name,s.connect,[],{...s.path?{path:s.path}:{},...s.credentials?{auth:s.credentials}:{},...s.ca?{ca:s.ca}:{}},!0,s.allowInsecureTls)}}async buildTransports(){const i=yb(this.options.useMsgPack);for(const s of this.configuredTransports()){const u=await this.buildTransport(s);if(!u)throw new Error(`RpcServer '${this.options.name}': no transport can be built from ${JSON.stringify(s)}`);u.codec=i,this.options.relay!==void 0&&"relay"in u&&(u.relay=this.options.relay),this.attach(u)}}attach(i){this.transports.push(i),i.usePeerRegistry(this.peers),i.pipe(this.rpc),i.pipe(this.caller),this.switch?.setTarget(i),i.on(Xe.peerGone,s=>this.safely("peerGone",s,()=>{this.rpc.removePeer(s),this.peers.delete(s),this.relayPresence(i,s,"offline");for(const u of this.transports){const o=u;o.stopWatchingFor&&o.stopWatchingFor(s).catch(h=>this.emitSafely("presenceError",{peer:s,error:h}))}})),i.on(Xe.peerOnline,s=>this.safely("peerOnline",s,()=>this.relayPresence(i,s,"online"))),i.on(Xe.connected,()=>{this.caller.resubscribe().catch(s=>this.emitSafely("resubscribeError",s))})}relayPresence(i,s,u){for(const o of this.transports){if(o===i)continue;const h=o;h.announcePeer&&h.announcePeer(s,u)}this.advertiseReachability()}advertiseReachability(){for(const i of this.transports)i instanceof km&&i.advertise(this.peers.names().filter(s=>s!==this.options.name&&this.peers.get(s)!==i))}emitSafely(i,s){for(const u of this.transports)u.emit(i,s)}safely(i,s,u){try{u()}catch(o){this.emitSafely("presenceError",{what:i,peer:s,error:o})}}async proxy(i,s){await this.ready();const u={name:i};return s&&(u.target=s),u.remote=this.caller.proxy(i,s??"*"),u}async close(){this.caller.failPendingCalls("server closed"),this.caller.subscriptions.clear(),await this.caller.close(),await Promise.all(this.transports.map(i=>i.close())),this.transports=[],this.peers.clear()}exposeClassInstance(i,s,u){this.rpc.manageRpc.exposeClassInstance(i,s,u)}exposeClass(i,s){this.rpc.manageRpc.exposeClass(i,s)}exposeObject(i,s){this.rpc.manageRpc.exposeObject(i,s)}expose(i,s){this.rpc.manageRpc.expose(i,s)}createRpcInstance(i,s,...u){return this.rpc.manageRpc.createRpcInstance(i,s,...u)}addTarget(i,s){this.switch?.setTarget(s)}async init(){}async ready(){await this.starting;const i=()=>this.transports.filter(u=>!u.readyFlag).length==0,s=Date.now()+this.options.readyTimeout;for(;!i()||!this.readyFlag;){const u=this.transports.find(o=>o.startupError!==void 0);if(u&&(this.initError=u.startupError),this.initError!==void 0)throw new Error(`RpcServer '${this.options.name}': could not start: ${this.initError instanceof Error?this.initError.message:String(this.initError)}`,{cause:this.initError});if(this.options.readyTimeout>0&&Date.now()>s){const o=this.transports.filter(h=>!h.readyFlag).map(h=>h.getName());throw new Error(`RpcServer '${this.options.name}': transports not ready within ${this.options.readyTimeout} ms: ${o.join(", ")}`)}await new Promise(o=>setTimeout(o,10))}}async awaitPeer(i,s=5e3){const u=Date.now()+s;for(;;){if(this.peers.get(i))return!0;if(Date.now()>=u)return!1;await new Promise(o=>setTimeout(o,20))}}}const Rm="msgrpc-page-name",kb=()=>{const r=new URLSearchParams(window.location.search).get("name")?.trim();if(r)return r;let i=sessionStorage.getItem(Rm);return i||sessionStorage.setItem(Rm,i=Sb("page")),i},zb=({peer:r,messages:i,onSend:s})=>{const[u,o]=F.useState(""),[h,m]=F.useState(null),[p,b]=F.useState(!1),S=F.useRef(null);F.useEffect(()=>{S.current?.scrollIntoView({block:"end"})},[i.length]);const R=async()=>{!u.trim()||!r||(b(!0),m(await s(u.trim()).finally(()=>b(!1))??null),o(""))};return w.jsxs("div",{className:"chat",children:[w.jsxs("header",{children:[w.jsx("h1",{children:"Chat"}),w.jsx("span",{className:"muted mono",children:r??"—"})]}),!r&&w.jsx("p",{className:"muted",children:"Select a peer to talk to it. Any peer running this console can answer."}),r&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"chat-log",children:[i.length===0&&w.jsxs("p",{className:"muted",children:["Nothing yet. Say something to ",r,"."]}),i.map((E,H)=>w.jsx("div",{className:E.mine?"said mine":"said",children:w.jsx("span",{className:"text",children:E.text})},`${E.at}-${H}`)),w.jsx("div",{ref:S})]}),w.jsxs("div",{className:"chat-send",children:[w.jsx("input",{className:"control",value:u,placeholder:`say something to ${r}`,onChange:E=>o(E.target.value),onKeyDown:E=>{E.key==="Enter"&&R()}}),w.jsx("button",{className:"primary",disabled:p||!u.trim(),onClick:()=>{R()},children:p?"…":"Send"})]}),h&&w.jsx("p",{className:"muted bad",children:h})]})]})};var Lm,Hm,Ym,ta;Ym=[Zm("chat")],Hm=[Nc],Lm=[Nc];class na{constructor(i){cc(ta,5,this);Pd(this,"onMessage");this.onMessage=i}async say(i,s){return this.onMessage(String(i),String(s)),"delivered"}async who(){return{app:"source-rpc console",kind:"browser page"}}}ta=Wd(null),kl(ta,1,"say",Hm,na),kl(ta,1,"who",Lm,na),na=kl(ta,0,"ChatService",Ym,na),cc(ta,1,na);const Ub=1,Mb={chat:{methods:{say:{params:[{kind:"string"},{kind:"string"}],paramNames:["from","text"],returns:{kind:"string"}},who:{params:[],returns:{kind:"object",fields:{app:{type:{kind:"string"}},kind:{type:{kind:"string"}}}}}}}},Rb={schema:Ub,namespaces:Mb},yp=()=>new URL(".",document.baseURI),Cb="console.json",Db=async()=>{const r=await fetch(new URL(Cb,yp()));if(!r.ok)throw new Error(`the console did not say who it is (${r.status})`);return(await r.json()).name},jb=()=>`${yp().pathname}socket.io`,la=(r,i)=>r?.kind==="ref"?la(i?.[r.name],i):r,Ft=r=>{if(!r)return"unknown";switch(r.kind){case"literal":return JSON.stringify(r.value);case"array":return`${Ft(r.items)}[]`;case"tuple":return`[${r.items.map(Ft).join(", ")}]`;case"union":return r.options.map(Ft).join(" | ");case"ref":return r.name;case"object":return`{ ${Object.entries(r.fields).map(([i,s])=>`${i}${s.optional?"?":""}: ${Ft(s.type)}`).join(", ")} }`;case"record":return`{ [key: string]: ${Ft(r.values)} }`;case"number":return r.min!==void 0||r.max!==void 0?`number(${r.min??""}..${r.max??""})`:"number";default:return r.kind}},Hl=r=>r?.kind==="any"||r?.kind==="union"&&r.options.some(i=>i.kind==="literal"&&i.value===null),pi=r=>{if(r?.kind!=="union")return r;const i=r.options.filter(s=>!(s.kind==="literal"&&s.value===null));return i.length===1?i[0]:{...r,options:i}},Gl=r=>{if(r?.kind!=="union")return;const i=r.options.filter(s=>s.kind==="literal").map(s=>s.value);return i.length===r.options.length&&i.length>0?i:void 0},gp=r=>{const i=r.replace(/[\s:]/g,"");if(i.length%2)throw new Error("expected an even number of hex digits");if(i&&!/^[0-9a-fA-F]+$/.test(i))throw new Error("expected hex digits");return Uint8Array.from(i.match(/../g)?.map(s=>parseInt(s,16))??[])},Bb=r=>r.options.find(i=>!(i.kind==="literal"&&i.value===null))??r.options[0],Yl=(r,i,s=0)=>{const u=la(pi(r),i);if(!u||s>4)return null;switch(u.kind){case"number":return u.min??0;case"string":case"bytes":return"";case"boolean":return!1;case"date":return new Date;case"literal":return u.value;case"array":return[];case"record":return{};case"tuple":return u.items.map(o=>Yl(o,i,s+1));case"union":return Yl(Bb(u),i,s+1);case"object":return Object.fromEntries(Object.entries(u.fields).filter(([,o])=>!o.optional).map(([o,h])=>[o,Yl(h.type,i,s+1)]));default:return null}},ia=(r,i,s,u=0)=>{const o=la(i,s);if(!o||r===null||r===void 0||u>8)return r;switch(o.kind){case"date":return typeof r=="string"||typeof r=="number"?new Date(r):r;case"bytes":return typeof r=="string"?gp(r):r;case"array":return Array.isArray(r)?r.map(h=>ia(h,o.items,s,u+1)):r;case"tuple":return Array.isArray(r)?r.map((h,m)=>ia(h,o.items[m],s,u+1)):r;case"object":return typeof r!="object"||Array.isArray(r)?r:Object.fromEntries(Object.entries(r).map(([h,m])=>[h,ia(m,o.fields[h]?.type,s,u+1)]));case"record":return typeof r!="object"||Array.isArray(r)?r:Object.fromEntries(Object.entries(r).map(([h,m])=>[h,ia(m,o.values,s,u+1)]));case"union":{const h=o.options.filter(m=>!(m.kind==="literal"&&m.value===null));return h.length===1?ia(r,h[0],s,u+1):r}default:return r}},qb=(r,i,s)=>{const u=la(pi(i),s),o=r.trim();switch(u?.kind){case"number":{if(o==="")throw new Error("expected a number");const h=Number(o);if(Number.isNaN(h))throw new Error(`${o} is not a number`);return h}case"boolean":return o==="true";case"string":return r;case"date":{const h=new Date(o);if(Number.isNaN(h.getTime()))throw new Error("expected a date");return h}case"bytes":return gp(o);case"literal":return u.value;default:{if(Gl(u)){const m=Gl(u).find(p=>String(p)===o);if(m!==void 0)return m}if(o==="")return;let h;try{h=JSON.parse(o)}catch{throw new Error("expected JSON")}return ia(h,pi(i),s)}}},Lb=(r,i)=>{const s=la(pi(r),i),u=Gl(s);if(u)return String(u[0]);switch(s?.kind){case"number":return String(s.min??0);case"boolean":return"false";case"date":return new Date().toISOString().slice(0,16);case"array":return"[]";case"record":return"{}";case"tuple":case"object":return JSON.stringify(Yl(s,i),null,2);default:return""}},Hb=({name:r,type:i,types:s,state:u,onChange:o})=>{const h=Hl(i),m=la(pi(i),s),p=Gl(m),b=E=>o({...u,text:E}),S=h&&!u.include,R=()=>{if(p)return w.jsx("select",{className:"control",value:u.text,disabled:S,onChange:E=>b(E.target.value),children:p.map(E=>w.jsx("option",{value:String(E),children:String(E)},String(E)))});switch(m?.kind){case"boolean":return w.jsxs("label",{className:"checkbox",children:[w.jsx("input",{type:"checkbox",checked:u.text==="true",disabled:S,onChange:E=>b(String(E.target.checked))}),w.jsx("span",{children:u.text==="true"?"true":"false"})]});case"number":return w.jsx("input",{className:"control",type:"number",value:u.text,disabled:S,min:m.min,max:m.max,step:m.integer?1:"any",onChange:E=>b(E.target.value)});case"date":return w.jsx("input",{className:"control",type:"datetime-local",value:u.text,disabled:S,onChange:E=>b(E.target.value)});case"string":return w.jsx("input",{className:"control",type:"text",value:u.text,disabled:S,onChange:E=>b(E.target.value)});case"bytes":return w.jsx("input",{className:"control mono",type:"text",placeholder:"hex, e.g. 01 ff 2a",value:u.text,disabled:S,onChange:E=>b(E.target.value)});default:return w.jsx("textarea",{className:"control mono",rows:Math.min(12,Math.max(2,u.text.split(`
|
|
2058
|
+
`).length)),placeholder:"JSON",value:u.text,disabled:S,onChange:E=>b(E.target.value)})}};return w.jsxs("div",{className:`field${S?" off":""}`,children:[w.jsxs("div",{className:"field-label",children:[h&&w.jsx("input",{type:"checkbox",className:"include",checked:u.include,title:"send this argument",onChange:E=>o({...u,include:E.target.checked})}),w.jsxs("span",{className:"name",children:[r,h?"?":""]}),w.jsx("span",{className:"type",children:Ft(pi(i))})]}),R()]})},Cm=20,Yb=(r,i,s,u,o)=>{const h=[...o.broker?["--broker",o.broker]:[],...o.hub?["--hub",o.hub]:[],...o.prefix?["--prefix",o.prefix]:[]],m=p=>{const b=typeof p=="string"?p:JSON.stringify(p);return/^[A-Za-z0-9._@/:+-]+$/.test(b??"")?b:`'${String(b).replace(/'/g,"'\\''")}'`};return["msgrpc","call",r,`${i}.${s}`,...u.map(m),...h].join(" ")},vp=(r,i)=>`msgrpc.presets.${r}.${i}`,Xb=(r,i)=>{try{const s=window.localStorage.getItem(vp(r,i));return s?JSON.parse(s):[]}catch{return[]}},Dm=(r,i,s)=>{try{window.localStorage.setItem(vp(r,i),JSON.stringify(s))}catch{}},Gb=r=>{if(!r.length)return 0;const i=[...r].sort((s,u)=>s-u);return i[Math.floor(i.length/2)]},Vb=({peer:r,namespace:i,method:s,types:u,service:o,network:h})=>{const m=s.params??[],p=s.paramNames??m.map((P,de)=>`argument ${de}`),[b,S]=F.useState(!1),[R,E]=F.useState(()=>m.map(P=>({text:Lb(P,u),include:!Hl(P)}))),[H,I]=F.useState(!1),[$,X]=F.useState(null),[re,ae]=F.useState([]),[he,ue]=F.useState(!1),[k,U]=F.useState(()=>Xb(i,s.name)),B=`${s.name}(${s.params?m.map((P,de)=>`${p[de]}${Hl(P)?"?":""}: ${Ft(pi(P))}`).join(", "):"…"})${s.returns?`: ${Ft(s.returns)}`:""}`,j=()=>{const P=m.map((de,G)=>R[G].include?qb(R[G].text,de,u):void 0);for(;P.length&&P[P.length-1]===void 0&&Hl(m[P.length-1]);)P.pop();return P},V=async(P=1)=>{let de;try{de=j()}catch(L){X({ok:!1,text:L.message});return}I(!0),X(null);const G=[];let N=null;try{for(let L=0;L<P;L++){const Z=await o.call(r,i,s.name,de);if(G.push(Z.ms),N=Z.error?{ok:!1,text:`${Z.code?Z.code+": ":""}${Z.error}`}:{ok:!0,text:`${JSON.stringify(Z.result,null,2)??"undefined"}
|
|
2059
|
+
|
|
2060
|
+
// ${Z.ms} ms`},Z.error)break}X(N)}catch(L){X({ok:!1,text:L.message})}finally{ae(L=>[...L,...G].slice(-200)),I(!1)}},ie=()=>{const P=R.map(N=>N.include?N.text:"—").join(", ")||"no arguments",G=[{label:P,texts:R.map(N=>N.text),include:R.map(N=>N.include)},...k.filter(N=>N.label!==P)].slice(0,8);U(G),Dm(i,s.name,G)},te=P=>E(R.map((de,G)=>({text:P.texts[G]??de.text,include:P.include[G]??de.include}))),Ae=P=>{const de=k.filter(G=>G.label!==P);U(de),Dm(i,s.name,de)},Re=()=>{let P;try{P=j()}catch{P=[]}navigator.clipboard?.writeText(Yb(r,i,s.name,P,h)).then(()=>{ue(!0),setTimeout(()=>ue(!1),1500)})};return w.jsxs("div",{className:`method${b?" open":""}`,children:[w.jsxs("button",{className:"method-head",onClick:()=>S(!b),"aria-expanded":b,children:[w.jsx("span",{className:"chevron",children:b?"▾":"▸"}),w.jsx("code",{children:B})]}),b&&w.jsxs("div",{className:"method-body",children:[m.length===0&&w.jsx("p",{className:"muted",children:"No arguments."}),m.map((P,de)=>w.jsx(Hb,{name:p[de],type:P,types:u,state:R[de],onChange:G=>E(R.map((N,L)=>L===de?G:N))},de)),m.length>0&&(k.length>0||R.length>0)&&w.jsxs("div",{className:"presets",children:[k.map(P=>w.jsxs("span",{className:"preset",children:[w.jsx("button",{className:"toggle",onClick:()=>te(P),title:"put these arguments back in the form",children:P.label}),w.jsx("button",{className:"forget",onClick:()=>Ae(P.label),title:"forget this one",children:"×"})]},P.label)),w.jsx("button",{className:"toggle",onClick:ie,title:"keep these arguments for next time",children:"save"})]}),s.rest&&w.jsxs("p",{className:"muted",children:["Takes further ",Ft(s.rest)," arguments, which this form does not send."]}),!s.params&&w.jsx("p",{className:"muted",children:"No schema describes this method, so its arguments cannot be shown as fields."}),w.jsxs("div",{className:"actions",children:[w.jsx("button",{className:"primary",onClick:()=>{V()},disabled:H,children:H?"calling…":"Call"}),w.jsxs("button",{className:"toggle",onClick:()=>{V(Cm)},disabled:H,title:"call it repeatedly and keep the timings",children:["×",Cm]}),w.jsx("button",{className:"toggle",onClick:Re,title:"the command line that makes the same call",children:he?"copied":"copy as CLI"}),re.length>0&&w.jsxs("span",{className:"muted timing",children:[re.length," call",re.length===1?"":"s"," · p50 ",Gb(re)," ms · last ",re[re.length-1]," ms"]})]}),$&&w.jsx("pre",{className:$.ok?"result":"result bad",children:$.text})]})]})},Qb=["POST","SUCCESS","ERROR","EVENT"],bp=500,Kb=r=>r==="POST"?"→":r==="EVENT"?"⇒":"←",jm=r=>`${r.namespace??"?"}.${r.method??r.event??"?"}`,Bm=r=>{if(r.params!==void 0)return JSON.stringify(r.params);if(r.result!==void 0)return JSON.stringify(r.result)},$b=({service:r,selected:i,frames:s,onClear:u,paused:o,onPaused:h,hidden:m})=>{const[p,b]=F.useState(null),[S,R]=F.useState([]),[E,H]=F.useState(!1),[I,$]=F.useState(null),[X,re]=F.useState(!0),[ae,he]=F.useState(!1),[ue,k]=F.useState([]),[U,B]=F.useState(""),[j,V]=F.useState(new Set),ie=F.useRef(null);F.useEffect(()=>{ie.current=p},[p]),F.useEffect(()=>()=>{ie.current&&r?.untap(ie.current)},[r]);const te=async()=>{if(r){H(!0),$(null);try{const G={payloads:X,...ae&&i?{peer:i}:{},...ue.length?{kinds:ue}:{}},N=await r.tap(G);b(N.token),R(N.sources),N.sources.length||$("Nothing here can watch traffic: no broker exposing a bus, and no MQTT link.")}catch(G){$(G.message)}finally{H(!1)}}},Ae=async()=>{if(!(!r||!p)){H(!0);try{await r.untap(p)}catch{}finally{b(null),R([]),H(!1)}}},Re=G=>k(N=>N.includes(G)?N.filter(L=>L!==G):[...N,G]),P=U.trim().toLowerCase(),de=s.filter(G=>!P||`${G.source} ${G.target} ${jm(G)} ${Bm(G)??""}`.toLowerCase().includes(P)).slice(0,bp);return w.jsxs("div",{className:m?"traffic hidden":"traffic",children:[w.jsxs("header",{children:[w.jsx("h1",{children:"Traffic"}),w.jsxs("div",{className:"traffic-actions",children:[s.length>0&&w.jsx("button",{className:"toggle",onClick:u,children:"clear"}),p&&w.jsx("button",{className:o?"toggle on":"toggle",onClick:()=>h(!o),children:o?"paused":"pause"}),w.jsx("button",{className:p?"toggle on":"toggle",onClick:()=>{p?Ae():te()},disabled:E||!r,children:E?"…":p?"tapping":"tap"})]})]}),!p&&w.jsxs("div",{className:"tap-setup",children:[w.jsxs("label",{className:"checkbox",children:[w.jsx("input",{type:"checkbox",checked:X,onChange:G=>re(G.target.checked)}),"arguments and results"]}),w.jsxs("label",{className:"checkbox",children:[w.jsx("input",{type:"checkbox",checked:ae,disabled:!i,onChange:G=>he(G.target.checked)}),"only ",i??"the selected peer"]}),w.jsxs("div",{className:"kinds",children:[Qb.map(G=>w.jsx("button",{className:ue.includes(G)?"toggle on":"toggle",onClick:()=>Re(G),children:G},G)),ue.length===0&&w.jsx("span",{className:"muted",children:"all kinds"})]}),w.jsx("p",{className:"muted",children:"Watches what other peers say to each other. It costs something at the other end, so it is off until asked and stops when this tab does."})]}),I&&w.jsx("p",{className:"bad",children:I}),p&&S.length>0&&w.jsxs("p",{className:"muted tap-where",children:["watching via ",w.jsx("span",{className:"mono",children:S.join(", ")}),o&&" · paused"]}),p&&w.jsx("input",{className:"control",placeholder:"filter by peer, method or payload",value:U,onChange:G=>B(G.target.value)}),p&&s.length===0&&w.jsx("p",{className:"muted",children:"Nothing has crossed yet."}),de.map((G,N)=>{const L=Bm(G),Z=j.has(G.at*1e3+N),me=G.at*1e3+N;return w.jsxs("div",{className:`frame ${G.kind.toLowerCase()}`,children:[w.jsxs("div",{className:"frame-head",children:[w.jsx("time",{children:new Date(G.at).toLocaleTimeString()}),w.jsx("span",{className:"arrow",children:Kb(G.kind)}),w.jsxs("span",{className:"mono peers",children:[G.source," → ",G.target]}),w.jsx("code",{children:jm(G)}),G.ms!==void 0&&w.jsxs("span",{className:"muted ms",children:[G.ms," ms"]}),G.code&&w.jsx("span",{className:"code",children:G.code})]}),G.error&&w.jsx("p",{className:"frame-error",children:G.error}),L&&w.jsx("pre",{className:Z?"frame-payload open":"frame-payload",onClick:()=>V(Te=>{const v=new Set(Te);return v.has(me)?v.delete(me):v.add(me),v}),children:L})]},`${G.at}-${N}`)})]})},Zb=bp,Jb={rejected:"refused before it reached the RPC layer",unroutable:"nowhere to deliver it",peerDisplaced:"two peers are answering to one name",transportError:"the link itself failed"},Fb=({problems:r,onClear:i})=>w.jsxs("div",{className:"problems",children:[w.jsxs("header",{children:[w.jsx("h1",{children:"Problems"}),r.length>0&&w.jsx("button",{className:"toggle",onClick:i,children:"clear"})]}),r.length===0&&w.jsx("p",{className:"muted",children:"Nothing refused, undeliverable or displaced. This is where a call that never comes back says why."}),r.map((s,u)=>w.jsxs("div",{className:`problem ${s.kind}`,children:[w.jsxs("div",{className:"problem-head",children:[w.jsx("time",{children:new Date(s.at).toLocaleTimeString()}),w.jsx("span",{className:"kind",children:s.kind}),w.jsxs("span",{className:"muted link",children:["on ",s.link]})]}),w.jsxs("div",{className:"problem-body",children:[s.peer&&w.jsxs("code",{className:"mono",children:[s.peer,s.target?` → ${s.target}`:""]}),w.jsx("p",{children:s.reason??Jb[s.kind]??""})]})]},`${s.at}-${u}`))]}),Wb=3,Ib=({changes:r,onClear:i})=>{const s=new Map;for(const o of r)o.state==="online"&&s.set(o.peer,(s.get(o.peer)??0)+1);const u=[...s.entries()].filter(([,o])=>o>=Wb).sort((o,h)=>h[1]-o[1]);return w.jsxs("div",{className:"presence",children:[w.jsxs("header",{children:[w.jsx("h1",{children:"Presence"}),r.length>0&&w.jsx("button",{className:"toggle",onClick:i,children:"clear"})]}),u.length>0&&w.jsx("div",{className:"flapping",children:u.map(([o,h])=>w.jsxs("p",{children:[w.jsx("span",{className:"mono",children:o})," has arrived ",h," times"]},o))}),r.length===0&&w.jsx("p",{className:"muted",children:"Nobody has arrived or left since this console started."}),r.map((o,h)=>w.jsxs("div",{className:`coming ${o.state}`,children:[w.jsx("time",{children:new Date(o.at).toLocaleTimeString()}),w.jsx("span",{className:"mark",children:o.state==="online"?"+":"−"}),w.jsx("span",{className:"mono",children:o.peer}),o.link&&o.link!=="this console"&&w.jsx("span",{className:"muted link",children:o.link})]},`${o.at}-${h}`))]})},qm=3,Pb=()=>{const[r,i]=F.useState(null),[s,u]=F.useState(""),[o,h]=F.useState("connecting"),m=F.useRef(null),p=F.useRef(null),b=F.useRef(null),S=F.useRef(null),R=F.useRef(null),E=F.useRef(null);return F.useEffect(()=>{let H,I=0,$=!1;const X=()=>{H?.close()};window.addEventListener("pagehide",X);const re=async()=>{try{const ae=await Db(),he=kb();u(he),H=new Ob({name:he,transports:[{connect:window.location.origin,path:jb()}],readyTimeout:1e4,schema:Rb,exposeIntrospection:!0}),H.exposeClassInstance(new na((j,V)=>b.current?.(j,V)));const ue=H.transports[0];ue?.on(Xe.disconnected,()=>h("reconnecting")),ue?.on(Xe.connected,()=>h("connected")),await H.ready();for(const j of H.transports)j.on(Xe.disconnected,()=>h("reconnecting")),j.on(Xe.connected,()=>h("connected"));E.current=H;const k=await H.proxy("console",ae);await k.remote.on("event",j=>m.current?.(j)),await k.remote.on("peer",j=>{const V=j;p.current?.(V.peer,V.state,V)}),await k.remote.on("frame",j=>S.current?.(j)),await k.remote.on("problem",j=>R.current?.(j));const U=k.remote,{callTimeout:B}=await U.peers();B&&(H.caller.callTimeout=B+5e3),i(U),h("connected")}catch(ae){if($)return;if(await H?.close().catch(()=>{}),H=void 0,++I<=qm){h(`cannot reach the console, trying again (${I}/${qm})`),await new Promise(he=>setTimeout(he,I*1e3)),$||await re();return}h(`cannot reach the console: ${ae.message}`)}};return re(),()=>{$=!0,window.removeEventListener("pagehide",X),H?.close()}},[]),{service:r,status:o,me:s,events:m,peerChange:p,said:b,frames:S,problems:R,peer:E}},e1=(r,i)=>{const s=new Blob([r.map(h=>JSON.stringify(h)).join(`
|
|
2061
|
+
`)+`
|
|
2062
|
+
`],{type:"application/x-ndjson"}),u=URL.createObjectURL(s),o=document.createElement("a");o.href=u,o.download=i,o.click(),URL.revokeObjectURL(u)},t1=()=>{const{service:r,status:i,me:s,events:u,peerChange:o,said:h,frames:m,problems:p,peer:b}=Pb(),[S,R]=F.useState({}),[E,H]=F.useState([]),[I,$]=F.useState(new Set),[X,re]=F.useState(null),[ae,he]=F.useState(null),[ue,k]=F.useState(new Set),[U,B]=F.useState([]),[j,V]=F.useState("events"),[ie,te]=F.useState([]),[Ae,Re]=F.useState(!1),[P,de]=F.useState([]),[G,N]=F.useState({}),[L,Z]=F.useState({}),[me,Te]=F.useState({}),[v,C]=F.useState([]),[Y,K]=F.useState(""),[ne,fe]=F.useState(!1),be=F.useCallback(async()=>{if(!r)return;const q=await r.peers();H(q.peers),k(new Set(q.watching)),N(q.links??{}),Z(q.network??{}),Te(q.roles??{})},[r]);F.useEffect(()=>{s&&(document.title=s)},[s]),F.useEffect(()=>{h.current=(q,se)=>R(Ze=>({...Ze,[q]:[...Ze[q]??[],{from:q,text:se,at:Date.now(),mine:!1}]}))},[h]);const Ie=async q=>{if(!b.current||!X)return"not connected";R(se=>({...se,[X]:[...se[X]??[],{from:s,text:q,at:Date.now(),mine:!0}]}));try{await(await b.current.proxy("chat",X)).remote.say(s,q);return}catch(se){return`${X} did not take it: ${se.message??String(se)}`}};F.useEffect(()=>{be(),u.current=q=>{ne||B(se=>[q,...se].slice(0,500))},o.current=(q,se,Ze)=>{$(bn=>{const Vt=new Set(bn);return se==="offline"?Vt.add(q):Vt.delete(q),Vt}),C(bn=>[Ze,...bn].slice(0,200)),be()}},[r,be,u,o,ne]),F.useEffect(()=>{m.current=q=>{Ae||te(se=>[q,...se].slice(0,Zb))}},[m,Ae]),F.useEffect(()=>{p.current=q=>de(se=>[q,...se].slice(0,200)),r&&r.problems().then(({problems:q})=>de(q)).catch(()=>{}),r&&r.presence().then(({changes:q})=>C(q)).catch(()=>{})},[r,p]);const Be=async q=>{re(q),he(null),r&&(he(await r.describe(q)),await be())},$n=async(q,se)=>{if(!(!r||!X)){for(const Ze of se){if(ue.has(`${X}/${q}/${Ze.name}`))continue;(await r.watch(X,q,Ze.name)).watching&&k(Vt=>new Set(Vt).add(`${X}/${q}/${Ze.name}`))}he(await r.describe(X))}},yi=async(q,se)=>{if(!r||!X)return;const Ze=`${X}/${q}/${se.name}`,bn=ue.has(Ze)?await r.unwatch(X,q,se.name):await r.watch(X,q,se.name);k(Vt=>{const Jn=new Set(Vt);return bn.watching?Jn.add(Ze):Jn.delete(Ze),Jn}),X&&he(await r.describe(X))},Zn=ae&&"error"in ae?ae:null,Gt=ae&&!("error"in ae)?ae:null;return w.jsxs("div",{className:"app",children:[w.jsxs("aside",{children:[w.jsxs("div",{className:"identity",children:[w.jsx("span",{className:"muted",children:"this page is"}),w.jsx("span",{className:"mono name",title:"the peer name this page serves and calls under",children:s||"…"})]}),w.jsxs("header",{children:[w.jsx("h1",{children:"Peers"}),w.jsx("span",{className:`status ${i==="connected"?"ok":"warn"}`,children:i})]}),E.length===0&&w.jsx("p",{className:"muted",children:"Waiting for a peer to announce itself…"}),E.map(q=>w.jsxs("button",{className:`peer${q===X?" selected":""}`,onClick:()=>{Be(q)},children:[w.jsx("span",{className:`dot${I.has(q)?" off":""}`}),q,q===s&&w.jsx("span",{className:"you",children:"you"}),me[q]&&w.jsx("span",{className:`role ${me[q]}`,children:me[q]==="undescribed"?"no contract":me[q]}),G[q]&&G[q]!=="this console"&&w.jsx("span",{className:"link",children:G[q]})]},q))]}),w.jsxs("main",{children:[!X&&w.jsx("p",{className:"muted",children:"Select a peer to see what it exposes."}),X&&!ae&&w.jsxs("p",{className:"muted",children:["Describing ",X,"…"]}),Zn&&w.jsxs("div",{className:"notice",children:[w.jsx("strong",{children:Zn.code??"Error"}),w.jsx("p",{children:Zn.error}),w.jsx("p",{className:"muted",children:"A server answers this only when it is started with exposeIntrospection."})]}),Gt&&w.jsxs(w.Fragment,{children:[w.jsxs("header",{className:"peer-head",children:[w.jsx("h1",{children:Gt.name}),w.jsxs("span",{className:"muted",children:[Gt.version?`contract ${Gt.version} · `:"",Gt.validating?"arguments checked":"arguments not checked"]})]}),Gt.namespaces.map(q=>w.jsxs("section",{className:"namespace",children:[w.jsxs("h2",{children:[q.name,q.version&&w.jsxs("span",{className:"badge",children:["@",q.version]}),w.jsxs("span",{className:"muted mono",children:[q.className,q.created?" · created at runtime":""]})]}),q.methods.map(se=>w.jsx(Vb,{peer:X,namespace:q.name,method:se,types:Gt.types,service:r,network:L},se.name)),q.events.length>0&&w.jsxs("div",{className:"events",children:[w.jsxs("h3",{children:["events",q.events.some(se=>!ue.has(`${X}/${q.name}/${se.name}`))&&w.jsx("button",{className:"toggle",onClick:()=>{$n(q.name,q.events)},children:"watch all"})]}),q.events.map(se=>{const Ze=ue.has(`${X}/${q.name}/${se.name}`);return w.jsxs("div",{className:"event-row",children:[w.jsxs("code",{children:[se.name,"(",se.params?se.params.map(Ft).join(", "):"…",")"]}),w.jsx("button",{className:Ze?"toggle on":"toggle",onClick:()=>{yi(q.name,se)},children:Ze?"unwatch":"watch"}),w.jsxs("span",{className:"muted",children:[se.subscribers," subscriber",se.subscribers===1?"":"s"]})]},se.name)})]})]},q.name))]})]}),w.jsxs("section",{className:"side",children:[w.jsx("nav",{className:"tabs",children:["events","traffic","problems","presence","chat"].map(q=>w.jsxs("button",{className:j===q?"tab on":"tab",onClick:()=>V(q),children:[q,q==="traffic"&&ie.length>0&&w.jsx("span",{className:"count",children:ie.length}),q==="problems"&&P.length>0&&w.jsx("span",{className:"count bad",children:P.length})]},q))}),j==="chat"&&w.jsx(zb,{peer:X,messages:X?S[X]??[]:[],onSend:Ie}),j==="problems"&&w.jsx(Fb,{problems:P,onClear:()=>de([])}),j==="presence"&&w.jsx(Ib,{changes:v,onClear:()=>C([])}),w.jsx($b,{service:r,selected:X,frames:ie,onClear:()=>te([]),paused:Ae,onPaused:Re,hidden:j!=="traffic"}),j==="events"&&w.jsxs("div",{className:"stream",children:[w.jsxs("header",{children:[w.jsx("h1",{children:"Events"}),w.jsxs("div",{className:"traffic-actions",children:[U.length>0&&w.jsx("button",{className:"toggle",onClick:()=>e1(U,"events.jsonl"),title:"save what is here as jsonl",children:"export"}),U.length>0&&w.jsx("button",{className:"toggle",onClick:()=>B([]),children:"clear"}),w.jsx("button",{className:ne?"toggle on":"toggle",onClick:()=>fe(!ne),children:ne?"paused":"pause"})]})]}),U.length>0&&w.jsx("input",{className:"control",placeholder:"filter by peer, event or payload",value:Y,onChange:q=>K(q.target.value)}),U.length===0&&w.jsx("p",{className:"muted",children:"Watch an event to see it here."}),U.filter(q=>{const se=Y.trim().toLowerCase();return!se||`${q.peer} ${q.namespace}.${q.event} ${JSON.stringify(q.args)}`.toLowerCase().includes(se)}).map((q,se)=>w.jsxs("div",{className:"streamed",children:[w.jsx("time",{children:new Date(q.at).toLocaleTimeString()}),w.jsxs("code",{children:[q.peer,"/",q.namespace,".",q.event]}),w.jsx("pre",{children:JSON.stringify(q.args)})]},`${q.at}-${se}`))]})]})]})};a0.createRoot(document.getElementById("root")).render(w.jsx(F.StrictMode,{children:w.jsx(t1,{})}));
|
|
2063
|
+
//# sourceMappingURL=app.js.map
|