tracer-sh 0.3.0 → 0.3.2

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.
Files changed (24) hide show
  1. package/bin/tracer.mjs +58 -3
  2. package/package.json +1 -1
  3. package/packages/server/dist/{chunk-WOL2ZWU7.js → chunk-5GQDB6U7.js} +4 -0
  4. package/packages/server/dist/chunk-IAWOYD5E.js +4793 -0
  5. package/packages/server/dist/{chunk-WUFQGSGW.js → chunk-YL5JSOUN.js} +1 -1
  6. package/packages/server/dist/dist-ZMUHFP5T.js +1257 -0
  7. package/packages/server/dist/{domain-knowledge-4AAER546.js → domain-knowledge-B2IREATL.js} +1 -1
  8. package/packages/server/dist/{domain-knowledge-CAD7MDFJ.js → domain-knowledge-K3OB4NDB.js} +1 -1
  9. package/packages/server/dist/{domain-knowledge-A3WXZ55R.js → domain-knowledge-U2RLSFM2.js} +1 -1
  10. package/packages/server/dist/index.js +39640 -23247
  11. package/packages/server/dist/multipart-parser-ONCUQ5VA.js +372 -0
  12. package/packages/server/dist/src-434DTNEL.js +1409 -0
  13. package/packages/server/dist/{token-QV5VOVJ4.js → token-4YFRZJYT.js} +2 -2
  14. package/packages/server/dist/{token-util-DLXYCJR4.js → token-util-CTKMWUIG.js} +2 -2
  15. package/packages/web/dist/assets/{SearchableSelect-ClBD3uDN.js → SearchableSelect-BGG4ZQsh.js} +1 -1
  16. package/packages/web/dist/assets/Settings-CbI-LDKy.js +1 -0
  17. package/packages/web/dist/assets/{highlighted-body-OFNGDK62-ClhPAwAu.js → highlighted-body-OFNGDK62-DZkDbKbU.js} +1 -1
  18. package/packages/web/dist/assets/index-BMMlPHJO.css +1 -0
  19. package/packages/web/dist/assets/index-D555Ai5J.js +48 -0
  20. package/packages/web/dist/assets/{mermaid-GHXKKRXX-BP9XJxn7.js → mermaid-GHXKKRXX-B2DXmpLw.js} +84 -84
  21. package/packages/web/dist/index.html +2 -2
  22. package/packages/web/dist/assets/Settings-DqYpr-dx.js +0 -1
  23. package/packages/web/dist/assets/index-B4Hwftt4.css +0 -1
  24. package/packages/web/dist/assets/index-BfsXwolP.js +0 -48
@@ -0,0 +1,48 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-GHXKKRXX-B2DXmpLw.js","assets/SearchableSelect-BGG4ZQsh.js","assets/mermaid-GHXKKRXX-B9Z7D9kT.css","assets/Settings-CbI-LDKy.js"])))=>i.map(i=>d[i]);
2
+ function Cb(n,a){for(var u=0;u<a.length;u++){const l=a[u];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in n)){const f=Object.getOwnPropertyDescriptor(l,s);f&&Object.defineProperty(n,s,f.get?f:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function u(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(s){if(s.ep)return;s.ep=!0;const f=u(s);fetch(s.href,f)}})();function Db(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fo={exports:{}},vi={};var em;function Nb(){if(em)return vi;em=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(l,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var h in s)h!=="key"&&(f[h]=s[h])}else f=s;return s=f.ref,{$$typeof:n,type:l,key:d,ref:s!==void 0?s:null,props:f}}return vi.Fragment=a,vi.jsx=u,vi.jsxs=u,vi}var tm;function Ub(){return tm||(tm=1,Fo.exports=Nb()),Fo.exports}var D=Ub(),Wo={exports:{}},ce={};var nm;function Zb(){if(nm)return ce;nm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),x=Symbol.iterator;function M(S){return S===null||typeof S!="object"?null:(S=x&&S[x]||S["@@iterator"],typeof S=="function"?S:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,ae={};function le(S,U,B){this.props=S,this.context=U,this.refs=ae,this.updater=B||H}le.prototype.isReactComponent={},le.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,U,"setState")},le.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function de(){}de.prototype=le.prototype;function ye(S,U,B){this.props=S,this.context=U,this.refs=ae,this.updater=B||H}var ge=ye.prototype=new de;ge.constructor=ye,Z(ge,le.prototype),ge.isPureReactComponent=!0;var K=Array.isArray;function Y(){}var R={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function W(S,U,B){var L=B.ref;return{$$typeof:n,type:S,key:U,ref:L!==void 0?L:null,props:B}}function re(S,U){return W(S.type,U,S.props)}function ie(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function F(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(B){return U[B]})}var he=/\/+/g;function fe(S,U){return typeof S=="object"&&S!==null&&S.key!=null?F(""+S.key):U.toString(36)}function J(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Y,Y):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function z(S,U,B,L,te){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(oe){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case n:case a:Te=!0;break;case g:return Te=S._init,z(Te(S._payload),U,B,L,te)}}if(Te)return te=te(S),Te=L===""?"."+fe(S,0):L,K(te)?(B="",Te!=null&&(B=Te.replace(he,"$&/")+"/"),z(te,U,B,"",function(Er){return Er})):te!=null&&(ie(te)&&(te=re(te,B+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(he,"$&/")+"/")+Te)),U.push(te)),1;Te=0;var pt=L===""?".":L+":";if(K(S))for(var Pe=0;Pe<S.length;Pe++)L=S[Pe],oe=pt+fe(L,Pe),Te+=z(L,U,B,oe,te);else if(Pe=M(S),typeof Pe=="function")for(S=Pe.call(S),Pe=0;!(L=S.next()).done;)L=L.value,oe=pt+fe(L,Pe++),Te+=z(L,U,B,oe,te);else if(oe==="object"){if(typeof S.then=="function")return z(J(S),U,B,L,te);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Te}function k(S,U,B){if(S==null)return S;var L=[],te=0;return z(S,L,"","",function(oe){return U.call(B,oe,te++)}),L}function $(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(B){(S._status===0||S._status===-1)&&(S._status=1,S._result=B)},function(B){(S._status===0||S._status===-1)&&(S._status=2,S._result=B)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var P=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ve={map:k,forEach:function(S,U,B){k(S,function(){U.apply(this,arguments)},B)},count:function(S){var U=0;return k(S,function(){U++}),U},toArray:function(S){return k(S,function(U){return U})||[]},only:function(S){if(!ie(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ce.Activity=_,ce.Children=ve,ce.Component=le,ce.Fragment=u,ce.Profiler=s,ce.PureComponent=ye,ce.StrictMode=l,ce.Suspense=m,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,ce.__COMPILER_RUNTIME={__proto__:null,c:function(S){return R.H.useMemoCache(S)}},ce.cache=function(S){return function(){return S.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(S,U,B){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var L=Z({},S.props),te=S.key;if(U!=null)for(oe in U.key!==void 0&&(te=""+U.key),U)!V.call(U,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&U.ref===void 0||(L[oe]=U[oe]);var oe=arguments.length-2;if(oe===1)L.children=B;else if(1<oe){for(var Te=Array(oe),pt=0;pt<oe;pt++)Te[pt]=arguments[pt+2];L.children=Te}return W(S.type,te,L)},ce.createContext=function(S){return S={$$typeof:d,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:f,_context:S},S},ce.createElement=function(S,U,B){var L,te={},oe=null;if(U!=null)for(L in U.key!==void 0&&(oe=""+U.key),U)V.call(U,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(te[L]=U[L]);var Te=arguments.length-2;if(Te===1)te.children=B;else if(1<Te){for(var pt=Array(Te),Pe=0;Pe<Te;Pe++)pt[Pe]=arguments[Pe+2];te.children=pt}if(S&&S.defaultProps)for(L in Te=S.defaultProps,Te)te[L]===void 0&&(te[L]=Te[L]);return W(S,oe,te)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(S){return{$$typeof:h,render:S}},ce.isValidElement=ie,ce.lazy=function(S){return{$$typeof:g,_payload:{_status:-1,_result:S},_init:$}},ce.memo=function(S,U){return{$$typeof:y,type:S,compare:U===void 0?null:U}},ce.startTransition=function(S){var U=R.T,B={};R.T=B;try{var L=S(),te=R.S;te!==null&&te(B,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(Y,P)}catch(oe){P(oe)}finally{U!==null&&B.types!==null&&(U.types=B.types),R.T=U}},ce.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},ce.use=function(S){return R.H.use(S)},ce.useActionState=function(S,U,B){return R.H.useActionState(S,U,B)},ce.useCallback=function(S,U){return R.H.useCallback(S,U)},ce.useContext=function(S){return R.H.useContext(S)},ce.useDebugValue=function(){},ce.useDeferredValue=function(S,U){return R.H.useDeferredValue(S,U)},ce.useEffect=function(S,U){return R.H.useEffect(S,U)},ce.useEffectEvent=function(S){return R.H.useEffectEvent(S)},ce.useId=function(){return R.H.useId()},ce.useImperativeHandle=function(S,U,B){return R.H.useImperativeHandle(S,U,B)},ce.useInsertionEffect=function(S,U){return R.H.useInsertionEffect(S,U)},ce.useLayoutEffect=function(S,U){return R.H.useLayoutEffect(S,U)},ce.useMemo=function(S,U){return R.H.useMemo(S,U)},ce.useOptimistic=function(S,U){return R.H.useOptimistic(S,U)},ce.useReducer=function(S,U,B){return R.H.useReducer(S,U,B)},ce.useRef=function(S){return R.H.useRef(S)},ce.useState=function(S){return R.H.useState(S)},ce.useSyncExternalStore=function(S,U,B){return R.H.useSyncExternalStore(S,U,B)},ce.useTransition=function(){return R.H.useTransition()},ce.version="19.2.5",ce}var am;function Dc(){return am||(am=1,Wo.exports=Zb()),Wo.exports}var G=Dc();const qb=Db(G),Qb=Cb({__proto__:null,default:qb},[G]);var ec={exports:{}},gi={},tc={exports:{}},nc={};var rm;function kb(){return rm||(rm=1,(function(n){function a(z,k){var $=z.length;z.push(k);e:for(;0<$;){var P=$-1>>>1,ve=z[P];if(0<s(ve,k))z[P]=k,z[$]=ve,$=P;else break e}}function u(z){return z.length===0?null:z[0]}function l(z){if(z.length===0)return null;var k=z[0],$=z.pop();if($!==k){z[0]=$;e:for(var P=0,ve=z.length,S=ve>>>1;P<S;){var U=2*(P+1)-1,B=z[U],L=U+1,te=z[L];if(0>s(B,$))L<ve&&0>s(te,B)?(z[P]=te,z[L]=$,P=L):(z[P]=B,z[U]=$,P=U);else if(L<ve&&0>s(te,$))z[P]=te,z[L]=$,P=L;else break e}}return k}function s(z,k){var $=z.sortIndex-k.sortIndex;return $!==0?$:z.id-k.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],y=[],g=1,_=null,x=3,M=!1,H=!1,Z=!1,ae=!1,le=typeof setTimeout=="function"?setTimeout:null,de=typeof clearTimeout=="function"?clearTimeout:null,ye=typeof setImmediate<"u"?setImmediate:null;function ge(z){for(var k=u(y);k!==null;){if(k.callback===null)l(y);else if(k.startTime<=z)l(y),k.sortIndex=k.expirationTime,a(m,k);else break;k=u(y)}}function K(z){if(Z=!1,ge(z),!H)if(u(m)!==null)H=!0,Y||(Y=!0,F());else{var k=u(y);k!==null&&J(K,k.startTime-z)}}var Y=!1,R=-1,V=5,W=-1;function re(){return ae?!0:!(n.unstable_now()-W<V)}function ie(){if(ae=!1,Y){var z=n.unstable_now();W=z;var k=!0;try{e:{H=!1,Z&&(Z=!1,de(R),R=-1),M=!0;var $=x;try{t:{for(ge(z),_=u(m);_!==null&&!(_.expirationTime>z&&re());){var P=_.callback;if(typeof P=="function"){_.callback=null,x=_.priorityLevel;var ve=P(_.expirationTime<=z);if(z=n.unstable_now(),typeof ve=="function"){_.callback=ve,ge(z),k=!0;break t}_===u(m)&&l(m),ge(z)}else l(m);_=u(m)}if(_!==null)k=!0;else{var S=u(y);S!==null&&J(K,S.startTime-z),k=!1}}break e}finally{_=null,x=$,M=!1}k=void 0}}finally{k?F():Y=!1}}}var F;if(typeof ye=="function")F=function(){ye(ie)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,fe=he.port2;he.port1.onmessage=ie,F=function(){fe.postMessage(null)}}else F=function(){le(ie,0)};function J(z,k){R=le(function(){z(n.unstable_now())},k)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(z){switch(x){case 1:case 2:case 3:var k=3;break;default:k=x}var $=x;x=k;try{return z()}finally{x=$}},n.unstable_requestPaint=function(){ae=!0},n.unstable_runWithPriority=function(z,k){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=x;x=z;try{return k()}finally{x=$}},n.unstable_scheduleCallback=function(z,k,$){var P=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?P+$:P):$=P,z){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=$+ve,z={id:g++,callback:k,priorityLevel:z,startTime:$,expirationTime:ve,sortIndex:-1},$>P?(z.sortIndex=$,a(y,z),u(m)===null&&z===u(y)&&(Z?(de(R),R=-1):Z=!0,J(K,$-P))):(z.sortIndex=ve,a(m,z),H||M||(H=!0,Y||(Y=!0,F()))),z},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(z){var k=x;return function(){var $=x;x=k;try{return z.apply(this,arguments)}finally{x=$}}}})(nc)),nc}var im;function Bb(){return im||(im=1,tc.exports=kb()),tc.exports}var ac={exports:{}},dt={};var um;function Hb(){if(um)return dt;um=1;var n=Dc();function a(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)y+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(m,y,g){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:_==null?null:""+_,children:m,containerInfo:y,implementation:g}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,dt.createPortal=function(m,y){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(m,y,null,g)},dt.flushSync=function(m){var y=d.T,g=l.p;try{if(d.T=null,l.p=2,m)return m()}finally{d.T=y,l.p=g,l.d.f()}},dt.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,l.d.C(m,y))},dt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},dt.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var g=y.as,_=h(g,y.crossOrigin),x=typeof y.integrity=="string"?y.integrity:void 0,M=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;g==="style"?l.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:_,integrity:x,fetchPriority:M}):g==="script"&&l.d.X(m,{crossOrigin:_,integrity:x,fetchPriority:M,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dt.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var g=h(y.as,y.crossOrigin);l.d.M(m,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&l.d.M(m)},dt.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var g=y.as,_=h(g,y.crossOrigin);l.d.L(m,g,{crossOrigin:_,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},dt.preloadModule=function(m,y){if(typeof m=="string")if(y){var g=h(y.as,y.crossOrigin);l.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else l.d.m(m)},dt.requestFormReset=function(m){l.d.r(m)},dt.unstable_batchedUpdates=function(m,y){return m(y)},dt.useFormState=function(m,y,g){return d.H.useFormState(m,y,g)},dt.useFormStatus=function(){return d.H.useHostTransitionStatus()},dt.version="19.2.5",dt}var lm;function Lb(){if(lm)return ac.exports;lm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ac.exports=Hb(),ac.exports}var sm;function Gb(){if(sm)return gi;sm=1;var n=Bb(),a=Dc(),u=Lb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(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 h(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 m(e){if(f(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){r=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===r)return m(o),e;if(c===i)return m(o),t;c=c.sibling}throw Error(l(188))}if(r.return!==i.return)r=o,i=c;else{for(var p=!1,v=o.child;v;){if(v===r){p=!0,r=o,i=c;break}if(v===i){p=!0,i=o,r=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===r){p=!0,r=c,i=o;break}if(v===i){p=!0,i=c,r=o;break}v=v.sibling}if(!p)throw Error(l(189))}}if(r.alternate!==i)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,x=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Z:return"Fragment";case le:return"Profiler";case ae:return"StrictMode";case K:return"Suspense";case Y:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case ye:return e.displayName||"Context";case de:return(e._context.displayName||"Context")+".Consumer";case ge:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case R:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var J=Array.isArray,z=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},P=[],ve=-1;function S(e){return{current:e}}function U(e){0>ve||(e.current=P[ve],P[ve]=null,ve--)}function B(e,t){ve++,P[ve]=e.current,e.current=t}var L=S(null),te=S(null),oe=S(null),Te=S(null);function pt(e,t){switch(B(oe,t),B(te,e),B(L,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xp(t),e=Ep(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(L),B(L,e)}function Pe(){U(L),U(te),U(oe)}function Er(e){e.memoizedState!==null&&B(Te,e);var t=L.current,r=Ep(t,e.type);t!==r&&(B(te,e),B(L,r))}function qi(e){te.current===e&&(U(L),U(te)),Te.current===e&&(U(Te),hi._currentValue=$)}var Dl,Fc;function ua(e){if(Dl===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Dl=t&&t[1]||"",Fc=-1<r.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Dl+e+Fc}var Nl=!1;function Ul(e,t){if(!e||Nl)return"";Nl=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(j){var A=j}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(j){A=j}e.call(Q.prototype)}}else{try{throw Error()}catch(j){A=j}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(j){if(j&&A&&typeof j.stack=="string")return[j.stack,A.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var b=p.split(`
5
+ `),w=v.split(`
6
+ `);for(o=i=0;i<b.length&&!b[i].includes("DetermineComponentFrameRoot");)i++;for(;o<w.length&&!w[o].includes("DetermineComponentFrameRoot");)o++;if(i===b.length||o===w.length)for(i=b.length-1,o=w.length-1;1<=i&&0<=o&&b[i]!==w[o];)o--;for(;1<=i&&0<=o;i--,o--)if(b[i]!==w[o]){if(i!==1||o!==1)do if(i--,o--,0>o||b[i]!==w[o]){var C=`
7
+ `+b[i].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=i&&0<=o);break}}}finally{Nl=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ua(r):""}function og(e,t){switch(e.tag){case 26:case 27:case 5:return ua(e.type);case 16:return ua("Lazy");case 13:return e.child!==t&&t!==null?ua("Suspense Fallback"):ua("Suspense");case 19:return ua("SuspenseList");case 0:case 15:return Ul(e.type,!1);case 11:return Ul(e.type.render,!1);case 1:return Ul(e.type,!0);case 31:return ua("Activity");default:return""}}function Wc(e){try{var t="",r=null;do t+=og(e,r),r=e,e=e.return;while(e);return t}catch(i){return`
8
+ Error generating stack: `+i.message+`
9
+ `+i.stack}}var Zl=Object.prototype.hasOwnProperty,ql=n.unstable_scheduleCallback,Ql=n.unstable_cancelCallback,cg=n.unstable_shouldYield,fg=n.unstable_requestPaint,Tt=n.unstable_now,dg=n.unstable_getCurrentPriorityLevel,ef=n.unstable_ImmediatePriority,tf=n.unstable_UserBlockingPriority,Qi=n.unstable_NormalPriority,hg=n.unstable_LowPriority,nf=n.unstable_IdlePriority,pg=n.log,mg=n.unstable_setDisableYieldValue,zr=null,wt=null;function Tn(e){if(typeof pg=="function"&&mg(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(zr,e)}catch{}}var At=Math.clz32?Math.clz32:gg,yg=Math.log,vg=Math.LN2;function gg(e){return e>>>=0,e===0?32:31-(yg(e)/vg|0)|0}var ki=256,Bi=262144,Hi=4194304;function la(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 Li(e,t,r){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~c,i!==0?o=la(i):(p&=v,p!==0?o=la(p):r||(r=v&~e,r!==0&&(o=la(r))))):(v=i&~c,v!==0?o=la(v):p!==0?o=la(p):r||(r=i&~e,r!==0&&(o=la(r)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:o}function Tr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bg(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 af(){var e=Hi;return Hi<<=1,(Hi&62914560)===0&&(Hi=4194304),e}function kl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function wr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _g(e,t,r,i,o,c){var p=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var v=e.entanglements,b=e.expirationTimes,w=e.hiddenUpdates;for(r=p&~r;0<r;){var C=31-At(r),Q=1<<C;v[C]=0,b[C]=-1;var A=w[C];if(A!==null)for(w[C]=null,C=0;C<A.length;C++){var j=A[C];j!==null&&(j.lane&=-536870913)}r&=~Q}i!==0&&rf(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function rf(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-At(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|r&261930}function uf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-At(r),o=1<<i;o&t|e[i]&t&&(e[i]|=t),r&=~o}}function lf(e,t){var r=t&-t;return r=(r&42)!==0?1:Bl(r),(r&(e.suspendedLanes|t))!==0?0:r}function Bl(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 Hl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sf(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:Kp(e.type))}function of(e,t){var r=k.p;try{return k.p=e,t()}finally{k.p=r}}var wn=Math.random().toString(36).slice(2),lt="__reactFiber$"+wn,gt="__reactProps$"+wn,Ra="__reactContainer$"+wn,Ll="__reactEvents$"+wn,Sg="__reactListeners$"+wn,Og="__reactHandles$"+wn,cf="__reactResources$"+wn,Ar="__reactMarker$"+wn;function Gl(e){delete e[lt],delete e[gt],delete e[Ll],delete e[Sg],delete e[Og]}function Ca(e){var t=e[lt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ra]||r[lt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Rp(e);e!==null;){if(r=e[lt])return r;e=Rp(e)}return t}e=r,r=e.parentNode}return null}function Da(e){if(e=e[lt]||e[Ra]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function Na(e){var t=e[cf];return t||(t=e[cf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[Ar]=!0}var ff=new Set,df={};function sa(e,t){Ua(e,t),Ua(e+"Capture",t)}function Ua(e,t){for(df[e]=t,e=0;e<t.length;e++)ff.add(t[e])}var xg=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]*$"),hf={},pf={};function Eg(e){return Zl.call(pf,e)?!0:Zl.call(hf,e)?!1:xg.test(e)?pf[e]=!0:(hf[e]=!0,!1)}function Gi(e,t,r){if(Eg(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function $i(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function sn(e,t,r,i){if(i===null)e.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+i)}}function qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zg(e,t,r){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){r=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $l(e){if(!e._valueTracker){var t=mf(e)?"checked":"value";e._valueTracker=zg(e,t,""+e[t])}}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=mf(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function Yi(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 Tg=/[\n"\\]/g;function Qt(e){return e.replace(Tg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yl(e,t,r,i,o,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Vl(e,p,qt(t)):r!=null?Vl(e,p,qt(r)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+qt(v):e.removeAttribute("name")}function vf(e,t,r,i,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){$l(e);return}r=r!=null?""+qt(r):"",t=t!=null?""+qt(t):r,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),$l(e)}function Vl(e,t,r){t==="number"&&Yi(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Za(e,t,r,i){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&i&&(e[r].defaultSelected=!0)}else{for(r=""+qt(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function gf(e,t,r){if(t!=null&&(t=""+qt(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+qt(r):""}function bf(e,t,r,i){if(t==null){if(i!=null){if(r!=null)throw Error(l(92));if(J(i)){if(1<i.length)throw Error(l(93));i=i[0]}r=i}r==null&&(r=""),t=r}r=qt(t),e.defaultValue=r,i=e.textContent,i===r&&i!==""&&i!==null&&(e.value=i),$l(e)}function qa(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var wg=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 _f(e,t,r){var i=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,r):typeof r!="number"||r===0||wg.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Sf(e,t,r){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,r!=null){for(var i in r)!r.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&r[o]!==i&&_f(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&_f(e,c,t[c])}function Kl(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 Ag=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"]]),jg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vi(e){return jg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function on(){}var Xl=null;function Pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,ka=null;function Of(e){var t=Da(e);if(t&&(e=t.stateNode)){var r=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yl(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=i[gt]||null;if(!o)throw Error(l(90));Yl(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<r.length;t++)i=r[t],i.form===e.form&&yf(i)}break e;case"textarea":gf(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Za(e,!!r.multiple,t,!1)}}}var Jl=!1;function xf(e,t,r){if(Jl)return e(t,r);Jl=!0;try{var i=e(t);return i}finally{if(Jl=!1,(Qa!==null||ka!==null)&&(Du(),Qa&&(t=Qa,e=ka,ka=Qa=null,Of(t),e)))for(t=0;t<e.length;t++)Of(e[t])}}function Mr(e,t){var r=e.stateNode;if(r===null)return null;var i=r[gt]||null;if(i===null)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,t,typeof r));return r}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Il=!1;if(cn)try{var Rr={};Object.defineProperty(Rr,"passive",{get:function(){Il=!0}}),window.addEventListener("test",Rr,Rr),window.removeEventListener("test",Rr,Rr)}catch{Il=!1}var An=null,Fl=null,Ki=null;function Ef(){if(Ki)return Ki;var e,t=Fl,r=t.length,i,o="value"in An?An.value:An.textContent,c=o.length;for(e=0;e<r&&t[e]===o[e];e++);var p=r-e;for(i=1;i<=p&&t[r-i]===o[c-i];i++);return Ki=o.slice(e,1<i?1-i:void 0)}function Xi(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 Pi(){return!0}function zf(){return!1}function bt(e){function t(r,i,o,c,p){this._reactName=r,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(r=e[v],this[v]=r?r(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Pi:zf,this.isPropagationStopped=zf,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Pi)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Pi)},persist:function(){},isPersistent:Pi}),t}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ji=bt(oa),Cr=_({},oa,{view:0,detail:0}),Mg=bt(Cr),Wl,es,Dr,Ii=_({},Cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ns,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!==Dr&&(Dr&&e.type==="mousemove"?(Wl=e.screenX-Dr.screenX,es=e.screenY-Dr.screenY):es=Wl=0,Dr=e),Wl)},movementY:function(e){return"movementY"in e?e.movementY:es}}),Tf=bt(Ii),Rg=_({},Ii,{dataTransfer:0}),Cg=bt(Rg),Dg=_({},Cr,{relatedTarget:0}),ts=bt(Dg),Ng=_({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),Ug=bt(Ng),Zg=_({},oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qg=bt(Zg),Qg=_({},oa,{data:0}),wf=bt(Qg),kg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bg={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"},Hg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hg[e])?!!t[e]:!1}function ns(){return Lg}var Gg=_({},Cr,{key:function(e){if(e.key){var t=kg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ns,charCode:function(e){return e.type==="keypress"?Xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$g=bt(Gg),Yg=_({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Af=bt(Yg),Vg=_({},Cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ns}),Kg=bt(Vg),Xg=_({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pg=bt(Xg),Jg=_({},Ii,{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}),Ig=bt(Jg),Fg=_({},oa,{newState:0,oldState:0}),Wg=bt(Fg),e0=[9,13,27,32],as=cn&&"CompositionEvent"in window,Nr=null;cn&&"documentMode"in document&&(Nr=document.documentMode);var t0=cn&&"TextEvent"in window&&!Nr,jf=cn&&(!as||Nr&&8<Nr&&11>=Nr),Mf=" ",Rf=!1;function Cf(e,t){switch(e){case"keyup":return e0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ba=!1;function n0(e,t){switch(e){case"compositionend":return Df(t);case"keypress":return t.which!==32?null:(Rf=!0,Mf);case"textInput":return e=t.data,e===Mf&&Rf?null:e;default:return null}}function a0(e,t){if(Ba)return e==="compositionend"||!as&&Cf(e,t)?(e=Ef(),Ki=Fl=An=null,Ba=!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 jf&&t.locale!=="ko"?null:t.data;default:return null}}var r0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!r0[e.type]:t==="textarea"}function Uf(e,t,r,i){Qa?ka?ka.push(i):ka=[i]:Qa=i,t=Bu(t,"onChange"),0<t.length&&(r=new Ji("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Ur=null,Zr=null;function i0(e){vp(e,0)}function Fi(e){var t=jr(e);if(yf(t))return e}function Zf(e,t){if(e==="change")return t}var qf=!1;if(cn){var rs;if(cn){var is="oninput"in document;if(!is){var Qf=document.createElement("div");Qf.setAttribute("oninput","return;"),is=typeof Qf.oninput=="function"}rs=is}else rs=!1;qf=rs&&(!document.documentMode||9<document.documentMode)}function kf(){Ur&&(Ur.detachEvent("onpropertychange",Bf),Zr=Ur=null)}function Bf(e){if(e.propertyName==="value"&&Fi(Zr)){var t=[];Uf(t,Zr,e,Pl(e)),xf(i0,t)}}function u0(e,t,r){e==="focusin"?(kf(),Ur=t,Zr=r,Ur.attachEvent("onpropertychange",Bf)):e==="focusout"&&kf()}function l0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fi(Zr)}function s0(e,t){if(e==="click")return Fi(t)}function o0(e,t){if(e==="input"||e==="change")return Fi(t)}function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:c0;function qr(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var o=r[i];if(!Zl.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function Hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lf(e,t){var r=Hf(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Hf(r)}}function Gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yi(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Yi(e.document)}return t}function us(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 f0=cn&&"documentMode"in document&&11>=document.documentMode,Ha=null,ls=null,Qr=null,ss=!1;function Yf(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ss||Ha==null||Ha!==Yi(i)||(i=Ha,"selectionStart"in i&&us(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Qr&&qr(Qr,i)||(Qr=i,i=Bu(ls,"onSelect"),0<i.length&&(t=new Ji("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Ha)))}function ca(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var La={animationend:ca("Animation","AnimationEnd"),animationiteration:ca("Animation","AnimationIteration"),animationstart:ca("Animation","AnimationStart"),transitionrun:ca("Transition","TransitionRun"),transitionstart:ca("Transition","TransitionStart"),transitioncancel:ca("Transition","TransitionCancel"),transitionend:ca("Transition","TransitionEnd")},os={},Vf={};cn&&(Vf=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function fa(e){if(os[e])return os[e];if(!La[e])return e;var t=La[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Vf)return os[e]=t[r];return e}var Kf=fa("animationend"),Xf=fa("animationiteration"),Pf=fa("animationstart"),d0=fa("transitionrun"),h0=fa("transitionstart"),p0=fa("transitioncancel"),Jf=fa("transitionend"),If=new Map,cs="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(" ");cs.push("scrollEnd");function Pt(e,t){If.set(e,t),sa(t,[e])}var Wi=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=[],Ga=0,fs=0;function eu(){for(var e=Ga,t=fs=Ga=0;t<e;){var r=kt[t];kt[t++]=null;var i=kt[t];kt[t++]=null;var o=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,i!==null&&o!==null){var p=i.pending;p===null?o.next=o:(o.next=p.next,p.next=o),i.pending=o}c!==0&&Ff(r,o,c)}}function tu(e,t,r,i){kt[Ga++]=e,kt[Ga++]=t,kt[Ga++]=r,kt[Ga++]=i,fs|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function ds(e,t,r,i){return tu(e,t,r,i),nu(e)}function da(e,t){return tu(e,null,null,t),nu(e)}function Ff(e,t,r){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r);for(var o=!1,c=e.return;c!==null;)c.childLanes|=r,i=c.alternate,i!==null&&(i.childLanes|=r),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-At(r),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=r|536870912),c):null}function nu(e){if(50<ui)throw ui=0,Oo=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $a={};function m0(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,r,i){return new m0(e,t,r,i)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var r=e.alternate;return r===null?(r=Mt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Wf(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function au(e,t,r,i,o,c){var p=0;if(i=e,typeof e=="function")hs(e)&&(p=1);else if(typeof e=="string")p=_b(e,r,L.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Mt(31,r,t,o),e.elementType=W,e.lanes=c,e;case Z:return ha(r.children,o,c,t);case ae:p=8,o|=24;break;case le:return e=Mt(12,r,t,o|2),e.elementType=le,e.lanes=c,e;case K:return e=Mt(13,r,t,o),e.elementType=K,e.lanes=c,e;case Y:return e=Mt(19,r,t,o),e.elementType=Y,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:p=10;break e;case de:p=9;break e;case ge:p=11;break e;case R:p=14;break e;case V:p=16,i=null;break e}p=29,r=Error(l(130,e===null?"null":typeof e,"")),i=null}return t=Mt(p,r,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function ha(e,t,r,i){return e=Mt(7,e,i,t),e.lanes=r,e}function ps(e,t,r){return e=Mt(6,e,null,t),e.lanes=r,e}function ed(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function ms(e,t,r){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var td=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var r=td.get(e);return r!==void 0?r:(t={value:e,source:t,stack:Wc(t)},td.set(e,t),t)}return{value:e,source:t,stack:Wc(t)}}var Ya=[],Va=0,ru=null,kr=0,Ht=[],Lt=0,jn=null,Wt=1,en="";function dn(e,t){Ya[Va++]=kr,Ya[Va++]=ru,ru=e,kr=t}function nd(e,t,r){Ht[Lt++]=Wt,Ht[Lt++]=en,Ht[Lt++]=jn,jn=e;var i=Wt;e=en;var o=32-At(i)-1;i&=~(1<<o),r+=1;var c=32-At(t)+o;if(30<c){var p=o-o%5;c=(i&(1<<p)-1).toString(32),i>>=p,o-=p,Wt=1<<32-At(t)+o|r<<o|i,en=c+e}else Wt=1<<c|r<<o|i,en=e}function ys(e){e.return!==null&&(dn(e,1),nd(e,1,0))}function vs(e){for(;e===ru;)ru=Ya[--Va],Ya[Va]=null,kr=Ya[--Va],Ya[Va]=null;for(;e===jn;)jn=Ht[--Lt],Ht[Lt]=null,en=Ht[--Lt],Ht[Lt]=null,Wt=Ht[--Lt],Ht[Lt]=null}function ad(e,t){Ht[Lt++]=Wt,Ht[Lt++]=en,Ht[Lt++]=jn,Wt=t.id,en=t.overflow,jn=e}var st=null,ke=null,xe=!1,Mn=null,Gt=!1,gs=Error(l(519));function Rn(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Br(Bt(t,e)),gs}function rd(e){var t=e.stateNode,r=e.type,i=e.memoizedProps;switch(t[lt]=e,t[gt]=i,r){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(r=0;r<si.length;r++)_e(si[r],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),vf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),bf(t,i.value,i.defaultValue,i.children)}r=i.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||i.suppressHydrationWarning===!0||Sp(t.textContent,r)?(i.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),i.onScroll!=null&&_e("scroll",t),i.onScrollEnd!=null&&_e("scrollend",t),i.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Rn(e,!0)}function id(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:st=st.return}}function Ka(e){if(e!==st)return!1;if(!xe)return id(e),xe=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||qo(e.type,e.memoizedProps)),r=!r),r&&ke&&Rn(e),id(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));ke=Mp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));ke=Mp(e)}else t===27?(t=ke,Yn(e.type)?(e=Lo,Lo=null,ke=e):ke=t):ke=st?Yt(e.stateNode.nextSibling):null;return!0}function pa(){ke=st=null,xe=!1}function bs(){var e=Mn;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Mn=null),e}function Br(e){Mn===null?Mn=[e]:Mn.push(e)}var _s=S(null),ma=null,hn=null;function Cn(e,t,r){B(_s,t._currentValue),t._currentValue=r}function pn(e){e._currentValue=_s.current,U(_s)}function Ss(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function Os(e,t,r,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var b=0;b<t.length;b++)if(v.context===t[b]){c.lanes|=r,v=c.alternate,v!==null&&(v.lanes|=r),Ss(c.return,r,e),i||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(l(341));p.lanes|=r,c=p.alternate,c!==null&&(c.lanes|=r),Ss(p,r,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Xa(e,t,r,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(l(387));if(p=p.memoizedProps,p!==null){var v=o.type;jt(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===Te.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(hi):e=[hi])}o=o.return}e!==null&&Os(t,e,r,i),t.flags|=262144}function iu(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){ma=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return ud(ma,e)}function uu(e,t){return ma===null&&ya(e),ud(e,t)}function ud(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},hn===null){if(e===null)throw Error(l(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return r}var y0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},v0=n.unstable_scheduleCallback,g0=n.unstable_NormalPriority,We={$$typeof:ye,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xs(){return{controller:new y0,data:new Map,refCount:0}}function Hr(e){e.refCount--,e.refCount===0&&v0(g0,function(){e.controller.abort()})}var Lr=null,Es=0,Pa=0,Ja=null;function b0(e,t){if(Lr===null){var r=Lr=[];Es=0,Pa=Ao(),Ja={status:"pending",value:void 0,then:function(i){r.push(i)}}}return Es++,t.then(ld,ld),t}function ld(){if(--Es===0&&Lr!==null){Ja!==null&&(Ja.status="fulfilled");var e=Lr;Lr=null,Pa=0,Ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _0(e,t){var r=[],i={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<r.length;o++)(0,r[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),i}var sd=z.S;z.S=function(e,t){Yh=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&b0(e,t),sd!==null&&sd(e,t)};var va=S(null);function zs(){var e=va.current;return e!==null?e:qe.pooledCache}function lu(e,t){t===null?B(va,va.current):B(va,t.pool)}function od(){var e=zs();return e===null?null:{parent:We._currentValue,pool:e}}var Ia=Error(l(460)),Ts=Error(l(474)),su=Error(l(542)),ou={then:function(){}};function cd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function fd(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(on,on),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hd(e),e;default:if(typeof t.status=="string")t.then(on,on);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hd(e),e}throw ba=t,Ia}}function ga(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(ba=r,Ia):r}}var ba=null;function dd(){if(ba===null)throw Error(l(459));var e=ba;return ba=null,e}function hd(e){if(e===Ia||e===su)throw Error(l(483))}var Fa=null,Gr=0;function cu(e){var t=Gr;return Gr+=1,Fa===null&&(Fa=[]),fd(Fa,e,t)}function $r(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===x?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function pd(e){function t(E,O){if(e){var T=E.deletions;T===null?(E.deletions=[O],E.flags|=16):T.push(O)}}function r(E,O){if(!e)return null;for(;O!==null;)t(E,O),O=O.sibling;return null}function i(E){for(var O=new Map;E!==null;)E.key!==null?O.set(E.key,E):O.set(E.index,E),E=E.sibling;return O}function o(E,O){return E=fn(E,O),E.index=0,E.sibling=null,E}function c(E,O,T){return E.index=T,e?(T=E.alternate,T!==null?(T=T.index,T<O?(E.flags|=67108866,O):T):(E.flags|=67108866,O)):(E.flags|=1048576,O)}function p(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function v(E,O,T,q){return O===null||O.tag!==6?(O=ps(T,E.mode,q),O.return=E,O):(O=o(O,T),O.return=E,O)}function b(E,O,T,q){var ue=T.type;return ue===Z?C(E,O,T.props.children,q,T.key):O!==null&&(O.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===V&&ga(ue)===O.type)?(O=o(O,T.props),$r(O,T),O.return=E,O):(O=au(T.type,T.key,T.props,null,E.mode,q),$r(O,T),O.return=E,O)}function w(E,O,T,q){return O===null||O.tag!==4||O.stateNode.containerInfo!==T.containerInfo||O.stateNode.implementation!==T.implementation?(O=ms(T,E.mode,q),O.return=E,O):(O=o(O,T.children||[]),O.return=E,O)}function C(E,O,T,q,ue){return O===null||O.tag!==7?(O=ha(T,E.mode,q,ue),O.return=E,O):(O=o(O,T),O.return=E,O)}function Q(E,O,T){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=ps(""+O,E.mode,T),O.return=E,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case M:return T=au(O.type,O.key,O.props,null,E.mode,T),$r(T,O),T.return=E,T;case H:return O=ms(O,E.mode,T),O.return=E,O;case V:return O=ga(O),Q(E,O,T)}if(J(O)||F(O))return O=ha(O,E.mode,T,null),O.return=E,O;if(typeof O.then=="function")return Q(E,cu(O),T);if(O.$$typeof===ye)return Q(E,uu(E,O),T);fu(E,O)}return null}function A(E,O,T,q){var ue=O!==null?O.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return ue!==null?null:v(E,O,""+T,q);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case M:return T.key===ue?b(E,O,T,q):null;case H:return T.key===ue?w(E,O,T,q):null;case V:return T=ga(T),A(E,O,T,q)}if(J(T)||F(T))return ue!==null?null:C(E,O,T,q,null);if(typeof T.then=="function")return A(E,O,cu(T),q);if(T.$$typeof===ye)return A(E,O,uu(E,T),q);fu(E,T)}return null}function j(E,O,T,q,ue){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return E=E.get(T)||null,v(O,E,""+q,ue);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case M:return E=E.get(q.key===null?T:q.key)||null,b(O,E,q,ue);case H:return E=E.get(q.key===null?T:q.key)||null,w(O,E,q,ue);case V:return q=ga(q),j(E,O,T,q,ue)}if(J(q)||F(q))return E=E.get(T)||null,C(O,E,q,ue,null);if(typeof q.then=="function")return j(E,O,T,cu(q),ue);if(q.$$typeof===ye)return j(E,O,T,uu(O,q),ue);fu(O,q)}return null}function I(E,O,T,q){for(var ue=null,we=null,ne=O,me=O=0,Oe=null;ne!==null&&me<T.length;me++){ne.index>me?(Oe=ne,ne=null):Oe=ne.sibling;var Ae=A(E,ne,T[me],q);if(Ae===null){ne===null&&(ne=Oe);break}e&&ne&&Ae.alternate===null&&t(E,ne),O=c(Ae,O,me),we===null?ue=Ae:we.sibling=Ae,we=Ae,ne=Oe}if(me===T.length)return r(E,ne),xe&&dn(E,me),ue;if(ne===null){for(;me<T.length;me++)ne=Q(E,T[me],q),ne!==null&&(O=c(ne,O,me),we===null?ue=ne:we.sibling=ne,we=ne);return xe&&dn(E,me),ue}for(ne=i(ne);me<T.length;me++)Oe=j(ne,E,me,T[me],q),Oe!==null&&(e&&Oe.alternate!==null&&ne.delete(Oe.key===null?me:Oe.key),O=c(Oe,O,me),we===null?ue=Oe:we.sibling=Oe,we=Oe);return e&&ne.forEach(function(Jn){return t(E,Jn)}),xe&&dn(E,me),ue}function se(E,O,T,q){if(T==null)throw Error(l(151));for(var ue=null,we=null,ne=O,me=O=0,Oe=null,Ae=T.next();ne!==null&&!Ae.done;me++,Ae=T.next()){ne.index>me?(Oe=ne,ne=null):Oe=ne.sibling;var Jn=A(E,ne,Ae.value,q);if(Jn===null){ne===null&&(ne=Oe);break}e&&ne&&Jn.alternate===null&&t(E,ne),O=c(Jn,O,me),we===null?ue=Jn:we.sibling=Jn,we=Jn,ne=Oe}if(Ae.done)return r(E,ne),xe&&dn(E,me),ue;if(ne===null){for(;!Ae.done;me++,Ae=T.next())Ae=Q(E,Ae.value,q),Ae!==null&&(O=c(Ae,O,me),we===null?ue=Ae:we.sibling=Ae,we=Ae);return xe&&dn(E,me),ue}for(ne=i(ne);!Ae.done;me++,Ae=T.next())Ae=j(ne,E,me,Ae.value,q),Ae!==null&&(e&&Ae.alternate!==null&&ne.delete(Ae.key===null?me:Ae.key),O=c(Ae,O,me),we===null?ue=Ae:we.sibling=Ae,we=Ae);return e&&ne.forEach(function(Rb){return t(E,Rb)}),xe&&dn(E,me),ue}function Ze(E,O,T,q){if(typeof T=="object"&&T!==null&&T.type===Z&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case M:e:{for(var ue=T.key;O!==null;){if(O.key===ue){if(ue=T.type,ue===Z){if(O.tag===7){r(E,O.sibling),q=o(O,T.props.children),q.return=E,E=q;break e}}else if(O.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===V&&ga(ue)===O.type){r(E,O.sibling),q=o(O,T.props),$r(q,T),q.return=E,E=q;break e}r(E,O);break}else t(E,O);O=O.sibling}T.type===Z?(q=ha(T.props.children,E.mode,q,T.key),q.return=E,E=q):(q=au(T.type,T.key,T.props,null,E.mode,q),$r(q,T),q.return=E,E=q)}return p(E);case H:e:{for(ue=T.key;O!==null;){if(O.key===ue)if(O.tag===4&&O.stateNode.containerInfo===T.containerInfo&&O.stateNode.implementation===T.implementation){r(E,O.sibling),q=o(O,T.children||[]),q.return=E,E=q;break e}else{r(E,O);break}else t(E,O);O=O.sibling}q=ms(T,E.mode,q),q.return=E,E=q}return p(E);case V:return T=ga(T),Ze(E,O,T,q)}if(J(T))return I(E,O,T,q);if(F(T)){if(ue=F(T),typeof ue!="function")throw Error(l(150));return T=ue.call(T),se(E,O,T,q)}if(typeof T.then=="function")return Ze(E,O,cu(T),q);if(T.$$typeof===ye)return Ze(E,O,uu(E,T),q);fu(E,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,O!==null&&O.tag===6?(r(E,O.sibling),q=o(O,T),q.return=E,E=q):(r(E,O),q=ps(T,E.mode,q),q.return=E,E=q),p(E)):r(E,O)}return function(E,O,T,q){try{Gr=0;var ue=Ze(E,O,T,q);return Fa=null,ue}catch(ne){if(ne===Ia||ne===su)throw ne;var we=Mt(29,ne,null,E.mode);return we.lanes=q,we.return=E,we}}}var _a=pd(!0),md=pd(!1),Dn=!1;function ws(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function As(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 Nn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Me&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=nu(e),Ff(e,null,r),t}return tu(e,i,t,r),nu(e)}function Yr(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,uf(e,r)}}function js(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var o=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var p={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,r=r.next}while(r!==null);c===null?o=c=t:c=c.next=t}else o=c=t;r={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Ms=!1;function Vr(){if(Ms){var e=Ja;if(e!==null)throw e}}function Kr(e,t,r,i){Ms=!1;var o=e.updateQueue;Dn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var b=v,w=b.next;b.next=null,p===null?c=w:p.next=w,p=b;var C=e.alternate;C!==null&&(C=C.updateQueue,v=C.lastBaseUpdate,v!==p&&(v===null?C.firstBaseUpdate=w:v.next=w,C.lastBaseUpdate=b))}if(c!==null){var Q=o.baseState;p=0,C=w=b=null,v=c;do{var A=v.lane&-536870913,j=A!==v.lane;if(j?(Se&A)===A:(i&A)===A){A!==0&&A===Pa&&(Ms=!0),C!==null&&(C=C.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var I=e,se=v;A=t;var Ze=r;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){Q=I.call(Ze,Q,A);break e}Q=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,A=typeof I=="function"?I.call(Ze,Q,A):I,A==null)break e;Q=_({},Q,A);break e;case 2:Dn=!0}}A=v.callback,A!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[A]:j.push(A))}else j={lane:A,tag:v.tag,payload:v.payload,callback:v.callback,next:null},C===null?(w=C=j,b=Q):C=C.next=j,p|=A;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;j=v,v=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);C===null&&(b=Q),o.baseState=b,o.firstBaseUpdate=w,o.lastBaseUpdate=C,c===null&&(o.shared.lanes=0),Bn|=p,e.lanes=p,e.memoizedState=Q}}function yd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function vd(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)yd(r[e],t)}var Wa=S(null),du=S(0);function gd(e,t){e=xn,B(du,e),B(Wa,t),xn=e|t.baseLanes}function Rs(){B(du,xn),B(Wa,Wa.current)}function Cs(){xn=du.current,U(Wa),U(du)}var Rt=S(null),$t=null;function Zn(e){var t=e.alternate;B(Je,Je.current&1),B(Rt,e),$t===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&($t=e)}function Ds(e){B(Je,Je.current),B(Rt,e),$t===null&&($t=e)}function bd(e){e.tag===22?(B(Je,Je.current),B(Rt,e),$t===null&&($t=e)):qn()}function qn(){B(Je,Je.current),B(Rt,Rt.current)}function Ct(e){U(Rt),$t===e&&($t=null),U(Je)}var Je=S(0);function hu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Bo(r)||Ho(r)))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 mn=0,pe=null,Ne=null,et=null,pu=!1,er=!1,Sa=!1,mu=0,Xr=0,tr=null,S0=0;function Ve(){throw Error(l(321))}function Ns(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!jt(e[r],t[r]))return!1;return!0}function Us(e,t,r,i,o,c){return mn=c,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?nh:Js,Sa=!1,c=r(i,o),Sa=!1,er&&(c=Sd(t,r,i,o)),_d(e),c}function _d(e){z.H=Ir;var t=Ne!==null&&Ne.next!==null;if(mn=0,et=Ne=pe=null,pu=!1,Xr=0,tr=null,t)throw Error(l(300));e===null||tt||(e=e.dependencies,e!==null&&iu(e)&&(tt=!0))}function Sd(e,t,r,i){pe=e;var o=0;do{if(er&&(tr=null),Xr=0,er=!1,25<=o)throw Error(l(301));if(o+=1,et=Ne=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=ah,c=t(r,i)}while(er);return c}function O0(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Pr(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(pe.flags|=1024),t}function Zs(){var e=mu!==0;return mu=0,e}function qs(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Qs(e){if(pu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pu=!1}mn=0,et=Ne=pe=null,er=!1,Xr=mu=0,tr=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?pe.memoizedState=et=e:et=et.next=e,et}function Ie(){if(Ne===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=et===null?pe.memoizedState:et.next;if(t!==null)et=t,Ne=e;else{if(e===null)throw pe.alternate===null?Error(l(467)):Error(l(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},et===null?pe.memoizedState=et=e:et=et.next=e}return et}function yu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pr(e){var t=Xr;return Xr+=1,tr===null&&(tr=[]),e=fd(tr,e,t),t=pe,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?nh:Js),e}function vu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Pr(e);if(e.$$typeof===ye)return ot(e)}throw Error(l(438,String(e)))}function ks(e){var t=null,r=pe.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var i=pe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=yu(),pe.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),i=0;i<e;i++)r[i]=re;return t.index++,r}function yn(e,t){return typeof t=="function"?t(e):t}function gu(e){var t=Ie();return Bs(t,Ne,e)}function Bs(e,t,r){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=r;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,b=null,w=t,C=!1;do{var Q=w.lane&-536870913;if(Q!==w.lane?(Se&Q)===Q:(mn&Q)===Q){var A=w.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),Q===Pa&&(C=!0);else if((mn&A)===A){w=w.next,A===Pa&&(C=!0);continue}else Q={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},b===null?(v=b=Q,p=c):b=b.next=Q,pe.lanes|=A,Bn|=A;Q=w.action,Sa&&r(c,Q),c=w.hasEagerState?w.eagerState:r(c,Q)}else A={lane:Q,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},b===null?(v=b=A,p=c):b=b.next=A,pe.lanes|=Q,Bn|=Q;w=w.next}while(w!==null&&w!==t);if(b===null?p=c:b.next=v,!jt(c,e.memoizedState)&&(tt=!0,C&&(r=Ja,r!==null)))throw r;e.memoizedState=c,e.baseState=p,e.baseQueue=b,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Hs(e){var t=Ie(),r=t.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,c=t.memoizedState;if(o!==null){r.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);jt(c,t.memoizedState)||(tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function Od(e,t,r){var i=pe,o=Ie(),c=xe;if(c){if(r===void 0)throw Error(l(407));r=r()}else r=t();var p=!jt((Ne||o).memoizedState,r);if(p&&(o.memoizedState=r,tt=!0),o=o.queue,$s(zd.bind(null,i,o,e),[e]),o.getSnapshot!==t||p||et!==null&&et.memoizedState.tag&1){if(i.flags|=2048,nr(9,{destroy:void 0},Ed.bind(null,i,o,r,t),null),qe===null)throw Error(l(349));c||(mn&127)!==0||xd(i,t,r)}return r}function xd(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=pe.updateQueue,t===null?(t=yu(),pe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Ed(e,t,r,i){t.value=r,t.getSnapshot=i,Td(t)&&wd(e)}function zd(e,t,r){return r(function(){Td(t)&&wd(e)})}function Td(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!jt(e,r)}catch{return!0}}function wd(e){var t=da(e,2);t!==null&&Et(t,e,2)}function Ls(e){var t=mt();if(typeof e=="function"){var r=e;if(e=r(),Sa){Tn(!0);try{r()}finally{Tn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:e},t}function Ad(e,t,r,i){return e.baseState=r,Bs(e,Ne,typeof i=="function"?i:yn)}function x0(e,t,r,i,o){if(Su(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};z.T!==null?r(!0):c.isTransition=!1,i(c),r=t.pending,r===null?(c.next=t.pending=c,jd(t,c)):(c.next=r.next,t.pending=r.next=c)}}function jd(e,t){var r=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=z.T,p={};z.T=p;try{var v=r(o,i),b=z.S;b!==null&&b(p,v),Md(e,t,v)}catch(w){Gs(e,t,w)}finally{c!==null&&p.types!==null&&(c.types=p.types),z.T=c}}else try{c=r(o,i),Md(e,t,c)}catch(w){Gs(e,t,w)}}function Md(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(i){Rd(e,t,i)},function(i){return Gs(e,t,i)}):Rd(e,t,r)}function Rd(e,t,r){t.status="fulfilled",t.value=r,Cd(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,jd(e,r)))}function Gs(e,t,r){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=r,Cd(t),t=t.next;while(t!==i)}e.action=null}function Cd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Dd(e,t){return t}function Nd(e,t){if(xe){var r=qe.formState;if(r!==null){e:{var i=pe;if(xe){if(ke){t:{for(var o=ke,c=Gt;o.nodeType!==8;){if(!c){o=null;break t}if(o=Yt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){ke=Yt(o.nextSibling),i=o.data==="F!";break e}}Rn(i)}i=!1}i&&(t=r[0])}}return r=mt(),r.memoizedState=r.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dd,lastRenderedState:t},r.queue=i,r=Wd.bind(null,pe,i),i.dispatch=r,i=Ls(!1),c=Ps.bind(null,pe,!1,i.queue),i=mt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,r=x0.bind(null,pe,o,c,r),o.dispatch=r,i.memoizedState=e,[t,r,!1]}function Ud(e){var t=Ie();return Zd(t,Ne,e)}function Zd(e,t,r){if(t=Bs(e,t,Dd)[0],e=gu(yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Pr(t)}catch(p){throw p===Ia?su:p}else i=t;t=Ie();var o=t.queue,c=o.dispatch;return r!==t.memoizedState&&(pe.flags|=2048,nr(9,{destroy:void 0},E0.bind(null,o,r),null)),[i,c,e]}function E0(e,t){e.action=t}function qd(e){var t=Ie(),r=Ne;if(r!==null)return Zd(t,r,e);Ie(),t=t.memoizedState,r=Ie();var i=r.queue.dispatch;return r.memoizedState=e,[t,i,!1]}function nr(e,t,r,i){return e={tag:e,create:r,deps:i,inst:t,next:null},t=pe.updateQueue,t===null&&(t=yu(),pe.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e),e}function Qd(){return Ie().memoizedState}function bu(e,t,r,i){var o=mt();pe.flags|=e,o.memoizedState=nr(1|t,{destroy:void 0},r,i===void 0?null:i)}function _u(e,t,r,i){var o=Ie();i=i===void 0?null:i;var c=o.memoizedState.inst;Ne!==null&&i!==null&&Ns(i,Ne.memoizedState.deps)?o.memoizedState=nr(t,c,r,i):(pe.flags|=e,o.memoizedState=nr(1|t,c,r,i))}function kd(e,t){bu(8390656,8,e,t)}function $s(e,t){_u(2048,8,e,t)}function z0(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=yu(),pe.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function Bd(e){var t=Ie().memoizedState;return z0({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Hd(e,t){return _u(4,2,e,t)}function Ld(e,t){return _u(4,4,e,t)}function Gd(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $d(e,t,r){r=r!=null?r.concat([e]):null,_u(4,4,Gd.bind(null,t,e),r)}function Ys(){}function Yd(e,t){var r=Ie();t=t===void 0?null:t;var i=r.memoizedState;return t!==null&&Ns(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function Vd(e,t){var r=Ie();t=t===void 0?null:t;var i=r.memoizedState;if(t!==null&&Ns(t,i[1]))return i[0];if(i=e(),Sa){Tn(!0);try{e()}finally{Tn(!1)}}return r.memoizedState=[i,t],i}function Vs(e,t,r){return r===void 0||(mn&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Kh(),pe.lanes|=e,Bn|=e,r)}function Kd(e,t,r,i){return jt(r,t)?r:Wa.current!==null?(e=Vs(e,r,i),jt(e,t)||(tt=!0),e):(mn&42)===0||(mn&1073741824)!==0&&(Se&261930)===0?(tt=!0,e.memoizedState=r):(e=Kh(),pe.lanes|=e,Bn|=e,t)}function Xd(e,t,r,i,o){var c=k.p;k.p=c!==0&&8>c?c:8;var p=z.T,v={};z.T=v,Ps(e,!1,t,r);try{var b=o(),w=z.S;if(w!==null&&w(v,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var C=_0(b,i);Jr(e,t,C,Ut(e))}else Jr(e,t,i,Ut(e))}catch(Q){Jr(e,t,{then:function(){},status:"rejected",reason:Q},Ut())}finally{k.p=c,p!==null&&v.types!==null&&(p.types=v.types),z.T=p}}function T0(){}function Ks(e,t,r,i){if(e.tag!==5)throw Error(l(476));var o=Pd(e).queue;Xd(e,o,t,$,r===null?T0:function(){return Jd(e),r(i)})}function Pd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:$},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jd(e){var t=Pd(e);t.next===null&&(t=e.alternate.memoizedState),Jr(e,t.next.queue,{},Ut())}function Xs(){return ot(hi)}function Id(){return Ie().memoizedState}function Fd(){return Ie().memoizedState}function w0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Ut();e=Nn(r);var i=Un(t,e,r);i!==null&&(Et(i,t,r),Yr(i,t,r)),t={cache:xs()},e.payload=t;return}t=t.return}}function A0(e,t,r){var i=Ut();r={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Su(e)?eh(t,r):(r=ds(e,t,r,i),r!==null&&(Et(r,e,i),th(r,t,i)))}function Wd(e,t,r){var i=Ut();Jr(e,t,r,i)}function Jr(e,t,r,i){var o={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Su(e))eh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,r);if(o.hasEagerState=!0,o.eagerState=v,jt(v,p))return tu(e,t,o,0),qe===null&&eu(),!1}catch{}if(r=ds(e,t,o,i),r!==null)return Et(r,e,i),th(r,t,i),!0}return!1}function Ps(e,t,r,i){if(i={lane:2,revertLane:Ao(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Su(e)){if(t)throw Error(l(479))}else t=ds(e,r,i,2),t!==null&&Et(t,e,2)}function Su(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function eh(e,t){er=pu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function th(e,t,r){if((r&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,uf(e,r)}}var Ir={readContext:ot,use:vu,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve};Ir.useEffectEvent=Ve;var nh={readContext:ot,use:vu,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:kd,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,bu(4194308,4,Gd.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bu(4194308,4,e,t)},useInsertionEffect:function(e,t){bu(4,2,e,t)},useMemo:function(e,t){var r=mt();t=t===void 0?null:t;var i=e();if(Sa){Tn(!0);try{e()}finally{Tn(!1)}}return r.memoizedState=[i,t],i},useReducer:function(e,t,r){var i=mt();if(r!==void 0){var o=r(t);if(Sa){Tn(!0);try{r(t)}finally{Tn(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=A0.bind(null,pe,e),[i.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ls(e);var t=e.queue,r=Wd.bind(null,pe,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Ys,useDeferredValue:function(e,t){var r=mt();return Vs(r,e,t)},useTransition:function(){var e=Ls(!1);return e=Xd.bind(null,pe,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var i=pe,o=mt();if(xe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=t(),qe===null)throw Error(l(349));(Se&127)!==0||xd(i,t,r)}o.memoizedState=r;var c={value:r,getSnapshot:t};return o.queue=c,kd(zd.bind(null,i,c,e),[e]),i.flags|=2048,nr(9,{destroy:void 0},Ed.bind(null,i,c,r,t),null),r},useId:function(){var e=mt(),t=qe.identifierPrefix;if(xe){var r=en,i=Wt;r=(i&~(1<<32-At(i)-1)).toString(32)+r,t="_"+t+"R_"+r,r=mu++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=S0++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xs,useFormState:Nd,useActionState:Nd,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Ps.bind(null,pe,!0,r),r.dispatch=t,[e,t]},useMemoCache:ks,useCacheRefresh:function(){return mt().memoizedState=w0.bind(null,pe)},useEffectEvent:function(e){var t=mt(),r={impl:e};return t.memoizedState=r,function(){if((Me&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},Js={readContext:ot,use:vu,useCallback:Yd,useContext:ot,useEffect:$s,useImperativeHandle:$d,useInsertionEffect:Hd,useLayoutEffect:Ld,useMemo:Vd,useReducer:gu,useRef:Qd,useState:function(){return gu(yn)},useDebugValue:Ys,useDeferredValue:function(e,t){var r=Ie();return Kd(r,Ne.memoizedState,e,t)},useTransition:function(){var e=gu(yn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:Od,useId:Id,useHostTransitionStatus:Xs,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,t){var r=Ie();return Ad(r,Ne,e,t)},useMemoCache:ks,useCacheRefresh:Fd};Js.useEffectEvent=Bd;var ah={readContext:ot,use:vu,useCallback:Yd,useContext:ot,useEffect:$s,useImperativeHandle:$d,useInsertionEffect:Hd,useLayoutEffect:Ld,useMemo:Vd,useReducer:Hs,useRef:Qd,useState:function(){return Hs(yn)},useDebugValue:Ys,useDeferredValue:function(e,t){var r=Ie();return Ne===null?Vs(r,e,t):Kd(r,Ne.memoizedState,e,t)},useTransition:function(){var e=Hs(yn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:Od,useId:Id,useHostTransitionStatus:Xs,useFormState:qd,useActionState:qd,useOptimistic:function(e,t){var r=Ie();return Ne!==null?Ad(r,Ne,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:ks,useCacheRefresh:Fd};ah.useEffectEvent=Bd;function Is(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:_({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Fs={enqueueSetState:function(e,t,r){e=e._reactInternals;var i=Ut(),o=Nn(i);o.payload=t,r!=null&&(o.callback=r),t=Un(e,o,i),t!==null&&(Et(t,e,i),Yr(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=Ut(),o=Nn(i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Un(e,o,i),t!==null&&(Et(t,e,i),Yr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ut(),i=Nn(r);i.tag=2,t!=null&&(i.callback=t),t=Un(e,i,r),t!==null&&(Et(t,e,r),Yr(t,e,r))}};function rh(e,t,r,i,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,p):t.prototype&&t.prototype.isPureReactComponent?!qr(r,i)||!qr(o,c):!0}function ih(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&Fs.enqueueReplaceState(t,t.state,null)}function Oa(e,t){var r=t;if("ref"in t){r={};for(var i in t)i!=="ref"&&(r[i]=t[i])}if(e=e.defaultProps){r===t&&(r=_({},r));for(var o in e)r[o]===void 0&&(r[o]=e[o])}return r}function uh(e){Wi(e)}function lh(e){console.error(e)}function sh(e){Wi(e)}function Ou(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function oh(e,t,r){try{var i=e.onCaughtError;i(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ws(e,t,r){return r=Nn(r),r.tag=3,r.payload={element:null},r.callback=function(){Ou(e,t)},r}function ch(e){return e=Nn(e),e.tag=3,e}function fh(e,t,r,i){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){oh(t,r,i)}}var p=r.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){oh(t,r,i),typeof o!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function j0(e,t,r,i,o){if(r.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=r.alternate,t!==null&&Xa(t,r,o,!0),r=Rt.current,r!==null){switch(r.tag){case 31:case 13:return $t===null?Nu():r.alternate===null&&Ke===0&&(Ke=3),r.flags&=-257,r.flags|=65536,r.lanes=o,i===ou?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([i]):t.add(i),zo(e,i,o)),!1;case 22:return r.flags|=65536,i===ou?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([i]):r.add(i)),zo(e,i,o)),!1}throw Error(l(435,r.tag))}return zo(e,i,o),Nu(),!1}if(xe)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==gs&&(e=Error(l(422),{cause:i}),Br(Bt(e,r)))):(i!==gs&&(t=Error(l(423),{cause:i}),Br(Bt(t,r))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Bt(i,r),o=Ws(e.stateNode,i,o),js(e,o),Ke!==4&&(Ke=2)),!1;var c=Error(l(520),{cause:i});if(c=Bt(c,r),ii===null?ii=[c]:ii.push(c),Ke!==4&&(Ke=2),t===null)return!0;i=Bt(i,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=o&-o,r.lanes|=e,e=Ws(r.stateNode,i,e),js(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Hn===null||!Hn.has(c))))return r.flags|=65536,o&=-o,r.lanes|=o,o=ch(o),fh(o,e,r,i),js(r,o),!1}r=r.return}while(r!==null);return!1}var eo=Error(l(461)),tt=!1;function ct(e,t,r,i){t.child=e===null?md(t,null,r,i):_a(t,e.child,r,i)}function dh(e,t,r,i,o){r=r.render;var c=t.ref;if("ref"in i){var p={};for(var v in i)v!=="ref"&&(p[v]=i[v])}else p=i;return ya(t),i=Us(e,t,r,p,c,o),v=Zs(),e!==null&&!tt?(qs(e,t,o),vn(e,t,o)):(xe&&v&&ys(t),t.flags|=1,ct(e,t,i,o),t.child)}function hh(e,t,r,i,o){if(e===null){var c=r.type;return typeof c=="function"&&!hs(c)&&c.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=c,ph(e,t,c,i,o)):(e=au(r.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!so(e,o)){var p=c.memoizedProps;if(r=r.compare,r=r!==null?r:qr,r(p,i)&&e.ref===t.ref)return vn(e,t,o)}return t.flags|=1,e=fn(c,i),e.ref=t.ref,e.return=t,t.child=e}function ph(e,t,r,i,o){if(e!==null){var c=e.memoizedProps;if(qr(c,i)&&e.ref===t.ref)if(tt=!1,t.pendingProps=i=c,so(e,o))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,vn(e,t,o)}return to(e,t,r,i,o)}function mh(e,t,r,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|r:r,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return yh(e,t,c,r,i)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&lu(t,c!==null?c.cachePool:null),c!==null?gd(t,c):Rs(),bd(t);else return i=t.lanes=536870912,yh(e,t,c!==null?c.baseLanes|r:r,r,i)}else c!==null?(lu(t,c.cachePool),gd(t,c),qn(),t.memoizedState=null):(e!==null&&lu(t,null),Rs(),qn());return ct(e,t,o,r),t.child}function Fr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function yh(e,t,r,i,o){var c=zs();return c=c===null?null:{parent:We._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&lu(t,null),Rs(),bd(t),e!==null&&Xa(e,t,i,!0),t.childLanes=o,null}function xu(e,t){return t=zu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function vh(e,t,r){return _a(t,e.child,null,r),e=xu(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function M0(e,t,r){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(i.mode==="hidden")return e=xu(t,i),t.lanes=536870912,Fr(null,e);if(Ds(t),(e=ke)?(e=jp(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jn!==null?{id:Wt,overflow:en}:null,retryLane:536870912,hydrationErrors:null},r=ed(e),r.return=t,t.child=r,st=t,ke=null)):e=null,e===null)throw Rn(t);return t.lanes=536870912,null}return xu(t,i)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Ds(t),o)if(t.flags&256)t.flags&=-257,t=vh(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(tt||Xa(e,t,r,!1),o=(r&e.childLanes)!==0,tt||o){if(i=qe,i!==null&&(p=lf(i,r),p!==0&&p!==c.retryLane))throw c.retryLane=p,da(e,p),Et(i,e,p),eo;Nu(),t=vh(e,t,r)}else e=c.treeContext,ke=Yt(p.nextSibling),st=t,xe=!0,Mn=null,Gt=!1,e!==null&&ad(t,e),t=xu(t,i),t.flags|=4096;return t}return e=fn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Eu(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function to(e,t,r,i,o){return ya(t),r=Us(e,t,r,i,void 0,o),i=Zs(),e!==null&&!tt?(qs(e,t,o),vn(e,t,o)):(xe&&i&&ys(t),t.flags|=1,ct(e,t,r,o),t.child)}function gh(e,t,r,i,o,c){return ya(t),t.updateQueue=null,r=Sd(t,i,r,o),_d(e),i=Zs(),e!==null&&!tt?(qs(e,t,c),vn(e,t,c)):(xe&&i&&ys(t),t.flags|=1,ct(e,t,r,c),t.child)}function bh(e,t,r,i,o){if(ya(t),t.stateNode===null){var c=$a,p=r.contextType;typeof p=="object"&&p!==null&&(c=ot(p)),c=new r(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Fs,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},ws(t),p=r.contextType,c.context=typeof p=="object"&&p!==null?ot(p):$a,c.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(Is(t,r,p,i),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Fs.enqueueReplaceState(c,c.state,null),Kr(t,i,c,o),Vr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,b=Oa(r,v);c.props=b;var w=c.context,C=r.contextType;p=$a,typeof C=="object"&&C!==null&&(p=ot(C));var Q=r.getDerivedStateFromProps;C=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,C||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||w!==p)&&ih(t,c,i,p),Dn=!1;var A=t.memoizedState;c.state=A,Kr(t,i,c,o),Vr(),w=t.memoizedState,v||A!==w||Dn?(typeof Q=="function"&&(Is(t,r,Q,i),w=t.memoizedState),(b=Dn||rh(t,r,b,i,A,w,p))?(C||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=w),c.props=i,c.state=w,c.context=p,i=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,As(e,t),p=t.memoizedProps,C=Oa(r,p),c.props=C,Q=t.pendingProps,A=c.context,w=r.contextType,b=$a,typeof w=="object"&&w!==null&&(b=ot(w)),v=r.getDerivedStateFromProps,(w=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Q||A!==b)&&ih(t,c,i,b),Dn=!1,A=t.memoizedState,c.state=A,Kr(t,i,c,o),Vr();var j=t.memoizedState;p!==Q||A!==j||Dn||e!==null&&e.dependencies!==null&&iu(e.dependencies)?(typeof v=="function"&&(Is(t,r,v,i),j=t.memoizedState),(C=Dn||rh(t,r,C,i,A,j,b)||e!==null&&e.dependencies!==null&&iu(e.dependencies))?(w||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,j,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,j,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=j),c.props=i,c.state=j,c.context=b,i=C):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Eu(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,r=i&&typeof r.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=_a(t,e.child,null,o),t.child=_a(t,null,r,o)):ct(e,t,r,o),t.memoizedState=c.state,e=t.child):e=vn(e,t,o),e}function _h(e,t,r,i){return pa(),t.flags|=256,ct(e,t,r,i),t.child}var no={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ao(e){return{baseLanes:e,cachePool:od()}}function ro(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Nt),e}function Sh(e,t,r){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(o?Zn(t):qn(),(e=ke)?(e=jp(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jn!==null?{id:Wt,overflow:en}:null,retryLane:536870912,hydrationErrors:null},r=ed(e),r.return=t,t.child=r,st=t,ke=null)):e=null,e===null)throw Rn(t);return Ho(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(qn(),o=t.mode,v=zu({mode:"hidden",children:v},o),i=ha(i,o,r,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=ao(r),i.childLanes=ro(e,p,r),t.memoizedState=no,Fr(null,i)):(Zn(t),io(t,v))}var b=e.memoizedState;if(b!==null&&(v=b.dehydrated,v!==null)){if(c)t.flags&256?(Zn(t),t.flags&=-257,t=uo(e,t,r)):t.memoizedState!==null?(qn(),t.child=e.child,t.flags|=128,t=null):(qn(),v=i.fallback,o=t.mode,i=zu({mode:"visible",children:i.children},o),v=ha(v,o,r,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,_a(t,e.child,null,r),i=t.child,i.memoizedState=ao(r),i.childLanes=ro(e,p,r),t.memoizedState=no,t=Fr(null,i));else if(Zn(t),Ho(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var w=p.dgst;p=w,i=Error(l(419)),i.stack="",i.digest=p,Br({value:i,source:null,stack:null}),t=uo(e,t,r)}else if(tt||Xa(e,t,r,!1),p=(r&e.childLanes)!==0,tt||p){if(p=qe,p!==null&&(i=lf(p,r),i!==0&&i!==b.retryLane))throw b.retryLane=i,da(e,i),Et(p,e,i),eo;Bo(v)||Nu(),t=uo(e,t,r)}else Bo(v)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,ke=Yt(v.nextSibling),st=t,xe=!0,Mn=null,Gt=!1,e!==null&&ad(t,e),t=io(t,i.children),t.flags|=4096);return t}return o?(qn(),v=i.fallback,o=t.mode,b=e.child,w=b.sibling,i=fn(b,{mode:"hidden",children:i.children}),i.subtreeFlags=b.subtreeFlags&65011712,w!==null?v=fn(w,v):(v=ha(v,o,r,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Fr(null,i),i=t.child,v=e.child.memoizedState,v===null?v=ao(r):(o=v.cachePool,o!==null?(b=We._currentValue,o=o.parent!==b?{parent:b,pool:b}:o):o=od(),v={baseLanes:v.baseLanes|r,cachePool:o}),i.memoizedState=v,i.childLanes=ro(e,p,r),t.memoizedState=no,Fr(e.child,i)):(Zn(t),r=e.child,e=r.sibling,r=fn(r,{mode:"visible",children:i.children}),r.return=t,r.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=r,t.memoizedState=null,r)}function io(e,t){return t=zu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zu(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function uo(e,t,r){return _a(t,e.child,null,r),e=io(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oh(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ss(e.return,t,r)}function lo(e,t,r,i,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=r,p.tailMode=o,p.treeForkCount=c)}function xh(e,t,r){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var p=Je.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,B(Je,p),ct(e,t,i,r),i=xe?kr:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oh(e,r,t);else if(e.tag===19)Oh(e,r,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(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&hu(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),lo(t,!1,o,r,c,i);break;case"backwards":case"unstable_legacy-backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&hu(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}lo(t,!0,r,null,c,i);break;case"together":lo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function vn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Xa(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,r=fn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function so(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&iu(e)))}function R0(e,t,r){switch(t.tag){case 3:pt(t,t.stateNode.containerInfo),Cn(t,We,e.memoizedState.cache),pa();break;case 27:case 5:Er(t);break;case 4:pt(t,t.stateNode.containerInfo);break;case 10:Cn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ds(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Zn(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Sh(e,t,r):(Zn(t),e=vn(e,t,r),e!==null?e.sibling:null);Zn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(r&t.childLanes)!==0,i||(Xa(e,t,r,!1),i=(r&t.childLanes)!==0),o){if(i)return xh(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Je,Je.current),i)break;return null;case 22:return t.lanes=0,mh(e,t,r,t.pendingProps);case 24:Cn(t,We,e.memoizedState.cache)}return vn(e,t,r)}function Eh(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!so(e,r)&&(t.flags&128)===0)return tt=!1,R0(e,t,r);tt=(e.flags&131072)!==0}else tt=!1,xe&&(t.flags&1048576)!==0&&nd(t,kr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e=="function")hs(e)?(i=Oa(e,i),t.tag=1,t=bh(null,t,e,i,r)):(t.tag=0,t=to(null,t,e,i,r));else{if(e!=null){var o=e.$$typeof;if(o===ge){t.tag=11,t=dh(null,t,e,i,r);break e}else if(o===R){t.tag=14,t=hh(null,t,e,i,r);break e}}throw t=fe(e)||e,Error(l(306,t,""))}}return t;case 0:return to(e,t,t.type,t.pendingProps,r);case 1:return i=t.type,o=Oa(i,t.pendingProps),bh(e,t,i,o,r);case 3:e:{if(pt(t,t.stateNode.containerInfo),e===null)throw Error(l(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,As(e,t),Kr(t,i,null,r);var p=t.memoizedState;if(i=p.cache,Cn(t,We,i),i!==c.cache&&Os(t,[We],r,!0),Vr(),i=p.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=_h(e,t,i,r);break e}else if(i!==o){o=Bt(Error(l(424)),t),Br(o),t=_h(e,t,i,r);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ke=Yt(e.firstChild),st=t,xe=!0,Mn=null,Gt=!0,r=md(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(pa(),i===o){t=vn(e,t,r);break e}ct(e,t,i,r)}t=t.child}return t;case 26:return Eu(e,t),e===null?(r=Up(t.type,null,t.pendingProps,null))?t.memoizedState=r:xe||(r=t.type,e=t.pendingProps,i=Hu(oe.current).createElement(r),i[lt]=t,i[gt]=e,ft(i,r,e),it(i),t.stateNode=i):t.memoizedState=Up(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Er(t),e===null&&xe&&(i=t.stateNode=Cp(t.type,t.pendingProps,oe.current),st=t,Gt=!0,o=ke,Yn(t.type)?(Lo=o,ke=Yt(i.firstChild)):ke=o),ct(e,t,t.pendingProps.children,r),Eu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((o=i=ke)&&(i=lb(i,t.type,t.pendingProps,Gt),i!==null?(t.stateNode=i,st=t,ke=Yt(i.firstChild),Gt=!1,o=!0):o=!1),o||Rn(t)),Er(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,i=c.children,qo(o,c)?i=null:p!==null&&qo(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Us(e,t,O0,null,null,r),hi._currentValue=o),Eu(e,t),ct(e,t,i,r),t.child;case 6:return e===null&&xe&&((e=r=ke)&&(r=sb(r,t.pendingProps,Gt),r!==null?(t.stateNode=r,st=t,ke=null,e=!0):e=!1),e||Rn(t)),null;case 13:return Sh(e,t,r);case 4:return pt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=_a(t,null,i,r):ct(e,t,i,r),t.child;case 11:return dh(e,t,t.type,t.pendingProps,r);case 7:return ct(e,t,t.pendingProps,r),t.child;case 8:return ct(e,t,t.pendingProps.children,r),t.child;case 12:return ct(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.pendingProps,Cn(t,t.type,i.value),ct(e,t,i.children,r),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,ya(t),o=ot(o),i=i(o),t.flags|=1,ct(e,t,i,r),t.child;case 14:return hh(e,t,t.type,t.pendingProps,r);case 15:return ph(e,t,t.type,t.pendingProps,r);case 19:return xh(e,t,r);case 31:return M0(e,t,r);case 22:return mh(e,t,r,t.pendingProps);case 24:return ya(t),i=ot(We),e===null?(o=zs(),o===null&&(o=qe,c=xs(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=r),o=c),t.memoizedState={parent:i,cache:o},ws(t),Cn(t,We,o)):((e.lanes&r)!==0&&(As(e,t),Kr(t,null,null,r),Vr()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Cn(t,We,i)):(i=c.cache,Cn(t,We,i),i!==o.cache&&Os(t,[We],r,!0))),ct(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function gn(e){e.flags|=4}function oo(e,t,r,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Ih())e.flags|=8192;else throw ba=ou,Ts}else e.flags&=-16777217}function zh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bp(t))if(Ih())e.flags|=8192;else throw ba=ou,Ts}function Tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?af():536870912,e.lanes|=t,ur|=t)}function Wr(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function C0(e,t,r){var i=t.pendingProps;switch(vs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return r=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),pn(We),Pe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ka(t)?gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bs())),Be(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(gn(t),c!==null?(Be(t),zh(t,c)):(Be(t),oo(t,o,null,i,r))):c?c!==e.memoizedState?(gn(t),Be(t),zh(t,c)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&gn(t),Be(t),oo(t,o,e,i,r)),null;case 27:if(qi(t),r=oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&gn(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Be(t),null}e=L.current,Ka(t)?rd(t):(e=Cp(o,i,r),t.stateNode=e,gn(t))}return Be(t),null;case 5:if(qi(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&gn(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return Be(t),null}if(c=L.current,Ka(t))rd(t);else{var p=Hu(oe.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?p.createElement(o,{is:i.is}):p.createElement(o)}}c[lt]=t,c[gt]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(ft(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&gn(t)}}return Be(t),oo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&gn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(l(166));if(e=oe.current,Ka(t)){if(e=t.stateNode,r=t.memoizedProps,i=null,o=st,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[lt]=t,e=!!(e.nodeValue===r||i!==null&&i.suppressHydrationWarning===!0||Sp(e.nodeValue,r)),e||Rn(t,!0)}else e=Hu(e).createTextNode(i),e[lt]=t,t.stateNode=e}return Be(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ka(t),r!==null){if(e===null){if(!i)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[lt]=t}else pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else r=bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Be(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ka(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[lt]=t}else pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),o=!1}else o=bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=r,t):(r=i!==null,e=e!==null&&e.memoizedState!==null,r&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),Tu(t,t.updateQueue),Be(t),null);case 4:return Pe(),e===null&&Co(t.stateNode.containerInfo),Be(t),null;case 10:return pn(t.type),Be(t),null;case 19:if(U(Je),i=t.memoizedState,i===null)return Be(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Wr(i,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=hu(e),c!==null){for(t.flags|=128,Wr(i,!1),e=c.updateQueue,t.updateQueue=e,Tu(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Wf(r,e),r=r.sibling;return B(Je,Je.current&1|2),xe&&dn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Tt()>Ru&&(t.flags|=128,o=!0,Wr(i,!1),t.lanes=4194304)}else{if(!o)if(e=hu(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tu(t,e),Wr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!xe)return Be(t),null}else 2*Tt()-i.renderingStartTime>Ru&&r!==536870912&&(t.flags|=128,o=!0,Wr(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Tt(),e.sibling=null,r=Je.current,B(Je,o?r&1|2:r&1),xe&&dn(t,i.treeForkCount),e):(Be(t),null);case 22:case 23:return Ct(t),Cs(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(r&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),r=t.updateQueue,r!==null&&Tu(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==r&&(t.flags|=2048),e!==null&&U(va),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),pn(We),Be(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function D0(e,t){switch(vs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pn(We),Pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qi(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(l(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Je),null;case 4:return Pe(),null;case 10:return pn(t.type),null;case 22:case 23:return Ct(t),Cs(),e!==null&&U(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pn(We),null;case 25:return null;default:return null}}function Th(e,t){switch(vs(t),t.tag){case 3:pn(We),Pe();break;case 26:case 27:case 5:qi(t);break;case 4:Pe();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:U(Je);break;case 10:pn(t.type);break;case 22:case 23:Ct(t),Cs(),e!==null&&U(va);break;case 24:pn(We)}}function ei(e,t){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){i=void 0;var c=r.create,p=r.inst;i=c(),p.destroy=i}r=r.next}while(r!==o)}}catch(v){De(t,t.return,v)}}function Qn(e,t,r){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var p=i.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var b=r,w=v;try{w()}catch(C){De(o,b,C)}}}i=i.next}while(i!==c)}}catch(C){De(t,t.return,C)}}function wh(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{vd(t,r)}catch(i){De(e,e.return,i)}}}function Ah(e,t,r){r.props=Oa(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(i){De(e,t,i)}}function ti(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof r=="function"?e.refCleanup=r(i):r.current=i}}catch(o){De(e,t,o)}}function tn(e,t){var r=e.ref,i=e.refCleanup;if(r!==null)if(typeof i=="function")try{i()}catch(o){De(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){De(e,t,o)}else r.current=null}function jh(e){var t=e.type,r=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&i.focus();break e;case"img":r.src?i.src=r.src:r.srcSet&&(i.srcset=r.srcSet)}}catch(o){De(e,e.return,o)}}function co(e,t,r){try{var i=e.stateNode;tb(i,e.type,r,t),i[gt]=t}catch(o){De(e,e.return,o)}}function Mh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yn(e.type)||e.tag===4}function fo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mh(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&&Yn(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 ho(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=on));else if(i!==4&&(i===27&&Yn(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(ho(e,t,r),e=e.sibling;e!==null;)ho(e,t,r),e=e.sibling}function wu(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(i===27&&Yn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(wu(e,t,r),e=e.sibling;e!==null;)wu(e,t,r),e=e.sibling}function Rh(e){var t=e.stateNode,r=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ft(t,i,r),t[lt]=e,t[gt]=r}catch(c){De(e,e.return,c)}}var bn=!1,nt=!1,po=!1,Ch=typeof WeakSet=="function"?WeakSet:Set,ut=null;function N0(e,t){if(e=e.containerInfo,Uo=Xu,e=$f(e),us(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var p=0,v=-1,b=-1,w=0,C=0,Q=e,A=null;t:for(;;){for(var j;Q!==r||o!==0&&Q.nodeType!==3||(v=p+o),Q!==c||i!==0&&Q.nodeType!==3||(b=p+i),Q.nodeType===3&&(p+=Q.nodeValue.length),(j=Q.firstChild)!==null;)A=Q,Q=j;for(;;){if(Q===e)break t;if(A===r&&++w===o&&(v=p),A===c&&++C===i&&(b=p),(j=Q.nextSibling)!==null)break;Q=A,A=Q.parentNode}Q=j}r=v===-1||b===-1?null:{start:v,end:b}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zo={focusedElem:e,selectionRange:r},Xu=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){switch(t=ut,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(r=0;r<e.length;r++)o=e[r],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,r=t,o=c.memoizedProps,c=c.memoizedState,i=r.stateNode;try{var I=Oa(r.type,o);e=i.getSnapshotBeforeUpdate(I,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(se){De(r,r.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)ko(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ko(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}}function Dh(e,t,r){var i=r.flags;switch(r.tag){case 0:case 11:case 15:Sn(e,r),i&4&&ei(5,r);break;case 1:if(Sn(e,r),i&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(p){De(r,r.return,p)}else{var o=Oa(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){De(r,r.return,p)}}i&64&&wh(r),i&512&&ti(r,r.return);break;case 3:if(Sn(e,r),i&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{vd(e,t)}catch(p){De(r,r.return,p)}}break;case 27:t===null&&i&4&&Rh(r);case 26:case 5:Sn(e,r),t===null&&i&4&&jh(r),i&512&&ti(r,r.return);break;case 12:Sn(e,r);break;case 31:Sn(e,r),i&4&&Zh(e,r);break;case 13:Sn(e,r),i&4&&qh(e,r),i&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=G0.bind(null,r),ob(e,r))));break;case 22:if(i=r.memoizedState!==null||bn,!i){t=t!==null&&t.memoizedState!==null||nt,o=bn;var c=nt;bn=i,(nt=t)&&!c?On(e,r,(r.subtreeFlags&8772)!==0):Sn(e,r),bn=o,nt=c}break;case 30:break;default:Sn(e,r)}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gl(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 Ge=null,_t=!1;function _n(e,t,r){for(r=r.child;r!==null;)Uh(e,t,r),r=r.sibling}function Uh(e,t,r){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(zr,r)}catch{}switch(r.tag){case 26:nt||tn(r,t),_n(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:nt||tn(r,t);var i=Ge,o=_t;Yn(r.type)&&(Ge=r.stateNode,_t=!1),_n(e,t,r),ci(r.stateNode),Ge=i,_t=o;break;case 5:nt||tn(r,t);case 6:if(i=Ge,o=_t,Ge=null,_n(e,t,r),Ge=i,_t=o,Ge!==null)if(_t)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(r.stateNode)}catch(c){De(r,t,c)}else try{Ge.removeChild(r.stateNode)}catch(c){De(r,t,c)}break;case 18:Ge!==null&&(_t?(e=Ge,wp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),pr(e)):wp(Ge,r.stateNode));break;case 4:i=Ge,o=_t,Ge=r.stateNode.containerInfo,_t=!0,_n(e,t,r),Ge=i,_t=o;break;case 0:case 11:case 14:case 15:Qn(2,r,t),nt||Qn(4,r,t),_n(e,t,r);break;case 1:nt||(tn(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"&&Ah(r,t,i)),_n(e,t,r);break;case 21:_n(e,t,r);break;case 22:nt=(i=nt)||r.memoizedState!==null,_n(e,t,r),nt=i;break;default:_n(e,t,r)}}function Zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pr(e)}catch(r){De(t,t.return,r)}}}function qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pr(e)}catch(r){De(t,t.return,r)}}function U0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ch),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ch),t;default:throw Error(l(435,e.tag))}}function Au(e,t){var r=U0(e);t.forEach(function(i){if(!r.has(i)){r.add(i);var o=$0.bind(null,e,i);i.then(o,o)}})}function St(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(Yn(v.type)){Ge=v.stateNode,_t=!1;break e}break;case 5:Ge=v.stateNode,_t=!1;break e;case 3:case 4:Ge=v.stateNode.containerInfo,_t=!0;break e}v=v.return}if(Ge===null)throw Error(l(160));Uh(c,p,o),Ge=null,_t=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Qh(t,e),t=t.sibling}var Jt=null;function Qh(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Ot(e),i&4&&(Qn(3,e,e.return),ei(3,e),Qn(5,e,e.return));break;case 1:St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),i&64&&bn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?i:r.concat(i))));break;case 26:var o=Jt;if(St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),i&4){var c=r!==null?r.memoizedState:null;if(i=e.memoizedState,r===null)if(i===null)if(e.stateNode===null){e:{i=e.type,r=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Ar]||c[lt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),ft(c,i,r),c[lt]=e,it(c),i=c;break e;case"link":var p=Qp("link","href",o).get(i+(r.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&c.getAttribute("rel")===(r.rel==null?null:r.rel)&&c.getAttribute("title")===(r.title==null?null:r.title)&&c.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(i),ft(c,i,r),o.head.appendChild(c);break;case"meta":if(p=Qp("meta","content",o).get(i+(r.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(r.content==null?null:""+r.content)&&c.getAttribute("name")===(r.name==null?null:r.name)&&c.getAttribute("property")===(r.property==null?null:r.property)&&c.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&c.getAttribute("charset")===(r.charSet==null?null:r.charSet)){p.splice(v,1);break t}}c=o.createElement(i),ft(c,i,r),o.head.appendChild(c);break;default:throw Error(l(468,i))}c[lt]=e,it(c),i=c}e.stateNode=i}else kp(o,e.type,e.stateNode);else e.stateNode=qp(o,i,e.memoizedProps);else c!==i?(c===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):c.count--,i===null?kp(o,e.type,e.stateNode):qp(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&co(e,e.memoizedProps,r.memoizedProps)}break;case 27:St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),r!==null&&i&4&&co(e,e.memoizedProps,r.memoizedProps);break;case 5:if(St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),e.flags&32){o=e.stateNode;try{qa(o,"")}catch(I){De(e,e.return,I)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,co(e,o,r!==null?r.memoizedProps:o)),i&1024&&(po=!0);break;case 6:if(St(t,e),Ot(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(I){De(e,e.return,I)}}break;case 3:if($u=null,o=Jt,Jt=Lu(t.containerInfo),St(t,e),Jt=o,Ot(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(I){De(e,e.return,I)}po&&(po=!1,kh(e));break;case 4:i=Jt,Jt=Lu(e.stateNode.containerInfo),St(t,e),Ot(e),Jt=i;break;case 12:St(t,e),Ot(e);break;case 31:St(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Au(e,i)));break;case 13:St(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Mu=Tt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Au(e,i)));break;case 22:o=e.memoizedState!==null;var b=r!==null&&r.memoizedState!==null,w=bn,C=nt;if(bn=w||o,nt=C||b,St(t,e),nt=C,bn=w,Ot(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(r===null||b||bn||nt||xa(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){b=r=t;try{if(c=b.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=b.stateNode;var Q=b.memoizedProps.style,A=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(I){De(b,b.return,I)}}}else if(t.tag===6){if(r===null){b=t;try{b.stateNode.nodeValue=o?"":b.memoizedProps}catch(I){De(b,b.return,I)}}}else if(t.tag===18){if(r===null){b=t;try{var j=b.stateNode;o?Ap(j,!0):Ap(b.stateNode,!1)}catch(I){De(b,b.return,I)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(r=i.retryQueue,r!==null&&(i.retryQueue=null,Au(e,r))));break;case 19:St(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Au(e,i)));break;case 30:break;case 21:break;default:St(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var r,i=e.return;i!==null;){if(Mh(i)){r=i;break}i=i.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var o=r.stateNode,c=fo(e);wu(e,c,o);break;case 5:var p=r.stateNode;r.flags&32&&(qa(p,""),r.flags&=-33);var v=fo(e);wu(e,v,p);break;case 3:case 4:var b=r.stateNode.containerInfo,w=fo(e);ho(e,w,b);break;default:throw Error(l(161))}}catch(C){De(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dh(e,t.alternate,t),t=t.sibling}function xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),xa(t);break;case 1:tn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Ah(t,t.return,r),xa(t);break;case 27:ci(t.stateNode);case 26:case 5:tn(t,t.return),xa(t);break;case 22:t.memoizedState===null&&xa(t);break;case 30:xa(t);break;default:xa(t)}e=e.sibling}}function On(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:On(o,c,r),ei(4,c);break;case 1:if(On(o,c,r),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(w){De(i,i.return,w)}if(i=c,o=i.updateQueue,o!==null){var v=i.stateNode;try{var b=o.shared.hiddenCallbacks;if(b!==null)for(o.shared.hiddenCallbacks=null,o=0;o<b.length;o++)yd(b[o],v)}catch(w){De(i,i.return,w)}}r&&p&64&&wh(c),ti(c,c.return);break;case 27:Rh(c);case 26:case 5:On(o,c,r),r&&i===null&&p&4&&jh(c),ti(c,c.return);break;case 12:On(o,c,r);break;case 31:On(o,c,r),r&&p&4&&Zh(o,c);break;case 13:On(o,c,r),r&&p&4&&qh(o,c);break;case 22:c.memoizedState===null&&On(o,c,r),ti(c,c.return);break;case 30:break;default:On(o,c,r)}t=t.sibling}}function mo(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Hr(r))}function yo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hr(e))}function It(e,t,r,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bh(e,t,r,i),t=t.sibling}function Bh(e,t,r,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:It(e,t,r,i),o&2048&&ei(9,t);break;case 1:It(e,t,r,i);break;case 3:It(e,t,r,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hr(e)));break;case 12:if(o&2048){It(e,t,r,i),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){De(t,t.return,b)}}else It(e,t,r,i);break;case 31:It(e,t,r,i);break;case 13:It(e,t,r,i);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?It(e,t,r,i):ni(e,t):c._visibility&2?It(e,t,r,i):(c._visibility|=2,ar(e,t,r,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&mo(p,t);break;case 24:It(e,t,r,i),o&2048&&yo(t.alternate,t);break;default:It(e,t,r,i)}}function ar(e,t,r,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=r,b=i,w=p.flags;switch(p.tag){case 0:case 11:case 15:ar(c,p,v,b,o),ei(8,p);break;case 23:break;case 22:var C=p.stateNode;p.memoizedState!==null?C._visibility&2?ar(c,p,v,b,o):ni(c,p):(C._visibility|=2,ar(c,p,v,b,o)),o&&w&2048&&mo(p.alternate,p);break;case 24:ar(c,p,v,b,o),o&&w&2048&&yo(p.alternate,p);break;default:ar(c,p,v,b,o)}t=t.sibling}}function ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,i=t,o=i.flags;switch(i.tag){case 22:ni(r,i),o&2048&&mo(i.alternate,i);break;case 24:ni(r,i),o&2048&&yo(i.alternate,i);break;default:ni(r,i)}t=t.sibling}}var ai=8192;function rr(e,t,r){if(e.subtreeFlags&ai)for(e=e.child;e!==null;)Hh(e,t,r),e=e.sibling}function Hh(e,t,r){switch(e.tag){case 26:rr(e,t,r),e.flags&ai&&e.memoizedState!==null&&Sb(r,Jt,e.memoizedState,e.memoizedProps);break;case 5:rr(e,t,r);break;case 3:case 4:var i=Jt;Jt=Lu(e.stateNode.containerInfo),rr(e,t,r),Jt=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ai,ai=16777216,rr(e,t,r),ai=i):rr(e,t,r));break;default:rr(e,t,r)}}function Lh(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 ri(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];ut=i,$h(i,e)}Lh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gh(e),e=e.sibling}function Gh(e){switch(e.tag){case 0:case 11:case 15:ri(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:ri(e);break;case 12:ri(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ju(e)):ri(e);break;default:ri(e)}}function ju(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];ut=i,$h(i,e)}Lh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),ju(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,ju(t));break;default:ju(t)}e=e.sibling}}function $h(e,t){for(;ut!==null;){var r=ut;switch(r.tag){case 0:case 11:case 15:Qn(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var i=r.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Hr(r.memoizedState.cache)}if(i=r.child,i!==null)i.return=r,ut=i;else e:for(r=e;ut!==null;){i=ut;var o=i.sibling,c=i.return;if(Nh(i),i===r){ut=null;break e}if(o!==null){o.return=c,ut=o;break e}ut=c}}}var Z0={getCacheForType:function(e){var t=ot(We),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return ot(We).controller.signal}},q0=typeof WeakMap=="function"?WeakMap:Map,Me=0,qe=null,be=null,Se=0,Ce=0,Dt=null,kn=!1,ir=!1,vo=!1,xn=0,Ke=0,Bn=0,Ea=0,go=0,Nt=0,ur=0,ii=null,xt=null,bo=!1,Mu=0,Yh=0,Ru=1/0,Cu=null,Hn=null,at=0,Ln=null,lr=null,En=0,_o=0,So=null,Vh=null,ui=0,Oo=null;function Ut(){return(Me&2)!==0&&Se!==0?Se&-Se:z.T!==null?Ao():sf()}function Kh(){if(Nt===0)if((Se&536870912)===0||xe){var e=Bi;Bi<<=1,(Bi&3932160)===0&&(Bi=262144),Nt=e}else Nt=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Nt}function Et(e,t,r){(e===qe&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(sr(e,0),Gn(e,Se,Nt,!1)),wr(e,r),((Me&2)===0||e!==qe)&&(e===qe&&((Me&2)===0&&(Ea|=r),Ke===4&&Gn(e,Se,Nt,!1)),nn(e))}function Xh(e,t,r){if((Me&6)!==0)throw Error(l(327));var i=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Tr(e,t),o=i?B0(e,t):Eo(e,t,!0),c=i;do{if(o===0){ir&&!i&&Gn(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!Q0(r)){o=Eo(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=ii;var b=v.current.memoizedState.isDehydrated;if(b&&(sr(v,p).flags|=256),p=Eo(v,p,!1),p!==2){if(vo&&!b){v.errorRecoveryDisabledLanes|=c,Ea|=c,o=4;break e}c=xt,xt=o,c!==null&&(xt===null?xt=c:xt.push.apply(xt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){sr(e,0),Gn(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Gn(i,t,Nt,!kn);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Mu+300-Tt(),10<o)){if(Gn(i,t,Nt,!kn),Li(i,0,!0)!==0)break e;En=t,i.timeoutHandle=zp(Ph.bind(null,i,r,xt,Cu,bo,t,Nt,Ea,ur,kn,c,"Throttled",-0,0),o);break e}Ph(i,r,xt,Cu,bo,t,Nt,Ea,ur,kn,c,null,-0,0)}}break}while(!0);nn(e)}function Ph(e,t,r,i,o,c,p,v,b,w,C,Q,A,j){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Hh(t,c,Q);var I=(c&62914560)===c?Mu-Tt():(c&4194048)===c?Yh-Tt():0;if(I=Ob(Q,I),I!==null){En=c,e.cancelPendingCommit=I(ap.bind(null,e,t,c,r,i,o,p,v,b,C,Q,null,A,j)),Gn(e,c,p,!w);return}}ap(e,t,c,r,i,o,p,v,b)}function Q0(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var i=0;i<r.length;i++){var o=r[i],c=o.getSnapshot;o=o.value;try{if(!jt(c(),o))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Gn(e,t,r,i){t&=~go,t&=~Ea,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-At(o),p=1<<c;i[c]=-1,o&=~p}r!==0&&rf(e,r,t)}function Du(){return(Me&6)===0?(li(0),!1):!0}function xo(){if(be!==null){if(Ce===0)var e=be.return;else e=be,hn=ma=null,Qs(e),Fa=null,Gr=0,e=be;for(;e!==null;)Th(e.alternate,e),e=e.return;be=null}}function sr(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,rb(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),En=0,xo(),qe=e,be=r=fn(e.current,null),Se=t,Ce=0,Dt=null,kn=!1,ir=Tr(e,t),vo=!1,ur=Nt=go=Ea=Bn=Ke=0,xt=ii=null,bo=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-At(i),c=1<<o;t|=e[o],i&=~c}return xn=t,eu(),r}function Jh(e,t){pe=null,z.H=Ir,t===Ia||t===su?(t=dd(),Ce=3):t===Ts?(t=dd(),Ce=4):Ce=t===eo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,be===null&&(Ke=1,Ou(e,Bt(t,e.current)))}function Ih(){var e=Rt.current;return e===null?!0:(Se&4194048)===Se?$t===null:(Se&62914560)===Se||(Se&536870912)!==0?e===$t:!1}function Fh(){var e=z.H;return z.H=Ir,e===null?Ir:e}function Wh(){var e=z.A;return z.A=Z0,e}function Nu(){Ke=4,kn||(Se&4194048)!==Se&&Rt.current!==null||(ir=!0),(Bn&134217727)===0&&(Ea&134217727)===0||qe===null||Gn(qe,Se,Nt,!1)}function Eo(e,t,r){var i=Me;Me|=2;var o=Fh(),c=Wh();(qe!==e||Se!==t)&&(Cu=null,sr(e,t)),t=!1;var p=Ke;e:do try{if(Ce!==0&&be!==null){var v=be,b=Dt;switch(Ce){case 8:xo(),p=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var w=Ce;if(Ce=0,Dt=null,or(e,v,b,w),r&&ir){p=0;break e}break;default:w=Ce,Ce=0,Dt=null,or(e,v,b,w)}}k0(),p=Ke;break}catch(C){Jh(e,C)}while(!0);return t&&e.shellSuspendCounter++,hn=ma=null,Me=i,z.H=o,z.A=c,be===null&&(qe=null,Se=0,eu()),p}function k0(){for(;be!==null;)ep(be)}function B0(e,t){var r=Me;Me|=2;var i=Fh(),o=Wh();qe!==e||Se!==t?(Cu=null,Ru=Tt()+500,sr(e,t)):ir=Tr(e,t);e:do try{if(Ce!==0&&be!==null){t=be;var c=Dt;t:switch(Ce){case 1:Ce=0,Dt=null,or(e,t,c,1);break;case 2:case 9:if(cd(c)){Ce=0,Dt=null,tp(t);break}t=function(){Ce!==2&&Ce!==9||qe!==e||(Ce=7),nn(e)},c.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:cd(c)?(Ce=0,Dt=null,tp(t)):(Ce=0,Dt=null,or(e,t,c,7));break;case 5:var p=null;switch(be.tag){case 26:p=be.memoizedState;case 5:case 27:var v=be;if(p?Bp(p):v.stateNode.complete){Ce=0,Dt=null;var b=v.sibling;if(b!==null)be=b;else{var w=v.return;w!==null?(be=w,Uu(w)):be=null}break t}}Ce=0,Dt=null,or(e,t,c,5);break;case 6:Ce=0,Dt=null,or(e,t,c,6);break;case 8:xo(),Ke=6;break e;default:throw Error(l(462))}}H0();break}catch(C){Jh(e,C)}while(!0);return hn=ma=null,z.H=i,z.A=o,Me=r,be!==null?0:(qe=null,Se=0,eu(),Ke)}function H0(){for(;be!==null&&!cg();)ep(be)}function ep(e){var t=Eh(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?Uu(e):be=t}function tp(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=gh(r,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=gh(r,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Qs(t);default:Th(r,t),t=be=Wf(t,xn),t=Eh(r,t,xn)}e.memoizedProps=e.pendingProps,t===null?Uu(e):be=t}function or(e,t,r,i){hn=ma=null,Qs(t),Fa=null,Gr=0;var o=t.return;try{if(j0(e,o,t,r,Se)){Ke=1,Ou(e,Bt(r,e.current)),be=null;return}}catch(c){if(o!==null)throw be=o,c;Ke=1,Ou(e,Bt(r,e.current)),be=null;return}t.flags&32768?(xe||i===1?e=!0:ir||(Se&536870912)!==0?e=!1:(kn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Rt.current,i!==null&&i.tag===13&&(i.flags|=16384))),np(t,e)):Uu(t)}function Uu(e){var t=e;do{if((t.flags&32768)!==0){np(t,kn);return}e=t.return;var r=C0(t.alternate,t,xn);if(r!==null){be=r;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ke===0&&(Ke=5)}function np(e,t){do{var r=D0(e.alternate,e);if(r!==null){r.flags&=32767,be=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=r}while(e!==null);Ke=6,be=null}function ap(e,t,r,i,o,c,p,v,b){e.cancelPendingCommit=null;do Zu();while(at!==0);if((Me&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=fs,_g(e,r,c,p,v,b),e===qe&&(be=qe=null,Se=0),lr=t,Ln=e,En=r,_o=c,So=o,Vh=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Y0(Qi,function(){return sp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=z.T,z.T=null,o=k.p,k.p=2,p=Me,Me|=4;try{N0(e,t,r)}finally{Me=p,k.p=o,z.T=i}}at=1,rp(),ip(),up()}}function rp(){if(at===1){at=0;var e=Ln,t=lr,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=z.T,z.T=null;var i=k.p;k.p=2;var o=Me;Me|=4;try{Qh(t,e);var c=Zo,p=$f(e.containerInfo),v=c.focusedElem,b=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&Gf(v.ownerDocument.documentElement,v)){if(b!==null&&us(v)){var w=b.start,C=b.end;if(C===void 0&&(C=w),"selectionStart"in v)v.selectionStart=w,v.selectionEnd=Math.min(C,v.value.length);else{var Q=v.ownerDocument||document,A=Q&&Q.defaultView||window;if(A.getSelection){var j=A.getSelection(),I=v.textContent.length,se=Math.min(b.start,I),Ze=b.end===void 0?se:Math.min(b.end,I);!j.extend&&se>Ze&&(p=Ze,Ze=se,se=p);var E=Lf(v,se),O=Lf(v,Ze);if(E&&O&&(j.rangeCount!==1||j.anchorNode!==E.node||j.anchorOffset!==E.offset||j.focusNode!==O.node||j.focusOffset!==O.offset)){var T=Q.createRange();T.setStart(E.node,E.offset),j.removeAllRanges(),se>Ze?(j.addRange(T),j.extend(O.node,O.offset)):(T.setEnd(O.node,O.offset),j.addRange(T))}}}}for(Q=[],j=v;j=j.parentNode;)j.nodeType===1&&Q.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var q=Q[v];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Xu=!!Uo,Zo=Uo=null}finally{Me=o,k.p=i,z.T=r}}e.current=t,at=2}}function ip(){if(at===2){at=0;var e=Ln,t=lr,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=z.T,z.T=null;var i=k.p;k.p=2;var o=Me;Me|=4;try{Dh(e,t.alternate,t)}finally{Me=o,k.p=i,z.T=r}}at=3}}function up(){if(at===4||at===3){at=0,fg();var e=Ln,t=lr,r=En,i=Vh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,lr=Ln=null,lp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Hn=null),Hl(r),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(zr,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=z.T,o=k.p,k.p=2,z.T=null;try{for(var c=e.onRecoverableError,p=0;p<i.length;p++){var v=i[p];c(v.value,{componentStack:v.stack})}}finally{z.T=t,k.p=o}}(En&3)!==0&&Zu(),nn(e),o=e.pendingLanes,(r&261930)!==0&&(o&42)!==0?e===Oo?ui++:(ui=0,Oo=e):ui=0,li(0)}}function lp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Hr(t)))}function Zu(){return rp(),ip(),up(),sp()}function sp(){if(at!==5)return!1;var e=Ln,t=_o;_o=0;var r=Hl(En),i=z.T,o=k.p;try{k.p=32>r?32:r,z.T=null,r=So,So=null;var c=Ln,p=En;if(at=0,lr=Ln=null,En=0,(Me&6)!==0)throw Error(l(331));var v=Me;if(Me|=4,Gh(c.current),Bh(c,c.current,p,r),Me=v,li(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(zr,c)}catch{}return!0}finally{k.p=o,z.T=i,lp(e,t)}}function op(e,t,r){t=Bt(r,t),t=Ws(e.stateNode,t,2),e=Un(e,t,2),e!==null&&(wr(e,2),nn(e))}function De(e,t,r){if(e.tag===3)op(e,e,r);else for(;t!==null;){if(t.tag===3){op(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Hn===null||!Hn.has(i))){e=Bt(r,e),r=ch(2),i=Un(t,r,2),i!==null&&(fh(r,i,t,e),wr(i,2),nn(i));break}}t=t.return}}function zo(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new q0;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(r)||(vo=!0,o.add(r),e=L0.bind(null,e,t,r),t.then(e,e))}function L0(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,qe===e&&(Se&r)===r&&(Ke===4||Ke===3&&(Se&62914560)===Se&&300>Tt()-Mu?(Me&2)===0&&sr(e,0):go|=r,ur===Se&&(ur=0)),nn(e)}function cp(e,t){t===0&&(t=af()),e=da(e,t),e!==null&&(wr(e,t),nn(e))}function G0(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),cp(e,r)}function $0(e,t){var r=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(t),cp(e,r)}function Y0(e,t){return ql(e,t)}var qu=null,cr=null,To=!1,Qu=!1,wo=!1,$n=0;function nn(e){e!==cr&&e.next===null&&(cr===null?qu=cr=e:cr=cr.next=e),Qu=!0,To||(To=!0,K0())}function li(e,t){if(!wo&&Qu){wo=!0;do for(var r=!1,i=qu;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var p=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,pp(i,c))}else c=Se,c=Li(i,i===qe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Tr(i,c)||(r=!0,pp(i,c));i=i.next}while(r);wo=!1}}function V0(){fp()}function fp(){Qu=To=!1;var e=0;$n!==0&&ab()&&(e=$n);for(var t=Tt(),r=null,i=qu;i!==null;){var o=i.next,c=dp(i,t);c===0?(i.next=null,r===null?qu=o:r.next=o,o===null&&(cr=r)):(r=i,(e!==0||(c&3)!==0)&&(Qu=!0)),i=o}at!==0&&at!==5||li(e),$n!==0&&($n=0)}function dp(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-At(c),v=1<<p,b=o[p];b===-1?((v&r)===0||(v&i)!==0)&&(o[p]=bg(v,t)):b<=t&&(e.expiredLanes|=v),c&=~v}if(t=qe,r=Se,r=Li(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,r===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ql(i),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Tr(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(i!==null&&Ql(i),Hl(r)){case 2:case 8:r=tf;break;case 32:r=Qi;break;case 268435456:r=nf;break;default:r=Qi}return i=hp.bind(null,e),r=ql(r,i),e.callbackPriority=t,e.callbackNode=r,t}return i!==null&&i!==null&&Ql(i),e.callbackPriority=2,e.callbackNode=null,2}function hp(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Zu()&&e.callbackNode!==r)return null;var i=Se;return i=Li(e,e===qe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Xh(e,i,t),dp(e,Tt()),e.callbackNode!=null&&e.callbackNode===r?hp.bind(null,e):null)}function pp(e,t){if(Zu())return null;Xh(e,t,!0)}function K0(){ib(function(){(Me&6)!==0?ql(ef,V0):fp()})}function Ao(){if($n===0){var e=Pa;e===0&&(e=ki,ki<<=1,(ki&261888)===0&&(ki=256)),$n=e}return $n}function mp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vi(""+e)}function yp(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function X0(e,t,r,i,o){if(t==="submit"&&r&&r.stateNode===o){var c=mp((o[gt]||null).action),p=i.submitter;p&&(t=(t=p[gt]||null)?mp(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Ji("action","action",null,i,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($n!==0){var b=p?yp(o,p):new FormData(o);Ks(r,{pending:!0,data:b,method:o.method,action:c},null,b)}}else typeof c=="function"&&(v.preventDefault(),b=p?yp(o,p):new FormData(o),Ks(r,{pending:!0,data:b,method:o.method,action:c},c,b))},currentTarget:o}]})}}for(var jo=0;jo<cs.length;jo++){var Mo=cs[jo],P0=Mo.toLowerCase(),J0=Mo[0].toUpperCase()+Mo.slice(1);Pt(P0,"on"+J0)}Pt(Kf,"onAnimationEnd"),Pt(Xf,"onAnimationIteration"),Pt(Pf,"onAnimationStart"),Pt("dblclick","onDoubleClick"),Pt("focusin","onFocus"),Pt("focusout","onBlur"),Pt(d0,"onTransitionRun"),Pt(h0,"onTransitionStart"),Pt(p0,"onTransitionCancel"),Pt(Jf,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var si="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(" "),I0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(si));function vp(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var p=i.length-1;0<=p;p--){var v=i[p],b=v.instance,w=v.currentTarget;if(v=v.listener,b!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=w;try{c(o)}catch(C){Wi(C)}o.currentTarget=null,c=b}else for(p=0;p<i.length;p++){if(v=i[p],b=v.instance,w=v.currentTarget,v=v.listener,b!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=w;try{c(o)}catch(C){Wi(C)}o.currentTarget=null,c=b}}}}function _e(e,t){var r=t[Ll];r===void 0&&(r=t[Ll]=new Set);var i=e+"__bubble";r.has(i)||(gp(t,e,2,!1),r.add(i))}function Ro(e,t,r){var i=0;t&&(i|=4),gp(r,e,i,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function Co(e){if(!e[ku]){e[ku]=!0,ff.forEach(function(r){r!=="selectionchange"&&(I0.has(r)||Ro(r,!1,e),Ro(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,Ro("selectionchange",!1,t))}}function gp(e,t,r,i){switch(Kp(t)){case 2:var o=zb;break;case 8:o=Tb;break;default:o=Ko}r=o.bind(null,t,r,e),o=void 0,!Il||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Do(e,t,r,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var v=i.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=i.return;p!==null;){var b=p.tag;if((b===3||b===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=Ca(v),p===null)return;if(b=p.tag,b===5||b===6||b===26||b===27){i=c=p;continue e}v=v.parentNode}}i=i.return}xf(function(){var w=c,C=Pl(r),Q=[];e:{var A=If.get(e);if(A!==void 0){var j=Ji,I=e;switch(e){case"keypress":if(Xi(r)===0)break e;case"keydown":case"keyup":j=$g;break;case"focusin":I="focus",j=ts;break;case"focusout":I="blur",j=ts;break;case"beforeblur":case"afterblur":j=ts;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Kg;break;case Kf:case Xf:case Pf:j=Ug;break;case Jf:j=Pg;break;case"scroll":case"scrollend":j=Mg;break;case"wheel":j=Ig;break;case"copy":case"cut":case"paste":j=qg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Af;break;case"toggle":case"beforetoggle":j=Wg}var se=(t&4)!==0,Ze=!se&&(e==="scroll"||e==="scrollend"),E=se?A!==null?A+"Capture":null:A;se=[];for(var O=w,T;O!==null;){var q=O;if(T=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||T===null||E===null||(q=Mr(O,E),q!=null&&se.push(oi(O,q,T))),Ze)break;O=O.return}0<se.length&&(A=new j(A,I,null,r,C),Q.push({event:A,listeners:se}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",A&&r!==Xl&&(I=r.relatedTarget||r.fromElement)&&(Ca(I)||I[Ra]))break e;if((j||A)&&(A=C.window===C?C:(A=C.ownerDocument)?A.defaultView||A.parentWindow:window,j?(I=r.relatedTarget||r.toElement,j=w,I=I?Ca(I):null,I!==null&&(Ze=f(I),se=I.tag,I!==Ze||se!==5&&se!==27&&se!==6)&&(I=null)):(j=null,I=w),j!==I)){if(se=Tf,q="onMouseLeave",E="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(se=Af,q="onPointerLeave",E="onPointerEnter",O="pointer"),Ze=j==null?A:jr(j),T=I==null?A:jr(I),A=new se(q,O+"leave",j,r,C),A.target=Ze,A.relatedTarget=T,q=null,Ca(C)===w&&(se=new se(E,O+"enter",I,r,C),se.target=T,se.relatedTarget=Ze,q=se),Ze=q,j&&I)t:{for(se=F0,E=j,O=I,T=0,q=E;q;q=se(q))T++;q=0;for(var ue=O;ue;ue=se(ue))q++;for(;0<T-q;)E=se(E),T--;for(;0<q-T;)O=se(O),q--;for(;T--;){if(E===O||O!==null&&E===O.alternate){se=E;break t}E=se(E),O=se(O)}se=null}else se=null;j!==null&&bp(Q,A,j,se,!1),I!==null&&Ze!==null&&bp(Q,Ze,I,se,!0)}}e:{if(A=w?jr(w):window,j=A.nodeName&&A.nodeName.toLowerCase(),j==="select"||j==="input"&&A.type==="file")var we=Zf;else if(Nf(A))if(qf)we=o0;else{we=l0;var ne=u0}else j=A.nodeName,!j||j.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?w&&Kl(w.elementType)&&(we=Zf):we=s0;if(we&&(we=we(e,w))){Uf(Q,we,r,C);break e}ne&&ne(e,A,w),e==="focusout"&&w&&A.type==="number"&&w.memoizedProps.value!=null&&Vl(A,"number",A.value)}switch(ne=w?jr(w):window,e){case"focusin":(Nf(ne)||ne.contentEditable==="true")&&(Ha=ne,ls=w,Qr=null);break;case"focusout":Qr=ls=Ha=null;break;case"mousedown":ss=!0;break;case"contextmenu":case"mouseup":case"dragend":ss=!1,Yf(Q,r,C);break;case"selectionchange":if(f0)break;case"keydown":case"keyup":Yf(Q,r,C)}var me;if(as)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Ba?Cf(e,r)&&(Oe="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Oe="onCompositionStart");Oe&&(jf&&r.locale!=="ko"&&(Ba||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Ba&&(me=Ef()):(An=C,Fl="value"in An?An.value:An.textContent,Ba=!0)),ne=Bu(w,Oe),0<ne.length&&(Oe=new wf(Oe,e,null,r,C),Q.push({event:Oe,listeners:ne}),me?Oe.data=me:(me=Df(r),me!==null&&(Oe.data=me)))),(me=t0?n0(e,r):a0(e,r))&&(Oe=Bu(w,"onBeforeInput"),0<Oe.length&&(ne=new wf("onBeforeInput","beforeinput",null,r,C),Q.push({event:ne,listeners:Oe}),ne.data=me)),X0(Q,e,w,r,C)}vp(Q,t)})}function oi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Bu(e,t){for(var r=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Mr(e,r),o!=null&&i.unshift(oi(e,o,c)),o=Mr(e,t),o!=null&&i.push(oi(e,o,c))),e.tag===3)return i;e=e.return}return[]}function F0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bp(e,t,r,i,o){for(var c=t._reactName,p=[];r!==null&&r!==i;){var v=r,b=v.alternate,w=v.stateNode;if(v=v.tag,b!==null&&b===i)break;v!==5&&v!==26&&v!==27||w===null||(b=w,o?(w=Mr(r,c),w!=null&&p.unshift(oi(r,w,b))):o||(w=Mr(r,c),w!=null&&p.push(oi(r,w,b)))),r=r.return}p.length!==0&&e.push({event:t,listeners:p})}var W0=/\r\n?/g,eb=/\u0000|\uFFFD/g;function _p(e){return(typeof e=="string"?e:""+e).replace(W0,`
10
+ `).replace(eb,"")}function Sp(e,t){return t=_p(t),_p(e)===t}function Ue(e,t,r,i,o,c){switch(r){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||qa(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&qa(e,""+i);break;case"className":$i(e,"class",i);break;case"tabIndex":$i(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(e,r,i);break;case"style":Sf(e,i,c);break;case"data":if(t!=="object"){$i(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=Vi(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(r,"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"&&(r==="formAction"?(t!=="input"&&Ue(e,t,"name",o.name,o,null),Ue(e,t,"formEncType",o.formEncType,o,null),Ue(e,t,"formMethod",o.formMethod,o,null),Ue(e,t,"formTarget",o.formTarget,o,null)):(Ue(e,t,"encType",o.encType,o,null),Ue(e,t,"method",o.method,o,null),Ue(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=Vi(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(e.onclick=on);break;case"onScroll":i!=null&&_e("scroll",e);break;case"onScrollEnd":i!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}r=Vi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""+i):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":i===!0?e.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Gi(e,"popover",i);break;case"xlinkActuate":sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":sn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":sn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":sn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":sn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Gi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Ag.get(r)||r,Gi(e,r,i))}}function No(e,t,r,i,o,c){switch(r){case"style":Sf(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof i=="string"?qa(e,i):(typeof i=="number"||typeof i=="bigint")&&qa(e,""+i);break;case"onScroll":i!=null&&_e("scroll",e);break;case"onScrollEnd":i!=null&&_e("scrollend",e);break;case"onClick":i!=null&&(e.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!df.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),t=r.slice(2,o?r.length-7:void 0),c=e[gt]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,i,o);break e}r in e?e[r]=i:i===!0?e.setAttribute(r,""):Gi(e,r,i)}}}function ft(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var i=!1,o=!1,c;for(c in r)if(r.hasOwnProperty(c)){var p=r[c];if(p!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,c,p,r,null)}}o&&Ue(e,t,"srcSet",r.srcSet,r,null),i&&Ue(e,t,"src",r.src,r,null);return;case"input":_e("invalid",e);var v=c=p=o=null,b=null,w=null;for(i in r)if(r.hasOwnProperty(i)){var C=r[i];if(C!=null)switch(i){case"name":o=C;break;case"type":p=C;break;case"checked":b=C;break;case"defaultChecked":w=C;break;case"value":c=C;break;case"defaultValue":v=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(l(137,t));break;default:Ue(e,t,i,C,r,null)}}vf(e,c,v,b,w,p,o,!1);return;case"select":_e("invalid",e),i=p=c=null;for(o in r)if(r.hasOwnProperty(o)&&(v=r[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":i=v;default:Ue(e,t,o,v,r,null)}t=c,r=p,e.multiple=!!i,t!=null?Za(e,!!i,t,!1):r!=null&&Za(e,!!i,r,!0);return;case"textarea":_e("invalid",e),c=o=i=null;for(p in r)if(r.hasOwnProperty(p)&&(v=r[p],v!=null))switch(p){case"value":i=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:Ue(e,t,p,v,r,null)}bf(e,i,o,c);return;case"option":for(b in r)r.hasOwnProperty(b)&&(i=r[b],i!=null)&&(b==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":Ue(e,t,b,i,r,null));return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(i=0;i<si.length;i++)_e(si[i],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in r)if(r.hasOwnProperty(w)&&(i=r[w],i!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,w,i,r,null)}return;default:if(Kl(t)){for(C in r)r.hasOwnProperty(C)&&(i=r[C],i!==void 0&&No(e,t,C,i,r,void 0));return}}for(v in r)r.hasOwnProperty(v)&&(i=r[v],i!=null&&Ue(e,t,v,i,r,null))}function tb(e,t,r,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,v=null,b=null,w=null,C=null;for(j in r){var Q=r[j];if(r.hasOwnProperty(j)&&Q!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":b=Q;default:i.hasOwnProperty(j)||Ue(e,t,j,null,i,Q)}}for(var A in i){var j=i[A];if(Q=r[A],i.hasOwnProperty(A)&&(j!=null||Q!=null))switch(A){case"type":c=j;break;case"name":o=j;break;case"checked":w=j;break;case"defaultChecked":C=j;break;case"value":p=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:j!==Q&&Ue(e,t,A,j,i,Q)}}Yl(e,p,v,b,w,C,c,o);return;case"select":j=p=v=A=null;for(c in r)if(b=r[c],r.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":j=b;default:i.hasOwnProperty(c)||Ue(e,t,c,null,i,b)}for(o in i)if(c=i[o],b=r[o],i.hasOwnProperty(o)&&(c!=null||b!=null))switch(o){case"value":A=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==b&&Ue(e,t,o,c,i,b)}t=v,r=p,i=j,A!=null?Za(e,!!r,A,!1):!!i!=!!r&&(t!=null?Za(e,!!r,t,!0):Za(e,!!r,r?[]:"",!1));return;case"textarea":j=A=null;for(v in r)if(o=r[v],r.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,i,o)}for(p in i)if(o=i[p],c=r[p],i.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":A=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Ue(e,t,p,o,i,c)}gf(e,A,j);return;case"option":for(var I in r)A=r[I],r.hasOwnProperty(I)&&A!=null&&!i.hasOwnProperty(I)&&(I==="selected"?e.selected=!1:Ue(e,t,I,null,i,A));for(b in i)A=i[b],j=r[b],i.hasOwnProperty(b)&&A!==j&&(A!=null||j!=null)&&(b==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ue(e,t,b,A,i,j));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in r)A=r[se],r.hasOwnProperty(se)&&A!=null&&!i.hasOwnProperty(se)&&Ue(e,t,se,null,i,A);for(w in i)if(A=i[w],j=r[w],i.hasOwnProperty(w)&&A!==j&&(A!=null||j!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(137,t));break;default:Ue(e,t,w,A,i,j)}return;default:if(Kl(t)){for(var Ze in r)A=r[Ze],r.hasOwnProperty(Ze)&&A!==void 0&&!i.hasOwnProperty(Ze)&&No(e,t,Ze,void 0,i,A);for(C in i)A=i[C],j=r[C],!i.hasOwnProperty(C)||A===j||A===void 0&&j===void 0||No(e,t,C,A,i,j);return}}for(var E in r)A=r[E],r.hasOwnProperty(E)&&A!=null&&!i.hasOwnProperty(E)&&Ue(e,t,E,null,i,A);for(Q in i)A=i[Q],j=r[Q],!i.hasOwnProperty(Q)||A===j||A==null&&j==null||Ue(e,t,Q,A,i,j)}function Op(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),i=0;i<r.length;i++){var o=r[i],c=o.transferSize,p=o.initiatorType,v=o.duration;if(c&&v&&Op(p)){for(p=0,v=o.responseEnd,i+=1;i<r.length;i++){var b=r[i],w=b.startTime;if(w>v)break;var C=b.transferSize,Q=b.initiatorType;C&&Op(Q)&&(b=b.responseEnd,p+=C*(b<v?1:(v-w)/(b-w)))}if(--i,t+=8*(c+p)/(o.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 Uo=null,Zo=null;function Hu(e){return e.nodeType===9?e:e.ownerDocument}function xp(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 Ep(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 qo(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 Qo=null;function ab(){var e=window.event;return e&&e.type==="popstate"?e===Qo?!1:(Qo=e,!0):(Qo=null,!1)}var zp=typeof setTimeout=="function"?setTimeout:void 0,rb=typeof clearTimeout=="function"?clearTimeout:void 0,Tp=typeof Promise=="function"?Promise:void 0,ib=typeof queueMicrotask=="function"?queueMicrotask:typeof Tp<"u"?function(e){return Tp.resolve(null).then(e).catch(ub)}:zp;function ub(e){setTimeout(function(){throw e})}function Yn(e){return e==="head"}function wp(e,t){var r=t,i=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"||r==="/&"){if(i===0){e.removeChild(o),pr(t);return}i--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")i++;else if(r==="html")ci(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,ci(r);for(var c=r.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[Ar]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||r.removeChild(c),c=p}}else r==="body"&&ci(e.ownerDocument.body);r=o}while(r);pr(t)}function Ap(e,t){var r=e;e=0;do{var i=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=i}while(r)}function ko(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":ko(r),Gl(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function lb(e,t,r,i){for(;e.nodeType===1;){var o=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ar])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function sb(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Yt(e.nextSibling),e===null))return null;return e}function jp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function Bo(e){return e.data==="$?"||e.data==="$~"}function Ho(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ob(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var i=function(){t(),r.removeEventListener("DOMContentLoaded",i)};r.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Yt(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 Lo=null;function Mp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Yt(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Rp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Cp(e,t,r){switch(t=Hu(r),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gl(e)}var Vt=new Map,Dp=new Set;function Lu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zn=k.d;k.d={f:cb,r:fb,D:db,C:hb,L:pb,m:mb,X:vb,S:yb,M:gb};function cb(){var e=zn.f(),t=Du();return e||t}function fb(e){var t=Da(e);t!==null&&t.tag===5&&t.type==="form"?Jd(t):zn.r(e)}var fr=typeof document>"u"?null:document;function Np(e,t,r){var i=fr;if(i&&typeof t=="string"&&t){var o=Qt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),Dp.has(o)||(Dp.add(o),e={rel:e,crossOrigin:r,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),ft(t,"link",e),it(t),i.head.appendChild(t)))}}function db(e){zn.D(e),Np("dns-prefetch",e,null)}function hb(e,t){zn.C(e,t),Np("preconnect",e,t)}function pb(e,t,r){zn.L(e,t,r);var i=fr;if(i&&e&&t){var o='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+Qt(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+Qt(r.imageSizes)+'"]')):o+='[href="'+Qt(e)+'"]';var c=o;switch(t){case"style":c=dr(e);break;case"script":c=hr(e)}Vt.has(c)||(e=_({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Vt.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(fi(c))||t==="script"&&i.querySelector(di(c))||(t=i.createElement("link"),ft(t,"link",e),it(t),i.head.appendChild(t)))}}function mb(e,t){zn.m(e,t);var r=fr;if(r&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Qt(i)+'"][href="'+Qt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hr(e)}if(!Vt.has(c)&&(e=_({rel:"modulepreload",href:e},t),Vt.set(c,e),r.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(di(c)))return}i=r.createElement("link"),ft(i,"link",e),it(i),r.head.appendChild(i)}}}function yb(e,t,r){zn.S(e,t,r);var i=fr;if(i&&e){var o=Na(i).hoistableStyles,c=dr(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=i.querySelector(fi(c)))v.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Vt.get(c))&&Go(e,r);var b=p=i.createElement("link");it(b),ft(b,"link",e),b._p=new Promise(function(w,C){b.onload=w,b.onerror=C}),b.addEventListener("load",function(){v.loading|=1}),b.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Gu(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function vb(e,t){zn.X(e,t);var r=fr;if(r&&e){var i=Na(r).hoistableScripts,o=hr(e),c=i.get(o);c||(c=r.querySelector(di(o)),c||(e=_({src:e,async:!0},t),(t=Vt.get(o))&&$o(e,t),c=r.createElement("script"),it(c),ft(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function gb(e,t){zn.M(e,t);var r=fr;if(r&&e){var i=Na(r).hoistableScripts,o=hr(e),c=i.get(o);c||(c=r.querySelector(di(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=Vt.get(o))&&$o(e,t),c=r.createElement("script"),it(c),ft(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Up(e,t,r,i){var o=(o=oe.current)?Lu(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=dr(r.href),r=Na(o).hoistableStyles,i=r.get(t),i||(i={type:"style",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=dr(r.href);var c=Na(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(fi(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Vt.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Vt.set(e,r),c||bb(o,e,r,p.state))),t&&i===null)throw Error(l(528,""));return p}if(t&&i!==null)throw Error(l(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hr(r),r=Na(o).hoistableScripts,i=r.get(t),i||(i={type:"script",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function dr(e){return'href="'+Qt(e)+'"'}function fi(e){return'link[rel="stylesheet"]['+e+"]"}function Zp(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function bb(e,t,r,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),ft(t,"link",r),it(t),e.head.appendChild(t))}function hr(e){return'[src="'+Qt(e)+'"]'}function di(e){return"script[async]"+e}function qp(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Qt(r.href)+'"]');if(i)return t.instance=i,it(i),i;var o=_({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),it(i),ft(i,"style",o),Gu(i,r.precedence,e),t.instance=i;case"stylesheet":o=dr(r.href);var c=e.querySelector(fi(o));if(c)return t.state.loading|=4,t.instance=c,it(c),c;i=Zp(r),(o=Vt.get(o))&&Go(i,o),c=(e.ownerDocument||e).createElement("link"),it(c);var p=c;return p._p=new Promise(function(v,b){p.onload=v,p.onerror=b}),ft(c,"link",i),t.state.loading|=4,Gu(c,r.precedence,e),t.instance=c;case"script":return c=hr(r.src),(o=e.querySelector(di(c)))?(t.instance=o,it(o),o):(i=r,(o=Vt.get(c))&&(i=_({},r),$o(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),it(o),ft(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gu(i,r.precedence,e));return t.instance}function Gu(e,t,r){for(var i=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,p=0;p<i.length;p++){var v=i[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Go(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $o(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $u=null;function Qp(e,t,r){if($u===null){var i=new Map,o=$u=new Map;o.set(r,i)}else o=$u,i=o.get(r),i||(i=new Map,o.set(r,i));if(i.has(e))return i;for(i.set(e,null),r=r.getElementsByTagName(e),o=0;o<r.length;o++){var c=r[o];if(!(c[Ar]||c[lt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=i.get(p);v?v.push(c):i.set(p,[c])}}return i}function kp(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function _b(e,t,r){if(r===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 Bp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Sb(e,t,r,i){if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=dr(i.href),c=t.querySelector(fi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yu.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=c,it(c);return}c=t.ownerDocument||t,i=Zp(i),(o=Vt.get(o))&&Go(i,o),c=c.createElement("link"),it(c);var p=c;p._p=new Promise(function(v,b){p.onload=v,p.onerror=b}),ft(c,"link",i),r.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Yu.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Yo=0;function Ob(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var i=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Yo===0&&(Yo=62500*nb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Yo?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vu=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vu=new Map,t.forEach(xb,e),Vu=null,Yu.call(e))}function xb(e,t){if(!(t.state.loading&4)){var r=Vu.get(e);if(r)var i=r.get(null);else{r=new Map,Vu.set(e,r);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(r.set(p.dataset.precedence,p),i=p)}i&&r.set(null,i)}o=t.instance,p=o.getAttribute("data-precedence"),c=r.get(p)||i,c===i&&r.set(null,o),r.set(p,o),this.count++,i=Yu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var hi={$$typeof:ye,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Eb(e,t,r,i,o,c,p,v,b){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=kl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.hiddenUpdates=kl(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Hp(e,t,r,i,o,c,p,v,b,w,C,Q){return e=new Eb(e,t,r,p,b,w,C,Q,v),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=xs(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:r,cache:t},ws(c),e}function Lp(e){return e?(e=$a,e):$a}function Gp(e,t,r,i,o,c){o=Lp(o),i.context===null?i.context=o:i.pendingContext=o,i=Nn(t),i.payload={element:r},c=c===void 0?null:c,c!==null&&(i.callback=c),r=Un(e,i,t),r!==null&&(Et(r,e,t),Yr(r,e,t))}function $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Vo(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function Yp(e){if(e.tag===13||e.tag===31){var t=da(e,67108864);t!==null&&Et(t,e,67108864),Vo(e,67108864)}}function Vp(e){if(e.tag===13||e.tag===31){var t=Ut();t=Bl(t);var r=da(e,t);r!==null&&Et(r,e,t),Vo(e,t)}}var Xu=!0;function zb(e,t,r,i){var o=z.T;z.T=null;var c=k.p;try{k.p=2,Ko(e,t,r,i)}finally{k.p=c,z.T=o}}function Tb(e,t,r,i){var o=z.T;z.T=null;var c=k.p;try{k.p=8,Ko(e,t,r,i)}finally{k.p=c,z.T=o}}function Ko(e,t,r,i){if(Xu){var o=Xo(i);if(o===null)Do(e,t,i,Pu,r),Xp(e,i);else if(Ab(o,e,t,r,i))i.stopPropagation();else if(Xp(e,i),t&4&&-1<wb.indexOf(e)){for(;o!==null;){var c=Da(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=la(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var b=1<<31-At(p);v.entanglements[1]|=b,p&=~b}nn(c),(Me&6)===0&&(Ru=Tt()+500,li(0))}}break;case 31:case 13:v=da(c,2),v!==null&&Et(v,c,2),Du(),Vo(c,2)}if(c=Xo(i),c===null&&Do(e,t,i,Pu,r),c===o)break;o=c}o!==null&&i.stopPropagation()}else Do(e,t,i,null,r)}}function Xo(e){return e=Pl(e),Po(e)}var Pu=null;function Po(e){if(Pu=null,e=Ca(e),e!==null){var t=f(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===31){if(e=h(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pu=e,null}function Kp(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(dg()){case ef:return 2;case tf:return 8;case Qi:case hg:return 32;case nf:return 268435456;default:return 32}default:return 32}}var Jo=!1,Vn=null,Kn=null,Xn=null,pi=new Map,mi=new Map,Pn=[],wb="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 Xp(e,t){switch(e){case"focusin":case"focusout":Vn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mi.delete(t.pointerId)}}function yi(e,t,r,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Da(t),t!==null&&Yp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ab(e,t,r,i,o){switch(t){case"focusin":return Vn=yi(Vn,e,t,r,i,o),!0;case"dragenter":return Kn=yi(Kn,e,t,r,i,o),!0;case"mouseover":return Xn=yi(Xn,e,t,r,i,o),!0;case"pointerover":var c=o.pointerId;return pi.set(c,yi(pi.get(c)||null,e,t,r,i,o)),!0;case"gotpointercapture":return c=o.pointerId,mi.set(c,yi(mi.get(c)||null,e,t,r,i,o)),!0}return!1}function Pp(e){var t=Ca(e.target);if(t!==null){var r=f(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,of(e.priority,function(){Vp(r)});return}}else if(t===31){if(t=h(r),t!==null){e.blockedOn=t,of(e.priority,function(){Vp(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ju(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Xo(e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Xl=i,r.target.dispatchEvent(i),Xl=null}else return t=Da(r),t!==null&&Yp(t),e.blockedOn=r,!1;t.shift()}return!0}function Jp(e,t,r){Ju(e)&&r.delete(t)}function jb(){Jo=!1,Vn!==null&&Ju(Vn)&&(Vn=null),Kn!==null&&Ju(Kn)&&(Kn=null),Xn!==null&&Ju(Xn)&&(Xn=null),pi.forEach(Jp),mi.forEach(Jp)}function Iu(e,t){e.blockedOn===t&&(e.blockedOn=null,Jo||(Jo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,jb)))}var Fu=null;function Ip(e){Fu!==e&&(Fu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Fu===e&&(Fu=null);for(var t=0;t<e.length;t+=3){var r=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Po(i||r)===null)continue;break}var c=Da(r);c!==null&&(e.splice(t,3),t-=3,Ks(c,{pending:!0,data:o,method:r.method,action:i},i,o))}}))}function pr(e){function t(b){return Iu(b,e)}Vn!==null&&Iu(Vn,e),Kn!==null&&Iu(Kn,e),Xn!==null&&Iu(Xn,e),pi.forEach(t),mi.forEach(t);for(var r=0;r<Pn.length;r++){var i=Pn[r];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Pn.length&&(r=Pn[0],r.blockedOn===null);)Pp(r),r.blockedOn===null&&Pn.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(i=0;i<r.length;i+=3){var o=r[i],c=r[i+1],p=o[gt]||null;if(typeof c=="function")p||Ip(r);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[gt]||null)v=p.formAction;else if(Po(o)!==null)continue}else v=p.action;typeof v=="function"?r[i+1]=v:(r.splice(i,3),i-=3),Ip(r)}}}function Fp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(r,20)}function r(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Io(e){this._internalRoot=e}Wu.prototype.render=Io.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var r=t.current,i=Ut();Gp(r,i,e,t,null,null)},Wu.prototype.unmount=Io.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gp(e.current,2,null,e,null,null),Du(),t[Ra]=null}};function Wu(e){this._internalRoot=e}Wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=sf();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Pn.length&&t!==0&&t<Pn[r].priority;r++);Pn.splice(r,0,e),r===0&&Pp(e)}};var Wp=a.version;if(Wp!=="19.2.5")throw Error(l(527,Wp,"19.2.5"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=y(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var Mb={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var el=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!el.isDisabled&&el.supportsFiber)try{zr=el.inject(Mb),wt=el}catch{}}return gi.createRoot=function(e,t){if(!s(e))throw Error(l(299));var r=!1,i="",o=uh,c=lh,p=sh;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Hp(e,1,!1,null,null,r,i,null,o,c,p,Fp),e[Ra]=t.current,Co(e),new Io(t)},gi.hydrateRoot=function(e,t,r){if(!s(e))throw Error(l(299));var i=!1,o="",c=uh,p=lh,v=sh,b=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError),r.formState!==void 0&&(b=r.formState)),t=Hp(e,1,!0,t,r??null,i,o,b,c,p,v,Fp),t.context=Lp(null),r=t.current,i=Ut(),i=Bl(i),o=Nn(i),o.callback=null,Un(r,o,i),r=i,t.current.lanes=r,wr(t,r),nn(t),e[Ra]=t.current,Co(e),new Wu(t)},gi.version="19.2.5",gi}var om;function $b(){if(om)return ec.exports;om=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ec.exports=Gb(),ec.exports}var Yb=$b(),wa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vb=class extends wa{#t;#e;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Nc=new Vb,Kb={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},Xb=class{#t=Kb;#e=!1;setTimeoutProvider(n){this.#t=n}setTimeout(n,a){return this.#t.setTimeout(n,a)}clearTimeout(n){this.#t.clearTimeout(n)}setInterval(n,a){return this.#t.setInterval(n,a)}clearInterval(n){this.#t.clearInterval(n)}},za=new Xb;function Pb(n){setTimeout(n,0)}var Jb=typeof window>"u"||"Deno"in globalThis;function ht(){}function Ib(n,a){return typeof n=="function"?n(a):n}function dc(n){return typeof n=="number"&&n>=0&&n!==1/0}function ly(n,a){return Math.max(n+(a||0)-Date.now(),0)}function Fn(n,a){return typeof n=="function"?n(a):n}function Kt(n,a){return typeof n=="function"?n(a):n}function cm(n,a){const{type:u="all",exact:l,fetchStatus:s,predicate:f,queryKey:d,stale:h}=n;if(d){if(l){if(a.queryHash!==Uc(d,a.options))return!1}else if(!zi(a.queryKey,d))return!1}if(u!=="all"){const m=a.isActive();if(u==="active"&&!m||u==="inactive"&&m)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||s&&s!==a.state.fetchStatus||f&&!f(a))}function fm(n,a){const{exact:u,status:l,predicate:s,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(u){if(Wn(a.options.mutationKey)!==Wn(f))return!1}else if(!zi(a.options.mutationKey,f))return!1}return!(l&&a.state.status!==l||s&&!s(a))}function Uc(n,a){return(a?.queryKeyHashFn||Wn)(n)}function Wn(n){return JSON.stringify(n,(a,u)=>hc(u)?Object.keys(u).sort().reduce((l,s)=>(l[s]=u[s],l),{}):u)}function zi(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(u=>zi(n[u],a[u])):!1}var Fb=Object.prototype.hasOwnProperty;function Zc(n,a,u=0){if(n===a)return n;if(u>500)return a;const l=dm(n)&&dm(a);if(!l&&!(hc(n)&&hc(a)))return a;const f=(l?n:Object.keys(n)).length,d=l?a:Object.keys(a),h=d.length,m=l?new Array(h):{};let y=0;for(let g=0;g<h;g++){const _=l?g:d[g],x=n[_],M=a[_];if(x===M){m[_]=x,(l?g<f:Fb.call(n,_))&&y++;continue}if(x===null||M===null||typeof x!="object"||typeof M!="object"){m[_]=M;continue}const H=Zc(x,M,u+1);m[_]=H,H===x&&y++}return f===h&&y===f?n:m}function Ti(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const u in n)if(n[u]!==a[u])return!1;return!0}function dm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function hc(n){if(!hm(n))return!1;const a=n.constructor;if(a===void 0)return!0;const u=a.prototype;return!(!hm(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function hm(n){return Object.prototype.toString.call(n)==="[object Object]"}function Wb(n){return new Promise(a=>{za.setTimeout(a,n)})}function pc(n,a,u){return typeof u.structuralSharing=="function"?u.structuralSharing(n,a):u.structuralSharing!==!1?Zc(n,a):a}function e_(n,a,u=0){const l=[...n,a];return u&&l.length>u?l.slice(1):l}function t_(n,a,u=0){const l=[a,...n];return u&&l.length>u?l.slice(0,-1):l}var Zt=Symbol();function sy(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===Zt?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function qc(n,a){return typeof n=="function"?n(...a):!!n}function n_(n,a,u){let l=!1,s;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(s??=a(),l||(l=!0,s.aborted?u():s.addEventListener("abort",u,{once:!0})),s)}),n}var wi=(()=>{let n=()=>Jb;return{isServer(){return n()},setIsServer(a){n=a}}})();function mc(){let n,a;const u=new Promise((s,f)=>{n=s,a=f});u.status="pending",u.catch(()=>{});function l(s){Object.assign(u,s),delete u.resolve,delete u.reject}return u.resolve=s=>{l({status:"fulfilled",value:s}),n(s)},u.reject=s=>{l({status:"rejected",reason:s}),a(s)},u}var a_=Pb;function r_(){let n=[],a=0,u=h=>{h()},l=h=>{h()},s=a_;const f=h=>{a?n.push(h):s(()=>{u(h)})},d=()=>{const h=n;n=[],h.length&&s(()=>{l(()=>{h.forEach(m=>{u(m)})})})};return{batch:h=>{let m;a++;try{m=h()}finally{a--,a||d()}return m},batchCalls:h=>(...m)=>{f(()=>{h(...m)})},schedule:f,setNotifyFunction:h=>{u=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{s=h}}}var Xe=r_(),i_=class extends wa{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const a=()=>n(!0),u=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(u=>{u(n)}))}isOnline(){return this.#t}},pl=new i_;function u_(n){return Math.min(1e3*2**n,3e4)}function oy(n){return(n??"online")==="online"?pl.isOnline():!0}var yc=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function cy(n){let a=!1,u=0,l;const s=mc(),f=()=>s.status!=="pending",d=Z=>{if(!f()){const ae=new yc(Z);x(ae),n.onCancel?.(ae)}},h=()=>{a=!0},m=()=>{a=!1},y=()=>Nc.isFocused()&&(n.networkMode==="always"||pl.isOnline())&&n.canRun(),g=()=>oy(n.networkMode)&&n.canRun(),_=Z=>{f()||(l?.(),s.resolve(Z))},x=Z=>{f()||(l?.(),s.reject(Z))},M=()=>new Promise(Z=>{l=ae=>{(f()||y())&&Z(ae)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),H=()=>{if(f())return;let Z;const ae=u===0?n.initialPromise:void 0;try{Z=ae??n.fn()}catch(le){Z=Promise.reject(le)}Promise.resolve(Z).then(_).catch(le=>{if(f())return;const de=n.retry??(wi.isServer()?0:3),ye=n.retryDelay??u_,ge=typeof ye=="function"?ye(u,le):ye,K=de===!0||typeof de=="number"&&u<de||typeof de=="function"&&de(u,le);if(a||!K){x(le);return}u++,n.onFail?.(u,le),Wb(ge).then(()=>y()?void 0:M()).then(()=>{a?x(le):H()})})};return{promise:s,status:()=>s.status,cancel:d,continue:()=>(l?.(),s),cancelRetry:h,continueRetry:m,canStart:g,start:()=>(g()?H():M().then(H),s)}}var fy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dc(this.gcTime)&&(this.#t=za.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(wi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(za.clearTimeout(this.#t),this.#t=void 0)}},l_=class extends fy{#t;#e;#n;#r;#a;#i;#u;constructor(n){super(),this.#u=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#r=n.client,this.#n=this.#r.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=mm(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=mm(this.options);a.data!==void 0&&(this.setState(pm(a.data,a.dataUpdatedAt)),this.#t=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const u=pc(this.state.data,n,this.options);return this.#s({data:u,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),u}setState(n,a){this.#s({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#a?.promise;return this.#a?.cancel(n),a?a.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(n=>Kt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Fn(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!ly(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#a&&(this.#u||this.#l()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const u=new AbortController,l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#u=!0,u.signal)})},s=()=>{const h=sy(this.options,a),y=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return l(g),g})();return this.#u=!1,this.options.persister?this.options.persister(h,y,this):h(y)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:s};return l(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=cy({initialPromise:a?.initialPromise,fn:d.fetchFn,onCancel:h=>{h instanceof yc&&h.revert&&this.setState({...this.#e,fetchStatus:"idle"}),u.abort()},onFail:(h,m)=>{this.#s({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof yc){if(h.silent)return this.#a.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(n){const a=u=>{switch(n.type){case"failed":return{...u,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...dy(u.data,this.options),fetchMeta:n.meta??null};case"success":const l={...u,...pm(n.data,n.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?l:void 0,l;case"error":const s=n.error;return{...u,error:s,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...n.state}}};this.state=a(this.state),Xe.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function dy(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oy(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function pm(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function mm(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,u=a!==void 0,l=u?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:u?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var Di=class extends wa{constructor(n,a){super(),this.options=a,this.#t=n,this.#l=null,this.#u=mc(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#u;#l;#s;#d;#h;#c;#f;#o;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),ym(this.#e,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vc(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vc(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,u=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#e.setOptions(this.options),a._defaulted&&!Ti(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const l=this.hasListeners();l&&vm(this.#e,u,this.options,a)&&this.#m(),this.updateResult(),l&&(this.#e!==u||Kt(this.options.enabled,this.#e)!==Kt(a.enabled,this.#e)||Fn(this.options.staleTime,this.#e)!==Fn(a.staleTime,this.#e))&&this.#y();const s=this.#v();l&&(this.#e!==u||Kt(this.options.enabled,this.#e)!==Kt(a.enabled,this.#e)||s!==this.#o)&&this.#g(s)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),u=this.createResult(a,n);return o_(this,u)&&(this.#r=u,this.#i=this.options,this.#a=this.#e.state),u}getCurrentResult(){return this.#r}trackResult(n,a){return new Proxy(n,{get:(u,l)=>(this.trackProp(l),a?.(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,l))})}trackProp(n){this.#p.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),u=this.#t.getQueryCache().build(this.#t,a);return u.fetch().then(()=>this.createResult(u,a))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(n){this.#O();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(ht)),a}#y(){this.#_();const n=Fn(this.options.staleTime,this.#e);if(wi.isServer()||this.#r.isStale||!dc(n))return;const u=ly(this.#r.dataUpdatedAt,n)+1;this.#c=za.setTimeout(()=>{this.#r.isStale||this.updateResult()},u)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#o=n,!(wi.isServer()||Kt(this.options.enabled,this.#e)===!1||!dc(this.#o)||this.#o===0)&&(this.#f=za.setInterval(()=>{(this.options.refetchIntervalInBackground||Nc.isFocused())&&this.#m()},this.#o))}#b(){this.#y(),this.#g(this.#v())}#_(){this.#c!==void 0&&(za.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#f!==void 0&&(za.clearInterval(this.#f),this.#f=void 0)}createResult(n,a){const u=this.#e,l=this.options,s=this.#r,f=this.#a,d=this.#i,m=n!==u?n.state:this.#n,{state:y}=n;let g={...y},_=!1,x;if(a._optimisticResults){const V=this.hasListeners(),W=!V&&ym(n,a),re=V&&vm(n,u,a,l);(W||re)&&(g={...g,...dy(y.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:M,errorUpdatedAt:H,status:Z}=g;x=g.data;let ae=!1;if(a.placeholderData!==void 0&&x===void 0&&Z==="pending"){let V;s?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(V=s.data,ae=!0):V=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,V!==void 0&&(Z="success",x=pc(s?.data,V,a),_=!0)}if(a.select&&x!==void 0&&!ae)if(s&&x===f?.data&&a.select===this.#s)x=this.#d;else try{this.#s=a.select,x=a.select(x),x=pc(s?.data,x,a),this.#d=x,this.#l=null}catch(V){this.#l=V}this.#l&&(M=this.#l,x=this.#d,H=Date.now(),Z="error");const le=g.fetchStatus==="fetching",de=Z==="pending",ye=Z==="error",ge=de&&le,K=x!==void 0,R={status:Z,fetchStatus:g.fetchStatus,isPending:de,isSuccess:Z==="success",isError:ye,isInitialLoading:ge,isLoading:ge,data:x,dataUpdatedAt:g.dataUpdatedAt,error:M,errorUpdatedAt:H,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:n.isFetched(),isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:le,isRefetching:le&&!de,isLoadingError:ye&&!K,isPaused:g.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:ye&&K,isStale:Qc(n,a),refetch:this.refetch,promise:this.#u,isEnabled:Kt(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const V=R.data!==void 0,W=R.status==="error"&&!V,re=he=>{W?he.reject(R.error):V&&he.resolve(R.data)},ie=()=>{const he=this.#u=R.promise=mc();re(he)},F=this.#u;switch(F.status){case"pending":n.queryHash===u.queryHash&&re(F);break;case"fulfilled":(W||R.data!==F.value)&&ie();break;case"rejected":(!W||R.error!==F.reason)&&ie();break}}return R}updateResult(){const n=this.#r,a=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),Ti(a,n))return;this.#r=a;const u=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!this.#p.size)return!0;const f=new Set(s??this.#p);return this.options.throwOnError&&f.add("error"),Object.keys(this.#r).some(d=>{const h=d;return this.#r[h]!==n[h]&&f.has(h)})};this.#x({listeners:u()})}#O(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(n){Xe.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function s_(n,a){return Kt(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function ym(n,a){return s_(n,a)||n.state.data!==void 0&&vc(n,a,a.refetchOnMount)}function vc(n,a,u){if(Kt(a.enabled,n)!==!1&&Fn(a.staleTime,n)!=="static"){const l=typeof u=="function"?u(n):u;return l==="always"||l!==!1&&Qc(n,a)}return!1}function vm(n,a,u,l){return(n!==a||Kt(l.enabled,n)===!1)&&(!u.suspense||n.state.status!=="error")&&Qc(n,u)}function Qc(n,a){return Kt(a.enabled,n)!==!1&&n.isStaleByTime(Fn(a.staleTime,n))}function o_(n,a){return!Ti(n.getCurrentResult(),a)}function ml(n){return{onFetch:(a,u)=>{const l=a.options,s=a.fetchOptions?.meta?.fetchMore?.direction,f=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const y=async()=>{let g=!1;const _=H=>{n_(H,()=>a.signal,()=>g=!0)},x=sy(a.options,a.fetchOptions),M=async(H,Z,ae)=>{if(g)return Promise.reject();if(Z==null&&H.pages.length)return Promise.resolve(H);const de=(()=>{const Y={client:a.client,queryKey:a.queryKey,pageParam:Z,direction:ae?"backward":"forward",meta:a.options.meta};return _(Y),Y})(),ye=await x(de),{maxPages:ge}=a.options,K=ae?t_:e_;return{pages:K(H.pages,ye,ge),pageParams:K(H.pageParams,Z,ge)}};if(s&&f.length){const H=s==="backward",Z=H?hy:gc,ae={pages:f,pageParams:d},le=Z(l,ae);h=await M(ae,le,H)}else{const H=n??f.length;do{const Z=m===0?d[0]??l.initialPageParam:gc(l,h);if(m>0&&Z==null)break;h=await M(h,Z),m++}while(m<H)}return h};a.options.persister?a.fetchFn=()=>a.options.persister?.(y,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},u):a.fetchFn=y}}}function gc(n,{pages:a,pageParams:u}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,u[l],u):void 0}function hy(n,{pages:a,pageParams:u}){return a.length>0?n.getPreviousPageParam?.(a[0],a,u[0],u):void 0}function c_(n,a){return a?gc(n,a)!=null:!1}function f_(n,a){return!a||!n.getPreviousPageParam?!1:hy(n,a)!=null}var py=class extends Di{constructor(n,a){super(n,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:ml()})}getOptimisticResult(n){return n.behavior=ml(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,a){const{state:u}=n,l=super.createResult(n,a),{isFetching:s,isRefetching:f,isError:d,isRefetchError:h}=l,m=u.fetchMeta?.fetchMore?.direction,y=d&&m==="forward",g=s&&m==="forward",_=d&&m==="backward",x=s&&m==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:c_(a,u.data),hasPreviousPage:f_(a,u.data),isFetchNextPageError:y,isFetchingNextPage:g,isFetchPreviousPageError:_,isFetchingPreviousPage:x,isRefetchError:h&&!y&&!_,isRefetching:f&&!g&&!x}}},d_=class extends fy{#t;#e;#n;#r;constructor(n){super(),this.#t=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#e=[],this.state=n.state||my(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(a=>a!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})},u={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=cy({fn:()=>this.options.mutationFn?this.options.mutationFn(n,u):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const l=this.state.status==="pending",s=!this.#r.canStart();try{if(l)a();else{this.#a({type:"pending",variables:n,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,u);const d=await this.options.onMutate?.(n,u);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:s})}const f=await this.#r.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,u),await this.options.onSuccess?.(f,n,this.state.context,u),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(f,null,n,this.state.context,u),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,u)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,u)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,u)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,u)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const a=u=>{switch(n.type){case"failed":return{...u,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...u,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:n.error,failureCount:u.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Xe.batch(()=>{this.#e.forEach(u=>{u.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function my(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var h_=class extends wa{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,u){const l=new d_({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:u});return this.add(l),l}add(n){this.#t.add(n);const a=tl(n);if(typeof a=="string"){const u=this.#e.get(a);u?u.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=tl(n);if(typeof a=="string"){const u=this.#e.get(a);if(u)if(u.length>1){const l=u.indexOf(n);l!==-1&&u.splice(l,1)}else u[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=tl(n);if(typeof a=="string"){const l=this.#e.get(a)?.find(s=>s.state.status==="pending");return!l||l===n}else return!0}runNext(n){const a=tl(n);return typeof a=="string"?this.#e.get(a)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xe.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(u=>fm(a,u))}findAll(n={}){return this.getAll().filter(a=>fm(n,a))}notify(n){Xe.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Xe.batch(()=>Promise.all(n.map(a=>a.continue().catch(ht))))}};function tl(n){return n.options.scope?.id}var p_=class extends wa{#t;#e=void 0;#n;#r;constructor(a,u){super(),this.#t=a,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const u=this.options;this.options=this.#t.defaultMutationOptions(a),Ti(this.options,u)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),u?.mutationKey&&this.options.mutationKey&&Wn(u.mutationKey)!==Wn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#a(),this.#i(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(a,u){return this.#r=u,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#a(){const a=this.#n?.state??my();this.#e={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#i(a){Xe.batch(()=>{if(this.#r&&this.hasListeners()){const u=this.#e.variables,l=this.#e.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#r.onSuccess?.(a.data,u,l,s)}catch(f){Promise.reject(f)}try{this.#r.onSettled?.(a.data,null,u,l,s)}catch(f){Promise.reject(f)}}else if(a?.type==="error"){try{this.#r.onError?.(a.error,u,l,s)}catch(f){Promise.reject(f)}try{this.#r.onSettled?.(void 0,a.error,u,l,s)}catch(f){Promise.reject(f)}}}this.listeners.forEach(u=>{u(this.#e)})})}};function gm(n,a){const u=new Set(a);return n.filter(l=>!u.has(l))}function m_(n,a,u){const l=n.slice(0);return l[a]=u,l}var y_=class extends wa{#t;#e;#n;#r;#a;#i;#u;#l;#s;#d=[];constructor(n,a,u){super(),this.#t=n,this.#r=u,this.#n=[],this.#a=[],this.#e=[],this.setQueries(a)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(n=>{n.subscribe(a=>{this.#o(n,a)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(n=>{n.destroy()})}setQueries(n,a){this.#n=n,this.#r=a,Xe.batch(()=>{const u=this.#a,l=this.#f(this.#n);l.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const s=l.map(g=>g.observer),f=s.map(g=>g.getCurrentResult()),d=u.length!==s.length,h=s.some((g,_)=>g!==u[_]),m=d||h,y=m?!0:f.some((g,_)=>{const x=this.#e[_];return!x||!Ti(g,x)});!m&&!y||(m&&(this.#d=l,this.#a=s),this.#e=f,this.hasListeners()&&(m&&(gm(u,s).forEach(g=>{g.destroy()}),gm(s,u).forEach(g=>{g.subscribe(_=>{this.#o(g,_)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(n=>n.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(n,a){const u=this.#f(n),l=u.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions)),s=u.map(f=>f.defaultedQueryOptions.queryHash);return[l,f=>this.#c(f??l,a,s),()=>this.#h(l,u)]}#h(n,a){return a.map((u,l)=>{const s=n[l];return u.defaultedQueryOptions.notifyOnChangeProps?s:u.observer.trackResult(s,f=>{a.forEach(d=>{d.observer.trackProp(f)})})})}#c(n,a,u){if(a){const l=this.#s,s=u!==void 0&&l!==void 0&&(l.length!==u.length||u.some((f,d)=>f!==l[d]));return(!this.#i||this.#e!==this.#l||s||a!==this.#u)&&(this.#u=a,this.#l=this.#e,u!==void 0&&(this.#s=u),this.#i=Zc(this.#i,a(n))),this.#i}return n}#f(n){const a=new Map;this.#a.forEach(l=>{const s=l.options.queryHash;if(!s)return;const f=a.get(s);f?f.push(l):a.set(s,[l])});const u=[];return n.forEach(l=>{const s=this.#t.defaultQueryOptions(l),d=a.get(s.queryHash)?.shift()??new Di(this.#t,s);u.push({defaultedQueryOptions:s,observer:d})}),u}#o(n,a){const u=this.#a.indexOf(n);u!==-1&&(this.#e=m_(this.#e,u,a),this.#p())}#p(){if(this.hasListeners()){const n=this.#i,a=this.#h(this.#e,this.#d),u=this.#c(a,this.#r?.combine);n!==u&&Xe.batch(()=>{this.listeners.forEach(l=>{l(this.#e)})})}}},v_=class extends wa{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,u){const l=a.queryKey,s=a.queryHash??Uc(l,a);let f=this.get(s);return f||(f=new l_({client:n,queryKey:l,queryHash:s,options:n.defaultQueryOptions(a),state:u,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Xe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(u=>cm(a,u))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(u=>cm(n,u)):a}notify(n){Xe.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},g_=class{#t;#e;#n;#r;#a;#i;#u;#l;constructor(n={}){this.#t=n.queryCache||new v_,this.#e=n.mutationCache||new h_,this.#n=n.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#u=Nc.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=pl.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#u?.(),this.#u=void 0,this.#l?.(),this.#l=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),u=this.#t.build(this,a),l=u.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&u.isStaleByTime(Fn(a.staleTime,u))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:u})=>{const l=u.data;return[a,l]})}setQueryData(n,a,u){const l=this.defaultQueryOptions({queryKey:n}),f=this.#t.get(l.queryHash)?.state.data,d=Ib(a,f);if(d!==void 0)return this.#t.build(this,l).setData(d,{...u,manual:!0})}setQueriesData(n,a,u){return Xe.batch(()=>this.#t.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,u)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;Xe.batch(()=>{a.findAll(n).forEach(u=>{a.remove(u)})})}resetQueries(n,a){const u=this.#t;return Xe.batch(()=>(u.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const u={revert:!0,...a},l=Xe.batch(()=>this.#t.findAll(n).map(s=>s.cancel(u)));return Promise.all(l).then(ht).catch(ht)}invalidateQueries(n,a={}){return Xe.batch(()=>(this.#t.findAll(n).forEach(u=>{u.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const u={...a,cancelRefetch:a.cancelRefetch??!0},l=Xe.batch(()=>this.#t.findAll(n).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let f=s.fetch(void 0,u);return u.throwOnError||(f=f.catch(ht)),s.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(ht)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const u=this.#t.build(this,a);return u.isStaleByTime(Fn(a.staleTime,u))?u.fetch(a):Promise.resolve(u.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ht).catch(ht)}fetchInfiniteQuery(n){return n.behavior=ml(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ht).catch(ht)}ensureInfiniteQueryData(n){return n.behavior=ml(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return pl.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#r.set(Wn(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#r.values()],u={};return a.forEach(l=>{zi(n,l.queryKey)&&Object.assign(u,l.defaultOptions)}),u}setMutationDefaults(n,a){this.#a.set(Wn(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#a.values()],u={};return a.forEach(l=>{zi(n,l.mutationKey)&&Object.assign(u,l.defaultOptions)}),u}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Uc(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Zt&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},yy=G.createContext(void 0),Ni=n=>{const a=G.useContext(yy);if(n)return n;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},b_=({client:n,children:a})=>(G.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),D.jsx(yy.Provider,{value:n,children:a})),vy=G.createContext(!1),gy=()=>G.useContext(vy);vy.Provider;function __(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var S_=G.createContext(__()),by=()=>G.useContext(S_),_y=(n,a,u)=>{const l=u?.state.error&&typeof n.throwOnError=="function"?qc(n.throwOnError,[u.state.error,u]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(a.isReset()||(n.retryOnMount=!1))},Sy=n=>{G.useEffect(()=>{n.clearReset()},[n])},Oy=({result:n,errorResetBoundary:a,throwOnError:u,query:l,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&l&&(s&&n.data===void 0||qc(u,[n.error,l])),kc=(n,a)=>a.state.data===void 0,xy=n=>{if(n.suspense){const u=s=>s==="static"?s:Math.max(s??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...s)=>u(l(...s)):u(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},O_=(n,a)=>n.isLoading&&n.isFetching&&!a,bc=(n,a)=>n?.suspense&&a.isPending,_c=(n,a,u)=>a.fetchOptimistic(n).catch(()=>{u.clearReset()});function Ey({queries:n,...a},u){const l=Ni(u),s=gy(),f=by(),d=G.useMemo(()=>n.map(Z=>{const ae=l.defaultQueryOptions(Z);return ae._optimisticResults=s?"isRestoring":"optimistic",ae}),[n,l,s]);d.forEach(Z=>{xy(Z);const ae=l.getQueryCache().get(Z.queryHash);_y(Z,f,ae)}),Sy(f);const[h]=G.useState(()=>new y_(l,d,a)),[m,y,g]=h.getOptimisticResult(d,a.combine),_=!s&&a.subscribed!==!1;G.useSyncExternalStore(G.useCallback(Z=>_?h.subscribe(Xe.batchCalls(Z)):ht,[h,_]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),G.useEffect(()=>{h.setQueries(d,a)},[d,a,h]);const M=m.some((Z,ae)=>bc(d[ae],Z))?m.flatMap((Z,ae)=>{const le=d[ae];if(le&&bc(le,Z)){const de=new Di(l,le);return _c(le,de,f)}return[]}):[];if(M.length>0)throw Promise.all(M);const H=m.find((Z,ae)=>{const le=d[ae];return le&&Oy({result:Z,errorResetBoundary:f,throwOnError:le.throwOnError,query:l.getQueryCache().get(le.queryHash),suspense:le.suspense})});if(H?.error)throw H.error;return y(g())}function xl(n,a,u){const l=gy(),s=by(),f=Ni(u),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const h=f.getQueryCache().get(d.queryHash);d._optimisticResults=l?"isRestoring":"optimistic",xy(d),_y(d,s,h),Sy(s);const m=!f.getQueryCache().get(d.queryHash),[y]=G.useState(()=>new a(f,d)),g=y.getOptimisticResult(d),_=!l&&n.subscribed!==!1;if(G.useSyncExternalStore(G.useCallback(x=>{const M=_?y.subscribe(Xe.batchCalls(x)):ht;return y.updateResult(),M},[y,_]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),G.useEffect(()=>{y.setOptions(d)},[d,y]),bc(d,g))throw _c(d,y,s);if(Oy({result:g,errorResetBoundary:s,throwOnError:d.throwOnError,query:h,suspense:d.suspense}))throw g.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,g),d.experimental_prefetchInRender&&!wi.isServer()&&O_(g,l)&&(m?_c(d,y,s):h?.promise)?.catch(ht).finally(()=>{y.updateResult()}),d.notifyOnChangeProps?g:y.trackResult(g)}function x_(n,a){return xl(n,Di,a)}function E_(n,a){return xl({...n,enabled:!0,suspense:!0,throwOnError:kc,placeholderData:void 0},Di,a)}function z_(n,a){return xl({...n,enabled:!0,suspense:!0,throwOnError:kc},py,a)}function T_(n,a){return Ey({...n,queries:n.queries.map(u=>({...u,suspense:!0,throwOnError:kc,enabled:!0,placeholderData:void 0}))},a)}function w_(n,a){const u=Ni(a);u.getQueryState(n.queryKey)||u.prefetchQuery(n)}function A_(n,a){const u=Ni(a);u.getQueryState(n.queryKey)||u.prefetchInfiniteQuery(n)}function j_(n,a){const u=Ni(a),[l]=G.useState(()=>new p_(u,n));G.useEffect(()=>{l.setOptions(n)},[l,n]);const s=G.useSyncExternalStore(G.useCallback(d=>l.subscribe(Xe.batchCalls(d)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=G.useCallback((d,h)=>{l.mutate(d,h).catch(ht)},[l]);if(s.error&&qc(l.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:f,mutateAsync:s.mutate}}function M_(n,a){return xl(n,py,a)}var R_=Object.create,zy=Object.defineProperty,C_=Object.getOwnPropertyDescriptor,Ty=Object.getOwnPropertyNames,D_=Object.getPrototypeOf,N_=Object.prototype.hasOwnProperty,ln=(n,a)=>function(){return a||(0,n[Ty(n)[0]])((a={exports:{}}).exports,a),a.exports},U_=(n,a,u,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var s=Ty(a),f=0,d=s.length,h;f<d;f++)h=s[f],!N_.call(n,h)&&h!==u&&zy(n,h,{get:(m=>a[m]).bind(null,h),enumerable:!(l=C_(a,h))||l.enumerable});return n},Fe=(n,a,u)=>(u=n!=null?R_(D_(n)):{},U_(a||!n||!n.__esModule?zy(u,"default",{value:n,enumerable:!0}):u,n)),wy=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function u(l){"@babel/helpers - typeof";return a.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},a.exports.__esModule=!0,a.exports.default=a.exports,u(l)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),Z_=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var u=wy().default;function l(s,f){if(u(s)!="object"||!s)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var h=d.call(s,f||"default");if(u(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(s)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),q_=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var u=wy().default,l=Z_();function s(f){var d=l(f,"string");return u(d)=="symbol"?d:d+""}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),Aa=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var u=q_();function l(s,f,d){return(f=u(f))in s?Object.defineProperty(s,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[f]=d,s}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Ft=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var u=Aa();function l(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);d&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),h.push.apply(h,m)}return h}function s(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?l(Object(h),!0).forEach(function(m){u(f,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))})}return f}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}});function El(n){const a={subscribe(u){let l=null,s=!1,f=!1,d=!1;function h(){if(l===null){d=!0;return}f||(f=!0,typeof l=="function"?l():l&&l.unsubscribe())}return l=n({next(m){var y;s||(y=u.next)===null||y===void 0||y.call(u,m)},error(m){var y;s||(s=!0,(y=u.error)===null||y===void 0||y.call(u,m),h())},complete(){var m;s||(s=!0,(m=u.complete)===null||m===void 0||m.call(u),h())}}),d&&h(),{unsubscribe:h}},pipe(...u){return u.reduce(Q_,a)}};return a}function Q_(n,a){return a(n)}function k_(n){const a=new AbortController;return new Promise((l,s)=>{let f=!1;function d(){f||(f=!0,h.unsubscribe())}a.signal.addEventListener("abort",()=>{s(a.signal.reason)});const h=n.subscribe({next(m){f=!0,l(m),d()},error(m){s(m)},complete(){a.abort(),d()}})})}function B_(n){return a=>{let u=0,l=null;const s=[];function f(){l||(l=a.subscribe({next(h){for(const y of s){var m;(m=y.next)===null||m===void 0||m.call(y,h)}},error(h){for(const y of s){var m;(m=y.error)===null||m===void 0||m.call(y,h)}},complete(){for(const m of s){var h;(h=m.complete)===null||h===void 0||h.call(m)}}}))}function d(){if(u===0&&l){const h=l;l=null,h.unsubscribe()}}return El(h=>(u++,s.push(h),f(),{unsubscribe(){u--,d();const m=s.findIndex(y=>y===h);m>-1&&s.splice(m,1)}}))}}function H_(n){let a=n;const u=[],l=d=>{a!==void 0&&d.next(a),u.push(d)},s=d=>{u.splice(u.indexOf(d),1)},f=El(d=>(l(d),()=>{s(d)}));return f.next=d=>{if(a!==d){a=d;for(const h of u)h.next(d)}},f.get=()=>a,f}function L_(n){return El(a=>{function u(s=0,f=n.op){const d=n.links[s];if(!d)throw new Error("No more links to execute - did you forget to add an ending link?");return d({op:f,next(m){return u(s+1,m)}})}return u().subscribe(a)})}function Ta(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}function G_(){return Object.create(null)}const $_=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Ay(n){return $_&&Ta(n)&&Symbol.asyncIterator in n}var Y_=Object.create,jy=Object.defineProperty,V_=Object.getOwnPropertyDescriptor,My=Object.getOwnPropertyNames,K_=Object.getPrototypeOf,X_=Object.prototype.hasOwnProperty,Ui=(n,a)=>function(){return a||(0,n[My(n)[0]])((a={exports:{}}).exports,a),a.exports},P_=(n,a,u,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var s=My(a),f=0,d=s.length,h;f<d;f++)h=s[f],!X_.call(n,h)&&h!==u&&jy(n,h,{get:(m=>a[m]).bind(null,h),enumerable:!(l=V_(a,h))||l.enumerable});return n},zl=(n,a,u)=>(u=n!=null?Y_(K_(n)):{},P_(jy(u,"default",{value:n,enumerable:!0}),n));const Ry=()=>{},bm=n=>{Object.freeze&&Object.freeze(n)};function Cy(n,a,u){var l;const s=a.join(".");return(l=u[s])!==null&&l!==void 0||(u[s]=new Proxy(Ry,{get(f,d){if(!(typeof d!="string"||d==="then"))return Cy(n,[...a,d],u)},apply(f,d,h){const m=a[a.length-1];let y={args:h,path:a};return m==="call"?y={args:h.length>=2?[h[1]]:[],path:a.slice(0,-1)}:m==="apply"&&(y={args:h.length>=2?h[1]:[],path:a.slice(0,-1)}),bm(y.args),bm(y.path),n(y)}})),u[s]}const Tl=n=>Cy(n,[],G_()),Bc=n=>new Proxy(Ry,{get(a,u){if(u!=="then")return n(u)}});var Dy=Ui({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function u(l){"@babel/helpers - typeof";return a.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},a.exports.__esModule=!0,a.exports.default=a.exports,u(l)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),J_=Ui({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var u=Dy().default;function l(s,f){if(u(s)!="object"||!s)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var h=d.call(s,f||"default");if(u(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(s)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),I_=Ui({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var u=Dy().default,l=J_();function s(f){var d=l(f,"string");return u(d)=="symbol"?d:d+""}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),Ny=Ui({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var u=I_();function l(s,f,d){return(f=u(f))in s?Object.defineProperty(s,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[f]=d,s}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Hc=Ui({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var u=Ny();function l(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);d&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),h.push.apply(h,m)}return h}function s(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?l(Object(h),!0).forEach(function(m){u(f,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))})}return f}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}});zl(Hc());zl(Ny());var nl=zl(Hc());function F_(n,a){if("error"in n){const l=a.deserialize(n.error);return{ok:!1,error:(0,nl.default)((0,nl.default)({},n),{},{error:l})}}return{ok:!0,result:(0,nl.default)((0,nl.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:a.deserialize(n.result.data)})}}var rc=class extends Error{constructor(){super("Unable to transform response from server")}};function W_(n,a){let u;try{u=F_(n,a)}catch{throw new rc}if(!u.ok&&(!Ta(u.error.error)||typeof u.error.error.code!="number"))throw new rc;if(u.ok&&!Ta(u.result))throw new rc;return u}zl(Hc());var al=Fe(Aa(),1),mr=Fe(Ft(),1);function eS(n){return n instanceof yl}function tS(n){return Ta(n)&&Ta(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function nS(n,a){return typeof n=="string"?n:Ta(n)&&typeof n.message=="string"?n.message:a}var yl=class fl extends Error{constructor(a,u){var l,s;const f=u?.cause;super(a,{cause:f}),(0,al.default)(this,"cause",void 0),(0,al.default)(this,"shape",void 0),(0,al.default)(this,"data",void 0),(0,al.default)(this,"meta",void 0),this.meta=u?.meta,this.cause=f,this.shape=u==null||(l=u.result)===null||l===void 0?void 0:l.error,this.data=u==null||(s=u.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,fl.prototype)}static from(a,u={}){const l=a;return eS(l)?(u.meta&&(l.meta=(0,mr.default)((0,mr.default)({},l.meta),u.meta)),l):tS(l)?new fl(l.error.message,(0,mr.default)((0,mr.default)({},u),{},{result:l,cause:u.cause})):new fl(nS(l,"Unknown error"),(0,mr.default)((0,mr.default)({},u),{},{cause:l}))}};function aS(n){const a=n;return a?"input"in a?a:{input:a,output:a}:{input:{serialize:u=>u,deserialize:u=>u},output:{serialize:u=>u,deserialize:u=>u}}}const _m=n=>typeof n=="function";function rS(n){if(n)return n;if(typeof window<"u"&&_m(window.fetch))return window.fetch;if(typeof globalThis<"u"&&_m(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var xi=Fe(Ft());function iS(n){return{url:n.url.toString(),fetch:n.fetch,transformer:aS(n.transformer),methodOverride:n.methodOverride}}function uS(n){const a={};for(let u=0;u<n.length;u++){const l=n[u];a[u]=l}return a}const lS={query:"GET",mutation:"POST",subscription:"PATCH"};function Uy(n){return"input"in n?n.transformer.input.serialize(n.input):uS(n.inputs.map(a=>n.transformer.input.serialize(a)))}const Zy=n=>{const a=n.url.split("?");let l=a[0].replace(/\/$/,"")+"/"+n.path;const s=[];if(a[1]&&s.push(a[1]),"inputs"in n&&s.push("batch=1"),n.type==="query"||n.type==="subscription"){const f=Uy(n);f!==void 0&&n.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(f))}`)}return s.length&&(l+="?"+s.join("&")),l},sS=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const a=Uy(n);return a!==void 0?JSON.stringify(a):void 0},oS=n=>hS((0,xi.default)((0,xi.default)({},n),{},{contentTypeHeader:"application/json",getUrl:Zy,getBody:sS}));var cS=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const fS=n=>{var a;if(n?.aborted)throw(a=n.throwIfAborted)===null||a===void 0||a.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new cS};async function dS(n){var a,u;fS(n.signal);const l=n.getUrl(n),s=n.getBody(n),f=(a=n.methodOverride)!==null&&a!==void 0?a:lS[n.type],d=await(async()=>{const m=await n.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),h=(0,xi.default)((0,xi.default)((0,xi.default)({},n.contentTypeHeader&&f!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{[(u=n.trpcAcceptHeaderKey)!==null&&u!==void 0?u:"trpc-accept"]:n.trpcAcceptHeader}:void 0),d);return rS(n.fetch)(l,{method:f,signal:n.signal,body:s,headers:h})}async function hS(n){const a={},u=await dS(n);a.response=u;const l=await u.json();return a.responseJSON=l,{json:l,meta:a}}Fe(Ft(),1);const Sm=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Om(n){let a=null,u=null;const l=()=>{clearTimeout(u),u=null,a=null};function s(h){const m=[[]];let y=0;for(;;){const x=h[y];if(!x)break;const M=m[m.length-1];if(x.aborted){var g;(g=x.reject)===null||g===void 0||g.call(x,new Error("Aborted")),y++;continue}if(n.validate(M.concat(x).map(Z=>Z.key))){M.push(x),y++;continue}if(M.length===0){var _;(_=x.reject)===null||_===void 0||_.call(x,new Error("Input is too big for a single dispatch")),y++;continue}m.push([])}return m}function f(){const h=s(a);l();for(const m of h){if(!m.length)continue;const y={items:m};for(const _ of m)_.batch=y;n.fetch(y.items.map(_=>_.key)).then(async _=>{await Promise.all(_.map(async(M,H)=>{const Z=y.items[H];try{var ae;const de=await Promise.resolve(M);(ae=Z.resolve)===null||ae===void 0||ae.call(Z,de)}catch(de){var le;(le=Z.reject)===null||le===void 0||le.call(Z,de)}Z.batch=null,Z.reject=null,Z.resolve=null}));for(const M of y.items){var x;(x=M.reject)===null||x===void 0||x.call(M,new Error("Missing result")),M.batch=null}}).catch(_=>{for(const M of y.items){var x;(x=M.reject)===null||x===void 0||x.call(M,_),M.batch=null}})}}function d(h){var m;const y={aborted:!1,key:h,batch:null,resolve:Sm,reject:Sm},g=new Promise((_,x)=>{var M;y.reject=x,y.resolve=_,(M=a)!==null&&M!==void 0||(a=[]),a.push(y)});return(m=u)!==null&&m!==void 0||(u=setTimeout(f)),g}return{load:d}}function pS(...n){const a=new AbortController,u=n.length;let l=0;const s=()=>{++l===u&&a.abort()};for(const f of n)f?.aborted?s():f?.addEventListener("abort",s,{once:!0});return a.signal}var rl=Fe(Ft(),1);function mS(n){var a,u;const l=iS(n),s=(a=n.maxURLLength)!==null&&a!==void 0?a:1/0,f=(u=n.maxItems)!==null&&u!==void 0?u:1/0;return()=>{const d=g=>({validate(_){if(s===1/0&&f===1/0)return!0;if(_.length>f)return!1;const x=_.map(Z=>Z.path).join(","),M=_.map(Z=>Z.input);return Zy((0,rl.default)((0,rl.default)({},l),{},{type:g,path:x,inputs:M,signal:null})).length<=s},async fetch(_){const x=_.map(de=>de.path).join(","),M=_.map(de=>de.input),H=pS(..._.map(de=>de.signal)),Z=await oS((0,rl.default)((0,rl.default)({},l),{},{path:x,inputs:M,type:g,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:_}):n.headers:{}},signal:H}));return(Array.isArray(Z.json)?Z.json:_.map(()=>Z.json)).map(de=>({meta:Z.meta,json:de}))}}),h=Om(d("query")),m=Om(d("mutation")),y={query:h,mutation:m};return({op:g})=>El(_=>{if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const M=y[g.type].load(g);let H;return M.then(Z=>{H=Z;const ae=W_(Z.json,l.transformer.output);if(!ae.ok){_.error(yl.from(ae.error,{meta:Z.meta}));return}_.next({context:Z.meta,result:ae.result}),_.complete()}).catch(Z=>{_.error(yl.from(Z,{meta:H?.meta}))}),()=>{}})}}Fe(Ft(),1);const qy=(n,...a)=>typeof n=="function"?n(...a):n;Fe(Aa(),1);function yS(){let n,a;return{promise:new Promise((l,s)=>{n=l,a=s}),resolve:n,reject:a}}async function vS(n){const a=await qy(n.url);if(!n.connectionParams)return a;const l=`${a.includes("?")?"&":"?"}connectionParams=1`;return a+l}async function gS(n,a){const u={method:"connectionParams",data:await qy(n)};return a.encode(u)}Fe(Aa(),1);var In=Fe(Aa(),1);function bS(n){const{promise:a,resolve:u,reject:l}=yS();return n.addEventListener("open",()=>{n.removeEventListener("error",l),u()}),n.addEventListener("error",l),a}function _S(n,{intervalMs:a,pongTimeoutMs:u}){let l,s;function f(){l=setTimeout(()=>{n.send("PING"),s=setTimeout(()=>{n.close()},u)},a)}function d(){clearTimeout(l),f()}function h(){clearTimeout(s),d()}n.addEventListener("open",f),n.addEventListener("message",({data:m})=>{clearTimeout(l),f(),m==="PONG"&&h()}),n.addEventListener("close",()=>{clearTimeout(l),clearTimeout(s)})}var SS=class Sc{constructor(a){var u;if((0,In.default)(this,"id",++Sc.connectCount),(0,In.default)(this,"WebSocketPonyfill",void 0),(0,In.default)(this,"urlOptions",void 0),(0,In.default)(this,"keepAliveOpts",void 0),(0,In.default)(this,"encoder",void 0),(0,In.default)(this,"wsObservable",H_(null)),(0,In.default)(this,"openPromise",null),this.WebSocketPonyfill=(u=a.WebSocketPonyfill)!==null&&u!==void 0?u:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=a.urlOptions,this.keepAliveOpts=a.keepAlive,this.encoder=a.encoder}get ws(){return this.wsObservable.get()}set ws(a){this.wsObservable.next(a)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var a=this;if(a.openPromise)return a.openPromise;a.id=++Sc.connectCount;const u=vS(a.urlOptions).then(l=>new a.WebSocketPonyfill(l));a.openPromise=u.then(async l=>{a.ws=l,l.binaryType="arraybuffer",l.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),a.keepAliveOpts.enabled&&_S(l,a.keepAliveOpts),l.addEventListener("close",()=>{a.ws===l&&(a.ws=null)}),await bS(l),a.urlOptions.connectionParams&&l.send(await gS(a.urlOptions.connectionParams,a.encoder))});try{await a.openPromise}finally{a.openPromise=null}}async close(){var a=this;try{await a.openPromise}finally{var u;(u=a.ws)===null||u===void 0||u.close()}}};(0,In.default)(SS,"connectCount",0);Fe(Aa(),1);Fe(Ft(),1);var ic=Fe(Aa(),1),xm=Fe(Ft(),1),wl=class{constructor(n){(0,ic.default)(this,"links",void 0),(0,ic.default)(this,"runtime",void 0),(0,ic.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(a=>a(this.runtime))}$request(n){var a;return L_({links:this.links,op:(0,xm.default)((0,xm.default)({},n),{},{context:(a=n.context)!==null&&a!==void 0?a:{},id:++this.requestId})}).pipe(B_())}async requestAsPromise(n){var a=this;try{const u=a.$request(n);return(await k_(u)).result.data}catch(u){throw yl.from(u)}}query(n,a,u){return this.requestAsPromise({type:"query",path:n,input:a,context:u?.context,signal:u?.signal})}mutation(n,a,u){return this.requestAsPromise({type:"mutation",path:n,input:a,context:u?.context,signal:u?.signal})}subscription(n,a,u){return this.$request({type:"subscription",path:n,input:a,context:u.context,signal:u.signal}).subscribe({next(s){switch(s.result.type){case"state":{var f;(f=u.onConnectionStateChange)===null||f===void 0||f.call(u,s.result);break}case"started":{var d;(d=u.onStarted)===null||d===void 0||d.call(u,{context:s.context});break}case"stopped":{var h;(h=u.onStopped)===null||h===void 0||h.call(u);break}case"data":case void 0:{var m;(m=u.onData)===null||m===void 0||m.call(u,s.result.data);break}}},error(s){var f;(f=u.onError)===null||f===void 0||f.call(u,s)},complete(){var s;(s=u.onComplete)===null||s===void 0||s.call(u)}})}};const Qy=Symbol.for("trpc_untypedClient"),OS={query:"query",mutate:"mutation",subscribe:"subscription"},xS=n=>OS[n];function ky(n){const a=Tl(({path:u,args:l})=>{const s=[...u],f=xS(s.pop()),d=s.join(".");return n[f](d,...l)});return Bc(u=>u===Qy?n:a[u])}function ES(n){const a=new wl(n);return ky(a)}function Lc(n){return n[Qy]}Fe(Ft(),1);Fe(Ft(),1);var zS=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function u(s){var f,d,h,m=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,h=Symbol.iterator);m--;){if(d&&(f=s[d])!=null)return f.call(s);if(h&&(f=s[h])!=null)return new l(f.call(s));d="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function l(s){function f(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var h=d.done;return Promise.resolve(d.value).then(function(m){return{value:m,done:h}})}return l=function(h){this.s=h,this.n=h.next},l.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var m=this.s.return;return m===void 0?Promise.resolve({value:h,done:!0}):f(m.apply(this.s,arguments))},throw:function(h){var m=this.s.return;return m===void 0?Promise.reject(h):f(m.apply(this.s,arguments))}},new l(s)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}});Fe(zS(),1);Fe(Ft(),1);var TS=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,a){function u(){var l=typeof SuppressedError=="function"?SuppressedError:function(h,m){var y=Error();return y.name="SuppressedError",y.error=h,y.suppressed=m,y},s={},f=[];function d(h,m){if(m!=null){if(Object(m)!==m)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(h)var y=m[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(y===void 0&&(y=m[Symbol.dispose||Symbol.for("Symbol.dispose")],h))var g=y;if(typeof y!="function")throw new TypeError("Object is not disposable.");g&&(y=function(){try{g.call(m)}catch(x){return Promise.reject(x)}}),f.push({v:m,d:y,a:h})}else h&&f.push({d:m,a:h});return m}return{e:s,u:d.bind(null,!1),a:d.bind(null,!0),d:function(){var m,y=this.e,g=0;function _(){for(;m=f.pop();)try{if(!m.a&&g===1)return g=0,f.push(m),Promise.resolve().then(_);if(m.d){var M=m.d.call(m.v);if(m.a)return g|=2,Promise.resolve(M).then(_,x)}else g|=1}catch(H){return x(H)}if(g===1)return y!==s?Promise.reject(y):Promise.resolve();if(y!==s)throw y}function x(M){return y=y!==s?new l(M,y):M,_()}return _()}}}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),By=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,a){function u(l,s){this.v=l,this.k=s}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),wS=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,a){var u=By();function l(s){return new u(s,0)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),AS=ln({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,a){var u=By();function l(f){return function(){return new s(f.apply(this,arguments))}}function s(f){var d,h;function m(g,_){try{var x=f[g](_),M=x.value,H=M instanceof u;Promise.resolve(H?M.v:M).then(function(Z){if(H){var ae=g==="return"?"return":"next";if(!M.k||Z.done)return m(ae,Z);Z=f[ae](Z).value}y(x.done?"return":"normal",Z)},function(Z){m("throw",Z)})}catch(Z){y("throw",Z)}}function y(g,_){switch(g){case"return":d.resolve({value:_,done:!0});break;case"throw":d.reject(_);break;default:d.resolve({value:_,done:!1})}(d=d.next)?m(d.key,d.arg):h=null}this._invoke=function(g,_){return new Promise(function(x,M){var H={key:g,arg:_,resolve:x,reject:M,next:null};h?h=h.next=H:(d=h=H,m(g,_))})},typeof f.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(f){return this._invoke("next",f)},s.prototype.throw=function(f){return this._invoke("throw",f)},s.prototype.return=function(f){return this._invoke("return",f)},a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}});Fe(TS(),1);Fe(wS(),1);Fe(AS(),1);Fe(Ft(),1);class jS{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(a,u){this.keyToValue.set(a,u),this.valueToKey.set(u,a)}getByKey(a){return this.keyToValue.get(a)}getByValue(a){return this.valueToKey.get(a)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class Hy{constructor(a){this.generateIdentifier=a,this.kv=new jS}register(a,u){this.kv.getByValue(a)||(u||(u=this.generateIdentifier(a)),this.kv.set(u,a))}clear(){this.kv.clear()}getIdentifier(a){return this.kv.getByValue(a)}getValue(a){return this.kv.getByKey(a)}}class MS extends Hy{constructor(){super(a=>a.name),this.classToAllowedProps=new Map}register(a,u){typeof u=="object"?(u.allowProps&&this.classToAllowedProps.set(a,u.allowProps),super.register(a,u.identifier)):super.register(a,u)}getAllowedProps(a){return this.classToAllowedProps.get(a)}}function RS(n){if("values"in Object)return Object.values(n);const a=[];for(const u in n)n.hasOwnProperty(u)&&a.push(n[u]);return a}function CS(n,a){const u=RS(n);if("find"in u)return u.find(a);const l=u;for(let s=0;s<l.length;s++){const f=l[s];if(a(f))return f}}function _r(n,a){Object.entries(n).forEach(([u,l])=>a(l,u))}function dl(n,a){return n.indexOf(a)!==-1}function Em(n,a){for(let u=0;u<n.length;u++){const l=n[u];if(a(l))return l}}class DS{constructor(){this.transfomers={}}register(a){this.transfomers[a.name]=a}findApplicable(a){return CS(this.transfomers,u=>u.isApplicable(a))}findByName(a){return this.transfomers[a]}}const NS=n=>Object.prototype.toString.call(n).slice(8,-1),Ly=n=>typeof n>"u",US=n=>n===null,Ai=n=>typeof n!="object"||n===null||n===Object.prototype?!1:Object.getPrototypeOf(n)===null?!0:Object.getPrototypeOf(n)===Object.prototype,Oc=n=>Ai(n)&&Object.keys(n).length===0,ea=n=>Array.isArray(n),ZS=n=>typeof n=="string",qS=n=>typeof n=="number"&&!isNaN(n),QS=n=>typeof n=="boolean",kS=n=>n instanceof RegExp,ji=n=>n instanceof Map,Mi=n=>n instanceof Set,Gy=n=>NS(n)==="Symbol",BS=n=>n instanceof Date&&!isNaN(n.valueOf()),$y=n=>n instanceof Error,zm=n=>typeof n=="number"&&isNaN(n),HS=n=>QS(n)||US(n)||Ly(n)||qS(n)||ZS(n)||Gy(n),LS=n=>typeof n=="bigint",GS=n=>n===1/0||n===-1/0,$S=n=>ArrayBuffer.isView(n)&&!(n instanceof DataView),YS=n=>n instanceof URL,xc=n=>n.replace(/\\/g,"\\\\").replace(/\./g,"\\."),uc=n=>n.map(String).map(xc).join("."),Ei=(n,a)=>{const u=[];let l="";for(let f=0;f<n.length;f++){let d=n.charAt(f);if(!a&&d==="\\"){const y=n.charAt(f+1);if(y==="\\"){l+="\\",f++;continue}else if(y!==".")throw Error("invalid path")}if(d==="\\"&&n.charAt(f+1)==="."){l+=".",f++;continue}if(d==="."){u.push(l),l="";continue}l+=d}const s=l;return u.push(s),u};function an(n,a,u,l){return{isApplicable:n,annotation:a,transform:u,untransform:l}}const Yy=[an(Ly,"undefined",()=>null,()=>{}),an(LS,"bigint",n=>n.toString(),n=>typeof BigInt<"u"?BigInt(n):(console.error("Please add a BigInt polyfill."),n)),an(BS,"Date",n=>n.toISOString(),n=>new Date(n)),an($y,"Error",(n,a)=>{const u={name:n.name,message:n.message};return"cause"in n&&(u.cause=n.cause),a.allowedErrorProps.forEach(l=>{u[l]=n[l]}),u},(n,a)=>{const u=new Error(n.message,{cause:n.cause});return u.name=n.name,u.stack=n.stack,a.allowedErrorProps.forEach(l=>{u[l]=n[l]}),u}),an(kS,"regexp",n=>""+n,n=>{const a=n.slice(1,n.lastIndexOf("/")),u=n.slice(n.lastIndexOf("/")+1);return new RegExp(a,u)}),an(Mi,"set",n=>[...n.values()],n=>new Set(n)),an(ji,"map",n=>[...n.entries()],n=>new Map(n)),an(n=>zm(n)||GS(n),"number",n=>zm(n)?"NaN":n>0?"Infinity":"-Infinity",Number),an(n=>n===0&&1/n===-1/0,"number",()=>"-0",Number),an(YS,"URL",n=>n.toString(),n=>new URL(n))];function Al(n,a,u,l){return{isApplicable:n,annotation:a,transform:u,untransform:l}}const Vy=Al((n,a)=>Gy(n)?!!a.symbolRegistry.getIdentifier(n):!1,(n,a)=>["symbol",a.symbolRegistry.getIdentifier(n)],n=>n.description,(n,a,u)=>{const l=u.symbolRegistry.getValue(a[1]);if(!l)throw new Error("Trying to deserialize unknown symbol");return l}),VS=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((n,a)=>(n[a.name]=a,n),{}),Ky=Al($S,n=>["typed-array",n.constructor.name],n=>[...n],(n,a)=>{const u=VS[a[1]];if(!u)throw new Error("Trying to deserialize unknown typed array");return new u(n)});function Xy(n,a){return n?.constructor?!!a.classRegistry.getIdentifier(n.constructor):!1}const Py=Al(Xy,(n,a)=>["class",a.classRegistry.getIdentifier(n.constructor)],(n,a)=>{const u=a.classRegistry.getAllowedProps(n.constructor);if(!u)return{...n};const l={};return u.forEach(s=>{l[s]=n[s]}),l},(n,a,u)=>{const l=u.classRegistry.getValue(a[1]);if(!l)throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(l.prototype),n)}),Jy=Al((n,a)=>!!a.customTransformerRegistry.findApplicable(n),(n,a)=>["custom",a.customTransformerRegistry.findApplicable(n).name],(n,a)=>a.customTransformerRegistry.findApplicable(n).serialize(n),(n,a,u)=>{const l=u.customTransformerRegistry.findByName(a[1]);if(!l)throw new Error("Trying to deserialize unknown custom value");return l.deserialize(n)}),KS=[Py,Vy,Jy,Ky],Tm=(n,a)=>{const u=Em(KS,s=>s.isApplicable(n,a));if(u)return{value:u.transform(n,a),type:u.annotation(n,a)};const l=Em(Yy,s=>s.isApplicable(n,a));if(l)return{value:l.transform(n,a),type:l.annotation}},Iy={};Yy.forEach(n=>{Iy[n.annotation]=n});const XS=(n,a,u)=>{if(ea(a))switch(a[0]){case"symbol":return Vy.untransform(n,a,u);case"class":return Py.untransform(n,a,u);case"custom":return Jy.untransform(n,a,u);case"typed-array":return Ky.untransform(n,a,u);default:throw new Error("Unknown transformation: "+a)}else{const l=Iy[a];if(!l)throw new Error("Unknown transformation: "+a);return l.untransform(n,u)}},yr=(n,a)=>{if(a>n.size)throw new Error("index out of bounds");const u=n.keys();for(;a>0;)u.next(),a--;return u.next().value};function Fy(n){if(dl(n,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(dl(n,"prototype"))throw new Error("prototype is not allowed as a property");if(dl(n,"constructor"))throw new Error("constructor is not allowed as a property")}const PS=(n,a)=>{Fy(a);for(let u=0;u<a.length;u++){const l=a[u];if(Mi(n))n=yr(n,+l);else if(ji(n)){const s=+l,f=+a[++u]==0?"key":"value",d=yr(n,s);switch(f){case"key":n=d;break;case"value":n=n.get(d);break}}else n=n[l]}return n},Ec=(n,a,u)=>{if(Fy(a),a.length===0)return u(n);let l=n;for(let f=0;f<a.length-1;f++){const d=a[f];if(ea(l)){const h=+d;l=l[h]}else if(Ai(l))l=l[d];else if(Mi(l)){const h=+d;l=yr(l,h)}else if(ji(l)){if(f===a.length-2)break;const m=+d,y=+a[++f]==0?"key":"value",g=yr(l,m);switch(y){case"key":l=g;break;case"value":l=l.get(g);break}}}const s=a[a.length-1];if(ea(l)?l[+s]=u(l[+s]):Ai(l)&&(l[s]=u(l[s])),Mi(l)){const f=yr(l,+s),d=u(f);f!==d&&(l.delete(f),l.add(d))}if(ji(l)){const f=+a[a.length-2],d=yr(l,f);switch(+s==0?"key":"value"){case"key":{const m=u(d);l.set(m,l.get(d)),m!==d&&l.delete(d);break}case"value":{l.set(d,u(l.get(d)));break}}}return n},Wy=n=>n<1;function zc(n,a,u,l=[]){if(!n)return;const s=Wy(u);if(!ea(n)){_r(n,(h,m)=>zc(h,a,u,[...l,...Ei(m,s)]));return}const[f,d]=n;d&&_r(d,(h,m)=>{zc(h,a,u,[...l,...Ei(m,s)])}),a(f,l)}function JS(n,a,u,l){return zc(a,(s,f)=>{n=Ec(n,f,d=>XS(d,s,l))},u),n}function IS(n,a,u){const l=Wy(u);function s(f,d){const h=PS(n,Ei(d,l));f.map(m=>Ei(m,l)).forEach(m=>{n=Ec(n,m,()=>h)})}if(ea(a)){const[f,d]=a;f.forEach(h=>{n=Ec(n,Ei(h,l),()=>n)}),d&&_r(d,s)}else _r(a,s);return n}const FS=(n,a)=>Ai(n)||ea(n)||ji(n)||Mi(n)||$y(n)||Xy(n,a);function WS(n,a,u){const l=u.get(n);l?l.push(a):u.set(n,[a])}function e1(n,a){const u={};let l;return n.forEach(s=>{if(s.length<=1)return;a||(s=s.map(h=>h.map(String)).sort((h,m)=>h.length-m.length));const[f,...d]=s;f.length===0?l=d.map(uc):u[uc(f)]=d.map(uc)}),l?Oc(u)?[l]:[l,u]:Oc(u)?void 0:u}const ev=(n,a,u,l,s=[],f=[],d=new Map)=>{const h=HS(n);if(!h){WS(n,s,a);const M=d.get(n);if(M)return l?{transformedValue:null}:M}if(!FS(n,u)){const M=Tm(n,u),H=M?{transformedValue:M.value,annotations:[M.type]}:{transformedValue:n};return h||d.set(n,H),H}if(dl(f,n))return{transformedValue:null};const m=Tm(n,u),y=m?.value??n,g=ea(y)?[]:{},_={};_r(y,(M,H)=>{if(H==="__proto__"||H==="constructor"||H==="prototype")throw new Error(`Detected property ${H}. This is a prototype pollution risk, please remove it from your object.`);const Z=ev(M,a,u,l,[...s,H],[...f,n],d);g[H]=Z.transformedValue,ea(Z.annotations)?_[xc(H)]=Z.annotations:Ai(Z.annotations)&&_r(Z.annotations,(ae,le)=>{_[xc(H)+"."+le]=ae})});const x=Oc(_)?{transformedValue:g,annotations:m?[m.type]:void 0}:{transformedValue:g,annotations:m?[m.type,_]:_};return h||d.set(n,x),x};function tv(n){return Object.prototype.toString.call(n).slice(8,-1)}function wm(n){return tv(n)==="Array"}function t1(n){if(tv(n)!=="Object")return!1;const a=Object.getPrototypeOf(n);return!!a&&a.constructor===Object&&a===Object.prototype}function n1(n,a,u,l,s){const f={}.propertyIsEnumerable.call(l,a)?"enumerable":"nonenumerable";f==="enumerable"&&(n[a]=u),s&&f==="nonenumerable"&&Object.defineProperty(n,a,{value:u,enumerable:!1,writable:!0,configurable:!0})}function Tc(n,a={}){if(wm(n))return n.map(s=>Tc(s,a));if(!t1(n))return n;const u=Object.getOwnPropertyNames(n),l=Object.getOwnPropertySymbols(n);return[...u,...l].reduce((s,f)=>{if(f==="__proto__"||wm(a.props)&&!a.props.includes(f))return s;const d=n[f],h=Tc(d,a);return n1(s,f,h,n,a.nonenumerable),s},{})}class ze{constructor({dedupe:a=!1}={}){this.classRegistry=new MS,this.symbolRegistry=new Hy(u=>u.description??""),this.customTransformerRegistry=new DS,this.allowedErrorProps=[],this.dedupe=a}serialize(a){const u=new Map,l=ev(a,u,this,this.dedupe),s={json:l.transformedValue};l.annotations&&(s.meta={...s.meta,values:l.annotations});const f=e1(u,this.dedupe);return f&&(s.meta={...s.meta,referentialEqualities:f}),s.meta&&(s.meta.v=1),s}deserialize(a,u){const{json:l,meta:s}=a;let f=u?.inPlace?l:Tc(l);return s?.values&&(f=JS(f,s.values,s.v??0,this)),s?.referentialEqualities&&(f=IS(f,s.referentialEqualities,s.v??0)),f}stringify(a){return JSON.stringify(this.serialize(a))}parse(a){return this.deserialize(JSON.parse(a),{inPlace:!0})}registerClass(a,u){this.classRegistry.register(a,u)}registerSymbol(a,u){this.symbolRegistry.register(a,u)}registerCustom(a,u){this.customTransformerRegistry.register({name:u,...a})}allowErrorProps(...a){this.allowedErrorProps.push(...a)}}ze.defaultInstance=new ze;ze.serialize=ze.defaultInstance.serialize.bind(ze.defaultInstance);ze.deserialize=ze.defaultInstance.deserialize.bind(ze.defaultInstance);ze.stringify=ze.defaultInstance.stringify.bind(ze.defaultInstance);ze.parse=ze.defaultInstance.parse.bind(ze.defaultInstance);ze.registerClass=ze.defaultInstance.registerClass.bind(ze.defaultInstance);ze.registerSymbol=ze.defaultInstance.registerSymbol.bind(ze.defaultInstance);ze.registerCustom=ze.defaultInstance.registerCustom.bind(ze.defaultInstance);ze.allowErrorProps=ze.defaultInstance.allowErrorProps.bind(ze.defaultInstance);ze.serialize;ze.deserialize;ze.stringify;ze.parse;ze.registerClass;ze.registerCustom;ze.registerSymbol;ze.allowErrorProps;var a1=Object.create,nv=Object.defineProperty,r1=Object.getOwnPropertyDescriptor,av=Object.getOwnPropertyNames,i1=Object.getPrototypeOf,u1=Object.prototype.hasOwnProperty,aa=(n,a)=>function(){return a||(0,n[av(n)[0]])((a={exports:{}}).exports,a),a.exports},l1=(n,a,u,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var s=av(a),f=0,d=s.length,h;f<d;f++)h=s[f],!u1.call(n,h)&&h!==u&&nv(n,h,{get:(m=>a[m]).bind(null,h),enumerable:!(l=r1(a,h))||l.enumerable});return n},ja=(n,a,u)=>(u=n!=null?a1(i1(n)):{},l1(a||!n||!n.__esModule?nv(u,"default",{value:n,enumerable:!0}):u,n)),s1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,a){function u(l,s){if(l==null)return{};var f={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(s.includes(d))continue;f[d]=l[d]}return f}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),o1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,a){var u=s1();function l(s,f){if(s==null)return{};var d,h,m=u(s,f);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(s);for(h=0;h<y.length;h++)d=y[h],f.includes(d)||{}.propertyIsEnumerable.call(s,d)&&(m[d]=s[d])}return m}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),rv=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function u(l){"@babel/helpers - typeof";return a.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},a.exports.__esModule=!0,a.exports.default=a.exports,u(l)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),c1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var u=rv().default;function l(s,f){if(u(s)!="object"||!s)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var h=d.call(s,f||"default");if(u(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(s)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),f1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var u=rv().default,l=c1();function s(f){var d=l(f,"string");return u(d)=="symbol"?d:d+""}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),d1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var u=f1();function l(s,f,d){return(f=u(f))in s?Object.defineProperty(s,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[f]=d,s}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Zi=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var u=d1();function l(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);d&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),h.push.apply(h,m)}return h}function s(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?l(Object(h),!0).forEach(function(m){u(f,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))})}return f}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),h1=ja(o1(),1),Am=ja(Zi(),1);const p1=["cursor","direction"];function rn(n,a,u){const l=n.flatMap(s=>s.split("."));if(!a&&(!u||u==="any"))return l.length?[l]:[];if(u==="infinite"&&Ta(a)&&("direction"in a||"cursor"in a)){const{cursor:s,direction:f}=a,d=(0,h1.default)(a,p1);return[l,{input:d,type:"infinite"}]}return[l,(0,Am.default)((0,Am.default)({},typeof a<"u"&&a!==Zt&&{input:a}),u&&u!=="any"&&{type:u})]}function hl(n){return rn(n,void 0,"any")}function m1(n){return Tl(({path:a,args:u})=>{var l;const s=[...a],f=s.pop();if(f==="useMutation")return n[f](s,...u);if(f==="_def")return{path:s};const[d,...h]=u,m=(l=h[0])!==null&&l!==void 0?l:{};return n[f](s,d,m)})}var lc;const y1=["client","ssrContext","ssrState","abortOnUnmount"],v1=(lc=G.createContext)===null||lc===void 0?void 0:lc.call(Qb,null),g1=n=>{switch(n){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function b1(n){return Tl(a=>{const u=[...a.path],l=u.pop(),s=[...a.args],f=s.shift(),d=g1(l),h=rn(u,f,d);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(u,h,s[0]),queryOptions:()=>n.queryOptions(u,h,...s),fetch:()=>n.fetchQuery(h,...s),fetchInfinite:()=>n.fetchInfiniteQuery(h,s[0]),prefetch:()=>n.prefetchQuery(h,...s),prefetchInfinite:()=>n.prefetchInfiniteQuery(h,s[0]),ensureData:()=>n.ensureQueryData(h,...s),invalidate:()=>n.invalidateQueries(h,...s),reset:()=>n.resetQueries(h,...s),refetch:()=>n.refetchQueries(h,...s),cancel:()=>n.cancelQuery(h,...s),setData:()=>{n.setQueryData(h,s[0],s[1])},setQueriesData:()=>n.setQueriesData(h,s[0],s[1],s[2]),setInfiniteData:()=>{n.setInfiniteQueryData(h,s[0],s[1])},getData:()=>n.getQueryData(h),getInfiniteData:()=>n.getInfiniteQueryData(h),setMutationDefaults:()=>n.setMutationDefaults(hl(u),f),getMutationDefaults:()=>n.getMutationDefaults(hl(u)),isMutating:()=>n.isMutating({mutationKey:hl(u)})}[l]()})}function _1(n){const a=ky(n.client),u=b1(n);return Bc(l=>{const s=l;return s==="client"?a:y1.includes(s)?n[s]:u[l]})}var S1=ja(Zi(),1);function jm(n){const a=n instanceof wl?n:Lc(n);return Tl(u=>{const l=u.path,s=l.join("."),[f,d]=u.args;return(0,S1.default)({queryKey:rn(l,f,"query"),queryFn:()=>a.query(s,f,d?.trpc)},d)})}var sc=ja(Zi(),1);function vt(n,a,u){var l;const s=n[0];let f=(l=n[1])===null||l===void 0?void 0:l.input;if(u){var d;f=(0,sc.default)((0,sc.default)((0,sc.default)({},(d=f)!==null&&d!==void 0?d:{}),u.pageParam?{cursor:u.pageParam}:{}),{},{direction:u.direction})}return[s.join("."),f,a?.trpc]}var O1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function u(s){var f,d,h,m=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,h=Symbol.iterator);m--;){if(d&&(f=s[d])!=null)return f.call(s);if(h&&(f=s[h])!=null)return new l(f.call(s));d="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function l(s){function f(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var h=d.done;return Promise.resolve(d.value).then(function(m){return{value:m,done:h}})}return l=function(h){this.s=h,this.n=h.next},l.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var m=this.s.return;return m===void 0?Promise.resolve({value:h,done:!0}):f(m.apply(this.s,arguments))},throw:function(h){var m=this.s.return;return m===void 0?Promise.reject(h):f(m.apply(this.s,arguments))}},new l(s)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),x1=ja(O1(),1);function wc(n){return{path:n.path.join(".")}}function bi(n){const a=wc(n);return G.useMemo(()=>a,[a])}async function iv(n,a,u){const s=a.getQueryCache().build(a,{queryKey:u});s.setState({data:[],status:"success"});const f=[];var d=!1,h=!1,m;try{for(var y=(0,x1.default)(n),g;d=!(g=await y.next()).done;d=!1){const _=g.value;f.push(_),s.setState({data:[...f]})}}catch(_){h=!0,m=_}finally{try{d&&y.return!=null&&await y.return()}finally{if(h)throw m}}return f}var je=ja(Zi(),1);function E1(n){const{client:a,queryClient:u}=n,l=a instanceof wl?a:Lc(a);return{infiniteQueryOptions:(s,f,d)=>{var h,m;const y=((h=f[1])===null||h===void 0?void 0:h.input)===Zt,g=async _=>{var x;const M=(0,je.default)((0,je.default)({},d),{},{trpc:(0,je.default)((0,je.default)({},d?.trpc),!(d==null||(x=d.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:_.signal}:{signal:null})});return await l.query(...vt(f,M,{direction:_.direction,pageParam:_.pageParam}))};return Object.assign((0,je.default)((0,je.default)({},d),{},{initialData:d?.initialData,queryKey:f,queryFn:y?Zt:g,initialPageParam:(m=d?.initialCursor)!==null&&m!==void 0?m:null}),{trpc:wc({path:s})})},queryOptions:(s,f,d)=>{var h;const m=((h=f[1])===null||h===void 0?void 0:h.input)===Zt,y=async g=>{var _;const x=(0,je.default)((0,je.default)({},d),{},{trpc:(0,je.default)((0,je.default)({},d?.trpc),!(d==null||(_=d.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:g.signal}:{signal:null})}),M=await l.query(...vt(f,x));return Ay(M)?iv(M,u,f):M};return Object.assign((0,je.default)((0,je.default)({},d),{},{initialData:d?.initialData,queryKey:f,queryFn:m?Zt:y}),{trpc:wc({path:s})})},fetchQuery:(s,f)=>u.fetchQuery((0,je.default)((0,je.default)({},f),{},{queryKey:s,queryFn:()=>l.query(...vt(s,f))})),fetchInfiniteQuery:(s,f)=>{var d;return u.fetchInfiniteQuery((0,je.default)((0,je.default)({},f),{},{queryKey:s,queryFn:({pageParam:h,direction:m})=>l.query(...vt(s,f,{pageParam:h,direction:m})),initialPageParam:(d=f?.initialCursor)!==null&&d!==void 0?d:null}))},prefetchQuery:(s,f)=>u.prefetchQuery((0,je.default)((0,je.default)({},f),{},{queryKey:s,queryFn:()=>l.query(...vt(s,f))})),prefetchInfiniteQuery:(s,f)=>{var d;return u.prefetchInfiniteQuery((0,je.default)((0,je.default)({},f),{},{queryKey:s,queryFn:({pageParam:h,direction:m})=>l.query(...vt(s,f,{pageParam:h,direction:m})),initialPageParam:(d=f?.initialCursor)!==null&&d!==void 0?d:null}))},ensureQueryData:(s,f)=>u.ensureQueryData((0,je.default)((0,je.default)({},f),{},{queryKey:s,queryFn:()=>l.query(...vt(s,f))})),invalidateQueries:(s,f,d)=>u.invalidateQueries((0,je.default)((0,je.default)({},f),{},{queryKey:s}),d),resetQueries:(s,f,d)=>u.resetQueries((0,je.default)((0,je.default)({},f),{},{queryKey:s}),d),refetchQueries:(s,f,d)=>u.refetchQueries((0,je.default)((0,je.default)({},f),{},{queryKey:s}),d),cancelQuery:(s,f)=>u.cancelQueries({queryKey:s},f),setQueryData:(s,f,d)=>u.setQueryData(s,f,d),setQueriesData:(s,f,d,h)=>u.setQueriesData((0,je.default)((0,je.default)({},f),{},{queryKey:s}),d,h),getQueryData:s=>u.getQueryData(s),setInfiniteQueryData:(s,f,d)=>u.setQueryData(s,f,d),getInfiniteQueryData:s=>u.getQueryData(s),setMutationDefaults:(s,f)=>{const d=s[0],h=m=>l.mutation(...vt([d,{input:m}],n));return u.setMutationDefaults(s,typeof f=="function"?f({canonicalMutationFn:h}):f)},getMutationDefaults:s=>u.getMutationDefaults(s),isMutating:s=>u.isMutating((0,je.default)((0,je.default)({},s),{},{exact:!0}))}}var X=ja(Zi());const Mm=(n,a)=>new Proxy(n,{get(l,s){return a(s),l[s]}});function z1(n){var a,u;const l=(a=void 0)!==null&&a!==void 0?a:K=>K.originalFn(),s=(u=void 0)!==null&&u!==void 0?u:v1,f=ES,d=K=>{var Y;const{abortOnUnmount:R=!1,queryClient:V,ssrContext:W}=K,[re,ie]=G.useState((Y=K.ssrState)!==null&&Y!==void 0?Y:!1),F=K.client instanceof wl?K.client:Lc(K.client),he=G.useMemo(()=>E1({client:F,queryClient:V}),[F,V]),fe=G.useMemo(()=>(0,X.default)({abortOnUnmount:R,queryClient:V,client:F,ssrContext:W??null,ssrState:re},he),[R,F,he,V,W,re]);return G.useEffect(()=>{ie(J=>J?"mounted":!1)},[]),D.jsx(s.Provider,{value:fe,children:K.children})};function h(){const K=G.useContext(s);if(!K)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return K}function m(K,Y){var R;const{queryClient:V,ssrState:W}=h();return W&&W!=="mounted"&&((R=V.getQueryCache().find({queryKey:K}))===null||R===void 0?void 0:R.state.status)==="error"?(0,X.default)({retryOnMount:!1},Y):Y}function y(K,Y,R){var V,W,re,ie,F;const he=h(),{abortOnUnmount:fe,client:J,ssrState:z,queryClient:k,prefetchQuery:$}=he,P=rn(K,Y,"query"),ve=k.getQueryDefaults(P),S=Y===Zt;typeof window>"u"&&z==="prepass"&&(R==null||(V=R.trpc)===null||V===void 0?void 0:V.ssr)!==!1&&((W=R?.enabled)!==null&&W!==void 0?W:ve?.enabled)!==!1&&!S&&!k.getQueryCache().find({queryKey:P})&&$(P,R);const U=m(P,(0,X.default)((0,X.default)({},ve),R)),B=(re=(ie=R==null||(F=R.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&ie!==void 0?ie:void 0)!==null&&re!==void 0?re:fe,L=x_((0,X.default)((0,X.default)({},U),{},{queryKey:P,queryFn:S?Y:async te=>{const oe=(0,X.default)((0,X.default)({},U),{},{trpc:(0,X.default)((0,X.default)({},U?.trpc),B?{signal:te.signal}:{signal:null})}),Te=await J.query(...vt(P,oe));return Ay(Te)?iv(Te,k,P):Te}}),k);return L.trpc=bi({path:K}),L}function g(K,Y,R){var V,W,re;const ie=h(),F=rn(K,Y,"query"),he=Y===Zt,fe=(V=(W=R==null||(re=R.trpc)===null||re===void 0?void 0:re.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&V!==void 0?V:ie.abortOnUnmount;w_((0,X.default)((0,X.default)({},R),{},{queryKey:F,queryFn:he?Y:J=>{const z={trpc:(0,X.default)((0,X.default)({},R?.trpc),fe?{signal:J.signal}:{})};return ie.client.query(...vt(F,z))}}))}function _(K,Y,R){var V,W,re;const ie=h(),F=rn(K,Y,"query"),he=(V=(W=R==null||(re=R.trpc)===null||re===void 0?void 0:re.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&V!==void 0?V:ie.abortOnUnmount,fe=E_((0,X.default)((0,X.default)({},R),{},{queryKey:F,queryFn:J=>{const z=(0,X.default)((0,X.default)({},R),{},{trpc:(0,X.default)((0,X.default)({},R?.trpc),he?{signal:J.signal}:{signal:null})});return ie.client.query(...vt(F,z))}}),ie.queryClient);return fe.trpc=bi({path:K}),[fe.data,fe]}function x(K,Y){const{client:R,queryClient:V}=h(),W=hl(K),re=V.defaultMutationOptions(V.getMutationDefaults(W)),ie=j_((0,X.default)((0,X.default)({},Y),{},{mutationKey:W,mutationFn:F=>R.mutation(...vt([K,{input:F}],Y)),onSuccess(...F){var he,fe;return l({originalFn:()=>{var z,k,$;return(z=Y==null||(k=Y.onSuccess)===null||k===void 0?void 0:k.call(Y,...F))!==null&&z!==void 0?z:re==null||($=re.onSuccess)===null||$===void 0?void 0:$.call(re,...F)},queryClient:V,meta:(he=(fe=Y?.meta)!==null&&fe!==void 0?fe:re?.meta)!==null&&he!==void 0?he:{}})}}),V);return ie.trpc=bi({path:K}),ie}const M={data:void 0,error:null,status:"idle"},H={data:void 0,error:null,status:"connecting"};function Z(K,Y,R){var V;const W=(V=R?.enabled)!==null&&V!==void 0?V:Y!==Zt,re=Wn(rn(K,Y,"any")),{client:ie}=h(),F=G.useRef(R);G.useEffect(()=>{F.current=R});const[he]=G.useState(new Set([])),fe=G.useCallback(S=>{he.add(S)},[he]),J=G.useRef(null),z=G.useCallback(S=>{const U=$.current,B=$.current=S(U);let L=!1;for(const te of he)if(U[te]!==B[te]){L=!0;break}L&&ve(Mm(B,fe))},[fe,he]),k=G.useCallback(()=>{var S;if((S=J.current)===null||S===void 0||S.unsubscribe(),!W){z(()=>(0,X.default)((0,X.default)({},M),{},{reset:k}));return}z(()=>(0,X.default)((0,X.default)({},H),{},{reset:k}));const U=ie.subscription(K.join("."),Y??void 0,{onStarted:()=>{var B,L;(B=(L=F.current).onStarted)===null||B===void 0||B.call(L),z(te=>(0,X.default)((0,X.default)({},te),{},{status:"pending",error:null}))},onData:B=>{var L,te;(L=(te=F.current).onData)===null||L===void 0||L.call(te,B),z(oe=>(0,X.default)((0,X.default)({},oe),{},{status:"pending",data:B,error:null}))},onError:B=>{var L,te;(L=(te=F.current).onError)===null||L===void 0||L.call(te,B),z(oe=>(0,X.default)((0,X.default)({},oe),{},{status:"error",error:B}))},onConnectionStateChange:B=>{z(L=>{switch(B.state){case"idle":return(0,X.default)((0,X.default)({},L),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,X.default)((0,X.default)({},L),{},{error:B.error,status:B.state});case"pending":return L}})},onComplete:()=>{var B,L;(B=(L=F.current).onComplete)===null||B===void 0||B.call(L),z(te=>(0,X.default)((0,X.default)({},te),{},{status:"idle",error:null,data:void 0}))}});J.current=U},[ie,re,W,z]);G.useEffect(()=>(k(),()=>{var S;(S=J.current)===null||S===void 0||S.unsubscribe()}),[k]);const $=G.useRef(W?(0,X.default)((0,X.default)({},H),{},{reset:k}):(0,X.default)((0,X.default)({},M),{},{reset:k})),[P,ve]=G.useState(Mm($.current,fe));return P}function ae(K,Y,R){var V,W,re,ie,F;const{client:he,ssrState:fe,prefetchInfiniteQuery:J,queryClient:z,abortOnUnmount:k}=h(),$=rn(K,Y,"infinite"),P=z.getQueryDefaults($),ve=Y===Zt;typeof window>"u"&&fe==="prepass"&&(R==null||(V=R.trpc)===null||V===void 0?void 0:V.ssr)!==!1&&((W=R?.enabled)!==null&&W!==void 0?W:P?.enabled)!==!1&&!ve&&!z.getQueryCache().find({queryKey:$})&&J($,(0,X.default)((0,X.default)({},P),R));const S=m($,(0,X.default)((0,X.default)({},P),R)),U=(re=R==null||(ie=R.trpc)===null||ie===void 0?void 0:ie.abortOnUnmount)!==null&&re!==void 0?re:k,B=M_((0,X.default)((0,X.default)({},S),{},{initialPageParam:(F=R.initialCursor)!==null&&F!==void 0?F:null,persister:R.persister,queryKey:$,queryFn:ve?Y:L=>{var te;const oe=(0,X.default)((0,X.default)({},S),{},{trpc:(0,X.default)((0,X.default)({},S?.trpc),U?{signal:L.signal}:{signal:null})});return he.query(...vt($,oe,{pageParam:(te=L.pageParam)!==null&&te!==void 0?te:R.initialCursor,direction:L.direction}))}}),z);return B.trpc=bi({path:K}),B}function le(K,Y,R){var V,W,re;const ie=h(),F=rn(K,Y,"infinite"),he=ie.queryClient.getQueryDefaults(F),fe=Y===Zt,J=m(F,(0,X.default)((0,X.default)({},he),R)),z=(V=R==null||(W=R.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&V!==void 0?V:ie.abortOnUnmount;A_((0,X.default)((0,X.default)({},R),{},{initialPageParam:(re=R.initialCursor)!==null&&re!==void 0?re:null,queryKey:F,queryFn:fe?Y:k=>{var $;const P=(0,X.default)((0,X.default)({},J),{},{trpc:(0,X.default)((0,X.default)({},J?.trpc),z?{signal:k.signal}:{})});return ie.client.query(...vt(F,P,{pageParam:($=k.pageParam)!==null&&$!==void 0?$:R.initialCursor,direction:k.direction}))}}))}function de(K,Y,R){var V,W,re;const ie=h(),F=rn(K,Y,"infinite"),he=ie.queryClient.getQueryDefaults(F),fe=m(F,(0,X.default)((0,X.default)({},he),R)),J=(V=R==null||(W=R.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&V!==void 0?V:ie.abortOnUnmount,z=z_((0,X.default)((0,X.default)({},R),{},{initialPageParam:(re=R.initialCursor)!==null&&re!==void 0?re:null,queryKey:F,queryFn:k=>{var $;const P=(0,X.default)((0,X.default)({},fe),{},{trpc:(0,X.default)((0,X.default)({},fe?.trpc),J?{signal:k.signal}:{})});return ie.client.query(...vt(F,P,{pageParam:($=k.pageParam)!==null&&$!==void 0?$:R.initialCursor,direction:k.direction}))}}),ie.queryClient);return z.trpc=bi({path:K}),[z.data,z]}return{Provider:d,createClient:f,useContext:h,useUtils:h,useQuery:y,usePrefetchQuery:g,useSuspenseQuery:_,useQueries:(K,Y)=>{const{ssrState:R,queryClient:V,prefetchQuery:W,client:re}=h(),ie=jm(re),F=K(ie);if(typeof window>"u"&&R==="prepass")for(const fe of F){var he;const J=fe;((he=J.trpc)===null||he===void 0?void 0:he.ssr)!==!1&&!V.getQueryCache().find({queryKey:J.queryKey})&&W(J.queryKey,J)}return Ey({queries:F.map(fe=>(0,X.default)((0,X.default)({},fe),{},{queryKey:fe.queryKey})),combine:Y?.combine},V)},useSuspenseQueries:K=>{const{queryClient:Y,client:R}=h(),V=jm(R),W=K(V),re=T_({queries:W.map(ie=>(0,X.default)((0,X.default)({},ie),{},{queryFn:ie.queryFn,queryKey:ie.queryKey}))},Y);return[re.map(ie=>ie.data),re]},useMutation:x,useSubscription:Z,useInfiniteQuery:ae,usePrefetchInfiniteQuery:le,useSuspenseInfiniteQuery:de}}function T1(n){const a=m1(n);return Bc(u=>u==="useContext"||u==="useUtils"?()=>{const l=n.useUtils();return G.useMemo(()=>_1(l),[l])}:n.hasOwnProperty(u)?n[u]:a[u])}function w1(n){const a=z1();return T1(a)}const rt=w1(),A1="modulepreload",j1=function(n){return"/"+n},Rm={},uv=function(a,u,l){let s=Promise.resolve();if(u&&u.length>0){let m=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=m(u.map(y=>{if(y=j1(y),y in Rm)return;Rm[y]=!0;const g=y.endsWith(".css"),_=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${_}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":A1,g||(x.as="script"),x.crossOrigin="",x.href=y,h&&x.setAttribute("nonce",h),document.head.appendChild(x),g)return new Promise((M,H)=>{x.addEventListener("load",M),x.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return a().catch(f)})},Lz="New chat",Gz="__unified__",_i={IMPORTED:"imported",API:"api"};function N(n,a,u){function l(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:d,traits:new Set},enumerable:!1}),h._zod.traits.has(n))return;h._zod.traits.add(n),a(h,m);const y=d.prototype,g=Object.keys(y);for(let _=0;_<g.length;_++){const x=g[_];x in h||(h[x]=y[x].bind(h))}}const s=u?.Parent??Object;class f extends s{}Object.defineProperty(f,"name",{value:n});function d(h){var m;const y=u?.Parent?new f:this;l(y,h),(m=y._zod).deferred??(m.deferred=[]);for(const g of y._zod.deferred)g();return y}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:h=>u?.Parent&&h instanceof u.Parent?!0:h?._zod?.traits?.has(n)}),Object.defineProperty(d,"name",{value:n}),d}class br extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class lv extends Error{constructor(a){super(`Encountered unidirectional transform during encode: ${a}`),this.name="ZodEncodeError"}}const sv={};function ta(n){return sv}function ov(n){const a=Object.values(n).filter(l=>typeof l=="number");return Object.entries(n).filter(([l,s])=>a.indexOf(+l)===-1).map(([l,s])=>s)}function Ac(n,a){return typeof a=="bigint"?a.toString():a}function jl(n){return{get value(){{const a=n();return Object.defineProperty(this,"value",{value:a}),a}}}}function Gc(n){return n==null}function $c(n){const a=n.startsWith("^")?1:0,u=n.endsWith("$")?n.length-1:n.length;return n.slice(a,u)}function M1(n,a){const u=(n.toString().split(".")[1]||"").length,l=a.toString();let s=(l.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(l)){const m=l.match(/\d?e-(\d?)/);m?.[1]&&(s=Number.parseInt(m[1]))}const f=u>s?u:s,d=Number.parseInt(n.toFixed(f).replace(".","")),h=Number.parseInt(a.toFixed(f).replace(".",""));return d%h/10**f}const Cm=Symbol("evaluating");function Ee(n,a,u){let l;Object.defineProperty(n,a,{get(){if(l!==Cm)return l===void 0&&(l=Cm,l=u()),l},set(s){Object.defineProperty(n,a,{value:s})},configurable:!0})}function Ma(n,a,u){Object.defineProperty(n,a,{value:u,writable:!0,enumerable:!0,configurable:!0})}function ra(...n){const a={};for(const u of n){const l=Object.getOwnPropertyDescriptors(u);Object.assign(a,l)}return Object.defineProperties({},a)}function Dm(n){return JSON.stringify(n)}function R1(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const cv="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function Ri(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const C1=jl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function Sr(n){if(Ri(n)===!1)return!1;const a=n.constructor;if(a===void 0||typeof a!="function")return!0;const u=a.prototype;return!(Ri(u)===!1||Object.prototype.hasOwnProperty.call(u,"isPrototypeOf")===!1)}function fv(n){return Sr(n)?{...n}:Array.isArray(n)?[...n]:n}const D1=new Set(["string","number","symbol"]);function Or(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ia(n,a,u){const l=new n._zod.constr(a??n._zod.def);return(!a||u?.parent)&&(l._zod.parent=n),l}function ee(n){const a=n;if(!a)return{};if(typeof a=="string")return{error:()=>a};if(a?.message!==void 0){if(a?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");a.error=a.message}return delete a.message,typeof a.error=="string"?{...a,error:()=>a.error}:a}function N1(n){return Object.keys(n).filter(a=>n[a]._zod.optin==="optional"&&n[a]._zod.optout==="optional")}const U1={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Z1(n,a){const u=n._zod.def,l=u.checks;if(l&&l.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const f=ra(n._zod.def,{get shape(){const d={};for(const h in a){if(!(h in u.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&(d[h]=u.shape[h])}return Ma(this,"shape",d),d},checks:[]});return ia(n,f)}function q1(n,a){const u=n._zod.def,l=u.checks;if(l&&l.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const f=ra(n._zod.def,{get shape(){const d={...n._zod.def.shape};for(const h in a){if(!(h in u.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&delete d[h]}return Ma(this,"shape",d),d},checks:[]});return ia(n,f)}function Q1(n,a){if(!Sr(a))throw new Error("Invalid input to extend: expected a plain object");const u=n._zod.def.checks;if(u&&u.length>0){const f=n._zod.def.shape;for(const d in a)if(Object.getOwnPropertyDescriptor(f,d)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=ra(n._zod.def,{get shape(){const f={...n._zod.def.shape,...a};return Ma(this,"shape",f),f}});return ia(n,s)}function k1(n,a){if(!Sr(a))throw new Error("Invalid input to safeExtend: expected a plain object");const u=ra(n._zod.def,{get shape(){const l={...n._zod.def.shape,...a};return Ma(this,"shape",l),l}});return ia(n,u)}function B1(n,a){const u=ra(n._zod.def,{get shape(){const l={...n._zod.def.shape,...a._zod.def.shape};return Ma(this,"shape",l),l},get catchall(){return a._zod.def.catchall},checks:[]});return ia(n,u)}function H1(n,a,u){const s=a._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const d=ra(a._zod.def,{get shape(){const h=a._zod.def.shape,m={...h};if(u)for(const y in u){if(!(y in h))throw new Error(`Unrecognized key: "${y}"`);u[y]&&(m[y]=n?new n({type:"optional",innerType:h[y]}):h[y])}else for(const y in h)m[y]=n?new n({type:"optional",innerType:h[y]}):h[y];return Ma(this,"shape",m),m},checks:[]});return ia(a,d)}function L1(n,a,u){const l=ra(a._zod.def,{get shape(){const s=a._zod.def.shape,f={...s};if(u)for(const d in u){if(!(d in f))throw new Error(`Unrecognized key: "${d}"`);u[d]&&(f[d]=new n({type:"nonoptional",innerType:s[d]}))}else for(const d in s)f[d]=new n({type:"nonoptional",innerType:s[d]});return Ma(this,"shape",f),f}});return ia(a,l)}function vr(n,a=0){if(n.aborted===!0)return!0;for(let u=a;u<n.issues.length;u++)if(n.issues[u]?.continue!==!0)return!0;return!1}function gr(n,a){return a.map(u=>{var l;return(l=u).path??(l.path=[]),u.path.unshift(n),u})}function il(n){return typeof n=="string"?n:n?.message}function na(n,a,u){const l={...n,path:n.path??[]};if(!n.message){const s=il(n.inst?._zod.def?.error?.(n))??il(a?.error?.(n))??il(u.customError?.(n))??il(u.localeError?.(n))??"Invalid input";l.message=s}return delete l.inst,delete l.continue,a?.reportInput||delete l.input,l}function Yc(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function Ci(...n){const[a,u,l]=n;return typeof a=="string"?{message:a,code:"custom",input:u,inst:l}:{...a}}const dv=(n,a)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:a,enumerable:!1}),n.message=JSON.stringify(a,Ac,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},hv=N("$ZodError",dv),pv=N("$ZodError",dv,{Parent:Error});function G1(n,a=u=>u.message){const u={},l=[];for(const s of n.issues)s.path.length>0?(u[s.path[0]]=u[s.path[0]]||[],u[s.path[0]].push(a(s))):l.push(a(s));return{formErrors:l,fieldErrors:u}}function $1(n,a=u=>u.message){const u={_errors:[]},l=s=>{for(const f of s.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(d=>l({issues:d}));else if(f.code==="invalid_key")l({issues:f.issues});else if(f.code==="invalid_element")l({issues:f.issues});else if(f.path.length===0)u._errors.push(a(f));else{let d=u,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(d[m]=d[m]||{_errors:[]},d[m]._errors.push(a(f))):d[m]=d[m]||{_errors:[]},d=d[m],h++}}};return l(n),u}const Vc=n=>(a,u,l,s)=>{const f=l?Object.assign(l,{async:!1}):{async:!1},d=a._zod.run({value:u,issues:[]},f);if(d instanceof Promise)throw new br;if(d.issues.length){const h=new(s?.Err??n)(d.issues.map(m=>na(m,f,ta())));throw cv(h,s?.callee),h}return d.value},Kc=n=>async(a,u,l,s)=>{const f=l?Object.assign(l,{async:!0}):{async:!0};let d=a._zod.run({value:u,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const h=new(s?.Err??n)(d.issues.map(m=>na(m,f,ta())));throw cv(h,s?.callee),h}return d.value},Ml=n=>(a,u,l)=>{const s=l?{...l,async:!1}:{async:!1},f=a._zod.run({value:u,issues:[]},s);if(f instanceof Promise)throw new br;return f.issues.length?{success:!1,error:new(n??hv)(f.issues.map(d=>na(d,s,ta())))}:{success:!0,data:f.value}},Y1=Ml(pv),Rl=n=>async(a,u,l)=>{const s=l?Object.assign(l,{async:!0}):{async:!0};let f=a._zod.run({value:u,issues:[]},s);return f instanceof Promise&&(f=await f),f.issues.length?{success:!1,error:new n(f.issues.map(d=>na(d,s,ta())))}:{success:!0,data:f.value}},V1=Rl(pv),K1=n=>(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Vc(n)(a,u,s)},X1=n=>(a,u,l)=>Vc(n)(a,u,l),P1=n=>async(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Kc(n)(a,u,s)},J1=n=>async(a,u,l)=>Kc(n)(a,u,l),I1=n=>(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Ml(n)(a,u,s)},F1=n=>(a,u,l)=>Ml(n)(a,u,l),W1=n=>async(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Rl(n)(a,u,s)},e2=n=>async(a,u,l)=>Rl(n)(a,u,l),t2=/^[cC][^\s-]{8,}$/,n2=/^[0-9a-z]+$/,a2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,r2=/^[0-9a-vA-V]{20}$/,i2=/^[A-Za-z0-9]{27}$/,u2=/^[a-zA-Z0-9_-]{21}$/,l2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,s2=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Nm=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,o2=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,c2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function f2(){return new RegExp(c2,"u")}const d2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,h2=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,p2=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,m2=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,y2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mv=/^[A-Za-z0-9_-]*$/,v2=/^\+[1-9]\d{6,14}$/,yv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",g2=new RegExp(`^${yv}$`);function vv(n){const a="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${a}`:n.precision===0?`${a}:[0-5]\\d`:`${a}:[0-5]\\d\\.\\d{${n.precision}}`:`${a}(?::[0-5]\\d(?:\\.\\d+)?)?`}function b2(n){return new RegExp(`^${vv(n)}$`)}function _2(n){const a=vv({precision:n.precision}),u=["Z"];n.local&&u.push(""),n.offset&&u.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const l=`${a}(?:${u.join("|")})`;return new RegExp(`^${yv}T(?:${l})$`)}const S2=n=>{const a=n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${a}$`)},O2=/^-?\d+$/,gv=/^-?\d+(?:\.\d+)?$/,x2=/^(?:true|false)$/i,E2=/^null$/i,z2=/^[^A-Z]*$/,T2=/^[^a-z]*$/,zt=N("$ZodCheck",(n,a)=>{var u;n._zod??(n._zod={}),n._zod.def=a,(u=n._zod).onattach??(u.onattach=[])}),bv={number:"number",bigint:"bigint",object:"date"},_v=N("$ZodCheckLessThan",(n,a)=>{zt.init(n,a);const u=bv[typeof a.value];n._zod.onattach.push(l=>{const s=l._zod.bag,f=(a.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;a.value<f&&(a.inclusive?s.maximum=a.value:s.exclusiveMaximum=a.value)}),n._zod.check=l=>{(a.inclusive?l.value<=a.value:l.value<a.value)||l.issues.push({origin:u,code:"too_big",maximum:typeof a.value=="object"?a.value.getTime():a.value,input:l.value,inclusive:a.inclusive,inst:n,continue:!a.abort})}}),Sv=N("$ZodCheckGreaterThan",(n,a)=>{zt.init(n,a);const u=bv[typeof a.value];n._zod.onattach.push(l=>{const s=l._zod.bag,f=(a.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;a.value>f&&(a.inclusive?s.minimum=a.value:s.exclusiveMinimum=a.value)}),n._zod.check=l=>{(a.inclusive?l.value>=a.value:l.value>a.value)||l.issues.push({origin:u,code:"too_small",minimum:typeof a.value=="object"?a.value.getTime():a.value,input:l.value,inclusive:a.inclusive,inst:n,continue:!a.abort})}}),w2=N("$ZodCheckMultipleOf",(n,a)=>{zt.init(n,a),n._zod.onattach.push(u=>{var l;(l=u._zod.bag).multipleOf??(l.multipleOf=a.value)}),n._zod.check=u=>{if(typeof u.value!=typeof a.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof u.value=="bigint"?u.value%a.value===BigInt(0):M1(u.value,a.value)===0)||u.issues.push({origin:typeof u.value,code:"not_multiple_of",divisor:a.value,input:u.value,inst:n,continue:!a.abort})}}),A2=N("$ZodCheckNumberFormat",(n,a)=>{zt.init(n,a),a.format=a.format||"float64";const u=a.format?.includes("int"),l=u?"int":"number",[s,f]=U1[a.format];n._zod.onattach.push(d=>{const h=d._zod.bag;h.format=a.format,h.minimum=s,h.maximum=f,u&&(h.pattern=O2)}),n._zod.check=d=>{const h=d.value;if(u){if(!Number.isInteger(h)){d.issues.push({expected:l,format:a.format,code:"invalid_type",continue:!1,input:h,inst:n});return}if(!Number.isSafeInteger(h)){h>0?d.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:l,inclusive:!0,continue:!a.abort}):d.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:l,inclusive:!0,continue:!a.abort});return}}h<s&&d.issues.push({origin:"number",input:h,code:"too_small",minimum:s,inclusive:!0,inst:n,continue:!a.abort}),h>f&&d.issues.push({origin:"number",input:h,code:"too_big",maximum:f,inclusive:!0,inst:n,continue:!a.abort})}}),j2=N("$ZodCheckMaxLength",(n,a)=>{var u;zt.init(n,a),(u=n._zod.def).when??(u.when=l=>{const s=l.value;return!Gc(s)&&s.length!==void 0}),n._zod.onattach.push(l=>{const s=l._zod.bag.maximum??Number.POSITIVE_INFINITY;a.maximum<s&&(l._zod.bag.maximum=a.maximum)}),n._zod.check=l=>{const s=l.value;if(s.length<=a.maximum)return;const d=Yc(s);l.issues.push({origin:d,code:"too_big",maximum:a.maximum,inclusive:!0,input:s,inst:n,continue:!a.abort})}}),M2=N("$ZodCheckMinLength",(n,a)=>{var u;zt.init(n,a),(u=n._zod.def).when??(u.when=l=>{const s=l.value;return!Gc(s)&&s.length!==void 0}),n._zod.onattach.push(l=>{const s=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;a.minimum>s&&(l._zod.bag.minimum=a.minimum)}),n._zod.check=l=>{const s=l.value;if(s.length>=a.minimum)return;const d=Yc(s);l.issues.push({origin:d,code:"too_small",minimum:a.minimum,inclusive:!0,input:s,inst:n,continue:!a.abort})}}),R2=N("$ZodCheckLengthEquals",(n,a)=>{var u;zt.init(n,a),(u=n._zod.def).when??(u.when=l=>{const s=l.value;return!Gc(s)&&s.length!==void 0}),n._zod.onattach.push(l=>{const s=l._zod.bag;s.minimum=a.length,s.maximum=a.length,s.length=a.length}),n._zod.check=l=>{const s=l.value,f=s.length;if(f===a.length)return;const d=Yc(s),h=f>a.length;l.issues.push({origin:d,...h?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length},inclusive:!0,exact:!0,input:l.value,inst:n,continue:!a.abort})}}),Cl=N("$ZodCheckStringFormat",(n,a)=>{var u,l;zt.init(n,a),n._zod.onattach.push(s=>{const f=s._zod.bag;f.format=a.format,a.pattern&&(f.patterns??(f.patterns=new Set),f.patterns.add(a.pattern))}),a.pattern?(u=n._zod).check??(u.check=s=>{a.pattern.lastIndex=0,!a.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:a.format,input:s.value,...a.pattern?{pattern:a.pattern.toString()}:{},inst:n,continue:!a.abort})}):(l=n._zod).check??(l.check=()=>{})}),C2=N("$ZodCheckRegex",(n,a)=>{Cl.init(n,a),n._zod.check=u=>{a.pattern.lastIndex=0,!a.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:"regex",input:u.value,pattern:a.pattern.toString(),inst:n,continue:!a.abort})}}),D2=N("$ZodCheckLowerCase",(n,a)=>{a.pattern??(a.pattern=z2),Cl.init(n,a)}),N2=N("$ZodCheckUpperCase",(n,a)=>{a.pattern??(a.pattern=T2),Cl.init(n,a)}),U2=N("$ZodCheckIncludes",(n,a)=>{zt.init(n,a);const u=Or(a.includes),l=new RegExp(typeof a.position=="number"?`^.{${a.position}}${u}`:u);a.pattern=l,n._zod.onattach.push(s=>{const f=s._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(l)}),n._zod.check=s=>{s.value.includes(a.includes,a.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:a.includes,input:s.value,inst:n,continue:!a.abort})}}),Z2=N("$ZodCheckStartsWith",(n,a)=>{zt.init(n,a);const u=new RegExp(`^${Or(a.prefix)}.*`);a.pattern??(a.pattern=u),n._zod.onattach.push(l=>{const s=l._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(u)}),n._zod.check=l=>{l.value.startsWith(a.prefix)||l.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:a.prefix,input:l.value,inst:n,continue:!a.abort})}}),q2=N("$ZodCheckEndsWith",(n,a)=>{zt.init(n,a);const u=new RegExp(`.*${Or(a.suffix)}$`);a.pattern??(a.pattern=u),n._zod.onattach.push(l=>{const s=l._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(u)}),n._zod.check=l=>{l.value.endsWith(a.suffix)||l.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:a.suffix,input:l.value,inst:n,continue:!a.abort})}}),Q2=N("$ZodCheckOverwrite",(n,a)=>{zt.init(n,a),n._zod.check=u=>{u.value=a.tx(u.value)}});class k2{constructor(a=[]){this.content=[],this.indent=0,this&&(this.args=a)}indented(a){this.indent+=1,a(this),this.indent-=1}write(a){if(typeof a=="function"){a(this,{execution:"sync"}),a(this,{execution:"async"});return}const l=a.split(`
11
+ `).filter(d=>d),s=Math.min(...l.map(d=>d.length-d.trimStart().length)),f=l.map(d=>d.slice(s)).map(d=>" ".repeat(this.indent*2)+d);for(const d of f)this.content.push(d)}compile(){const a=Function,u=this?.args,s=[...(this?.content??[""]).map(f=>` ${f}`)];return new a(...u,s.join(`
12
+ `))}}const B2={major:4,minor:3,patch:6},He=N("$ZodType",(n,a)=>{var u;n??(n={}),n._zod.def=a,n._zod.bag=n._zod.bag||{},n._zod.version=B2;const l=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&l.unshift(n);for(const s of l)for(const f of s._zod.onattach)f(n);if(l.length===0)(u=n._zod).deferred??(u.deferred=[]),n._zod.deferred?.push(()=>{n._zod.run=n._zod.parse});else{const s=(d,h,m)=>{let y=vr(d),g;for(const _ of h){if(_._zod.def.when){if(!_._zod.def.when(d))continue}else if(y)continue;const x=d.issues.length,M=_._zod.check(d);if(M instanceof Promise&&m?.async===!1)throw new br;if(g||M instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await M,d.issues.length!==x&&(y||(y=vr(d,x)))});else{if(d.issues.length===x)continue;y||(y=vr(d,x))}}return g?g.then(()=>d):d},f=(d,h,m)=>{if(vr(d))return d.aborted=!0,d;const y=s(h,l,m);if(y instanceof Promise){if(m.async===!1)throw new br;return y.then(g=>n._zod.parse(g,m))}return n._zod.parse(y,m)};n._zod.run=(d,h)=>{if(h.skipChecks)return n._zod.parse(d,h);if(h.direction==="backward"){const y=n._zod.parse({value:d.value,issues:[]},{...h,skipChecks:!0});return y instanceof Promise?y.then(g=>f(g,d,h)):f(y,d,h)}const m=n._zod.parse(d,h);if(m instanceof Promise){if(h.async===!1)throw new br;return m.then(y=>s(y,l,h))}return s(m,l,h)}}Ee(n,"~standard",()=>({validate:s=>{try{const f=Y1(n,s);return f.success?{value:f.data}:{issues:f.error?.issues}}catch{return V1(n,s).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}))}),Xc=N("$ZodString",(n,a)=>{He.init(n,a),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??S2(n._zod.bag),n._zod.parse=(u,l)=>{if(a.coerce)try{u.value=String(u.value)}catch{}return typeof u.value=="string"||u.issues.push({expected:"string",code:"invalid_type",input:u.value,inst:n}),u}}),$e=N("$ZodStringFormat",(n,a)=>{Cl.init(n,a),Xc.init(n,a)}),H2=N("$ZodGUID",(n,a)=>{a.pattern??(a.pattern=s2),$e.init(n,a)}),L2=N("$ZodUUID",(n,a)=>{if(a.version){const l={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[a.version];if(l===void 0)throw new Error(`Invalid UUID version: "${a.version}"`);a.pattern??(a.pattern=Nm(l))}else a.pattern??(a.pattern=Nm());$e.init(n,a)}),G2=N("$ZodEmail",(n,a)=>{a.pattern??(a.pattern=o2),$e.init(n,a)}),$2=N("$ZodURL",(n,a)=>{$e.init(n,a),n._zod.check=u=>{try{const l=u.value.trim(),s=new URL(l);a.hostname&&(a.hostname.lastIndex=0,a.hostname.test(s.hostname)||u.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:a.hostname.source,input:u.value,inst:n,continue:!a.abort})),a.protocol&&(a.protocol.lastIndex=0,a.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||u.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:a.protocol.source,input:u.value,inst:n,continue:!a.abort})),a.normalize?u.value=s.href:u.value=l;return}catch{u.issues.push({code:"invalid_format",format:"url",input:u.value,inst:n,continue:!a.abort})}}}),Y2=N("$ZodEmoji",(n,a)=>{a.pattern??(a.pattern=f2()),$e.init(n,a)}),V2=N("$ZodNanoID",(n,a)=>{a.pattern??(a.pattern=u2),$e.init(n,a)}),K2=N("$ZodCUID",(n,a)=>{a.pattern??(a.pattern=t2),$e.init(n,a)}),X2=N("$ZodCUID2",(n,a)=>{a.pattern??(a.pattern=n2),$e.init(n,a)}),P2=N("$ZodULID",(n,a)=>{a.pattern??(a.pattern=a2),$e.init(n,a)}),J2=N("$ZodXID",(n,a)=>{a.pattern??(a.pattern=r2),$e.init(n,a)}),I2=N("$ZodKSUID",(n,a)=>{a.pattern??(a.pattern=i2),$e.init(n,a)}),F2=N("$ZodISODateTime",(n,a)=>{a.pattern??(a.pattern=_2(a)),$e.init(n,a)}),W2=N("$ZodISODate",(n,a)=>{a.pattern??(a.pattern=g2),$e.init(n,a)}),eO=N("$ZodISOTime",(n,a)=>{a.pattern??(a.pattern=b2(a)),$e.init(n,a)}),tO=N("$ZodISODuration",(n,a)=>{a.pattern??(a.pattern=l2),$e.init(n,a)}),nO=N("$ZodIPv4",(n,a)=>{a.pattern??(a.pattern=d2),$e.init(n,a),n._zod.bag.format="ipv4"}),aO=N("$ZodIPv6",(n,a)=>{a.pattern??(a.pattern=h2),$e.init(n,a),n._zod.bag.format="ipv6",n._zod.check=u=>{try{new URL(`http://[${u.value}]`)}catch{u.issues.push({code:"invalid_format",format:"ipv6",input:u.value,inst:n,continue:!a.abort})}}}),rO=N("$ZodCIDRv4",(n,a)=>{a.pattern??(a.pattern=p2),$e.init(n,a)}),iO=N("$ZodCIDRv6",(n,a)=>{a.pattern??(a.pattern=m2),$e.init(n,a),n._zod.check=u=>{const l=u.value.split("/");try{if(l.length!==2)throw new Error;const[s,f]=l;if(!f)throw new Error;const d=Number(f);if(`${d}`!==f)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${s}]`)}catch{u.issues.push({code:"invalid_format",format:"cidrv6",input:u.value,inst:n,continue:!a.abort})}}});function Ov(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const uO=N("$ZodBase64",(n,a)=>{a.pattern??(a.pattern=y2),$e.init(n,a),n._zod.bag.contentEncoding="base64",n._zod.check=u=>{Ov(u.value)||u.issues.push({code:"invalid_format",format:"base64",input:u.value,inst:n,continue:!a.abort})}});function lO(n){if(!mv.test(n))return!1;const a=n.replace(/[-_]/g,l=>l==="-"?"+":"/"),u=a.padEnd(Math.ceil(a.length/4)*4,"=");return Ov(u)}const sO=N("$ZodBase64URL",(n,a)=>{a.pattern??(a.pattern=mv),$e.init(n,a),n._zod.bag.contentEncoding="base64url",n._zod.check=u=>{lO(u.value)||u.issues.push({code:"invalid_format",format:"base64url",input:u.value,inst:n,continue:!a.abort})}}),oO=N("$ZodE164",(n,a)=>{a.pattern??(a.pattern=v2),$e.init(n,a)});function cO(n,a=null){try{const u=n.split(".");if(u.length!==3)return!1;const[l]=u;if(!l)return!1;const s=JSON.parse(atob(l));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||a&&(!("alg"in s)||s.alg!==a))}catch{return!1}}const fO=N("$ZodJWT",(n,a)=>{$e.init(n,a),n._zod.check=u=>{cO(u.value,a.alg)||u.issues.push({code:"invalid_format",format:"jwt",input:u.value,inst:n,continue:!a.abort})}}),xv=N("$ZodNumber",(n,a)=>{He.init(n,a),n._zod.pattern=n._zod.bag.pattern??gv,n._zod.parse=(u,l)=>{if(a.coerce)try{u.value=Number(u.value)}catch{}const s=u.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return u;const f=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return u.issues.push({expected:"number",code:"invalid_type",input:s,inst:n,...f?{received:f}:{}}),u}}),dO=N("$ZodNumberFormat",(n,a)=>{A2.init(n,a),xv.init(n,a)}),hO=N("$ZodBoolean",(n,a)=>{He.init(n,a),n._zod.pattern=x2,n._zod.parse=(u,l)=>{if(a.coerce)try{u.value=!!u.value}catch{}const s=u.value;return typeof s=="boolean"||u.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:n}),u}}),pO=N("$ZodNull",(n,a)=>{He.init(n,a),n._zod.pattern=E2,n._zod.values=new Set([null]),n._zod.parse=(u,l)=>{const s=u.value;return s===null||u.issues.push({expected:"null",code:"invalid_type",input:s,inst:n}),u}}),mO=N("$ZodUnknown",(n,a)=>{He.init(n,a),n._zod.parse=u=>u}),yO=N("$ZodNever",(n,a)=>{He.init(n,a),n._zod.parse=(u,l)=>(u.issues.push({expected:"never",code:"invalid_type",input:u.value,inst:n}),u)});function Um(n,a,u){n.issues.length&&a.issues.push(...gr(u,n.issues)),a.value[u]=n.value}const vO=N("$ZodArray",(n,a)=>{He.init(n,a),n._zod.parse=(u,l)=>{const s=u.value;if(!Array.isArray(s))return u.issues.push({expected:"array",code:"invalid_type",input:s,inst:n}),u;u.value=Array(s.length);const f=[];for(let d=0;d<s.length;d++){const h=s[d],m=a.element._zod.run({value:h,issues:[]},l);m instanceof Promise?f.push(m.then(y=>Um(y,u,d))):Um(m,u,d)}return f.length?Promise.all(f).then(()=>u):u}});function vl(n,a,u,l,s){if(n.issues.length){if(s&&!(u in l))return;a.issues.push(...gr(u,n.issues))}n.value===void 0?u in l&&(a.value[u]=void 0):a.value[u]=n.value}function Ev(n){const a=Object.keys(n.shape);for(const l of a)if(!n.shape?.[l]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const u=N1(n.shape);return{...n,keys:a,keySet:new Set(a),numKeys:a.length,optionalKeys:new Set(u)}}function zv(n,a,u,l,s,f){const d=[],h=s.keySet,m=s.catchall._zod,y=m.def.type,g=m.optout==="optional";for(const _ in a){if(h.has(_))continue;if(y==="never"){d.push(_);continue}const x=m.run({value:a[_],issues:[]},l);x instanceof Promise?n.push(x.then(M=>vl(M,u,_,a,g))):vl(x,u,_,a,g)}return d.length&&u.issues.push({code:"unrecognized_keys",keys:d,input:a,inst:f}),n.length?Promise.all(n).then(()=>u):u}const gO=N("$ZodObject",(n,a)=>{if(He.init(n,a),!Object.getOwnPropertyDescriptor(a,"shape")?.get){const h=a.shape;Object.defineProperty(a,"shape",{get:()=>{const m={...h};return Object.defineProperty(a,"shape",{value:m}),m}})}const l=jl(()=>Ev(a));Ee(n._zod,"propValues",()=>{const h=a.shape,m={};for(const y in h){const g=h[y]._zod;if(g.values){m[y]??(m[y]=new Set);for(const _ of g.values)m[y].add(_)}}return m});const s=Ri,f=a.catchall;let d;n._zod.parse=(h,m)=>{d??(d=l.value);const y=h.value;if(!s(y))return h.issues.push({expected:"object",code:"invalid_type",input:y,inst:n}),h;h.value={};const g=[],_=d.shape;for(const x of d.keys){const M=_[x],H=M._zod.optout==="optional",Z=M._zod.run({value:y[x],issues:[]},m);Z instanceof Promise?g.push(Z.then(ae=>vl(ae,h,x,y,H))):vl(Z,h,x,y,H)}return f?zv(g,y,h,m,l.value,n):g.length?Promise.all(g).then(()=>h):h}}),bO=N("$ZodObjectJIT",(n,a)=>{gO.init(n,a);const u=n._zod.parse,l=jl(()=>Ev(a)),s=x=>{const M=new k2(["shape","payload","ctx"]),H=l.value,Z=ye=>{const ge=Dm(ye);return`shape[${ge}]._zod.run({ value: input[${ge}], issues: [] }, ctx)`};M.write("const input = payload.value;");const ae=Object.create(null);let le=0;for(const ye of H.keys)ae[ye]=`key_${le++}`;M.write("const newResult = {};");for(const ye of H.keys){const ge=ae[ye],K=Dm(ye),R=x[ye]?._zod?.optout==="optional";M.write(`const ${ge} = ${Z(ye)};`),R?M.write(`
13
+ if (${ge}.issues.length) {
14
+ if (${K} in input) {
15
+ payload.issues = payload.issues.concat(${ge}.issues.map(iss => ({
16
+ ...iss,
17
+ path: iss.path ? [${K}, ...iss.path] : [${K}]
18
+ })));
19
+ }
20
+ }
21
+
22
+ if (${ge}.value === undefined) {
23
+ if (${K} in input) {
24
+ newResult[${K}] = undefined;
25
+ }
26
+ } else {
27
+ newResult[${K}] = ${ge}.value;
28
+ }
29
+
30
+ `):M.write(`
31
+ if (${ge}.issues.length) {
32
+ payload.issues = payload.issues.concat(${ge}.issues.map(iss => ({
33
+ ...iss,
34
+ path: iss.path ? [${K}, ...iss.path] : [${K}]
35
+ })));
36
+ }
37
+
38
+ if (${ge}.value === undefined) {
39
+ if (${K} in input) {
40
+ newResult[${K}] = undefined;
41
+ }
42
+ } else {
43
+ newResult[${K}] = ${ge}.value;
44
+ }
45
+
46
+ `)}M.write("payload.value = newResult;"),M.write("return payload;");const de=M.compile();return(ye,ge)=>de(x,ye,ge)};let f;const d=Ri,h=!sv.jitless,y=h&&C1.value,g=a.catchall;let _;n._zod.parse=(x,M)=>{_??(_=l.value);const H=x.value;return d(H)?h&&y&&M?.async===!1&&M.jitless!==!0?(f||(f=s(a.shape)),x=f(x,M),g?zv([],H,x,M,_,n):x):u(x,M):(x.issues.push({expected:"object",code:"invalid_type",input:H,inst:n}),x)}});function Zm(n,a,u,l){for(const f of n)if(f.issues.length===0)return a.value=f.value,a;const s=n.filter(f=>!vr(f));return s.length===1?(a.value=s[0].value,s[0]):(a.issues.push({code:"invalid_union",input:a.value,inst:u,errors:n.map(f=>f.issues.map(d=>na(d,l,ta())))}),a)}const Tv=N("$ZodUnion",(n,a)=>{He.init(n,a),Ee(n._zod,"optin",()=>a.options.some(s=>s._zod.optin==="optional")?"optional":void 0),Ee(n._zod,"optout",()=>a.options.some(s=>s._zod.optout==="optional")?"optional":void 0),Ee(n._zod,"values",()=>{if(a.options.every(s=>s._zod.values))return new Set(a.options.flatMap(s=>Array.from(s._zod.values)))}),Ee(n._zod,"pattern",()=>{if(a.options.every(s=>s._zod.pattern)){const s=a.options.map(f=>f._zod.pattern);return new RegExp(`^(${s.map(f=>$c(f.source)).join("|")})$`)}});const u=a.options.length===1,l=a.options[0]._zod.run;n._zod.parse=(s,f)=>{if(u)return l(s,f);let d=!1;const h=[];for(const m of a.options){const y=m._zod.run({value:s.value,issues:[]},f);if(y instanceof Promise)h.push(y),d=!0;else{if(y.issues.length===0)return y;h.push(y)}}return d?Promise.all(h).then(m=>Zm(m,s,n,f)):Zm(h,s,n,f)}}),_O=N("$ZodDiscriminatedUnion",(n,a)=>{a.inclusive=!1,Tv.init(n,a);const u=n._zod.parse;Ee(n._zod,"propValues",()=>{const s={};for(const f of a.options){const d=f._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(f)}"`);for(const[h,m]of Object.entries(d)){s[h]||(s[h]=new Set);for(const y of m)s[h].add(y)}}return s});const l=jl(()=>{const s=a.options,f=new Map;for(const d of s){const h=d._zod.propValues?.[a.discriminator];if(!h||h.size===0)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(d)}"`);for(const m of h){if(f.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);f.set(m,d)}}return f});n._zod.parse=(s,f)=>{const d=s.value;if(!Ri(d))return s.issues.push({code:"invalid_type",expected:"object",input:d,inst:n}),s;const h=l.value.get(d?.[a.discriminator]);return h?h._zod.run(s,f):a.unionFallback?u(s,f):(s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:a.discriminator,input:d,path:[a.discriminator],inst:n}),s)}}),SO=N("$ZodIntersection",(n,a)=>{He.init(n,a),n._zod.parse=(u,l)=>{const s=u.value,f=a.left._zod.run({value:s,issues:[]},l),d=a.right._zod.run({value:s,issues:[]},l);return f instanceof Promise||d instanceof Promise?Promise.all([f,d]).then(([m,y])=>qm(u,m,y)):qm(u,f,d)}});function jc(n,a){if(n===a)return{valid:!0,data:n};if(n instanceof Date&&a instanceof Date&&+n==+a)return{valid:!0,data:n};if(Sr(n)&&Sr(a)){const u=Object.keys(a),l=Object.keys(n).filter(f=>u.indexOf(f)!==-1),s={...n,...a};for(const f of l){const d=jc(n[f],a[f]);if(!d.valid)return{valid:!1,mergeErrorPath:[f,...d.mergeErrorPath]};s[f]=d.data}return{valid:!0,data:s}}if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return{valid:!1,mergeErrorPath:[]};const u=[];for(let l=0;l<n.length;l++){const s=n[l],f=a[l],d=jc(s,f);if(!d.valid)return{valid:!1,mergeErrorPath:[l,...d.mergeErrorPath]};u.push(d.data)}return{valid:!0,data:u}}return{valid:!1,mergeErrorPath:[]}}function qm(n,a,u){const l=new Map;let s;for(const h of a.issues)if(h.code==="unrecognized_keys"){s??(s=h);for(const m of h.keys)l.has(m)||l.set(m,{}),l.get(m).l=!0}else n.issues.push(h);for(const h of u.issues)if(h.code==="unrecognized_keys")for(const m of h.keys)l.has(m)||l.set(m,{}),l.get(m).r=!0;else n.issues.push(h);const f=[...l].filter(([,h])=>h.l&&h.r).map(([h])=>h);if(f.length&&s&&n.issues.push({...s,keys:f}),vr(n))return n;const d=jc(a.value,u.value);if(!d.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);return n.value=d.data,n}const OO=N("$ZodRecord",(n,a)=>{He.init(n,a),n._zod.parse=(u,l)=>{const s=u.value;if(!Sr(s))return u.issues.push({expected:"record",code:"invalid_type",input:s,inst:n}),u;const f=[],d=a.keyType._zod.values;if(d){u.value={};const h=new Set;for(const y of d)if(typeof y=="string"||typeof y=="number"||typeof y=="symbol"){h.add(typeof y=="number"?y.toString():y);const g=a.valueType._zod.run({value:s[y],issues:[]},l);g instanceof Promise?f.push(g.then(_=>{_.issues.length&&u.issues.push(...gr(y,_.issues)),u.value[y]=_.value})):(g.issues.length&&u.issues.push(...gr(y,g.issues)),u.value[y]=g.value)}let m;for(const y in s)h.has(y)||(m=m??[],m.push(y));m&&m.length>0&&u.issues.push({code:"unrecognized_keys",input:s,inst:n,keys:m})}else{u.value={};for(const h of Reflect.ownKeys(s)){if(h==="__proto__")continue;let m=a.keyType._zod.run({value:h,issues:[]},l);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof h=="string"&&gv.test(h)&&m.issues.length){const _=a.keyType._zod.run({value:Number(h),issues:[]},l);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");_.issues.length===0&&(m=_)}if(m.issues.length){a.mode==="loose"?u.value[h]=s[h]:u.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(_=>na(_,l,ta())),input:h,path:[h],inst:n});continue}const g=a.valueType._zod.run({value:s[h],issues:[]},l);g instanceof Promise?f.push(g.then(_=>{_.issues.length&&u.issues.push(...gr(h,_.issues)),u.value[m.value]=_.value})):(g.issues.length&&u.issues.push(...gr(h,g.issues)),u.value[m.value]=g.value)}}return f.length?Promise.all(f).then(()=>u):u}}),xO=N("$ZodEnum",(n,a)=>{He.init(n,a);const u=ov(a.entries),l=new Set(u);n._zod.values=l,n._zod.pattern=new RegExp(`^(${u.filter(s=>D1.has(typeof s)).map(s=>typeof s=="string"?Or(s):s.toString()).join("|")})$`),n._zod.parse=(s,f)=>{const d=s.value;return l.has(d)||s.issues.push({code:"invalid_value",values:u,input:d,inst:n}),s}}),EO=N("$ZodLiteral",(n,a)=>{if(He.init(n,a),a.values.length===0)throw new Error("Cannot create literal schema with no valid values");const u=new Set(a.values);n._zod.values=u,n._zod.pattern=new RegExp(`^(${a.values.map(l=>typeof l=="string"?Or(l):l?Or(l.toString()):String(l)).join("|")})$`),n._zod.parse=(l,s)=>{const f=l.value;return u.has(f)||l.issues.push({code:"invalid_value",values:a.values,input:f,inst:n}),l}}),zO=N("$ZodTransform",(n,a)=>{He.init(n,a),n._zod.parse=(u,l)=>{if(l.direction==="backward")throw new lv(n.constructor.name);const s=a.transform(u.value,u);if(l.async)return(s instanceof Promise?s:Promise.resolve(s)).then(d=>(u.value=d,u));if(s instanceof Promise)throw new br;return u.value=s,u}});function Qm(n,a){return n.issues.length&&a===void 0?{issues:[],value:void 0}:n}const wv=N("$ZodOptional",(n,a)=>{He.init(n,a),n._zod.optin="optional",n._zod.optout="optional",Ee(n._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,void 0]):void 0),Ee(n._zod,"pattern",()=>{const u=a.innerType._zod.pattern;return u?new RegExp(`^(${$c(u.source)})?$`):void 0}),n._zod.parse=(u,l)=>{if(a.innerType._zod.optin==="optional"){const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>Qm(f,u.value)):Qm(s,u.value)}return u.value===void 0?u:a.innerType._zod.run(u,l)}}),TO=N("$ZodExactOptional",(n,a)=>{wv.init(n,a),Ee(n._zod,"values",()=>a.innerType._zod.values),Ee(n._zod,"pattern",()=>a.innerType._zod.pattern),n._zod.parse=(u,l)=>a.innerType._zod.run(u,l)}),wO=N("$ZodNullable",(n,a)=>{He.init(n,a),Ee(n._zod,"optin",()=>a.innerType._zod.optin),Ee(n._zod,"optout",()=>a.innerType._zod.optout),Ee(n._zod,"pattern",()=>{const u=a.innerType._zod.pattern;return u?new RegExp(`^(${$c(u.source)}|null)$`):void 0}),Ee(n._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,null]):void 0),n._zod.parse=(u,l)=>u.value===null?u:a.innerType._zod.run(u,l)}),AO=N("$ZodDefault",(n,a)=>{He.init(n,a),n._zod.optin="optional",Ee(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(u,l)=>{if(l.direction==="backward")return a.innerType._zod.run(u,l);if(u.value===void 0)return u.value=a.defaultValue,u;const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>km(f,a)):km(s,a)}});function km(n,a){return n.value===void 0&&(n.value=a.defaultValue),n}const jO=N("$ZodPrefault",(n,a)=>{He.init(n,a),n._zod.optin="optional",Ee(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(u,l)=>(l.direction==="backward"||u.value===void 0&&(u.value=a.defaultValue),a.innerType._zod.run(u,l))}),MO=N("$ZodNonOptional",(n,a)=>{He.init(n,a),Ee(n._zod,"values",()=>{const u=a.innerType._zod.values;return u?new Set([...u].filter(l=>l!==void 0)):void 0}),n._zod.parse=(u,l)=>{const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>Bm(f,n)):Bm(s,n)}});function Bm(n,a){return!n.issues.length&&n.value===void 0&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:a}),n}const RO=N("$ZodCatch",(n,a)=>{He.init(n,a),Ee(n._zod,"optin",()=>a.innerType._zod.optin),Ee(n._zod,"optout",()=>a.innerType._zod.optout),Ee(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(u,l)=>{if(l.direction==="backward")return a.innerType._zod.run(u,l);const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>(u.value=f.value,f.issues.length&&(u.value=a.catchValue({...u,error:{issues:f.issues.map(d=>na(d,l,ta()))},input:u.value}),u.issues=[]),u)):(u.value=s.value,s.issues.length&&(u.value=a.catchValue({...u,error:{issues:s.issues.map(f=>na(f,l,ta()))},input:u.value}),u.issues=[]),u)}}),CO=N("$ZodPipe",(n,a)=>{He.init(n,a),Ee(n._zod,"values",()=>a.in._zod.values),Ee(n._zod,"optin",()=>a.in._zod.optin),Ee(n._zod,"optout",()=>a.out._zod.optout),Ee(n._zod,"propValues",()=>a.in._zod.propValues),n._zod.parse=(u,l)=>{if(l.direction==="backward"){const f=a.out._zod.run(u,l);return f instanceof Promise?f.then(d=>ul(d,a.in,l)):ul(f,a.in,l)}const s=a.in._zod.run(u,l);return s instanceof Promise?s.then(f=>ul(f,a.out,l)):ul(s,a.out,l)}});function ul(n,a,u){return n.issues.length?(n.aborted=!0,n):a._zod.run({value:n.value,issues:n.issues},u)}const DO=N("$ZodReadonly",(n,a)=>{He.init(n,a),Ee(n._zod,"propValues",()=>a.innerType._zod.propValues),Ee(n._zod,"values",()=>a.innerType._zod.values),Ee(n._zod,"optin",()=>a.innerType?._zod?.optin),Ee(n._zod,"optout",()=>a.innerType?._zod?.optout),n._zod.parse=(u,l)=>{if(l.direction==="backward")return a.innerType._zod.run(u,l);const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(Hm):Hm(s)}});function Hm(n){return n.value=Object.freeze(n.value),n}const NO=N("$ZodLazy",(n,a)=>{He.init(n,a),Ee(n._zod,"innerType",()=>a.getter()),Ee(n._zod,"pattern",()=>n._zod.innerType?._zod?.pattern),Ee(n._zod,"propValues",()=>n._zod.innerType?._zod?.propValues),Ee(n._zod,"optin",()=>n._zod.innerType?._zod?.optin??void 0),Ee(n._zod,"optout",()=>n._zod.innerType?._zod?.optout??void 0),n._zod.parse=(u,l)=>n._zod.innerType._zod.run(u,l)}),UO=N("$ZodCustom",(n,a)=>{zt.init(n,a),He.init(n,a),n._zod.parse=(u,l)=>u,n._zod.check=u=>{const l=u.value,s=a.fn(l);if(s instanceof Promise)return s.then(f=>Lm(f,u,l,n));Lm(s,u,l,n)}});function Lm(n,a,u,l){if(!n){const s={code:"custom",input:u,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(s.params=l._zod.def.params),a.issues.push(Ci(s))}}var Gm;class ZO{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...u){const l=u[0];return this._map.set(a,l),l&&typeof l=="object"&&"id"in l&&this._idmap.set(l.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const u=this._map.get(a);return u&&typeof u=="object"&&"id"in u&&this._idmap.delete(u.id),this._map.delete(a),this}get(a){const u=a._zod.parent;if(u){const l={...this.get(u)??{}};delete l.id;const s={...l,...this._map.get(a)};return Object.keys(s).length?s:void 0}return this._map.get(a)}has(a){return this._map.has(a)}}function qO(){return new ZO}(Gm=globalThis).__zod_globalRegistry??(Gm.__zod_globalRegistry=qO());const Oi=globalThis.__zod_globalRegistry;function QO(n,a){return new n({type:"string",...ee(a)})}function kO(n,a){return new n({type:"string",format:"email",check:"string_format",abort:!1,...ee(a)})}function $m(n,a){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...ee(a)})}function BO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...ee(a)})}function HO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ee(a)})}function LO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ee(a)})}function GO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ee(a)})}function $O(n,a){return new n({type:"string",format:"url",check:"string_format",abort:!1,...ee(a)})}function YO(n,a){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...ee(a)})}function VO(n,a){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...ee(a)})}function KO(n,a){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...ee(a)})}function XO(n,a){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...ee(a)})}function PO(n,a){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...ee(a)})}function JO(n,a){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...ee(a)})}function IO(n,a){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...ee(a)})}function FO(n,a){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...ee(a)})}function WO(n,a){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...ee(a)})}function ex(n,a){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ee(a)})}function tx(n,a){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ee(a)})}function nx(n,a){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...ee(a)})}function ax(n,a){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...ee(a)})}function rx(n,a){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...ee(a)})}function ix(n,a){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...ee(a)})}function ux(n,a){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ee(a)})}function lx(n,a){return new n({type:"string",format:"date",check:"string_format",...ee(a)})}function sx(n,a){return new n({type:"string",format:"time",check:"string_format",precision:null,...ee(a)})}function ox(n,a){return new n({type:"string",format:"duration",check:"string_format",...ee(a)})}function cx(n,a){return new n({type:"number",checks:[],...ee(a)})}function fx(n,a){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...ee(a)})}function dx(n,a){return new n({type:"boolean",...ee(a)})}function hx(n,a){return new n({type:"null",...ee(a)})}function px(n){return new n({type:"unknown"})}function mx(n,a){return new n({type:"never",...ee(a)})}function Ym(n,a){return new _v({check:"less_than",...ee(a),value:n,inclusive:!1})}function oc(n,a){return new _v({check:"less_than",...ee(a),value:n,inclusive:!0})}function Vm(n,a){return new Sv({check:"greater_than",...ee(a),value:n,inclusive:!1})}function cc(n,a){return new Sv({check:"greater_than",...ee(a),value:n,inclusive:!0})}function Km(n,a){return new w2({check:"multiple_of",...ee(a),value:n})}function Av(n,a){return new j2({check:"max_length",...ee(a),maximum:n})}function gl(n,a){return new M2({check:"min_length",...ee(a),minimum:n})}function jv(n,a){return new R2({check:"length_equals",...ee(a),length:n})}function yx(n,a){return new C2({check:"string_format",format:"regex",...ee(a),pattern:n})}function vx(n){return new D2({check:"string_format",format:"lowercase",...ee(n)})}function gx(n){return new N2({check:"string_format",format:"uppercase",...ee(n)})}function bx(n,a){return new U2({check:"string_format",format:"includes",...ee(a),includes:n})}function _x(n,a){return new Z2({check:"string_format",format:"starts_with",...ee(a),prefix:n})}function Sx(n,a){return new q2({check:"string_format",format:"ends_with",...ee(a),suffix:n})}function xr(n){return new Q2({check:"overwrite",tx:n})}function Ox(n){return xr(a=>a.normalize(n))}function xx(){return xr(n=>n.trim())}function Ex(){return xr(n=>n.toLowerCase())}function zx(){return xr(n=>n.toUpperCase())}function Tx(){return xr(n=>R1(n))}function wx(n,a,u){return new n({type:"array",element:a,...ee(u)})}function Ax(n,a,u){const l=ee(u);return l.abort??(l.abort=!0),new n({type:"custom",check:"custom",fn:a,...l})}function jx(n,a,u){return new n({type:"custom",check:"custom",fn:a,...ee(u)})}function Mx(n){const a=Rx(u=>(u.addIssue=l=>{if(typeof l=="string")u.issues.push(Ci(l,u.value,a._zod.def));else{const s=l;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=u.value),s.inst??(s.inst=a),s.continue??(s.continue=!a._zod.def.abort),u.issues.push(Ci(s))}},n(u.value,u)));return a}function Rx(n,a){const u=new zt({check:"custom",...ee(a)});return u._zod.check=n,u}function bl(n){let a=n?.target??"draft-2020-12";return a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),{processors:n.processors??{},metadataRegistry:n?.metadata??Oi,target:a,unrepresentable:n?.unrepresentable??"throw",override:n?.override??(()=>{}),io:n?.io??"output",counter:0,seen:new Map,cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0}}function Qe(n,a,u={path:[],schemaPath:[]}){var l;const s=n._zod.def,f=a.seen.get(n);if(f)return f.count++,u.schemaPath.includes(n)&&(f.cycle=u.path),f.schema;const d={schema:{},count:1,cycle:void 0,path:u.path};a.seen.set(n,d);const h=n._zod.toJSONSchema?.();if(h)d.schema=h;else{const g={...u,schemaPath:[...u.schemaPath,n],path:u.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(a,d.schema,g);else{const x=d.schema,M=a.processors[s.type];if(!M)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);M(n,a,x,g)}const _=n._zod.parent;_&&(d.ref||(d.ref=_),Qe(_,a,g),a.seen.get(_).isParent=!0)}const m=a.metadataRegistry.get(n);return m&&Object.assign(d.schema,m),a.io==="input"&&yt(n)&&(delete d.schema.examples,delete d.schema.default),a.io==="input"&&d.schema._prefault&&((l=d.schema).default??(l.default=d.schema._prefault)),delete d.schema._prefault,a.seen.get(n).schema}function _l(n,a){const u=n.seen.get(a);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=new Map;for(const d of n.seen.entries()){const h=n.metadataRegistry.get(d[0])?.id;if(h){const m=l.get(h);if(m&&m!==d[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);l.set(h,d[0])}}const s=d=>{const h=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const _=n.external.registry.get(d[0])?.id,x=n.external.uri??(H=>H);if(_)return{ref:x(_)};const M=d[1].defId??d[1].schema.id??`schema${n.counter++}`;return d[1].defId=M,{defId:M,ref:`${x("__shared")}#/${h}/${M}`}}if(d[1]===u)return{ref:"#"};const y=`#/${h}/`,g=d[1].schema.id??`__schema${n.counter++}`;return{defId:g,ref:y+g}},f=d=>{if(d[1].schema.$ref)return;const h=d[1],{ref:m,defId:y}=s(d);h.def={...h.schema},y&&(h.defId=y);const g=h.schema;for(const _ in g)delete g[_];g.$ref=m};if(n.cycles==="throw")for(const d of n.seen.entries()){const h=d[1];if(h.cycle)throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
47
+
48
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of n.seen.entries()){const h=d[1];if(a===d[0]){f(d);continue}if(n.external){const y=n.external.registry.get(d[0])?.id;if(a!==d[0]&&y){f(d);continue}}if(n.metadataRegistry.get(d[0])?.id){f(d);continue}if(h.cycle){f(d);continue}if(h.count>1&&n.reused==="ref"){f(d);continue}}}function Sl(n,a){const u=n.seen.get(a);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=d=>{const h=n.seen.get(d);if(h.ref===null)return;const m=h.def??h.schema,y={...m},g=h.ref;if(h.ref=null,g){l(g);const x=n.seen.get(g),M=x.schema;if(M.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(M)):Object.assign(m,M),Object.assign(m,y),d._zod.parent===g)for(const Z in m)Z==="$ref"||Z==="allOf"||Z in y||delete m[Z];if(M.$ref&&x.def)for(const Z in m)Z==="$ref"||Z==="allOf"||Z in x.def&&JSON.stringify(m[Z])===JSON.stringify(x.def[Z])&&delete m[Z]}const _=d._zod.parent;if(_&&_!==g){l(_);const x=n.seen.get(_);if(x?.schema.$ref&&(m.$ref=x.schema.$ref,x.def))for(const M in m)M==="$ref"||M==="allOf"||M in x.def&&JSON.stringify(m[M])===JSON.stringify(x.def[M])&&delete m[M]}n.override({zodSchema:d,jsonSchema:m,path:h.path??[]})};for(const d of[...n.seen.entries()].reverse())l(d[0]);const s={};if(n.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":n.target,n.external?.uri){const d=n.external.registry.get(a)?.id;if(!d)throw new Error("Schema is missing an `id` property");s.$id=n.external.uri(d)}Object.assign(s,u.def??u.schema);const f=n.external?.defs??{};for(const d of n.seen.entries()){const h=d[1];h.def&&h.defId&&(f[h.defId]=h.def)}n.external||Object.keys(f).length>0&&(n.target==="draft-2020-12"?s.$defs=f:s.definitions=f);try{const d=JSON.parse(JSON.stringify(s));return Object.defineProperty(d,"~standard",{value:{...a["~standard"],jsonSchema:{input:Ol(a,"input",n.processors),output:Ol(a,"output",n.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function yt(n,a){const u=a??{seen:new Set};if(u.seen.has(n))return!1;u.seen.add(n);const l=n._zod.def;if(l.type==="transform")return!0;if(l.type==="array")return yt(l.element,u);if(l.type==="set")return yt(l.valueType,u);if(l.type==="lazy")return yt(l.getter(),u);if(l.type==="promise"||l.type==="optional"||l.type==="nonoptional"||l.type==="nullable"||l.type==="readonly"||l.type==="default"||l.type==="prefault")return yt(l.innerType,u);if(l.type==="intersection")return yt(l.left,u)||yt(l.right,u);if(l.type==="record"||l.type==="map")return yt(l.keyType,u)||yt(l.valueType,u);if(l.type==="pipe")return yt(l.in,u)||yt(l.out,u);if(l.type==="object"){for(const s in l.shape)if(yt(l.shape[s],u))return!0;return!1}if(l.type==="union"){for(const s of l.options)if(yt(s,u))return!0;return!1}if(l.type==="tuple"){for(const s of l.items)if(yt(s,u))return!0;return!!(l.rest&&yt(l.rest,u))}return!1}const Cx=(n,a={})=>u=>{const l=bl({...u,processors:a});return Qe(n,l),_l(l,n),Sl(l,n)},Ol=(n,a,u={})=>l=>{const{libraryOptions:s,target:f}=l??{},d=bl({...s??{},target:f,io:a,processors:u});return Qe(n,d),_l(d,n),Sl(d,n)},Dx={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Mv=(n,a,u,l)=>{const s=u;s.type="string";const{minimum:f,maximum:d,format:h,patterns:m,contentEncoding:y}=n._zod.bag;if(typeof f=="number"&&(s.minLength=f),typeof d=="number"&&(s.maxLength=d),h&&(s.format=Dx[h]??h,s.format===""&&delete s.format,h==="time"&&delete s.format),y&&(s.contentEncoding=y),m&&m.size>0){const g=[...m];g.length===1?s.pattern=g[0].source:g.length>1&&(s.allOf=[...g.map(_=>({...a.target==="draft-07"||a.target==="draft-04"||a.target==="openapi-3.0"?{type:"string"}:{},pattern:_.source}))])}},Rv=(n,a,u,l)=>{const s=u,{minimum:f,maximum:d,format:h,multipleOf:m,exclusiveMaximum:y,exclusiveMinimum:g}=n._zod.bag;typeof h=="string"&&h.includes("int")?s.type="integer":s.type="number",typeof g=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(s.minimum=g,s.exclusiveMinimum=!0):s.exclusiveMinimum=g),typeof f=="number"&&(s.minimum=f,typeof g=="number"&&a.target!=="draft-04"&&(g>=f?delete s.minimum:delete s.exclusiveMinimum)),typeof y=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(s.maximum=y,s.exclusiveMaximum=!0):s.exclusiveMaximum=y),typeof d=="number"&&(s.maximum=d,typeof y=="number"&&a.target!=="draft-04"&&(y<=d?delete s.maximum:delete s.exclusiveMaximum)),typeof m=="number"&&(s.multipleOf=m)},Cv=(n,a,u,l)=>{u.type="boolean"},Nx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Ux=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Dv=(n,a,u,l)=>{a.target==="openapi-3.0"?(u.type="string",u.nullable=!0,u.enum=[null]):u.type="null"},Zx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},qx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Nv=(n,a,u,l)=>{u.not={}},Qx=(n,a,u,l)=>{},Uv=(n,a,u,l)=>{},kx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Zv=(n,a,u,l)=>{const s=n._zod.def,f=ov(s.entries);f.every(d=>typeof d=="number")&&(u.type="number"),f.every(d=>typeof d=="string")&&(u.type="string"),u.enum=f},qv=(n,a,u,l)=>{const s=n._zod.def,f=[];for(const d of s.values)if(d===void 0){if(a.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(a.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");f.push(Number(d))}else f.push(d);if(f.length!==0)if(f.length===1){const d=f[0];u.type=d===null?"null":typeof d,a.target==="draft-04"||a.target==="openapi-3.0"?u.enum=[d]:u.const=d}else f.every(d=>typeof d=="number")&&(u.type="number"),f.every(d=>typeof d=="string")&&(u.type="string"),f.every(d=>typeof d=="boolean")&&(u.type="boolean"),f.every(d=>d===null)&&(u.type="null"),u.enum=f},Bx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Hx=(n,a,u,l)=>{const s=u,f=n._zod.pattern;if(!f)throw new Error("Pattern not found in template literal");s.type="string",s.pattern=f.source},Lx=(n,a,u,l)=>{const s=u,f={type:"string",format:"binary",contentEncoding:"binary"},{minimum:d,maximum:h,mime:m}=n._zod.bag;d!==void 0&&(f.minLength=d),h!==void 0&&(f.maxLength=h),m?m.length===1?(f.contentMediaType=m[0],Object.assign(s,f)):(Object.assign(s,f),s.anyOf=m.map(y=>({contentMediaType:y}))):Object.assign(s,f)},Gx=(n,a,u,l)=>{u.type="boolean"},Qv=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},$x=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},kv=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Yx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Vx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Bv=(n,a,u,l)=>{const s=u,f=n._zod.def,{minimum:d,maximum:h}=n._zod.bag;typeof d=="number"&&(s.minItems=d),typeof h=="number"&&(s.maxItems=h),s.type="array",s.items=Qe(f.element,a,{...l,path:[...l.path,"items"]})},Hv=(n,a,u,l)=>{const s=u,f=n._zod.def;s.type="object",s.properties={};const d=f.shape;for(const y in d)s.properties[y]=Qe(d[y],a,{...l,path:[...l.path,"properties",y]});const h=new Set(Object.keys(d)),m=new Set([...h].filter(y=>{const g=f.shape[y]._zod;return a.io==="input"?g.optin===void 0:g.optout===void 0}));m.size>0&&(s.required=Array.from(m)),f.catchall?._zod.def.type==="never"?s.additionalProperties=!1:f.catchall?f.catchall&&(s.additionalProperties=Qe(f.catchall,a,{...l,path:[...l.path,"additionalProperties"]})):a.io==="output"&&(s.additionalProperties=!1)},Lv=(n,a,u,l)=>{const s=n._zod.def,f=s.inclusive===!1,d=s.options.map((h,m)=>Qe(h,a,{...l,path:[...l.path,f?"oneOf":"anyOf",m]}));f?u.oneOf=d:u.anyOf=d},Gv=(n,a,u,l)=>{const s=n._zod.def,f=Qe(s.left,a,{...l,path:[...l.path,"allOf",0]}),d=Qe(s.right,a,{...l,path:[...l.path,"allOf",1]}),h=y=>"allOf"in y&&Object.keys(y).length===1,m=[...h(f)?f.allOf:[f],...h(d)?d.allOf:[d]];u.allOf=m},Kx=(n,a,u,l)=>{const s=u,f=n._zod.def;s.type="array";const d=a.target==="draft-2020-12"?"prefixItems":"items",h=a.target==="draft-2020-12"||a.target==="openapi-3.0"?"items":"additionalItems",m=f.items.map((x,M)=>Qe(x,a,{...l,path:[...l.path,d,M]})),y=f.rest?Qe(f.rest,a,{...l,path:[...l.path,h,...a.target==="openapi-3.0"?[f.items.length]:[]]}):null;a.target==="draft-2020-12"?(s.prefixItems=m,y&&(s.items=y)):a.target==="openapi-3.0"?(s.items={anyOf:m},y&&s.items.anyOf.push(y),s.minItems=m.length,y||(s.maxItems=m.length)):(s.items=m,y&&(s.additionalItems=y));const{minimum:g,maximum:_}=n._zod.bag;typeof g=="number"&&(s.minItems=g),typeof _=="number"&&(s.maxItems=_)},$v=(n,a,u,l)=>{const s=u,f=n._zod.def;s.type="object";const d=f.keyType,m=d._zod.bag?.patterns;if(f.mode==="loose"&&m&&m.size>0){const g=Qe(f.valueType,a,{...l,path:[...l.path,"patternProperties","*"]});s.patternProperties={};for(const _ of m)s.patternProperties[_.source]=g}else(a.target==="draft-07"||a.target==="draft-2020-12")&&(s.propertyNames=Qe(f.keyType,a,{...l,path:[...l.path,"propertyNames"]})),s.additionalProperties=Qe(f.valueType,a,{...l,path:[...l.path,"additionalProperties"]});const y=d._zod.values;if(y){const g=[...y].filter(_=>typeof _=="string"||typeof _=="number");g.length>0&&(s.required=g)}},Yv=(n,a,u,l)=>{const s=n._zod.def,f=Qe(s.innerType,a,l),d=a.seen.get(n);a.target==="openapi-3.0"?(d.ref=s.innerType,u.nullable=!0):u.anyOf=[f,{type:"null"}]},Vv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType},Kv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType,u.default=JSON.parse(JSON.stringify(s.defaultValue))},Xv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType,a.io==="input"&&(u._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},Pv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType;let d;try{d=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}u.default=d},Jv=(n,a,u,l)=>{const s=n._zod.def,f=a.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;Qe(f,a,l);const d=a.seen.get(n);d.ref=f},Iv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType,u.readOnly=!0},Xx=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType},Pc=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType},Fv=(n,a,u,l)=>{const s=n._zod.innerType;Qe(s,a,l);const f=a.seen.get(n);f.ref=s},Xm={string:Mv,number:Rv,boolean:Cv,bigint:Nx,symbol:Ux,null:Dv,undefined:Zx,void:qx,never:Nv,any:Qx,unknown:Uv,date:kx,enum:Zv,literal:qv,nan:Bx,template_literal:Hx,file:Lx,success:Gx,custom:Qv,function:$x,transform:kv,map:Yx,set:Vx,array:Bv,object:Hv,union:Lv,intersection:Gv,tuple:Kx,record:$v,nullable:Yv,nonoptional:Vv,default:Kv,prefault:Xv,catch:Pv,pipe:Jv,readonly:Iv,promise:Xx,optional:Pc,lazy:Fv};function $z(n,a){if("_idmap"in n){const l=n,s=bl({...a,processors:Xm}),f={};for(const m of l._idmap.entries()){const[y,g]=m;Qe(g,s)}const d={},h={registry:l,uri:a?.uri,defs:f};s.external=h;for(const m of l._idmap.entries()){const[y,g]=m;_l(s,g),d[y]=Sl(s,g)}if(Object.keys(f).length>0){const m=s.target==="draft-2020-12"?"$defs":"definitions";d.__shared={[m]:f}}return{schemas:d}}const u=bl({...a,processors:Xm});return Qe(n,u),_l(u,n),Sl(u,n)}const Px=N("ZodISODateTime",(n,a)=>{F2.init(n,a),Ye.init(n,a)});function Jx(n){return ux(Px,n)}const Ix=N("ZodISODate",(n,a)=>{W2.init(n,a),Ye.init(n,a)});function Fx(n){return lx(Ix,n)}const Wx=N("ZodISOTime",(n,a)=>{eO.init(n,a),Ye.init(n,a)});function eE(n){return sx(Wx,n)}const tE=N("ZodISODuration",(n,a)=>{tO.init(n,a),Ye.init(n,a)});function nE(n){return ox(tE,n)}const aE=(n,a)=>{hv.init(n,a),n.name="ZodError",Object.defineProperties(n,{format:{value:u=>$1(n,u)},flatten:{value:u=>G1(n,u)},addIssue:{value:u=>{n.issues.push(u),n.message=JSON.stringify(n.issues,Ac,2)}},addIssues:{value:u=>{n.issues.push(...u),n.message=JSON.stringify(n.issues,Ac,2)}},isEmpty:{get(){return n.issues.length===0}}})},Xt=N("ZodError",aE,{Parent:Error}),rE=Vc(Xt),iE=Kc(Xt),uE=Ml(Xt),lE=Rl(Xt),sE=K1(Xt),oE=X1(Xt),cE=P1(Xt),fE=J1(Xt),dE=I1(Xt),hE=F1(Xt),pE=W1(Xt),mE=e2(Xt),Le=N("ZodType",(n,a)=>(He.init(n,a),Object.assign(n["~standard"],{jsonSchema:{input:Ol(n,"input"),output:Ol(n,"output")}}),n.toJSONSchema=Cx(n,{}),n.def=a,n.type=a.type,Object.defineProperty(n,"_def",{value:a}),n.check=(...u)=>n.clone(ra(a,{checks:[...a.checks??[],...u.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]}),{parent:!0}),n.with=n.check,n.clone=(u,l)=>ia(n,u,l),n.brand=()=>n,n.register=((u,l)=>(u.add(n,l),n)),n.parse=(u,l)=>rE(n,u,l,{callee:n.parse}),n.safeParse=(u,l)=>uE(n,u,l),n.parseAsync=async(u,l)=>iE(n,u,l,{callee:n.parseAsync}),n.safeParseAsync=async(u,l)=>lE(n,u,l),n.spa=n.safeParseAsync,n.encode=(u,l)=>sE(n,u,l),n.decode=(u,l)=>oE(n,u,l),n.encodeAsync=async(u,l)=>cE(n,u,l),n.decodeAsync=async(u,l)=>fE(n,u,l),n.safeEncode=(u,l)=>dE(n,u,l),n.safeDecode=(u,l)=>hE(n,u,l),n.safeEncodeAsync=async(u,l)=>pE(n,u,l),n.safeDecodeAsync=async(u,l)=>mE(n,u,l),n.refine=(u,l)=>n.check(dz(u,l)),n.superRefine=u=>n.check(hz(u)),n.overwrite=u=>n.check(xr(u)),n.optional=()=>Wm(n),n.exactOptional=()=>WE(n),n.nullable=()=>ey(n),n.nullish=()=>Wm(ey(n)),n.nonoptional=u=>iz(n,u),n.array=()=>ng(n),n.or=u=>GE([n,u]),n.and=u=>VE(n,u),n.transform=u=>ty(n,IE(u)),n.default=u=>nz(n,u),n.prefault=u=>rz(n,u),n.catch=u=>lz(n,u),n.pipe=u=>ty(n,u),n.readonly=()=>cz(n),n.describe=u=>{const l=n.clone();return Oi.add(l,{description:u}),l},Object.defineProperty(n,"description",{get(){return Oi.get(n)?.description},configurable:!0}),n.meta=(...u)=>{if(u.length===0)return Oi.get(n);const l=n.clone();return Oi.add(l,u[0]),l},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=u=>u(n),n)),Wv=N("_ZodString",(n,a)=>{Xc.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(l,s,f)=>Mv(n,l,s);const u=n._zod.bag;n.format=u.format??null,n.minLength=u.minimum??null,n.maxLength=u.maximum??null,n.regex=(...l)=>n.check(yx(...l)),n.includes=(...l)=>n.check(bx(...l)),n.startsWith=(...l)=>n.check(_x(...l)),n.endsWith=(...l)=>n.check(Sx(...l)),n.min=(...l)=>n.check(gl(...l)),n.max=(...l)=>n.check(Av(...l)),n.length=(...l)=>n.check(jv(...l)),n.nonempty=(...l)=>n.check(gl(1,...l)),n.lowercase=l=>n.check(vx(l)),n.uppercase=l=>n.check(gx(l)),n.trim=()=>n.check(xx()),n.normalize=(...l)=>n.check(Ox(...l)),n.toLowerCase=()=>n.check(Ex()),n.toUpperCase=()=>n.check(zx()),n.slugify=()=>n.check(Tx())}),yE=N("ZodString",(n,a)=>{Xc.init(n,a),Wv.init(n,a),n.email=u=>n.check(kO(vE,u)),n.url=u=>n.check($O(gE,u)),n.jwt=u=>n.check(ix(DE,u)),n.emoji=u=>n.check(YO(bE,u)),n.guid=u=>n.check($m(Jm,u)),n.uuid=u=>n.check(BO(ll,u)),n.uuidv4=u=>n.check(HO(ll,u)),n.uuidv6=u=>n.check(LO(ll,u)),n.uuidv7=u=>n.check(GO(ll,u)),n.nanoid=u=>n.check(VO(_E,u)),n.guid=u=>n.check($m(Jm,u)),n.cuid=u=>n.check(KO(SE,u)),n.cuid2=u=>n.check(XO(OE,u)),n.ulid=u=>n.check(PO(xE,u)),n.base64=u=>n.check(nx(ME,u)),n.base64url=u=>n.check(ax(RE,u)),n.xid=u=>n.check(JO(EE,u)),n.ksuid=u=>n.check(IO(zE,u)),n.ipv4=u=>n.check(FO(TE,u)),n.ipv6=u=>n.check(WO(wE,u)),n.cidrv4=u=>n.check(ex(AE,u)),n.cidrv6=u=>n.check(tx(jE,u)),n.e164=u=>n.check(rx(CE,u)),n.datetime=u=>n.check(Jx(u)),n.date=u=>n.check(Fx(u)),n.time=u=>n.check(eE(u)),n.duration=u=>n.check(nE(u))});function Pm(n){return QO(yE,n)}const Ye=N("ZodStringFormat",(n,a)=>{$e.init(n,a),Wv.init(n,a)}),vE=N("ZodEmail",(n,a)=>{G2.init(n,a),Ye.init(n,a)}),Jm=N("ZodGUID",(n,a)=>{H2.init(n,a),Ye.init(n,a)}),ll=N("ZodUUID",(n,a)=>{L2.init(n,a),Ye.init(n,a)}),gE=N("ZodURL",(n,a)=>{$2.init(n,a),Ye.init(n,a)}),bE=N("ZodEmoji",(n,a)=>{Y2.init(n,a),Ye.init(n,a)}),_E=N("ZodNanoID",(n,a)=>{V2.init(n,a),Ye.init(n,a)}),SE=N("ZodCUID",(n,a)=>{K2.init(n,a),Ye.init(n,a)}),OE=N("ZodCUID2",(n,a)=>{X2.init(n,a),Ye.init(n,a)}),xE=N("ZodULID",(n,a)=>{P2.init(n,a),Ye.init(n,a)}),EE=N("ZodXID",(n,a)=>{J2.init(n,a),Ye.init(n,a)}),zE=N("ZodKSUID",(n,a)=>{I2.init(n,a),Ye.init(n,a)}),TE=N("ZodIPv4",(n,a)=>{nO.init(n,a),Ye.init(n,a)}),wE=N("ZodIPv6",(n,a)=>{aO.init(n,a),Ye.init(n,a)}),AE=N("ZodCIDRv4",(n,a)=>{rO.init(n,a),Ye.init(n,a)}),jE=N("ZodCIDRv6",(n,a)=>{iO.init(n,a),Ye.init(n,a)}),ME=N("ZodBase64",(n,a)=>{uO.init(n,a),Ye.init(n,a)}),RE=N("ZodBase64URL",(n,a)=>{sO.init(n,a),Ye.init(n,a)}),CE=N("ZodE164",(n,a)=>{oO.init(n,a),Ye.init(n,a)}),DE=N("ZodJWT",(n,a)=>{fO.init(n,a),Ye.init(n,a)}),eg=N("ZodNumber",(n,a)=>{xv.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(l,s,f)=>Rv(n,l,s),n.gt=(l,s)=>n.check(Vm(l,s)),n.gte=(l,s)=>n.check(cc(l,s)),n.min=(l,s)=>n.check(cc(l,s)),n.lt=(l,s)=>n.check(Ym(l,s)),n.lte=(l,s)=>n.check(oc(l,s)),n.max=(l,s)=>n.check(oc(l,s)),n.int=l=>n.check(Im(l)),n.safe=l=>n.check(Im(l)),n.positive=l=>n.check(Vm(0,l)),n.nonnegative=l=>n.check(cc(0,l)),n.negative=l=>n.check(Ym(0,l)),n.nonpositive=l=>n.check(oc(0,l)),n.multipleOf=(l,s)=>n.check(Km(l,s)),n.step=(l,s)=>n.check(Km(l,s)),n.finite=()=>n;const u=n._zod.bag;n.minValue=Math.max(u.minimum??Number.NEGATIVE_INFINITY,u.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(u.maximum??Number.POSITIVE_INFINITY,u.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(u.format??"").includes("int")||Number.isSafeInteger(u.multipleOf??.5),n.isFinite=!0,n.format=u.format??null});function NE(n){return cx(eg,n)}const UE=N("ZodNumberFormat",(n,a)=>{dO.init(n,a),eg.init(n,a)});function Im(n){return fx(UE,n)}const ZE=N("ZodBoolean",(n,a)=>{hO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Cv(n,u,l)});function Yz(n){return dx(ZE,n)}const qE=N("ZodNull",(n,a)=>{pO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Dv(n,u,l)});function Vz(n){return hx(qE,n)}const QE=N("ZodUnknown",(n,a)=>{mO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Uv()});function Mc(){return px(QE)}const kE=N("ZodNever",(n,a)=>{yO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Nv(n,u,l)});function tg(n){return mx(kE,n)}const BE=N("ZodArray",(n,a)=>{vO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Bv(n,u,l,s),n.element=a.element,n.min=(u,l)=>n.check(gl(u,l)),n.nonempty=u=>n.check(gl(1,u)),n.max=(u,l)=>n.check(Av(u,l)),n.length=(u,l)=>n.check(jv(u,l)),n.unwrap=()=>n.element});function ng(n,a){return wx(BE,n,a)}const Jc=N("ZodObject",(n,a)=>{bO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Hv(n,u,l,s),Ee(n,"shape",()=>a.shape),n.keyof=()=>XE(Object.keys(n._zod.def.shape)),n.catchall=u=>n.clone({...n._zod.def,catchall:u}),n.passthrough=()=>n.clone({...n._zod.def,catchall:Mc()}),n.loose=()=>n.clone({...n._zod.def,catchall:Mc()}),n.strict=()=>n.clone({...n._zod.def,catchall:tg()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=u=>Q1(n,u),n.safeExtend=u=>k1(n,u),n.merge=u=>B1(n,u),n.pick=u=>Z1(n,u),n.omit=u=>q1(n,u),n.partial=(...u)=>H1(rg,n,u[0]),n.required=(...u)=>L1(ig,n,u[0])});function HE(n,a){const u={type:"object",shape:n??{},...ee(a)};return new Jc(u)}function Kz(n,a){return new Jc({type:"object",shape:n,catchall:tg(),...ee(a)})}function LE(n,a){return new Jc({type:"object",shape:n,catchall:Mc(),...ee(a)})}const ag=N("ZodUnion",(n,a)=>{Tv.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Lv(n,u,l,s),n.options=a.options});function GE(n,a){return new ag({type:"union",options:n,...ee(a)})}const $E=N("ZodDiscriminatedUnion",(n,a)=>{ag.init(n,a),_O.init(n,a)});function Xz(n,a,u){return new $E({type:"union",options:a,discriminator:n,...ee(u)})}const YE=N("ZodIntersection",(n,a)=>{SO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Gv(n,u,l,s)});function VE(n,a){return new YE({type:"intersection",left:n,right:a})}const KE=N("ZodRecord",(n,a)=>{OO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>$v(n,u,l,s),n.keyType=a.keyType,n.valueType=a.valueType});function Pz(n,a,u){return new KE({type:"record",keyType:n,valueType:a,...ee(u)})}const Rc=N("ZodEnum",(n,a)=>{xO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(l,s,f)=>Zv(n,l,s),n.enum=a.entries,n.options=Object.values(a.entries);const u=new Set(Object.keys(a.entries));n.extract=(l,s)=>{const f={};for(const d of l)if(u.has(d))f[d]=a.entries[d];else throw new Error(`Key ${d} not found in enum`);return new Rc({...a,checks:[],...ee(s),entries:f})},n.exclude=(l,s)=>{const f={...a.entries};for(const d of l)if(u.has(d))delete f[d];else throw new Error(`Key ${d} not found in enum`);return new Rc({...a,checks:[],...ee(s),entries:f})}});function XE(n,a){const u=Array.isArray(n)?Object.fromEntries(n.map(l=>[l,l])):n;return new Rc({type:"enum",entries:u,...ee(a)})}const PE=N("ZodLiteral",(n,a)=>{EO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>qv(n,u,l),n.values=new Set(a.values),Object.defineProperty(n,"value",{get(){if(a.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return a.values[0]}})});function Fm(n,a){return new PE({type:"literal",values:Array.isArray(n)?n:[n],...ee(a)})}const JE=N("ZodTransform",(n,a)=>{zO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>kv(n,u),n._zod.parse=(u,l)=>{if(l.direction==="backward")throw new lv(n.constructor.name);u.addIssue=f=>{if(typeof f=="string")u.issues.push(Ci(f,u.value,a));else{const d=f;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=u.value),d.inst??(d.inst=n),u.issues.push(Ci(d))}};const s=a.transform(u.value,u);return s instanceof Promise?s.then(f=>(u.value=f,u)):(u.value=s,u)}});function IE(n){return new JE({type:"transform",transform:n})}const rg=N("ZodOptional",(n,a)=>{wv.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Pc(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function Wm(n){return new rg({type:"optional",innerType:n})}const FE=N("ZodExactOptional",(n,a)=>{TO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Pc(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function WE(n){return new FE({type:"optional",innerType:n})}const ez=N("ZodNullable",(n,a)=>{wO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Yv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function ey(n){return new ez({type:"nullable",innerType:n})}const tz=N("ZodDefault",(n,a)=>{AO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Kv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function nz(n,a){return new tz({type:"default",innerType:n,get defaultValue(){return typeof a=="function"?a():fv(a)}})}const az=N("ZodPrefault",(n,a)=>{jO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Xv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function rz(n,a){return new az({type:"prefault",innerType:n,get defaultValue(){return typeof a=="function"?a():fv(a)}})}const ig=N("ZodNonOptional",(n,a)=>{MO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Vv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function iz(n,a){return new ig({type:"nonoptional",innerType:n,...ee(a)})}const uz=N("ZodCatch",(n,a)=>{RO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Pv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function lz(n,a){return new uz({type:"catch",innerType:n,catchValue:typeof a=="function"?a:()=>a})}const sz=N("ZodPipe",(n,a)=>{CO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Jv(n,u,l,s),n.in=a.in,n.out=a.out});function ty(n,a){return new sz({type:"pipe",in:n,out:a})}const oz=N("ZodReadonly",(n,a)=>{DO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Iv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function cz(n){return new oz({type:"readonly",innerType:n})}const fz=N("ZodLazy",(n,a)=>{NO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Fv(n,u,l,s),n.unwrap=()=>n._zod.def.getter()});function Jz(n){return new fz({type:"lazy",getter:n})}const Ic=N("ZodCustom",(n,a)=>{UO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Qv(n,u)});function Iz(n,a){return Ax(Ic,n??(()=>!0),a)}function dz(n,a={}){return jx(Ic,n,a)}function hz(n){return Mx(n)}function Fz(n,a={}){const u=new Ic({type:"custom",check:"custom",fn:l=>l instanceof n,abort:!0,...ee(a)});return u._zod.bag.Class=n,u._zod.check=l=>{l.value instanceof n||l.issues.push({code:"invalid_type",expected:n.name,input:l.value,inst:u,path:[...u._zod.def.path??[]]})},u}const pz={CREATE_WIDGET:"create_widget",UPDATE_WIDGET:"update_widget",DELETE_WIDGET:"delete_widget",CREATE_MONITOR:"create_monitor",UPDATE_MONITOR:"update_monitor",DELETE_MONITOR:"delete_monitor",TOGGLE_MONITOR:"toggle_monitor",BEGIN_ANALYSIS:"begin_analysis"},ug=Object.fromEntries(Object.entries(pz).map(([n,a])=>[n,`tool-${a}`])),lg="<analysis>";function mz(n){return n.role!=="assistant"||!n.parts?!1:n.parts.some(a=>{if(a.type===ug.BEGIN_ANALYSIS)return!0;if(a.type!=="text")return!1;const u=a.text;return typeof u=="string"&&u.includes(lg)})}function Wz(n,a){const u=n[a];return!u||u.role!=="assistant"?null:mz(u)?a>=1?a:null:a+1}function yz(n){const a=n.findIndex(u=>u.type===ug.BEGIN_ANALYSIS);if(a!==-1)return{kind:"tool",partIdx:a};for(let u=0;u<n.length;u++){const l=n[u];if(l.type!=="text")continue;const s=l.text;if(typeof s!="string")continue;const f=s.indexOf(lg);if(f!==-1)return{kind:"text",partIdx:u,charIdx:f}}return null}function eT(n){const a=yz(n);if(!a)return null;if(a.kind==="tool")return n.slice(a.partIdx);const u=n[a.partIdx];return[{...u,text:u.text.slice(a.charIdx)},...n.slice(a.partIdx+1)]}const tT=HE({v:Fm(1),kind:Fm("analysis"),sourceTitle:Pm().max(400),sourceCreatedAt:NE().int().nonnegative(),parts:ng(LE({type:Pm()})).max(200)}),sl={dashboards:!1,monitors:!1},nT={paper:"#fafaf8",inkLight:"#444444",inkMuted:"#666666",inkFaint:"#9c9890",border:"#d4d2cd",success:"#2a7a4a"},Re={shell:"bg-[#fafaf8] text-[#2c2c2c] font-sans",sidebar:"bg-[#f7f6f3] border-r border-[#d4d2cd] font-sans",sidebarLogo:"text-[#2b5ea7]",sidebarSubtitle:"text-[#666666]",navActive:"text-[#2b5ea7] bg-[#eaf0f8] border-l-2 border-[#2b5ea7]",navInactive:"text-[#666666] hover:bg-[#eeece7] hover:text-[#2b5ea7] border-l-2 border-transparent",sidebarFooter:"border-t border-[#d4d2cd] text-[#666666]",page:"p-6 space-y-6 bg-[#fafaf8]",sectionTitle:"text-sm font-medium text-[#666666] mb-3 font-sans",card:"rounded bg-white border border-[#d4d2cd] p-6",cardTitle:"text-sm text-[#666666] font-sans",cardValue:"text-2xl font-bold text-[#2c2c2c] mt-1",tableContainer:"bg-white rounded border border-[#d4d2cd] overflow-auto max-h-[440px]",tableHeaderRow:"bg-[#f5f4f0]",tableHeaderCell:"px-4 py-3 text-left text-sm font-medium text-[#666666] uppercase tracking-wider font-sans",tableRow:"border-b border-[#e8e6e1] hover:bg-[#f5f4f0]/50",tableCell:"px-4 py-3 text-sm text-[#444444] max-w-[300px]",tableCellText:"line-clamp-2 cursor-default",badge:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium font-sans",badgeVariants:{info:"bg-[#2b5ea7]/10 text-[#2b5ea7]"},spinner:"border-[#e8e6e1] border-t-[#2b5ea7]",statusLabel:"text-sm text-[#666666]",statusDot:{connected:"bg-[#2a7a4a]",disconnected:"bg-[#b33a2a]",checking:"bg-[#a07020] animate-pulse"},input:"w-full bg-white border border-[#d4d2cd] rounded px-3 py-2 text-sm text-[#2c2c2c] placeholder-[#9c9890] focus:outline-none focus:border-[#2b5ea7] font-sans",primaryBtn:"px-4 py-1.5 text-sm bg-[#2b5ea7] hover:bg-[#234d8a] text-white rounded transition-colors disabled:opacity-50 disabled:cursor-not-allowed font-sans",secondaryBtn:"px-4 py-1.5 text-sm bg-[#f5f4f0] hover:bg-[#eeece7] text-[#666666] rounded transition-colors disabled:opacity-50 font-sans",dangerBtn:"px-4 py-1.5 text-sm bg-[#b33a2a]/10 hover:bg-[#b33a2a]/20 text-[#b33a2a] rounded transition-colors disabled:opacity-50 ml-auto font-sans",outlineBtn:"px-2.5 py-1 text-xs font-medium border border-[#2b5ea7] text-[#2b5ea7] rounded hover:bg-[#2b5ea7] hover:text-white transition-colors disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:hover:text-[#2b5ea7] font-sans",successText:"text-sm text-[#2a7a4a] font-sans",errorText:"text-sm text-[#b33a2a] font-sans",warnText:"text-xs text-[#a07020] font-sans",maskedKey:"text-xs text-[#666666] font-mono",chatContainer:"flex flex-col h-full bg-[#fafaf8] font-serif",chatUserLabel:"text-[10px] uppercase tracking-[0.15em] text-[#666666] mb-2 font-sans font-medium",chatAssistantLabel:"text-[10px] uppercase tracking-[0.15em] text-[#2b5ea7] mb-2 font-sans font-medium",chatUserMessage:"text-[#2c2c2c] text-base leading-[1.8] [overflow-wrap:break-word]",chatAssistantMessage:"text-[#444444] text-base leading-[1.8] [overflow-wrap:break-word]",chatSeparator:"my-6 border-b border-[#e8e6e1]",chatInputArea:"px-10 py-5 bg-white border-t border-[#d4d2cd]",chatInput:"flex-1 bg-white border border-[#d4d2cd] rounded px-4 py-2.5 text-base text-[#2c2c2c] placeholder-[#9c9890] focus:outline-none focus:border-[#2b5ea7] disabled:opacity-50 font-serif resize-none overflow-y-auto max-h-40",chatButton:"px-5 py-2.5 text-sm bg-[#2b5ea7] text-white font-sans font-medium rounded hover:bg-[#234d8a] disabled:opacity-50 disabled:cursor-not-allowed",chatThinking:"text-[#2b5ea7] text-base italic",chatEmptyState:"text-[#666666] text-base italic font-serif",toolLabel:"text-[9px] uppercase tracking-[0.15em] text-[#2b5ea7] font-sans font-semibold mb-2",toolLoading:"text-sm italic text-[#2b5ea7] font-sans",toolQueryToggle:"text-[11px] text-[#666666] font-mono cursor-pointer select-none font-sans",toolQueryCode:"mt-1 px-3 py-2 text-[12px] font-mono text-[#444444] bg-[#f5f4f0] rounded border border-[#d4d2cd] whitespace-pre-wrap",chatMessageCard:"bg-[#fafaf8] p-4 rounded",chatMessageActions:"absolute right-0 top-0 flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",chatActionButton:"p-1 rounded text-[#9c9890] hover:text-[#2b5ea7] hover:bg-[#eaf0f8] transition-colors",chatEditTextarea:"w-full bg-white border border-[#2b5ea7] rounded px-3 py-2 text-base text-[#2c2c2c] focus:outline-none font-serif leading-[1.8] resize-none",chatEditActions:"flex items-center gap-2 mt-2",chatEditSave:"px-3 py-1 text-xs bg-[#2b5ea7] hover:bg-[#234d8a] text-white rounded transition-colors font-sans",chatEditCancel:"px-3 py-1 text-xs bg-[#f5f4f0] hover:bg-[#eeece7] text-[#666666] rounded transition-colors font-sans",chatStopButton:"px-5 py-2.5 text-sm bg-[#f5f4f0] hover:bg-[#eeece7] text-[#666666] font-sans font-medium rounded transition-colors",chatContinueButton:"px-4 py-2 text-sm bg-[#f5f4f0] hover:bg-[#eeece7] text-[#2b5ea7] font-sans font-medium rounded transition-colors border border-[#d4d2cd]",resultListItem:"px-4 py-2 text-sm text-[#444444] border-b border-[#e8e6e1] last:border-b-0",resultErrorMessage:"text-sm text-[#b33a2a] font-sans bg-[#b33a2a]/5 border border-[#b33a2a]/20 rounded px-4 py-3 my-2",analysisContainer:"bg-[#eaf0f8] border border-[#2b5ea7]/20 rounded px-4 py-3 my-3",compactionContainer:"bg-[#f5f1e6] border border-[#8a6d3b]/25 rounded px-4 py-3 my-3",compactionLabel:"text-[9px] uppercase tracking-[0.15em] text-[#8a6d3b] font-sans font-semibold mb-1",compactionButton:"px-4 py-2 text-sm bg-[#f5f1e6] hover:bg-[#efe8d5] text-[#8a6d3b] font-sans font-medium rounded transition-colors border border-[#8a6d3b]/25",compactionPill:"flex items-center gap-2 px-4 py-2 text-sm font-sans text-[#8a6d3b] bg-[#f5f1e6] border border-[#8a6d3b]/25 rounded",investigationContainer:"border-l-2 border-[#2a7a4a] pl-4 my-3",investigationLabel:"text-[9px] uppercase tracking-[0.15em] text-[#2a7a4a] font-sans font-semibold mb-2",investigationAccents:{newrelic:{container:"border-l-2 border-[#2a7a4a] pl-4 my-3",label:"text-[9px] uppercase tracking-[0.15em] text-[#2a7a4a] font-sans font-semibold mb-2"},posthog:{container:"border-l-2 border-[#f7a501] pl-4 my-3",label:"text-[9px] uppercase tracking-[0.15em] text-[#f7a501] font-sans font-semibold mb-2"},gcp:{container:"border-l-2 border-[#7c3aed] pl-4 my-3",label:"text-[9px] uppercase tracking-[0.15em] text-[#7c3aed] font-sans font-semibold mb-2"},jira:{container:"border-l-2 border-[#0052cc] pl-4 my-3",label:"text-[9px] uppercase tracking-[0.15em] text-[#0052cc] font-sans font-semibold mb-2"}},investigationTask:"text-xs text-[#9c9890] font-sans mb-2 italic",investigationThinking:"text-[#9c9890] py-2",analysisBlock:"text-sm text-[#444444] bg-[#f2f8f5] border border-[#c8e0d2] rounded px-4 py-3 my-2 leading-relaxed font-sans",summaryBlock:"text-sm text-[#2c2c2c] bg-[#eaf0f8] border border-[#2b5ea7]/20 rounded px-4 py-3 my-2 leading-relaxed font-sans",summaryLabel:"text-[9px] uppercase tracking-[0.15em] text-[#2b5ea7] font-sans font-semibold mb-1",chartContainer:"bg-white rounded border border-[#d4d2cd] p-4 my-2",settingsCard:"bg-white border border-[#d4d2cd] rounded p-4",dialogBackdrop:"fixed inset-0 z-50 bg-black/20",dialogCard:"fixed z-50 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white border border-[#d4d2cd] rounded-lg shadow-lg p-6 w-[340px] font-sans",modalCard:"fixed z-50 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white border border-[#d4d2cd] rounded-lg shadow-lg p-6 w-[480px] max-h-[85vh] overflow-y-auto font-sans",dialogTitle:"text-sm font-semibold text-[#2c2c2c] mb-2",dialogMessage:"text-sm text-[#666666] mb-5",sessionItem:"w-full flex items-center gap-2 pl-9 pr-4 py-1.5 text-xs text-[#666666] hover:bg-[#eeece7] hover:text-[#2b5ea7] transition-colors cursor-pointer group",sessionItemActive:"w-full flex items-center gap-2 pl-9 pr-4 py-1.5 text-xs text-[#2b5ea7] bg-[#eaf0f8] cursor-pointer group font-medium",sessionDeleteBtn:"ml-auto text-[#666666] hover:text-[#b33a2a] transition-colors text-[10px] shrink-0 opacity-0 group-hover:opacity-100",sessionNewBtn:"w-full flex items-center gap-2 pl-9 pr-3 py-1.5 text-xs text-[#666666] hover:bg-[#eeece7] hover:text-[#2b5ea7] transition-colors",panelChatUserMessage:"text-sm leading-relaxed text-[#2c2c2c] [overflow-wrap:break-word]",panelChatAssistantMessage:"text-sm leading-relaxed text-[#444444] [overflow-wrap:break-word]",panelChatEmptyState:"text-[#666666] text-sm italic font-sans",panelChatThinking:"text-[#666666] text-sm italic",panelChatSeparator:"my-3 border-b border-[#d4d2cd]",panelChatInputArea:"px-4 py-3 bg-white border-t border-[#d4d2cd]",panelChatTextarea:"flex-1 bg-white border border-[#d4d2cd] rounded px-3 py-2 text-sm text-[#2c2c2c] placeholder-[#9c9890] focus:outline-none focus:border-[#2b5ea7] disabled:opacity-50 font-sans resize-none overflow-y-auto max-h-24",chartColors:["#6b9fd4","#6bb88a","#d4806e","#d4b06b","#a488c4","#6bb8aa"],popoverWide:"absolute z-30 bg-[#faf8f4] border border-[#e8e3da] rounded-md shadow-lg py-2 px-3 w-72",popoverLabel:"text-[10px] uppercase tracking-wider text-[#9c9890] font-sans mb-2",popoverRow:"flex items-start gap-2 py-1 text-xs text-[#6b6560] font-sans",popoverItemRow:"flex items-center justify-between text-[11px] text-[#6b6560] font-sans py-0.5",popoverDivider:"border-t border-[#e8e3da] my-1",popoverFootnote:"text-[10px] text-[#9c9890] font-sans mt-1 pt-1 border-t border-[#e8e3da]",titleBar:"sticky top-0 z-20 bg-[#faf8f4] px-10 pt-4 pb-4 mb-2 border-b border-[#e8e3da]",titleText:"text-base font-serif font-medium text-[#2b5ea7] tracking-tight",metaLink:"text-xs text-[#666666] hover:text-[#2b5ea7] font-sans transition-colors",streamingDot:"inline-block w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse",tokenSummary:"text-[10px] text-[#9c9890] font-sans tracking-wide hover:text-[#6b6560] transition-colors cursor-default"};function vz({sidebar:n,children:a}){return D.jsxs("div",{className:`flex h-screen ${Re.shell}`,children:[D.jsx("aside",{className:"w-52 flex-shrink-0 h-full",children:n}),D.jsx("main",{className:"flex-1 overflow-auto",children:a})]})}const aT=n=>`${n.provider}:${n.modelId}`,gz={anthropic:"Anthropic",google:"Google AI","google-vertex":"Vertex AI"};function bz(n){return gz[n]??n}const ny=["anthropic","google","google-vertex"];function rT(n){const a=new Map;for(const u of n){const l=a.get(u.provider);l?l.push(u):a.set(u.provider,[u])}return[...a.keys()].sort((u,l)=>{const s=ny.indexOf(u),f=ny.indexOf(l);return(s===-1?99:s)-(f===-1?99:f)}).map(u=>({provider:u,label:bz(u),models:a.get(u)}))}const Cc=[{provider:"google",modelId:"gemini-3.1-pro-preview",inputPrice:2,outputPrice:12,cacheReadMultiplier:.25,cacheWriteMultiplier:1},{provider:"google",modelId:"gemini-3.5-flash",inputPrice:1.5,outputPrice:9,cacheReadMultiplier:.25,cacheWriteMultiplier:1},{provider:"google",modelId:"gemini-3-flash-preview",inputPrice:.5,outputPrice:3,cacheReadMultiplier:.25,cacheWriteMultiplier:1},{provider:"google",modelId:"gemini-3.1-flash-lite-preview",inputPrice:.25,outputPrice:1.5,cacheReadMultiplier:.25,cacheWriteMultiplier:1},{provider:"anthropic",modelId:"claude-haiku-4-5-20251001",inputPrice:.8,outputPrice:4,cacheReadMultiplier:.1,cacheWriteMultiplier:1.25}],_z=Object.fromEntries(Cc.map(n=>[n.modelId,{input:n.inputPrice,output:n.outputPrice,cacheRead:n.cacheReadMultiplier,cacheWrite:n.cacheWriteMultiplier}]));function iT(n,a,u,l=0,s=0){if(!n)return 0;const f=_z[n];return f?((a-l)*f.input+l*f.input*f.cacheRead+s*f.input*f.cacheWrite+u*f.output)/1e6:0}function uT(n){return n<.01?`$${n.toFixed(4)}`:`$${n.toFixed(2)}`}const un={sessionStaleTimeMs:3e4,activeStreamPollingMs:5e3,monitorPollingMs:6e4,updateCheckStaleTimeMs:300*1e3,updateRestartProbeDelayMs:1500,updateRestartPollMs:1e3,updateRestartMaxWaitMs:6e4,sidebarWidth:208,panelMinWidth:260,panelMaxWidthRatio:.8,gridRows:12,gridCols:12,gridMinRowHeight:20,gridMargin:[8,8],chatThrottleMs:50,maxSseErrors:3,maxBuckets:366};function lT(){const n=G.useRef(null),a=G.useRef(null),u=G.useRef(!0),[l,s]=G.useState(!0),f=G.useCallback(m=>{const y=n.current;y&&(u.current=!0,y.scrollTo({top:y.scrollHeight,behavior:m?.animation==="smooth"?"smooth":"instant"}))},[]),d=G.useCallback(m=>{const y=n.current;y&&(u.current=!1,y.scrollTo({top:0,behavior:m?.animation==="smooth"?"smooth":"instant"}))},[]),h=G.useCallback(m=>{m.deltaY<0&&(u.current=!1)},[]);return G.useEffect(()=>{const m=n.current;if(!m)return;const y=()=>{const g=m.scrollHeight-m.scrollTop-m.clientHeight<50;s(g),g&&(u.current=!0)};return m.addEventListener("scroll",y,{passive:!0}),()=>m.removeEventListener("scroll",y)},[]),G.useEffect(()=>{const m=a.current;if(!m)return;const y=new ResizeObserver(()=>{u.current&&f()});return y.observe(m),()=>y.disconnect()},[f]),{scrollRef:n,contentRef:a,isAtBottom:l,handleWheel:h,scrollToBottom:f,scrollToTop:d}}function sT(){const n=G.useRef(null),[a,u]=G.useState({width:0,height:0});return G.useEffect(()=>{const l=n.current;if(!l)return;const s=new ResizeObserver(f=>{const d=f[0]?.contentRect;d&&d.width>0&&u({width:d.width,height:d.height})});return s.observe(l),()=>s.disconnect()},[]),{ref:n,size:a}}function ay(n,a,u){const l=G.useRef(n);l.current=n,G.useEffect(()=>{if(!u)return;l.current();const s=setInterval(()=>{document.visibilityState==="visible"&&l.current()},a),f=()=>{document.visibilityState==="visible"&&l.current()};return document.addEventListener("visibilitychange",f),()=>{clearInterval(s),document.removeEventListener("visibilitychange",f)}},[u,a])}function Sz(n){const[a,u]=G.useState(!1),[l,s]=G.useState(!1);return G.useEffect(()=>{const f=n.current;if(!f)return;const d=()=>{u(f.scrollTop>0),s(f.scrollTop+f.clientHeight<f.scrollHeight-1)};d(),f.addEventListener("scroll",d,{passive:!0});const h=new ResizeObserver(d);return h.observe(f),()=>{f.removeEventListener("scroll",d),h.disconnect()}},[n]),{showTopFade:a,showBottomFade:l}}function oT(){return rt.provider.gcpAuthStatus.useQuery(void 0,{refetchInterval:un.sessionStaleTimeMs,staleTime:un.sessionStaleTimeMs})}function Oz(){const{data:n}=rt.settings.getApiKey.useQuery("anthropic"),{data:a}=rt.settings.getApiKey.useQuery("google"),{data:u}=rt.settings.getVertexConfig.useQuery();return G.useMemo(()=>{const l=new Set;return n&&l.add("anthropic"),a&&l.add("google"),u?.projectId&&l.add("google-vertex"),l},[n,a,u])}function cT(){const n=Oz(),a=n.has("google-vertex"),{data:u,isLoading:l}=rt.provider.listVertexModels.useQuery(void 0,{enabled:a});return{models:G.useMemo(()=>{const f=Cc.filter(m=>n.has(m.provider)),d=a?(u??[]).map(m=>({provider:"google-vertex",modelId:m.modelId})):[],h=[...f,...d];return h.length>0?h:Cc},[n,a,u]),isLoading:a&&l}}function fT(n,a){const u=G.useRef(a);G.useEffect(()=>{u.current=a}),G.useEffect(()=>{function l(s){n.current&&!n.current.contains(s.target)&&u.current()}return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[n])}function ol({children:n}){const a=G.useRef(null),{showTopFade:u,showBottomFade:l}=Sz(a);return D.jsxs("div",{className:"relative",children:[D.jsx("div",{className:`absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-[#f7f6f3] to-transparent z-10 pointer-events-none transition-opacity ${u?"opacity-100":"opacity-0"}`}),D.jsx("div",{ref:a,className:"max-h-[300px] overflow-y-auto scrollbar-none",children:n}),D.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-[#f7f6f3] to-transparent z-10 pointer-events-none transition-opacity ${l?"opacity-100":"opacity-0"}`})]})}function xz({open:n,title:a,message:u,confirmLabel:l="Delete",cancelLabel:s="Cancel",confirmStyle:f="danger",onConfirm:d,onCancel:h}){const m=G.useRef(null);return G.useEffect(()=>{n&&m.current?.focus()},[n]),G.useEffect(()=>{if(!n)return;const y=g=>{g.key==="Escape"&&h()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n,h]),n?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:Re.dialogBackdrop,onClick:h}),D.jsxs("div",{className:Re.dialogCard,children:[D.jsx("div",{className:Re.dialogTitle,children:a}),D.jsx("div",{className:Re.dialogMessage,children:u}),D.jsxs("div",{className:"flex justify-end gap-2",children:[s!==null&&D.jsx("button",{onClick:h,className:Re.secondaryBtn,children:s}),D.jsx("button",{ref:m,onClick:d,className:f==="primary"?Re.primaryBtn:Re.dangerBtn,children:l})]})]})]}):null}function Ez({open:n,onClose:a,children:u}){return G.useEffect(()=>{if(!n)return;const l=s=>{s.key==="Escape"&&a()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[n,a]),n?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:Re.dialogBackdrop,onClick:a}),D.jsx("div",{className:Re.modalCard,children:u})]}):null}const ry=n=>new Promise(a=>setTimeout(a,n));async function zz(){await ry(un.updateRestartProbeDelayMs);const n=Date.now()+un.updateRestartMaxWaitMs;for(;Date.now()<n;){try{if((await fetch("/api/trpc/update.check",{cache:"no-store"})).ok)break}catch{}await ry(un.updateRestartPollMs)}window.location.reload()}function fc({command:n}){return D.jsx("code",{className:"block mt-2 p-2 bg-[#1a1a1a] rounded font-mono text-xs text-[#e0e0e0]",children:n})}function Tz({open:n,onClose:a}){const u=rt.update.check.useQuery(void 0,{staleTime:un.updateCheckStaleTimeMs}),[l,s]=G.useState(!1),[f,d]=G.useState(null),h=u.data,m=h?.canSelfUpdate===!0,y=h?.method==="npx"?"npx tracer-sh@latest":h?.method==="dev"?"git pull && pnpm install && pnpm build":"npm install -g tracer-sh@latest",g=rt.update.perform.useMutation({onSuccess:x=>{x.ok?(s(!0),zz()):d(x.error??"Update failed.")},onError:x=>d(x.message)}),_=g.isPending||l;return D.jsxs(Ez,{open:n,onClose:_?()=>{}:a,children:[D.jsx("div",{className:Re.dialogTitle,children:"Update Available"}),D.jsxs("div",{className:"text-sm text-[#666666] mb-4 space-y-1",children:[D.jsxs("p",{children:["Current version: ",D.jsx("span",{className:"font-mono",children:h?.currentVersion})]}),D.jsxs("p",{children:["Latest version: ",D.jsx("span",{className:"font-mono",children:h?.latestVersion})]})]}),l?D.jsx("div",{className:"text-sm text-[#666666] mb-4",children:D.jsx("p",{children:"Installed. Restarting Tracer — this page will reload automatically."})}):m?D.jsxs(D.Fragment,{children:[f&&D.jsxs("div",{className:"text-sm text-[#b3261e] mb-4",children:[D.jsxs("p",{children:["Update failed: ",f]}),D.jsx("p",{className:"mt-2 text-[#666666]",children:"You can update manually instead:"}),D.jsx(fc,{command:y})]}),D.jsxs("div",{className:"flex justify-end gap-2",children:[D.jsx("button",{onClick:a,className:Re.secondaryBtn,disabled:_,children:"Close"}),D.jsx("button",{onClick:()=>{d(null),g.mutate()},className:Re.primaryBtn,disabled:_,children:_?"Updating…":"Update now"})]})]}):D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:"text-sm text-[#666666] mb-4",children:[D.jsx("p",{children:h?.method==="npx"?"This instance runs via npx, which always launches the latest version. Re-run it to update now — or install globally to pin a version you update on your own terms:":"This instance runs from a source checkout. Update it with:"}),D.jsx(fc,{command:y}),h?.method==="npx"&&D.jsx(fc,{command:"npm install -g tracer-sh"})]}),D.jsx("div",{className:"flex justify-end",children:D.jsx("button",{onClick:a,className:Re.secondaryBtn,children:"Close"})})]})]})}const cl=({page:n})=>{const a={width:16,height:16,fill:"none",stroke:"currentColor",strokeWidth:1.5};switch(n){case"dashboard":return D.jsx("svg",{...a,viewBox:"0 0 16 16",children:D.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"1.5"})});case"debug":return D.jsx("svg",{...a,viewBox:"0 0 16 16",children:D.jsx("path",{d:"M8 1.5L14.5 8L8 14.5L1.5 8Z"})});case"monitors":return D.jsx("svg",{...a,viewBox:"0 0 16 16",children:D.jsx("circle",{cx:"8",cy:"8",r:"6"})});case"settings":return D.jsx("svg",{...a,viewBox:"0 0 16 16",children:D.jsx("path",{d:"M3 4.5h10M3 8h10M3 11.5h10"})})}},wz=[{page:"debug",label:"Debug"}];function Az({currentPage:n,onNavigate:a,currentSessionId:u,onSelectSession:l,onNewSession:s,currentDashboardId:f,onSelectDashboard:d,onNewDashboard:h}){const m=rt.sessions.list.useQuery(void 0,{staleTime:un.sessionStaleTimeMs}),y=rt.dashboards.list.useQuery(void 0,{enabled:sl.dashboards}),g=rt.monitorAlerts.activeCount.useQuery(void 0,{enabled:sl.monitors}),_=rt.sessions.activeCount.useQuery(),x=rt.useUtils();ay(()=>{x.sessions.activeCount.invalidate(),n==="debug"&&x.sessions.list.invalidate()},un.activeStreamPollingMs,!0);const M=rt.monitors.shouldPoll.useQuery(void 0,{enabled:sl.monitors});ay(()=>{x.monitorAlerts.activeCount.invalidate(),x.monitors.shouldPoll.invalidate()},un.monitorPollingMs,(M.data??!1)&&sl.monitors);const H=rt.sessions.markViewed.useMutation();G.useEffect(()=>{if(!u||n!=="debug"||!m.data)return;const J=m.data.find(z=>z.id===u);!J||J.status!=="done"||(x.sessions.list.setData(void 0,z=>z?.map(k=>k.id===u?{...k,status:"idle"}:k)),x.sessions.activeCount.setData(void 0,z=>z&&{...z,done:Math.max(0,z.done-1)}),H.mutate({id:u}))},[m.data,u,n]);const{regularSessions:Z,importedSessions:ae,apiSessions:le}=G.useMemo(()=>{const J=m.data??[],z=J.filter(P=>P.kind!==_i.IMPORTED&&P.kind!==_i.API),k=J.filter(P=>P.kind===_i.IMPORTED),$=J.filter(P=>P.kind===_i.API);return{regularSessions:z,importedSessions:k,apiSessions:$}},[m.data]),de=g.data??0,ye=n==="debug"&&m.data?m.data.filter(J=>J.status==="done"&&J.id!==u&&J.kind!==_i.API).length:_.data?.done??0,ge=rt.sessions.delete.useMutation(),K=rt.dashboards.delete.useMutation(),[Y,R]=G.useState(null),[V,W]=G.useState(!1),re=rt.update.check.useQuery(void 0,{staleTime:un.updateCheckStaleTimeMs}),ie=re.data?.available===!0,F=(J,z)=>{J.stopPropagation(),R({type:"session",id:z})},he=(J,z)=>{J.stopPropagation(),R({type:"dashboard",id:z})},fe=()=>{Y&&(Y.type==="session"?ge.mutate({id:Y.id},{onSuccess:()=>{x.sessions.list.invalidate(),u===Y.id&&s()}}):K.mutate({id:Y.id},{onSuccess:()=>{x.dashboards.list.invalidate(),f===Y.id&&a("dashboard")}}),R(null))};return D.jsxs("div",{className:`flex flex-col h-full ${Re.sidebar}`,children:[D.jsxs("div",{className:"p-6",children:[D.jsxs("h1",{className:`text-2xl font-bold ${Re.sidebarLogo} flex items-center gap-2`,children:[D.jsx("img",{src:"/logo.svg",alt:"",className:"w-6 h-6"}),"Tracer"]}),D.jsx("p",{className:`text-xs mt-1 ${Re.sidebarSubtitle}`,children:"Observability Platform"})]}),D.jsx("nav",{className:"flex-1 px-3 space-y-1 overflow-y-auto",children:wz.map(({page:J,label:z})=>{const k=n===J;return D.jsxs("div",{children:[D.jsxs("button",{onClick:()=>a(J),className:`w-full flex items-center gap-3 px-3 py-2 rounded-sm text-sm transition-colors ${k?Re.navActive:Re.navInactive}`,children:[J==="monitors"&&de>0?D.jsxs("span",{className:"relative flex items-center justify-center w-5 shrink-0",children:[D.jsx(cl,{page:J}),D.jsx("span",{className:"absolute inset-0 flex items-center justify-center",style:{animation:"fill-up-down 4s ease-in-out infinite"},children:D.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",children:D.jsx("circle",{cx:"8",cy:"8",r:"6",fill:"#b33a2a",stroke:"none"})})})]}):J==="debug"&&ye>0?D.jsxs("span",{className:"relative flex items-center justify-center w-5 shrink-0",children:[D.jsx(cl,{page:J}),D.jsx("span",{className:"absolute inset-0 flex items-center justify-center",style:{animation:"fill-up-down 4s ease-in-out infinite"},children:D.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",children:D.jsx("path",{d:"M8 1.5L14.5 8L8 14.5L1.5 8Z",fill:"#2b5ea7",stroke:"none"})})})]}):D.jsx("span",{className:"w-5 flex items-center justify-center shrink-0",children:D.jsx(cl,{page:J})}),z,J==="monitors"&&de>0&&D.jsx("span",{className:"ml-auto flex items-center gap-1.5",children:D.jsx("span",{className:"text-[10px] font-medium text-[#b33a2a]",children:de})})]}),J==="dashboard"&&n==="dashboard"&&D.jsxs("div",{className:"mt-1 space-y-0.5",children:[D.jsxs("button",{onClick:h,className:Re.sessionNewBtn,children:[D.jsx("span",{className:"text-[10px]",children:"+"}),"New dashboard"]}),D.jsx(ol,{children:y.data?.map($=>D.jsxs("button",{onClick:()=>d($.id),className:f===$.id?Re.sessionItemActive:Re.sessionItem,children:[D.jsx("span",{className:"truncate flex-1 text-left",children:$.title}),D.jsx("span",{onClick:P=>he(P,$.id),className:Re.sessionDeleteBtn,children:"×"})]},$.id))})]}),J==="debug"&&(()=>{const $=P=>D.jsxs("button",{onClick:()=>l(P.id),className:u===P.id?Re.sessionItemActive:Re.sessionItem,children:[D.jsx("span",{className:`truncate flex-1 text-left ${(P.status==="streaming"||P.status==="done")&&P.id!==u?"text-[#2b5ea7] underline":""}`,title:P.title,children:P.title}),D.jsx("span",{onClick:ve=>F(ve,P.id),className:Re.sessionDeleteBtn,children:"×"})]},P.id);return D.jsxs("div",{className:"mt-1 space-y-0.5",children:[D.jsxs("button",{onClick:s,className:Re.sessionNewBtn,children:[D.jsx("span",{className:"text-[10px]",children:"+"}),"New chat"]}),D.jsx(ol,{children:Z.map($)}),ae.length>0&&D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"text-[10px] uppercase tracking-wider text-[#9c9890]/60 px-3 pt-3 pb-1",children:"Imported"}),D.jsx(ol,{children:ae.map($)})]}),le.length>0&&D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"text-[10px] uppercase tracking-wider text-[#9c9890]/60 px-3 pt-3 pb-1",children:"API"}),D.jsx(ol,{children:le.map($)})]})]})})()]},J)})}),D.jsx("div",{className:"px-3 pb-2",children:D.jsxs("button",{onClick:()=>a("settings"),className:`w-full flex items-center gap-3 px-3 py-2 rounded-sm text-sm transition-colors ${n==="settings"?Re.navActive:Re.navInactive}`,children:[D.jsx("span",{className:"w-5 flex items-center justify-center shrink-0",children:D.jsx(cl,{page:"settings"})}),"Settings"]})}),D.jsx("div",{className:`p-4 ${Re.sidebarFooter}`,children:D.jsxs("button",{onClick:()=>ie&&W(!0),className:`font-mono text-[10px] tracking-wider inline-flex items-center gap-1.5 ${ie?"cursor-pointer hover:text-[#2b5ea7]":"cursor-default"}`,children:["v",re.data?.currentVersion??"0.3.2",ie?D.jsx("span",{className:"w-2 h-2 rounded-full bg-[#2b5ea7] animate-pulse"}):re.data&&!re.isLoading?D.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"text-[#2a7a4a]",children:D.jsx("path",{d:"M2 5.5L4 7.5L8 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}):null]})}),D.jsx(Tz,{open:V,onClose:()=>W(!1)}),D.jsx(xz,{open:Y!==null,title:Y?.type==="session"?"Delete session":"Delete dashboard",message:Y?.type==="session"?"Delete this chat session?":"Delete this dashboard and all its widgets?",onConfirm:fe,onCancel:()=>R(null)})]})}const jz={sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12"};function Mz({size:n="md",centered:a=!1}){const u=D.jsx("div",{className:`${jz[n]} animate-spin rounded-full border-2 ${Re.spinner}`});return a?D.jsx("div",{className:"flex items-center justify-center py-12",children:u}):u}const Rz=G.lazy(()=>uv(()=>import("./mermaid-GHXKKRXX-B2DXmpLw.js").then(n=>n.D),__vite__mapDeps([0,1,2])).then(n=>({default:n.Debug}))),Cz=G.lazy(()=>uv(()=>import("./Settings-CbI-LDKy.js"),__vite__mapDeps([3,1])).then(n=>({default:n.Settings}))),Dz=null,Nz=null,Uz=new Set(["debug","settings"]);function sg(){const n=window.location.pathname.replace(/^\/+/,"").split("/"),a=n[0]&&Uz.has(n[0])?n[0]:"debug",u=a==="debug"&&n[1]?n[1]:null,l=a==="dashboard"&&n[1]?n[1]:null;return{page:a,sessionId:u,dashboardId:l}}let iy="",uy=sg();function Zz(){const n=window.location.pathname;return n!==iy&&(iy=n,uy=sg()),uy}function qz(n){return window.addEventListener("popstate",n),()=>window.removeEventListener("popstate",n)}function Si(n){window.history.pushState(null,"",n),window.dispatchEvent(new PopStateEvent("popstate"))}const Qz=()=>D.jsx(Mz,{size:"lg",centered:!0});function kz(){const{page:n,sessionId:a,dashboardId:u}=G.useSyncExternalStore(qz,Zz),l=G.useCallback(m=>{Si(m==="debug"?"/":`/${m}`)},[]),s=G.useCallback(m=>{Si(`/debug/${m}`)},[]),f=G.useCallback(()=>{Si("/debug")},[]),d=G.useCallback(m=>{Si(`/dashboard/${m}`)},[]),h=G.useCallback(()=>{Si(`/dashboard/${crypto.randomUUID()}`)},[]);return D.jsx(vz,{sidebar:D.jsx(Az,{currentPage:n,onNavigate:l,currentSessionId:a,onSelectSession:s,onNewSession:f,currentDashboardId:u,onSelectDashboard:d,onNewDashboard:h}),children:D.jsxs(G.Suspense,{fallback:D.jsx(Qz,{}),children:[Dz,n==="debug"&&D.jsx(Rz,{sessionId:a,onSessionChange:s},a??"new"),Nz,n==="settings"&&D.jsx(Cz,{})]})})}function Bz(){const[n]=G.useState(()=>new g_),[a]=G.useState(()=>rt.createClient({links:[mS({url:"/api/trpc",transformer:ze})]}));return D.jsx(rt.Provider,{client:a,queryClient:n,children:D.jsx(b_,{client:n,children:D.jsx(kz,{})})})}Yb.createRoot(document.getElementById("root")).render(D.jsx(G.StrictMode,{children:D.jsx(Bz,{})}));export{Lz as $,Cc as A,NE as B,xz as C,Kz as D,XE as E,Db as F,uv as G,Dc as H,sT as I,ug as J,lg as K,qb as L,Ez as M,yz as N,lT as O,eT as P,ay as Q,Qb as R,Mz as S,fT as T,Gz as U,iT as V,un as W,uT as X,tT as Y,_i as Z,Fz as _,Lb as a,Wz as a0,mz as a1,Re as b,nT as c,Oz as d,cT as e,$z as f,rT as g,GE as h,Pm as i,D as j,Iz as k,Jz as l,aT as m,Pz as n,HE as o,bz as p,Fm as q,G as r,lE as s,rt as t,oT as u,Yz as v,Mc as w,Xz as x,ng as y,Vz as z};