@toon-protocol/client-mcp 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,166 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>TOON</title>
7
+ <script type="module" crossorigin>var Q$=Object.defineProperty;var K$=(e,t,n)=>t in e?Q$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>K$(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var cg={exports:{}},jl={};/**
8
+ * @license React
9
+ * react-jsx-runtime.production.js
10
+ *
11
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var P$=Symbol.for("react.transitional.element"),W$=Symbol.for("react.fragment");function sg(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:P$,type:e,key:r,ref:t!==void 0?t:null,props:n}}jl.Fragment=W$;jl.jsx=sg;jl.jsxs=sg;cg.exports=jl;var O=cg.exports,fg={exports:{}},q={};/**
16
+ * @license React
17
+ * react.production.js
18
+ *
19
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */var Hs=Symbol.for("react.transitional.element"),F$=Symbol.for("react.portal"),ez=Symbol.for("react.fragment"),tz=Symbol.for("react.strict_mode"),nz=Symbol.for("react.profiler"),iz=Symbol.for("react.consumer"),rz=Symbol.for("react.context"),az=Symbol.for("react.forward_ref"),oz=Symbol.for("react.suspense"),lz=Symbol.for("react.memo"),dg=Symbol.for("react.lazy"),uz=Symbol.for("react.activity"),lp=Symbol.iterator;function cz(e){return e===null||typeof e!="object"?null:(e=lp&&e[lp]||e["@@iterator"],typeof e=="function"?e:null)}var mg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pg=Object.assign,hg={};function _r(e,t,n){this.props=e,this.context=t,this.refs=hg,this.updater=n||mg}_r.prototype.isReactComponent={};_r.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};_r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gg(){}gg.prototype=_r.prototype;function Ls(e,t,n){this.props=e,this.context=t,this.refs=hg,this.updater=n||mg}var Bs=Ls.prototype=new gg;Bs.constructor=Ls;pg(Bs,_r.prototype);Bs.isPureReactComponent=!0;var up=Array.isArray;function Ic(){}var $e={H:null,A:null,T:null,S:null},vg=Object.prototype.hasOwnProperty;function Gs(e,t,n){var r=n.ref;return{$$typeof:Hs,type:e,key:t,ref:r!==void 0?r:null,props:n}}function sz(e,t){return Gs(e.type,t,e.props)}function Ys(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hs}function fz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var cp=/\/+/g;function ec(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fz(""+e.key):t.toString(36)}function dz(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ic,Ic):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ji(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Hs:case F$:o=!0;break;case dg:return o=e._init,ji(o(e._payload),t,n,r,i)}}if(o)return i=i(e),o=r===""?"."+ec(e,0):r,up(i)?(n="",o!=null&&(n=o.replace(cp,"$&/")+"/"),ji(i,t,n,"",function(c){return c})):i!=null&&(Ys(i)&&(i=sz(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(cp,"$&/")+"/")+o)),t.push(i)),1;o=0;var l=r===""?".":r+":";if(up(e))for(var u=0;u<e.length;u++)r=e[u],a=l+ec(r,u),o+=ji(r,t,n,a,i);else if(u=cz(e),typeof u=="function")for(e=u.call(e),u=0;!(r=e.next()).done;)r=r.value,a=l+ec(r,u++),o+=ji(r,t,n,a,i);else if(a==="object"){if(typeof e.then=="function")return ji(dz(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function fo(e,t,n){if(e==null)return e;var r=[],i=0;return ji(e,r,"","",function(a){return t.call(n,a,i++)}),r}function mz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var sp=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)},pz={map:fo,forEach:function(e,t,n){fo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fo(e,function(){t++}),t},toArray:function(e){return fo(e,function(t){return t})||[]},only:function(e){if(!Ys(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Activity=uz;q.Children=pz;q.Component=_r;q.Fragment=ez;q.Profiler=nz;q.PureComponent=Ls;q.StrictMode=tz;q.Suspense=oz;q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$e;q.__COMPILER_RUNTIME={__proto__:null,c:function(e){return $e.H.useMemoCache(e)}};q.cache=function(e){return function(){return e.apply(null,arguments)}};q.cacheSignal=function(){return null};q.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=pg({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=""+t.key),t)!vg.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),l=0;l<a;l++)o[l]=arguments[l+2];r.children=o}return Gs(e.type,i,r)};q.createContext=function(e){return e={$$typeof:rz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:iz,_context:e},e};q.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=""+t.key),t)vg.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return Gs(e,a,i)};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:az,render:e}};q.isValidElement=Ys;q.lazy=function(e){return{$$typeof:dg,_payload:{_status:-1,_result:e},_init:mz}};q.memo=function(e,t){return{$$typeof:lz,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=$e.T,n={};$e.T=n;try{var r=e(),i=$e.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Ic,sp)}catch(a){sp(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),$e.T=t}};q.unstable_useCacheRefresh=function(){return $e.H.useCacheRefresh()};q.use=function(e){return $e.H.use(e)};q.useActionState=function(e,t,n){return $e.H.useActionState(e,t,n)};q.useCallback=function(e,t){return $e.H.useCallback(e,t)};q.useContext=function(e){return $e.H.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e,t){return $e.H.useDeferredValue(e,t)};q.useEffect=function(e,t){return $e.H.useEffect(e,t)};q.useEffectEvent=function(e){return $e.H.useEffectEvent(e)};q.useId=function(){return $e.H.useId()};q.useImperativeHandle=function(e,t,n){return $e.H.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return $e.H.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return $e.H.useLayoutEffect(e,t)};q.useMemo=function(e,t){return $e.H.useMemo(e,t)};q.useOptimistic=function(e,t){return $e.H.useOptimistic(e,t)};q.useReducer=function(e,t,n){return $e.H.useReducer(e,t,n)};q.useRef=function(e){return $e.H.useRef(e)};q.useState=function(e){return $e.H.useState(e)};q.useSyncExternalStore=function(e,t,n){return $e.H.useSyncExternalStore(e,t,n)};q.useTransition=function(){return $e.H.useTransition()};q.version="19.2.7";fg.exports=q;var pe=fg.exports,bg={exports:{}},Ul={},yg={exports:{}},_g={};/**
24
+ * @license React
25
+ * scheduler.production.js
26
+ *
27
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */(function(e){function t(U,V){var H=U.length;U.push(V);e:for(;0<H;){var de=H-1>>>1,Te=U[de];if(0<i(Te,V))U[de]=V,U[H]=Te,H=de;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var V=U[0],H=U.pop();if(H!==V){U[0]=H;e:for(var de=0,Te=U.length,it=Te>>>1;de<it;){var co=2*(de+1)-1,Fu=U[co],Fn=co+1,so=U[Fn];if(0>i(Fu,H))Fn<Te&&0>i(so,Fu)?(U[de]=so,U[Fn]=H,de=Fn):(U[de]=Fu,U[co]=H,de=co);else if(Fn<Te&&0>i(so,H))U[de]=so,U[Fn]=H,de=Fn;else break e}}return V}function i(U,V){var H=U.sortIndex-V.sortIndex;return H!==0?H:U.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],c=[],g=1,h=null,d=3,v=!1,y=!1,z=!1,x=!1,s=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function _(U){for(var V=n(c);V!==null;){if(V.callback===null)r(c);else if(V.startTime<=U)r(c),V.sortIndex=V.expirationTime,t(u,V);else break;V=n(c)}}function k(U){if(z=!1,_(U),!y)if(n(u)!==null)y=!0,j||(j=!0,ee());else{var V=n(c);V!==null&&Ei(k,V.startTime-U)}}var j=!1,T=-1,A=5,R=-1;function B(){return x?!0:!(e.unstable_now()-R<A)}function Ke(){if(x=!1,j){var U=e.unstable_now();R=U;var V=!0;try{e:{y=!1,z&&(z=!1,f(T),T=-1),v=!0;var H=d;try{t:{for(_(U),h=n(u);h!==null&&!(h.expirationTime>U&&B());){var de=h.callback;if(typeof de=="function"){h.callback=null,d=h.priorityLevel;var Te=de(h.expirationTime<=U);if(U=e.unstable_now(),typeof Te=="function"){h.callback=Te,_(U),V=!0;break t}h===n(u)&&r(u),_(U)}else r(u);h=n(u)}if(h!==null)V=!0;else{var it=n(c);it!==null&&Ei(k,it.startTime-U),V=!1}}break e}finally{h=null,d=H,v=!1}V=void 0}}finally{V?ee():j=!1}}}var ee;if(typeof p=="function")ee=function(){p(Ke)};else if(typeof MessageChannel<"u"){var Dr=new MessageChannel,Ti=Dr.port2;Dr.port1.onmessage=Ke,ee=function(){Ti.postMessage(null)}}else ee=function(){s(Ke,0)};function Ei(U,V){T=s(function(){U(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(U){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var H=d;d=V;try{return U()}finally{d=H}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(U,V){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var H=d;d=U;try{return V()}finally{d=H}},e.unstable_scheduleCallback=function(U,V,H){var de=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?de+H:de):H=de,U){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=H+Te,U={id:g++,callback:V,priorityLevel:U,startTime:H,expirationTime:Te,sortIndex:-1},H>de?(U.sortIndex=H,t(c,U),n(u)===null&&U===n(c)&&(z?(f(T),T=-1):z=!0,Ei(k,H-de))):(U.sortIndex=Te,t(u,U),y||v||(y=!0,j||(j=!0,ee()))),U},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(U){var V=d;return function(){var H=d;d=V;try{return U.apply(this,arguments)}finally{d=H}}}})(_g);yg.exports=_g;var hz=yg.exports,Sg={exports:{}},tt={};/**
32
+ * @license React
33
+ * react-dom.production.js
34
+ *
35
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */var gz=pe;function $g(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function bn(){}var et={d:{f:bn,r:function(){throw Error($g(522))},D:bn,C:bn,L:bn,m:bn,X:bn,S:bn,M:bn},p:0,findDOMNode:null},vz=Symbol.for("react.portal");function bz(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vz,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Kr=gz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Al(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error($g(299));return bz(e,t,null,n)};tt.flushSync=function(e){var t=Kr.T,n=et.p;try{if(Kr.T=null,et.p=2,e)return e()}finally{Kr.T=t,et.p=n,et.d.f()}};tt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,et.d.C(e,t))};tt.prefetchDNS=function(e){typeof e=="string"&&et.d.D(e)};tt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Al(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?et.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:a}):n==="script"&&et.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};tt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Al(t.as,t.crossOrigin);et.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&et.d.M(e)};tt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Al(n,t.crossOrigin);et.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};tt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Al(t.as,t.crossOrigin);et.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else et.d.m(e)};tt.requestFormReset=function(e){et.d.r(e)};tt.unstable_batchedUpdates=function(e,t){return e(t)};tt.useFormState=function(e,t,n){return Kr.H.useFormState(e,t,n)};tt.useFormStatus=function(){return Kr.H.useHostTransitionStatus()};tt.version="19.2.7";function zg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zg)}catch(e){console.error(e)}}zg(),Sg.exports=tt;var yz=Sg.exports;/**
40
+ * @license React
41
+ * react-dom-client.production.js
42
+ *
43
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */var Ie=hz,xg=pe,_z=yz;function w(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function wg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ja(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function kg(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 Tg(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 fp(e){if(ja(e)!==e)throw Error(w(188))}function Sz(e){var t=e.alternate;if(!t){if(t=ja(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return fp(i),e;if(a===r)return fp(i),t;a=a.sibling}throw Error(w(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(w(189))}}if(n.alternate!==r)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function Eg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Eg(e),t!==null)return t;e=e.sibling}return null}var ze=Object.assign,$z=Symbol.for("react.element"),mo=Symbol.for("react.transitional.element"),Gr=Symbol.for("react.portal"),Ri=Symbol.for("react.fragment"),Og=Symbol.for("react.strict_mode"),Zc=Symbol.for("react.profiler"),Ng=Symbol.for("react.consumer"),an=Symbol.for("react.context"),Vs=Symbol.for("react.forward_ref"),qc=Symbol.for("react.suspense"),Hc=Symbol.for("react.suspense_list"),Xs=Symbol.for("react.memo"),Sn=Symbol.for("react.lazy"),Lc=Symbol.for("react.activity"),zz=Symbol.for("react.memo_cache_sentinel"),dp=Symbol.iterator;function Rr(e){return e===null||typeof e!="object"?null:(e=dp&&e[dp]||e["@@iterator"],typeof e=="function"?e:null)}var xz=Symbol.for("react.client.reference");function Bc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xz?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ri:return"Fragment";case Zc:return"Profiler";case Og:return"StrictMode";case qc:return"Suspense";case Hc:return"SuspenseList";case Lc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Gr:return"Portal";case an:return e.displayName||"Context";case Ng:return(e._context.displayName||"Context")+".Consumer";case Vs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xs:return t=e.displayName||null,t!==null?t:Bc(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return Bc(e(t))}catch{}}return null}var Yr=Array.isArray,I=xg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=_z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,li={pending:!1,data:null,method:null,action:null},Gc=[],Ci=-1;function Jt(e){return{current:e}}function He(e){0>Ci||(e.current=Gc[Ci],Gc[Ci]=null,Ci--)}function he(e,t){Ci++,Gc[Ci]=e.current,e.current=t}var Xt=Jt(null),sa=Jt(null),An=Jt(null),Vo=Jt(null);function Xo(e,t){switch(he(An,t),he(sa,e),he(Xt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bh(t),e=Kb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}He(Xt),he(Xt,e)}function nr(){He(Xt),He(sa),He(An)}function Yc(e){e.memoizedState!==null&&he(Vo,e);var t=Xt.current,n=Kb(t,e.type);t!==n&&(he(sa,e),he(Xt,n))}function Jo(e){sa.current===e&&(He(Xt),He(sa)),Vo.current===e&&(He(Vo),Sa._currentValue=li)}var tc,mp;function ni(e){if(tc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tc=t&&t[1]||"",mp=-1<n.stack.indexOf(`
48
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
49
+ `+tc+e+mp}var nc=!1;function ic(e,t){if(!e||nc)return"";nc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(v){var d=v}Reflect.construct(e,[],h)}else{try{h.call()}catch(v){d=v}e.call(h.prototype)}}else{try{throw Error()}catch(v){d=v}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(v){if(v&&d&&typeof v.stack=="string")return[v.stack,d.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),o=a[0],l=a[1];if(o&&l){var u=o.split(`
50
+ `),c=l.split(`
51
+ `);for(i=r=0;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===u.length||i===c.length)for(r=u.length-1,i=c.length-1;1<=r&&0<=i&&u[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(u[r]!==c[i]){if(r!==1||i!==1)do if(r--,i--,0>i||u[r]!==c[i]){var g=`
52
+ `+u[r].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),g}while(1<=r&&0<=i);break}}}finally{nc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ni(n):""}function wz(e,t){switch(e.tag){case 26:case 27:case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return e.child!==t&&t!==null?ni("Suspense Fallback"):ni("Suspense");case 19:return ni("SuspenseList");case 0:case 15:return ic(e.type,!1);case 11:return ic(e.type.render,!1);case 1:return ic(e.type,!0);case 31:return ni("Activity");default:return""}}function pp(e){try{var t="",n=null;do t+=wz(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
53
+ Error generating stack: `+r.message+`
54
+ `+r.stack}}var Vc=Object.prototype.hasOwnProperty,Js=Ie.unstable_scheduleCallback,rc=Ie.unstable_cancelCallback,kz=Ie.unstable_shouldYield,Tz=Ie.unstable_requestPaint,gt=Ie.unstable_now,Ez=Ie.unstable_getCurrentPriorityLevel,jg=Ie.unstable_ImmediatePriority,Ug=Ie.unstable_UserBlockingPriority,Qo=Ie.unstable_NormalPriority,Oz=Ie.unstable_LowPriority,Ag=Ie.unstable_IdlePriority,Nz=Ie.log,jz=Ie.unstable_setDisableYieldValue,Ua=null,vt=null;function Tn(e){if(typeof Nz=="function"&&jz(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Ua,e)}catch{}}var bt=Math.clz32?Math.clz32:Dz,Uz=Math.log,Az=Math.LN2;function Dz(e){return e>>>=0,e===0?32:31-(Uz(e)/Az|0)|0}var po=256,ho=262144,go=4194304;function ii(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 Dl(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~a,r!==0?i=ii(r):(o&=l,o!==0?i=ii(o):n||(n=l&~e,n!==0&&(i=ii(n))))):(l=r&~a,l!==0?i=ii(l):o!==0?i=ii(o):n||(n=r&~e,n!==0&&(i=ii(n)))),i===0?0:t!==0&&t!==i&&!(t&a)&&(a=i&-i,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:i}function Aa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Rz(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 Dg(){var e=go;return go<<=1,!(go&62914560)&&(go=4194304),e}function ac(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cz(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var g=31-bt(n),h=1<<g;l[g]=0,u[g]=-1;var d=c[g];if(d!==null)for(c[g]=null,g=0;g<d.length;g++){var v=d[g];v!==null&&(v.lane&=-536870913)}n&=~h}r!==0&&Rg(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Rg(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-bt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Cg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Mg(e,t){var n=t&-t;return n=n&42?1:Qs(n),n&(e.suspendedLanes|t)?0:n}function Qs(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 Ks(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ig(){var e=ae.p;return e!==0?e:(e=window.event,e===void 0?32:ly(e.type))}function hp(e,t){var n=ae.p;try{return ae.p=e,t()}finally{ae.p=n}}var Kn=Math.random().toString(36).slice(2),Be="__reactFiber$"+Kn,st="__reactProps$"+Kn,Sr="__reactContainer$"+Kn,Xc="__reactEvents$"+Kn,Mz="__reactListeners$"+Kn,Iz="__reactHandles$"+Kn,gp="__reactResources$"+Kn,Ra="__reactMarker$"+Kn;function Ps(e){delete e[Be],delete e[st],delete e[Xc],delete e[Mz],delete e[Iz]}function Mi(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sr]||n[Be]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zh(e);e!==null;){if(n=e[Be])return n;e=zh(e)}return t}e=n,n=e.parentNode}return null}function $r(e){if(e=e[Be]||e[Sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(w(33))}function Xi(e){var t=e[gp];return t||(t=e[gp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[Ra]=!0}var Zg=new Set,qg={};function bi(e,t){ir(e,t),ir(e+"Capture",t)}function ir(e,t){for(qg[e]=t,e=0;e<t.length;e++)Zg.add(t[e])}var Zz=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]*$"),vp={},bp={};function qz(e){return Vc.call(bp,e)?!0:Vc.call(vp,e)?!1:Zz.test(e)?bp[e]=!0:(vp[e]=!0,!1)}function jo(e,t,n){if(qz(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vo(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hz(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jc(e){if(!e._valueTracker){var t=Hg(e)?"checked":"value";e._valueTracker=Hz(e,t,""+e[t])}}function Lg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ko(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 Lz=/[\n"\\]/g;function Tt(e){return e.replace(Lz,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Qc(e,t,n,r,i,a,o,l){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Kc(e,o,xt(t)):n!=null?Kc(e,o,xt(n)):r!=null&&e.removeAttribute("value"),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+xt(l):e.removeAttribute("name")}function Bg(e,t,n,r,i,a,o,l){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Jc(e);return}n=n!=null?""+xt(n):"",t=t!=null?""+xt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Jc(e)}function Kc(e,t,n){t==="number"&&Ko(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ji(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+xt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gg(e,t,n){if(t!=null&&(t=""+xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+xt(n):""}function Yg(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(w(92));if(Yr(r)){if(1<r.length)throw Error(w(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=xt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Jc(e)}function rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bz=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 yp(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||Bz.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Vg(e,t,n){if(t!=null&&typeof t!="object")throw Error(w(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&yp(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&yp(e,a,t[a])}function Ws(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 Gz=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"]]),Yz=/^[\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 Uo(e){return Yz.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function on(){}var Pc=null;function Fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ii=null,Qi=null;function _p(e){var t=$r(e);if(t&&(e=t.stateNode)){var n=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[st]||null;if(!i)throw Error(w(90));Qc(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Lg(r)}break e;case"textarea":Gg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ji(e,!!n.multiple,t,!1)}}}var oc=!1;function Xg(e,t,n){if(oc)return e(t,n);oc=!0;try{var r=e(t);return r}finally{if(oc=!1,(Ii!==null||Qi!==null)&&(Vl(),Ii&&(t=Ii,e=Qi,Qi=Ii=null,_p(t),e)))for(t=0;t<e.length;t++)_p(e[t])}}function fa(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(w(231,t,typeof n));return n}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=!1;if(fn)try{var Cr={};Object.defineProperty(Cr,"passive",{get:function(){Wc=!0}}),window.addEventListener("test",Cr,Cr),window.removeEventListener("test",Cr,Cr)}catch{Wc=!1}var En=null,ef=null,Ao=null;function Jg(){if(Ao)return Ao;var e,t=ef,n=t.length,r,i="value"in En?En.value:En.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Ao=i.slice(e,1<r?1-r:void 0)}function Do(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 bo(){return!0}function Sp(){return!1}function ft(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?bo:Sp,this.isPropagationStopped=Sp,this}return ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),t}var yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rl=ft(yi),Ca=ze({},yi,{view:0,detail:0}),Vz=ft(Ca),lc,uc,Mr,Cl=ze({},Ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tf,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!==Mr&&(Mr&&e.type==="mousemove"?(lc=e.screenX-Mr.screenX,uc=e.screenY-Mr.screenY):uc=lc=0,Mr=e),lc)},movementY:function(e){return"movementY"in e?e.movementY:uc}}),$p=ft(Cl),Xz=ze({},Cl,{dataTransfer:0}),Jz=ft(Xz),Qz=ze({},Ca,{relatedTarget:0}),cc=ft(Qz),Kz=ze({},yi,{animationName:0,elapsedTime:0,pseudoElement:0}),Pz=ft(Kz),Wz=ze({},yi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fz=ft(Wz),e1=ze({},yi,{data:0}),zp=ft(e1),t1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n1={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"},i1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i1[e])?!!t[e]:!1}function tf(){return r1}var a1=ze({},Ca,{key:function(e){if(e.key){var t=t1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Do(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tf,charCode:function(e){return e.type==="keypress"?Do(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Do(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),o1=ft(a1),l1=ze({},Cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xp=ft(l1),u1=ze({},Ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tf}),c1=ft(u1),s1=ze({},yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),f1=ft(s1),d1=ze({},Cl,{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}),m1=ft(d1),p1=ze({},yi,{newState:0,oldState:0}),h1=ft(p1),g1=[9,13,27,32],nf=fn&&"CompositionEvent"in window,Pr=null;fn&&"documentMode"in document&&(Pr=document.documentMode);var v1=fn&&"TextEvent"in window&&!Pr,Qg=fn&&(!nf||Pr&&8<Pr&&11>=Pr),wp=" ",kp=!1;function Kg(e,t){switch(e){case"keyup":return g1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zi=!1;function b1(e,t){switch(e){case"compositionend":return Pg(t);case"keypress":return t.which!==32?null:(kp=!0,wp);case"textInput":return e=t.data,e===wp&&kp?null:e;default:return null}}function y1(e,t){if(Zi)return e==="compositionend"||!nf&&Kg(e,t)?(e=Jg(),Ao=ef=En=null,Zi=!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 Qg&&t.locale!=="ko"?null:t.data;default:return null}}var _1={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 Tp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_1[e.type]:t==="textarea"}function Wg(e,t,n,r){Ii?Qi?Qi.push(r):Qi=[r]:Ii=r,t=pl(t,"onChange"),0<t.length&&(n=new Rl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wr=null,da=null;function S1(e){Xb(e,0)}function Ml(e){var t=Vr(e);if(Lg(t))return e}function Ep(e,t){if(e==="change")return t}var Fg=!1;if(fn){var sc;if(fn){var fc="oninput"in document;if(!fc){var Op=document.createElement("div");Op.setAttribute("oninput","return;"),fc=typeof Op.oninput=="function"}sc=fc}else sc=!1;Fg=sc&&(!document.documentMode||9<document.documentMode)}function Np(){Wr&&(Wr.detachEvent("onpropertychange",ev),da=Wr=null)}function ev(e){if(e.propertyName==="value"&&Ml(da)){var t=[];Wg(t,da,e,Fs(e)),Xg(S1,t)}}function $1(e,t,n){e==="focusin"?(Np(),Wr=t,da=n,Wr.attachEvent("onpropertychange",ev)):e==="focusout"&&Np()}function z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ml(da)}function x1(e,t){if(e==="click")return Ml(t)}function w1(e,t){if(e==="input"||e==="change")return Ml(t)}function k1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:k1;function ma(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Vc.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function jp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Up(e,t){var n=jp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jp(n)}}function tv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ko(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ko(e.document)}return t}function rf(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 T1=fn&&"documentMode"in document&&11>=document.documentMode,qi=null,Fc=null,Fr=null,es=!1;function Ap(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;es||qi==null||qi!==Ko(r)||(r=qi,"selectionStart"in r&&rf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&ma(Fr,r)||(Fr=r,r=pl(Fc,"onSelect"),0<r.length&&(t=new Rl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qi)))}function ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hi={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionrun:ei("Transition","TransitionRun"),transitionstart:ei("Transition","TransitionStart"),transitioncancel:ei("Transition","TransitionCancel"),transitionend:ei("Transition","TransitionEnd")},dc={},iv={};fn&&(iv=document.createElement("div").style,"AnimationEvent"in window||(delete Hi.animationend.animation,delete Hi.animationiteration.animation,delete Hi.animationstart.animation),"TransitionEvent"in window||delete Hi.transitionend.transition);function _i(e){if(dc[e])return dc[e];if(!Hi[e])return e;var t=Hi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in iv)return dc[e]=t[n];return e}var rv=_i("animationend"),av=_i("animationiteration"),ov=_i("animationstart"),E1=_i("transitionrun"),O1=_i("transitionstart"),N1=_i("transitioncancel"),lv=_i("transitionend"),uv=new Map,ts="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(" ");ts.push("scrollEnd");function qt(e,t){uv.set(e,t),bi(t,[e])}var Po=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)},zt=[],Li=0,af=0;function Il(){for(var e=Li,t=af=Li=0;t<e;){var n=zt[t];zt[t++]=null;var r=zt[t];zt[t++]=null;var i=zt[t];zt[t++]=null;var a=zt[t];if(zt[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&cv(n,i,a)}}function Zl(e,t,n,r){zt[Li++]=e,zt[Li++]=t,zt[Li++]=n,zt[Li++]=r,af|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function of(e,t,n,r){return Zl(e,t,n,r),Wo(e)}function Si(e,t){return Zl(e,null,null,t),Wo(e)}function cv(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-bt(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Wo(e){if(50<ua)throw ua=0,$s=null,Error(w(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Bi={};function j1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new j1(e,t,n,r)}function lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function sv(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ro(e,t,n,r,i,a){var o=0;if(r=e,typeof e=="function")lf(e)&&(o=1);else if(typeof e=="string")o=Cx(e,n,Xt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Lc:return e=pt(31,n,t,i),e.elementType=Lc,e.lanes=a,e;case Ri:return ui(n.children,i,a,t);case Og:o=8,i|=24;break;case Zc:return e=pt(12,n,t,i|2),e.elementType=Zc,e.lanes=a,e;case qc:return e=pt(13,n,t,i),e.elementType=qc,e.lanes=a,e;case Hc:return e=pt(19,n,t,i),e.elementType=Hc,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case an:o=10;break e;case Ng:o=9;break e;case Vs:o=11;break e;case Xs:o=14;break e;case Sn:o=16,r=null;break e}o=29,n=Error(w(130,e===null?"null":typeof e,"")),r=null}return t=pt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ui(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function mc(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function fv(e){var t=pt(18,null,null,0);return t.stateNode=e,t}function pc(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dp=new WeakMap;function Et(e,t){if(typeof e=="object"&&e!==null){var n=Dp.get(e);return n!==void 0?n:(t={value:e,source:t,stack:pp(t)},Dp.set(e,t),t)}return{value:e,source:t,stack:pp(t)}}var Gi=[],Yi=0,Fo=null,pa=0,wt=[],kt=0,Ln=null,Bt=1,Gt="";function nn(e,t){Gi[Yi++]=pa,Gi[Yi++]=Fo,Fo=e,pa=t}function dv(e,t,n){wt[kt++]=Bt,wt[kt++]=Gt,wt[kt++]=Ln,Ln=e;var r=Bt;e=Gt;var i=32-bt(r)-1;r&=~(1<<i),n+=1;var a=32-bt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Bt=1<<32-bt(t)+i|n<<i|r,Gt=a+e}else Bt=1<<a|n<<i|r,Gt=e}function uf(e){e.return!==null&&(nn(e,1),dv(e,1,0))}function cf(e){for(;e===Fo;)Fo=Gi[--Yi],Gi[Yi]=null,pa=Gi[--Yi],Gi[Yi]=null;for(;e===Ln;)Ln=wt[--kt],wt[kt]=null,Gt=wt[--kt],wt[kt]=null,Bt=wt[--kt],wt[kt]=null}function mv(e,t){wt[kt++]=Bt,wt[kt++]=Gt,wt[kt++]=Ln,Bt=t.id,Gt=t.overflow,Ln=e}var Ge=null,Se=null,F=!1,Dn=null,Ot=!1,ns=Error(w(519));function Bn(e){var t=Error(w(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ha(Et(t,e)),ns}function Rp(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[st]=r,n){case"dialog":K("cancel",t),K("close",t);break;case"iframe":case"object":case"embed":K("load",t);break;case"video":case"audio":for(n=0;n<ya.length;n++)K(ya[n],t);break;case"source":K("error",t);break;case"img":case"image":case"link":K("error",t),K("load",t);break;case"details":K("toggle",t);break;case"input":K("invalid",t),Bg(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":K("invalid",t);break;case"textarea":K("invalid",t),Yg(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||Qb(t.textContent,n)?(r.popover!=null&&(K("beforetoggle",t),K("toggle",t)),r.onScroll!=null&&K("scroll",t),r.onScrollEnd!=null&&K("scrollend",t),r.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Bn(e,!0)}function Cp(e){for(Ge=e.return;Ge;)switch(Ge.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:Ge=Ge.return}}function Oi(e){if(e!==Ge)return!1;if(!F)return Cp(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ts(e.type,e.memoizedProps)),n=!n),n&&Se&&Bn(e),Cp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));Se=$h(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));Se=$h(e)}else t===27?(t=Se,Pn(e.type)?(e=js,js=null,Se=e):Se=t):Se=Ge?Ut(e.stateNode.nextSibling):null;return!0}function di(){Se=Ge=null,F=!1}function hc(){var e=Dn;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),Dn=null),e}function ha(e){Dn===null?Dn=[e]:Dn.push(e)}var is=Jt(null),$i=null,ln=null;function zn(e,t,n){he(is,t._currentValue),t._currentValue=n}function cn(e){e._currentValue=is.current,He(is)}function rs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function as(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;e:for(;a!==null;){var l=a;a=i;for(var u=0;u<t.length;u++)if(l.context===t[u]){a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),rs(a.return,n,e),r||(o=null);break e}a=l.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(w(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),rs(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function zr(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(w(387));if(o=o.memoizedProps,o!==null){var l=i.type;_t(i.pendingProps.value,o.value)||(e!==null?e.push(l):e=[l])}}else if(i===Vo.current){if(o=i.alternate,o===null)throw Error(w(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Sa):e=[Sa])}i=i.return}e!==null&&as(t,e,n,r),t.flags|=262144}function el(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function mi(e){$i=e,ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ye(e){return pv($i,e)}function yo(e,t){return $i===null&&mi(e),pv(e,t)}function pv(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ln===null){if(e===null)throw Error(w(308));ln=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ln=ln.next=t;return n}var U1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},A1=Ie.unstable_scheduleCallback,D1=Ie.unstable_NormalPriority,Ae={$$typeof:an,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sf(){return{controller:new U1,data:new Map,refCount:0}}function Ma(e){e.refCount--,e.refCount===0&&A1(D1,function(){e.controller.abort()})}var ea=null,os=0,ar=0,Ki=null;function R1(e,t){if(ea===null){var n=ea=[];os=0,ar=Rf(),Ki={status:"pending",value:void 0,then:function(r){n.push(r)}}}return os++,t.then(Mp,Mp),t}function Mp(){if(--os===0&&ea!==null){Ki!==null&&(Ki.status="fulfilled");var e=ea;ea=null,ar=0,Ki=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function C1(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var Ip=I.S;I.S=function(e,t){Eb=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&R1(e,t),Ip!==null&&Ip(e,t)};var ci=Jt(null);function ff(){var e=ci.current;return e!==null?e:me.pooledCache}function Co(e,t){t===null?he(ci,ci.current):he(ci,t.pool)}function hv(){var e=ff();return e===null?null:{parent:Ae._currentValue,pool:e}}var xr=Error(w(460)),df=Error(w(474)),ql=Error(w(542)),tl={then:function(){}};function Zp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gv(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hp(e),e;default:if(typeof t.status=="string")t.then(on,on);else{if(e=me,e!==null&&100<e.shellSuspendCounter)throw Error(w(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hp(e),e}throw si=t,xr}}function ri(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(si=n,xr):n}}var si=null;function qp(){if(si===null)throw Error(w(459));var e=si;return si=null,e}function Hp(e){if(e===xr||e===ql)throw Error(w(483))}var Pi=null,ga=0;function _o(e){var t=ga;return ga+=1,Pi===null&&(Pi=[]),gv(Pi,e,t)}function Ir(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function So(e,t){throw t.$$typeof===$z?Error(w(525)):(e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function vv(e){function t(s,f){if(e){var p=s.deletions;p===null?(s.deletions=[f],s.flags|=16):p.push(f)}}function n(s,f){if(!e)return null;for(;f!==null;)t(s,f),f=f.sibling;return null}function r(s){for(var f=new Map;s!==null;)s.key!==null?f.set(s.key,s):f.set(s.index,s),s=s.sibling;return f}function i(s,f){return s=un(s,f),s.index=0,s.sibling=null,s}function a(s,f,p){return s.index=p,e?(p=s.alternate,p!==null?(p=p.index,p<f?(s.flags|=67108866,f):p):(s.flags|=67108866,f)):(s.flags|=1048576,f)}function o(s){return e&&s.alternate===null&&(s.flags|=67108866),s}function l(s,f,p,_){return f===null||f.tag!==6?(f=mc(p,s.mode,_),f.return=s,f):(f=i(f,p),f.return=s,f)}function u(s,f,p,_){var k=p.type;return k===Ri?g(s,f,p.props.children,_,p.key):f!==null&&(f.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Sn&&ri(k)===f.type)?(f=i(f,p.props),Ir(f,p),f.return=s,f):(f=Ro(p.type,p.key,p.props,null,s.mode,_),Ir(f,p),f.return=s,f)}function c(s,f,p,_){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=pc(p,s.mode,_),f.return=s,f):(f=i(f,p.children||[]),f.return=s,f)}function g(s,f,p,_,k){return f===null||f.tag!==7?(f=ui(p,s.mode,_,k),f.return=s,f):(f=i(f,p),f.return=s,f)}function h(s,f,p){if(typeof f=="string"&&f!==""||typeof f=="number"||typeof f=="bigint")return f=mc(""+f,s.mode,p),f.return=s,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case mo:return p=Ro(f.type,f.key,f.props,null,s.mode,p),Ir(p,f),p.return=s,p;case Gr:return f=pc(f,s.mode,p),f.return=s,f;case Sn:return f=ri(f),h(s,f,p)}if(Yr(f)||Rr(f))return f=ui(f,s.mode,p,null),f.return=s,f;if(typeof f.then=="function")return h(s,_o(f),p);if(f.$$typeof===an)return h(s,yo(s,f),p);So(s,f)}return null}function d(s,f,p,_){var k=f!==null?f.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return k!==null?null:l(s,f,""+p,_);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case mo:return p.key===k?u(s,f,p,_):null;case Gr:return p.key===k?c(s,f,p,_):null;case Sn:return p=ri(p),d(s,f,p,_)}if(Yr(p)||Rr(p))return k!==null?null:g(s,f,p,_,null);if(typeof p.then=="function")return d(s,f,_o(p),_);if(p.$$typeof===an)return d(s,f,yo(s,p),_);So(s,p)}return null}function v(s,f,p,_,k){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return s=s.get(p)||null,l(f,s,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case mo:return s=s.get(_.key===null?p:_.key)||null,u(f,s,_,k);case Gr:return s=s.get(_.key===null?p:_.key)||null,c(f,s,_,k);case Sn:return _=ri(_),v(s,f,p,_,k)}if(Yr(_)||Rr(_))return s=s.get(p)||null,g(f,s,_,k,null);if(typeof _.then=="function")return v(s,f,p,_o(_),k);if(_.$$typeof===an)return v(s,f,p,yo(f,_),k);So(f,_)}return null}function y(s,f,p,_){for(var k=null,j=null,T=f,A=f=0,R=null;T!==null&&A<p.length;A++){T.index>A?(R=T,T=null):R=T.sibling;var B=d(s,T,p[A],_);if(B===null){T===null&&(T=R);break}e&&T&&B.alternate===null&&t(s,T),f=a(B,f,A),j===null?k=B:j.sibling=B,j=B,T=R}if(A===p.length)return n(s,T),F&&nn(s,A),k;if(T===null){for(;A<p.length;A++)T=h(s,p[A],_),T!==null&&(f=a(T,f,A),j===null?k=T:j.sibling=T,j=T);return F&&nn(s,A),k}for(T=r(T);A<p.length;A++)R=v(T,s,A,p[A],_),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?A:R.key),f=a(R,f,A),j===null?k=R:j.sibling=R,j=R);return e&&T.forEach(function(Ke){return t(s,Ke)}),F&&nn(s,A),k}function z(s,f,p,_){if(p==null)throw Error(w(151));for(var k=null,j=null,T=f,A=f=0,R=null,B=p.next();T!==null&&!B.done;A++,B=p.next()){T.index>A?(R=T,T=null):R=T.sibling;var Ke=d(s,T,B.value,_);if(Ke===null){T===null&&(T=R);break}e&&T&&Ke.alternate===null&&t(s,T),f=a(Ke,f,A),j===null?k=Ke:j.sibling=Ke,j=Ke,T=R}if(B.done)return n(s,T),F&&nn(s,A),k;if(T===null){for(;!B.done;A++,B=p.next())B=h(s,B.value,_),B!==null&&(f=a(B,f,A),j===null?k=B:j.sibling=B,j=B);return F&&nn(s,A),k}for(T=r(T);!B.done;A++,B=p.next())B=v(T,s,A,B.value,_),B!==null&&(e&&B.alternate!==null&&T.delete(B.key===null?A:B.key),f=a(B,f,A),j===null?k=B:j.sibling=B,j=B);return e&&T.forEach(function(ee){return t(s,ee)}),F&&nn(s,A),k}function x(s,f,p,_){if(typeof p=="object"&&p!==null&&p.type===Ri&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case mo:e:{for(var k=p.key;f!==null;){if(f.key===k){if(k=p.type,k===Ri){if(f.tag===7){n(s,f.sibling),_=i(f,p.props.children),_.return=s,s=_;break e}}else if(f.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Sn&&ri(k)===f.type){n(s,f.sibling),_=i(f,p.props),Ir(_,p),_.return=s,s=_;break e}n(s,f);break}else t(s,f);f=f.sibling}p.type===Ri?(_=ui(p.props.children,s.mode,_,p.key),_.return=s,s=_):(_=Ro(p.type,p.key,p.props,null,s.mode,_),Ir(_,p),_.return=s,s=_)}return o(s);case Gr:e:{for(k=p.key;f!==null;){if(f.key===k)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(s,f.sibling),_=i(f,p.children||[]),_.return=s,s=_;break e}else{n(s,f);break}else t(s,f);f=f.sibling}_=pc(p,s.mode,_),_.return=s,s=_}return o(s);case Sn:return p=ri(p),x(s,f,p,_)}if(Yr(p))return y(s,f,p,_);if(Rr(p)){if(k=Rr(p),typeof k!="function")throw Error(w(150));return p=k.call(p),z(s,f,p,_)}if(typeof p.then=="function")return x(s,f,_o(p),_);if(p.$$typeof===an)return x(s,f,yo(s,p),_);So(s,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,f!==null&&f.tag===6?(n(s,f.sibling),_=i(f,p),_.return=s,s=_):(n(s,f),_=mc(p,s.mode,_),_.return=s,s=_),o(s)):n(s,f)}return function(s,f,p,_){try{ga=0;var k=x(s,f,p,_);return Pi=null,k}catch(T){if(T===xr||T===ql)throw T;var j=pt(29,T,null,s.mode);return j.lanes=_,j.return=s,j}finally{}}}var pi=vv(!0),bv=vv(!1),$n=!1;function mf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ls(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 Rn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Wo(e),cv(e,null,n),t}return Zl(e,r,t,n),Wo(e)}function ta(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cg(e,n)}}function gc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var us=!1;function na(){if(us){var e=Ki;if(e!==null)throw e}}function ia(e,t,n,r){us=!1;var i=e.updateQueue;$n=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,c=u.next;u.next=null,o===null?a=c:o.next=c,o=u;var g=e.alternate;g!==null&&(g=g.updateQueue,l=g.lastBaseUpdate,l!==o&&(l===null?g.firstBaseUpdate=c:l.next=c,g.lastBaseUpdate=u))}if(a!==null){var h=i.baseState;o=0,g=c=u=null,l=a;do{var d=l.lane&-536870913,v=d!==l.lane;if(v?(W&d)===d:(r&d)===d){d!==0&&d===ar&&(us=!0),g!==null&&(g=g.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var y=e,z=l;d=t;var x=n;switch(z.tag){case 1:if(y=z.payload,typeof y=="function"){h=y.call(x,h,d);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=z.payload,d=typeof y=="function"?y.call(x,h,d):y,d==null)break e;h=ze({},h,d);break e;case 2:$n=!0}}d=l.callback,d!==null&&(e.flags|=64,v&&(e.flags|=8192),v=i.callbacks,v===null?i.callbacks=[d]:v.push(d))}else v={lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},g===null?(c=g=v,u=h):g=g.next=v,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;v=l,l=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);g===null&&(u=h),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=g,a===null&&(i.shared.lanes=0),Yn|=o,e.lanes=o,e.memoizedState=h}}function yv(e,t){if(typeof e!="function")throw Error(w(191,e));e.call(t)}function _v(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yv(n[e],t)}var or=Jt(null),nl=Jt(0);function Lp(e,t){e=hn,he(nl,e),he(or,t),hn=e|t.baseLanes}function cs(){he(nl,hn),he(or,or.current)}function pf(){hn=nl.current,He(or),He(nl)}var St=Jt(null),jt=null;function xn(e){var t=e.alternate;he(Ee,Ee.current&1),he(St,e),jt===null&&(t===null||or.current!==null||t.memoizedState!==null)&&(jt=e)}function ss(e){he(Ee,Ee.current),he(St,e),jt===null&&(jt=e)}function Sv(e){e.tag===22?(he(Ee,Ee.current),he(St,e),jt===null&&(jt=e)):wn()}function wn(){he(Ee,Ee.current),he(St,St.current)}function mt(e){He(St),jt===e&&(jt=null),He(Ee)}var Ee=Jt(0);function il(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Os(n)||Ns(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)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 dn=0,L=null,fe=null,je=null,rl=!1,Wi=!1,hi=!1,al=0,va=0,Fi=null,M1=0;function we(){throw Error(w(321))}function hf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function gf(e,t,n,r,i,a){return dn=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Wv:Tf,hi=!1,a=n(r,i),hi=!1,Wi&&(a=zv(t,n,r,i)),$v(e),a}function $v(e){I.H=ba;var t=fe!==null&&fe.next!==null;if(dn=0,je=fe=L=null,rl=!1,va=0,Fi=null,t)throw Error(w(300));e===null||De||(e=e.dependencies,e!==null&&el(e)&&(De=!0))}function zv(e,t,n,r){L=e;var i=0;do{if(Wi&&(Fi=null),va=0,Wi=!1,25<=i)throw Error(w(301));if(i+=1,je=fe=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}I.H=Fv,a=t(n,r)}while(Wi);return a}function I1(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?Ia(t):t,e=e.useState()[0],(fe!==null?fe.memoizedState:null)!==e&&(L.flags|=1024),t}function vf(){var e=al!==0;return al=0,e}function bf(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function yf(e){if(rl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rl=!1}dn=0,je=fe=L=null,Wi=!1,va=al=0,Fi=null}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?L.memoizedState=je=e:je=je.next=e,je}function Oe(){if(fe===null){var e=L.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=je===null?L.memoizedState:je.next;if(t!==null)je=t,fe=e;else{if(e===null)throw L.alternate===null?Error(w(467)):Error(w(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},je===null?L.memoizedState=je=e:je=je.next=e}return je}function Hl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ia(e){var t=va;return va+=1,Fi===null&&(Fi=[]),e=gv(Fi,e,t),t=L,(je===null?t.memoizedState:je.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Wv:Tf),e}function Ll(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ia(e);if(e.$$typeof===an)return Ye(e)}throw Error(w(438,String(e)))}function _f(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Hl(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=zz;return t.index++,n}function mn(e,t){return typeof t=="function"?t(e):t}function Mo(e){var t=Oe();return Sf(t,fe,e)}function Sf(e,t,n){var r=e.queue;if(r===null)throw Error(w(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var l=o=null,u=null,c=t,g=!1;do{var h=c.lane&-536870913;if(h!==c.lane?(W&h)===h:(dn&h)===h){var d=c.revertLane;if(d===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),h===ar&&(g=!0);else if((dn&d)===d){c=c.next,d===ar&&(g=!0);continue}else h={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=h,o=a):u=u.next=h,L.lanes|=d,Yn|=d;h=c.action,hi&&n(a,h),a=c.hasEagerState?c.eagerState:n(a,h)}else d={lane:h,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=d,o=a):u=u.next=d,L.lanes|=h,Yn|=h;c=c.next}while(c!==null&&c!==t);if(u===null?o=a:u.next=l,!_t(a,e.memoizedState)&&(De=!0,g&&(n=Ki,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=u,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function vc(e){var t=Oe(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);_t(a,t.memoizedState)||(De=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xv(e,t,n){var r=L,i=Oe(),a=F;if(a){if(n===void 0)throw Error(w(407));n=n()}else n=t();var o=!_t((fe||i).memoizedState,n);if(o&&(i.memoizedState=n,De=!0),i=i.queue,$f(Tv.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||je!==null&&je.memoizedState.tag&1){if(r.flags|=2048,lr(9,{destroy:void 0},kv.bind(null,r,i,n,t),null),me===null)throw Error(w(349));a||dn&127||wv(r,t,n)}return n}function wv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Hl(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kv(e,t,n,r){t.value=n,t.getSnapshot=r,Ev(t)&&Ov(e)}function Tv(e,t,n){return n(function(){Ev(t)&&Ov(e)})}function Ev(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function Ov(e){var t=Si(e,2);t!==null&&ct(t,e,2)}function fs(e){var t=We();if(typeof e=="function"){var n=e;if(e=n(),hi){Tn(!0);try{n()}finally{Tn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:e},t}function Nv(e,t,n,r){return e.baseState=n,Sf(e,fe,typeof r=="function"?r:mn)}function Z1(e,t,n,r,i){if(Gl(e))throw Error(w(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};I.T!==null?n(!0):a.isTransition=!1,r(a),n=t.pending,n===null?(a.next=t.pending=a,jv(t,a)):(a.next=n.next,t.pending=n.next=a)}}function jv(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var l=n(i,r),u=I.S;u!==null&&u(o,l),Bp(e,t,l)}catch(c){ds(e,t,c)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Bp(e,t,a)}catch(c){ds(e,t,c)}}function Bp(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Gp(e,t,r)},function(r){return ds(e,t,r)}):Gp(e,t,n)}function Gp(e,t,n){t.status="fulfilled",t.value=n,Uv(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,jv(e,n)))}function ds(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,Uv(t),t=t.next;while(t!==r)}e.action=null}function Uv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Av(e,t){return t}function Yp(e,t){if(F){var n=me.formState;if(n!==null){e:{var r=L;if(F){if(Se){t:{for(var i=Se,a=Ot;i.nodeType!==8;){if(!a){i=null;break t}if(i=Ut(i.nextSibling),i===null){i=null;break t}}a=i.data,i=a==="F!"||a==="F"?i:null}if(i){Se=Ut(i.nextSibling),r=i.data==="F!";break e}}Bn(r)}r=!1}r&&(t=n[0])}}return n=We(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Av,lastRenderedState:t},n.queue=r,n=Qv.bind(null,L,r),r.dispatch=n,r=fs(!1),a=kf.bind(null,L,!1,r.queue),r=We(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Z1.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Vp(e){var t=Oe();return Dv(t,fe,e)}function Dv(e,t,n){if(t=Sf(e,t,Av)[0],e=Mo(mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ia(t)}catch(o){throw o===xr?ql:o}else r=t;t=Oe();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,lr(9,{destroy:void 0},q1.bind(null,i,n),null)),[r,a,e]}function q1(e,t){e.action=t}function Xp(e){var t=Oe(),n=fe;if(n!==null)return Dv(t,n,e);Oe(),t=t.memoizedState,n=Oe();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function lr(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Hl(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Rv(){return Oe().memoizedState}function Io(e,t,n,r){var i=We();L.flags|=e,i.memoizedState=lr(1|t,{destroy:void 0},n,r===void 0?null:r)}function Bl(e,t,n,r){var i=Oe();r=r===void 0?null:r;var a=i.memoizedState.inst;fe!==null&&r!==null&&hf(r,fe.memoizedState.deps)?i.memoizedState=lr(t,a,n,r):(L.flags|=e,i.memoizedState=lr(1|t,a,n,r))}function Jp(e,t){Io(8390656,8,e,t)}function $f(e,t){Bl(2048,8,e,t)}function H1(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Hl(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Cv(e){var t=Oe().memoizedState;return H1({ref:t,nextImpl:e}),function(){if(re&2)throw Error(w(440));return t.impl.apply(void 0,arguments)}}function Mv(e,t){return Bl(4,2,e,t)}function Iv(e,t){return Bl(4,4,e,t)}function Zv(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qv(e,t,n){n=n!=null?n.concat([e]):null,Bl(4,4,Zv.bind(null,t,e),n)}function zf(){}function Hv(e,t){var n=Oe();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&hf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Lv(e,t){var n=Oe();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&hf(t,r[1]))return r[0];if(r=e(),hi){Tn(!0);try{e()}finally{Tn(!1)}}return n.memoizedState=[r,t],r}function xf(e,t,n){return n===void 0||dn&1073741824&&!(W&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nb(),L.lanes|=e,Yn|=e,n)}function Bv(e,t,n,r){return _t(n,t)?n:or.current!==null?(e=xf(e,n,r),_t(e,t)||(De=!0),e):!(dn&42)||dn&1073741824&&!(W&261930)?(De=!0,e.memoizedState=n):(e=Nb(),L.lanes|=e,Yn|=e,t)}function Gv(e,t,n,r,i){var a=ae.p;ae.p=a!==0&&8>a?a:8;var o=I.T,l={};I.T=l,kf(e,!1,t,n);try{var u=i(),c=I.S;if(c!==null&&c(l,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var g=C1(u,r);ra(e,t,g,yt(e))}else ra(e,t,r,yt(e))}catch(h){ra(e,t,{then:function(){},status:"rejected",reason:h},yt())}finally{ae.p=a,o!==null&&l.types!==null&&(o.types=l.types),I.T=o}}function L1(){}function ms(e,t,n,r){if(e.tag!==5)throw Error(w(476));var i=Yv(e).queue;Gv(e,i,t,li,n===null?L1:function(){return Vv(e),n(r)})}function Yv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:li,baseState:li,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:li},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vv(e){var t=Yv(e);t.next===null&&(t=e.alternate.memoizedState),ra(e,t.next.queue,{},yt())}function wf(){return Ye(Sa)}function Xv(){return Oe().memoizedState}function Jv(){return Oe().memoizedState}function B1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=yt();e=Rn(n);var r=Cn(t,e,n);r!==null&&(ct(r,t,n),ta(r,t,n)),t={cache:sf()},e.payload=t;return}t=t.return}}function G1(e,t,n){var r=yt();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gl(e)?Kv(t,n):(n=of(e,t,n,r),n!==null&&(ct(n,e,r),Pv(n,t,r)))}function Qv(e,t,n){var r=yt();ra(e,t,n,r)}function ra(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gl(e))Kv(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,_t(l,o))return Zl(e,t,i,0),me===null&&Il(),!1}catch{}finally{}if(n=of(e,t,i,r),n!==null)return ct(n,e,r),Pv(n,t,r),!0}return!1}function kf(e,t,n,r){if(r={lane:2,revertLane:Rf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Gl(e)){if(t)throw Error(w(479))}else t=of(e,n,r,2),t!==null&&ct(t,e,2)}function Gl(e){var t=e.alternate;return e===L||t!==null&&t===L}function Kv(e,t){Wi=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pv(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cg(e,n)}}var ba={readContext:Ye,use:Ll,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};ba.useEffectEvent=we;var Wv={readContext:Ye,use:Ll,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:Jp,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Io(4194308,4,Zv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Io(4194308,4,e,t)},useInsertionEffect:function(e,t){Io(4,2,e,t)},useMemo:function(e,t){var n=We();t=t===void 0?null:t;var r=e();if(hi){Tn(!0);try{e()}finally{Tn(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=We();if(n!==void 0){var i=n(t);if(hi){Tn(!0);try{n(t)}finally{Tn(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=G1.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:function(e){e=fs(e);var t=e.queue,n=Qv.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:zf,useDeferredValue:function(e,t){var n=We();return xf(n,e,t)},useTransition:function(){var e=fs(!1);return e=Gv.bind(null,L,e.queue,!0,!1),We().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=We();if(F){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),me===null)throw Error(w(349));W&127||wv(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Jp(Tv.bind(null,r,a,e),[e]),r.flags|=2048,lr(9,{destroy:void 0},kv.bind(null,r,a,n,t),null),n},useId:function(){var e=We(),t=me.identifierPrefix;if(F){var n=Gt,r=Bt;n=(r&~(1<<32-bt(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=al++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=M1++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:wf,useFormState:Yp,useActionState:Yp,useOptimistic:function(e){var t=We();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=kf.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:_f,useCacheRefresh:function(){return We().memoizedState=B1.bind(null,L)},useEffectEvent:function(e){var t=We(),n={impl:e};return t.memoizedState=n,function(){if(re&2)throw Error(w(440));return n.impl.apply(void 0,arguments)}}},Tf={readContext:Ye,use:Ll,useCallback:Hv,useContext:Ye,useEffect:$f,useImperativeHandle:qv,useInsertionEffect:Mv,useLayoutEffect:Iv,useMemo:Lv,useReducer:Mo,useRef:Rv,useState:function(){return Mo(mn)},useDebugValue:zf,useDeferredValue:function(e,t){var n=Oe();return Bv(n,fe.memoizedState,e,t)},useTransition:function(){var e=Mo(mn)[0],t=Oe().memoizedState;return[typeof e=="boolean"?e:Ia(e),t]},useSyncExternalStore:xv,useId:Xv,useHostTransitionStatus:wf,useFormState:Vp,useActionState:Vp,useOptimistic:function(e,t){var n=Oe();return Nv(n,fe,e,t)},useMemoCache:_f,useCacheRefresh:Jv};Tf.useEffectEvent=Cv;var Fv={readContext:Ye,use:Ll,useCallback:Hv,useContext:Ye,useEffect:$f,useImperativeHandle:qv,useInsertionEffect:Mv,useLayoutEffect:Iv,useMemo:Lv,useReducer:vc,useRef:Rv,useState:function(){return vc(mn)},useDebugValue:zf,useDeferredValue:function(e,t){var n=Oe();return fe===null?xf(n,e,t):Bv(n,fe.memoizedState,e,t)},useTransition:function(){var e=vc(mn)[0],t=Oe().memoizedState;return[typeof e=="boolean"?e:Ia(e),t]},useSyncExternalStore:xv,useId:Xv,useHostTransitionStatus:wf,useFormState:Xp,useActionState:Xp,useOptimistic:function(e,t){var n=Oe();return fe!==null?Nv(n,fe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_f,useCacheRefresh:Jv};Fv.useEffectEvent=Cv;function bc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ze({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ps={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yt(),i=Rn(r);i.payload=t,n!=null&&(i.callback=n),t=Cn(e,i,r),t!==null&&(ct(t,e,r),ta(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yt(),i=Rn(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Cn(e,i,r),t!==null&&(ct(t,e,r),ta(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),r=Rn(n);r.tag=2,t!=null&&(r.callback=t),t=Cn(e,r,n),t!==null&&(ct(t,e,n),ta(t,e,n))}};function Qp(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!ma(n,r)||!ma(i,a):!0}function Kp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function gi(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=ze({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function eb(e){Po(e)}function tb(e){console.error(e)}function nb(e){Po(e)}function ol(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Pp(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function hs(e,t,n){return n=Rn(n),n.tag=3,n.payload={element:null},n.callback=function(){ol(e,t)},n}function ib(e){return e=Rn(e),e.tag=3,e}function rb(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Pp(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Pp(t,n,r),typeof i!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function Y1(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&zr(t,n,i,!0),n=St.current,n!==null){switch(n.tag){case 31:case 13:return jt===null?fl():n.alternate===null&&ke===0&&(ke=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===tl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Oc(e,r,i)),!1;case 22:return n.flags|=65536,r===tl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Oc(e,r,i)),!1}throw Error(w(435,n.tag))}return Oc(e,r,i),fl(),!1}if(F)return t=St.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==ns&&(e=Error(w(422),{cause:r}),ha(Et(e,n)))):(r!==ns&&(t=Error(w(423),{cause:r}),ha(Et(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Et(r,n),i=hs(e.stateNode,r,i),gc(e,i),ke!==4&&(ke=2)),!1;var a=Error(w(520),{cause:r});if(a=Et(a,n),la===null?la=[a]:la.push(a),ke!==4&&(ke=2),t===null)return!0;r=Et(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=hs(n.stateNode,r,e),gc(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Mn===null||!Mn.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ib(i),rb(i,e,n,r),gc(n,i),!1}n=n.return}while(n!==null);return!1}var Ef=Error(w(461)),De=!1;function Le(e,t,n,r){t.child=e===null?bv(t,null,n,r):pi(t,e.child,n,r)}function Wp(e,t,n,r,i){n=n.render;var a=t.ref;if("ref"in r){var o={};for(var l in r)l!=="ref"&&(o[l]=r[l])}else o=r;return mi(t),r=gf(e,t,n,o,a,i),l=vf(),e!==null&&!De?(bf(e,t,i),pn(e,t,i)):(F&&l&&uf(t),t.flags|=1,Le(e,t,r,i),t.child)}function Fp(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!lf(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ab(e,t,a,r,i)):(e=Ro(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Of(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:ma,n(o,r)&&e.ref===t.ref)return pn(e,t,i)}return t.flags|=1,e=un(a,r),e.ref=t.ref,e.return=t,t.child=e}function ab(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(ma(a,r)&&e.ref===t.ref)if(De=!1,t.pendingProps=r=a,Of(e,i))e.flags&131072&&(De=!0);else return t.lanes=e.lanes,pn(e,t,i)}return gs(e,t,n,r,i)}function ob(e,t,n,r){var i=r.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(a=a!==null?a.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return eh(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Co(t,a!==null?a.cachePool:null),a!==null?Lp(t,a):cs(),Sv(t);else return r=t.lanes=536870912,eh(e,t,a!==null?a.baseLanes|n:n,n,r)}else a!==null?(Co(t,a.cachePool),Lp(t,a),wn(),t.memoizedState=null):(e!==null&&Co(t,null),cs(),wn());return Le(e,t,i,n),t.child}function Xr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function eh(e,t,n,r,i){var a=ff();return a=a===null?null:{parent:Ae._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Co(t,null),cs(),Sv(t),e!==null&&zr(e,t,r,!0),t.childLanes=i,null}function Zo(e,t){return t=ll({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function th(e,t,n){return pi(t,e.child,null,n),e=Zo(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function V1(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(F){if(r.mode==="hidden")return e=Zo(t,r),t.lanes=536870912,Xr(null,e);if(ss(t),(e=Se)?(e=Wb(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:Bt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},n=fv(e),n.return=t,t.child=n,Ge=t,Se=null)):e=null,e===null)throw Bn(t);return t.lanes=536870912,null}return Zo(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(ss(t),i)if(t.flags&256)t.flags&=-257,t=th(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(w(558));else if(De||zr(e,t,n,!1),i=(n&e.childLanes)!==0,De||i){if(r=me,r!==null&&(o=Mg(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Si(e,o),ct(r,e,o),Ef;fl(),t=th(e,t,n)}else e=a.treeContext,Se=Ut(o.nextSibling),Ge=t,F=!0,Dn=null,Ot=!1,e!==null&&mv(t,e),t=Zo(t,r),t.flags|=4096;return t}return e=un(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(w(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gs(e,t,n,r,i){return mi(t),n=gf(e,t,n,r,void 0,i),r=vf(),e!==null&&!De?(bf(e,t,i),pn(e,t,i)):(F&&r&&uf(t),t.flags|=1,Le(e,t,n,i),t.child)}function nh(e,t,n,r,i,a){return mi(t),t.updateQueue=null,n=zv(t,r,n,i),$v(e),r=vf(),e!==null&&!De?(bf(e,t,a),pn(e,t,a)):(F&&r&&uf(t),t.flags|=1,Le(e,t,n,a),t.child)}function ih(e,t,n,r,i){if(mi(t),t.stateNode===null){var a=Bi,o=n.contextType;typeof o=="object"&&o!==null&&(a=Ye(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ps,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},mf(t),o=n.contextType,a.context=typeof o=="object"&&o!==null?Ye(o):Bi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(bc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(o=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&ps.enqueueReplaceState(a,a.state,null),ia(t,r,a,i),na(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var l=t.memoizedProps,u=gi(n,l);a.props=u;var c=a.context,g=n.contextType;o=Bi,typeof g=="object"&&g!==null&&(o=Ye(g));var h=n.getDerivedStateFromProps;g=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l||c!==o)&&Kp(t,a,r,o),$n=!1;var d=t.memoizedState;a.state=d,ia(t,r,a,i),na(),c=t.memoizedState,l||d!==c||$n?(typeof h=="function"&&(bc(t,n,h,r),c=t.memoizedState),(u=$n||Qp(t,n,u,r,d,c,o))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=o,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ls(e,t),o=t.memoizedProps,g=gi(n,o),a.props=g,h=t.pendingProps,d=a.context,c=n.contextType,u=Bi,typeof c=="object"&&c!==null&&(u=Ye(c)),l=n.getDerivedStateFromProps,(c=typeof l=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==h||d!==u)&&Kp(t,a,r,u),$n=!1,d=t.memoizedState,a.state=d,ia(t,r,a,i),na();var v=t.memoizedState;o!==h||d!==v||$n||e!==null&&e.dependencies!==null&&el(e.dependencies)?(typeof l=="function"&&(bc(t,n,l,r),v=t.memoizedState),(g=$n||Qp(t,n,g,r,d,v,u)||e!==null&&e.dependencies!==null&&el(e.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=u,r=g):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,qo(e,t),r=(t.flags&128)!==0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&r?(t.child=pi(t,e.child,null,i),t.child=pi(t,null,n,i)):Le(e,t,n,i),t.memoizedState=a.state,e=t.child):e=pn(e,t,i),e}function rh(e,t,n,r){return di(),t.flags|=256,Le(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _c(e){return{baseLanes:e,cachePool:hv()}}function Sc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ht),e}function lb(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(Ee.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(F){if(i?xn(t):wn(),(e=Se)?(e=Wb(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:Bt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},n=fv(e),n.return=t,t.child=n,Ge=t,Se=null)):e=null,e===null)throw Bn(t);return Ns(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,i?(wn(),i=t.mode,l=ll({mode:"hidden",children:l},i),r=ui(r,i,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=_c(n),r.childLanes=Sc(e,o,n),t.memoizedState=yc,Xr(null,r)):(xn(t),vs(t,l))}var u=e.memoizedState;if(u!==null&&(l=u.dehydrated,l!==null)){if(a)t.flags&256?(xn(t),t.flags&=-257,t=$c(e,t,n)):t.memoizedState!==null?(wn(),t.child=e.child,t.flags|=128,t=null):(wn(),l=r.fallback,i=t.mode,r=ll({mode:"visible",children:r.children},i),l=ui(l,i,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,pi(t,e.child,null,n),r=t.child,r.memoizedState=_c(n),r.childLanes=Sc(e,o,n),t.memoizedState=yc,t=Xr(null,r));else if(xn(t),Ns(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var c=o.dgst;o=c,r=Error(w(419)),r.stack="",r.digest=o,ha({value:r,source:null,stack:null}),t=$c(e,t,n)}else if(De||zr(e,t,n,!1),o=(n&e.childLanes)!==0,De||o){if(o=me,o!==null&&(r=Mg(o,n),r!==0&&r!==u.retryLane))throw u.retryLane=r,Si(e,r),ct(o,e,r),Ef;Os(l)||fl(),t=$c(e,t,n)}else Os(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Se=Ut(l.nextSibling),Ge=t,F=!0,Dn=null,Ot=!1,e!==null&&mv(t,e),t=vs(t,r.children),t.flags|=4096);return t}return i?(wn(),l=r.fallback,i=t.mode,u=e.child,c=u.sibling,r=un(u,{mode:"hidden",children:r.children}),r.subtreeFlags=u.subtreeFlags&65011712,c!==null?l=un(c,l):(l=ui(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Xr(null,r),r=t.child,l=e.child.memoizedState,l===null?l=_c(n):(i=l.cachePool,i!==null?(u=Ae._currentValue,i=i.parent!==u?{parent:u,pool:u}:i):i=hv(),l={baseLanes:l.baseLanes|n,cachePool:i}),r.memoizedState=l,r.childLanes=Sc(e,o,n),t.memoizedState=yc,Xr(e.child,r)):(xn(t),n=e.child,e=n.sibling,n=un(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function vs(e,t){return t=ll({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ll(e,t){return e=pt(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return pi(t,e.child,null,n),e=vs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ah(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rs(e.return,t,n)}function zc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ub(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ee.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,he(Ee,o),Le(e,t,r,n),r=F?pa:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ah(e,n,t);else if(e.tag===19)ah(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&il(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zc(t,!1,i,n,a,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&il(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zc(t,!0,n,null,a,r);break;case"together":zc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yn|=t.lanes,!(n&t.childLanes))if(e!==null){if(zr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Of(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&el(e)))}function X1(e,t,n){switch(t.tag){case 3:Xo(t,t.stateNode.containerInfo),zn(t,Ae,e.memoizedState.cache),di();break;case 27:case 5:Yc(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ss(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(xn(t),t.flags|=128,null):n&t.child.childLanes?lb(e,t,n):(xn(t),e=pn(e,t,n),e!==null?e.sibling:null);xn(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(zr(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return ub(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),he(Ee,Ee.current),r)break;return null;case 22:return t.lanes=0,ob(e,t,n,t.pendingProps);case 24:zn(t,Ae,e.memoizedState.cache)}return pn(e,t,n)}function cb(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)De=!0;else{if(!Of(e,n)&&!(t.flags&128))return De=!1,X1(e,t,n);De=!!(e.flags&131072)}else De=!1,F&&t.flags&1048576&&dv(t,pa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ri(t.elementType),t.type=e,typeof e=="function")lf(e)?(r=gi(e,r),t.tag=1,t=ih(null,t,e,r,n)):(t.tag=0,t=gs(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===Vs){t.tag=11,t=Wp(null,t,e,r,n);break e}else if(i===Xs){t.tag=14,t=Fp(null,t,e,r,n);break e}}throw t=Bc(e)||e,Error(w(306,t,""))}}return t;case 0:return gs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=gi(r,t.pendingProps),ih(e,t,r,i,n);case 3:e:{if(Xo(t,t.stateNode.containerInfo),e===null)throw Error(w(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,ls(e,t),ia(t,r,null,n);var o=t.memoizedState;if(r=o.cache,zn(t,Ae,r),r!==a.cache&&as(t,[Ae],n,!0),na(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=rh(e,t,r,n);break e}else if(r!==i){i=Et(Error(w(424)),t),ha(i),t=rh(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Se=Ut(e.firstChild),Ge=t,F=!0,Dn=null,Ot=!0,n=bv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(di(),r===i){t=pn(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 26:return qo(e,t),e===null?(n=wh(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(n=t.type,e=t.pendingProps,r=hl(An.current).createElement(n),r[Be]=t,r[st]=e,Ve(r,n,e),qe(r),t.stateNode=r):t.memoizedState=wh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yc(t),e===null&&F&&(r=t.stateNode=Fb(t.type,t.pendingProps,An.current),Ge=t,Ot=!0,i=Se,Pn(t.type)?(js=i,Se=Ut(r.firstChild)):Se=i),Le(e,t,t.pendingProps.children,n),qo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((i=r=Se)&&(r=zx(r,t.type,t.pendingProps,Ot),r!==null?(t.stateNode=r,Ge=t,Se=Ut(r.firstChild),Ot=!1,i=!0):i=!1),i||Bn(t)),Yc(t),i=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,r=a.children,Ts(i,a)?r=null:o!==null&&Ts(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=gf(e,t,I1,null,null,n),Sa._currentValue=i),qo(e,t),Le(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=Se)&&(n=xx(n,t.pendingProps,Ot),n!==null?(t.stateNode=n,Ge=t,Se=null,e=!0):e=!1),e||Bn(t)),null;case 13:return lb(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pi(t,null,r,n):Le(e,t,r,n),t.child;case 11:return Wp(e,t,t.type,t.pendingProps,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,zn(t,t.type,r.value),Le(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,mi(t),i=Ye(i),r=r(i),t.flags|=1,Le(e,t,r,n),t.child;case 14:return Fp(e,t,t.type,t.pendingProps,n);case 15:return ab(e,t,t.type,t.pendingProps,n);case 19:return ub(e,t,n);case 31:return V1(e,t,n);case 22:return ob(e,t,n,t.pendingProps);case 24:return mi(t),r=Ye(Ae),e===null?(i=ff(),i===null&&(i=me,a=sf(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},mf(t),zn(t,Ae,i)):(e.lanes&n&&(ls(e,t),ia(t,null,null,n),na()),i=e.memoizedState,a=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),zn(t,Ae,r)):(r=a.cache,zn(t,Ae,r),r!==i.cache&&as(t,[Ae],n,!0))),Le(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(w(156,t.tag))}function Pt(e){e.flags|=4}function xc(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ab())e.flags|=8192;else throw si=tl,df}else e.flags&=-16777217}function oh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ny(t))if(Ab())e.flags|=8192;else throw si=tl,df}function $o(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dg():536870912,e.lanes|=t,ur|=t)}function Zr(e,t){if(!F)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function J1(e,t,n){var r=t.pendingProps;switch(cf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(t),null;case 1:return ye(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),cn(Ae),nr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Oi(t)?Pt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,hc())),ye(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Pt(t),a!==null?(ye(t),oh(t,a)):(ye(t),xc(t,i,null,r,n))):a?a!==e.memoizedState?(Pt(t),ye(t),oh(t,a)):(ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Pt(t),ye(t),xc(t,i,e,r,n)),null;case 27:if(Jo(t),n=An.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pt(t);else{if(!r){if(t.stateNode===null)throw Error(w(166));return ye(t),null}e=Xt.current,Oi(t)?Rp(t):(e=Fb(i,r,n),t.stateNode=e,Pt(t))}return ye(t),null;case 5:if(Jo(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pt(t);else{if(!r){if(t.stateNode===null)throw Error(w(166));return ye(t),null}if(a=Xt.current,Oi(t))Rp(t);else{var o=hl(An.current);switch(a){case 1:a=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":a=o.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is=="string"?o.createElement(i,{is:r.is}):o.createElement(i)}}a[Be]=t,a[st]=r;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;e:switch(Ve(a,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Pt(t)}}return ye(t),xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pt(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(w(166));if(e=An.current,Oi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ge,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Be]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||Qb(e.nodeValue,n)),e||Bn(t,!0)}else e=hl(e).createTextNode(r),e[Be]=t,t.stateNode=e}return ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Oi(t),n!==null){if(e===null){if(!r)throw Error(w(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(557));e[Be]=t}else di(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ye(t),e=!1}else n=hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if(t.flags&128)throw Error(w(558))}return ye(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(w(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(w(317));i[Be]=t}else di(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ye(t),i=!1}else i=hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),$o(t,t.updateQueue),ye(t),null);case 4:return nr(),e===null&&Cf(t.stateNode.containerInfo),ye(t),null;case 10:return cn(t.type),ye(t),null;case 19:if(He(Ee),r=t.memoizedState,r===null)return ye(t),null;if(i=(t.flags&128)!==0,a=r.rendering,a===null)if(i)Zr(r,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=il(e),a!==null){for(t.flags|=128,Zr(r,!1),e=a.updateQueue,t.updateQueue=e,$o(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)sv(n,e),n=n.sibling;return he(Ee,Ee.current&1|2),F&&nn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&gt()>cl&&(t.flags|=128,i=!0,Zr(r,!1),t.lanes=4194304)}else{if(!i)if(e=il(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,$o(t,e),Zr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!F)return ye(t),null}else 2*gt()-r.renderingStartTime>cl&&n!==536870912&&(t.flags|=128,i=!0,Zr(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e!==null?e.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=gt(),e.sibling=null,n=Ee.current,he(Ee,i?n&1|2:n&1),F&&nn(t,r.treeForkCount),e):(ye(t),null);case 22:case 23:return mt(t),pf(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),n=t.updateQueue,n!==null&&$o(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&He(ci),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),cn(Ae),ye(t),null;case 25:return null;case 30:return null}throw Error(w(156,t.tag))}function Q1(e,t){switch(cf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(Ae),nr(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Jo(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(w(340));di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(Ee),null;case 4:return nr(),null;case 10:return cn(t.type),null;case 22:case 23:return mt(t),pf(),e!==null&&He(ci),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cn(Ae),null;case 25:return null;default:return null}}function sb(e,t){switch(cf(t),t.tag){case 3:cn(Ae),nr();break;case 26:case 27:case 5:Jo(t);break;case 4:nr();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:He(Ee);break;case 10:cn(t.type);break;case 22:case 23:mt(t),pf(),e!==null&&He(ci);break;case 24:cn(Ae)}}function Za(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(l){ce(t,t.return,l)}}function Gn(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,l=o.destroy;if(l!==void 0){o.destroy=void 0,i=t;var u=n,c=l;try{c()}catch(g){ce(i,u,g)}}}r=r.next}while(r!==a)}}catch(g){ce(t,t.return,g)}}function fb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{_v(t,n)}catch(r){ce(e,e.return,r)}}}function db(e,t,n){n.props=gi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){ce(e,t,r)}}function aa(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){ce(e,t,i)}}function Yt(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){ce(e,t,i)}else n.current=null}function mb(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){ce(e,e.return,i)}}function wc(e,t,n){try{var r=e.stateNode;vx(r,e.type,n,t),r[st]=t}catch(i){ce(e,e.return,i)}}function pb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pn(e.type)||e.tag===4}function kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pb(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&&Pn(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 bs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&Pn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(bs(e,t,n),e=e.sibling;e!==null;)bs(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Pn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ul(e,t,n),e=e.sibling;e!==null;)ul(e,t,n),e=e.sibling}function hb(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ve(t,r,n),t[Be]=e,t[st]=n}catch(a){ce(e,e.return,a)}}var rn=!1,Ue=!1,Tc=!1,lh=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function K1(e,t){if(e=e.containerInfo,ws=yl,e=nv(e),rf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,u=-1,c=0,g=0,h=e,d=null;t:for(;;){for(var v;h!==n||i!==0&&h.nodeType!==3||(l=o+i),h!==a||r!==0&&h.nodeType!==3||(u=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(v=h.firstChild)!==null;)d=h,h=v;for(;;){if(h===e)break t;if(d===n&&++c===i&&(l=o),d===a&&++g===r&&(u=o),(v=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=v}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ks={focusedElem:e,selectionRange:n},yl=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var y=gi(n.type,i);e=r.getSnapshotBeforeUpdate(y,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(z){ce(n,n.return,z)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Es(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Es(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(w(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function gb(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ft(e,n),r&4&&Za(5,n);break;case 1:if(Ft(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){ce(n,n.return,o)}else{var i=gi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){ce(n,n.return,o)}}r&64&&fb(n),r&512&&aa(n,n.return);break;case 3:if(Ft(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{_v(e,t)}catch(o){ce(n,n.return,o)}}break;case 27:t===null&&r&4&&hb(n);case 26:case 5:Ft(e,n),t===null&&r&4&&mb(n),r&512&&aa(n,n.return);break;case 12:Ft(e,n);break;case 31:Ft(e,n),r&4&&yb(e,n);break;case 13:Ft(e,n),r&4&&_b(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ax.bind(null,n),wx(e,n))));break;case 22:if(r=n.memoizedState!==null||rn,!r){t=t!==null&&t.memoizedState!==null||Ue,i=rn;var a=Ue;rn=r,(Ue=t)&&!a?tn(e,n,(n.subtreeFlags&8772)!==0):Ft(e,n),rn=i,Ue=a}break;case 30:break;default:Ft(e,n)}}function vb(e){var t=e.alternate;t!==null&&(e.alternate=null,vb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ps(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xe=null,ot=!1;function Wt(e,t,n){for(n=n.child;n!==null;)bb(e,t,n),n=n.sibling}function bb(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Ua,n)}catch{}switch(n.tag){case 26:Ue||Yt(n,t),Wt(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ue||Yt(n,t);var r=xe,i=ot;Pn(n.type)&&(xe=n.stateNode,ot=!1),Wt(e,t,n),ca(n.stateNode),xe=r,ot=i;break;case 5:Ue||Yt(n,t);case 6:if(r=xe,i=ot,xe=null,Wt(e,t,n),xe=r,ot=i,xe!==null)if(ot)try{(xe.nodeType===9?xe.body:xe.nodeName==="HTML"?xe.ownerDocument.body:xe).removeChild(n.stateNode)}catch(a){ce(n,t,a)}else try{xe.removeChild(n.stateNode)}catch(a){ce(n,t,a)}break;case 18:xe!==null&&(ot?(e=xe,_h(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),dr(e)):_h(xe,n.stateNode));break;case 4:r=xe,i=ot,xe=n.stateNode.containerInfo,ot=!0,Wt(e,t,n),xe=r,ot=i;break;case 0:case 11:case 14:case 15:Gn(2,n,t),Ue||Gn(4,n,t),Wt(e,t,n);break;case 1:Ue||(Yt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&db(n,t,r)),Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:Ue=(r=Ue)||n.memoizedState!==null,Wt(e,t,n),Ue=r;break;default:Wt(e,t,n)}}function yb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{dr(e)}catch(n){ce(t,t.return,n)}}}function _b(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{dr(e)}catch(n){ce(t,t.return,n)}}function P1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lh),t;default:throw Error(w(435,e.tag))}}function zo(e,t){var n=P1(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=ox.bind(null,e,r);r.then(i,i)}})}function rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 27:if(Pn(l.type)){xe=l.stateNode,ot=!1;break e}break;case 5:xe=l.stateNode,ot=!1;break e;case 3:case 4:xe=l.stateNode.containerInfo,ot=!0;break e}l=l.return}if(xe===null)throw Error(w(160));bb(a,o,i),xe=null,ot=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sb(t,e),t=t.sibling}var It=null;function Sb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rt(t,e),at(e),r&4&&(Gn(3,e,e.return),Za(3,e),Gn(5,e,e.return));break;case 1:rt(t,e),at(e),r&512&&(Ue||n===null||Yt(n,n.return)),r&64&&rn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=It;if(rt(t,e),at(e),r&512&&(Ue||n===null||Yt(n,n.return)),r&4){var a=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":a=i.getElementsByTagName("title")[0],(!a||a[Ra]||a[Be]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector("head > title"))),Ve(a,r,n),a[Be]=e,qe(a),r=a;break e;case"link":var o=Th("link","href",i).get(r+(n.href||""));if(o){for(var l=0;l<o.length;l++)if(a=o[l],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}a=i.createElement(r),Ve(a,r,n),i.head.appendChild(a);break;case"meta":if(o=Th("meta","content",i).get(r+(n.content||""))){for(l=0;l<o.length;l++)if(a=o[l],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}a=i.createElement(r),Ve(a,r,n),i.head.appendChild(a);break;default:throw Error(w(468,r))}a[Be]=e,qe(a),r=a}e.stateNode=r}else Eh(i,e.type,e.stateNode);else e.stateNode=kh(i,r,e.memoizedProps);else a!==r?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Eh(i,e.type,e.stateNode):kh(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&wc(e,e.memoizedProps,n.memoizedProps)}break;case 27:rt(t,e),at(e),r&512&&(Ue||n===null||Yt(n,n.return)),n!==null&&r&4&&wc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(rt(t,e),at(e),r&512&&(Ue||n===null||Yt(n,n.return)),e.flags&32){i=e.stateNode;try{rr(i,"")}catch(y){ce(e,e.return,y)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,wc(e,i,n!==null?n.memoizedProps:i)),r&1024&&(Tc=!0);break;case 6:if(rt(t,e),at(e),r&4){if(e.stateNode===null)throw Error(w(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(y){ce(e,e.return,y)}}break;case 3:if(Bo=null,i=It,It=gl(t.containerInfo),rt(t,e),It=i,at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{dr(t.containerInfo)}catch(y){ce(e,e.return,y)}Tc&&(Tc=!1,$b(e));break;case 4:r=It,It=gl(e.stateNode.containerInfo),rt(t,e),at(e),It=r;break;case 12:rt(t,e),at(e);break;case 31:rt(t,e),at(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,zo(e,r)));break;case 13:rt(t,e),at(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Yl=gt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,zo(e,r)));break;case 22:i=e.memoizedState!==null;var u=n!==null&&n.memoizedState!==null,c=rn,g=Ue;if(rn=c||i,Ue=g||u,rt(t,e),Ue=g,rn=c,at(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||u||rn||Ue||ai(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){u=n=t;try{if(a=u.stateNode,i)o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{l=u.stateNode;var h=u.memoizedProps.style,d=h!=null&&h.hasOwnProperty("display")?h.display:null;l.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(y){ce(u,u.return,y)}}}else if(t.tag===6){if(n===null){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(y){ce(u,u.return,y)}}}else if(t.tag===18){if(n===null){u=t;try{var v=u.stateNode;i?Sh(v,!0):Sh(u.stateNode,!1)}catch(y){ce(u,u.return,y)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,zo(e,n))));break;case 19:rt(t,e),at(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,zo(e,r)));break;case 30:break;case 21:break;default:rt(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(pb(r)){n=r;break}r=r.return}if(n==null)throw Error(w(160));switch(n.tag){case 27:var i=n.stateNode,a=kc(e);ul(e,a,i);break;case 5:var o=n.stateNode;n.flags&32&&(rr(o,""),n.flags&=-33);var l=kc(e);ul(e,l,o);break;case 3:case 4:var u=n.stateNode.containerInfo,c=kc(e);bs(e,c,u);break;default:throw Error(w(161))}}catch(g){ce(e,e.return,g)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $b(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$b(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ft(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gb(e,t.alternate,t),t=t.sibling}function ai(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gn(4,t,t.return),ai(t);break;case 1:Yt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&db(t,t.return,n),ai(t);break;case 27:ca(t.stateNode);case 26:case 5:Yt(t,t.return),ai(t);break;case 22:t.memoizedState===null&&ai(t);break;case 30:ai(t);break;default:ai(t)}e=e.sibling}}function tn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:tn(i,a,n),Za(4,a);break;case 1:if(tn(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(c){ce(r,r.return,c)}if(r=a,i=r.updateQueue,i!==null){var l=r.stateNode;try{var u=i.shared.hiddenCallbacks;if(u!==null)for(i.shared.hiddenCallbacks=null,i=0;i<u.length;i++)yv(u[i],l)}catch(c){ce(r,r.return,c)}}n&&o&64&&fb(a),aa(a,a.return);break;case 27:hb(a);case 26:case 5:tn(i,a,n),n&&r===null&&o&4&&mb(a),aa(a,a.return);break;case 12:tn(i,a,n);break;case 31:tn(i,a,n),n&&o&4&&yb(i,a);break;case 13:tn(i,a,n),n&&o&4&&_b(i,a);break;case 22:a.memoizedState===null&&tn(i,a,n),aa(a,a.return);break;case 30:break;default:tn(i,a,n)}t=t.sibling}}function Nf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ma(n))}function jf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ma(e))}function Mt(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zb(e,t,n,r),t=t.sibling}function zb(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,n,r),i&2048&&Za(9,t);break;case 1:Mt(e,t,n,r);break;case 3:Mt(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ma(e)));break;case 12:if(i&2048){Mt(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,l=a.onPostCommit;typeof l=="function"&&l(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){ce(t,t.return,u)}}else Mt(e,t,n,r);break;case 31:Mt(e,t,n,r);break;case 13:Mt(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState!==null?a._visibility&2?Mt(e,t,n,r):oa(e,t):a._visibility&2?Mt(e,t,n,r):(a._visibility|=2,Ui(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Nf(o,t);break;case 24:Mt(e,t,n,r),i&2048&&jf(t.alternate,t);break;default:Mt(e,t,n,r)}}function Ui(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,o=t,l=n,u=r,c=o.flags;switch(o.tag){case 0:case 11:case 15:Ui(a,o,l,u,i),Za(8,o);break;case 23:break;case 22:var g=o.stateNode;o.memoizedState!==null?g._visibility&2?Ui(a,o,l,u,i):oa(a,o):(g._visibility|=2,Ui(a,o,l,u,i)),i&&c&2048&&Nf(o.alternate,o);break;case 24:Ui(a,o,l,u,i),i&&c&2048&&jf(o.alternate,o);break;default:Ui(a,o,l,u,i)}t=t.sibling}}function oa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:oa(n,r),i&2048&&Nf(r.alternate,r);break;case 24:oa(n,r),i&2048&&jf(r.alternate,r);break;default:oa(n,r)}t=t.sibling}}var Jr=8192;function Ni(e,t,n){if(e.subtreeFlags&Jr)for(e=e.child;e!==null;)xb(e,t,n),e=e.sibling}function xb(e,t,n){switch(e.tag){case 26:Ni(e,t,n),e.flags&Jr&&e.memoizedState!==null&&Mx(n,It,e.memoizedState,e.memoizedProps);break;case 5:Ni(e,t,n);break;case 3:case 4:var r=It;It=gl(e.stateNode.containerInfo),Ni(e,t,n),It=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Jr,Jr=16777216,Ni(e,t,n),Jr=r):Ni(e,t,n));break;default:Ni(e,t,n)}}function wb(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 qr(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ze=r,Tb(r,e)}wb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kb(e),e=e.sibling}function kb(e){switch(e.tag){case 0:case 11:case 15:qr(e),e.flags&2048&&Gn(9,e,e.return);break;case 3:qr(e);break;case 12:qr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ho(e)):qr(e);break;default:qr(e)}}function Ho(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ze=r,Tb(r,e)}wb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gn(8,t,t.return),Ho(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ho(t));break;default:Ho(t)}e=e.sibling}}function Tb(e,t){for(;Ze!==null;){var n=Ze;switch(n.tag){case 0:case 11:case 15:Gn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ma(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Ze=r;else e:for(n=e;Ze!==null;){r=Ze;var i=r.sibling,a=r.return;if(vb(r),r===n){Ze=null;break e}if(i!==null){i.return=a,Ze=i;break e}Ze=a}}}var W1={getCacheForType:function(e){var t=Ye(Ae),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ye(Ae).controller.signal}},F1=typeof WeakMap=="function"?WeakMap:Map,re=0,me=null,P=null,W=0,ue=0,dt=null,On=!1,wr=!1,Uf=!1,hn=0,ke=0,Yn=0,fi=0,Af=0,ht=0,ur=0,la=null,lt=null,ys=!1,Yl=0,Eb=0,cl=1/0,sl=null,Mn=null,Ce=0,In=null,cr=null,sn=0,_s=0,Ss=null,Ob=null,ua=0,$s=null;function yt(){return re&2&&W!==0?W&-W:I.T!==null?Rf():Ig()}function Nb(){if(ht===0)if(!(W&536870912)||F){var e=ho;ho<<=1,!(ho&3932160)&&(ho=262144),ht=e}else ht=536870912;return e=St.current,e!==null&&(e.flags|=32),ht}function ct(e,t,n){(e===me&&(ue===2||ue===9)||e.cancelPendingCommit!==null)&&(sr(e,0),Nn(e,W,ht,!1)),Da(e,n),(!(re&2)||e!==me)&&(e===me&&(!(re&2)&&(fi|=n),ke===4&&Nn(e,W,ht,!1)),Qt(e))}function jb(e,t,n){if(re&6)throw Error(w(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Aa(e,t),i=r?nx(e,t):Ec(e,t,!0),a=r;do{if(i===0){wr&&!r&&Nn(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!ex(n)){i=Ec(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var l=e;i=la;var u=l.current.memoizedState.isDehydrated;if(u&&(sr(l,o).flags|=256),o=Ec(l,o,!1),o!==2){if(Uf&&!u){l.errorRecoveryDisabledLanes|=a,fi|=a,i=4;break e}a=lt,lt=i,a!==null&&(lt===null?lt=a:lt.push.apply(lt,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){sr(e,0),Nn(e,t,0,!0);break}e:{switch(r=e,a=i,a){case 0:case 1:throw Error(w(345));case 4:if((t&4194048)!==t)break;case 6:Nn(r,t,ht,!On);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(w(329))}if((t&62914560)===t&&(i=Yl+300-gt(),10<i)){if(Nn(r,t,ht,!On),Dl(r,0,!0)!==0)break e;sn=t,r.timeoutHandle=Pb(uh.bind(null,r,n,lt,sl,ys,t,ht,fi,ur,On,a,"Throttled",-0,0),i);break e}uh(r,n,lt,sl,ys,t,ht,fi,ur,On,a,null,-0,0)}}break}while(!0);Qt(e)}function uh(e,t,n,r,i,a,o,l,u,c,g,h,d,v){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},xb(t,a,h);var y=(a&62914560)===a?Yl-gt():(a&4194048)===a?Eb-gt():0;if(y=Ix(h,y),y!==null){sn=a,e.cancelPendingCommit=y(sh.bind(null,e,t,a,n,r,i,o,l,u,g,h,null,d,v)),Nn(e,a,o,!c);return}}sh(e,t,a,n,r,i,o,l,u)}function ex(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!_t(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nn(e,t,n,r){t&=~Af,t&=~fi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-bt(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Rg(e,n,t)}function Vl(){return re&6?!0:(qa(0),!1)}function Df(){if(P!==null){if(ue===0)var e=P.return;else e=P,ln=$i=null,yf(e),Pi=null,ga=0,e=P;for(;e!==null;)sb(e.alternate,e),e=e.return;P=null}}function sr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_x(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),sn=0,Df(),me=e,P=n=un(e.current,null),W=t,ue=0,dt=null,On=!1,wr=Aa(e,t),Uf=!1,ur=ht=Af=fi=Yn=ke=0,lt=la=null,ys=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-bt(r),a=1<<i;t|=e[i],r&=~a}return hn=t,Il(),n}function Ub(e,t){L=null,I.H=ba,t===xr||t===ql?(t=qp(),ue=3):t===df?(t=qp(),ue=4):ue=t===Ef?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,dt=t,P===null&&(ke=1,ol(e,Et(t,e.current)))}function Ab(){var e=St.current;return e===null?!0:(W&4194048)===W?jt===null:(W&62914560)===W||W&536870912?e===jt:!1}function Db(){var e=I.H;return I.H=ba,e===null?ba:e}function Rb(){var e=I.A;return I.A=W1,e}function fl(){ke=4,On||(W&4194048)!==W&&St.current!==null||(wr=!0),!(Yn&134217727)&&!(fi&134217727)||me===null||Nn(me,W,ht,!1)}function Ec(e,t,n){var r=re;re|=2;var i=Db(),a=Rb();(me!==e||W!==t)&&(sl=null,sr(e,t)),t=!1;var o=ke;e:do try{if(ue!==0&&P!==null){var l=P,u=dt;switch(ue){case 8:Df(),o=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var c=ue;if(ue=0,dt=null,Vi(e,l,u,c),n&&wr){o=0;break e}break;default:c=ue,ue=0,dt=null,Vi(e,l,u,c)}}tx(),o=ke;break}catch(g){Ub(e,g)}while(!0);return t&&e.shellSuspendCounter++,ln=$i=null,re=r,I.H=i,I.A=a,P===null&&(me=null,W=0,Il()),o}function tx(){for(;P!==null;)Cb(P)}function nx(e,t){var n=re;re|=2;var r=Db(),i=Rb();me!==e||W!==t?(sl=null,cl=gt()+500,sr(e,t)):wr=Aa(e,t);e:do try{if(ue!==0&&P!==null){t=P;var a=dt;t:switch(ue){case 1:ue=0,dt=null,Vi(e,t,a,1);break;case 2:case 9:if(Zp(a)){ue=0,dt=null,ch(t);break}t=function(){ue!==2&&ue!==9||me!==e||(ue=7),Qt(e)},a.then(t,t);break e;case 3:ue=7;break e;case 4:ue=5;break e;case 7:Zp(a)?(ue=0,dt=null,ch(t)):(ue=0,dt=null,Vi(e,t,a,7));break;case 5:var o=null;switch(P.tag){case 26:o=P.memoizedState;case 5:case 27:var l=P;if(o?ny(o):l.stateNode.complete){ue=0,dt=null;var u=l.sibling;if(u!==null)P=u;else{var c=l.return;c!==null?(P=c,Xl(c)):P=null}break t}}ue=0,dt=null,Vi(e,t,a,5);break;case 6:ue=0,dt=null,Vi(e,t,a,6);break;case 8:Df(),ke=6;break e;default:throw Error(w(462))}}ix();break}catch(g){Ub(e,g)}while(!0);return ln=$i=null,I.H=r,I.A=i,re=n,P!==null?0:(me=null,W=0,Il(),ke)}function ix(){for(;P!==null&&!kz();)Cb(P)}function Cb(e){var t=cb(e.alternate,e,hn);e.memoizedProps=e.pendingProps,t===null?Xl(e):P=t}function ch(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=nh(n,t,t.pendingProps,t.type,void 0,W);break;case 11:t=nh(n,t,t.pendingProps,t.type.render,t.ref,W);break;case 5:yf(t);default:sb(n,t),t=P=sv(t,hn),t=cb(n,t,hn)}e.memoizedProps=e.pendingProps,t===null?Xl(e):P=t}function Vi(e,t,n,r){ln=$i=null,yf(t),Pi=null,ga=0;var i=t.return;try{if(Y1(e,i,t,n,W)){ke=1,ol(e,Et(n,e.current)),P=null;return}}catch(a){if(i!==null)throw P=i,a;ke=1,ol(e,Et(n,e.current)),P=null;return}t.flags&32768?(F||r===1?e=!0:wr||W&536870912?e=!1:(On=e=!0,(r===2||r===9||r===3||r===6)&&(r=St.current,r!==null&&r.tag===13&&(r.flags|=16384))),Mb(t,e)):Xl(t)}function Xl(e){var t=e;do{if(t.flags&32768){Mb(t,On);return}e=t.return;var n=J1(t.alternate,t,hn);if(n!==null){P=n;return}if(t=t.sibling,t!==null){P=t;return}P=t=e}while(t!==null);ke===0&&(ke=5)}function Mb(e,t){do{var n=Q1(e.alternate,e);if(n!==null){n.flags&=32767,P=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){P=e;return}P=e=n}while(e!==null);ke=6,P=null}function sh(e,t,n,r,i,a,o,l,u){e.cancelPendingCommit=null;do Jl();while(Ce!==0);if(re&6)throw Error(w(327));if(t!==null){if(t===e.current)throw Error(w(177));if(a=t.lanes|t.childLanes,a|=af,Cz(e,n,a,o,l,u),e===me&&(P=me=null,W=0),cr=t,In=e,sn=n,_s=a,Ss=i,Ob=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,lx(Qo,function(){return Lb(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=I.T,I.T=null,i=ae.p,ae.p=2,o=re,re|=4;try{K1(e,t,n)}finally{re=o,ae.p=i,I.T=r}}Ce=1,Ib(),Zb(),qb()}}function Ib(){if(Ce===1){Ce=0;var e=In,t=cr,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=ae.p;ae.p=2;var i=re;re|=4;try{Sb(t,e);var a=ks,o=nv(e.containerInfo),l=a.focusedElem,u=a.selectionRange;if(o!==l&&l&&l.ownerDocument&&tv(l.ownerDocument.documentElement,l)){if(u!==null&&rf(l)){var c=u.start,g=u.end;if(g===void 0&&(g=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(g,l.value.length);else{var h=l.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var v=d.getSelection(),y=l.textContent.length,z=Math.min(u.start,y),x=u.end===void 0?z:Math.min(u.end,y);!v.extend&&z>x&&(o=x,x=z,z=o);var s=Up(l,z),f=Up(l,x);if(s&&f&&(v.rangeCount!==1||v.anchorNode!==s.node||v.anchorOffset!==s.offset||v.focusNode!==f.node||v.focusOffset!==f.offset)){var p=h.createRange();p.setStart(s.node,s.offset),v.removeAllRanges(),z>x?(v.addRange(p),v.extend(f.node,f.offset)):(p.setEnd(f.node,f.offset),v.addRange(p))}}}}for(h=[],v=l;v=v.parentNode;)v.nodeType===1&&h.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<h.length;l++){var _=h[l];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}yl=!!ws,ks=ws=null}finally{re=i,ae.p=r,I.T=n}}e.current=t,Ce=2}}function Zb(){if(Ce===2){Ce=0;var e=In,t=cr,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=ae.p;ae.p=2;var i=re;re|=4;try{gb(e,t.alternate,t)}finally{re=i,ae.p=r,I.T=n}}Ce=3}}function qb(){if(Ce===4||Ce===3){Ce=0,Tz();var e=In,t=cr,n=sn,r=Ob;t.subtreeFlags&10256||t.flags&10256?Ce=5:(Ce=0,cr=In=null,Hb(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Mn=null),Ks(n),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=I.T,i=ae.p,ae.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var l=r[o];a(l.value,{componentStack:l.stack})}}finally{I.T=t,ae.p=i}}sn&3&&Jl(),Qt(e),i=e.pendingLanes,n&261930&&i&42?e===$s?ua++:(ua=0,$s=e):ua=0,qa(0)}}function Hb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ma(t)))}function Jl(){return Ib(),Zb(),qb(),Lb()}function Lb(){if(Ce!==5)return!1;var e=In,t=_s;_s=0;var n=Ks(sn),r=I.T,i=ae.p;try{ae.p=32>n?32:n,I.T=null,n=Ss,Ss=null;var a=In,o=sn;if(Ce=0,cr=In=null,sn=0,re&6)throw Error(w(331));var l=re;if(re|=4,kb(a.current),zb(a,a.current,o,n),re=l,qa(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Ua,a)}catch{}return!0}finally{ae.p=i,I.T=r,Hb(e,t)}}function fh(e,t,n){t=Et(n,t),t=hs(e.stateNode,t,2),e=Cn(e,t,2),e!==null&&(Da(e,2),Qt(e))}function ce(e,t,n){if(e.tag===3)fh(e,e,n);else for(;t!==null;){if(t.tag===3){fh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mn===null||!Mn.has(r))){e=Et(n,e),n=ib(2),r=Cn(t,n,2),r!==null&&(rb(n,r,t,e),Da(r,2),Qt(r));break}}t=t.return}}function Oc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new F1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Uf=!0,i.add(n),e=rx.bind(null,e,t,n),t.then(e,e))}function rx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,me===e&&(W&n)===n&&(ke===4||ke===3&&(W&62914560)===W&&300>gt()-Yl?!(re&2)&&sr(e,0):Af|=n,ur===W&&(ur=0)),Qt(e)}function Bb(e,t){t===0&&(t=Dg()),e=Si(e,t),e!==null&&(Da(e,t),Qt(e))}function ax(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bb(e,n)}function ox(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(w(314))}r!==null&&r.delete(t),Bb(e,n)}function lx(e,t){return Js(e,t)}var dl=null,Ai=null,zs=!1,ml=!1,Nc=!1,jn=0;function Qt(e){e!==Ai&&e.next===null&&(Ai===null?dl=Ai=e:Ai=Ai.next=e),ml=!0,zs||(zs=!0,cx())}function qa(e,t){if(!Nc&&ml){Nc=!0;do for(var n=!1,r=dl;r!==null;){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,l=r.pingedLanes;a=(1<<31-bt(42|e)+1)-1,a&=i&~(o&~l),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dh(r,a))}else a=W,a=Dl(r,r===me?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Aa(r,a)||(n=!0,dh(r,a));r=r.next}while(n);Nc=!1}}function ux(){Gb()}function Gb(){ml=zs=!1;var e=0;jn!==0&&yx()&&(e=jn);for(var t=gt(),n=null,r=dl;r!==null;){var i=r.next,a=Yb(r,t);a===0?(r.next=null,n===null?dl=i:n.next=i,i===null&&(Ai=n)):(n=r,(e!==0||a&3)&&(ml=!0)),r=i}Ce!==0&&Ce!==5||qa(e),jn!==0&&(jn=0)}function Yb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-bt(a),l=1<<o,u=i[o];u===-1?(!(l&n)||l&r)&&(i[o]=Rz(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}if(t=me,n=W,n=Dl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ue===2||ue===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&rc(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Aa(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&rc(r),Ks(n)){case 2:case 8:n=Ug;break;case 32:n=Qo;break;case 268435456:n=Ag;break;default:n=Qo}return r=Vb.bind(null,e),n=Js(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&rc(r),e.callbackPriority=2,e.callbackNode=null,2}function Vb(e,t){if(Ce!==0&&Ce!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Jl()&&e.callbackNode!==n)return null;var r=W;return r=Dl(e,e===me?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(jb(e,r,t),Yb(e,gt()),e.callbackNode!=null&&e.callbackNode===n?Vb.bind(null,e):null)}function dh(e,t){if(Jl())return null;jb(e,t,!0)}function cx(){Sx(function(){re&6?Js(jg,ux):Gb()})}function Rf(){if(jn===0){var e=ar;e===0&&(e=po,po<<=1,!(po&261888)&&(po=256)),jn=e}return jn}function mh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Uo(""+e)}function ph(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function sx(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var a=mh((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?mh(t.formAction):o.getAttribute("formAction"),t!==null&&(a=t,o=null));var l=new Rl("action","action",null,r,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(jn!==0){var u=o?ph(i,o):new FormData(i);ms(n,{pending:!0,data:u,method:i.method,action:a},null,u)}}else typeof a=="function"&&(l.preventDefault(),u=o?ph(i,o):new FormData(i),ms(n,{pending:!0,data:u,method:i.method,action:a},a,u))},currentTarget:i}]})}}for(var jc=0;jc<ts.length;jc++){var Uc=ts[jc],fx=Uc.toLowerCase(),dx=Uc[0].toUpperCase()+Uc.slice(1);qt(fx,"on"+dx)}qt(rv,"onAnimationEnd");qt(av,"onAnimationIteration");qt(ov,"onAnimationStart");qt("dblclick","onDoubleClick");qt("focusin","onFocus");qt("focusout","onBlur");qt(E1,"onTransitionRun");qt(O1,"onTransitionStart");qt(N1,"onTransitionCancel");qt(lv,"onTransitionEnd");ir("onMouseEnter",["mouseout","mouseover"]);ir("onMouseLeave",["mouseout","mouseover"]);ir("onPointerEnter",["pointerout","pointerover"]);ir("onPointerLeave",["pointerout","pointerover"]);bi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));bi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));bi("onBeforeInput",["compositionend","keypress","textInput","paste"]);bi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));bi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));bi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ya="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(" "),mx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ya));function Xb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==a&&i.isPropagationStopped())break e;a=l,i.currentTarget=c;try{a(i)}catch(g){Po(g)}i.currentTarget=null,a=u}else for(o=0;o<r.length;o++){if(l=r[o],u=l.instance,c=l.currentTarget,l=l.listener,u!==a&&i.isPropagationStopped())break e;a=l,i.currentTarget=c;try{a(i)}catch(g){Po(g)}i.currentTarget=null,a=u}}}}function K(e,t){var n=t[Xc];n===void 0&&(n=t[Xc]=new Set);var r=e+"__bubble";n.has(r)||(Jb(t,e,2,!1),n.add(r))}function Ac(e,t,n){var r=0;t&&(r|=4),Jb(n,e,r,t)}var xo="_reactListening"+Math.random().toString(36).slice(2);function Cf(e){if(!e[xo]){e[xo]=!0,Zg.forEach(function(n){n!=="selectionchange"&&(mx.has(n)||Ac(n,!1,e),Ac(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xo]||(t[xo]=!0,Ac("selectionchange",!1,t))}}function Jb(e,t,n,r){switch(ly(t)){case 2:var i=Hx;break;case 8:i=Lx;break;default:i=qf}n=i.bind(null,t,n,e),i=void 0,!Wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dc(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;l!==null;){if(o=Mi(l),o===null)return;if(u=o.tag,u===5||u===6||u===26||u===27){r=a=o;continue e}l=l.parentNode}}r=r.return}Xg(function(){var c=a,g=Fs(n),h=[];e:{var d=uv.get(e);if(d!==void 0){var v=Rl,y=e;switch(e){case"keypress":if(Do(n)===0)break e;case"keydown":case"keyup":v=o1;break;case"focusin":y="focus",v=cc;break;case"focusout":y="blur",v=cc;break;case"beforeblur":case"afterblur":v=cc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=$p;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Jz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=c1;break;case rv:case av:case ov:v=Pz;break;case lv:v=f1;break;case"scroll":case"scrollend":v=Vz;break;case"wheel":v=m1;break;case"copy":case"cut":case"paste":v=Fz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=xp;break;case"toggle":case"beforetoggle":v=h1}var z=(t&4)!==0,x=!z&&(e==="scroll"||e==="scrollend"),s=z?d!==null?d+"Capture":null:d;z=[];for(var f=c,p;f!==null;){var _=f;if(p=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||p===null||s===null||(_=fa(f,s),_!=null&&z.push(_a(f,_,p))),x)break;f=f.return}0<z.length&&(d=new v(d,y,null,n,g),h.push({event:d,listeners:z}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",d&&n!==Pc&&(y=n.relatedTarget||n.fromElement)&&(Mi(y)||y[Sr]))break e;if((v||d)&&(d=g.window===g?g:(d=g.ownerDocument)?d.defaultView||d.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=c,y=y?Mi(y):null,y!==null&&(x=ja(y),z=y.tag,y!==x||z!==5&&z!==27&&z!==6)&&(y=null)):(v=null,y=c),v!==y)){if(z=$p,_="onMouseLeave",s="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(z=xp,_="onPointerLeave",s="onPointerEnter",f="pointer"),x=v==null?d:Vr(v),p=y==null?d:Vr(y),d=new z(_,f+"leave",v,n,g),d.target=x,d.relatedTarget=p,_=null,Mi(g)===c&&(z=new z(s,f+"enter",y,n,g),z.target=p,z.relatedTarget=x,_=z),x=_,v&&y)t:{for(z=px,s=v,f=y,p=0,_=s;_;_=z(_))p++;_=0;for(var k=f;k;k=z(k))_++;for(;0<p-_;)s=z(s),p--;for(;0<_-p;)f=z(f),_--;for(;p--;){if(s===f||f!==null&&s===f.alternate){z=s;break t}s=z(s),f=z(f)}z=null}else z=null;v!==null&&hh(h,d,v,z,!1),y!==null&&x!==null&&hh(h,x,y,z,!0)}}e:{if(d=c?Vr(c):window,v=d.nodeName&&d.nodeName.toLowerCase(),v==="select"||v==="input"&&d.type==="file")var j=Ep;else if(Tp(d))if(Fg)j=w1;else{j=z1;var T=$1}else v=d.nodeName,!v||v.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?c&&Ws(c.elementType)&&(j=Ep):j=x1;if(j&&(j=j(e,c))){Wg(h,j,n,g);break e}T&&T(e,d,c),e==="focusout"&&c&&d.type==="number"&&c.memoizedProps.value!=null&&Kc(d,"number",d.value)}switch(T=c?Vr(c):window,e){case"focusin":(Tp(T)||T.contentEditable==="true")&&(qi=T,Fc=c,Fr=null);break;case"focusout":Fr=Fc=qi=null;break;case"mousedown":es=!0;break;case"contextmenu":case"mouseup":case"dragend":es=!1,Ap(h,n,g);break;case"selectionchange":if(T1)break;case"keydown":case"keyup":Ap(h,n,g)}var A;if(nf)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Zi?Kg(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Qg&&n.locale!=="ko"&&(Zi||R!=="onCompositionStart"?R==="onCompositionEnd"&&Zi&&(A=Jg()):(En=g,ef="value"in En?En.value:En.textContent,Zi=!0)),T=pl(c,R),0<T.length&&(R=new zp(R,e,null,n,g),h.push({event:R,listeners:T}),A?R.data=A:(A=Pg(n),A!==null&&(R.data=A)))),(A=v1?b1(e,n):y1(e,n))&&(R=pl(c,"onBeforeInput"),0<R.length&&(T=new zp("onBeforeInput","beforeinput",null,n,g),h.push({event:T,listeners:R}),T.data=A)),sx(h,e,c,n,g)}Xb(h,t)})}function _a(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=fa(e,n),i!=null&&r.unshift(_a(e,i,a)),i=fa(e,t),i!=null&&r.push(_a(e,i,a))),e.tag===3)return r;e=e.return}return[]}function px(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hh(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(l=l.tag,u!==null&&u===r)break;l!==5&&l!==26&&l!==27||c===null||(u=c,i?(c=fa(n,a),c!=null&&o.unshift(_a(n,c,u))):i||(c=fa(n,a),c!=null&&o.push(_a(n,c,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var hx=/\r\n?/g,gx=/\u0000|\uFFFD/g;function gh(e){return(typeof e=="string"?e:""+e).replace(hx,`
55
+ `).replace(gx,"")}function Qb(e,t){return t=gh(t),gh(e)===t}function se(e,t,n,r,i,a){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||rr(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&rr(e,""+r);break;case"className":vo(e,"class",r);break;case"tabIndex":vo(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":vo(e,n,r);break;case"style":Vg(e,r,a);break;case"data":if(t!=="object"){vo(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Uo(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&se(e,t,"name",i.name,i,null),se(e,t,"formEncType",i.formEncType,i,null),se(e,t,"formMethod",i.formMethod,i,null),se(e,t,"formTarget",i.formTarget,i,null)):(se(e,t,"encType",i.encType,i,null),se(e,t,"method",i.method,i,null),se(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Uo(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=on);break;case"onScroll":r!=null&&K("scroll",e);break;case"onScrollEnd":r!=null&&K("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(w(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Uo(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":K("beforetoggle",e),K("toggle",e),jo(e,"popover",r);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":jo(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gz.get(n)||n,jo(e,n,r))}}function xs(e,t,n,r,i,a){switch(n){case"style":Vg(e,r,a);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(w(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"children":typeof r=="string"?rr(e,r):(typeof r=="number"||typeof r=="bigint")&&rr(e,""+r);break;case"onScroll":r!=null&&K("scroll",e);break;case"onScrollEnd":r!=null&&K("scrollend",e);break;case"onClick":r!=null&&(e.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),a=e[st]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,i),typeof r=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):jo(e,n,r)}}}function Ve(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":K("error",e),K("load",e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:se(e,t,a,o,n,null)}}i&&se(e,t,"srcSet",n.srcSet,n,null),r&&se(e,t,"src",n.src,n,null);return;case"input":K("invalid",e);var l=a=o=i=null,u=null,c=null;for(r in n)if(n.hasOwnProperty(r)){var g=n[r];if(g!=null)switch(r){case"name":i=g;break;case"type":o=g;break;case"checked":u=g;break;case"defaultChecked":c=g;break;case"value":a=g;break;case"defaultValue":l=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(w(137,t));break;default:se(e,t,r,g,n,null)}}Bg(e,a,l,u,c,o,i,!1);return;case"select":K("invalid",e),r=o=a=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"multiple":r=l;default:se(e,t,i,l,n,null)}t=a,n=o,e.multiple=!!r,t!=null?Ji(e,!!r,t,!1):n!=null&&Ji(e,!!r,n,!0);return;case"textarea":K("invalid",e),a=i=r=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"children":a=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(w(91));break;default:se(e,t,o,l,n,null)}Yg(e,r,i,a);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:se(e,t,u,r,n,null)}return;case"dialog":K("beforetoggle",e),K("toggle",e),K("cancel",e),K("close",e);break;case"iframe":case"object":K("load",e);break;case"video":case"audio":for(r=0;r<ya.length;r++)K(ya[r],e);break;case"image":K("error",e),K("load",e);break;case"details":K("toggle",e);break;case"embed":case"source":case"link":K("error",e),K("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(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:se(e,t,c,r,n,null)}return;default:if(Ws(t)){for(g in n)n.hasOwnProperty(g)&&(r=n[g],r!==void 0&&xs(e,t,g,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&se(e,t,l,r,n,null))}function vx(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,o=null,l=null,u=null,c=null,g=null;for(v in n){var h=n[v];if(n.hasOwnProperty(v)&&h!=null)switch(v){case"checked":break;case"value":break;case"defaultValue":u=h;default:r.hasOwnProperty(v)||se(e,t,v,null,r,h)}}for(var d in r){var v=r[d];if(h=n[d],r.hasOwnProperty(d)&&(v!=null||h!=null))switch(d){case"type":a=v;break;case"name":i=v;break;case"checked":c=v;break;case"defaultChecked":g=v;break;case"value":o=v;break;case"defaultValue":l=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(w(137,t));break;default:v!==h&&se(e,t,d,v,r,h)}}Qc(e,o,l,u,c,g,a,i);return;case"select":v=o=l=d=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":v=u;default:r.hasOwnProperty(a)||se(e,t,a,null,r,u)}for(i in r)if(a=r[i],u=n[i],r.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case"value":d=a;break;case"defaultValue":l=a;break;case"multiple":o=a;default:a!==u&&se(e,t,i,a,r,u)}t=l,n=o,r=v,d!=null?Ji(e,!!n,d,!1):!!r!=!!n&&(t!=null?Ji(e,!!n,t,!0):Ji(e,!!n,n?[]:"",!1));return;case"textarea":v=d=null;for(l in n)if(i=n[l],n.hasOwnProperty(l)&&i!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:se(e,t,l,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case"value":d=i;break;case"defaultValue":v=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(w(91));break;default:i!==a&&se(e,t,o,i,r,a)}Gg(e,d,v);return;case"option":for(var y in n)if(d=n[y],n.hasOwnProperty(y)&&d!=null&&!r.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:se(e,t,y,null,r,d)}for(u in r)if(d=r[u],v=n[u],r.hasOwnProperty(u)&&d!==v&&(d!=null||v!=null))switch(u){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:se(e,t,u,d,r,v)}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 z in n)d=n[z],n.hasOwnProperty(z)&&d!=null&&!r.hasOwnProperty(z)&&se(e,t,z,null,r,d);for(c in r)if(d=r[c],v=n[c],r.hasOwnProperty(c)&&d!==v&&(d!=null||v!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(w(137,t));break;default:se(e,t,c,d,r,v)}return;default:if(Ws(t)){for(var x in n)d=n[x],n.hasOwnProperty(x)&&d!==void 0&&!r.hasOwnProperty(x)&&xs(e,t,x,void 0,r,d);for(g in r)d=r[g],v=n[g],!r.hasOwnProperty(g)||d===v||d===void 0&&v===void 0||xs(e,t,g,d,r,v);return}}for(var s in n)d=n[s],n.hasOwnProperty(s)&&d!=null&&!r.hasOwnProperty(s)&&se(e,t,s,null,r,d);for(h in r)d=r[h],v=n[h],!r.hasOwnProperty(h)||d===v||d==null&&v==null||se(e,t,h,d,r,v)}function vh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,l=i.duration;if(a&&l&&vh(o)){for(o=0,l=i.responseEnd,r+=1;r<n.length;r++){var u=n[r],c=u.startTime;if(c>l)break;var g=u.transferSize,h=u.initiatorType;g&&vh(h)&&(u=u.responseEnd,o+=g*(u<l?1:(l-c)/(u-c)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ws=null,ks=null;function hl(e){return e.nodeType===9?e:e.ownerDocument}function bh(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 Kb(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 Ts(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 Rc=null;function yx(){var e=window.event;return e&&e.type==="popstate"?e===Rc?!1:(Rc=e,!0):(Rc=null,!1)}var Pb=typeof setTimeout=="function"?setTimeout:void 0,_x=typeof clearTimeout=="function"?clearTimeout:void 0,yh=typeof Promise=="function"?Promise:void 0,Sx=typeof queueMicrotask=="function"?queueMicrotask:typeof yh<"u"?function(e){return yh.resolve(null).then(e).catch($x)}:Pb;function $x(e){setTimeout(function(){throw e})}function Pn(e){return e==="head"}function _h(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(i),dr(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")ca(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ca(n);for(var a=n.firstChild;a;){var o=a.nextSibling,l=a.nodeName;a[Ra]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}else n==="body"&&ca(e.ownerDocument.body);n=i}while(n);dr(t)}function Sh(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function Es(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Es(n),Ps(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zx(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Ra])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function xx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ut(e.nextSibling),e===null))return null;return e}function Wb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ut(e.nextSibling),e===null))return null;return e}function Os(e){return e.data==="$?"||e.data==="$~"}function Ns(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Ut(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 js=null;function $h(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ut(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Fb(e,t,n){switch(t=hl(n),e){case"html":if(e=t.documentElement,!e)throw Error(w(452));return e;case"head":if(e=t.head,!e)throw Error(w(453));return e;case"body":if(e=t.body,!e)throw Error(w(454));return e;default:throw Error(w(451))}}function ca(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ps(e)}var Dt=new Map,xh=new Set;function gl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vn=ae.d;ae.d={f:kx,r:Tx,D:Ex,C:Ox,L:Nx,m:jx,X:Ax,S:Ux,M:Dx};function kx(){var e=vn.f(),t=Vl();return e||t}function Tx(e){var t=$r(e);t!==null&&t.tag===5&&t.type==="form"?Vv(t):vn.r(e)}var kr=typeof document>"u"?null:document;function ey(e,t,n){var r=kr;if(r&&typeof t=="string"&&t){var i=Tt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),xh.has(i)||(xh.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Ve(t,"link",e),qe(t),r.head.appendChild(t)))}}function Ex(e){vn.D(e),ey("dns-prefetch",e,null)}function Ox(e,t){vn.C(e,t),ey("preconnect",e,t)}function Nx(e,t,n){vn.L(e,t,n);var r=kr;if(r&&e&&t){var i='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Tt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Tt(n.imageSizes)+'"]')):i+='[href="'+Tt(e)+'"]';var a=i;switch(t){case"style":a=fr(e);break;case"script":a=Tr(e)}Dt.has(a)||(e=ze({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Dt.set(a,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Ha(a))||t==="script"&&r.querySelector(La(a))||(t=r.createElement("link"),Ve(t,"link",e),qe(t),r.head.appendChild(t)))}}function jx(e,t){vn.m(e,t);var n=kr;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Tt(r)+'"][href="'+Tt(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Tr(e)}if(!Dt.has(a)&&(e=ze({rel:"modulepreload",href:e},t),Dt.set(a,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(La(a)))return}r=n.createElement("link"),Ve(r,"link",e),qe(r),n.head.appendChild(r)}}}function Ux(e,t,n){vn.S(e,t,n);var r=kr;if(r&&e){var i=Xi(r).hoistableStyles,a=fr(e);t=t||"default";var o=i.get(a);if(!o){var l={loading:0,preload:null};if(o=r.querySelector(Ha(a)))l.loading=5;else{e=ze({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Dt.get(a))&&Mf(e,n);var u=o=r.createElement("link");qe(u),Ve(u,"link",e),u._p=new Promise(function(c,g){u.onload=c,u.onerror=g}),u.addEventListener("load",function(){l.loading|=1}),u.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Lo(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},i.set(a,o)}}}function Ax(e,t){vn.X(e,t);var n=kr;if(n&&e){var r=Xi(n).hoistableScripts,i=Tr(e),a=r.get(i);a||(a=n.querySelector(La(i)),a||(e=ze({src:e,async:!0},t),(t=Dt.get(i))&&If(e,t),a=n.createElement("script"),qe(a),Ve(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function Dx(e,t){vn.M(e,t);var n=kr;if(n&&e){var r=Xi(n).hoistableScripts,i=Tr(e),a=r.get(i);a||(a=n.querySelector(La(i)),a||(e=ze({src:e,async:!0,type:"module"},t),(t=Dt.get(i))&&If(e,t),a=n.createElement("script"),qe(a),Ve(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function wh(e,t,n,r){var i=(i=An.current)?gl(i):null;if(!i)throw Error(w(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=fr(n.href),n=Xi(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=fr(n.href);var a=Xi(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Ha(e)))&&!a._p&&(o.instance=a,o.state.loading=5),Dt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Dt.set(e,n),a||Rx(i,e,n,o.state))),t&&r===null)throw Error(w(528,""));return o}if(t&&r!==null)throw Error(w(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Tr(n),n=Xi(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(w(444,e))}}function fr(e){return'href="'+Tt(e)+'"'}function Ha(e){return'link[rel="stylesheet"]['+e+"]"}function ty(e){return ze({},e,{"data-precedence":e.precedence,precedence:null})}function Rx(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Ve(t,"link",n),qe(t),e.head.appendChild(t))}function Tr(e){return'[src="'+Tt(e)+'"]'}function La(e){return"script[async]"+e}function kh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Tt(n.href)+'"]');if(r)return t.instance=r,qe(r),r;var i=ze({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),qe(r),Ve(r,"style",i),Lo(r,n.precedence,e),t.instance=r;case"stylesheet":i=fr(n.href);var a=e.querySelector(Ha(i));if(a)return t.state.loading|=4,t.instance=a,qe(a),a;r=ty(n),(i=Dt.get(i))&&Mf(r,i),a=(e.ownerDocument||e).createElement("link"),qe(a);var o=a;return o._p=new Promise(function(l,u){o.onload=l,o.onerror=u}),Ve(a,"link",r),t.state.loading|=4,Lo(a,n.precedence,e),t.instance=a;case"script":return a=Tr(n.src),(i=e.querySelector(La(a)))?(t.instance=i,qe(i),i):(r=n,(i=Dt.get(a))&&(r=ze({},n),If(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),qe(i),Ve(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(w(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lo(r,n.precedence,e));return t.instance}function Lo(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var l=r[o];if(l.dataset.precedence===t)a=l;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function If(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bo=null;function Th(e,t,n){if(Bo===null){var r=new Map,i=Bo=new Map;i.set(n,r)}else i=Bo,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ra]||a[Be]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var o=a.getAttribute(t)||"";o=e+o;var l=r.get(o);l?l.push(a):r.set(o,[a])}}return r}function Eh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Cx(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ny(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function Mx(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var i=fr(r.href),a=t.querySelector(Ha(i));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,qe(a);return}a=t.ownerDocument||t,r=ty(r),(i=Dt.get(i))&&Mf(r,i),a=a.createElement("link"),qe(a);var o=a;o._p=new Promise(function(l,u){o.onload=l,o.onerror=u}),Ve(a,"link",r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=vl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Cc=0;function Ix(e,t){return e.stylesheets&&e.count===0&&Go(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Go(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&Cc===0&&(Cc=62500*bx());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Go(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>Cc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function vl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Go(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bl=null;function Go(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bl=new Map,t.forEach(Zx,e),bl=null,vl.call(e))}function Zx(e,t){if(!(t.state.loading&4)){var n=bl.get(e);if(n)var r=n.get(null);else{n=new Map,bl.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var o=i[a];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute("data-precedence"),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=vl.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Sa={$$typeof:an,Provider:null,Consumer:null,_currentValue:li,_currentValue2:li,_threadCount:0};function qx(e,t,n,r,i,a,o,l,u){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=ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.hiddenUpdates=ac(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function iy(e,t,n,r,i,a,o,l,u,c,g,h){return e=new qx(e,t,n,o,u,c,g,h,l),t=1,a===!0&&(t|=24),a=pt(3,null,null,t),e.current=a,a.stateNode=e,t=sf(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},mf(a),e}function ry(e){return e?(e=Bi,e):Bi}function ay(e,t,n,r,i,a){i=ry(i),r.context===null?r.context=i:r.pendingContext=i,r=Rn(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Cn(e,r,t),n!==null&&(ct(n,e,t),ta(n,e,t))}function Oh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zf(e,t){Oh(e,t),(e=e.alternate)&&Oh(e,t)}function oy(e){if(e.tag===13||e.tag===31){var t=Si(e,67108864);t!==null&&ct(t,e,67108864),Zf(e,67108864)}}function Nh(e){if(e.tag===13||e.tag===31){var t=yt();t=Qs(t);var n=Si(e,t);n!==null&&ct(n,e,t),Zf(e,t)}}var yl=!0;function Hx(e,t,n,r){var i=I.T;I.T=null;var a=ae.p;try{ae.p=2,qf(e,t,n,r)}finally{ae.p=a,I.T=i}}function Lx(e,t,n,r){var i=I.T;I.T=null;var a=ae.p;try{ae.p=8,qf(e,t,n,r)}finally{ae.p=a,I.T=i}}function qf(e,t,n,r){if(yl){var i=Us(r);if(i===null)Dc(e,t,r,_l,n),jh(e,r);else if(Gx(i,e,t,n,r))r.stopPropagation();else if(jh(e,r),t&4&&-1<Bx.indexOf(e)){for(;i!==null;){var a=$r(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ii(a.pendingLanes);if(o!==0){var l=a;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var u=1<<31-bt(o);l.entanglements[1]|=u,o&=~u}Qt(a),!(re&6)&&(cl=gt()+500,qa(0))}}break;case 31:case 13:l=Si(a,2),l!==null&&ct(l,a,2),Vl(),Zf(a,2)}if(a=Us(r),a===null&&Dc(e,t,r,_l,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dc(e,t,r,null,n)}}function Us(e){return e=Fs(e),Hf(e)}var _l=null;function Hf(e){if(_l=null,e=Mi(e),e!==null){var t=ja(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=kg(t),e!==null)return e;e=null}else if(n===31){if(e=Tg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _l=e,null}function ly(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(Ez()){case jg:return 2;case Ug:return 8;case Qo:case Oz:return 32;case Ag:return 268435456;default:return 32}default:return 32}}var As=!1,Zn=null,qn=null,Hn=null,$a=new Map,za=new Map,kn=[],Bx="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 jh(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":$a.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":za.delete(t.pointerId)}}function Hr(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=$r(t),t!==null&&oy(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gx(e,t,n,r,i){switch(t){case"focusin":return Zn=Hr(Zn,e,t,n,r,i),!0;case"dragenter":return qn=Hr(qn,e,t,n,r,i),!0;case"mouseover":return Hn=Hr(Hn,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return $a.set(a,Hr($a.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,za.set(a,Hr(za.get(a)||null,e,t,n,r,i)),!0}return!1}function uy(e){var t=Mi(e.target);if(t!==null){var n=ja(t);if(n!==null){if(t=n.tag,t===13){if(t=kg(n),t!==null){e.blockedOn=t,hp(e.priority,function(){Nh(n)});return}}else if(t===31){if(t=Tg(n),t!==null){e.blockedOn=t,hp(e.priority,function(){Nh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Us(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Pc=r,n.target.dispatchEvent(r),Pc=null}else return t=$r(n),t!==null&&oy(t),e.blockedOn=n,!1;t.shift()}return!0}function Uh(e,t,n){Yo(e)&&n.delete(t)}function Yx(){As=!1,Zn!==null&&Yo(Zn)&&(Zn=null),qn!==null&&Yo(qn)&&(qn=null),Hn!==null&&Yo(Hn)&&(Hn=null),$a.forEach(Uh),za.forEach(Uh)}function wo(e,t){e.blockedOn===t&&(e.blockedOn=null,As||(As=!0,Ie.unstable_scheduleCallback(Ie.unstable_NormalPriority,Yx)))}var ko=null;function Ah(e){ko!==e&&(ko=e,Ie.unstable_scheduleCallback(Ie.unstable_NormalPriority,function(){ko===e&&(ko=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(Hf(r||n)===null)continue;break}var a=$r(n);a!==null&&(e.splice(t,3),t-=3,ms(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function dr(e){function t(u){return wo(u,e)}Zn!==null&&wo(Zn,e),qn!==null&&wo(qn,e),Hn!==null&&wo(Hn,e),$a.forEach(t),za.forEach(t);for(var n=0;n<kn.length;n++){var r=kn[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<kn.length&&(n=kn[0],n.blockedOn===null);)uy(n),n.blockedOn===null&&kn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a=="function")o||Ah(n);else if(o){var l=null;if(a&&a.hasAttribute("formAction")){if(i=a,o=a[st]||null)l=o.formAction;else if(Hf(i)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),Ah(n)}}}function cy(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Lf(e){this._internalRoot=e}Ql.prototype.render=Lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));var n=t.current,r=yt();ay(n,r,e,t,null,null)};Ql.prototype.unmount=Lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ay(e.current,2,null,e,null,null),Vl(),t[Sr]=null}};function Ql(e){this._internalRoot=e}Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ig();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kn.length&&t!==0&&t<kn[n].priority;n++);kn.splice(n,0,e),n===0&&uy(e)}};var Dh=xg.version;if(Dh!=="19.2.7")throw Error(w(527,Dh,"19.2.7"));ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=Sz(t),e=e!==null?Eg(e):null,e=e===null?null:e.stateNode,e};var Vx={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{Ua=To.inject(Vx),vt=To}catch{}}Ul.createRoot=function(e,t){if(!wg(e))throw Error(w(299));var n=!1,r="",i=eb,a=tb,o=nb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=iy(e,1,!1,null,null,n,r,null,i,a,o,cy),e[Sr]=t.current,Cf(e),new Lf(t)};Ul.hydrateRoot=function(e,t,n){if(!wg(e))throw Error(w(299));var r=!1,i="",a=eb,o=tb,l=nb,u=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=iy(e,1,!0,t,n??null,r,i,u,a,o,l,cy),t.context=ry(null),n=t.current,r=yt(),r=Qs(r),i=Rn(r),i.callback=null,Cn(n,i,r),n=r,t.current.lanes=n,Da(t,n),Qt(t),e[Sr]=t.current,Cf(e),new Ql(t)};Ul.version="19.2.7";function sy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sy)}catch(e){console.error(e)}}sy(),bg.exports=Ul;var Xx=bg.exports;const Jx="modulepreload",Qx=function(e,t){return new URL(e,t).href},Rh={},Kx=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=Qx(c,r),c in Rh)return;Rh[c]=!0;const g=c.endsWith(".css"),h=g?'[rel="stylesheet"]':"";if(!!r)for(let y=o.length-1;y>=0;y--){const z=o[y];if(z.href===c&&(!g||z.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":Jx,g||(v.as="script"),v.crossOrigin="",v.href=c,u&&v.setAttribute("nonce",u),document.head.appendChild(v),g)return new Promise((y,z)=>{v.addEventListener("load",y),v.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},Bf=Object.freeze({status:"aborted"});function $(e,t,n){function r(l,u){var c;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(c=l._zod).traits??(c.traits=new Set),l._zod.traits.add(e),t(l,u);for(const g in o.prototype)g in l||Object.defineProperty(l,g,{value:o.prototype[g].bind(l)});l._zod.constr=o,l._zod.def=u}const i=(n==null?void 0:n.Parent)??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(l){var u;const c=n!=null&&n.Parent?new a:this;r(c,l),(u=c._zod).deferred??(u.deferred=[]);for(const g of c._zod.deferred)g();return c}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:l=>{var u,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(u=l==null?void 0:l._zod)==null?void 0:u.traits)==null?void 0:c.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}const Gf=Symbol("zod_brand");class mr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Sl={};function Xe(e){return e&&Object.assign(Sl,e),Sl}function Px(e){return e}function Wx(e){return e}function Fx(e){}function ew(e){throw new Error}function tw(e){}function Yf(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function N(e,t="|"){return e.map(n=>Y(n)).join(t)}function fy(e,t){return typeof t=="bigint"?t.toString():t}function Kl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function zi(e){return e==null}function Pl(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function dy(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}function ie(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Er(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function nw(e,t){return t?t.reduce((n,r)=>n==null?void 0:n[r],e):e}function iw(e){const t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{const i={};for(let a=0;a<t.length;a++)i[t[a]]=r[a];return i})}function rw(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Di(e){return JSON.stringify(e)}const Vf=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function xa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const my=Kl(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function wa(e){if(xa(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(xa(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function aw(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const ow=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},$l=new Set(["string","number","symbol"]),py=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ht(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function E(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function lw(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,a){return t??(t=e()),Reflect.set(t,r,i,a)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function Y(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function hy(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const gy={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]},vy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function by(e,t){const n={},r=e._zod.def;for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(n[i]=r.shape[i])}return Ht(e,{...e._zod.def,shape:n,checks:[]})}function yy(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete n[i]}return Ht(e,{...e._zod.def,shape:n,checks:[]})}function _y(e,t){if(!wa(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return Er(this,"shape",r),r},checks:[]};return Ht(e,n)}function Sy(e,t){return Ht(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Er(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function $y(e,t,n){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in r))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=e?new e({type:"optional",innerType:r[a]}):r[a])}else for(const a in r)i[a]=e?new e({type:"optional",innerType:r[a]}):r[a];return Ht(t,{...t._zod.def,shape:i,checks:[]})}function zy(e,t,n){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Ht(t,{...t._zod.def,shape:i,checks:[]})}function er(e,t=0){var n;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Nt(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Qr(e){return typeof e=="string"?e:e==null?void 0:e.message}function Zt(e,t,n){var i,a,o,l,u,c;const r={...e,path:e.path??[]};if(!e.message){const g=Qr((o=(a=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:a.error)==null?void 0:o.call(a,e))??Qr((l=t==null?void 0:t.error)==null?void 0:l.call(t,e))??Qr((u=n.customError)==null?void 0:u.call(n,e))??Qr((c=n.localeError)==null?void 0:c.call(n,e))??"Invalid input";r.message=g}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Wl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Fl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function pr(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function uw(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}class cw{constructor(...t){}}const sw=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:vy,Class:cw,NUMBER_FORMAT_RANGES:gy,aborted:er,allowsEval:my,assert:tw,assertEqual:Px,assertIs:Fx,assertNever:ew,assertNotEqual:Wx,assignProp:Er,cached:Kl,captureStackTrace:Vf,cleanEnum:uw,cleanRegex:Pl,clone:Ht,createTransparentProxy:lw,defineLazy:ie,esc:Di,escapeRegex:xi,extend:_y,finalizeIssue:Zt,floatSafeRemainder:dy,getElementAtPath:nw,getEnumValues:Yf,getLengthableOrigin:Fl,getParsedType:ow,getSizableOrigin:Wl,isObject:xa,isPlainObject:wa,issue:pr,joinValues:N,jsonStringifyReplacer:fy,merge:Sy,normalizeParams:E,nullish:zi,numKeys:aw,omit:yy,optionalKeys:hy,partial:$y,pick:by,prefixIssues:Nt,primitiveTypes:py,promiseAllObject:iw,propertyKeyTypes:$l,randomString:rw,required:zy,stringifyPrimitive:Y,unwrapMessage:Qr},Symbol.toStringTag,{value:"Module"})),xy=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,fy,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Xf=$("$ZodError",xy),Ba=$("$ZodError",xy,{Parent:Error});function eu(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function tu(e,t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(l=>i({issues:l}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)r._errors.push(n(o));else{let l=r,u=0;for(;u<o.path.length;){const c=o.path[u];u===o.path.length-1?(l[c]=l[c]||{_errors:[]},l[c]._errors.push(n(o))):l[c]=l[c]||{_errors:[]},l=l[c],u++}}};return i(e),r}function Jf(e,t){const n=t||function(a){return a.message},r={errors:[]},i=(a,o=[])=>{var l,u;for(const c of a.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(g=>i({issues:g},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{const g=[...o,...c.path];if(g.length===0){r.errors.push(n(c));continue}let h=r,d=0;for(;d<g.length;){const v=g[d],y=d===g.length-1;typeof v=="string"?(h.properties??(h.properties={}),(l=h.properties)[v]??(l[v]={errors:[]}),h=h.properties[v]):(h.items??(h.items=[]),(u=h.items)[v]??(u[v]={errors:[]}),h=h.items[v]),y&&h.errors.push(n(c)),d++}}};return i(e),r}function wy(e){const t=[];for(const n of e)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function Qf(e){var r;const t=[],n=[...e.issues].sort((i,a)=>i.path.length-a.path.length);for(const i of n)t.push(`✖ ${i.message}`),(r=i.path)!=null&&r.length&&t.push(` → at ${wy(i.path)}`);return t.join(`
56
+ `)}const Kf=e=>(t,n,r,i)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new mr;if(o.issues.length){const l=new((i==null?void 0:i.Err)??e)(o.issues.map(u=>Zt(u,a,Xe())));throw Vf(l,i==null?void 0:i.callee),l}return o.value},Ds=Kf(Ba),Pf=e=>async(t,n,r,i)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const l=new((i==null?void 0:i.Err)??e)(o.issues.map(u=>Zt(u,a,Xe())));throw Vf(l,i==null?void 0:i.callee),l}return o.value},Rs=Pf(Ba),Wf=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new mr;return a.issues.length?{success:!1,error:new(e??Xf)(a.issues.map(o=>Zt(o,i,Xe())))}:{success:!0,data:a.value}},Ff=Wf(Ba),ed=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>Zt(o,i,Xe())))}:{success:!0,data:a.value}},ky=ed(Ba),Ty=/^[cC][^\s-]{8,}$/,Ey=/^[0-9a-z]+$/,Oy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ny=/^[0-9a-vA-V]{20}$/,jy=/^[A-Za-z0-9]{27}$/,Uy=/^[a-zA-Z0-9_-]{21}$/,Ay=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,fw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Dy=/^([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})$/,hr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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)$/,dw=hr(4),mw=hr(6),pw=hr(7),Ry=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,hw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,gw=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,vw=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,bw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Cy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function My(){return new RegExp(Cy,"u")}const Iy=/^(?:(?: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])$/,Zy=/^(([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})$/,qy=/^((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])$/,Hy=/^(([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])$/,Ly=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,td=/^[A-Za-z0-9_-]*$/,By=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,yw=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Gy=/^\+(?:[0-9]){6,14}[0-9]$/,Yy="(?:(?:\\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])))",Vy=new RegExp(`^${Yy}$`);function Xy(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Jy(e){return new RegExp(`^${Xy(e)}$`)}function Qy(e){const t=Xy({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Yy}T(?:${r})$`)}const Ky=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Py=/^\d+n?$/,Wy=/^\d+$/,Fy=/^-?\d+(?:\.\d+)?/i,e_=/true|false/i,t_=/null/i,n_=/undefined/i,i_=/^[^A-Z]*$/,r_=/^[^a-z]*$/,nd=Object.freeze(Object.defineProperty({__proto__:null,_emoji:Cy,base64:Ly,base64url:td,bigint:Py,boolean:e_,browserEmail:bw,cidrv4:qy,cidrv6:Hy,cuid:Ty,cuid2:Ey,date:Vy,datetime:Qy,domain:yw,duration:Ay,e164:Gy,email:Ry,emoji:My,extendedDuration:fw,guid:Dy,hostname:By,html5Email:hw,integer:Wy,ipv4:Iy,ipv6:Zy,ksuid:jy,lowercase:i_,nanoid:Uy,null:t_,number:Fy,rfc5322Email:gw,string:Ky,time:Jy,ulid:Oy,undefined:n_,unicodeEmail:vw,uppercase:r_,uuid:hr,uuid4:dw,uuid6:mw,uuid7:pw,xid:Ny},Symbol.toStringTag,{value:"Module"})),Ne=$("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),a_={number:"number",bigint:"bigint",object:"date"},id=$("$ZodCheckLessThan",(e,t)=>{Ne.init(e,t);const n=a_[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rd=$("$ZodCheckGreaterThan",(e,t)=>{Ne.init(e,t);const n=a_[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),o_=$("$ZodCheckMultipleOf",(e,t)=>{Ne.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):dy(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),l_=$("$ZodCheckNumberFormat",(e,t)=>{var o;Ne.init(e,t),t.format=t.format||"float64";const n=(o=t.format)==null?void 0:o.includes("int"),r=n?"int":"number",[i,a]=gy[t.format];e._zod.onattach.push(l=>{const u=l._zod.bag;u.format=t.format,u.minimum=i,u.maximum=a,n&&(u.pattern=Wy)}),e._zod.check=l=>{const u=l.value;if(n){if(!Number.isInteger(u)){l.issues.push({expected:r,format:t.format,code:"invalid_type",input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?l.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):l.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}u<i&&l.issues.push({origin:"number",input:u,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),u>a&&l.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inst:e})}}),u_=$("$ZodCheckBigIntFormat",(e,t)=>{Ne.init(e,t);const[n,r]=vy[t.format];e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,a.minimum=n,a.maximum=r}),e._zod.check=i=>{const a=i.value;a<n&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:r,inst:e})}}),c_=$("$ZodCheckMaxSize",(e,t)=>{var n;Ne.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!zi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;i.size<=t.maximum||r.issues.push({origin:Wl(i),code:"too_big",maximum:t.maximum,input:i,inst:e,continue:!t.abort})}}),s_=$("$ZodCheckMinSize",(e,t)=>{var n;Ne.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!zi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;i.size>=t.minimum||r.issues.push({origin:Wl(i),code:"too_small",minimum:t.minimum,input:i,inst:e,continue:!t.abort})}}),f_=$("$ZodCheckSizeEquals",(e,t)=>{var n;Ne.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!zi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=r=>{const i=r.value,a=i.size;if(a===t.size)return;const o=a>t.size;r.issues.push({origin:Wl(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),d_=$("$ZodCheckMaxLength",(e,t)=>{var n;Ne.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!zi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const o=Fl(i);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),m_=$("$ZodCheckMinLength",(e,t)=>{var n;Ne.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!zi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const o=Fl(i);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),p_=$("$ZodCheckLengthEquals",(e,t)=>{var n;Ne.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!zi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,a=i.length;if(a===t.length)return;const o=Fl(i),l=a>t.length;r.issues.push({origin:o,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Ga=$("$ZodCheckStringFormat",(e,t)=>{var n,r;Ne.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),h_=$("$ZodCheckRegex",(e,t)=>{Ga.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),g_=$("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=i_),Ga.init(e,t)}),v_=$("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=r_),Ga.init(e,t)}),b_=$("$ZodCheckIncludes",(e,t)=>{Ne.init(e,t);const n=xi(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),y_=$("$ZodCheckStartsWith",(e,t)=>{Ne.init(e,t);const n=new RegExp(`^${xi(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),__=$("$ZodCheckEndsWith",(e,t)=>{Ne.init(e,t);const n=new RegExp(`.*${xi(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function Ch(e,t,n){e.issues.length&&t.issues.push(...Nt(n,e.issues))}const S_=$("$ZodCheckProperty",(e,t)=>{Ne.init(e,t),e._zod.check=n=>{const r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>Ch(i,n,t.property));Ch(r,n,t.property)}}),$_=$("$ZodCheckMimeType",(e,t)=>{Ne.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e})}}),z_=$("$ZodCheckOverwrite",(e,t)=>{Ne.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class x_{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
57
+ `).filter(o=>o),i=Math.min(...r.map(o=>o.length-o.trimStart().length)),a=r.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...n,i.join(`
58
+ `))}}const w_={major:4,minor:0,patch:0},Z=$("$ZodType",(e,t)=>{var i;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=w_;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const o of a._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const a=(o,l,u)=>{let c=er(o),g;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(o))continue}else if(c)continue;const d=o.issues.length,v=h._zod.check(o);if(v instanceof Promise&&(u==null?void 0:u.async)===!1)throw new mr;if(g||v instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await v,o.issues.length!==d&&(c||(c=er(o,d)))});else{if(o.issues.length===d)continue;c||(c=er(o,d))}}return g?g.then(()=>o):o};e._zod.run=(o,l)=>{const u=e._zod.parse(o,l);if(u instanceof Promise){if(l.async===!1)throw new mr;return u.then(c=>a(c,r,l))}return a(u,r,l)}}e["~standard"]={validate:a=>{var o;try{const l=Ff(e,a);return l.success?{value:l.data}:{issues:(o=l.error)==null?void 0:o.issues}}catch{return ky(e,a).then(u=>{var c;return u.success?{value:u.data}:{issues:(c=u.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}}),Ya=$("$ZodString",(e,t)=>{var n;Z.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Ky(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ve=$("$ZodStringFormat",(e,t)=>{Ga.init(e,t),Ya.init(e,t)}),k_=$("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Dy),ve.init(e,t)}),T_=$("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=hr(r))}else t.pattern??(t.pattern=hr());ve.init(e,t)}),E_=$("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ry),ve.init(e,t)}),O_=$("$ZodURL",(e,t)=>{ve.init(e,t),e._zod.check=n=>{try{const r=n.value,i=new URL(r),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:By.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&a.endsWith("/")?n.value=a.slice(0,-1):n.value=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),N_=$("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=My()),ve.init(e,t)}),j_=$("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Uy),ve.init(e,t)}),U_=$("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ty),ve.init(e,t)}),A_=$("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ey),ve.init(e,t)}),D_=$("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Oy),ve.init(e,t)}),R_=$("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ny),ve.init(e,t)}),C_=$("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jy),ve.init(e,t)}),M_=$("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Qy(t)),ve.init(e,t)}),I_=$("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Vy),ve.init(e,t)}),Z_=$("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Jy(t)),ve.init(e,t)}),q_=$("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ay),ve.init(e,t)}),H_=$("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Iy),ve.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),L_=$("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Zy),ve.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),B_=$("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=qy),ve.init(e,t)}),G_=$("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Hy),ve.init(e,t),e._zod.check=n=>{const[r,i]=n.value.split("/");try{if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ad(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Y_=$("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ly),ve.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ad(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function V_(e){if(!td.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ad(n)}const X_=$("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=td),ve.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{V_(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),J_=$("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Gy),ve.init(e,t)});function Q_(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const K_=$("$ZodJWT",(e,t)=>{ve.init(e,t),e._zod.check=n=>{Q_(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),P_=$("$ZodCustomStringFormat",(e,t)=>{ve.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),od=$("$ZodNumber",(e,t)=>{Z.init(e,t),e._zod.pattern=e._zod.bag.pattern??Fy,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),W_=$("$ZodNumber",(e,t)=>{l_.init(e,t),od.init(e,t)}),ld=$("$ZodBoolean",(e,t)=>{Z.init(e,t),e._zod.pattern=e_,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),ud=$("$ZodBigInt",(e,t)=>{Z.init(e,t),e._zod.pattern=Py,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),F_=$("$ZodBigInt",(e,t)=>{u_.init(e,t),ud.init(e,t)}),eS=$("$ZodSymbol",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),tS=$("$ZodUndefined",(e,t)=>{Z.init(e,t),e._zod.pattern=n_,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{const i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),n}}),nS=$("$ZodNull",(e,t)=>{Z.init(e,t),e._zod.pattern=t_,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),iS=$("$ZodAny",(e,t)=>{Z.init(e,t),e._zod.parse=n=>n}),zl=$("$ZodUnknown",(e,t)=>{Z.init(e,t),e._zod.parse=n=>n}),rS=$("$ZodNever",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),aS=$("$ZodVoid",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return typeof i>"u"||n.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),n}}),oS=$("$ZodDate",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),n}});function Mh(e,t,n){e.issues.length&&t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}const cd=$("$ZodArray",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const a=[];for(let o=0;o<i.length;o++){const l=i[o],u=t.element._zod.run({value:l,issues:[]},r);u instanceof Promise?a.push(u.then(c=>Mh(c,n,o))):Mh(u,n,o)}return a.length?Promise.all(a).then(()=>n):n}});function Eo(e,t,n){e.issues.length&&t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}function Ih(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...Nt(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const lS=$("$ZodObject",(e,t)=>{Z.init(e,t);const n=Kl(()=>{const h=Object.keys(t.shape);for(const v of h)if(!(t.shape[v]instanceof Z))throw new Error(`Invalid element at key "${v}": expected a Zod schema`);const d=hy(t.shape);return{shape:t.shape,keys:h,keySet:new Set(h),numKeys:h.length,optionalKeys:new Set(d)}});ie(e._zod,"propValues",()=>{const h=t.shape,d={};for(const v in h){const y=h[v]._zod;if(y.values){d[v]??(d[v]=new Set);for(const z of y.values)d[v].add(z)}}return d});const r=h=>{const d=new x_(["shape","payload","ctx"]),v=n.value,y=f=>{const p=Di(f);return`shape[${p}]._zod.run({ value: input[${p}], issues: [] }, ctx)`};d.write("const input = payload.value;");const z=Object.create(null);let x=0;for(const f of v.keys)z[f]=`key_${x++}`;d.write("const newResult = {}");for(const f of v.keys)if(v.optionalKeys.has(f)){const p=z[f];d.write(`const ${p} = ${y(f)};`);const _=Di(f);d.write(`
59
+ if (${p}.issues.length) {
60
+ if (input[${_}] === undefined) {
61
+ if (${_} in input) {
62
+ newResult[${_}] = undefined;
63
+ }
64
+ } else {
65
+ payload.issues = payload.issues.concat(
66
+ ${p}.issues.map((iss) => ({
67
+ ...iss,
68
+ path: iss.path ? [${_}, ...iss.path] : [${_}],
69
+ }))
70
+ );
71
+ }
72
+ } else if (${p}.value === undefined) {
73
+ if (${_} in input) newResult[${_}] = undefined;
74
+ } else {
75
+ newResult[${_}] = ${p}.value;
76
+ }
77
+ `)}else{const p=z[f];d.write(`const ${p} = ${y(f)};`),d.write(`
78
+ if (${p}.issues.length) payload.issues = payload.issues.concat(${p}.issues.map(iss => ({
79
+ ...iss,
80
+ path: iss.path ? [${Di(f)}, ...iss.path] : [${Di(f)}]
81
+ })));`),d.write(`newResult[${Di(f)}] = ${p}.value`)}d.write("payload.value = newResult;"),d.write("return payload;");const s=d.compile();return(f,p)=>s(h,f,p)};let i;const a=xa,o=!Sl.jitless,u=o&&my.value,c=t.catchall;let g;e._zod.parse=(h,d)=>{g??(g=n.value);const v=h.value;if(!a(v))return h.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),h;const y=[];if(o&&u&&(d==null?void 0:d.async)===!1&&d.jitless!==!0)i||(i=r(t.shape)),h=i(h,d);else{h.value={};const p=g.shape;for(const _ of g.keys){const k=p[_],j=k._zod.run({value:v[_],issues:[]},d),T=k._zod.optin==="optional"&&k._zod.optout==="optional";j instanceof Promise?y.push(j.then(A=>T?Ih(A,h,_,v):Eo(A,h,_))):T?Ih(j,h,_,v):Eo(j,h,_)}}if(!c)return y.length?Promise.all(y).then(()=>h):h;const z=[],x=g.keySet,s=c._zod,f=s.def.type;for(const p of Object.keys(v)){if(x.has(p))continue;if(f==="never"){z.push(p);continue}const _=s.run({value:v[p],issues:[]},d);_ instanceof Promise?y.push(_.then(k=>Eo(k,h,p))):Eo(_,h,p)}return z.length&&h.issues.push({code:"unrecognized_keys",keys:z,input:v,inst:e}),y.length?Promise.all(y).then(()=>h):h}});function Zh(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>Zt(a,r,Xe())))}),t}const sd=$("$ZodUnion",(e,t)=>{Z.init(e,t),ie(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ie(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ie(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),ie(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${n.map(r=>Pl(r.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let i=!1;const a=[];for(const o of t.options){const l=o._zod.run({value:n.value,issues:[]},r);if(l instanceof Promise)a.push(l),i=!0;else{if(l.issues.length===0)return l;a.push(l)}}return i?Promise.all(a).then(o=>Zh(o,n,e,r)):Zh(a,n,e,r)}}),uS=$("$ZodDiscriminatedUnion",(e,t)=>{sd.init(e,t);const n=e._zod.parse;ie(e._zod,"propValues",()=>{const i={};for(const a of t.options){const o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,u]of Object.entries(o)){i[l]||(i[l]=new Set);for(const c of u)i[l].add(c)}}return i});const r=Kl(()=>{const i=t.options,a=new Map;for(const o of i){const l=o._zod.propValues[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const u of l){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,o)}}return a});e._zod.parse=(i,a)=>{const o=i.value;if(!xa(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;const l=r.value.get(o==null?void 0:o[t.discriminator]);return l?l._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:o,path:[t.discriminator],inst:e}),i)}}),cS=$("$ZodIntersection",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,a=t.left._zod.run({value:i,issues:[]},r),o=t.right._zod.run({value:i,issues:[]},r);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([u,c])=>qh(n,u,c)):qh(n,a,o)}});function Cs(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(wa(e)&&wa(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};for(const a of r){const o=Cs(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r],o=Cs(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function qh(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),er(e))return e;const r=Cs(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const nu=$("$ZodTuple",(e,t)=>{Z.init(e,t);const n=t.items,r=n.length-[...n].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,a)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const l=[];if(!t.rest){const c=o.length>n.length,g=o.length<r-1;if(c||g)return i.issues.push({input:o,inst:e,origin:"array",...c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),i}let u=-1;for(const c of n){if(u++,u>=o.length&&u>=r)continue;const g=c._zod.run({value:o[u],issues:[]},a);g instanceof Promise?l.push(g.then(h=>Oo(h,i,u))):Oo(g,i,u)}if(t.rest){const c=o.slice(n.length);for(const g of c){u++;const h=t.rest._zod.run({value:g,issues:[]},a);h instanceof Promise?l.push(h.then(d=>Oo(d,i,u))):Oo(h,i,u)}}return l.length?Promise.all(l).then(()=>i):i}});function Oo(e,t,n){e.issues.length&&t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}const sS=$("$ZodRecord",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!wa(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const a=[];if(t.keyType._zod.values){const o=t.keyType._zod.values;n.value={};for(const u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){const c=t.valueType._zod.run({value:i[u],issues:[]},r);c instanceof Promise?a.push(c.then(g=>{g.issues.length&&n.issues.push(...Nt(u,g.issues)),n.value[u]=g.value})):(c.issues.length&&n.issues.push(...Nt(u,c.issues)),n.value[u]=c.value)}let l;for(const u in i)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{n.value={};for(const o of Reflect.ownKeys(i)){if(o==="__proto__")continue;const l=t.keyType._zod.run({value:o,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(c=>Zt(c,r,Xe())),input:o,path:[o],inst:e}),n.value[l.value]=l.value;continue}const u=t.valueType._zod.run({value:i[o],issues:[]},r);u instanceof Promise?a.push(u.then(c=>{c.issues.length&&n.issues.push(...Nt(o,c.issues)),n.value[l.value]=c.value})):(u.issues.length&&n.issues.push(...Nt(o,u.issues)),n.value[l.value]=u.value)}}return a.length?Promise.all(a).then(()=>n):n}}),fS=$("$ZodMap",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;const a=[];n.value=new Map;for(const[o,l]of i){const u=t.keyType._zod.run({value:o,issues:[]},r),c=t.valueType._zod.run({value:l,issues:[]},r);u instanceof Promise||c instanceof Promise?a.push(Promise.all([u,c]).then(([g,h])=>{Hh(g,h,n,o,i,e,r)})):Hh(u,c,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}});function Hh(e,t,n,r,i,a,o){e.issues.length&&($l.has(typeof r)?n.issues.push(...Nt(r,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:i,inst:a,issues:e.issues.map(l=>Zt(l,o,Xe()))})),t.issues.length&&($l.has(typeof r)?n.issues.push(...Nt(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:r,issues:t.issues.map(l=>Zt(l,o,Xe()))})),n.value.set(e.value,t.value)}const dS=$("$ZodSet",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;const a=[];n.value=new Set;for(const o of i){const l=t.valueType._zod.run({value:o,issues:[]},r);l instanceof Promise?a.push(l.then(u=>Lh(u,n))):Lh(l,n)}return a.length?Promise.all(a).then(()=>n):n}});function Lh(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const mS=$("$ZodEnum",(e,t)=>{Z.init(e,t);const n=Yf(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>$l.has(typeof r)).map(r=>typeof r=="string"?xi(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return e._zod.values.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),pS=$("$ZodLiteral",(e,t)=>{Z.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?xi(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),hS=$("$ZodFile",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return i instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),n}}),fd=$("$ZodTransform",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new mr;return n.value=i,n}}),gS=$("$ZodOptional",(e,t)=>{Z.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ie(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Pl(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(n,r):n.value===void 0?n:t.innerType._zod.run(n,r)}),vS=$("$ZodNullable",(e,t)=>{Z.init(e,t),ie(e._zod,"optin",()=>t.innerType._zod.optin),ie(e._zod,"optout",()=>t.innerType._zod.optout),ie(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Pl(n.source)}|null)$`):void 0}),ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),bS=$("$ZodDefault",(e,t)=>{Z.init(e,t),e._zod.optin="optional",ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>Bh(a,t)):Bh(i,t)}});function Bh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const yS=$("$ZodPrefault",(e,t)=>{Z.init(e,t),e._zod.optin="optional",ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),_S=$("$ZodNonOptional",(e,t)=>{Z.init(e,t),ie(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>Gh(a,e)):Gh(i,e)}});function Gh(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const SS=$("$ZodSuccess",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>(n.value=a.issues.length===0,n)):(n.value=i.issues.length===0,n)}}),$S=$("$ZodCatch",(e,t)=>{Z.init(e,t),e._zod.optin="optional",ie(e._zod,"optout",()=>t.innerType._zod.optout),ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>Zt(o,r,Xe()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>Zt(a,r,Xe()))},input:n.value}),n.issues=[]),n)}}),zS=$("$ZodNaN",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),dd=$("$ZodPipe",(e,t)=>{Z.init(e,t),ie(e._zod,"values",()=>t.in._zod.values),ie(e._zod,"optin",()=>t.in._zod.optin),ie(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,r)=>{const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>Yh(a,t,r)):Yh(i,t,r)}});function Yh(e,t,n){return er(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const xS=$("$ZodReadonly",(e,t)=>{Z.init(e,t),ie(e._zod,"propValues",()=>t.innerType._zod.propValues),ie(e._zod,"values",()=>t.innerType._zod.values),ie(e._zod,"optin",()=>t.innerType._zod.optin),ie(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(Vh):Vh(i)}});function Vh(e){return e.value=Object.freeze(e.value),e}const wS=$("$ZodTemplateLiteral",(e,t)=>{Z.init(e,t);const n=[];for(const r of t.parts)if(r instanceof Z){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const a=i.startsWith("^")?1:0,o=i.endsWith("$")?i.length-1:i.length;n.push(i.slice(a,o))}else if(r===null||py.has(typeof r))n.push(xi(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"template_literal",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source}),r)}),kS=$("$ZodPromise",(e,t)=>{Z.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(i=>t.innerType._zod.run({value:i,issues:[]},r))}),TS=$("$ZodLazy",(e,t)=>{Z.init(e,t),ie(e._zod,"innerType",()=>t.getter()),ie(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ie(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ie(e._zod,"optin",()=>e._zod.innerType._zod.optin),ie(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),ES=$("$ZodCustom",(e,t)=>{Ne.init(e,t),Z.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(a=>Xh(a,n,r,e));Xh(i,n,r,e)}});function Xh(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(pr(i))}}const _w=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return i=>{switch(i.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${i.expected}، ولكن تم إدخال ${n(i.input)}`;case"invalid_value":return i.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Y(i.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?` أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${a} ${i.maximum.toString()} ${o.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${i.origin??"القيمة"} ${a} ${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${a} ${i.minimum.toString()} ${o.unit}`:`أصغر من اللازم: يفترض لـ ${i.origin} أن يكون ${a} ${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${i.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${r[a.format]??i.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${i.divisor}`;case"unrecognized_keys":return`معرف${i.keys.length>1?"ات":""} غريب${i.keys.length>1?"ة":""}: ${N(i.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${i.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${i.origin}`;default:return"مدخل غير مقبول"}}};function Sw(){return{localeError:_w()}}const $w=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${i.expected}, daxil olan ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Yanlış dəyər: gözlənilən ${Y(i.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${a}${i.maximum.toString()} ${o.unit??"element"}`:`Çox böyük: gözlənilən ${i.origin??"dəyər"} ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Çox kiçik: gözlənilən ${i.origin} ${a}${i.minimum.toString()} ${o.unit}`:`Çox kiçik: gözlənilən ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[a.format]??i.format}`}case"not_multiple_of":return`Yanlış ədəd: ${i.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${i.keys.length>1?"lar":""}: ${N(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${i.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function zw(){return{localeError:$w()}}function Jh(e,t,n,r){const i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}const xw=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"лік";case"object":{if(Array.isArray(i))return"масіў";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return i=>{switch(i.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${i.expected}, атрымана ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Няправільны ўвод: чакалася ${Y(i.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);if(o){const l=Number(i.maximum),u=Jh(l,o.unit.one,o.unit.few,o.unit.many);return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна ${o.verb} ${a}${i.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${i.origin??"значэнне"} павінна быць ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);if(o){const l=Number(i.minimum),u=Jh(l,o.unit.one,o.unit.few,o.unit.many);return`Занадта малы: чакалася, што ${i.origin} павінна ${o.verb} ${a}${i.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${i.origin} павінна быць ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${r[a.format]??i.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${i.keys.length>1?"ключы":"ключ"}: ${N(i.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${i.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${i.origin}`;default:return"Няправільны ўвод"}}};function ww(){return{localeError:xw()}}const kw=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipus invàlid: s'esperava ${i.expected}, s'ha rebut ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Valor invàlid: s'esperava ${Y(i.values[0])}`:`Opció invàlida: s'esperava una de ${N(i.values," o ")}`;case"too_big":{const a=i.inclusive?"com a màxim":"menys de",o=t(i.origin);return o?`Massa gran: s'esperava que ${i.origin??"el valor"} contingués ${a} ${i.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${a} ${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?"com a mínim":"més de",o=t(i.origin);return o?`Massa petit: s'esperava que ${i.origin} contingués ${a} ${i.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${a} ${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${r[a.format]??i.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${i.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${i.origin}`;default:return"Entrada invàlida"}}};function Tw(){return{localeError:kw()}}const Ew=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(i))return"pole";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return i=>{switch(i.code){case"invalid_type":return`Neplatný vstup: očekáváno ${i.expected}, obdrženo ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Neplatný vstup: očekáváno ${Y(i.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Hodnota je příliš velká: ${i.origin??"hodnota"} musí mít ${a}${i.maximum.toString()} ${o.unit??"prvků"}`:`Hodnota je příliš velká: ${i.origin??"hodnota"} musí být ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Hodnota je příliš malá: ${i.origin??"hodnota"} musí mít ${a}${i.minimum.toString()} ${o.unit??"prvků"}`:`Hodnota je příliš malá: ${i.origin??"hodnota"} musí být ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${r[a.format]??i.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${i.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${N(i.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${i.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${i.origin}`;default:return"Neplatný vstup"}}};function Ow(){return{localeError:Ew()}}const Nw=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"Zahl";case"object":{if(Array.isArray(i))return"Array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return i=>{switch(i.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${i.expected}, erhalten ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Ungültige Eingabe: erwartet ${Y(i.values[0])}`:`Ungültige Option: erwartet eine von ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Zu groß: erwartet, dass ${i.origin??"Wert"} ${a}${i.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${i.origin??"Wert"} ${a}${i.maximum.toString()} ist`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Zu klein: erwartet, dass ${i.origin} ${a}${i.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${a}${i.minimum.toString()} ist`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${r[a.format]??i.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${N(i.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${i.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${i.origin}`;default:return"Ungültige Eingabe"}}};function jw(){return{localeError:Nw()}}const Uw=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Aw=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(r){return e[r]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Invalid input: expected ${r.expected}, received ${Uw(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${Y(r.values[0])}`:`Invalid option: expected one of ${N(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${N(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function OS(){return{localeError:Aw()}}const Dw=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Rw=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}const n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return r=>{switch(r.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${r.expected}, riceviĝis ${Dw(r.input)}`;case"invalid_value":return r.values.length===1?`Nevalida enigo: atendiĝis ${Y(r.values[0])}`:`Nevalida opcio: atendiĝis unu el ${N(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendiĝis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendiĝis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} ŝlosilo${r.keys.length>1?"j":""}: ${N(r.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function Cw(){return{localeError:Rw()}}const Mw=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"número";case"object":{if(Array.isArray(i))return"arreglo";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype)return i.constructor.name}}return a},r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Entrada inválida: se esperaba ${i.expected}, recibido ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inválida: se esperaba ${Y(i.values[0])}`:`Opción inválida: se esperaba una de ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Demasiado grande: se esperaba que ${i.origin??"valor"} tuviera ${a}${i.maximum.toString()} ${o.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i.origin??"valor"} fuera ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Demasiado pequeño: se esperaba que ${i.origin} tuviera ${a}${i.minimum.toString()} ${o.unit}`:`Demasiado pequeño: se esperaba que ${i.origin} fuera ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Cadena inválida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inválida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inválida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${a.pattern}`:`Inválido ${r[a.format]??i.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i.origin}`;default:return"Entrada inválida"}}};function Iw(){return{localeError:Mw()}}const Zw=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"عدد";case"object":{if(Array.isArray(i))return"آرایه";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return i=>{switch(i.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${i.expected} می‌بود، ${n(i.input)} دریافت شد`;case"invalid_value":return i.values.length===1?`ورودی نامعتبر: می‌بایست ${Y(i.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${N(i.values,"|")} می‌بود`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`خیلی بزرگ: ${i.origin??"مقدار"} باید ${a}${i.maximum.toString()} ${o.unit??"عنصر"} باشد`:`خیلی بزرگ: ${i.origin??"مقدار"} باید ${a}${i.maximum.toString()} باشد`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`خیلی کوچک: ${i.origin} باید ${a}${i.minimum.toString()} ${o.unit} باشد`:`خیلی کوچک: ${i.origin} باید ${a}${i.minimum.toString()} باشد`}case"invalid_format":{const a=i;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${r[a.format]??i.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${i.divisor} باشد`;case"unrecognized_keys":return`کلید${i.keys.length>1?"های":""} ناشناس: ${N(i.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${i.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${i.origin}`;default:return"ورودی نامعتبر"}}};function qw(){return{localeError:Zw()}}const Hw=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return i=>{switch(i.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${i.expected}, oli ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Virheellinen syöte: täytyy olla ${Y(i.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Liian suuri: ${o.subject} täytyy olla ${a}${i.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Liian pieni: ${o.subject} täytyy olla ${a}${i.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${r[a.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${N(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Lw(){return{localeError:Hw()}}const Bw=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"nombre";case"object":{if(Array.isArray(i))return"tableau";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return i=>{switch(i.code){case"invalid_type":return`Entrée invalide : ${i.expected} attendu, ${n(i.input)} reçu`;case"invalid_value":return i.values.length===1?`Entrée invalide : ${Y(i.values[0])} attendu`:`Option invalide : une valeur parmi ${N(i.values,"|")} attendue`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Trop grand : ${i.origin??"valeur"} doit ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"élément(s)"}`:`Trop grand : ${i.origin??"valeur"} doit être ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Trop petit : ${i.origin} doit ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Trop petit : ${i.origin} doit être ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${r[a.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${N(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function Gw(){return{localeError:Bw()}}const Yw=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return i=>{switch(i.code){case"invalid_type":return`Entrée invalide : attendu ${i.expected}, reçu ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Entrée invalide : attendu ${Y(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"≤":"<",o=t(i.origin);return o?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${a}${i.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?"≥":">",o=t(i.origin);return o?`Trop petit : attendu que ${i.origin} ait ${a}${i.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${i.origin} soit ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${r[a.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${i.divisor}`;case"unrecognized_keys":return`Clé${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${N(i.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${i.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entrée invalide"}}};function Vw(){return{localeError:Yw()}}const Xw=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return i=>{switch(i.code){case"invalid_type":return`קלט לא תקין: צריך ${i.expected}, התקבל ${n(i.input)}`;case"invalid_value":return i.values.length===1?`קלט לא תקין: צריך ${Y(i.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`גדול מדי: ${i.origin??"value"} צריך להיות ${a}${i.maximum.toString()} ${o.unit??"elements"}`:`גדול מדי: ${i.origin??"value"} צריך להיות ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`קטן מדי: ${i.origin} צריך להיות ${a}${i.minimum.toString()} ${o.unit}`:`קטן מדי: ${i.origin} צריך להיות ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${r[a.format]??i.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${i.divisor}`;case"unrecognized_keys":return`מפתח${i.keys.length>1?"ות":""} לא מזוה${i.keys.length>1?"ים":"ה"}: ${N(i.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${i.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${i.origin}`;default:return"קלט לא תקין"}}};function Jw(){return{localeError:Xw()}}const Qw=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"szám";case"object":{if(Array.isArray(i))return"tömb";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return i=>{switch(i.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${i.expected}, a kapott érték ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Érvénytelen bemenet: a várt érték ${Y(i.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Túl nagy: ${i.origin??"érték"} mérete túl nagy ${a}${i.maximum.toString()} ${o.unit??"elem"}`:`Túl nagy: a bemeneti érték ${i.origin??"érték"} túl nagy: ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Túl kicsi: a bemeneti érték ${i.origin} mérete túl kicsi ${a}${i.minimum.toString()} ${o.unit}`:`Túl kicsi: a bemeneti érték ${i.origin} túl kicsi ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[a.format]??i.format}`}case"not_multiple_of":return`Érvénytelen szám: ${i.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${i.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${i.origin}`;default:return"Érvénytelen bemenet"}}};function Kw(){return{localeError:Qw()}}const Pw=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak valid: diharapkan ${i.expected}, diterima ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${Y(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${a}${i.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Terlalu kecil: diharapkan ${i.origin} memiliki ${a}${i.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${r[a.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function Ww(){return{localeError:Pw()}}const Fw=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"numero";case"object":{if(Array.isArray(i))return"vettore";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input non valido: atteso ${i.expected}, ricevuto ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Input non valido: atteso ${Y(i.values[0])}`:`Opzione non valida: atteso uno tra ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Troppo grande: ${i.origin??"valore"} deve avere ${a}${i.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Troppo piccolo: ${i.origin} deve avere ${a}${i.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${i.origin} deve essere ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${r[a.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${N(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function ek(){return{localeError:Fw()}}const tk=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"数値";case"object":{if(Array.isArray(i))return"配列";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return i=>{switch(i.code){case"invalid_type":return`無効な入力: ${i.expected}が期待されましたが、${n(i.input)}が入力されました`;case"invalid_value":return i.values.length===1?`無効な入力: ${Y(i.values[0])}が期待されました`:`無効な選択: ${N(i.values,"、")}のいずれかである必要があります`;case"too_big":{const a=i.inclusive?"以下である":"より小さい",o=t(i.origin);return o?`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${o.unit??"要素"}${a}必要があります`:`大きすぎる値: ${i.origin??"値"}は${i.maximum.toString()}${a}必要があります`}case"too_small":{const a=i.inclusive?"以上である":"より大きい",o=t(i.origin);return o?`小さすぎる値: ${i.origin}は${i.minimum.toString()}${o.unit}${a}必要があります`:`小さすぎる値: ${i.origin}は${i.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=i;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${r[a.format]??i.format}`}case"not_multiple_of":return`無効な数値: ${i.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${i.keys.length>1?"群":""}: ${N(i.keys,"、")}`;case"invalid_key":return`${i.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${i.origin}内の無効な値`;default:return"無効な入力"}}};function nk(){return{localeError:tk()}}const ik=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(i))return"អារេ (Array)";if(i===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return i=>{switch(i.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i.expected} ប៉ុន្តែទទួលបាន ${n(i.input)}`;case"invalid_value":return i.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Y(i.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${a} ${i.maximum.toString()} ${o.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${i.origin??"តម្លៃ"} ${a} ${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`តូចពេក៖ ត្រូវការ ${i.origin} ${a} ${i.minimum.toString()} ${o.unit}`:`តូចពេក៖ ត្រូវការ ${i.origin} ${a} ${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[a.format]??i.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${i.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${N(i.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${i.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function rk(){return{localeError:ik()}}const ak=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return i=>{switch(i.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${i.expected}, 받은 타입은 ${n(i.input)}입니다`;case"invalid_value":return i.values.length===1?`잘못된 입력: 값은 ${Y(i.values[0])} 이어야 합니다`:`잘못된 옵션: ${N(i.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=i.inclusive?"이하":"미만",o=a==="미만"?"이어야 합니다":"여야 합니다",l=t(i.origin),u=(l==null?void 0:l.unit)??"요소";return l?`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()}${u} ${a}${o}`:`${i.origin??"값"}이 너무 큽니다: ${i.maximum.toString()} ${a}${o}`}case"too_small":{const a=i.inclusive?"이상":"초과",o=a==="이상"?"이어야 합니다":"여야 합니다",l=t(i.origin),u=(l==null?void 0:l.unit)??"요소";return l?`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()}${u} ${a}${o}`:`${i.origin??"값"}이 너무 작습니다: ${i.minimum.toString()} ${a}${o}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[a.format]??i.format}`}case"not_multiple_of":return`잘못된 숫자: ${i.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${N(i.keys,", ")}`;case"invalid_key":return`잘못된 키: ${i.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${i.origin}`;default:return"잘못된 입력"}}};function ok(){return{localeError:ak()}}const lk=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"број";case"object":{if(Array.isArray(i))return"низа";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return i=>{switch(i.code){case"invalid_type":return`Грешен внес: се очекува ${i.expected}, примено ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${Y(i.values[0])}`:`Грешана опција: се очекува една ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Премногу голем: се очекува ${i.origin??"вредноста"} да има ${a}${i.maximum.toString()} ${o.unit??"елементи"}`:`Премногу голем: се очекува ${i.origin??"вредноста"} да биде ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Премногу мал: се очекува ${i.origin} да има ${a}${i.minimum.toString()} ${o.unit}`:`Премногу мал: се очекува ${i.origin} да биде ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${r[a.format]??i.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${N(i.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${i.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${i.origin}`;default:return"Грешен внес"}}};function uk(){return{localeError:lk()}}const ck=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"nombor";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak sah: dijangka ${i.expected}, diterima ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${Y(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Terlalu besar: dijangka ${i.origin??"nilai"} ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Terlalu kecil: dijangka ${i.origin} ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${r[a.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${N(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function sk(){return{localeError:ck()}}const fk=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"getal";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return i=>{switch(i.code){case"invalid_type":return`Ongeldige invoer: verwacht ${i.expected}, ontving ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${Y(i.values[0])}`:`Ongeldige optie: verwacht één van ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Te lang: verwacht dat ${i.origin??"waarde"} ${a}${i.maximum.toString()} ${o.unit??"elementen"} bevat`:`Te lang: verwacht dat ${i.origin??"waarde"} ${a}${i.maximum.toString()} is`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Te kort: verwacht dat ${i.origin} ${a}${i.minimum.toString()} ${o.unit} bevat`:`Te kort: verwacht dat ${i.origin} ${a}${i.minimum.toString()} is`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${r[a.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function dk(){return{localeError:fk()}}const mk=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"tall";case"object":{if(Array.isArray(i))return"liste";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Ugyldig input: forventet ${i.expected}, fikk ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${Y(i.values[0])}`:`Ugyldig valg: forventet en av ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`For stor(t): forventet ${i.origin??"value"} til å ha ${a}${i.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til å ha ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`For lite(n): forventet ${i.origin} til å ha ${a}${i.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${i.origin} til å ha ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${r[a.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${N(i.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function pk(){return{localeError:mk()}}const hk=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"numara";case"object":{if(Array.isArray(i))return"saf";if(i===null)return"gayb";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return i=>{switch(i.code){case"invalid_type":return`Fâsit giren: umulan ${i.expected}, alınan ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Fâsit giren: umulan ${Y(i.values[0])}`:`Fâsit tercih: mûteberler ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Fazla büyük: ${i.origin??"value"}, ${a}${i.maximum.toString()} ${o.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${i.origin??"value"}, ${a}${i.maximum.toString()} olmalıydı.`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Fazla küçük: ${i.origin}, ${a}${i.minimum.toString()} ${o.unit} sahip olmalıydı.`:`Fazla küçük: ${i.origin}, ${a}${i.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${r[a.format]??i.format}`}case"not_multiple_of":return`Fâsit sayı: ${i.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`${i.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${i.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function gk(){return{localeError:hk()}}const vk=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"عدد";case"object":{if(Array.isArray(i))return"ارې";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return i=>{switch(i.code){case"invalid_type":return`ناسم ورودي: باید ${i.expected} وای, مګر ${n(i.input)} ترلاسه شو`;case"invalid_value":return i.values.length===1?`ناسم ورودي: باید ${Y(i.values[0])} وای`:`ناسم انتخاب: باید یو له ${N(i.values,"|")} څخه وای`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`ډیر لوی: ${i.origin??"ارزښت"} باید ${a}${i.maximum.toString()} ${o.unit??"عنصرونه"} ولري`:`ډیر لوی: ${i.origin??"ارزښت"} باید ${a}${i.maximum.toString()} وي`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`ډیر کوچنی: ${i.origin} باید ${a}${i.minimum.toString()} ${o.unit} ولري`:`ډیر کوچنی: ${i.origin} باید ${a}${i.minimum.toString()} وي`}case"invalid_format":{const a=i;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${r[a.format]??i.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${i.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${i.keys.length>1?"کلیډونه":"کلیډ"}: ${N(i.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${i.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${i.origin} کې`;default:return"ناسمه ورودي"}}};function bk(){return{localeError:vk()}}const yk=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"liczba";case"object":{if(Array.isArray(i))return"tablica";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return i=>{switch(i.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${i.expected}, otrzymano ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Y(i.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Za duża wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${a}${i.maximum.toString()} ${o.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Za mała wartość: oczekiwano, że ${i.origin??"wartość"} będzie mieć ${a}${i.minimum.toString()} ${o.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${i.origin??"wartość"} będzie wynosić ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${r[a.format]??i.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${i.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${i.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function _k(){return{localeError:yk()}}const Sk=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"número";case"object":{if(Array.isArray(i))return"array";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipo inválido: esperado ${i.expected}, recebido ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inválida: esperado ${Y(i.values[0])}`:`Opção inválida: esperada uma das ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${a}${i.maximum.toString()} ${o.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Muito pequeno: esperado que ${i.origin} tivesse ${a}${i.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${r[a.format]??i.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Chave inválida em ${i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${i.origin}`;default:return"Campo inválido"}}};function $k(){return{localeError:Sk()}}function Qh(e,t,n,r){const i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}const zk=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"число";case"object":{if(Array.isArray(i))return"массив";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return i=>{switch(i.code){case"invalid_type":return`Неверный ввод: ожидалось ${i.expected}, получено ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Неверный ввод: ожидалось ${Y(i.values[0])}`:`Неверный вариант: ожидалось одно из ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);if(o){const l=Number(i.maximum),u=Qh(l,o.unit.one,o.unit.few,o.unit.many);return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет иметь ${a}${i.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${i.origin??"значение"} будет ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);if(o){const l=Number(i.minimum),u=Qh(l,o.unit.one,o.unit.few,o.unit.many);return`Слишком маленькое значение: ожидалось, что ${i.origin} будет иметь ${a}${i.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${i.origin} будет ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${r[a.format]??i.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${i.divisor}`;case"unrecognized_keys":return`Нераспознанн${i.keys.length>1?"ые":"ый"} ключ${i.keys.length>1?"и":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${i.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${i.origin}`;default:return"Неверные входные данные"}}};function xk(){return{localeError:zk()}}const wk=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"število";case"object":{if(Array.isArray(i))return"tabela";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return i=>{switch(i.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${i.expected}, prejeto ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Neveljaven vnos: pričakovano ${Y(i.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} imelo ${a}${i.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${i.origin??"vrednost"} ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Premajhno: pričakovano, da bo ${i.origin} imelo ${a}${i.minimum.toString()} ${o.unit}`:`Premajhno: pričakovano, da bo ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${r[a.format]??i.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i ključi":" ključ"}: ${N(i.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function kk(){return{localeError:wk()}}const Tk=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"antal";case"object":{if(Array.isArray(i))return"lista";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return i=>{switch(i.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${i.expected}, fick ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Ogiltig inmatning: förväntat ${Y(i.values[0])}`:`Ogiltigt val: förväntade en av ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`För stor(t): förväntade ${i.origin??"värdet"} att ha ${a}${i.maximum.toString()} ${o.unit??"element"}`:`För stor(t): förväntat ${i.origin??"värdet"} att ha ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`För lite(t): förväntade ${i.origin??"värdet"} att ha ${a}${i.minimum.toString()} ${o.unit}`:`För lite(t): förväntade ${i.origin??"värdet"} att ha ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${r[a.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${N(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${i.origin??"värdet"}`;default:return"Ogiltig input"}}};function Ek(){return{localeError:Tk()}}const Ok=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(i))return"அணி";if(i===null)return"வெறுமை";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i.expected}, பெறப்பட்டது ${n(i.input)}`;case"invalid_value":return i.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Y(i.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${N(i.values,"|")} இல் ஒன்று`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${a}${i.maximum.toString()} ${o.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${i.origin??"மதிப்பு"} ${a}${i.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${a}${i.minimum.toString()} ${o.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${i.origin} ${a}${i.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=i;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[a.format]??i.format}`}case"not_multiple_of":return`தவறான எண்: ${i.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${i.keys.length>1?"கள்":""}: ${N(i.keys,", ")}`;case"invalid_key":return`${i.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${i.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Nk(){return{localeError:Ok()}}const jk=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(i))return"อาร์เรย์ (Array)";if(i===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return i=>{switch(i.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i.expected} แต่ได้รับ ${n(i.input)}`;case"invalid_value":return i.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Y(i.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"ไม่เกิน":"น้อยกว่า",o=t(i.origin);return o?`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${a} ${i.maximum.toString()} ${o.unit??"รายการ"}`:`เกินกำหนด: ${i.origin??"ค่า"} ควรมี${a} ${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?"อย่างน้อย":"มากกว่า",o=t(i.origin);return o?`น้อยกว่ากำหนด: ${i.origin} ควรมี${a} ${i.minimum.toString()} ${o.unit}`:`น้อยกว่ากำหนด: ${i.origin} ควรมี${a} ${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[a.format]??i.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${i.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${N(i.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${i.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${i.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Uk(){return{localeError:jk()}}const Ak=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Dk=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(r){return e[r]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return r=>{switch(r.code){case"invalid_type":return`Geçersiz değer: beklenen ${r.expected}, alınan ${Ak(r.input)}`;case"invalid_value":return r.values.length===1?`Geçersiz değer: beklenen ${Y(r.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${N(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Çok büyük: beklenen ${r.origin??"değer"} ${i}${r.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${r.origin??"değer"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Çok küçük: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Geçersiz metin: "${i.prefix}" ile başlamalı`:i.format==="ends_with"?`Geçersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Geçersiz metin: "${i.includes}" içermeli`:i.format==="regex"?`Geçersiz metin: ${i.pattern} desenine uymalı`:`Geçersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Geçersiz sayı: ${r.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${r.keys.length>1?"lar":""}: ${N(r.keys,", ")}`;case"invalid_key":return`${r.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${r.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Rk(){return{localeError:Dk()}}const Ck=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"число";case"object":{if(Array.isArray(i))return"масив";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return i=>{switch(i.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${i.expected}, отримано ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Неправильні вхідні дані: очікується ${Y(i.values[0])}`:`Неправильна опція: очікується одне з ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Занадто велике: очікується, що ${i.origin??"значення"} ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"елементів"}`:`Занадто велике: очікується, що ${i.origin??"значення"} буде ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Занадто мале: очікується, що ${i.origin} ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Занадто мале: очікується, що ${i.origin} буде ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${r[a.format]??i.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${i.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${i.keys.length>1?"і":""}: ${N(i.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${i.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${i.origin}`;default:return"Неправильні вхідні дані"}}};function Mk(){return{localeError:Ck()}}const Ik=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"نمبر";case"object":{if(Array.isArray(i))return"آرے";if(i===null)return"نل";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return i=>{switch(i.code){case"invalid_type":return`غلط ان پٹ: ${i.expected} متوقع تھا، ${n(i.input)} موصول ہوا`;case"invalid_value":return i.values.length===1?`غلط ان پٹ: ${Y(i.values[0])} متوقع تھا`:`غلط آپشن: ${N(i.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`بہت بڑا: ${i.origin??"ویلیو"} کے ${a}${i.maximum.toString()} ${o.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${i.origin??"ویلیو"} کا ${a}${i.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`بہت چھوٹا: ${i.origin} کے ${a}${i.minimum.toString()} ${o.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${i.origin} کا ${a}${i.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=i;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${r[a.format]??i.format}`}case"not_multiple_of":return`غلط نمبر: ${i.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${i.keys.length>1?"ز":""}: ${N(i.keys,"، ")}`;case"invalid_key":return`${i.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${i.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Zk(){return{localeError:Ik()}}const qk=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"số";case"object":{if(Array.isArray(i))return"mảng";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return i=>{switch(i.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${i.expected}, nhận được ${n(i.input)}`;case"invalid_value":return i.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Y(i.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Quá lớn: mong đợi ${i.origin??"giá trị"} ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"phần tử"}`:`Quá lớn: mong đợi ${i.origin??"giá trị"} ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`Quá nhỏ: mong đợi ${i.origin} ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Quá nhỏ: mong đợi ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${r[a.format]??i.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${i.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${N(i.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${i.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${i.origin}`;default:return"Đầu vào không hợp lệ"}}};function Hk(){return{localeError:qk()}}const Lk=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(i))return"数组";if(i===null)return"空值(null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return i=>{switch(i.code){case"invalid_type":return`无效输入:期望 ${i.expected},实际接收 ${n(i.input)}`;case"invalid_value":return i.values.length===1?`无效输入:期望 ${Y(i.values[0])}`:`无效选项:期望以下之一 ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`数值过大:期望 ${i.origin??"值"} ${a}${i.maximum.toString()} ${o.unit??"个元素"}`:`数值过大:期望 ${i.origin??"值"} ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`数值过小:期望 ${i.origin} ${a}${i.minimum.toString()} ${o.unit}`:`数值过小:期望 ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${r[a.format]??i.format}`}case"not_multiple_of":return`无效数字:必须是 ${i.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${N(i.keys,", ")}`;case"invalid_key":return`${i.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${i.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Bk(){return{localeError:Lk()}}const Gk=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(i){return e[i]??null}const n=i=>{const a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return i=>{switch(i.code){case"invalid_type":return`無效的輸入值:預期為 ${i.expected},但收到 ${n(i.input)}`;case"invalid_value":return i.values.length===1?`無效的輸入值:預期為 ${Y(i.values[0])}`:`無效的選項:預期為以下其中之一 ${N(i.values,"|")}`;case"too_big":{const a=i.inclusive?"<=":"<",o=t(i.origin);return o?`數值過大:預期 ${i.origin??"值"} 應為 ${a}${i.maximum.toString()} ${o.unit??"個元素"}`:`數值過大:預期 ${i.origin??"值"} 應為 ${a}${i.maximum.toString()}`}case"too_small":{const a=i.inclusive?">=":">",o=t(i.origin);return o?`數值過小:預期 ${i.origin} 應為 ${a}${i.minimum.toString()} ${o.unit}`:`數值過小:預期 ${i.origin} 應為 ${a}${i.minimum.toString()}`}case"invalid_format":{const a=i;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${r[a.format]??i.format}`}case"not_multiple_of":return`無效的數字:必須為 ${i.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${i.keys.length>1?"們":""}:${N(i.keys,"、")}`;case"invalid_key":return`${i.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${i.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Yk(){return{localeError:Gk()}}const md=Object.freeze(Object.defineProperty({__proto__:null,ar:Sw,az:zw,be:ww,ca:Tw,cs:Ow,de:jw,en:OS,eo:Cw,es:Iw,fa:qw,fi:Lw,fr:Gw,frCA:Vw,he:Jw,hu:Kw,id:Ww,it:ek,ja:nk,kh:rk,ko:ok,mk:uk,ms:sk,nl:dk,no:pk,ota:gk,pl:_k,ps:bk,pt:$k,ru:xk,sl:kk,sv:Ek,ta:Nk,th:Uk,tr:Rk,ua:Mk,ur:Zk,vi:Hk,zhCN:Bk,zhTW:Yk},Symbol.toStringTag,{value:"Module"})),pd=Symbol("ZodOutput"),hd=Symbol("ZodInput");class gd{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};return delete r.id,{...r,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function iu(){return new gd}const Un=iu();function NS(e,t){return new e({type:"string",...E(t)})}function jS(e,t){return new e({type:"string",coerce:!0,...E(t)})}function vd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...E(t)})}function xl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...E(t)})}function bd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...E(t)})}function yd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...E(t)})}function _d(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...E(t)})}function Sd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...E(t)})}function $d(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...E(t)})}function zd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...E(t)})}function xd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...E(t)})}function wd(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...E(t)})}function kd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...E(t)})}function Td(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...E(t)})}function Ed(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...E(t)})}function Od(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...E(t)})}function Nd(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...E(t)})}function jd(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...E(t)})}function Ud(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...E(t)})}function Ad(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...E(t)})}function Dd(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...E(t)})}function Rd(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...E(t)})}function Cd(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...E(t)})}function Md(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...E(t)})}const Id={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function US(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...E(t)})}function AS(e,t){return new e({type:"string",format:"date",check:"string_format",...E(t)})}function DS(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...E(t)})}function RS(e,t){return new e({type:"string",format:"duration",check:"string_format",...E(t)})}function CS(e,t){return new e({type:"number",checks:[],...E(t)})}function MS(e,t){return new e({type:"number",coerce:!0,checks:[],...E(t)})}function IS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...E(t)})}function ZS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...E(t)})}function qS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...E(t)})}function HS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...E(t)})}function LS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...E(t)})}function BS(e,t){return new e({type:"boolean",...E(t)})}function GS(e,t){return new e({type:"boolean",coerce:!0,...E(t)})}function YS(e,t){return new e({type:"bigint",...E(t)})}function VS(e,t){return new e({type:"bigint",coerce:!0,...E(t)})}function XS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...E(t)})}function JS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...E(t)})}function QS(e,t){return new e({type:"symbol",...E(t)})}function KS(e,t){return new e({type:"undefined",...E(t)})}function PS(e,t){return new e({type:"null",...E(t)})}function WS(e){return new e({type:"any"})}function wl(e){return new e({type:"unknown"})}function FS(e,t){return new e({type:"never",...E(t)})}function e0(e,t){return new e({type:"void",...E(t)})}function t0(e,t){return new e({type:"date",...E(t)})}function n0(e,t){return new e({type:"date",coerce:!0,...E(t)})}function i0(e,t){return new e({type:"nan",...E(t)})}function Vn(e,t){return new id({check:"less_than",...E(t),value:e,inclusive:!1})}function At(e,t){return new id({check:"less_than",...E(t),value:e,inclusive:!0})}function Xn(e,t){return new rd({check:"greater_than",...E(t),value:e,inclusive:!1})}function ut(e,t){return new rd({check:"greater_than",...E(t),value:e,inclusive:!0})}function Zd(e){return Xn(0,e)}function qd(e){return Vn(0,e)}function Hd(e){return At(0,e)}function Ld(e){return ut(0,e)}function gr(e,t){return new o_({check:"multiple_of",...E(t),value:e})}function Va(e,t){return new c_({check:"max_size",...E(t),maximum:e})}function vr(e,t){return new s_({check:"min_size",...E(t),minimum:e})}function ru(e,t){return new f_({check:"size_equals",...E(t),size:e})}function Xa(e,t){return new d_({check:"max_length",...E(t),maximum:e})}function vi(e,t){return new m_({check:"min_length",...E(t),minimum:e})}function Ja(e,t){return new p_({check:"length_equals",...E(t),length:e})}function au(e,t){return new h_({check:"string_format",format:"regex",...E(t),pattern:e})}function ou(e){return new g_({check:"string_format",format:"lowercase",...E(e)})}function lu(e){return new v_({check:"string_format",format:"uppercase",...E(e)})}function uu(e,t){return new b_({check:"string_format",format:"includes",...E(t),includes:e})}function cu(e,t){return new y_({check:"string_format",format:"starts_with",...E(t),prefix:e})}function su(e,t){return new __({check:"string_format",format:"ends_with",...E(t),suffix:e})}function Bd(e,t,n){return new S_({check:"property",property:e,schema:t,...E(n)})}function fu(e,t){return new $_({check:"mime_type",mime:e,...E(t)})}function Wn(e){return new z_({check:"overwrite",tx:e})}function du(e){return Wn(t=>t.normalize(e))}function mu(){return Wn(e=>e.trim())}function pu(){return Wn(e=>e.toLowerCase())}function hu(){return Wn(e=>e.toUpperCase())}function Gd(e,t,n){return new e({type:"array",element:t,...E(n)})}function Vk(e,t,n){return new e({type:"union",options:t,...E(n)})}function Xk(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...E(r)})}function Jk(e,t,n){return new e({type:"intersection",left:t,right:n})}function r0(e,t,n,r){const i=n instanceof Z,a=i?r:n,o=i?n:null;return new e({type:"tuple",items:t,rest:o,...E(a)})}function Qk(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...E(r)})}function Kk(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...E(r)})}function Pk(e,t,n){return new e({type:"set",valueType:t,...E(n)})}function Wk(e,t,n){const r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:r,...E(n)})}function Fk(e,t,n){return new e({type:"enum",entries:t,...E(n)})}function e4(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...E(n)})}function a0(e,t){return new e({type:"file",...E(t)})}function t4(e,t){return new e({type:"transform",transform:t})}function n4(e,t){return new e({type:"optional",innerType:t})}function i4(e,t){return new e({type:"nullable",innerType:t})}function r4(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():n}})}function a4(e,t,n){return new e({type:"nonoptional",innerType:t,...E(n)})}function o4(e,t){return new e({type:"success",innerType:t})}function l4(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function u4(e,t,n){return new e({type:"pipe",in:t,out:n})}function c4(e,t){return new e({type:"readonly",innerType:t})}function s4(e,t,n){return new e({type:"template_literal",parts:t,...E(n)})}function f4(e,t){return new e({type:"lazy",getter:t})}function d4(e,t){return new e({type:"promise",innerType:t})}function o0(e,t,n){const r=E(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function l0(e,t,n){return new e({type:"custom",check:"custom",fn:t,...E(n)})}function u0(e,t){const n=E(t);let r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(y=>typeof y=="string"?y.toLowerCase():y),i=i.map(y=>typeof y=="string"?y.toLowerCase():y));const a=new Set(r),o=new Set(i),l=e.Pipe??dd,u=e.Boolean??ld,c=e.String??Ya,g=e.Transform??fd,h=new g({type:"transform",transform:(y,z)=>{let x=y;return n.case!=="sensitive"&&(x=x.toLowerCase()),a.has(x)?!0:o.has(x)?!1:(z.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:z.value,inst:h}),{})},error:n.error}),d=new l({type:"pipe",in:new c({type:"string",error:n.error}),out:h,error:n.error});return new l({type:"pipe",in:d,out:new u({type:"boolean",error:n.error}),error:n.error})}function c0(e,t,n,r={}){const i=E(r),a={...E(r),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:l=>n.test(l),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}class s0{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");const n=(...r)=>{const i=this._def.input?Ds(this._def.input,r,void 0,{callee:n}):r;if(!Array.isArray(i))throw new Error("Invalid arguments schema: not an array or tuple schema.");const a=t(...i);return this._def.output?Ds(this._def.output,a,void 0,{callee:n}):a};return n}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");const n=async(...r)=>{const i=this._def.input?await Rs(this._def.input,r,void 0,{callee:n}):r;if(!Array.isArray(i))throw new Error("Invalid arguments schema: not an array or tuple schema.");const a=await t(...i);return this._def.output?Rs(this._def.output,a,void 0,{callee:n}):a};return n}input(...t){const n=this.constructor;return Array.isArray(t[0])?new n({type:"function",input:new nu({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new n({type:"function",input:t[0],output:this._def.output})}output(t){const n=this.constructor;return new n({type:"function",input:this._def.input,output:t})}}function Yd(e){return new s0({type:"function",input:Array.isArray(e==null?void 0:e.input)?r0(nu,e==null?void 0:e.input):(e==null?void 0:e.input)??Gd(cd,wl(zl)),output:(e==null?void 0:e.output)??wl(zl)})}class Ms{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??Un,this.target=(t==null?void 0:t.target)??"draft-2020-12",this.unrepresentable=(t==null?void 0:t.unrepresentable)??"throw",this.override=(t==null?void 0:t.override)??(()=>{}),this.io=(t==null?void 0:t.io)??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var h,d,v;var r;const i=t._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},o=this.seen.get(t);if(o)return o.count++,n.schemaPath.includes(t)&&(o.cycle=n.path),o.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,l);const u=(d=(h=t._zod).toJSONSchema)==null?void 0:d.call(h);if(u)l.schema=u;else{const y={...n,schemaPath:[...n.schemaPath,t],path:n.path},z=t._zod.parent;if(z)l.ref=z,this.process(z,y),this.seen.get(z).isParent=!0;else{const x=l.schema;switch(i.type){case"string":{const s=x;s.type="string";const{minimum:f,maximum:p,format:_,patterns:k,contentEncoding:j}=t._zod.bag;if(typeof f=="number"&&(s.minLength=f),typeof p=="number"&&(s.maxLength=p),_&&(s.format=a[_]??_,s.format===""&&delete s.format),j&&(s.contentEncoding=j),k&&k.size>0){const T=[...k];T.length===1?s.pattern=T[0].source:T.length>1&&(l.schema.allOf=[...T.map(A=>({...this.target==="draft-7"?{type:"string"}:{},pattern:A.source}))])}break}case"number":{const s=x,{minimum:f,maximum:p,format:_,multipleOf:k,exclusiveMaximum:j,exclusiveMinimum:T}=t._zod.bag;typeof _=="string"&&_.includes("int")?s.type="integer":s.type="number",typeof T=="number"&&(s.exclusiveMinimum=T),typeof f=="number"&&(s.minimum=f,typeof T=="number"&&(T>=f?delete s.minimum:delete s.exclusiveMinimum)),typeof j=="number"&&(s.exclusiveMaximum=j),typeof p=="number"&&(s.maximum=p,typeof j=="number"&&(j<=p?delete s.maximum:delete s.exclusiveMaximum)),typeof k=="number"&&(s.multipleOf=k);break}case"boolean":{const s=x;s.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{x.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{x.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const s=x,{minimum:f,maximum:p}=t._zod.bag;typeof f=="number"&&(s.minItems=f),typeof p=="number"&&(s.maxItems=p),s.type="array",s.items=this.process(i.element,{...y,path:[...y.path,"items"]});break}case"object":{const s=x;s.type="object",s.properties={};const f=i.shape;for(const k in f)s.properties[k]=this.process(f[k],{...y,path:[...y.path,"properties",k]});const p=new Set(Object.keys(f)),_=new Set([...p].filter(k=>{const j=i.shape[k]._zod;return this.io==="input"?j.optin===void 0:j.optout===void 0}));_.size>0&&(s.required=Array.from(_)),((v=i.catchall)==null?void 0:v._zod.def.type)==="never"?s.additionalProperties=!1:i.catchall?i.catchall&&(s.additionalProperties=this.process(i.catchall,{...y,path:[...y.path,"additionalProperties"]})):this.io==="output"&&(s.additionalProperties=!1);break}case"union":{const s=x;s.anyOf=i.options.map((f,p)=>this.process(f,{...y,path:[...y.path,"anyOf",p]}));break}case"intersection":{const s=x,f=this.process(i.left,{...y,path:[...y.path,"allOf",0]}),p=this.process(i.right,{...y,path:[...y.path,"allOf",1]}),_=j=>"allOf"in j&&Object.keys(j).length===1,k=[..._(f)?f.allOf:[f],..._(p)?p.allOf:[p]];s.allOf=k;break}case"tuple":{const s=x;s.type="array";const f=i.items.map((k,j)=>this.process(k,{...y,path:[...y.path,"prefixItems",j]}));if(this.target==="draft-2020-12"?s.prefixItems=f:s.items=f,i.rest){const k=this.process(i.rest,{...y,path:[...y.path,"items"]});this.target==="draft-2020-12"?s.items=k:s.additionalItems=k}i.rest&&(s.items=this.process(i.rest,{...y,path:[...y.path,"items"]}));const{minimum:p,maximum:_}=t._zod.bag;typeof p=="number"&&(s.minItems=p),typeof _=="number"&&(s.maxItems=_);break}case"record":{const s=x;s.type="object",s.propertyNames=this.process(i.keyType,{...y,path:[...y.path,"propertyNames"]}),s.additionalProperties=this.process(i.valueType,{...y,path:[...y.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const s=x,f=Yf(i.entries);f.every(p=>typeof p=="number")&&(s.type="number"),f.every(p=>typeof p=="string")&&(s.type="string"),s.enum=f;break}case"literal":{const s=x,f=[];for(const p of i.values)if(p===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof p=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");f.push(Number(p))}else f.push(p);if(f.length!==0)if(f.length===1){const p=f[0];s.type=p===null?"null":typeof p,s.const=p}else f.every(p=>typeof p=="number")&&(s.type="number"),f.every(p=>typeof p=="string")&&(s.type="string"),f.every(p=>typeof p=="boolean")&&(s.type="string"),f.every(p=>p===null)&&(s.type="null"),s.enum=f;break}case"file":{const s=x,f={type:"string",format:"binary",contentEncoding:"binary"},{minimum:p,maximum:_,mime:k}=t._zod.bag;p!==void 0&&(f.minLength=p),_!==void 0&&(f.maxLength=_),k?k.length===1?(f.contentMediaType=k[0],Object.assign(s,f)):s.anyOf=k.map(j=>({...f,contentMediaType:j})):Object.assign(s,f);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const s=this.process(i.innerType,y);x.anyOf=[s,{type:"null"}];break}case"nonoptional":{this.process(i.innerType,y),l.ref=i.innerType;break}case"success":{const s=x;s.type="boolean";break}case"default":{this.process(i.innerType,y),l.ref=i.innerType,x.default=JSON.parse(JSON.stringify(i.defaultValue));break}case"prefault":{this.process(i.innerType,y),l.ref=i.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(i.defaultValue)));break}case"catch":{this.process(i.innerType,y),l.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=s;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const s=x,f=t._zod.pattern;if(!f)throw new Error("Pattern not found in template literal");s.type="string",s.pattern=f.source;break}case"pipe":{const s=this.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;this.process(s,y),l.ref=s;break}case"readonly":{this.process(i.innerType,y),l.ref=i.innerType,x.readOnly=!0;break}case"promise":{this.process(i.innerType,y),l.ref=i.innerType;break}case"optional":{this.process(i.innerType,y),l.ref=i.innerType;break}case"lazy":{const s=t._zod.innerType;this.process(s,y),l.ref=s;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const c=this.metadataRegistry.get(t);return c&&Object.assign(l.schema,c),this.io==="input"&&Re(t)&&(delete l.schema.examples,delete l.schema.default),this.io==="input"&&l.schema._prefault&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,this.seen.get(t).schema}emit(t,n){var g,h,d,v,y,z;const r={cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0},i=this.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=x=>{var k;const s=this.target==="draft-2020-12"?"$defs":"definitions";if(r.external){const j=(k=r.external.registry.get(x[0]))==null?void 0:k.id,T=r.external.uri??(R=>R);if(j)return{ref:T(j)};const A=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=A,{defId:A,ref:`${T("__shared")}#/${s}/${A}`}}if(x[1]===i)return{ref:"#"};const p=`#/${s}/`,_=x[1].schema.id??`__schema${this.counter++}`;return{defId:_,ref:p+_}},o=x=>{if(x[1].schema.$ref)return;const s=x[1],{ref:f,defId:p}=a(x);s.def={...s.schema},p&&(s.defId=p);const _=s.schema;for(const k in _)delete _[k];_.$ref=f};if(r.cycles==="throw")for(const x of this.seen.entries()){const s=x[1];if(s.cycle)throw new Error(`Cycle detected: #/${(g=s.cycle)==null?void 0:g.join("/")}/<root>
82
+
83
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of this.seen.entries()){const s=x[1];if(t===x[0]){o(x);continue}if(r.external){const p=(h=r.external.registry.get(x[0]))==null?void 0:h.id;if(t!==x[0]&&p){o(x);continue}}if((d=this.metadataRegistry.get(x[0]))==null?void 0:d.id){o(x);continue}if(s.cycle){o(x);continue}if(s.count>1&&r.reused==="ref"){o(x);continue}}const l=(x,s)=>{const f=this.seen.get(x),p=f.def??f.schema,_={...p};if(f.ref===null)return;const k=f.ref;if(f.ref=null,k){l(k,s);const j=this.seen.get(k).schema;j.$ref&&s.target==="draft-7"?(p.allOf=p.allOf??[],p.allOf.push(j)):(Object.assign(p,j),Object.assign(p,_))}f.isParent||this.override({zodSchema:x,jsonSchema:p,path:f.path??[]})};for(const x of[...this.seen.entries()].reverse())l(x[0],{target:this.target});const u={};if(this.target==="draft-2020-12"?u.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?u.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),(v=r.external)!=null&&v.uri){const x=(y=r.external.registry.get(t))==null?void 0:y.id;if(!x)throw new Error("Schema is missing an `id` property");u.$id=r.external.uri(x)}Object.assign(u,i.def);const c=((z=r.external)==null?void 0:z.defs)??{};for(const x of this.seen.entries()){const s=x[1];s.def&&s.defId&&(c[s.defId]=s.def)}r.external||Object.keys(c).length>0&&(this.target==="draft-2020-12"?u.$defs=c:u.definitions=c);try{return JSON.parse(JSON.stringify(u))}catch{throw new Error("Error converting schema to JSON.")}}}function Vd(e,t){if(e instanceof gd){const r=new Ms(t),i={};for(const l of e._idmap.entries()){const[u,c]=l;r.process(c)}const a={},o={registry:e,uri:t==null?void 0:t.uri,defs:i};for(const l of e._idmap.entries()){const[u,c]=l;a[u]=r.emit(c,{...t,external:o})}if(Object.keys(i).length>0){const l=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}const n=new Ms(t);return n.process(e),n.emit(e,t)}function Re(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Re(i.element,n);case"object":{for(const a in i.shape)if(Re(i.shape[a],n))return!0;return!1}case"union":{for(const a of i.options)if(Re(a,n))return!0;return!1}case"intersection":return Re(i.left,n)||Re(i.right,n);case"tuple":{for(const a of i.items)if(Re(a,n))return!0;return!!(i.rest&&Re(i.rest,n))}case"record":return Re(i.keyType,n)||Re(i.valueType,n);case"map":return Re(i.keyType,n)||Re(i.valueType,n);case"set":return Re(i.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Re(i.innerType,n);case"lazy":return Re(i.getter(),n);case"default":return Re(i.innerType,n);case"prefault":return Re(i.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return Re(i.in,n)||Re(i.out,n);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}const m4=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),f0=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:iS,$ZodArray:cd,$ZodAsyncError:mr,$ZodBase64:Y_,$ZodBase64URL:X_,$ZodBigInt:ud,$ZodBigIntFormat:F_,$ZodBoolean:ld,$ZodCIDRv4:B_,$ZodCIDRv6:G_,$ZodCUID:U_,$ZodCUID2:A_,$ZodCatch:$S,$ZodCheck:Ne,$ZodCheckBigIntFormat:u_,$ZodCheckEndsWith:__,$ZodCheckGreaterThan:rd,$ZodCheckIncludes:b_,$ZodCheckLengthEquals:p_,$ZodCheckLessThan:id,$ZodCheckLowerCase:g_,$ZodCheckMaxLength:d_,$ZodCheckMaxSize:c_,$ZodCheckMimeType:$_,$ZodCheckMinLength:m_,$ZodCheckMinSize:s_,$ZodCheckMultipleOf:o_,$ZodCheckNumberFormat:l_,$ZodCheckOverwrite:z_,$ZodCheckProperty:S_,$ZodCheckRegex:h_,$ZodCheckSizeEquals:f_,$ZodCheckStartsWith:y_,$ZodCheckStringFormat:Ga,$ZodCheckUpperCase:v_,$ZodCustom:ES,$ZodCustomStringFormat:P_,$ZodDate:oS,$ZodDefault:bS,$ZodDiscriminatedUnion:uS,$ZodE164:J_,$ZodEmail:E_,$ZodEmoji:N_,$ZodEnum:mS,$ZodError:Xf,$ZodFile:hS,$ZodFunction:s0,$ZodGUID:k_,$ZodIPv4:H_,$ZodIPv6:L_,$ZodISODate:I_,$ZodISODateTime:M_,$ZodISODuration:q_,$ZodISOTime:Z_,$ZodIntersection:cS,$ZodJWT:K_,$ZodKSUID:C_,$ZodLazy:TS,$ZodLiteral:pS,$ZodMap:fS,$ZodNaN:zS,$ZodNanoID:j_,$ZodNever:rS,$ZodNonOptional:_S,$ZodNull:nS,$ZodNullable:vS,$ZodNumber:od,$ZodNumberFormat:W_,$ZodObject:lS,$ZodOptional:gS,$ZodPipe:dd,$ZodPrefault:yS,$ZodPromise:kS,$ZodReadonly:xS,$ZodRealError:Ba,$ZodRecord:sS,$ZodRegistry:gd,$ZodSet:dS,$ZodString:Ya,$ZodStringFormat:ve,$ZodSuccess:SS,$ZodSymbol:eS,$ZodTemplateLiteral:wS,$ZodTransform:fd,$ZodTuple:nu,$ZodType:Z,$ZodULID:D_,$ZodURL:O_,$ZodUUID:T_,$ZodUndefined:tS,$ZodUnion:sd,$ZodUnknown:zl,$ZodVoid:aS,$ZodXID:R_,$brand:Gf,$constructor:$,$input:hd,$output:pd,Doc:x_,JSONSchema:m4,JSONSchemaGenerator:Ms,NEVER:Bf,TimePrecision:Id,_any:WS,_array:Gd,_base64:Dd,_base64url:Rd,_bigint:YS,_boolean:BS,_catch:l4,_cidrv4:Ud,_cidrv6:Ad,_coercedBigint:VS,_coercedBoolean:GS,_coercedDate:n0,_coercedNumber:MS,_coercedString:jS,_cuid:wd,_cuid2:kd,_custom:o0,_date:t0,_default:r4,_discriminatedUnion:Xk,_e164:Cd,_email:vd,_emoji:zd,_endsWith:su,_enum:Wk,_file:a0,_float32:ZS,_float64:qS,_gt:Xn,_gte:ut,_guid:xl,_includes:uu,_int:IS,_int32:HS,_int64:XS,_intersection:Jk,_ipv4:Nd,_ipv6:jd,_isoDate:AS,_isoDateTime:US,_isoDuration:RS,_isoTime:DS,_jwt:Md,_ksuid:Od,_lazy:f4,_length:Ja,_literal:e4,_lowercase:ou,_lt:Vn,_lte:At,_map:Kk,_max:At,_maxLength:Xa,_maxSize:Va,_mime:fu,_min:ut,_minLength:vi,_minSize:vr,_multipleOf:gr,_nan:i0,_nanoid:xd,_nativeEnum:Fk,_negative:qd,_never:FS,_nonnegative:Ld,_nonoptional:a4,_nonpositive:Hd,_normalize:du,_null:PS,_nullable:i4,_number:CS,_optional:n4,_overwrite:Wn,_parse:Kf,_parseAsync:Pf,_pipe:u4,_positive:Zd,_promise:d4,_property:Bd,_readonly:c4,_record:Qk,_refine:l0,_regex:au,_safeParse:Wf,_safeParseAsync:ed,_set:Pk,_size:ru,_startsWith:cu,_string:NS,_stringFormat:c0,_stringbool:u0,_success:o4,_symbol:QS,_templateLiteral:s4,_toLowerCase:pu,_toUpperCase:hu,_transform:t4,_trim:mu,_tuple:r0,_uint32:LS,_uint64:JS,_ulid:Td,_undefined:KS,_union:Vk,_unknown:wl,_uppercase:lu,_url:$d,_uuid:bd,_uuidv4:yd,_uuidv6:_d,_uuidv7:Sd,_void:e0,_xid:Ed,clone:Ht,config:Xe,flattenError:eu,formatError:tu,function:Yd,globalConfig:Sl,globalRegistry:Un,isValidBase64:ad,isValidBase64URL:V_,isValidJWT:Q_,locales:md,parse:Ds,parseAsync:Rs,prettifyError:Qf,regexes:nd,registry:iu,safeParse:Ff,safeParseAsync:ky,toDotPath:wy,toJSONSchema:Vd,treeifyError:Jf,util:sw,version:w_},Symbol.toStringTag,{value:"Module"}));function Xd(e){return!!e._zod}function d0(e,t){return Xd(e)?Ff(e,t):e.safeParse(t)}function p4(e){var n,r;if(!e)return;let t;if(Xd(e)?t=(r=(n=e._zod)==null?void 0:n.def)==null?void 0:r.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function h4(e){var i;if(Xd(e)){const o=(i=e._zod)==null?void 0:i.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}const n=e._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}const r=e.value;if(r!==void 0)return r}const gu=$("ZodISODateTime",(e,t)=>{M_.init(e,t),be.init(e,t)});function Jd(e){return US(gu,e)}const vu=$("ZodISODate",(e,t)=>{I_.init(e,t),be.init(e,t)});function m0(e){return AS(vu,e)}const bu=$("ZodISOTime",(e,t)=>{Z_.init(e,t),be.init(e,t)});function p0(e){return DS(bu,e)}const yu=$("ZodISODuration",(e,t)=>{q_.init(e,t),be.init(e,t)});function h0(e){return RS(yu,e)}const g0=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:vu,ZodISODateTime:gu,ZodISODuration:yu,ZodISOTime:bu,date:m0,datetime:Jd,duration:h0,time:p0},Symbol.toStringTag,{value:"Module"})),v0=(e,t)=>{Xf.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>tu(e,n)},flatten:{value:n=>eu(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},b0=$("ZodError",v0),Or=$("ZodError",v0,{Parent:Error}),Qd=Kf(Or),Kd=Pf(Or),Pd=Wf(Or),Wd=ed(Or),X=$("ZodType",(e,t)=>(Z.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>Ht(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>Qd(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Pd(e,n,r),e.parseAsync=async(n,r)=>Kd(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Wd(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(Am(n,r)),e.superRefine=n=>e.check(Dm(n)),e.overwrite=n=>e.check(Wn(n)),e.optional=()=>ge(e),e.nullable=()=>Ta(e),e.nullish=()=>ge(Ta(e)),e.nonoptional=n=>_m(e,n),e.array=()=>D(e),e.or=n=>M([e,n]),e.and=n=>eo(e,n),e.transform=n=>Ea(e,Yu(n)),e.default=n=>vm(e,n),e.prefault=n=>ym(e,n),e.catch=n=>zm(e,n),e.pipe=n=>Ea(e,n),e.readonly=()=>km(e),e.describe=n=>{const r=e.clone();return Un.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Un.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Un.get(e);const r=e.clone();return Un.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),_u=$("_ZodString",(e,t)=>{Ya.init(e,t),X.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(au(...r)),e.includes=(...r)=>e.check(uu(...r)),e.startsWith=(...r)=>e.check(cu(...r)),e.endsWith=(...r)=>e.check(su(...r)),e.min=(...r)=>e.check(vi(...r)),e.max=(...r)=>e.check(Xa(...r)),e.length=(...r)=>e.check(Ja(...r)),e.nonempty=(...r)=>e.check(vi(1,...r)),e.lowercase=r=>e.check(ou(r)),e.uppercase=r=>e.check(lu(r)),e.trim=()=>e.check(mu()),e.normalize=(...r)=>e.check(du(...r)),e.toLowerCase=()=>e.check(pu()),e.toUpperCase=()=>e.check(hu())}),Qa=$("ZodString",(e,t)=>{Ya.init(e,t),_u.init(e,t),e.email=n=>e.check(vd(Su,n)),e.url=n=>e.check($d($u,n)),e.jwt=n=>e.check(Md(Mu,n)),e.emoji=n=>e.check(zd(zu,n)),e.guid=n=>e.check(xl(ka,n)),e.uuid=n=>e.check(bd(Vt,n)),e.uuidv4=n=>e.check(yd(Vt,n)),e.uuidv6=n=>e.check(_d(Vt,n)),e.uuidv7=n=>e.check(Sd(Vt,n)),e.nanoid=n=>e.check(xd(xu,n)),e.guid=n=>e.check(xl(ka,n)),e.cuid=n=>e.check(wd(wu,n)),e.cuid2=n=>e.check(kd(ku,n)),e.ulid=n=>e.check(Td(Tu,n)),e.base64=n=>e.check(Dd(Du,n)),e.base64url=n=>e.check(Rd(Ru,n)),e.xid=n=>e.check(Ed(Eu,n)),e.ksuid=n=>e.check(Od(Ou,n)),e.ipv4=n=>e.check(Nd(Nu,n)),e.ipv6=n=>e.check(jd(ju,n)),e.cidrv4=n=>e.check(Ud(Uu,n)),e.cidrv6=n=>e.check(Ad(Au,n)),e.e164=n=>e.check(Cd(Cu,n)),e.datetime=n=>e.check(Jd(n)),e.date=n=>e.check(m0(n)),e.time=n=>e.check(p0(n)),e.duration=n=>e.check(h0(n))});function S(e){return NS(Qa,e)}const be=$("ZodStringFormat",(e,t)=>{ve.init(e,t),_u.init(e,t)}),Su=$("ZodEmail",(e,t)=>{E_.init(e,t),be.init(e,t)});function y0(e){return vd(Su,e)}const ka=$("ZodGUID",(e,t)=>{k_.init(e,t),be.init(e,t)});function _0(e){return xl(ka,e)}const Vt=$("ZodUUID",(e,t)=>{T_.init(e,t),be.init(e,t)});function S0(e){return bd(Vt,e)}function $0(e){return yd(Vt,e)}function z0(e){return _d(Vt,e)}function x0(e){return Sd(Vt,e)}const $u=$("ZodURL",(e,t)=>{O_.init(e,t),be.init(e,t)});function w0(e){return $d($u,e)}const zu=$("ZodEmoji",(e,t)=>{N_.init(e,t),be.init(e,t)});function k0(e){return zd(zu,e)}const xu=$("ZodNanoID",(e,t)=>{j_.init(e,t),be.init(e,t)});function T0(e){return xd(xu,e)}const wu=$("ZodCUID",(e,t)=>{U_.init(e,t),be.init(e,t)});function E0(e){return wd(wu,e)}const ku=$("ZodCUID2",(e,t)=>{A_.init(e,t),be.init(e,t)});function O0(e){return kd(ku,e)}const Tu=$("ZodULID",(e,t)=>{D_.init(e,t),be.init(e,t)});function N0(e){return Td(Tu,e)}const Eu=$("ZodXID",(e,t)=>{R_.init(e,t),be.init(e,t)});function j0(e){return Ed(Eu,e)}const Ou=$("ZodKSUID",(e,t)=>{C_.init(e,t),be.init(e,t)});function U0(e){return Od(Ou,e)}const Nu=$("ZodIPv4",(e,t)=>{H_.init(e,t),be.init(e,t)});function A0(e){return Nd(Nu,e)}const ju=$("ZodIPv6",(e,t)=>{L_.init(e,t),be.init(e,t)});function D0(e){return jd(ju,e)}const Uu=$("ZodCIDRv4",(e,t)=>{B_.init(e,t),be.init(e,t)});function R0(e){return Ud(Uu,e)}const Au=$("ZodCIDRv6",(e,t)=>{G_.init(e,t),be.init(e,t)});function C0(e){return Ad(Au,e)}const Du=$("ZodBase64",(e,t)=>{Y_.init(e,t),be.init(e,t)});function M0(e){return Dd(Du,e)}const Ru=$("ZodBase64URL",(e,t)=>{X_.init(e,t),be.init(e,t)});function I0(e){return Rd(Ru,e)}const Cu=$("ZodE164",(e,t)=>{J_.init(e,t),be.init(e,t)});function Z0(e){return Cd(Cu,e)}const Mu=$("ZodJWT",(e,t)=>{K_.init(e,t),be.init(e,t)});function q0(e){return Md(Mu,e)}const Fd=$("ZodCustomStringFormat",(e,t)=>{P_.init(e,t),be.init(e,t)});function H0(e,t,n={}){return c0(Fd,e,t,n)}const Ka=$("ZodNumber",(e,t)=>{od.init(e,t),X.init(e,t),e.gt=(r,i)=>e.check(Xn(r,i)),e.gte=(r,i)=>e.check(ut(r,i)),e.min=(r,i)=>e.check(ut(r,i)),e.lt=(r,i)=>e.check(Vn(r,i)),e.lte=(r,i)=>e.check(At(r,i)),e.max=(r,i)=>e.check(At(r,i)),e.int=r=>e.check(kl(r)),e.safe=r=>e.check(kl(r)),e.positive=r=>e.check(Xn(0,r)),e.nonnegative=r=>e.check(ut(0,r)),e.negative=r=>e.check(Vn(0,r)),e.nonpositive=r=>e.check(At(0,r)),e.multipleOf=(r,i)=>e.check(gr(r,i)),e.step=(r,i)=>e.check(gr(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function C(e){return CS(Ka,e)}const wi=$("ZodNumberFormat",(e,t)=>{W_.init(e,t),Ka.init(e,t)});function kl(e){return IS(wi,e)}function L0(e){return ZS(wi,e)}function B0(e){return qS(wi,e)}function G0(e){return HS(wi,e)}function Y0(e){return LS(wi,e)}const Pa=$("ZodBoolean",(e,t)=>{ld.init(e,t),X.init(e,t)});function J(e){return BS(Pa,e)}const Wa=$("ZodBigInt",(e,t)=>{ud.init(e,t),X.init(e,t),e.gte=(r,i)=>e.check(ut(r,i)),e.min=(r,i)=>e.check(ut(r,i)),e.gt=(r,i)=>e.check(Xn(r,i)),e.gte=(r,i)=>e.check(ut(r,i)),e.min=(r,i)=>e.check(ut(r,i)),e.lt=(r,i)=>e.check(Vn(r,i)),e.lte=(r,i)=>e.check(At(r,i)),e.max=(r,i)=>e.check(At(r,i)),e.positive=r=>e.check(Xn(BigInt(0),r)),e.negative=r=>e.check(Vn(BigInt(0),r)),e.nonpositive=r=>e.check(At(BigInt(0),r)),e.nonnegative=r=>e.check(ut(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(gr(r,i));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function V0(e){return YS(Wa,e)}const Iu=$("ZodBigIntFormat",(e,t)=>{F_.init(e,t),Wa.init(e,t)});function X0(e){return XS(Iu,e)}function J0(e){return JS(Iu,e)}const em=$("ZodSymbol",(e,t)=>{eS.init(e,t),X.init(e,t)});function Q0(e){return QS(em,e)}const tm=$("ZodUndefined",(e,t)=>{tS.init(e,t),X.init(e,t)});function Jn(e){return KS(tm,e)}const nm=$("ZodNull",(e,t)=>{nS.init(e,t),X.init(e,t)});function Zu(e){return PS(nm,e)}const im=$("ZodAny",(e,t)=>{iS.init(e,t),X.init(e,t)});function K0(){return WS(im)}const rm=$("ZodUnknown",(e,t)=>{zl.init(e,t),X.init(e,t)});function ne(){return wl(rm)}const am=$("ZodNever",(e,t)=>{rS.init(e,t),X.init(e,t)});function gn(e){return FS(am,e)}const om=$("ZodVoid",(e,t)=>{aS.init(e,t),X.init(e,t)});function P0(e){return e0(om,e)}const qu=$("ZodDate",(e,t)=>{oS.init(e,t),X.init(e,t),e.min=(r,i)=>e.check(ut(r,i)),e.max=(r,i)=>e.check(At(r,i));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function W0(e){return t0(qu,e)}const lm=$("ZodArray",(e,t)=>{cd.init(e,t),X.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(vi(n,r)),e.nonempty=n=>e.check(vi(1,n)),e.max=(n,r)=>e.check(Xa(n,r)),e.length=(n,r)=>e.check(Ja(n,r)),e.unwrap=()=>e.element});function D(e,t){return Gd(lm,e,t)}function F0(e){const t=e._zod.def.shape;return m(Object.keys(t))}const Fa=$("ZodObject",(e,t)=>{lS.init(e,t),X.init(e,t),ie(e,"shape",()=>t.shape),e.keyof=()=>nt(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ne()}),e.loose=()=>e.clone({...e._zod.def,catchall:ne()}),e.strict=()=>e.clone({...e._zod.def,catchall:gn()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>_y(e,n),e.merge=n=>Sy(e,n),e.pick=n=>by(e,n),e.omit=n=>yy(e,n),e.partial=(...n)=>$y(Vu,e,n[0]),e.required=(...n)=>zy(Xu,e,n[0])});function b(e,t){const n={type:"object",get shape(){return Er(this,"shape",{...e}),this.shape},...E(t)};return new Fa(n)}function e$(e,t){return new Fa({type:"object",get shape(){return Er(this,"shape",{...e}),this.shape},catchall:gn(),...E(t)})}function Pe(e,t){return new Fa({type:"object",get shape(){return Er(this,"shape",{...e}),this.shape},catchall:ne(),...E(t)})}const Hu=$("ZodUnion",(e,t)=>{sd.init(e,t),X.init(e,t),e.options=t.options});function M(e,t){return new Hu({type:"union",options:e,...E(t)})}const um=$("ZodDiscriminatedUnion",(e,t)=>{Hu.init(e,t),uS.init(e,t)});function Lu(e,t,n){return new um({type:"union",options:t,discriminator:e,...E(n)})}const cm=$("ZodIntersection",(e,t)=>{cS.init(e,t),X.init(e,t)});function eo(e,t){return new cm({type:"intersection",left:e,right:t})}const sm=$("ZodTuple",(e,t)=>{nu.init(e,t),X.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function t$(e,t,n){const r=t instanceof Z,i=r?n:t,a=r?t:null;return new sm({type:"tuple",items:e,rest:a,...E(i)})}const Bu=$("ZodRecord",(e,t)=>{sS.init(e,t),X.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Q(e,t,n){return new Bu({type:"record",keyType:e,valueType:t,...E(n)})}function n$(e,t,n){return new Bu({type:"record",keyType:M([e,gn()]),valueType:t,...E(n)})}const fm=$("ZodMap",(e,t)=>{fS.init(e,t),X.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function i$(e,t,n){return new fm({type:"map",keyType:e,valueType:t,...E(n)})}const dm=$("ZodSet",(e,t)=>{dS.init(e,t),X.init(e,t),e.min=(...n)=>e.check(vr(...n)),e.nonempty=n=>e.check(vr(1,n)),e.max=(...n)=>e.check(Va(...n)),e.size=(...n)=>e.check(ru(...n))});function r$(e,t){return new dm({type:"set",valueType:e,...E(t)})}const br=$("ZodEnum",(e,t)=>{mS.init(e,t),X.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const a={};for(const o of r)if(n.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new br({...t,checks:[],...E(i),entries:a})},e.exclude=(r,i)=>{const a={...t.entries};for(const o of r)if(n.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new br({...t,checks:[],...E(i),entries:a})}});function nt(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new br({type:"enum",entries:n,...E(t)})}function a$(e,t){return new br({type:"enum",entries:e,...E(t)})}const mm=$("ZodLiteral",(e,t)=>{pS.init(e,t),X.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function m(e,t){return new mm({type:"literal",values:Array.isArray(e)?e:[e],...E(t)})}const pm=$("ZodFile",(e,t)=>{hS.init(e,t),X.init(e,t),e.min=(n,r)=>e.check(vr(n,r)),e.max=(n,r)=>e.check(Va(n,r)),e.mime=(n,r)=>e.check(fu(Array.isArray(n)?n:[n],r))});function o$(e){return a0(pm,e)}const Gu=$("ZodTransform",(e,t)=>{fd.init(e,t),X.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=a=>{if(typeof a=="string")n.issues.push(pr(a,n.value,t));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),o.continue??(o.continue=!0),n.issues.push(pr(o))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(a=>(n.value=a,n)):(n.value=i,n)}});function Yu(e){return new Gu({type:"transform",transform:e})}const Vu=$("ZodOptional",(e,t)=>{gS.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ge(e){return new Vu({type:"optional",innerType:e})}const hm=$("ZodNullable",(e,t)=>{vS.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ta(e){return new hm({type:"nullable",innerType:e})}function l$(e){return ge(Ta(e))}const gm=$("ZodDefault",(e,t)=>{bS.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vm(e,t){return new gm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const bm=$("ZodPrefault",(e,t)=>{yS.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ym(e,t){return new bm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const Xu=$("ZodNonOptional",(e,t)=>{_S.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _m(e,t){return new Xu({type:"nonoptional",innerType:e,...E(t)})}const Sm=$("ZodSuccess",(e,t)=>{SS.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType});function u$(e){return new Sm({type:"success",innerType:e})}const $m=$("ZodCatch",(e,t)=>{$S.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function zm(e,t){return new $m({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const xm=$("ZodNaN",(e,t)=>{zS.init(e,t),X.init(e,t)});function c$(e){return i0(xm,e)}const Ju=$("ZodPipe",(e,t)=>{dd.init(e,t),X.init(e,t),e.in=t.in,e.out=t.out});function Ea(e,t){return new Ju({type:"pipe",in:e,out:t})}const wm=$("ZodReadonly",(e,t)=>{xS.init(e,t),X.init(e,t)});function km(e){return new wm({type:"readonly",innerType:e})}const Tm=$("ZodTemplateLiteral",(e,t)=>{wS.init(e,t),X.init(e,t)});function s$(e,t){return new Tm({type:"template_literal",parts:e,...E(t)})}const Em=$("ZodLazy",(e,t)=>{TS.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.getter()});function Om(e){return new Em({type:"lazy",getter:e})}const Nm=$("ZodPromise",(e,t)=>{kS.init(e,t),X.init(e,t),e.unwrap=()=>e._zod.def.innerType});function f$(e){return new Nm({type:"promise",innerType:e})}const to=$("ZodCustom",(e,t)=>{ES.init(e,t),X.init(e,t)});function jm(e){const t=new Ne({check:"custom"});return t._zod.check=e,t}function Um(e,t){return o0(to,e??(()=>!0),t)}function Am(e,t={}){return l0(to,e,t)}function Dm(e){const t=jm(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(pr(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(pr(i))}},e(n.value,n)));return t}function d$(e,t={error:`Input not instance of ${e.name}`}){const n=new to({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...E(t)});return n._zod.bag.Class=e,n}const m$=(...e)=>u0({Pipe:Ju,Boolean:Pa,String:Qa,Transform:Gu},...e);function p$(e){const t=Om(()=>M([S(e),C(),J(),Zu(),D(t),Q(S(),t)]));return t}function Qu(e,t){return Ea(Yu(e),t)}const h$={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function g$(e){Xe({customError:e})}function v$(){return Xe().customError}function g4(e){return jS(Qa,e)}function v4(e){return MS(Ka,e)}function b4(e){return GS(Pa,e)}function y4(e){return VS(Wa,e)}function _4(e){return n0(qu,e)}const b$=Object.freeze(Object.defineProperty({__proto__:null,bigint:y4,boolean:b4,date:_4,number:v4,string:g4},Symbol.toStringTag,{value:"Module"}));Xe(OS());const Kh=Object.freeze(Object.defineProperty({__proto__:null,$brand:Gf,$input:hd,$output:pd,NEVER:Bf,TimePrecision:Id,ZodAny:im,ZodArray:lm,ZodBase64:Du,ZodBase64URL:Ru,ZodBigInt:Wa,ZodBigIntFormat:Iu,ZodBoolean:Pa,ZodCIDRv4:Uu,ZodCIDRv6:Au,ZodCUID:wu,ZodCUID2:ku,ZodCatch:$m,ZodCustom:to,ZodCustomStringFormat:Fd,ZodDate:qu,ZodDefault:gm,ZodDiscriminatedUnion:um,ZodE164:Cu,ZodEmail:Su,ZodEmoji:zu,ZodEnum:br,ZodError:b0,ZodFile:pm,ZodGUID:ka,ZodIPv4:Nu,ZodIPv6:ju,ZodISODate:vu,ZodISODateTime:gu,ZodISODuration:yu,ZodISOTime:bu,ZodIntersection:cm,ZodIssueCode:h$,ZodJWT:Mu,ZodKSUID:Ou,ZodLazy:Em,ZodLiteral:mm,ZodMap:fm,ZodNaN:xm,ZodNanoID:xu,ZodNever:am,ZodNonOptional:Xu,ZodNull:nm,ZodNullable:hm,ZodNumber:Ka,ZodNumberFormat:wi,ZodObject:Fa,ZodOptional:Vu,ZodPipe:Ju,ZodPrefault:bm,ZodPromise:Nm,ZodReadonly:wm,ZodRealError:Or,ZodRecord:Bu,ZodSet:dm,ZodString:Qa,ZodStringFormat:be,ZodSuccess:Sm,ZodSymbol:em,ZodTemplateLiteral:Tm,ZodTransform:Gu,ZodTuple:sm,ZodType:X,ZodULID:Tu,ZodURL:$u,ZodUUID:Vt,ZodUndefined:tm,ZodUnion:Hu,ZodUnknown:rm,ZodVoid:om,ZodXID:Eu,_ZodString:_u,_default:vm,any:K0,array:D,base64:M0,base64url:I0,bigint:V0,boolean:J,catch:zm,check:jm,cidrv4:R0,cidrv6:C0,clone:Ht,coerce:b$,config:Xe,core:f0,cuid:E0,cuid2:O0,custom:Um,date:W0,discriminatedUnion:Lu,e164:Z0,email:y0,emoji:k0,endsWith:su,enum:nt,file:o$,flattenError:eu,float32:L0,float64:B0,formatError:tu,function:Yd,getErrorMap:v$,globalRegistry:Un,gt:Xn,gte:ut,guid:_0,includes:uu,instanceof:d$,int:kl,int32:G0,int64:X0,intersection:eo,ipv4:A0,ipv6:D0,iso:g0,json:p$,jwt:q0,keyof:F0,ksuid:U0,lazy:Om,length:Ja,literal:m,locales:md,looseObject:Pe,lowercase:ou,lt:Vn,lte:At,map:i$,maxLength:Xa,maxSize:Va,mime:fu,minLength:vi,minSize:vr,multipleOf:gr,nan:c$,nanoid:T0,nativeEnum:a$,negative:qd,never:gn,nonnegative:Ld,nonoptional:_m,nonpositive:Hd,normalize:du,null:Zu,nullable:Ta,nullish:l$,number:C,object:b,optional:ge,overwrite:Wn,parse:Qd,parseAsync:Kd,partialRecord:n$,pipe:Ea,positive:Zd,prefault:ym,preprocess:Qu,prettifyError:Qf,promise:f$,property:Bd,readonly:km,record:Q,refine:Am,regex:au,regexes:nd,registry:iu,safeParse:Pd,safeParseAsync:Wd,set:r$,setErrorMap:g$,size:ru,startsWith:cu,strictObject:e$,string:S,stringFormat:H0,stringbool:m$,success:u$,superRefine:Dm,symbol:Q0,templateLiteral:s$,toJSONSchema:Vd,toLowerCase:pu,toUpperCase:hu,transform:Yu,treeifyError:Jf,trim:mu,tuple:t$,uint32:Y0,uint64:J0,ulid:N0,undefined:Jn,union:M,unknown:ne,uppercase:lu,url:w0,uuid:S0,uuidv4:$0,uuidv6:z0,uuidv7:x0,void:P0,xid:j0},Symbol.toStringTag,{value:"Module"})),S4=Object.freeze(Object.defineProperty({__proto__:null,$brand:Gf,$input:hd,$output:pd,NEVER:Bf,TimePrecision:Id,ZodAny:im,ZodArray:lm,ZodBase64:Du,ZodBase64URL:Ru,ZodBigInt:Wa,ZodBigIntFormat:Iu,ZodBoolean:Pa,ZodCIDRv4:Uu,ZodCIDRv6:Au,ZodCUID:wu,ZodCUID2:ku,ZodCatch:$m,ZodCustom:to,ZodCustomStringFormat:Fd,ZodDate:qu,ZodDefault:gm,ZodDiscriminatedUnion:um,ZodE164:Cu,ZodEmail:Su,ZodEmoji:zu,ZodEnum:br,ZodError:b0,ZodFile:pm,ZodGUID:ka,ZodIPv4:Nu,ZodIPv6:ju,ZodISODate:vu,ZodISODateTime:gu,ZodISODuration:yu,ZodISOTime:bu,ZodIntersection:cm,ZodIssueCode:h$,ZodJWT:Mu,ZodKSUID:Ou,ZodLazy:Em,ZodLiteral:mm,ZodMap:fm,ZodNaN:xm,ZodNanoID:xu,ZodNever:am,ZodNonOptional:Xu,ZodNull:nm,ZodNullable:hm,ZodNumber:Ka,ZodNumberFormat:wi,ZodObject:Fa,ZodOptional:Vu,ZodPipe:Ju,ZodPrefault:bm,ZodPromise:Nm,ZodReadonly:wm,ZodRealError:Or,ZodRecord:Bu,ZodSet:dm,ZodString:Qa,ZodStringFormat:be,ZodSuccess:Sm,ZodSymbol:em,ZodTemplateLiteral:Tm,ZodTransform:Gu,ZodTuple:sm,ZodType:X,ZodULID:Tu,ZodURL:$u,ZodUUID:Vt,ZodUndefined:tm,ZodUnion:Hu,ZodUnknown:rm,ZodVoid:om,ZodXID:Eu,_ZodString:_u,_default:vm,any:K0,array:D,base64:M0,base64url:I0,bigint:V0,boolean:J,catch:zm,check:jm,cidrv4:R0,cidrv6:C0,clone:Ht,coerce:b$,config:Xe,core:f0,cuid:E0,cuid2:O0,custom:Um,date:W0,default:Kh,discriminatedUnion:Lu,e164:Z0,email:y0,emoji:k0,endsWith:su,enum:nt,file:o$,flattenError:eu,float32:L0,float64:B0,formatError:tu,function:Yd,getErrorMap:v$,globalRegistry:Un,gt:Xn,gte:ut,guid:_0,includes:uu,instanceof:d$,int:kl,int32:G0,int64:X0,intersection:eo,ipv4:A0,ipv6:D0,iso:g0,json:p$,jwt:q0,keyof:F0,ksuid:U0,lazy:Om,length:Ja,literal:m,locales:md,looseObject:Pe,lowercase:ou,lt:Vn,lte:At,map:i$,maxLength:Xa,maxSize:Va,mime:fu,minLength:vi,minSize:vr,multipleOf:gr,nan:c$,nanoid:T0,nativeEnum:a$,negative:qd,never:gn,nonnegative:Ld,nonoptional:_m,nonpositive:Hd,normalize:du,null:Zu,nullable:Ta,nullish:l$,number:C,object:b,optional:ge,overwrite:Wn,parse:Qd,parseAsync:Kd,partialRecord:n$,pipe:Ea,positive:Zd,prefault:ym,preprocess:Qu,prettifyError:Qf,promise:f$,property:Bd,readonly:km,record:Q,refine:Am,regex:au,regexes:nd,registry:iu,safeParse:Pd,safeParseAsync:Wd,set:r$,setErrorMap:g$,size:ru,startsWith:cu,strictObject:e$,string:S,stringFormat:H0,stringbool:m$,success:u$,superRefine:Dm,symbol:Q0,templateLiteral:s$,toJSONSchema:Vd,toLowerCase:pu,toUpperCase:hu,transform:Yu,treeifyError:Jf,trim:mu,tuple:t$,uint32:Y0,uint64:J0,ulid:N0,undefined:Jn,union:M,unknown:ne,uppercase:lu,url:w0,uuid:S0,uuidv4:$0,uuidv6:z0,uuidv7:x0,void:P0,xid:j0,z:Kh},Symbol.toStringTag,{value:"Module"})),oi="io.modelcontextprotocol/related-task",Ku="2.0",Me=Um(e=>e!==null&&(typeof e=="object"||typeof e=="function")),y$=M([S(),C().int()]),_$=S();Pe({ttl:C().optional(),pollInterval:C().optional()});const $4=b({ttl:C().optional()}),z4=b({taskId:S()}),Rm=Pe({progressToken:y$.optional(),[oi]:z4.optional()}),$t=b({_meta:Rm.optional()}),no=$t.extend({task:$4.optional()}),x4=e=>no.safeParse(e).success,Je=b({method:S(),params:$t.loose().optional()}),Rt=b({_meta:Rm.optional()}),Ct=b({method:S(),params:Rt.loose().optional()}),Qe=Pe({_meta:Rm.optional()}),Nr=M([S(),C().int()]),S$=b({jsonrpc:m(Ku),id:Nr,...Je.shape}).strict(),Ph=e=>S$.safeParse(e).success,$$=b({jsonrpc:m(Ku),...Ct.shape}).strict(),w4=e=>$$.safeParse(e).success,Cm=b({jsonrpc:m(Ku),id:Nr,result:Qe}).strict(),No=e=>Cm.safeParse(e).success;var le;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(le||(le={}));const Mm=b({jsonrpc:m(Ku),id:Nr.optional(),error:b({code:C().int(),message:S(),data:ne().optional()})}).strict(),k4=e=>Mm.safeParse(e).success,T4=M([S$,$$,Cm,Mm]);M([Cm,Mm]);const Im=Qe.strict(),E4=Rt.extend({requestId:Nr.optional(),reason:S().optional()}),Zm=Ct.extend({method:m("notifications/cancelled"),params:E4}),O4=b({src:S(),mimeType:S().optional(),sizes:D(S()).optional(),theme:nt(["light","dark"]).optional()}),io=b({icons:D(O4).optional()}),yr=b({name:S(),title:S().optional()}),jr=yr.extend({...yr.shape,...io.shape,version:S(),websiteUrl:S().optional(),description:S().optional()}),N4=eo(b({applyDefaults:J().optional()}),Q(S(),ne())),j4=Qu(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,eo(b({form:N4.optional(),url:Me.optional()}),Q(S(),ne()).optional())),U4=Pe({list:Me.optional(),cancel:Me.optional(),requests:Pe({sampling:Pe({createMessage:Me.optional()}).optional(),elicitation:Pe({create:Me.optional()}).optional()}).optional()}),A4=Pe({list:Me.optional(),cancel:Me.optional(),requests:Pe({tools:Pe({call:Me.optional()}).optional()}).optional()}),D4=b({experimental:Q(S(),Me).optional(),sampling:b({context:Me.optional(),tools:Me.optional()}).optional(),elicitation:j4.optional(),roots:b({listChanged:J().optional()}).optional(),tasks:U4.optional(),extensions:Q(S(),Me).optional()}),R4=$t.extend({protocolVersion:S(),capabilities:D4,clientInfo:jr}),C4=Je.extend({method:m("initialize"),params:R4}),M4=b({experimental:Q(S(),Me).optional(),logging:Me.optional(),completions:Me.optional(),prompts:b({listChanged:J().optional()}).optional(),resources:b({subscribe:J().optional(),listChanged:J().optional()}).optional(),tools:b({listChanged:J().optional()}).optional(),tasks:A4.optional(),extensions:Q(S(),Me).optional()}),I4=Qe.extend({protocolVersion:S(),capabilities:M4,serverInfo:jr,instructions:S().optional()}),Z4=Ct.extend({method:m("notifications/initialized"),params:Rt.optional()}),Pu=Je.extend({method:m("ping"),params:$t.optional()}),q4=b({progress:C(),total:ge(C()),message:ge(S())}),H4=b({...Rt.shape,...q4.shape,progressToken:y$}),qm=Ct.extend({method:m("notifications/progress"),params:H4}),L4=$t.extend({cursor:_$.optional()}),ro=Je.extend({params:L4.optional()}),ao=Qe.extend({nextCursor:_$.optional()}),B4=nt(["working","input_required","completed","failed","cancelled"]),oo=b({taskId:S(),status:B4,ttl:M([C(),Zu()]),createdAt:S(),lastUpdatedAt:S(),pollInterval:ge(C()),statusMessage:ge(S())}),Hm=Qe.extend({task:oo}),G4=Rt.merge(oo),Tl=Ct.extend({method:m("notifications/tasks/status"),params:G4}),Lm=Je.extend({method:m("tasks/get"),params:$t.extend({taskId:S()})}),Bm=Qe.merge(oo),Gm=Je.extend({method:m("tasks/result"),params:$t.extend({taskId:S()})});Qe.loose();const Ym=ro.extend({method:m("tasks/list")}),Vm=ao.extend({tasks:D(oo)}),Xm=Je.extend({method:m("tasks/cancel"),params:$t.extend({taskId:S()})}),Y4=Qe.merge(oo),z$=b({uri:S(),mimeType:ge(S()),_meta:Q(S(),ne()).optional()}),x$=z$.extend({text:S()}),Jm=S().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),w$=z$.extend({blob:Jm}),lo=nt(["user","assistant"]),Ur=b({audience:D(lo).optional(),priority:C().min(0).max(1).optional(),lastModified:Jd({offset:!0}).optional()}),k$=b({...yr.shape,...io.shape,uri:S(),description:ge(S()),mimeType:ge(S()),size:ge(C()),annotations:Ur.optional(),_meta:ge(Pe({}))}),V4=b({...yr.shape,...io.shape,uriTemplate:S(),description:ge(S()),mimeType:ge(S()),annotations:Ur.optional(),_meta:ge(Pe({}))}),X4=ro.extend({method:m("resources/list")}),T$=ao.extend({resources:D(k$)}),J4=ro.extend({method:m("resources/templates/list")}),Q4=ao.extend({resourceTemplates:D(V4)}),Qm=$t.extend({uri:S()}),K4=Qm,P4=Je.extend({method:m("resources/read"),params:K4}),E$=Qe.extend({contents:D(M([x$,w$]))}),W4=Ct.extend({method:m("notifications/resources/list_changed"),params:Rt.optional()}),F4=Qm,eT=Je.extend({method:m("resources/subscribe"),params:F4}),tT=Qm,nT=Je.extend({method:m("resources/unsubscribe"),params:tT}),iT=Rt.extend({uri:S()}),rT=Ct.extend({method:m("notifications/resources/updated"),params:iT}),aT=b({name:S(),description:ge(S()),required:ge(J())}),oT=b({...yr.shape,...io.shape,description:ge(S()),arguments:ge(D(aT)),_meta:ge(Pe({}))}),lT=ro.extend({method:m("prompts/list")}),uT=ao.extend({prompts:D(oT)}),cT=$t.extend({name:S(),arguments:Q(S(),S()).optional()}),sT=Je.extend({method:m("prompts/get"),params:cT}),Km=b({type:m("text"),text:S(),annotations:Ur.optional(),_meta:Q(S(),ne()).optional()}),Pm=b({type:m("image"),data:Jm,mimeType:S(),annotations:Ur.optional(),_meta:Q(S(),ne()).optional()}),Wm=b({type:m("audio"),data:Jm,mimeType:S(),annotations:Ur.optional(),_meta:Q(S(),ne()).optional()}),fT=b({type:m("tool_use"),name:S(),id:S(),input:Q(S(),ne()),_meta:Q(S(),ne()).optional()}),Fm=b({type:m("resource"),resource:M([x$,w$]),annotations:Ur.optional(),_meta:Q(S(),ne()).optional()}),ep=k$.extend({type:m("resource_link")}),ki=M([Km,Pm,Wm,ep,Fm]),dT=b({role:lo,content:ki}),mT=Qe.extend({description:S().optional(),messages:D(dT)}),pT=Ct.extend({method:m("notifications/prompts/list_changed"),params:Rt.optional()}),hT=b({title:S().optional(),readOnlyHint:J().optional(),destructiveHint:J().optional(),idempotentHint:J().optional(),openWorldHint:J().optional()}),gT=b({taskSupport:nt(["required","optional","forbidden"]).optional()}),Wu=b({...yr.shape,...io.shape,description:S().optional(),inputSchema:b({type:m("object"),properties:Q(S(),Me).optional(),required:D(S()).optional()}).catchall(ne()),outputSchema:b({type:m("object"),properties:Q(S(),Me).optional(),required:D(S()).optional()}).catchall(ne()).optional(),annotations:hT.optional(),execution:gT.optional(),_meta:Q(S(),ne()).optional()}),O$=ro.extend({method:m("tools/list")}),vT=ao.extend({tools:D(Wu)}),uo=Qe.extend({content:D(ki).default([]),structuredContent:Q(S(),ne()).optional(),isError:J().optional()});uo.or(Qe.extend({toolResult:ne()}));const bT=no.extend({name:S(),arguments:Q(S(),ne()).optional()}),N$=Je.extend({method:m("tools/call"),params:bT}),yT=Ct.extend({method:m("notifications/tools/list_changed"),params:Rt.optional()});b({autoRefresh:J().default(!0),debounceMs:C().int().nonnegative().default(300)});const j$=nt(["debug","info","notice","warning","error","critical","alert","emergency"]),_T=$t.extend({level:j$}),ST=Je.extend({method:m("logging/setLevel"),params:_T}),$T=Rt.extend({level:j$,logger:S().optional(),data:ne()}),zT=Ct.extend({method:m("notifications/message"),params:$T}),xT=b({name:S().optional()}),wT=b({hints:D(xT).optional(),costPriority:C().min(0).max(1).optional(),speedPriority:C().min(0).max(1).optional(),intelligencePriority:C().min(0).max(1).optional()}),kT=b({mode:nt(["auto","required","none"]).optional()}),TT=b({type:m("tool_result"),toolUseId:S().describe("The unique identifier for the corresponding tool call."),content:D(ki).default([]),structuredContent:b({}).loose().optional(),isError:J().optional(),_meta:Q(S(),ne()).optional()}),ET=Lu("type",[Km,Pm,Wm]),El=Lu("type",[Km,Pm,Wm,fT,TT]),OT=b({role:lo,content:M([El,D(El)]),_meta:Q(S(),ne()).optional()}),NT=no.extend({messages:D(OT),modelPreferences:wT.optional(),systemPrompt:S().optional(),includeContext:nt(["none","thisServer","allServers"]).optional(),temperature:C().optional(),maxTokens:C().int(),stopSequences:D(S()).optional(),metadata:Me.optional(),tools:D(Wu).optional(),toolChoice:kT.optional()}),jT=Je.extend({method:m("sampling/createMessage"),params:NT}),U$=Qe.extend({model:S(),stopReason:ge(nt(["endTurn","stopSequence","maxTokens"]).or(S())),role:lo,content:ET}),A$=Qe.extend({model:S(),stopReason:ge(nt(["endTurn","stopSequence","maxTokens","toolUse"]).or(S())),role:lo,content:M([El,D(El)])}),UT=b({type:m("boolean"),title:S().optional(),description:S().optional(),default:J().optional()}),AT=b({type:m("string"),title:S().optional(),description:S().optional(),minLength:C().optional(),maxLength:C().optional(),format:nt(["email","uri","date","date-time"]).optional(),default:S().optional()}),DT=b({type:nt(["number","integer"]),title:S().optional(),description:S().optional(),minimum:C().optional(),maximum:C().optional(),default:C().optional()}),RT=b({type:m("string"),title:S().optional(),description:S().optional(),enum:D(S()),default:S().optional()}),CT=b({type:m("string"),title:S().optional(),description:S().optional(),oneOf:D(b({const:S(),title:S()})),default:S().optional()}),MT=b({type:m("string"),title:S().optional(),description:S().optional(),enum:D(S()),enumNames:D(S()).optional(),default:S().optional()}),IT=M([RT,CT]),ZT=b({type:m("array"),title:S().optional(),description:S().optional(),minItems:C().optional(),maxItems:C().optional(),items:b({type:m("string"),enum:D(S())}),default:D(S()).optional()}),qT=b({type:m("array"),title:S().optional(),description:S().optional(),minItems:C().optional(),maxItems:C().optional(),items:b({anyOf:D(b({const:S(),title:S()}))}),default:D(S()).optional()}),HT=M([ZT,qT]),LT=M([MT,IT,HT]),BT=M([LT,UT,AT,DT]),GT=no.extend({mode:m("form").optional(),message:S(),requestedSchema:b({type:m("object"),properties:Q(S(),BT),required:D(S()).optional()})}),YT=no.extend({mode:m("url"),message:S(),elicitationId:S(),url:S().url()}),VT=M([GT,YT]),XT=Je.extend({method:m("elicitation/create"),params:VT}),JT=Rt.extend({elicitationId:S()}),QT=Ct.extend({method:m("notifications/elicitation/complete"),params:JT}),KT=Qe.extend({action:nt(["accept","decline","cancel"]),content:Qu(e=>e===null?void 0:e,Q(S(),M([S(),C(),J(),D(S())])).optional())}),PT=b({type:m("ref/resource"),uri:S()}),WT=b({type:m("ref/prompt"),name:S()}),FT=$t.extend({ref:M([WT,PT]),argument:b({name:S(),value:S()}),context:b({arguments:Q(S(),S()).optional()}).optional()}),e6=Je.extend({method:m("completion/complete"),params:FT}),t6=Qe.extend({completion:Pe({values:D(S()).max(100),total:ge(C().int()),hasMore:ge(J())})}),n6=b({uri:S().startsWith("file://"),name:S().optional(),_meta:Q(S(),ne()).optional()}),i6=Je.extend({method:m("roots/list"),params:$t.optional()}),r6=Qe.extend({roots:D(n6)}),a6=Ct.extend({method:m("notifications/roots/list_changed"),params:Rt.optional()});M([Pu,C4,e6,ST,sT,lT,X4,J4,P4,eT,nT,N$,O$,Lm,Gm,Ym,Xm]);M([Zm,qm,Z4,a6,Tl]);M([Im,U$,A$,KT,r6,Bm,Vm,Hm]);M([Pu,jT,XT,i6,Lm,Gm,Ym,Xm]);M([Zm,qm,zT,rT,W4,yT,pT,Tl,QT]);M([Im,I4,t6,mT,uT,T$,Q4,E$,uo,vT,Bm,Vm,Hm]);class te extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r,this.name="McpError"}static fromError(t,n,r){if(t===le.UrlElicitationRequired&&r){const i=r;if(i.elicitations)return new o6(i.elicitations,n)}return new te(t,n,r)}}class o6 extends te{constructor(t,n=`URL elicitation${t.length>1?"s":""} required`){super(le.UrlElicitationRequired,n,{elicitations:t})}get elicitations(){var t;return((t=this.data)==null?void 0:t.elicitations)??[]}}function ti(e){return e==="completed"||e==="failed"||e==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Wh(e){const t=p4(e),n=t==null?void 0:t.method;if(!n)throw new Error("Schema is missing a method literal");const r=h4(n);if(typeof r!="string")throw new Error("Schema method literal must be a string");return r}function Fh(e,t){const n=d0(e,t);if(!n.success)throw n.error;return n.data}const l6=6e4;class u6{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Zm,n=>{this._oncancel(n)}),this.setNotificationHandler(qm,n=>{this._onprogress(n)}),this.setRequestHandler(Pu,n=>({})),this._taskStore=t==null?void 0:t.taskStore,this._taskMessageQueue=t==null?void 0:t.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Lm,async(n,r)=>{const i=await this._taskStore.getTask(n.params.taskId,r.sessionId);if(!i)throw new te(le.InvalidParams,"Failed to retrieve task: Task not found");return{...i}}),this.setRequestHandler(Gm,async(n,r)=>{const i=async()=>{var l;const a=n.params.taskId;if(this._taskMessageQueue){let u;for(;u=await this._taskMessageQueue.dequeue(a,r.sessionId);){if(u.type==="response"||u.type==="error"){const c=u.message,g=c.id,h=this._requestResolvers.get(g);if(h)if(this._requestResolvers.delete(g),u.type==="response")h(c);else{const d=c,v=new te(d.error.code,d.error.message,d.error.data);h(v)}else{const d=u.type==="response"?"Response":"Error";this._onerror(new Error(`${d} handler missing for request ${g}`))}continue}await((l=this._transport)==null?void 0:l.send(u.message,{relatedRequestId:r.requestId}))}}const o=await this._taskStore.getTask(a,r.sessionId);if(!o)throw new te(le.InvalidParams,`Task not found: ${a}`);if(!ti(o.status))return await this._waitForTaskUpdate(a,r.signal),await i();if(ti(o.status)){const u=await this._taskStore.getTaskResult(a,r.sessionId);return this._clearTaskQueue(a),{...u,_meta:{...u._meta,[oi]:{taskId:a}}}}return await i()};return await i()}),this.setRequestHandler(Ym,async(n,r)=>{var i;try{const{tasks:a,nextCursor:o}=await this._taskStore.listTasks((i=n.params)==null?void 0:i.cursor,r.sessionId);return{tasks:a,nextCursor:o,_meta:{}}}catch(a){throw new te(le.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(Xm,async(n,r)=>{try{const i=await this._taskStore.getTask(n.params.taskId,r.sessionId);if(!i)throw new te(le.InvalidParams,`Task not found: ${n.params.taskId}`);if(ti(i.status))throw new te(le.InvalidParams,`Cannot cancel task in terminal status: ${i.status}`);await this._taskStore.updateTaskStatus(n.params.taskId,"cancelled","Client cancelled task execution.",r.sessionId),this._clearTaskQueue(n.params.taskId);const a=await this._taskStore.getTask(n.params.taskId,r.sessionId);if(!a)throw new te(le.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...a}}catch(i){throw i instanceof te?i:new te(le.InvalidRequest,`Failed to cancel task: ${i instanceof Error?i.message:String(i)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;const n=this._requestHandlerAbortControllers.get(t.params.requestId);n==null||n.abort(t.params.reason)}_setupTimeout(t,n,r,i,a=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(i,n),startTime:Date.now(),timeout:n,maxTotalTimeout:r,resetTimeoutOnProgress:a,onTimeout:i})}_resetTimeout(t){const n=this._timeoutInfo.get(t);if(!n)return!1;const r=Date.now()-n.startTime;if(n.maxTotalTimeout&&r>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),te.fromError(le.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:r});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){const n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var a,o,l;if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;const n=(a=this.transport)==null?void 0:a.onclose;this._transport.onclose=()=>{n==null||n(),this._onclose()};const r=(o=this.transport)==null?void 0:o.onerror;this._transport.onerror=u=>{r==null||r(u),this._onerror(u)};const i=(l=this._transport)==null?void 0:l.onmessage;this._transport.onmessage=(u,c)=>{i==null||i(u,c),No(u)||k4(u)?this._onresponse(u):Ph(u)?this._onrequest(u,c):w4(u)?this._onnotification(u):this._onerror(new Error(`Unknown message type: ${JSON.stringify(u)}`))},await this._transport.start()}_onclose(){var r;const t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(const i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();const n=te.fromError(le.ConnectionClosed,"Connection closed");this._transport=void 0,(r=this.onclose)==null||r.call(this);for(const i of t.values())i(n)}_onerror(t){var n;(n=this.onerror)==null||n.call(this,t)}_onnotification(t){const n=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(t)).catch(r=>this._onerror(new Error(`Uncaught error in notification handler: ${r}`)))}_onrequest(t,n){var g,h,d,v;const r=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,i=this._transport,a=(d=(h=(g=t.params)==null?void 0:g._meta)==null?void 0:h[oi])==null?void 0:d.taskId;if(r===void 0){const y={jsonrpc:"2.0",id:t.id,error:{code:le.MethodNotFound,message:"Method not found"}};a&&this._taskMessageQueue?this._enqueueTaskMessage(a,{type:"error",message:y,timestamp:Date.now()},i==null?void 0:i.sessionId).catch(z=>this._onerror(new Error(`Failed to enqueue error response: ${z}`))):i==null||i.send(y).catch(z=>this._onerror(new Error(`Failed to send an error response: ${z}`)));return}const o=new AbortController;this._requestHandlerAbortControllers.set(t.id,o);const l=x4(t.params)?t.params.task:void 0,u=this._taskStore?this.requestTaskStore(t,i==null?void 0:i.sessionId):void 0,c={signal:o.signal,sessionId:i==null?void 0:i.sessionId,_meta:(v=t.params)==null?void 0:v._meta,sendNotification:async y=>{if(o.signal.aborted)return;const z={relatedRequestId:t.id};a&&(z.relatedTask={taskId:a}),await this.notification(y,z)},sendRequest:async(y,z,x)=>{var p;if(o.signal.aborted)throw new te(le.ConnectionClosed,"Request was cancelled");const s={...x,relatedRequestId:t.id};a&&!s.relatedTask&&(s.relatedTask={taskId:a});const f=((p=s.relatedTask)==null?void 0:p.taskId)??a;return f&&u&&await u.updateTaskStatus(f,"input_required"),await this.request(y,z,s)},authInfo:n==null?void 0:n.authInfo,requestId:t.id,requestInfo:n==null?void 0:n.requestInfo,taskId:a,taskStore:u,taskRequestedTtl:l==null?void 0:l.ttl,closeSSEStream:n==null?void 0:n.closeSSEStream,closeStandaloneSSEStream:n==null?void 0:n.closeStandaloneSSEStream};Promise.resolve().then(()=>{l&&this.assertTaskHandlerCapability(t.method)}).then(()=>r(t,c)).then(async y=>{if(o.signal.aborted)return;const z={result:y,jsonrpc:"2.0",id:t.id};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"response",message:z,timestamp:Date.now()},i==null?void 0:i.sessionId):await(i==null?void 0:i.send(z))},async y=>{if(o.signal.aborted)return;const z={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(y.code)?y.code:le.InternalError,message:y.message??"Internal error",...y.data!==void 0&&{data:y.data}}};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"error",message:z,timestamp:Date.now()},i==null?void 0:i.sessionId):await(i==null?void 0:i.send(z))}).catch(y=>this._onerror(new Error(`Failed to send response: ${y}`))).finally(()=>{this._requestHandlerAbortControllers.get(t.id)===o&&this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:n,...r}=t.params,i=Number(n),a=this._progressHandlers.get(i);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const o=this._responseHandlers.get(i),l=this._timeoutInfo.get(i);if(l&&o&&l.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(u){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),o(u);return}a(r)}_onresponse(t){const n=Number(t.id),r=this._requestResolvers.get(n);if(r){if(this._requestResolvers.delete(n),No(t))r(t);else{const o=new te(t.error.code,t.error.message,t.error.data);r(o)}return}const i=this._responseHandlers.get(n);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(n),this._cleanupTimeout(n);let a=!1;if(No(t)&&t.result&&typeof t.result=="object"){const o=t.result;if(o.task&&typeof o.task=="object"){const l=o.task;typeof l.taskId=="string"&&(a=!0,this._taskProgressTokens.set(l.taskId,n))}}if(a||this._progressHandlers.delete(n),No(t))i(t);else{const o=te.fromError(t.error.code,t.error.message,t.error.data);i(o)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)==null?void 0:t.close())}async*requestStream(t,n,r){var o,l;const{task:i}=r??{};if(!i){try{yield{type:"result",result:await this.request(t,n,r)}}catch(u){yield{type:"error",error:u instanceof te?u:new te(le.InternalError,String(u))}}return}let a;try{const u=await this.request(t,Hm,r);if(u.task)a=u.task.taskId,yield{type:"taskCreated",task:u.task};else throw new te(le.InternalError,"Task creation did not return a task");for(;;){const c=await this.getTask({taskId:a},r);if(yield{type:"taskStatus",task:c},ti(c.status)){c.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:a},n,r)}:c.status==="failed"?yield{type:"error",error:new te(le.InternalError,`Task ${a} failed`)}:c.status==="cancelled"&&(yield{type:"error",error:new te(le.InternalError,`Task ${a} was cancelled`)});return}if(c.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:a},n,r)};return}const g=c.pollInterval??((o=this._options)==null?void 0:o.defaultTaskPollInterval)??1e3;await new Promise(h=>setTimeout(h,g)),(l=r==null?void 0:r.signal)==null||l.throwIfAborted()}}catch(u){yield{type:"error",error:u instanceof te?u:new te(le.InternalError,String(u))}}}request(t,n,r){const{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o,task:l,relatedTask:u}=r??{};return new Promise((c,g)=>{var f,p,_,k,j;const h=T=>{g(T)};if(!this._transport){h(new Error("Not connected"));return}if(((f=this._options)==null?void 0:f.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(t.method),l&&this.assertTaskCapability(t.method)}catch(T){h(T);return}(p=r==null?void 0:r.signal)==null||p.throwIfAborted();const d=this._requestMessageId++,v={...t,jsonrpc:"2.0",id:d};r!=null&&r.onprogress&&(this._progressHandlers.set(d,r.onprogress),v.params={...t.params,_meta:{...((_=t.params)==null?void 0:_._meta)||{},progressToken:d}}),l&&(v.params={...v.params,task:l}),u&&(v.params={...v.params,_meta:{...((k=v.params)==null?void 0:k._meta)||{},[oi]:u}});const y=T=>{var R;this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),(R=this._transport)==null||R.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(T)}},{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o}).catch(B=>this._onerror(new Error(`Failed to send cancellation: ${B}`)));const A=T instanceof te?T:new te(le.RequestTimeout,String(T));g(A)};this._responseHandlers.set(d,T=>{var A;if(!((A=r==null?void 0:r.signal)!=null&&A.aborted)){if(T instanceof Error)return g(T);try{const R=d0(n,T.result);R.success?c(R.data):g(R.error)}catch(R){g(R)}}}),(j=r==null?void 0:r.signal)==null||j.addEventListener("abort",()=>{var T;y((T=r==null?void 0:r.signal)==null?void 0:T.reason)});const z=(r==null?void 0:r.timeout)??l6,x=()=>y(te.fromError(le.RequestTimeout,"Request timed out",{timeout:z}));this._setupTimeout(d,z,r==null?void 0:r.maxTotalTimeout,x,(r==null?void 0:r.resetTimeoutOnProgress)??!1);const s=u==null?void 0:u.taskId;if(s){const T=A=>{const R=this._responseHandlers.get(d);R?R(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,T),this._enqueueTaskMessage(s,{type:"request",message:v,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),g(A)})}else this._transport.send(v,{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o}).catch(T=>{this._cleanupTimeout(d),g(T)})})}async getTask(t,n){return this.request({method:"tasks/get",params:t},Bm,n)}async getTaskResult(t,n,r){return this.request({method:"tasks/result",params:t},n,r)}async listTasks(t,n){return this.request({method:"tasks/list",params:t},Vm,n)}async cancelTask(t,n){return this.request({method:"tasks/cancel",params:t},Y4,n)}async notification(t,n){var l,u,c,g;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const r=(l=n==null?void 0:n.relatedTask)==null?void 0:l.taskId;if(r){const h={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...((u=t.params)==null?void 0:u._meta)||{},[oi]:n.relatedTask}}};await this._enqueueTaskMessage(r,{type:"notification",message:h,timestamp:Date.now()});return}if((((c=this._options)==null?void 0:c.debouncedNotificationMethods)??[]).includes(t.method)&&!t.params&&!(n!=null&&n.relatedRequestId)&&!(n!=null&&n.relatedTask)){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var d,v;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let h={...t,jsonrpc:"2.0"};n!=null&&n.relatedTask&&(h={...h,params:{...h.params,_meta:{...((d=h.params)==null?void 0:d._meta)||{},[oi]:n.relatedTask}}}),(v=this._transport)==null||v.send(h,n).catch(y=>this._onerror(y))});return}let o={...t,jsonrpc:"2.0"};n!=null&&n.relatedTask&&(o={...o,params:{...o.params,_meta:{...((g=o.params)==null?void 0:g._meta)||{},[oi]:n.relatedTask}}}),await this._transport.send(o,n)}setRequestHandler(t,n){const r=Wh(t);this.assertRequestHandlerCapability(r),this._requestHandlers.set(r,(i,a)=>{const o=Fh(t,i);return Promise.resolve(n(o,a))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){const r=Wh(t);this._notificationHandlers.set(r,i=>{const a=Fh(t,i);return Promise.resolve(n(a))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){const n=this._taskProgressTokens.get(t);n!==void 0&&(this._progressHandlers.delete(n),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,n,r){var a;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const i=(a=this._options)==null?void 0:a.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,n,r,i)}async _clearTaskQueue(t,n){if(this._taskMessageQueue){const r=await this._taskMessageQueue.dequeueAll(t,n);for(const i of r)if(i.type==="request"&&Ph(i.message)){const a=i.message.id,o=this._requestResolvers.get(a);o?(o(new te(le.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(a)):this._onerror(new Error(`Resolver missing for request ${a} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,n){var i,a;let r=((i=this._options)==null?void 0:i.defaultTaskPollInterval)??1e3;try{const o=await((a=this._taskStore)==null?void 0:a.getTask(t));o!=null&&o.pollInterval&&(r=o.pollInterval)}catch{}return new Promise((o,l)=>{if(n.aborted){l(new te(le.InvalidRequest,"Request cancelled"));return}const u=setTimeout(o,r);n.addEventListener("abort",()=>{clearTimeout(u),l(new te(le.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,n){const r=this._taskStore;if(!r)throw new Error("No task store configured");return{createTask:async i=>{if(!t)throw new Error("No request provided");return await r.createTask(i,t.id,{method:t.method,params:t.params},n)},getTask:async i=>{const a=await r.getTask(i,n);if(!a)throw new te(le.InvalidParams,"Failed to retrieve task: Task not found");return a},storeTaskResult:async(i,a,o)=>{await r.storeTaskResult(i,a,o,n);const l=await r.getTask(i,n);if(l){const u=Tl.parse({method:"notifications/tasks/status",params:l});await this.notification(u),ti(l.status)&&this._cleanupTaskProgressHandler(i)}},getTaskResult:i=>r.getTaskResult(i,n),updateTaskStatus:async(i,a,o)=>{const l=await r.getTask(i,n);if(!l)throw new te(le.InvalidParams,`Task "${i}" not found - it may have been cleaned up`);if(ti(l.status))throw new te(le.InvalidParams,`Cannot update task "${i}" from terminal status "${l.status}" to "${a}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await r.updateTaskStatus(i,a,o,n);const u=await r.getTask(i,n);if(u){const c=Tl.parse({method:"notifications/tasks/status",params:u});await this.notification(c),ti(u.status)&&this._cleanupTaskProgressHandler(i)}},listTasks:i=>r.listTasks(i,n)}}}function eg(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function c6(e,t){const n={...e};for(const r in t){const i=r,a=t[i];if(a===void 0)continue;const o=n[i];eg(o)&&eg(a)?n[i]={...o,...a}:n[i]=a}return n}(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});let s6=class extends u6{constructor(){super(...arguments);oe(this,"_registeredMethods",new Set);oe(this,"_eventSlots",new Map);oe(this,"setRequestHandler",(n,r)=>{this._assertMethodNotRegistered(n,"setRequestHandler"),super.setRequestHandler(n,r)});oe(this,"setNotificationHandler",(n,r)=>{this._assertMethodNotRegistered(n,"setNotificationHandler"),super.setNotificationHandler(n,r)});oe(this,"replaceRequestHandler",(n,r)=>{let i=n.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(n,r)})}onEventDispatch(n,r){}_ensureEventSlot(n){let r=this._eventSlots.get(n);if(!r){let i=this.eventSchemas[n];if(!i)throw Error(`Unknown event: ${String(n)}`);r={listeners:[]},this._eventSlots.set(n,r);let a=i.shape.method.value;this._registeredMethods.add(a);let o=r;super.setNotificationHandler(i,l=>{var c;let u=l.params;this.onEventDispatch(n,u),(c=o.onHandler)==null||c.call(o,u);for(let g of[...o.listeners])g(u)})}return r}setEventHandler(n,r){let i=this._ensureEventSlot(n);i.onHandler&&r&&console.warn(`[MCP Apps] on${String(n)} handler replaced. Use addEventListener("${String(n)}", …) to add multiple listeners without replacing.`),i.onHandler=r}getEventHandler(n){var r;return(r=this._eventSlots.get(n))==null?void 0:r.onHandler}addEventListener(n,r){this._ensureEventSlot(n).listeners.push(r)}removeEventListener(n,r){let i=this._eventSlots.get(n);if(!i)return;let a=i.listeners.indexOf(r);a!==-1&&i.listeners.splice(a,1)}warnIfRequestHandlerReplaced(n,r,i){r&&i&&console.warn(`[MCP Apps] ${n} handler replaced. Previous handler will no longer be called.`)}_assertMethodNotRegistered(n,r){let i=n.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${r}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}};var f6="2026-01-26",d6="ui/notifications/tool-input-partial";let D$=class{constructor(t=window.parent,n){oe(this,"eventTarget");oe(this,"eventSource");oe(this,"messageListener");oe(this,"onclose");oe(this,"onerror");oe(this,"onmessage");oe(this,"sessionId");oe(this,"setProtocolVersion");this.eventTarget=t,this.eventSource=n,this.messageListener=r=>{var a,o,l;if(n&&r.source!==this.eventSource){console.debug("Ignoring message from unknown source",r);return}let i=T4.safeParse(r.data);i.success?(console.debug("Parsed message",i.data),(a=this.onmessage)==null||a.call(this,i.data)):((o=r.data)==null?void 0:o.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",i.error.message,r):(console.error("Failed to parse message",i.error.message,r),(l=this.onerror)==null||l.call(this,Error("Invalid JSON-RPC message received: "+i.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,n){t.method!==d6&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){var t;window.removeEventListener("message",this.messageListener),(t=this.onclose)==null||t.call(this)}};var m6=M([m("light"),m("dark")]).describe("Color theme preference for the host environment."),Oa=M([m("inline"),m("fullscreen"),m("pip")]).describe("Display mode for UI presentation."),p6=M([m("--color-background-primary"),m("--color-background-secondary"),m("--color-background-tertiary"),m("--color-background-inverse"),m("--color-background-ghost"),m("--color-background-info"),m("--color-background-danger"),m("--color-background-success"),m("--color-background-warning"),m("--color-background-disabled"),m("--color-text-primary"),m("--color-text-secondary"),m("--color-text-tertiary"),m("--color-text-inverse"),m("--color-text-ghost"),m("--color-text-info"),m("--color-text-danger"),m("--color-text-success"),m("--color-text-warning"),m("--color-text-disabled"),m("--color-border-primary"),m("--color-border-secondary"),m("--color-border-tertiary"),m("--color-border-inverse"),m("--color-border-ghost"),m("--color-border-info"),m("--color-border-danger"),m("--color-border-success"),m("--color-border-warning"),m("--color-border-disabled"),m("--color-ring-primary"),m("--color-ring-secondary"),m("--color-ring-inverse"),m("--color-ring-info"),m("--color-ring-danger"),m("--color-ring-success"),m("--color-ring-warning"),m("--font-sans"),m("--font-mono"),m("--font-weight-normal"),m("--font-weight-medium"),m("--font-weight-semibold"),m("--font-weight-bold"),m("--font-text-xs-size"),m("--font-text-sm-size"),m("--font-text-md-size"),m("--font-text-lg-size"),m("--font-heading-xs-size"),m("--font-heading-sm-size"),m("--font-heading-md-size"),m("--font-heading-lg-size"),m("--font-heading-xl-size"),m("--font-heading-2xl-size"),m("--font-heading-3xl-size"),m("--font-text-xs-line-height"),m("--font-text-sm-line-height"),m("--font-text-md-line-height"),m("--font-text-lg-line-height"),m("--font-heading-xs-line-height"),m("--font-heading-sm-line-height"),m("--font-heading-md-line-height"),m("--font-heading-lg-line-height"),m("--font-heading-xl-line-height"),m("--font-heading-2xl-line-height"),m("--font-heading-3xl-line-height"),m("--border-radius-xs"),m("--border-radius-sm"),m("--border-radius-md"),m("--border-radius-lg"),m("--border-radius-xl"),m("--border-radius-full"),m("--border-width-regular"),m("--shadow-hairline"),m("--shadow-sm"),m("--shadow-md"),m("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),h6=Q(p6.describe(`Style variables for theming MCP apps.
84
+
85
+ Individual style keys are optional - hosts may provide any subset of these values.
86
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
87
+
88
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
89
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),M([S(),Jn()]).describe(`Style variables for theming MCP apps.
90
+
91
+ Individual style keys are optional - hosts may provide any subset of these values.
92
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
93
+
94
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
95
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
96
+
97
+ Individual style keys are optional - hosts may provide any subset of these values.
98
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
99
+
100
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
101
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);b({method:m("ui/open-link"),params:b({url:S().describe("URL to open in the host's browser")})});var g6=b({isError:J().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),v6=b({isError:J().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),b6=b({isError:J().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();b({method:m("ui/notifications/sandbox-proxy-ready"),params:b({})});var tp=b({connectDomains:D(S()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
102
+
103
+ - Maps to CSP \`connect-src\` directive
104
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:D(S()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:D(S()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:D(S()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),np=b({camera:b({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:b({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:b({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:b({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});b({method:m("ui/notifications/size-changed"),params:b({width:C().optional().describe("New width in pixels."),height:C().optional().describe("New height in pixels.")})});var y6=b({method:m("ui/notifications/tool-input"),params:b({arguments:Q(S(),ne().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),_6=b({method:m("ui/notifications/tool-input-partial"),params:b({arguments:Q(S(),ne().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),S6=b({method:m("ui/notifications/tool-cancelled"),params:b({reason:S().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),$6=b({fonts:S().optional()}),z6=b({variables:h6.optional().describe("CSS variables for theming the app."),css:$6.optional().describe("CSS blocks that apps can inject.")}),x6=b({method:m("ui/resource-teardown"),params:b({})});Q(S(),ne());var tg=b({text:b({}).optional().describe("Host supports text content blocks."),image:b({}).optional().describe("Host supports image content blocks."),audio:b({}).optional().describe("Host supports audio content blocks."),resource:b({}).optional().describe("Host supports resource content blocks."),resourceLink:b({}).optional().describe("Host supports resource link content blocks."),structuredContent:b({}).optional().describe("Host supports structured content.")});b({method:m("ui/notifications/request-teardown"),params:b({}).optional()});var w6=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),openLinks:b({}).optional().describe("Host supports opening external URLs."),downloadFile:b({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:b({listChanged:J().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:b({listChanged:J().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:b({}).optional().describe("Host accepts log messages."),sandbox:b({permissions:np.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:tp.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:tg.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:tg.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:b({tools:b({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),k6=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),tools:b({listChanged:J().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:D(Oa).optional().describe("Display modes the app supports.")});b({method:m("ui/notifications/initialized"),params:b({}).optional()});b({csp:tp.optional().describe("Content Security Policy configuration for UI resources."),permissions:np.optional().describe("Sandbox permissions requested by the UI resource."),domain:S().optional().describe(`Dedicated origin for view sandbox.
105
+
106
+ Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
107
+
108
+ **Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
109
+ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
110
+ - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
111
+
112
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:J().optional().describe(`Visual boundary preference - true if view prefers a visible border.
113
+
114
+ Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
115
+
116
+ - \`true\`: request visible border + background
117
+ - \`false\`: request no visible border + background
118
+ - omitted: host decides border`)});b({method:m("ui/request-display-mode"),params:b({mode:Oa.describe("The display mode being requested.")})});var T6=b({mode:Oa.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),E6=M([m("model"),m("app")]).describe("Tool visibility scope - who can access the tool.");b({resourceUri:S().optional(),visibility:D(E6).optional().describe(`Who can access this tool. Default: ["model", "app"]
119
+ - "model": Tool visible to and callable by the agent
120
+ - "app": Tool callable by the app from this server only`),csp:gn().optional(),permissions:gn().optional()});b({mimeTypes:D(S()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});b({method:m("ui/download-file"),params:b({contents:D(M([Fm,ep])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});b({method:m("ui/message"),params:b({role:m("user").describe('Message role, currently only "user" is supported.'),content:D(ki).describe("Message content blocks (text, image, etc.).")})});b({method:m("ui/notifications/sandbox-resource-ready"),params:b({html:S().describe("HTML content to load into the inner iframe."),sandbox:S().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:tp.optional().describe("CSP configuration from resource metadata."),permissions:np.optional().describe("Sandbox permissions from resource metadata.")})});var O6=b({method:m("ui/notifications/tool-result"),params:uo.describe("Standard MCP tool execution result.")}),R$=b({toolInfo:b({id:Nr.optional().describe("JSON-RPC id of the tools/call request."),tool:Wu.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:m6.optional().describe("Current color theme preference."),styles:z6.optional().describe("Style configuration for theming the app."),displayMode:Oa.optional().describe("How the UI is currently displayed."),availableDisplayModes:D(Oa).optional().describe("Display modes the host supports."),containerDimensions:M([b({height:C().describe("Fixed container height in pixels.")}),b({maxHeight:M([C(),Jn()]).optional().describe("Maximum container height in pixels.")})]).and(M([b({width:C().describe("Fixed container width in pixels.")}),b({maxWidth:M([C(),Jn()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
121
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:S().optional().describe("User's language and region preference in BCP 47 format."),timeZone:S().optional().describe("User's timezone in IANA format."),userAgent:S().optional().describe("Host application identifier."),platform:M([m("web"),m("desktop"),m("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:b({touch:J().optional().describe("Whether the device supports touch input."),hover:J().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:b({top:C().describe("Top safe area inset in pixels."),right:C().describe("Right safe area inset in pixels."),bottom:C().describe("Bottom safe area inset in pixels."),left:C().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),N6=b({method:m("ui/notifications/host-context-changed"),params:R$.describe("Partial context update containing only changed fields.")});b({method:m("ui/update-model-context"),params:b({content:D(ki).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:Q(S(),ne().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});b({method:m("ui/initialize"),params:b({appInfo:jr.describe("App identification (name and version)."),appCapabilities:k6.describe("Features and capabilities this app provides."),protocolVersion:S().describe("Protocol version this app supports.")})});var j6=b({protocolVersion:S().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:jr.describe("Host application identification and version."),hostCapabilities:w6.describe("Features and capabilities provided by the host."),hostContext:R$.describe("Rich context about the host environment.")}).passthrough(),U6={target:"draft-2020-12"};async function ng(e,t){let n=e["~standard"];if(n.jsonSchema)return n.jsonSchema[t](U6);if(n.vendor==="zod"){let{z:r}=await Kx(()=>Promise.resolve().then(()=>S4),void 0,import.meta.url);return r.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function ig(e,t,n=""){let r=await e["~standard"].validate(t);if(r.issues){let i=r.issues.map(a=>{var l;let o=(l=a.path)==null?void 0:l.map(u=>typeof u=="object"?u.key:u).join(".");return o?`${o}: ${a.message}`:a.message}).join("; ");throw Error(n+i)}return r.value}function A6(e){let t=document.documentElement;t.setAttribute("data-theme",e),t.style.colorScheme=e}function D6(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function R6(e){if(document.getElementById("__mcp-host-fonts"))return;let t=document.createElement("style");t.id="__mcp-host-fonts",t.textContent=e,document.head.appendChild(t)}const Nl=class Nl extends s6{constructor(n,r={},i={autoResize:!0}){super(i);oe(this,"_appInfo");oe(this,"_capabilities");oe(this,"options");oe(this,"_hostCapabilities");oe(this,"_hostInfo");oe(this,"_hostContext");oe(this,"_registeredTools",{});oe(this,"_initializedSent",!1);oe(this,"eventSchemas",{toolinput:y6,toolinputpartial:_6,toolresult:O6,toolcancelled:S6,hostcontextchanged:N6});oe(this,"_everHadListener",new Set);oe(this,"_toolHandlersInitialized",!1);oe(this,"_onteardown");oe(this,"_oncalltool");oe(this,"_onlisttools");oe(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=r,this.options=i,i.allowUnsafeEval||Xe({jitless:!0}),this.setRequestHandler(Pu,a=>(console.log("Received ping:",a.params),{})),this.setEventHandler("hostcontextchanged",void 0)}_assertInitialized(n){var i;if(this._initializedSent)return;let r=`[ext-apps] App.${n}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if((i=this.options)!=null&&i.strict)throw Error(r);console.warn(`${r}. This will throw in a future release.`)}_assertHandlerTiming(n){var i;if(!Nl.ONE_SHOT_EVENTS.has(n)||this._everHadListener.has(n)||(this._everHadListener.add(n),!this._initializedSent))return;let r=`[ext-apps] "${String(n)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if((i=this.options)!=null&&i.strict)throw Error(r);console.warn(r)}setEventHandler(n,r){r&&this._assertHandlerTiming(n),super.setEventHandler(n,r)}addEventListener(n,r){this._assertHandlerTiming(n),super.addEventListener(n,r)}onEventDispatch(n,r){n==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...r})}registerCapabilities(n){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=c6(this._capabilities,n)}registerTool(n,r,i){if(this._registeredTools[n])throw Error(`Tool ${n} is already registered`);let a=this,o=()=>{var c;a._initializedSent&&((c=a._capabilities.tools)!=null&&c.listChanged)&&a.sendToolListChanged()},l=r.inputSchema!==void 0,u={title:r.title,description:r.description,inputSchema:r.inputSchema,outputSchema:r.outputSchema,annotations:r.annotations,_meta:r._meta,enabled:!0,enable(){this.enabled=!0,o()},disable(){this.enabled=!1,o()},update(c){Object.assign(this,c),o()},remove(){a._registeredTools[n]===u&&(delete a._registeredTools[n],o())},handler:async(c,g)=>{if(!u.enabled)throw Error(`Tool ${n} is disabled`);let h;if(l){let d=u.inputSchema,v=d?await ig(d,c??{},`Invalid input for tool ${n}: `):c??{};h=await i(v,g)}else h=await i(g);return u.outputSchema&&!h.isError&&(h.structuredContent=await ig(u.outputSchema,h.structuredContent,`Invalid output for tool ${n}: `)),h}};return this._registeredTools[n]=u,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),o(),u}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(n,r)=>{let i=this._registeredTools[n.name];if(!i)throw Error(`Tool ${n.name} not found`);return i.handler(n.arguments,r)},this.onlisttools=async(n,r)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([i,a])=>a.enabled).map(async([i,a])=>{let o={name:i,title:a.title,description:a.description,inputSchema:a.inputSchema?await ng(a.inputSchema,"input"):{type:"object",properties:{}}};return a.outputSchema&&(o.outputSchema=await ng(a.outputSchema,"output")),a.annotations&&(o.annotations=a.annotations),a._meta&&(o._meta=a._meta),o}))}))}async sendToolListChanged(n={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:n})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(n){this.setEventHandler("toolinput",n)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(n){this.setEventHandler("toolinputpartial",n)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(n){this.setEventHandler("toolresult",n)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(n){this.setEventHandler("toolcancelled",n)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(n){this.setEventHandler("hostcontextchanged",n)}get onteardown(){return this._onteardown}set onteardown(n){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,n),this._onteardown=n,this.replaceRequestHandler(x6,(r,i)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(r.params,i)})}get oncalltool(){return this._oncalltool}set oncalltool(n){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,n),this._oncalltool=n,this.replaceRequestHandler(N$,(r,i)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(r.params,i)})}get onlisttools(){return this._onlisttools}set onlisttools(n){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,n),this._onlisttools=n,this.replaceRequestHandler(O$,(r,i)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(r.params,i)})}assertCapabilityForMethod(n){var r;switch(n){case"sampling/createMessage":if(!((r=this._hostCapabilities)!=null&&r.sampling))throw Error(`Host does not support sampling (required for ${n})`);break}}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,r){if(this._assertInitialized("callServerTool"),typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},uo,{onprogress:()=>{},resetTimeoutOnProgress:!0,...r})}async readServerResource(n,r){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:n},E$,r)}async listServerResources(n,r){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:n},T$,r)}async createSamplingMessage(n,r){this._assertInitialized("createSamplingMessage");let i=n.tools?A$:U$;return await this.request({method:"sampling/createMessage",params:n},i,r)}sendMessage(n,r){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:n},b6,r)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,r){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:n},Im,r)}openLink(n,r){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:n},g6,r)}downloadFile(n,r){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:n},v6,r)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,r){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:n},T6,r)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,r=0,i=0,a=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let l=document.documentElement,u=l.style.height;l.style.height="max-content";let c=Math.ceil(l.getBoundingClientRect().height);l.style.height=u;let g=Math.ceil(window.innerWidth);(g!==r||c!==i)&&(r=g,i=c,this.sendSizeChanged({width:g,height:c}))}))};a();let o=new ResizeObserver(a);return o.observe(document.documentElement),o.observe(document.body),()=>o.disconnect()}async connect(n=new D$(window.parent,window.parent),r){var i;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(n);try{let a=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:f6}},j6,r);if(a===void 0)throw Error(`Server sent invalid initialize result: ${a}`);this._hostCapabilities=a.hostCapabilities,this._hostInfo=a.hostInfo,this._hostContext=a.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,(i=this.options)!=null&&i.autoResize&&this.setupSizeChangedNotifications()}catch(a){throw this.close(),a}}};oe(Nl,"ONE_SHOT_EVENTS",new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]));let Is=Nl;function C6({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=pe.useState(null),[l,u]=pe.useState(!1),[c,g]=pe.useState(null);return pe.useEffect(()=>{let h=!0,d;async function v(){try{let y=new D$(window.parent,window.parent);if(d=new Is(e,t,{autoResize:r,strict:i}),n==null||n(d),await d.connect(y),!h){d.close();return}o(d),u(!0),g(null)}catch(y){h&&(o(null),u(!1),g(y instanceof Error?y:Error("Failed to connect")))}}return v(),()=>{h=!1,d==null||d.close()}},[]),{app:a,isConnected:l,error:c}}function M6(e,t){let n=pe.useRef(!1);pe.useEffect(()=>{n.current},[t]),pe.useEffect(()=>{if(!e)return;let r=i=>{var a;i.theme&&A6(i.theme),(a=i.styles)!=null&&a.variables&&D6(i.styles.variables)};return e.addEventListener("hostcontextchanged",r),()=>e.removeEventListener("hostcontextchanged",r)},[e])}function I6(e,t){let n=pe.useRef(!1);pe.useEffect(()=>{n.current},[t]),pe.useEffect(()=>{if(!e)return;let r=i=>{var a,o;(o=(a=i.styles)==null?void 0:a.css)!=null&&o.fonts&&R6(i.styles.css.fonts)};return e.addEventListener("hostcontextchanged",r),()=>e.removeEventListener("hostcontextchanged",r)},[e])}(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Z6=M([m("light"),m("dark")]).describe("Color theme preference for the host environment."),Na=M([m("inline"),m("fullscreen"),m("pip")]).describe("Display mode for UI presentation."),q6=M([m("--color-background-primary"),m("--color-background-secondary"),m("--color-background-tertiary"),m("--color-background-inverse"),m("--color-background-ghost"),m("--color-background-info"),m("--color-background-danger"),m("--color-background-success"),m("--color-background-warning"),m("--color-background-disabled"),m("--color-text-primary"),m("--color-text-secondary"),m("--color-text-tertiary"),m("--color-text-inverse"),m("--color-text-ghost"),m("--color-text-info"),m("--color-text-danger"),m("--color-text-success"),m("--color-text-warning"),m("--color-text-disabled"),m("--color-border-primary"),m("--color-border-secondary"),m("--color-border-tertiary"),m("--color-border-inverse"),m("--color-border-ghost"),m("--color-border-info"),m("--color-border-danger"),m("--color-border-success"),m("--color-border-warning"),m("--color-border-disabled"),m("--color-ring-primary"),m("--color-ring-secondary"),m("--color-ring-inverse"),m("--color-ring-info"),m("--color-ring-danger"),m("--color-ring-success"),m("--color-ring-warning"),m("--font-sans"),m("--font-mono"),m("--font-weight-normal"),m("--font-weight-medium"),m("--font-weight-semibold"),m("--font-weight-bold"),m("--font-text-xs-size"),m("--font-text-sm-size"),m("--font-text-md-size"),m("--font-text-lg-size"),m("--font-heading-xs-size"),m("--font-heading-sm-size"),m("--font-heading-md-size"),m("--font-heading-lg-size"),m("--font-heading-xl-size"),m("--font-heading-2xl-size"),m("--font-heading-3xl-size"),m("--font-text-xs-line-height"),m("--font-text-sm-line-height"),m("--font-text-md-line-height"),m("--font-text-lg-line-height"),m("--font-heading-xs-line-height"),m("--font-heading-sm-line-height"),m("--font-heading-md-line-height"),m("--font-heading-lg-line-height"),m("--font-heading-xl-line-height"),m("--font-heading-2xl-line-height"),m("--font-heading-3xl-line-height"),m("--border-radius-xs"),m("--border-radius-sm"),m("--border-radius-md"),m("--border-radius-lg"),m("--border-radius-xl"),m("--border-radius-full"),m("--border-width-regular"),m("--shadow-hairline"),m("--shadow-sm"),m("--shadow-md"),m("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),H6=Q(q6.describe(`Style variables for theming MCP apps.
122
+
123
+ Individual style keys are optional - hosts may provide any subset of these values.
124
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
125
+
126
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
127
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),M([S(),Jn()]).describe(`Style variables for theming MCP apps.
128
+
129
+ Individual style keys are optional - hosts may provide any subset of these values.
130
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
131
+
132
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
133
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
134
+
135
+ Individual style keys are optional - hosts may provide any subset of these values.
136
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
137
+
138
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
139
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);b({method:m("ui/open-link"),params:b({url:S().describe("URL to open in the host's browser")})});b({isError:J().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough();b({isError:J().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough();b({isError:J().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();b({method:m("ui/notifications/sandbox-proxy-ready"),params:b({})});var ip=b({connectDomains:D(S()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
140
+
141
+ - Maps to CSP \`connect-src\` directive
142
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:D(S()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:D(S()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:D(S()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),rp=b({camera:b({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:b({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:b({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:b({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});b({method:m("ui/notifications/size-changed"),params:b({width:C().optional().describe("New width in pixels."),height:C().optional().describe("New height in pixels.")})});b({method:m("ui/notifications/tool-input"),params:b({arguments:Q(S(),ne().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})});b({method:m("ui/notifications/tool-input-partial"),params:b({arguments:Q(S(),ne().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})});b({method:m("ui/notifications/tool-cancelled"),params:b({reason:S().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})});var L6=b({fonts:S().optional()}),B6=b({variables:H6.optional().describe("CSS variables for theming the app."),css:L6.optional().describe("CSS blocks that apps can inject.")});b({method:m("ui/resource-teardown"),params:b({})});Q(S(),ne());var rg=b({text:b({}).optional().describe("Host supports text content blocks."),image:b({}).optional().describe("Host supports image content blocks."),audio:b({}).optional().describe("Host supports audio content blocks."),resource:b({}).optional().describe("Host supports resource content blocks."),resourceLink:b({}).optional().describe("Host supports resource link content blocks."),structuredContent:b({}).optional().describe("Host supports structured content.")});b({method:m("ui/notifications/request-teardown"),params:b({}).optional()});var G6=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),openLinks:b({}).optional().describe("Host supports opening external URLs."),downloadFile:b({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:b({listChanged:J().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:b({listChanged:J().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:b({}).optional().describe("Host accepts log messages."),sandbox:b({permissions:rp.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:ip.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:rg.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:rg.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:b({tools:b({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Y6=b({experimental:b({}).optional().describe("Experimental features (structure TBD)."),tools:b({listChanged:J().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:D(Na).optional().describe("Display modes the app supports.")});b({method:m("ui/notifications/initialized"),params:b({}).optional()});b({csp:ip.optional().describe("Content Security Policy configuration for UI resources."),permissions:rp.optional().describe("Sandbox permissions requested by the UI resource."),domain:S().optional().describe(`Dedicated origin for view sandbox.
143
+
144
+ Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
145
+
146
+ **Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
147
+ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
148
+ - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
149
+
150
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:J().optional().describe(`Visual boundary preference - true if view prefers a visible border.
151
+
152
+ Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
153
+
154
+ - \`true\`: request visible border + background
155
+ - \`false\`: request no visible border + background
156
+ - omitted: host decides border`)});b({method:m("ui/request-display-mode"),params:b({mode:Na.describe("The display mode being requested.")})});b({mode:Na.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var V6=M([m("model"),m("app")]).describe("Tool visibility scope - who can access the tool.");b({resourceUri:S().optional(),visibility:D(V6).optional().describe(`Who can access this tool. Default: ["model", "app"]
157
+ - "model": Tool visible to and callable by the agent
158
+ - "app": Tool callable by the app from this server only`),csp:gn().optional(),permissions:gn().optional()});b({mimeTypes:D(S()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});b({method:m("ui/download-file"),params:b({contents:D(M([Fm,ep])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});b({method:m("ui/message"),params:b({role:m("user").describe('Message role, currently only "user" is supported.'),content:D(ki).describe("Message content blocks (text, image, etc.).")})});b({method:m("ui/notifications/sandbox-resource-ready"),params:b({html:S().describe("HTML content to load into the inner iframe."),sandbox:S().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:ip.optional().describe("CSP configuration from resource metadata."),permissions:rp.optional().describe("Sandbox permissions from resource metadata.")})});b({method:m("ui/notifications/tool-result"),params:uo.describe("Standard MCP tool execution result.")});var C$=b({toolInfo:b({id:Nr.optional().describe("JSON-RPC id of the tools/call request."),tool:Wu.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:Z6.optional().describe("Current color theme preference."),styles:B6.optional().describe("Style configuration for theming the app."),displayMode:Na.optional().describe("How the UI is currently displayed."),availableDisplayModes:D(Na).optional().describe("Display modes the host supports."),containerDimensions:M([b({height:C().describe("Fixed container height in pixels.")}),b({maxHeight:M([C(),Jn()]).optional().describe("Maximum container height in pixels.")})]).and(M([b({width:C().describe("Fixed container width in pixels.")}),b({maxWidth:M([C(),Jn()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
159
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:S().optional().describe("User's language and region preference in BCP 47 format."),timeZone:S().optional().describe("User's timezone in IANA format."),userAgent:S().optional().describe("Host application identifier."),platform:M([m("web"),m("desktop"),m("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:b({touch:J().optional().describe("Whether the device supports touch input."),hover:J().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:b({top:C().describe("Top safe area inset in pixels."),right:C().describe("Right safe area inset in pixels."),bottom:C().describe("Bottom safe area inset in pixels."),left:C().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();b({method:m("ui/notifications/host-context-changed"),params:C$.describe("Partial context update containing only changed fields.")});b({method:m("ui/update-model-context"),params:b({content:D(ki).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:Q(S(),ne().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});b({method:m("ui/initialize"),params:b({appInfo:jr.describe("App identification (name and version)."),appCapabilities:Y6.describe("Features and capabilities this app provides."),protocolVersion:S().describe("Protocol version this app supports.")})});b({protocolVersion:S().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:jr.describe("Host application identification and version."),hostCapabilities:G6.describe("Features and capabilities provided by the host."),hostContext:C$.describe("Rich context about the host environment.")}).passthrough();function Fe(e,t){const n=e.find(r=>r[0]===t);return n==null?void 0:n[1]}function Qn(e,t){return e.filter(n=>n[0]===t).map(n=>n[1]).filter(n=>n!==void 0)}function X6(e){if(typeof e=="object"&&e!==null&&Array.isArray(e.events))return e.events}function J6(e){for(const t of e.content??[])if(t.type==="text")return t.text}function Q6(e){return{async callTool(t,n){try{const r=await e.callServerTool({name:t,arguments:n}),i=r.structuredContent,a={ok:r.isError!==!0},o=X6(i);return o&&(a.events=o),i!==void 0&&(a.data=i),r.isError===!0&&(a.error=J6(r)??"tool error"),a}catch(r){return{ok:!1,error:r instanceof Error?r.message:String(r)}}},notifyModel(t){e.updateModelContext({content:[{type:"text",text:t}]})},onSpec(t){return e.ontoolresult=n=>{var i;const r=(i=n.structuredContent)==null?void 0:i.viewSpec;r!==void 0&&t(r)},()=>{e.ontoolresult=void 0}}}}const K6=32,P6=500,W6=new Set(["kinds","authors","ids","#d","#e","#a","#p","#t"]),F6=new Set(["since","until","limit"]);function Lt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ag(e){return e instanceof Set?e:new Set(e)}function eE(e,t,n){if(!Lt(e)){n.push(`${t}: filter must be an object`);return}for(const[r,i]of Object.entries(e))W6.has(r)?(!Array.isArray(i)||!i.every(a=>typeof a=="string"||typeof a=="number"))&&n.push(`${t}.${r}: must be an array of string/number`):F6.has(r)?(typeof i!="number"||!Number.isFinite(i))&&n.push(`${t}.${r}: must be a finite number`):n.push(`${t}.${r}: unsupported filter key`)}function Ol(e,t=0){if(t>8)return!1;if(e===null)return!0;switch(typeof e){case"string":case"boolean":return!0;case"number":return Number.isFinite(e);case"object":return Array.isArray(e)?e.every(n=>Ol(n,t+1)):Lt(e)?Object.values(e).every(n=>Ol(n,t+1)):!1;default:return!1}}function tE(e,t){const n=[],r=ag(t.allowedAtoms),i=t.allowedTools?ag(t.allowedTools):void 0,a=t.maxDepth??K6,o=t.maxNodes??P6;if(!Lt(e))return{ok:!1,errors:["spec must be an object"]};if(e.title!==void 0&&typeof e.title!="string"&&n.push("spec.title: must be a string"),!Lt(e.root))return{ok:!1,errors:["spec.root: required object"]};let l=0;const u=(c,g,h)=>{if(h>a){n.push(`${g}: exceeds max depth ${a}`);return}if(++l>o){n.push(`spec: exceeds max node count ${o}`);return}if(!Lt(c)){n.push(`${g}: node must be an object`);return}if(typeof c.atom!="string"?n.push(`${g}.atom: must be a string`):r.has(c.atom)||n.push(`${g}.atom: unknown atom "${c.atom}"`),c.props!==void 0&&(!Lt(c.props)||!Ol(c.props))&&n.push(`${g}.props: must be a JSON-serializable object`),c.bind!==void 0){const d=c.bind;Lt(d)?(d.query!==void 0&&eE(d.query,`${g}.bind.query`,n),d.eventId!==void 0&&typeof d.eventId!="string"&&n.push(`${g}.bind.eventId: must be a string`),d.kindAuto!==void 0&&typeof d.kindAuto!="boolean"&&n.push(`${g}.bind.kindAuto: must be a boolean`)):n.push(`${g}.bind: must be an object`)}if(c.actions!==void 0){const d=c.actions;if(!Lt(d))n.push(`${g}.actions: must be an object`);else for(const[v,y]of Object.entries(d)){const z=`${g}.actions.${v}`;if(!Lt(y)){n.push(`${z}: must be an object`);continue}typeof y.tool!="string"?n.push(`${z}.tool: must be a string`):i&&!i.has(y.tool)&&n.push(`${z}.tool: tool "${y.tool}" not allowed`),y.args!==void 0&&(!Lt(y.args)||!Ol(y.args))&&n.push(`${z}.args: must be a JSON-serializable object`),y.spendy!==void 0&&typeof y.spendy!="boolean"&&n.push(`${z}.spendy: must be a boolean`),y.confirmLabel!==void 0&&typeof y.confirmLabel!="string"&&n.push(`${z}.confirmLabel: must be a string`)}}c.children!==void 0&&(Array.isArray(c.children)?c.children.forEach((d,v)=>u(d,`${g}.children[${v}]`,h+1)):n.push(`${g}.children: must be an array`))};return u(e.root,"spec.root",0),n.length>0?{ok:!1,errors:n}:{ok:!0,spec:e}}function M$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=M$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nE(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=M$(e))&&(r&&(r+=" "),r+=t);return r}const ap="-",iE=e=>{const t=aE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(ap);return l[0]===""&&l.length!==1&&l.shift(),I$(l,t)||rE(o)},getConflictingClassGroupIds:(o,l)=>{const u=n[o]||[];return l&&r[o]?[...u,...r[o]]:u}}},I$=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?I$(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(ap);return(o=t.validators.find(({validator:l})=>l(a)))==null?void 0:o.classGroupId},og=/^\[(.+)\]$/,rE=e=>{if(og.test(e)){const t=og.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},aE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return lE(Object.entries(e.classGroups),n).forEach(([a,o])=>{Zs(o,r,a,t)}),r},Zs=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:lg(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(oE(i)){Zs(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,o])=>{Zs(o,lg(t,a),n,r)})})},lg=(e,t)=>{let n=e;return t.split(ap).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},oE=e=>e.isThemeGetter,lE=(e,t)=>t?e.map(([n,r])=>{const i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,l])=>[t+o,l])):a);return[n,i]}):e,uE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return i(a,o),o},set(a,o){n.has(a)?n.set(a,o):i(a,o)}}},Z$="!",cE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=l=>{const u=[];let c=0,g=0,h;for(let x=0;x<l.length;x++){let s=l[x];if(c===0){if(s===i&&(r||l.slice(x,x+a)===t)){u.push(l.slice(g,x)),g=x+a;continue}if(s==="/"){h=x;continue}}s==="["?c++:s==="]"&&c--}const d=u.length===0?l:l.substring(g),v=d.startsWith(Z$),y=v?d.substring(1):d,z=h&&h>g?h-g:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:z}};return n?l=>n({className:l,parseClassName:o}):o},sE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},fE=e=>({cache:uE(e.cacheSize),parseClassName:cE(e),...iE(e)}),dE=/\s+/,mE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(dE);let l="";for(let u=o.length-1;u>=0;u-=1){const c=o[u],{modifiers:g,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:v}=n(c);let y=!!v,z=r(y?d.substring(0,v):d);if(!z){if(!y){l=c+(l.length>0?" "+l:l);continue}if(z=r(d),!z){l=c+(l.length>0?" "+l:l);continue}y=!1}const x=sE(g).join(":"),s=h?x+Z$:x,f=s+z;if(a.includes(f))continue;a.push(f);const p=i(z,y);for(let _=0;_<p.length;++_){const k=p[_];a.push(s+k)}l=c+(l.length>0?" "+l:l)}return l};function pE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=q$(t))&&(r&&(r+=" "),r+=n);return r}const q$=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=q$(e[r]))&&(n&&(n+=" "),n+=t);return n};function hE(e,...t){let n,r,i,a=o;function o(u){const c=t.reduce((g,h)=>h(g),e());return n=fE(c),r=n.cache.get,i=n.cache.set,a=l,l(u)}function l(u){const c=r(u);if(c)return c;const g=mE(u,n);return i(u,g),g}return function(){return a(pE.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},H$=/^\[(?:([a-z-]+):)?(.+)\]$/i,gE=/^\d+\/\d+$/,vE=new Set(["px","full","screen"]),bE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,SE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>tr(e)||vE.has(e)||gE.test(e),yn=e=>Ar(e,"length",NE),tr=e=>!!e&&!Number.isNaN(Number(e)),Mc=e=>Ar(e,"number",tr),Lr=e=>!!e&&Number.isInteger(Number(e)),zE=e=>e.endsWith("%")&&tr(e.slice(0,-1)),G=e=>H$.test(e),_n=e=>bE.test(e),xE=new Set(["length","size","percentage"]),wE=e=>Ar(e,xE,L$),kE=e=>Ar(e,"position",L$),TE=new Set(["image","url"]),EE=e=>Ar(e,TE,UE),OE=e=>Ar(e,"",jE),Br=()=>!0,Ar=(e,t,n)=>{const r=H$.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},NE=e=>yE.test(e)&&!_E.test(e),L$=()=>!1,jE=e=>SE.test(e),UE=e=>$E.test(e),AE=()=>{const e=_e("colors"),t=_e("spacing"),n=_e("blur"),r=_e("brightness"),i=_e("borderColor"),a=_e("borderRadius"),o=_e("borderSpacing"),l=_e("borderWidth"),u=_e("contrast"),c=_e("grayscale"),g=_e("hueRotate"),h=_e("invert"),d=_e("gap"),v=_e("gradientColorStops"),y=_e("gradientColorStopPositions"),z=_e("inset"),x=_e("margin"),s=_e("opacity"),f=_e("padding"),p=_e("saturate"),_=_e("scale"),k=_e("sepia"),j=_e("skew"),T=_e("space"),A=_e("translate"),R=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],Ke=()=>["auto",G,t],ee=()=>[G,t],Dr=()=>["",en,yn],Ti=()=>["auto",tr,G],Ei=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",G],Te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],it=()=>[tr,G];return{cacheSize:500,separator:":",theme:{colors:[Br],spacing:[en,yn],blur:["none","",_n,G],brightness:it(),borderColor:[e],borderRadius:["none","","full",_n,G],borderSpacing:ee(),borderWidth:Dr(),contrast:it(),grayscale:de(),hueRotate:it(),invert:de(),gap:ee(),gradientColorStops:[e],gradientColorStopPositions:[zE,yn],inset:Ke(),margin:Ke(),opacity:it(),padding:ee(),saturate:it(),scale:it(),sepia:de(),skew:it(),space:ee(),translate:ee()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[_n]}],"break-after":[{"break-after":Te()}],"break-before":[{"break-before":Te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ei(),G]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lr,G]}],basis:[{basis:Ke()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Lr,G]}],"grid-cols":[{"grid-cols":[Br]}],"col-start-end":[{col:["auto",{span:["full",Lr,G]},G]}],"col-start":[{"col-start":Ti()}],"col-end":[{"col-end":Ti()}],"grid-rows":[{"grid-rows":[Br]}],"row-start-end":[{row:["auto",{span:[Lr,G]},G]}],"row-start":[{"row-start":Ti()}],"row-end":[{"row-end":Ti()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[_n]},_n]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_n,yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mc]}],"font-family":[{font:[Br]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",tr,Mc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[s]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",en,yn]}],"underline-offset":[{"underline-offset":["auto",en,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[s]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ei(),kE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},EE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[s]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[s]}],"divide-style":[{divide:U()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[en,G]}],"outline-w":[{outline:[en,yn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Dr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[s]}],"ring-offset-w":[{"ring-offset":[en,yn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_n,OE]}],"shadow-color":[{shadow:[Br]}],opacity:[{opacity:[s]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",_n,G]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[h]}],saturate:[{saturate:[p]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[s]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:it()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:it()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Lr,G]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,yn,Mc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},DE=hE(AE);function B$(...e){return DE(nE(e))}const RE=({props:e,children:t})=>{const n=e.direction==="row"?"flex-row":"flex-col",r=typeof e.gap=="number"?e.gap:3;return O.jsx("div",{className:B$("flex",n,`gap-${r}`),children:t})},CE=({props:e,children:t})=>{const n=typeof e.title=="string"?e.title:void 0;return O.jsxs("section",{className:"flex flex-col gap-2",children:[n?O.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground",children:n}):null,t]})},ME=({children:e})=>O.jsx("div",{className:"rounded-lg border border-border bg-card p-4 text-card-foreground shadow-sm",children:e}),IE=[{id:"stack",Component:RE},{id:"section",Component:CE},{id:"card",Component:ME}];function ZE(e){if(e.kind!==0)return null;let t;try{const r=JSON.parse(e.content);if(typeof r!="object"||r===null)return null;t=r}catch{return null}const n=r=>typeof t[r]=="string"?t[r]:void 0;return{pubkey:e.pubkey,name:n("name"),displayName:n("display_name")??n("displayName"),about:n("about"),picture:n("picture"),banner:n("banner"),nip05:n("nip05"),lud16:n("lud16"),website:n("website"),raw:t}}function qE(e){var l,u,c,g,h;const t=e.filter(d=>d[0]==="e"&&d[1]),n=Qn(e,"p");let r,i;const a=t.filter(d=>d[3]==="root"||d[3]==="reply");a.length>0?(r=(l=a.find(d=>d[3]==="root"))==null?void 0:l[1],i=((u=a.find(d=>d[3]==="reply"))==null?void 0:u[1])??r):t.length===1?(r=(c=t[0])==null?void 0:c[1],i=r):t.length>1&&(r=(g=t[0])==null?void 0:g[1],i=(h=t[t.length-1])==null?void 0:h[1]);const o={mentionedPubkeys:n};return r!==void 0&&(o.rootId=r),i!==void 0&&(o.replyToId=i),o}function HE(e){if(e.kind!==1)return null;const t=qE(e.tags);return{eventId:e.id,content:e.content,authorPubkey:e.pubkey,createdAt:e.created_at,thread:t,isReply:t.rootId!==void 0||t.replyToId!==void 0}}function LE(e){if(e.kind!==7)return null;const t=Qn(e.tags,"e"),n=Qn(e.tags,"p"),r={eventId:e.id,authorPubkey:e.pubkey,createdAt:e.created_at,content:e.content||"+"},i=t[t.length-1],a=n[n.length-1];return i!==void 0&&(r.targetEventId=i),a!==void 0&&(r.targetPubkey=a),r}function G$(e){return e.length>12?`${e.slice(0,8)}…${e.slice(-4)}`:e}const BE=({events:e})=>{const t=e.map(ZE).find(r=>r!==null)??null;if(!t)return null;const n=t.displayName??t.name??G$(t.pubkey);return O.jsxs("div",{className:"flex items-center gap-3",children:[t.picture?O.jsx("img",{src:t.picture,alt:n,className:"h-12 w-12 rounded-full object-cover"}):O.jsx("div",{className:"h-12 w-12 rounded-full bg-muted"}),O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"truncate font-semibold",children:n}),t.nip05?O.jsx("div",{className:"truncate text-xs text-muted-foreground",children:t.nip05}):null,t.about?O.jsx("div",{className:"line-clamp-2 text-sm text-muted-foreground",children:t.about}):null]})]})},GE=({events:e,actions:t})=>{const n=e.map(HE).find(r=>r!==null)??null;return n?O.jsxs("article",{className:"flex flex-col gap-2 border-b border-border py-3",children:[O.jsxs("header",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[O.jsx("span",{className:"font-medium text-foreground",children:G$(n.authorPubkey)}),n.isReply?O.jsx("span",{className:"rounded bg-muted px-1",children:"reply"}):null]}),O.jsx("p",{className:"whitespace-pre-wrap break-words text-sm",children:n.content}),t.reply?O.jsx("div",{children:O.jsx("button",{type:"button",className:"text-xs text-muted-foreground hover:text-foreground",onClick:()=>{var r;return void((r=t.reply)==null?void 0:r.call(t,{parentId:n.eventId}))},children:"Reply"})}):null]}):null},YE=({events:e,actions:t})=>{const n=new Map;for(const r of e){const i=LE(r);if(!i)continue;const a=i.content||"+";n.set(a,(n.get(a)??0)+1)}return O.jsxs("div",{className:"flex items-center gap-2",children:[[...n.entries()].map(([r,i])=>O.jsxs("span",{className:"rounded-full bg-muted px-2 py-0.5 text-xs",children:[r," ",i]},r)),t.react?O.jsx("button",{type:"button",className:"rounded-full border border-border px-2 py-0.5 text-xs hover:bg-muted",onClick:()=>{var r;return void((r=t.react)==null?void 0:r.call(t,{content:"+"}))},children:"+ React"}):null]})},VE=({props:e,actions:t})=>{const n=typeof e.label=="string"?e.label:"Follow";return O.jsx("button",{type:"button",disabled:!t.follow,className:B$("rounded-md px-3 py-1 text-sm font-medium","bg-primary text-primary-foreground hover:opacity-90 disabled:opacity-50"),onClick:()=>{var r;return void((r=t.follow)==null?void 0:r.call(t))},children:n})},XE=[{id:"profile-header",kinds:[0],Component:BE},{id:"note-card",kinds:[1],Component:GE},{id:"reaction-bar",kinds:[7],Component:YE},{id:"follow-button",writes:[{name:"toon_publish_unsigned"}],Component:VE}];function JE(e){if(e[0]!=="imeta")return null;const t={},n=[];for(let a=1;a<e.length;a++){const o=e[a];if(!o)continue;const l=o.indexOf(" ");if(l===-1)continue;const u=o.slice(0,l),c=o.slice(l+1);u==="fallback"?n.push(c):u in t||(t[u]=c)}const r=t.url;if(!r)return null;const i={url:r,fallbacks:n};return t.m&&(i.mime=t.m),t.x&&(i.hash=t.x),t.dim&&(i.dim=t.dim),t.alt&&(i.alt=t.alt),t.blurhash&&(i.blurhash=t.blurhash),i}function Y$(e){return e.tags.filter(t=>t[0]==="imeta").map(JE).filter(t=>t!==null)}function QE(e){if(e.kind!==1063)return null;const t=Fe(e.tags,"url");if(!t)return null;const n={eventId:e.id,authorPubkey:e.pubkey,createdAt:e.created_at,url:t,caption:e.content},r=Fe(e.tags,"m"),i=Fe(e.tags,"x"),a=Fe(e.tags,"size"),o=Fe(e.tags,"dim"),l=Fe(e.tags,"summary");if(r&&(n.mime=r),i&&(n.hash=i),o&&(n.dim=o),l&&(n.summary=l),a){const u=Number(a);Number.isFinite(u)&&(n.size=u)}return n}const KE=[20,21,22];function PE(e){if(!KE.includes(e.kind))return null;const t=Y$(e),n={eventId:e.id,authorPubkey:e.pubkey,createdAt:e.created_at,mediaType:e.kind===20?"picture":"video",short:e.kind===22,content:e.content,variants:t,hashtags:Qn(e.tags,"t")},r=Fe(e.tags,"title");r&&(n.title=r);const i=Fe(e.tags,"duration");if(i){const a=Number(i);Number.isFinite(a)&&(n.durationSec=a)}return n}function WE(e){var t;return((t=e.mime)==null?void 0:t.startsWith("video/"))??!1}function FE(e){var r;const t=PE(e);if(t)return{variants:t.variants,video:t.mediaType==="video"};const n=QE(e);if(n){const i={url:n.url,fallbacks:[]};return n.mime&&(i.mime=n.mime),n.dim&&(i.dim=n.dim),{variants:[i],video:((r=n.mime)==null?void 0:r.startsWith("video/"))??!1}}return{variants:Y$(e),video:!1}}const eO=({events:e})=>{const t=e[0];if(!t)return null;const{variants:n}=FE(t);return n.length===0?null:O.jsx("div",{className:"flex flex-col gap-2",children:n.map((r,i)=>WE(r)?O.jsx("video",{src:r.url,controls:!0,className:"max-h-96 w-full rounded-md"},i):O.jsx("img",{src:r.url,alt:r.alt??"",className:"max-h-96 w-full rounded-md object-contain"},i))})},tO=({props:e,actions:t})=>{const n=typeof e.label=="string"?e.label:"Upload media",r=pe.useRef(null),[i,a]=pe.useState(!1),[o,l]=pe.useState(!1),[u,c]=pe.useState(!1),g=async h=>{var d;a(!0),l(!1),c(!1);try{const v=await new Promise((p,_)=>{const k=new FileReader;k.onload=()=>p(k.result),k.onerror=()=>_(k.error),k.readAsArrayBuffer(h)}),y=new Uint8Array(v);let z="";const x=8192;for(let p=0;p<y.length;p+=x)z+=String.fromCharCode(...y.subarray(p,p+x));const s=btoa(z);await((d=t.upload)==null?void 0:d.call(t,{dataBase64:s,mime:h.type||void 0}))===!1?c(!0):l(!0)}catch{c(!0)}finally{a(!1),r.current&&(r.current.value="")}};return O.jsxs("div",{className:"flex flex-col gap-1",children:[O.jsx("input",{ref:r,type:"file",accept:"image/*,video/*",className:"sr-only",disabled:i||!t.upload,onChange:h=>{var v;const d=(v=h.target.files)==null?void 0:v[0];d&&g(d)}}),O.jsxs("button",{type:"button",disabled:i||!t.upload,className:"rounded-md border border-dashed border-border px-3 py-2 text-sm hover:bg-muted disabled:opacity-50",onClick:()=>{var h;return(h=r.current)==null?void 0:h.click()},children:[i?"Uploading…":n," ",O.jsx("span",{className:"text-xs text-muted-foreground",children:"(pays to publish)"})]}),o&&O.jsx("p",{className:"text-xs text-muted-foreground",children:"Uploaded successfully."}),u&&O.jsx("p",{className:"text-xs text-destructive",children:"Upload failed."})]})},nO=[{id:"media-embed",kinds:[20,21,22,1063],Component:eO},{id:"media-uploader",writes:[{name:"toon_upload_media",spendy:!0}],Component:tO}];function iO(e){if(e.kind!==30617)return null;const t=Fe(e.tags,"d");if(!t)return null;const n=Fe(e.tags,"name")??t,r=Fe(e.tags,"description")??e.content,i=e.tags.find(u=>u[0]==="r"&&u[1]==="HEAD"&&u[2]),a=(i==null?void 0:i[2])??"main",o=Qn(e.tags,"clone"),l=Qn(e.tags,"web");return{repoId:t,name:n,description:r,ownerPubkey:e.pubkey,defaultBranch:a,eventId:e.id,cloneUrls:o,webUrls:l}}function rO(e){if(e.kind!==1621)return null;const n=Fe(e.tags,"subject")??e.content.split(`
160
+ `)[0]??"",r=Qn(e.tags,"t");return{eventId:e.id,title:n,content:e.content,authorPubkey:e.pubkey,createdAt:e.created_at,labels:r,status:"open"}}function aO(e){if(e.kind!==1617)return null;const t=Fe(e.tags,"subject")??"",n=Qn(e.tags,"commit"),r=Fe(e.tags,"branch")??"main";return{eventId:e.id,title:t,content:e.content,authorPubkey:e.pubkey,createdAt:e.created_at,commitShas:n,baseBranch:r,status:"open"}}function oO(e){if(e.kind!==1622)return null;const t=Fe(e.tags,"e");return t?{eventId:e.id,content:e.content,authorPubkey:e.pubkey,createdAt:e.created_at,parentEventId:t}:null}function lO(e){return e.length>12?`${e.slice(0,8)}…${e.slice(-4)}`:e}const uO=({events:e})=>{const t=e.map(iO).find(n=>n!==null)??null;return t?O.jsxs("div",{className:"flex flex-col gap-1 rounded-lg border border-border p-4",children:[O.jsxs("div",{className:"flex items-baseline justify-between",children:[O.jsx("span",{className:"font-semibold",children:t.name}),O.jsx("span",{className:"text-xs text-muted-foreground",children:t.defaultBranch})]}),t.description?O.jsx("p",{className:"text-sm text-muted-foreground",children:t.description}):null]}):null},cO=({events:e,actions:t})=>{const n=e.map(rO).find(r=>r!==null)??null;return n?O.jsxs("div",{className:"flex flex-col gap-1 border-b border-border py-3",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("span",{className:"font-medium",children:n.title}),n.labels.map(r=>O.jsx("span",{className:"rounded bg-muted px-1.5 text-xs",children:r},r))]}),n.content?O.jsx("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:n.content}):null,t.comment?O.jsx("button",{type:"button",className:"self-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>{var r;return void((r=t.comment)==null?void 0:r.call(t,{parentId:n.eventId}))},children:"Comment"}):null]}):null},sO=({events:e})=>{const t=e.map(aO).find(n=>n!==null)??null;return t?O.jsxs("div",{className:"flex flex-col gap-1 border-b border-border py-3",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("span",{className:"rounded bg-muted px-1.5 text-xs uppercase",children:t.status}),O.jsx("span",{className:"font-medium",children:t.title||"(untitled patch)"})]}),O.jsxs("div",{className:"text-xs text-muted-foreground",children:[t.commitShas.length," commit(s) → ",t.baseBranch]})]}):null},fO=({events:e,actions:t})=>{const n=e.map(oO).filter(r=>r!==null).sort((r,i)=>r.createdAt-i.createdAt);return O.jsxs("div",{className:"flex flex-col gap-2",children:[n.map(r=>O.jsxs("div",{className:"rounded-md border border-border p-2",children:[O.jsx("div",{className:"mb-1 text-xs text-muted-foreground",children:lO(r.authorPubkey)}),O.jsx("p",{className:"whitespace-pre-wrap break-words text-sm",children:r.content})]},r.eventId)),t.comment?O.jsx("button",{type:"button",className:"self-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>{var r;return void((r=t.comment)==null?void 0:r.call(t))},children:"Add comment"}):null]})},dO=[{id:"repo-card",kinds:[30617],Component:uO},{id:"issue-card",kinds:[1621],writes:[{name:"toon_publish_unsigned"}],Component:cO},{id:"pr-card",kinds:[1617],Component:sO},{id:"comment-thread",kinds:[1622],writes:[{name:"toon_publish_unsigned"}],Component:fO}],mO=({props:e,actions:t})=>{const[n,r]=pe.useState(""),i=typeof e.placeholder=="string"?e.placeholder:"What's happening?",a=typeof e.label=="string"?e.label:"Post",o=()=>{const l=n.trim();!l||!t.post||(t.post({content:l}),r(""))};return O.jsxs("div",{className:"flex flex-col gap-2 rounded-lg border border-border p-3",children:[O.jsx("textarea",{value:n,onChange:l=>r(l.target.value),placeholder:i,rows:3,className:"w-full resize-none rounded-md border border-input bg-background p-2 text-sm outline-none focus:ring-2 focus:ring-ring"}),O.jsx("div",{className:"flex justify-end",children:O.jsx("button",{type:"button",disabled:!n.trim()||!t.post,onClick:o,className:"rounded-md bg-primary px-3 py-1 text-sm font-medium text-primary-foreground hover:opacity-90 disabled:opacity-50",children:a})})]})},pO=({props:e,children:t})=>{const n=Array.isArray(e.labels)?e.labels.map(String):[],r=pe.Children.toArray(t),[i,a]=pe.useState(0);return O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("div",{className:"flex gap-1 border-b border-border",children:r.map((o,l)=>O.jsx("button",{type:"button",onClick:()=>a(l),className:"px-3 py-1.5 text-sm font-medium "+(l===i?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"),children:n[l]??`Tab ${l+1}`},l))}),O.jsx("div",{children:r[i]??null})]})},hO=[{id:"composer",writes:[{name:"toon_publish_unsigned"}],Component:mO},{id:"tabs",Component:pO}],gO="generic-event",vO=({events:e,props:t})=>{const n=typeof t.message=="string"?t.message:void 0;return O.jsxs("div",{className:"flex flex-col gap-2",children:[n?O.jsx("div",{className:"text-sm text-muted-foreground",children:n}):null,e.map(r=>O.jsxs("div",{className:"rounded-md border border-border p-3 font-mono text-xs",children:[O.jsxs("div",{className:"mb-1 text-muted-foreground",children:["kind ",r.kind," · ",r.id.slice(0,12),"…"]}),r.content?O.jsx("pre",{className:"whitespace-pre-wrap break-words",children:r.content}):null,r.tags.length>0?O.jsx("pre",{className:"mt-1 whitespace-pre-wrap break-words text-muted-foreground",children:JSON.stringify(r.tags)}):null]},r.id))]})},op={id:gO,Component:vO},V$=[...IE,...XE,...nO,...dO,...hO,op],X$=new Map(V$.map(e=>[e.id,e])),bO=new Set(X$.keys()),yO=(()=>{const e=new Map;for(const t of V$)for(const n of t.kinds??[])e.has(n)||e.set(n,t);return e})();function _O(e){return yO.get(e)??op}function SO(){return op}const $O="toon_query",zO="toon_publish_unsigned",xO="toon_upload_media",wO=new Set([zO,xO]);function kO(e,t){const[n,r]=pe.useState([]),i=e?JSON.stringify(e):"";return pe.useEffect(()=>{const a=(e==null?void 0:e.query)??(e!=null&&e.eventId?{ids:[e.eventId]}:void 0);if(!a){r([]);return}let o=!1;return t.callTool($O,{filter:a}).then(l=>{!o&&l.events&&r(l.events)}),()=>{o=!0}},[i,t]),n}function TO(e,t){const n={};for(const[r,i]of Object.entries(e.actions??{}))n[r]=async a=>{const o={...i.args??{},...a??{}};if(i.spendy){const u=i.confirmLabel??"This action spends to publish. Continue?";if(!await(t.confirm??(h=>Promise.resolve(typeof window<"u"?!!window.confirm(h):!0)))(u))return t.notifyModel(`Action "${r}" cancelled.`),!1;o.spendy=!0}const l=await t.callTool(i.tool,o);return t.notifyModel(l.ok?`Action "${r}" completed.`:`Action "${r}" failed: ${l.error??"unknown"}`),l.ok};return n}function qs({event:e}){const t=_O(e.kind).Component;return O.jsx(t,{events:[e],props:{},actions:{},renderEvent:n=>O.jsx(qs,{event:n},n.id),children:null})}function J$({node:e,bridge:t}){var o,l;const n=X$.get(e.atom)??SO(),r=kO(e.bind,t),i=pe.useMemo(()=>TO(e,t),[e,t]);if((o=e.bind)!=null&&o.kindAuto)return O.jsx(O.Fragment,{children:r.map(u=>O.jsx(qs,{event:u},u.id))});const a=n.Component;return O.jsx(a,{events:r,props:e.props??{},actions:i,renderEvent:u=>O.jsx(qs,{event:u},u.id),children:(l=e.children)==null?void 0:l.map((u,c)=>O.jsx(J$,{node:u,bridge:t},c))})}function EO({errors:e}){return O.jsxs("div",{className:"rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm",children:[O.jsx("div",{className:"font-medium",children:"This view could not be rendered."}),O.jsx("ul",{className:"mt-1 list-disc pl-5 text-xs text-muted-foreground",children:e.slice(0,5).map((t,n)=>O.jsx("li",{children:t},n))})]})}function OO({spec:e,bridge:t}){const n=pe.useMemo(()=>tE(e,{allowedAtoms:bO,allowedTools:wO}),[e]);return n.ok?O.jsx(J$,{node:n.spec.root,bridge:t}):O.jsx(EO,{errors:n.errors})}function NO({bridge:e}){const[t,n]=pe.useState(null);return pe.useEffect(()=>e.onSpec(n),[e]),t==null?O.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Waiting for a view…"}):O.jsx(OO,{spec:t,bridge:e})}function jO(){const{app:e,isConnected:t,error:n}=C6({appInfo:{name:"toon-views",version:"0.1.0"},capabilities:{}});M6(e),I6(e);const r=pe.useMemo(()=>e?Q6(e):null,[e]);return n?O.jsxs("div",{className:"p-4 text-sm",children:["Failed to connect: ",n.message]}):!t||!r?O.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Connecting…"}):O.jsx(NO,{bridge:r})}function UO(e){Xx.createRoot(e).render(O.jsx(jO,{}))}const ug=document.getElementById("root");ug&&UO(ug);</script>
161
+ <style rel="stylesheet" crossorigin>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground);margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.static{position:static}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-1{margin-top:var(--spacing)}.mb-1{margin-bottom:var(--spacing)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.inline{display:inline}.h-12{height:calc(var(--spacing) * 12)}.max-h-96{max-height:calc(var(--spacing) * 96)}.w-12{width:calc(var(--spacing) * 12)}.w-full{width:100%}.min-w-0{min-width:0}.resize-none{resize:none}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-baseline{align-items:baseline}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-border{border-color:var(--border)}.border-destructive\/40{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/40{border-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.bg-background{background-color:var(--background)}.bg-card{background-color:var(--card)}.bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/5{background-color:color-mix(in oklab,var(--destructive) 5%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-primary{background-color:var(--primary)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary-foreground{color:var(--primary-foreground)}.uppercase{text-transform:uppercase}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:opacity-90:hover{opacity:.9}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.disabled\:opacity-50:disabled{opacity:.5}}:root{--background:#fff;--foreground:#1f2328;--card:#fff;--card-foreground:#1f2328;--primary:#1f2328;--primary-foreground:#fff;--secondary:#f6f8fa;--secondary-foreground:#1f2328;--muted:#f6f8fa;--muted-foreground:#656d76;--accent:#f6f8fa;--accent-foreground:#1f2328;--destructive:#d1242f;--destructive-foreground:#fff;--border:#d1d9e0;--input:#d1d9e0;--ring:#0969da;--radius:.5rem}@media (prefers-color-scheme:dark){:root{--background:#0d1117;--foreground:#e6edf3;--card:#161b22;--card-foreground:#e6edf3;--primary:#e6edf3;--primary-foreground:#0d1117;--secondary:#161b22;--secondary-foreground:#e6edf3;--muted:#161b22;--muted-foreground:#8b949e;--accent:#161b22;--accent-foreground:#e6edf3;--destructive:#f85149;--destructive-foreground:#0d1117;--border:#30363d;--input:#30363d;--ring:#58a6ff}}.dark{--background:#0d1117;--foreground:#e6edf3;--card:#161b22;--card-foreground:#e6edf3;--primary:#e6edf3;--primary-foreground:#0d1117;--secondary:#161b22;--secondary-foreground:#e6edf3;--muted:#161b22;--muted-foreground:#8b949e;--accent:#161b22;--accent-foreground:#e6edf3;--destructive:#f85149;--destructive-foreground:#0d1117;--border:#30363d;--input:#30363d;--ring:#58a6ff}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}</style>
162
+ </head>
163
+ <body>
164
+ <div id="root"></div>
165
+ </body>
166
+ </html>