@moneypot/hub 1.18.1 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
var rB=Object.defineProperty;var $O=e=>{throw TypeError(e)};var iB=(e,t,r)=>t in e?rB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var aB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ga=(e,t,r)=>iB(e,typeof t!="symbol"?t+"":t,r),Qg=(e,t,r)=>t.has(e)||$O("Cannot "+r);var X=(e,t,r)=>(Qg(e,t,"read from private field"),r?r.call(e):t.get(e)),pt=(e,t,r)=>t.has(e)?$O("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ke=(e,t,r,i)=>(Qg(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Un=(e,t,r)=>(Qg(e,t,"access private method"),r);var pm=(e,t,r,i)=>({set _(n){Ke(e,t,n,r)},get _(){return X(e,t,i)}});var uue=aB((br,_r)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wg={exports:{}},Sc={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var SO;function oB(){if(SO)return Sc;SO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,n,a){var l=null;if(a!==void 0&&(l=""+a),n.key!==void 0&&(l=""+n.key),"key"in n){a={};for(var d in n)d!=="key"&&(a[d]=n[d])}else a=n;return n=a.ref,{$$typeof:e,type:i,key:l,ref:n!==void 0?n:null,props:a}}return Sc.Fragment=t,Sc.jsx=r,Sc.jsxs=r,Sc}var kO;function uB(){return kO||(kO=1,Wg.exports=oB()),Wg.exports}var y=uB(),ey={exports:{}},kc={},ty={exports:{}},ny={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var wO;function lB(){return wO||(wO=1,(function(e){function t(M,ee){var de=M.length;M.push(ee);e:for(;0<de;){var je=de-1>>>1,Ue=M[je];if(0<n(Ue,ee))M[je]=ee,M[de]=Ue,de=je;else break e}}function r(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var ee=M[0],de=M.pop();if(de!==ee){M[0]=de;e:for(var je=0,Ue=M.length,D=Ue>>>1;je<D;){var H=2*(je+1)-1,ne=M[H],oe=H+1,ye=M[oe];if(0>n(ne,de))oe<Ue&&0>n(ye,ne)?(M[je]=ye,M[oe]=de,je=oe):(M[je]=ne,M[H]=de,je=H);else if(oe<Ue&&0>n(ye,de))M[je]=ye,M[oe]=de,je=oe;else break e}}return ee}function n(M,ee){var de=M.sortIndex-ee.sortIndex;return de!==0?de:M.id-ee.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 l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var f=[],h=[],p=1,g=null,b=3,k=!1,w=!1,I=!1,x=!1,$=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function z(M){for(var ee=r(h);ee!==null;){if(ee.callback===null)i(h);else if(ee.startTime<=M)i(h),ee.sortIndex=ee.expirationTime,t(f,ee);else break;ee=r(h)}}function T(M){if(I=!1,z(M),!w)if(r(f)!==null)w=!0,E||(E=!0,Je());else{var ee=r(h);ee!==null&&Ne(T,ee.startTime-M)}}var E=!1,C=-1,ae=5,ue=-1;function fe(){return x?!0:!(e.unstable_now()-ue<ae)}function we(){if(x=!1,E){var M=e.unstable_now();ue=M;var ee=!0;try{e:{w=!1,I&&(I=!1,j(C),C=-1),k=!0;var de=b;try{t:{for(z(M),g=r(f);g!==null&&!(g.expirationTime>M&&fe());){var je=g.callback;if(typeof je=="function"){g.callback=null,b=g.priorityLevel;var Ue=je(g.expirationTime<=M);if(M=e.unstable_now(),typeof Ue=="function"){g.callback=Ue,z(M),ee=!0;break t}g===r(f)&&i(f),z(M)}else i(f);g=r(f)}if(g!==null)ee=!0;else{var D=r(h);D!==null&&Ne(T,D.startTime-M),ee=!1}}break e}finally{g=null,b=de,k=!1}ee=void 0}}finally{ee?Je():E=!1}}}var Je;if(typeof N=="function")Je=function(){N(we)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,_e=De.port2;De.port1.onmessage=we,Je=function(){_e.postMessage(null)}}else Je=function(){$(we,0)};function Ne(M,ee){C=$(function(){M(e.unstable_now())},ee)}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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(M){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var de=b;b=ee;try{return M()}finally{b=de}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(M,ee){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var de=b;b=M;try{return ee()}finally{b=de}},e.unstable_scheduleCallback=function(M,ee,de){var je=e.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?je+de:je):de=je,M){case 1:var Ue=-1;break;case 2:Ue=250;break;case 5:Ue=1073741823;break;case 4:Ue=1e4;break;default:Ue=5e3}return Ue=de+Ue,M={id:p++,callback:ee,priorityLevel:M,startTime:de,expirationTime:Ue,sortIndex:-1},de>je?(M.sortIndex=de,t(h,M),r(f)===null&&M===r(h)&&(I?(j(C),C=-1):I=!0,Ne(T,de-je))):(M.sortIndex=Ue,t(f,M),w||k||(w=!0,E||(E=!0,Je()))),M},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(M){var ee=b;return function(){var de=b;b=ee;try{return M.apply(this,arguments)}finally{b=de}}}})(ny)),ny}var xO;function sB(){return xO||(xO=1,ty.exports=lB()),ty.exports}var ry={exports:{}},Ye={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var OO;function cB(){if(OO)return Ye;OO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function k(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,x={};function $(D,H,ne){this.props=D,this.context=H,this.refs=x,this.updater=ne||w}$.prototype.isReactComponent={},$.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,H,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function j(){}j.prototype=$.prototype;function N(D,H,ne){this.props=D,this.context=H,this.refs=x,this.updater=ne||w}var z=N.prototype=new j;z.constructor=N,I(z,$.prototype),z.isPureReactComponent=!0;var T=Array.isArray;function E(){}var C={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function ue(D,H,ne){var oe=ne.ref;return{$$typeof:e,type:D,key:H,ref:oe!==void 0?oe:null,props:ne}}function fe(D,H){return ue(D.type,H,D.props)}function we(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Je(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ne){return H[ne]})}var De=/\/+/g;function _e(D,H){return typeof D=="object"&&D!==null&&D.key!=null?Je(""+D.key):H.toString(36)}function Ne(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(E,E):(D.status="pending",D.then(function(H){D.status==="pending"&&(D.status="fulfilled",D.value=H)},function(H){D.status==="pending"&&(D.status="rejected",D.reason=H)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function M(D,H,ne,oe,ye){var Ae=typeof D;(Ae==="undefined"||Ae==="boolean")&&(D=null);var He=!1;if(D===null)He=!0;else switch(Ae){case"bigint":case"string":case"number":He=!0;break;case"object":switch(D.$$typeof){case e:case t:He=!0;break;case p:return He=D._init,M(He(D._payload),H,ne,oe,ye)}}if(He)return ye=ye(D),He=oe===""?"."+_e(D,0):oe,T(ye)?(ne="",He!=null&&(ne=He.replace(De,"$&/")+"/"),M(ye,H,ne,"",function(gt){return gt})):ye!=null&&(we(ye)&&(ye=fe(ye,ne+(ye.key==null||D&&D.key===ye.key?"":(""+ye.key).replace(De,"$&/")+"/")+He)),H.push(ye)),1;He=0;var _t=oe===""?".":oe+":";if(T(D))for(var dt=0;dt<D.length;dt++)oe=D[dt],Ae=_t+_e(oe,dt),He+=M(oe,H,ne,Ae,ye);else if(dt=k(D),typeof dt=="function")for(D=dt.call(D),dt=0;!(oe=D.next()).done;)oe=oe.value,Ae=_t+_e(oe,dt++),He+=M(oe,H,ne,Ae,ye);else if(Ae==="object"){if(typeof D.then=="function")return M(Ne(D),H,ne,oe,ye);throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return He}function ee(D,H,ne){if(D==null)return D;var oe=[],ye=0;return M(D,oe,"","",function(Ae){return H.call(ne,Ae,ye++)}),oe}function de(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(ne){(D._status===0||D._status===-1)&&(D._status=1,D._result=ne)},function(ne){(D._status===0||D._status===-1)&&(D._status=2,D._result=ne)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var je=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},Ue={map:ee,forEach:function(D,H,ne){ee(D,function(){H.apply(this,arguments)},ne)},count:function(D){var H=0;return ee(D,function(){H++}),H},toArray:function(D){return ee(D,function(H){return H})||[]},only:function(D){if(!we(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ye.Activity=g,Ye.Children=Ue,Ye.Component=$,Ye.Fragment=r,Ye.Profiler=n,Ye.PureComponent=N,Ye.StrictMode=i,Ye.Suspense=f,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(D){return C.H.useMemoCache(D)}},Ye.cache=function(D){return function(){return D.apply(null,arguments)}},Ye.cacheSignal=function(){return null},Ye.cloneElement=function(D,H,ne){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var oe=I({},D.props),ye=D.key;if(H!=null)for(Ae in H.key!==void 0&&(ye=""+H.key),H)!ae.call(H,Ae)||Ae==="key"||Ae==="__self"||Ae==="__source"||Ae==="ref"&&H.ref===void 0||(oe[Ae]=H[Ae]);var Ae=arguments.length-2;if(Ae===1)oe.children=ne;else if(1<Ae){for(var He=Array(Ae),_t=0;_t<Ae;_t++)He[_t]=arguments[_t+2];oe.children=He}return ue(D.type,ye,oe)},Ye.createContext=function(D){return D={$$typeof:l,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:a,_context:D},D},Ye.createElement=function(D,H,ne){var oe,ye={},Ae=null;if(H!=null)for(oe in H.key!==void 0&&(Ae=""+H.key),H)ae.call(H,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ye[oe]=H[oe]);var He=arguments.length-2;if(He===1)ye.children=ne;else if(1<He){for(var _t=Array(He),dt=0;dt<He;dt++)_t[dt]=arguments[dt+2];ye.children=_t}if(D&&D.defaultProps)for(oe in He=D.defaultProps,He)ye[oe]===void 0&&(ye[oe]=He[oe]);return ue(D,Ae,ye)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(D){return{$$typeof:d,render:D}},Ye.isValidElement=we,Ye.lazy=function(D){return{$$typeof:p,_payload:{_status:-1,_result:D},_init:de}},Ye.memo=function(D,H){return{$$typeof:h,type:D,compare:H===void 0?null:H}},Ye.startTransition=function(D){var H=C.T,ne={};C.T=ne;try{var oe=D(),ye=C.S;ye!==null&&ye(ne,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(E,je)}catch(Ae){je(Ae)}finally{H!==null&&ne.types!==null&&(H.types=ne.types),C.T=H}},Ye.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Ye.use=function(D){return C.H.use(D)},Ye.useActionState=function(D,H,ne){return C.H.useActionState(D,H,ne)},Ye.useCallback=function(D,H){return C.H.useCallback(D,H)},Ye.useContext=function(D){return C.H.useContext(D)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(D,H){return C.H.useDeferredValue(D,H)},Ye.useEffect=function(D,H){return C.H.useEffect(D,H)},Ye.useEffectEvent=function(D){return C.H.useEffectEvent(D)},Ye.useId=function(){return C.H.useId()},Ye.useImperativeHandle=function(D,H,ne){return C.H.useImperativeHandle(D,H,ne)},Ye.useInsertionEffect=function(D,H){return C.H.useInsertionEffect(D,H)},Ye.useLayoutEffect=function(D,H){return C.H.useLayoutEffect(D,H)},Ye.useMemo=function(D,H){return C.H.useMemo(D,H)},Ye.useOptimistic=function(D,H){return C.H.useOptimistic(D,H)},Ye.useReducer=function(D,H,ne){return C.H.useReducer(D,H,ne)},Ye.useRef=function(D){return C.H.useRef(D)},Ye.useState=function(D){return C.H.useState(D)},Ye.useSyncExternalStore=function(D,H,ne){return C.H.useSyncExternalStore(D,H,ne)},Ye.useTransition=function(){return C.H.useTransition()},Ye.version="19.2.0",Ye}var EO;function Ah(){return EO||(EO=1,ry.exports=cB()),ry.exports}var iy={exports:{}},Cn={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var NO;function dB(){if(NO)return Cn;NO=1;var e=Ah();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},n=Symbol.for("react.portal");function a(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:g==null?null:""+g,children:f,containerInfo:h,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Cn.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return a(f,h,null,p)},Cn.flushSync=function(f){var h=l.T,p=i.p;try{if(l.T=null,i.p=2,f)return f()}finally{l.T=h,i.p=p,i.d.f()}},Cn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},Cn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Cn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=d(p,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,k=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:k}):p==="script"&&i.d.X(f,{crossOrigin:g,integrity:b,fetchPriority:k,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Cn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=d(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},Cn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=d(p,h.crossOrigin);i.d.L(f,p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Cn.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=d(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},Cn.requestFormReset=function(f){i.d.r(f)},Cn.unstable_batchedUpdates=function(f,h){return f(h)},Cn.useFormState=function(f,h,p){return l.H.useFormState(f,h,p)},Cn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Cn.version="19.2.0",Cn}var jO;function Pj(){if(jO)return iy.exports;jO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),iy.exports=dB(),iy.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var IO;function fB(){if(IO)return kc;IO=1;var e=sB(),t=Ah(),r=Pj();function i(o){var u="https://react.dev/errors/"+o;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)u+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+o+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var u=o,s=o;if(o.alternate)for(;u.return;)u=u.return;else{o=u;do u=o,(u.flags&4098)!==0&&(s=u.return),o=u.return;while(o)}return u.tag===3?s:null}function l(o){if(o.tag===13){var u=o.memoizedState;if(u===null&&(o=o.alternate,o!==null&&(u=o.memoizedState)),u!==null)return u.dehydrated}return null}function d(o){if(o.tag===31){var u=o.memoizedState;if(u===null&&(o=o.alternate,o!==null&&(u=o.memoizedState)),u!==null)return u.dehydrated}return null}function f(o){if(a(o)!==o)throw Error(i(188))}function h(o){var u=o.alternate;if(!u){if(u=a(o),u===null)throw Error(i(188));return u!==o?null:o}for(var s=o,c=u;;){var m=s.return;if(m===null)break;var v=m.alternate;if(v===null){if(c=m.return,c!==null){s=c;continue}break}if(m.child===v.child){for(v=m.child;v;){if(v===s)return f(m),o;if(v===c)return f(m),u;v=v.sibling}throw Error(i(188))}if(s.return!==c.return)s=m,c=v;else{for(var _=!1,O=m.child;O;){if(O===s){_=!0,s=m,c=v;break}if(O===c){_=!0,c=m,s=v;break}O=O.sibling}if(!_){for(O=v.child;O;){if(O===s){_=!0,s=v,c=m;break}if(O===c){_=!0,c=v,s=m;break}O=O.sibling}if(!_)throw Error(i(189))}}if(s.alternate!==c)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?o:u}function p(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o;for(o=o.child;o!==null;){if(u=p(o),u!==null)return u;o=o.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),N=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function Je(o){return o===null||typeof o!="object"?null:(o=we&&o[we]||o["@@iterator"],typeof o=="function"?o:null)}var De=Symbol.for("react.client.reference");function _e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===De?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case I:return"Fragment";case $:return"Profiler";case x:return"StrictMode";case T:return"Suspense";case E:return"SuspenseList";case ue:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case w:return"Portal";case N:return o.displayName||"Context";case j:return(o._context.displayName||"Context")+".Consumer";case z:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case C:return u=o.displayName||null,u!==null?u:_e(o.type)||"Memo";case ae:u=o._payload,o=o._init;try{return _e(o(u))}catch{}}return null}var Ne=Array.isArray,M=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},je=[],Ue=-1;function D(o){return{current:o}}function H(o){0>Ue||(o.current=je[Ue],je[Ue]=null,Ue--)}function ne(o,u){Ue++,je[Ue]=o.current,o.current=u}var oe=D(null),ye=D(null),Ae=D(null),He=D(null);function _t(o,u){switch(ne(Ae,u),ne(ye,o),ne(oe,null),u.nodeType){case 9:case 11:o=(o=u.documentElement)&&(o=o.namespaceURI)?V1(o):0;break;default:if(o=u.tagName,u=u.namespaceURI)u=V1(u),o=q1(u,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}H(oe),ne(oe,o)}function dt(){H(oe),H(ye),H(Ae)}function gt(o){o.memoizedState!==null&&ne(He,o);var u=oe.current,s=q1(u,o.type);u!==s&&(ne(ye,o),ne(oe,s))}function Ht(o){ye.current===o&&(H(oe),H(ye)),He.current===o&&(H(He),yc._currentValue=de)}var xn,An;function Ct(o){if(xn===void 0)try{throw Error()}catch(s){var u=s.stack.trim().match(/\n( *(at )?)/);xn=u&&u[1]||"",An=-1<s.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+xn+o+An}var yt=!1;function Rn(o,u){if(!o||yt)return"";yt=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(u){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(J){var G=J}Reflect.construct(o,[],W)}else{try{W.call()}catch(J){G=J}o.call(W.prototype)}}else{try{throw Error()}catch(J){G=J}(W=o())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(J){if(J&&G&&typeof J.stack=="string")return[J.stack,G.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=c.DetermineComponentFrameRoot(),_=v[0],O=v[1];if(_&&O){var A=_.split(`
|
|
44
|
-
`),V=O.split(`
|
|
45
|
-
`);for(m=c=0;c<A.length&&!A[c].includes("DetermineComponentFrameRoot");)c++;for(;m<V.length&&!V[m].includes("DetermineComponentFrameRoot");)m++;if(c===A.length||m===V.length)for(c=A.length-1,m=V.length-1;1<=c&&0<=m&&A[c]!==V[m];)m--;for(;1<=c&&0<=m;c--,m--)if(A[c]!==V[m]){if(c!==1||m!==1)do if(c--,m--,0>m||A[c]!==V[m]){var Y=`
|
|
46
|
-
`+A[c].replace(" at new "," at ");return o.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",o.displayName)),Y}while(1<=c&&0<=m);break}}}finally{yt=!1,Error.prepareStackTrace=s}return(s=o?o.displayName||o.name:"")?Ct(s):""}function Mn(o,u){switch(o.tag){case 26:case 27:case 5:return Ct(o.type);case 16:return Ct("Lazy");case 13:return o.child!==u&&u!==null?Ct("Suspense Fallback"):Ct("Suspense");case 19:return Ct("SuspenseList");case 0:case 15:return Rn(o.type,!1);case 11:return Rn(o.type.render,!1);case 1:return Rn(o.type,!0);case 31:return Ct("Activity");default:return""}}function Ei(o){try{var u="",s=null;do u+=Mn(o,s),s=o,o=o.return;while(o);return u}catch(c){return`
|
|
47
|
-
Error generating stack: `+c.message+`
|
|
48
|
-
`+c.stack}}var rr=Object.prototype.hasOwnProperty,On=e.unstable_scheduleCallback,Gn=e.unstable_cancelCallback,q=e.unstable_shouldYield,pe=e.unstable_requestPaint,he=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,me=e.unstable_ImmediatePriority,Pe=e.unstable_UserBlockingPriority,Nt=e.unstable_NormalPriority,ir=e.unstable_LowPriority,Ni=e.unstable_IdlePriority,Zo=e.log,ar=e.unstable_setDisableYieldValue,ti=null,gn=null;function ni(o){if(typeof Zo=="function"&&ar(o),gn&&typeof gn.setStrictMode=="function")try{gn.setStrictMode(ti,o)}catch{}}var Ln=Math.clz32?Math.clz32:rf,nf=Math.log,nl=Math.LN2;function rf(o){return o>>>=0,o===0?32:31-(nf(o)/nl|0)|0}var Fa=256,rl=262144,Bo=4194304;function Xi(o){var u=o&42;if(u!==0)return u;switch(o&-o){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 o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Fo(o,u,s){var c=o.pendingLanes;if(c===0)return 0;var m=0,v=o.suspendedLanes,_=o.pingedLanes;o=o.warmLanes;var O=c&134217727;return O!==0?(c=O&~v,c!==0?m=Xi(c):(_&=O,_!==0?m=Xi(_):s||(s=O&~o,s!==0&&(m=Xi(s))))):(O=c&~v,O!==0?m=Xi(O):_!==0?m=Xi(_):s||(s=c&~o,s!==0&&(m=Xi(s)))),m===0?0:u!==0&&u!==m&&(u&v)===0&&(v=m&-m,s=u&-u,v>=s||v===32&&(s&4194048)!==0)?u:m}function ji(o,u){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&u)===0}function il(o,u){switch(o){case 1:case 2:case 4:case 8:case 64:return u+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 u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function af(){var o=Bo;return Bo<<=1,(Bo&62914560)===0&&(Bo=4194304),o}function Ds(o){for(var u=[],s=0;31>s;s++)u.push(o);return u}function U(o,u){o.pendingLanes|=u,u!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function P(o,u,s,c,m,v){var _=o.pendingLanes;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=s,o.entangledLanes&=s,o.errorRecoveryDisabledLanes&=s,o.shellSuspendCounter=0;var O=o.entanglements,A=o.expirationTimes,V=o.hiddenUpdates;for(s=_&~s;0<s;){var Y=31-Ln(s),W=1<<Y;O[Y]=0,A[Y]=-1;var G=V[Y];if(G!==null)for(V[Y]=null,Y=0;Y<G.length;Y++){var J=G[Y];J!==null&&(J.lane&=-536870913)}s&=~W}c!==0&&K(o,c,0),v!==0&&m===0&&o.tag!==0&&(o.suspendedLanes|=v&~(_&~u))}function K(o,u,s){o.pendingLanes|=u,o.suspendedLanes&=~u;var c=31-Ln(u);o.entangledLanes|=u,o.entanglements[c]=o.entanglements[c]|1073741824|s&261930}function le(o,u){var s=o.entangledLanes|=u;for(o=o.entanglements;s;){var c=31-Ln(s),m=1<<c;m&u|o[c]&u&&(o[c]|=u),s&=~m}}function ve(o,u){var s=u&-u;return s=(s&42)!==0?1:Te(s),(s&(o.suspendedLanes|u))!==0?0:s}function Te(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function ze(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Ee(){var o=ee.p;return o!==0?o:(o=window.event,o===void 0?32:hO(o.type))}function Ce(o,u){var s=ee.p;try{return ee.p=o,u()}finally{ee.p=s}}var Re=Math.random().toString(36).slice(2),$e="__reactFiber$"+Re,be="__reactProps$"+Re,Fe="__reactContainer$"+Re,Ot="__reactEvents$"+Re,an="__reactListeners$"+Re,En="__reactHandles$"+Re,Rt="__reactResources$"+Re,wt="__reactMarker$"+Re;function ri(o){delete o[$e],delete o[be],delete o[Ot],delete o[an],delete o[En]}function jr(o){var u=o[$e];if(u)return u;for(var s=o.parentNode;s;){if(u=s[Fe]||s[$e]){if(s=u.alternate,u.child!==null||s!==null&&s.child!==null)for(o=Q1(o);o!==null;){if(s=o[$e])return s;o=Q1(o)}return u}o=s,s=o.parentNode}return null}function Pn(o){if(o=o[$e]||o[Fe]){var u=o.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return o}return null}function Dn(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o.stateNode;throw Error(i(33))}function Ii(o){var u=o[Rt];return u||(u=o[Rt]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Kt(o){o[wt]=!0}var Ti=new Set,Vo={};function Ir(o,u){nt(o,u),nt(o+"Capture",u)}function nt(o,u){for(Vo[o]=u,o=0;o<u.length;o++)Ti.add(u[o])}var yn=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]*$"),Qi={},zi={};function tn(o){return rr.call(zi,o)?!0:rr.call(Qi,o)?!1:yn.test(o)?zi[o]=!0:(Qi[o]=!0,!1)}function Wi(o,u,s){if(tn(u))if(s===null)o.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":o.removeAttribute(u);return;case"boolean":var c=u.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){o.removeAttribute(u);return}}o.setAttribute(u,""+s)}}function qo(o,u,s){if(s===null)o.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttribute(u,""+s)}}function ii(o,u,s,c){if(c===null)o.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttributeNS(u,s,""+c)}}function Tr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ck(o){var u=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function YL(o,u,s){var c=Object.getOwnPropertyDescriptor(o.constructor.prototype,u);if(!o.hasOwnProperty(u)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,v=c.set;return Object.defineProperty(o,u,{configurable:!0,get:function(){return m.call(this)},set:function(_){s=""+_,v.call(this,_)}}),Object.defineProperty(o,u,{enumerable:c.enumerable}),{getValue:function(){return s},setValue:function(_){s=""+_},stopTracking:function(){o._valueTracker=null,delete o[u]}}}}function qv(o){if(!o._valueTracker){var u=Ck(o)?"checked":"value";o._valueTracker=YL(o,u,""+o[u])}}function Rk(o){if(!o)return!1;var u=o._valueTracker;if(!u)return!0;var s=u.getValue(),c="";return o&&(c=Ck(o)?o.checked?"true":"false":o.value),o=c,o!==s?(u.setValue(o),!0):!1}function of(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var XL=/[\n"\\]/g;function zr(o){return o.replace(XL,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Gv(o,u,s,c,m,v,_,O){o.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?o.type=_:o.removeAttribute("type"),u!=null?_==="number"?(u===0&&o.value===""||o.value!=u)&&(o.value=""+Tr(u)):o.value!==""+Tr(u)&&(o.value=""+Tr(u)):_!=="submit"&&_!=="reset"||o.removeAttribute("value"),u!=null?Hv(o,_,Tr(u)):s!=null?Hv(o,_,Tr(s)):c!=null&&o.removeAttribute("value"),m==null&&v!=null&&(o.defaultChecked=!!v),m!=null&&(o.checked=m&&typeof m!="function"&&typeof m!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?o.name=""+Tr(O):o.removeAttribute("name")}function Mk(o,u,s,c,m,v,_,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(o.type=v),u!=null||s!=null){if(!(v!=="submit"&&v!=="reset"||u!=null)){qv(o);return}s=s!=null?""+Tr(s):"",u=u!=null?""+Tr(u):s,O||u===o.value||(o.value=u),o.defaultValue=u}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,o.checked=O?o.checked:!!c,o.defaultChecked=!!c,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(o.name=_),qv(o)}function Hv(o,u,s){u==="number"&&of(o.ownerDocument)===o||o.defaultValue===""+s||(o.defaultValue=""+s)}function al(o,u,s,c){if(o=o.options,u){u={};for(var m=0;m<s.length;m++)u["$"+s[m]]=!0;for(s=0;s<o.length;s++)m=u.hasOwnProperty("$"+o[s].value),o[s].selected!==m&&(o[s].selected=m),m&&c&&(o[s].defaultSelected=!0)}else{for(s=""+Tr(s),u=null,m=0;m<o.length;m++){if(o[m].value===s){o[m].selected=!0,c&&(o[m].defaultSelected=!0);return}u!==null||o[m].disabled||(u=o[m])}u!==null&&(u.selected=!0)}}function Lk(o,u,s){if(u!=null&&(u=""+Tr(u),u!==o.value&&(o.value=u),s==null)){o.defaultValue!==u&&(o.defaultValue=u);return}o.defaultValue=s!=null?""+Tr(s):""}function Pk(o,u,s,c){if(u==null){if(c!=null){if(s!=null)throw Error(i(92));if(Ne(c)){if(1<c.length)throw Error(i(93));c=c[0]}s=c}s==null&&(s=""),u=s}s=Tr(u),o.defaultValue=s,c=o.textContent,c===s&&c!==""&&c!==null&&(o.value=c),qv(o)}function ol(o,u){if(u){var s=o.firstChild;if(s&&s===o.lastChild&&s.nodeType===3){s.nodeValue=u;return}}o.textContent=u}var QL=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 Zk(o,u,s){var c=u.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?o.setProperty(u,""):u==="float"?o.cssFloat="":o[u]="":c?o.setProperty(u,s):typeof s!="number"||s===0||QL.has(u)?u==="float"?o.cssFloat=s:o[u]=(""+s).trim():o[u]=s+"px"}function Bk(o,u,s){if(u!=null&&typeof u!="object")throw Error(i(62));if(o=o.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||u!=null&&u.hasOwnProperty(c)||(c.indexOf("--")===0?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="");for(var m in u)c=u[m],u.hasOwnProperty(m)&&s[m]!==c&&Zk(o,m,c)}else for(var v in u)u.hasOwnProperty(v)&&Zk(o,v,u[v])}function Kv(o){if(o.indexOf("-")===-1)return!1;switch(o){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 WL=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"]]),eP=/^[\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 uf(o){return eP.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function ea(){}var Jv=null;function Yv(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ul=null,ll=null;function Fk(o){var u=Pn(o);if(u&&(o=u.stateNode)){var s=o[be]||null;e:switch(o=u.stateNode,u.type){case"input":if(Gv(o,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),u=s.name,s.type==="radio"&&u!=null){for(s=o;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+zr(""+u)+'"][type="radio"]'),u=0;u<s.length;u++){var c=s[u];if(c!==o&&c.form===o.form){var m=c[be]||null;if(!m)throw Error(i(90));Gv(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(u=0;u<s.length;u++)c=s[u],c.form===o.form&&Rk(c)}break e;case"textarea":Lk(o,s.value,s.defaultValue);break e;case"select":u=s.value,u!=null&&al(o,!!s.multiple,u,!1)}}}var Xv=!1;function Vk(o,u,s){if(Xv)return o(u,s);Xv=!0;try{var c=o(u);return c}finally{if(Xv=!1,(ul!==null||ll!==null)&&(Kf(),ul&&(u=ul,o=ll,ll=ul=null,Fk(u),o)))for(u=0;u<o.length;u++)Fk(o[u])}}function Us(o,u){var s=o.stateNode;if(s===null)return null;var c=s[be]||null;if(c===null)return null;s=c[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(o=o.type,c=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!c;break e;default:o=!1}if(o)return null;if(s&&typeof s!="function")throw Error(i(231,u,typeof s));return s}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qv=!1;if(ta)try{var Cs={};Object.defineProperty(Cs,"passive",{get:function(){Qv=!0}}),window.addEventListener("test",Cs,Cs),window.removeEventListener("test",Cs,Cs)}catch{Qv=!1}var Va=null,Wv=null,lf=null;function qk(){if(lf)return lf;var o,u=Wv,s=u.length,c,m="value"in Va?Va.value:Va.textContent,v=m.length;for(o=0;o<s&&u[o]===m[o];o++);var _=s-o;for(c=1;c<=_&&u[s-c]===m[v-c];c++);return lf=m.slice(o,1<c?1-c:void 0)}function sf(o){var u=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&u===13&&(o=13)):o=u,o===10&&(o=13),32<=o||o===13?o:0}function cf(){return!0}function Gk(){return!1}function Hn(o){function u(s,c,m,v,_){this._reactName=s,this._targetInst=m,this.type=c,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var O in o)o.hasOwnProperty(O)&&(s=o[O],this[O]=s?s(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?cf:Gk,this.isPropagationStopped=Gk,this}return g(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=cf)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=cf)},persist:function(){},isPersistent:cf}),u}var Go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=Hn(Go),Rs=g({},Go,{view:0,detail:0}),tP=Hn(Rs),ep,tp,Ms,ff=g({},Rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rp,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ms&&(Ms&&o.type==="mousemove"?(ep=o.screenX-Ms.screenX,tp=o.screenY-Ms.screenY):tp=ep=0,Ms=o),ep)},movementY:function(o){return"movementY"in o?o.movementY:tp}}),Hk=Hn(ff),nP=g({},ff,{dataTransfer:0}),rP=Hn(nP),iP=g({},Rs,{relatedTarget:0}),np=Hn(iP),aP=g({},Go,{animationName:0,elapsedTime:0,pseudoElement:0}),oP=Hn(aP),uP=g({},Go,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),lP=Hn(uP),sP=g({},Go,{data:0}),Kk=Hn(sP),cP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dP={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"},fP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mP(o){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(o):(o=fP[o])?!!u[o]:!1}function rp(){return mP}var hP=g({},Rs,{key:function(o){if(o.key){var u=cP[o.key]||o.key;if(u!=="Unidentified")return u}return o.type==="keypress"?(o=sf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?dP[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rp,charCode:function(o){return o.type==="keypress"?sf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?sf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),vP=Hn(hP),pP=g({},ff,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jk=Hn(pP),gP=g({},Rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rp}),yP=Hn(gP),bP=g({},Go,{propertyName:0,elapsedTime:0,pseudoElement:0}),_P=Hn(bP),$P=g({},ff,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),SP=Hn($P),kP=g({},Go,{newState:0,oldState:0}),wP=Hn(kP),xP=[9,13,27,32],ip=ta&&"CompositionEvent"in window,Ls=null;ta&&"documentMode"in document&&(Ls=document.documentMode);var OP=ta&&"TextEvent"in window&&!Ls,Yk=ta&&(!ip||Ls&&8<Ls&&11>=Ls),Xk=" ",Qk=!1;function Wk(o,u){switch(o){case"keyup":return xP.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ew(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var sl=!1;function EP(o,u){switch(o){case"compositionend":return ew(u);case"keypress":return u.which!==32?null:(Qk=!0,Xk);case"textInput":return o=u.data,o===Xk&&Qk?null:o;default:return null}}function NP(o,u){if(sl)return o==="compositionend"||!ip&&Wk(o,u)?(o=qk(),lf=Wv=Va=null,sl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return Yk&&u.locale!=="ko"?null:u.data;default:return null}}var jP={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 tw(o){var u=o&&o.nodeName&&o.nodeName.toLowerCase();return u==="input"?!!jP[o.type]:u==="textarea"}function nw(o,u,s,c){ul?ll?ll.push(c):ll=[c]:ul=c,u=tm(u,"onChange"),0<u.length&&(s=new df("onChange","change",null,s,c),o.push({event:s,listeners:u}))}var Ps=null,Zs=null;function IP(o){M1(o,0)}function mf(o){var u=Dn(o);if(Rk(u))return o}function rw(o,u){if(o==="change")return u}var iw=!1;if(ta){var ap;if(ta){var op="oninput"in document;if(!op){var aw=document.createElement("div");aw.setAttribute("oninput","return;"),op=typeof aw.oninput=="function"}ap=op}else ap=!1;iw=ap&&(!document.documentMode||9<document.documentMode)}function ow(){Ps&&(Ps.detachEvent("onpropertychange",uw),Zs=Ps=null)}function uw(o){if(o.propertyName==="value"&&mf(Zs)){var u=[];nw(u,Zs,o,Yv(o)),Vk(IP,u)}}function TP(o,u,s){o==="focusin"?(ow(),Ps=u,Zs=s,Ps.attachEvent("onpropertychange",uw)):o==="focusout"&&ow()}function zP(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return mf(Zs)}function AP(o,u){if(o==="click")return mf(u)}function DP(o,u){if(o==="input"||o==="change")return mf(u)}function UP(o,u){return o===u&&(o!==0||1/o===1/u)||o!==o&&u!==u}var or=typeof Object.is=="function"?Object.is:UP;function Bs(o,u){if(or(o,u))return!0;if(typeof o!="object"||o===null||typeof u!="object"||u===null)return!1;var s=Object.keys(o),c=Object.keys(u);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var m=s[c];if(!rr.call(u,m)||!or(o[m],u[m]))return!1}return!0}function lw(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function sw(o,u){var s=lw(o);o=0;for(var c;s;){if(s.nodeType===3){if(c=o+s.textContent.length,o<=u&&c>=u)return{node:s,offset:u-o};o=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=lw(s)}}function cw(o,u){return o&&u?o===u?!0:o&&o.nodeType===3?!1:u&&u.nodeType===3?cw(o,u.parentNode):"contains"in o?o.contains(u):o.compareDocumentPosition?!!(o.compareDocumentPosition(u)&16):!1:!1}function dw(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var u=of(o.document);u instanceof o.HTMLIFrameElement;){try{var s=typeof u.contentWindow.location.href=="string"}catch{s=!1}if(s)o=u.contentWindow;else break;u=of(o.document)}return u}function up(o){var u=o&&o.nodeName&&o.nodeName.toLowerCase();return u&&(u==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||u==="textarea"||o.contentEditable==="true")}var CP=ta&&"documentMode"in document&&11>=document.documentMode,cl=null,lp=null,Fs=null,sp=!1;function fw(o,u,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;sp||cl==null||cl!==of(c)||(c=cl,"selectionStart"in c&&up(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Fs&&Bs(Fs,c)||(Fs=c,c=tm(lp,"onSelect"),0<c.length&&(u=new df("onSelect","select",null,u,s),o.push({event:u,listeners:c}),u.target=cl)))}function Ho(o,u){var s={};return s[o.toLowerCase()]=u.toLowerCase(),s["Webkit"+o]="webkit"+u,s["Moz"+o]="moz"+u,s}var dl={animationend:Ho("Animation","AnimationEnd"),animationiteration:Ho("Animation","AnimationIteration"),animationstart:Ho("Animation","AnimationStart"),transitionrun:Ho("Transition","TransitionRun"),transitionstart:Ho("Transition","TransitionStart"),transitioncancel:Ho("Transition","TransitionCancel"),transitionend:Ho("Transition","TransitionEnd")},cp={},mw={};ta&&(mw=document.createElement("div").style,"AnimationEvent"in window||(delete dl.animationend.animation,delete dl.animationiteration.animation,delete dl.animationstart.animation),"TransitionEvent"in window||delete dl.transitionend.transition);function Ko(o){if(cp[o])return cp[o];if(!dl[o])return o;var u=dl[o],s;for(s in u)if(u.hasOwnProperty(s)&&s in mw)return cp[o]=u[s];return o}var hw=Ko("animationend"),vw=Ko("animationiteration"),pw=Ko("animationstart"),RP=Ko("transitionrun"),MP=Ko("transitionstart"),LP=Ko("transitioncancel"),gw=Ko("transitionend"),yw=new Map,dp="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(" ");dp.push("scrollEnd");function ai(o,u){yw.set(o,u),Ir(u,[o])}var hf=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Ar=[],fl=0,fp=0;function vf(){for(var o=fl,u=fp=fl=0;u<o;){var s=Ar[u];Ar[u++]=null;var c=Ar[u];Ar[u++]=null;var m=Ar[u];Ar[u++]=null;var v=Ar[u];if(Ar[u++]=null,c!==null&&m!==null){var _=c.pending;_===null?m.next=m:(m.next=_.next,_.next=m),c.pending=m}v!==0&&bw(s,m,v)}}function pf(o,u,s,c){Ar[fl++]=o,Ar[fl++]=u,Ar[fl++]=s,Ar[fl++]=c,fp|=c,o.lanes|=c,o=o.alternate,o!==null&&(o.lanes|=c)}function mp(o,u,s,c){return pf(o,u,s,c),gf(o)}function Jo(o,u){return pf(o,null,null,u),gf(o)}function bw(o,u,s){o.lanes|=s;var c=o.alternate;c!==null&&(c.lanes|=s);for(var m=!1,v=o.return;v!==null;)v.childLanes|=s,c=v.alternate,c!==null&&(c.childLanes|=s),v.tag===22&&(o=v.stateNode,o===null||o._visibility&1||(m=!0)),o=v,v=v.return;return o.tag===3?(v=o.stateNode,m&&u!==null&&(m=31-Ln(s),o=v.hiddenUpdates,c=o[m],c===null?o[m]=[u]:c.push(u),u.lane=s|536870912),v):null}function gf(o){if(50<dc)throw dc=0,Sg=null,Error(i(185));for(var u=o.return;u!==null;)o=u,u=o.return;return o.tag===3?o.stateNode:null}var ml={};function PP(o,u,s,c){this.tag=o,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ur(o,u,s,c){return new PP(o,u,s,c)}function hp(o){return o=o.prototype,!(!o||!o.isReactComponent)}function na(o,u){var s=o.alternate;return s===null?(s=ur(o.tag,u,o.key,o.mode),s.elementType=o.elementType,s.type=o.type,s.stateNode=o.stateNode,s.alternate=o,o.alternate=s):(s.pendingProps=u,s.type=o.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=o.flags&65011712,s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,u=o.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},s.sibling=o.sibling,s.index=o.index,s.ref=o.ref,s.refCleanup=o.refCleanup,s}function _w(o,u){o.flags&=65011714;var s=o.alternate;return s===null?(o.childLanes=0,o.lanes=u,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,u=s.dependencies,o.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),o}function yf(o,u,s,c,m,v){var _=0;if(c=o,typeof o=="function")hp(o)&&(_=1);else if(typeof o=="string")_=qZ(o,s,oe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case ue:return o=ur(31,s,u,m),o.elementType=ue,o.lanes=v,o;case I:return Yo(s.children,m,v,u);case x:_=8,m|=24;break;case $:return o=ur(12,s,u,m|2),o.elementType=$,o.lanes=v,o;case T:return o=ur(13,s,u,m),o.elementType=T,o.lanes=v,o;case E:return o=ur(19,s,u,m),o.elementType=E,o.lanes=v,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case N:_=10;break e;case j:_=9;break e;case z:_=11;break e;case C:_=14;break e;case ae:_=16,c=null;break e}_=29,s=Error(i(130,o===null?"null":typeof o,"")),c=null}return u=ur(_,s,u,m),u.elementType=o,u.type=c,u.lanes=v,u}function Yo(o,u,s,c){return o=ur(7,o,c,u),o.lanes=s,o}function vp(o,u,s){return o=ur(6,o,null,u),o.lanes=s,o}function $w(o){var u=ur(18,null,null,0);return u.stateNode=o,u}function pp(o,u,s){return u=ur(4,o.children!==null?o.children:[],o.key,u),u.lanes=s,u.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},u}var Sw=new WeakMap;function Dr(o,u){if(typeof o=="object"&&o!==null){var s=Sw.get(o);return s!==void 0?s:(u={value:o,source:u,stack:Ei(u)},Sw.set(o,u),u)}return{value:o,source:u,stack:Ei(u)}}var hl=[],vl=0,bf=null,Vs=0,Ur=[],Cr=0,qa=null,Ai=1,Di="";function ra(o,u){hl[vl++]=Vs,hl[vl++]=bf,bf=o,Vs=u}function kw(o,u,s){Ur[Cr++]=Ai,Ur[Cr++]=Di,Ur[Cr++]=qa,qa=o;var c=Ai;o=Di;var m=32-Ln(c)-1;c&=~(1<<m),s+=1;var v=32-Ln(u)+m;if(30<v){var _=m-m%5;v=(c&(1<<_)-1).toString(32),c>>=_,m-=_,Ai=1<<32-Ln(u)+m|s<<m|c,Di=v+o}else Ai=1<<v|s<<m|c,Di=o}function gp(o){o.return!==null&&(ra(o,1),kw(o,1,0))}function yp(o){for(;o===bf;)bf=hl[--vl],hl[vl]=null,Vs=hl[--vl],hl[vl]=null;for(;o===qa;)qa=Ur[--Cr],Ur[Cr]=null,Di=Ur[--Cr],Ur[Cr]=null,Ai=Ur[--Cr],Ur[Cr]=null}function ww(o,u){Ur[Cr++]=Ai,Ur[Cr++]=Di,Ur[Cr++]=qa,Ai=u.id,Di=u.overflow,qa=o}var Nn=null,Bt=null,vt=!1,Ga=null,Rr=!1,bp=Error(i(519));function Ha(o){var u=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qs(Dr(u,o)),bp}function xw(o){var u=o.stateNode,s=o.type,c=o.memoizedProps;switch(u[$e]=o,u[be]=c,s){case"dialog":ut("cancel",u),ut("close",u);break;case"iframe":case"object":case"embed":ut("load",u);break;case"video":case"audio":for(s=0;s<mc.length;s++)ut(mc[s],u);break;case"source":ut("error",u);break;case"img":case"image":case"link":ut("error",u),ut("load",u);break;case"details":ut("toggle",u);break;case"input":ut("invalid",u),Mk(u,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ut("invalid",u);break;case"textarea":ut("invalid",u),Pk(u,c.value,c.defaultValue,c.children)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||u.textContent===""+s||c.suppressHydrationWarning===!0||B1(u.textContent,s)?(c.popover!=null&&(ut("beforetoggle",u),ut("toggle",u)),c.onScroll!=null&&ut("scroll",u),c.onScrollEnd!=null&&ut("scrollend",u),c.onClick!=null&&(u.onclick=ea),u=!0):u=!1,u||Ha(o,!0)}function Ow(o){for(Nn=o.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:Rr=!1;return;case 27:case 3:Rr=!0;return;default:Nn=Nn.return}}function pl(o){if(o!==Nn)return!1;if(!vt)return Ow(o),vt=!0,!1;var u=o.tag,s;if((s=u!==3&&u!==27)&&((s=u===5)&&(s=o.type,s=!(s!=="form"&&s!=="button")||Rg(o.type,o.memoizedProps)),s=!s),s&&Bt&&Ha(o),Ow(o),u===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));Bt=X1(o)}else if(u===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));Bt=X1(o)}else u===27?(u=Bt,uo(o.type)?(o=Bg,Bg=null,Bt=o):Bt=u):Bt=Nn?Lr(o.stateNode.nextSibling):null;return!0}function Xo(){Bt=Nn=null,vt=!1}function _p(){var o=Ga;return o!==null&&(Xn===null?Xn=o:Xn.push.apply(Xn,o),Ga=null),o}function qs(o){Ga===null?Ga=[o]:Ga.push(o)}var $p=D(null),Qo=null,ia=null;function Ka(o,u,s){ne($p,u._currentValue),u._currentValue=s}function aa(o){o._currentValue=$p.current,H($p)}function Sp(o,u,s){for(;o!==null;){var c=o.alternate;if((o.childLanes&u)!==u?(o.childLanes|=u,c!==null&&(c.childLanes|=u)):c!==null&&(c.childLanes&u)!==u&&(c.childLanes|=u),o===s)break;o=o.return}}function kp(o,u,s,c){var m=o.child;for(m!==null&&(m.return=o);m!==null;){var v=m.dependencies;if(v!==null){var _=m.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=m;for(var A=0;A<u.length;A++)if(O.context===u[A]){v.lanes|=s,O=v.alternate,O!==null&&(O.lanes|=s),Sp(v.return,s,o),c||(_=null);break e}v=O.next}}else if(m.tag===18){if(_=m.return,_===null)throw Error(i(341));_.lanes|=s,v=_.alternate,v!==null&&(v.lanes|=s),Sp(_,s,o),_=null}else _=m.child;if(_!==null)_.return=m;else for(_=m;_!==null;){if(_===o){_=null;break}if(m=_.sibling,m!==null){m.return=_.return,_=m;break}_=_.return}m=_}}function gl(o,u,s,c){o=null;for(var m=u,v=!1;m!==null;){if(!v){if((m.flags&524288)!==0)v=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var _=m.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var O=m.type;or(m.pendingProps.value,_.value)||(o!==null?o.push(O):o=[O])}}else if(m===He.current){if(_=m.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(o!==null?o.push(yc):o=[yc])}m=m.return}o!==null&&kp(u,o,s,c),u.flags|=262144}function _f(o){for(o=o.firstContext;o!==null;){if(!or(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Wo(o){Qo=o,ia=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function jn(o){return Ew(Qo,o)}function $f(o,u){return Qo===null&&Wo(o),Ew(o,u)}function Ew(o,u){var s=u._currentValue;if(u={context:u,memoizedValue:s,next:null},ia===null){if(o===null)throw Error(i(308));ia=u,o.dependencies={lanes:0,firstContext:u},o.flags|=524288}else ia=ia.next=u;return s}var ZP=typeof AbortController<"u"?AbortController:function(){var o=[],u=this.signal={aborted:!1,addEventListener:function(s,c){o.push(c)}};this.abort=function(){u.aborted=!0,o.forEach(function(s){return s()})}},BP=e.unstable_scheduleCallback,FP=e.unstable_NormalPriority,on={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wp(){return{controller:new ZP,data:new Map,refCount:0}}function Gs(o){o.refCount--,o.refCount===0&&BP(FP,function(){o.controller.abort()})}var Hs=null,xp=0,yl=0,bl=null;function VP(o,u){if(Hs===null){var s=Hs=[];xp=0,yl=Ng(),bl={status:"pending",value:void 0,then:function(c){s.push(c)}}}return xp++,u.then(Nw,Nw),u}function Nw(){if(--xp===0&&Hs!==null){bl!==null&&(bl.status="fulfilled");var o=Hs;Hs=null,yl=0,bl=null;for(var u=0;u<o.length;u++)(0,o[u])()}}function qP(o,u){var s=[],c={status:"pending",value:null,reason:null,then:function(m){s.push(m)}};return o.then(function(){c.status="fulfilled",c.value=u;for(var m=0;m<s.length;m++)(0,s[m])(u)},function(m){for(c.status="rejected",c.reason=m,m=0;m<s.length;m++)(0,s[m])(void 0)}),c}var jw=M.S;M.S=function(o,u){f1=he(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&VP(o,u),jw!==null&&jw(o,u)};var eu=D(null);function Op(){var o=eu.current;return o!==null?o:Ut.pooledCache}function Sf(o,u){u===null?ne(eu,eu.current):ne(eu,u.pool)}function Iw(){var o=Op();return o===null?null:{parent:on._currentValue,pool:o}}var _l=Error(i(460)),Ep=Error(i(474)),kf=Error(i(542)),wf={then:function(){}};function Tw(o){return o=o.status,o==="fulfilled"||o==="rejected"}function zw(o,u,s){switch(s=o[s],s===void 0?o.push(u):s!==u&&(u.then(ea,ea),u=s),u.status){case"fulfilled":return u.value;case"rejected":throw o=u.reason,Dw(o),o;default:if(typeof u.status=="string")u.then(ea,ea);else{if(o=Ut,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=u,o.status="pending",o.then(function(c){if(u.status==="pending"){var m=u;m.status="fulfilled",m.value=c}},function(c){if(u.status==="pending"){var m=u;m.status="rejected",m.reason=c}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw o=u.reason,Dw(o),o}throw nu=u,_l}}function tu(o){try{var u=o._init;return u(o._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(nu=s,_l):s}}var nu=null;function Aw(){if(nu===null)throw Error(i(459));var o=nu;return nu=null,o}function Dw(o){if(o===_l||o===kf)throw Error(i(483))}var $l=null,Ks=0;function xf(o){var u=Ks;return Ks+=1,$l===null&&($l=[]),zw($l,o,u)}function Js(o,u){u=u.props.ref,o.ref=u!==void 0?u:null}function Of(o,u){throw u.$$typeof===b?Error(i(525)):(o=Object.prototype.toString.call(u),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":o)))}function Uw(o){function u(L,R){if(o){var F=L.deletions;F===null?(L.deletions=[R],L.flags|=16):F.push(R)}}function s(L,R){if(!o)return null;for(;R!==null;)u(L,R),R=R.sibling;return null}function c(L){for(var R=new Map;L!==null;)L.key!==null?R.set(L.key,L):R.set(L.index,L),L=L.sibling;return R}function m(L,R){return L=na(L,R),L.index=0,L.sibling=null,L}function v(L,R,F){return L.index=F,o?(F=L.alternate,F!==null?(F=F.index,F<R?(L.flags|=67108866,R):F):(L.flags|=67108866,R)):(L.flags|=1048576,R)}function _(L){return o&&L.alternate===null&&(L.flags|=67108866),L}function O(L,R,F,Q){return R===null||R.tag!==6?(R=vp(F,L.mode,Q),R.return=L,R):(R=m(R,F),R.return=L,R)}function A(L,R,F,Q){var Le=F.type;return Le===I?Y(L,R,F.props.children,Q,F.key):R!==null&&(R.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===ae&&tu(Le)===R.type)?(R=m(R,F.props),Js(R,F),R.return=L,R):(R=yf(F.type,F.key,F.props,null,L.mode,Q),Js(R,F),R.return=L,R)}function V(L,R,F,Q){return R===null||R.tag!==4||R.stateNode.containerInfo!==F.containerInfo||R.stateNode.implementation!==F.implementation?(R=pp(F,L.mode,Q),R.return=L,R):(R=m(R,F.children||[]),R.return=L,R)}function Y(L,R,F,Q,Le){return R===null||R.tag!==7?(R=Yo(F,L.mode,Q,Le),R.return=L,R):(R=m(R,F),R.return=L,R)}function W(L,R,F){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=vp(""+R,L.mode,F),R.return=L,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case k:return F=yf(R.type,R.key,R.props,null,L.mode,F),Js(F,R),F.return=L,F;case w:return R=pp(R,L.mode,F),R.return=L,R;case ae:return R=tu(R),W(L,R,F)}if(Ne(R)||Je(R))return R=Yo(R,L.mode,F,null),R.return=L,R;if(typeof R.then=="function")return W(L,xf(R),F);if(R.$$typeof===N)return W(L,$f(L,R),F);Of(L,R)}return null}function G(L,R,F,Q){var Le=R!==null?R.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return Le!==null?null:O(L,R,""+F,Q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case k:return F.key===Le?A(L,R,F,Q):null;case w:return F.key===Le?V(L,R,F,Q):null;case ae:return F=tu(F),G(L,R,F,Q)}if(Ne(F)||Je(F))return Le!==null?null:Y(L,R,F,Q,null);if(typeof F.then=="function")return G(L,R,xf(F),Q);if(F.$$typeof===N)return G(L,R,$f(L,F),Q);Of(L,F)}return null}function J(L,R,F,Q,Le){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return L=L.get(F)||null,O(R,L,""+Q,Le);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case k:return L=L.get(Q.key===null?F:Q.key)||null,A(R,L,Q,Le);case w:return L=L.get(Q.key===null?F:Q.key)||null,V(R,L,Q,Le);case ae:return Q=tu(Q),J(L,R,F,Q,Le)}if(Ne(Q)||Je(Q))return L=L.get(F)||null,Y(R,L,Q,Le,null);if(typeof Q.then=="function")return J(L,R,F,xf(Q),Le);if(Q.$$typeof===N)return J(L,R,F,$f(R,Q),Le);Of(R,Q)}return null}function Se(L,R,F,Q){for(var Le=null,$t=null,Ie=R,et=R=0,mt=null;Ie!==null&&et<F.length;et++){Ie.index>et?(mt=Ie,Ie=null):mt=Ie.sibling;var St=G(L,Ie,F[et],Q);if(St===null){Ie===null&&(Ie=mt);break}o&&Ie&&St.alternate===null&&u(L,Ie),R=v(St,R,et),$t===null?Le=St:$t.sibling=St,$t=St,Ie=mt}if(et===F.length)return s(L,Ie),vt&&ra(L,et),Le;if(Ie===null){for(;et<F.length;et++)Ie=W(L,F[et],Q),Ie!==null&&(R=v(Ie,R,et),$t===null?Le=Ie:$t.sibling=Ie,$t=Ie);return vt&&ra(L,et),Le}for(Ie=c(Ie);et<F.length;et++)mt=J(Ie,L,et,F[et],Q),mt!==null&&(o&&mt.alternate!==null&&Ie.delete(mt.key===null?et:mt.key),R=v(mt,R,et),$t===null?Le=mt:$t.sibling=mt,$t=mt);return o&&Ie.forEach(function(mo){return u(L,mo)}),vt&&ra(L,et),Le}function Ze(L,R,F,Q){if(F==null)throw Error(i(151));for(var Le=null,$t=null,Ie=R,et=R=0,mt=null,St=F.next();Ie!==null&&!St.done;et++,St=F.next()){Ie.index>et?(mt=Ie,Ie=null):mt=Ie.sibling;var mo=G(L,Ie,St.value,Q);if(mo===null){Ie===null&&(Ie=mt);break}o&&Ie&&mo.alternate===null&&u(L,Ie),R=v(mo,R,et),$t===null?Le=mo:$t.sibling=mo,$t=mo,Ie=mt}if(St.done)return s(L,Ie),vt&&ra(L,et),Le;if(Ie===null){for(;!St.done;et++,St=F.next())St=W(L,St.value,Q),St!==null&&(R=v(St,R,et),$t===null?Le=St:$t.sibling=St,$t=St);return vt&&ra(L,et),Le}for(Ie=c(Ie);!St.done;et++,St=F.next())St=J(Ie,L,et,St.value,Q),St!==null&&(o&&St.alternate!==null&&Ie.delete(St.key===null?et:St.key),R=v(St,R,et),$t===null?Le=St:$t.sibling=St,$t=St);return o&&Ie.forEach(function(nB){return u(L,nB)}),vt&&ra(L,et),Le}function Dt(L,R,F,Q){if(typeof F=="object"&&F!==null&&F.type===I&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case k:e:{for(var Le=F.key;R!==null;){if(R.key===Le){if(Le=F.type,Le===I){if(R.tag===7){s(L,R.sibling),Q=m(R,F.props.children),Q.return=L,L=Q;break e}}else if(R.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===ae&&tu(Le)===R.type){s(L,R.sibling),Q=m(R,F.props),Js(Q,F),Q.return=L,L=Q;break e}s(L,R);break}else u(L,R);R=R.sibling}F.type===I?(Q=Yo(F.props.children,L.mode,Q,F.key),Q.return=L,L=Q):(Q=yf(F.type,F.key,F.props,null,L.mode,Q),Js(Q,F),Q.return=L,L=Q)}return _(L);case w:e:{for(Le=F.key;R!==null;){if(R.key===Le)if(R.tag===4&&R.stateNode.containerInfo===F.containerInfo&&R.stateNode.implementation===F.implementation){s(L,R.sibling),Q=m(R,F.children||[]),Q.return=L,L=Q;break e}else{s(L,R);break}else u(L,R);R=R.sibling}Q=pp(F,L.mode,Q),Q.return=L,L=Q}return _(L);case ae:return F=tu(F),Dt(L,R,F,Q)}if(Ne(F))return Se(L,R,F,Q);if(Je(F)){if(Le=Je(F),typeof Le!="function")throw Error(i(150));return F=Le.call(F),Ze(L,R,F,Q)}if(typeof F.then=="function")return Dt(L,R,xf(F),Q);if(F.$$typeof===N)return Dt(L,R,$f(L,F),Q);Of(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,R!==null&&R.tag===6?(s(L,R.sibling),Q=m(R,F),Q.return=L,L=Q):(s(L,R),Q=vp(F,L.mode,Q),Q.return=L,L=Q),_(L)):s(L,R)}return function(L,R,F,Q){try{Ks=0;var Le=Dt(L,R,F,Q);return $l=null,Le}catch(Ie){if(Ie===_l||Ie===kf)throw Ie;var $t=ur(29,Ie,null,L.mode);return $t.lanes=Q,$t.return=L,$t}finally{}}}var ru=Uw(!0),Cw=Uw(!1),Ja=!1;function Np(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jp(o,u){o=o.updateQueue,u.updateQueue===o&&(u.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ya(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Xa(o,u,s){var c=o.updateQueue;if(c===null)return null;if(c=c.shared,(xt&2)!==0){var m=c.pending;return m===null?u.next=u:(u.next=m.next,m.next=u),c.pending=u,u=gf(o),bw(o,null,s),u}return pf(o,c,u,s),gf(o)}function Ys(o,u,s){if(u=u.updateQueue,u!==null&&(u=u.shared,(s&4194048)!==0)){var c=u.lanes;c&=o.pendingLanes,s|=c,u.lanes=s,le(o,s)}}function Ip(o,u){var s=o.updateQueue,c=o.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var m=null,v=null;if(s=s.firstBaseUpdate,s!==null){do{var _={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};v===null?m=v=_:v=v.next=_,s=s.next}while(s!==null);v===null?m=v=u:v=v.next=u}else m=v=u;s={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:v,shared:c.shared,callbacks:c.callbacks},o.updateQueue=s;return}o=s.lastBaseUpdate,o===null?s.firstBaseUpdate=u:o.next=u,s.lastBaseUpdate=u}var Tp=!1;function Xs(){if(Tp){var o=bl;if(o!==null)throw o}}function Qs(o,u,s,c){Tp=!1;var m=o.updateQueue;Ja=!1;var v=m.firstBaseUpdate,_=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var A=O,V=A.next;A.next=null,_===null?v=V:_.next=V,_=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,O=Y.lastBaseUpdate,O!==_&&(O===null?Y.firstBaseUpdate=V:O.next=V,Y.lastBaseUpdate=A))}if(v!==null){var W=m.baseState;_=0,Y=V=A=null,O=v;do{var G=O.lane&-536870913,J=G!==O.lane;if(J?(ft&G)===G:(c&G)===G){G!==0&&G===yl&&(Tp=!0),Y!==null&&(Y=Y.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Se=o,Ze=O;G=u;var Dt=s;switch(Ze.tag){case 1:if(Se=Ze.payload,typeof Se=="function"){W=Se.call(Dt,W,G);break e}W=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Ze.payload,G=typeof Se=="function"?Se.call(Dt,W,G):Se,G==null)break e;W=g({},W,G);break e;case 2:Ja=!0}}G=O.callback,G!==null&&(o.flags|=64,J&&(o.flags|=8192),J=m.callbacks,J===null?m.callbacks=[G]:J.push(G))}else J={lane:G,tag:O.tag,payload:O.payload,callback:O.callback,next:null},Y===null?(V=Y=J,A=W):Y=Y.next=J,_|=G;if(O=O.next,O===null){if(O=m.shared.pending,O===null)break;J=O,O=J.next,J.next=null,m.lastBaseUpdate=J,m.shared.pending=null}}while(!0);Y===null&&(A=W),m.baseState=A,m.firstBaseUpdate=V,m.lastBaseUpdate=Y,v===null&&(m.shared.lanes=0),no|=_,o.lanes=_,o.memoizedState=W}}function Rw(o,u){if(typeof o!="function")throw Error(i(191,o));o.call(u)}function Mw(o,u){var s=o.callbacks;if(s!==null)for(o.callbacks=null,o=0;o<s.length;o++)Rw(s[o],u)}var Sl=D(null),Ef=D(0);function Lw(o,u){o=ha,ne(Ef,o),ne(Sl,u),ha=o|u.baseLanes}function zp(){ne(Ef,ha),ne(Sl,Sl.current)}function Ap(){ha=Ef.current,H(Sl),H(Ef)}var lr=D(null),Mr=null;function Qa(o){var u=o.alternate;ne(nn,nn.current&1),ne(lr,o),Mr===null&&(u===null||Sl.current!==null||u.memoizedState!==null)&&(Mr=o)}function Dp(o){ne(nn,nn.current),ne(lr,o),Mr===null&&(Mr=o)}function Pw(o){o.tag===22?(ne(nn,nn.current),ne(lr,o),Mr===null&&(Mr=o)):Wa()}function Wa(){ne(nn,nn.current),ne(lr,lr.current)}function sr(o){H(lr),Mr===o&&(Mr=null),H(nn)}var nn=D(0);function Nf(o){for(var u=o;u!==null;){if(u.tag===13){var s=u.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Pg(s)||Zg(s)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var oa=0,We=null,zt=null,un=null,jf=!1,kl=!1,iu=!1,If=0,Ws=0,wl=null,GP=0;function Yt(){throw Error(i(321))}function Up(o,u){if(u===null)return!1;for(var s=0;s<u.length&&s<o.length;s++)if(!or(o[s],u[s]))return!1;return!0}function Cp(o,u,s,c,m,v){return oa=v,We=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,M.H=o===null||o.memoizedState===null?kx:Xp,iu=!1,v=s(c,m),iu=!1,kl&&(v=Bw(u,s,c,m)),Zw(o),v}function Zw(o){M.H=nc;var u=zt!==null&&zt.next!==null;if(oa=0,un=zt=We=null,jf=!1,Ws=0,wl=null,u)throw Error(i(300));o===null||ln||(o=o.dependencies,o!==null&&_f(o)&&(ln=!0))}function Bw(o,u,s,c){We=o;var m=0;do{if(kl&&(wl=null),Ws=0,kl=!1,25<=m)throw Error(i(301));if(m+=1,un=zt=null,o.updateQueue!=null){var v=o.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}M.H=wx,v=u(s,c)}while(kl);return v}function HP(){var o=M.H,u=o.useState()[0];return u=typeof u.then=="function"?ec(u):u,o=o.useState()[0],(zt!==null?zt.memoizedState:null)!==o&&(We.flags|=1024),u}function Rp(){var o=If!==0;return If=0,o}function Mp(o,u,s){u.updateQueue=o.updateQueue,u.flags&=-2053,o.lanes&=~s}function Lp(o){if(jf){for(o=o.memoizedState;o!==null;){var u=o.queue;u!==null&&(u.pending=null),o=o.next}jf=!1}oa=0,un=zt=We=null,kl=!1,Ws=If=0,wl=null}function Zn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?We.memoizedState=un=o:un=un.next=o,un}function rn(){if(zt===null){var o=We.alternate;o=o!==null?o.memoizedState:null}else o=zt.next;var u=un===null?We.memoizedState:un.next;if(u!==null)un=u,zt=o;else{if(o===null)throw We.alternate===null?Error(i(467)):Error(i(310));zt=o,o={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},un===null?We.memoizedState=un=o:un=un.next=o}return un}function Tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ec(o){var u=Ws;return Ws+=1,wl===null&&(wl=[]),o=zw(wl,o,u),u=We,(un===null?u.memoizedState:un.next)===null&&(u=u.alternate,M.H=u===null||u.memoizedState===null?kx:Xp),o}function zf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ec(o);if(o.$$typeof===N)return jn(o)}throw Error(i(438,String(o)))}function Pp(o){var u=null,s=We.updateQueue;if(s!==null&&(u=s.memoCache),u==null){var c=We.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(u={data:c.data.map(function(m){return m.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),s===null&&(s=Tf(),We.updateQueue=s),s.memoCache=u,s=u.data[u.index],s===void 0)for(s=u.data[u.index]=Array(o),c=0;c<o;c++)s[c]=fe;return u.index++,s}function ua(o,u){return typeof u=="function"?u(o):u}function Af(o){var u=rn();return Zp(u,zt,o)}function Zp(o,u,s){var c=o.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=s;var m=o.baseQueue,v=c.pending;if(v!==null){if(m!==null){var _=m.next;m.next=v.next,v.next=_}u.baseQueue=m=v,c.pending=null}if(v=o.baseState,m===null)o.memoizedState=v;else{u=m.next;var O=_=null,A=null,V=u,Y=!1;do{var W=V.lane&-536870913;if(W!==V.lane?(ft&W)===W:(oa&W)===W){var G=V.revertLane;if(G===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),W===yl&&(Y=!0);else if((oa&G)===G){V=V.next,G===yl&&(Y=!0);continue}else W={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(O=A=W,_=v):A=A.next=W,We.lanes|=G,no|=G;W=V.action,iu&&s(v,W),v=V.hasEagerState?V.eagerState:s(v,W)}else G={lane:W,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(O=A=G,_=v):A=A.next=G,We.lanes|=W,no|=W;V=V.next}while(V!==null&&V!==u);if(A===null?_=v:A.next=O,!or(v,o.memoizedState)&&(ln=!0,Y&&(s=bl,s!==null)))throw s;o.memoizedState=v,o.baseState=_,o.baseQueue=A,c.lastRenderedState=v}return m===null&&(c.lanes=0),[o.memoizedState,c.dispatch]}function Bp(o){var u=rn(),s=u.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=o;var c=s.dispatch,m=s.pending,v=u.memoizedState;if(m!==null){s.pending=null;var _=m=m.next;do v=o(v,_.action),_=_.next;while(_!==m);or(v,u.memoizedState)||(ln=!0),u.memoizedState=v,u.baseQueue===null&&(u.baseState=v),s.lastRenderedState=v}return[v,c]}function Fw(o,u,s){var c=We,m=rn(),v=vt;if(v){if(s===void 0)throw Error(i(407));s=s()}else s=u();var _=!or((zt||m).memoizedState,s);if(_&&(m.memoizedState=s,ln=!0),m=m.queue,qp(Gw.bind(null,c,m,o),[o]),m.getSnapshot!==u||_||un!==null&&un.memoizedState.tag&1){if(c.flags|=2048,xl(9,{destroy:void 0},qw.bind(null,c,m,s,u),null),Ut===null)throw Error(i(349));v||(oa&127)!==0||Vw(c,u,s)}return s}function Vw(o,u,s){o.flags|=16384,o={getSnapshot:u,value:s},u=We.updateQueue,u===null?(u=Tf(),We.updateQueue=u,u.stores=[o]):(s=u.stores,s===null?u.stores=[o]:s.push(o))}function qw(o,u,s,c){u.value=s,u.getSnapshot=c,Hw(u)&&Kw(o)}function Gw(o,u,s){return s(function(){Hw(u)&&Kw(o)})}function Hw(o){var u=o.getSnapshot;o=o.value;try{var s=u();return!or(o,s)}catch{return!0}}function Kw(o){var u=Jo(o,2);u!==null&&Qn(u,o,2)}function Fp(o){var u=Zn();if(typeof o=="function"){var s=o;if(o=s(),iu){ni(!0);try{s()}finally{ni(!1)}}}return u.memoizedState=u.baseState=o,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:o},u}function Jw(o,u,s,c){return o.baseState=s,Zp(o,zt,typeof c=="function"?c:ua)}function KP(o,u,s,c,m){if(Cf(o))throw Error(i(485));if(o=u.action,o!==null){var v={payload:m,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){v.listeners.push(_)}};M.T!==null?s(!0):v.isTransition=!1,c(v),s=u.pending,s===null?(v.next=u.pending=v,Yw(u,v)):(v.next=s.next,u.pending=s.next=v)}}function Yw(o,u){var s=u.action,c=u.payload,m=o.state;if(u.isTransition){var v=M.T,_={};M.T=_;try{var O=s(m,c),A=M.S;A!==null&&A(_,O),Xw(o,u,O)}catch(V){Vp(o,u,V)}finally{v!==null&&_.types!==null&&(v.types=_.types),M.T=v}}else try{v=s(m,c),Xw(o,u,v)}catch(V){Vp(o,u,V)}}function Xw(o,u,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){Qw(o,u,c)},function(c){return Vp(o,u,c)}):Qw(o,u,s)}function Qw(o,u,s){u.status="fulfilled",u.value=s,Ww(u),o.state=s,u=o.pending,u!==null&&(s=u.next,s===u?o.pending=null:(s=s.next,u.next=s,Yw(o,s)))}function Vp(o,u,s){var c=o.pending;if(o.pending=null,c!==null){c=c.next;do u.status="rejected",u.reason=s,Ww(u),u=u.next;while(u!==c)}o.action=null}function Ww(o){o=o.listeners;for(var u=0;u<o.length;u++)(0,o[u])()}function ex(o,u){return u}function tx(o,u){if(vt){var s=Ut.formState;if(s!==null){e:{var c=We;if(vt){if(Bt){t:{for(var m=Bt,v=Rr;m.nodeType!==8;){if(!v){m=null;break t}if(m=Lr(m.nextSibling),m===null){m=null;break t}}v=m.data,m=v==="F!"||v==="F"?m:null}if(m){Bt=Lr(m.nextSibling),c=m.data==="F!";break e}}Ha(c)}c=!1}c&&(u=s[0])}}return s=Zn(),s.memoizedState=s.baseState=u,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ex,lastRenderedState:u},s.queue=c,s=_x.bind(null,We,c),c.dispatch=s,c=Fp(!1),v=Yp.bind(null,We,!1,c.queue),c=Zn(),m={state:u,dispatch:null,action:o,pending:null},c.queue=m,s=KP.bind(null,We,m,v,s),m.dispatch=s,c.memoizedState=o,[u,s,!1]}function nx(o){var u=rn();return rx(u,zt,o)}function rx(o,u,s){if(u=Zp(o,u,ex)[0],o=Af(ua)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var c=ec(u)}catch(_){throw _===_l?kf:_}else c=u;u=rn();var m=u.queue,v=m.dispatch;return s!==u.memoizedState&&(We.flags|=2048,xl(9,{destroy:void 0},JP.bind(null,m,s),null)),[c,v,o]}function JP(o,u){o.action=u}function ix(o){var u=rn(),s=zt;if(s!==null)return rx(u,s,o);rn(),u=u.memoizedState,s=rn();var c=s.queue.dispatch;return s.memoizedState=o,[u,c,!1]}function xl(o,u,s,c){return o={tag:o,create:s,deps:c,inst:u,next:null},u=We.updateQueue,u===null&&(u=Tf(),We.updateQueue=u),s=u.lastEffect,s===null?u.lastEffect=o.next=o:(c=s.next,s.next=o,o.next=c,u.lastEffect=o),o}function ax(){return rn().memoizedState}function Df(o,u,s,c){var m=Zn();We.flags|=o,m.memoizedState=xl(1|u,{destroy:void 0},s,c===void 0?null:c)}function Uf(o,u,s,c){var m=rn();c=c===void 0?null:c;var v=m.memoizedState.inst;zt!==null&&c!==null&&Up(c,zt.memoizedState.deps)?m.memoizedState=xl(u,v,s,c):(We.flags|=o,m.memoizedState=xl(1|u,v,s,c))}function ox(o,u){Df(8390656,8,o,u)}function qp(o,u){Uf(2048,8,o,u)}function YP(o){We.flags|=4;var u=We.updateQueue;if(u===null)u=Tf(),We.updateQueue=u,u.events=[o];else{var s=u.events;s===null?u.events=[o]:s.push(o)}}function ux(o){var u=rn().memoizedState;return YP({ref:u,nextImpl:o}),function(){if((xt&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}function lx(o,u){return Uf(4,2,o,u)}function sx(o,u){return Uf(4,4,o,u)}function cx(o,u){if(typeof u=="function"){o=o();var s=u(o);return function(){typeof s=="function"?s():u(null)}}if(u!=null)return o=o(),u.current=o,function(){u.current=null}}function dx(o,u,s){s=s!=null?s.concat([o]):null,Uf(4,4,cx.bind(null,u,o),s)}function Gp(){}function fx(o,u){var s=rn();u=u===void 0?null:u;var c=s.memoizedState;return u!==null&&Up(u,c[1])?c[0]:(s.memoizedState=[o,u],o)}function mx(o,u){var s=rn();u=u===void 0?null:u;var c=s.memoizedState;if(u!==null&&Up(u,c[1]))return c[0];if(c=o(),iu){ni(!0);try{o()}finally{ni(!1)}}return s.memoizedState=[c,u],c}function Hp(o,u,s){return s===void 0||(oa&1073741824)!==0&&(ft&261930)===0?o.memoizedState=u:(o.memoizedState=s,o=h1(),We.lanes|=o,no|=o,s)}function hx(o,u,s,c){return or(s,u)?s:Sl.current!==null?(o=Hp(o,s,c),or(o,u)||(ln=!0),o):(oa&42)===0||(oa&1073741824)!==0&&(ft&261930)===0?(ln=!0,o.memoizedState=s):(o=h1(),We.lanes|=o,no|=o,u)}function vx(o,u,s,c,m){var v=ee.p;ee.p=v!==0&&8>v?v:8;var _=M.T,O={};M.T=O,Yp(o,!1,u,s);try{var A=m(),V=M.S;if(V!==null&&V(O,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=qP(A,c);tc(o,u,Y,fr(o))}else tc(o,u,c,fr(o))}catch(W){tc(o,u,{then:function(){},status:"rejected",reason:W},fr())}finally{ee.p=v,_!==null&&O.types!==null&&(_.types=O.types),M.T=_}}function XP(){}function Kp(o,u,s,c){if(o.tag!==5)throw Error(i(476));var m=px(o).queue;vx(o,m,u,de,s===null?XP:function(){return gx(o),s(c)})}function px(o){var u=o.memoizedState;if(u!==null)return u;u={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:de},next:null};var s={};return u.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:s},next:null},o.memoizedState=u,o=o.alternate,o!==null&&(o.memoizedState=u),u}function gx(o){var u=px(o);u.next===null&&(u=o.alternate.memoizedState),tc(o,u.next.queue,{},fr())}function Jp(){return jn(yc)}function yx(){return rn().memoizedState}function bx(){return rn().memoizedState}function QP(o){for(var u=o.return;u!==null;){switch(u.tag){case 24:case 3:var s=fr();o=Ya(s);var c=Xa(u,o,s);c!==null&&(Qn(c,u,s),Ys(c,u,s)),u={cache:wp()},o.payload=u;return}u=u.return}}function WP(o,u,s){var c=fr();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Cf(o)?$x(u,s):(s=mp(o,u,s,c),s!==null&&(Qn(s,o,c),Sx(s,u,c)))}function _x(o,u,s){var c=fr();tc(o,u,s,c)}function tc(o,u,s,c){var m={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Cf(o))$x(u,m);else{var v=o.alternate;if(o.lanes===0&&(v===null||v.lanes===0)&&(v=u.lastRenderedReducer,v!==null))try{var _=u.lastRenderedState,O=v(_,s);if(m.hasEagerState=!0,m.eagerState=O,or(O,_))return pf(o,u,m,0),Ut===null&&vf(),!1}catch{}finally{}if(s=mp(o,u,m,c),s!==null)return Qn(s,o,c),Sx(s,u,c),!0}return!1}function Yp(o,u,s,c){if(c={lane:2,revertLane:Ng(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Cf(o)){if(u)throw Error(i(479))}else u=mp(o,s,c,2),u!==null&&Qn(u,o,2)}function Cf(o){var u=o.alternate;return o===We||u!==null&&u===We}function $x(o,u){kl=jf=!0;var s=o.pending;s===null?u.next=u:(u.next=s.next,s.next=u),o.pending=u}function Sx(o,u,s){if((s&4194048)!==0){var c=u.lanes;c&=o.pendingLanes,s|=c,u.lanes=s,le(o,s)}}var nc={readContext:jn,use:zf,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};nc.useEffectEvent=Yt;var kx={readContext:jn,use:zf,useCallback:function(o,u){return Zn().memoizedState=[o,u===void 0?null:u],o},useContext:jn,useEffect:ox,useImperativeHandle:function(o,u,s){s=s!=null?s.concat([o]):null,Df(4194308,4,cx.bind(null,u,o),s)},useLayoutEffect:function(o,u){return Df(4194308,4,o,u)},useInsertionEffect:function(o,u){Df(4,2,o,u)},useMemo:function(o,u){var s=Zn();u=u===void 0?null:u;var c=o();if(iu){ni(!0);try{o()}finally{ni(!1)}}return s.memoizedState=[c,u],c},useReducer:function(o,u,s){var c=Zn();if(s!==void 0){var m=s(u);if(iu){ni(!0);try{s(u)}finally{ni(!1)}}}else m=u;return c.memoizedState=c.baseState=m,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:m},c.queue=o,o=o.dispatch=WP.bind(null,We,o),[c.memoizedState,o]},useRef:function(o){var u=Zn();return o={current:o},u.memoizedState=o},useState:function(o){o=Fp(o);var u=o.queue,s=_x.bind(null,We,u);return u.dispatch=s,[o.memoizedState,s]},useDebugValue:Gp,useDeferredValue:function(o,u){var s=Zn();return Hp(s,o,u)},useTransition:function(){var o=Fp(!1);return o=vx.bind(null,We,o.queue,!0,!1),Zn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,u,s){var c=We,m=Zn();if(vt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=u(),Ut===null)throw Error(i(349));(ft&127)!==0||Vw(c,u,s)}m.memoizedState=s;var v={value:s,getSnapshot:u};return m.queue=v,ox(Gw.bind(null,c,v,o),[o]),c.flags|=2048,xl(9,{destroy:void 0},qw.bind(null,c,v,s,u),null),s},useId:function(){var o=Zn(),u=Ut.identifierPrefix;if(vt){var s=Di,c=Ai;s=(c&~(1<<32-Ln(c)-1)).toString(32)+s,u="_"+u+"R_"+s,s=If++,0<s&&(u+="H"+s.toString(32)),u+="_"}else s=GP++,u="_"+u+"r_"+s.toString(32)+"_";return o.memoizedState=u},useHostTransitionStatus:Jp,useFormState:tx,useActionState:tx,useOptimistic:function(o){var u=Zn();u.memoizedState=u.baseState=o;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=s,u=Yp.bind(null,We,!0,s),s.dispatch=u,[o,u]},useMemoCache:Pp,useCacheRefresh:function(){return Zn().memoizedState=QP.bind(null,We)},useEffectEvent:function(o){var u=Zn(),s={impl:o};return u.memoizedState=s,function(){if((xt&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},Xp={readContext:jn,use:zf,useCallback:fx,useContext:jn,useEffect:qp,useImperativeHandle:dx,useInsertionEffect:lx,useLayoutEffect:sx,useMemo:mx,useReducer:Af,useRef:ax,useState:function(){return Af(ua)},useDebugValue:Gp,useDeferredValue:function(o,u){var s=rn();return hx(s,zt.memoizedState,o,u)},useTransition:function(){var o=Af(ua)[0],u=rn().memoizedState;return[typeof o=="boolean"?o:ec(o),u]},useSyncExternalStore:Fw,useId:yx,useHostTransitionStatus:Jp,useFormState:nx,useActionState:nx,useOptimistic:function(o,u){var s=rn();return Jw(s,zt,o,u)},useMemoCache:Pp,useCacheRefresh:bx};Xp.useEffectEvent=ux;var wx={readContext:jn,use:zf,useCallback:fx,useContext:jn,useEffect:qp,useImperativeHandle:dx,useInsertionEffect:lx,useLayoutEffect:sx,useMemo:mx,useReducer:Bp,useRef:ax,useState:function(){return Bp(ua)},useDebugValue:Gp,useDeferredValue:function(o,u){var s=rn();return zt===null?Hp(s,o,u):hx(s,zt.memoizedState,o,u)},useTransition:function(){var o=Bp(ua)[0],u=rn().memoizedState;return[typeof o=="boolean"?o:ec(o),u]},useSyncExternalStore:Fw,useId:yx,useHostTransitionStatus:Jp,useFormState:ix,useActionState:ix,useOptimistic:function(o,u){var s=rn();return zt!==null?Jw(s,zt,o,u):(s.baseState=o,[o,s.queue.dispatch])},useMemoCache:Pp,useCacheRefresh:bx};wx.useEffectEvent=ux;function Qp(o,u,s,c){u=o.memoizedState,s=s(c,u),s=s==null?u:g({},u,s),o.memoizedState=s,o.lanes===0&&(o.updateQueue.baseState=s)}var Wp={enqueueSetState:function(o,u,s){o=o._reactInternals;var c=fr(),m=Ya(c);m.payload=u,s!=null&&(m.callback=s),u=Xa(o,m,c),u!==null&&(Qn(u,o,c),Ys(u,o,c))},enqueueReplaceState:function(o,u,s){o=o._reactInternals;var c=fr(),m=Ya(c);m.tag=1,m.payload=u,s!=null&&(m.callback=s),u=Xa(o,m,c),u!==null&&(Qn(u,o,c),Ys(u,o,c))},enqueueForceUpdate:function(o,u){o=o._reactInternals;var s=fr(),c=Ya(s);c.tag=2,u!=null&&(c.callback=u),u=Xa(o,c,s),u!==null&&(Qn(u,o,s),Ys(u,o,s))}};function xx(o,u,s,c,m,v,_){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(c,v,_):u.prototype&&u.prototype.isPureReactComponent?!Bs(s,c)||!Bs(m,v):!0}function Ox(o,u,s,c){o=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(s,c),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(s,c),u.state!==o&&Wp.enqueueReplaceState(u,u.state,null)}function au(o,u){var s=u;if("ref"in u){s={};for(var c in u)c!=="ref"&&(s[c]=u[c])}if(o=o.defaultProps){s===u&&(s=g({},s));for(var m in o)s[m]===void 0&&(s[m]=o[m])}return s}function Ex(o){hf(o)}function Nx(o){console.error(o)}function jx(o){hf(o)}function Rf(o,u){try{var s=o.onUncaughtError;s(u.value,{componentStack:u.stack})}catch(c){setTimeout(function(){throw c})}}function Ix(o,u,s){try{var c=o.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function eg(o,u,s){return s=Ya(s),s.tag=3,s.payload={element:null},s.callback=function(){Rf(o,u)},s}function Tx(o){return o=Ya(o),o.tag=3,o}function zx(o,u,s,c){var m=s.type.getDerivedStateFromError;if(typeof m=="function"){var v=c.value;o.payload=function(){return m(v)},o.callback=function(){Ix(u,s,c)}}var _=s.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(o.callback=function(){Ix(u,s,c),typeof m!="function"&&(ro===null?ro=new Set([this]):ro.add(this));var O=c.stack;this.componentDidCatch(c.value,{componentStack:O!==null?O:""})})}function eZ(o,u,s,c,m){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(u=s.alternate,u!==null&&gl(u,s,m,!0),s=lr.current,s!==null){switch(s.tag){case 31:case 13:return Mr===null?Jf():s.alternate===null&&Xt===0&&(Xt=3),s.flags&=-257,s.flags|=65536,s.lanes=m,c===wf?s.flags|=16384:(u=s.updateQueue,u===null?s.updateQueue=new Set([c]):u.add(c),xg(o,c,m)),!1;case 22:return s.flags|=65536,c===wf?s.flags|=16384:(u=s.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=u):(s=u.retryQueue,s===null?u.retryQueue=new Set([c]):s.add(c)),xg(o,c,m)),!1}throw Error(i(435,s.tag))}return xg(o,c,m),Jf(),!1}if(vt)return u=lr.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=m,c!==bp&&(o=Error(i(422),{cause:c}),qs(Dr(o,s)))):(c!==bp&&(u=Error(i(423),{cause:c}),qs(Dr(u,s))),o=o.current.alternate,o.flags|=65536,m&=-m,o.lanes|=m,c=Dr(c,s),m=eg(o.stateNode,c,m),Ip(o,m),Xt!==4&&(Xt=2)),!1;var v=Error(i(520),{cause:c});if(v=Dr(v,s),cc===null?cc=[v]:cc.push(v),Xt!==4&&(Xt=2),u===null)return!0;c=Dr(c,s),s=u;do{switch(s.tag){case 3:return s.flags|=65536,o=m&-m,s.lanes|=o,o=eg(s.stateNode,c,o),Ip(s,o),!1;case 1:if(u=s.type,v=s.stateNode,(s.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ro===null||!ro.has(v))))return s.flags|=65536,m&=-m,s.lanes|=m,m=Tx(m),zx(m,o,s,c),Ip(s,m),!1}s=s.return}while(s!==null);return!1}var tg=Error(i(461)),ln=!1;function In(o,u,s,c){u.child=o===null?Cw(u,null,s,c):ru(u,o.child,s,c)}function Ax(o,u,s,c,m){s=s.render;var v=u.ref;if("ref"in c){var _={};for(var O in c)O!=="ref"&&(_[O]=c[O])}else _=c;return Wo(u),c=Cp(o,u,s,_,v,m),O=Rp(),o!==null&&!ln?(Mp(o,u,m),la(o,u,m)):(vt&&O&&gp(u),u.flags|=1,In(o,u,c,m),u.child)}function Dx(o,u,s,c,m){if(o===null){var v=s.type;return typeof v=="function"&&!hp(v)&&v.defaultProps===void 0&&s.compare===null?(u.tag=15,u.type=v,Ux(o,u,v,c,m)):(o=yf(s.type,null,c,u,u.mode,m),o.ref=u.ref,o.return=u,u.child=o)}if(v=o.child,!sg(o,m)){var _=v.memoizedProps;if(s=s.compare,s=s!==null?s:Bs,s(_,c)&&o.ref===u.ref)return la(o,u,m)}return u.flags|=1,o=na(v,c),o.ref=u.ref,o.return=u,u.child=o}function Ux(o,u,s,c,m){if(o!==null){var v=o.memoizedProps;if(Bs(v,c)&&o.ref===u.ref)if(ln=!1,u.pendingProps=c=v,sg(o,m))(o.flags&131072)!==0&&(ln=!0);else return u.lanes=o.lanes,la(o,u,m)}return ng(o,u,s,c,m)}function Cx(o,u,s,c){var m=c.children,v=o!==null?o.memoizedState:null;if(o===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((u.flags&128)!==0){if(v=v!==null?v.baseLanes|s:s,o!==null){for(c=u.child=o.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~v}else c=0,u.child=null;return Rx(o,u,v,s,c)}if((s&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},o!==null&&Sf(u,v!==null?v.cachePool:null),v!==null?Lw(u,v):zp(),Pw(u);else return c=u.lanes=536870912,Rx(o,u,v!==null?v.baseLanes|s:s,s,c)}else v!==null?(Sf(u,v.cachePool),Lw(u,v),Wa(),u.memoizedState=null):(o!==null&&Sf(u,null),zp(),Wa());return In(o,u,m,s),u.child}function rc(o,u){return o!==null&&o.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function Rx(o,u,s,c,m){var v=Op();return v=v===null?null:{parent:on._currentValue,pool:v},u.memoizedState={baseLanes:s,cachePool:v},o!==null&&Sf(u,null),zp(),Pw(u),o!==null&&gl(o,u,c,!0),u.childLanes=m,null}function Mf(o,u){return u=Pf({mode:u.mode,children:u.children},o.mode),u.ref=o.ref,o.child=u,u.return=o,u}function Mx(o,u,s){return ru(u,o.child,null,s),o=Mf(u,u.pendingProps),o.flags|=2,sr(u),u.memoizedState=null,o}function tZ(o,u,s){var c=u.pendingProps,m=(u.flags&128)!==0;if(u.flags&=-129,o===null){if(vt){if(c.mode==="hidden")return o=Mf(u,c),u.lanes=536870912,rc(null,o);if(Dp(u),(o=Bt)?(o=Y1(o,Rr),o=o!==null&&o.data==="&"?o:null,o!==null&&(u.memoizedState={dehydrated:o,treeContext:qa!==null?{id:Ai,overflow:Di}:null,retryLane:536870912,hydrationErrors:null},s=$w(o),s.return=u,u.child=s,Nn=u,Bt=null)):o=null,o===null)throw Ha(u);return u.lanes=536870912,null}return Mf(u,c)}var v=o.memoizedState;if(v!==null){var _=v.dehydrated;if(Dp(u),m)if(u.flags&256)u.flags&=-257,u=Mx(o,u,s);else if(u.memoizedState!==null)u.child=o.child,u.flags|=128,u=null;else throw Error(i(558));else if(ln||gl(o,u,s,!1),m=(s&o.childLanes)!==0,ln||m){if(c=Ut,c!==null&&(_=ve(c,s),_!==0&&_!==v.retryLane))throw v.retryLane=_,Jo(o,_),Qn(c,o,_),tg;Jf(),u=Mx(o,u,s)}else o=v.treeContext,Bt=Lr(_.nextSibling),Nn=u,vt=!0,Ga=null,Rr=!1,o!==null&&ww(u,o),u=Mf(u,c),u.flags|=4096;return u}return o=na(o.child,{mode:c.mode,children:c.children}),o.ref=u.ref,u.child=o,o.return=u,o}function Lf(o,u){var s=u.ref;if(s===null)o!==null&&o.ref!==null&&(u.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(o===null||o.ref!==s)&&(u.flags|=4194816)}}function ng(o,u,s,c,m){return Wo(u),s=Cp(o,u,s,c,void 0,m),c=Rp(),o!==null&&!ln?(Mp(o,u,m),la(o,u,m)):(vt&&c&&gp(u),u.flags|=1,In(o,u,s,m),u.child)}function Lx(o,u,s,c,m,v){return Wo(u),u.updateQueue=null,s=Bw(u,c,s,m),Zw(o),c=Rp(),o!==null&&!ln?(Mp(o,u,v),la(o,u,v)):(vt&&c&&gp(u),u.flags|=1,In(o,u,s,v),u.child)}function Px(o,u,s,c,m){if(Wo(u),u.stateNode===null){var v=ml,_=s.contextType;typeof _=="object"&&_!==null&&(v=jn(_)),v=new s(c,v),u.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Wp,u.stateNode=v,v._reactInternals=u,v=u.stateNode,v.props=c,v.state=u.memoizedState,v.refs={},Np(u),_=s.contextType,v.context=typeof _=="object"&&_!==null?jn(_):ml,v.state=u.memoizedState,_=s.getDerivedStateFromProps,typeof _=="function"&&(Qp(u,s,_,c),v.state=u.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(_=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),_!==v.state&&Wp.enqueueReplaceState(v,v.state,null),Qs(u,c,v,m),Xs(),v.state=u.memoizedState),typeof v.componentDidMount=="function"&&(u.flags|=4194308),c=!0}else if(o===null){v=u.stateNode;var O=u.memoizedProps,A=au(s,O);v.props=A;var V=v.context,Y=s.contextType;_=ml,typeof Y=="object"&&Y!==null&&(_=jn(Y));var W=s.getDerivedStateFromProps;Y=typeof W=="function"||typeof v.getSnapshotBeforeUpdate=="function",O=u.pendingProps!==O,Y||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(O||V!==_)&&Ox(u,v,c,_),Ja=!1;var G=u.memoizedState;v.state=G,Qs(u,c,v,m),Xs(),V=u.memoizedState,O||G!==V||Ja?(typeof W=="function"&&(Qp(u,s,W,c),V=u.memoizedState),(A=Ja||xx(u,s,A,c,G,V,_))?(Y||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(u.flags|=4194308)):(typeof v.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=c,u.memoizedState=V),v.props=c,v.state=V,v.context=_,c=A):(typeof v.componentDidMount=="function"&&(u.flags|=4194308),c=!1)}else{v=u.stateNode,jp(o,u),_=u.memoizedProps,Y=au(s,_),v.props=Y,W=u.pendingProps,G=v.context,V=s.contextType,A=ml,typeof V=="object"&&V!==null&&(A=jn(V)),O=s.getDerivedStateFromProps,(V=typeof O=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==W||G!==A)&&Ox(u,v,c,A),Ja=!1,G=u.memoizedState,v.state=G,Qs(u,c,v,m),Xs();var J=u.memoizedState;_!==W||G!==J||Ja||o!==null&&o.dependencies!==null&&_f(o.dependencies)?(typeof O=="function"&&(Qp(u,s,O,c),J=u.memoizedState),(Y=Ja||xx(u,s,Y,c,G,J,A)||o!==null&&o.dependencies!==null&&_f(o.dependencies))?(V||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(c,J,A),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(c,J,A)),typeof v.componentDidUpdate=="function"&&(u.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof v.componentDidUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=1024),u.memoizedProps=c,u.memoizedState=J),v.props=c,v.state=J,v.context=A,c=Y):(typeof v.componentDidUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=1024),c=!1)}return v=c,Lf(o,u),c=(u.flags&128)!==0,v||c?(v=u.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:v.render(),u.flags|=1,o!==null&&c?(u.child=ru(u,o.child,null,m),u.child=ru(u,null,s,m)):In(o,u,s,m),u.memoizedState=v.state,o=u.child):o=la(o,u,m),o}function Zx(o,u,s,c){return Xo(),u.flags|=256,In(o,u,s,c),u.child}var rg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ig(o){return{baseLanes:o,cachePool:Iw()}}function ag(o,u,s){return o=o!==null?o.childLanes&~s:0,u&&(o|=dr),o}function Bx(o,u,s){var c=u.pendingProps,m=!1,v=(u.flags&128)!==0,_;if((_=v)||(_=o!==null&&o.memoizedState===null?!1:(nn.current&2)!==0),_&&(m=!0,u.flags&=-129),_=(u.flags&32)!==0,u.flags&=-33,o===null){if(vt){if(m?Qa(u):Wa(),(o=Bt)?(o=Y1(o,Rr),o=o!==null&&o.data!=="&"?o:null,o!==null&&(u.memoizedState={dehydrated:o,treeContext:qa!==null?{id:Ai,overflow:Di}:null,retryLane:536870912,hydrationErrors:null},s=$w(o),s.return=u,u.child=s,Nn=u,Bt=null)):o=null,o===null)throw Ha(u);return Zg(o)?u.lanes=32:u.lanes=536870912,null}var O=c.children;return c=c.fallback,m?(Wa(),m=u.mode,O=Pf({mode:"hidden",children:O},m),c=Yo(c,m,s,null),O.return=u,c.return=u,O.sibling=c,u.child=O,c=u.child,c.memoizedState=ig(s),c.childLanes=ag(o,_,s),u.memoizedState=rg,rc(null,c)):(Qa(u),og(u,O))}var A=o.memoizedState;if(A!==null&&(O=A.dehydrated,O!==null)){if(v)u.flags&256?(Qa(u),u.flags&=-257,u=ug(o,u,s)):u.memoizedState!==null?(Wa(),u.child=o.child,u.flags|=128,u=null):(Wa(),O=c.fallback,m=u.mode,c=Pf({mode:"visible",children:c.children},m),O=Yo(O,m,s,null),O.flags|=2,c.return=u,O.return=u,c.sibling=O,u.child=c,ru(u,o.child,null,s),c=u.child,c.memoizedState=ig(s),c.childLanes=ag(o,_,s),u.memoizedState=rg,u=rc(null,c));else if(Qa(u),Zg(O)){if(_=O.nextSibling&&O.nextSibling.dataset,_)var V=_.dgst;_=V,c=Error(i(419)),c.stack="",c.digest=_,qs({value:c,source:null,stack:null}),u=ug(o,u,s)}else if(ln||gl(o,u,s,!1),_=(s&o.childLanes)!==0,ln||_){if(_=Ut,_!==null&&(c=ve(_,s),c!==0&&c!==A.retryLane))throw A.retryLane=c,Jo(o,c),Qn(_,o,c),tg;Pg(O)||Jf(),u=ug(o,u,s)}else Pg(O)?(u.flags|=192,u.child=o.child,u=null):(o=A.treeContext,Bt=Lr(O.nextSibling),Nn=u,vt=!0,Ga=null,Rr=!1,o!==null&&ww(u,o),u=og(u,c.children),u.flags|=4096);return u}return m?(Wa(),O=c.fallback,m=u.mode,A=o.child,V=A.sibling,c=na(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,V!==null?O=na(V,O):(O=Yo(O,m,s,null),O.flags|=2),O.return=u,c.return=u,c.sibling=O,u.child=c,rc(null,c),c=u.child,O=o.child.memoizedState,O===null?O=ig(s):(m=O.cachePool,m!==null?(A=on._currentValue,m=m.parent!==A?{parent:A,pool:A}:m):m=Iw(),O={baseLanes:O.baseLanes|s,cachePool:m}),c.memoizedState=O,c.childLanes=ag(o,_,s),u.memoizedState=rg,rc(o.child,c)):(Qa(u),s=o.child,o=s.sibling,s=na(s,{mode:"visible",children:c.children}),s.return=u,s.sibling=null,o!==null&&(_=u.deletions,_===null?(u.deletions=[o],u.flags|=16):_.push(o)),u.child=s,u.memoizedState=null,s)}function og(o,u){return u=Pf({mode:"visible",children:u},o.mode),u.return=o,o.child=u}function Pf(o,u){return o=ur(22,o,null,u),o.lanes=0,o}function ug(o,u,s){return ru(u,o.child,null,s),o=og(u,u.pendingProps.children),o.flags|=2,u.memoizedState=null,o}function Fx(o,u,s){o.lanes|=u;var c=o.alternate;c!==null&&(c.lanes|=u),Sp(o.return,u,s)}function lg(o,u,s,c,m,v){var _=o.memoizedState;_===null?o.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:m,treeForkCount:v}:(_.isBackwards=u,_.rendering=null,_.renderingStartTime=0,_.last=c,_.tail=s,_.tailMode=m,_.treeForkCount=v)}function Vx(o,u,s){var c=u.pendingProps,m=c.revealOrder,v=c.tail;c=c.children;var _=nn.current,O=(_&2)!==0;if(O?(_=_&1|2,u.flags|=128):_&=1,ne(nn,_),In(o,u,c,s),c=vt?Vs:0,!O&&o!==null&&(o.flags&128)!==0)e:for(o=u.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Fx(o,s,u);else if(o.tag===19)Fx(o,s,u);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===u)break e;for(;o.sibling===null;){if(o.return===null||o.return===u)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(m){case"forwards":for(s=u.child,m=null;s!==null;)o=s.alternate,o!==null&&Nf(o)===null&&(m=s),s=s.sibling;s=m,s===null?(m=u.child,u.child=null):(m=s.sibling,s.sibling=null),lg(u,!1,m,s,v,c);break;case"backwards":case"unstable_legacy-backwards":for(s=null,m=u.child,u.child=null;m!==null;){if(o=m.alternate,o!==null&&Nf(o)===null){u.child=m;break}o=m.sibling,m.sibling=s,s=m,m=o}lg(u,!0,s,null,v,c);break;case"together":lg(u,!1,null,null,void 0,c);break;default:u.memoizedState=null}return u.child}function la(o,u,s){if(o!==null&&(u.dependencies=o.dependencies),no|=u.lanes,(s&u.childLanes)===0)if(o!==null){if(gl(o,u,s,!1),(s&u.childLanes)===0)return null}else return null;if(o!==null&&u.child!==o.child)throw Error(i(153));if(u.child!==null){for(o=u.child,s=na(o,o.pendingProps),u.child=s,s.return=u;o.sibling!==null;)o=o.sibling,s=s.sibling=na(o,o.pendingProps),s.return=u;s.sibling=null}return u.child}function sg(o,u){return(o.lanes&u)!==0?!0:(o=o.dependencies,!!(o!==null&&_f(o)))}function nZ(o,u,s){switch(u.tag){case 3:_t(u,u.stateNode.containerInfo),Ka(u,on,o.memoizedState.cache),Xo();break;case 27:case 5:gt(u);break;case 4:_t(u,u.stateNode.containerInfo);break;case 10:Ka(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,Dp(u),null;break;case 13:var c=u.memoizedState;if(c!==null)return c.dehydrated!==null?(Qa(u),u.flags|=128,null):(s&u.child.childLanes)!==0?Bx(o,u,s):(Qa(u),o=la(o,u,s),o!==null?o.sibling:null);Qa(u);break;case 19:var m=(o.flags&128)!==0;if(c=(s&u.childLanes)!==0,c||(gl(o,u,s,!1),c=(s&u.childLanes)!==0),m){if(c)return Vx(o,u,s);u.flags|=128}if(m=u.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ne(nn,nn.current),c)break;return null;case 22:return u.lanes=0,Cx(o,u,s,u.pendingProps);case 24:Ka(u,on,o.memoizedState.cache)}return la(o,u,s)}function qx(o,u,s){if(o!==null)if(o.memoizedProps!==u.pendingProps)ln=!0;else{if(!sg(o,s)&&(u.flags&128)===0)return ln=!1,nZ(o,u,s);ln=(o.flags&131072)!==0}else ln=!1,vt&&(u.flags&1048576)!==0&&kw(u,Vs,u.index);switch(u.lanes=0,u.tag){case 16:e:{var c=u.pendingProps;if(o=tu(u.elementType),u.type=o,typeof o=="function")hp(o)?(c=au(o,c),u.tag=1,u=Px(null,u,o,c,s)):(u.tag=0,u=ng(null,u,o,c,s));else{if(o!=null){var m=o.$$typeof;if(m===z){u.tag=11,u=Ax(null,u,o,c,s);break e}else if(m===C){u.tag=14,u=Dx(null,u,o,c,s);break e}}throw u=_e(o)||o,Error(i(306,u,""))}}return u;case 0:return ng(o,u,u.type,u.pendingProps,s);case 1:return c=u.type,m=au(c,u.pendingProps),Px(o,u,c,m,s);case 3:e:{if(_t(u,u.stateNode.containerInfo),o===null)throw Error(i(387));c=u.pendingProps;var v=u.memoizedState;m=v.element,jp(o,u),Qs(u,c,null,s);var _=u.memoizedState;if(c=_.cache,Ka(u,on,c),c!==v.cache&&kp(u,[on],s,!0),Xs(),c=_.element,v.isDehydrated)if(v={element:c,isDehydrated:!1,cache:_.cache},u.updateQueue.baseState=v,u.memoizedState=v,u.flags&256){u=Zx(o,u,c,s);break e}else if(c!==m){m=Dr(Error(i(424)),u),qs(m),u=Zx(o,u,c,s);break e}else{switch(o=u.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Bt=Lr(o.firstChild),Nn=u,vt=!0,Ga=null,Rr=!0,s=Cw(u,null,c,s),u.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Xo(),c===m){u=la(o,u,s);break e}In(o,u,c,s)}u=u.child}return u;case 26:return Lf(o,u),o===null?(s=nO(u.type,null,u.pendingProps,null))?u.memoizedState=s:vt||(s=u.type,o=u.pendingProps,c=nm(Ae.current).createElement(s),c[$e]=u,c[be]=o,Tn(c,s,o),Kt(c),u.stateNode=c):u.memoizedState=nO(u.type,o.memoizedProps,u.pendingProps,o.memoizedState),null;case 27:return gt(u),o===null&&vt&&(c=u.stateNode=W1(u.type,u.pendingProps,Ae.current),Nn=u,Rr=!0,m=Bt,uo(u.type)?(Bg=m,Bt=Lr(c.firstChild)):Bt=m),In(o,u,u.pendingProps.children,s),Lf(o,u),o===null&&(u.flags|=4194304),u.child;case 5:return o===null&&vt&&((m=c=Bt)&&(c=zZ(c,u.type,u.pendingProps,Rr),c!==null?(u.stateNode=c,Nn=u,Bt=Lr(c.firstChild),Rr=!1,m=!0):m=!1),m||Ha(u)),gt(u),m=u.type,v=u.pendingProps,_=o!==null?o.memoizedProps:null,c=v.children,Rg(m,v)?c=null:_!==null&&Rg(m,_)&&(u.flags|=32),u.memoizedState!==null&&(m=Cp(o,u,HP,null,null,s),yc._currentValue=m),Lf(o,u),In(o,u,c,s),u.child;case 6:return o===null&&vt&&((o=s=Bt)&&(s=AZ(s,u.pendingProps,Rr),s!==null?(u.stateNode=s,Nn=u,Bt=null,o=!0):o=!1),o||Ha(u)),null;case 13:return Bx(o,u,s);case 4:return _t(u,u.stateNode.containerInfo),c=u.pendingProps,o===null?u.child=ru(u,null,c,s):In(o,u,c,s),u.child;case 11:return Ax(o,u,u.type,u.pendingProps,s);case 7:return In(o,u,u.pendingProps,s),u.child;case 8:return In(o,u,u.pendingProps.children,s),u.child;case 12:return In(o,u,u.pendingProps.children,s),u.child;case 10:return c=u.pendingProps,Ka(u,u.type,c.value),In(o,u,c.children,s),u.child;case 9:return m=u.type._context,c=u.pendingProps.children,Wo(u),m=jn(m),c=c(m),u.flags|=1,In(o,u,c,s),u.child;case 14:return Dx(o,u,u.type,u.pendingProps,s);case 15:return Ux(o,u,u.type,u.pendingProps,s);case 19:return Vx(o,u,s);case 31:return tZ(o,u,s);case 22:return Cx(o,u,s,u.pendingProps);case 24:return Wo(u),c=jn(on),o===null?(m=Op(),m===null&&(m=Ut,v=wp(),m.pooledCache=v,v.refCount++,v!==null&&(m.pooledCacheLanes|=s),m=v),u.memoizedState={parent:c,cache:m},Np(u),Ka(u,on,m)):((o.lanes&s)!==0&&(jp(o,u),Qs(u,null,null,s),Xs()),m=o.memoizedState,v=u.memoizedState,m.parent!==c?(m={parent:c,cache:c},u.memoizedState=m,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=m),Ka(u,on,c)):(c=v.cache,Ka(u,on,c),c!==m.cache&&kp(u,[on],s,!0))),In(o,u,u.pendingProps.children,s),u.child;case 29:throw u.pendingProps}throw Error(i(156,u.tag))}function sa(o){o.flags|=4}function cg(o,u,s,c,m){if((u=(o.mode&32)!==0)&&(u=!1),u){if(o.flags|=16777216,(m&335544128)===m)if(o.stateNode.complete)o.flags|=8192;else if(y1())o.flags|=8192;else throw nu=wf,Ep}else o.flags&=-16777217}function Gx(o,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!uO(u))if(y1())o.flags|=8192;else throw nu=wf,Ep}function Zf(o,u){u!==null&&(o.flags|=4),o.flags&16384&&(u=o.tag!==22?af():536870912,o.lanes|=u,jl|=u)}function ic(o,u){if(!vt)switch(o.tailMode){case"hidden":u=o.tail;for(var s=null;u!==null;)u.alternate!==null&&(s=u),u=u.sibling;s===null?o.tail=null:s.sibling=null;break;case"collapsed":s=o.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?u||o.tail===null?o.tail=null:o.tail.sibling=null:c.sibling=null}}function Ft(o){var u=o.alternate!==null&&o.alternate.child===o.child,s=0,c=0;if(u)for(var m=o.child;m!==null;)s|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=o,m=m.sibling;else for(m=o.child;m!==null;)s|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=o,m=m.sibling;return o.subtreeFlags|=c,o.childLanes=s,u}function rZ(o,u,s){var c=u.pendingProps;switch(yp(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(u),null;case 1:return Ft(u),null;case 3:return s=u.stateNode,c=null,o!==null&&(c=o.memoizedState.cache),u.memoizedState.cache!==c&&(u.flags|=2048),aa(on),dt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(o===null||o.child===null)&&(pl(u)?sa(u):o===null||o.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,_p())),Ft(u),null;case 26:var m=u.type,v=u.memoizedState;return o===null?(sa(u),v!==null?(Ft(u),Gx(u,v)):(Ft(u),cg(u,m,null,c,s))):v?v!==o.memoizedState?(sa(u),Ft(u),Gx(u,v)):(Ft(u),u.flags&=-16777217):(o=o.memoizedProps,o!==c&&sa(u),Ft(u),cg(u,m,o,c,s)),null;case 27:if(Ht(u),s=Ae.current,m=u.type,o!==null&&u.stateNode!=null)o.memoizedProps!==c&&sa(u);else{if(!c){if(u.stateNode===null)throw Error(i(166));return Ft(u),null}o=oe.current,pl(u)?xw(u):(o=W1(m,c,s),u.stateNode=o,sa(u))}return Ft(u),null;case 5:if(Ht(u),m=u.type,o!==null&&u.stateNode!=null)o.memoizedProps!==c&&sa(u);else{if(!c){if(u.stateNode===null)throw Error(i(166));return Ft(u),null}if(v=oe.current,pl(u))xw(u);else{var _=nm(Ae.current);switch(v){case 1:v=_.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:v=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":v=_.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":v=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":v=_.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof c.is=="string"?_.createElement("select",{is:c.is}):_.createElement("select"),c.multiple?v.multiple=!0:c.size&&(v.size=c.size);break;default:v=typeof c.is=="string"?_.createElement(m,{is:c.is}):_.createElement(m)}}v[$e]=u,v[be]=c;e:for(_=u.child;_!==null;){if(_.tag===5||_.tag===6)v.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===u)break e;for(;_.sibling===null;){if(_.return===null||_.return===u)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}u.stateNode=v;e:switch(Tn(v,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&sa(u)}}return Ft(u),cg(u,u.type,o===null?null:o.memoizedProps,u.pendingProps,s),null;case 6:if(o&&u.stateNode!=null)o.memoizedProps!==c&&sa(u);else{if(typeof c!="string"&&u.stateNode===null)throw Error(i(166));if(o=Ae.current,pl(u)){if(o=u.stateNode,s=u.memoizedProps,c=null,m=Nn,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}o[$e]=u,o=!!(o.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||B1(o.nodeValue,s)),o||Ha(u,!0)}else o=nm(o).createTextNode(c),o[$e]=u,u.stateNode=o}return Ft(u),null;case 31:if(s=u.memoizedState,o===null||o.memoizedState!==null){if(c=pl(u),s!==null){if(o===null){if(!c)throw Error(i(318));if(o=u.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[$e]=u}else Xo(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Ft(u),o=!1}else s=_p(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=s),o=!0;if(!o)return u.flags&256?(sr(u),u):(sr(u),null);if((u.flags&128)!==0)throw Error(i(558))}return Ft(u),null;case 13:if(c=u.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(m=pl(u),c!==null&&c.dehydrated!==null){if(o===null){if(!m)throw Error(i(318));if(m=u.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[$e]=u}else Xo(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Ft(u),m=!1}else m=_p(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=m),m=!0;if(!m)return u.flags&256?(sr(u),u):(sr(u),null)}return sr(u),(u.flags&128)!==0?(u.lanes=s,u):(s=c!==null,o=o!==null&&o.memoizedState!==null,s&&(c=u.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==m&&(c.flags|=2048)),s!==o&&s&&(u.child.flags|=8192),Zf(u,u.updateQueue),Ft(u),null);case 4:return dt(),o===null&&zg(u.stateNode.containerInfo),Ft(u),null;case 10:return aa(u.type),Ft(u),null;case 19:if(H(nn),c=u.memoizedState,c===null)return Ft(u),null;if(m=(u.flags&128)!==0,v=c.rendering,v===null)if(m)ic(c,!1);else{if(Xt!==0||o!==null&&(o.flags&128)!==0)for(o=u.child;o!==null;){if(v=Nf(o),v!==null){for(u.flags|=128,ic(c,!1),o=v.updateQueue,u.updateQueue=o,Zf(u,o),u.subtreeFlags=0,o=s,s=u.child;s!==null;)_w(s,o),s=s.sibling;return ne(nn,nn.current&1|2),vt&&ra(u,c.treeForkCount),u.child}o=o.sibling}c.tail!==null&&he()>Gf&&(u.flags|=128,m=!0,ic(c,!1),u.lanes=4194304)}else{if(!m)if(o=Nf(v),o!==null){if(u.flags|=128,m=!0,o=o.updateQueue,u.updateQueue=o,Zf(u,o),ic(c,!0),c.tail===null&&c.tailMode==="hidden"&&!v.alternate&&!vt)return Ft(u),null}else 2*he()-c.renderingStartTime>Gf&&s!==536870912&&(u.flags|=128,m=!0,ic(c,!1),u.lanes=4194304);c.isBackwards?(v.sibling=u.child,u.child=v):(o=c.last,o!==null?o.sibling=v:u.child=v,c.last=v)}return c.tail!==null?(o=c.tail,c.rendering=o,c.tail=o.sibling,c.renderingStartTime=he(),o.sibling=null,s=nn.current,ne(nn,m?s&1|2:s&1),vt&&ra(u,c.treeForkCount),o):(Ft(u),null);case 22:case 23:return sr(u),Ap(),c=u.memoizedState!==null,o!==null?o.memoizedState!==null!==c&&(u.flags|=8192):c&&(u.flags|=8192),c?(s&536870912)!==0&&(u.flags&128)===0&&(Ft(u),u.subtreeFlags&6&&(u.flags|=8192)):Ft(u),s=u.updateQueue,s!==null&&Zf(u,s.retryQueue),s=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),c=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(c=u.memoizedState.cachePool.pool),c!==s&&(u.flags|=2048),o!==null&&H(eu),null;case 24:return s=null,o!==null&&(s=o.memoizedState.cache),u.memoizedState.cache!==s&&(u.flags|=2048),aa(on),Ft(u),null;case 25:return null;case 30:return null}throw Error(i(156,u.tag))}function iZ(o,u){switch(yp(u),u.tag){case 1:return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 3:return aa(on),dt(),o=u.flags,(o&65536)!==0&&(o&128)===0?(u.flags=o&-65537|128,u):null;case 26:case 27:case 5:return Ht(u),null;case 31:if(u.memoizedState!==null){if(sr(u),u.alternate===null)throw Error(i(340));Xo()}return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 13:if(sr(u),o=u.memoizedState,o!==null&&o.dehydrated!==null){if(u.alternate===null)throw Error(i(340));Xo()}return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 19:return H(nn),null;case 4:return dt(),null;case 10:return aa(u.type),null;case 22:case 23:return sr(u),Ap(),o!==null&&H(eu),o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 24:return aa(on),null;case 25:return null;default:return null}}function Hx(o,u){switch(yp(u),u.tag){case 3:aa(on),dt();break;case 26:case 27:case 5:Ht(u);break;case 4:dt();break;case 31:u.memoizedState!==null&&sr(u);break;case 13:sr(u);break;case 19:H(nn);break;case 10:aa(u.type);break;case 22:case 23:sr(u),Ap(),o!==null&&H(eu);break;case 24:aa(on)}}function ac(o,u){try{var s=u.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var m=c.next;s=m;do{if((s.tag&o)===o){c=void 0;var v=s.create,_=s.inst;c=v(),_.destroy=c}s=s.next}while(s!==m)}}catch(O){It(u,u.return,O)}}function eo(o,u,s){try{var c=u.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var v=m.next;c=v;do{if((c.tag&o)===o){var _=c.inst,O=_.destroy;if(O!==void 0){_.destroy=void 0,m=u;var A=s,V=O;try{V()}catch(Y){It(m,A,Y)}}}c=c.next}while(c!==v)}}catch(Y){It(u,u.return,Y)}}function Kx(o){var u=o.updateQueue;if(u!==null){var s=o.stateNode;try{Mw(u,s)}catch(c){It(o,o.return,c)}}}function Jx(o,u,s){s.props=au(o.type,o.memoizedProps),s.state=o.memoizedState;try{s.componentWillUnmount()}catch(c){It(o,u,c)}}function oc(o,u){try{var s=o.ref;if(s!==null){switch(o.tag){case 26:case 27:case 5:var c=o.stateNode;break;case 30:c=o.stateNode;break;default:c=o.stateNode}typeof s=="function"?o.refCleanup=s(c):s.current=c}}catch(m){It(o,u,m)}}function Ui(o,u){var s=o.ref,c=o.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(m){It(o,u,m)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(m){It(o,u,m)}else s.current=null}function Yx(o){var u=o.type,s=o.memoizedProps,c=o.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(m){It(o,o.return,m)}}function dg(o,u,s){try{var c=o.stateNode;OZ(c,o.type,s,u),c[be]=u}catch(m){It(o,o.return,m)}}function Xx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&uo(o.type)||o.tag===4}function fg(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Xx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&uo(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function mg(o,u,s){var c=o.tag;if(c===5||c===6)o=o.stateNode,u?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(o,u):(u=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,u.appendChild(o),s=s._reactRootContainer,s!=null||u.onclick!==null||(u.onclick=ea));else if(c!==4&&(c===27&&uo(o.type)&&(s=o.stateNode,u=null),o=o.child,o!==null))for(mg(o,u,s),o=o.sibling;o!==null;)mg(o,u,s),o=o.sibling}function Bf(o,u,s){var c=o.tag;if(c===5||c===6)o=o.stateNode,u?s.insertBefore(o,u):s.appendChild(o);else if(c!==4&&(c===27&&uo(o.type)&&(s=o.stateNode),o=o.child,o!==null))for(Bf(o,u,s),o=o.sibling;o!==null;)Bf(o,u,s),o=o.sibling}function Qx(o){var u=o.stateNode,s=o.memoizedProps;try{for(var c=o.type,m=u.attributes;m.length;)u.removeAttributeNode(m[0]);Tn(u,c,s),u[$e]=o,u[be]=s}catch(v){It(o,o.return,v)}}var ca=!1,sn=!1,hg=!1,Wx=typeof WeakSet=="function"?WeakSet:Set,bn=null;function aZ(o,u){if(o=o.containerInfo,Ug=sm,o=dw(o),up(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{s=(s=o.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var m=c.anchorOffset,v=c.focusNode;c=c.focusOffset;try{s.nodeType,v.nodeType}catch{s=null;break e}var _=0,O=-1,A=-1,V=0,Y=0,W=o,G=null;t:for(;;){for(var J;W!==s||m!==0&&W.nodeType!==3||(O=_+m),W!==v||c!==0&&W.nodeType!==3||(A=_+c),W.nodeType===3&&(_+=W.nodeValue.length),(J=W.firstChild)!==null;)G=W,W=J;for(;;){if(W===o)break t;if(G===s&&++V===m&&(O=_),G===v&&++Y===c&&(A=_),(J=W.nextSibling)!==null)break;W=G,G=W.parentNode}W=J}s=O===-1||A===-1?null:{start:O,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(Cg={focusedElem:o,selectionRange:s},sm=!1,bn=u;bn!==null;)if(u=bn,o=u.child,(u.subtreeFlags&1028)!==0&&o!==null)o.return=u,bn=o;else for(;bn!==null;){switch(u=bn,v=u.alternate,o=u.flags,u.tag){case 0:if((o&4)!==0&&(o=u.updateQueue,o=o!==null?o.events:null,o!==null))for(s=0;s<o.length;s++)m=o[s],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&v!==null){o=void 0,s=u,m=v.memoizedProps,v=v.memoizedState,c=s.stateNode;try{var Se=au(s.type,m);o=c.getSnapshotBeforeUpdate(Se,v),c.__reactInternalSnapshotBeforeUpdate=o}catch(Ze){It(s,s.return,Ze)}}break;case 3:if((o&1024)!==0){if(o=u.stateNode.containerInfo,s=o.nodeType,s===9)Lg(o);else if(s===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Lg(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=u.sibling,o!==null){o.return=u.return,bn=o;break}bn=u.return}}function e1(o,u,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:fa(o,s),c&4&&ac(5,s);break;case 1:if(fa(o,s),c&4)if(o=s.stateNode,u===null)try{o.componentDidMount()}catch(_){It(s,s.return,_)}else{var m=au(s.type,u.memoizedProps);u=u.memoizedState;try{o.componentDidUpdate(m,u,o.__reactInternalSnapshotBeforeUpdate)}catch(_){It(s,s.return,_)}}c&64&&Kx(s),c&512&&oc(s,s.return);break;case 3:if(fa(o,s),c&64&&(o=s.updateQueue,o!==null)){if(u=null,s.child!==null)switch(s.child.tag){case 27:case 5:u=s.child.stateNode;break;case 1:u=s.child.stateNode}try{Mw(o,u)}catch(_){It(s,s.return,_)}}break;case 27:u===null&&c&4&&Qx(s);case 26:case 5:fa(o,s),u===null&&c&4&&Yx(s),c&512&&oc(s,s.return);break;case 12:fa(o,s);break;case 31:fa(o,s),c&4&&r1(o,s);break;case 13:fa(o,s),c&4&&i1(o,s),c&64&&(o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(s=hZ.bind(null,s),DZ(o,s))));break;case 22:if(c=s.memoizedState!==null||ca,!c){u=u!==null&&u.memoizedState!==null||sn,m=ca;var v=sn;ca=c,(sn=u)&&!v?ma(o,s,(s.subtreeFlags&8772)!==0):fa(o,s),ca=m,sn=v}break;case 30:break;default:fa(o,s)}}function t1(o){var u=o.alternate;u!==null&&(o.alternate=null,t1(u)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(u=o.stateNode,u!==null&&ri(u)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Jt=null,Kn=!1;function da(o,u,s){for(s=s.child;s!==null;)n1(o,u,s),s=s.sibling}function n1(o,u,s){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(ti,s)}catch{}switch(s.tag){case 26:sn||Ui(s,u),da(o,u,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:sn||Ui(s,u);var c=Jt,m=Kn;uo(s.type)&&(Jt=s.stateNode,Kn=!1),da(o,u,s),vc(s.stateNode),Jt=c,Kn=m;break;case 5:sn||Ui(s,u);case 6:if(c=Jt,m=Kn,Jt=null,da(o,u,s),Jt=c,Kn=m,Jt!==null)if(Kn)try{(Jt.nodeType===9?Jt.body:Jt.nodeName==="HTML"?Jt.ownerDocument.body:Jt).removeChild(s.stateNode)}catch(v){It(s,u,v)}else try{Jt.removeChild(s.stateNode)}catch(v){It(s,u,v)}break;case 18:Jt!==null&&(Kn?(o=Jt,K1(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.stateNode),Rl(o)):K1(Jt,s.stateNode));break;case 4:c=Jt,m=Kn,Jt=s.stateNode.containerInfo,Kn=!0,da(o,u,s),Jt=c,Kn=m;break;case 0:case 11:case 14:case 15:eo(2,s,u),sn||eo(4,s,u),da(o,u,s);break;case 1:sn||(Ui(s,u),c=s.stateNode,typeof c.componentWillUnmount=="function"&&Jx(s,u,c)),da(o,u,s);break;case 21:da(o,u,s);break;case 22:sn=(c=sn)||s.memoizedState!==null,da(o,u,s),sn=c;break;default:da(o,u,s)}}function r1(o,u){if(u.memoizedState===null&&(o=u.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Rl(o)}catch(s){It(u,u.return,s)}}}function i1(o,u){if(u.memoizedState===null&&(o=u.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Rl(o)}catch(s){It(u,u.return,s)}}function oZ(o){switch(o.tag){case 31:case 13:case 19:var u=o.stateNode;return u===null&&(u=o.stateNode=new Wx),u;case 22:return o=o.stateNode,u=o._retryCache,u===null&&(u=o._retryCache=new Wx),u;default:throw Error(i(435,o.tag))}}function Ff(o,u){var s=oZ(o);u.forEach(function(c){if(!s.has(c)){s.add(c);var m=vZ.bind(null,o,c);c.then(m,m)}})}function Jn(o,u){var s=u.deletions;if(s!==null)for(var c=0;c<s.length;c++){var m=s[c],v=o,_=u,O=_;e:for(;O!==null;){switch(O.tag){case 27:if(uo(O.type)){Jt=O.stateNode,Kn=!1;break e}break;case 5:Jt=O.stateNode,Kn=!1;break e;case 3:case 4:Jt=O.stateNode.containerInfo,Kn=!0;break e}O=O.return}if(Jt===null)throw Error(i(160));n1(v,_,m),Jt=null,Kn=!1,v=m.alternate,v!==null&&(v.return=null),m.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)a1(u,o),u=u.sibling}var oi=null;function a1(o,u){var s=o.alternate,c=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Jn(u,o),Yn(o),c&4&&(eo(3,o,o.return),ac(3,o),eo(5,o,o.return));break;case 1:Jn(u,o),Yn(o),c&512&&(sn||s===null||Ui(s,s.return)),c&64&&ca&&(o=o.updateQueue,o!==null&&(c=o.callbacks,c!==null&&(s=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var m=oi;if(Jn(u,o),Yn(o),c&512&&(sn||s===null||Ui(s,s.return)),c&4){var v=s!==null?s.memoizedState:null;if(c=o.memoizedState,s===null)if(c===null)if(o.stateNode===null){e:{c=o.type,s=o.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":v=m.getElementsByTagName("title")[0],(!v||v[wt]||v[$e]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=m.createElement(c),m.head.insertBefore(v,m.querySelector("head > title"))),Tn(v,c,s),v[$e]=o,Kt(v),c=v;break e;case"link":var _=aO("link","href",m).get(c+(s.href||""));if(_){for(var O=0;O<_.length;O++)if(v=_[O],v.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&v.getAttribute("rel")===(s.rel==null?null:s.rel)&&v.getAttribute("title")===(s.title==null?null:s.title)&&v.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){_.splice(O,1);break t}}v=m.createElement(c),Tn(v,c,s),m.head.appendChild(v);break;case"meta":if(_=aO("meta","content",m).get(c+(s.content||""))){for(O=0;O<_.length;O++)if(v=_[O],v.getAttribute("content")===(s.content==null?null:""+s.content)&&v.getAttribute("name")===(s.name==null?null:s.name)&&v.getAttribute("property")===(s.property==null?null:s.property)&&v.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&v.getAttribute("charset")===(s.charSet==null?null:s.charSet)){_.splice(O,1);break t}}v=m.createElement(c),Tn(v,c,s),m.head.appendChild(v);break;default:throw Error(i(468,c))}v[$e]=o,Kt(v),c=v}o.stateNode=c}else oO(m,o.type,o.stateNode);else o.stateNode=iO(m,c,o.memoizedProps);else v!==c?(v===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):v.count--,c===null?oO(m,o.type,o.stateNode):iO(m,c,o.memoizedProps)):c===null&&o.stateNode!==null&&dg(o,o.memoizedProps,s.memoizedProps)}break;case 27:Jn(u,o),Yn(o),c&512&&(sn||s===null||Ui(s,s.return)),s!==null&&c&4&&dg(o,o.memoizedProps,s.memoizedProps);break;case 5:if(Jn(u,o),Yn(o),c&512&&(sn||s===null||Ui(s,s.return)),o.flags&32){m=o.stateNode;try{ol(m,"")}catch(Se){It(o,o.return,Se)}}c&4&&o.stateNode!=null&&(m=o.memoizedProps,dg(o,m,s!==null?s.memoizedProps:m)),c&1024&&(hg=!0);break;case 6:if(Jn(u,o),Yn(o),c&4){if(o.stateNode===null)throw Error(i(162));c=o.memoizedProps,s=o.stateNode;try{s.nodeValue=c}catch(Se){It(o,o.return,Se)}}break;case 3:if(am=null,m=oi,oi=rm(u.containerInfo),Jn(u,o),oi=m,Yn(o),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Rl(u.containerInfo)}catch(Se){It(o,o.return,Se)}hg&&(hg=!1,o1(o));break;case 4:c=oi,oi=rm(o.stateNode.containerInfo),Jn(u,o),Yn(o),oi=c;break;case 12:Jn(u,o),Yn(o);break;case 31:Jn(u,o),Yn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Ff(o,c)));break;case 13:Jn(u,o),Yn(o),o.child.flags&8192&&o.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(qf=he()),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Ff(o,c)));break;case 22:m=o.memoizedState!==null;var A=s!==null&&s.memoizedState!==null,V=ca,Y=sn;if(ca=V||m,sn=Y||A,Jn(u,o),sn=Y,ca=V,Yn(o),c&8192)e:for(u=o.stateNode,u._visibility=m?u._visibility&-2:u._visibility|1,m&&(s===null||A||ca||sn||ou(o)),s=null,u=o;;){if(u.tag===5||u.tag===26){if(s===null){A=s=u;try{if(v=A.stateNode,m)_=v.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{O=A.stateNode;var W=A.memoizedProps.style,G=W!=null&&W.hasOwnProperty("display")?W.display:null;O.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(Se){It(A,A.return,Se)}}}else if(u.tag===6){if(s===null){A=u;try{A.stateNode.nodeValue=m?"":A.memoizedProps}catch(Se){It(A,A.return,Se)}}}else if(u.tag===18){if(s===null){A=u;try{var J=A.stateNode;m?J1(J,!0):J1(A.stateNode,!1)}catch(Se){It(A,A.return,Se)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===o)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break e;for(;u.sibling===null;){if(u.return===null||u.return===o)break e;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}c&4&&(c=o.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,Ff(o,s))));break;case 19:Jn(u,o),Yn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Ff(o,c)));break;case 30:break;case 21:break;default:Jn(u,o),Yn(o)}}function Yn(o){var u=o.flags;if(u&2){try{for(var s,c=o.return;c!==null;){if(Xx(c)){s=c;break}c=c.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var m=s.stateNode,v=fg(o);Bf(o,v,m);break;case 5:var _=s.stateNode;s.flags&32&&(ol(_,""),s.flags&=-33);var O=fg(o);Bf(o,O,_);break;case 3:case 4:var A=s.stateNode.containerInfo,V=fg(o);mg(o,V,A);break;default:throw Error(i(161))}}catch(Y){It(o,o.return,Y)}o.flags&=-3}u&4096&&(o.flags&=-4097)}function o1(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var u=o;o1(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),o=o.sibling}}function fa(o,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)e1(o,u.alternate,u),u=u.sibling}function ou(o){for(o=o.child;o!==null;){var u=o;switch(u.tag){case 0:case 11:case 14:case 15:eo(4,u,u.return),ou(u);break;case 1:Ui(u,u.return);var s=u.stateNode;typeof s.componentWillUnmount=="function"&&Jx(u,u.return,s),ou(u);break;case 27:vc(u.stateNode);case 26:case 5:Ui(u,u.return),ou(u);break;case 22:u.memoizedState===null&&ou(u);break;case 30:ou(u);break;default:ou(u)}o=o.sibling}}function ma(o,u,s){for(s=s&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var c=u.alternate,m=o,v=u,_=v.flags;switch(v.tag){case 0:case 11:case 15:ma(m,v,s),ac(4,v);break;case 1:if(ma(m,v,s),c=v,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(V){It(c,c.return,V)}if(c=v,m=c.updateQueue,m!==null){var O=c.stateNode;try{var A=m.shared.hiddenCallbacks;if(A!==null)for(m.shared.hiddenCallbacks=null,m=0;m<A.length;m++)Rw(A[m],O)}catch(V){It(c,c.return,V)}}s&&_&64&&Kx(v),oc(v,v.return);break;case 27:Qx(v);case 26:case 5:ma(m,v,s),s&&c===null&&_&4&&Yx(v),oc(v,v.return);break;case 12:ma(m,v,s);break;case 31:ma(m,v,s),s&&_&4&&r1(m,v);break;case 13:ma(m,v,s),s&&_&4&&i1(m,v);break;case 22:v.memoizedState===null&&ma(m,v,s),oc(v,v.return);break;case 30:break;default:ma(m,v,s)}u=u.sibling}}function vg(o,u){var s=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),o=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(o=u.memoizedState.cachePool.pool),o!==s&&(o!=null&&o.refCount++,s!=null&&Gs(s))}function pg(o,u){o=null,u.alternate!==null&&(o=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==o&&(u.refCount++,o!=null&&Gs(o))}function ui(o,u,s,c){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)u1(o,u,s,c),u=u.sibling}function u1(o,u,s,c){var m=u.flags;switch(u.tag){case 0:case 11:case 15:ui(o,u,s,c),m&2048&&ac(9,u);break;case 1:ui(o,u,s,c);break;case 3:ui(o,u,s,c),m&2048&&(o=null,u.alternate!==null&&(o=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==o&&(u.refCount++,o!=null&&Gs(o)));break;case 12:if(m&2048){ui(o,u,s,c),o=u.stateNode;try{var v=u.memoizedProps,_=v.id,O=v.onPostCommit;typeof O=="function"&&O(_,u.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){It(u,u.return,A)}}else ui(o,u,s,c);break;case 31:ui(o,u,s,c);break;case 13:ui(o,u,s,c);break;case 23:break;case 22:v=u.stateNode,_=u.alternate,u.memoizedState!==null?v._visibility&2?ui(o,u,s,c):uc(o,u):v._visibility&2?ui(o,u,s,c):(v._visibility|=2,Ol(o,u,s,c,(u.subtreeFlags&10256)!==0||!1)),m&2048&&vg(_,u);break;case 24:ui(o,u,s,c),m&2048&&pg(u.alternate,u);break;default:ui(o,u,s,c)}}function Ol(o,u,s,c,m){for(m=m&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var v=o,_=u,O=s,A=c,V=_.flags;switch(_.tag){case 0:case 11:case 15:Ol(v,_,O,A,m),ac(8,_);break;case 23:break;case 22:var Y=_.stateNode;_.memoizedState!==null?Y._visibility&2?Ol(v,_,O,A,m):uc(v,_):(Y._visibility|=2,Ol(v,_,O,A,m)),m&&V&2048&&vg(_.alternate,_);break;case 24:Ol(v,_,O,A,m),m&&V&2048&&pg(_.alternate,_);break;default:Ol(v,_,O,A,m)}u=u.sibling}}function uc(o,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var s=o,c=u,m=c.flags;switch(c.tag){case 22:uc(s,c),m&2048&&vg(c.alternate,c);break;case 24:uc(s,c),m&2048&&pg(c.alternate,c);break;default:uc(s,c)}u=u.sibling}}var lc=8192;function El(o,u,s){if(o.subtreeFlags&lc)for(o=o.child;o!==null;)l1(o,u,s),o=o.sibling}function l1(o,u,s){switch(o.tag){case 26:El(o,u,s),o.flags&lc&&o.memoizedState!==null&&GZ(s,oi,o.memoizedState,o.memoizedProps);break;case 5:El(o,u,s);break;case 3:case 4:var c=oi;oi=rm(o.stateNode.containerInfo),El(o,u,s),oi=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=lc,lc=16777216,El(o,u,s),lc=c):El(o,u,s));break;default:El(o,u,s)}}function s1(o){var u=o.alternate;if(u!==null&&(o=u.child,o!==null)){u.child=null;do u=o.sibling,o.sibling=null,o=u;while(o!==null)}}function sc(o){var u=o.deletions;if((o.flags&16)!==0){if(u!==null)for(var s=0;s<u.length;s++){var c=u[s];bn=c,d1(c,o)}s1(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)c1(o),o=o.sibling}function c1(o){switch(o.tag){case 0:case 11:case 15:sc(o),o.flags&2048&&eo(9,o,o.return);break;case 3:sc(o);break;case 12:sc(o);break;case 22:var u=o.stateNode;o.memoizedState!==null&&u._visibility&2&&(o.return===null||o.return.tag!==13)?(u._visibility&=-3,Vf(o)):sc(o);break;default:sc(o)}}function Vf(o){var u=o.deletions;if((o.flags&16)!==0){if(u!==null)for(var s=0;s<u.length;s++){var c=u[s];bn=c,d1(c,o)}s1(o)}for(o=o.child;o!==null;){switch(u=o,u.tag){case 0:case 11:case 15:eo(8,u,u.return),Vf(u);break;case 22:s=u.stateNode,s._visibility&2&&(s._visibility&=-3,Vf(u));break;default:Vf(u)}o=o.sibling}}function d1(o,u){for(;bn!==null;){var s=bn;switch(s.tag){case 0:case 11:case 15:eo(8,s,u);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Gs(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,bn=c;else e:for(s=o;bn!==null;){c=bn;var m=c.sibling,v=c.return;if(t1(c),c===s){bn=null;break e}if(m!==null){m.return=v,bn=m;break e}bn=v}}}var uZ={getCacheForType:function(o){var u=jn(on),s=u.data.get(o);return s===void 0&&(s=o(),u.data.set(o,s)),s},cacheSignal:function(){return jn(on).controller.signal}},lZ=typeof WeakMap=="function"?WeakMap:Map,xt=0,Ut=null,ot=null,ft=0,jt=0,cr=null,to=!1,Nl=!1,gg=!1,ha=0,Xt=0,no=0,uu=0,yg=0,dr=0,jl=0,cc=null,Xn=null,bg=!1,qf=0,f1=0,Gf=1/0,Hf=null,ro=null,mn=0,io=null,Il=null,va=0,_g=0,$g=null,m1=null,dc=0,Sg=null;function fr(){return(xt&2)!==0&&ft!==0?ft&-ft:M.T!==null?Ng():Ee()}function h1(){if(dr===0)if((ft&536870912)===0||vt){var o=rl;rl<<=1,(rl&3932160)===0&&(rl=262144),dr=o}else dr=536870912;return o=lr.current,o!==null&&(o.flags|=32),dr}function Qn(o,u,s){(o===Ut&&(jt===2||jt===9)||o.cancelPendingCommit!==null)&&(Tl(o,0),ao(o,ft,dr,!1)),U(o,s),((xt&2)===0||o!==Ut)&&(o===Ut&&((xt&2)===0&&(uu|=s),Xt===4&&ao(o,ft,dr,!1)),Ci(o))}function v1(o,u,s){if((xt&6)!==0)throw Error(i(327));var c=!s&&(u&127)===0&&(u&o.expiredLanes)===0||ji(o,u),m=c?dZ(o,u):wg(o,u,!0),v=c;do{if(m===0){Nl&&!c&&ao(o,u,0,!1);break}else{if(s=o.current.alternate,v&&!sZ(s)){m=wg(o,u,!1),v=!1;continue}if(m===2){if(v=u,o.errorRecoveryDisabledLanes&v)var _=0;else _=o.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){u=_;e:{var O=o;m=cc;var A=O.current.memoizedState.isDehydrated;if(A&&(Tl(O,_).flags|=256),_=wg(O,_,!1),_!==2){if(gg&&!A){O.errorRecoveryDisabledLanes|=v,uu|=v,m=4;break e}v=Xn,Xn=m,v!==null&&(Xn===null?Xn=v:Xn.push.apply(Xn,v))}m=_}if(v=!1,m!==2)continue}}if(m===1){Tl(o,0),ao(o,u,0,!0);break}e:{switch(c=o,v=m,v){case 0:case 1:throw Error(i(345));case 4:if((u&4194048)!==u)break;case 6:ao(c,u,dr,!to);break e;case 2:Xn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((u&62914560)===u&&(m=qf+300-he(),10<m)){if(ao(c,u,dr,!to),Fo(c,0,!0)!==0)break e;va=u,c.timeoutHandle=G1(p1.bind(null,c,s,Xn,Hf,bg,u,dr,uu,jl,to,v,"Throttled",-0,0),m);break e}p1(c,s,Xn,Hf,bg,u,dr,uu,jl,to,v,null,-0,0)}}break}while(!0);Ci(o)}function p1(o,u,s,c,m,v,_,O,A,V,Y,W,G,J){if(o.timeoutHandle=-1,W=u.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ea},l1(u,v,W);var Se=(v&62914560)===v?qf-he():(v&4194048)===v?f1-he():0;if(Se=HZ(W,Se),Se!==null){va=v,o.cancelPendingCommit=Se(w1.bind(null,o,u,v,s,c,m,_,O,A,Y,W,null,G,J)),ao(o,v,_,!V);return}}w1(o,u,v,s,c,m,_,O,A)}function sZ(o){for(var u=o;;){var s=u.tag;if((s===0||s===11||s===15)&&u.flags&16384&&(s=u.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var m=s[c],v=m.getSnapshot;m=m.value;try{if(!or(v(),m))return!1}catch{return!1}}if(s=u.child,u.subtreeFlags&16384&&s!==null)s.return=u,u=s;else{if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ao(o,u,s,c){u&=~yg,u&=~uu,o.suspendedLanes|=u,o.pingedLanes&=~u,c&&(o.warmLanes|=u),c=o.expirationTimes;for(var m=u;0<m;){var v=31-Ln(m),_=1<<v;c[v]=-1,m&=~_}s!==0&&K(o,s,u)}function Kf(){return(xt&6)===0?(fc(0),!1):!0}function kg(){if(ot!==null){if(jt===0)var o=ot.return;else o=ot,ia=Qo=null,Lp(o),$l=null,Ks=0,o=ot;for(;o!==null;)Hx(o.alternate,o),o=o.return;ot=null}}function Tl(o,u){var s=o.timeoutHandle;s!==-1&&(o.timeoutHandle=-1,jZ(s)),s=o.cancelPendingCommit,s!==null&&(o.cancelPendingCommit=null,s()),va=0,kg(),Ut=o,ot=s=na(o.current,null),ft=u,jt=0,cr=null,to=!1,Nl=ji(o,u),gg=!1,jl=dr=yg=uu=no=Xt=0,Xn=cc=null,bg=!1,(u&8)!==0&&(u|=u&32);var c=o.entangledLanes;if(c!==0)for(o=o.entanglements,c&=u;0<c;){var m=31-Ln(c),v=1<<m;u|=o[m],c&=~v}return ha=u,vf(),s}function g1(o,u){We=null,M.H=nc,u===_l||u===kf?(u=Aw(),jt=3):u===Ep?(u=Aw(),jt=4):jt=u===tg?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,cr=u,ot===null&&(Xt=1,Rf(o,Dr(u,o.current)))}function y1(){var o=lr.current;return o===null?!0:(ft&4194048)===ft?Mr===null:(ft&62914560)===ft||(ft&536870912)!==0?o===Mr:!1}function b1(){var o=M.H;return M.H=nc,o===null?nc:o}function _1(){var o=M.A;return M.A=uZ,o}function Jf(){Xt=4,to||(ft&4194048)!==ft&&lr.current!==null||(Nl=!0),(no&134217727)===0&&(uu&134217727)===0||Ut===null||ao(Ut,ft,dr,!1)}function wg(o,u,s){var c=xt;xt|=2;var m=b1(),v=_1();(Ut!==o||ft!==u)&&(Hf=null,Tl(o,u)),u=!1;var _=Xt;e:do try{if(jt!==0&&ot!==null){var O=ot,A=cr;switch(jt){case 8:kg(),_=6;break e;case 3:case 2:case 9:case 6:lr.current===null&&(u=!0);var V=jt;if(jt=0,cr=null,zl(o,O,A,V),s&&Nl){_=0;break e}break;default:V=jt,jt=0,cr=null,zl(o,O,A,V)}}cZ(),_=Xt;break}catch(Y){g1(o,Y)}while(!0);return u&&o.shellSuspendCounter++,ia=Qo=null,xt=c,M.H=m,M.A=v,ot===null&&(Ut=null,ft=0,vf()),_}function cZ(){for(;ot!==null;)$1(ot)}function dZ(o,u){var s=xt;xt|=2;var c=b1(),m=_1();Ut!==o||ft!==u?(Hf=null,Gf=he()+500,Tl(o,u)):Nl=ji(o,u);e:do try{if(jt!==0&&ot!==null){u=ot;var v=cr;t:switch(jt){case 1:jt=0,cr=null,zl(o,u,v,1);break;case 2:case 9:if(Tw(v)){jt=0,cr=null,S1(u);break}u=function(){jt!==2&&jt!==9||Ut!==o||(jt=7),Ci(o)},v.then(u,u);break e;case 3:jt=7;break e;case 4:jt=5;break e;case 7:Tw(v)?(jt=0,cr=null,S1(u)):(jt=0,cr=null,zl(o,u,v,7));break;case 5:var _=null;switch(ot.tag){case 26:_=ot.memoizedState;case 5:case 27:var O=ot;if(_?uO(_):O.stateNode.complete){jt=0,cr=null;var A=O.sibling;if(A!==null)ot=A;else{var V=O.return;V!==null?(ot=V,Yf(V)):ot=null}break t}}jt=0,cr=null,zl(o,u,v,5);break;case 6:jt=0,cr=null,zl(o,u,v,6);break;case 8:kg(),Xt=6;break e;default:throw Error(i(462))}}fZ();break}catch(Y){g1(o,Y)}while(!0);return ia=Qo=null,M.H=c,M.A=m,xt=s,ot!==null?0:(Ut=null,ft=0,vf(),Xt)}function fZ(){for(;ot!==null&&!q();)$1(ot)}function $1(o){var u=qx(o.alternate,o,ha);o.memoizedProps=o.pendingProps,u===null?Yf(o):ot=u}function S1(o){var u=o,s=u.alternate;switch(u.tag){case 15:case 0:u=Lx(s,u,u.pendingProps,u.type,void 0,ft);break;case 11:u=Lx(s,u,u.pendingProps,u.type.render,u.ref,ft);break;case 5:Lp(u);default:Hx(s,u),u=ot=_w(u,ha),u=qx(s,u,ha)}o.memoizedProps=o.pendingProps,u===null?Yf(o):ot=u}function zl(o,u,s,c){ia=Qo=null,Lp(u),$l=null,Ks=0;var m=u.return;try{if(eZ(o,m,u,s,ft)){Xt=1,Rf(o,Dr(s,o.current)),ot=null;return}}catch(v){if(m!==null)throw ot=m,v;Xt=1,Rf(o,Dr(s,o.current)),ot=null;return}u.flags&32768?(vt||c===1?o=!0:Nl||(ft&536870912)!==0?o=!1:(to=o=!0,(c===2||c===9||c===3||c===6)&&(c=lr.current,c!==null&&c.tag===13&&(c.flags|=16384))),k1(u,o)):Yf(u)}function Yf(o){var u=o;do{if((u.flags&32768)!==0){k1(u,to);return}o=u.return;var s=rZ(u.alternate,u,ha);if(s!==null){ot=s;return}if(u=u.sibling,u!==null){ot=u;return}ot=u=o}while(u!==null);Xt===0&&(Xt=5)}function k1(o,u){do{var s=iZ(o.alternate,o);if(s!==null){s.flags&=32767,ot=s;return}if(s=o.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!u&&(o=o.sibling,o!==null)){ot=o;return}ot=o=s}while(o!==null);Xt=6,ot=null}function w1(o,u,s,c,m,v,_,O,A){o.cancelPendingCommit=null;do Xf();while(mn!==0);if((xt&6)!==0)throw Error(i(327));if(u!==null){if(u===o.current)throw Error(i(177));if(v=u.lanes|u.childLanes,v|=fp,P(o,s,v,_,O,A),o===Ut&&(ot=Ut=null,ft=0),Il=u,io=o,va=s,_g=v,$g=m,m1=c,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,pZ(Nt,function(){return j1(),null})):(o.callbackNode=null,o.callbackPriority=0),c=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||c){c=M.T,M.T=null,m=ee.p,ee.p=2,_=xt,xt|=4;try{aZ(o,u,s)}finally{xt=_,ee.p=m,M.T=c}}mn=1,x1(),O1(),E1()}}function x1(){if(mn===1){mn=0;var o=io,u=Il,s=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||s){s=M.T,M.T=null;var c=ee.p;ee.p=2;var m=xt;xt|=4;try{a1(u,o);var v=Cg,_=dw(o.containerInfo),O=v.focusedElem,A=v.selectionRange;if(_!==O&&O&&O.ownerDocument&&cw(O.ownerDocument.documentElement,O)){if(A!==null&&up(O)){var V=A.start,Y=A.end;if(Y===void 0&&(Y=V),"selectionStart"in O)O.selectionStart=V,O.selectionEnd=Math.min(Y,O.value.length);else{var W=O.ownerDocument||document,G=W&&W.defaultView||window;if(G.getSelection){var J=G.getSelection(),Se=O.textContent.length,Ze=Math.min(A.start,Se),Dt=A.end===void 0?Ze:Math.min(A.end,Se);!J.extend&&Ze>Dt&&(_=Dt,Dt=Ze,Ze=_);var L=sw(O,Ze),R=sw(O,Dt);if(L&&R&&(J.rangeCount!==1||J.anchorNode!==L.node||J.anchorOffset!==L.offset||J.focusNode!==R.node||J.focusOffset!==R.offset)){var F=W.createRange();F.setStart(L.node,L.offset),J.removeAllRanges(),Ze>Dt?(J.addRange(F),J.extend(R.node,R.offset)):(F.setEnd(R.node,R.offset),J.addRange(F))}}}}for(W=[],J=O;J=J.parentNode;)J.nodeType===1&&W.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<W.length;O++){var Q=W[O];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}sm=!!Ug,Cg=Ug=null}finally{xt=m,ee.p=c,M.T=s}}o.current=u,mn=2}}function O1(){if(mn===2){mn=0;var o=io,u=Il,s=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||s){s=M.T,M.T=null;var c=ee.p;ee.p=2;var m=xt;xt|=4;try{e1(o,u.alternate,u)}finally{xt=m,ee.p=c,M.T=s}}mn=3}}function E1(){if(mn===4||mn===3){mn=0,pe();var o=io,u=Il,s=va,c=m1;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?mn=5:(mn=0,Il=io=null,N1(o,o.pendingLanes));var m=o.pendingLanes;if(m===0&&(ro=null),ze(s),u=u.stateNode,gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(ti,u,void 0,(u.current.flags&128)===128)}catch{}if(c!==null){u=M.T,m=ee.p,ee.p=2,M.T=null;try{for(var v=o.onRecoverableError,_=0;_<c.length;_++){var O=c[_];v(O.value,{componentStack:O.stack})}}finally{M.T=u,ee.p=m}}(va&3)!==0&&Xf(),Ci(o),m=o.pendingLanes,(s&261930)!==0&&(m&42)!==0?o===Sg?dc++:(dc=0,Sg=o):dc=0,fc(0)}}function N1(o,u){(o.pooledCacheLanes&=u)===0&&(u=o.pooledCache,u!=null&&(o.pooledCache=null,Gs(u)))}function Xf(){return x1(),O1(),E1(),j1()}function j1(){if(mn!==5)return!1;var o=io,u=_g;_g=0;var s=ze(va),c=M.T,m=ee.p;try{ee.p=32>s?32:s,M.T=null,s=$g,$g=null;var v=io,_=va;if(mn=0,Il=io=null,va=0,(xt&6)!==0)throw Error(i(331));var O=xt;if(xt|=4,c1(v.current),u1(v,v.current,_,s),xt=O,fc(0,!1),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(ti,v)}catch{}return!0}finally{ee.p=m,M.T=c,N1(o,u)}}function I1(o,u,s){u=Dr(s,u),u=eg(o.stateNode,u,2),o=Xa(o,u,2),o!==null&&(U(o,2),Ci(o))}function It(o,u,s){if(o.tag===3)I1(o,o,s);else for(;u!==null;){if(u.tag===3){I1(u,o,s);break}else if(u.tag===1){var c=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ro===null||!ro.has(c))){o=Dr(s,o),s=Tx(2),c=Xa(u,s,2),c!==null&&(zx(s,c,u,o),U(c,2),Ci(c));break}}u=u.return}}function xg(o,u,s){var c=o.pingCache;if(c===null){c=o.pingCache=new lZ;var m=new Set;c.set(u,m)}else m=c.get(u),m===void 0&&(m=new Set,c.set(u,m));m.has(s)||(gg=!0,m.add(s),o=mZ.bind(null,o,u,s),u.then(o,o))}function mZ(o,u,s){var c=o.pingCache;c!==null&&c.delete(u),o.pingedLanes|=o.suspendedLanes&s,o.warmLanes&=~s,Ut===o&&(ft&s)===s&&(Xt===4||Xt===3&&(ft&62914560)===ft&&300>he()-qf?(xt&2)===0&&Tl(o,0):yg|=s,jl===ft&&(jl=0)),Ci(o)}function T1(o,u){u===0&&(u=af()),o=Jo(o,u),o!==null&&(U(o,u),Ci(o))}function hZ(o){var u=o.memoizedState,s=0;u!==null&&(s=u.retryLane),T1(o,s)}function vZ(o,u){var s=0;switch(o.tag){case 31:case 13:var c=o.stateNode,m=o.memoizedState;m!==null&&(s=m.retryLane);break;case 19:c=o.stateNode;break;case 22:c=o.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(u),T1(o,s)}function pZ(o,u){return On(o,u)}var Qf=null,Al=null,Og=!1,Wf=!1,Eg=!1,oo=0;function Ci(o){o!==Al&&o.next===null&&(Al===null?Qf=Al=o:Al=Al.next=o),Wf=!0,Og||(Og=!0,yZ())}function fc(o,u){if(!Eg&&Wf){Eg=!0;do for(var s=!1,c=Qf;c!==null;){if(o!==0){var m=c.pendingLanes;if(m===0)var v=0;else{var _=c.suspendedLanes,O=c.pingedLanes;v=(1<<31-Ln(42|o)+1)-1,v&=m&~(_&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(s=!0,U1(c,v))}else v=ft,v=Fo(c,c===Ut?v:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(v&3)===0||ji(c,v)||(s=!0,U1(c,v));c=c.next}while(s);Eg=!1}}function gZ(){z1()}function z1(){Wf=Og=!1;var o=0;oo!==0&&NZ()&&(o=oo);for(var u=he(),s=null,c=Qf;c!==null;){var m=c.next,v=A1(c,u);v===0?(c.next=null,s===null?Qf=m:s.next=m,m===null&&(Al=s)):(s=c,(o!==0||(v&3)!==0)&&(Wf=!0)),c=m}mn!==0&&mn!==5||fc(o),oo!==0&&(oo=0)}function A1(o,u){for(var s=o.suspendedLanes,c=o.pingedLanes,m=o.expirationTimes,v=o.pendingLanes&-62914561;0<v;){var _=31-Ln(v),O=1<<_,A=m[_];A===-1?((O&s)===0||(O&c)!==0)&&(m[_]=il(O,u)):A<=u&&(o.expiredLanes|=O),v&=~O}if(u=Ut,s=ft,s=Fo(o,o===u?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c=o.callbackNode,s===0||o===u&&(jt===2||jt===9)||o.cancelPendingCommit!==null)return c!==null&&c!==null&&Gn(c),o.callbackNode=null,o.callbackPriority=0;if((s&3)===0||ji(o,s)){if(u=s&-s,u===o.callbackPriority)return u;switch(c!==null&&Gn(c),ze(s)){case 2:case 8:s=Pe;break;case 32:s=Nt;break;case 268435456:s=Ni;break;default:s=Nt}return c=D1.bind(null,o),s=On(s,c),o.callbackPriority=u,o.callbackNode=s,u}return c!==null&&c!==null&&Gn(c),o.callbackPriority=2,o.callbackNode=null,2}function D1(o,u){if(mn!==0&&mn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var s=o.callbackNode;if(Xf()&&o.callbackNode!==s)return null;var c=ft;return c=Fo(o,o===Ut?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c===0?null:(v1(o,c,u),A1(o,he()),o.callbackNode!=null&&o.callbackNode===s?D1.bind(null,o):null)}function U1(o,u){if(Xf())return null;v1(o,u,!0)}function yZ(){IZ(function(){(xt&6)!==0?On(me,gZ):z1()})}function Ng(){if(oo===0){var o=yl;o===0&&(o=Fa,Fa<<=1,(Fa&261888)===0&&(Fa=256)),oo=o}return oo}function C1(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:uf(""+o)}function R1(o,u){var s=u.ownerDocument.createElement("input");return s.name=u.name,s.value=u.value,o.id&&s.setAttribute("form",o.id),u.parentNode.insertBefore(s,u),o=new FormData(o),s.parentNode.removeChild(s),o}function bZ(o,u,s,c,m){if(u==="submit"&&s&&s.stateNode===m){var v=C1((m[be]||null).action),_=c.submitter;_&&(u=(u=_[be]||null)?C1(u.formAction):_.getAttribute("formAction"),u!==null&&(v=u,_=null));var O=new df("action","action",null,c,m);o.push({event:O,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(oo!==0){var A=_?R1(m,_):new FormData(m);Kp(s,{pending:!0,data:A,method:m.method,action:v},null,A)}}else typeof v=="function"&&(O.preventDefault(),A=_?R1(m,_):new FormData(m),Kp(s,{pending:!0,data:A,method:m.method,action:v},v,A))},currentTarget:m}]})}}for(var jg=0;jg<dp.length;jg++){var Ig=dp[jg],_Z=Ig.toLowerCase(),$Z=Ig[0].toUpperCase()+Ig.slice(1);ai(_Z,"on"+$Z)}ai(hw,"onAnimationEnd"),ai(vw,"onAnimationIteration"),ai(pw,"onAnimationStart"),ai("dblclick","onDoubleClick"),ai("focusin","onFocus"),ai("focusout","onBlur"),ai(RP,"onTransitionRun"),ai(MP,"onTransitionStart"),ai(LP,"onTransitionCancel"),ai(gw,"onTransitionEnd"),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),Ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ir("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mc="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(" "),SZ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mc));function M1(o,u){u=(u&4)!==0;for(var s=0;s<o.length;s++){var c=o[s],m=c.event;c=c.listeners;e:{var v=void 0;if(u)for(var _=c.length-1;0<=_;_--){var O=c[_],A=O.instance,V=O.currentTarget;if(O=O.listener,A!==v&&m.isPropagationStopped())break e;v=O,m.currentTarget=V;try{v(m)}catch(Y){hf(Y)}m.currentTarget=null,v=A}else for(_=0;_<c.length;_++){if(O=c[_],A=O.instance,V=O.currentTarget,O=O.listener,A!==v&&m.isPropagationStopped())break e;v=O,m.currentTarget=V;try{v(m)}catch(Y){hf(Y)}m.currentTarget=null,v=A}}}}function ut(o,u){var s=u[Ot];s===void 0&&(s=u[Ot]=new Set);var c=o+"__bubble";s.has(c)||(L1(u,o,2,!1),s.add(c))}function Tg(o,u,s){var c=0;u&&(c|=4),L1(s,o,c,u)}var em="_reactListening"+Math.random().toString(36).slice(2);function zg(o){if(!o[em]){o[em]=!0,Ti.forEach(function(s){s!=="selectionchange"&&(SZ.has(s)||Tg(s,!1,o),Tg(s,!0,o))});var u=o.nodeType===9?o:o.ownerDocument;u===null||u[em]||(u[em]=!0,Tg("selectionchange",!1,u))}}function L1(o,u,s,c){switch(hO(u)){case 2:var m=YZ;break;case 8:m=XZ;break;default:m=Hg}s=m.bind(null,u,s,o),m=void 0,!Qv||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(m=!0),c?m!==void 0?o.addEventListener(u,s,{capture:!0,passive:m}):o.addEventListener(u,s,!0):m!==void 0?o.addEventListener(u,s,{passive:m}):o.addEventListener(u,s,!1)}function Ag(o,u,s,c,m){var v=c;if((u&1)===0&&(u&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var O=c.stateNode.containerInfo;if(O===m)break;if(_===4)for(_=c.return;_!==null;){var A=_.tag;if((A===3||A===4)&&_.stateNode.containerInfo===m)return;_=_.return}for(;O!==null;){if(_=jr(O),_===null)return;if(A=_.tag,A===5||A===6||A===26||A===27){c=v=_;continue e}O=O.parentNode}}c=c.return}Vk(function(){var V=v,Y=Yv(s),W=[];e:{var G=yw.get(o);if(G!==void 0){var J=df,Se=o;switch(o){case"keypress":if(sf(s)===0)break e;case"keydown":case"keyup":J=vP;break;case"focusin":Se="focus",J=np;break;case"focusout":Se="blur",J=np;break;case"beforeblur":case"afterblur":J=np;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Hk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=rP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=yP;break;case hw:case vw:case pw:J=oP;break;case gw:J=_P;break;case"scroll":case"scrollend":J=tP;break;case"wheel":J=SP;break;case"copy":case"cut":case"paste":J=lP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Jk;break;case"toggle":case"beforetoggle":J=wP}var Ze=(u&4)!==0,Dt=!Ze&&(o==="scroll"||o==="scrollend"),L=Ze?G!==null?G+"Capture":null:G;Ze=[];for(var R=V,F;R!==null;){var Q=R;if(F=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||F===null||L===null||(Q=Us(R,L),Q!=null&&Ze.push(hc(R,Q,F))),Dt)break;R=R.return}0<Ze.length&&(G=new J(G,Se,null,s,Y),W.push({event:G,listeners:Ze}))}}if((u&7)===0){e:{if(G=o==="mouseover"||o==="pointerover",J=o==="mouseout"||o==="pointerout",G&&s!==Jv&&(Se=s.relatedTarget||s.fromElement)&&(jr(Se)||Se[Fe]))break e;if((J||G)&&(G=Y.window===Y?Y:(G=Y.ownerDocument)?G.defaultView||G.parentWindow:window,J?(Se=s.relatedTarget||s.toElement,J=V,Se=Se?jr(Se):null,Se!==null&&(Dt=a(Se),Ze=Se.tag,Se!==Dt||Ze!==5&&Ze!==27&&Ze!==6)&&(Se=null)):(J=null,Se=V),J!==Se)){if(Ze=Hk,Q="onMouseLeave",L="onMouseEnter",R="mouse",(o==="pointerout"||o==="pointerover")&&(Ze=Jk,Q="onPointerLeave",L="onPointerEnter",R="pointer"),Dt=J==null?G:Dn(J),F=Se==null?G:Dn(Se),G=new Ze(Q,R+"leave",J,s,Y),G.target=Dt,G.relatedTarget=F,Q=null,jr(Y)===V&&(Ze=new Ze(L,R+"enter",Se,s,Y),Ze.target=F,Ze.relatedTarget=Dt,Q=Ze),Dt=Q,J&&Se)t:{for(Ze=kZ,L=J,R=Se,F=0,Q=L;Q;Q=Ze(Q))F++;Q=0;for(var Le=R;Le;Le=Ze(Le))Q++;for(;0<F-Q;)L=Ze(L),F--;for(;0<Q-F;)R=Ze(R),Q--;for(;F--;){if(L===R||R!==null&&L===R.alternate){Ze=L;break t}L=Ze(L),R=Ze(R)}Ze=null}else Ze=null;J!==null&&P1(W,G,J,Ze,!1),Se!==null&&Dt!==null&&P1(W,Dt,Se,Ze,!0)}}e:{if(G=V?Dn(V):window,J=G.nodeName&&G.nodeName.toLowerCase(),J==="select"||J==="input"&&G.type==="file")var $t=rw;else if(tw(G))if(iw)$t=DP;else{$t=zP;var Ie=TP}else J=G.nodeName,!J||J.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?V&&Kv(V.elementType)&&($t=rw):$t=AP;if($t&&($t=$t(o,V))){nw(W,$t,s,Y);break e}Ie&&Ie(o,G,V),o==="focusout"&&V&&G.type==="number"&&V.memoizedProps.value!=null&&Hv(G,"number",G.value)}switch(Ie=V?Dn(V):window,o){case"focusin":(tw(Ie)||Ie.contentEditable==="true")&&(cl=Ie,lp=V,Fs=null);break;case"focusout":Fs=lp=cl=null;break;case"mousedown":sp=!0;break;case"contextmenu":case"mouseup":case"dragend":sp=!1,fw(W,s,Y);break;case"selectionchange":if(CP)break;case"keydown":case"keyup":fw(W,s,Y)}var et;if(ip)e:{switch(o){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else sl?Wk(o,s)&&(mt="onCompositionEnd"):o==="keydown"&&s.keyCode===229&&(mt="onCompositionStart");mt&&(Yk&&s.locale!=="ko"&&(sl||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&sl&&(et=qk()):(Va=Y,Wv="value"in Va?Va.value:Va.textContent,sl=!0)),Ie=tm(V,mt),0<Ie.length&&(mt=new Kk(mt,o,null,s,Y),W.push({event:mt,listeners:Ie}),et?mt.data=et:(et=ew(s),et!==null&&(mt.data=et)))),(et=OP?EP(o,s):NP(o,s))&&(mt=tm(V,"onBeforeInput"),0<mt.length&&(Ie=new Kk("onBeforeInput","beforeinput",null,s,Y),W.push({event:Ie,listeners:mt}),Ie.data=et)),bZ(W,o,V,s,Y)}M1(W,u)})}function hc(o,u,s){return{instance:o,listener:u,currentTarget:s}}function tm(o,u){for(var s=u+"Capture",c=[];o!==null;){var m=o,v=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||v===null||(m=Us(o,s),m!=null&&c.unshift(hc(o,m,v)),m=Us(o,u),m!=null&&c.push(hc(o,m,v))),o.tag===3)return c;o=o.return}return[]}function kZ(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function P1(o,u,s,c,m){for(var v=u._reactName,_=[];s!==null&&s!==c;){var O=s,A=O.alternate,V=O.stateNode;if(O=O.tag,A!==null&&A===c)break;O!==5&&O!==26&&O!==27||V===null||(A=V,m?(V=Us(s,v),V!=null&&_.unshift(hc(s,V,A))):m||(V=Us(s,v),V!=null&&_.push(hc(s,V,A)))),s=s.return}_.length!==0&&o.push({event:u,listeners:_})}var wZ=/\r\n?/g,xZ=/\u0000|\uFFFD/g;function Z1(o){return(typeof o=="string"?o:""+o).replace(wZ,`
|
|
49
|
-
`).replace(xZ,"")}function B1(o,u){return u=Z1(u),Z1(o)===u}function At(o,u,s,c,m,v){switch(s){case"children":typeof c=="string"?u==="body"||u==="textarea"&&c===""||ol(o,c):(typeof c=="number"||typeof c=="bigint")&&u!=="body"&&ol(o,""+c);break;case"className":qo(o,"class",c);break;case"tabIndex":qo(o,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":qo(o,s,c);break;case"style":Bk(o,c,v);break;case"data":if(u!=="object"){qo(o,"data",c);break}case"src":case"href":if(c===""&&(u!=="a"||s!=="href")){o.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(s);break}c=uf(""+c),o.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){o.setAttribute(s,"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 v=="function"&&(s==="formAction"?(u!=="input"&&At(o,u,"name",m.name,m,null),At(o,u,"formEncType",m.formEncType,m,null),At(o,u,"formMethod",m.formMethod,m,null),At(o,u,"formTarget",m.formTarget,m,null)):(At(o,u,"encType",m.encType,m,null),At(o,u,"method",m.method,m,null),At(o,u,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(s);break}c=uf(""+c),o.setAttribute(s,c);break;case"onClick":c!=null&&(o.onclick=ea);break;case"onScroll":c!=null&&ut("scroll",o);break;case"onScrollEnd":c!=null&&ut("scrollend",o);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(m.children!=null)throw Error(i(60));o.innerHTML=s}}break;case"multiple":o.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":o.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){o.removeAttribute("xlink:href");break}s=uf(""+c),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(s,""+c):o.removeAttribute(s);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":c&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(s,""):o.removeAttribute(s);break;case"capture":case"download":c===!0?o.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(s,c):o.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?o.setAttribute(s,c):o.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?o.removeAttribute(s):o.setAttribute(s,c);break;case"popover":ut("beforetoggle",o),ut("toggle",o),Wi(o,"popover",c);break;case"xlinkActuate":ii(o,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":ii(o,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":ii(o,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":ii(o,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":ii(o,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":ii(o,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":ii(o,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":ii(o,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":ii(o,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Wi(o,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=WL.get(s)||s,Wi(o,s,c))}}function Dg(o,u,s,c,m,v){switch(s){case"style":Bk(o,c,v);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(m.children!=null)throw Error(i(60));o.innerHTML=s}}break;case"children":typeof c=="string"?ol(o,c):(typeof c=="number"||typeof c=="bigint")&&ol(o,""+c);break;case"onScroll":c!=null&&ut("scroll",o);break;case"onScrollEnd":c!=null&&ut("scrollend",o);break;case"onClick":c!=null&&(o.onclick=ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vo.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(m=s.endsWith("Capture"),u=s.slice(2,m?s.length-7:void 0),v=o[be]||null,v=v!=null?v[s]:null,typeof v=="function"&&o.removeEventListener(u,v,m),typeof c=="function")){typeof v!="function"&&v!==null&&(s in o?o[s]=null:o.hasAttribute(s)&&o.removeAttribute(s)),o.addEventListener(u,c,m);break e}s in o?o[s]=c:c===!0?o.setAttribute(s,""):Wi(o,s,c)}}}function Tn(o,u,s){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ut("error",o),ut("load",o);var c=!1,m=!1,v;for(v in s)if(s.hasOwnProperty(v)){var _=s[v];if(_!=null)switch(v){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,u));default:At(o,u,v,_,s,null)}}m&&At(o,u,"srcSet",s.srcSet,s,null),c&&At(o,u,"src",s.src,s,null);return;case"input":ut("invalid",o);var O=v=_=m=null,A=null,V=null;for(c in s)if(s.hasOwnProperty(c)){var Y=s[c];if(Y!=null)switch(c){case"name":m=Y;break;case"type":_=Y;break;case"checked":A=Y;break;case"defaultChecked":V=Y;break;case"value":v=Y;break;case"defaultValue":O=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,u));break;default:At(o,u,c,Y,s,null)}}Mk(o,v,O,A,V,_,m,!1);return;case"select":ut("invalid",o),c=_=v=null;for(m in s)if(s.hasOwnProperty(m)&&(O=s[m],O!=null))switch(m){case"value":v=O;break;case"defaultValue":_=O;break;case"multiple":c=O;default:At(o,u,m,O,s,null)}u=v,s=_,o.multiple=!!c,u!=null?al(o,!!c,u,!1):s!=null&&al(o,!!c,s,!0);return;case"textarea":ut("invalid",o),v=m=c=null;for(_ in s)if(s.hasOwnProperty(_)&&(O=s[_],O!=null))switch(_){case"value":c=O;break;case"defaultValue":m=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:At(o,u,_,O,s,null)}Pk(o,c,m,v);return;case"option":for(A in s)if(s.hasOwnProperty(A)&&(c=s[A],c!=null))switch(A){case"selected":o.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:At(o,u,A,c,s,null)}return;case"dialog":ut("beforetoggle",o),ut("toggle",o),ut("cancel",o),ut("close",o);break;case"iframe":case"object":ut("load",o);break;case"video":case"audio":for(c=0;c<mc.length;c++)ut(mc[c],o);break;case"image":ut("error",o),ut("load",o);break;case"details":ut("toggle",o);break;case"embed":case"source":case"link":ut("error",o),ut("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in s)if(s.hasOwnProperty(V)&&(c=s[V],c!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,u));default:At(o,u,V,c,s,null)}return;default:if(Kv(u)){for(Y in s)s.hasOwnProperty(Y)&&(c=s[Y],c!==void 0&&Dg(o,u,Y,c,s,void 0));return}}for(O in s)s.hasOwnProperty(O)&&(c=s[O],c!=null&&At(o,u,O,c,s,null))}function OZ(o,u,s,c){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,v=null,_=null,O=null,A=null,V=null,Y=null;for(J in s){var W=s[J];if(s.hasOwnProperty(J)&&W!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":A=W;default:c.hasOwnProperty(J)||At(o,u,J,null,c,W)}}for(var G in c){var J=c[G];if(W=s[G],c.hasOwnProperty(G)&&(J!=null||W!=null))switch(G){case"type":v=J;break;case"name":m=J;break;case"checked":V=J;break;case"defaultChecked":Y=J;break;case"value":_=J;break;case"defaultValue":O=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,u));break;default:J!==W&&At(o,u,G,J,c,W)}}Gv(o,_,O,A,V,Y,v,m);return;case"select":J=_=O=G=null;for(v in s)if(A=s[v],s.hasOwnProperty(v)&&A!=null)switch(v){case"value":break;case"multiple":J=A;default:c.hasOwnProperty(v)||At(o,u,v,null,c,A)}for(m in c)if(v=c[m],A=s[m],c.hasOwnProperty(m)&&(v!=null||A!=null))switch(m){case"value":G=v;break;case"defaultValue":O=v;break;case"multiple":_=v;default:v!==A&&At(o,u,m,v,c,A)}u=O,s=_,c=J,G!=null?al(o,!!s,G,!1):!!c!=!!s&&(u!=null?al(o,!!s,u,!0):al(o,!!s,s?[]:"",!1));return;case"textarea":J=G=null;for(O in s)if(m=s[O],s.hasOwnProperty(O)&&m!=null&&!c.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:At(o,u,O,null,c,m)}for(_ in c)if(m=c[_],v=s[_],c.hasOwnProperty(_)&&(m!=null||v!=null))switch(_){case"value":G=m;break;case"defaultValue":J=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==v&&At(o,u,_,m,c,v)}Lk(o,G,J);return;case"option":for(var Se in s)if(G=s[Se],s.hasOwnProperty(Se)&&G!=null&&!c.hasOwnProperty(Se))switch(Se){case"selected":o.selected=!1;break;default:At(o,u,Se,null,c,G)}for(A in c)if(G=c[A],J=s[A],c.hasOwnProperty(A)&&G!==J&&(G!=null||J!=null))switch(A){case"selected":o.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:At(o,u,A,G,c,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ze in s)G=s[Ze],s.hasOwnProperty(Ze)&&G!=null&&!c.hasOwnProperty(Ze)&&At(o,u,Ze,null,c,G);for(V in c)if(G=c[V],J=s[V],c.hasOwnProperty(V)&&G!==J&&(G!=null||J!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,u));break;default:At(o,u,V,G,c,J)}return;default:if(Kv(u)){for(var Dt in s)G=s[Dt],s.hasOwnProperty(Dt)&&G!==void 0&&!c.hasOwnProperty(Dt)&&Dg(o,u,Dt,void 0,c,G);for(Y in c)G=c[Y],J=s[Y],!c.hasOwnProperty(Y)||G===J||G===void 0&&J===void 0||Dg(o,u,Y,G,c,J);return}}for(var L in s)G=s[L],s.hasOwnProperty(L)&&G!=null&&!c.hasOwnProperty(L)&&At(o,u,L,null,c,G);for(W in c)G=c[W],J=s[W],!c.hasOwnProperty(W)||G===J||G==null&&J==null||At(o,u,W,G,c,J)}function F1(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function EZ(){if(typeof performance.getEntriesByType=="function"){for(var o=0,u=0,s=performance.getEntriesByType("resource"),c=0;c<s.length;c++){var m=s[c],v=m.transferSize,_=m.initiatorType,O=m.duration;if(v&&O&&F1(_)){for(_=0,O=m.responseEnd,c+=1;c<s.length;c++){var A=s[c],V=A.startTime;if(V>O)break;var Y=A.transferSize,W=A.initiatorType;Y&&F1(W)&&(A=A.responseEnd,_+=Y*(A<O?1:(O-V)/(A-V)))}if(--c,u+=8*(v+_)/(m.duration/1e3),o++,10<o)break}}if(0<o)return u/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Ug=null,Cg=null;function nm(o){return o.nodeType===9?o:o.ownerDocument}function V1(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function q1(o,u){if(o===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&u==="foreignObject"?0:o}function Rg(o,u){return o==="textarea"||o==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Mg=null;function NZ(){var o=window.event;return o&&o.type==="popstate"?o===Mg?!1:(Mg=o,!0):(Mg=null,!1)}var G1=typeof setTimeout=="function"?setTimeout:void 0,jZ=typeof clearTimeout=="function"?clearTimeout:void 0,H1=typeof Promise=="function"?Promise:void 0,IZ=typeof queueMicrotask=="function"?queueMicrotask:typeof H1<"u"?function(o){return H1.resolve(null).then(o).catch(TZ)}:G1;function TZ(o){setTimeout(function(){throw o})}function uo(o){return o==="head"}function K1(o,u){var s=u,c=0;do{var m=s.nextSibling;if(o.removeChild(s),m&&m.nodeType===8)if(s=m.data,s==="/$"||s==="/&"){if(c===0){o.removeChild(m),Rl(u);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")vc(o.ownerDocument.documentElement);else if(s==="head"){s=o.ownerDocument.head,vc(s);for(var v=s.firstChild;v;){var _=v.nextSibling,O=v.nodeName;v[wt]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||s.removeChild(v),v=_}}else s==="body"&&vc(o.ownerDocument.body);s=m}while(s);Rl(u)}function J1(o,u){var s=o;o=0;do{var c=s.nextSibling;if(s.nodeType===1?u?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(u?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(o===0)break;o--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||o++;s=c}while(s)}function Lg(o){var u=o.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var s=u;switch(u=u.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Lg(s),ri(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}o.removeChild(s)}}function zZ(o,u,s,c){for(;o.nodeType===1;){var m=s;if(o.nodeName.toLowerCase()!==u.toLowerCase()){if(!c&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(c){if(!o[wt])switch(u){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(v=o.getAttribute("rel"),v==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(v!==m.rel||o.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||o.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||o.getAttribute("title")!==(m.title==null?null:m.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(v=o.getAttribute("src"),(v!==(m.src==null?null:m.src)||o.getAttribute("type")!==(m.type==null?null:m.type)||o.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&v&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(u==="input"&&o.type==="hidden"){var v=m.name==null?null:""+m.name;if(m.type==="hidden"&&o.getAttribute("name")===v)return o}else return o;if(o=Lr(o.nextSibling),o===null)break}return null}function AZ(o,u,s){if(u==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Lr(o.nextSibling),o===null))return null;return o}function Y1(o,u){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=Lr(o.nextSibling),o===null))return null;return o}function Pg(o){return o.data==="$?"||o.data==="$~"}function Zg(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function DZ(o,u){var s=o.ownerDocument;if(o.data==="$~")o._reactRetry=u;else if(o.data!=="$?"||s.readyState!=="loading")u();else{var c=function(){u(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),o._reactRetry=c}}function Lr(o){for(;o!=null;o=o.nextSibling){var u=o.nodeType;if(u===1||u===3)break;if(u===8){if(u=o.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return o}var Bg=null;function X1(o){o=o.nextSibling;for(var u=0;o;){if(o.nodeType===8){var s=o.data;if(s==="/$"||s==="/&"){if(u===0)return Lr(o.nextSibling);u--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||u++}o=o.nextSibling}return null}function Q1(o){o=o.previousSibling;for(var u=0;o;){if(o.nodeType===8){var s=o.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(u===0)return o;u--}else s!=="/$"&&s!=="/&"||u++}o=o.previousSibling}return null}function W1(o,u,s){switch(u=nm(s),o){case"html":if(o=u.documentElement,!o)throw Error(i(452));return o;case"head":if(o=u.head,!o)throw Error(i(453));return o;case"body":if(o=u.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function vc(o){for(var u=o.attributes;u.length;)o.removeAttributeNode(u[0]);ri(o)}var Pr=new Map,eO=new Set;function rm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var pa=ee.d;ee.d={f:UZ,r:CZ,D:RZ,C:MZ,L:LZ,m:PZ,X:BZ,S:ZZ,M:FZ};function UZ(){var o=pa.f(),u=Kf();return o||u}function CZ(o){var u=Pn(o);u!==null&&u.tag===5&&u.type==="form"?gx(u):pa.r(o)}var Dl=typeof document>"u"?null:document;function tO(o,u,s){var c=Dl;if(c&&typeof u=="string"&&u){var m=zr(u);m='link[rel="'+o+'"][href="'+m+'"]',typeof s=="string"&&(m+='[crossorigin="'+s+'"]'),eO.has(m)||(eO.add(m),o={rel:o,crossOrigin:s,href:u},c.querySelector(m)===null&&(u=c.createElement("link"),Tn(u,"link",o),Kt(u),c.head.appendChild(u)))}}function RZ(o){pa.D(o),tO("dns-prefetch",o,null)}function MZ(o,u){pa.C(o,u),tO("preconnect",o,u)}function LZ(o,u,s){pa.L(o,u,s);var c=Dl;if(c&&o&&u){var m='link[rel="preload"][as="'+zr(u)+'"]';u==="image"&&s&&s.imageSrcSet?(m+='[imagesrcset="'+zr(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(m+='[imagesizes="'+zr(s.imageSizes)+'"]')):m+='[href="'+zr(o)+'"]';var v=m;switch(u){case"style":v=Ul(o);break;case"script":v=Cl(o)}Pr.has(v)||(o=g({rel:"preload",href:u==="image"&&s&&s.imageSrcSet?void 0:o,as:u},s),Pr.set(v,o),c.querySelector(m)!==null||u==="style"&&c.querySelector(pc(v))||u==="script"&&c.querySelector(gc(v))||(u=c.createElement("link"),Tn(u,"link",o),Kt(u),c.head.appendChild(u)))}}function PZ(o,u){pa.m(o,u);var s=Dl;if(s&&o){var c=u&&typeof u.as=="string"?u.as:"script",m='link[rel="modulepreload"][as="'+zr(c)+'"][href="'+zr(o)+'"]',v=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Cl(o)}if(!Pr.has(v)&&(o=g({rel:"modulepreload",href:o},u),Pr.set(v,o),s.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(gc(v)))return}c=s.createElement("link"),Tn(c,"link",o),Kt(c),s.head.appendChild(c)}}}function ZZ(o,u,s){pa.S(o,u,s);var c=Dl;if(c&&o){var m=Ii(c).hoistableStyles,v=Ul(o);u=u||"default";var _=m.get(v);if(!_){var O={loading:0,preload:null};if(_=c.querySelector(pc(v)))O.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":u},s),(s=Pr.get(v))&&Fg(o,s);var A=_=c.createElement("link");Kt(A),Tn(A,"link",o),A._p=new Promise(function(V,Y){A.onload=V,A.onerror=Y}),A.addEventListener("load",function(){O.loading|=1}),A.addEventListener("error",function(){O.loading|=2}),O.loading|=4,im(_,u,c)}_={type:"stylesheet",instance:_,count:1,state:O},m.set(v,_)}}}function BZ(o,u){pa.X(o,u);var s=Dl;if(s&&o){var c=Ii(s).hoistableScripts,m=Cl(o),v=c.get(m);v||(v=s.querySelector(gc(m)),v||(o=g({src:o,async:!0},u),(u=Pr.get(m))&&Vg(o,u),v=s.createElement("script"),Kt(v),Tn(v,"link",o),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},c.set(m,v))}}function FZ(o,u){pa.M(o,u);var s=Dl;if(s&&o){var c=Ii(s).hoistableScripts,m=Cl(o),v=c.get(m);v||(v=s.querySelector(gc(m)),v||(o=g({src:o,async:!0,type:"module"},u),(u=Pr.get(m))&&Vg(o,u),v=s.createElement("script"),Kt(v),Tn(v,"link",o),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},c.set(m,v))}}function nO(o,u,s,c){var m=(m=Ae.current)?rm(m):null;if(!m)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(u=Ul(s.href),s=Ii(m).hoistableStyles,c=s.get(u),c||(c={type:"style",instance:null,count:0,state:null},s.set(u,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){o=Ul(s.href);var v=Ii(m).hoistableStyles,_=v.get(o);if(_||(m=m.ownerDocument||m,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(o,_),(v=m.querySelector(pc(o)))&&!v._p&&(_.instance=v,_.state.loading=5),Pr.has(o)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Pr.set(o,s),v||VZ(m,o,s,_.state))),u&&c===null)throw Error(i(528,""));return _}if(u&&c!==null)throw Error(i(529,""));return null;case"script":return u=s.async,s=s.src,typeof s=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Cl(s),s=Ii(m).hoistableScripts,c=s.get(u),c||(c={type:"script",instance:null,count:0,state:null},s.set(u,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function Ul(o){return'href="'+zr(o)+'"'}function pc(o){return'link[rel="stylesheet"]['+o+"]"}function rO(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function VZ(o,u,s,c){o.querySelector('link[rel="preload"][as="style"]['+u+"]")?c.loading=1:(u=o.createElement("link"),c.preload=u,u.addEventListener("load",function(){return c.loading|=1}),u.addEventListener("error",function(){return c.loading|=2}),Tn(u,"link",s),Kt(u),o.head.appendChild(u))}function Cl(o){return'[src="'+zr(o)+'"]'}function gc(o){return"script[async]"+o}function iO(o,u,s){if(u.count++,u.instance===null)switch(u.type){case"style":var c=o.querySelector('style[data-href~="'+zr(s.href)+'"]');if(c)return u.instance=c,Kt(c),c;var m=g({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(o.ownerDocument||o).createElement("style"),Kt(c),Tn(c,"style",m),im(c,s.precedence,o),u.instance=c;case"stylesheet":m=Ul(s.href);var v=o.querySelector(pc(m));if(v)return u.state.loading|=4,u.instance=v,Kt(v),v;c=rO(s),(m=Pr.get(m))&&Fg(c,m),v=(o.ownerDocument||o).createElement("link"),Kt(v);var _=v;return _._p=new Promise(function(O,A){_.onload=O,_.onerror=A}),Tn(v,"link",c),u.state.loading|=4,im(v,s.precedence,o),u.instance=v;case"script":return v=Cl(s.src),(m=o.querySelector(gc(v)))?(u.instance=m,Kt(m),m):(c=s,(m=Pr.get(v))&&(c=g({},s),Vg(c,m)),o=o.ownerDocument||o,m=o.createElement("script"),Kt(m),Tn(m,"link",c),o.head.appendChild(m),u.instance=m);case"void":return null;default:throw Error(i(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(c=u.instance,u.state.loading|=4,im(c,s.precedence,o));return u.instance}function im(o,u,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,v=m,_=0;_<c.length;_++){var O=c[_];if(O.dataset.precedence===u)v=O;else if(v!==m)break}v?v.parentNode.insertBefore(o,v.nextSibling):(u=s.nodeType===9?s.head:s,u.insertBefore(o,u.firstChild))}function Fg(o,u){o.crossOrigin==null&&(o.crossOrigin=u.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=u.referrerPolicy),o.title==null&&(o.title=u.title)}function Vg(o,u){o.crossOrigin==null&&(o.crossOrigin=u.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=u.referrerPolicy),o.integrity==null&&(o.integrity=u.integrity)}var am=null;function aO(o,u,s){if(am===null){var c=new Map,m=am=new Map;m.set(s,c)}else m=am,c=m.get(s),c||(c=new Map,m.set(s,c));if(c.has(o))return c;for(c.set(o,null),s=s.getElementsByTagName(o),m=0;m<s.length;m++){var v=s[m];if(!(v[wt]||v[$e]||o==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var _=v.getAttribute(u)||"";_=o+_;var O=c.get(_);O?O.push(v):c.set(_,[v])}}return c}function oO(o,u,s){o=o.ownerDocument||o,o.head.insertBefore(s,u==="title"?o.querySelector("head > title"):null)}function qZ(o,u,s){if(s===1||u.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return o=u.disabled,typeof u.precedence=="string"&&o==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function uO(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function GZ(o,u,s,c){if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var m=Ul(c.href),v=u.querySelector(pc(m));if(v){u=v._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(o.count++,o=om.bind(o),u.then(o,o)),s.state.loading|=4,s.instance=v,Kt(v);return}v=u.ownerDocument||u,c=rO(c),(m=Pr.get(m))&&Fg(c,m),v=v.createElement("link"),Kt(v);var _=v;_._p=new Promise(function(O,A){_.onload=O,_.onerror=A}),Tn(v,"link",c),s.instance=v}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(s,u),(u=s.state.preload)&&(s.state.loading&3)===0&&(o.count++,s=om.bind(o),u.addEventListener("load",s),u.addEventListener("error",s))}}var qg=0;function HZ(o,u){return o.stylesheets&&o.count===0&&lm(o,o.stylesheets),0<o.count||0<o.imgCount?function(s){var c=setTimeout(function(){if(o.stylesheets&&lm(o,o.stylesheets),o.unsuspend){var v=o.unsuspend;o.unsuspend=null,v()}},6e4+u);0<o.imgBytes&&qg===0&&(qg=62500*EZ());var m=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&lm(o,o.stylesheets),o.unsuspend)){var v=o.unsuspend;o.unsuspend=null,v()}},(o.imgBytes>qg?50:800)+u);return o.unsuspend=s,function(){o.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function om(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lm(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var um=null;function lm(o,u){o.stylesheets=null,o.unsuspend!==null&&(o.count++,um=new Map,u.forEach(KZ,o),um=null,om.call(o))}function KZ(o,u){if(!(u.state.loading&4)){var s=um.get(o);if(s)var c=s.get(null);else{s=new Map,um.set(o,s);for(var m=o.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<m.length;v++){var _=m[v];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(s.set(_.dataset.precedence,_),c=_)}c&&s.set(null,c)}m=u.instance,_=m.getAttribute("data-precedence"),v=s.get(_)||c,v===c&&s.set(null,m),s.set(_,m),this.count++,c=om.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),v?v.parentNode.insertBefore(m,v.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(m,o.firstChild)),u.state.loading|=4}}var yc={$$typeof:N,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function JZ(o,u,s,c,m,v,_,O,A){this.tag=1,this.containerInfo=o,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=Ds(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ds(0),this.hiddenUpdates=Ds(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=v,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function lO(o,u,s,c,m,v,_,O,A,V,Y,W){return o=new JZ(o,u,s,_,A,V,Y,W,O),u=1,v===!0&&(u|=24),v=ur(3,null,null,u),o.current=v,v.stateNode=o,u=wp(),u.refCount++,o.pooledCache=u,u.refCount++,v.memoizedState={element:c,isDehydrated:s,cache:u},Np(v),o}function sO(o){return o?(o=ml,o):ml}function cO(o,u,s,c,m,v){m=sO(m),c.context===null?c.context=m:c.pendingContext=m,c=Ya(u),c.payload={element:s},v=v===void 0?null:v,v!==null&&(c.callback=v),s=Xa(o,c,u),s!==null&&(Qn(s,o,u),Ys(s,o,u))}function dO(o,u){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var s=o.retryLane;o.retryLane=s!==0&&s<u?s:u}}function Gg(o,u){dO(o,u),(o=o.alternate)&&dO(o,u)}function fO(o){if(o.tag===13||o.tag===31){var u=Jo(o,67108864);u!==null&&Qn(u,o,67108864),Gg(o,67108864)}}function mO(o){if(o.tag===13||o.tag===31){var u=fr();u=Te(u);var s=Jo(o,u);s!==null&&Qn(s,o,u),Gg(o,u)}}var sm=!0;function YZ(o,u,s,c){var m=M.T;M.T=null;var v=ee.p;try{ee.p=2,Hg(o,u,s,c)}finally{ee.p=v,M.T=m}}function XZ(o,u,s,c){var m=M.T;M.T=null;var v=ee.p;try{ee.p=8,Hg(o,u,s,c)}finally{ee.p=v,M.T=m}}function Hg(o,u,s,c){if(sm){var m=Kg(c);if(m===null)Ag(o,u,c,cm,s),vO(o,c);else if(WZ(m,o,u,s,c))c.stopPropagation();else if(vO(o,c),u&4&&-1<QZ.indexOf(o)){for(;m!==null;){var v=Pn(m);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var _=Xi(v.pendingLanes);if(_!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;_;){var A=1<<31-Ln(_);O.entanglements[1]|=A,_&=~A}Ci(v),(xt&6)===0&&(Gf=he()+500,fc(0))}}break;case 31:case 13:O=Jo(v,2),O!==null&&Qn(O,v,2),Kf(),Gg(v,2)}if(v=Kg(c),v===null&&Ag(o,u,c,cm,s),v===m)break;m=v}m!==null&&c.stopPropagation()}else Ag(o,u,c,null,s)}}function Kg(o){return o=Yv(o),Jg(o)}var cm=null;function Jg(o){if(cm=null,o=jr(o),o!==null){var u=a(o);if(u===null)o=null;else{var s=u.tag;if(s===13){if(o=l(u),o!==null)return o;o=null}else if(s===31){if(o=d(u),o!==null)return o;o=null}else if(s===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;o=null}else u!==o&&(o=null)}}return cm=o,null}function hO(o){switch(o){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(Oe()){case me:return 2;case Pe:return 8;case Nt:case ir:return 32;case Ni:return 268435456;default:return 32}default:return 32}}var Yg=!1,lo=null,so=null,co=null,bc=new Map,_c=new Map,fo=[],QZ="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 vO(o,u){switch(o){case"focusin":case"focusout":lo=null;break;case"dragenter":case"dragleave":so=null;break;case"mouseover":case"mouseout":co=null;break;case"pointerover":case"pointerout":bc.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":_c.delete(u.pointerId)}}function $c(o,u,s,c,m,v){return o===null||o.nativeEvent!==v?(o={blockedOn:u,domEventName:s,eventSystemFlags:c,nativeEvent:v,targetContainers:[m]},u!==null&&(u=Pn(u),u!==null&&fO(u)),o):(o.eventSystemFlags|=c,u=o.targetContainers,m!==null&&u.indexOf(m)===-1&&u.push(m),o)}function WZ(o,u,s,c,m){switch(u){case"focusin":return lo=$c(lo,o,u,s,c,m),!0;case"dragenter":return so=$c(so,o,u,s,c,m),!0;case"mouseover":return co=$c(co,o,u,s,c,m),!0;case"pointerover":var v=m.pointerId;return bc.set(v,$c(bc.get(v)||null,o,u,s,c,m)),!0;case"gotpointercapture":return v=m.pointerId,_c.set(v,$c(_c.get(v)||null,o,u,s,c,m)),!0}return!1}function pO(o){var u=jr(o.target);if(u!==null){var s=a(u);if(s!==null){if(u=s.tag,u===13){if(u=l(s),u!==null){o.blockedOn=u,Ce(o.priority,function(){mO(s)});return}}else if(u===31){if(u=d(s),u!==null){o.blockedOn=u,Ce(o.priority,function(){mO(s)});return}}else if(u===3&&s.stateNode.current.memoizedState.isDehydrated){o.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}o.blockedOn=null}function dm(o){if(o.blockedOn!==null)return!1;for(var u=o.targetContainers;0<u.length;){var s=Kg(o.nativeEvent);if(s===null){s=o.nativeEvent;var c=new s.constructor(s.type,s);Jv=c,s.target.dispatchEvent(c),Jv=null}else return u=Pn(s),u!==null&&fO(u),o.blockedOn=s,!1;u.shift()}return!0}function gO(o,u,s){dm(o)&&s.delete(u)}function eB(){Yg=!1,lo!==null&&dm(lo)&&(lo=null),so!==null&&dm(so)&&(so=null),co!==null&&dm(co)&&(co=null),bc.forEach(gO),_c.forEach(gO)}function fm(o,u){o.blockedOn===u&&(o.blockedOn=null,Yg||(Yg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,eB)))}var mm=null;function yO(o){mm!==o&&(mm=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mm===o&&(mm=null);for(var u=0;u<o.length;u+=3){var s=o[u],c=o[u+1],m=o[u+2];if(typeof c!="function"){if(Jg(c||s)===null)continue;break}var v=Pn(s);v!==null&&(o.splice(u,3),u-=3,Kp(v,{pending:!0,data:m,method:s.method,action:c},c,m))}}))}function Rl(o){function u(A){return fm(A,o)}lo!==null&&fm(lo,o),so!==null&&fm(so,o),co!==null&&fm(co,o),bc.forEach(u),_c.forEach(u);for(var s=0;s<fo.length;s++){var c=fo[s];c.blockedOn===o&&(c.blockedOn=null)}for(;0<fo.length&&(s=fo[0],s.blockedOn===null);)pO(s),s.blockedOn===null&&fo.shift();if(s=(o.ownerDocument||o).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var m=s[c],v=s[c+1],_=m[be]||null;if(typeof v=="function")_||yO(s);else if(_){var O=null;if(v&&v.hasAttribute("formAction")){if(m=v,_=v[be]||null)O=_.formAction;else if(Jg(m)!==null)continue}else O=_.action;typeof O=="function"?s[c+1]=O:(s.splice(c,3),c-=3),yO(s)}}}function bO(){function o(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(_){return m=_})},focusReset:"manual",scroll:"manual"})}function u(){m!==null&&(m(),m=null),c||setTimeout(s,20)}function s(){if(!c&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(s,100),function(){c=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),m!==null&&(m(),m=null)}}}function Xg(o){this._internalRoot=o}hm.prototype.render=Xg.prototype.render=function(o){var u=this._internalRoot;if(u===null)throw Error(i(409));var s=u.current,c=fr();cO(s,c,o,u,null,null)},hm.prototype.unmount=Xg.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var u=o.containerInfo;cO(o.current,2,null,o,null,null),Kf(),u[Fe]=null}};function hm(o){this._internalRoot=o}hm.prototype.unstable_scheduleHydration=function(o){if(o){var u=Ee();o={blockedOn:null,target:o,priority:u};for(var s=0;s<fo.length&&u!==0&&u<fo[s].priority;s++);fo.splice(s,0,o),s===0&&pO(o)}};var _O=t.version;if(_O!=="19.2.0")throw Error(i(527,_O,"19.2.0"));ee.findDOMNode=function(o){var u=o._reactInternals;if(u===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=h(u),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var tB={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vm.isDisabled&&vm.supportsFiber)try{ti=vm.inject(tB),gn=vm}catch{}}return kc.createRoot=function(o,u){if(!n(o))throw Error(i(299));var s=!1,c="",m=Ex,v=Nx,_=jx;return u!=null&&(u.unstable_strictMode===!0&&(s=!0),u.identifierPrefix!==void 0&&(c=u.identifierPrefix),u.onUncaughtError!==void 0&&(m=u.onUncaughtError),u.onCaughtError!==void 0&&(v=u.onCaughtError),u.onRecoverableError!==void 0&&(_=u.onRecoverableError)),u=lO(o,1,!1,null,null,s,c,null,m,v,_,bO),o[Fe]=u.current,zg(o),new Xg(u)},kc.hydrateRoot=function(o,u,s){if(!n(o))throw Error(i(299));var c=!1,m="",v=Ex,_=Nx,O=jx,A=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(O=s.onRecoverableError),s.formState!==void 0&&(A=s.formState)),u=lO(o,1,!0,u,s??null,c,m,A,v,_,O,bO),u.context=sO(null),s=u.current,c=fr(),c=Te(c),m=Ya(c),m.callback=null,Xa(s,m,c),s=c,u.current.lanes=s,U(u,s),Ci(u),o[Fe]=u.current,zg(o),new hm(u)},kc.version="19.2.0",kc}var TO;function mB(){if(TO)return ey.exports;TO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ey.exports=fB(),ey.exports}var hB=mB(),S=Ah();const Tt=ws(S);/**
|
|
50
|
-
* react-router v7.9.4
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var Zj=e=>{throw TypeError(e)},vB=(e,t,r)=>t.has(e)||Zj("Cannot "+r),ay=(e,t,r)=>(vB(e,t,"read from private field"),r?r.call(e):t.get(e)),pB=(e,t,r)=>t.has(e)?Zj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zO="popstate";function gB(e={}){function t(i,n){let{pathname:a,search:l,hash:d}=i.location;return Hc("",{pathname:a,search:l,hash:d},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(i,n){return typeof n=="string"?n:xo(n)}return bB(t,r,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yB(){return Math.random().toString(36).substring(2,10)}function AO(e,t){return{usr:e.state,key:e.key,idx:t}}function Hc(e,t,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ao(t):t,state:r,key:t&&t.key||i||yB()}}function xo({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ao(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function bB(e,t,r,i={}){let{window:n=document.defaultView,v5Compat:a=!1}=i,l=n.history,d="POP",f=null,h=p();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function p(){return(l.state||{idx:null}).idx}function g(){d="POP";let x=p(),$=x==null?null:x-h;h=x,f&&f({action:d,location:I.location,delta:$})}function b(x,$){d="PUSH";let j=Hc(I.location,x,$);h=p()+1;let N=AO(j,h),z=I.createHref(j);try{l.pushState(N,"",z)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;n.location.assign(z)}a&&f&&f({action:d,location:I.location,delta:1})}function k(x,$){d="REPLACE";let j=Hc(I.location,x,$);h=p();let N=AO(j,h),z=I.createHref(j);l.replaceState(N,"",z),a&&f&&f({action:d,location:I.location,delta:0})}function w(x){return Bj(x)}let I={get action(){return d},get location(){return e(n,l)},listen(x){if(f)throw new Error("A history only accepts one active listener");return n.addEventListener(zO,g),f=x,()=>{n.removeEventListener(zO,g),f=null}},createHref(x){return t(n,x)},createURL:w,encodeLocation(x){let $=w(x);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:b,replace:k,go(x){return l.go(x)}};return I}function Bj(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),lt(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:xo(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=r+i),new URL(i,r)}var Ac,DO=class{constructor(e){if(pB(this,Ac,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(ay(this,Ac).has(e))return ay(this,Ac).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){ay(this,Ac).set(e,t)}};Ac=new WeakMap;var _B=new Set(["lazy","caseSensitive","path","id","index","children"]);function $B(e){return _B.has(e)}var SB=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function kB(e){return SB.has(e)}function wB(e){return e.index===!0}function Kc(e,t,r=[],i={},n=!1){return e.map((a,l)=>{let d=[...r,String(l)],f=typeof a.id=="string"?a.id:d.join("-");if(lt(a.index!==!0||!a.children,"Cannot specify children on an index route"),lt(n||!i[f],`Found a route id collision on id "${f}". Route id's must be globally unique within Data Router usages`),wB(a)){let h={...a,...t(a),id:f};return i[f]=h,h}else{let h={...a,...t(a),id:f,children:void 0};return i[f]=h,a.children&&(h.children=Kc(a.children,t,d,i,n)),h}})}function po(e,t,r="/"){return Mm(e,t,r,!1)}function Mm(e,t,r,i){let n=typeof t=="string"?Ao(t):t,a=Jr(n.pathname||"/",r);if(a==null)return null;let l=Fj(e);OB(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let h=RB(a);d=UB(l[f],h,i)}return d}function xB(e,t){let{route:r,pathname:i,params:n}=e;return{id:r.id,pathname:i,params:n,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function Fj(e,t=[],r=[],i="",n=!1){let a=(l,d,f=n,h)=>{let p={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:d,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(i)&&f)return;lt(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length)}let g=Bi([i,p.relativePath]),b=r.concat(p);l.children&&l.children.length>0&&(lt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Fj(l.children,t,b,g,f)),!(l.path==null&&!l.index)&&t.push({path:g,score:AB(g,l.index),routesMeta:b})};return e.forEach((l,d)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))a(l,d);else for(let h of Vj(l.path))a(l,d,!0,h)}),t}function Vj(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,n=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return n?[a,""]:[a];let l=Vj(i.join("/")),d=[];return d.push(...l.map(f=>f===""?a:[a,f].join("/"))),n&&d.push(...l),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function OB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:DB(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var EB=/^:[\w-]+$/,NB=3,jB=2,IB=1,TB=10,zB=-2,UO=e=>e==="*";function AB(e,t){let r=e.split("/"),i=r.length;return r.some(UO)&&(i+=zB),t&&(i+=jB),r.filter(n=>!UO(n)).reduce((n,a)=>n+(EB.test(a)?NB:a===""?IB:TB),i)}function DB(e,t){return e.length===t.length&&e.slice(0,-1).every((i,n)=>i===t[n])?e[e.length-1]-t[t.length-1]:0}function UB(e,t,r=!1){let{routesMeta:i}=e,n={},a="/",l=[];for(let d=0;d<i.length;++d){let f=i[d],h=d===i.length-1,p=a==="/"?t:t.slice(a.length)||"/",g=Ym({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),b=f.route;if(!g&&h&&r&&!i[i.length-1].route.index&&(g=Ym({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(n,g.params),l.push({params:n,pathname:Bi([a,g.pathname]),pathnameBase:ZB(Bi([a,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(a=Bi([a,g.pathnameBase]))}return l}function Ym(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=CB(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let a=n[0],l=a.replace(/(.)\/+$/,"$1"),d=n.slice(1);return{params:i.reduce((h,{paramName:p,isOptional:g},b)=>{if(p==="*"){let w=d[b]||"";l=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const k=d[b];return g&&!k?h[p]=void 0:h[p]=(k||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:l,pattern:e}}function CB(e,t=!1,r=!0){dn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,f)=>(i.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),i]}function RB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Jr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function MB({basename:e,pathname:t}){return t==="/"?e:Bi([e,t])}function LB(e,t="/"){let{pathname:r,search:i="",hash:n=""}=typeof e=="string"?Ao(e):e;return{pathname:r?r.startsWith("/")?r:PB(r,t):t,search:BB(i),hash:FB(n)}}function PB(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function oy(e,t,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function n_(e){let t=qj(e);return t.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase)}function r_(e,t,r,i=!1){let n;typeof e=="string"?n=Ao(e):(n={...e},lt(!n.pathname||!n.pathname.includes("?"),oy("?","pathname","search",n)),lt(!n.pathname||!n.pathname.includes("#"),oy("#","pathname","hash",n)),lt(!n.search||!n.search.includes("#"),oy("#","search","hash",n)));let a=e===""||n.pathname==="",l=a?"/":n.pathname,d;if(l==null)d=r;else{let g=t.length-1;if(!i&&l.startsWith("..")){let b=l.split("/");for(;b[0]==="..";)b.shift(),g-=1;n.pathname=b.join("/")}d=g>=0?t[g]:"/"}let f=LB(n,d),h=l&&l!=="/"&&l.endsWith("/"),p=(a||l===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}var Bi=e=>e.join("/").replace(/\/\/+/g,"/"),ZB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Xm=class{constructor(e,t,r,i=!1){this.status=e,this.statusText=t||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Jc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Gj=["POST","PUT","PATCH","DELETE"],VB=new Set(Gj),qB=["GET",...Gj],GB=new Set(qB),HB=new Set([301,302,303,307,308]),KB=new Set([307,308]),uy={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},JB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},YB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i_=e=>YB.test(e),XB=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Hj="remix-router-transitions",Kj=Symbol("ResetLoaderData");function QB(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=e.hydrationRouteProperties||[],n=e.mapRouteProperties||XB,a={},l=Kc(e.routes,n,void 0,a),d,f=e.basename||"/";f.startsWith("/")||(f=`/${f}`);let h=e.dataStrategy||r3,p={...e.future},g=null,b=new Set,k=null,w=null,I=null,x=e.hydrationData!=null,$=po(l,e.history.location,f),j=!1,N=null,z;if($==null&&!e.patchRoutesOnNavigation){let U=Fr(404,{pathname:e.history.location.pathname}),{matches:P,route:K}=gm(l);z=!0,$=P,N={[K.id]:U}}else if($&&!e.hydrationData&&ji($,l,e.history.location.pathname).active&&($=null),$)if($.some(U=>U.route.lazy))z=!1;else if(!$.some(U=>a_(U.route)))z=!0;else{let U=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null;if(P){let K=$.findIndex(le=>P[le.route.id]!==void 0);z=$.slice(0,K+1).every(le=>!Zy(le.route,U,P))}else z=$.every(K=>!Zy(K.route,U,P))}else{z=!1,$=[];let U=ji(null,l,e.history.location.pathname);U.active&&U.matches&&(j=!0,$=U.matches)}let T,E={historyAction:e.history.action,location:e.history.location,matches:$,initialized:z,navigation:uy,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||N,fetchers:new Map,blockers:new Map},C="POP",ae=!1,ue,fe=!1,we=new Map,Je=null,De=!1,_e=!1,Ne=new Set,M=new Map,ee=0,de=-1,je=new Map,Ue=new Set,D=new Map,H=new Map,ne=new Set,oe=new Map,ye,Ae=null;function He(){if(g=e.history.listen(({action:U,location:P,delta:K})=>{if(ye){ye(),ye=void 0;return}dn(oe.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let le=rf({currentLocation:E.location,nextLocation:P,historyAction:U});if(le&&K!=null){let ve=new Promise(Te=>{ye=Te});e.history.go(K*-1),nl(le,{state:"blocked",location:P,proceed(){nl(le,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),ve.then(()=>e.history.go(K))},reset(){let Te=new Map(E.blockers);Te.set(le,wc),gt({blockers:Te})}});return}return Ct(U,P)}),r){y3(t,we);let U=()=>b3(t,we);t.addEventListener("pagehide",U),Je=()=>t.removeEventListener("pagehide",U)}return E.initialized||Ct("POP",E.location,{initialHydration:!0}),T}function _t(){g&&g(),Je&&Je(),b.clear(),ue&&ue.abort(),E.fetchers.forEach((U,P)=>Ni(P)),E.blockers.forEach((U,P)=>nf(P))}function dt(U){return b.add(U),()=>b.delete(U)}function gt(U,P={}){U.matches&&(U.matches=U.matches.map(ve=>{let Te=a[ve.route.id],ze=ve.route;return ze.element!==Te.element||ze.errorElement!==Te.errorElement||ze.hydrateFallbackElement!==Te.hydrateFallbackElement?{...ve,route:Te}:ve})),E={...E,...U};let K=[],le=[];E.fetchers.forEach((ve,Te)=>{ve.state==="idle"&&(ne.has(Te)?K.push(Te):le.push(Te))}),ne.forEach(ve=>{!E.fetchers.has(ve)&&!M.has(ve)&&K.push(ve)}),[...b].forEach(ve=>ve(E,{deletedFetchers:K,viewTransitionOpts:P.viewTransitionOpts,flushSync:P.flushSync===!0})),K.forEach(ve=>Ni(ve)),le.forEach(ve=>E.fetchers.delete(ve))}function Ht(U,P,{flushSync:K}={}){var $e,be;let le=E.actionData!=null&&E.navigation.formMethod!=null&&Wn(E.navigation.formMethod)&&E.navigation.state==="loading"&&(($e=U.state)==null?void 0:$e._isRedirect)!==!0,ve;P.actionData?Object.keys(P.actionData).length>0?ve=P.actionData:ve=null:le?ve=E.actionData:ve=null;let Te=P.loaderData?qO(E.loaderData,P.loaderData,P.matches||[],P.errors):E.loaderData,ze=E.blockers;ze.size>0&&(ze=new Map(ze),ze.forEach((Fe,Ot)=>ze.set(Ot,wc)));let Ee=De?!1:Fo(U,P.matches||E.matches),Ce=ae===!0||E.navigation.formMethod!=null&&Wn(E.navigation.formMethod)&&((be=U.state)==null?void 0:be._isRedirect)!==!0;d&&(l=d,d=void 0),De||C==="POP"||(C==="PUSH"?e.history.push(U,U.state):C==="REPLACE"&&e.history.replace(U,U.state));let Re;if(C==="POP"){let Fe=we.get(E.location.pathname);Fe&&Fe.has(U.pathname)?Re={currentLocation:E.location,nextLocation:U}:we.has(U.pathname)&&(Re={currentLocation:U,nextLocation:E.location})}else if(fe){let Fe=we.get(E.location.pathname);Fe?Fe.add(U.pathname):(Fe=new Set([U.pathname]),we.set(E.location.pathname,Fe)),Re={currentLocation:E.location,nextLocation:U}}gt({...P,actionData:ve,loaderData:Te,historyAction:C,location:U,initialized:!0,navigation:uy,revalidation:"idle",restoreScrollPosition:Ee,preventScrollReset:Ce,blockers:ze},{viewTransitionOpts:Re,flushSync:K===!0}),C="POP",ae=!1,fe=!1,De=!1,_e=!1,Ae==null||Ae.resolve(),Ae=null}async function xn(U,P){if(typeof U=="number"){e.history.go(U);return}let K=Py(E.location,E.matches,f,U,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:le,submission:ve,error:Te}=CO(!1,K,P),ze=E.location,Ee=Hc(E.location,le,P&&P.state);Ee={...Ee,...e.history.encodeLocation(Ee)};let Ce=P&&P.replace!=null?P.replace:void 0,Re="PUSH";Ce===!0?Re="REPLACE":Ce===!1||ve!=null&&Wn(ve.formMethod)&&ve.formAction===E.location.pathname+E.location.search&&(Re="REPLACE");let $e=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,be=(P&&P.flushSync)===!0,Fe=rf({currentLocation:ze,nextLocation:Ee,historyAction:Re});if(Fe){nl(Fe,{state:"blocked",location:Ee,proceed(){nl(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:Ee}),xn(U,P)},reset(){let Ot=new Map(E.blockers);Ot.set(Fe,wc),gt({blockers:Ot})}});return}await Ct(Re,Ee,{submission:ve,pendingError:Te,preventScrollReset:$e,replace:P&&P.replace,enableViewTransition:P&&P.viewTransition,flushSync:be})}function An(){Ae||(Ae=_3()),Oe(),gt({revalidation:"loading"});let U=Ae.promise;return E.navigation.state==="submitting"?U:E.navigation.state==="idle"?(Ct(E.historyAction,E.location,{startUninterruptedRevalidation:!0}),U):(Ct(C||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:fe===!0}),U)}async function Ct(U,P,K){ue&&ue.abort(),ue=null,C=U,De=(K&&K.startUninterruptedRevalidation)===!0,Xi(E.location,E.matches),ae=(K&&K.preventScrollReset)===!0,fe=(K&&K.enableViewTransition)===!0;let le=d||l,ve=K&&K.overrideNavigation,Te=K!=null&&K.initialHydration&&E.matches&&E.matches.length>0&&!j?E.matches:po(le,P,f),ze=(K&&K.flushSync)===!0;if(Te&&E.initialized&&!_e&&d3(E.location,P)&&!(K&&K.submission&&Wn(K.submission.formMethod))){Ht(P,{matches:Te},{flushSync:ze});return}let Ee=ji(Te,le,P.pathname);if(Ee.active&&Ee.matches&&(Te=Ee.matches),!Te){let{error:En,notFoundMatches:Rt,route:wt}=Fa(P.pathname);Ht(P,{matches:Rt,loaderData:{},errors:{[wt.id]:En}},{flushSync:ze});return}ue=new AbortController;let Ce=Fl(e.history,P,ue.signal,K&&K.submission),Re=e.getContext?await e.getContext():new DO,$e;if(K&&K.pendingError)$e=[go(Te).route.id,{type:"error",error:K.pendingError}];else if(K&&K.submission&&Wn(K.submission.formMethod)){let En=await yt(Ce,P,K.submission,Te,Re,Ee.active,K&&K.initialHydration===!0,{replace:K.replace,flushSync:ze});if(En.shortCircuited)return;if(En.pendingActionResult){let[Rt,wt]=En.pendingActionResult;if(hr(wt)&&Jc(wt.error)&&wt.error.status===404){ue=null,Ht(P,{matches:En.matches,loaderData:{},errors:{[Rt]:wt.error}});return}}Te=En.matches||Te,$e=En.pendingActionResult,ve=ly(P,K.submission),ze=!1,Ee.active=!1,Ce=Fl(e.history,Ce.url,Ce.signal)}let{shortCircuited:be,matches:Fe,loaderData:Ot,errors:an}=await Rn(Ce,P,Te,Re,Ee.active,ve,K&&K.submission,K&&K.fetcherSubmission,K&&K.replace,K&&K.initialHydration===!0,ze,$e);be||(ue=null,Ht(P,{matches:Fe||Te,...GO($e),loaderData:Ot,errors:an}))}async function yt(U,P,K,le,ve,Te,ze,Ee={}){Oe();let Ce=p3(P,K);if(gt({navigation:Ce},{flushSync:Ee.flushSync===!0}),Te){let be=await il(le,P.pathname,U.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){if(be.partialMatches.length===0){let{matches:Ot,route:an}=gm(l);return{matches:Ot,pendingActionResult:[an.id,{type:"error",error:be.error}]}}let Fe=go(be.partialMatches).route.id;return{matches:be.partialMatches,pendingActionResult:[Fe,{type:"error",error:be.error}]}}else if(be.matches)le=be.matches;else{let{notFoundMatches:Fe,error:Ot,route:an}=Fa(P.pathname);return{matches:Fe,pendingActionResult:[an.id,{type:"error",error:Ot}]}}}let Re,$e=Lm(le,P);if(!$e.route.action&&!$e.route.lazy)Re={type:"error",error:Fr(405,{method:U.method,pathname:P.pathname,routeId:$e.route.id})};else{let be=Kl(n,a,U,le,$e,ze?[]:i,ve),Fe=await pe(U,be,ve,null);if(Re=Fe[$e.route.id],!Re){for(let Ot of le)if(Fe[Ot.route.id]){Re=Fe[Ot.route.id];break}}if(U.signal.aborted)return{shortCircuited:!0}}if(du(Re)){let be;return Ee&&Ee.replace!=null?be=Ee.replace:be=BO(Re.response.headers.get("Location"),new URL(U.url),f)===E.location.pathname+E.location.search,await q(U,Re,!0,{submission:K,replace:be}),{shortCircuited:!0}}if(hr(Re)){let be=go(le,$e.route.id);return(Ee&&Ee.replace)!==!0&&(C="PUSH"),{matches:le,pendingActionResult:[be.route.id,Re,$e.route.id]}}return{matches:le,pendingActionResult:[$e.route.id,Re]}}async function Rn(U,P,K,le,ve,Te,ze,Ee,Ce,Re,$e,be){let Fe=Te||ly(P,ze),Ot=ze||Ee||KO(Fe),an=!De&&!Re;if(ve){if(an){let yn=Mn(be);gt({navigation:Fe,...yn!==void 0?{actionData:yn}:{}},{flushSync:$e})}let nt=await il(K,P.pathname,U.signal);if(nt.type==="aborted")return{shortCircuited:!0};if(nt.type==="error"){if(nt.partialMatches.length===0){let{matches:Qi,route:zi}=gm(l);return{matches:Qi,loaderData:{},errors:{[zi.id]:nt.error}}}let yn=go(nt.partialMatches).route.id;return{matches:nt.partialMatches,loaderData:{},errors:{[yn]:nt.error}}}else if(nt.matches)K=nt.matches;else{let{error:yn,notFoundMatches:Qi,route:zi}=Fa(P.pathname);return{matches:Qi,loaderData:{},errors:{[zi.id]:yn}}}}let En=d||l,{dsMatches:Rt,revalidatingFetchers:wt}=RO(U,le,n,a,e.history,E,K,Ot,P,Re?[]:i,Re===!0,_e,Ne,ne,D,Ue,En,f,e.patchRoutesOnNavigation!=null,be);if(de=++ee,!e.dataStrategy&&!Rt.some(nt=>nt.shouldLoad)&&!Rt.some(nt=>nt.route.middleware&&nt.route.middleware.length>0)&&wt.length===0){let nt=gn();return Ht(P,{matches:K,loaderData:{},errors:be&&hr(be[1])?{[be[0]]:be[1].error}:null,...GO(be),...nt?{fetchers:new Map(E.fetchers)}:{}},{flushSync:$e}),{shortCircuited:!0}}if(an){let nt={};if(!ve){nt.navigation=Fe;let yn=Mn(be);yn!==void 0&&(nt.actionData=yn)}wt.length>0&&(nt.fetchers=Ei(wt)),gt(nt,{flushSync:$e})}wt.forEach(nt=>{ar(nt.key),nt.controller&&M.set(nt.key,nt.controller)});let ri=()=>wt.forEach(nt=>ar(nt.key));ue&&ue.signal.addEventListener("abort",ri);let{loaderResults:jr,fetcherResults:Pn}=await he(Rt,wt,U,le);if(U.signal.aborted)return{shortCircuited:!0};ue&&ue.signal.removeEventListener("abort",ri),wt.forEach(nt=>M.delete(nt.key));let Dn=ym(jr);if(Dn)return await q(U,Dn.result,!0,{replace:Ce}),{shortCircuited:!0};if(Dn=ym(Pn),Dn)return Ue.add(Dn.key),await q(U,Dn.result,!0,{replace:Ce}),{shortCircuited:!0};let{loaderData:Ii,errors:Kt}=VO(E,K,jr,be,wt,Pn);Re&&E.errors&&(Kt={...E.errors,...Kt});let Ti=gn(),Vo=ni(de),Ir=Ti||Vo||wt.length>0;return{matches:K,loaderData:Ii,errors:Kt,...Ir?{fetchers:new Map(E.fetchers)}:{}}}function Mn(U){if(U&&!hr(U[1]))return{[U[0]]:U[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Ei(U){return U.forEach(P=>{let K=E.fetchers.get(P.key),le=xc(void 0,K?K.data:void 0);E.fetchers.set(P.key,le)}),new Map(E.fetchers)}async function rr(U,P,K,le){ar(U);let ve=(le&&le.flushSync)===!0,Te=d||l,ze=Py(E.location,E.matches,f,K,P,le==null?void 0:le.relative),Ee=po(Te,ze,f),Ce=ji(Ee,Te,ze);if(Ce.active&&Ce.matches&&(Ee=Ce.matches),!Ee){Pe(U,P,Fr(404,{pathname:ze}),{flushSync:ve});return}let{path:Re,submission:$e,error:be}=CO(!0,ze,le);if(be){Pe(U,P,be,{flushSync:ve});return}let Fe=e.getContext?await e.getContext():new DO,Ot=(le&&le.preventScrollReset)===!0;if($e&&Wn($e.formMethod)){await On(U,P,Re,Ee,Fe,Ce.active,ve,Ot,$e);return}D.set(U,{routeId:P,path:Re}),await Gn(U,P,Re,Ee,Fe,Ce.active,ve,Ot,$e)}async function On(U,P,K,le,ve,Te,ze,Ee,Ce){Oe(),D.delete(U);let Re=E.fetchers.get(U);me(U,g3(Ce,Re),{flushSync:ze});let $e=new AbortController,be=Fl(e.history,K,$e.signal,Ce);if(Te){let tn=await il(le,new URL(be.url).pathname,be.signal,U);if(tn.type==="aborted")return;if(tn.type==="error"){Pe(U,P,tn.error,{flushSync:ze});return}else if(tn.matches)le=tn.matches;else{Pe(U,P,Fr(404,{pathname:K}),{flushSync:ze});return}}let Fe=Lm(le,K);if(!Fe.route.action&&!Fe.route.lazy){let tn=Fr(405,{method:Ce.formMethod,pathname:K,routeId:P});Pe(U,P,tn,{flushSync:ze});return}M.set(U,$e);let Ot=ee,an=Kl(n,a,be,le,Fe,i,ve),Rt=(await pe(be,an,ve,U))[Fe.route.id];if(be.signal.aborted){M.get(U)===$e&&M.delete(U);return}if(ne.has(U)){if(du(Rt)||hr(Rt)){me(U,ya(void 0));return}}else{if(du(Rt))if(M.delete(U),de>Ot){me(U,ya(void 0));return}else return Ue.add(U),me(U,xc(Ce)),q(be,Rt,!1,{fetcherSubmission:Ce,preventScrollReset:Ee});if(hr(Rt)){Pe(U,P,Rt.error);return}}let wt=E.navigation.location||E.location,ri=Fl(e.history,wt,$e.signal),jr=d||l,Pn=E.navigation.state!=="idle"?po(jr,E.navigation.location,f):E.matches;lt(Pn,"Didn't find any matches after fetcher action");let Dn=++ee;je.set(U,Dn);let Ii=xc(Ce,Rt.data);E.fetchers.set(U,Ii);let{dsMatches:Kt,revalidatingFetchers:Ti}=RO(ri,ve,n,a,e.history,E,Pn,Ce,wt,i,!1,_e,Ne,ne,D,Ue,jr,f,e.patchRoutesOnNavigation!=null,[Fe.route.id,Rt]);Ti.filter(tn=>tn.key!==U).forEach(tn=>{let Wi=tn.key,qo=E.fetchers.get(Wi),ii=xc(void 0,qo?qo.data:void 0);E.fetchers.set(Wi,ii),ar(Wi),tn.controller&&M.set(Wi,tn.controller)}),gt({fetchers:new Map(E.fetchers)});let Vo=()=>Ti.forEach(tn=>ar(tn.key));$e.signal.addEventListener("abort",Vo);let{loaderResults:Ir,fetcherResults:nt}=await he(Kt,Ti,ri,ve);if($e.signal.aborted)return;if($e.signal.removeEventListener("abort",Vo),je.delete(U),M.delete(U),Ti.forEach(tn=>M.delete(tn.key)),E.fetchers.has(U)){let tn=ya(Rt.data);E.fetchers.set(U,tn)}let yn=ym(Ir);if(yn)return q(ri,yn.result,!1,{preventScrollReset:Ee});if(yn=ym(nt),yn)return Ue.add(yn.key),q(ri,yn.result,!1,{preventScrollReset:Ee});let{loaderData:Qi,errors:zi}=VO(E,Pn,Ir,void 0,Ti,nt);ni(Dn),E.navigation.state==="loading"&&Dn>de?(lt(C,"Expected pending action"),ue&&ue.abort(),Ht(E.navigation.location,{matches:Pn,loaderData:Qi,errors:zi,fetchers:new Map(E.fetchers)})):(gt({errors:zi,loaderData:qO(E.loaderData,Qi,Pn,zi),fetchers:new Map(E.fetchers)}),_e=!1)}async function Gn(U,P,K,le,ve,Te,ze,Ee,Ce){let Re=E.fetchers.get(U);me(U,xc(Ce,Re?Re.data:void 0),{flushSync:ze});let $e=new AbortController,be=Fl(e.history,K,$e.signal);if(Te){let wt=await il(le,new URL(be.url).pathname,be.signal,U);if(wt.type==="aborted")return;if(wt.type==="error"){Pe(U,P,wt.error,{flushSync:ze});return}else if(wt.matches)le=wt.matches;else{Pe(U,P,Fr(404,{pathname:K}),{flushSync:ze});return}}let Fe=Lm(le,K);M.set(U,$e);let Ot=ee,an=Kl(n,a,be,le,Fe,i,ve),Rt=(await pe(be,an,ve,U))[Fe.route.id];if(M.get(U)===$e&&M.delete(U),!be.signal.aborted){if(ne.has(U)){me(U,ya(void 0));return}if(du(Rt))if(de>Ot){me(U,ya(void 0));return}else{Ue.add(U),await q(be,Rt,!1,{preventScrollReset:Ee});return}if(hr(Rt)){Pe(U,P,Rt.error);return}me(U,ya(Rt.data))}}async function q(U,P,K,{submission:le,fetcherSubmission:ve,preventScrollReset:Te,replace:ze}={}){P.response.headers.has("X-Remix-Revalidate")&&(_e=!0);let Ee=P.response.headers.get("Location");lt(Ee,"Expected a Location header on the redirect Response"),Ee=BO(Ee,new URL(U.url),f);let Ce=Hc(E.location,Ee,{_isRedirect:!0});if(r){let an=!1;if(P.response.headers.has("X-Remix-Reload-Document"))an=!0;else if(i_(Ee)){const En=Bj(Ee,!0);an=En.origin!==t.location.origin||Jr(En.pathname,f)==null}if(an){ze?t.location.replace(Ee):t.location.assign(Ee);return}}ue=null;let Re=ze===!0||P.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:$e,formAction:be,formEncType:Fe}=E.navigation;!le&&!ve&&$e&&be&&Fe&&(le=KO(E.navigation));let Ot=le||ve;if(KB.has(P.response.status)&&Ot&&Wn(Ot.formMethod))await Ct(Re,Ce,{submission:{...Ot,formAction:Ee},preventScrollReset:Te||ae,enableViewTransition:K?fe:void 0});else{let an=ly(Ce,le);await Ct(Re,Ce,{overrideNavigation:an,fetcherSubmission:ve,preventScrollReset:Te||ae,enableViewTransition:K?fe:void 0})}}async function pe(U,P,K,le){let ve,Te={};try{ve=await a3(h,U,P,le,K,!1)}catch(ze){return P.filter(Ee=>Ee.shouldLoad).forEach(Ee=>{Te[Ee.route.id]={type:"error",error:ze}}),Te}if(U.signal.aborted)return Te;for(let[ze,Ee]of Object.entries(ve))if(h3(Ee)){let Ce=Ee.result;Te[ze]={type:"redirect",response:s3(Ce,U,ze,P,f)}}else Te[ze]=await l3(Ee);return Te}async function he(U,P,K,le){let ve=pe(K,U,le,null),Te=Promise.all(P.map(async Ce=>{if(Ce.matches&&Ce.match&&Ce.request&&Ce.controller){let $e=(await pe(Ce.request,Ce.matches,le,Ce.key))[Ce.match.route.id];return{[Ce.key]:$e}}else return Promise.resolve({[Ce.key]:{type:"error",error:Fr(404,{pathname:Ce.path})}})})),ze=await ve,Ee=(await Te).reduce((Ce,Re)=>Object.assign(Ce,Re),{});return{loaderResults:ze,fetcherResults:Ee}}function Oe(){_e=!0,D.forEach((U,P)=>{M.has(P)&&Ne.add(P),ar(P)})}function me(U,P,K={}){E.fetchers.set(U,P),gt({fetchers:new Map(E.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function Pe(U,P,K,le={}){let ve=go(E.matches,P);Ni(U),gt({errors:{[ve.route.id]:K},fetchers:new Map(E.fetchers)},{flushSync:(le&&le.flushSync)===!0})}function Nt(U){return H.set(U,(H.get(U)||0)+1),ne.has(U)&&ne.delete(U),E.fetchers.get(U)||JB}function ir(U,P){ar(U,P==null?void 0:P.reason),me(U,ya(null))}function Ni(U){let P=E.fetchers.get(U);M.has(U)&&!(P&&P.state==="loading"&&je.has(U))&&ar(U),D.delete(U),je.delete(U),Ue.delete(U),ne.delete(U),Ne.delete(U),E.fetchers.delete(U)}function Zo(U){let P=(H.get(U)||0)-1;P<=0?(H.delete(U),ne.add(U)):H.set(U,P),gt({fetchers:new Map(E.fetchers)})}function ar(U,P){let K=M.get(U);K&&(K.abort(P),M.delete(U))}function ti(U){for(let P of U){let K=Nt(P),le=ya(K.data);E.fetchers.set(P,le)}}function gn(){let U=[],P=!1;for(let K of Ue){let le=E.fetchers.get(K);lt(le,`Expected fetcher: ${K}`),le.state==="loading"&&(Ue.delete(K),U.push(K),P=!0)}return ti(U),P}function ni(U){let P=[];for(let[K,le]of je)if(le<U){let ve=E.fetchers.get(K);lt(ve,`Expected fetcher: ${K}`),ve.state==="loading"&&(ar(K),je.delete(K),P.push(K))}return ti(P),P.length>0}function Ln(U,P){let K=E.blockers.get(U)||wc;return oe.get(U)!==P&&oe.set(U,P),K}function nf(U){E.blockers.delete(U),oe.delete(U)}function nl(U,P){let K=E.blockers.get(U)||wc;lt(K.state==="unblocked"&&P.state==="blocked"||K.state==="blocked"&&P.state==="blocked"||K.state==="blocked"&&P.state==="proceeding"||K.state==="blocked"&&P.state==="unblocked"||K.state==="proceeding"&&P.state==="unblocked",`Invalid blocker state transition: ${K.state} -> ${P.state}`);let le=new Map(E.blockers);le.set(U,P),gt({blockers:le})}function rf({currentLocation:U,nextLocation:P,historyAction:K}){if(oe.size===0)return;oe.size>1&&dn(!1,"A router only supports one blocker at a time");let le=Array.from(oe.entries()),[ve,Te]=le[le.length-1],ze=E.blockers.get(ve);if(!(ze&&ze.state==="proceeding")&&Te({currentLocation:U,nextLocation:P,historyAction:K}))return ve}function Fa(U){let P=Fr(404,{pathname:U}),K=d||l,{matches:le,route:ve}=gm(K);return{notFoundMatches:le,route:ve,error:P}}function rl(U,P,K){if(k=U,I=P,w=K||null,!x&&E.navigation===uy){x=!0;let le=Fo(E.location,E.matches);le!=null&>({restoreScrollPosition:le})}return()=>{k=null,I=null,w=null}}function Bo(U,P){return w&&w(U,P.map(le=>xB(le,E.loaderData)))||U.key}function Xi(U,P){if(k&&I){let K=Bo(U,P);k[K]=I()}}function Fo(U,P){if(k){let K=Bo(U,P),le=k[K];if(typeof le=="number")return le}return null}function ji(U,P,K){if(e.patchRoutesOnNavigation)if(U){if(Object.keys(U[0].params).length>0)return{active:!0,matches:Mm(P,K,f,!0)}}else return{active:!0,matches:Mm(P,K,f,!0)||[]};return{active:!1,matches:null}}async function il(U,P,K,le){if(!e.patchRoutesOnNavigation)return{type:"success",matches:U};let ve=U;for(;;){let Te=d==null,ze=d||l,Ee=a;try{await e.patchRoutesOnNavigation({signal:K,path:P,matches:ve,fetcherKey:le,patch:($e,be)=>{K.aborted||MO($e,be,ze,Ee,n,!1)}})}catch($e){return{type:"error",error:$e,partialMatches:ve}}finally{Te&&!K.aborted&&(l=[...l])}if(K.aborted)return{type:"aborted"};let Ce=po(ze,P,f);if(Ce)return{type:"success",matches:Ce};let Re=Mm(ze,P,f,!0);if(!Re||ve.length===Re.length&&ve.every(($e,be)=>$e.route.id===Re[be].route.id))return{type:"success",matches:null};ve=Re}}function af(U){a={},d=Kc(U,n,void 0,a)}function Ds(U,P,K=!1){let le=d==null;MO(U,P,d||l,a,n,K),le&&(l=[...l],gt({}))}return T={get basename(){return f},get future(){return p},get state(){return E},get routes(){return l},get window(){return t},initialize:He,subscribe:dt,enableScrollRestoration:rl,navigate:xn,fetch:rr,revalidate:An,createHref:U=>e.history.createHref(U),encodeLocation:U=>e.history.encodeLocation(U),getFetcher:Nt,resetFetcher:ir,deleteFetcher:Zo,dispose:_t,getBlocker:Ln,deleteBlocker:nf,patchRoutes:Ds,_internalFetchControllers:M,_internalSetRoutes:af,_internalSetStateDoNotUseOrYouWillBreakYourApp(U){gt(U)}},T}function WB(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Py(e,t,r,i,n,a){let l,d;if(n){l=[];for(let h of t)if(l.push(h),h.route.id===n){d=h;break}}else l=t,d=t[t.length-1];let f=r_(i||".",n_(l),Jr(e.pathname,r)||e.pathname,a==="path");if(i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&d){let h=o_(f.search);if(d.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&h){let p=new URLSearchParams(f.search),g=p.getAll("index");p.delete("index"),g.filter(k=>k).forEach(k=>p.append("index",k));let b=p.toString();f.search=b?`?${b}`:""}}return r!=="/"&&(f.pathname=MB({basename:r,pathname:f.pathname})),xo(f)}function CO(e,t,r){if(!r||!WB(r))return{path:t};if(r.formMethod&&!v3(r.formMethod))return{path:t,error:Fr(405,{method:r.formMethod})};let i=()=>({path:t,error:Fr(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),l=eI(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Wn(a))return i();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,[k,w])=>`${b}${k}=${w}
|
|
59
|
-
`,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!Wn(a))return i();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return i()}}}lt(typeof FormData=="function","FormData is not available in this environment");let d,f;if(r.formData)d=Fy(r.formData),f=r.formData;else if(r.body instanceof FormData)d=Fy(r.body),f=r.body;else if(r.body instanceof URLSearchParams)d=r.body,f=FO(d);else if(r.body==null)d=new URLSearchParams,f=new FormData;else try{d=new URLSearchParams(r.body),f=FO(d)}catch{return i()}let h={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Wn(h.formMethod))return{path:t,submission:h};let p=Ao(t);return e&&p.search&&o_(p.search)&&d.append("index",""),p.search=`?${d}`,{path:xo(p),submission:h}}function RO(e,t,r,i,n,a,l,d,f,h,p,g,b,k,w,I,x,$,j,N){var De;let z=N?hr(N[1])?N[1].error:N[1].data:void 0,T=n.createURL(a.location),E=n.createURL(f),C;if(p&&a.errors){let _e=Object.keys(a.errors)[0];C=l.findIndex(Ne=>Ne.route.id===_e)}else if(N&&hr(N[1])){let _e=N[0];C=l.findIndex(Ne=>Ne.route.id===_e)-1}let ae=N?N[1].statusCode:void 0,ue=ae&&ae>=400,fe={currentUrl:T,currentParams:((De=a.matches[0])==null?void 0:De.params)||{},nextUrl:E,nextParams:l[0].params,...d,actionResult:z,actionStatus:ae},we=l.map((_e,Ne)=>{let{route:M}=_e,ee=null;if(C!=null&&Ne>C?ee=!1:M.lazy?ee=!0:a_(M)?p?ee=Zy(M,a.loaderData,a.errors):e3(a.loaderData,a.matches[Ne],_e)&&(ee=!0):ee=!1,ee!==null)return By(r,i,e,_e,h,t,ee);let de=ue?!1:g||T.pathname+T.search===E.pathname+E.search||T.search!==E.search||t3(a.matches[Ne],_e),je={...fe,defaultShouldRevalidate:de},Ue=Qm(_e,je);return By(r,i,e,_e,h,t,Ue,je)}),Je=[];return w.forEach((_e,Ne)=>{if(p||!l.some(ne=>ne.route.id===_e.routeId)||k.has(Ne))return;let M=a.fetchers.get(Ne),ee=M&&M.state!=="idle"&&M.data===void 0,de=po(x,_e.path,$);if(!de){if(j&&ee)return;Je.push({key:Ne,routeId:_e.routeId,path:_e.path,matches:null,match:null,request:null,controller:null});return}if(I.has(Ne))return;let je=Lm(de,_e.path),Ue=new AbortController,D=Fl(n,_e.path,Ue.signal),H=null;if(b.has(Ne))b.delete(Ne),H=Kl(r,i,D,de,je,h,t);else if(ee)g&&(H=Kl(r,i,D,de,je,h,t));else{let ne={...fe,defaultShouldRevalidate:ue?!1:g};Qm(je,ne)&&(H=Kl(r,i,D,de,je,h,t,ne))}H&&Je.push({key:Ne,routeId:_e.routeId,path:_e.path,matches:H,match:je,request:D,controller:Ue})}),{dsMatches:we,revalidatingFetchers:Je}}function a_(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Zy(e,t,r){if(e.lazy)return!0;if(!a_(e))return!1;let i=t!=null&&e.id in t,n=r!=null&&r[e.id]!==void 0;return!i&&n?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!i&&!n}function e3(e,t,r){let i=!t||r.route.id!==t.route.id,n=!e.hasOwnProperty(r.route.id);return i||n}function t3(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Qm(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function MO(e,t,r,i,n,a){let l;if(e){let h=i[e];lt(h,`No route found to patch children into: routeId = ${e}`),h.children||(h.children=[]),l=h.children}else l=r;let d=[],f=[];if(t.forEach(h=>{let p=l.find(g=>Jj(h,g));p?f.push({existingRoute:p,newRoute:h}):d.push(h)}),d.length>0){let h=Kc(d,n,[e||"_","patch",String((l==null?void 0:l.length)||"0")],i);l.push(...h)}if(a&&f.length>0)for(let h=0;h<f.length;h++){let{existingRoute:p,newRoute:g}=f[h],b=p,[k]=Kc([g],n,[],{},!0);Object.assign(b,{element:k.element?k.element:b.element,errorElement:k.errorElement?k.errorElement:b.errorElement,hydrateFallbackElement:k.hydrateFallbackElement?k.hydrateFallbackElement:b.hydrateFallbackElement})}}function Jj(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,i)=>{var n;return(n=t.children)==null?void 0:n.some(a=>Jj(r,a))}):!1}var LO=new WeakMap,Yj=({key:e,route:t,manifest:r,mapRouteProperties:i})=>{let n=r[t.id];if(lt(n,"No route found in manifest"),!n.lazy||typeof n.lazy!="object")return;let a=n.lazy[e];if(!a)return;let l=LO.get(n);l||(l={},LO.set(n,l));let d=l[e];if(d)return d;let f=(async()=>{let h=$B(e),g=n[e]!==void 0&&e!=="hasErrorBoundary";if(h)dn(!h,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(g)dn(!1,`Route "${n.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let b=await a();b!=null&&(Object.assign(n,{[e]:b}),Object.assign(n,i(n)))}typeof n.lazy=="object"&&(n.lazy[e]=void 0,Object.values(n.lazy).every(b=>b===void 0)&&(n.lazy=void 0))})();return l[e]=f,f},PO=new WeakMap;function n3(e,t,r,i,n){let a=r[e.id];if(lt(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=PO.get(a);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let g=(async()=>{lt(typeof e.lazy=="function","No lazy route function found");let b=await e.lazy(),k={};for(let w in b){let I=b[w];if(I===void 0)continue;let x=kB(w),j=a[w]!==void 0&&w!=="hasErrorBoundary";x?dn(!x,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):j?dn(!j,`Route "${a.id}" has a static property "${w}" defined but its lazy function is also returning a value for this property. The lazy route property "${w}" will be ignored.`):k[w]=I}Object.assign(a,k),Object.assign(a,{...i(a),lazy:void 0})})();return PO.set(a,g),g.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:g}}let l=Object.keys(e.lazy),d=[],f;for(let p of l){if(n&&n.includes(p))continue;let g=Yj({key:p,route:e,manifest:r,mapRouteProperties:i});g&&(d.push(g),p===t&&(f=g))}let h=d.length>0?Promise.all(d).then(()=>{}):void 0;return h==null||h.catch(()=>{}),f==null||f.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:f}}async function ZO(e){let t=e.matches.filter(n=>n.shouldLoad),r={};return(await Promise.all(t.map(n=>n.resolve()))).forEach((n,a)=>{r[t[a].route.id]=n}),r}async function r3(e){return e.matches.some(t=>t.route.middleware)?Xj(e,()=>ZO(e)):ZO(e)}function Xj(e,t){return i3(e,t,i=>i,f3,r);function r(i,n,a){if(a)return Promise.resolve(Object.assign(a.value,{[n]:{type:"error",result:i}}));{let{matches:l}=e,d=Math.min(Math.max(l.findIndex(h=>h.route.id===n),0),Math.max(l.findIndex(h=>h.unstable_shouldCallHandler()),0)),f=go(l,l[d].route.id).route.id;return Promise.resolve({[f]:{type:"error",result:i}})}}}async function i3(e,t,r,i,n){let{matches:a,request:l,params:d,context:f}=e,h=a.flatMap(g=>g.route.middleware?g.route.middleware.map(b=>[g.route.id,b]):[]);return await Qj({request:l,params:d,context:f},h,t,r,i,n)}async function Qj(e,t,r,i,n,a,l=0){let{request:d}=e;if(d.signal.aborted)throw d.signal.reason??new Error(`Request aborted: ${d.method} ${d.url}`);let f=t[l];if(!f)return await r();let[h,p]=f,g,b=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");try{return g={value:await Qj(e,t,r,i,n,a,l+1)},g.value}catch(k){return g={value:await a(k,h,g)},g.value}};try{let k=await p(e,b),w=k!=null?i(k):void 0;return n(w)?w:g?w??g.value:(g={value:await b()},g.value)}catch(k){return await a(k,h,g)}}function Wj(e,t,r,i,n){let a=Yj({key:"middleware",route:i.route,manifest:t,mapRouteProperties:e}),l=n3(i.route,Wn(r.method)?"action":"loader",t,e,n);return{middleware:a,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function By(e,t,r,i,n,a,l,d=null){let f=!1,h=Wj(e,t,r,i,n);return{...i,_lazyPromises:h,shouldLoad:l,unstable_shouldRevalidateArgs:d,unstable_shouldCallHandler(p){return f=!0,d?typeof p=="boolean"?Qm(i,{...d,defaultShouldRevalidate:p}):Qm(i,d):l},resolve(p){let{lazy:g,loader:b,middleware:k}=i.route,w=f||l||p&&!Wn(r.method)&&(g||b),I=k&&k.length>0&&!b&&!g;return w&&!I?o3({request:r,match:i,lazyHandlerPromise:h==null?void 0:h.handler,lazyRoutePromise:h==null?void 0:h.route,handlerOverride:p,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Kl(e,t,r,i,n,a,l,d=null){return i.map(f=>f.route.id!==n.route.id?{...f,shouldLoad:!1,unstable_shouldRevalidateArgs:d,unstable_shouldCallHandler:()=>!1,_lazyPromises:Wj(e,t,r,f,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:By(e,t,r,f,a,l,!0,d))}async function a3(e,t,r,i,n,a){r.some(h=>{var p;return(p=h._lazyPromises)==null?void 0:p.middleware})&&await Promise.all(r.map(h=>{var p;return(p=h._lazyPromises)==null?void 0:p.middleware}));let l={request:t,params:r[0].params,context:n,matches:r},f=await e({...l,fetcherKey:i,runClientMiddleware:h=>{let p=l;return Xj(p,()=>h({...p,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(h=>{var p,g;return[(p=h._lazyPromises)==null?void 0:p.handler,(g=h._lazyPromises)==null?void 0:g.route]}))}catch{}return f}async function o3({request:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:i,handlerOverride:n,scopedContext:a}){let l,d,f=Wn(e.method),h=f?"action":"loader",p=g=>{let b,k=new Promise((x,$)=>b=$);d=()=>b(),e.signal.addEventListener("abort",d);let w=x=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${h}" [routeId: ${t.route.id}]`)):g({request:e,params:t.params,context:a},...x!==void 0?[x]:[]),I=(async()=>{try{return{type:"data",result:await(n?n($=>w($)):w())}}catch(x){return{type:"error",result:x}}})();return Promise.race([I,k])};try{let g=f?t.route.action:t.route.loader;if(r||i)if(g){let b,[k]=await Promise.all([p(g).catch(w=>{b=w}),r,i]);if(b!==void 0)throw b;l=k}else{await r;let b=f?t.route.action:t.route.loader;if(b)[l]=await Promise.all([p(b),i]);else if(h==="action"){let k=new URL(e.url),w=k.pathname+k.search;throw Fr(405,{method:e.method,pathname:w,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(g)l=await p(g);else{let b=new URL(e.url),k=b.pathname+b.search;throw Fr(404,{pathname:k})}}catch(g){return{type:"error",result:g}}finally{d&&e.signal.removeEventListener("abort",d)}return l}async function u3(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function l3(e){var i,n,a,l,d,f;let{result:t,type:r}=e;if(tI(t)){let h;try{h=await u3(t)}catch(p){return{type:"error",error:p}}return r==="error"?{type:"error",error:new Xm(t.status,t.statusText,h),statusCode:t.status,headers:t.headers}:{type:"data",data:h,statusCode:t.status,headers:t.headers}}return r==="error"?HO(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(i=t.init)==null?void 0:i.status,headers:(n=t.init)!=null&&n.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Xm(((a=t.init)==null?void 0:a.status)||500,void 0,t.data),statusCode:Jc(t)?t.status:void 0,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Jc(t)?t.status:void 0}:HO(t)?{type:"data",data:t.data,statusCode:(d=t.init)==null?void 0:d.status,headers:(f=t.init)!=null&&f.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function s3(e,t,r,i,n){let a=e.headers.get("Location");if(lt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!i_(a)){let l=i.slice(0,i.findIndex(d=>d.route.id===r)+1);a=Py(new URL(t.url),l,n,a),e.headers.set("Location",a)}return e}function BO(e,t,r){if(i_(e)){let i=e,n=i.startsWith("//")?new URL(t.protocol+i):new URL(i),a=Jr(n.pathname,r)!=null;if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function Fl(e,t,r,i){let n=e.createURL(eI(t)).toString(),a={signal:r};if(i&&Wn(i.formMethod)){let{formMethod:l,formEncType:d}=i;a.method=l.toUpperCase(),d==="application/json"?(a.headers=new Headers({"Content-Type":d}),a.body=JSON.stringify(i.json)):d==="text/plain"?a.body=i.text:d==="application/x-www-form-urlencoded"&&i.formData?a.body=Fy(i.formData):a.body=i.formData}return new Request(n,a)}function Fy(e){let t=new URLSearchParams;for(let[r,i]of e.entries())t.append(r,typeof i=="string"?i:i.name);return t}function FO(e){let t=new FormData;for(let[r,i]of e.entries())t.append(r,i);return t}function c3(e,t,r,i=!1,n=!1){let a={},l=null,d,f=!1,h={},p=r&&hr(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let b=g.route.id,k=t[b];if(lt(!du(k),"Cannot handle redirect results in processLoaderData"),hr(k)){let w=k.error;if(p!==void 0&&(w=p,p=void 0),l=l||{},n)l[b]=w;else{let I=go(e,b);l[I.route.id]==null&&(l[I.route.id]=w)}i||(a[b]=Kj),f||(f=!0,d=Jc(k.error)?k.error.status:500),k.headers&&(h[b]=k.headers)}else a[b]=k.data,k.statusCode&&k.statusCode!==200&&!f&&(d=k.statusCode),k.headers&&(h[b]=k.headers)}),p!==void 0&&r&&(l={[r[0]]:p},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:l,statusCode:d||200,loaderHeaders:h}}function VO(e,t,r,i,n,a){let{loaderData:l,errors:d}=c3(t,r,i);return n.filter(f=>!f.matches||f.matches.some(h=>h.shouldLoad)).forEach(f=>{let{key:h,match:p,controller:g}=f;if(g&&g.signal.aborted)return;let b=a[h];if(lt(b,"Did not find corresponding fetcher result"),hr(b)){let k=go(e.matches,p==null?void 0:p.route.id);d&&d[k.route.id]||(d={...d,[k.route.id]:b.error}),e.fetchers.delete(h)}else if(du(b))lt(!1,"Unhandled fetcher revalidation redirect");else{let k=ya(b.data);e.fetchers.set(h,k)}}),{loaderData:l,errors:d}}function qO(e,t,r,i){let n=Object.entries(t).filter(([,a])=>a!==Kj).reduce((a,[l,d])=>(a[l]=d,a),{});for(let a of r){let l=a.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&a.route.loader&&(n[l]=e[l]),i&&i.hasOwnProperty(l))break}return n}function GO(e){return e?hr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function go(e,t){return(t?e.slice(0,e.findIndex(i=>i.route.id===t)+1):[...e]).reverse().find(i=>i.route.hasErrorBoundary===!0)||e[0]}function gm(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Fr(e,{pathname:t,routeId:r,method:i,type:n,message:a}={}){let l="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&t&&r?d=`You made a ${i} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:n==="invalid-body"&&(d="Unable to encode submission body")):e===403?(l="Forbidden",d=`Route "${r}" does not match URL "${t}"`):e===404?(l="Not Found",d=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",i&&t&&r?d=`You made a ${i.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:i&&(d=`Invalid request method "${i.toUpperCase()}"`)),new Xm(e||500,l,new Error(d),!0)}function ym(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[i,n]=t[r];if(du(n))return{key:i,result:n}}}function eI(e){let t=typeof e=="string"?Ao(e):e;return xo({...t,hash:""})}function d3(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function f3(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&m3(r))}function m3(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function h3(e){return tI(e.result)&&HB.has(e.result.status)}function hr(e){return e.type==="error"}function du(e){return(e&&e.type)==="redirect"}function HO(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function tI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function v3(e){return GB.has(e.toUpperCase())}function Wn(e){return VB.has(e.toUpperCase())}function o_(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Lm(e,t){let r=typeof t=="string"?Ao(t).search:t.search;if(e[e.length-1].route.index&&o_(r||""))return e[e.length-1];let i=qj(e);return i[i.length-1]}function KO(e){let{formMethod:t,formAction:r,formEncType:i,text:n,formData:a,json:l}=e;if(!(!t||!r||!i)){if(n!=null)return{formMethod:t,formAction:r,formEncType:i,formData:void 0,json:void 0,text:n};if(a!=null)return{formMethod:t,formAction:r,formEncType:i,formData:a,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:r,formEncType:i,formData:void 0,json:l,text:void 0}}}function ly(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function p3(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function xc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function g3(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ya(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function y3(e,t){try{let r=e.sessionStorage.getItem(Hj);if(r){let i=JSON.parse(r);for(let[n,a]of Object.entries(i||{}))a&&Array.isArray(a)&&t.set(n,new Set(a||[]))}}catch{}}function b3(e,t){if(t.size>0){let r={};for(let[i,n]of t)r[i]=[...n];try{e.sessionStorage.setItem(Hj,JSON.stringify(r))}catch(i){dn(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function _3(){let e,t,r=new Promise((i,n)=>{e=async a=>{i(a);try{await r}catch{}},t=async a=>{n(a);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var Zu=S.createContext(null);Zu.displayName="DataRouter";var gd=S.createContext(null);gd.displayName="DataRouterState";S.createContext(!1);var u_=S.createContext({isTransitioning:!1});u_.displayName="ViewTransition";var nI=S.createContext(new Map);nI.displayName="Fetchers";var $3=S.createContext(null);$3.displayName="Await";var Ki=S.createContext(null);Ki.displayName="Navigation";var Dh=S.createContext(null);Dh.displayName="Location";var xi=S.createContext({outlet:null,matches:[],isDataRoute:!1});xi.displayName="Route";var l_=S.createContext(null);l_.displayName="RouteError";function S3(e,{relative:t}={}){lt(yd(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=S.useContext(Ki),{hash:n,pathname:a,search:l}=bd(e,{relative:t}),d=a;return r!=="/"&&(d=a==="/"?r:Bi([r,a])),i.createHref({pathname:d,search:l,hash:n})}function yd(){return S.useContext(Dh)!=null}function Ra(){return lt(yd(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Dh).location}var rI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iI(e){S.useContext(Ki).static||S.useLayoutEffect(e)}function Uh(){let{isDataRoute:e}=S.useContext(xi);return e?C3():k3()}function k3(){lt(yd(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Zu),{basename:t,navigator:r}=S.useContext(Ki),{matches:i}=S.useContext(xi),{pathname:n}=Ra(),a=JSON.stringify(n_(i)),l=S.useRef(!1);return iI(()=>{l.current=!0}),S.useCallback((f,h={})=>{if(dn(l.current,rI),!l.current)return;if(typeof f=="number"){r.go(f);return}let p=r_(f,JSON.parse(a),n,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Bi([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,a,n,e])}var w3=S.createContext(null);function x3(e){let t=S.useContext(xi).outlet;return S.useMemo(()=>t&&S.createElement(w3.Provider,{value:e},t),[t,e])}function aI(){let{matches:e}=S.useContext(xi),t=e[e.length-1];return t?t.params:{}}function bd(e,{relative:t}={}){let{matches:r}=S.useContext(xi),{pathname:i}=Ra(),n=JSON.stringify(n_(r));return S.useMemo(()=>r_(e,JSON.parse(n),i,t==="path"),[e,n,i,t])}function O3(e,t,r,i,n){lt(yd(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=S.useContext(Ki),{matches:l}=S.useContext(xi),d=l[l.length-1],f=d?d.params:{},h=d?d.pathname:"/",p=d?d.pathnameBase:"/",g=d&&d.route;{let j=g&&g.path||"";uI(h,!g||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${j}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
-
|
|
61
|
-
Please change the parent <Route path="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let b=Ra(),k;k=b;let w=k.pathname||"/",I=w;if(p!=="/"){let j=p.replace(/^\//,"").split("/");I="/"+w.replace(/^\//,"").split("/").slice(j.length).join("/")}let x=po(e,{pathname:I});return dn(g||x!=null,`No routes matched location "${k.pathname}${k.search}${k.hash}" `),dn(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${k.pathname}${k.search}${k.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),T3(x&&x.map(j=>Object.assign({},j,{params:Object.assign({},f,j.params),pathname:Bi([p,a.encodeLocation?a.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?p:Bi([p,a.encodeLocation?a.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),l,r,i,n)}function E3(){let e=oI(),t=Jc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:a},"ErrorBoundary")," or"," ",S.createElement("code",{style:a},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:n},r):null,l)}var N3=S.createElement(E3,null),j3=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(xi.Provider,{value:this.props.routeContext},S.createElement(l_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function I3({routeContext:e,match:t,children:r}){let i=S.useContext(Zu);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(xi.Provider,{value:e},r)}function T3(e,t=[],r=null,i=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=r==null?void 0:r.errors;if(l!=null){let h=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);lt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,h+1))}let d=!1,f=-1;if(r)for(let h=0;h<a.length;h++){let p=a[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=h),p.route.id){let{loaderData:g,errors:b}=r,k=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||k){d=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((h,p,g)=>{let b,k=!1,w=null,I=null;r&&(b=l&&p.route.id?l[p.route.id]:void 0,w=p.route.errorElement||N3,d&&(f<0&&g===0?(uI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,I=null):f===g&&(k=!0,I=p.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,g+1)),$=()=>{let j;return b?j=w:k?j=I:p.route.Component?j=S.createElement(p.route.Component,null):p.route.element?j=p.route.element:j=h,S.createElement(I3,{match:p,routeContext:{outlet:h,matches:x,isDataRoute:r!=null},children:j})};return r&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?S.createElement(j3,{location:r.location,revalidation:r.revalidation,component:w,error:b,children:$(),routeContext:{outlet:null,matches:x,isDataRoute:!0},unstable_onError:i}):$()},null)}function s_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function z3(e){let t=S.useContext(Zu);return lt(t,s_(e)),t}function A3(e){let t=S.useContext(gd);return lt(t,s_(e)),t}function D3(e){let t=S.useContext(xi);return lt(t,s_(e)),t}function c_(e){let t=D3(e),r=t.matches[t.matches.length-1];return lt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function U3(){return c_("useRouteId")}function oI(){var i;let e=S.useContext(l_),t=A3("useRouteError"),r=c_("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[r]}function C3(){let{router:e}=z3("useNavigate"),t=c_("useNavigate"),r=S.useRef(!1);return iI(()=>{r.current=!0}),S.useCallback(async(n,a={})=>{dn(r.current,rI),r.current&&(typeof n=="number"?e.navigate(n):await e.navigate(n,{fromRouteId:t,...a}))},[e,t])}var JO={};function uI(e,t,r){!t&&!JO[e]&&(JO[e]=!0,dn(!1,r))}var YO={};function XO(e,t){!e&&!YO[t]&&(YO[t]=!0,console.warn(t))}function R3(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&dn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:S.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&dn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&dn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var M3=["HydrateFallback","hydrateFallbackElement"],L3=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function P3({router:e,flushSync:t,unstable_onError:r}){let[i,n]=S.useState(e.state),[a,l]=S.useState(),[d,f]=S.useState({isTransitioning:!1}),[h,p]=S.useState(),[g,b]=S.useState(),[k,w]=S.useState(),I=S.useRef(new Map),x=S.useCallback(T=>{n(E=>(T.errors&&r&&Object.entries(T.errors).forEach(([C,ae])=>{var ue;((ue=E.errors)==null?void 0:ue[C])!==ae&&r(ae)}),T))},[r]),$=S.useCallback((T,{deletedFetchers:E,flushSync:C,viewTransitionOpts:ae})=>{T.fetchers.forEach((fe,we)=>{fe.data!==void 0&&I.current.set(we,fe.data)}),E.forEach(fe=>I.current.delete(fe)),XO(C===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ue=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(XO(ae==null||ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!ae||!ue){t&&C?t(()=>x(T)):S.startTransition(()=>x(T));return}if(t&&C){t(()=>{g&&(h&&h.resolve(),g.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})});let fe=e.window.document.startViewTransition(()=>{t(()=>x(T))});fe.finished.finally(()=>{t(()=>{p(void 0),b(void 0),l(void 0),f({isTransitioning:!1})})}),t(()=>b(fe));return}g?(h&&h.resolve(),g.skipTransition(),w({state:T,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})):(l(T),f({isTransitioning:!0,flushSync:!1,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation}))},[e.window,t,g,h,x]);S.useLayoutEffect(()=>e.subscribe($),[e,$]),S.useEffect(()=>{d.isTransitioning&&!d.flushSync&&p(new L3)},[d]),S.useEffect(()=>{if(h&&a&&e.window){let T=a,E=h.promise,C=e.window.document.startViewTransition(async()=>{S.startTransition(()=>x(T)),await E});C.finished.finally(()=>{p(void 0),b(void 0),l(void 0),f({isTransitioning:!1})}),b(C)}},[a,h,e.window,x]),S.useEffect(()=>{h&&a&&i.location.key===a.location.key&&h.resolve()},[h,g,i.location,a]),S.useEffect(()=>{!d.isTransitioning&&k&&(l(k.state),f({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}),w(void 0))},[d.isTransitioning,k]);let j=S.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:T=>e.navigate(T),push:(T,E,C)=>e.navigate(T,{state:E,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(T,E,C)=>e.navigate(T,{replace:!0,state:E,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[e]),N=e.basename||"/",z=S.useMemo(()=>({router:e,navigator:j,static:!1,basename:N,unstable_onError:r}),[e,j,N,r]);return S.createElement(S.Fragment,null,S.createElement(Zu.Provider,{value:z},S.createElement(gd.Provider,{value:i},S.createElement(nI.Provider,{value:I.current},S.createElement(u_.Provider,{value:d},S.createElement(F3,{basename:N,location:i.location,navigationType:i.historyAction,navigator:j},S.createElement(Z3,{routes:e.routes,future:e.future,state:i,unstable_onError:r})))))),null)}var Z3=S.memo(B3);function B3({routes:e,future:t,state:r,unstable_onError:i}){return O3(e,void 0,r,i,t)}function lI(e){return x3(e.context)}function F3({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:n,static:a=!1}){lt(!yd(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),d=S.useMemo(()=>({basename:l,navigator:n,static:a,future:{}}),[l,n,a]);typeof r=="string"&&(r=Ao(r));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:b="default"}=r,k=S.useMemo(()=>{let w=Jr(f,l);return w==null?null:{location:{pathname:w,search:h,hash:p,state:g,key:b},navigationType:i}},[l,f,h,p,g,b,i]);return dn(k!=null,`<Router basename="${l}"> is not able to match the URL "${f}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:S.createElement(Ki.Provider,{value:d},S.createElement(Dh.Provider,{children:t,value:k}))}var Pm="get",Zm="application/x-www-form-urlencoded";function Ch(e){return e!=null&&typeof e.tagName=="string"}function V3(e){return Ch(e)&&e.tagName.toLowerCase()==="button"}function q3(e){return Ch(e)&&e.tagName.toLowerCase()==="form"}function G3(e){return Ch(e)&&e.tagName.toLowerCase()==="input"}function H3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function K3(e,t){return e.button===0&&(!t||t==="_self")&&!H3(e)}var bm=null;function J3(){if(bm===null)try{new FormData(document.createElement("form"),0),bm=!1}catch{bm=!0}return bm}var Y3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sy(e){return e!=null&&!Y3.has(e)?(dn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zm}"`),null):e}function X3(e,t){let r,i,n,a,l;if(q3(e)){let d=e.getAttribute("action");i=d?Jr(d,t):null,r=e.getAttribute("method")||Pm,n=sy(e.getAttribute("enctype"))||Zm,a=new FormData(e)}else if(V3(e)||G3(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(i=f?Jr(f,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||Pm,n=sy(e.getAttribute("formenctype"))||sy(d.getAttribute("enctype"))||Zm,a=new FormData(d,e),!J3()){let{name:h,type:p,value:g}=e;if(p==="image"){let b=h?`${h}.`:"";a.append(`${b}x`,"0"),a.append(`${b}y`,"0")}else h&&a.append(h,g)}}else{if(Ch(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pm,i=null,n=Zm,l=e}return a&&n==="text/plain"&&(l=a,a=void 0),{action:i,method:r.toLowerCase(),encType:n,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function d_(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Q3(e,t,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${r}`:t&&Jr(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function W3(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eF(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tF(e,t,r){let i=await Promise.all(e.map(async n=>{let a=t.routes[n.route.id];if(a){let l=await W3(a,r);return l.links?l.links():[]}return[]}));return aF(i.flat(1).filter(eF).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function QO(e,t,r,i,n,a){let l=(f,h)=>r[h]?f.route.id!==r[h].route.id:!0,d=(f,h)=>{var p;return r[h].pathname!==f.pathname||((p=r[h].route.path)==null?void 0:p.endsWith("*"))&&r[h].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,h)=>l(f,h)||d(f,h)):a==="data"?t.filter((f,h)=>{var g;let p=i.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(l(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let b=f.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function nF(e,t,{includeHydrateFallback:r}={}){return rF(e.map(i=>{let n=t.routes[i.route.id];if(!n)return[];let a=[n.module];return n.clientActionModule&&(a=a.concat(n.clientActionModule)),n.clientLoaderModule&&(a=a.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(a=a.concat(n.hydrateFallbackModule)),n.imports&&(a=a.concat(n.imports)),a}).flat(1))}function rF(e){return[...new Set(e)]}function iF(e){let t={},r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function aF(e,t){let r=new Set;return new Set(t),e.reduce((i,n)=>{let a=JSON.stringify(iF(n));return r.has(a)||(r.add(a),i.push({key:a,link:n})),i},[])}function sI(){let e=S.useContext(Zu);return d_(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function oF(){let e=S.useContext(gd);return d_(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var f_=S.createContext(void 0);f_.displayName="FrameworkContext";function cI(){let e=S.useContext(f_);return d_(e,"You must render this element inside a <HydratedRouter> element"),e}function uF(e,t){let r=S.useContext(f_),[i,n]=S.useState(!1),[a,l]=S.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:p,onTouchStart:g}=t,b=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let I=$=>{$.forEach(j=>{l(j.isIntersecting)})},x=new IntersectionObserver(I,{threshold:.5});return b.current&&x.observe(b.current),()=>{x.disconnect()}}},[e]),S.useEffect(()=>{if(i){let I=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(I)}}},[i]);let k=()=>{n(!0)},w=()=>{n(!1),l(!1)};return r?e!=="intent"?[a,b,{}]:[a,b,{onFocus:Oc(d,k),onBlur:Oc(f,w),onMouseEnter:Oc(h,k),onMouseLeave:Oc(p,w),onTouchStart:Oc(g,k)}]:[!1,b,{}]}function Oc(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function lF({page:e,...t}){let{router:r}=sI(),i=S.useMemo(()=>po(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?S.createElement(cF,{page:e,matches:i,...t}):null}function sF(e){let{manifest:t,routeModules:r}=cI(),[i,n]=S.useState([]);return S.useEffect(()=>{let a=!1;return tF(e,t,r).then(l=>{a||n(l)}),()=>{a=!0}},[e,t,r]),i}function cF({page:e,matches:t,...r}){let i=Ra(),{manifest:n,routeModules:a}=cI(),{basename:l}=sI(),{loaderData:d,matches:f}=oF(),h=S.useMemo(()=>QO(e,t,f,n,i,"data"),[e,t,f,n,i]),p=S.useMemo(()=>QO(e,t,f,n,i,"assets"),[e,t,f,n,i]),g=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let w=new Set,I=!1;if(t.forEach($=>{var N;let j=n.routes[$.route.id];!j||!j.hasLoader||(!h.some(z=>z.route.id===$.route.id)&&$.route.id in d&&((N=a[$.route.id])!=null&&N.shouldRevalidate)||j.hasClientLoader?I=!0:w.add($.route.id))}),w.size===0)return[];let x=Q3(e,l,"data");return I&&w.size>0&&x.searchParams.set("_routes",t.filter($=>w.has($.route.id)).map($=>$.route.id).join(",")),[x.pathname+x.search]},[l,d,i,n,h,t,e,a]),b=S.useMemo(()=>nF(p,n),[p,n]),k=sF(p);return S.createElement(S.Fragment,null,g.map(w=>S.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),b.map(w=>S.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),k.map(({key:w,link:I})=>S.createElement("link",{key:w,nonce:r.nonce,...I})))}function dF(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var dI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dI&&(window.__reactRouterVersion="7.9.4")}catch{}function fF(e,t){return QB({basename:t==null?void 0:t.basename,getContext:t==null?void 0:t.getContext,future:t==null?void 0:t.future,history:gB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||mF(),routes:e,mapRouteProperties:R3,hydrationRouteProperties:M3,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function mF(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:hF(e.errors)}),e}function hF(e){if(!e)return null;let t=Object.entries(e),r={};for(let[i,n]of t)if(n&&n.__type==="RouteErrorResponse")r[i]=new Xm(n.status,n.statusText,n.data,n.internal===!0);else if(n&&n.__type==="Error"){if(n.__subType){let a=window[n.__subType];if(typeof a=="function")try{let l=new a(n.message);l.stack="",r[i]=l}catch{}}if(r[i]==null){let a=new Error(n.message);a.stack="",r[i]=a}}else r[i]=n;return r}var fI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$r=S.forwardRef(function({onClick:t,discover:r="render",prefetch:i="none",relative:n,reloadDocument:a,replace:l,state:d,target:f,to:h,preventScrollReset:p,viewTransition:g,...b},k){let{basename:w}=S.useContext(Ki),I=typeof h=="string"&&fI.test(h),x,$=!1;if(typeof h=="string"&&I&&(x=h,dI))try{let ue=new URL(window.location.href),fe=h.startsWith("//")?new URL(ue.protocol+h):new URL(h),we=Jr(fe.pathname,w);fe.origin===ue.origin&&we!=null?h=we+fe.search+fe.hash:$=!0}catch{dn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=S3(h,{relative:n}),[N,z,T]=uF(i,b),E=yF(h,{replace:l,state:d,target:f,preventScrollReset:p,relative:n,viewTransition:g});function C(ue){t&&t(ue),ue.defaultPrevented||E(ue)}let ae=S.createElement("a",{...b,...T,href:x||j,onClick:$||a?t:C,ref:dF(k,z),target:f,"data-discover":!I&&r==="render"?"true":void 0});return N&&!I?S.createElement(S.Fragment,null,ae,S.createElement(lF,{page:j})):ae});$r.displayName="Link";var vF=S.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:i="",end:n=!1,style:a,to:l,viewTransition:d,children:f,...h},p){let g=bd(l,{relative:h.relative}),b=Ra(),k=S.useContext(gd),{navigator:w,basename:I}=S.useContext(Ki),x=k!=null&&kF(g)&&d===!0,$=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,j=b.pathname,N=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;r||(j=j.toLowerCase(),N=N?N.toLowerCase():null,$=$.toLowerCase()),N&&I&&(N=Jr(N,I)||N);const z=$!=="/"&&$.endsWith("/")?$.length-1:$.length;let T=j===$||!n&&j.startsWith($)&&j.charAt(z)==="/",E=N!=null&&(N===$||!n&&N.startsWith($)&&N.charAt($.length)==="/"),C={isActive:T,isPending:E,isTransitioning:x},ae=T?t:void 0,ue;typeof i=="function"?ue=i(C):ue=[i,T?"active":null,E?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let fe=typeof a=="function"?a(C):a;return S.createElement($r,{...h,"aria-current":ae,className:ue,ref:p,style:fe,to:l,viewTransition:d},typeof f=="function"?f(C):f)});vF.displayName="NavLink";var pF=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:n,state:a,method:l=Pm,action:d,onSubmit:f,relative:h,preventScrollReset:p,viewTransition:g,...b},k)=>{let w=$F(),I=SF(d,{relative:h}),x=l.toLowerCase()==="get"?"get":"post",$=typeof d=="string"&&fI.test(d),j=N=>{if(f&&f(N),N.defaultPrevented)return;N.preventDefault();let z=N.nativeEvent.submitter,T=(z==null?void 0:z.getAttribute("formmethod"))||l;w(z||N.currentTarget,{fetcherKey:t,method:T,navigate:r,replace:n,state:a,relative:h,preventScrollReset:p,viewTransition:g})};return S.createElement("form",{ref:k,method:x,action:I,onSubmit:i?f:j,...b,"data-discover":!$&&e==="render"?"true":void 0})});pF.displayName="Form";function gF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mI(e){let t=S.useContext(Zu);return lt(t,gF(e)),t}function yF(e,{target:t,replace:r,state:i,preventScrollReset:n,relative:a,viewTransition:l}={}){let d=Uh(),f=Ra(),h=bd(e,{relative:a});return S.useCallback(p=>{if(K3(p,t)){p.preventDefault();let g=r!==void 0?r:xo(f)===xo(h);d(e,{replace:g,state:i,preventScrollReset:n,relative:a,viewTransition:l})}},[f,d,h,r,i,t,e,n,a,l])}var bF=0,_F=()=>`__${String(++bF)}__`;function $F(){let{router:e}=mI("useSubmit"),{basename:t}=S.useContext(Ki),r=U3();return S.useCallback(async(i,n={})=>{let{action:a,method:l,encType:d,formData:f,body:h}=X3(i,t);if(n.navigate===!1){let p=n.fetcherKey||_F();await e.fetch(p,r,n.action||a,{preventScrollReset:n.preventScrollReset,formData:f,body:h,formMethod:n.method||l,formEncType:n.encType||d,flushSync:n.flushSync})}else await e.navigate(n.action||a,{preventScrollReset:n.preventScrollReset,formData:f,body:h,formMethod:n.method||l,formEncType:n.encType||d,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[e,t,r])}function SF(e,{relative:t}={}){let{basename:r}=S.useContext(Ki),i=S.useContext(xi);lt(i,"useFormAction must be used inside a RouteContext");let[n]=i.matches.slice(-1),a={...bd(e||".",{relative:t})},l=Ra();if(e==null){a.search=l.search;let d=new URLSearchParams(a.search),f=d.getAll("index");if(f.some(p=>p==="")){d.delete("index"),f.filter(g=>g).forEach(g=>d.append("index",g));let p=d.toString();a.search=p?`?${p}`:""}}return(!e||e===".")&&n.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Bi([r,a.pathname])),xo(a)}function kF(e,{relative:t}={}){let r=S.useContext(u_);lt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=mI("useViewTransitionState"),n=bd(e,{relative:t});if(!r.isTransitioning)return!1;let a=Jr(r.currentLocation.pathname,i)||r.currentLocation.pathname,l=Jr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Ym(n.pathname,l)!=null||Ym(n.pathname,a)!=null}var m_=Pj();const fu=ws(m_);function wF(e){return S.createElement(P3,{flushSync:m_.flushSync,...e})}var Rh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xF={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},yo,t_,Tj,OF=(Tj=class{constructor(){pt(this,yo,xF);pt(this,t_,!1)}setTimeoutProvider(e){Ke(this,yo,e)}setTimeout(e,t){return X(this,yo).setTimeout(e,t)}clearTimeout(e){X(this,yo).clearTimeout(e)}setInterval(e,t){return X(this,yo).setInterval(e,t)}clearInterval(e){X(this,yo).clearInterval(e)}},yo=new WeakMap,t_=new WeakMap,Tj),Vy=new OF;function EF(e){setTimeout(e,0)}var Mh=typeof window>"u"||"Deno"in globalThis;function ci(){}function NF(e,t){return typeof e=="function"?e(t):e}function jF(e){return typeof e=="number"&&e>=0&&e!==1/0}function IF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qy(e,t){return typeof e=="function"?e(t):e}function TF(e,t){return typeof e=="function"?e(t):e}function WO(e,t){const{type:r="all",exact:i,fetchStatus:n,predicate:a,queryKey:l,stale:d}=e;if(l){if(i){if(t.queryHash!==h_(l,t.options))return!1}else if(!Xc(t.queryKey,l))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||n&&n!==t.state.fetchStatus||a&&!a(t))}function eE(e,t){const{exact:r,status:i,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Yc(t.options.mutationKey)!==Yc(a))return!1}else if(!Xc(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function h_(e,t){return((t==null?void 0:t.queryKeyHashFn)||Yc)(e)}function Yc(e){return JSON.stringify(e,(t,r)=>Gy(r)?Object.keys(r).sort().reduce((i,n)=>(i[n]=r[n],i),{}):r)}function Xc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Xc(e[r],t[r])):!1}var zF=Object.prototype.hasOwnProperty;function hI(e,t){if(e===t)return e;const r=tE(e)&&tE(t);if(!r&&!(Gy(e)&&Gy(t)))return t;const n=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),l=a.length,d=r?new Array(l):{};let f=0;for(let h=0;h<l;h++){const p=r?h:a[h],g=e[p],b=t[p];if(g===b){d[p]=g,(r?h<n:zF.call(e,p))&&f++;continue}if(g===null||b===null||typeof g!="object"||typeof b!="object"){d[p]=b;continue}const k=hI(g,b);d[p]=k,k===g&&f++}return n===l&&f===n?e:d}function tE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gy(e){if(!nE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!nE(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function nE(e){return Object.prototype.toString.call(e)==="[object Object]"}function AF(e){return new Promise(t=>{Vy.setTimeout(t,e)})}function DF(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?hI(e,t):t}function UF(e,t,r=0){const i=[...e,t];return r&&i.length>r?i.slice(1):i}function CF(e,t,r=0){const i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var v_=Symbol();function vI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===v_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var gu,bo,Xl,zj,RF=(zj=class extends Rh{constructor(){super();pt(this,gu);pt(this,bo);pt(this,Xl);Ke(this,Xl,t=>{if(!Mh&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){X(this,bo)||this.setEventListener(X(this,Xl))}onUnsubscribe(){var t;this.hasListeners()||((t=X(this,bo))==null||t.call(this),Ke(this,bo,void 0))}setEventListener(t){var r;Ke(this,Xl,t),(r=X(this,bo))==null||r.call(this),Ke(this,bo,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){X(this,gu)!==t&&(Ke(this,gu,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof X(this,gu)=="boolean"?X(this,gu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},gu=new WeakMap,bo=new WeakMap,Xl=new WeakMap,zj),pI=new RF;function MF(){let e,t;const r=new Promise((n,a)=>{e=n,t=a});r.status="pending",r.catch(()=>{});function i(n){Object.assign(r,n),delete r.resolve,delete r.reject}return r.resolve=n=>{i({status:"fulfilled",value:n}),e(n)},r.reject=n=>{i({status:"rejected",reason:n}),t(n)},r}var LF=EF;function PF(){let e=[],t=0,r=d=>{d()},i=d=>{d()},n=LF;const a=d=>{t?e.push(d):n(()=>{r(d)})},l=()=>{const d=e;e=[],d.length&&n(()=>{i(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||l()}return f},batchCalls:d=>(...f)=>{a(()=>{d(...f)})},schedule:a,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{n=d}}}var Fn=PF(),Ql,_o,Wl,Aj,ZF=(Aj=class extends Rh{constructor(){super();pt(this,Ql,!0);pt(this,_o);pt(this,Wl);Ke(this,Wl,t=>{if(!Mh&&window.addEventListener){const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){X(this,_o)||this.setEventListener(X(this,Wl))}onUnsubscribe(){var t;this.hasListeners()||((t=X(this,_o))==null||t.call(this),Ke(this,_o,void 0))}setEventListener(t){var r;Ke(this,Wl,t),(r=X(this,_o))==null||r.call(this),Ke(this,_o,t(this.setOnline.bind(this)))}setOnline(t){X(this,Ql)!==t&&(Ke(this,Ql,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return X(this,Ql)}},Ql=new WeakMap,_o=new WeakMap,Wl=new WeakMap,Aj),Wm=new ZF;function BF(e){return Math.min(1e3*2**e,3e4)}function gI(e){return(e??"online")==="online"?Wm.isOnline():!0}var Hy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yI(e){let t=!1,r=0,i;const n=MF(),a=()=>n.status!=="pending",l=I=>{var x;if(!a()){const $=new Hy(I);b($),(x=e.onCancel)==null||x.call(e,$)}},d=()=>{t=!0},f=()=>{t=!1},h=()=>pI.isFocused()&&(e.networkMode==="always"||Wm.isOnline())&&e.canRun(),p=()=>gI(e.networkMode)&&e.canRun(),g=I=>{a()||(i==null||i(),n.resolve(I))},b=I=>{a()||(i==null||i(),n.reject(I))},k=()=>new Promise(I=>{var x;i=$=>{(a()||h())&&I($)},(x=e.onPause)==null||x.call(e)}).then(()=>{var I;i=void 0,a()||(I=e.onContinue)==null||I.call(e)}),w=()=>{if(a())return;let I;const x=r===0?e.initialPromise:void 0;try{I=x??e.fn()}catch($){I=Promise.reject($)}Promise.resolve(I).then(g).catch($=>{var E;if(a())return;const j=e.retry??(Mh?0:3),N=e.retryDelay??BF,z=typeof N=="function"?N(r,$):N,T=j===!0||typeof j=="number"&&r<j||typeof j=="function"&&j(r,$);if(t||!T){b($);return}r++,(E=e.onFail)==null||E.call(e,r,$),AF(z).then(()=>h()?void 0:k()).then(()=>{t?b($):w()})})};return{promise:n,status:()=>n.status,cancel:l,continue:()=>(i==null||i(),n),cancelRetry:d,continueRetry:f,canStart:p,start:()=>(p()?w():k().then(w),n)}}var yu,Dj,bI=(Dj=class{constructor(){pt(this,yu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jF(this.gcTime)&&Ke(this,yu,Vy.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mh?1/0:300*1e3))}clearGcTimeout(){X(this,yu)&&(Vy.clearTimeout(X(this,yu)),Ke(this,yu,void 0))}},yu=new WeakMap,Dj),bu,es,Br,_u,_n,hd,$u,di,ba,Uj,FF=(Uj=class extends bI{constructor(t){super();pt(this,di);pt(this,bu);pt(this,es);pt(this,Br);pt(this,_u);pt(this,_n);pt(this,hd);pt(this,$u);Ke(this,$u,!1),Ke(this,hd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ke(this,_u,t.client),Ke(this,Br,X(this,_u).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ke(this,bu,rE(this.options)),this.state=t.state??X(this,bu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=X(this,_n))==null?void 0:t.promise}setOptions(t){if(this.options={...X(this,hd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=rE(this.options);r.data!==void 0&&(this.setData(r.data,{updatedAt:r.dataUpdatedAt,manual:!0}),Ke(this,bu,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&X(this,Br).remove(this)}setData(t,r){const i=DF(this.state.data,t,this.options);return Un(this,di,ba).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(t,r){Un(this,di,ba).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var i,n;const r=(i=X(this,_n))==null?void 0:i.promise;return(n=X(this,_n))==null||n.cancel(t),r?r.then(ci).catch(ci):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(X(this,bu))}isActive(){return this.observers.some(t=>TF(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===v_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>qy(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!IF(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=X(this,_n))==null||r.continue()}onOnline(){var r;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=X(this,_n))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),X(this,Br).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(X(this,_n)&&(X(this,$u)?X(this,_n).cancel({revert:!0}):X(this,_n).cancelRetry()),this.scheduleGc()),X(this,Br).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Un(this,di,ba).call(this,{type:"invalidate"})}async fetch(t,r){var f,h,p,g,b,k,w,I,x,$,j,N;if(this.state.fetchStatus!=="idle"&&((f=X(this,_n))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(X(this,_n))return X(this,_n).continueRetry(),X(this,_n).promise}if(t&&this.setOptions(t),!this.options.queryFn){const z=this.observers.find(T=>T.options.queryFn);z&&this.setOptions(z.options)}const i=new AbortController,n=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(Ke(this,$u,!0),i.signal)})},a=()=>{const z=vI(this.options,r),E=(()=>{const C={client:X(this,_u),queryKey:this.queryKey,meta:this.meta};return n(C),C})();return Ke(this,$u,!1),this.options.persister?this.options.persister(z,E,this):z(E)},d=(()=>{const z={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:X(this,_u),state:this.state,fetchFn:a};return n(z),z})();(h=this.options.behavior)==null||h.onFetch(d,this),Ke(this,es,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=d.fetchOptions)==null?void 0:p.meta))&&Un(this,di,ba).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),Ke(this,_n,yI({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:z=>{z instanceof Hy&&z.revert&&this.setState({...X(this,es),fetchStatus:"idle"}),i.abort()},onFail:(z,T)=>{Un(this,di,ba).call(this,{type:"failed",failureCount:z,error:T})},onPause:()=>{Un(this,di,ba).call(this,{type:"pause"})},onContinue:()=>{Un(this,di,ba).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const z=await X(this,_n).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(k=(b=X(this,Br).config).onSuccess)==null||k.call(b,z,this),(I=(w=X(this,Br).config).onSettled)==null||I.call(w,z,this.state.error,this),z}catch(z){if(z instanceof Hy){if(z.silent)return X(this,_n).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw Un(this,di,ba).call(this,{type:"error",error:z}),($=(x=X(this,Br).config).onError)==null||$.call(x,z,this),(N=(j=X(this,Br).config).onSettled)==null||N.call(j,this.state.data,z,this),z}finally{this.scheduleGc()}}},bu=new WeakMap,es=new WeakMap,Br=new WeakMap,_u=new WeakMap,_n=new WeakMap,hd=new WeakMap,$u=new WeakMap,di=new WeakSet,ba=function(t){const r=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...VF(i.data,this.options),fetchMeta:t.meta??null};case"success":const n={...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ke(this,es,t.manual?n:void 0),n;case"error":const a=t.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=r(this.state),Fn.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),X(this,Br).notify({query:this,type:"updated",action:t})})},Uj);function VF(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function iE(e){return{onFetch:(t,r)=>{var p,g,b,k,w;const i=t.options,n=(b=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,a=((k=t.state.data)==null?void 0:k.pages)||[],l=((w=t.state.data)==null?void 0:w.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let I=!1;const x=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?I=!0:t.signal.addEventListener("abort",()=>{I=!0}),t.signal)})},$=vI(t.options,t.fetchOptions),j=async(N,z,T)=>{if(I)return Promise.reject();if(z==null&&N.pages.length)return Promise.resolve(N);const C=(()=>{const we={client:t.client,queryKey:t.queryKey,pageParam:z,direction:T?"backward":"forward",meta:t.options.meta};return x(we),we})(),ae=await $(C),{maxPages:ue}=t.options,fe=T?CF:UF;return{pages:fe(N.pages,ae,ue),pageParams:fe(N.pageParams,z,ue)}};if(n&&a.length){const N=n==="backward",z=N?qF:aE,T={pages:a,pageParams:l},E=z(i,T);d=await j(T,E,N)}else{const N=e??a.length;do{const z=f===0?l[0]??i.initialPageParam:aE(i,d);if(f>0&&z==null)break;d=await j(d,z),f++}while(f<N)}return d};t.options.persister?t.fetchFn=()=>{var I,x;return(x=(I=t.options).persister)==null?void 0:x.call(I,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function aE(e,{pages:t,pageParams:r}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function qF(e,{pages:t,pageParams:r}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,r[0],r):void 0}var vd,Ri,Bn,Su,Mi,ho,Cj,GF=(Cj=class extends bI{constructor(t){super();pt(this,Mi);pt(this,vd);pt(this,Ri);pt(this,Bn);pt(this,Su);Ke(this,vd,t.client),this.mutationId=t.mutationId,Ke(this,Bn,t.mutationCache),Ke(this,Ri,[]),this.state=t.state||HF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){X(this,Ri).includes(t)||(X(this,Ri).push(t),this.clearGcTimeout(),X(this,Bn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ke(this,Ri,X(this,Ri).filter(r=>r!==t)),this.scheduleGc(),X(this,Bn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){X(this,Ri).length||(this.state.status==="pending"?this.scheduleGc():X(this,Bn).remove(this))}continue(){var t;return((t=X(this,Su))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,d,f,h,p,g,b,k,w,I,x,$,j,N,z,T,E,C,ae,ue;const r=()=>{Un(this,Mi,ho).call(this,{type:"continue"})},i={client:X(this,vd),meta:this.options.meta,mutationKey:this.options.mutationKey};Ke(this,Su,yI({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(fe,we)=>{Un(this,Mi,ho).call(this,{type:"failed",failureCount:fe,error:we})},onPause:()=>{Un(this,Mi,ho).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>X(this,Bn).canRun(this)}));const n=this.state.status==="pending",a=!X(this,Su).canStart();try{if(n)r();else{Un(this,Mi,ho).call(this,{type:"pending",variables:t,isPaused:a}),await((d=(l=X(this,Bn).config).onMutate)==null?void 0:d.call(l,t,this,i));const we=await((h=(f=this.options).onMutate)==null?void 0:h.call(f,t,i));we!==this.state.context&&Un(this,Mi,ho).call(this,{type:"pending",context:we,variables:t,isPaused:a})}const fe=await X(this,Su).start();return await((g=(p=X(this,Bn).config).onSuccess)==null?void 0:g.call(p,fe,t,this.state.context,this,i)),await((k=(b=this.options).onSuccess)==null?void 0:k.call(b,fe,t,this.state.context,i)),await((I=(w=X(this,Bn).config).onSettled)==null?void 0:I.call(w,fe,null,this.state.variables,this.state.context,this,i)),await(($=(x=this.options).onSettled)==null?void 0:$.call(x,fe,null,t,this.state.context,i)),Un(this,Mi,ho).call(this,{type:"success",data:fe}),fe}catch(fe){try{throw await((N=(j=X(this,Bn).config).onError)==null?void 0:N.call(j,fe,t,this.state.context,this,i)),await((T=(z=this.options).onError)==null?void 0:T.call(z,fe,t,this.state.context,i)),await((C=(E=X(this,Bn).config).onSettled)==null?void 0:C.call(E,void 0,fe,this.state.variables,this.state.context,this,i)),await((ue=(ae=this.options).onSettled)==null?void 0:ue.call(ae,void 0,fe,t,this.state.context,i)),fe}finally{Un(this,Mi,ho).call(this,{type:"error",error:fe})}}finally{X(this,Bn).runNext(this)}}},vd=new WeakMap,Ri=new WeakMap,Bn=new WeakMap,Su=new WeakMap,Mi=new WeakSet,ho=function(t){const r=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Fn.batch(()=>{X(this,Ri).forEach(i=>{i.onMutationUpdate(t)}),X(this,Bn).notify({mutation:this,type:"updated",action:t})})},Cj);function HF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $a,fi,pd,Rj,KF=(Rj=class extends Rh{constructor(t={}){super();pt(this,$a);pt(this,fi);pt(this,pd);this.config=t,Ke(this,$a,new Set),Ke(this,fi,new Map),Ke(this,pd,0)}build(t,r,i){const n=new GF({client:t,mutationCache:this,mutationId:++pm(this,pd)._,options:t.defaultMutationOptions(r),state:i});return this.add(n),n}add(t){X(this,$a).add(t);const r=_m(t);if(typeof r=="string"){const i=X(this,fi).get(r);i?i.push(t):X(this,fi).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(X(this,$a).delete(t)){const r=_m(t);if(typeof r=="string"){const i=X(this,fi).get(r);if(i)if(i.length>1){const n=i.indexOf(t);n!==-1&&i.splice(n,1)}else i[0]===t&&X(this,fi).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=_m(t);if(typeof r=="string"){const i=X(this,fi).get(r),n=i==null?void 0:i.find(a=>a.state.status==="pending");return!n||n===t}else return!0}runNext(t){var i;const r=_m(t);if(typeof r=="string"){const n=(i=X(this,fi).get(r))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Fn.batch(()=>{X(this,$a).forEach(t=>{this.notify({type:"removed",mutation:t})}),X(this,$a).clear(),X(this,fi).clear()})}getAll(){return Array.from(X(this,$a))}find(t){const r={exact:!0,...t};return this.getAll().find(i=>eE(r,i))}findAll(t={}){return this.getAll().filter(r=>eE(t,r))}notify(t){Fn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Fn.batch(()=>Promise.all(t.map(r=>r.continue().catch(ci))))}},$a=new WeakMap,fi=new WeakMap,pd=new WeakMap,Rj);function _m(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Li,Mj,JF=(Mj=class extends Rh{constructor(t={}){super();pt(this,Li);this.config=t,Ke(this,Li,new Map)}build(t,r,i){const n=r.queryKey,a=r.queryHash??h_(n,r);let l=this.get(a);return l||(l=new FF({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(r),state:i,defaultOptions:t.getQueryDefaults(n)}),this.add(l)),l}add(t){X(this,Li).has(t.queryHash)||(X(this,Li).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=X(this,Li).get(t.queryHash);r&&(t.destroy(),r===t&&X(this,Li).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return X(this,Li).get(t)}getAll(){return[...X(this,Li).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(i=>WO(r,i))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(i=>WO(t,i)):r}notify(t){Fn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Li=new WeakMap,Mj),Qt,$o,So,ts,ns,ko,rs,is,Lj,YF=(Lj=class{constructor(e={}){pt(this,Qt);pt(this,$o);pt(this,So);pt(this,ts);pt(this,ns);pt(this,ko);pt(this,rs);pt(this,is);Ke(this,Qt,e.queryCache||new JF),Ke(this,$o,e.mutationCache||new KF),Ke(this,So,e.defaultOptions||{}),Ke(this,ts,new Map),Ke(this,ns,new Map),Ke(this,ko,0)}mount(){pm(this,ko)._++,X(this,ko)===1&&(Ke(this,rs,pI.subscribe(async e=>{e&&(await this.resumePausedMutations(),X(this,Qt).onFocus())})),Ke(this,is,Wm.subscribe(async e=>{e&&(await this.resumePausedMutations(),X(this,Qt).onOnline())})))}unmount(){var e,t;pm(this,ko)._--,X(this,ko)===0&&((e=X(this,rs))==null||e.call(this),Ke(this,rs,void 0),(t=X(this,is))==null||t.call(this),Ke(this,is,void 0))}isFetching(e){return X(this,Qt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return X(this,$o).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=X(this,Qt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=X(this,Qt).build(this,t),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(qy(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return X(this,Qt).findAll(e).map(({queryKey:t,state:r})=>{const i=r.data;return[t,i]})}setQueryData(e,t,r){const i=this.defaultQueryOptions({queryKey:e}),n=X(this,Qt).get(i.queryHash),a=n==null?void 0:n.state.data,l=NF(t,a);if(l!==void 0)return X(this,Qt).build(this,i).setData(l,{...r,manual:!0})}setQueriesData(e,t,r){return Fn.batch(()=>X(this,Qt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=X(this,Qt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=X(this,Qt);Fn.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=X(this,Qt);return Fn.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},i=Fn.batch(()=>X(this,Qt).findAll(e).map(n=>n.cancel(r)));return Promise.all(i).then(ci).catch(ci)}invalidateQueries(e,t={}){return Fn.batch(()=>(X(this,Qt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},i=Fn.batch(()=>X(this,Qt).findAll(e).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let a=n.fetch(void 0,r);return r.throwOnError||(a=a.catch(ci)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(ci)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=X(this,Qt).build(this,t);return r.isStaleByTime(qy(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ci).catch(ci)}fetchInfiniteQuery(e){return e.behavior=iE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ci).catch(ci)}ensureInfiniteQueryData(e){return e.behavior=iE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wm.isOnline()?X(this,$o).resumePausedMutations():Promise.resolve()}getQueryCache(){return X(this,Qt)}getMutationCache(){return X(this,$o)}getDefaultOptions(){return X(this,So)}setDefaultOptions(e){Ke(this,So,e)}setQueryDefaults(e,t){X(this,ts).set(Yc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...X(this,ts).values()],r={};return t.forEach(i=>{Xc(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,t){X(this,ns).set(Yc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...X(this,ns).values()],r={};return t.forEach(i=>{Xc(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...X(this,So).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=h_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===v_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...X(this,So).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){X(this,Qt).clear(),X(this,$o).clear()}},Qt=new WeakMap,$o=new WeakMap,So=new WeakMap,ts=new WeakMap,ns=new WeakMap,ko=new WeakMap,rs=new WeakMap,is=new WeakMap,Lj),XF=S.createContext(void 0),QF=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(XF.Provider,{value:e,children:t}));function bt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var WF={};function Lh(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:WF}var _I=Object.assign,eh=Object.getOwnPropertyDescriptor,Fi=Object.defineProperty,Ph=Object.prototype,Ky=[];Object.freeze(Ky);var $I={};Object.freeze($I);var e5=typeof Proxy<"u",t5=Object.toString();function SI(){e5||bt("Proxy not available")}function kI(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Vl=function(){};function _i(e){return typeof e=="function"}function Nu(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Zh(e){return e!==null&&typeof e=="object"}function za(e){if(!Zh(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===t5}function wI(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function _d(e,t,r){Fi(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function xI(e,t,r){Fi(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Bu(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(i){return Zh(i)&&i[r]===!0}}function xs(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function n5(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),i=Object.getPrototypeOf(r);return i===null}function Sa(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var OI=typeof Object.getOwnPropertySymbols<"u";function r5(e){var t=Object.keys(e);if(!OI)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(i){return Ph.propertyIsEnumerable.call(e,i)})):t}var as=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:OI?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function EI(e){return e===null?null:typeof e=="object"?""+e:e}function Na(e,t){return Ph.hasOwnProperty.call(e,t)}var i5=Object.getOwnPropertyDescriptors||function(t){var r={};return as(t).forEach(function(i){r[i]=eh(t,i)}),r};function vr(e,t){return!!(e&t)}function pr(e,t,r){return r?e|=t:e&=~t,e}function oE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function a5(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,u5(i.key),i)}}function Os(e,t,r){return t&&a5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ql(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=l5(e))||t){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ju.apply(null,arguments)}function NI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jy(e,t)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jy(e,t)}function o5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function u5(e){var t=o5(e,"string");return typeof t=="symbol"?t:t+""}function l5(e,t){if(e){if(typeof e=="string")return oE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oE(e,t):void 0}}var Zi=Symbol("mobx-stored-annotations");function Vi(e){function t(r,i){if(Sd(i))return e.decorate_20223_(r,i);$d(r,i,e)}return Object.assign(t,e)}function $d(e,t,r){Na(e,Zi)||_d(e,Zi,ju({},e[Zi])),v5(r)||(e[Zi][t]=r)}function s5(e){return Na(e,Zi)||_d(e,Zi,ju({},e[Zi])),e[Zi]}function Sd(e){return typeof e=="object"&&typeof e.kind=="string"}var Ve=Symbol("mobx administration"),Do=(function(){function e(r){r===void 0&&(r="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=kt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},t.reportObserved=function(){return VI(this)},t.reportChanged=function(){Hr(),qI(this),Kr()},t.toString=function(){return this.name_},Os(e,[{key:"isBeingObserved",get:function(){return vr(this.flags_,e.isBeingObservedMask_)},set:function(i){this.flags_=pr(this.flags_,e.isBeingObservedMask_,i)}},{key:"isPendingUnobservation",get:function(){return vr(this.flags_,e.isPendingUnobservationMask_)},set:function(i){this.flags_=pr(this.flags_,e.isPendingUnobservationMask_,i)}},{key:"diffValue",get:function(){return vr(this.flags_,e.diffValueMask_)?1:0},set:function(i){this.flags_=pr(this.flags_,e.diffValueMask_,i===1)}}])})();Do.isBeingObservedMask_=1;Do.isPendingUnobservationMask_=2;Do.diffValueMask_=4;var p_=Bu("Atom",Do);function jI(e,t,r){t===void 0&&(t=Vl),r===void 0&&(r=Vl);var i=new Do(e);return t!==Vl&&b9(i,t),r!==Vl&&YI(i,r),i}function c5(e,t){return sT(e,t)}function d5(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var th={structural:c5,default:d5};function Iu(e,t,r){return tT(e)?e:Array.isArray(e)?zn.array(e,{name:r}):za(e)?zn.object(e,void 0,{name:r}):xs(e)?zn.map(e,{name:r}):Sa(e)?zn.set(e,{name:r}):typeof e=="function"&&!os(e)&&!Wc(e)?wI(e)?us(e):Qc(r,e):e}function f5(e,t,r){if(e==null||Hh(e)||Gh(e)||Vu(e)||Pi(e))return e;if(Array.isArray(e))return zn.array(e,{name:r,deep:!1});if(za(e))return zn.object(e,void 0,{name:r,deep:!1});if(xs(e))return zn.map(e,{name:r,deep:!1});if(Sa(e))return zn.set(e,{name:r,deep:!1})}function Bh(e){return e}function m5(e,t){return sT(e,t)?t:e}var h5="override";function v5(e){return e.annotationType_===h5}function kd(e,t){return{annotationType_:e,options_:t,make_:p5,extend_:g5,decorate_20223_:y5}}function p5(e,t,r,i){var n;if((n=this.options_)!=null&&n.bound)return this.extend_(e,t,r,!1)===null?0:1;if(i===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(os(r.value))return 1;var a=II(e,this,t,r,!1);return Fi(i,t,a),2}function g5(e,t,r,i){var n=II(e,this,t,r);return e.defineProperty_(t,n,i)}function y5(e,t){var r=t.kind,i=t.name,n=t.addInitializer,a=this,l=function(h){var p,g,b,k;return Tu((p=(g=a.options_)==null?void 0:g.name)!=null?p:i.toString(),h,(b=(k=a.options_)==null?void 0:k.autoAction)!=null?b:!1)};if(r=="field")return function(f){var h,p=f;return os(p)||(p=l(p)),(h=a.options_)!=null&&h.bound&&(p=p.bind(this),p.isMobxAction=!0),p};if(r=="method"){var d;return os(e)||(e=l(e)),(d=this.options_)!=null&&d.bound&&n(function(){var f=this,h=f[i].bind(f);h.isMobxAction=!0,f[i]=h}),e}bt("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+r+"):"+(`
|
|
63
|
-
'`+a.annotationType_+"' can only be used on properties with a function value."))}function b5(e,t,r,i){t.annotationType_,i.value}function II(e,t,r,i,n){var a,l,d,f,h,p,g;n===void 0&&(n=ge.safeDescriptors),b5(e,t,r,i);var b=i.value;if((a=t.options_)!=null&&a.bound){var k;b=b.bind((k=e.proxy_)!=null?k:e.target_)}return{value:Tu((l=(d=t.options_)==null?void 0:d.name)!=null?l:r.toString(),b,(f=(h=t.options_)==null?void 0:h.autoAction)!=null?f:!1,(p=t.options_)!=null&&p.bound?(g=e.proxy_)!=null?g:e.target_:void 0),configurable:n?e.isPlainObject_:!0,enumerable:!1,writable:!n}}function TI(e,t){return{annotationType_:e,options_:t,make_:_5,extend_:$5,decorate_20223_:S5}}function _5(e,t,r,i){var n;if(i===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((n=this.options_)!=null&&n.bound&&(!Na(e.target_,t)||!Wc(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(Wc(r.value))return 1;var a=zI(e,this,t,r,!1,!1);return Fi(i,t,a),2}function $5(e,t,r,i){var n,a=zI(e,this,t,r,(n=this.options_)==null?void 0:n.bound);return e.defineProperty_(t,a,i)}function S5(e,t){var r,i=t.name,n=t.addInitializer;return Wc(e)||(e=us(e)),(r=this.options_)!=null&&r.bound&&n(function(){var a=this,l=a[i].bind(a);l.isMobXFlow=!0,a[i]=l}),e}function k5(e,t,r,i){t.annotationType_,i.value}function zI(e,t,r,i,n,a){a===void 0&&(a=ge.safeDescriptors),k5(e,t,r,i);var l=i.value;if(Wc(l)||(l=us(l)),n){var d;l=l.bind((d=e.proxy_)!=null?d:e.target_),l.isMobXFlow=!0}return{value:l,configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function g_(e,t){return{annotationType_:e,options_:t,make_:w5,extend_:x5,decorate_20223_:O5}}function w5(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function x5(e,t,r,i){return E5(e,this,t,r),e.defineComputedProperty_(t,ju({},this.options_,{get:r.get,set:r.set}),i)}function O5(e,t){var r=this,i=t.name,n=t.addInitializer;return n(function(){var a=qu(this)[Ve],l=ju({},r.options_,{get:e,context:this});l.name||(l.name="ObservableObject."+i.toString()),a.values_.set(i,new $i(l))}),function(){return this[Ve].getObservablePropValue_(i)}}function E5(e,t,r,i){t.annotationType_,i.get}function Fh(e,t){return{annotationType_:e,options_:t,make_:N5,extend_:j5,decorate_20223_:I5}}function N5(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function j5(e,t,r,i){var n,a;return T5(e,this),e.defineObservableProperty_(t,r.value,(n=(a=this.options_)==null?void 0:a.enhancer)!=null?n:Iu,i)}function I5(e,t){var r=this,i=t.kind,n=t.name,a=new WeakSet;function l(d,f){var h,p,g=qu(d)[Ve],b=new ku(f,(h=(p=r.options_)==null?void 0:p.enhancer)!=null?h:Iu,"ObservableObject."+n.toString(),!1);g.values_.set(n,b),a.add(d)}if(i=="accessor")return{get:function(){return a.has(this)||l(this,e.get.call(this)),this[Ve].getObservablePropValue_(n)},set:function(f){return a.has(this)||l(this,f),this[Ve].setObservablePropValue_(n,f)},init:function(f){return a.has(this)||l(this,f),f}}}function T5(e,t,r,i){t.annotationType_}var z5="true",A5=AI();function AI(e){return{annotationType_:z5,options_:e,make_:D5,extend_:U5,decorate_20223_:C5}}function D5(e,t,r,i){var n,a;if(r.get)return Vh.make_(e,t,r,i);if(r.set){var l=os(r.set)?r.set:Tu(t.toString(),r.set);return i===e.target_?e.defineProperty_(t,{configurable:ge.safeDescriptors?e.isPlainObject_:!0,set:l})===null?0:2:(Fi(i,t,{configurable:!0,set:l}),2)}if(i!==e.target_&&typeof r.value=="function"){var d;if(wI(r.value)){var f,h=(f=this.options_)!=null&&f.autoBind?us.bound:us;return h.make_(e,t,r,i)}var p=(d=this.options_)!=null&&d.autoBind?Qc.bound:Qc;return p.make_(e,t,r,i)}var g=((n=this.options_)==null?void 0:n.deep)===!1?zn.ref:zn;if(typeof r.value=="function"&&(a=this.options_)!=null&&a.autoBind){var b;r.value=r.value.bind((b=e.proxy_)!=null?b:e.target_)}return g.make_(e,t,r,i)}function U5(e,t,r,i){var n,a;if(r.get)return Vh.extend_(e,t,r,i);if(r.set)return e.defineProperty_(t,{configurable:ge.safeDescriptors?e.isPlainObject_:!0,set:Tu(t.toString(),r.set)},i);if(typeof r.value=="function"&&(n=this.options_)!=null&&n.autoBind){var l;r.value=r.value.bind((l=e.proxy_)!=null?l:e.target_)}var d=((a=this.options_)==null?void 0:a.deep)===!1?zn.ref:zn;return d.extend_(e,t,r,i)}function C5(e,t){bt("'"+this.annotationType_+"' cannot be used as a decorator")}var R5="observable",M5="observable.ref",L5="observable.shallow",P5="observable.struct",DI={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(DI);function $m(e){return e||DI}var Yy=Fh(R5),Z5=Fh(M5,{enhancer:Bh}),B5=Fh(L5,{enhancer:f5}),F5=Fh(P5,{enhancer:m5}),UI=Vi(Yy);function Sm(e){return e.deep===!0?Iu:e.deep===!1?Bh:q5(e.defaultDecorator)}function V5(e){var t;return e?(t=e.defaultDecorator)!=null?t:AI(e):void 0}function q5(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:Iu}function CI(e,t,r){if(Sd(t))return Yy.decorate_20223_(e,t);if(Nu(t)){$d(e,t,Yy);return}return tT(e)?e:za(e)?zn.object(e,t,r):Array.isArray(e)?zn.array(e,t):xs(e)?zn.map(e,t):Sa(e)?zn.set(e,t):typeof e=="object"&&e!==null?e:zn.box(e,t)}_I(CI,UI);var G5={box:function(t,r){var i=$m(r);return new ku(t,Sm(i),i.name,!0,i.equals)},array:function(t,r){var i=$m(r);return(ge.useProxies===!1||i.proxy===!1?V9:D9)(t,Sm(i),i.name)},map:function(t,r){var i=$m(r);return new rT(t,Sm(i),i.name)},set:function(t,r){var i=$m(r);return new iT(t,Sm(i),i.name)},object:function(t,r,i){return Uo(function(){return QI(ge.useProxies===!1||(i==null?void 0:i.proxy)===!1?qu({},i):j9({},i),t,r)})},ref:Vi(Z5),shallow:Vi(B5),deep:UI,struct:Vi(F5)},zn=_I(CI,G5),RI="computed",H5="computed.struct",Xy=g_(RI),K5=g_(H5,{equals:th.structural}),Vh=function(t,r){if(Sd(r))return Xy.decorate_20223_(t,r);if(Nu(r))return $d(t,r,Xy);if(za(t))return Vi(g_(RI,t));var i=za(r)?r:{};return i.get=t,i.name||(i.name=t.name||""),new $i(i)};Object.assign(Vh,Xy);Vh.struct=Vi(K5);var uE,lE,nh=0,J5=1,Y5=(uE=(lE=eh(function(){},"name"))==null?void 0:lE.configurable)!=null?uE:!1,sE={value:"action",configurable:!0,writable:!1,enumerable:!1};function Tu(e,t,r,i){r===void 0&&(r=!1);function n(){return X5(e,r,t,i||this,arguments)}return n.isMobxAction=!0,n.toString=function(){return t.toString()},Y5&&(sE.value=e,Fi(n,"name",sE)),n}function X5(e,t,r,i,n){var a=Q5(e,t);try{return r.apply(i,n)}catch(l){throw a.error_=l,l}finally{W5(a)}}function Q5(e,t,r,i){var n=!1,a=0,l=ge.trackingDerivation,d=!t||!l;Hr();var f=ge.allowStateChanges;d&&(Fu(),f=y_(!0));var h=__(!0),p={runAsAction_:d,prevDerivation_:l,prevAllowStateChanges_:f,prevAllowStateReads_:h,notifySpy_:n,startTime_:a,actionId_:J5++,parentActionId_:nh};return nh=p.actionId_,p}function W5(e){nh!==e.actionId_&&bt(30),nh=e.parentActionId_,e.error_!==void 0&&(ge.suppressReactionErrors=!0),b_(e.prevAllowStateChanges_),Pc(e.prevAllowStateReads_),Kr(),e.runAsAction_&&ja(e.prevDerivation_),ge.suppressReactionErrors=!1}function y_(e){var t=ge.allowStateChanges;return ge.allowStateChanges=e,t}function b_(e){ge.allowStateChanges=e}var ku=(function(e){function t(i,n,a,l,d){var f;return a===void 0&&(a="ObservableValue"),d===void 0&&(d=th.default),f=e.call(this,a)||this,f.enhancer=void 0,f.name_=void 0,f.equals=void 0,f.hasUnreportedChange_=!1,f.interceptors_=void 0,f.changeListeners_=void 0,f.value_=void 0,f.dehancer=void 0,f.enhancer=n,f.name_=a,f.equals=d,f.value_=n(i,void 0,a),f}NI(t,e);var r=t.prototype;return r.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},r.set=function(n){this.value_,n=this.prepareNewValue_(n),n!==ge.UNCHANGED&&this.setNewValue_(n)},r.prepareNewValue_=function(n){if(Vr(this)){var a=qr(this,{object:this,type:qi,newValue:n});if(!a)return ge.UNCHANGED;n=a.newValue}return n=this.enhancer(n,this.value_,this.name_),this.equals(this.value_,n)?ge.UNCHANGED:n},r.setNewValue_=function(n){var a=this.value_;this.value_=n,this.reportChanged(),pi(this)&&gi(this,{type:qi,object:this,newValue:n,oldValue:a})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(n){return wd(this,n)},r.observe_=function(n,a){return a&&n({observableKind:"value",debugObjectName:this.name_,object:this,type:qi,newValue:this.value_,oldValue:void 0}),xd(this,n)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return EI(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t})(Do),$i=(function(){function e(r){this.dependenciesState_=kt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=kt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new ih(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=rh.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||bt(31),this.derivation=r.get,this.name_=r.name||"ComputedValue",r.set&&(this.setter_=Tu("ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?th.structural:th.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){i9(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},t.get=function(){if(this.isComputing&&bt(32,this.name_,this.derivation),ge.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Qy(this)&&(this.warnAboutUntrackedRead_(),Hr(),this.value_=this.computeValue_(!1),Kr());else if(VI(this),Qy(this)){var i=ge.trackingContext;this.keepAlive_&&!i&&(ge.trackingContext=this),this.trackAndCompute()&&r9(this),ge.trackingContext=i}var n=this.value_;if(Bm(n))throw n.cause;return n},t.set=function(i){if(this.setter_){this.isRunningSetter&&bt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter=!1}}else bt(34,this.name_)},t.trackAndCompute=function(){var i=this.value_,n=this.dependenciesState_===kt.NOT_TRACKING_,a=this.computeValue_(!0),l=n||Bm(i)||Bm(a)||!this.equals_(i,a);return l&&(this.value_=a),l},t.computeValue_=function(i){this.isComputing=!0;var n=y_(!1),a;if(i)a=MI(this,this.derivation,this.scope_);else if(ge.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(l){a=new ih(l)}return b_(n),this.isComputing=!1,a},t.suspend_=function(){this.keepAlive_||(Wy(this),this.value_=void 0)},t.observe_=function(i,n){var a=this,l=!0,d=void 0;return h9(function(){var f=a.get();if(!l||n){var h=Fu();i({observableKind:"computed",debugObjectName:a.name_,type:qi,object:a,newValue:f,oldValue:d}),ja(h)}l=!1,d=f})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return EI(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Os(e,[{key:"isComputing",get:function(){return vr(this.flags_,e.isComputingMask_)},set:function(i){this.flags_=pr(this.flags_,e.isComputingMask_,i)}},{key:"isRunningSetter",get:function(){return vr(this.flags_,e.isRunningSetterMask_)},set:function(i){this.flags_=pr(this.flags_,e.isRunningSetterMask_,i)}},{key:"isBeingObserved",get:function(){return vr(this.flags_,e.isBeingObservedMask_)},set:function(i){this.flags_=pr(this.flags_,e.isBeingObservedMask_,i)}},{key:"isPendingUnobservation",get:function(){return vr(this.flags_,e.isPendingUnobservationMask_)},set:function(i){this.flags_=pr(this.flags_,e.isPendingUnobservationMask_,i)}},{key:"diffValue",get:function(){return vr(this.flags_,e.diffValueMask_)?1:0},set:function(i){this.flags_=pr(this.flags_,e.diffValueMask_,i===1)}}])})();$i.isComputingMask_=1;$i.isRunningSetterMask_=2;$i.isBeingObservedMask_=4;$i.isPendingUnobservationMask_=8;$i.diffValueMask_=16;var qh=Bu("ComputedValue",$i),kt;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(kt||(kt={}));var rh;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(rh||(rh={}));var ih=function(t){this.cause=void 0,this.cause=t};function Bm(e){return e instanceof ih}function Qy(e){switch(e.dependenciesState_){case kt.UP_TO_DATE_:return!1;case kt.NOT_TRACKING_:case kt.STALE_:return!0;case kt.POSSIBLY_STALE_:{for(var t=__(!0),r=Fu(),i=e.observing_,n=i.length,a=0;a<n;a++){var l=i[a];if(qh(l)){if(ge.disableErrorBoundaries)l.get();else try{l.get()}catch{return ja(r),Pc(t),!0}if(e.dependenciesState_===kt.STALE_)return ja(r),Pc(t),!0}}return PI(e),ja(r),Pc(t),!1}}}function MI(e,t,r){var i=__(!0);PI(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ge.runId;var n=ge.trackingDerivation;ge.trackingDerivation=e,ge.inBatch++;var a;if(ge.disableErrorBoundaries===!0)a=t.call(r);else try{a=t.call(r)}catch(l){a=new ih(l)}return ge.inBatch--,ge.trackingDerivation=n,e9(e),Pc(i),a}function e9(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,i=kt.UP_TO_DATE_,n=0,a=e.unboundDepsCount_,l=0;l<a;l++){var d=r[l];d.diffValue===0&&(d.diffValue=1,n!==l&&(r[n]=d),n++),d.dependenciesState_>i&&(i=d.dependenciesState_)}for(r.length=n,e.newObserving_=null,a=t.length;a--;){var f=t[a];f.diffValue===0&&BI(f,e),f.diffValue=0}for(;n--;){var h=r[n];h.diffValue===1&&(h.diffValue=0,n9(h,e))}i!==kt.UP_TO_DATE_&&(e.dependenciesState_=i,e.onBecomeStale_())}function Wy(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)BI(t[r],e);e.dependenciesState_=kt.NOT_TRACKING_}function LI(e){var t=Fu();try{return e()}finally{ja(t)}}function Fu(){var e=ge.trackingDerivation;return ge.trackingDerivation=null,e}function ja(e){ge.trackingDerivation=e}function __(e){var t=ge.allowStateReads;return ge.allowStateReads=e,t}function Pc(e){ge.allowStateReads=e}function PI(e){if(e.dependenciesState_!==kt.UP_TO_DATE_){e.dependenciesState_=kt.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=kt.UP_TO_DATE_}}var Fm=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Vm=!0,ZI=!1,ge=(function(){var e=Lh();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Vm=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Fm().version&&(Vm=!1),Vm?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Fm):(setTimeout(function(){ZI||bt(35)},1),new Fm)})();function t9(){if((ge.pendingReactions.length||ge.inBatch||ge.isRunningReactions)&&bt(36),ZI=!0,Vm){var e=Lh();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),ge=new Fm}}function n9(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function BI(e,t){e.observers_.delete(t),e.observers_.size===0&&FI(e)}function FI(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,ge.pendingUnobservations.push(e))}function Hr(){ge.inBatch++}function Kr(){if(--ge.inBatch===0){GI();for(var e=ge.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof $i&&r.suspend_())}ge.pendingUnobservations=[]}}function VI(e){var t=ge.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ge.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&ge.inBatch>0&&FI(e),!1)}function qI(e){e.lowestObserverState_!==kt.STALE_&&(e.lowestObserverState_=kt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===kt.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=kt.STALE_}))}function r9(e){e.lowestObserverState_!==kt.STALE_&&(e.lowestObserverState_=kt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===kt.POSSIBLY_STALE_?t.dependenciesState_=kt.STALE_:t.dependenciesState_===kt.UP_TO_DATE_&&(e.lowestObserverState_=kt.UP_TO_DATE_)}))}function i9(e){e.lowestObserverState_===kt.UP_TO_DATE_&&(e.lowestObserverState_=kt.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===kt.UP_TO_DATE_&&(t.dependenciesState_=kt.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Aa=(function(){function e(r,i,n,a){r===void 0&&(r="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=kt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=rh.NONE,this.name_=r,this.onInvalidate_=i,this.errorHandler_=n,this.requiresObservable_=a}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ge.pendingReactions.push(this),GI())},t.runReaction_=function(){if(!this.isDisposed){Hr(),this.isScheduled=!1;var i=ge.trackingContext;if(ge.trackingContext=this,Qy(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(n){this.reportExceptionInDerivation_(n)}}ge.trackingContext=i,Kr()}},t.track=function(i){if(!this.isDisposed){Hr(),this.isRunning=!0;var n=ge.trackingContext;ge.trackingContext=this;var a=MI(this,i,void 0);ge.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Wy(this),Bm(a)&&this.reportExceptionInDerivation_(a.cause),Kr()}},t.reportExceptionInDerivation_=function(i){var n=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(ge.disableErrorBoundaries)throw i;var a="[mobx] uncaught error in '"+this+"'";ge.suppressReactionErrors||console.error(a,i),ge.globalReactionErrorHandlers.forEach(function(l){return l(i,n)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Hr(),Wy(this),Kr()))},t.getDisposer_=function(i){var n=this,a=function l(){n.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",l)};return i==null||i.addEventListener==null||i.addEventListener("abort",a),a[Ve]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(a[Symbol.dispose]=a),a},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(i){},Os(e,[{key:"isDisposed",get:function(){return vr(this.flags_,e.isDisposedMask_)},set:function(i){this.flags_=pr(this.flags_,e.isDisposedMask_,i)}},{key:"isScheduled",get:function(){return vr(this.flags_,e.isScheduledMask_)},set:function(i){this.flags_=pr(this.flags_,e.isScheduledMask_,i)}},{key:"isTrackPending",get:function(){return vr(this.flags_,e.isTrackPendingMask_)},set:function(i){this.flags_=pr(this.flags_,e.isTrackPendingMask_,i)}},{key:"isRunning",get:function(){return vr(this.flags_,e.isRunningMask_)},set:function(i){this.flags_=pr(this.flags_,e.isRunningMask_,i)}},{key:"diffValue",get:function(){return vr(this.flags_,e.diffValueMask_)?1:0},set:function(i){this.flags_=pr(this.flags_,e.diffValueMask_,i===1)}}])})();Aa.isDisposedMask_=1;Aa.isScheduledMask_=2;Aa.isTrackPendingMask_=4;Aa.isRunningMask_=8;Aa.diffValueMask_=16;var a9=100,eb=function(t){return t()};function GI(){ge.inBatch>0||ge.isRunningReactions||eb(o9)}function o9(){ge.isRunningReactions=!0;for(var e=ge.pendingReactions,t=0;e.length>0;){++t===a9&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),i=0,n=r.length;i<n;i++)r[i].runReaction_()}ge.isRunningReactions=!1}var ah=Bu("Reaction",Aa);function u9(e){var t=eb;eb=function(i){return e(function(){return t(i)})}}function Zc(){return!1}function l9(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var HI="action",s9="action.bound",KI="autoAction",c9="autoAction.bound",d9="<unnamed action>",tb=kd(HI),f9=kd(s9,{bound:!0}),nb=kd(KI,{autoAction:!0}),m9=kd(c9,{autoAction:!0,bound:!0});function JI(e){var t=function(i,n){if(_i(i))return Tu(i.name||d9,i,e);if(_i(n))return Tu(i,n,e);if(Sd(n))return(e?nb:tb).decorate_20223_(i,n);if(Nu(n))return $d(i,n,e?nb:tb);if(Nu(i))return Vi(kd(e?KI:HI,{name:i,autoAction:e}))};return t}var Gl=JI(!1);Object.assign(Gl,tb);var Qc=JI(!0);Object.assign(Qc,nb);Gl.bound=Vi(f9);Qc.bound=Vi(m9);function os(e){return _i(e)&&e.isMobxAction===!0}function h9(e,t){var r,i,n,a;t===void 0&&(t=$I);var l=(r=(i=t)==null?void 0:i.name)!=null?r:"Autorun",d=!t.scheduler&&!t.delay,f;if(d)f=new Aa(l,function(){this.track(g)},t.onError,t.requiresObservable);else{var h=p9(t),p=!1;f=new Aa(l,function(){p||(p=!0,h(function(){p=!1,f.isDisposed||f.track(g)}))},t.onError,t.requiresObservable)}function g(){e(f)}return(n=t)!=null&&(n=n.signal)!=null&&n.aborted||f.schedule_(),f.getDisposer_((a=t)==null?void 0:a.signal)}var v9=function(t){return t()};function p9(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:v9}var g9="onBO",y9="onBUO";function b9(e,t,r){return XI(g9,e,t,r)}function YI(e,t,r){return XI(y9,e,t,r)}function XI(e,t,r,i){var n=lh(t),a=_i(i)?i:r,l=e+"L";return n[l]?n[l].add(a):n[l]=new Set([a]),function(){var d=n[l];d&&(d.delete(a),d.size===0&&delete n[l])}}var _9="never",km="always",$9="observed";function S9(e){e.isolateGlobalState===!0&&t9();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(ge.useProxies=t===km?!0:t===_9?!1:typeof Proxy<"u"),t==="ifavailable"&&(ge.verifyProxies=!0),r!==void 0){var i=r===km?km:r===$9;ge.enforceActions=i,ge.allowStateChanges=!(i===!0||i===km)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(n){n in e&&(ge[n]=!!e[n])}),ge.allowStateReads=!ge.observableRequiresReaction,e.reactionScheduler&&u9(e.reactionScheduler)}function QI(e,t,r,i){var n=i5(t);return Uo(function(){var a=qu(e,i)[Ve];as(n).forEach(function(l){a.extend_(l,n[l],r&&l in r?r[l]:!0)})}),e}function k9(e,t){return WI(lh(e,t))}function WI(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=w9(e.observing_).map(WI)),t}function w9(e){return Array.from(new Set(e))}var x9=0;function eT(){this.message="FLOW_CANCELLED"}eT.prototype=Object.create(Error.prototype);var cy=TI("flow"),O9=TI("flow.bound",{bound:!0}),us=Object.assign(function(t,r){if(Sd(r))return cy.decorate_20223_(t,r);if(Nu(r))return $d(t,r,cy);var i=t,n=i.name||"<unnamed flow>",a=function(){var d=this,f=arguments,h=++x9,p=Gl(n+" - runid: "+h+" - init",i).apply(d,f),g,b=void 0,k=new Promise(function(w,I){var x=0;g=I;function $(z){b=void 0;var T;try{T=Gl(n+" - runid: "+h+" - yield "+x++,p.next).call(p,z)}catch(E){return I(E)}N(T)}function j(z){b=void 0;var T;try{T=Gl(n+" - runid: "+h+" - yield "+x++,p.throw).call(p,z)}catch(E){return I(E)}N(T)}function N(z){if(_i(z==null?void 0:z.then)){z.then(N,I);return}return z.done?w(z.value):(b=Promise.resolve(z.value),b.then($,j))}$(void 0)});return k.cancel=Gl(n+" - runid: "+h+" - cancel",function(){try{b&&cE(b);var w=p.return(void 0),I=Promise.resolve(w.value);I.then(Vl,Vl),cE(I),g(new eT)}catch(x){g(x)}}),k};return a.isMobXFlow=!0,a},cy);us.bound=Vi(O9);function cE(e){_i(e.cancel)&&e.cancel()}function Wc(e){return(e==null?void 0:e.isMobXFlow)===!0}function E9(e,t){return e?Hh(e)||!!e[Ve]||p_(e)||ah(e)||qh(e):!1}function tT(e){return E9(e)}function ka(e,t){t===void 0&&(t=void 0),Hr();try{return e.apply(t)}finally{Kr()}}function Ml(e){return e[Ve]}var N9={has:function(t,r){return Ml(t).has_(r)},get:function(t,r){return Ml(t).get_(r)},set:function(t,r,i){var n;return Nu(r)?(n=Ml(t).set_(r,i,!0))!=null?n:!0:!1},deleteProperty:function(t,r){var i;return Nu(r)?(i=Ml(t).delete_(r,!0))!=null?i:!0:!1},defineProperty:function(t,r,i){var n;return(n=Ml(t).defineProperty_(r,i))!=null?n:!0},ownKeys:function(t){return Ml(t).ownKeys_()},preventExtensions:function(t){bt(13)}};function j9(e,t){var r,i;return SI(),e=qu(e,t),(i=(r=e[Ve]).proxy_)!=null?i:r.proxy_=new Proxy(e,N9)}function Vr(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function wd(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),kI(function(){var i=r.indexOf(t);i!==-1&&r.splice(i,1)})}function qr(e,t){var r=Fu();try{for(var i=[].concat(e.interceptors_||[]),n=0,a=i.length;n<a&&(t=i[n](t),t&&!t.type&&bt(14),!!t);n++);return t}finally{ja(r)}}function pi(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function xd(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),kI(function(){var i=r.indexOf(t);i!==-1&&r.splice(i,1)})}function gi(e,t){var r=Fu(),i=e.changeListeners_;if(i){i=i.slice();for(var n=0,a=i.length;n<a;n++)i[n](t);ja(r)}}function I9(e,t,r){return Uo(function(){var i,n=qu(e,r)[Ve];(i=t)!=null||(t=s5(e)),as(t).forEach(function(a){return n.make_(a,t[a])})}),e}var dy=Symbol("mobx-keys");function T9(e,t,r){return za(e)?QI(e,e,t,r):(Uo(function(){var i=qu(e,r)[Ve];if(!e[dy]){var n=Object.getPrototypeOf(e),a=new Set([].concat(as(e),as(n)));a.delete("constructor"),a.delete(Ve),_d(n,dy,a)}e[dy].forEach(function(l){return i.make_(l,t&&l in t?t[l]:!0)})}),e)}var dE="splice",qi="update",z9=1e4,A9={get:function(t,r){var i=t[Ve];return r===Ve?i:r==="length"?i.getArrayLength_():typeof r=="string"&&!isNaN(r)?i.get_(parseInt(r)):Na(oh,r)?oh[r]:t[r]},set:function(t,r,i){var n=t[Ve];return r==="length"&&n.setArrayLength_(i),typeof r=="symbol"||isNaN(r)?t[r]=i:n.set_(parseInt(r),i),!0},preventExtensions:function(){bt(15)}},$_=(function(){function e(r,i,n,a){r===void 0&&(r="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=a,this.atom_=new Do(r),this.enhancer_=function(l,d){return i(l,d,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.dehanceValues_=function(i){return this.dehancer!==void 0&&i.length>0?i.map(this.dehancer):i},t.intercept_=function(i){return wd(this,i)},t.observe_=function(i,n){return n===void 0&&(n=!1),n&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),xd(this,i)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&bt("Out of range: "+i);var n=this.values_.length;if(i!==n)if(i>n){for(var a=new Array(i-n),l=0;l<i-n;l++)a[l]=void 0;this.spliceWithArray_(n,0,a)}else this.spliceWithArray_(i,n-i)},t.updateArrayLength_=function(i,n){i!==this.lastKnownLength_&&bt(16),this.lastKnownLength_+=n,this.legacyMode_&&n>0&&lT(i+n+1)},t.spliceWithArray_=function(i,n,a){var l=this;this.atom_;var d=this.values_.length;if(i===void 0?i=0:i>d?i=d:i<0&&(i=Math.max(0,d+i)),arguments.length===1?n=d-i:n==null?n=0:n=Math.max(0,Math.min(n,d-i)),a===void 0&&(a=Ky),Vr(this)){var f=qr(this,{object:this.proxy_,type:dE,index:i,removedCount:n,added:a});if(!f)return Ky;n=f.removedCount,a=f.added}if(a=a.length===0?a:a.map(function(g){return l.enhancer_(g,void 0)}),this.legacyMode_){var h=a.length-n;this.updateArrayLength_(d,h)}var p=this.spliceItemsIntoValues_(i,n,a);return(n!==0||a.length!==0)&&this.notifyArraySplice_(i,a,p),this.dehanceValues_(p)},t.spliceItemsIntoValues_=function(i,n,a){if(a.length<z9){var l;return(l=this.values_).splice.apply(l,[i,n].concat(a))}else{var d=this.values_.slice(i,i+n),f=this.values_.slice(i+n);this.values_.length+=a.length-n;for(var h=0;h<a.length;h++)this.values_[i+h]=a[h];for(var p=0;p<f.length;p++)this.values_[i+a.length+p]=f[p];return d}},t.notifyArrayChildUpdate_=function(i,n,a){var l=!this.owned_&&Zc(),d=pi(this),f=d||l?{observableKind:"array",object:this.proxy_,type:qi,debugObjectName:this.atom_.name_,index:i,newValue:n,oldValue:a}:null;this.atom_.reportChanged(),d&&gi(this,f)},t.notifyArraySplice_=function(i,n,a){var l=!this.owned_&&Zc(),d=pi(this),f=d||l?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:dE,index:i,removed:a,added:n,removedCount:a.length,addedCount:n.length}:null;this.atom_.reportChanged(),d&&gi(this,f)},t.get_=function(i){if(this.legacyMode_&&i>=this.values_.length){console.warn("[mobx] Out of bounds read: "+i);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[i])},t.set_=function(i,n){var a=this.values_;if(this.legacyMode_&&i>a.length&&bt(17,i,a.length),i<a.length){this.atom_;var l=a[i];if(Vr(this)){var d=qr(this,{type:qi,object:this.proxy_,index:i,newValue:n});if(!d)return;n=d.newValue}n=this.enhancer_(n,l);var f=n!==l;f&&(a[i]=n,this.notifyArrayChildUpdate_(i,n,l))}else{for(var h=new Array(i+1-a.length),p=0;p<h.length-1;p++)h[p]=void 0;h[h.length-1]=n,this.spliceWithArray_(a.length,0,h)}},e})();function D9(e,t,r,i){return r===void 0&&(r="ObservableArray"),i===void 0&&(i=!1),SI(),Uo(function(){var n=new $_(r,t,i,!1);xI(n.values_,Ve,n);var a=new Proxy(n.values_,A9);return n.proxy_=a,e&&e.length&&n.spliceWithArray_(0,0,e),a})}var oh={clear:function(){return this.splice(0)},replace:function(t){var r=this[Ve];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];var l=this[Ve];switch(arguments.length){case 0:return[];case 1:return l.spliceWithArray_(t);case 2:return l.spliceWithArray_(t,r)}return l.spliceWithArray_(t,r,n)},spliceWithArray:function(t,r,i){return this[Ve].spliceWithArray_(t,r,i)},push:function(){for(var t=this[Ve],r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return t.spliceWithArray_(t.values_.length,0,i),t.values_.length},pop:function(){return this.splice(Math.max(this[Ve].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Ve],r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return t.spliceWithArray_(0,0,i),t.values_.length},reverse:function(){return ge.trackingDerivation&&bt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ge.trackingDerivation&&bt(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[Ve],i=r.dehanceValues_(r.values_).indexOf(t);return i>-1?(this.splice(i,1),!0):!1}};Lt("at",wr);Lt("concat",wr);Lt("flat",wr);Lt("includes",wr);Lt("indexOf",wr);Lt("join",wr);Lt("lastIndexOf",wr);Lt("slice",wr);Lt("toString",wr);Lt("toLocaleString",wr);Lt("toSorted",wr);Lt("toSpliced",wr);Lt("with",wr);Lt("every",Oi);Lt("filter",Oi);Lt("find",Oi);Lt("findIndex",Oi);Lt("findLast",Oi);Lt("findLastIndex",Oi);Lt("flatMap",Oi);Lt("forEach",Oi);Lt("map",Oi);Lt("some",Oi);Lt("toReversed",Oi);Lt("reduce",nT);Lt("reduceRight",nT);function Lt(e,t){typeof Array.prototype[e]=="function"&&(oh[e]=t(e))}function wr(e){return function(){var t=this[Ve];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function Oi(e){return function(t,r){var i=this,n=this[Ve];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_);return a[e](function(l,d){return t.call(r,l,d,i)})}}function nT(e){return function(){var t=this,r=this[Ve];r.atom_.reportObserved();var i=r.dehanceValues_(r.values_),n=arguments[0];return arguments[0]=function(a,l,d){return n(a,l,d,t)},i[e].apply(i,arguments)}}var U9=Bu("ObservableArrayAdministration",$_);function Gh(e){return Zh(e)&&U9(e[Ve])}var C9={},wo="add",uh="delete",rT=(function(){function e(r,i,n){var a=this;i===void 0&&(i=Iu),n===void 0&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Ve]=C9,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=n,_i(Map)||bt(18),Uo(function(){a.keysAtom_=jI("ObservableMap.keys()"),a.data_=new Map,a.hasMap_=new Map,r&&a.merge(r)})}var t=e.prototype;return t.has_=function(i){return this.data_.has(i)},t.has=function(i){var n=this;if(!ge.trackingDerivation)return this.has_(i);var a=this.hasMap_.get(i);if(!a){var l=a=new ku(this.has_(i),Bh,"ObservableMap.key?",!1);this.hasMap_.set(i,l),YI(l,function(){return n.hasMap_.delete(i)})}return a.get()},t.set=function(i,n){var a=this.has_(i);if(Vr(this)){var l=qr(this,{type:a?qi:wo,object:this,newValue:n,name:i});if(!l)return this;n=l.newValue}return a?this.updateValue_(i,n):this.addValue_(i,n),this},t.delete=function(i){var n=this;if(this.keysAtom_,Vr(this)){var a=qr(this,{type:uh,object:this,name:i});if(!a)return!1}if(this.has_(i)){var l=Zc(),d=pi(this),f=d||l?{observableKind:"map",debugObjectName:this.name_,type:uh,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return ka(function(){var h;n.keysAtom_.reportChanged(),(h=n.hasMap_.get(i))==null||h.setNewValue_(!1);var p=n.data_.get(i);p.setNewValue_(void 0),n.data_.delete(i)}),d&&gi(this,f),!0}return!1},t.updateValue_=function(i,n){var a=this.data_.get(i);if(n=a.prepareNewValue_(n),n!==ge.UNCHANGED){var l=Zc(),d=pi(this),f=d||l?{observableKind:"map",debugObjectName:this.name_,type:qi,object:this,oldValue:a.value_,name:i,newValue:n}:null;a.setNewValue_(n),d&&gi(this,f)}},t.addValue_=function(i,n){var a=this;this.keysAtom_,ka(function(){var h,p=new ku(n,a.enhancer_,"ObservableMap.key",!1);a.data_.set(i,p),n=p.value_,(h=a.hasMap_.get(i))==null||h.setNewValue_(!0),a.keysAtom_.reportChanged()});var l=Zc(),d=pi(this),f=d||l?{observableKind:"map",debugObjectName:this.name_,type:wo,object:this,name:i,newValue:n}:null;d&&gi(this,f)},t.get=function(i){return this.has(i)?this.dehanceValue_(this.data_.get(i).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var i=this,n=this.keys();return fE({next:function(){var l=n.next(),d=l.done,f=l.value;return{done:d,value:d?void 0:i.get(f)}}})},t.entries=function(){var i=this,n=this.keys();return fE({next:function(){var l=n.next(),d=l.done,f=l.value;return{done:d,value:d?void 0:[f,i.get(f)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(i,n){for(var a=ql(this),l;!(l=a()).done;){var d=l.value,f=d[0],h=d[1];i.call(n,h,f,this)}},t.merge=function(i){var n=this;return Vu(i)&&(i=new Map(i)),ka(function(){za(i)?r5(i).forEach(function(a){return n.set(a,i[a])}):Array.isArray(i)?i.forEach(function(a){var l=a[0],d=a[1];return n.set(l,d)}):xs(i)?(n5(i)||bt(19,i),i.forEach(function(a,l){return n.set(l,a)})):i!=null&&bt(20,i)}),this},t.clear=function(){var i=this;ka(function(){LI(function(){for(var n=ql(i.keys()),a;!(a=n()).done;){var l=a.value;i.delete(l)}})})},t.replace=function(i){var n=this;return ka(function(){for(var a=R9(i),l=new Map,d=!1,f=ql(n.data_.keys()),h;!(h=f()).done;){var p=h.value;if(!a.has(p)){var g=n.delete(p);if(g)d=!0;else{var b=n.data_.get(p);l.set(p,b)}}}for(var k=ql(a.entries()),w;!(w=k()).done;){var I=w.value,x=I[0],$=I[1],j=n.data_.has(x);if(n.set(x,$),n.data_.has(x)){var N=n.data_.get(x);l.set(x,N),j||(d=!0)}}if(!d)if(n.data_.size!==l.size)n.keysAtom_.reportChanged();else for(var z=n.data_.keys(),T=l.keys(),E=z.next(),C=T.next();!E.done;){if(E.value!==C.value){n.keysAtom_.reportChanged();break}E=z.next(),C=T.next()}n.data_=l}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(i,n){return xd(this,i)},t.intercept_=function(i){return wd(this,i)},Os(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Vu=Bu("ObservableMap",rT);function fE(e){return e[Symbol.toStringTag]="MapIterator",k_(e)}function R9(e){if(xs(e)||Vu(e))return e;if(Array.isArray(e))return new Map(e);if(za(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return bt(21,e)}var M9={},iT=(function(){function e(r,i,n){var a=this;i===void 0&&(i=Iu),n===void 0&&(n="ObservableSet"),this.name_=void 0,this[Ve]=M9,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,_i(Set)||bt(22),this.enhancer_=function(l,d){return i(l,d,n)},Uo(function(){a.atom_=jI(a.name_),r&&a.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.clear=function(){var i=this;ka(function(){LI(function(){for(var n=ql(i.data_.values()),a;!(a=n()).done;){var l=a.value;i.delete(l)}})})},t.forEach=function(i,n){for(var a=ql(this),l;!(l=a()).done;){var d=l.value;i.call(n,d,d,this)}},t.add=function(i){var n=this;if(this.atom_,Vr(this)){var a=qr(this,{type:wo,object:this,newValue:i});if(!a)return this;i=a.newValue}if(!this.has(i)){ka(function(){n.data_.add(n.enhancer_(i,void 0)),n.atom_.reportChanged()});var l=!1,d=pi(this),f=d||l?{observableKind:"set",debugObjectName:this.name_,type:wo,object:this,newValue:i}:null;d&&gi(this,f)}return this},t.delete=function(i){var n=this;if(Vr(this)){var a=qr(this,{type:uh,object:this,oldValue:i});if(!a)return!1}if(this.has(i)){var l=!1,d=pi(this),f=d||l?{observableKind:"set",debugObjectName:this.name_,type:uh,object:this,oldValue:i}:null;return ka(function(){n.atom_.reportChanged(),n.data_.delete(i)}),d&&gi(this,f),!0}return!1},t.has=function(i){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(i))},t.entries=function(){var i=this.values();return mE({next:function(){var a=i.next(),l=a.value,d=a.done;return d?{value:void 0,done:d}:{value:[l,l],done:d}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var i=this,n=this.data_.values();return mE({next:function(){var l=n.next(),d=l.value,f=l.done;return f?{value:void 0,done:f}:{value:i.dehanceValue_(d),done:f}}})},t.intersection=function(i){if(Sa(i)&&!Pi(i))return i.intersection(this);var n=new Set(this);return n.intersection(i)},t.union=function(i){if(Sa(i)&&!Pi(i))return i.union(this);var n=new Set(this);return n.union(i)},t.difference=function(i){return new Set(this).difference(i)},t.symmetricDifference=function(i){if(Sa(i)&&!Pi(i))return i.symmetricDifference(this);var n=new Set(this);return n.symmetricDifference(i)},t.isSubsetOf=function(i){return new Set(this).isSubsetOf(i)},t.isSupersetOf=function(i){return new Set(this).isSupersetOf(i)},t.isDisjointFrom=function(i){if(Sa(i)&&!Pi(i))return i.isDisjointFrom(this);var n=new Set(this);return n.isDisjointFrom(i)},t.replace=function(i){var n=this;return Pi(i)&&(i=new Set(i)),ka(function(){Array.isArray(i)?(n.clear(),i.forEach(function(a){return n.add(a)})):Sa(i)?(n.clear(),i.forEach(function(a){return n.add(a)})):i!=null&&bt("Cannot initialize set from "+i)}),this},t.observe_=function(i,n){return xd(this,i)},t.intercept_=function(i){return wd(this,i)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Os(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),Pi=Bu("ObservableSet",iT);function mE(e){return e[Symbol.toStringTag]="SetIterator",k_(e)}var hE=Object.create(null),vE="remove",aT=(function(){function e(r,i,n,a){i===void 0&&(i=new Map),a===void 0&&(a=A5),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=r,this.values_=i,this.name_=n,this.defaultAnnotation_=a,this.keysAtom_=new Do("ObservableObject.keys"),this.isPlainObject_=za(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(i){return this.values_.get(i).get()},t.setObservablePropValue_=function(i,n){var a=this.values_.get(i);if(a instanceof $i)return a.set(n),!0;if(Vr(this)){var l=qr(this,{type:qi,object:this.proxy_||this.target_,name:i,newValue:n});if(!l)return null;n=l.newValue}if(n=a.prepareNewValue_(n),n!==ge.UNCHANGED){var d=pi(this),f=!1,h=d||f?{type:qi,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:i,newValue:n}:null;a.setNewValue_(n),d&&gi(this,h)}return!0},t.get_=function(i){return ge.trackingDerivation&&!Na(this.target_,i)&&this.has_(i),this.target_[i]},t.set_=function(i,n,a){return a===void 0&&(a=!1),Na(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,n):a?Reflect.set(this.target_,i,n):(this.target_[i]=n,!0):this.extend_(i,{value:n,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},t.has_=function(i){if(!ge.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var n=this.pendingKeys_.get(i);return n||(n=new ku(i in this.target_,Bh,"ObservableObject.key?",!1),this.pendingKeys_.set(i,n)),n.get()},t.make_=function(i,n){if(n===!0&&(n=this.defaultAnnotation_),n!==!1){if(!(i in this.target_)){var a;if((a=this.target_[Zi])!=null&&a[i])return;bt(1,n.annotationType_,this.name_+"."+i.toString())}for(var l=this.target_;l&&l!==Ph;){var d=eh(l,i);if(d){var f=n.make_(this,i,d,l);if(f===0)return;if(f===1)break}l=Object.getPrototypeOf(l)}gE(this,n,i)}},t.extend_=function(i,n,a,l){if(l===void 0&&(l=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(i,n,l);var d=a.extend_(this,i,n,l);return d&&gE(this,a,i),d},t.defineProperty_=function(i,n,a){a===void 0&&(a=!1),this.keysAtom_;try{Hr();var l=this.delete_(i);if(!l)return l;if(Vr(this)){var d=qr(this,{object:this.proxy_||this.target_,name:i,type:wo,newValue:n.value});if(!d)return null;var f=d.newValue;n.value!==f&&(n=ju({},n,{value:f}))}if(a){if(!Reflect.defineProperty(this.target_,i,n))return!1}else Fi(this.target_,i,n);this.notifyPropertyAddition_(i,n.value)}finally{Kr()}return!0},t.defineObservableProperty_=function(i,n,a,l){l===void 0&&(l=!1),this.keysAtom_;try{Hr();var d=this.delete_(i);if(!d)return d;if(Vr(this)){var f=qr(this,{object:this.proxy_||this.target_,name:i,type:wo,newValue:n});if(!f)return null;n=f.newValue}var h=pE(i),p={configurable:ge.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:h.get,set:h.set};if(l){if(!Reflect.defineProperty(this.target_,i,p))return!1}else Fi(this.target_,i,p);var g=new ku(n,a,"ObservableObject.key",!1);this.values_.set(i,g),this.notifyPropertyAddition_(i,g.value_)}finally{Kr()}return!0},t.defineComputedProperty_=function(i,n,a){a===void 0&&(a=!1),this.keysAtom_;try{Hr();var l=this.delete_(i);if(!l)return l;if(Vr(this)){var d=qr(this,{object:this.proxy_||this.target_,name:i,type:wo,newValue:void 0});if(!d)return null}n.name||(n.name="ObservableObject.key"),n.context=this.proxy_||this.target_;var f=pE(i),h={configurable:ge.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:f.get,set:f.set};if(a){if(!Reflect.defineProperty(this.target_,i,h))return!1}else Fi(this.target_,i,h);this.values_.set(i,new $i(n)),this.notifyPropertyAddition_(i,void 0)}finally{Kr()}return!0},t.delete_=function(i,n){if(n===void 0&&(n=!1),this.keysAtom_,!Na(this.target_,i))return!0;if(Vr(this)){var a=qr(this,{object:this.proxy_||this.target_,name:i,type:vE});if(!a)return null}try{var l;Hr();var d=pi(this),f=!1,h=this.values_.get(i),p=void 0;if(!h&&(d||f)){var g;p=(g=eh(this.target_,i))==null?void 0:g.value}if(n){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(h&&(this.values_.delete(i),h instanceof ku&&(p=h.value_),qI(h)),this.keysAtom_.reportChanged(),(l=this.pendingKeys_)==null||(l=l.get(i))==null||l.set(i in this.target_),d||f){var b={type:vE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:p,name:i};d&&gi(this,b)}}finally{Kr()}return!0},t.observe_=function(i,n){return xd(this,i)},t.intercept_=function(i){return wd(this,i)},t.notifyPropertyAddition_=function(i,n){var a,l=pi(this),d=!1;if(l||d){var f=l||d?{type:wo,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:n}:null;l&&gi(this,f)}(a=this.pendingKeys_)==null||(a=a.get(i))==null||a.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),as(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e})();function qu(e,t){var r;if(Na(e,Ve))return e;var i=(r=t==null?void 0:t.name)!=null?r:"ObservableObject",n=new aT(e,new Map,String(i),V5(t));return _d(e,Ve,n),e}var L9=Bu("ObservableObjectAdministration",aT);function pE(e){return hE[e]||(hE[e]={get:function(){return this[Ve].getObservablePropValue_(e)},set:function(r){return this[Ve].setObservablePropValue_(e,r)}})}function Hh(e){return Zh(e)?L9(e[Ve]):!1}function gE(e,t,r){var i;(i=e.target_[Zi])==null||delete i[r]}var P9=uT(0),Z9=(function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1})(),fy=0,oT=function(){};function B9(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}B9(oT,Array.prototype);var S_=(function(e){function t(i,n,a,l){var d;return a===void 0&&(a="ObservableArray"),l===void 0&&(l=!1),d=e.call(this)||this,Uo(function(){var f=new $_(a,n,l,!0);f.proxy_=d,xI(d,Ve,f),i&&i.length&&d.spliceWithArray(0,0,i),Z9&&Object.defineProperty(d,"0",P9)}),d}NI(t,e);var r=t.prototype;return r.concat=function(){this[Ve].atom_.reportObserved();for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),a.map(function(d){return Gh(d)?d.slice():d}))},r[Symbol.iterator]=function(){var i=this,n=0;return k_({next:function(){return n<i.length?{value:i[n++],done:!1}:{done:!0,value:void 0}}})},Os(t,[{key:"length",get:function(){return this[Ve].getArrayLength_()},set:function(n){this[Ve].setArrayLength_(n)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(oT);Object.entries(oh).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&_d(S_.prototype,t,r)});function uT(e){return{enumerable:!1,configurable:!0,get:function(){return this[Ve].get_(e)},set:function(r){this[Ve].set_(e,r)}}}function F9(e){Fi(S_.prototype,""+e,uT(e))}function lT(e){if(e>fy){for(var t=fy;t<e+100;t++)F9(t);fy=e}}lT(1e3);function V9(e,t,r){return new S_(e,t,r)}function lh(e,t){if(typeof e=="object"&&e!==null){if(Gh(e))return t!==void 0&&bt(23),e[Ve].atom_;if(Pi(e))return e.atom_;if(Vu(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||bt(25,t,rb(e)),r}if(Hh(e)){if(!t)return bt(26);var i=e[Ve].values_.get(t);return i||bt(27,t,rb(e)),i}if(p_(e)||qh(e)||ah(e))return e}else if(_i(e)&&ah(e[Ve]))return e[Ve];bt(28)}function q9(e,t){if(e||bt(29),p_(e)||qh(e)||ah(e)||Vu(e)||Pi(e))return e;if(e[Ve])return e[Ve];bt(24,e)}function rb(e,t){var r;if(t!==void 0)r=lh(e,t);else{if(os(e))return e.name;Hh(e)||Vu(e)||Pi(e)?r=q9(e):r=lh(e)}return r.name_}function Uo(e){var t=Fu(),r=y_(!0);Hr();try{return e()}finally{Kr(),b_(r),ja(t)}}var yE=Ph.toString;function sT(e,t,r){return r===void 0&&(r=-1),ib(e,t,r)}function ib(e,t,r,i,n){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!=="function"&&a!=="object"&&typeof t!="object")return!1;var l=yE.call(e);if(l!==yE.call(t))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=bE(e),t=bE(t);var d=l==="[object Array]";if(!d){if(typeof e!="object"||typeof t!="object")return!1;var f=e.constructor,h=t.constructor;if(f!==h&&!(_i(f)&&f instanceof f&&_i(h)&&h instanceof h)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),i=i||[],n=n||[];for(var p=i.length;p--;)if(i[p]===e)return n[p]===t;if(i.push(e),n.push(t),d){if(p=e.length,p!==t.length)return!1;for(;p--;)if(!ib(e[p],t[p],r-1,i,n))return!1}else{var g=Object.keys(e),b=g.length;if(Object.keys(t).length!==b)return!1;for(var k=0;k<b;k++){var w=g[k];if(!(Na(t,w)&&ib(e[w],t[w],r-1,i,n)))return!1}}return i.pop(),n.pop(),!0}function bE(e){return Gh(e)?e.slice():xs(e)||Vu(e)||Sa(e)||Pi(e)?Array.from(e.entries()):e}var _E,G9=((_E=Lh().Iterator)==null?void 0:_E.prototype)||{};function k_(e){return e[Symbol.iterator]=H9,Object.assign(Object.create(G9),e)}function H9(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Lh();typeof t[e]>"u"&&bt("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:l9,extras:{getDebugName:rb},$mobx:Ve});if(!S.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!I9)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function K9(e){e()}function J9(e){e||(e=K9),S9({reactionScheduler:e})}function Y9(e){return k9(e)}var X9=1e4,Q9=1e4,W9=(function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(i){i===void 0&&(i=X9),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var n=Date.now();r.registrations.forEach(function(a,l){n-a.registeredAt>=i&&(r.finalize(a.value),r.registrations.delete(l))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,i){this.registrations.set(i,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Q9))}}),e})(),eV=typeof FinalizationRegistry<"u"?FinalizationRegistry:W9,ab=new eV(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),my={exports:{}},hy={};/**
|
|
64
|
-
* @license React
|
|
65
|
-
* use-sync-external-store-shim.production.js
|
|
66
|
-
*
|
|
67
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the MIT license found in the
|
|
70
|
-
* LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/var $E;function tV(){if($E)return hy;$E=1;var e=Ah();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,n=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function d(g,b){var k=b(),w=i({inst:{value:k,getSnapshot:b}}),I=w[0].inst,x=w[1];return a(function(){I.value=k,I.getSnapshot=b,f(I)&&x({inst:I})},[g,k,b]),n(function(){return f(I)&&x({inst:I}),g(function(){f(I)&&x({inst:I})})},[g]),l(k),k}function f(g){var b=g.getSnapshot;g=g.value;try{var k=b();return!r(g,k)}catch{return!0}}function h(g,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return hy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,hy}var SE;function nV(){return SE||(SE=1,my.exports=tV()),my.exports}var rV=nV();function kE(e){e.reaction=new Aa("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function iV(e,t){t===void 0&&(t="observed");var r=Tt.useRef(null);if(!r.current){var i={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(d){return ab.unregister(i),i.onStoreChange=d,i.reaction||(kE(i),i.stateVersion=Symbol()),function(){var f;i.onStoreChange=null,(f=i.reaction)===null||f===void 0||f.dispose(),i.reaction=null}},getSnapshot:function(){return i.stateVersion}};r.current=i}var n=r.current;n.reaction||(kE(n),ab.register(r,n,n)),Tt.useDebugValue(n.reaction,Y9),rV.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);var a,l;if(n.reaction.track(function(){try{a=e()}catch(d){l=d}}),l)throw l;return a}var vy,py,cT=typeof Symbol=="function"&&Symbol.for,aV=(py=(vy=Object.getOwnPropertyDescriptor(function(){},"name"))===null||vy===void 0?void 0:vy.configurable)!==null&&py!==void 0?py:!1,wE=cT?Symbol.for("react.forward_ref"):typeof S.forwardRef=="function"&&S.forwardRef(function(e){return null}).$$typeof,xE=cT?Symbol.for("react.memo"):typeof S.memo=="function"&&S.memo(function(e){return null}).$$typeof;function fn(e,t){var r;if(xE&&e.$$typeof===xE)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var i=(r=void 0)!==null&&r!==void 0?r:!1,n=e,a=e.displayName||e.name;if(wE&&e.$$typeof===wE&&(i=!0,n=e.render,typeof n!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var l=function(d,f){return iV(function(){return n(d,f)},a)};return l.displayName=e.displayName,aV&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),i&&(l=S.forwardRef(l)),l=S.memo(l),uV(e,l),l}var oV={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function uV(e,t){Object.keys(e).forEach(function(r){oV[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}var gy;J9(m_.unstable_batchedUpdates);gy=ab.finalizeAllImmediately;class Jl extends Error{constructor(r,i){const n=`${Jl.extractMessage(r)}: ${JSON.stringify({response:r,request:i})}`;super(n);ga(this,"response");ga(this,"request");Object.setPrototypeOf(this,Jl.prototype),this.response=r,this.request=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Jl)}static extractMessage(r){var i,n;return((n=(i=r.errors)==null?void 0:i[0])==null?void 0:n.message)??`GraphQL Error (Code: ${String(r.status)})`}}const OE=e=>e.toUpperCase(),yy=e=>typeof e=="function"?e():e,dT=(e,t)=>e.map((r,i)=>[r,t[i]]),Ll=e=>{let t={};return e instanceof Headers?t=lV(e):Array.isArray(e)?e.forEach(([r,i])=>{r&&i!==void 0&&(t[r]=i)}):e&&(t=e),t},lV=e=>{const t={};return e.forEach((r,i)=>{t[i]=r}),t},sV=e=>{try{const t=e();return cV(t)?t.catch(r=>EE(r)):t}catch(t){return EE(t)}},EE=e=>e instanceof Error?e:new Error(String(e)),cV=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",w_=e=>{throw new Error(`Unhandled case: ${String(e)}`)},qm=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),dV=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},fV=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function Gm(e,t){if(!!!e)throw new Error(t)}function mV(e){return typeof e=="object"&&e!==null}function hV(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const vV=/\r\n|[\n\r]/g;function ob(e,t){let r=0,i=1;for(const n of e.body.matchAll(vV)){if(typeof n.index=="number"||hV(!1),n.index>=t)break;r=n.index+n[0].length,i+=1}return{line:i,column:t+1-r}}function pV(e){return fT(e.source,ob(e.source,e.start))}function fT(e,t){const r=e.locationOffset.column-1,i="".padStart(r)+e.body,n=t.line-1,a=e.locationOffset.line-1,l=t.line+a,d=t.line===1?r:0,f=t.column+d,h=`${e.name}:${l}:${f}
|
|
72
|
-
`,p=i.split(/\r\n|[\n\r]/g),g=p[n];if(g.length>120){const b=Math.floor(f/80),k=f%80,w=[];for(let I=0;I<g.length;I+=80)w.push(g.slice(I,I+80));return h+NE([[`${l} |`,w[0]],...w.slice(1,b+1).map(I=>["|",I]),["|","^".padStart(k)],["|",w[b+1]]])}return h+NE([[`${l-1} |`,p[n-1]],[`${l} |`,g],["|","^".padStart(f)],[`${l+1} |`,p[n+1]]])}function NE(e){const t=e.filter(([i,n])=>n!==void 0),r=Math.max(...t.map(([i])=>i.length));return t.map(([i,n])=>i.padStart(r)+(n?" "+n:"")).join(`
|
|
73
|
-
`)}function gV(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}let yV=class mT extends Error{constructor(t,...r){var i,n,a;const{nodes:l,source:d,positions:f,path:h,originalError:p,extensions:g}=gV(r);super(t),this.name="GraphQLError",this.path=h??void 0,this.originalError=p??void 0,this.nodes=jE(Array.isArray(l)?l:l?[l]:void 0);const b=jE((i=this.nodes)===null||i===void 0?void 0:i.map(w=>w.loc).filter(w=>w!=null));this.source=d??(b==null||(n=b[0])===null||n===void 0?void 0:n.source),this.positions=f??(b==null?void 0:b.map(w=>w.start)),this.locations=f&&d?f.map(w=>ob(d,w)):b==null?void 0:b.map(w=>ob(w.source,w.start));const k=mV(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(a=g??k)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,mT):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
74
|
-
|
|
75
|
-
`+pV(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
|
|
76
|
-
|
|
77
|
-
`+fT(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function jE(e){return e===void 0||e.length===0?void 0:e}function Sn(e,t,r){return new yV(`Syntax Error: ${r}`,{source:e,positions:[t]})}class bV{constructor(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class hT{constructor(t,r,i,n,a,l){this.kind=t,this.start=r,this.end=i,this.line=n,this.column=a,this.value=l,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const vT={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},_V=new Set(Object.keys(vT));function IE(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&_V.has(t)}var Hl;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Hl||(Hl={}));var ub;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ub||(ub={}));var Be;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Be||(Be={}));function lb(e){return e===9||e===32}function ed(e){return e>=48&&e<=57}function pT(e){return e>=97&&e<=122||e>=65&&e<=90}function gT(e){return pT(e)||e===95}function $V(e){return pT(e)||ed(e)||e===95}function SV(e){var t;let r=Number.MAX_SAFE_INTEGER,i=null,n=-1;for(let l=0;l<e.length;++l){var a;const d=e[l],f=kV(d);f!==d.length&&(i=(a=i)!==null&&a!==void 0?a:l,n=l,l!==0&&f<r&&(r=f))}return e.map((l,d)=>d===0?l:l.slice(r)).slice((t=i)!==null&&t!==void 0?t:0,n+1)}function kV(e){let t=0;for(;t<e.length&&lb(e.charCodeAt(t));)++t;return t}function wV(e,t){const r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),n=i.length===1,a=i.length>1&&i.slice(1).every(k=>k.length===0||lb(k.charCodeAt(0))),l=r.endsWith('\\"""'),d=e.endsWith('"')&&!l,f=e.endsWith("\\"),h=d||f,p=!n||e.length>70||h||a||l;let g="";const b=n&&lb(e.charCodeAt(0));return(p&&!b||a)&&(g+=`
|
|
78
|
-
`),g+=r,(p||h)&&(g+=`
|
|
79
|
-
`),'"""'+g+'"""'}var te;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(te||(te={}));class xV{constructor(t){const r=new hT(te.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==te.EOF)do if(t.next)t=t.next;else{const r=EV(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===te.COMMENT);return t}}function OV(e){return e===te.BANG||e===te.DOLLAR||e===te.AMP||e===te.PAREN_L||e===te.PAREN_R||e===te.SPREAD||e===te.COLON||e===te.EQUALS||e===te.AT||e===te.BRACKET_L||e===te.BRACKET_R||e===te.BRACE_L||e===te.PIPE||e===te.BRACE_R}function Es(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Kh(e,t){return yT(e.charCodeAt(t))&&bT(e.charCodeAt(t+1))}function yT(e){return e>=55296&&e<=56319}function bT(e){return e>=56320&&e<=57343}function zu(e,t){const r=e.source.body.codePointAt(t);if(r===void 0)return te.EOF;if(r>=32&&r<=126){const i=String.fromCodePoint(r);return i==='"'?`'"'`:`"${i}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function cn(e,t,r,i,n){const a=e.line,l=1+r-e.lineStart;return new hT(t,r,i,a,l,n)}function EV(e,t){const r=e.source.body,i=r.length;let n=t;for(;n<i;){const a=r.charCodeAt(n);switch(a){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:r.charCodeAt(n+1)===10?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return NV(e,n);case 33:return cn(e,te.BANG,n,n+1);case 36:return cn(e,te.DOLLAR,n,n+1);case 38:return cn(e,te.AMP,n,n+1);case 40:return cn(e,te.PAREN_L,n,n+1);case 41:return cn(e,te.PAREN_R,n,n+1);case 46:if(r.charCodeAt(n+1)===46&&r.charCodeAt(n+2)===46)return cn(e,te.SPREAD,n,n+3);break;case 58:return cn(e,te.COLON,n,n+1);case 61:return cn(e,te.EQUALS,n,n+1);case 64:return cn(e,te.AT,n,n+1);case 91:return cn(e,te.BRACKET_L,n,n+1);case 93:return cn(e,te.BRACKET_R,n,n+1);case 123:return cn(e,te.BRACE_L,n,n+1);case 124:return cn(e,te.PIPE,n,n+1);case 125:return cn(e,te.BRACE_R,n,n+1);case 34:return r.charCodeAt(n+1)===34&&r.charCodeAt(n+2)===34?DV(e,n):IV(e,n)}if(ed(a)||a===45)return jV(e,n,a);if(gT(a))return UV(e,n);throw Sn(e.source,n,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Es(a)||Kh(r,n)?`Unexpected character: ${zu(e,n)}.`:`Invalid character: ${zu(e,n)}.`)}return cn(e,te.EOF,i,i)}function NV(e,t){const r=e.source.body,i=r.length;let n=t+1;for(;n<i;){const a=r.charCodeAt(n);if(a===10||a===13)break;if(Es(a))++n;else if(Kh(r,n))n+=2;else break}return cn(e,te.COMMENT,t,n,r.slice(t+1,n))}function jV(e,t,r){const i=e.source.body;let n=t,a=r,l=!1;if(a===45&&(a=i.charCodeAt(++n)),a===48){if(a=i.charCodeAt(++n),ed(a))throw Sn(e.source,n,`Invalid number, unexpected digit after 0: ${zu(e,n)}.`)}else n=by(e,n,a),a=i.charCodeAt(n);if(a===46&&(l=!0,a=i.charCodeAt(++n),n=by(e,n,a),a=i.charCodeAt(n)),(a===69||a===101)&&(l=!0,a=i.charCodeAt(++n),(a===43||a===45)&&(a=i.charCodeAt(++n)),n=by(e,n,a),a=i.charCodeAt(n)),a===46||gT(a))throw Sn(e.source,n,`Invalid number, expected digit but got: ${zu(e,n)}.`);return cn(e,l?te.FLOAT:te.INT,t,n,i.slice(t,n))}function by(e,t,r){if(!ed(r))throw Sn(e.source,t,`Invalid number, expected digit but got: ${zu(e,t)}.`);const i=e.source.body;let n=t+1;for(;ed(i.charCodeAt(n));)++n;return n}function IV(e,t){const r=e.source.body,i=r.length;let n=t+1,a=n,l="";for(;n<i;){const d=r.charCodeAt(n);if(d===34)return l+=r.slice(a,n),cn(e,te.STRING,t,n+1,l);if(d===92){l+=r.slice(a,n);const f=r.charCodeAt(n+1)===117?r.charCodeAt(n+2)===123?TV(e,n):zV(e,n):AV(e,n);l+=f.value,n+=f.size,a=n;continue}if(d===10||d===13)break;if(Es(d))++n;else if(Kh(r,n))n+=2;else throw Sn(e.source,n,`Invalid character within String: ${zu(e,n)}.`)}throw Sn(e.source,n,"Unterminated string.")}function TV(e,t){const r=e.source.body;let i=0,n=3;for(;n<12;){const a=r.charCodeAt(t+n++);if(a===125){if(n<5||!Es(i))break;return{value:String.fromCodePoint(i),size:n}}if(i=i<<4|Dc(a),i<0)break}throw Sn(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+n)}".`)}function zV(e,t){const r=e.source.body,i=TE(r,t+2);if(Es(i))return{value:String.fromCodePoint(i),size:6};if(yT(i)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){const n=TE(r,t+8);if(bT(n))return{value:String.fromCodePoint(i,n),size:12}}throw Sn(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function TE(e,t){return Dc(e.charCodeAt(t))<<12|Dc(e.charCodeAt(t+1))<<8|Dc(e.charCodeAt(t+2))<<4|Dc(e.charCodeAt(t+3))}function Dc(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function AV(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
80
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Sn(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function DV(e,t){const r=e.source.body,i=r.length;let n=e.lineStart,a=t+3,l=a,d="";const f=[];for(;a<i;){const h=r.charCodeAt(a);if(h===34&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){d+=r.slice(l,a),f.push(d);const p=cn(e,te.BLOCK_STRING,t,a+3,SV(f).join(`
|
|
81
|
-
`));return e.line+=f.length-1,e.lineStart=n,p}if(h===92&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34&&r.charCodeAt(a+3)===34){d+=r.slice(l,a),l=a+1,a+=4;continue}if(h===10||h===13){d+=r.slice(l,a),f.push(d),h===13&&r.charCodeAt(a+1)===10?a+=2:++a,d="",l=a,n=a;continue}if(Es(h))++a;else if(Kh(r,a))a+=2;else throw Sn(e.source,a,`Invalid character within String: ${zu(e,a)}.`)}throw Sn(e.source,a,"Unterminated string.")}function UV(e,t){const r=e.source.body,i=r.length;let n=t+1;for(;n<i;){const a=r.charCodeAt(n);if($V(a))++n;else break}return cn(e,te.NAME,t,n,r.slice(t,n))}const CV=10,_T=2;function x_(e){return Jh(e,[])}function Jh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return RV(e,t);default:return String(e)}}function RV(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(MV(e)){const i=e.toJSON();if(i!==e)return typeof i=="string"?i:Jh(i,r)}else if(Array.isArray(e))return PV(e,r);return LV(e,r)}function MV(e){return typeof e.toJSON=="function"}function LV(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>_T?"["+ZV(e)+"]":"{ "+r.map(([n,a])=>n+": "+Jh(a,t)).join(", ")+" }"}function PV(e,t){if(e.length===0)return"[]";if(t.length>_T)return"[Array]";const r=Math.min(CV,e.length),i=e.length-r,n=[];for(let a=0;a<r;++a)n.push(Jh(e[a],t));return i===1?n.push("... 1 more item"):i>1&&n.push(`... ${i} more items`),"["+n.join(", ")+"]"}function ZV(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const BV=globalThis.process&&!0,FV=BV?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var i;const n=r.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(n===a){const l=x_(t);throw new Error(`Cannot use ${n} "${l}" from another module or realm.
|
|
82
|
-
|
|
83
|
-
Ensure that there is only one instance of "graphql" in the node_modules
|
|
84
|
-
directory. If different versions of "graphql" are the dependencies of other
|
|
85
|
-
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
86
|
-
|
|
87
|
-
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
88
|
-
|
|
89
|
-
Duplicate "graphql" modules cannot be used at the same time since different
|
|
90
|
-
versions may have different capabilities and behavior. The data from one
|
|
91
|
-
version used in the function from another could produce confusing and
|
|
92
|
-
spurious results.`)}}return!1};class $T{constructor(t,r="GraphQL request",i={line:1,column:1}){typeof t=="string"||Gm(!1,`Body must be a string. Received: ${x_(t)}.`),this.body=t,this.name=r,this.locationOffset=i,this.locationOffset.line>0||Gm(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Gm(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function VV(e){return FV(e,$T)}function qV(e,t){const r=new GV(e,t),i=r.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i}class GV{constructor(t,r={}){const i=VV(t)?t:new $T(t);this._lexer=new xV(i),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(te.NAME);return this.node(t,{kind:Be.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Be.DOCUMENT,definitions:this.many(te.SOF,this.parseDefinition,te.EOF)})}parseDefinition(){if(this.peek(te.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===te.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Sn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(te.BRACE_L))return this.node(t,{kind:Be.OPERATION_DEFINITION,operation:Hl.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let i;return this.peek(te.NAME)&&(i=this.parseName()),this.node(t,{kind:Be.OPERATION_DEFINITION,operation:r,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(te.NAME);switch(t.value){case"query":return Hl.QUERY;case"mutation":return Hl.MUTATION;case"subscription":return Hl.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(te.PAREN_L,this.parseVariableDefinition,te.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Be.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(te.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(te.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(te.DOLLAR),this.node(t,{kind:Be.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Be.SELECTION_SET,selections:this.many(te.BRACE_L,this.parseSelection,te.BRACE_R)})}parseSelection(){return this.peek(te.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let i,n;return this.expectOptionalToken(te.COLON)?(i=r,n=this.parseName()):n=r,this.node(t,{kind:Be.FIELD,alias:i,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(te.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(te.PAREN_L,r,te.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,i=this.parseName();return this.expectToken(te.COLON),this.node(r,{kind:Be.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(te.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(te.NAME)?this.node(t,{kind:Be.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Be.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Be.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Be.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case te.BRACKET_L:return this.parseList(t);case te.BRACE_L:return this.parseObject(t);case te.INT:return this.advanceLexer(),this.node(r,{kind:Be.INT,value:r.value});case te.FLOAT:return this.advanceLexer(),this.node(r,{kind:Be.FLOAT,value:r.value});case te.STRING:case te.BLOCK_STRING:return this.parseStringLiteral();case te.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:Be.BOOLEAN,value:!0});case"false":return this.node(r,{kind:Be.BOOLEAN,value:!1});case"null":return this.node(r,{kind:Be.NULL});default:return this.node(r,{kind:Be.ENUM,value:r.value})}case te.DOLLAR:if(t)if(this.expectToken(te.DOLLAR),this._lexer.token.kind===te.NAME){const i=this._lexer.token.value;throw Sn(this._lexer.source,r.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Be.STRING,value:t.value,block:t.kind===te.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Be.LIST,values:this.any(te.BRACKET_L,r,te.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Be.OBJECT,fields:this.any(te.BRACE_L,r,te.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,i=this.parseName();return this.expectToken(te.COLON),this.node(r,{kind:Be.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(te.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(te.AT),this.node(r,{kind:Be.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(te.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(te.BRACKET_R),r=this.node(t,{kind:Be.LIST_TYPE,type:i})}else r=this.parseNamedType();return this.expectOptionalToken(te.BANG)?this.node(t,{kind:Be.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:Be.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(te.STRING)||this.peek(te.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),n=this.many(te.BRACE_L,this.parseOperationTypeDefinition,te.BRACE_R);return this.node(t,{kind:Be.SCHEMA_DEFINITION,description:r,directives:i,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(te.COLON);const i=this.parseNamedType();return this.node(t,{kind:Be.OPERATION_TYPE_DEFINITION,operation:r,type:i})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:Be.SCALAR_TYPE_DEFINITION,description:r,name:i,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),n=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:Be.OBJECT_TYPE_DEFINITION,description:r,name:i,interfaces:n,directives:a,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(te.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(te.BRACE_L,this.parseFieldDefinition,te.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(te.COLON);const a=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:Be.FIELD_DEFINITION,description:r,name:i,arguments:n,type:a,directives:l})}parseArgumentDefs(){return this.optionalMany(te.PAREN_L,this.parseInputValueDef,te.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),i=this.parseName();this.expectToken(te.COLON);const n=this.parseTypeReference();let a;this.expectOptionalToken(te.EQUALS)&&(a=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:Be.INPUT_VALUE_DEFINITION,description:r,name:i,type:n,defaultValue:a,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),n=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:Be.INTERFACE_TYPE_DEFINITION,description:r,name:i,interfaces:n,directives:a,fields:l})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),n=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:Be.UNION_TYPE_DEFINITION,description:r,name:i,directives:n,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(te.EQUALS)?this.delimitedMany(te.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),n=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:Be.ENUM_TYPE_DEFINITION,description:r,name:i,directives:n,values:a})}parseEnumValuesDefinition(){return this.optionalMany(te.BRACE_L,this.parseEnumValueDefinition,te.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:Be.ENUM_VALUE_DEFINITION,description:r,name:i,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Sn(this._lexer.source,this._lexer.token.start,`${wm(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),n=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:Be.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:i,directives:n,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(te.BRACE_L,this.parseInputValueDef,te.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===te.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.optionalMany(te.BRACE_L,this.parseOperationTypeDefinition,te.BRACE_R);if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Be.SCHEMA_EXTENSION,directives:r,operationTypes:i})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:Be.SCALAR_TYPE_EXTENSION,name:r,directives:i})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&n.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Be.OBJECT_TYPE_EXTENSION,name:r,interfaces:i,directives:n,fields:a})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&n.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Be.INTERFACE_TYPE_EXTENSION,name:r,interfaces:i,directives:n,fields:a})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(i.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:Be.UNION_TYPE_EXTENSION,name:r,directives:i,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(i.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:Be.ENUM_TYPE_EXTENSION,name:r,directives:i,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(i.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:Be.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:i,fields:n})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(te.AT);const i=this.parseName(),n=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(t,{kind:Be.DIRECTIVE_DEFINITION,description:r,name:i,arguments:n,repeatable:a,locations:l})}parseDirectiveLocations(){return this.delimitedMany(te.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(ub,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new bV(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw Sn(this._lexer.source,r.start,`Expected ${ST(t)}, found ${wm(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===te.NAME&&r.value===t)this.advanceLexer();else throw Sn(this._lexer.source,r.start,`Expected "${t}", found ${wm(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===te.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return Sn(this._lexer.source,r.start,`Unexpected ${wm(r)}.`)}any(t,r,i){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(i);)n.push(r.call(this));return n}optionalMany(t,r,i){if(this.expectOptionalToken(t)){const n=[];do n.push(r.call(this));while(!this.expectOptionalToken(i));return n}return[]}many(t,r,i){this.expectToken(t);const n=[];do n.push(r.call(this));while(!this.expectOptionalToken(i));return n}delimitedMany(t,r){this.expectOptionalToken(t);const i=[];do i.push(r.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==te.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Sn(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function wm(e){const t=e.value;return ST(e.kind)+(t!=null?` "${t}"`:"")}function ST(e){return OV(e)?`"${e}"`:e}function HV(e){return`"${e.replace(KV,JV)}"`}const KV=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function JV(e){return YV[e.charCodeAt(0)]}const YV=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],XV=Object.freeze({});function QV(e,t,r=vT){const i=new Map;for(const $ of Object.values(Be))i.set($,WV(t,$));let n,a=Array.isArray(e),l=[e],d=-1,f=[],h=e,p,g;const b=[],k=[];do{d++;const $=d===l.length,j=$&&f.length!==0;if($){if(p=k.length===0?void 0:b[b.length-1],h=g,g=k.pop(),j)if(a){h=h.slice();let z=0;for(const[T,E]of f){const C=T-z;E===null?(h.splice(C,1),z++):h[C]=E}}else{h={...h};for(const[z,T]of f)h[z]=T}d=n.index,l=n.keys,f=n.edits,a=n.inArray,n=n.prev}else if(g){if(p=a?d:l[d],h=g[p],h==null)continue;b.push(p)}let N;if(!Array.isArray(h)){var w,I;IE(h)||Gm(!1,`Invalid AST Node: ${x_(h)}.`);const z=$?(w=i.get(h.kind))===null||w===void 0?void 0:w.leave:(I=i.get(h.kind))===null||I===void 0?void 0:I.enter;if(N=z==null?void 0:z.call(t,h,p,g,b,k),N===XV)break;if(N===!1){if(!$){b.pop();continue}}else if(N!==void 0&&(f.push([p,N]),!$))if(IE(N))h=N;else{b.pop();continue}}if(N===void 0&&j&&f.push([p,h]),$)b.pop();else{var x;n={inArray:a,index:d,keys:l,edits:f,prev:n},a=Array.isArray(h),l=a?h:(x=r[h.kind])!==null&&x!==void 0?x:[],d=-1,f=[],g&&k.push(g),g=h}}while(n!==void 0);return f.length!==0?f[f.length-1][1]:e}function WV(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function e8(e){return QV(e,n8)}const t8=80,n8={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>xe(e.definitions,`
|
|
93
|
-
|
|
94
|
-
`)},OperationDefinition:{leave(e){const t=ht("(",xe(e.variableDefinitions,", "),")"),r=xe([e.operation,xe([e.name,t]),xe(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i})=>e+": "+t+ht(" = ",r)+ht(" ",xe(i," "))},SelectionSet:{leave:({selections:e})=>li(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){const a=ht("",e,": ")+t;let l=a+ht("(",xe(r,", "),")");return l.length>t8&&(l=a+ht(`(
|
|
95
|
-
`,Hm(xe(r,`
|
|
96
|
-
`)),`
|
|
97
|
-
)`)),xe([l,xe(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ht(" ",xe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>xe(["...",ht("on ",e),xe(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n})=>`fragment ${e}${ht("(",xe(r,", "),")")} on ${t} ${ht("",xe(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?wV(e):HV(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+xe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+xe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ht("(",xe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>ht("",e,`
|
|
98
|
-
`)+xe(["schema",xe(t," "),li(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>ht("",e,`
|
|
99
|
-
`)+xe(["scalar",t,xe(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>ht("",e,`
|
|
100
|
-
`)+xe(["type",t,ht("implements ",xe(r," & ")),xe(i," "),li(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>ht("",e,`
|
|
101
|
-
`)+t+(zE(r)?ht(`(
|
|
102
|
-
`,Hm(xe(r,`
|
|
103
|
-
`)),`
|
|
104
|
-
)`):ht("(",xe(r,", "),")"))+": "+i+ht(" ",xe(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>ht("",e,`
|
|
105
|
-
`)+xe([t+": "+r,ht("= ",i),xe(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>ht("",e,`
|
|
106
|
-
`)+xe(["interface",t,ht("implements ",xe(r," & ")),xe(i," "),li(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>ht("",e,`
|
|
107
|
-
`)+xe(["union",t,xe(r," "),ht("= ",xe(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>ht("",e,`
|
|
108
|
-
`)+xe(["enum",t,xe(r," "),li(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>ht("",e,`
|
|
109
|
-
`)+xe([t,xe(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>ht("",e,`
|
|
110
|
-
`)+xe(["input",t,xe(r," "),li(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:i,locations:n})=>ht("",e,`
|
|
111
|
-
`)+"directive @"+t+(zE(r)?ht(`(
|
|
112
|
-
`,Hm(xe(r,`
|
|
113
|
-
`)),`
|
|
114
|
-
)`):ht("(",xe(r,", "),")"))+(i?" repeatable":"")+" on "+xe(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>xe(["extend schema",xe(e," "),li(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>xe(["extend scalar",e,xe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>xe(["extend type",e,ht("implements ",xe(t," & ")),xe(r," "),li(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>xe(["extend interface",e,ht("implements ",xe(t," & ")),xe(r," "),li(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>xe(["extend union",e,xe(t," "),ht("= ",xe(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>xe(["extend enum",e,xe(t," "),li(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>xe(["extend input",e,xe(t," "),li(r)]," ")}};function xe(e,t=""){var r;return(r=e==null?void 0:e.filter(i=>i).join(t))!==null&&r!==void 0?r:""}function li(e){return ht(`{
|
|
115
|
-
`,Hm(xe(e,`
|
|
116
|
-
`)),`
|
|
117
|
-
}`)}function ht(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Hm(e){return ht(" ",e.replace(/\n/g,`
|
|
118
|
-
`))}function zE(e){var t;return(t=e==null?void 0:e.some(r=>r.includes(`
|
|
119
|
-
`)))!==null&&t!==void 0?t:!1}const AE="Accept",sb="Content-Type",cb="application/json",kT="application/graphql-response+json",DE=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),r8=e=>{const t=e.toLowerCase();return t.includes(kT)||t.includes(cb)},UE=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(CE)};if(qm(e))return{_tag:"Single",executionResult:CE(e)};throw new Error(`Invalid execution result: result is not object or array.
|
|
120
|
-
Got:
|
|
121
|
-
${String(e)}`)}catch(t){return t}},CE=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,r,i;if("errors"in e){if(!qm(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!qm(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");r=e.data}if("extensions"in e){if(!qm(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");i=e.extensions}return{data:r,errors:t,extensions:i}},i8=e=>e._tag==="Batch"?e.executionResults.some(RE):RE(e.executionResult),RE=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,wT=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===Be.OPERATION_DEFINITION,a8=e=>{var i;let t;const r=e.definitions.filter(wT);return r.length===1&&(t=(i=r[0].name)==null?void 0:i.value),t},o8=e=>{let t=!1;const r=e.definitions.filter(wT);return r.length===1&&(t=r[0].operation==="mutation"),t},_y=(e,t)=>{const r=typeof e=="string"?e:e8(e);let i=!1,n;if(t)return{expression:r,isMutation:i,operationName:n};const a=sV(()=>typeof e=="string"?qV(e):e);return a instanceof Error?{expression:r,isMutation:i,operationName:n}:(n=a8(a),i=o8(a),{expression:r,operationName:n,isMutation:i})},O_=JSON,$y=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":OE(e.method??"post"):e.request.hasMutations?"POST":OE(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},i=await l8(t.method)(t);if(!i.ok)return new Jl({status:i.status,headers:i.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const n=await u8(i,e.fetchOptions.jsonSerializer??O_);if(n instanceof Error)throw n;const a={status:i.status,headers:i.headers};if(i8(n)&&t.fetchOptions.errorPolicy==="none"){const l=n._tag==="Batch"?{...n.executionResults,...a}:{...n.executionResult,...a};return new Jl(l,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(n._tag){case"Single":return{...a,...ME(t)(n.executionResult)};case"Batch":return{...a,data:n.executionResults.map(ME(t))};default:w_(n)}},ME=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),u8=async(e,t)=>{const r=e.headers.get(sb),i=await e.text();return r&&r8(r)?UE(t.parse(i)):UE(i)},l8=e=>async t=>{const r=new Headers(t.headers);let i=null,n;r.has(AE)||r.set(AE,[kT,cb].join(", ")),e==="POST"?(n=(t.fetchOptions.jsonSerializer??O_).stringify(s8(t)),typeof n=="string"&&!r.has(sb)&&r.set(sb,cb)):i=c8(t);const a={method:e,headers:r,body:n,...t.fetchOptions};let l=new URL(t.url),d=a;if(t.middleware){const h=await Promise.resolve(t.middleware({...a,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:p,...g}=h;l=new URL(p),d=g}return i&&i.forEach((h,p)=>{l.searchParams.append(p,h)}),await(t.fetch??fetch)(l,d)},s8=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return dT(e.request.query,e.request.variables??[]).map(([t,r])=>({query:t,variables:r}));default:throw w_(e.request)}},c8=e=>{var i;const t=e.fetchOptions.jsonSerializer??O_,r=new URLSearchParams;switch(e.request._tag){case"Single":return r.append("query",DE(e.request.document.expression)),e.request.variables&&r.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&r.append("operationName",e.request.document.operationName),r;case"Batch":{const n=((i=e.request.variables)==null?void 0:i.map(d=>t.stringify(d)))??[],a=e.request.query.map(DE),l=dT(a,n).map(([d,f])=>({query:d,variables:f}));return r.append("query",t.stringify(l)),r}default:throw w_(e.request)}};class d8{constructor(t,r={}){ga(this,"url");ga(this,"requestConfig");ga(this,"rawRequest",async(...t)=>{const[r,i,n]=t,a=fV(r,i,n),{headers:l,fetch:d=globalThis.fetch,method:f="POST",requestMiddleware:h,responseMiddleware:p,excludeOperationName:g,...b}=this.requestConfig,{url:k}=this;a.signal!==void 0&&(b.signal=a.signal);const w=_y(a.query,g),I=await $y({url:k,request:{_tag:"Single",document:w,variables:a.variables},headers:{...Ll(yy(l)),...Ll(a.requestHeaders)},fetch:d,method:f,fetchOptions:b,middleware:h});if(p&&await p(I,{operationName:w.operationName,variables:i,url:this.url}),I instanceof Error)throw I;return I});this.url=t,this.requestConfig=r}async request(t,...r){const[i,n]=r,a=f8(t,i,n),{headers:l,fetch:d=globalThis.fetch,method:f="POST",requestMiddleware:h,responseMiddleware:p,excludeOperationName:g,...b}=this.requestConfig,{url:k}=this;a.signal!==void 0&&(b.signal=a.signal);const w=_y(a.document,g),I=await $y({url:k,request:{_tag:"Single",document:w,variables:a.variables},headers:{...Ll(yy(l)),...Ll(a.requestHeaders)},fetch:d,method:f,fetchOptions:b,middleware:h});if(p&&await p(I,{operationName:w.operationName,variables:a.variables,url:this.url}),I instanceof Error)throw I;return I.data}async batchRequests(t,r){const i=dV(t,r),{headers:n,excludeOperationName:a,...l}=this.requestConfig;i.signal!==void 0&&(l.signal=i.signal);const d=i.documents.map(({document:b})=>_y(b,a)),f=d.map(({expression:b})=>b),h=d.some(({isMutation:b})=>b),p=i.documents.map(({variables:b})=>b),g=await $y({url:this.url,request:{_tag:"Batch",operationName:void 0,query:f,hasMutations:h,variables:p},headers:{...Ll(yy(n)),...Ll(i.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:l,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(g,{operationName:void 0,variables:p,url:this.url}),g instanceof Error)throw g;return g.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:i}=this.requestConfig;return i?i[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const f8=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},db=window.location.origin+"/graphql",xT=(e,t)=>{const[r,i]=S.useState(!1),[n,a]=S.useState(!1),[l,d]=S.useState(null),[f,h]=S.useState(null),p=S.useRef(null);return S.useEffect(()=>{p.current=({variables:b})=>{if(r)return Promise.reject(new Error("Mutation already in progress"));a(!0),i(!0),d(null);const k=new AbortController,w={...t,variables:b,signal:k.signal};return ls(e,w).then(I=>(h(I),d(null),t.onSuccess&&t.onSuccess(I),I)).catch(I=>{throw h(null),d(I),I}).finally(()=>{i(!1),k.abort()})}},[e,r,t]),[S.useCallback(({variables:b})=>p.current?p.current({variables:b}):Promise.reject(new Error("Mutation function not initialized")),[]),{data:f,loading:r,error:l,called:n}]},Co=(e,t,r)=>{const[i,n]=S.useState(!0),[a,l]=S.useState(!1),[d,f]=S.useState(null),[h,p]=S.useState(null),g=S.useRef(null),b=S.useMemo(()=>t,[t.document,t.variables&&JSON.stringify(t.variables),t.skip]),k=S.useRef(t.onCompleted);S.useEffect(()=>{k.current=t.onCompleted});const w=S.useCallback(j=>{var N;(N=k.current)==null||N.call(k,j)},[]),I=S.useCallback(()=>{console.log("[useQuery2] load",{options:b}),g.current&&g.current.abort();const j=new AbortController;g.current=j;const N=ls(e,{...b,signal:j.signal},r);return N.then(z=>{console.log("[useQuery2] result",z),p(z),f(null),w(z)}).catch(z=>{z.name==="AbortError"?console.log("[useQuery2] Request was aborted"):(console.error("[useQuery2] error",z),p(null),f(z))}).finally(()=>{g.current===j&&(g.current=null)}),N},[e,r,w,b]);S.useEffect(()=>{if(!t.skip)return n(!0),I().finally(()=>{n(!1)}),()=>{g.current&&g.current.abort()}},[I,t.skip]);const x=S.useCallback(j=>(j!=null&&j.background||l(!0),I().finally(()=>{j!=null&&j.background||l(!1)})),[I]),$=S.useCallback(async({variables:j,updateQuery:N})=>{l(!0);const z=new AbortController;try{const T={...b,variables:j??b.variables,signal:z.signal},E=await ls(e,T,r);p(N?C=>N(C,E):E),f(null),w(E)}catch(T){throw T instanceof Error&&T.name==="AbortError"?console.log("[useQuery2] fetchMore request was aborted"):T instanceof Error?f(T):f(new Error("Unknown error"+T)),T}finally{l(!1),z.abort()}},[e,r,w,b]);return{data:h,setData:p,loading:i,error:d,reload:x,reloading:a,fetchMore:$}};async function ls(e,t,r){var l;const i={},n=(r==null?void 0:r.apiKey)??((l=e.loggedIn)==null?void 0:l.apiKey);return n&&(i.Authorization=`apikey:${n}`),new d8(db,{headers:i}).request(t)}const m8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LoginRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubApiKeyByKey"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"allHubCasinos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"isPlayground"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]}}]},h8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoBankrolls"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubBankrollsByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"expectedValue"}},{kind:"Field",name:{kind:"Name",value:"bets"}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"casinoId"}}]}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"wagered"}}]}}]}}]}}]}}]},v8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoChatMessages"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubChatMessagesByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"last"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_ASC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"body"}}]}}]}}]}}]}}]}}]},p8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoCurrencies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]},g8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoDeposits"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubDepositsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"key"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]}}]}}]},y8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoExperiences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubExperiencesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]},b8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoJwks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubJwkSetSnapshotsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwks"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hubJwkSetByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"jwks"}}]}}]}}]}}]},_8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCasinoUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubUsersByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}},{kind:"Field",name:{kind:"Name",value:"mpUserId"}}]}}]}}]}}]}}]}}]},$8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoWithdrawals"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubWithdrawalsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"statusAt"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}}]}}]}}]}}]}}]}}]}}]},S8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HubAddCasinoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubAddCasino"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"casino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}}]}}]}}]}}]},k8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBankroll"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubBankrollByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubBankrollById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubBankroll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}}]}}]}}]}}]},w8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubCasinoByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},x8={"\n query LoginRequest($key: UUID!) {\n hubApiKeyByKey(key: $key) {\n id\n }\n allHubCasinos {\n nodes {\n id\n name\n graphqlUrl\n baseUrl\n isPlayground\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n }\n":m8,"\n query GetCasinoBankrolls($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubBankrollsByCasinoId {\n nodes {\n id\n amount\n expectedValue\n bets\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n casinoId\n }\n currencyKey\n wagered\n }\n }\n }\n }\n":h8,"\n query GetCasinoChatMessages($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubChatMessagesByCasinoId(last: 100, orderBy: ID_ASC) {\n edges {\n node {\n id\n hubUserByUserId {\n id\n uname\n }\n hubExperienceByExperienceId {\n id\n name\n }\n body\n }\n }\n }\n }\n }\n":v8,"\n query GetCasinoCurrencies($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n":p8,"\n query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n amount\n userId\n currencyKey\n hubUserByUserId {\n id\n uname\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n displayUnitName\n displayUnitScale\n key\n }\n hubExperienceByExperienceId {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n }\n }\n":g8,"\n query GetCasinoExperiences($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubExperiencesByCasinoId {\n nodes {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n":y8,"\n query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {\n hubCasinoById(id: $casinoId) {\n hubJwkSetSnapshotsByCasinoId(\n orderBy: ID_DESC\n after: $after\n first: $first\n ) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n jwks\n id\n }\n }\n }\n hubJwkSetByCasinoId {\n updatedAt\n jwks\n }\n }\n }\n":b8,"\n query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n id\n hubUsersByCasinoId(after: $after, first: 10) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n uname\n mpUserId\n }\n }\n }\n }\n }\n":_8,"\n query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n status\n statusAt\n amount\n hubUserByUserId {\n id\n uname\n }\n hubExperienceByExperienceId {\n id\n name\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n }\n }\n }\n }\n }\n }\n":$8,"\n mutation AddCasino($input: HubAddCasinoInput!) {\n hubAddCasino(input: $input) {\n casino {\n id\n name\n baseUrl\n graphqlUrl\n }\n }\n }\n":S8,"\n mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {\n updateHubBankrollById(input: $input) {\n hubBankroll {\n id\n amount\n currencyKey\n }\n }\n }\n":k8,"\n mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {\n updateHubCasinoById(input: $input) {\n hubCasino {\n id\n }\n }\n }\n":w8};function Qr(e){return x8[e]??{}}function Gu(e){const t=e.replace("-","").substring(0,12),r=BigInt("0x"+t);return r===0n?new Date:new Date(Number(r))}const LE={isGraphQLError(e){return e instanceof Error&&"request"in e&&"response"in e},getErrorMessage(e){var t;return((t=e.response.errors[0])==null?void 0:t.message)??e.message},getErrorCode(e){var t,r;return(r=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:r.code},getPgExceptionCode(e){var t,r,i;return(i=(r=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:r.exception)==null?void 0:i.code}};function nr(e){return e?LE.isGraphQLError(e)?LE.getErrorMessage(e):e instanceof Error?e.message:String(e):"Unknown error"}function E_(e,t,r={excludeUnit:!1,locale:navigator.language}){const i=e/(t.displayUnitScale||1),n=t.displayUnitScale===0?0:t.displayUnitScale<100?1:2,a=new Intl.NumberFormat(r.locale,{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0});return r.excludeUnit?a.format(i):`${a.format(i)} ${t.displayUnitName}`}function O8(e){return e.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}function Yh(e){return t=>{const r=e.safeParse(t);return r.success?{}:r.error.issues.reduce((i,n)=>{const a=n.path.reduceRight((l,d)=>({[d]:Object.keys(l).length===0?n.message:l}),{});return OT(i,a)},{})}}function OT(e,t){const r={...e};for(const i in t){const n=t[i],a=r[i];n&&typeof n=="object"&&!Array.isArray(n)&&a&&typeof a=="object"&&!Array.isArray(a)?r[i]=OT(a,n):r[i]=n}return r}const PE=Qr(`
|
|
122
|
-
query LoginRequest($key: UUID!) {
|
|
123
|
-
hubApiKeyByKey(key: $key) {
|
|
124
|
-
id
|
|
125
|
-
}
|
|
126
|
-
allHubCasinos {
|
|
127
|
-
nodes {
|
|
128
|
-
id
|
|
129
|
-
name
|
|
130
|
-
graphqlUrl
|
|
131
|
-
baseUrl
|
|
132
|
-
isPlayground
|
|
133
|
-
hubCurrenciesByCasinoId {
|
|
134
|
-
nodes {
|
|
135
|
-
key
|
|
136
|
-
displayUnitName
|
|
137
|
-
displayUnitScale
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
`);class E8{constructor(){ga(this,"loginError",null);ga(this,"loggingIn",!1);ga(this,"loggedIn",null);T9(this)}setLoggingIn(t){this.loggingIn=t}setLoginError(t){this.loginError=t}setLoggedIn(t){this.loggedIn=t}setCasinos(t){this.loggedIn&&(this.loggedIn.casinos=t)}async refetchCasinos(){if(!this.loggedIn)throw new Error("Not logged in");const t=await ls(this,{document:PE,variables:{key:this.loggedIn.apiKey}}),r=ZE(t.allHubCasinos);this.setCasinos(r)}logout(){localStorage.removeItem("api_key"),this.setLoggedIn(null)}async login(t){var r;if(this.loggedIn)throw new Error("Already logged in");this.setLoggingIn(!0);try{const i=await ls(this,{document:PE,variables:{key:t}},{apiKey:t});if(console.log("[useAuth] LoadedinitResult",i),!((r=i.hubApiKeyByKey)!=null&&r.id))return;localStorage.setItem("api_key",t);const n=ZE(i.allHubCasinos),a={apiKey:t,casinos:n};return this.setLoggedIn(a),a}catch(i){throw console.log("[useAuth] Error logging in",i),this.setLoginError(nr(i)),this.setLoggedIn(null),i}finally{this.setLoggingIn(!1)}}}function ZE(e){return(e==null?void 0:e.nodes.flatMap(r=>{var i;return r?{...r,hubCurrenciesByCasinoId:{nodes:((i=r.hubCurrenciesByCasinoId)==null?void 0:i.nodes.flatMap(n=>n||[]))||[]}}:[]}))||[]}const ET=S.createContext(void 0),N8=fn(({store:e,children:t})=>y.jsx(ET.Provider,{value:e,children:t})),wn=()=>{const e=S.useContext(ET);if(!e)throw new Error("useStore must be used within a StoreProvider");return e};var Sy={exports:{}};/*!
|
|
144
|
-
Copyright (c) 2018 Jed Watson.
|
|
145
|
-
Licensed under the MIT License (MIT), see
|
|
146
|
-
http://jedwatson.github.io/classnames
|
|
147
|
-
*/var BE;function j8(){return BE||(BE=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(a=n(a,i(d)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var d in a)t.call(a,d)&&a[d]&&(l=n(l,d));return l}function n(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Sy)),Sy.exports}var I8=j8();const ke=ws(I8);function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fb.apply(null,arguments)}function NT(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function FE(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function T8(e){var t=z8(e,"string");return typeof t=="symbol"?t:String(t)}function z8(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jT(e,t,r){var i=S.useRef(e!==void 0),n=S.useState(t),a=n[0],l=n[1],d=e!==void 0,f=i.current;return i.current=d,!d&&f&&a!==t&&l(t),[d?e:a,S.useCallback(function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),b=1;b<p;b++)g[b-1]=arguments[b];r&&r.apply(void 0,[h].concat(g)),l(h)},[r])]}function N_(e,t){return Object.keys(t).reduce(function(r,i){var n,a=r,l=a[FE(i)],d=a[i],f=NT(a,[FE(i),i].map(T8)),h=t[i],p=jT(d,l,e[h]),g=p[0],b=p[1];return fb({},f,(n={},n[i]=g,n[h]=b,n))},e)}function mb(e,t){return mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mb(e,t)}function A8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mb(e,t)}const IT=["xxl","xl","lg","md","sm","xs"],TT="xs",Od=S.createContext({prefixes:{},breakpoints:IT,minBreakpoint:TT}),{Consumer:sue,Provider:cue}=Od;function Me(e,t){const{prefixes:r}=S.useContext(Od);return e||r[t]||t}function j_(){const{breakpoints:e}=S.useContext(Od);return e}function I_(){const{minBreakpoint:e}=S.useContext(Od);return e}function T_(){const{dir:e}=S.useContext(Od);return e==="rtl"}function Ns(e){return e&&e.ownerDocument||document}function D8(e){var t=Ns(e);return t&&t.defaultView||window}function U8(e,t){return D8(e).getComputedStyle(e,t)}var C8=/([A-Z])/g;function R8(e){return e.replace(C8,"-$1").toLowerCase()}var M8=/^ms-/;function xm(e){return R8(e).replace(M8,"-ms-")}var L8=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function P8(e){return!!(e&&L8.test(e))}function Ia(e,t){var r="",i="";if(typeof t=="string")return e.style.getPropertyValue(xm(t))||U8(e).getPropertyValue(xm(t));Object.keys(t).forEach(function(n){var a=t[n];!a&&a!==0?e.style.removeProperty(xm(n)):P8(n)?i+=n+"("+a+") ":r+=xm(n)+": "+a+";"}),i&&(r+="transform: "+i+";"),e.style.cssText+=";"+r}var ky={exports:{}},wy,VE;function Z8(){if(VE)return wy;VE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wy=e,wy}var xy,qE;function B8(){if(qE)return xy;qE=1;var e=Z8();function t(){}function r(){}return r.resetWarningCache=t,xy=function(){function i(l,d,f,h,p,g){if(g!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}i.isRequired=i;function n(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:n,element:i,elementType:i,instanceOf:n,node:i,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},xy}var GE;function F8(){return GE||(GE=1,ky.exports=B8()()),ky.exports}var V8=F8();const rt=ws(V8),HE={disabled:!1},zT=Tt.createContext(null);var q8=function(t){return t.scrollTop},Uc="unmounted",vo="exited",mi="entering",wa="entered",td="exiting",Ma=(function(e){A8(t,e);function t(i,n){var a;a=e.call(this,i,n)||this;var l=n,d=l&&!l.isMounting?i.enter:i.appear,f;return a.appearStatus=null,i.in?d?(f=vo,a.appearStatus=mi):f=wa:i.unmountOnExit||i.mountOnEnter?f=Uc:f=vo,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(n,a){var l=n.in;return l&&a.status===Uc?{status:vo}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var a=null;if(n!==this.props){var l=this.state.status;this.props.in?l!==mi&&l!==wa&&(a=mi):(l===mi||l===wa)&&(a=td)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,a,l,d;return a=l=d=n,n!=null&&typeof n!="number"&&(a=n.exit,l=n.enter,d=n.appear!==void 0?n.appear:l),{exit:a,enter:l,appear:d}},r.updateStatus=function(n,a){if(n===void 0&&(n=!1),a!==null)if(this.cancelNextCallback(),a===mi){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:fu.findDOMNode(this);l&&q8(l)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vo&&this.setState({status:Uc})},r.performEnter=function(n){var a=this,l=this.props.enter,d=this.context?this.context.isMounting:n,f=this.props.nodeRef?[d]:[fu.findDOMNode(this),d],h=f[0],p=f[1],g=this.getTimeouts(),b=d?g.appear:g.enter;if(!n&&!l||HE.disabled){this.safeSetState({status:wa},function(){a.props.onEntered(h)});return}this.props.onEnter(h,p),this.safeSetState({status:mi},function(){a.props.onEntering(h,p),a.onTransitionEnd(b,function(){a.safeSetState({status:wa},function(){a.props.onEntered(h,p)})})})},r.performExit=function(){var n=this,a=this.props.exit,l=this.getTimeouts(),d=this.props.nodeRef?void 0:fu.findDOMNode(this);if(!a||HE.disabled){this.safeSetState({status:vo},function(){n.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:td},function(){n.props.onExiting(d),n.onTransitionEnd(l.exit,function(){n.safeSetState({status:vo},function(){n.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,a){a=this.setNextCallback(a),this.setState(n,a)},r.setNextCallback=function(n){var a=this,l=!0;return this.nextCallback=function(d){l&&(l=!1,a.nextCallback=null,n(d))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(n,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:fu.findDOMNode(this),d=n==null&&!this.props.addEndListener;if(!l||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=f[0],p=f[1];this.props.addEndListener(h,p)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===Uc)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var d=NT(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(zT.Provider,{value:null},typeof l=="function"?l(n,d):Tt.cloneElement(Tt.Children.only(l),d))},t})(Tt.Component);Ma.contextType=zT;Ma.propTypes={};function Pl(){}Ma.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pl,onEntering:Pl,onEntered:Pl,onExit:Pl,onExiting:Pl,onExited:Pl};Ma.UNMOUNTED=Uc;Ma.EXITED=vo;Ma.ENTERING=mi;Ma.ENTERED=wa;Ma.EXITING=td;function AT(e){return e.code==="Escape"||e.keyCode===27}function G8(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Hu(e){if(!e||typeof e=="function")return null;const{major:t}=G8();return t>=19?e.props.ref:e.ref}const js=!!(typeof window<"u"&&window.document&&window.document.createElement);var hb=!1,vb=!1;try{var Oy={get passive(){return hb=!0},get once(){return vb=hb=!0}};js&&(window.addEventListener("test",Oy,Oy),window.removeEventListener("test",Oy,!0))}catch{}function DT(e,t,r,i){if(i&&typeof i!="boolean"&&!vb){var n=i.once,a=i.capture,l=r;!vb&&n&&(l=r.__once||function d(f){this.removeEventListener(t,d,a),r.call(this,f)},r.__once=l),e.addEventListener(t,l,hb?i:a)}e.addEventListener(t,r,i)}function pb(e,t,r,i){var n=i&&typeof i!="boolean"?i.capture:i;e.removeEventListener(t,r,n),r.__once&&e.removeEventListener(t,r.__once,n)}function xa(e,t,r,i){return DT(e,t,r,i),function(){pb(e,t,r,i)}}function H8(e,t,r,i){if(i===void 0&&(i=!0),e){var n=document.createEvent("HTMLEvents");n.initEvent(t,r,i),e.dispatchEvent(n)}}function K8(e){var t=Ia(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function J8(e,t,r){r===void 0&&(r=5);var i=!1,n=setTimeout(function(){i||H8(e,"transitionend",!0)},t+r),a=xa(e,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(n),a()}}function UT(e,t,r,i){r==null&&(r=K8(e)||0);var n=J8(e,r,i),a=xa(e,"transitionend",t);return function(){n(),a()}}function KE(e,t){const r=Ia(e,t)||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function z_(e,t){const r=KE(e,"transitionDuration"),i=KE(e,"transitionDelay"),n=UT(e,a=>{a.target===e&&(n(),t(a))},r+i)}function Ec(...e){return e.filter(t=>t!=null).reduce((t,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?r:function(...n){t.apply(this,n),r.apply(this,n)}},null)}function CT(e){e.offsetHeight}const JE=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Y8(e,t){const r=JE(e),i=JE(t);return n=>{r&&r(n),i&&i(n)}}function Xh(e,t){return S.useMemo(()=>Y8(e,t),[e,t])}function sh(e){return e&&"setState"in e?fu.findDOMNode(e):e??null}const Qh=Tt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:i,onExiting:n,onExited:a,addEndListener:l,children:d,childRef:f,...h},p)=>{const g=S.useRef(null),b=Xh(g,f),k=E=>{b(sh(E))},w=E=>C=>{E&&g.current&&E(g.current,C)},I=S.useCallback(w(e),[e]),x=S.useCallback(w(t),[t]),$=S.useCallback(w(r),[r]),j=S.useCallback(w(i),[i]),N=S.useCallback(w(n),[n]),z=S.useCallback(w(a),[a]),T=S.useCallback(w(l),[l]);return y.jsx(Ma,{ref:p,...h,onEnter:I,onEntered:$,onEntering:x,onExit:j,onExited:z,onExiting:N,addEndListener:T,nodeRef:g,children:typeof d=="function"?(E,C)=>d(E,{...C,ref:k}):Tt.cloneElement(d,{ref:k})})});Qh.displayName="TransitionWrapper";const X8={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Q8(e,t){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,i=t[r],n=X8[e];return i+parseInt(Ia(t,n[0]),10)+parseInt(Ia(t,n[1]),10)}const W8={[vo]:"collapse",[td]:"collapsing",[mi]:"collapsing",[wa]:"collapse show"},RT=Tt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:i,onExiting:n,className:a,children:l,dimension:d="height",in:f=!1,timeout:h=300,mountOnEnter:p=!1,unmountOnExit:g=!1,appear:b=!1,getDimensionValue:k=Q8,...w},I)=>{const x=typeof d=="function"?d():d,$=S.useMemo(()=>Ec(E=>{E.style[x]="0"},e),[x,e]),j=S.useMemo(()=>Ec(E=>{const C=`scroll${x[0].toUpperCase()}${x.slice(1)}`;E.style[x]=`${E[C]}px`},t),[x,t]),N=S.useMemo(()=>Ec(E=>{E.style[x]=null},r),[x,r]),z=S.useMemo(()=>Ec(E=>{E.style[x]=`${k(x,E)}px`,CT(E)},i),[i,k,x]),T=S.useMemo(()=>Ec(E=>{E.style[x]=null},n),[x,n]);return y.jsx(Qh,{ref:I,addEndListener:z_,...w,"aria-expanded":w.role?f:null,onEnter:$,onEntering:j,onEntered:N,onExit:z,onExiting:T,childRef:Hu(l),in:f,timeout:h,mountOnEnter:p,unmountOnExit:g,appear:b,children:(E,C)=>Tt.cloneElement(l,{...C,className:ke(a,l.props.className,W8[E],x==="width"&&"collapse-horizontal")})})});RT.displayName="Collapse";function eq(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Oo(e){const t=eq(e);return S.useCallback(function(...r){return t.current&&t.current(...r)},[t])}const Ed=(e=>S.forwardRef((t,r)=>y.jsx("div",{...t,ref:r,className:ke(t.className,e)}))),MT=Ed("h4");MT.displayName="DivStyledAsH4";const LT=S.forwardRef(({className:e,bsPrefix:t,as:r=MT,...i},n)=>(t=Me(t,"alert-heading"),y.jsx(r,{ref:n,className:ke(e,t),...i})));LT.displayName="AlertHeading";function YE(){return S.useState(null)}function tq(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Gr(e){const t=tq(e);return S.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function PT(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function nq(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const rq=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",iq=typeof document<"u",XE=iq||rq?S.useLayoutEffect:S.useEffect,aq=["as","disabled"];function oq(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function uq(e){return!e||e.trim()==="#"}function A_({tagName:e,disabled:t,href:r,target:i,rel:n,role:a,onClick:l,tabIndex:d=0,type:f}){e||(r!=null||i!=null||n!=null?e="a":e="button");const h={tagName:e};if(e==="button")return[{type:f||"button",disabled:t},h];const p=b=>{if((t||e==="a"&&uq(r))&&b.preventDefault(),t){b.stopPropagation();return}l==null||l(b)},g=b=>{b.key===" "&&(b.preventDefault(),p(b))};return e==="a"&&(r||(r="#"),t&&(r=void 0)),[{role:a??"button",disabled:void 0,tabIndex:t?void 0:d,href:r,target:e==="a"?i:void 0,"aria-disabled":t||void 0,rel:e==="a"?n:void 0,onClick:p,onKeyDown:g},h]}const ZT=S.forwardRef((e,t)=>{let{as:r,disabled:i}=e,n=oq(e,aq);const[a,{tagName:l}]=A_(Object.assign({tagName:r,disabled:i},n));return y.jsx(l,Object.assign({},n,a,{ref:t}))});ZT.displayName="Button";const lq=["onKeyDown"];function sq(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function cq(e){return!e||e.trim()==="#"}const Wh=S.forwardRef((e,t)=>{let{onKeyDown:r}=e,i=sq(e,lq);const[n]=A_(Object.assign({tagName:"a"},i)),a=Gr(l=>{n.onKeyDown(l),r==null||r(l)});return cq(i.href)||i.role==="button"?y.jsx("a",Object.assign({ref:t},i,n,{onKeyDown:a})):y.jsx("a",Object.assign({ref:t},i,{onKeyDown:r}))});Wh.displayName="Anchor";const BT=S.forwardRef(({className:e,bsPrefix:t,as:r=Wh,...i},n)=>(t=Me(t,"alert-link"),y.jsx(r,{ref:n,className:ke(e,t),...i})));BT.displayName="AlertLink";const dq={[mi]:"show",[wa]:"show"},Eo=S.forwardRef(({className:e,children:t,transitionClasses:r={},onEnter:i,...n},a)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...n},d=S.useCallback((f,h)=>{CT(f),i==null||i(f,h)},[i]);return y.jsx(Qh,{ref:a,addEndListener:z_,...l,onEnter:d,childRef:Hu(t),children:(f,h)=>S.cloneElement(t,{...h,className:ke("fade",e,t.props.className,dq[f],r[f])})})});Eo.displayName="Fade";const fq={"aria-label":rt.string,onClick:rt.func,variant:rt.oneOf(["white"])},ev=S.forwardRef(({className:e,variant:t,"aria-label":r="Close",...i},n)=>y.jsx("button",{ref:n,type:"button",className:ke("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...i}));ev.displayName="CloseButton";ev.propTypes=fq;const FT=S.forwardRef((e,t)=>{const{bsPrefix:r,show:i=!0,closeLabel:n="Close alert",closeVariant:a,className:l,children:d,variant:f="primary",onClose:h,dismissible:p,transition:g=Eo,...b}=N_(e,{show:"onClose"}),k=Me(r,"alert"),w=Oo($=>{h&&h(!1,$)}),I=g===!0?Eo:g,x=y.jsxs("div",{role:"alert",...I?void 0:b,ref:t,className:ke(l,k,f&&`${k}-${f}`,p&&`${k}-dismissible`),children:[p&&y.jsx(ev,{onClick:w,"aria-label":n,variant:a}),d]});return I?y.jsx(I,{unmountOnExit:!0,...b,ref:void 0,in:i,children:x}):i?x:null});FT.displayName="Alert";const Sr=Object.assign(FT,{Link:BT,Heading:LT}),VT=S.forwardRef(({bsPrefix:e,active:t=!1,children:r,className:i,as:n="li",linkAs:a=Wh,linkProps:l={},href:d,title:f,target:h,...p},g)=>{const b=Me(e,"breadcrumb-item");return y.jsx(n,{ref:g,...p,className:ke(b,i,{active:t}),"aria-current":t?"page":void 0,children:t?r:y.jsx(a,{...l,href:d,title:f,target:h,children:r})})});VT.displayName="BreadcrumbItem";const qT=S.forwardRef(({bsPrefix:e,className:t,listProps:r={},children:i,label:n="breadcrumb",as:a="nav",...l},d)=>{const f=Me(e,"breadcrumb");return y.jsx(a,{"aria-label":n,className:t,ref:d,...l,children:y.jsx("ol",{...r,className:ke(f,r==null?void 0:r.className),children:i})})});qT.displayName="Breadcrumb";const Ey=Object.assign(qT,{Item:VT}),kn=S.forwardRef(({as:e,bsPrefix:t,variant:r="primary",size:i,active:n=!1,disabled:a=!1,className:l,...d},f)=>{const h=Me(t,"btn"),[p,{tagName:g}]=A_({tagName:e,disabled:a,...d}),b=g;return y.jsx(b,{...p,...d,ref:f,disabled:a,className:ke(l,h,n&&"active",r&&`${h}-${r}`,i&&`${h}-${i}`,d.href&&a&&"disabled")})});kn.displayName="Button";const D_=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"card-body"),y.jsx(r,{ref:n,className:ke(e,t),...i})));D_.displayName="CardBody";const GT=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"card-footer"),y.jsx(r,{ref:n,className:ke(e,t),...i})));GT.displayName="CardFooter";const U_=S.createContext(null);U_.displayName="CardHeaderContext";const HT=S.forwardRef(({bsPrefix:e,className:t,as:r="div",...i},n)=>{const a=Me(e,"card-header"),l=S.useMemo(()=>({cardHeaderBsPrefix:a}),[a]);return y.jsx(U_.Provider,{value:l,children:y.jsx(r,{ref:n,...i,className:ke(t,a)})})});HT.displayName="CardHeader";const KT=S.forwardRef(({bsPrefix:e,className:t,variant:r,as:i="img",...n},a)=>{const l=Me(e,"card-img");return y.jsx(i,{ref:a,className:ke(r?`${l}-${r}`:l,t),...n})});KT.displayName="CardImg";const JT=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"card-img-overlay"),y.jsx(r,{ref:n,className:ke(e,t),...i})));JT.displayName="CardImgOverlay";const YT=S.forwardRef(({className:e,bsPrefix:t,as:r="a",...i},n)=>(t=Me(t,"card-link"),y.jsx(r,{ref:n,className:ke(e,t),...i})));YT.displayName="CardLink";const mq=Ed("h6"),XT=S.forwardRef(({className:e,bsPrefix:t,as:r=mq,...i},n)=>(t=Me(t,"card-subtitle"),y.jsx(r,{ref:n,className:ke(e,t),...i})));XT.displayName="CardSubtitle";const QT=S.forwardRef(({className:e,bsPrefix:t,as:r="p",...i},n)=>(t=Me(t,"card-text"),y.jsx(r,{ref:n,className:ke(e,t),...i})));QT.displayName="CardText";const hq=Ed("h5"),WT=S.forwardRef(({className:e,bsPrefix:t,as:r=hq,...i},n)=>(t=Me(t,"card-title"),y.jsx(r,{ref:n,className:ke(e,t),...i})));WT.displayName="CardTitle";const ez=S.forwardRef(({bsPrefix:e,className:t,bg:r,text:i,border:n,body:a=!1,children:l,as:d="div",...f},h)=>{const p=Me(e,"card");return y.jsx(d,{ref:h,...f,className:ke(t,p,r&&`bg-${r}`,i&&`text-${i}`,n&&`border-${n}`),children:a?y.jsx(D_,{children:l}):l})});ez.displayName="Card";const Yl=Object.assign(ez,{Img:KT,Title:WT,Subtitle:XT,Body:D_,Link:YT,Text:QT,Header:HT,Footer:GT,ImgOverlay:JT});function vq(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function pq(e){const t=S.useRef(e);return t.current=e,t}function tz(e){const t=pq(e);S.useEffect(()=>()=>t.current(),[])}const gb=2**31-1;function nz(e,t,r){const i=r-Date.now();e.current=i<=gb?setTimeout(t,i):setTimeout(()=>nz(e,t,r),gb)}function gq(){const e=vq(),t=S.useRef();return tz(()=>clearTimeout(t.current)),S.useMemo(()=>{const r=()=>clearTimeout(t.current);function i(n,a=0){e()&&(r(),a<=gb?t.current=setTimeout(n,a):nz(t,n,Date.now()+a))}return{set:i,clear:r,handleRef:t}},[])}function yq(e,t){return S.Children.toArray(e).some(r=>S.isValidElement(r)&&r.type===t)}function bq({as:e,bsPrefix:t,className:r,...i}){t=Me(t,"col");const n=j_(),a=I_(),l=[],d=[];return n.forEach(f=>{const h=i[f];delete i[f];let p,g,b;typeof h=="object"&&h!=null?{span:p,offset:g,order:b}=h:p=h;const k=f!==a?`-${f}`:"";p&&l.push(p===!0?`${t}${k}`:`${t}${k}-${p}`),b!=null&&d.push(`order${k}-${b}`),g!=null&&d.push(`offset${k}-${g}`)}),[{...i,className:ke(r,...l,...d)},{as:e,bsPrefix:t,spans:l}]}const tv=S.forwardRef((e,t)=>{const[{className:r,...i},{as:n="div",bsPrefix:a,spans:l}]=bq(e);return y.jsx(n,{...i,ref:t,className:ke(r,!l.length&&a)})});tv.displayName="Col";const Nd=S.forwardRef(({bsPrefix:e,fluid:t=!1,as:r="div",className:i,...n},a)=>{const l=Me(e,"container"),d=typeof t=="string"?`-${t}`:"-fluid";return y.jsx(r,{ref:a,...n,className:ke(i,t?`${l}${d}`:l)})});Nd.displayName="Container";var _q=Function.prototype.bind.call(Function.prototype.call,[].slice);function su(e,t){return _q(e.querySelectorAll(t))}function $q(){const[,e]=S.useReducer(t=>t+1,0);return e}var QE=Object.prototype.hasOwnProperty;function WE(e,t,r){for(r of e.keys())if(Bc(r,t))return r}function Bc(e,t){var r,i,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&Bc(e[i],t[i]););return i===-1}if(r===Set){if(e.size!==t.size)return!1;for(i of e)if(n=i,n&&typeof n=="object"&&(n=WE(t,n),!n)||!t.has(n))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(i of e)if(n=i[0],n&&typeof n=="object"&&(n=WE(t,n),!n)||!Bc(i[1],t.get(n)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(QE.call(e,r)&&++i&&!QE.call(t,r)||!(r in t)||!Bc(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function Sq(e){const t=PT();return[e[0],S.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var er="top",Yr="bottom",Xr="right",tr="left",C_="auto",jd=[er,Yr,Xr,tr],ss="start",nd="end",kq="clippingParents",rz="viewport",Nc="popper",wq="reference",eN=jd.reduce(function(e,t){return e.concat([t+"-"+ss,t+"-"+nd])},[]),iz=[].concat(jd,[C_]).reduce(function(e,t){return e.concat([t,t+"-"+ss,t+"-"+nd])},[]),xq="beforeRead",Oq="read",Eq="afterRead",Nq="beforeMain",jq="main",Iq="afterMain",Tq="beforeWrite",zq="write",Aq="afterWrite",Dq=[xq,Oq,Eq,Nq,jq,Iq,Tq,zq,Aq];function Gi(e){return e.split("-")[0]}function kr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Au(e){var t=kr(e).Element;return e instanceof t||e instanceof Element}function Hi(e){var t=kr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function R_(e){if(typeof ShadowRoot>"u")return!1;var t=kr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var wu=Math.max,ch=Math.min,cs=Math.round;function yb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function az(){return!/^((?!chrome|android).)*safari/i.test(yb())}function ds(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),n=1,a=1;t&&Hi(e)&&(n=e.offsetWidth>0&&cs(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&cs(i.height)/e.offsetHeight||1);var l=Au(e)?kr(e):window,d=l.visualViewport,f=!az()&&r,h=(i.left+(f&&d?d.offsetLeft:0))/n,p=(i.top+(f&&d?d.offsetTop:0))/a,g=i.width/n,b=i.height/a;return{width:g,height:b,top:p,right:h+g,bottom:p+b,left:h,x:h,y:p}}function M_(e){var t=ds(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function oz(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&R_(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function No(e){return e?(e.nodeName||"").toLowerCase():null}function Da(e){return kr(e).getComputedStyle(e)}function Uq(e){return["table","td","th"].indexOf(No(e))>=0}function Ro(e){return((Au(e)?e.ownerDocument:e.document)||window.document).documentElement}function nv(e){return No(e)==="html"?e:e.assignedSlot||e.parentNode||(R_(e)?e.host:null)||Ro(e)}function tN(e){return!Hi(e)||Da(e).position==="fixed"?null:e.offsetParent}function Cq(e){var t=/firefox/i.test(yb()),r=/Trident/i.test(yb());if(r&&Hi(e)){var i=Da(e);if(i.position==="fixed")return null}var n=nv(e);for(R_(n)&&(n=n.host);Hi(n)&&["html","body"].indexOf(No(n))<0;){var a=Da(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function Id(e){for(var t=kr(e),r=tN(e);r&&Uq(r)&&Da(r).position==="static";)r=tN(r);return r&&(No(r)==="html"||No(r)==="body"&&Da(r).position==="static")?t:r||Cq(e)||t}function L_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fc(e,t,r){return wu(e,ch(t,r))}function Rq(e,t,r){var i=Fc(e,t,r);return i>r?r:i}function uz(){return{top:0,right:0,bottom:0,left:0}}function lz(e){return Object.assign({},uz(),e)}function sz(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Mq=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,lz(typeof t!="number"?t:sz(t,jd))};function Lq(e){var t,r=e.state,i=e.name,n=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,d=Gi(r.placement),f=L_(d),h=[tr,Xr].indexOf(d)>=0,p=h?"height":"width";if(!(!a||!l)){var g=Mq(n.padding,r),b=M_(a),k=f==="y"?er:tr,w=f==="y"?Yr:Xr,I=r.rects.reference[p]+r.rects.reference[f]-l[f]-r.rects.popper[p],x=l[f]-r.rects.reference[f],$=Id(a),j=$?f==="y"?$.clientHeight||0:$.clientWidth||0:0,N=I/2-x/2,z=g[k],T=j-b[p]-g[w],E=j/2-b[p]/2+N,C=Fc(z,E,T),ae=f;r.modifiersData[i]=(t={},t[ae]=C,t.centerOffset=C-E,t)}}function Pq(e){var t=e.state,r=e.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||oz(t.elements.popper,n)&&(t.elements.arrow=n))}const Zq={name:"arrow",enabled:!0,phase:"main",fn:Lq,effect:Pq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fs(e){return e.split("-")[1]}var Bq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fq(e,t){var r=e.x,i=e.y,n=t.devicePixelRatio||1;return{x:cs(r*n)/n||0,y:cs(i*n)/n||0}}function nN(e){var t,r=e.popper,i=e.popperRect,n=e.placement,a=e.variation,l=e.offsets,d=e.position,f=e.gpuAcceleration,h=e.adaptive,p=e.roundOffsets,g=e.isFixed,b=l.x,k=b===void 0?0:b,w=l.y,I=w===void 0?0:w,x=typeof p=="function"?p({x:k,y:I}):{x:k,y:I};k=x.x,I=x.y;var $=l.hasOwnProperty("x"),j=l.hasOwnProperty("y"),N=tr,z=er,T=window;if(h){var E=Id(r),C="clientHeight",ae="clientWidth";if(E===kr(r)&&(E=Ro(r),Da(E).position!=="static"&&d==="absolute"&&(C="scrollHeight",ae="scrollWidth")),E=E,n===er||(n===tr||n===Xr)&&a===nd){z=Yr;var ue=g&&E===T&&T.visualViewport?T.visualViewport.height:E[C];I-=ue-i.height,I*=f?1:-1}if(n===tr||(n===er||n===Yr)&&a===nd){N=Xr;var fe=g&&E===T&&T.visualViewport?T.visualViewport.width:E[ae];k-=fe-i.width,k*=f?1:-1}}var we=Object.assign({position:d},h&&Bq),Je=p===!0?Fq({x:k,y:I},kr(r)):{x:k,y:I};if(k=Je.x,I=Je.y,f){var De;return Object.assign({},we,(De={},De[z]=j?"0":"",De[N]=$?"0":"",De.transform=(T.devicePixelRatio||1)<=1?"translate("+k+"px, "+I+"px)":"translate3d("+k+"px, "+I+"px, 0)",De))}return Object.assign({},we,(t={},t[z]=j?I+"px":"",t[N]=$?k+"px":"",t.transform="",t))}function Vq(e){var t=e.state,r=e.options,i=r.gpuAcceleration,n=i===void 0?!0:i,a=r.adaptive,l=a===void 0?!0:a,d=r.roundOffsets,f=d===void 0?!0:d,h={placement:Gi(t.placement),variation:fs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nN(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nN(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vq,data:{}};var Om={passive:!0};function Gq(e){var t=e.state,r=e.instance,i=e.options,n=i.scroll,a=n===void 0?!0:n,l=i.resize,d=l===void 0?!0:l,f=kr(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&h.forEach(function(p){p.addEventListener("scroll",r.update,Om)}),d&&f.addEventListener("resize",r.update,Om),function(){a&&h.forEach(function(p){p.removeEventListener("scroll",r.update,Om)}),d&&f.removeEventListener("resize",r.update,Om)}}const Hq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gq,data:{}};var Kq={left:"right",right:"left",bottom:"top",top:"bottom"};function Km(e){return e.replace(/left|right|bottom|top/g,function(t){return Kq[t]})}var Jq={start:"end",end:"start"};function rN(e){return e.replace(/start|end/g,function(t){return Jq[t]})}function P_(e){var t=kr(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Z_(e){return ds(Ro(e)).left+P_(e).scrollLeft}function Yq(e,t){var r=kr(e),i=Ro(e),n=r.visualViewport,a=i.clientWidth,l=i.clientHeight,d=0,f=0;if(n){a=n.width,l=n.height;var h=az();(h||!h&&t==="fixed")&&(d=n.offsetLeft,f=n.offsetTop)}return{width:a,height:l,x:d+Z_(e),y:f}}function Xq(e){var t,r=Ro(e),i=P_(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=wu(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=wu(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),d=-i.scrollLeft+Z_(e),f=-i.scrollTop;return Da(n||r).direction==="rtl"&&(d+=wu(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:l,x:d,y:f}}function B_(e){var t=Da(e),r=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function cz(e){return["html","body","#document"].indexOf(No(e))>=0?e.ownerDocument.body:Hi(e)&&B_(e)?e:cz(nv(e))}function Vc(e,t){var r;t===void 0&&(t=[]);var i=cz(e),n=i===((r=e.ownerDocument)==null?void 0:r.body),a=kr(i),l=n?[a].concat(a.visualViewport||[],B_(i)?i:[]):i,d=t.concat(l);return n?d:d.concat(Vc(nv(l)))}function bb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qq(e,t){var r=ds(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function iN(e,t,r){return t===rz?bb(Yq(e,r)):Au(t)?Qq(t,r):bb(Xq(Ro(e)))}function Wq(e){var t=Vc(nv(e)),r=["absolute","fixed"].indexOf(Da(e).position)>=0,i=r&&Hi(e)?Id(e):e;return Au(i)?t.filter(function(n){return Au(n)&&oz(n,i)&&No(n)!=="body"}):[]}function eG(e,t,r,i){var n=t==="clippingParents"?Wq(e):[].concat(t),a=[].concat(n,[r]),l=a[0],d=a.reduce(function(f,h){var p=iN(e,h,i);return f.top=wu(p.top,f.top),f.right=ch(p.right,f.right),f.bottom=ch(p.bottom,f.bottom),f.left=wu(p.left,f.left),f},iN(e,l,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function dz(e){var t=e.reference,r=e.element,i=e.placement,n=i?Gi(i):null,a=i?fs(i):null,l=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,f;switch(n){case er:f={x:l,y:t.y-r.height};break;case Yr:f={x:l,y:t.y+t.height};break;case Xr:f={x:t.x+t.width,y:d};break;case tr:f={x:t.x-r.width,y:d};break;default:f={x:t.x,y:t.y}}var h=n?L_(n):null;if(h!=null){var p=h==="y"?"height":"width";switch(a){case ss:f[h]=f[h]-(t[p]/2-r[p]/2);break;case nd:f[h]=f[h]+(t[p]/2-r[p]/2);break}}return f}function rd(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=i===void 0?e.placement:i,a=r.strategy,l=a===void 0?e.strategy:a,d=r.boundary,f=d===void 0?kq:d,h=r.rootBoundary,p=h===void 0?rz:h,g=r.elementContext,b=g===void 0?Nc:g,k=r.altBoundary,w=k===void 0?!1:k,I=r.padding,x=I===void 0?0:I,$=lz(typeof x!="number"?x:sz(x,jd)),j=b===Nc?wq:Nc,N=e.rects.popper,z=e.elements[w?j:b],T=eG(Au(z)?z:z.contextElement||Ro(e.elements.popper),f,p,l),E=ds(e.elements.reference),C=dz({reference:E,element:N,placement:n}),ae=bb(Object.assign({},N,C)),ue=b===Nc?ae:E,fe={top:T.top-ue.top+$.top,bottom:ue.bottom-T.bottom+$.bottom,left:T.left-ue.left+$.left,right:ue.right-T.right+$.right},we=e.modifiersData.offset;if(b===Nc&&we){var Je=we[n];Object.keys(fe).forEach(function(De){var _e=[Xr,Yr].indexOf(De)>=0?1:-1,Ne=[er,Yr].indexOf(De)>=0?"y":"x";fe[De]+=Je[Ne]*_e})}return fe}function tG(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=r.boundary,a=r.rootBoundary,l=r.padding,d=r.flipVariations,f=r.allowedAutoPlacements,h=f===void 0?iz:f,p=fs(i),g=p?d?eN:eN.filter(function(w){return fs(w)===p}):jd,b=g.filter(function(w){return h.indexOf(w)>=0});b.length===0&&(b=g);var k=b.reduce(function(w,I){return w[I]=rd(e,{placement:I,boundary:n,rootBoundary:a,padding:l})[Gi(I)],w},{});return Object.keys(k).sort(function(w,I){return k[w]-k[I]})}function nG(e){if(Gi(e)===C_)return[];var t=Km(e);return[rN(e),t,rN(t)]}function rG(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,l=r.altAxis,d=l===void 0?!0:l,f=r.fallbackPlacements,h=r.padding,p=r.boundary,g=r.rootBoundary,b=r.altBoundary,k=r.flipVariations,w=k===void 0?!0:k,I=r.allowedAutoPlacements,x=t.options.placement,$=Gi(x),j=$===x,N=f||(j||!w?[Km(x)]:nG(x)),z=[x].concat(N).reduce(function(oe,ye){return oe.concat(Gi(ye)===C_?tG(t,{placement:ye,boundary:p,rootBoundary:g,padding:h,flipVariations:w,allowedAutoPlacements:I}):ye)},[]),T=t.rects.reference,E=t.rects.popper,C=new Map,ae=!0,ue=z[0],fe=0;fe<z.length;fe++){var we=z[fe],Je=Gi(we),De=fs(we)===ss,_e=[er,Yr].indexOf(Je)>=0,Ne=_e?"width":"height",M=rd(t,{placement:we,boundary:p,rootBoundary:g,altBoundary:b,padding:h}),ee=_e?De?Xr:tr:De?Yr:er;T[Ne]>E[Ne]&&(ee=Km(ee));var de=Km(ee),je=[];if(a&&je.push(M[Je]<=0),d&&je.push(M[ee]<=0,M[de]<=0),je.every(function(oe){return oe})){ue=we,ae=!1;break}C.set(we,je)}if(ae)for(var Ue=w?3:1,D=function(ye){var Ae=z.find(function(He){var _t=C.get(He);if(_t)return _t.slice(0,ye).every(function(dt){return dt})});if(Ae)return ue=Ae,"break"},H=Ue;H>0;H--){var ne=D(H);if(ne==="break")break}t.placement!==ue&&(t.modifiersData[i]._skip=!0,t.placement=ue,t.reset=!0)}}const iG={name:"flip",enabled:!0,phase:"main",fn:rG,requiresIfExists:["offset"],data:{_skip:!1}};function aN(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function oN(e){return[er,Xr,Yr,tr].some(function(t){return e[t]>=0})}function aG(e){var t=e.state,r=e.name,i=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,l=rd(t,{elementContext:"reference"}),d=rd(t,{altBoundary:!0}),f=aN(l,i),h=aN(d,n,a),p=oN(f),g=oN(h);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const oG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aG};function uG(e,t,r){var i=Gi(e),n=[tr,er].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],d=a[1];return l=l||0,d=(d||0)*n,[tr,Xr].indexOf(i)>=0?{x:d,y:l}:{x:l,y:d}}function lG(e){var t=e.state,r=e.options,i=e.name,n=r.offset,a=n===void 0?[0,0]:n,l=iz.reduce(function(p,g){return p[g]=uG(g,t.rects,a),p},{}),d=l[t.placement],f=d.x,h=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=h),t.modifiersData[i]=l}const sG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lG};function cG(e){var t=e.state,r=e.name;t.modifiersData[r]=dz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dG={name:"popperOffsets",enabled:!0,phase:"read",fn:cG,data:{}};function fG(e){return e==="x"?"y":"x"}function mG(e){var t=e.state,r=e.options,i=e.name,n=r.mainAxis,a=n===void 0?!0:n,l=r.altAxis,d=l===void 0?!1:l,f=r.boundary,h=r.rootBoundary,p=r.altBoundary,g=r.padding,b=r.tether,k=b===void 0?!0:b,w=r.tetherOffset,I=w===void 0?0:w,x=rd(t,{boundary:f,rootBoundary:h,padding:g,altBoundary:p}),$=Gi(t.placement),j=fs(t.placement),N=!j,z=L_($),T=fG(z),E=t.modifiersData.popperOffsets,C=t.rects.reference,ae=t.rects.popper,ue=typeof I=="function"?I(Object.assign({},t.rects,{placement:t.placement})):I,fe=typeof ue=="number"?{mainAxis:ue,altAxis:ue}:Object.assign({mainAxis:0,altAxis:0},ue),we=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Je={x:0,y:0};if(E){if(a){var De,_e=z==="y"?er:tr,Ne=z==="y"?Yr:Xr,M=z==="y"?"height":"width",ee=E[z],de=ee+x[_e],je=ee-x[Ne],Ue=k?-ae[M]/2:0,D=j===ss?C[M]:ae[M],H=j===ss?-ae[M]:-C[M],ne=t.elements.arrow,oe=k&&ne?M_(ne):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uz(),Ae=ye[_e],He=ye[Ne],_t=Fc(0,C[M],oe[M]),dt=N?C[M]/2-Ue-_t-Ae-fe.mainAxis:D-_t-Ae-fe.mainAxis,gt=N?-C[M]/2+Ue+_t+He+fe.mainAxis:H+_t+He+fe.mainAxis,Ht=t.elements.arrow&&Id(t.elements.arrow),xn=Ht?z==="y"?Ht.clientTop||0:Ht.clientLeft||0:0,An=(De=we==null?void 0:we[z])!=null?De:0,Ct=ee+dt-An-xn,yt=ee+gt-An,Rn=Fc(k?ch(de,Ct):de,ee,k?wu(je,yt):je);E[z]=Rn,Je[z]=Rn-ee}if(d){var Mn,Ei=z==="x"?er:tr,rr=z==="x"?Yr:Xr,On=E[T],Gn=T==="y"?"height":"width",q=On+x[Ei],pe=On-x[rr],he=[er,tr].indexOf($)!==-1,Oe=(Mn=we==null?void 0:we[T])!=null?Mn:0,me=he?q:On-C[Gn]-ae[Gn]-Oe+fe.altAxis,Pe=he?On+C[Gn]+ae[Gn]-Oe-fe.altAxis:pe,Nt=k&&he?Rq(me,On,Pe):Fc(k?me:q,On,k?Pe:pe);E[T]=Nt,Je[T]=Nt-On}t.modifiersData[i]=Je}}const hG={name:"preventOverflow",enabled:!0,phase:"main",fn:mG,requiresIfExists:["offset"]};function vG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pG(e){return e===kr(e)||!Hi(e)?P_(e):vG(e)}function gG(e){var t=e.getBoundingClientRect(),r=cs(t.width)/e.offsetWidth||1,i=cs(t.height)/e.offsetHeight||1;return r!==1||i!==1}function yG(e,t,r){r===void 0&&(r=!1);var i=Hi(t),n=Hi(t)&&gG(t),a=Ro(t),l=ds(e,n,r),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((No(t)!=="body"||B_(a))&&(d=pG(t)),Hi(t)?(f=ds(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Z_(a))),{x:l.left+d.scrollLeft-f.x,y:l.top+d.scrollTop-f.y,width:l.width,height:l.height}}function bG(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(d){if(!r.has(d)){var f=t.get(d);f&&n(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),i}function _G(e){var t=bG(e);return Dq.reduce(function(r,i){return r.concat(t.filter(function(n){return n.phase===i}))},[])}function $G(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function SG(e){var t=e.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var uN={placement:"bottom",modifiers:[],strategy:"absolute"};function lN(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function kG(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,n=t.defaultOptions,a=n===void 0?uN:n;return function(d,f,h){h===void 0&&(h=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},uN,a),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},g=[],b=!1,k={state:p,setOptions:function($){var j=typeof $=="function"?$(p.options):$;I(),p.options=Object.assign({},a,p.options,j),p.scrollParents={reference:Au(d)?Vc(d):d.contextElement?Vc(d.contextElement):[],popper:Vc(f)};var N=_G(SG([].concat(i,p.options.modifiers)));return p.orderedModifiers=N.filter(function(z){return z.enabled}),w(),k.update()},forceUpdate:function(){if(!b){var $=p.elements,j=$.reference,N=$.popper;if(lN(j,N)){p.rects={reference:yG(j,Id(N),p.options.strategy==="fixed"),popper:M_(N)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(fe){return p.modifiersData[fe.name]=Object.assign({},fe.data)});for(var z=0;z<p.orderedModifiers.length;z++){if(p.reset===!0){p.reset=!1,z=-1;continue}var T=p.orderedModifiers[z],E=T.fn,C=T.options,ae=C===void 0?{}:C,ue=T.name;typeof E=="function"&&(p=E({state:p,options:ae,name:ue,instance:k})||p)}}}},update:$G(function(){return new Promise(function(x){k.forceUpdate(),x(p)})}),destroy:function(){I(),b=!0}};if(!lN(d,f))return k;k.setOptions(h).then(function(x){!b&&h.onFirstUpdate&&h.onFirstUpdate(x)});function w(){p.orderedModifiers.forEach(function(x){var $=x.name,j=x.options,N=j===void 0?{}:j,z=x.effect;if(typeof z=="function"){var T=z({state:p,name:$,instance:k,options:N}),E=function(){};g.push(T||E)}})}function I(){g.forEach(function(x){return x()}),g=[]}return k}}const wG=kG({defaultModifiers:[oG,dG,qq,Hq,sG,iG,hG,Zq]}),xG=["enabled","placement","strategy","modifiers"];function OG(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}const EG={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},NG={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(n=>n.trim()!==r.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:i}=e.elements,n=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&n==="tooltip"&&"setAttribute"in i){const a=i.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(r.id)!==-1)return;i.setAttribute("aria-describedby",a?`${a},${r.id}`:r.id)}}},jG=[];function IG(e,t,r={}){let{enabled:i=!0,placement:n="bottom",strategy:a="absolute",modifiers:l=jG}=r,d=OG(r,xG);const f=S.useRef(l),h=S.useRef(),p=S.useCallback(()=>{var x;(x=h.current)==null||x.update()},[]),g=S.useCallback(()=>{var x;(x=h.current)==null||x.forceUpdate()},[]),[b,k]=Sq(S.useState({placement:n,update:p,forceUpdate:g,attributes:{},styles:{popper:{},arrow:{}}})),w=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:x})=>{const $={},j={};Object.keys(x.elements).forEach(N=>{$[N]=x.styles[N],j[N]=x.attributes[N]}),k({state:x,styles:$,attributes:j,update:p,forceUpdate:g,placement:x.placement})}}),[p,g,k]),I=S.useMemo(()=>(Bc(f.current,l)||(f.current=l),f.current),[l]);return S.useEffect(()=>{!h.current||!i||h.current.setOptions({placement:n,strategy:a,modifiers:[...I,w,EG]})},[a,n,w,i,I]),S.useEffect(()=>{if(!(!i||e==null||t==null))return h.current=wG(e,t,Object.assign({},d,{placement:n,strategy:a,modifiers:[...I,NG,w]})),()=>{h.current!=null&&(h.current.destroy(),h.current=void 0,k(x=>Object.assign({},x,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),b}function id(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Ny,sN;function TG(){if(sN)return Ny;sN=1;var e=function(){};return Ny=e,Ny}var zG=TG();const AG=ws(zG),cN=()=>{};function DG(e){return e.button===0}function UG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Jm=e=>e&&("current"in e?e.current:e),dN={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function CG(e,t=cN,{disabled:r,clickTrigger:i="click"}={}){const n=S.useRef(!1),a=S.useRef(!1),l=S.useCallback(h=>{const p=Jm(e);AG(!!p,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),n.current=!p||UG(h)||!DG(h)||!!id(p,h.target)||a.current,a.current=!1},[e]),d=Gr(h=>{const p=Jm(e);p&&id(p,h.target)?a.current=!0:a.current=!1}),f=Gr(h=>{n.current||t(h)});S.useEffect(()=>{var h,p;if(r||e==null)return;const g=Ns(Jm(e)),b=g.defaultView||window;let k=(h=b.event)!=null?h:(p=b.parent)==null?void 0:p.event,w=null;dN[i]&&(w=xa(g,dN[i],d,!0));const I=xa(g,i,l,!0),x=xa(g,i,j=>{if(j===k){k=void 0;return}f(j)});let $=[];return"ontouchstart"in g.documentElement&&($=[].slice.call(g.body.children).map(j=>xa(j,"mousemove",cN))),()=>{w==null||w(),I(),x(),$.forEach(j=>j())}},[e,r,i,l,d,f])}function RG(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function MG(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function LG({enabled:e,enableEvents:t,placement:r,flip:i,offset:n,fixed:a,containerPadding:l,arrowElement:d,popperConfig:f={}}){var h,p,g,b;const k=RG(f.modifiers);return Object.assign({},f,{placement:r,enabled:e,strategy:a?"fixed":f.strategy,modifiers:MG(Object.assign({},k,{eventListeners:{enabled:t,options:(h=k.eventListeners)==null?void 0:h.options},preventOverflow:Object.assign({},k.preventOverflow,{options:Object.assign({padding:l},(p=k.preventOverflow)==null?void 0:p.options)}),offset:{options:Object.assign({offset:n},(g=k.offset)==null?void 0:g.options)},arrow:Object.assign({},k.arrow,{enabled:!!d,options:Object.assign({},(b=k.arrow)==null?void 0:b.options,{element:d})}),flip:Object.assign({enabled:!!i},k.flip)}))})}const dh=S.createContext(null),F_=(e,t=null)=>e!=null?String(e):t||null,V_=S.createContext(null);V_.displayName="NavContext";const PG="data-rr-ui-",ZG="rrUi";function rv(e){return`${PG}${e}`}function BG(e){return`${ZG}${e}`}const fz=S.createContext(js?window:void 0);fz.Provider;function q_(){return S.useContext(fz)}const FG=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",VG=typeof document<"u",mz=VG||FG?S.useLayoutEffect:S.useEffect,Is=S.createContext(null);Is.displayName="NavbarContext";const qG={type:rt.string,tooltip:rt.bool,as:rt.elementType},iv=S.forwardRef(({as:e="div",className:t,type:r="valid",tooltip:i=!1,...n},a)=>y.jsx(e,{...n,ref:a,className:ke(t,`${r}-${i?"tooltip":"feedback"}`)}));iv.displayName="Feedback";iv.propTypes=qG;const Ua=S.createContext({}),G_=S.forwardRef(({id:e,bsPrefix:t,className:r,type:i="checkbox",isValid:n=!1,isInvalid:a=!1,as:l="input",...d},f)=>{const{controlId:h}=S.useContext(Ua);return t=Me(t,"form-check-input"),y.jsx(l,{...d,ref:f,type:i,id:e||h,className:ke(r,t,n&&"is-valid",a&&"is-invalid")})});G_.displayName="FormCheckInput";const fh=S.forwardRef(({bsPrefix:e,className:t,htmlFor:r,...i},n)=>{const{controlId:a}=S.useContext(Ua);return e=Me(e,"form-check-label"),y.jsx("label",{...i,ref:n,htmlFor:r||a,className:ke(t,e)})});fh.displayName="FormCheckLabel";const hz=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:i=!1,reverse:n=!1,disabled:a=!1,isValid:l=!1,isInvalid:d=!1,feedbackTooltip:f=!1,feedback:h,feedbackType:p,className:g,style:b,title:k="",type:w="checkbox",label:I,children:x,as:$="input",...j},N)=>{t=Me(t,"form-check"),r=Me(r,"form-switch");const{controlId:z}=S.useContext(Ua),T=S.useMemo(()=>({controlId:e||z}),[z,e]),E=!x&&I!=null&&I!==!1||yq(x,fh),C=y.jsx(G_,{...j,type:w==="switch"?"checkbox":w,ref:N,isValid:l,isInvalid:d,disabled:a,as:$});return y.jsx(Ua.Provider,{value:T,children:y.jsx("div",{style:b,className:ke(g,E&&t,i&&`${t}-inline`,n&&`${t}-reverse`,w==="switch"&&r),children:x||y.jsxs(y.Fragment,{children:[C,E&&y.jsx(fh,{title:k,children:I}),h&&y.jsx(iv,{type:p,tooltip:f,children:h})]})})})});hz.displayName="FormCheck";const mh=Object.assign(hz,{Input:G_,Label:fh}),vz=S.forwardRef(({bsPrefix:e,type:t,size:r,htmlSize:i,id:n,className:a,isValid:l=!1,isInvalid:d=!1,plaintext:f,readOnly:h,as:p="input",...g},b)=>{const{controlId:k}=S.useContext(Ua);return e=Me(e,"form-control"),y.jsx(p,{...g,type:t,size:i,ref:b,readOnly:h,id:n||k,className:ke(a,f?`${e}-plaintext`:e,r&&`${e}-${r}`,t==="color"&&`${e}-color`,l&&"is-valid",d&&"is-invalid")})});vz.displayName="FormControl";const GG=Object.assign(vz,{Feedback:iv}),pz=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"form-floating"),y.jsx(r,{ref:n,className:ke(e,t),...i})));pz.displayName="FormFloating";const H_=S.forwardRef(({controlId:e,as:t="div",...r},i)=>{const n=S.useMemo(()=>({controlId:e}),[e]);return y.jsx(Ua.Provider,{value:n,children:y.jsx(t,{...r,ref:i})})});H_.displayName="FormGroup";const gz=S.forwardRef(({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:i=!1,className:n,htmlFor:a,...l},d)=>{const{controlId:f}=S.useContext(Ua);t=Me(t,"form-label");let h="col-form-label";typeof r=="string"&&(h=`${h} ${h}-${r}`);const p=ke(n,t,i&&"visually-hidden",r&&h);return a=a||f,r?y.jsx(tv,{ref:d,as:"label",className:p,htmlFor:a,...l}):y.jsx(e,{ref:d,className:p,htmlFor:a,...l})});gz.displayName="FormLabel";const yz=S.forwardRef(({bsPrefix:e,className:t,id:r,...i},n)=>{const{controlId:a}=S.useContext(Ua);return e=Me(e,"form-range"),y.jsx("input",{...i,type:"range",ref:n,className:ke(t,e),id:r||a})});yz.displayName="FormRange";const bz=S.forwardRef(({bsPrefix:e,size:t,htmlSize:r,className:i,isValid:n=!1,isInvalid:a=!1,id:l,...d},f)=>{const{controlId:h}=S.useContext(Ua);return e=Me(e,"form-select"),y.jsx("select",{...d,size:r,ref:f,className:ke(i,e,t&&`${e}-${t}`,n&&"is-valid",a&&"is-invalid"),id:l||h})});bz.displayName="FormSelect";const _z=S.forwardRef(({bsPrefix:e,className:t,as:r="small",muted:i,...n},a)=>(e=Me(e,"form-text"),y.jsx(r,{...n,ref:a,className:ke(t,e,i&&"text-muted")})));_z.displayName="FormText";const $z=S.forwardRef((e,t)=>y.jsx(mh,{...e,ref:t,type:"switch"}));$z.displayName="Switch";const HG=Object.assign($z,{Input:mh.Input,Label:mh.Label}),Sz=S.forwardRef(({bsPrefix:e,className:t,children:r,controlId:i,label:n,...a},l)=>(e=Me(e,"form-floating"),y.jsxs(H_,{ref:l,className:ke(t,e),controlId:i,...a,children:[r,y.jsx("label",{htmlFor:i,children:n})]})));Sz.displayName="FloatingLabel";const KG={_ref:rt.any,validated:rt.bool,as:rt.elementType},K_=S.forwardRef(({className:e,validated:t,as:r="form",...i},n)=>y.jsx(r,{...i,ref:n,className:ke(e,t&&"was-validated")}));K_.displayName="Form";K_.propTypes=KG;const tt=Object.assign(K_,{Group:H_,Control:GG,Floating:pz,Check:mh,Switch:HG,Label:gz,Text:_z,Range:yz,Select:bz,FloatingLabel:Sz}),fN=e=>!e||typeof e=="function"?e:t=>{e.current=t};function JG(e,t){const r=fN(e),i=fN(t);return n=>{r&&r(n),i&&i(n)}}function Td(e,t){return S.useMemo(()=>JG(e,t),[e,t])}const kz=S.createContext(null),YG=["as","active","eventKey"];function XG(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function wz({key:e,onClick:t,active:r,id:i,role:n,disabled:a}){const l=S.useContext(dh),d=S.useContext(V_),f=S.useContext(kz);let h=r;const p={role:n};if(d){!n&&d.role==="tablist"&&(p.role="tab");const g=d.getControllerId(e??null),b=d.getControlledId(e??null);p[rv("event-key")]=e,p.id=g||i,h=r==null&&e!=null?d.activeKey===e:r,(h||!(f!=null&&f.unmountOnExit)&&!(f!=null&&f.mountOnEnter))&&(p["aria-controls"]=b)}return p.role==="tab"&&(p["aria-selected"]=h,h||(p.tabIndex=-1),a&&(p.tabIndex=-1,p["aria-disabled"]=!0)),p.onClick=Gr(g=>{a||(t==null||t(g),e!=null&&l&&!g.isPropagationStopped()&&l(e,g))}),[p,{isActive:h}]}const xz=S.forwardRef((e,t)=>{let{as:r=ZT,active:i,eventKey:n}=e,a=XG(e,YG);const[l,d]=wz(Object.assign({key:F_(n,a.href),active:i},a));return l[rv("active")]=d.isActive,y.jsx(r,Object.assign({},a,l,{ref:t}))});xz.displayName="NavItem";const QG=["as","onSelect","activeKey","role","onKeyDown"];function WG(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}const mN=()=>{},hN=rv("event-key"),Oz=S.forwardRef((e,t)=>{let{as:r="div",onSelect:i,activeKey:n,role:a,onKeyDown:l}=e,d=WG(e,QG);const f=$q(),h=S.useRef(!1),p=S.useContext(dh),g=S.useContext(kz);let b,k;g&&(a=a||"tablist",n=g.activeKey,b=g.getControlledId,k=g.getControllerId);const w=S.useRef(null),I=N=>{const z=w.current;if(!z)return null;const T=su(z,`[${hN}]:not([aria-disabled=true])`),E=z.querySelector("[aria-selected=true]");if(!E||E!==document.activeElement)return null;const C=T.indexOf(E);if(C===-1)return null;let ae=C+N;return ae>=T.length&&(ae=0),ae<0&&(ae=T.length-1),T[ae]},x=(N,z)=>{N!=null&&(i==null||i(N,z),p==null||p(N,z))},$=N=>{if(l==null||l(N),!g)return;let z;switch(N.key){case"ArrowLeft":case"ArrowUp":z=I(-1);break;case"ArrowRight":case"ArrowDown":z=I(1);break;default:return}z&&(N.preventDefault(),x(z.dataset[BG("EventKey")]||null,N),h.current=!0,f())};S.useEffect(()=>{if(w.current&&h.current){const N=w.current.querySelector(`[${hN}][aria-selected=true]`);N==null||N.focus()}h.current=!1});const j=Td(t,w);return y.jsx(dh.Provider,{value:x,children:y.jsx(V_.Provider,{value:{role:a,activeKey:F_(n),getControlledId:b||mN,getControllerId:k||mN},children:y.jsx(r,Object.assign({},d,{onKeyDown:$,ref:j,role:a}))})})});Oz.displayName="Nav";const eH=Object.assign(Oz,{Item:xz});var Em;function vN(e){if((!Em&&Em!==0||e)&&js){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Em=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Em}function tH(){return S.useState(null)}function jy(e){e===void 0&&(e=Ns());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function nH(e){const t=S.useRef(e);return t.current=e,t}function rH(e){const t=nH(e);S.useEffect(()=>()=>t.current(),[])}function iH(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const pN=rv("modal-open");class J_{constructor({ownerDocument:t,handleContainerOverflow:r=!0,isRTL:i=!1}={}){this.handleContainerOverflow=r,this.isRTL=i,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return iH(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const r={overflow:"hidden"},i=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();t.style={overflow:n.style.overflow,[i]:n.style[i]},t.scrollBarWidth&&(r[i]=`${parseInt(Ia(n,i)||"0",10)+t.scrollBarWidth}px`),n.setAttribute(pN,""),Ia(n,r)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const r=this.getElement();r.removeAttribute(pN),Object.assign(r.style,t.style)}add(t){let r=this.modals.indexOf(t);return r!==-1||(r=this.modals.length,this.modals.push(t),this.setModalAttributes(t),r!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),r}remove(t){const r=this.modals.indexOf(t);r!==-1&&(this.modals.splice(r,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Iy=(e,t)=>js?e==null?(t||Ns()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function _b(e,t){const r=q_(),[i,n]=S.useState(()=>Iy(e,r==null?void 0:r.document));if(!i){const a=Iy(e);a&&n(a)}return S.useEffect(()=>{},[t,i]),S.useEffect(()=>{const a=Iy(e);a!==i&&n(a)},[e,i]),i}function aH({children:e,in:t,onExited:r,mountOnEnter:i,unmountOnExit:n}){const a=S.useRef(null),l=S.useRef(t),d=Gr(r);S.useEffect(()=>{t?l.current=!0:d(a.current)},[t,d]);const f=Td(a,Hu(e)),h=S.cloneElement(e,{ref:f});return t?h:n||!l.current&&i?null:h}const oH=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function uH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function lH(e){let{onEnter:t,onEntering:r,onEntered:i,onExit:n,onExiting:a,onExited:l,addEndListener:d,children:f}=e,h=uH(e,oH);const p=S.useRef(null),g=Td(p,Hu(f)),b=z=>T=>{z&&p.current&&z(p.current,T)},k=S.useCallback(b(t),[t]),w=S.useCallback(b(r),[r]),I=S.useCallback(b(i),[i]),x=S.useCallback(b(n),[n]),$=S.useCallback(b(a),[a]),j=S.useCallback(b(l),[l]),N=S.useCallback(b(d),[d]);return Object.assign({},h,{nodeRef:p},t&&{onEnter:k},r&&{onEntering:w},i&&{onEntered:I},n&&{onExit:x},a&&{onExiting:$},l&&{onExited:j},d&&{addEndListener:N},{children:typeof f=="function"?(z,T)=>f(z,Object.assign({},T,{ref:g})):S.cloneElement(f,{ref:g})})}const sH=["component"];function cH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}const dH=S.forwardRef((e,t)=>{let{component:r}=e,i=cH(e,sH);const n=lH(i);return y.jsx(r,Object.assign({ref:t},n))});function fH({in:e,onTransition:t}){const r=S.useRef(null),i=S.useRef(!0),n=Gr(t);return XE(()=>{if(!r.current)return;let a=!1;return n({in:e,element:r.current,initial:i.current,isStale:()=>a}),()=>{a=!0}},[e,n]),XE(()=>(i.current=!1,()=>{i.current=!0}),[]),r}function mH({children:e,in:t,onExited:r,onEntered:i,transition:n}){const[a,l]=S.useState(!t);t&&a&&l(!1);const d=fH({in:!!t,onTransition:h=>{const p=()=>{h.isStale()||(h.in?i==null||i(h.element,h.initial):(l(!0),r==null||r(h.element)))};Promise.resolve(n(h)).then(p,g=>{throw h.in||l(!0),g})}}),f=Td(d,Hu(e));return a&&!t?null:S.cloneElement(e,{ref:f})}function $b(e,t,r){return e?y.jsx(dH,Object.assign({},r,{component:e})):t?y.jsx(mH,Object.assign({},r,{transition:t})):y.jsx(aH,Object.assign({},r))}const hH=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function vH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}let Ty;function pH(e){return Ty||(Ty=new J_({ownerDocument:e==null?void 0:e.document})),Ty}function gH(e){const t=q_(),r=e||pH(t),i=S.useRef({dialog:null,backdrop:null});return Object.assign(i.current,{add:()=>r.add(i.current),remove:()=>r.remove(i.current),isTopModal:()=>r.isTopModal(i.current),setDialogRef:S.useCallback(n=>{i.current.dialog=n},[]),setBackdropRef:S.useCallback(n=>{i.current.backdrop=n},[])})}const Ez=S.forwardRef((e,t)=>{let{show:r=!1,role:i="dialog",className:n,style:a,children:l,backdrop:d=!0,keyboard:f=!0,onBackdropClick:h,onEscapeKeyDown:p,transition:g,runTransition:b,backdropTransition:k,runBackdropTransition:w,autoFocus:I=!0,enforceFocus:x=!0,restoreFocus:$=!0,restoreFocusOptions:j,renderDialog:N,renderBackdrop:z=yt=>y.jsx("div",Object.assign({},yt)),manager:T,container:E,onShow:C,onHide:ae=()=>{},onExit:ue,onExited:fe,onExiting:we,onEnter:Je,onEntering:De,onEntered:_e}=e,Ne=vH(e,hH);const M=q_(),ee=_b(E),de=gH(T),je=PT(),Ue=nq(r),[D,H]=S.useState(!r),ne=S.useRef(null);S.useImperativeHandle(t,()=>de,[de]),js&&!Ue&&r&&(ne.current=jy(M==null?void 0:M.document)),r&&D&&H(!1);const oe=Gr(()=>{if(de.add(),gt.current=xa(document,"keydown",_t),dt.current=xa(document,"focus",()=>setTimeout(Ae),!0),C&&C(),I){var yt,Rn;const Mn=jy((yt=(Rn=de.dialog)==null?void 0:Rn.ownerDocument)!=null?yt:M==null?void 0:M.document);de.dialog&&Mn&&!id(de.dialog,Mn)&&(ne.current=Mn,de.dialog.focus())}}),ye=Gr(()=>{if(de.remove(),gt.current==null||gt.current(),dt.current==null||dt.current(),$){var yt;(yt=ne.current)==null||yt.focus==null||yt.focus(j),ne.current=null}});S.useEffect(()=>{!r||!ee||oe()},[r,ee,oe]),S.useEffect(()=>{D&&ye()},[D,ye]),rH(()=>{ye()});const Ae=Gr(()=>{if(!x||!je()||!de.isTopModal())return;const yt=jy(M==null?void 0:M.document);de.dialog&&yt&&!id(de.dialog,yt)&&de.dialog.focus()}),He=Gr(yt=>{yt.target===yt.currentTarget&&(h==null||h(yt),d===!0&&ae())}),_t=Gr(yt=>{f&&AT(yt)&&de.isTopModal()&&(p==null||p(yt),yt.defaultPrevented||ae())}),dt=S.useRef(),gt=S.useRef(),Ht=(...yt)=>{H(!0),fe==null||fe(...yt)};if(!ee)return null;const xn=Object.assign({role:i,ref:de.setDialogRef,"aria-modal":i==="dialog"?!0:void 0},Ne,{style:a,className:n,tabIndex:-1});let An=N?N(xn):y.jsx("div",Object.assign({},xn,{children:S.cloneElement(l,{role:"document"})}));An=$b(g,b,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:ue,onExiting:we,onExited:Ht,onEnter:Je,onEntering:De,onEntered:_e,children:An});let Ct=null;return d&&(Ct=z({ref:de.setBackdropRef,onClick:He}),Ct=$b(k,w,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Ct})),y.jsx(y.Fragment,{children:fu.createPortal(y.jsxs(y.Fragment,{children:[Ct,An]}),ee)})});Ez.displayName="Modal";const Nz=Object.assign(Ez,{Manager:J_});function Sb(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function yH(e,t){e.classList?e.classList.add(t):Sb(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function gN(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bH(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=gN(e.className,t):e.setAttribute("class",gN(e.className&&e.className.baseVal||"",t))}const Zl={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class jz extends J_{adjustAndStore(t,r,i){const n=r.style[t];r.dataset[t]=n,Ia(r,{[t]:`${parseFloat(Ia(r,t))+i}px`})}restore(t,r){const i=r.dataset[t];i!==void 0&&(delete r.dataset[t],Ia(r,{[t]:i}))}setContainerStyle(t){super.setContainerStyle(t);const r=this.getElement();if(yH(r,"modal-open"),!t.scrollBarWidth)return;const i=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";su(r,Zl.FIXED_CONTENT).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth)),su(r,Zl.STICKY_CONTENT).forEach(a=>this.adjustAndStore(n,a,-t.scrollBarWidth)),su(r,Zl.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(n,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const r=this.getElement();bH(r,"modal-open");const i=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";su(r,Zl.FIXED_CONTENT).forEach(a=>this.restore(i,a)),su(r,Zl.STICKY_CONTENT).forEach(a=>this.restore(n,a)),su(r,Zl.NAVBAR_TOGGLER).forEach(a=>this.restore(n,a))}}let zy;function Iz(e){return zy||(zy=new jz(e)),zy}const Tz=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"modal-body"),y.jsx(r,{ref:n,className:ke(e,t),...i})));Tz.displayName="ModalBody";const Y_=S.createContext({onHide(){}}),X_=S.forwardRef(({bsPrefix:e,className:t,contentClassName:r,centered:i,size:n,fullscreen:a,children:l,scrollable:d,...f},h)=>{e=Me(e,"modal");const p=`${e}-dialog`,g=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return y.jsx("div",{...f,ref:h,className:ke(p,t,n&&`${e}-${n}`,i&&`${p}-centered`,d&&`${p}-scrollable`,a&&g),children:y.jsx("div",{className:ke(`${e}-content`,r),children:l})})});X_.displayName="ModalDialog";const zz=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"modal-footer"),y.jsx(r,{ref:n,className:ke(e,t),...i})));zz.displayName="ModalFooter";const Q_=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:i,children:n,...a},l)=>{const d=S.useContext(Y_),f=Oo(()=>{d==null||d.onHide(),i==null||i()});return y.jsxs("div",{ref:l,...a,children:[n,r&&y.jsx(ev,{"aria-label":e,variant:t,onClick:f})]})});Q_.displayName="AbstractModalHeader";const Az=S.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:i=!1,...n},a)=>(e=Me(e,"modal-header"),y.jsx(Q_,{ref:a,...n,className:ke(t,e),closeLabel:r,closeButton:i})));Az.displayName="ModalHeader";const _H=Ed("h4"),Dz=S.forwardRef(({className:e,bsPrefix:t,as:r=_H,...i},n)=>(t=Me(t,"modal-title"),y.jsx(r,{ref:n,className:ke(e,t),...i})));Dz.displayName="ModalTitle";function $H(e){return y.jsx(Eo,{...e,timeout:null})}function SH(e){return y.jsx(Eo,{...e,timeout:null})}const Uz=S.forwardRef(({bsPrefix:e,className:t,style:r,dialogClassName:i,contentClassName:n,children:a,dialogAs:l=X_,"data-bs-theme":d,"aria-labelledby":f,"aria-describedby":h,"aria-label":p,show:g=!1,animation:b=!0,backdrop:k=!0,keyboard:w=!0,onEscapeKeyDown:I,onShow:x,onHide:$,container:j,autoFocus:N=!0,enforceFocus:z=!0,restoreFocus:T=!0,restoreFocusOptions:E,onEntered:C,onExit:ae,onExiting:ue,onEnter:fe,onEntering:we,onExited:Je,backdropClassName:De,manager:_e,...Ne},M)=>{const[ee,de]=S.useState({}),[je,Ue]=S.useState(!1),D=S.useRef(!1),H=S.useRef(!1),ne=S.useRef(null),[oe,ye]=tH(),Ae=Xh(M,ye),He=Oo($),_t=T_();e=Me(e,"modal");const dt=S.useMemo(()=>({onHide:He}),[He]);function gt(){return _e||Iz({isRTL:_t})}function Ht(me){if(!js)return;const Pe=gt().getScrollbarWidth()>0,Nt=me.scrollHeight>Ns(me).documentElement.clientHeight;de({paddingRight:Pe&&!Nt?vN():void 0,paddingLeft:!Pe&&Nt?vN():void 0})}const xn=Oo(()=>{oe&&Ht(oe.dialog)});tz(()=>{pb(window,"resize",xn),ne.current==null||ne.current()});const An=()=>{D.current=!0},Ct=me=>{D.current&&oe&&me.target===oe.dialog&&(H.current=!0),D.current=!1},yt=()=>{Ue(!0),ne.current=UT(oe.dialog,()=>{Ue(!1)})},Rn=me=>{me.target===me.currentTarget&&yt()},Mn=me=>{if(k==="static"){Rn(me);return}if(H.current||me.target!==me.currentTarget){H.current=!1;return}$==null||$()},Ei=me=>{w?I==null||I(me):(me.preventDefault(),k==="static"&&yt())},rr=(me,Pe)=>{me&&Ht(me),fe==null||fe(me,Pe)},On=me=>{ne.current==null||ne.current(),ae==null||ae(me)},Gn=(me,Pe)=>{we==null||we(me,Pe),DT(window,"resize",xn)},q=me=>{me&&(me.style.display=""),Je==null||Je(me),pb(window,"resize",xn)},pe=S.useCallback(me=>y.jsx("div",{...me,className:ke(`${e}-backdrop`,De,!b&&"show")}),[b,De,e]),he={...r,...ee};he.display="block";const Oe=me=>y.jsx("div",{role:"dialog",...me,style:he,className:ke(t,e,je&&`${e}-static`,!b&&"show"),onClick:k?Mn:void 0,onMouseUp:Ct,"data-bs-theme":d,"aria-label":p,"aria-labelledby":f,"aria-describedby":h,children:y.jsx(l,{...Ne,onMouseDown:An,className:i,contentClassName:n,children:a})});return y.jsx(Y_.Provider,{value:dt,children:y.jsx(Nz,{show:g,ref:Ae,backdrop:k,container:j,keyboard:!0,autoFocus:N,enforceFocus:z,restoreFocus:T,restoreFocusOptions:E,onEscapeKeyDown:Ei,onShow:x,onHide:$,onEnter:rr,onEntering:Gn,onEntered:C,onExit:On,onExiting:ue,onExited:q,manager:gt(),transition:b?$H:void 0,backdropTransition:b?SH:void 0,renderBackdrop:pe,renderDialog:Oe})})});Uz.displayName="Modal";const pn=Object.assign(Uz,{Body:Tz,Header:Az,Title:Dz,Footer:zz,Dialog:X_,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Cz=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"nav-item"),y.jsx(r,{ref:n,className:ke(e,t),...i})));Cz.displayName="NavItem";const Rz=S.forwardRef(({bsPrefix:e,className:t,as:r=Wh,active:i,eventKey:n,disabled:a=!1,...l},d)=>{e=Me(e,"nav-link");const[f,h]=wz({key:F_(n,l.href),active:i,disabled:a,...l});return y.jsx(r,{...l,...f,ref:d,disabled:a,className:ke(t,e,a&&"disabled",h.isActive&&"active")})});Rz.displayName="NavLink";const Mz=S.forwardRef((e,t)=>{const{as:r="div",bsPrefix:i,variant:n,fill:a=!1,justify:l=!1,navbar:d,navbarScroll:f,className:h,activeKey:p,...g}=N_(e,{activeKey:"onSelect"}),b=Me(i,"nav");let k,w,I=!1;const x=S.useContext(Is),$=S.useContext(U_);return x?(k=x.bsPrefix,I=d??!0):$&&({cardHeaderBsPrefix:w}=$),y.jsx(eH,{as:r,ref:t,activeKey:p,className:ke(h,{[b]:!I,[`${k}-nav`]:I,[`${k}-nav-scroll`]:I&&f,[`${w}-${n}`]:!!w,[`${b}-${n}`]:!!n,[`${b}-fill`]:a,[`${b}-justified`]:l}),...g})});Mz.displayName="Nav";const jc=Object.assign(Mz,{Item:Cz,Link:Rz}),Lz=S.forwardRef(({bsPrefix:e,className:t,as:r,...i},n)=>{e=Me(e,"navbar-brand");const a=r||(i.href?"a":"span");return y.jsx(a,{...i,ref:n,className:ke(t,e)})});Lz.displayName="NavbarBrand";const Pz=S.forwardRef(({children:e,bsPrefix:t,...r},i)=>{t=Me(t,"navbar-collapse");const n=S.useContext(Is);return y.jsx(RT,{in:!!(n&&n.expanded),...r,children:y.jsx("div",{ref:i,className:t,children:e})})});Pz.displayName="NavbarCollapse";const Zz=S.forwardRef(({bsPrefix:e,className:t,children:r,label:i="Toggle navigation",as:n="button",onClick:a,...l},d)=>{e=Me(e,"navbar-toggler");const{onToggle:f,expanded:h}=S.useContext(Is)||{},p=Oo(g=>{a&&a(g),f&&f()});return n==="button"&&(l.type="button"),y.jsx(n,{...l,ref:d,onClick:p,"aria-label":i,className:ke(t,e,!h&&"collapsed"),children:r||y.jsx("span",{className:`${e}-icon`})})});Zz.displayName="NavbarToggle";const kb=new WeakMap,yN=(e,t)=>{if(!e||!t)return;const r=kb.get(t)||new Map;kb.set(t,r);let i=r.get(e);return i||(i=t.matchMedia(e),i.refCount=0,r.set(i.media,i)),i};function kH(e,t=typeof window>"u"?void 0:window){const r=yN(e,t),[i,n]=S.useState(()=>r?r.matches:!1);return mz(()=>{let a=yN(e,t);if(!a)return n(!1);let l=kb.get(t);const d=()=>{n(a.matches)};return a.refCount++,a.addListener(d),d(),()=>{a.removeListener(d),a.refCount--,a.refCount<=0&&(l==null||l.delete(a.media)),a=void 0}},[e]),i}function wH(e){const t=Object.keys(e);function r(d,f){return d===f?f:d?`${d} and ${f}`:f}function i(d){return t[Math.min(t.indexOf(d)+1,t.length-1)]}function n(d){const f=i(d);let h=e[f];return typeof h=="number"?h=`${h-.2}px`:h=`calc(${h} - 0.2px)`,`(max-width: ${h})`}function a(d){let f=e[d];return typeof f=="number"&&(f=`${f}px`),`(min-width: ${f})`}function l(d,f,h){let p;typeof d=="object"?(p=d,h=f,f=!0):(f=f||!0,p={[d]:f});let g=S.useMemo(()=>Object.entries(p).reduce((b,[k,w])=>((w==="up"||w===!0)&&(b=r(b,a(k))),(w==="down"||w===!0)&&(b=r(b,n(k))),b),""),[JSON.stringify(p)]);return kH(g,h)}return l}const xH=wH({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Bz=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"offcanvas-body"),y.jsx(r,{ref:n,className:ke(e,t),...i})));Bz.displayName="OffcanvasBody";const OH={[mi]:"show",[wa]:"show"},Fz=S.forwardRef(({bsPrefix:e,className:t,children:r,in:i=!1,mountOnEnter:n=!1,unmountOnExit:a=!1,appear:l=!1,...d},f)=>(e=Me(e,"offcanvas"),y.jsx(Qh,{ref:f,addEndListener:z_,in:i,mountOnEnter:n,unmountOnExit:a,appear:l,...d,childRef:Hu(r),children:(h,p)=>S.cloneElement(r,{...p,className:ke(t,r.props.className,(h===mi||h===td)&&`${e}-toggling`,OH[h])})})));Fz.displayName="OffcanvasToggling";const Vz=S.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:i=!1,...n},a)=>(e=Me(e,"offcanvas-header"),y.jsx(Q_,{ref:a,...n,className:ke(t,e),closeLabel:r,closeButton:i})));Vz.displayName="OffcanvasHeader";const EH=Ed("h5"),qz=S.forwardRef(({className:e,bsPrefix:t,as:r=EH,...i},n)=>(t=Me(t,"offcanvas-title"),y.jsx(r,{ref:n,className:ke(e,t),...i})));qz.displayName="OffcanvasTitle";function NH(e){return y.jsx(Fz,{...e})}function jH(e){return y.jsx(Eo,{...e})}const Gz=S.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":i,placement:n="start",responsive:a,show:l=!1,backdrop:d=!0,keyboard:f=!0,scroll:h=!1,onEscapeKeyDown:p,onShow:g,onHide:b,container:k,autoFocus:w=!0,enforceFocus:I=!0,restoreFocus:x=!0,restoreFocusOptions:$,onEntered:j,onExit:N,onExiting:z,onEnter:T,onEntering:E,onExited:C,backdropClassName:ae,manager:ue,renderStaticNode:fe=!1,...we},Je)=>{const De=S.useRef();e=Me(e,"offcanvas");const[_e,Ne]=S.useState(!1),M=Oo(b),ee=xH(a||"xs","up");S.useEffect(()=>{Ne(a?l&&!ee:l)},[l,a,ee]);const de=S.useMemo(()=>({onHide:M}),[M]);function je(){return ue||(h?(De.current||(De.current=new jz({handleContainerOverflow:!1})),De.current):Iz())}const Ue=(oe,...ye)=>{oe&&(oe.style.visibility="visible"),T==null||T(oe,...ye)},D=(oe,...ye)=>{oe&&(oe.style.visibility=""),C==null||C(...ye)},H=S.useCallback(oe=>y.jsx("div",{...oe,className:ke(`${e}-backdrop`,ae)}),[ae,e]),ne=oe=>y.jsx("div",{...oe,...we,className:ke(t,a?`${e}-${a}`:e,`${e}-${n}`),"aria-labelledby":i,children:r});return y.jsxs(y.Fragment,{children:[!_e&&(a||fe)&&ne({}),y.jsx(Y_.Provider,{value:de,children:y.jsx(Nz,{show:_e,ref:Je,backdrop:d,container:k,keyboard:f,autoFocus:w,enforceFocus:I&&!h,restoreFocus:x,restoreFocusOptions:$,onEscapeKeyDown:p,onShow:g,onHide:M,onEnter:Ue,onEntering:E,onEntered:j,onExit:N,onExiting:z,onExited:D,manager:je(),transition:NH,backdropTransition:jH,renderBackdrop:H,renderDialog:ne})})]})});Gz.displayName="Offcanvas";const IH=Object.assign(Gz,{Body:Bz,Header:Vz,Title:qz}),Hz=S.forwardRef(({onHide:e,...t},r)=>{const i=S.useContext(Is),n=Oo(()=>{i==null||i.onToggle==null||i.onToggle(),e==null||e()});return y.jsx(IH,{ref:r,show:!!(i!=null&&i.expanded),...t,renderStaticNode:!0,onHide:n})});Hz.displayName="NavbarOffcanvas";const W_=S.forwardRef(({className:e,bsPrefix:t,as:r="span",...i},n)=>(t=Me(t,"navbar-text"),y.jsx(r,{ref:n,className:ke(e,t),...i})));W_.displayName="NavbarText";const Kz=S.forwardRef((e,t)=>{const{bsPrefix:r,expand:i=!0,variant:n="light",bg:a,fixed:l,sticky:d,className:f,as:h="nav",expanded:p,onToggle:g,onSelect:b,collapseOnSelect:k=!1,...w}=N_(e,{expanded:"onToggle"}),I=Me(r,"navbar"),x=S.useCallback((...N)=>{b==null||b(...N),k&&p&&(g==null||g(!1))},[b,k,p,g]);w.role===void 0&&h!=="nav"&&(w.role="navigation");let $=`${I}-expand`;typeof i=="string"&&($=`${$}-${i}`);const j=S.useMemo(()=>({onToggle:()=>g==null?void 0:g(!p),bsPrefix:I,expanded:!!p,expand:i}),[I,p,i,g]);return y.jsx(Is.Provider,{value:j,children:y.jsx(dh.Provider,{value:x,children:y.jsx(h,{ref:t,...w,className:ke(f,I,i&&$,n&&`${I}-${n}`,a&&`bg-${a}`,d&&`sticky-${d}`,l&&`fixed-${l}`)})})})});Kz.displayName="Navbar";const Bl=Object.assign(Kz,{Brand:Lz,Collapse:Pz,Offcanvas:Hz,Text:W_,Toggle:Zz}),TH=()=>{};function zH(e,t,{disabled:r,clickTrigger:i}={}){const n=t||TH;CG(e,n,{disabled:r,clickTrigger:i});const a=Gr(l=>{AT(l)&&n(l)});S.useEffect(()=>{if(r||e==null)return;const l=Ns(Jm(e));let d=(l.defaultView||window).event;const f=xa(l,"keyup",h=>{if(h===d){d=void 0;return}a(h)});return()=>{f()}},[e,r,a])}const Jz=S.forwardRef((e,t)=>{const{flip:r,offset:i,placement:n,containerPadding:a,popperConfig:l={},transition:d,runTransition:f}=e,[h,p]=YE(),[g,b]=YE(),k=Td(p,t),w=_b(e.container),I=_b(e.target),[x,$]=S.useState(!e.show),j=IG(I,h,LG({placement:n,enableEvents:!!e.show,containerPadding:a||5,flip:r,offset:i,arrowElement:g,popperConfig:l}));e.show&&x&&$(!1);const N=(...we)=>{$(!0),e.onExited&&e.onExited(...we)},z=e.show||!x;if(zH(h,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!z)return null;const{onExit:T,onExiting:E,onEnter:C,onEntering:ae,onEntered:ue}=e;let fe=e.children(Object.assign({},j.attributes.popper,{style:j.styles.popper,ref:k}),{popper:j,placement:n,show:!!e.show,arrowProps:Object.assign({},j.attributes.arrow,{style:j.styles.arrow,ref:b})});return fe=$b(d,f,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:fe,onExit:T,onExiting:E,onExited:N,onEnter:C,onEntering:ae,onEntered:ue}),w?fu.createPortal(fe,w):null});Jz.displayName="Overlay";const Yz=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"popover-header"),y.jsx(r,{ref:n,className:ke(e,t),...i})));Yz.displayName="PopoverHeader";const e$=S.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"popover-body"),y.jsx(r,{ref:n,className:ke(e,t),...i})));e$.displayName="PopoverBody";function Xz(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function Qz(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Wz=S.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:i,children:n,body:a,arrowProps:l,hasDoneInitialMeasure:d,popper:f,show:h,...p},g)=>{const b=Me(e,"popover"),k=T_(),[w]=(t==null?void 0:t.split("-"))||[],I=Xz(w,k);let x=i;return h&&!d&&(x={...i,...Qz(f==null?void 0:f.strategy)}),y.jsxs("div",{ref:g,role:"tooltip",style:x,"x-placement":w,className:ke(r,b,w&&`bs-popover-${I}`),...p,children:[y.jsx("div",{className:"popover-arrow",...l}),a?y.jsx(e$,{children:n}):n]})});Wz.displayName="Popover";const wb=Object.assign(Wz,{Header:Yz,Body:e$,POPPER_OFFSET:[0,8]}),eA=S.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:i,children:n,arrowProps:a,hasDoneInitialMeasure:l,popper:d,show:f,...h},p)=>{e=Me(e,"tooltip");const g=T_(),[b]=(t==null?void 0:t.split("-"))||[],k=Xz(b,g);let w=i;return f&&!l&&(w={...i,...Qz(d==null?void 0:d.strategy)}),y.jsxs("div",{ref:p,style:w,role:"tooltip","x-placement":b,className:ke(r,e,`bs-tooltip-${k}`),...h,children:[y.jsx("div",{className:"tooltip-arrow",...a}),y.jsx("div",{className:`${e}-inner`,children:n})]})});eA.displayName="Tooltip";const t$=Object.assign(eA,{TOOLTIP_OFFSET:[0,6]});function AH(e){const t=S.useRef(null),r=Me(void 0,"popover"),i=Me(void 0,"tooltip"),n=S.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Sb(t.current,r))return wb.POPPER_OFFSET;if(Sb(t.current,i))return t$.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,i]);return[t,[n]]}function DH(e,t){const{ref:r}=e,{ref:i}=t;e.ref=r.__wrapped||(r.__wrapped=n=>r(sh(n))),t.ref=i.__wrapped||(i.__wrapped=n=>i(sh(n)))}const n$=S.forwardRef(({children:e,transition:t=Eo,popperConfig:r={},rootClose:i=!1,placement:n="top",show:a=!1,...l},d)=>{const f=S.useRef({}),[h,p]=S.useState(null),[g,b]=AH(l.offset),k=Xh(d,g),w=t===!0?Eo:t||void 0,I=Oo(x=>{p(x),r==null||r.onFirstUpdate==null||r.onFirstUpdate(x)});return mz(()=>{h&&l.target&&(f.current.scheduleUpdate==null||f.current.scheduleUpdate())},[h,l.target]),S.useEffect(()=>{a||p(null)},[a]),y.jsx(Jz,{...l,ref:k,popperConfig:{...r,modifiers:b.concat(r.modifiers||[]),onFirstUpdate:I},transition:w,rootClose:i,placement:n,show:a,children:(x,{arrowProps:$,popper:j,show:N})=>{var z;DH(x,$);const T=j==null?void 0:j.placement,E=Object.assign(f.current,{state:j==null?void 0:j.state,scheduleUpdate:j==null?void 0:j.update,placement:T,outOfBoundaries:(j==null||(z=j.state)==null||(z=z.modifiersData.hide)==null?void 0:z.isReferenceHidden)||!1,strategy:r.strategy}),C=!!h;return typeof e=="function"?e({...x,placement:T,show:N,...!t&&N&&{className:"show"},popper:E,arrowProps:$,hasDoneInitialMeasure:C}):S.cloneElement(e,{...x,placement:T,arrowProps:$,popper:E,hasDoneInitialMeasure:C,className:ke(e.props.className,!t&&N&&"show"),style:{...e.props.style,...x.style}})}})});n$.displayName="Overlay";function UH(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function bN(e,t,r){const[i]=t,n=i.currentTarget,a=i.relatedTarget||i.nativeEvent[r];(!a||a!==n)&&!id(n,a)&&e(...t)}rt.oneOf(["click","hover","focus"]);const tA=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:i={},show:n,defaultShow:a=!1,onToggle:l,delay:d,placement:f,flip:h=f&&f.indexOf("auto")!==-1,...p})=>{const g=S.useRef(null),b=Xh(g,Hu(r)),k=gq(),w=S.useRef(""),[I,x]=jT(n,a,l),$=UH(d),{onFocus:j,onBlur:N,onClick:z}=typeof r!="function"?S.Children.only(r).props:{},T=Ne=>{b(sh(Ne))},E=S.useCallback(()=>{if(k.clear(),w.current="show",!$.show){x(!0);return}k.set(()=>{w.current==="show"&&x(!0)},$.show)},[$.show,x,k]),C=S.useCallback(()=>{if(k.clear(),w.current="hide",!$.hide){x(!1);return}k.set(()=>{w.current==="hide"&&x(!1)},$.hide)},[$.hide,x,k]),ae=S.useCallback((...Ne)=>{E(),j==null||j(...Ne)},[E,j]),ue=S.useCallback((...Ne)=>{C(),N==null||N(...Ne)},[C,N]),fe=S.useCallback((...Ne)=>{x(!I),z==null||z(...Ne)},[z,x,I]),we=S.useCallback((...Ne)=>{bN(E,Ne,"fromElement")},[E]),Je=S.useCallback((...Ne)=>{bN(C,Ne,"toElement")},[C]),De=e==null?[]:[].concat(e),_e={ref:T};return De.indexOf("click")!==-1&&(_e.onClick=fe),De.indexOf("focus")!==-1&&(_e.onFocus=ae,_e.onBlur=ue),De.indexOf("hover")!==-1&&(_e.onMouseOver=we,_e.onMouseOut=Je),y.jsxs(y.Fragment,{children:[typeof r=="function"?r(_e):S.cloneElement(r,_e),y.jsx(n$,{...p,show:I,onHide:C,flip:h,placement:f,popperConfig:i,target:g.current,children:t})]})},r$=S.forwardRef(({bsPrefix:e,className:t,as:r="div",...i},n)=>{const a=Me(e,"row"),l=j_(),d=I_(),f=`${a}-cols`,h=[];return l.forEach(p=>{const g=i[p];delete i[p];let b;g!=null&&typeof g=="object"?{cols:b}=g:b=g;const k=p!==d?`-${p}`:"";b!=null&&h.push(`${f}${k}-${b}`)}),y.jsx(r,{ref:n,...i,className:ke(t,a,...h)})});r$.displayName="Row";function CH(e,t=IT,r=TT){const i=[];return Object.entries(e).forEach(([n,a])=>{a!=null&&(typeof a=="object"?t.forEach(l=>{const d=a[l];if(d!=null){const f=l!==r?`-${l}`:"";i.push(`${n}${f}-${d}`)}}):i.push(`${n}-${a}`))}),i}const nA=S.forwardRef(({as:e="div",bsPrefix:t,className:r,direction:i,gap:n,...a},l)=>{t=Me(t,i==="horizontal"?"hstack":"vstack");const d=j_(),f=I_();return y.jsx(e,{...a,ref:l,className:ke(r,t,...CH({gap:n},d,f))})});nA.displayName="Stack";const Ji=S.forwardRef(({bsPrefix:e,className:t,striped:r,bordered:i,borderless:n,hover:a,size:l,variant:d,responsive:f,...h},p)=>{const g=Me(e,"table"),b=ke(t,g,d&&`${g}-${d}`,l&&`${g}-${l}`,r&&`${g}-${typeof r=="string"?`striped-${r}`:"striped"}`,i&&`${g}-bordered`,n&&`${g}-borderless`,a&&`${g}-hover`),k=y.jsx("table",{...h,className:b,ref:p});if(f){let w=`${g}-responsive`;return typeof f=="string"&&(w=`${w}-${f}`),y.jsx("div",{className:w,children:k})}return k});Ji.displayName="Table";const RH=fn(()=>{const e=wn(),t=Uh(),r=()=>{t("/"),e.logout()};return y.jsx(Bl,{style:{borderBottom:"1px solid #C7C8C9"},expand:"lg",className:"mb-4",children:y.jsxs(Nd,{fluid:!0,children:[y.jsx(Bl.Brand,{children:y.jsx($r,{to:"/",style:{color:"inherit",textDecoration:"none"},children:"Dashboard"})}),y.jsx(Bl.Toggle,{"aria-controls":"basic-navbar-nav"}),y.jsxs(Bl.Collapse,{id:"basic-navbar-nav",children:[y.jsx(jc,{className:"me-auto",children:y.jsxs(W_,{children:["Connected to:"," ",y.jsx("a",{href:db,target:"_blank",rel:"noreferrer",children:db})]})}),e.loggedIn?y.jsx(jc,{children:y.jsx(Bl.Text,{className:"me-2",children:y.jsx(kn,{variant:"link nav-link",onClick:r,children:"Log out"})})}):y.jsxs(jc,{children:[y.jsx(jc.Link,{as:$r,to:"/login",children:"Log in"}),y.jsx(Bl.Text,{children:"or"}),y.jsx(jc.Link,{as:$r,to:"/register",children:"Register"})]})]})]})})}),_N=[{path:"/casinos",title:"Casinos"}];function MH(e,t){return e.sort((r,i)=>i.length-r.length).find(r=>t.startsWith(r))}const LH=fn(()=>{const e=Ra();if(!wn().loggedIn)return y.jsx("div",{children:"You must be logged in"});const r=MH(_N.map(i=>i.path),e.pathname);return y.jsxs("div",{children:[y.jsx("ul",{className:"nav nav-tabs mb-4 ",children:_N.map(i=>y.jsx("li",{className:"nav-item",children:y.jsx($r,{to:i.path,className:`nav-link ${r===i.path?"active":""}`,children:i.title})},i.path))}),y.jsx(lI,{})]})});var PH=function(t){return ZH(t)&&!BH(t)};function ZH(e){return!!e&&typeof e=="object"}function BH(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||qH(e)}var FH=typeof Symbol=="function"&&Symbol.for,VH=FH?Symbol.for("react.element"):60103;function qH(e){return e.$$typeof===VH}function GH(e){return Array.isArray(e)?[]:{}}function hh(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ad(GH(e),e,t):e}function HH(e,t,r){return e.concat(t).map(function(i){return hh(i,r)})}function KH(e,t,r){var i={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(n){i[n]=hh(e[n],r)}),Object.keys(t).forEach(function(n){!r.isMergeableObject(t[n])||!e[n]?i[n]=hh(t[n],r):i[n]=ad(e[n],t[n],r)}),i}function ad(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||HH,r.isMergeableObject=r.isMergeableObject||PH;var i=Array.isArray(t),n=Array.isArray(e),a=i===n;return a?i?r.arrayMerge(e,t,r):KH(e,t,r):hh(t,r)}ad.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return ad(i,n,r)},{})};var xb=ad,rA=typeof global=="object"&&global&&global.Object===Object&&global,JH=typeof self=="object"&&self&&self.Object===Object&&self,Yi=rA||JH||Function("return this")(),jo=Yi.Symbol,iA=Object.prototype,YH=iA.hasOwnProperty,XH=iA.toString,Ic=jo?jo.toStringTag:void 0;function QH(e){var t=YH.call(e,Ic),r=e[Ic];try{e[Ic]=void 0;var i=!0}catch{}var n=XH.call(e);return i&&(t?e[Ic]=r:delete e[Ic]),n}var WH=Object.prototype,e7=WH.toString;function t7(e){return e7.call(e)}var n7="[object Null]",r7="[object Undefined]",$N=jo?jo.toStringTag:void 0;function Ku(e){return e==null?e===void 0?r7:n7:$N&&$N in Object(e)?QH(e):t7(e)}function aA(e,t){return function(r){return e(t(r))}}var i$=aA(Object.getPrototypeOf,Object);function Ju(e){return e!=null&&typeof e=="object"}var i7="[object Object]",a7=Function.prototype,o7=Object.prototype,oA=a7.toString,u7=o7.hasOwnProperty,l7=oA.call(Object);function SN(e){if(!Ju(e)||Ku(e)!=i7)return!1;var t=i$(e);if(t===null)return!0;var r=u7.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oA.call(r)==l7}function s7(){this.__data__=[],this.size=0}function uA(e,t){return e===t||e!==e&&t!==t}function av(e,t){for(var r=e.length;r--;)if(uA(e[r][0],t))return r;return-1}var c7=Array.prototype,d7=c7.splice;function f7(e){var t=this.__data__,r=av(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():d7.call(t,r,1),--this.size,!0}function m7(e){var t=this.__data__,r=av(t,e);return r<0?void 0:t[r][1]}function h7(e){return av(this.__data__,e)>-1}function v7(e,t){var r=this.__data__,i=av(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function La(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}La.prototype.clear=s7;La.prototype.delete=f7;La.prototype.get=m7;La.prototype.has=h7;La.prototype.set=v7;function p7(){this.__data__=new La,this.size=0}function g7(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function y7(e){return this.__data__.get(e)}function b7(e){return this.__data__.has(e)}function zd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _7="[object AsyncFunction]",$7="[object Function]",S7="[object GeneratorFunction]",k7="[object Proxy]";function lA(e){if(!zd(e))return!1;var t=Ku(e);return t==$7||t==S7||t==_7||t==k7}var Ay=Yi["__core-js_shared__"],kN=(function(){var e=/[^.]+$/.exec(Ay&&Ay.keys&&Ay.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function w7(e){return!!kN&&kN in e}var x7=Function.prototype,O7=x7.toString;function Yu(e){if(e!=null){try{return O7.call(e)}catch{}try{return e+""}catch{}}return""}var E7=/[\\^$.*+?()[\]{}|]/g,N7=/^\[object .+?Constructor\]$/,j7=Function.prototype,I7=Object.prototype,T7=j7.toString,z7=I7.hasOwnProperty,A7=RegExp("^"+T7.call(z7).replace(E7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D7(e){if(!zd(e)||w7(e))return!1;var t=lA(e)?A7:N7;return t.test(Yu(e))}function U7(e,t){return e==null?void 0:e[t]}function Xu(e,t){var r=U7(e,t);return D7(r)?r:void 0}var od=Xu(Yi,"Map"),ud=Xu(Object,"create");function C7(){this.__data__=ud?ud(null):{},this.size=0}function R7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var M7="__lodash_hash_undefined__",L7=Object.prototype,P7=L7.hasOwnProperty;function Z7(e){var t=this.__data__;if(ud){var r=t[e];return r===M7?void 0:r}return P7.call(t,e)?t[e]:void 0}var B7=Object.prototype,F7=B7.hasOwnProperty;function V7(e){var t=this.__data__;return ud?t[e]!==void 0:F7.call(t,e)}var q7="__lodash_hash_undefined__";function G7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ud&&t===void 0?q7:t,this}function Du(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Du.prototype.clear=C7;Du.prototype.delete=R7;Du.prototype.get=Z7;Du.prototype.has=V7;Du.prototype.set=G7;function H7(){this.size=0,this.__data__={hash:new Du,map:new(od||La),string:new Du}}function K7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ov(e,t){var r=e.__data__;return K7(t)?r[typeof t=="string"?"string":"hash"]:r.map}function J7(e){var t=ov(this,e).delete(e);return this.size-=t?1:0,t}function Y7(e){return ov(this,e).get(e)}function X7(e){return ov(this,e).has(e)}function Q7(e,t){var r=ov(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Mo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Mo.prototype.clear=H7;Mo.prototype.delete=J7;Mo.prototype.get=Y7;Mo.prototype.has=X7;Mo.prototype.set=Q7;var W7=200;function eK(e,t){var r=this.__data__;if(r instanceof La){var i=r.__data__;if(!od||i.length<W7-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Mo(i)}return r.set(e,t),this.size=r.size,this}function Ts(e){var t=this.__data__=new La(e);this.size=t.size}Ts.prototype.clear=p7;Ts.prototype.delete=g7;Ts.prototype.get=y7;Ts.prototype.has=b7;Ts.prototype.set=eK;function tK(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var wN=(function(){try{var e=Xu(Object,"defineProperty");return e({},"",{}),e}catch{}})();function sA(e,t,r){t=="__proto__"&&wN?wN(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var nK=Object.prototype,rK=nK.hasOwnProperty;function cA(e,t,r){var i=e[t];(!(rK.call(e,t)&&uA(i,r))||r===void 0&&!(t in e))&&sA(e,t,r)}function uv(e,t,r,i){var n=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var d=t[a],f=void 0;f===void 0&&(f=e[d]),n?sA(r,d,f):cA(r,d,f)}return r}function iK(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var aK="[object Arguments]";function xN(e){return Ju(e)&&Ku(e)==aK}var dA=Object.prototype,oK=dA.hasOwnProperty,uK=dA.propertyIsEnumerable,lK=xN((function(){return arguments})())?xN:function(e){return Ju(e)&&oK.call(e,"callee")&&!uK.call(e,"callee")},Ad=Array.isArray;function sK(){return!1}var fA=typeof br=="object"&&br&&!br.nodeType&&br,ON=fA&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,cK=ON&&ON.exports===fA,EN=cK?Yi.Buffer:void 0,dK=EN?EN.isBuffer:void 0,mA=dK||sK,fK=9007199254740991,mK=/^(?:0|[1-9]\d*)$/;function hK(e,t){var r=typeof e;return t=t??fK,!!t&&(r=="number"||r!="symbol"&&mK.test(e))&&e>-1&&e%1==0&&e<t}var vK=9007199254740991;function hA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vK}var pK="[object Arguments]",gK="[object Array]",yK="[object Boolean]",bK="[object Date]",_K="[object Error]",$K="[object Function]",SK="[object Map]",kK="[object Number]",wK="[object Object]",xK="[object RegExp]",OK="[object Set]",EK="[object String]",NK="[object WeakMap]",jK="[object ArrayBuffer]",IK="[object DataView]",TK="[object Float32Array]",zK="[object Float64Array]",AK="[object Int8Array]",DK="[object Int16Array]",UK="[object Int32Array]",CK="[object Uint8Array]",RK="[object Uint8ClampedArray]",MK="[object Uint16Array]",LK="[object Uint32Array]",Vt={};Vt[TK]=Vt[zK]=Vt[AK]=Vt[DK]=Vt[UK]=Vt[CK]=Vt[RK]=Vt[MK]=Vt[LK]=!0;Vt[pK]=Vt[gK]=Vt[jK]=Vt[yK]=Vt[IK]=Vt[bK]=Vt[_K]=Vt[$K]=Vt[SK]=Vt[kK]=Vt[wK]=Vt[xK]=Vt[OK]=Vt[EK]=Vt[NK]=!1;function PK(e){return Ju(e)&&hA(e.length)&&!!Vt[Ku(e)]}function a$(e){return function(t){return e(t)}}var vA=typeof br=="object"&&br&&!br.nodeType&&br,qc=vA&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,ZK=qc&&qc.exports===vA,Dy=ZK&&rA.process,ms=(function(){try{var e=qc&&qc.require&&qc.require("util").types;return e||Dy&&Dy.binding&&Dy.binding("util")}catch{}})(),NN=ms&&ms.isTypedArray,BK=NN?a$(NN):PK,FK=Object.prototype,VK=FK.hasOwnProperty;function pA(e,t){var r=Ad(e),i=!r&&lK(e),n=!r&&!i&&mA(e),a=!r&&!i&&!n&&BK(e),l=r||i||n||a,d=l?iK(e.length,String):[],f=d.length;for(var h in e)(t||VK.call(e,h))&&!(l&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||hK(h,f)))&&d.push(h);return d}var qK=Object.prototype;function o$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qK;return e===r}var GK=aA(Object.keys,Object),HK=Object.prototype,KK=HK.hasOwnProperty;function JK(e){if(!o$(e))return GK(e);var t=[];for(var r in Object(e))KK.call(e,r)&&r!="constructor"&&t.push(r);return t}function gA(e){return e!=null&&hA(e.length)&&!lA(e)}function u$(e){return gA(e)?pA(e):JK(e)}function YK(e,t){return e&&uv(t,u$(t),e)}function XK(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var QK=Object.prototype,WK=QK.hasOwnProperty;function eJ(e){if(!zd(e))return XK(e);var t=o$(e),r=[];for(var i in e)i=="constructor"&&(t||!WK.call(e,i))||r.push(i);return r}function l$(e){return gA(e)?pA(e,!0):eJ(e)}function tJ(e,t){return e&&uv(t,l$(t),e)}var yA=typeof br=="object"&&br&&!br.nodeType&&br,jN=yA&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,nJ=jN&&jN.exports===yA,IN=nJ?Yi.Buffer:void 0,TN=IN?IN.allocUnsafe:void 0;function rJ(e,t){if(t)return e.slice();var r=e.length,i=TN?TN(r):new e.constructor(r);return e.copy(i),i}function bA(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function iJ(e,t){for(var r=-1,i=e==null?0:e.length,n=0,a=[];++r<i;){var l=e[r];t(l,r,e)&&(a[n++]=l)}return a}function _A(){return[]}var aJ=Object.prototype,oJ=aJ.propertyIsEnumerable,zN=Object.getOwnPropertySymbols,s$=zN?function(e){return e==null?[]:(e=Object(e),iJ(zN(e),function(t){return oJ.call(e,t)}))}:_A;function uJ(e,t){return uv(e,s$(e),t)}function $A(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}var lJ=Object.getOwnPropertySymbols,SA=lJ?function(e){for(var t=[];e;)$A(t,s$(e)),e=i$(e);return t}:_A;function sJ(e,t){return uv(e,SA(e),t)}function kA(e,t,r){var i=t(e);return Ad(e)?i:$A(i,r(e))}function cJ(e){return kA(e,u$,s$)}function dJ(e){return kA(e,l$,SA)}var Ob=Xu(Yi,"DataView"),Eb=Xu(Yi,"Promise"),Nb=Xu(Yi,"Set"),jb=Xu(Yi,"WeakMap"),AN="[object Map]",fJ="[object Object]",DN="[object Promise]",UN="[object Set]",CN="[object WeakMap]",RN="[object DataView]",mJ=Yu(Ob),hJ=Yu(od),vJ=Yu(Eb),pJ=Yu(Nb),gJ=Yu(jb),_a=Ku;(Ob&&_a(new Ob(new ArrayBuffer(1)))!=RN||od&&_a(new od)!=AN||Eb&&_a(Eb.resolve())!=DN||Nb&&_a(new Nb)!=UN||jb&&_a(new jb)!=CN)&&(_a=function(e){var t=Ku(e),r=t==fJ?e.constructor:void 0,i=r?Yu(r):"";if(i)switch(i){case mJ:return RN;case hJ:return AN;case vJ:return DN;case pJ:return UN;case gJ:return CN}return t});var yJ=Object.prototype,bJ=yJ.hasOwnProperty;function _J(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&bJ.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var MN=Yi.Uint8Array;function c$(e){var t=new e.constructor(e.byteLength);return new MN(t).set(new MN(e)),t}function $J(e,t){var r=t?c$(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var SJ=/\w*$/;function kJ(e){var t=new e.constructor(e.source,SJ.exec(e));return t.lastIndex=e.lastIndex,t}var LN=jo?jo.prototype:void 0,PN=LN?LN.valueOf:void 0;function wJ(e){return PN?Object(PN.call(e)):{}}function xJ(e,t){var r=t?c$(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var OJ="[object Boolean]",EJ="[object Date]",NJ="[object Map]",jJ="[object Number]",IJ="[object RegExp]",TJ="[object Set]",zJ="[object String]",AJ="[object Symbol]",DJ="[object ArrayBuffer]",UJ="[object DataView]",CJ="[object Float32Array]",RJ="[object Float64Array]",MJ="[object Int8Array]",LJ="[object Int16Array]",PJ="[object Int32Array]",ZJ="[object Uint8Array]",BJ="[object Uint8ClampedArray]",FJ="[object Uint16Array]",VJ="[object Uint32Array]";function qJ(e,t,r){var i=e.constructor;switch(t){case DJ:return c$(e);case OJ:case EJ:return new i(+e);case UJ:return $J(e,r);case CJ:case RJ:case MJ:case LJ:case PJ:case ZJ:case BJ:case FJ:case VJ:return xJ(e,r);case NJ:return new i;case jJ:case zJ:return new i(e);case IJ:return kJ(e);case TJ:return new i;case AJ:return wJ(e)}}var ZN=Object.create,GJ=(function(){function e(){}return function(t){if(!zd(t))return{};if(ZN)return ZN(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function HJ(e){return typeof e.constructor=="function"&&!o$(e)?GJ(i$(e)):{}}var KJ="[object Map]";function JJ(e){return Ju(e)&&_a(e)==KJ}var BN=ms&&ms.isMap,YJ=BN?a$(BN):JJ,XJ="[object Set]";function QJ(e){return Ju(e)&&_a(e)==XJ}var FN=ms&&ms.isSet,WJ=FN?a$(FN):QJ,eY=1,tY=2,nY=4,wA="[object Arguments]",rY="[object Array]",iY="[object Boolean]",aY="[object Date]",oY="[object Error]",xA="[object Function]",uY="[object GeneratorFunction]",lY="[object Map]",sY="[object Number]",OA="[object Object]",cY="[object RegExp]",dY="[object Set]",fY="[object String]",mY="[object Symbol]",hY="[object WeakMap]",vY="[object ArrayBuffer]",pY="[object DataView]",gY="[object Float32Array]",yY="[object Float64Array]",bY="[object Int8Array]",_Y="[object Int16Array]",$Y="[object Int32Array]",SY="[object Uint8Array]",kY="[object Uint8ClampedArray]",wY="[object Uint16Array]",xY="[object Uint32Array]",Mt={};Mt[wA]=Mt[rY]=Mt[vY]=Mt[pY]=Mt[iY]=Mt[aY]=Mt[gY]=Mt[yY]=Mt[bY]=Mt[_Y]=Mt[$Y]=Mt[lY]=Mt[sY]=Mt[OA]=Mt[cY]=Mt[dY]=Mt[fY]=Mt[mY]=Mt[SY]=Mt[kY]=Mt[wY]=Mt[xY]=!0;Mt[oY]=Mt[xA]=Mt[hY]=!1;function Gc(e,t,r,i,n,a){var l,d=t&eY,f=t&tY,h=t&nY;if(l!==void 0)return l;if(!zd(e))return e;var p=Ad(e);if(p){if(l=_J(e),!d)return bA(e,l)}else{var g=_a(e),b=g==xA||g==uY;if(mA(e))return rJ(e,d);if(g==OA||g==wA||b&&!n){if(l=f||b?{}:HJ(e),!d)return f?sJ(e,tJ(l,e)):uJ(e,YK(l,e))}else{if(!Mt[g])return n?e:{};l=qJ(e,g,d)}}a||(a=new Ts);var k=a.get(e);if(k)return k;a.set(e,l),WJ(e)?e.forEach(function(x){l.add(Gc(x,t,r,x,e,a))}):YJ(e)&&e.forEach(function(x,$){l.set($,Gc(x,t,r,$,e,a))});var w=h?f?dJ:cJ:f?l$:u$,I=p?void 0:w(e);return tK(I||e,function(x,$){I&&($=x,x=e[$]),cA(l,$,Gc(x,t,r,$,e,a))}),l}var OY=1,EY=4;function Nm(e){return Gc(e,OY|EY)}var Uy,VN;function NY(){if(VN)return Uy;VN=1;var e=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,i=typeof Element<"u";function n(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){var d=e(a),f=e(l),h,p,g;if(d&&f){if(p=a.length,p!=l.length)return!1;for(h=p;h--!==0;)if(!n(a[h],l[h]))return!1;return!0}if(d!=f)return!1;var b=a instanceof Date,k=l instanceof Date;if(b!=k)return!1;if(b&&k)return a.getTime()==l.getTime();var w=a instanceof RegExp,I=l instanceof RegExp;if(w!=I)return!1;if(w&&I)return a.toString()==l.toString();var x=t(a);if(p=x.length,p!==t(l).length)return!1;for(h=p;h--!==0;)if(!r.call(l,x[h]))return!1;if(i&&a instanceof Element&&l instanceof Element)return a===l;for(h=p;h--!==0;)if(g=x[h],!(g==="_owner"&&a.$$typeof)&&!n(a[g],l[g]))return!1;return!0}return a!==a&&l!==l}return Uy=function(l,d){try{return n(l,d)}catch(f){if(f.message&&f.message.match(/stack|recursion/i)||f.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",f.name,f.message),!1;throw f}},Uy}var jY=NY();const cu=ws(jY);var IY=4;function qN(e){return Gc(e,IY)}function EA(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}var TY="[object Symbol]";function d$(e){return typeof e=="symbol"||Ju(e)&&Ku(e)==TY}var zY="Expected a function";function f$(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zY);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var l=e.apply(this,i);return r.cache=a.set(n,l)||a,l};return r.cache=new(f$.Cache||Mo),r}f$.Cache=Mo;var AY=500;function DY(e){var t=f$(e,function(i){return r.size===AY&&r.clear(),i}),r=t.cache;return t}var UY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CY=/\\(\\)?/g,RY=DY(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(UY,function(r,i,n,a){t.push(n?a.replace(CY,"$1"):i||r)}),t});function MY(e){if(typeof e=="string"||d$(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var GN=jo?jo.prototype:void 0,HN=GN?GN.toString:void 0;function NA(e){if(typeof e=="string")return e;if(Ad(e))return EA(e,NA)+"";if(d$(e))return HN?HN.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function LY(e){return e==null?"":NA(e)}function jA(e){return Ad(e)?EA(e,MY):d$(e)?[e]:bA(RY(LY(e)))}var Cy={exports:{}},Et={};/** @license React v16.13.1
|
|
148
|
-
* react-is.production.min.js
|
|
149
|
-
*
|
|
150
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the MIT license found in the
|
|
153
|
-
* LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/var KN;function PY(){if(KN)return Et;KN=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function N(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case t:switch(T=T.type,T){case f:case h:case i:case a:case n:case g:return T;default:switch(T=T&&T.$$typeof,T){case d:case p:case w:case k:case l:return T;default:return E}}case r:return E}}}function z(T){return N(T)===h}return Et.AsyncMode=f,Et.ConcurrentMode=h,Et.ContextConsumer=d,Et.ContextProvider=l,Et.Element=t,Et.ForwardRef=p,Et.Fragment=i,Et.Lazy=w,Et.Memo=k,Et.Portal=r,Et.Profiler=a,Et.StrictMode=n,Et.Suspense=g,Et.isAsyncMode=function(T){return z(T)||N(T)===f},Et.isConcurrentMode=z,Et.isContextConsumer=function(T){return N(T)===d},Et.isContextProvider=function(T){return N(T)===l},Et.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Et.isForwardRef=function(T){return N(T)===p},Et.isFragment=function(T){return N(T)===i},Et.isLazy=function(T){return N(T)===w},Et.isMemo=function(T){return N(T)===k},Et.isPortal=function(T){return N(T)===r},Et.isProfiler=function(T){return N(T)===a},Et.isStrictMode=function(T){return N(T)===n},Et.isSuspense=function(T){return N(T)===g},Et.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===h||T===a||T===n||T===g||T===b||typeof T=="object"&&T!==null&&(T.$$typeof===w||T.$$typeof===k||T.$$typeof===l||T.$$typeof===d||T.$$typeof===p||T.$$typeof===x||T.$$typeof===$||T.$$typeof===j||T.$$typeof===I)},Et.typeOf=N,Et}var JN;function ZY(){return JN||(JN=1,Cy.exports=PY()),Cy.exports}var Ry,YN;function BY(){if(YN)return Ry;YN=1;var e=ZY(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=i,a[e.Memo]=n;function l(w){return e.isMemo(w)?n:a[w.$$typeof]||t}var d=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,b=Object.prototype;function k(w,I,x){if(typeof I!="string"){if(b){var $=g(I);$&&$!==b&&k(w,$,x)}var j=f(I);h&&(j=j.concat(h(I)));for(var N=l(w),z=l(I),T=0;T<j.length;++T){var E=j[T];if(!r[E]&&!(x&&x[E])&&!(z&&z[E])&&!(N&&N[E])){var C=p(I,E);try{d(w,E,C)}catch{}}}}return w}return Ry=k,Ry}BY();function $n(){return $n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},$n.apply(this,arguments)}function IA(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,a;for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var lv=S.createContext(void 0);lv.displayName="FormikContext";lv.Provider;lv.Consumer;function FY(){var e=S.useContext(lv);return e}var si=function(t){return typeof t=="function"},sv=function(t){return t!==null&&typeof t=="object"},VY=function(t){return String(Math.floor(Number(t)))===t},My=function(t){return Object.prototype.toString.call(t)==="[object String]"},Ly=function(t){return sv(t)&&si(t.then)};function mr(e,t,r,i){i===void 0&&(i=0);for(var n=jA(t);e&&i<n.length;)e=e[n[i++]];return i!==n.length&&!e||e===void 0?r:e}function xu(e,t,r){for(var i=qN(e),n=i,a=0,l=jA(t);a<l.length-1;a++){var d=l[a],f=mr(e,l.slice(0,a+1));if(f&&(sv(f)||Array.isArray(f)))n=n[d]=qN(f);else{var h=l[a+1];n=n[d]=VY(h)&&Number(h)>=0?[]:{}}}return(a===0?e:n)[l[a]]===r?e:(r===void 0?delete n[l[a]]:n[l[a]]=r,a===0&&r===void 0&&delete i[l[a]],i)}function TA(e,t,r,i){r===void 0&&(r=new WeakMap),i===void 0&&(i={});for(var n=0,a=Object.keys(e);n<a.length;n++){var l=a[n],d=e[l];sv(d)?r.get(d)||(r.set(d,!0),i[l]=Array.isArray(d)?[]:{},TA(d,t,r,i[l])):i[l]=t}return i}function qY(e,t){switch(t.type){case"SET_VALUES":return $n({},e,{values:t.payload});case"SET_TOUCHED":return $n({},e,{touched:t.payload});case"SET_ERRORS":return cu(e.errors,t.payload)?e:$n({},e,{errors:t.payload});case"SET_STATUS":return $n({},e,{status:t.payload});case"SET_ISSUBMITTING":return $n({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return $n({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return $n({},e,{values:xu(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return $n({},e,{touched:xu(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return $n({},e,{errors:xu(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return $n({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return $n({},e,{touched:TA(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return $n({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return $n({},e,{isSubmitting:!1});default:return e}}var lu={},jm={};function cv(e){var t=e.validateOnChange,r=t===void 0?!0:t,i=e.validateOnBlur,n=i===void 0?!0:i,a=e.validateOnMount,l=a===void 0?!1:a,d=e.isInitialValid,f=e.enableReinitialize,h=f===void 0?!1:f,p=e.onSubmit,g=IA(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),b=$n({validateOnChange:r,validateOnBlur:n,validateOnMount:l,onSubmit:p},g),k=S.useRef(b.initialValues),w=S.useRef(b.initialErrors||lu),I=S.useRef(b.initialTouched||jm),x=S.useRef(b.initialStatus),$=S.useRef(!1),j=S.useRef({});S.useEffect(function(){return $.current=!0,function(){$.current=!1}},[]);var N=S.useState(0),z=N[1],T=S.useRef({values:Nm(b.initialValues),errors:Nm(b.initialErrors)||lu,touched:Nm(b.initialTouched)||jm,status:Nm(b.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=T.current,C=S.useCallback(function(q){var pe=T.current;T.current=qY(pe,q),pe!==T.current&&z(function(he){return he+1})},[]),ae=S.useCallback(function(q,pe){return new Promise(function(he,Oe){var me=b.validate(q,pe);me==null?he(lu):Ly(me)?me.then(function(Pe){he(Pe||lu)},function(Pe){Oe(Pe)}):he(me)})},[b.validate]),ue=S.useCallback(function(q,pe){var he=b.validationSchema,Oe=si(he)?he(pe):he,me=pe&&Oe.validateAt?Oe.validateAt(pe,q):HY(q,Oe);return new Promise(function(Pe,Nt){me.then(function(){Pe(lu)},function(ir){ir.name==="ValidationError"?Pe(GY(ir)):Nt(ir)})})},[b.validationSchema]),fe=S.useCallback(function(q,pe){return new Promise(function(he){return he(j.current[q].validate(pe))})},[]),we=S.useCallback(function(q){var pe=Object.keys(j.current).filter(function(Oe){return si(j.current[Oe].validate)}),he=pe.length>0?pe.map(function(Oe){return fe(Oe,mr(q,Oe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(he).then(function(Oe){return Oe.reduce(function(me,Pe,Nt){return Pe==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Pe&&(me=xu(me,pe[Nt],Pe)),me},{})})},[fe]),Je=S.useCallback(function(q){return Promise.all([we(q),b.validationSchema?ue(q):{},b.validate?ae(q):{}]).then(function(pe){var he=pe[0],Oe=pe[1],me=pe[2],Pe=xb.all([he,Oe,me],{arrayMerge:KY});return Pe})},[b.validate,b.validationSchema,we,ae,ue]),De=Zr(function(q){return q===void 0&&(q=E.values),C({type:"SET_ISVALIDATING",payload:!0}),Je(q).then(function(pe){return $.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:pe})),pe})});S.useEffect(function(){l&&$.current===!0&&cu(k.current,b.initialValues)&&De(k.current)},[l,De]);var _e=S.useCallback(function(q){var pe=q&&q.values?q.values:k.current,he=q&&q.errors?q.errors:w.current?w.current:b.initialErrors||{},Oe=q&&q.touched?q.touched:I.current?I.current:b.initialTouched||{},me=q&&q.status?q.status:x.current?x.current:b.initialStatus;k.current=pe,w.current=he,I.current=Oe,x.current=me;var Pe=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!q&&!!q.isSubmitting,errors:he,touched:Oe,status:me,values:pe,isValidating:!!q&&!!q.isValidating,submitCount:q&&q.submitCount&&typeof q.submitCount=="number"?q.submitCount:0}})};if(b.onReset){var Nt=b.onReset(E.values,An);Ly(Nt)?Nt.then(Pe):Pe()}else Pe()},[b.initialErrors,b.initialStatus,b.initialTouched,b.onReset]);S.useEffect(function(){$.current===!0&&!cu(k.current,b.initialValues)&&h&&(k.current=b.initialValues,_e(),l&&De(k.current))},[h,b.initialValues,_e,l,De]),S.useEffect(function(){h&&$.current===!0&&!cu(w.current,b.initialErrors)&&(w.current=b.initialErrors||lu,C({type:"SET_ERRORS",payload:b.initialErrors||lu}))},[h,b.initialErrors]),S.useEffect(function(){h&&$.current===!0&&!cu(I.current,b.initialTouched)&&(I.current=b.initialTouched||jm,C({type:"SET_TOUCHED",payload:b.initialTouched||jm}))},[h,b.initialTouched]),S.useEffect(function(){h&&$.current===!0&&!cu(x.current,b.initialStatus)&&(x.current=b.initialStatus,C({type:"SET_STATUS",payload:b.initialStatus}))},[h,b.initialStatus,b.initialTouched]);var Ne=Zr(function(q){if(j.current[q]&&si(j.current[q].validate)){var pe=mr(E.values,q),he=j.current[q].validate(pe);return Ly(he)?(C({type:"SET_ISVALIDATING",payload:!0}),he.then(function(Oe){return Oe}).then(function(Oe){C({type:"SET_FIELD_ERROR",payload:{field:q,value:Oe}}),C({type:"SET_ISVALIDATING",payload:!1})})):(C({type:"SET_FIELD_ERROR",payload:{field:q,value:he}}),Promise.resolve(he))}else if(b.validationSchema)return C({type:"SET_ISVALIDATING",payload:!0}),ue(E.values,q).then(function(Oe){return Oe}).then(function(Oe){C({type:"SET_FIELD_ERROR",payload:{field:q,value:mr(Oe,q)}}),C({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),M=S.useCallback(function(q,pe){var he=pe.validate;j.current[q]={validate:he}},[]),ee=S.useCallback(function(q){delete j.current[q]},[]),de=Zr(function(q,pe){C({type:"SET_TOUCHED",payload:q});var he=pe===void 0?n:pe;return he?De(E.values):Promise.resolve()}),je=S.useCallback(function(q){C({type:"SET_ERRORS",payload:q})},[]),Ue=Zr(function(q,pe){var he=si(q)?q(E.values):q;C({type:"SET_VALUES",payload:he});var Oe=pe===void 0?r:pe;return Oe?De(he):Promise.resolve()}),D=S.useCallback(function(q,pe){C({type:"SET_FIELD_ERROR",payload:{field:q,value:pe}})},[]),H=Zr(function(q,pe,he){C({type:"SET_FIELD_VALUE",payload:{field:q,value:pe}});var Oe=he===void 0?r:he;return Oe?De(xu(E.values,q,pe)):Promise.resolve()}),ne=S.useCallback(function(q,pe){var he=pe,Oe=q,me;if(!My(q)){q.persist&&q.persist();var Pe=q.target?q.target:q.currentTarget,Nt=Pe.type,ir=Pe.name,Ni=Pe.id,Zo=Pe.value,ar=Pe.checked;Pe.outerHTML;var ti=Pe.options,gn=Pe.multiple;he=pe||ir||Ni,Oe=/number|range/.test(Nt)?(me=parseFloat(Zo),isNaN(me)?"":me):/checkbox/.test(Nt)?YY(mr(E.values,he),ar,Zo):ti&&gn?JY(ti):Zo}he&&H(he,Oe)},[H,E.values]),oe=Zr(function(q){if(My(q))return function(pe){return ne(pe,q)};ne(q)}),ye=Zr(function(q,pe,he){pe===void 0&&(pe=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:q,value:pe}});var Oe=he===void 0?n:he;return Oe?De(E.values):Promise.resolve()}),Ae=S.useCallback(function(q,pe){q.persist&&q.persist();var he=q.target,Oe=he.name,me=he.id;he.outerHTML;var Pe=pe||Oe||me;ye(Pe,!0)},[ye]),He=Zr(function(q){if(My(q))return function(pe){return Ae(pe,q)};Ae(q)}),_t=S.useCallback(function(q){si(q)?C({type:"SET_FORMIK_STATE",payload:q}):C({type:"SET_FORMIK_STATE",payload:function(){return q}})},[]),dt=S.useCallback(function(q){C({type:"SET_STATUS",payload:q})},[]),gt=S.useCallback(function(q){C({type:"SET_ISSUBMITTING",payload:q})},[]),Ht=Zr(function(){return C({type:"SUBMIT_ATTEMPT"}),De().then(function(q){var pe=q instanceof Error,he=!pe&&Object.keys(q).length===0;if(he){var Oe;try{if(Oe=Ct(),Oe===void 0)return}catch(me){throw me}return Promise.resolve(Oe).then(function(me){return $.current&&C({type:"SUBMIT_SUCCESS"}),me}).catch(function(me){if($.current)throw C({type:"SUBMIT_FAILURE"}),me})}else if($.current&&(C({type:"SUBMIT_FAILURE"}),pe))throw q})}),xn=Zr(function(q){q&&q.preventDefault&&si(q.preventDefault)&&q.preventDefault(),q&&q.stopPropagation&&si(q.stopPropagation)&&q.stopPropagation(),Ht().catch(function(pe){console.warn("Warning: An unhandled error was caught from submitForm()",pe)})}),An={resetForm:_e,validateForm:De,validateField:Ne,setErrors:je,setFieldError:D,setFieldTouched:ye,setFieldValue:H,setStatus:dt,setSubmitting:gt,setTouched:de,setValues:Ue,setFormikState:_t,submitForm:Ht},Ct=Zr(function(){return p(E.values,An)}),yt=Zr(function(q){q&&q.preventDefault&&si(q.preventDefault)&&q.preventDefault(),q&&q.stopPropagation&&si(q.stopPropagation)&&q.stopPropagation(),_e()}),Rn=S.useCallback(function(q){return{value:mr(E.values,q),error:mr(E.errors,q),touched:!!mr(E.touched,q),initialValue:mr(k.current,q),initialTouched:!!mr(I.current,q),initialError:mr(w.current,q)}},[E.errors,E.touched,E.values]),Mn=S.useCallback(function(q){return{setValue:function(he,Oe){return H(q,he,Oe)},setTouched:function(he,Oe){return ye(q,he,Oe)},setError:function(he){return D(q,he)}}},[H,ye,D]),Ei=S.useCallback(function(q){var pe=sv(q),he=pe?q.name:q,Oe=mr(E.values,he),me={name:he,value:Oe,onChange:oe,onBlur:He};if(pe){var Pe=q.type,Nt=q.value,ir=q.as,Ni=q.multiple;Pe==="checkbox"?Nt===void 0?me.checked=!!Oe:(me.checked=!!(Array.isArray(Oe)&&~Oe.indexOf(Nt)),me.value=Nt):Pe==="radio"?(me.checked=Oe===Nt,me.value=Nt):ir==="select"&&Ni&&(me.value=me.value||[],me.multiple=!0)}return me},[He,oe,E.values]),rr=S.useMemo(function(){return!cu(k.current,E.values)},[k.current,E.values]),On=S.useMemo(function(){return typeof d<"u"?rr?E.errors&&Object.keys(E.errors).length===0:d!==!1&&si(d)?d(b):d:E.errors&&Object.keys(E.errors).length===0},[d,rr,E.errors,b]),Gn=$n({},E,{initialValues:k.current,initialErrors:w.current,initialTouched:I.current,initialStatus:x.current,handleBlur:He,handleChange:oe,handleReset:yt,handleSubmit:xn,resetForm:_e,setErrors:je,setFormikState:_t,setFieldTouched:ye,setFieldValue:H,setFieldError:D,setStatus:dt,setSubmitting:gt,setTouched:de,setValues:Ue,submitForm:Ht,validateForm:De,validateField:Ne,isValid:On,dirty:rr,unregisterField:ee,registerField:M,getFieldProps:Ei,getFieldMeta:Rn,getFieldHelpers:Mn,validateOnBlur:n,validateOnChange:r,validateOnMount:l});return Gn}function GY(e){var t={};if(e.inner){if(e.inner.length===0)return xu(t,e.path,e.message);for(var n=e.inner,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if(i=n.next(),i.done)break;a=i.value}var l=a;mr(t,l.path)||(t=xu(t,l.path,l.message))}}return t}function HY(e,t,r,i){r===void 0&&(r=!1);var n=Ib(e);return t[r?"validateSync":"validate"](n,{abortEarly:!1,context:n})}function Ib(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=String(r);Array.isArray(e[i])===!0?t[i]=e[i].map(function(n){return Array.isArray(n)===!0||SN(n)?Ib(n):n!==""?n:void 0}):SN(e[i])?t[i]=Ib(e[i]):t[i]=e[i]!==""?e[i]:void 0}return t}function KY(e,t,r){var i=e.slice();return t.forEach(function(a,l){if(typeof i[l]>"u"){var d=r.clone!==!1,f=d&&r.isMergeableObject(a);i[l]=f?xb(Array.isArray(a)?[]:{},a,r):a}else r.isMergeableObject(a)?i[l]=xb(e[l],a,r):e.indexOf(a)===-1&&i.push(a)}),i}function JY(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function YY(e,t,r){if(typeof e=="boolean")return!!t;var i=[],n=!1,a=-1;if(Array.isArray(e))i=e,a=e.indexOf(r),n=a>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!n?i.concat(r):n?i.slice(0,a).concat(i.slice(a+1)):i}var XY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function Zr(e){var t=S.useRef(e);return XY(function(){t.current=e}),S.useCallback(function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return t.current.apply(void 0,i)},[])}var QY=S.forwardRef(function(e,t){var r=e.action,i=IA(e,["action"]),n=r??"#",a=FY(),l=a.handleReset,d=a.handleSubmit;return S.createElement("form",$n({onSubmit:d,ref:t,onReset:l,action:n},i))});QY.displayName="Form";var WY=["color","size","title","className"];function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Tb.apply(null,arguments)}function eX(e,t){if(e==null)return{};var r,i,n=tX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var zb=S.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,h=f===void 0?"":f,p=eX(e,WY);return Tt.createElement("svg",Tb({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-box-arrow-up-right",h].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{fillRule:"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),Tt.createElement("path",{fillRule:"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"}))});zb.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var nX=["color","size","title","className"];function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ab.apply(null,arguments)}function rX(e,t){if(e==null)return{};var r,i,n=iX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var Db=S.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,h=f===void 0?"":f,p=rX(e,nX);return Tt.createElement("svg",Ab({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-check-lg",h].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"}))});Db.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var aX=["color","size","title","className"];function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ub.apply(null,arguments)}function oX(e,t){if(e==null)return{};var r,i,n=uX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var zA=S.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,h=f===void 0?"":f,p=oX(e,aX);return Tt.createElement("svg",Ub({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-clipboard",h].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"}),Tt.createElement("path",{d:"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"}))});zA.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var lX=["color","size","title","className"];function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Cb.apply(null,arguments)}function sX(e,t){if(e==null)return{};var r,i,n=cX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var m$=S.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,h=f===void 0?"":f,p=sX(e,lX);return Tt.createElement("svg",Cb({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-info-circle",h].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),Tt.createElement("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"}))});m$.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var dX=["color","size","title","className"];function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Rb.apply(null,arguments)}function fX(e,t){if(e==null)return{};var r,i,n=mX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var Mb=S.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,h=f===void 0?"":f,p=fX(e,dX);return Tt.createElement("svg",Rb({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-x-lg",h].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"}))});Mb.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};const AA=Object.freeze({status:"aborted"});function Z(e,t,r){function i(d,f){var h;Object.defineProperty(d,"_zod",{value:d._zod??{},enumerable:!1}),(h=d._zod).traits??(h.traits=new Set),d._zod.traits.add(e),t(d,f);for(const p in l.prototype)p in d||Object.defineProperty(d,p,{value:l.prototype[p].bind(d)});d._zod.constr=l,d._zod.def=f}const n=(r==null?void 0:r.Parent)??Object;class a extends n{}Object.defineProperty(a,"name",{value:e});function l(d){var f;const h=r!=null&&r.Parent?new a:this;i(h,d),(f=h._zod).deferred??(f.deferred=[]);for(const p of h._zod.deferred)p();return h}return Object.defineProperty(l,"init",{value:i}),Object.defineProperty(l,Symbol.hasInstance,{value:d=>{var f,h;return r!=null&&r.Parent&&d instanceof r.Parent?!0:(h=(f=d==null?void 0:d._zod)==null?void 0:f.traits)==null?void 0:h.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}const DA=Symbol("zod_brand");let Ou=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},dv=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};const vh={};function Vn(e){return e&&Object.assign(vh,e),vh}function hX(e){return e}function vX(e){return e}function pX(e){}function gX(e){throw new Error}function yX(e){}function h$(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function se(e,t="|"){return e.map(r=>qe(r)).join(t)}function ph(e,t){return typeof t=="bigint"?t.toString():t}function Dd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Qu(e){return e==null}function fv(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function UA(e,t){const r=(e.toString().split(".")[1]||"").length,i=t.toString();let n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){const f=i.match(/\d?e-(\d?)/);f!=null&&f[1]&&(n=Number.parseInt(f[1]))}const a=r>n?r:n,l=Number.parseInt(e.toFixed(a).replace(".","")),d=Number.parseInt(t.toFixed(a).replace(".",""));return l%d/10**a}const XN=Symbol("evaluating");function st(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==XN)return i===void 0&&(i=XN,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function bX(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Lo(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Pa(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function _X(e){return Pa(e._zod.def)}function $X(e,t){return t?t.reduce((r,i)=>r==null?void 0:r[i],e):e}function SX(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let a=0;a<t.length;a++)n[t[a]]=i[a];return n})}function kX(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Lb(e){return JSON.stringify(e)}const v$="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function hs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const CA=Dd(()=>{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 Uu(e){if(hs(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(hs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function mv(e){return Uu(e)?{...e}:Array.isArray(e)?[...e]:e}function wX(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const xX=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}`)}},gh=new Set(["string","number","symbol"]),RA=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Io(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Wr(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(i._zod.parent=e),i}function re(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 OX(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,a){return t??(t=e()),Reflect.set(t,i,n,a)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function qe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function MA(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const LA={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]},PA={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ZA(e,t){const r=e._zod.def,i=Pa(e._zod.def,{get shape(){const n={};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=r.shape[a])}return Lo(this,"shape",n),n},checks:[]});return Wr(e,i)}function BA(e,t){const r=e._zod.def,i=Pa(e._zod.def,{get shape(){const n={...e._zod.def.shape};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return Lo(this,"shape",n),n},checks:[]});return Wr(e,i)}function FA(e,t){if(!Uu(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const n=Pa(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Lo(this,"shape",a),a},checks:[]});return Wr(e,n)}function VA(e,t){if(!Uu(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Lo(this,"shape",i),i},checks:e._zod.def.checks};return Wr(e,r)}function qA(e,t){const r=Pa(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Lo(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Wr(e,r)}function GA(e,t,r){const i=Pa(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in n))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=e?new e({type:"optional",innerType:n[l]}):n[l])}else for(const l in n)a[l]=e?new e({type:"optional",innerType:n[l]}):n[l];return Lo(this,"shape",a),a},checks:[]});return Wr(t,i)}function HA(e,t,r){const i=Pa(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=new e({type:"nonoptional",innerType:n[l]}))}else for(const l in n)a[l]=new e({type:"nonoptional",innerType:n[l]});return Lo(this,"shape",a),a},checks:[]});return Wr(t,i)}function mu(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)!==!0)return!0;return!1}function hi(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Cc(e){return typeof e=="string"?e:e==null?void 0:e.message}function Si(e,t,r){var n,a,l,d,f,h;const i={...e,path:e.path??[]};if(!e.message){const p=Cc((l=(a=(n=e.inst)==null?void 0:n._zod.def)==null?void 0:a.error)==null?void 0:l.call(a,e))??Cc((d=t==null?void 0:t.error)==null?void 0:d.call(t,e))??Cc((f=r.customError)==null?void 0:f.call(r,e))??Cc((h=r.localeError)==null?void 0:h.call(r,e))??"Invalid input";i.message=p}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function hv(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function vv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function vs(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function EX(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function KA(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function JA(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function NX(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return KA(t+r)}function jX(e){return JA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function IX(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function TX(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}let zX=class{constructor(...t){}};const YA=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:PA,Class:zX,NUMBER_FORMAT_RANGES:LA,aborted:mu,allowsEval:CA,assert:yX,assertEqual:hX,assertIs:pX,assertNever:gX,assertNotEqual:vX,assignProp:Lo,base64ToUint8Array:KA,base64urlToUint8Array:NX,cached:Dd,captureStackTrace:v$,cleanEnum:EX,cleanRegex:fv,clone:Wr,cloneDef:_X,createTransparentProxy:OX,defineLazy:st,esc:Lb,escapeRegex:Io,extend:FA,finalizeIssue:Si,floatSafeRemainder:UA,getElementAtPath:$X,getEnumValues:h$,getLengthableOrigin:vv,getParsedType:xX,getSizableOrigin:hv,hexToUint8Array:IX,isObject:hs,isPlainObject:Uu,issue:vs,joinValues:se,jsonStringifyReplacer:ph,merge:qA,mergeDefs:Pa,normalizeParams:re,nullish:Qu,numKeys:wX,objectClone:bX,omit:BA,optionalKeys:MA,partial:GA,pick:ZA,prefixIssues:hi,primitiveTypes:RA,promiseAllObject:SX,propertyKeyTypes:gh,randomString:kX,required:HA,safeExtend:VA,shallowClone:mv,stringifyPrimitive:qe,uint8ArrayToBase64:JA,uint8ArrayToBase64url:jX,uint8ArrayToHex:TX,unwrapMessage:Cc},Symbol.toStringTag,{value:"Module"})),XA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ph,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},p$=Z("$ZodError",XA),xr=Z("$ZodError",XA,{Parent:Error});function g$(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function y$(e,t=r=>r.message){const r={_errors:[]},i=n=>{for(const a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let l=r,d=0;for(;d<a.path.length;){const f=a.path[d];d===a.path.length-1?(l[f]=l[f]||{_errors:[]},l[f]._errors.push(t(a))):l[f]=l[f]||{_errors:[]},l=l[f],d++}}};return i(e),r}function QA(e,t=r=>r.message){const r={errors:[]},i=(n,a=[])=>{var l,d;for(const f of n.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(h=>i({issues:h},f.path));else if(f.code==="invalid_key")i({issues:f.issues},f.path);else if(f.code==="invalid_element")i({issues:f.issues},f.path);else{const h=[...a,...f.path];if(h.length===0){r.errors.push(t(f));continue}let p=r,g=0;for(;g<h.length;){const b=h[g],k=g===h.length-1;typeof b=="string"?(p.properties??(p.properties={}),(l=p.properties)[b]??(l[b]={errors:[]}),p=p.properties[b]):(p.items??(p.items=[]),(d=p.items)[b]??(d[b]={errors:[]}),p=p.items[b]),k&&p.errors.push(t(f)),g++}}};return i(e),r}function WA(e){const t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function eD(e){var i;const t=[],r=[...e.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(const n of r)t.push(`✖ ${n.message}`),(i=n.path)!=null&&i.length&&t.push(` → at ${WA(n.path)}`);return t.join(`
|
|
155
|
-
`)}const Ud=e=>(t,r,i,n)=>{const a=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise)throw new Ou;if(l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>Si(f,a,Vn())));throw v$(d,n==null?void 0:n.callee),d}return l.value},Pb=Ud(xr),Cd=e=>async(t,r,i,n)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise&&(l=await l),l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>Si(f,a,Vn())));throw v$(d,n==null?void 0:n.callee),d}return l.value},Zb=Cd(xr),Rd=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new Ou;return a.issues.length?{success:!1,error:new(e??p$)(a.issues.map(l=>Si(l,n,Vn())))}:{success:!0,data:a.value}},tD=Rd(xr),Md=e=>async(t,r,i)=>{const n=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(l=>Si(l,n,Vn())))}:{success:!0,data:a.value}},nD=Md(xr),b$=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ud(e)(t,r,n)},AX=b$(xr),_$=e=>(t,r,i)=>Ud(e)(t,r,i),DX=_$(xr),$$=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Cd(e)(t,r,n)},UX=$$(xr),S$=e=>async(t,r,i)=>Cd(e)(t,r,i),CX=S$(xr),k$=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Rd(e)(t,r,n)},RX=k$(xr),w$=e=>(t,r,i)=>Rd(e)(t,r,i),MX=w$(xr),x$=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Md(e)(t,r,n)},LX=x$(xr),O$=e=>async(t,r,i)=>Md(e)(t,r,i),PX=O$(xr),rD=/^[cC][^\s-]{8,}$/,iD=/^[0-9a-z]+$/,aD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,oD=/^[0-9a-vA-V]{20}$/,uD=/^[A-Za-z0-9]{27}$/,lD=/^[a-zA-Z0-9_-]{21}$/,sD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ZX=/^[-+]?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)?)??$/,cD=/^([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})$/,ps=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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,BX=ps(4),FX=ps(6),VX=ps(7),dD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,qX=/^[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])?)*$/,GX=/^(([^<>()\[\]\\.,;:\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,}))$/,fD=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,HX=fD,KX=/^[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])?)*$/,JX="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function mD(){return new RegExp(JX,"u")}const hD=/^(?:(?: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])$/,vD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pD=/^((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])$/,gD=/^(([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])$/,yD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,E$=/^[A-Za-z0-9_-]*$/,N$=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,bD=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,_D=/^\+(?:[0-9]){6,14}[0-9]$/,$D="(?:(?:\\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])))",SD=new RegExp(`^${$D}$`);function kD(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 wD(e){return new RegExp(`^${kD(e)}$`)}function xD(e){const t=kD({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${$D}T(?:${i})$`)}const OD=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}$`)},ED=/^-?\d+n?$/,ND=/^-?\d+$/,jD=/^-?\d+(?:\.\d+)?/,ID=/^(?:true|false)$/i,TD=/^null$/i,zD=/^undefined$/i,AD=/^[^A-Z]*$/,DD=/^[^a-z]*$/,UD=/^[0-9a-fA-F]*$/;function Ld(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Pd(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const YX=/^[0-9a-fA-F]{32}$/,XX=Ld(22,"=="),QX=Pd(22),WX=/^[0-9a-fA-F]{40}$/,eQ=Ld(27,"="),tQ=Pd(27),nQ=/^[0-9a-fA-F]{64}$/,rQ=Ld(43,"="),iQ=Pd(43),aQ=/^[0-9a-fA-F]{96}$/,oQ=Ld(64,""),uQ=Pd(64),lQ=/^[0-9a-fA-F]{128}$/,sQ=Ld(86,"=="),cQ=Pd(86),j$=Object.freeze(Object.defineProperty({__proto__:null,base64:yD,base64url:E$,bigint:ED,boolean:ID,browserEmail:KX,cidrv4:pD,cidrv6:gD,cuid:rD,cuid2:iD,date:SD,datetime:xD,domain:bD,duration:sD,e164:_D,email:dD,emoji:mD,extendedDuration:ZX,guid:cD,hex:UD,hostname:N$,html5Email:qX,idnEmail:HX,integer:ND,ipv4:hD,ipv6:vD,ksuid:uD,lowercase:AD,md5_base64:XX,md5_base64url:QX,md5_hex:YX,nanoid:lD,null:TD,number:jD,rfc5322Email:GX,sha1_base64:eQ,sha1_base64url:tQ,sha1_hex:WX,sha256_base64:rQ,sha256_base64url:iQ,sha256_hex:nQ,sha384_base64:oQ,sha384_base64url:uQ,sha384_hex:aQ,sha512_base64:sQ,sha512_base64url:cQ,sha512_hex:lQ,string:OD,time:wD,ulid:aD,undefined:zD,unicodeEmail:fD,uppercase:DD,uuid:ps,uuid4:BX,uuid6:FX,uuid7:VX,xid:oD},Symbol.toStringTag,{value:"Module"})),Wt=Z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),CD={number:"number",bigint:"bigint",object:"date"},I$=Z("$ZodCheckLessThan",(e,t)=>{Wt.init(e,t);const r=CD[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),T$=Z("$ZodCheckGreaterThan",(e,t)=>{Wt.init(e,t);const r=CD[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),RD=Z("$ZodCheckMultipleOf",(e,t)=>{Wt.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):UA(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),MD=Z("$ZodCheckNumberFormat",(e,t)=>{var l;Wt.init(e,t),t.format=t.format||"float64";const r=(l=t.format)==null?void 0:l.includes("int"),i=r?"int":"number",[n,a]=LA[t.format];e._zod.onattach.push(d=>{const f=d._zod.bag;f.format=t.format,f.minimum=n,f.maximum=a,r&&(f.pattern=ND)}),e._zod.check=d=>{const f=d.value;if(r){if(!Number.isInteger(f)){d.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?d.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):d.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}f<n&&d.issues.push({origin:"number",input:f,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),f>a&&d.issues.push({origin:"number",input:f,code:"too_big",maximum:a,inst:e})}}),LD=Z("$ZodCheckBigIntFormat",(e,t)=>{Wt.init(e,t);const[r,i]=PA[t.format];e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,a.minimum=r,a.maximum=i}),e._zod.check=n=>{const a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inst:e})}}),PD=Z("$ZodCheckMaxSize",(e,t)=>{var r;Wt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Qu(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:hv(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ZD=Z("$ZodCheckMinSize",(e,t)=>{var r;Wt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Qu(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:hv(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),BD=Z("$ZodCheckSizeEquals",(e,t)=>{var r;Wt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Qu(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,a=n.size;if(a===t.size)return;const l=a>t.size;i.issues.push({origin:hv(n),...l?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),FD=Z("$ZodCheckMaxLength",(e,t)=>{var r;Wt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Qu(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const l=vv(n);i.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),VD=Z("$ZodCheckMinLength",(e,t)=>{var r;Wt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Qu(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const l=vv(n);i.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),qD=Z("$ZodCheckLengthEquals",(e,t)=>{var r;Wt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Qu(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,a=n.length;if(a===t.length)return;const l=vv(n),d=a>t.length;i.issues.push({origin:l,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Zd=Z("$ZodCheckStringFormat",(e,t)=>{var r,i;Wt.init(e,t),e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),GD=Z("$ZodCheckRegex",(e,t)=>{Zd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),HD=Z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=AD),Zd.init(e,t)}),KD=Z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=DD),Zd.init(e,t)}),JD=Z("$ZodCheckIncludes",(e,t)=>{Wt.init(e,t);const r=Io(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),YD=Z("$ZodCheckStartsWith",(e,t)=>{Wt.init(e,t);const r=new RegExp(`^${Io(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),XD=Z("$ZodCheckEndsWith",(e,t)=>{Wt.init(e,t);const r=new RegExp(`.*${Io(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function QN(e,t,r){e.issues.length&&t.issues.push(...hi(r,e.issues))}const QD=Z("$ZodCheckProperty",(e,t)=>{Wt.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>QN(n,r,t.property));QN(i,r,t.property)}}),WD=Z("$ZodCheckMimeType",(e,t)=>{Wt.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),eU=Z("$ZodCheckOverwrite",(e,t)=>{Wt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});let tU=class{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 i=t.split(`
|
|
156
|
-
`).filter(l=>l),n=Math.min(...i.map(l=>l.length-l.trimStart().length)),a=i.map(l=>l.slice(n)).map(l=>" ".repeat(this.indent*2)+l);for(const l of a)this.content.push(l)}compile(){const t=Function,r=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...r,n.join(`
|
|
157
|
-
`))}};const nU={major:4,minor:1,patch:12},Xe=Z("$ZodType",(e,t)=>{var n;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nU;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const a of i)for(const l of a._zod.onattach)l(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const a=(d,f,h)=>{let p=mu(d),g;for(const b of f){if(b._zod.def.when){if(!b._zod.def.when(d))continue}else if(p)continue;const k=d.issues.length,w=b._zod.check(d);if(w instanceof Promise&&(h==null?void 0:h.async)===!1)throw new Ou;if(g||w instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await w,d.issues.length!==k&&(p||(p=mu(d,k)))});else{if(d.issues.length===k)continue;p||(p=mu(d,k))}}return g?g.then(()=>d):d},l=(d,f,h)=>{if(mu(d))return d.aborted=!0,d;const p=a(f,i,h);if(p instanceof Promise){if(h.async===!1)throw new Ou;return p.then(g=>e._zod.parse(g,h))}return e._zod.parse(p,h)};e._zod.run=(d,f)=>{if(f.skipChecks)return e._zod.parse(d,f);if(f.direction==="backward"){const p=e._zod.parse({value:d.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(g=>l(g,d,f)):l(p,d,f)}const h=e._zod.parse(d,f);if(h instanceof Promise){if(f.async===!1)throw new Ou;return h.then(p=>a(p,i,f))}return a(h,i,f)}}e["~standard"]={validate:a=>{var l;try{const d=tD(e,a);return d.success?{value:d.data}:{issues:(l=d.error)==null?void 0:l.issues}}catch{return nD(e,a).then(f=>{var h;return f.success?{value:f.data}:{issues:(h=f.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}}),Bd=Z("$ZodString",(e,t)=>{var r;Xe.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??OD(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Pt=Z("$ZodStringFormat",(e,t)=>{Zd.init(e,t),Bd.init(e,t)}),rU=Z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=cD),Pt.init(e,t)}),iU=Z("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ps(i))}else t.pattern??(t.pattern=ps());Pt.init(e,t)}),aU=Z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=dD),Pt.init(e,t)}),oU=Z("$ZodURL",(e,t)=>{Pt.init(e,t),e._zod.check=r=>{try{const i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:N$.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),uU=Z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=mD()),Pt.init(e,t)}),lU=Z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=lD),Pt.init(e,t)}),sU=Z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=rD),Pt.init(e,t)}),cU=Z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=iD),Pt.init(e,t)}),dU=Z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=aD),Pt.init(e,t)}),fU=Z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=oD),Pt.init(e,t)}),mU=Z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=uD),Pt.init(e,t)}),hU=Z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xD(t)),Pt.init(e,t)}),vU=Z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=SD),Pt.init(e,t)}),pU=Z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=wD(t)),Pt.init(e,t)}),gU=Z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=sD),Pt.init(e,t)}),yU=Z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=hD),Pt.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv4"})}),bU=Z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=vD),Pt.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),_U=Z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=pD),Pt.init(e,t)}),$U=Z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gD),Pt.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[n,a]=i;if(!a)throw new Error;const l=Number(a);if(`${l}`!==a)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function z$(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const SU=Z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=yD),Pt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{z$(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function kU(e){if(!E$.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return z$(r)}const wU=Z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=E$),Pt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{kU(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),xU=Z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_D),Pt.init(e,t)});function OU(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const EU=Z("$ZodJWT",(e,t)=>{Pt.init(e,t),e._zod.check=r=>{OU(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),NU=Z("$ZodCustomStringFormat",(e,t)=>{Pt.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),A$=Z("$ZodNumber",(e,t)=>{Xe.init(e,t),e._zod.pattern=e._zod.bag.pattern??jD,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),jU=Z("$ZodNumber",(e,t)=>{MD.init(e,t),A$.init(e,t)}),D$=Z("$ZodBoolean",(e,t)=>{Xe.init(e,t),e._zod.pattern=ID,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),U$=Z("$ZodBigInt",(e,t)=>{Xe.init(e,t),e._zod.pattern=ED,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),IU=Z("$ZodBigInt",(e,t)=>{LD.init(e,t),U$.init(e,t)}),TU=Z("$ZodSymbol",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),zU=Z("$ZodUndefined",(e,t)=>{Xe.init(e,t),e._zod.pattern=zD,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),AU=Z("$ZodNull",(e,t)=>{Xe.init(e,t),e._zod.pattern=TD,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),DU=Z("$ZodAny",(e,t)=>{Xe.init(e,t),e._zod.parse=r=>r}),UU=Z("$ZodUnknown",(e,t)=>{Xe.init(e,t),e._zod.parse=r=>r}),CU=Z("$ZodNever",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),RU=Z("$ZodVoid",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),MU=Z("$ZodDate",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function WN(e,t,r){e.issues.length&&t.issues.push(...hi(r,e.issues)),t.value[r]=e.value}const LU=Z("$ZodArray",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let l=0;l<n.length;l++){const d=n[l],f=t.element._zod.run({value:d,issues:[]},i);f instanceof Promise?a.push(f.then(h=>WN(h,r,l))):WN(f,r,l)}return a.length?Promise.all(a).then(()=>r):r}});function yh(e,t,r,i){e.issues.length&&t.issues.push(...hi(r,e.issues)),e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function PU(e){var i,n,a,l;const t=Object.keys(e.shape);for(const d of t)if(!((l=(a=(n=(i=e.shape)==null?void 0:i[d])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&l.has("$ZodType")))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const r=MA(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function ZU(e,t,r,i,n,a){const l=[],d=n.keySet,f=n.catchall._zod,h=f.def.type;for(const p of Object.keys(t)){if(d.has(p))continue;if(h==="never"){l.push(p);continue}const g=f.run({value:t[p],issues:[]},i);g instanceof Promise?e.push(g.then(b=>yh(b,r,p,t))):yh(g,r,p,t)}return l.length&&r.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const BU=Z("$ZodObject",(e,t)=>{Xe.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...d};return Object.defineProperty(t,"shape",{value:f}),f}})}const i=Dd(()=>PU(t));st(e._zod,"propValues",()=>{const d=t.shape,f={};for(const h in d){const p=d[h]._zod;if(p.values){f[h]??(f[h]=new Set);for(const g of p.values)f[h].add(g)}}return f});const n=hs,a=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=i.value);const h=d.value;if(!n(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};const p=[],g=l.shape;for(const b of l.keys){const w=g[b]._zod.run({value:h[b],issues:[]},f);w instanceof Promise?p.push(w.then(I=>yh(I,d,b,h))):yh(w,d,b,h)}return a?ZU(p,h,d,f,i.value,e):p.length?Promise.all(p).then(()=>d):d}}),FU=Z("$ZodObjectJIT",(e,t)=>{BU.init(e,t);const r=e._zod.parse,i=Dd(()=>PU(t)),n=b=>{const k=new tU(["shape","payload","ctx"]),w=i.value,I=N=>{const z=Lb(N);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};k.write("const input = payload.value;");const x=Object.create(null);let $=0;for(const N of w.keys)x[N]=`key_${$++}`;k.write("const newResult = {};");for(const N of w.keys){const z=x[N],T=Lb(N);k.write(`const ${z} = ${I(N)};`),k.write(`
|
|
158
|
-
if (${z}.issues.length) {
|
|
159
|
-
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
160
|
-
...iss,
|
|
161
|
-
path: iss.path ? [${T}, ...iss.path] : [${T}]
|
|
162
|
-
})));
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if (${z}.value === undefined) {
|
|
167
|
-
if (${T} in input) {
|
|
168
|
-
newResult[${T}] = undefined;
|
|
169
|
-
}
|
|
170
|
-
} else {
|
|
171
|
-
newResult[${T}] = ${z}.value;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
`)}k.write("payload.value = newResult;"),k.write("return payload;");const j=k.compile();return(N,z)=>j(b,N,z)};let a;const l=hs,d=!vh.jitless,h=d&&CA.value,p=t.catchall;let g;e._zod.parse=(b,k)=>{g??(g=i.value);const w=b.value;return l(w)?d&&h&&(k==null?void 0:k.async)===!1&&k.jitless!==!0?(a||(a=n(t.shape)),b=a(b,k),p?ZU([],w,b,k,g,e):b):r(b,k):(b.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),b)}});function ej(e,t,r,i){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const n=e.filter(a=>!mu(a));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(l=>Si(l,i,Vn())))}),t)}const C$=Z("$ZodUnion",(e,t)=>{Xe.init(e,t),st(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),st(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),st(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),st(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>fv(a.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let l=!1;const d=[];for(const f of t.options){const h=f._zod.run({value:n.value,issues:[]},a);if(h instanceof Promise)d.push(h),l=!0;else{if(h.issues.length===0)return h;d.push(h)}}return l?Promise.all(d).then(f=>ej(f,n,e,a)):ej(d,n,e,a)}}),VU=Z("$ZodDiscriminatedUnion",(e,t)=>{C$.init(e,t);const r=e._zod.parse;st(e._zod,"propValues",()=>{const n={};for(const a of t.options){const l=a._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[d,f]of Object.entries(l)){n[d]||(n[d]=new Set);for(const h of f)n[d].add(h)}}return n});const i=Dd(()=>{var l;const n=t.options,a=new Map;for(const d of n){const f=(l=d._zod.propValues)==null?void 0:l[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(d)}"`);for(const h of f){if(a.has(h))throw new Error(`Duplicate discriminator value "${String(h)}"`);a.set(h,d)}}return a});e._zod.parse=(n,a)=>{const l=n.value;if(!hs(l))return n.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),n;const d=i.value.get(l==null?void 0:l[t.discriminator]);return d?d._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:l,path:[t.discriminator],inst:e}),n)}}),qU=Z("$ZodIntersection",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,a=t.left._zod.run({value:n,issues:[]},i),l=t.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||l instanceof Promise?Promise.all([a,l]).then(([f,h])=>tj(r,f,h)):tj(r,a,l)}});function Bb(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(Uu(e)&&Uu(t)){const r=Object.keys(t),i=Object.keys(e).filter(a=>r.indexOf(a)!==-1),n={...e,...t};for(const a of i){const l=Bb(e[a],t[a]);if(!l.valid)return{valid:!1,mergeErrorPath:[a,...l.mergeErrorPath]};n[a]=l.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],a=t[i],l=Bb(n,a);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};r.push(l.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function tj(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),mu(e))return e;const i=Bb(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const R$=Z("$ZodTuple",(e,t)=>{Xe.init(e,t);const r=t.items,i=r.length-[...r].reverse().findIndex(n=>n._zod.optin!=="optional");e._zod.parse=(n,a)=>{const l=n.value;if(!Array.isArray(l))return n.issues.push({input:l,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];const d=[];if(!t.rest){const h=l.length>r.length,p=l.length<i-1;if(h||p)return n.issues.push({...h?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:l,inst:e,origin:"array"}),n}let f=-1;for(const h of r){if(f++,f>=l.length&&f>=i)continue;const p=h._zod.run({value:l[f],issues:[]},a);p instanceof Promise?d.push(p.then(g=>Im(g,n,f))):Im(p,n,f)}if(t.rest){const h=l.slice(r.length);for(const p of h){f++;const g=t.rest._zod.run({value:p,issues:[]},a);g instanceof Promise?d.push(g.then(b=>Im(b,n,f))):Im(g,n,f)}}return d.length?Promise.all(d).then(()=>n):n}});function Im(e,t,r){e.issues.length&&t.issues.push(...hi(r,e.issues)),t.value[r]=e.value}const GU=Z("$ZodRecord",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Uu(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const a=[];if(t.keyType._zod.values){const l=t.keyType._zod.values;r.value={};for(const f of l)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){const h=t.valueType._zod.run({value:n[f],issues:[]},i);h instanceof Promise?a.push(h.then(p=>{p.issues.length&&r.issues.push(...hi(f,p.issues)),r.value[f]=p.value})):(h.issues.length&&r.issues.push(...hi(f,h.issues)),r.value[f]=h.value)}let d;for(const f in n)l.has(f)||(d=d??[],d.push(f));d&&d.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:d})}else{r.value={};for(const l of Reflect.ownKeys(n)){if(l==="__proto__")continue;const d=t.keyType._zod.run({value:l,issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>Si(h,i,Vn())),input:l,path:[l],inst:e}),r.value[d.value]=d.value;continue}const f=t.valueType._zod.run({value:n[l],issues:[]},i);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&r.issues.push(...hi(l,h.issues)),r.value[d.value]=h.value})):(f.issues.length&&r.issues.push(...hi(l,f.issues)),r.value[d.value]=f.value)}}return a.length?Promise.all(a).then(()=>r):r}}),HU=Z("$ZodMap",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const a=[];r.value=new Map;for(const[l,d]of n){const f=t.keyType._zod.run({value:l,issues:[]},i),h=t.valueType._zod.run({value:d,issues:[]},i);f instanceof Promise||h instanceof Promise?a.push(Promise.all([f,h]).then(([p,g])=>{nj(p,g,r,l,n,e,i)})):nj(f,h,r,l,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function nj(e,t,r,i,n,a,l){e.issues.length&&(gh.has(typeof i)?r.issues.push(...hi(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(d=>Si(d,l,Vn()))})),t.issues.length&&(gh.has(typeof i)?r.issues.push(...hi(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(d=>Si(d,l,Vn()))})),r.value.set(e.value,t.value)}const KU=Z("$ZodSet",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const a=[];r.value=new Set;for(const l of n){const d=t.valueType._zod.run({value:l,issues:[]},i);d instanceof Promise?a.push(d.then(f=>rj(f,r))):rj(d,r)}return a.length?Promise.all(a).then(()=>r):r}});function rj(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const JU=Z("$ZodEnum",(e,t)=>{Xe.init(e,t);const r=h$(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>gh.has(typeof n)).map(n=>typeof n=="string"?Io(n):n.toString()).join("|")})$`),e._zod.parse=(n,a)=>{const l=n.value;return i.has(l)||n.issues.push({code:"invalid_value",values:r,input:l,inst:e}),n}}),YU=Z("$ZodLiteral",(e,t)=>{if(Xe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Io(r):r?Io(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const n=r.value;return e._zod.values.has(n)||r.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),r}}),XU=Z("$ZodFile",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),QU=Z("$ZodTransform",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new dv(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(l=>(r.value=l,r));if(n instanceof Promise)throw new Ou;return r.value=n,r}});function ij(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const WU=Z("$ZodOptional",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",st(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),st(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fv(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>ij(a,r.value)):ij(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),e4=Z("$ZodNullable",(e,t)=>{Xe.init(e,t),st(e._zod,"optin",()=>t.innerType._zod.optin),st(e._zod,"optout",()=>t.innerType._zod.optout),st(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fv(r.source)}|null)$`):void 0}),st(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),t4=Z("$ZodDefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",st(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>aj(a,t)):aj(n,t)}});function aj(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const n4=Z("$ZodPrefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",st(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),r4=Z("$ZodNonOptional",(e,t)=>{Xe.init(e,t),st(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>oj(a,e)):oj(n,e)}});function oj(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 i4=Z("$ZodSuccess",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new dv("ZodSuccess");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),a4=Z("$ZodCatch",(e,t)=>{Xe.init(e,t),st(e._zod,"optin",()=>t.innerType._zod.optin),st(e._zod,"optout",()=>t.innerType._zod.optout),st(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(l=>Si(l,i,Vn()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>Si(a,i,Vn()))},input:r.value}),r.issues=[]),r)}}),o4=Z("$ZodNaN",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),u4=Z("$ZodPipe",(e,t)=>{Xe.init(e,t),st(e._zod,"values",()=>t.in._zod.values),st(e._zod,"optin",()=>t.in._zod.optin),st(e._zod,"optout",()=>t.out._zod.optout),st(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>Tm(l,t.in,i)):Tm(a,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(a=>Tm(a,t.out,i)):Tm(n,t.out,i)}});function Tm(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const M$=Z("$ZodCodec",(e,t)=>{Xe.init(e,t),st(e._zod,"values",()=>t.in._zod.values),st(e._zod,"optin",()=>t.in._zod.optin),st(e._zod,"optout",()=>t.out._zod.optout),st(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const a=t.in._zod.run(r,i);return a instanceof Promise?a.then(l=>zm(l,t,i)):zm(a,t,i)}else{const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>zm(l,t,i)):zm(a,t,i)}}});function zm(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(a=>Am(e,a,t.out,r)):Am(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(a=>Am(e,a,t.in,r)):Am(e,n,t.in,r)}}function Am(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const l4=Z("$ZodReadonly",(e,t)=>{Xe.init(e,t),st(e._zod,"propValues",()=>t.innerType._zod.propValues),st(e._zod,"values",()=>t.innerType._zod.values),st(e._zod,"optin",()=>t.innerType._zod.optin),st(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(uj):uj(n)}});function uj(e){return e.value=Object.freeze(e.value),e}const s4=Z("$ZodTemplateLiteral",(e,t)=>{Xe.init(e,t);const r=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const a=n.startsWith("^")?1:0,l=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(a,l))}else if(i===null||RA.has(typeof i))r.push(Io(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),c4=Z("$ZodFunction",(e,t)=>(Xe.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const n=e._def.input?Pb(e._def.input,i):i,a=Reflect.apply(r,this,n);return e._def.output?Pb(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const n=e._def.input?await Zb(e._def.input,i):i,a=await Reflect.apply(r,this,n);return e._def.output?await Zb(e._def.output,a):a}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new R$({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),d4=Z("$ZodPromise",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),f4=Z("$ZodLazy",(e,t)=>{Xe.init(e,t),st(e._zod,"innerType",()=>t.getter()),st(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),st(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),st(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),st(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),m4=Z("$ZodCustom",(e,t)=>{Wt.init(e,t),Xe.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(a=>lj(a,r,i,e));lj(n,r,i,e)}});function lj(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(vs(n))}}const dQ=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${qe(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()} ${l.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()} ${l.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${i[a.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${se(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function fQ(){return{localeError:dQ()}}const mQ=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${qe(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()} ${l.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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ış ${i[a.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${se(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function hQ(){return{localeError:mQ()}}function sj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const vQ=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${qe(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=sj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${l.verb} ${a}${n.maximum.toString()} ${f}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=sj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${l.verb} ${a}${n.minimum.toString()} ${f}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${i[a.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${se(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function pQ(){return{localeError:vQ()}}const gQ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},yQ=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(i){return e[i]??null}const 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}, получен ${gQ(i.input)}`;case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${qe(i.values[0])}`:`Невалидна опция: очаквано едно от ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${n}${i.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Твърде малко: очаква се ${i.origin} да съдържа ${n}${i.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;if(n.format==="starts_with")return`Невалиден низ: трябва да започва с "${n.prefix}"`;if(n.format==="ends_with")return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if(n.format==="includes")return`Невалиден низ: трябва да включва "${n.includes}"`;if(n.format==="regex")return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let a="Невалиден";return n.format==="emoji"&&(a="Невалидно"),n.format==="datetime"&&(a="Невалидно"),n.format==="date"&&(a="Невалидна"),n.format==="time"&&(a="Невалидно"),n.format==="duration"&&(a="Невалидна"),`${a} ${r[n.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${se(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function bQ(){return{localeError:yQ()}}const _Q=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${qe(n.values[0])}`:`Opció invàlida: s'esperava una de ${se(n.values," o ")}`;case"too_big":{const a=n.inclusive?"com a màxim":"menys de",l=t(n.origin);return l?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${a} ${n.maximum.toString()} ${l.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"com a mínim":"més de",l=t(n.origin);return l?`Massa petit: s'esperava que ${n.origin} contingués ${a} ${n.minimum.toString()} ${l.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function $Q(){return{localeError:_Q()}}const SQ=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"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(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${qe(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${a}${n.maximum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${a}${n.minimum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${se(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function kQ(){return{localeError:SQ()}}const wQ=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"tal";case"object":return Array.isArray(l)?"liste":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype&&l.constructor?l.constructor.name:"objekt"}return d},a={regex:"input",email:"e-mailadresse",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 klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return l=>{switch(l.code){case"invalid_type":return`Ugyldigt input: forventede ${i(l.expected)}, fik ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Ugyldig værdi: forventede ${qe(l.values[0])}`:`Ugyldigt valg: forventede en af følgende ${se(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),h=i(l.origin);return f?`For stor: forventede ${h??"value"} ${f.verb} ${d} ${l.maximum.toString()} ${f.unit??"elementer"}`:`For stor: forventede ${h??"value"} havde ${d} ${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),h=i(l.origin);return f?`For lille: forventede ${h} ${f.verb} ${d} ${l.minimum.toString()} ${f.unit}`:`For lille: forventede ${h} havde ${d} ${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Ugyldig streng: skal starte med "${d.prefix}"`:d.format==="ends_with"?`Ugyldig streng: skal ende med "${d.suffix}"`:d.format==="includes"?`Ugyldig streng: skal indeholde "${d.includes}"`:d.format==="regex"?`Ugyldig streng: skal matche mønsteret ${d.pattern}`:`Ugyldig ${a[d.format]??l.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${l.divisor}`;case"unrecognized_keys":return`${l.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${se(l.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${l.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${l.origin}`;default:return"Ugyldigt input"}}};function xQ(){return{localeError:wQ()}}const OQ=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${qe(n.values[0])}`:`Ungültige Option: erwartet eine von ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ${l.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ist`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${l.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case"invalid_format":{const a=n;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: ${i[a.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${se(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function EQ(){return{localeError:OQ()}}const NQ=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},jQ=()=>{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(i){return e[i]??null}const 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`Invalid input: expected ${i.expected}, received ${NQ(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${qe(i.values[0])}`:`Invalid option: expected one of ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${n}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${n}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${se(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function h4(){return{localeError:jQ()}}const IQ=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},TQ=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}const r={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 i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${IQ(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${qe(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendiĝis ke ${i.origin} havu ${n}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${se(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function zQ(){return{localeError:TQ()}}const AQ=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"number";case"object":return Array.isArray(l)?"array":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype?l.constructor.name:"object"}return d},a={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 l=>{switch(l.code){case"invalid_type":return`Entrada inválida: se esperaba ${i(l.expected)}, recibido ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Entrada inválida: se esperaba ${qe(l.values[0])}`:`Opción inválida: se esperaba una de ${se(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),h=i(l.origin);return f?`Demasiado grande: se esperaba que ${h??"valor"} tuviera ${d}${l.maximum.toString()} ${f.unit??"elementos"}`:`Demasiado grande: se esperaba que ${h??"valor"} fuera ${d}${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),h=i(l.origin);return f?`Demasiado pequeño: se esperaba que ${h} tuviera ${d}${l.minimum.toString()} ${f.unit}`:`Demasiado pequeño: se esperaba que ${h} fuera ${d}${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Cadena inválida: debe comenzar con "${d.prefix}"`:d.format==="ends_with"?`Cadena inválida: debe terminar en "${d.suffix}"`:d.format==="includes"?`Cadena inválida: debe incluir "${d.includes}"`:d.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${d.pattern}`:`Inválido ${a[d.format]??l.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${l.divisor}`;case"unrecognized_keys":return`Llave${l.keys.length>1?"s":""} desconocida${l.keys.length>1?"s":""}: ${se(l.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i(l.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i(l.origin)}`;default:return"Entrada inválida"}}};function DQ(){return{localeError:AQ()}}const UQ=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${n.expected} میبود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${qe(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${se(n.values,"|")} میبود`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} باشد`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} باشد`}case"invalid_format":{const a=n;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${i[a.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${se(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function CQ(){return{localeError:UQ()}}const RQ=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${qe(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Liian suuri: ${l.subject} täytyy olla ${a}${n.maximum.toString()} ${l.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Liian pieni: ${l.subject} täytyy olla ${a}${n.minimum.toString()} ${l.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${se(n.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 MQ(){return{localeError:RQ()}}const LQ=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${qe(n.values[0])} attendu`:`Option invalide : une valeur parmi ${se(n.values,"|")} attendue`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Trop grand : ${n.origin??"valeur"} doit ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Trop petit : ${n.origin} doit ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : ${n.origin} doit être ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${se(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function PQ(){return{localeError:LQ()}}const ZQ=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${qe(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"≤":"<",l=t(n.origin);return l?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${a}${n.maximum.toString()} ${l.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"≥":">",l=t(n.origin);return l?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${se(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function BQ(){return{localeError:ZQ()}}const FQ=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`קלט לא תקין: צריך ${n.expected}, התקבל ${r(n.input)}`;case"invalid_value":return n.values.length===1?`קלט לא תקין: צריך ${qe(n.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`גדול מדי: ${n.origin??"value"} צריך להיות ${a}${n.maximum.toString()} ${l.unit??"elements"}`:`גדול מדי: ${n.origin??"value"} צריך להיות ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`קטן מדי: ${n.origin} צריך להיות ${a}${n.minimum.toString()} ${l.unit}`:`קטן מדי: ${n.origin} צריך להיות ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${i[a.format]??n.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${n.divisor}`;case"unrecognized_keys":return`מפתח${n.keys.length>1?"ות":""} לא מזוה${n.keys.length>1?"ים":"ה"}: ${se(n.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${n.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n.origin}`;default:return"קלט לא תקין"}}};function VQ(){return{localeError:FQ()}}const qQ=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${qe(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${a}${n.maximum.toString()} ${l.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${a}${n.minimum.toString()} ${l.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function GQ(){return{localeError:qQ()}}const HQ=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${qe(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function KQ(){return{localeError:HQ()}}const JQ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},YQ=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(i){return e[i]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return i=>{switch(i.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${JQ(i.input)} þar sem á að vera ${i.expected}`;case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${qe(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${n}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${n}${i.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Ógildur strengur: verður að byrja á "${n.prefix}"`:n.format==="ends_with"?`Ógildur strengur: verður að enda á "${n.suffix}"`:n.format==="includes"?`Ógildur strengur: verður að innihalda "${n.includes}"`:n.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${se(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function XQ(){return{localeError:YQ()}}const QQ=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${qe(n.values[0])}`:`Opzione non valida: atteso uno tra ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Troppo grande: ${n.origin??"valore"} deve avere ${a}${n.maximum.toString()} ${l.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${l.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${se(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function WQ(){return{localeError:QQ()}}const eW=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${qe(n.values[0])}が期待されました`:`無効な選択: ${se(n.values,"、")}のいずれかである必要があります`;case"too_big":{const a=n.inclusive?"以下である":"より小さい",l=t(n.origin);return l?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${l.unit??"要素"}${a}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a}必要があります`}case"too_small":{const a=n.inclusive?"以上である":"より大きい",l=t(n.origin);return l?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${l.unit}${a}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${i[a.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${se(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function tW(){return{localeError:eW()}}const nW=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},rW=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(i){return e[i]??null}const 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-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return i=>{switch(i.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${i.expected}, მიღებული ${nW(i.input)}`;case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${qe(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${se(i.values,"|")}-დან`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${a.verb} ${n}${i.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${a.verb} ${n}${i.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${n.prefix}"-ით`:n.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${n.suffix}"-ით`:n.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${n.includes}"-ს`:n.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`:`არასწორი ${r[n.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${se(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function iW(){return{localeError:rW()}}const aW=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${qe(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()} ${l.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()} ${l.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[a.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${se(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function v4(){return{localeError:aW()}}function oW(){return v4()}const uW=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${qe(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${se(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=n.inclusive?"이하":"미만",l=a==="미만"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${a}${l}`}case"too_small":{const a=n.inclusive?"이상":"초과",l=a==="이상"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${a}${l}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[a.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${se(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function lW(){return{localeError:uW()}}const sW=e=>Rc(typeof e,e),Rc=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Tc=e=>e.charAt(0).toUpperCase()+e.slice(1);function cj(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const cW=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(i,n,a,l){const d=e[i]??null;return d===null?d:{unit:d.unit[n],verb:d.verb[l][a?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return i=>{switch(i.code){case"invalid_type":return`Gautas tipas ${sW(i.input)}, o tikėtasi - ${Rc(i.expected)}`;case"invalid_value":return i.values.length===1?`Privalo būti ${qe(i.values[0])}`:`Privalo būti vienas iš ${se(i.values,"|")} pasirinkimų`;case"too_big":{const n=Rc(i.origin),a=t(i.origin,cj(Number(i.maximum)),i.inclusive??!1,"smaller");if(a!=null&&a.verb)return`${Tc(n??i.origin??"reikšmė")} ${a.verb} ${i.maximum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Tc(n??i.origin??"reikšmė")} turi būti ${l} ${i.maximum.toString()} ${a==null?void 0:a.unit}`}case"too_small":{const n=Rc(i.origin),a=t(i.origin,cj(Number(i.minimum)),i.inclusive??!1,"bigger");if(a!=null&&a.verb)return`${Tc(n??i.origin??"reikšmė")} ${a.verb} ${i.minimum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Tc(n??i.origin??"reikšmė")} turi būti ${l} ${i.minimum.toString()} ${a==null?void 0:a.unit}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Eilutė privalo prasidėti "${n.prefix}"`:n.format==="ends_with"?`Eilutė privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilutė privalo įtraukti "${n.includes}"`:n.format==="regex"?`Eilutė privalo atitikti ${n.pattern}`:`Neteisingas ${r[n.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${se(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const n=Rc(i.origin);return`${Tc(n??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function dW(){return{localeError:cW()}}const fW=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${qe(n.values[0])}`:`Грешана опција: се очекува една ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${a}${n.maximum.toString()} ${l.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Премногу мал: се очекува ${n.origin} да има ${a}${n.minimum.toString()} ${l.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${i[a.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${se(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function mW(){return{localeError:fW()}}const hW=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${qe(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: dijangka ${n.origin??"nilai"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: dijangka ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${se(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function vW(){return{localeError:hW()}}const pW=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${qe(n.values[0])}`:`Ongeldige optie: verwacht één van ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Te lang: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} ${l.unit??"elementen"} bevat`:`Te lang: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} is`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Te kort: verwacht dat ${n.origin} ${a}${n.minimum.toString()} ${l.unit} bevat`:`Te kort: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case"invalid_format":{const a=n;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: ${i[a.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function gW(){return{localeError:pW()}}const yW=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${qe(n.values[0])}`:`Ugyldig valg: forventet en av ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()} ${l.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()} ${l.unit}`:`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${se(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function bW(){return{localeError:yW()}}const _W=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${qe(n.values[0])}`:`Fâsit tercih: mûteberler ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} ${l.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} olmalıydı.`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} ${l.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${se(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function $W(){return{localeError:_W()}}const SW=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${qe(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${se(n.values,"|")} څخه وای`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} وي`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} وي`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${i[a.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${se(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function kW(){return{localeError:SW()}}const wW=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${qe(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.maximum.toString()} ${l.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.minimum.toString()} ${l.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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) ${i[a.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function xW(){return{localeError:wW()}}const OW=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${qe(n.values[0])}`:`Opção inválida: esperada uma das ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${a}${n.maximum.toString()} ${l.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${l.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function EW(){return{localeError:OW()}}function dj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const NW=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${qe(n.values[0])}`:`Неверный вариант: ожидалось одно из ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=dj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${a}${n.maximum.toString()} ${f}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=dj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${a}${n.minimum.toString()} ${f}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${i[a.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function jW(){return{localeError:NW()}}const IW=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${qe(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${a}${n.maximum.toString()} ${l.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Premajhno: pričakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${l.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${se(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function TW(){return{localeError:IW()}}const zW=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${qe(n.values[0])}`:`Ogiltigt val: förväntade en av ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()} ${l.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()} ${l.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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) ${i[a.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${se(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function AW(){return{localeError:zW()}}const DW=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${qe(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${se(n.values,"|")} இல் ஒன்று`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ${l.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ${l.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=n;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[a.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${se(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function UW(){return{localeError:DW()}}const CW=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${qe(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"ไม่เกิน":"น้อยกว่า",l=t(n.origin);return l?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()} ${l.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"อย่างน้อย":"มากกว่า",l=t(n.origin);return l?`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()} ${l.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[a.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${se(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function RW(){return{localeError:CW()}}const MW=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},LW=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(i){return e[i]??null}const r={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 i=>{switch(i.code){case"invalid_type":return`Geçersiz değer: beklenen ${i.expected}, alınan ${MW(i.input)}`;case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${qe(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${se(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function PW(){return{localeError:LW()}}const ZW=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${qe(n.values[0])}`:`Неправильна опція: очікується одне з ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Занадто велике: очікується, що ${n.origin??"значення"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Занадто мале: очікується, що ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${i[a.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function p4(){return{localeError:ZW()}}function BW(){return p4()}const FW=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${qe(n.values[0])} متوقع تھا`:`غلط آپشن: ${se(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`بہت بڑا: ${n.origin??"ویلیو"} کے ${a}${n.maximum.toString()} ${l.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${a}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`بہت چھوٹا: ${n.origin} کے ${a}${n.minimum.toString()} ${l.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${a}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=n;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${i[a.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${se(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function VW(){return{localeError:FW()}}const qW=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${qe(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Quá nhỏ: mong đợi ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${se(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.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 ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function GW(){return{localeError:qW()}}const HW=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${qe(n.values[0])}`:`无效选项:期望以下之一 ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()} ${l.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${i[a.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${se(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function KW(){return{localeError:HW()}}const JW=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${qe(n.values[0])}`:`無效的選項:預期為以下其中之一 ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()} ${l.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()} ${l.unit}`:`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${i[a.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${se(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function YW(){return{localeError:JW()}}const XW=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(n))return"akopọ";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return n=>{switch(n.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${n.expected}, àmọ̀ a rí ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${qe(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${l.verb} ${a}${n.maximum} ${l.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${n.maximum}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${l.verb} ${a}${n.minimum} ${l.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${n.minimum}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${i[a.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${se(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function QW(){return{localeError:XW()}}const g4=Object.freeze(Object.defineProperty({__proto__:null,ar:fQ,az:hQ,be:pQ,bg:bQ,ca:$Q,cs:kQ,da:xQ,de:EQ,en:h4,eo:zQ,es:DQ,fa:CQ,fi:MQ,fr:PQ,frCA:BQ,he:VQ,hu:GQ,id:KQ,is:XQ,it:WQ,ja:tW,ka:iW,kh:oW,km:v4,ko:lW,lt:dW,mk:mW,ms:vW,nl:gW,no:bW,ota:$W,pl:xW,ps:kW,pt:EW,ru:jW,sl:TW,sv:AW,ta:UW,th:RW,tr:PW,ua:BW,uk:p4,ur:VW,vi:GW,yo:QW,zhCN:KW,zhTW:YW},Symbol.toStringTag,{value:"Module"})),y4=Symbol("ZodOutput"),b4=Symbol("ZodInput");let L$=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function P$(){return new L$}const hu=P$();function _4(e,t){return new e({type:"string",...re(t)})}function $4(e,t){return new e({type:"string",coerce:!0,...re(t)})}function Z$(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...re(t)})}function bh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...re(t)})}function B$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...re(t)})}function F$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...re(t)})}function V$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...re(t)})}function q$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...re(t)})}function pv(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...re(t)})}function G$(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...re(t)})}function H$(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...re(t)})}function K$(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...re(t)})}function J$(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...re(t)})}function Y$(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...re(t)})}function X$(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...re(t)})}function Q$(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...re(t)})}function W$(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...re(t)})}function eS(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...re(t)})}function tS(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...re(t)})}function nS(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...re(t)})}function rS(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...re(t)})}function iS(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...re(t)})}function aS(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...re(t)})}function oS(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...re(t)})}const S4={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function k4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...re(t)})}function w4(e,t){return new e({type:"string",format:"date",check:"string_format",...re(t)})}function x4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...re(t)})}function O4(e,t){return new e({type:"string",format:"duration",check:"string_format",...re(t)})}function E4(e,t){return new e({type:"number",checks:[],...re(t)})}function N4(e,t){return new e({type:"number",coerce:!0,checks:[],...re(t)})}function j4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...re(t)})}function I4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...re(t)})}function T4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...re(t)})}function z4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...re(t)})}function A4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...re(t)})}function D4(e,t){return new e({type:"boolean",...re(t)})}function U4(e,t){return new e({type:"boolean",coerce:!0,...re(t)})}function C4(e,t){return new e({type:"bigint",...re(t)})}function R4(e,t){return new e({type:"bigint",coerce:!0,...re(t)})}function M4(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...re(t)})}function L4(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...re(t)})}function P4(e,t){return new e({type:"symbol",...re(t)})}function Z4(e,t){return new e({type:"undefined",...re(t)})}function B4(e,t){return new e({type:"null",...re(t)})}function F4(e){return new e({type:"any"})}function V4(e){return new e({type:"unknown"})}function q4(e,t){return new e({type:"never",...re(t)})}function G4(e,t){return new e({type:"void",...re(t)})}function H4(e,t){return new e({type:"date",...re(t)})}function K4(e,t){return new e({type:"date",coerce:!0,...re(t)})}function J4(e,t){return new e({type:"nan",...re(t)})}function Cu(e,t){return new I$({check:"less_than",...re(t),value:e,inclusive:!1})}function yi(e,t){return new I$({check:"less_than",...re(t),value:e,inclusive:!0})}function Ru(e,t){return new T$({check:"greater_than",...re(t),value:e,inclusive:!1})}function gr(e,t){return new T$({check:"greater_than",...re(t),value:e,inclusive:!0})}function Y4(e){return Ru(0,e)}function X4(e){return Cu(0,e)}function Q4(e){return yi(0,e)}function W4(e){return gr(0,e)}function ld(e,t){return new RD({check:"multiple_of",...re(t),value:e})}function gv(e,t){return new PD({check:"max_size",...re(t),maximum:e})}function sd(e,t){return new ZD({check:"min_size",...re(t),minimum:e})}function uS(e,t){return new BD({check:"size_equals",...re(t),size:e})}function yv(e,t){return new FD({check:"max_length",...re(t),maximum:e})}function gs(e,t){return new VD({check:"min_length",...re(t),minimum:e})}function bv(e,t){return new qD({check:"length_equals",...re(t),length:e})}function lS(e,t){return new GD({check:"string_format",format:"regex",...re(t),pattern:e})}function sS(e){return new HD({check:"string_format",format:"lowercase",...re(e)})}function cS(e){return new KD({check:"string_format",format:"uppercase",...re(e)})}function dS(e,t){return new JD({check:"string_format",format:"includes",...re(t),includes:e})}function fS(e,t){return new YD({check:"string_format",format:"starts_with",...re(t),prefix:e})}function mS(e,t){return new XD({check:"string_format",format:"ends_with",...re(t),suffix:e})}function eC(e,t,r){return new QD({check:"property",property:e,schema:t,...re(r)})}function hS(e,t){return new WD({check:"mime_type",mime:e,...re(t)})}function Wu(e){return new eU({check:"overwrite",tx:e})}function vS(e){return Wu(t=>t.normalize(e))}function pS(){return Wu(e=>e.trim())}function gS(){return Wu(e=>e.toLowerCase())}function yS(){return Wu(e=>e.toUpperCase())}function tC(e,t,r){return new e({type:"array",element:t,...re(r)})}function WW(e,t,r){return new e({type:"union",options:t,...re(r)})}function eee(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...re(i)})}function tee(e,t,r){return new e({type:"intersection",left:t,right:r})}function nee(e,t,r,i){const n=r instanceof Xe,a=n?i:r,l=n?r:null;return new e({type:"tuple",items:t,rest:l,...re(a)})}function ree(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...re(i)})}function iee(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...re(i)})}function aee(e,t,r){return new e({type:"set",valueType:t,...re(r)})}function oee(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...re(r)})}function uee(e,t,r){return new e({type:"enum",entries:t,...re(r)})}function lee(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...re(r)})}function nC(e,t){return new e({type:"file",...re(t)})}function see(e,t){return new e({type:"transform",transform:t})}function cee(e,t){return new e({type:"optional",innerType:t})}function dee(e,t){return new e({type:"nullable",innerType:t})}function fee(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():mv(r)}})}function mee(e,t,r){return new e({type:"nonoptional",innerType:t,...re(r)})}function hee(e,t){return new e({type:"success",innerType:t})}function vee(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function pee(e,t,r){return new e({type:"pipe",in:t,out:r})}function gee(e,t){return new e({type:"readonly",innerType:t})}function yee(e,t,r){return new e({type:"template_literal",parts:t,...re(r)})}function bee(e,t){return new e({type:"lazy",getter:t})}function _ee(e,t){return new e({type:"promise",innerType:t})}function rC(e,t,r){const i=re(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function iC(e,t,r){return new e({type:"custom",check:"custom",fn:t,...re(r)})}function aC(e){const t=oC(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(vs(i,r.value,t._zod.def));else{const n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(vs(n))}},e(r.value,r)));return t}function oC(e,t){const r=new Wt({check:"custom",...re(t)});return r._zod.check=e,r}function uC(e,t){const r=re(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(k=>typeof k=="string"?k.toLowerCase():k),n=n.map(k=>typeof k=="string"?k.toLowerCase():k));const a=new Set(i),l=new Set(n),d=e.Codec??M$,f=e.Boolean??D$,h=e.String??Bd,p=new h({type:"string",error:r.error}),g=new f({type:"boolean",error:r.error}),b=new d({type:"pipe",in:p,out:g,transform:((k,w)=>{let I=k;return r.case!=="sensitive"&&(I=I.toLowerCase()),a.has(I)?!0:l.has(I)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...l],input:w.value,inst:b,continue:!1}),{})}),reverseTransform:((k,w)=>k===!0?i[0]||"true":n[0]||"false"),error:r.error});return b}function Fd(e,t,r,i={}){const n=re(i),a={...re(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:d=>r.test(d),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}let Fb=class{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??hu,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,r={path:[],schemaPath:[]}){var g,b,k;var i;const n=t._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},l=this.seen.get(t);if(l)return l.count++,r.schemaPath.includes(t)&&(l.cycle=r.path),l.schema;const d={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,d);const f=(b=(g=t._zod).toJSONSchema)==null?void 0:b.call(g);if(f)d.schema=f;else{const w={...r,schemaPath:[...r.schemaPath,t],path:r.path},I=t._zod.parent;if(I)d.ref=I,this.process(I,w),this.seen.get(I).isParent=!0;else{const x=d.schema;switch(n.type){case"string":{const $=x;$.type="string";const{minimum:j,maximum:N,format:z,patterns:T,contentEncoding:E}=t._zod.bag;if(typeof j=="number"&&($.minLength=j),typeof N=="number"&&($.maxLength=N),z&&($.format=a[z]??z,$.format===""&&delete $.format),E&&($.contentEncoding=E),T&&T.size>0){const C=[...T];C.length===1?$.pattern=C[0].source:C.length>1&&(d.schema.allOf=[...C.map(ae=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:ae.source}))])}break}case"number":{const $=x,{minimum:j,maximum:N,format:z,multipleOf:T,exclusiveMaximum:E,exclusiveMinimum:C}=t._zod.bag;typeof z=="string"&&z.includes("int")?$.type="integer":$.type="number",typeof C=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.minimum=C,$.exclusiveMinimum=!0):$.exclusiveMinimum=C),typeof j=="number"&&($.minimum=j,typeof C=="number"&&this.target!=="draft-4"&&(C>=j?delete $.minimum:delete $.exclusiveMinimum)),typeof E=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.maximum=E,$.exclusiveMaximum=!0):$.exclusiveMaximum=E),typeof N=="number"&&($.maximum=N,typeof E=="number"&&this.target!=="draft-4"&&(E<=N?delete $.maximum:delete $.exclusiveMaximum)),typeof T=="number"&&($.multipleOf=T);break}case"boolean":{const $=x;$.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":{this.target==="openapi-3.0"?(x.type="string",x.nullable=!0,x.enum=[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 $=x,{minimum:j,maximum:N}=t._zod.bag;typeof j=="number"&&($.minItems=j),typeof N=="number"&&($.maxItems=N),$.type="array",$.items=this.process(n.element,{...w,path:[...w.path,"items"]});break}case"object":{const $=x;$.type="object",$.properties={};const j=n.shape;for(const T in j)$.properties[T]=this.process(j[T],{...w,path:[...w.path,"properties",T]});const N=new Set(Object.keys(j)),z=new Set([...N].filter(T=>{const E=n.shape[T]._zod;return this.io==="input"?E.optin===void 0:E.optout===void 0}));z.size>0&&($.required=Array.from(z)),((k=n.catchall)==null?void 0:k._zod.def.type)==="never"?$.additionalProperties=!1:n.catchall?n.catchall&&($.additionalProperties=this.process(n.catchall,{...w,path:[...w.path,"additionalProperties"]})):this.io==="output"&&($.additionalProperties=!1);break}case"union":{const $=x,j=n.options.map((N,z)=>this.process(N,{...w,path:[...w.path,"anyOf",z]}));$.anyOf=j;break}case"intersection":{const $=x,j=this.process(n.left,{...w,path:[...w.path,"allOf",0]}),N=this.process(n.right,{...w,path:[...w.path,"allOf",1]}),z=E=>"allOf"in E&&Object.keys(E).length===1,T=[...z(j)?j.allOf:[j],...z(N)?N.allOf:[N]];$.allOf=T;break}case"tuple":{const $=x;$.type="array";const j=this.target==="draft-2020-12"?"prefixItems":"items",N=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",z=n.items.map((ae,ue)=>this.process(ae,{...w,path:[...w.path,j,ue]})),T=n.rest?this.process(n.rest,{...w,path:[...w.path,N,...this.target==="openapi-3.0"?[n.items.length]:[]]}):null;this.target==="draft-2020-12"?($.prefixItems=z,T&&($.items=T)):this.target==="openapi-3.0"?($.items={anyOf:z},T&&$.items.anyOf.push(T),$.minItems=z.length,T||($.maxItems=z.length)):($.items=z,T&&($.additionalItems=T));const{minimum:E,maximum:C}=t._zod.bag;typeof E=="number"&&($.minItems=E),typeof C=="number"&&($.maxItems=C);break}case"record":{const $=x;$.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&($.propertyNames=this.process(n.keyType,{...w,path:[...w.path,"propertyNames"]})),$.additionalProperties=this.process(n.valueType,{...w,path:[...w.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 $=x,j=h$(n.entries);j.every(N=>typeof N=="number")&&($.type="number"),j.every(N=>typeof N=="string")&&($.type="string"),$.enum=j;break}case"literal":{const $=x,j=[];for(const N of n.values)if(N===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof N=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");j.push(Number(N))}else j.push(N);if(j.length!==0)if(j.length===1){const N=j[0];$.type=N===null?"null":typeof N,this.target==="draft-4"||this.target==="openapi-3.0"?$.enum=[N]:$.const=N}else j.every(N=>typeof N=="number")&&($.type="number"),j.every(N=>typeof N=="string")&&($.type="string"),j.every(N=>typeof N=="boolean")&&($.type="string"),j.every(N=>N===null)&&($.type="null"),$.enum=j;break}case"file":{const $=x,j={type:"string",format:"binary",contentEncoding:"binary"},{minimum:N,maximum:z,mime:T}=t._zod.bag;N!==void 0&&(j.minLength=N),z!==void 0&&(j.maxLength=z),T?T.length===1?(j.contentMediaType=T[0],Object.assign($,j)):$.anyOf=T.map(E=>({...j,contentMediaType:E})):Object.assign($,j);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const $=this.process(n.innerType,w);this.target==="openapi-3.0"?(d.ref=n.innerType,x.nullable=!0):x.anyOf=[$,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"success":{const $=x;$.type="boolean";break}case"default":{this.process(n.innerType,w),d.ref=n.innerType,x.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,w),d.ref=n.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,w),d.ref=n.innerType;let $;try{$=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=$;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const $=x,j=t._zod.pattern;if(!j)throw new Error("Pattern not found in template literal");$.type="string",$.pattern=j.source;break}case"pipe":{const $=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process($,w),d.ref=$;break}case"readonly":{this.process(n.innerType,w),d.ref=n.innerType,x.readOnly=!0;break}case"promise":{this.process(n.innerType,w),d.ref=n.innerType;break}case"optional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"lazy":{const $=t._zod.innerType;this.process($,w),d.ref=$;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const h=this.metadataRegistry.get(t);return h&&Object.assign(d.schema,h),this.io==="input"&&hn(t)&&(delete d.schema.examples,delete d.schema.default),this.io==="input"&&d.schema._prefault&&((i=d.schema).default??(i.default=d.schema._prefault)),delete d.schema._prefault,this.seen.get(t).schema}emit(t,r){var p,g,b,k,w,I;const i={cycles:(r==null?void 0:r.cycles)??"ref",reused:(r==null?void 0:r.reused)??"inline",external:(r==null?void 0:r.external)??void 0},n=this.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=x=>{var T;const $=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const E=(T=i.external.registry.get(x[0]))==null?void 0:T.id,C=i.external.uri??(ue=>ue);if(E)return{ref:C(E)};const ae=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=ae,{defId:ae,ref:`${C("__shared")}#/${$}/${ae}`}}if(x[1]===n)return{ref:"#"};const N=`#/${$}/`,z=x[1].schema.id??`__schema${this.counter++}`;return{defId:z,ref:N+z}},l=x=>{if(x[1].schema.$ref)return;const $=x[1],{ref:j,defId:N}=a(x);$.def={...$.schema},N&&($.defId=N);const z=$.schema;for(const T in z)delete z[T];z.$ref=j};if(i.cycles==="throw")for(const x of this.seen.entries()){const $=x[1];if($.cycle)throw new Error(`Cycle detected: #/${(p=$.cycle)==null?void 0:p.join("/")}/<root>
|
|
175
|
-
|
|
176
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of this.seen.entries()){const $=x[1];if(t===x[0]){l(x);continue}if(i.external){const N=(g=i.external.registry.get(x[0]))==null?void 0:g.id;if(t!==x[0]&&N){l(x);continue}}if((b=this.metadataRegistry.get(x[0]))==null?void 0:b.id){l(x);continue}if($.cycle){l(x);continue}if($.count>1&&i.reused==="ref"){l(x);continue}}const d=(x,$)=>{const j=this.seen.get(x),N=j.def??j.schema,z={...N};if(j.ref===null)return;const T=j.ref;if(j.ref=null,T){d(T,$);const E=this.seen.get(T).schema;E.$ref&&($.target==="draft-7"||$.target==="draft-4"||$.target==="openapi-3.0")?(N.allOf=N.allOf??[],N.allOf.push(E)):(Object.assign(N,E),Object.assign(N,z))}j.isParent||this.override({zodSchema:x,jsonSchema:N,path:j.path??[]})};for(const x of[...this.seen.entries()].reverse())d(x[0],{target:this.target});const f={};if(this.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?f.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?f.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),(k=i.external)!=null&&k.uri){const x=(w=i.external.registry.get(t))==null?void 0:w.id;if(!x)throw new Error("Schema is missing an `id` property");f.$id=i.external.uri(x)}Object.assign(f,n.def);const h=((I=i.external)==null?void 0:I.defs)??{};for(const x of this.seen.entries()){const $=x[1];$.def&&$.defId&&(h[$.defId]=$.def)}i.external||Object.keys(h).length>0&&(this.target==="draft-2020-12"?f.$defs=h:f.definitions=h);try{return JSON.parse(JSON.stringify(f))}catch{throw new Error("Error converting schema to JSON.")}}};function lC(e,t){if(e instanceof L$){const i=new Fb(t),n={};for(const d of e._idmap.entries()){const[f,h]=d;i.process(h)}const a={},l={registry:e,uri:t==null?void 0:t.uri,defs:n};for(const d of e._idmap.entries()){const[f,h]=d;a[f]=i.emit(h,{...t,external:l})}if(Object.keys(n).length>0){const d=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[d]:n}}return{schemas:a}}const r=new Fb(t);return r.process(e),r.emit(e,t)}function hn(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;switch(n.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 hn(n.element,r);case"object":{for(const a in n.shape)if(hn(n.shape[a],r))return!0;return!1}case"union":{for(const a of n.options)if(hn(a,r))return!0;return!1}case"intersection":return hn(n.left,r)||hn(n.right,r);case"tuple":{for(const a of n.items)if(hn(a,r))return!0;return!!(n.rest&&hn(n.rest,r))}case"record":return hn(n.keyType,r)||hn(n.valueType,r);case"map":return hn(n.keyType,r)||hn(n.valueType,r);case"set":return hn(n.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return hn(n.innerType,r);case"lazy":return hn(n.getter(),r);case"default":return hn(n.innerType,r);case"prefault":return hn(n.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return hn(n.in,r)||hn(n.out,r);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${n.type}`)}const $ee=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),See=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:DU,$ZodArray:LU,$ZodAsyncError:Ou,$ZodBase64:SU,$ZodBase64URL:wU,$ZodBigInt:U$,$ZodBigIntFormat:IU,$ZodBoolean:D$,$ZodCIDRv4:_U,$ZodCIDRv6:$U,$ZodCUID:sU,$ZodCUID2:cU,$ZodCatch:a4,$ZodCheck:Wt,$ZodCheckBigIntFormat:LD,$ZodCheckEndsWith:XD,$ZodCheckGreaterThan:T$,$ZodCheckIncludes:JD,$ZodCheckLengthEquals:qD,$ZodCheckLessThan:I$,$ZodCheckLowerCase:HD,$ZodCheckMaxLength:FD,$ZodCheckMaxSize:PD,$ZodCheckMimeType:WD,$ZodCheckMinLength:VD,$ZodCheckMinSize:ZD,$ZodCheckMultipleOf:RD,$ZodCheckNumberFormat:MD,$ZodCheckOverwrite:eU,$ZodCheckProperty:QD,$ZodCheckRegex:GD,$ZodCheckSizeEquals:BD,$ZodCheckStartsWith:YD,$ZodCheckStringFormat:Zd,$ZodCheckUpperCase:KD,$ZodCodec:M$,$ZodCustom:m4,$ZodCustomStringFormat:NU,$ZodDate:MU,$ZodDefault:t4,$ZodDiscriminatedUnion:VU,$ZodE164:xU,$ZodEmail:aU,$ZodEmoji:uU,$ZodEncodeError:dv,$ZodEnum:JU,$ZodError:p$,$ZodFile:XU,$ZodFunction:c4,$ZodGUID:rU,$ZodIPv4:yU,$ZodIPv6:bU,$ZodISODate:vU,$ZodISODateTime:hU,$ZodISODuration:gU,$ZodISOTime:pU,$ZodIntersection:qU,$ZodJWT:EU,$ZodKSUID:mU,$ZodLazy:f4,$ZodLiteral:YU,$ZodMap:HU,$ZodNaN:o4,$ZodNanoID:lU,$ZodNever:CU,$ZodNonOptional:r4,$ZodNull:AU,$ZodNullable:e4,$ZodNumber:A$,$ZodNumberFormat:jU,$ZodObject:BU,$ZodObjectJIT:FU,$ZodOptional:WU,$ZodPipe:u4,$ZodPrefault:n4,$ZodPromise:d4,$ZodReadonly:l4,$ZodRealError:xr,$ZodRecord:GU,$ZodRegistry:L$,$ZodSet:KU,$ZodString:Bd,$ZodStringFormat:Pt,$ZodSuccess:i4,$ZodSymbol:TU,$ZodTemplateLiteral:s4,$ZodTransform:QU,$ZodTuple:R$,$ZodType:Xe,$ZodULID:dU,$ZodURL:oU,$ZodUUID:iU,$ZodUndefined:zU,$ZodUnion:C$,$ZodUnknown:UU,$ZodVoid:RU,$ZodXID:fU,$brand:DA,$constructor:Z,$input:b4,$output:y4,Doc:tU,JSONSchema:$ee,JSONSchemaGenerator:Fb,NEVER:AA,TimePrecision:S4,_any:F4,_array:tC,_base64:rS,_base64url:iS,_bigint:C4,_boolean:D4,_catch:vee,_check:oC,_cidrv4:tS,_cidrv6:nS,_coercedBigint:R4,_coercedBoolean:U4,_coercedDate:K4,_coercedNumber:N4,_coercedString:$4,_cuid:K$,_cuid2:J$,_custom:rC,_date:H4,_decode:_$,_decodeAsync:S$,_default:fee,_discriminatedUnion:eee,_e164:aS,_email:Z$,_emoji:G$,_encode:b$,_encodeAsync:$$,_endsWith:mS,_enum:oee,_file:nC,_float32:I4,_float64:T4,_gt:Ru,_gte:gr,_guid:bh,_includes:dS,_int:j4,_int32:z4,_int64:M4,_intersection:tee,_ipv4:W$,_ipv6:eS,_isoDate:w4,_isoDateTime:k4,_isoDuration:O4,_isoTime:x4,_jwt:oS,_ksuid:Q$,_lazy:bee,_length:bv,_literal:lee,_lowercase:sS,_lt:Cu,_lte:yi,_map:iee,_max:yi,_maxLength:yv,_maxSize:gv,_mime:hS,_min:gr,_minLength:gs,_minSize:sd,_multipleOf:ld,_nan:J4,_nanoid:H$,_nativeEnum:uee,_negative:X4,_never:q4,_nonnegative:W4,_nonoptional:mee,_nonpositive:Q4,_normalize:vS,_null:B4,_nullable:dee,_number:E4,_optional:cee,_overwrite:Wu,_parse:Ud,_parseAsync:Cd,_pipe:pee,_positive:Y4,_promise:_ee,_property:eC,_readonly:gee,_record:ree,_refine:iC,_regex:lS,_safeDecode:w$,_safeDecodeAsync:O$,_safeEncode:k$,_safeEncodeAsync:x$,_safeParse:Rd,_safeParseAsync:Md,_set:aee,_size:uS,_startsWith:fS,_string:_4,_stringFormat:Fd,_stringbool:uC,_success:hee,_superRefine:aC,_symbol:P4,_templateLiteral:yee,_toLowerCase:gS,_toUpperCase:yS,_transform:see,_trim:pS,_tuple:nee,_uint32:A4,_uint64:L4,_ulid:Y$,_undefined:Z4,_union:WW,_unknown:V4,_uppercase:cS,_url:pv,_uuid:B$,_uuidv4:F$,_uuidv6:V$,_uuidv7:q$,_void:G4,_xid:X$,clone:Wr,config:Vn,decode:DX,decodeAsync:CX,encode:AX,encodeAsync:UX,flattenError:g$,formatError:y$,globalConfig:vh,globalRegistry:hu,isValidBase64:z$,isValidBase64URL:kU,isValidJWT:OU,locales:g4,parse:Pb,parseAsync:Zb,prettifyError:eD,regexes:j$,registry:P$,safeDecode:MX,safeDecodeAsync:PX,safeEncode:RX,safeEncodeAsync:LX,safeParse:tD,safeParseAsync:nD,toDotPath:WA,toJSONSchema:lC,treeifyError:QA,util:YA,version:nU},Symbol.toStringTag,{value:"Module"})),bS=Z("ZodISODateTime",(e,t)=>{hU.init(e,t),qt.init(e,t)});function sC(e){return k4(bS,e)}const _S=Z("ZodISODate",(e,t)=>{vU.init(e,t),qt.init(e,t)});function cC(e){return w4(_S,e)}const $S=Z("ZodISOTime",(e,t)=>{pU.init(e,t),qt.init(e,t)});function dC(e){return x4($S,e)}const SS=Z("ZodISODuration",(e,t)=>{gU.init(e,t),qt.init(e,t)});function fC(e){return O4(SS,e)}const kee=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:_S,ZodISODateTime:bS,ZodISODuration:SS,ZodISOTime:$S,date:cC,datetime:sC,duration:fC,time:dC},Symbol.toStringTag,{value:"Module"})),mC=(e,t)=>{p$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>y$(e,r)},flatten:{value:r=>g$(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ph,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ph,2)}},isEmpty:{get(){return e.issues.length===0}}})},wee=Z("ZodError",mC),Or=Z("ZodError",mC,{Parent:Error}),hC=Ud(Or),vC=Cd(Or),pC=Rd(Or),gC=Md(Or),yC=b$(Or),bC=_$(Or),_C=$$(Or),$C=S$(Or),SC=k$(Or),kC=w$(Or),wC=x$(Or),xC=O$(Or),it=Z("ZodType",(e,t)=>(Xe.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Pa(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(r,i)=>Wr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>hC(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>pC(e,r,i),e.parseAsync=async(r,i)=>vC(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>gC(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>yC(e,r,i),e.decode=(r,i)=>bC(e,r,i),e.encodeAsync=async(r,i)=>_C(e,r,i),e.decodeAsync=async(r,i)=>$C(e,r,i),e.safeEncode=(r,i)=>SC(e,r,i),e.safeDecode=(r,i)=>kC(e,r,i),e.safeEncodeAsync=async(r,i)=>wC(e,r,i),e.safeDecodeAsync=async(r,i)=>xC(e,r,i),e.refine=(r,i)=>e.check(d6(r,i)),e.superRefine=r=>e.check(f6(r)),e.overwrite=r=>e.check(Wu(r)),e.optional=()=>$h(e),e.nullable=()=>Sh(e),e.nullish=()=>$h(Sh(e)),e.nonoptional=r=>WC(e,r),e.array=()=>xv(e),e.or=r=>VS([e,r]),e.and=r=>LC(e,r),e.transform=r=>kh(e,HS(r)),e.default=r=>YC(e,r),e.prefault=r=>QC(e,r),e.catch=r=>n6(e,r),e.pipe=r=>kh(e,r),e.readonly=()=>a6(e),e.describe=r=>{const i=e.clone();return hu.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){var r;return(r=hu.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return hu.get(e);const i=e.clone();return hu.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),kS=Z("_ZodString",(e,t)=>{Bd.init(e,t),it.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(lS(...i)),e.includes=(...i)=>e.check(dS(...i)),e.startsWith=(...i)=>e.check(fS(...i)),e.endsWith=(...i)=>e.check(mS(...i)),e.min=(...i)=>e.check(gs(...i)),e.max=(...i)=>e.check(yv(...i)),e.length=(...i)=>e.check(bv(...i)),e.nonempty=(...i)=>e.check(gs(1,...i)),e.lowercase=i=>e.check(sS(i)),e.uppercase=i=>e.check(cS(i)),e.trim=()=>e.check(pS()),e.normalize=(...i)=>e.check(vS(...i)),e.toLowerCase=()=>e.check(gS()),e.toUpperCase=()=>e.check(yS())}),_v=Z("ZodString",(e,t)=>{Bd.init(e,t),kS.init(e,t),e.email=r=>e.check(Z$(wS,r)),e.url=r=>e.check(pv($v,r)),e.jwt=r=>e.check(oS(LS,r)),e.emoji=r=>e.check(G$(xS,r)),e.guid=r=>e.check(bh(_h,r)),e.uuid=r=>e.check(B$(Oa,r)),e.uuidv4=r=>e.check(F$(Oa,r)),e.uuidv6=r=>e.check(V$(Oa,r)),e.uuidv7=r=>e.check(q$(Oa,r)),e.nanoid=r=>e.check(H$(OS,r)),e.guid=r=>e.check(bh(_h,r)),e.cuid=r=>e.check(K$(ES,r)),e.cuid2=r=>e.check(J$(NS,r)),e.ulid=r=>e.check(Y$(jS,r)),e.base64=r=>e.check(rS(CS,r)),e.base64url=r=>e.check(iS(RS,r)),e.xid=r=>e.check(X$(IS,r)),e.ksuid=r=>e.check(Q$(TS,r)),e.ipv4=r=>e.check(W$(zS,r)),e.ipv6=r=>e.check(eS(AS,r)),e.cidrv4=r=>e.check(tS(DS,r)),e.cidrv6=r=>e.check(nS(US,r)),e.e164=r=>e.check(aS(MS,r)),e.datetime=r=>e.check(sC(r)),e.date=r=>e.check(cC(r)),e.time=r=>e.check(dC(r)),e.duration=r=>e.check(fC(r))});function Vb(e){return _4(_v,e)}const qt=Z("ZodStringFormat",(e,t)=>{Pt.init(e,t),kS.init(e,t)}),wS=Z("ZodEmail",(e,t)=>{aU.init(e,t),qt.init(e,t)});function xee(e){return Z$(wS,e)}const _h=Z("ZodGUID",(e,t)=>{rU.init(e,t),qt.init(e,t)});function Oee(e){return bh(_h,e)}const Oa=Z("ZodUUID",(e,t)=>{iU.init(e,t),qt.init(e,t)});function Eee(e){return B$(Oa,e)}function Nee(e){return F$(Oa,e)}function jee(e){return V$(Oa,e)}function Iee(e){return q$(Oa,e)}const $v=Z("ZodURL",(e,t)=>{oU.init(e,t),qt.init(e,t)});function Tee(e){return pv($v,e)}function zee(e){return pv($v,{protocol:/^https?$/,hostname:bD,...re(e)})}const xS=Z("ZodEmoji",(e,t)=>{uU.init(e,t),qt.init(e,t)});function Aee(e){return G$(xS,e)}const OS=Z("ZodNanoID",(e,t)=>{lU.init(e,t),qt.init(e,t)});function Dee(e){return H$(OS,e)}const ES=Z("ZodCUID",(e,t)=>{sU.init(e,t),qt.init(e,t)});function Uee(e){return K$(ES,e)}const NS=Z("ZodCUID2",(e,t)=>{cU.init(e,t),qt.init(e,t)});function Cee(e){return J$(NS,e)}const jS=Z("ZodULID",(e,t)=>{dU.init(e,t),qt.init(e,t)});function Ree(e){return Y$(jS,e)}const IS=Z("ZodXID",(e,t)=>{fU.init(e,t),qt.init(e,t)});function Mee(e){return X$(IS,e)}const TS=Z("ZodKSUID",(e,t)=>{mU.init(e,t),qt.init(e,t)});function Lee(e){return Q$(TS,e)}const zS=Z("ZodIPv4",(e,t)=>{yU.init(e,t),qt.init(e,t)});function Pee(e){return W$(zS,e)}const AS=Z("ZodIPv6",(e,t)=>{bU.init(e,t),qt.init(e,t)});function Zee(e){return eS(AS,e)}const DS=Z("ZodCIDRv4",(e,t)=>{_U.init(e,t),qt.init(e,t)});function Bee(e){return tS(DS,e)}const US=Z("ZodCIDRv6",(e,t)=>{$U.init(e,t),qt.init(e,t)});function Fee(e){return nS(US,e)}const CS=Z("ZodBase64",(e,t)=>{SU.init(e,t),qt.init(e,t)});function Vee(e){return rS(CS,e)}const RS=Z("ZodBase64URL",(e,t)=>{wU.init(e,t),qt.init(e,t)});function qee(e){return iS(RS,e)}const MS=Z("ZodE164",(e,t)=>{xU.init(e,t),qt.init(e,t)});function Gee(e){return aS(MS,e)}const LS=Z("ZodJWT",(e,t)=>{EU.init(e,t),qt.init(e,t)});function Hee(e){return oS(LS,e)}const Vd=Z("ZodCustomStringFormat",(e,t)=>{NU.init(e,t),qt.init(e,t)});function Kee(e,t,r={}){return Fd(Vd,e,t,r)}function Jee(e){return Fd(Vd,"hostname",N$,e)}function Yee(e){return Fd(Vd,"hex",UD,e)}function Xee(e,t){const r=(t==null?void 0:t.enc)??"hex",i=`${e}_${r}`,n=j$[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Fd(Vd,i,n,t)}const Sv=Z("ZodNumber",(e,t)=>{A$.init(e,t),it.init(e,t),e.gt=(i,n)=>e.check(Ru(i,n)),e.gte=(i,n)=>e.check(gr(i,n)),e.min=(i,n)=>e.check(gr(i,n)),e.lt=(i,n)=>e.check(Cu(i,n)),e.lte=(i,n)=>e.check(yi(i,n)),e.max=(i,n)=>e.check(yi(i,n)),e.int=i=>e.check(qb(i)),e.safe=i=>e.check(qb(i)),e.positive=i=>e.check(Ru(0,i)),e.nonnegative=i=>e.check(gr(0,i)),e.negative=i=>e.check(Cu(0,i)),e.nonpositive=i=>e.check(yi(0,i)),e.multipleOf=(i,n)=>e.check(ld(i,n)),e.step=(i,n)=>e.check(ld(i,n)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function OC(e){return E4(Sv,e)}const zs=Z("ZodNumberFormat",(e,t)=>{jU.init(e,t),Sv.init(e,t)});function qb(e){return j4(zs,e)}function Qee(e){return I4(zs,e)}function Wee(e){return T4(zs,e)}function ete(e){return z4(zs,e)}function tte(e){return A4(zs,e)}const kv=Z("ZodBoolean",(e,t)=>{D$.init(e,t),it.init(e,t)});function EC(e){return D4(kv,e)}const wv=Z("ZodBigInt",(e,t)=>{U$.init(e,t),it.init(e,t),e.gte=(i,n)=>e.check(gr(i,n)),e.min=(i,n)=>e.check(gr(i,n)),e.gt=(i,n)=>e.check(Ru(i,n)),e.gte=(i,n)=>e.check(gr(i,n)),e.min=(i,n)=>e.check(gr(i,n)),e.lt=(i,n)=>e.check(Cu(i,n)),e.lte=(i,n)=>e.check(yi(i,n)),e.max=(i,n)=>e.check(yi(i,n)),e.positive=i=>e.check(Ru(BigInt(0),i)),e.negative=i=>e.check(Cu(BigInt(0),i)),e.nonpositive=i=>e.check(yi(BigInt(0),i)),e.nonnegative=i=>e.check(gr(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(ld(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function nte(e){return C4(wv,e)}const PS=Z("ZodBigIntFormat",(e,t)=>{IU.init(e,t),wv.init(e,t)});function rte(e){return M4(PS,e)}function ite(e){return L4(PS,e)}const NC=Z("ZodSymbol",(e,t)=>{TU.init(e,t),it.init(e,t)});function ate(e){return P4(NC,e)}const jC=Z("ZodUndefined",(e,t)=>{zU.init(e,t),it.init(e,t)});function ote(e){return Z4(jC,e)}const IC=Z("ZodNull",(e,t)=>{AU.init(e,t),it.init(e,t)});function TC(e){return B4(IC,e)}const zC=Z("ZodAny",(e,t)=>{DU.init(e,t),it.init(e,t)});function ute(){return F4(zC)}const AC=Z("ZodUnknown",(e,t)=>{UU.init(e,t),it.init(e,t)});function ys(){return V4(AC)}const DC=Z("ZodNever",(e,t)=>{CU.init(e,t),it.init(e,t)});function ZS(e){return q4(DC,e)}const UC=Z("ZodVoid",(e,t)=>{RU.init(e,t),it.init(e,t)});function lte(e){return G4(UC,e)}const BS=Z("ZodDate",(e,t)=>{MU.init(e,t),it.init(e,t),e.min=(i,n)=>e.check(gr(i,n)),e.max=(i,n)=>e.check(yi(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function ste(e){return H4(BS,e)}const CC=Z("ZodArray",(e,t)=>{LU.init(e,t),it.init(e,t),e.element=t.element,e.min=(r,i)=>e.check(gs(r,i)),e.nonempty=r=>e.check(gs(1,r)),e.max=(r,i)=>e.check(yv(r,i)),e.length=(r,i)=>e.check(bv(r,i)),e.unwrap=()=>e.element});function xv(e,t){return tC(CC,e,t)}function cte(e){const t=e._zod.def.shape;return GS(Object.keys(t))}const Ov=Z("ZodObject",(e,t)=>{FU.init(e,t),it.init(e,t),st(e,"shape",()=>t.shape),e.keyof=()=>GS(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ys()}),e.loose=()=>e.clone({...e._zod.def,catchall:ys()}),e.strict=()=>e.clone({...e._zod.def,catchall:ZS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>FA(e,r),e.safeExtend=r=>VA(e,r),e.merge=r=>qA(e,r),e.pick=r=>ZA(e,r),e.omit=r=>BA(e,r),e.partial=(...r)=>GA(KS,e,r[0]),e.required=(...r)=>HA(JS,e,r[0])});function dte(e,t){const r={type:"object",shape:e??{},...re(t)};return new Ov(r)}function fte(e,t){return new Ov({type:"object",shape:e,catchall:ZS(),...re(t)})}function mte(e,t){return new Ov({type:"object",shape:e,catchall:ys(),...re(t)})}const FS=Z("ZodUnion",(e,t)=>{C$.init(e,t),it.init(e,t),e.options=t.options});function VS(e,t){return new FS({type:"union",options:e,...re(t)})}const RC=Z("ZodDiscriminatedUnion",(e,t)=>{FS.init(e,t),VU.init(e,t)});function hte(e,t,r){return new RC({type:"union",options:t,discriminator:e,...re(r)})}const MC=Z("ZodIntersection",(e,t)=>{qU.init(e,t),it.init(e,t)});function LC(e,t){return new MC({type:"intersection",left:e,right:t})}const PC=Z("ZodTuple",(e,t)=>{R$.init(e,t),it.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function ZC(e,t,r){const i=t instanceof Xe,n=i?r:t,a=i?t:null;return new PC({type:"tuple",items:e,rest:a,...re(n)})}const qS=Z("ZodRecord",(e,t)=>{GU.init(e,t),it.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function BC(e,t,r){return new qS({type:"record",keyType:e,valueType:t,...re(r)})}function vte(e,t,r){const i=Wr(e);return i._zod.values=void 0,new qS({type:"record",keyType:i,valueType:t,...re(r)})}const FC=Z("ZodMap",(e,t)=>{HU.init(e,t),it.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function pte(e,t,r){return new FC({type:"map",keyType:e,valueType:t,...re(r)})}const VC=Z("ZodSet",(e,t)=>{KU.init(e,t),it.init(e,t),e.min=(...r)=>e.check(sd(...r)),e.nonempty=r=>e.check(sd(1,r)),e.max=(...r)=>e.check(gv(...r)),e.size=(...r)=>e.check(uS(...r))});function gte(e,t){return new VC({type:"set",valueType:e,...re(t)})}const cd=Z("ZodEnum",(e,t)=>{JU.init(e,t),it.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const a={};for(const l of i)if(r.has(l))a[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new cd({...t,checks:[],...re(n),entries:a})},e.exclude=(i,n)=>{const a={...t.entries};for(const l of i)if(r.has(l))delete a[l];else throw new Error(`Key ${l} not found in enum`);return new cd({...t,checks:[],...re(n),entries:a})}});function GS(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new cd({type:"enum",entries:r,...re(t)})}function yte(e,t){return new cd({type:"enum",entries:e,...re(t)})}const qC=Z("ZodLiteral",(e,t)=>{YU.init(e,t),it.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 bte(e,t){return new qC({type:"literal",values:Array.isArray(e)?e:[e],...re(t)})}const GC=Z("ZodFile",(e,t)=>{XU.init(e,t),it.init(e,t),e.min=(r,i)=>e.check(sd(r,i)),e.max=(r,i)=>e.check(gv(r,i)),e.mime=(r,i)=>e.check(hS(Array.isArray(r)?r:[r],i))});function _te(e){return nC(GC,e)}const HC=Z("ZodTransform",(e,t)=>{QU.init(e,t),it.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new dv(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(vs(a,r.value,t));else{const l=a;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=e),r.issues.push(vs(l))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(a=>(r.value=a,r)):(r.value=n,r)}});function HS(e){return new HC({type:"transform",transform:e})}const KS=Z("ZodOptional",(e,t)=>{WU.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $h(e){return new KS({type:"optional",innerType:e})}const KC=Z("ZodNullable",(e,t)=>{e4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Sh(e){return new KC({type:"nullable",innerType:e})}function $te(e){return $h(Sh(e))}const JC=Z("ZodDefault",(e,t)=>{t4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function YC(e,t){return new JC({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():mv(t)}})}const XC=Z("ZodPrefault",(e,t)=>{n4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function QC(e,t){return new XC({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():mv(t)}})}const JS=Z("ZodNonOptional",(e,t)=>{r4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function WC(e,t){return new JS({type:"nonoptional",innerType:e,...re(t)})}const e6=Z("ZodSuccess",(e,t)=>{i4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ste(e){return new e6({type:"success",innerType:e})}const t6=Z("ZodCatch",(e,t)=>{a4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function n6(e,t){return new t6({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const r6=Z("ZodNaN",(e,t)=>{o4.init(e,t),it.init(e,t)});function kte(e){return J4(r6,e)}const YS=Z("ZodPipe",(e,t)=>{u4.init(e,t),it.init(e,t),e.in=t.in,e.out=t.out});function kh(e,t){return new YS({type:"pipe",in:e,out:t})}const XS=Z("ZodCodec",(e,t)=>{YS.init(e,t),M$.init(e,t)});function wte(e,t,r){return new XS({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}const i6=Z("ZodReadonly",(e,t)=>{l4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function a6(e){return new i6({type:"readonly",innerType:e})}const o6=Z("ZodTemplateLiteral",(e,t)=>{s4.init(e,t),it.init(e,t)});function xte(e,t){return new o6({type:"template_literal",parts:e,...re(t)})}const u6=Z("ZodLazy",(e,t)=>{f4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.getter()});function l6(e){return new u6({type:"lazy",getter:e})}const s6=Z("ZodPromise",(e,t)=>{d4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ote(e){return new s6({type:"promise",innerType:e})}const c6=Z("ZodFunction",(e,t)=>{c4.init(e,t),it.init(e,t)});function fj(e){return new c6({type:"function",input:Array.isArray(e==null?void 0:e.input)?ZC(e==null?void 0:e.input):(e==null?void 0:e.input)??xv(ys()),output:(e==null?void 0:e.output)??ys()})}const Ev=Z("ZodCustom",(e,t)=>{m4.init(e,t),it.init(e,t)});function Ete(e){const t=new Wt({check:"custom"});return t._zod.check=e,t}function Nte(e,t){return rC(Ev,e??(()=>!0),t)}function d6(e,t={}){return iC(Ev,e,t)}function f6(e){return aC(e)}function jte(e,t={error:`Input not instance of ${e.name}`}){const r=new Ev({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...re(t)});return r._zod.bag.Class=e,r}const Ite=(...e)=>uC({Codec:XS,Boolean:kv,String:_v},...e);function Tte(e){const t=l6(()=>VS([Vb(e),OC(),EC(),TC(),xv(t),BC(Vb(),t)]));return t}function zte(e,t){return kh(HS(e),t)}const Ate={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 Dte(e){Vn({customError:e})}function Ute(){return Vn().customError}var Gb;Gb||(Gb={});function Cte(e){return $4(_v,e)}function Rte(e){return N4(Sv,e)}function Mte(e){return U4(kv,e)}function Lte(e){return R4(wv,e)}function Pte(e){return K4(BS,e)}const Zte=Object.freeze(Object.defineProperty({__proto__:null,bigint:Lte,boolean:Mte,date:Pte,number:Rte,string:Cte},Symbol.toStringTag,{value:"Module"}));Vn(h4());const Ta=Object.freeze(Object.defineProperty({__proto__:null,$brand:DA,$input:b4,$output:y4,NEVER:AA,TimePrecision:S4,ZodAny:zC,ZodArray:CC,ZodBase64:CS,ZodBase64URL:RS,ZodBigInt:wv,ZodBigIntFormat:PS,ZodBoolean:kv,ZodCIDRv4:DS,ZodCIDRv6:US,ZodCUID:ES,ZodCUID2:NS,ZodCatch:t6,ZodCodec:XS,ZodCustom:Ev,ZodCustomStringFormat:Vd,ZodDate:BS,ZodDefault:JC,ZodDiscriminatedUnion:RC,ZodE164:MS,ZodEmail:wS,ZodEmoji:xS,ZodEnum:cd,ZodError:wee,ZodFile:GC,get ZodFirstPartyTypeKind(){return Gb},ZodFunction:c6,ZodGUID:_h,ZodIPv4:zS,ZodIPv6:AS,ZodISODate:_S,ZodISODateTime:bS,ZodISODuration:SS,ZodISOTime:$S,ZodIntersection:MC,ZodIssueCode:Ate,ZodJWT:LS,ZodKSUID:TS,ZodLazy:u6,ZodLiteral:qC,ZodMap:FC,ZodNaN:r6,ZodNanoID:OS,ZodNever:DC,ZodNonOptional:JS,ZodNull:IC,ZodNullable:KC,ZodNumber:Sv,ZodNumberFormat:zs,ZodObject:Ov,ZodOptional:KS,ZodPipe:YS,ZodPrefault:XC,ZodPromise:s6,ZodReadonly:i6,ZodRealError:Or,ZodRecord:qS,ZodSet:VC,ZodString:_v,ZodStringFormat:qt,ZodSuccess:e6,ZodSymbol:NC,ZodTemplateLiteral:o6,ZodTransform:HC,ZodTuple:PC,ZodType:it,ZodULID:jS,ZodURL:$v,ZodUUID:Oa,ZodUndefined:jC,ZodUnion:FS,ZodUnknown:AC,ZodVoid:UC,ZodXID:IS,_ZodString:kS,_default:YC,_function:fj,any:ute,array:xv,base64:Vee,base64url:qee,bigint:nte,boolean:EC,catch:n6,check:Ete,cidrv4:Bee,cidrv6:Fee,clone:Wr,codec:wte,coerce:Zte,config:Vn,core:See,cuid:Uee,cuid2:Cee,custom:Nte,date:ste,decode:bC,decodeAsync:$C,discriminatedUnion:hte,e164:Gee,email:xee,emoji:Aee,encode:yC,encodeAsync:_C,endsWith:mS,enum:GS,file:_te,flattenError:g$,float32:Qee,float64:Wee,formatError:y$,function:fj,getErrorMap:Ute,globalRegistry:hu,gt:Ru,gte:gr,guid:Oee,hash:Xee,hex:Yee,hostname:Jee,httpUrl:zee,includes:dS,instanceof:jte,int:qb,int32:ete,int64:rte,intersection:LC,ipv4:Pee,ipv6:Zee,iso:kee,json:Tte,jwt:Hee,keyof:cte,ksuid:Lee,lazy:l6,length:bv,literal:bte,locales:g4,looseObject:mte,lowercase:sS,lt:Cu,lte:yi,map:pte,maxLength:yv,maxSize:gv,mime:hS,minLength:gs,minSize:sd,multipleOf:ld,nan:kte,nanoid:Dee,nativeEnum:yte,negative:X4,never:ZS,nonnegative:W4,nonoptional:WC,nonpositive:Q4,normalize:vS,null:TC,nullable:Sh,nullish:$te,number:OC,object:dte,optional:$h,overwrite:Wu,parse:hC,parseAsync:vC,partialRecord:vte,pipe:kh,positive:Y4,prefault:QC,preprocess:zte,prettifyError:eD,promise:Ote,property:eC,readonly:a6,record:BC,refine:d6,regex:lS,regexes:j$,registry:P$,safeDecode:kC,safeDecodeAsync:xC,safeEncode:SC,safeEncodeAsync:wC,safeParse:pC,safeParseAsync:gC,set:gte,setErrorMap:Dte,size:uS,startsWith:fS,strictObject:fte,string:Vb,stringFormat:Kee,stringbool:Ite,success:Ste,superRefine:f6,symbol:ate,templateLiteral:xte,toJSONSchema:lC,toLowerCase:gS,toUpperCase:yS,transform:HS,treeifyError:QA,trim:pS,tuple:ZC,uint32:tte,uint64:ite,ulid:Ree,undefined:ote,union:VS,unknown:ys,uppercase:cS,url:Tee,util:YA,uuid:Eee,uuidv4:Nee,uuidv6:jee,uuidv7:Iee,void:lte,xid:Mee},Symbol.toStringTag,{value:"Module"})),Bte=fn(()=>{const e=wn();return S.useEffect(()=>{const t=localStorage.getItem("api_key");t&&e.login(t)},[e]),e.loggingIn||!e.loggedIn||e.loginError?y.jsx(Gte,{}):y.jsxs(Nd,{fluid:!0,children:[y.jsx(RH,{}),y.jsx(LH,{}),!1]})}),Fte=({show:e,onHide:t})=>y.jsxs(pn,{show:e,onHide:t,children:[y.jsx(pn.Header,{closeButton:!0,children:y.jsx(pn.Title,{children:"Where do I get an API key?"})}),y.jsxs(pn.Body,{children:[y.jsx("p",{children:"Generate an API key from the database:"}),y.jsx("pre",{children:"INSERT INTO hub.api_key DEFAULT VALUES RETURNING key;"})]})]}),Vte=Ta.object({apiKey:Ta.uuid()}),qte={apiKey:""},Gte=fn(()=>{const e=wn(),[t,r]=S.useState(!1),i=cv({initialValues:qte,validate:a=>Yh(Vte)(a),onSubmit:async(a,{setSubmitting:l,setStatus:d})=>{d(null),e.login(a.apiKey).then(f=>{f||(localStorage.removeItem("api_key"),d("Invalid API key"))}).finally(()=>{l(!1)})}}),n=e.loggingIn||i.isSubmitting;return y.jsxs(Nd,{children:[y.jsx(Fte,{show:t,onHide:()=>r(!1)}),y.jsx(r$,{className:"justify-content-md-center align-items-center",style:{height:"100vh"},children:y.jsxs(tv,{lg:6,children:[i.status&&y.jsx(Sr,{variant:"danger",className:"mb-3",dismissible:!0,onClose:()=>i.setStatus(null),children:i.status}),e.loginError&&y.jsx(Sr,{variant:"danger",children:nr(e.loginError)}),y.jsx(tt,{onSubmit:i.handleSubmit,children:y.jsx("fieldset",{disabled:n,children:y.jsxs(Yl,{children:[y.jsx(Yl.Body,{children:y.jsxs(tt.Group,{children:[y.jsxs(tt.Label,{children:["API Key",y.jsx(m$,{className:"ms-1",style:{cursor:"pointer"},onClick:()=>{r(!0)}})]}),y.jsx(tt.Control,{type:"text",name:"apiKey",value:i.values.apiKey,onChange:i.handleChange,onBlur:i.handleBlur,placeholder:"Ex: 00000000-0000-0000-0000-000000000000",isInvalid:i.touched.apiKey&&!!i.errors.apiKey,isValid:i.touched.apiKey&&!i.errors.apiKey}),y.jsx(tt.Control.Feedback,{type:"invalid",children:i.errors.apiKey})]})}),y.jsx(Yl.Footer,{className:"d-flex justify-content-end",children:y.jsx(kn,{type:"submit",disabled:n,children:n?"Authenticating...":"Authenticate"})})]})})})]})})]})}),ki=()=>y.jsx("div",{children:y.jsx("h1",{children:"Not found"})}),mj=e=>{const t=oI();switch(t&&console.error(t),e.status||(t==null?void 0:t.status)){case 404:return y.jsx(ki,{});case 401:return y.jsxs("div",{children:[y.jsx("h1",{children:"Unauthorized"}),y.jsx("p",{children:"You don't have permission to do that."})]});default:return y.jsxs(Nd,{children:[y.jsx("h1",{children:"Unexpected error"}),y.jsx("p",{children:(t==null?void 0:t.statusText)||nr(t)}),y.jsx(kn,{onClick:()=>{window.history.back()},children:"Go back"})]})}},Hte={short:{justNow:"<1min ago",minute:"min ago",hour:"hr ago",day:"d ago"},long:{justNow:"<1 minute ago",minute:" minute[s] ago",hour:" hour[s] ago",day:" day[s] ago"}};function Kte(e,t,r=new Date){const i=r.getTime()-e.getTime(),n=Hte[t],a=Math.floor(i/1e3);if(a<60)return n.justNow;const l=Math.floor(a/60);if(l<60)return`${l}${n.minute.replace("[s]",l>1?"s":"")}`;const d=Math.floor(l/60);if(d<24)return`${d}${n.hour.replace("[s]",d>1?"s":"")}`;const f=Math.floor(d/24);return`${f}${n.day.replace("[s]",f>1?"s":"")}`}const Jte={whiteSpace:"nowrap",cursor:"help",textDecoration:"underline dotted"},Ca=({date:e,variant:t})=>{typeof e=="string"&&(e=new Date(e));const r=O8(e);return y.jsx(tA,{placement:"top",overlay:y.jsx(t$,{children:r}),trigger:["hover","click","focus"],children:y.jsx("time",{dateTime:e.toISOString(),style:Jte,children:Kte(e,t)})})},m6=Object.freeze({status:"aborted"});function B(e,t,r){function i(d,f){var h;Object.defineProperty(d,"_zod",{value:d._zod??{},enumerable:!1}),(h=d._zod).traits??(h.traits=new Set),d._zod.traits.add(e),t(d,f);for(const p in l.prototype)p in d||Object.defineProperty(d,p,{value:l.prototype[p].bind(d)});d._zod.constr=l,d._zod.def=f}const n=(r==null?void 0:r.Parent)??Object;class a extends n{}Object.defineProperty(a,"name",{value:e});function l(d){var f;const h=r!=null&&r.Parent?new a:this;i(h,d),(f=h._zod).deferred??(f.deferred=[]);for(const p of h._zod.deferred)p();return h}return Object.defineProperty(l,"init",{value:i}),Object.defineProperty(l,Symbol.hasInstance,{value:d=>{var f,h;return r!=null&&r.Parent&&d instanceof r.Parent?!0:(h=(f=d==null?void 0:d._zod)==null?void 0:f.traits)==null?void 0:h.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}const h6=Symbol("zod_brand");class Eu extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Nv extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const wh={};function qn(e){return e&&Object.assign(wh,e),wh}function Yte(e){return e}function Xte(e){return e}function Qte(e){}function Wte(e){throw new Error}function ene(e){}function QS(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function ce(e,t="|"){return e.map(r=>Ge(r)).join(t)}function xh(e,t){return typeof t=="bigint"?t.toString():t}function qd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function el(e){return e==null}function jv(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function v6(e,t){const r=(e.toString().split(".")[1]||"").length,i=t.toString();let n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){const f=i.match(/\d?e-(\d?)/);f!=null&&f[1]&&(n=Number.parseInt(f[1]))}const a=r>n?r:n,l=Number.parseInt(e.toFixed(a).replace(".","")),d=Number.parseInt(t.toFixed(a).replace(".",""));return l%d/10**a}const hj=Symbol("evaluating");function ct(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==hj)return i===void 0&&(i=hj,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function tne(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Po(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Za(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function nne(e){return Za(e._zod.def)}function rne(e,t){return t?t.reduce((r,i)=>r==null?void 0:r[i],e):e}function ine(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let a=0;a<t.length;a++)n[t[a]]=i[a];return n})}function ane(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Hb(e){return JSON.stringify(e)}const WS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function bs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const p6=qd(()=>{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 Mu(e){if(bs(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(bs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Iv(e){return Mu(e)?{...e}:Array.isArray(e)?[...e]:e}function one(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const une=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}`)}},Oh=new Set(["string","number","symbol"]),g6=new Set(["string","number","bigint","boolean","symbol","undefined"]);function To(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ei(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(i._zod.parent=e),i}function ie(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 lne(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,a){return t??(t=e()),Reflect.set(t,i,n,a)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function Ge(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function y6(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const b6={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]},_6={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $6(e,t){const r=e._zod.def,i=Za(e._zod.def,{get shape(){const n={};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=r.shape[a])}return Po(this,"shape",n),n},checks:[]});return ei(e,i)}function S6(e,t){const r=e._zod.def,i=Za(e._zod.def,{get shape(){const n={...e._zod.def.shape};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return Po(this,"shape",n),n},checks:[]});return ei(e,i)}function k6(e,t){if(!Mu(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const n=Za(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Po(this,"shape",a),a},checks:[]});return ei(e,n)}function w6(e,t){if(!Mu(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Po(this,"shape",i),i},checks:e._zod.def.checks};return ei(e,r)}function x6(e,t){const r=Za(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Po(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ei(e,r)}function O6(e,t,r){const i=Za(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in n))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=e?new e({type:"optional",innerType:n[l]}):n[l])}else for(const l in n)a[l]=e?new e({type:"optional",innerType:n[l]}):n[l];return Po(this,"shape",a),a},checks:[]});return ei(t,i)}function E6(e,t,r){const i=Za(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=new e({type:"nonoptional",innerType:n[l]}))}else for(const l in n)a[l]=new e({type:"nonoptional",innerType:n[l]});return Po(this,"shape",a),a},checks:[]});return ei(t,i)}function vu(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)!==!0)return!0;return!1}function vi(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Mc(e){return typeof e=="string"?e:e==null?void 0:e.message}function wi(e,t,r){var n,a,l,d,f,h;const i={...e,path:e.path??[]};if(!e.message){const p=Mc((l=(a=(n=e.inst)==null?void 0:n._zod.def)==null?void 0:a.error)==null?void 0:l.call(a,e))??Mc((d=t==null?void 0:t.error)==null?void 0:d.call(t,e))??Mc((f=r.customError)==null?void 0:f.call(r,e))??Mc((h=r.localeError)==null?void 0:h.call(r,e))??"Invalid input";i.message=p}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function Tv(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function zv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _s(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function sne(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function N6(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function j6(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function cne(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return N6(t+r)}function dne(e){return j6(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function fne(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function mne(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class hne{constructor(...t){}}const I6=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:_6,Class:hne,NUMBER_FORMAT_RANGES:b6,aborted:vu,allowsEval:p6,assert:ene,assertEqual:Yte,assertIs:Qte,assertNever:Wte,assertNotEqual:Xte,assignProp:Po,base64ToUint8Array:N6,base64urlToUint8Array:cne,cached:qd,captureStackTrace:WS,cleanEnum:sne,cleanRegex:jv,clone:ei,cloneDef:nne,createTransparentProxy:lne,defineLazy:ct,esc:Hb,escapeRegex:To,extend:k6,finalizeIssue:wi,floatSafeRemainder:v6,getElementAtPath:rne,getEnumValues:QS,getLengthableOrigin:zv,getParsedType:une,getSizableOrigin:Tv,hexToUint8Array:fne,isObject:bs,isPlainObject:Mu,issue:_s,joinValues:ce,jsonStringifyReplacer:xh,merge:x6,mergeDefs:Za,normalizeParams:ie,nullish:el,numKeys:one,objectClone:tne,omit:S6,optionalKeys:y6,partial:O6,pick:$6,prefixIssues:vi,primitiveTypes:g6,promiseAllObject:ine,propertyKeyTypes:Oh,randomString:ane,required:E6,safeExtend:w6,shallowClone:Iv,stringifyPrimitive:Ge,uint8ArrayToBase64:j6,uint8ArrayToBase64url:dne,uint8ArrayToHex:mne,unwrapMessage:Mc},Symbol.toStringTag,{value:"Module"})),T6=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},e0=B("$ZodError",T6),Er=B("$ZodError",T6,{Parent:Error});function t0(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function n0(e,t=r=>r.message){const r={_errors:[]},i=n=>{for(const a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let l=r,d=0;for(;d<a.path.length;){const f=a.path[d];d===a.path.length-1?(l[f]=l[f]||{_errors:[]},l[f]._errors.push(t(a))):l[f]=l[f]||{_errors:[]},l=l[f],d++}}};return i(e),r}function z6(e,t=r=>r.message){const r={errors:[]},i=(n,a=[])=>{var l,d;for(const f of n.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(h=>i({issues:h},f.path));else if(f.code==="invalid_key")i({issues:f.issues},f.path);else if(f.code==="invalid_element")i({issues:f.issues},f.path);else{const h=[...a,...f.path];if(h.length===0){r.errors.push(t(f));continue}let p=r,g=0;for(;g<h.length;){const b=h[g],k=g===h.length-1;typeof b=="string"?(p.properties??(p.properties={}),(l=p.properties)[b]??(l[b]={errors:[]}),p=p.properties[b]):(p.items??(p.items=[]),(d=p.items)[b]??(d[b]={errors:[]}),p=p.items[b]),k&&p.errors.push(t(f)),g++}}};return i(e),r}function A6(e){const t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function D6(e){var i;const t=[],r=[...e.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(const n of r)t.push(`✖ ${n.message}`),(i=n.path)!=null&&i.length&&t.push(` → at ${A6(n.path)}`);return t.join(`
|
|
177
|
-
`)}const Gd=e=>(t,r,i,n)=>{const a=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise)throw new Eu;if(l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>wi(f,a,qn())));throw WS(d,n==null?void 0:n.callee),d}return l.value},Kb=Gd(Er),Hd=e=>async(t,r,i,n)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise&&(l=await l),l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>wi(f,a,qn())));throw WS(d,n==null?void 0:n.callee),d}return l.value},Jb=Hd(Er),Kd=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new Eu;return a.issues.length?{success:!1,error:new(e??e0)(a.issues.map(l=>wi(l,n,qn())))}:{success:!0,data:a.value}},U6=Kd(Er),Jd=e=>async(t,r,i)=>{const n=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(l=>wi(l,n,qn())))}:{success:!0,data:a.value}},C6=Jd(Er),r0=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Gd(e)(t,r,n)},vne=r0(Er),i0=e=>(t,r,i)=>Gd(e)(t,r,i),pne=i0(Er),a0=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Hd(e)(t,r,n)},gne=a0(Er),o0=e=>async(t,r,i)=>Hd(e)(t,r,i),yne=o0(Er),u0=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Kd(e)(t,r,n)},bne=u0(Er),l0=e=>(t,r,i)=>Kd(e)(t,r,i),_ne=l0(Er),s0=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Jd(e)(t,r,n)},$ne=s0(Er),c0=e=>async(t,r,i)=>Jd(e)(t,r,i),Sne=c0(Er),R6=/^[cC][^\s-]{8,}$/,M6=/^[0-9a-z]+$/,L6=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,P6=/^[0-9a-vA-V]{20}$/,Z6=/^[A-Za-z0-9]{27}$/,B6=/^[a-zA-Z0-9_-]{21}$/,F6=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kne=/^[-+]?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)?)??$/,V6=/^([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})$/,$s=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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,wne=$s(4),xne=$s(6),One=$s(7),q6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ene=/^[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])?)*$/,Nne=/^(([^<>()\[\]\\.,;:\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,}))$/,G6=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,jne=G6,Ine=/^[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])?)*$/,Tne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function H6(){return new RegExp(Tne,"u")}const K6=/^(?:(?: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])$/,J6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Y6=/^((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])$/,X6=/^(([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])$/,Q6=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,d0=/^[A-Za-z0-9_-]*$/,f0=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,W6=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,eR=/^\+(?:[0-9]){6,14}[0-9]$/,tR="(?:(?:\\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])))",nR=new RegExp(`^${tR}$`);function rR(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 iR(e){return new RegExp(`^${rR(e)}$`)}function aR(e){const t=rR({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${tR}T(?:${i})$`)}const oR=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}$`)},uR=/^-?\d+n?$/,lR=/^-?\d+$/,sR=/^-?\d+(?:\.\d+)?/,cR=/^(?:true|false)$/i,dR=/^null$/i,fR=/^undefined$/i,mR=/^[^A-Z]*$/,hR=/^[^a-z]*$/,vR=/^[0-9a-fA-F]*$/;function Yd(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Xd(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const zne=/^[0-9a-fA-F]{32}$/,Ane=Yd(22,"=="),Dne=Xd(22),Une=/^[0-9a-fA-F]{40}$/,Cne=Yd(27,"="),Rne=Xd(27),Mne=/^[0-9a-fA-F]{64}$/,Lne=Yd(43,"="),Pne=Xd(43),Zne=/^[0-9a-fA-F]{96}$/,Bne=Yd(64,""),Fne=Xd(64),Vne=/^[0-9a-fA-F]{128}$/,qne=Yd(86,"=="),Gne=Xd(86),m0=Object.freeze(Object.defineProperty({__proto__:null,base64:Q6,base64url:d0,bigint:uR,boolean:cR,browserEmail:Ine,cidrv4:Y6,cidrv6:X6,cuid:R6,cuid2:M6,date:nR,datetime:aR,domain:W6,duration:F6,e164:eR,email:q6,emoji:H6,extendedDuration:kne,guid:V6,hex:vR,hostname:f0,html5Email:Ene,idnEmail:jne,integer:lR,ipv4:K6,ipv6:J6,ksuid:Z6,lowercase:mR,md5_base64:Ane,md5_base64url:Dne,md5_hex:zne,nanoid:B6,null:dR,number:sR,rfc5322Email:Nne,sha1_base64:Cne,sha1_base64url:Rne,sha1_hex:Une,sha256_base64:Lne,sha256_base64url:Pne,sha256_hex:Mne,sha384_base64:Bne,sha384_base64url:Fne,sha384_hex:Zne,sha512_base64:qne,sha512_base64url:Gne,sha512_hex:Vne,string:oR,time:iR,ulid:L6,undefined:fR,unicodeEmail:G6,uppercase:hR,uuid:$s,uuid4:wne,uuid6:xne,uuid7:One,xid:P6},Symbol.toStringTag,{value:"Module"})),en=B("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),pR={number:"number",bigint:"bigint",object:"date"},h0=B("$ZodCheckLessThan",(e,t)=>{en.init(e,t);const r=pR[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),v0=B("$ZodCheckGreaterThan",(e,t)=>{en.init(e,t);const r=pR[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),gR=B("$ZodCheckMultipleOf",(e,t)=>{en.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):v6(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),yR=B("$ZodCheckNumberFormat",(e,t)=>{var l;en.init(e,t),t.format=t.format||"float64";const r=(l=t.format)==null?void 0:l.includes("int"),i=r?"int":"number",[n,a]=b6[t.format];e._zod.onattach.push(d=>{const f=d._zod.bag;f.format=t.format,f.minimum=n,f.maximum=a,r&&(f.pattern=lR)}),e._zod.check=d=>{const f=d.value;if(r){if(!Number.isInteger(f)){d.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?d.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):d.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}f<n&&d.issues.push({origin:"number",input:f,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),f>a&&d.issues.push({origin:"number",input:f,code:"too_big",maximum:a,inst:e})}}),bR=B("$ZodCheckBigIntFormat",(e,t)=>{en.init(e,t);const[r,i]=_6[t.format];e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,a.minimum=r,a.maximum=i}),e._zod.check=n=>{const a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inst:e})}}),_R=B("$ZodCheckMaxSize",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!el(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:Tv(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),$R=B("$ZodCheckMinSize",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!el(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:Tv(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),SR=B("$ZodCheckSizeEquals",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!el(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,a=n.size;if(a===t.size)return;const l=a>t.size;i.issues.push({origin:Tv(n),...l?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),kR=B("$ZodCheckMaxLength",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!el(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const l=zv(n);i.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),wR=B("$ZodCheckMinLength",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!el(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const l=zv(n);i.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),xR=B("$ZodCheckLengthEquals",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!el(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,a=n.length;if(a===t.length)return;const l=zv(n),d=a>t.length;i.issues.push({origin:l,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Qd=B("$ZodCheckStringFormat",(e,t)=>{var r,i;en.init(e,t),e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),OR=B("$ZodCheckRegex",(e,t)=>{Qd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ER=B("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=mR),Qd.init(e,t)}),NR=B("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=hR),Qd.init(e,t)}),jR=B("$ZodCheckIncludes",(e,t)=>{en.init(e,t);const r=To(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),IR=B("$ZodCheckStartsWith",(e,t)=>{en.init(e,t);const r=new RegExp(`^${To(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),TR=B("$ZodCheckEndsWith",(e,t)=>{en.init(e,t);const r=new RegExp(`.*${To(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function vj(e,t,r){e.issues.length&&t.issues.push(...vi(r,e.issues))}const zR=B("$ZodCheckProperty",(e,t)=>{en.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>vj(n,r,t.property));vj(i,r,t.property)}}),AR=B("$ZodCheckMimeType",(e,t)=>{en.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),DR=B("$ZodCheckOverwrite",(e,t)=>{en.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class UR{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 i=t.split(`
|
|
178
|
-
`).filter(l=>l),n=Math.min(...i.map(l=>l.length-l.trimStart().length)),a=i.map(l=>l.slice(n)).map(l=>" ".repeat(this.indent*2)+l);for(const l of a)this.content.push(l)}compile(){const t=Function,r=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...r,n.join(`
|
|
179
|
-
`))}}const CR={major:4,minor:1,patch:12},Qe=B("$ZodType",(e,t)=>{var n;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=CR;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const a of i)for(const l of a._zod.onattach)l(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const a=(d,f,h)=>{let p=vu(d),g;for(const b of f){if(b._zod.def.when){if(!b._zod.def.when(d))continue}else if(p)continue;const k=d.issues.length,w=b._zod.check(d);if(w instanceof Promise&&(h==null?void 0:h.async)===!1)throw new Eu;if(g||w instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await w,d.issues.length!==k&&(p||(p=vu(d,k)))});else{if(d.issues.length===k)continue;p||(p=vu(d,k))}}return g?g.then(()=>d):d},l=(d,f,h)=>{if(vu(d))return d.aborted=!0,d;const p=a(f,i,h);if(p instanceof Promise){if(h.async===!1)throw new Eu;return p.then(g=>e._zod.parse(g,h))}return e._zod.parse(p,h)};e._zod.run=(d,f)=>{if(f.skipChecks)return e._zod.parse(d,f);if(f.direction==="backward"){const p=e._zod.parse({value:d.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(g=>l(g,d,f)):l(p,d,f)}const h=e._zod.parse(d,f);if(h instanceof Promise){if(f.async===!1)throw new Eu;return h.then(p=>a(p,i,f))}return a(h,i,f)}}e["~standard"]={validate:a=>{var l;try{const d=U6(e,a);return d.success?{value:d.data}:{issues:(l=d.error)==null?void 0:l.issues}}catch{return C6(e,a).then(f=>{var h;return f.success?{value:f.data}:{issues:(h=f.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}}),Wd=B("$ZodString",(e,t)=>{var r;Qe.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??oR(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Zt=B("$ZodStringFormat",(e,t)=>{Qd.init(e,t),Wd.init(e,t)}),RR=B("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=V6),Zt.init(e,t)}),MR=B("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$s(i))}else t.pattern??(t.pattern=$s());Zt.init(e,t)}),LR=B("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=q6),Zt.init(e,t)}),PR=B("$ZodURL",(e,t)=>{Zt.init(e,t),e._zod.check=r=>{try{const i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:f0.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ZR=B("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=H6()),Zt.init(e,t)}),BR=B("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=B6),Zt.init(e,t)}),FR=B("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=R6),Zt.init(e,t)}),VR=B("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=M6),Zt.init(e,t)}),qR=B("$ZodULID",(e,t)=>{t.pattern??(t.pattern=L6),Zt.init(e,t)}),GR=B("$ZodXID",(e,t)=>{t.pattern??(t.pattern=P6),Zt.init(e,t)}),HR=B("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Z6),Zt.init(e,t)}),KR=B("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=aR(t)),Zt.init(e,t)}),JR=B("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=nR),Zt.init(e,t)}),YR=B("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=iR(t)),Zt.init(e,t)}),XR=B("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=F6),Zt.init(e,t)}),QR=B("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=K6),Zt.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv4"})}),WR=B("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=J6),Zt.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),e2=B("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Y6),Zt.init(e,t)}),t2=B("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=X6),Zt.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[n,a]=i;if(!a)throw new Error;const l=Number(a);if(`${l}`!==a)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function p0(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const n2=B("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Q6),Zt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{p0(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function r2(e){if(!d0.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return p0(r)}const i2=B("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=d0),Zt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{r2(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),a2=B("$ZodE164",(e,t)=>{t.pattern??(t.pattern=eR),Zt.init(e,t)});function o2(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const u2=B("$ZodJWT",(e,t)=>{Zt.init(e,t),e._zod.check=r=>{o2(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),l2=B("$ZodCustomStringFormat",(e,t)=>{Zt.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),g0=B("$ZodNumber",(e,t)=>{Qe.init(e,t),e._zod.pattern=e._zod.bag.pattern??sR,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),s2=B("$ZodNumber",(e,t)=>{yR.init(e,t),g0.init(e,t)}),y0=B("$ZodBoolean",(e,t)=>{Qe.init(e,t),e._zod.pattern=cR,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),b0=B("$ZodBigInt",(e,t)=>{Qe.init(e,t),e._zod.pattern=uR,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),c2=B("$ZodBigInt",(e,t)=>{bR.init(e,t),b0.init(e,t)}),d2=B("$ZodSymbol",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),f2=B("$ZodUndefined",(e,t)=>{Qe.init(e,t),e._zod.pattern=fR,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),m2=B("$ZodNull",(e,t)=>{Qe.init(e,t),e._zod.pattern=dR,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),h2=B("$ZodAny",(e,t)=>{Qe.init(e,t),e._zod.parse=r=>r}),v2=B("$ZodUnknown",(e,t)=>{Qe.init(e,t),e._zod.parse=r=>r}),p2=B("$ZodNever",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),g2=B("$ZodVoid",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),y2=B("$ZodDate",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function pj(e,t,r){e.issues.length&&t.issues.push(...vi(r,e.issues)),t.value[r]=e.value}const b2=B("$ZodArray",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let l=0;l<n.length;l++){const d=n[l],f=t.element._zod.run({value:d,issues:[]},i);f instanceof Promise?a.push(f.then(h=>pj(h,r,l))):pj(f,r,l)}return a.length?Promise.all(a).then(()=>r):r}});function Eh(e,t,r,i){e.issues.length&&t.issues.push(...vi(r,e.issues)),e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function _2(e){var i,n,a,l;const t=Object.keys(e.shape);for(const d of t)if(!((l=(a=(n=(i=e.shape)==null?void 0:i[d])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&l.has("$ZodType")))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const r=y6(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function $2(e,t,r,i,n,a){const l=[],d=n.keySet,f=n.catchall._zod,h=f.def.type;for(const p of Object.keys(t)){if(d.has(p))continue;if(h==="never"){l.push(p);continue}const g=f.run({value:t[p],issues:[]},i);g instanceof Promise?e.push(g.then(b=>Eh(b,r,p,t))):Eh(g,r,p,t)}return l.length&&r.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const S2=B("$ZodObject",(e,t)=>{Qe.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...d};return Object.defineProperty(t,"shape",{value:f}),f}})}const i=qd(()=>_2(t));ct(e._zod,"propValues",()=>{const d=t.shape,f={};for(const h in d){const p=d[h]._zod;if(p.values){f[h]??(f[h]=new Set);for(const g of p.values)f[h].add(g)}}return f});const n=bs,a=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=i.value);const h=d.value;if(!n(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};const p=[],g=l.shape;for(const b of l.keys){const w=g[b]._zod.run({value:h[b],issues:[]},f);w instanceof Promise?p.push(w.then(I=>Eh(I,d,b,h))):Eh(w,d,b,h)}return a?$2(p,h,d,f,i.value,e):p.length?Promise.all(p).then(()=>d):d}}),k2=B("$ZodObjectJIT",(e,t)=>{S2.init(e,t);const r=e._zod.parse,i=qd(()=>_2(t)),n=b=>{const k=new UR(["shape","payload","ctx"]),w=i.value,I=N=>{const z=Hb(N);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};k.write("const input = payload.value;");const x=Object.create(null);let $=0;for(const N of w.keys)x[N]=`key_${$++}`;k.write("const newResult = {};");for(const N of w.keys){const z=x[N],T=Hb(N);k.write(`const ${z} = ${I(N)};`),k.write(`
|
|
180
|
-
if (${z}.issues.length) {
|
|
181
|
-
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
182
|
-
...iss,
|
|
183
|
-
path: iss.path ? [${T}, ...iss.path] : [${T}]
|
|
184
|
-
})));
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
if (${z}.value === undefined) {
|
|
189
|
-
if (${T} in input) {
|
|
190
|
-
newResult[${T}] = undefined;
|
|
191
|
-
}
|
|
192
|
-
} else {
|
|
193
|
-
newResult[${T}] = ${z}.value;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
`)}k.write("payload.value = newResult;"),k.write("return payload;");const j=k.compile();return(N,z)=>j(b,N,z)};let a;const l=bs,d=!wh.jitless,h=d&&p6.value,p=t.catchall;let g;e._zod.parse=(b,k)=>{g??(g=i.value);const w=b.value;return l(w)?d&&h&&(k==null?void 0:k.async)===!1&&k.jitless!==!0?(a||(a=n(t.shape)),b=a(b,k),p?$2([],w,b,k,g,e):b):r(b,k):(b.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),b)}});function gj(e,t,r,i){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const n=e.filter(a=>!vu(a));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(l=>wi(l,i,qn())))}),t)}const _0=B("$ZodUnion",(e,t)=>{Qe.init(e,t),ct(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ct(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ct(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),ct(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>jv(a.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let l=!1;const d=[];for(const f of t.options){const h=f._zod.run({value:n.value,issues:[]},a);if(h instanceof Promise)d.push(h),l=!0;else{if(h.issues.length===0)return h;d.push(h)}}return l?Promise.all(d).then(f=>gj(f,n,e,a)):gj(d,n,e,a)}}),w2=B("$ZodDiscriminatedUnion",(e,t)=>{_0.init(e,t);const r=e._zod.parse;ct(e._zod,"propValues",()=>{const n={};for(const a of t.options){const l=a._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[d,f]of Object.entries(l)){n[d]||(n[d]=new Set);for(const h of f)n[d].add(h)}}return n});const i=qd(()=>{var l;const n=t.options,a=new Map;for(const d of n){const f=(l=d._zod.propValues)==null?void 0:l[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(d)}"`);for(const h of f){if(a.has(h))throw new Error(`Duplicate discriminator value "${String(h)}"`);a.set(h,d)}}return a});e._zod.parse=(n,a)=>{const l=n.value;if(!bs(l))return n.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),n;const d=i.value.get(l==null?void 0:l[t.discriminator]);return d?d._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:l,path:[t.discriminator],inst:e}),n)}}),x2=B("$ZodIntersection",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,a=t.left._zod.run({value:n,issues:[]},i),l=t.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||l instanceof Promise?Promise.all([a,l]).then(([f,h])=>yj(r,f,h)):yj(r,a,l)}});function Yb(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(Mu(e)&&Mu(t)){const r=Object.keys(t),i=Object.keys(e).filter(a=>r.indexOf(a)!==-1),n={...e,...t};for(const a of i){const l=Yb(e[a],t[a]);if(!l.valid)return{valid:!1,mergeErrorPath:[a,...l.mergeErrorPath]};n[a]=l.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],a=t[i],l=Yb(n,a);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};r.push(l.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function yj(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),vu(e))return e;const i=Yb(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const $0=B("$ZodTuple",(e,t)=>{Qe.init(e,t);const r=t.items,i=r.length-[...r].reverse().findIndex(n=>n._zod.optin!=="optional");e._zod.parse=(n,a)=>{const l=n.value;if(!Array.isArray(l))return n.issues.push({input:l,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];const d=[];if(!t.rest){const h=l.length>r.length,p=l.length<i-1;if(h||p)return n.issues.push({...h?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:l,inst:e,origin:"array"}),n}let f=-1;for(const h of r){if(f++,f>=l.length&&f>=i)continue;const p=h._zod.run({value:l[f],issues:[]},a);p instanceof Promise?d.push(p.then(g=>Dm(g,n,f))):Dm(p,n,f)}if(t.rest){const h=l.slice(r.length);for(const p of h){f++;const g=t.rest._zod.run({value:p,issues:[]},a);g instanceof Promise?d.push(g.then(b=>Dm(b,n,f))):Dm(g,n,f)}}return d.length?Promise.all(d).then(()=>n):n}});function Dm(e,t,r){e.issues.length&&t.issues.push(...vi(r,e.issues)),t.value[r]=e.value}const O2=B("$ZodRecord",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Mu(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const a=[];if(t.keyType._zod.values){const l=t.keyType._zod.values;r.value={};for(const f of l)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){const h=t.valueType._zod.run({value:n[f],issues:[]},i);h instanceof Promise?a.push(h.then(p=>{p.issues.length&&r.issues.push(...vi(f,p.issues)),r.value[f]=p.value})):(h.issues.length&&r.issues.push(...vi(f,h.issues)),r.value[f]=h.value)}let d;for(const f in n)l.has(f)||(d=d??[],d.push(f));d&&d.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:d})}else{r.value={};for(const l of Reflect.ownKeys(n)){if(l==="__proto__")continue;const d=t.keyType._zod.run({value:l,issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>wi(h,i,qn())),input:l,path:[l],inst:e}),r.value[d.value]=d.value;continue}const f=t.valueType._zod.run({value:n[l],issues:[]},i);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&r.issues.push(...vi(l,h.issues)),r.value[d.value]=h.value})):(f.issues.length&&r.issues.push(...vi(l,f.issues)),r.value[d.value]=f.value)}}return a.length?Promise.all(a).then(()=>r):r}}),E2=B("$ZodMap",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const a=[];r.value=new Map;for(const[l,d]of n){const f=t.keyType._zod.run({value:l,issues:[]},i),h=t.valueType._zod.run({value:d,issues:[]},i);f instanceof Promise||h instanceof Promise?a.push(Promise.all([f,h]).then(([p,g])=>{bj(p,g,r,l,n,e,i)})):bj(f,h,r,l,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function bj(e,t,r,i,n,a,l){e.issues.length&&(Oh.has(typeof i)?r.issues.push(...vi(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(d=>wi(d,l,qn()))})),t.issues.length&&(Oh.has(typeof i)?r.issues.push(...vi(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(d=>wi(d,l,qn()))})),r.value.set(e.value,t.value)}const N2=B("$ZodSet",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const a=[];r.value=new Set;for(const l of n){const d=t.valueType._zod.run({value:l,issues:[]},i);d instanceof Promise?a.push(d.then(f=>_j(f,r))):_j(d,r)}return a.length?Promise.all(a).then(()=>r):r}});function _j(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const j2=B("$ZodEnum",(e,t)=>{Qe.init(e,t);const r=QS(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>Oh.has(typeof n)).map(n=>typeof n=="string"?To(n):n.toString()).join("|")})$`),e._zod.parse=(n,a)=>{const l=n.value;return i.has(l)||n.issues.push({code:"invalid_value",values:r,input:l,inst:e}),n}}),I2=B("$ZodLiteral",(e,t)=>{if(Qe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?To(r):r?To(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const n=r.value;return e._zod.values.has(n)||r.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),r}}),T2=B("$ZodFile",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),z2=B("$ZodTransform",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nv(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(l=>(r.value=l,r));if(n instanceof Promise)throw new Eu;return r.value=n,r}});function $j(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const A2=B("$ZodOptional",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ct(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ct(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${jv(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>$j(a,r.value)):$j(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),D2=B("$ZodNullable",(e,t)=>{Qe.init(e,t),ct(e._zod,"optin",()=>t.innerType._zod.optin),ct(e._zod,"optout",()=>t.innerType._zod.optout),ct(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${jv(r.source)}|null)$`):void 0}),ct(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),U2=B("$ZodDefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>Sj(a,t)):Sj(n,t)}});function Sj(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const C2=B("$ZodPrefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),R2=B("$ZodNonOptional",(e,t)=>{Qe.init(e,t),ct(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>kj(a,e)):kj(n,e)}});function kj(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 M2=B("$ZodSuccess",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nv("ZodSuccess");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),L2=B("$ZodCatch",(e,t)=>{Qe.init(e,t),ct(e._zod,"optin",()=>t.innerType._zod.optin),ct(e._zod,"optout",()=>t.innerType._zod.optout),ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(l=>wi(l,i,qn()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>wi(a,i,qn()))},input:r.value}),r.issues=[]),r)}}),P2=B("$ZodNaN",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Z2=B("$ZodPipe",(e,t)=>{Qe.init(e,t),ct(e._zod,"values",()=>t.in._zod.values),ct(e._zod,"optin",()=>t.in._zod.optin),ct(e._zod,"optout",()=>t.out._zod.optout),ct(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>Um(l,t.in,i)):Um(a,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(a=>Um(a,t.out,i)):Um(n,t.out,i)}});function Um(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const S0=B("$ZodCodec",(e,t)=>{Qe.init(e,t),ct(e._zod,"values",()=>t.in._zod.values),ct(e._zod,"optin",()=>t.in._zod.optin),ct(e._zod,"optout",()=>t.out._zod.optout),ct(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const a=t.in._zod.run(r,i);return a instanceof Promise?a.then(l=>Cm(l,t,i)):Cm(a,t,i)}else{const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>Cm(l,t,i)):Cm(a,t,i)}}});function Cm(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(a=>Rm(e,a,t.out,r)):Rm(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(a=>Rm(e,a,t.in,r)):Rm(e,n,t.in,r)}}function Rm(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const B2=B("$ZodReadonly",(e,t)=>{Qe.init(e,t),ct(e._zod,"propValues",()=>t.innerType._zod.propValues),ct(e._zod,"values",()=>t.innerType._zod.values),ct(e._zod,"optin",()=>t.innerType._zod.optin),ct(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(wj):wj(n)}});function wj(e){return e.value=Object.freeze(e.value),e}const F2=B("$ZodTemplateLiteral",(e,t)=>{Qe.init(e,t);const r=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const a=n.startsWith("^")?1:0,l=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(a,l))}else if(i===null||g6.has(typeof i))r.push(To(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),V2=B("$ZodFunction",(e,t)=>(Qe.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const n=e._def.input?Kb(e._def.input,i):i,a=Reflect.apply(r,this,n);return e._def.output?Kb(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const n=e._def.input?await Jb(e._def.input,i):i,a=await Reflect.apply(r,this,n);return e._def.output?await Jb(e._def.output,a):a}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new $0({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),q2=B("$ZodPromise",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),G2=B("$ZodLazy",(e,t)=>{Qe.init(e,t),ct(e._zod,"innerType",()=>t.getter()),ct(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ct(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ct(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),ct(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),H2=B("$ZodCustom",(e,t)=>{en.init(e,t),Qe.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(a=>xj(a,r,i,e));xj(n,r,i,e)}});function xj(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(_s(n))}}const Hne=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Ge(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()} ${l.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()} ${l.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${i[a.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${ce(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function Kne(){return{localeError:Hne()}}const Jne=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${Ge(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()} ${l.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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ış ${i[a.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Yne(){return{localeError:Jne()}}function Oj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const Xne=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${Ge(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=Oj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${l.verb} ${a}${n.maximum.toString()} ${f}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=Oj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${l.verb} ${a}${n.minimum.toString()} ${f}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${i[a.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${ce(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function Qne(){return{localeError:Xne()}}const Wne=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},ere=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(i){return e[i]??null}const 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}, получен ${Wne(i.input)}`;case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${Ge(i.values[0])}`:`Невалидна опция: очаквано едно от ${ce(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${n}${i.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Твърде малко: очаква се ${i.origin} да съдържа ${n}${i.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;if(n.format==="starts_with")return`Невалиден низ: трябва да започва с "${n.prefix}"`;if(n.format==="ends_with")return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if(n.format==="includes")return`Невалиден низ: трябва да включва "${n.includes}"`;if(n.format==="regex")return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let a="Невалиден";return n.format==="emoji"&&(a="Невалидно"),n.format==="datetime"&&(a="Невалидно"),n.format==="date"&&(a="Невалидна"),n.format==="time"&&(a="Невалидно"),n.format==="duration"&&(a="Невалидна"),`${a} ${r[n.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${ce(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function tre(){return{localeError:ere()}}const nre=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${Ge(n.values[0])}`:`Opció invàlida: s'esperava una de ${ce(n.values," o ")}`;case"too_big":{const a=n.inclusive?"com a màxim":"menys de",l=t(n.origin);return l?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${a} ${n.maximum.toString()} ${l.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"com a mínim":"més de",l=t(n.origin);return l?`Massa petit: s'esperava que ${n.origin} contingués ${a} ${n.minimum.toString()} ${l.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function rre(){return{localeError:nre()}}const ire=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"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(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${Ge(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${a}${n.maximum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${a}${n.minimum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${ce(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function are(){return{localeError:ire()}}const ore=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"tal";case"object":return Array.isArray(l)?"liste":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype&&l.constructor?l.constructor.name:"objekt"}return d},a={regex:"input",email:"e-mailadresse",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 klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return l=>{switch(l.code){case"invalid_type":return`Ugyldigt input: forventede ${i(l.expected)}, fik ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Ugyldig værdi: forventede ${Ge(l.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ce(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),h=i(l.origin);return f?`For stor: forventede ${h??"value"} ${f.verb} ${d} ${l.maximum.toString()} ${f.unit??"elementer"}`:`For stor: forventede ${h??"value"} havde ${d} ${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),h=i(l.origin);return f?`For lille: forventede ${h} ${f.verb} ${d} ${l.minimum.toString()} ${f.unit}`:`For lille: forventede ${h} havde ${d} ${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Ugyldig streng: skal starte med "${d.prefix}"`:d.format==="ends_with"?`Ugyldig streng: skal ende med "${d.suffix}"`:d.format==="includes"?`Ugyldig streng: skal indeholde "${d.includes}"`:d.format==="regex"?`Ugyldig streng: skal matche mønsteret ${d.pattern}`:`Ugyldig ${a[d.format]??l.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${l.divisor}`;case"unrecognized_keys":return`${l.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${ce(l.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${l.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${l.origin}`;default:return"Ugyldigt input"}}};function ure(){return{localeError:ore()}}const lre=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${Ge(n.values[0])}`:`Ungültige Option: erwartet eine von ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ${l.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ist`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${l.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case"invalid_format":{const a=n;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: ${i[a.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${ce(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function sre(){return{localeError:lre()}}const cre=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},dre=()=>{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(i){return e[i]??null}const 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`Invalid input: expected ${i.expected}, received ${cre(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${Ge(i.values[0])}`:`Invalid option: expected one of ${ce(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${n}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${n}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${ce(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function K2(){return{localeError:dre()}}const fre=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},mre=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}const r={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 i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${fre(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${Ge(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ce(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendiĝis ke ${i.origin} havu ${n}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${ce(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function hre(){return{localeError:mre()}}const vre=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"number";case"object":return Array.isArray(l)?"array":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype?l.constructor.name:"object"}return d},a={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 l=>{switch(l.code){case"invalid_type":return`Entrada inválida: se esperaba ${i(l.expected)}, recibido ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Entrada inválida: se esperaba ${Ge(l.values[0])}`:`Opción inválida: se esperaba una de ${ce(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),h=i(l.origin);return f?`Demasiado grande: se esperaba que ${h??"valor"} tuviera ${d}${l.maximum.toString()} ${f.unit??"elementos"}`:`Demasiado grande: se esperaba que ${h??"valor"} fuera ${d}${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),h=i(l.origin);return f?`Demasiado pequeño: se esperaba que ${h} tuviera ${d}${l.minimum.toString()} ${f.unit}`:`Demasiado pequeño: se esperaba que ${h} fuera ${d}${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Cadena inválida: debe comenzar con "${d.prefix}"`:d.format==="ends_with"?`Cadena inválida: debe terminar en "${d.suffix}"`:d.format==="includes"?`Cadena inválida: debe incluir "${d.includes}"`:d.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${d.pattern}`:`Inválido ${a[d.format]??l.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${l.divisor}`;case"unrecognized_keys":return`Llave${l.keys.length>1?"s":""} desconocida${l.keys.length>1?"s":""}: ${ce(l.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i(l.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i(l.origin)}`;default:return"Entrada inválida"}}};function pre(){return{localeError:vre()}}const gre=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${n.expected} میبود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${Ge(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${ce(n.values,"|")} میبود`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} باشد`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} باشد`}case"invalid_format":{const a=n;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${i[a.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${ce(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function yre(){return{localeError:gre()}}const bre=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${Ge(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Liian suuri: ${l.subject} täytyy olla ${a}${n.maximum.toString()} ${l.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Liian pieni: ${l.subject} täytyy olla ${a}${n.minimum.toString()} ${l.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ce(n.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 _re(){return{localeError:bre()}}const $re=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${Ge(n.values[0])} attendu`:`Option invalide : une valeur parmi ${ce(n.values,"|")} attendue`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Trop grand : ${n.origin??"valeur"} doit ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Trop petit : ${n.origin} doit ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : ${n.origin} doit être ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${ce(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Sre(){return{localeError:$re()}}const kre=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${Ge(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"≤":"<",l=t(n.origin);return l?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${a}${n.maximum.toString()} ${l.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"≥":">",l=t(n.origin);return l?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${ce(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function wre(){return{localeError:kre()}}const xre=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`קלט לא תקין: צריך ${n.expected}, התקבל ${r(n.input)}`;case"invalid_value":return n.values.length===1?`קלט לא תקין: צריך ${Ge(n.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`גדול מדי: ${n.origin??"value"} צריך להיות ${a}${n.maximum.toString()} ${l.unit??"elements"}`:`גדול מדי: ${n.origin??"value"} צריך להיות ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`קטן מדי: ${n.origin} צריך להיות ${a}${n.minimum.toString()} ${l.unit}`:`קטן מדי: ${n.origin} צריך להיות ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${i[a.format]??n.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${n.divisor}`;case"unrecognized_keys":return`מפתח${n.keys.length>1?"ות":""} לא מזוה${n.keys.length>1?"ים":"ה"}: ${ce(n.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${n.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n.origin}`;default:return"קלט לא תקין"}}};function Ore(){return{localeError:xre()}}const Ere=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${Ge(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${a}${n.maximum.toString()} ${l.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${a}${n.minimum.toString()} ${l.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function Nre(){return{localeError:Ere()}}const jre=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${Ge(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Ire(){return{localeError:jre()}}const Tre=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},zre=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(i){return e[i]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return i=>{switch(i.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${Tre(i.input)} þar sem á að vera ${i.expected}`;case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${Ge(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ce(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${n}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${n}${i.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Ógildur strengur: verður að byrja á "${n.prefix}"`:n.format==="ends_with"?`Ógildur strengur: verður að enda á "${n.suffix}"`:n.format==="includes"?`Ógildur strengur: verður að innihalda "${n.includes}"`:n.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${ce(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function Are(){return{localeError:zre()}}const Dre=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${Ge(n.values[0])}`:`Opzione non valida: atteso uno tra ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Troppo grande: ${n.origin??"valore"} deve avere ${a}${n.maximum.toString()} ${l.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${l.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${ce(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Ure(){return{localeError:Dre()}}const Cre=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${Ge(n.values[0])}が期待されました`:`無効な選択: ${ce(n.values,"、")}のいずれかである必要があります`;case"too_big":{const a=n.inclusive?"以下である":"より小さい",l=t(n.origin);return l?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${l.unit??"要素"}${a}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a}必要があります`}case"too_small":{const a=n.inclusive?"以上である":"より大きい",l=t(n.origin);return l?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${l.unit}${a}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${i[a.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${ce(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function Rre(){return{localeError:Cre()}}const Mre=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},Lre=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(i){return e[i]??null}const 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-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return i=>{switch(i.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${i.expected}, მიღებული ${Mre(i.input)}`;case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Ge(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ce(i.values,"|")}-დან`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${a.verb} ${n}${i.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${a.verb} ${n}${i.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${n.prefix}"-ით`:n.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${n.suffix}"-ით`:n.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${n.includes}"-ს`:n.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`:`არასწორი ${r[n.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${ce(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function Pre(){return{localeError:Lre()}}const Zre=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Ge(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()} ${l.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()} ${l.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[a.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${ce(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function J2(){return{localeError:Zre()}}function Bre(){return J2()}const Fre=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${Ge(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${ce(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=n.inclusive?"이하":"미만",l=a==="미만"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${a}${l}`}case"too_small":{const a=n.inclusive?"이상":"초과",l=a==="이상"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${a}${l}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[a.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${ce(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function Vre(){return{localeError:Fre()}}const qre=e=>Lc(typeof e,e),Lc=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},zc=e=>e.charAt(0).toUpperCase()+e.slice(1);function Ej(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const Gre=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(i,n,a,l){const d=e[i]??null;return d===null?d:{unit:d.unit[n],verb:d.verb[l][a?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return i=>{switch(i.code){case"invalid_type":return`Gautas tipas ${qre(i.input)}, o tikėtasi - ${Lc(i.expected)}`;case"invalid_value":return i.values.length===1?`Privalo būti ${Ge(i.values[0])}`:`Privalo būti vienas iš ${ce(i.values,"|")} pasirinkimų`;case"too_big":{const n=Lc(i.origin),a=t(i.origin,Ej(Number(i.maximum)),i.inclusive??!1,"smaller");if(a!=null&&a.verb)return`${zc(n??i.origin??"reikšmė")} ${a.verb} ${i.maximum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${zc(n??i.origin??"reikšmė")} turi būti ${l} ${i.maximum.toString()} ${a==null?void 0:a.unit}`}case"too_small":{const n=Lc(i.origin),a=t(i.origin,Ej(Number(i.minimum)),i.inclusive??!1,"bigger");if(a!=null&&a.verb)return`${zc(n??i.origin??"reikšmė")} ${a.verb} ${i.minimum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${zc(n??i.origin??"reikšmė")} turi būti ${l} ${i.minimum.toString()} ${a==null?void 0:a.unit}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Eilutė privalo prasidėti "${n.prefix}"`:n.format==="ends_with"?`Eilutė privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilutė privalo įtraukti "${n.includes}"`:n.format==="regex"?`Eilutė privalo atitikti ${n.pattern}`:`Neteisingas ${r[n.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${ce(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const n=Lc(i.origin);return`${zc(n??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function Hre(){return{localeError:Gre()}}const Kre=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${Ge(n.values[0])}`:`Грешана опција: се очекува една ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${a}${n.maximum.toString()} ${l.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Премногу мал: се очекува ${n.origin} да има ${a}${n.minimum.toString()} ${l.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${i[a.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ce(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function Jre(){return{localeError:Kre()}}const Yre=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${Ge(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: dijangka ${n.origin??"nilai"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: dijangka ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${ce(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function Xre(){return{localeError:Yre()}}const Qre=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${Ge(n.values[0])}`:`Ongeldige optie: verwacht één van ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Te lang: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} ${l.unit??"elementen"} bevat`:`Te lang: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} is`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Te kort: verwacht dat ${n.origin} ${a}${n.minimum.toString()} ${l.unit} bevat`:`Te kort: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case"invalid_format":{const a=n;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: ${i[a.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Wre(){return{localeError:Qre()}}const eie=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${Ge(n.values[0])}`:`Ugyldig valg: forventet en av ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()} ${l.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()} ${l.unit}`:`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${ce(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function tie(){return{localeError:eie()}}const nie=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${Ge(n.values[0])}`:`Fâsit tercih: mûteberler ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} ${l.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} olmalıydı.`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} ${l.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function rie(){return{localeError:nie()}}const iie=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${Ge(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${ce(n.values,"|")} څخه وای`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} وي`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} وي`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${i[a.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${ce(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function aie(){return{localeError:iie()}}const oie=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Ge(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.maximum.toString()} ${l.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.minimum.toString()} ${l.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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) ${i[a.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function uie(){return{localeError:oie()}}const lie=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${Ge(n.values[0])}`:`Opção inválida: esperada uma das ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${a}${n.maximum.toString()} ${l.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${l.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function sie(){return{localeError:lie()}}function Nj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const cie=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${Ge(n.values[0])}`:`Неверный вариант: ожидалось одно из ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=Nj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${a}${n.maximum.toString()} ${f}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=Nj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${a}${n.minimum.toString()} ${f}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${i[a.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function die(){return{localeError:cie()}}const fie=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${Ge(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${a}${n.maximum.toString()} ${l.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Premajhno: pričakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${l.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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 ${i[a.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${ce(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function mie(){return{localeError:fie()}}const hie=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${Ge(n.values[0])}`:`Ogiltigt val: förväntade en av ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()} ${l.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()} ${l.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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) ${i[a.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${ce(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function vie(){return{localeError:hie()}}const pie=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Ge(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ce(n.values,"|")} இல் ஒன்று`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ${l.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ${l.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=n;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[a.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function gie(){return{localeError:pie()}}const yie=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Ge(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"ไม่เกิน":"น้อยกว่า",l=t(n.origin);return l?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()} ${l.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"อย่างน้อย":"มากกว่า",l=t(n.origin);return l?`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()} ${l.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[a.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${ce(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function bie(){return{localeError:yie()}}const _ie=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},$ie=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(i){return e[i]??null}const r={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 i=>{switch(i.code){case"invalid_type":return`Geçersiz değer: beklenen ${i.expected}, alınan ${_ie(i.input)}`;case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${Ge(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ce(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${ce(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Sie(){return{localeError:$ie()}}const kie=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${Ge(n.values[0])}`:`Неправильна опція: очікується одне з ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Занадто велике: очікується, що ${n.origin??"значення"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Занадто мале: очікується, що ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${i[a.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function Y2(){return{localeError:kie()}}function wie(){return Y2()}const xie=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${Ge(n.values[0])} متوقع تھا`:`غلط آپشن: ${ce(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`بہت بڑا: ${n.origin??"ویلیو"} کے ${a}${n.maximum.toString()} ${l.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${a}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`بہت چھوٹا: ${n.origin} کے ${a}${n.minimum.toString()} ${l.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${a}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=n;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${i[a.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${ce(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Oie(){return{localeError:xie()}}const Eie=()=>{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(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Ge(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Quá nhỏ: mong đợi ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;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}`:`${i[a.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${ce(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.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 ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function Nie(){return{localeError:Eie()}}const jie=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${Ge(n.values[0])}`:`无效选项:期望以下之一 ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()} ${l.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${i[a.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${ce(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Iie(){return{localeError:jie()}}const Tie=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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 n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${Ge(n.values[0])}`:`無效的選項:預期為以下其中之一 ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()} ${l.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()} ${l.unit}`:`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${i[a.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${ce(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function zie(){return{localeError:Tie()}}const Aie=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(n))return"akopọ";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return n=>{switch(n.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${n.expected}, àmọ̀ a rí ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Ge(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ce(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${l.verb} ${a}${n.maximum} ${l.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${n.maximum}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${l.verb} ${a}${n.minimum} ${l.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${n.minimum}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${i[a.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${ce(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function Die(){return{localeError:Aie()}}const X2=Object.freeze(Object.defineProperty({__proto__:null,ar:Kne,az:Yne,be:Qne,bg:tre,ca:rre,cs:are,da:ure,de:sre,en:K2,eo:hre,es:pre,fa:yre,fi:_re,fr:Sre,frCA:wre,he:Ore,hu:Nre,id:Ire,is:Are,it:Ure,ja:Rre,ka:Pre,kh:Bre,km:J2,ko:Vre,lt:Hre,mk:Jre,ms:Xre,nl:Wre,no:tie,ota:rie,pl:uie,ps:aie,pt:sie,ru:die,sl:mie,sv:vie,ta:gie,th:bie,tr:Sie,ua:wie,uk:Y2,ur:Oie,vi:Nie,yo:Die,zhCN:Iie,zhTW:zie},Symbol.toStringTag,{value:"Module"})),Q2=Symbol("ZodOutput"),W2=Symbol("ZodInput");class k0{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function w0(){return new k0}const pu=w0();function eM(e,t){return new e({type:"string",...ie(t)})}function tM(e,t){return new e({type:"string",coerce:!0,...ie(t)})}function x0(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ie(t)})}function Nh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ie(t)})}function O0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ie(t)})}function E0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ie(t)})}function N0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ie(t)})}function j0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ie(t)})}function Av(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ie(t)})}function I0(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ie(t)})}function T0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ie(t)})}function z0(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ie(t)})}function A0(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ie(t)})}function D0(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ie(t)})}function U0(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ie(t)})}function C0(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ie(t)})}function R0(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ie(t)})}function M0(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ie(t)})}function L0(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ie(t)})}function P0(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ie(t)})}function Z0(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ie(t)})}function B0(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ie(t)})}function F0(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ie(t)})}function V0(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ie(t)})}const nM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function rM(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ie(t)})}function iM(e,t){return new e({type:"string",format:"date",check:"string_format",...ie(t)})}function aM(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ie(t)})}function oM(e,t){return new e({type:"string",format:"duration",check:"string_format",...ie(t)})}function uM(e,t){return new e({type:"number",checks:[],...ie(t)})}function lM(e,t){return new e({type:"number",coerce:!0,checks:[],...ie(t)})}function sM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ie(t)})}function cM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ie(t)})}function dM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ie(t)})}function fM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ie(t)})}function mM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ie(t)})}function hM(e,t){return new e({type:"boolean",...ie(t)})}function vM(e,t){return new e({type:"boolean",coerce:!0,...ie(t)})}function pM(e,t){return new e({type:"bigint",...ie(t)})}function gM(e,t){return new e({type:"bigint",coerce:!0,...ie(t)})}function yM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ie(t)})}function bM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ie(t)})}function _M(e,t){return new e({type:"symbol",...ie(t)})}function $M(e,t){return new e({type:"undefined",...ie(t)})}function SM(e,t){return new e({type:"null",...ie(t)})}function kM(e){return new e({type:"any"})}function wM(e){return new e({type:"unknown"})}function xM(e,t){return new e({type:"never",...ie(t)})}function OM(e,t){return new e({type:"void",...ie(t)})}function EM(e,t){return new e({type:"date",...ie(t)})}function NM(e,t){return new e({type:"date",coerce:!0,...ie(t)})}function jM(e,t){return new e({type:"nan",...ie(t)})}function Lu(e,t){return new h0({check:"less_than",...ie(t),value:e,inclusive:!1})}function bi(e,t){return new h0({check:"less_than",...ie(t),value:e,inclusive:!0})}function Pu(e,t){return new v0({check:"greater_than",...ie(t),value:e,inclusive:!1})}function yr(e,t){return new v0({check:"greater_than",...ie(t),value:e,inclusive:!0})}function IM(e){return Pu(0,e)}function TM(e){return Lu(0,e)}function zM(e){return bi(0,e)}function AM(e){return yr(0,e)}function dd(e,t){return new gR({check:"multiple_of",...ie(t),value:e})}function Dv(e,t){return new _R({check:"max_size",...ie(t),maximum:e})}function fd(e,t){return new $R({check:"min_size",...ie(t),minimum:e})}function q0(e,t){return new SR({check:"size_equals",...ie(t),size:e})}function Uv(e,t){return new kR({check:"max_length",...ie(t),maximum:e})}function Ss(e,t){return new wR({check:"min_length",...ie(t),minimum:e})}function Cv(e,t){return new xR({check:"length_equals",...ie(t),length:e})}function G0(e,t){return new OR({check:"string_format",format:"regex",...ie(t),pattern:e})}function H0(e){return new ER({check:"string_format",format:"lowercase",...ie(e)})}function K0(e){return new NR({check:"string_format",format:"uppercase",...ie(e)})}function J0(e,t){return new jR({check:"string_format",format:"includes",...ie(t),includes:e})}function Y0(e,t){return new IR({check:"string_format",format:"starts_with",...ie(t),prefix:e})}function X0(e,t){return new TR({check:"string_format",format:"ends_with",...ie(t),suffix:e})}function DM(e,t,r){return new zR({check:"property",property:e,schema:t,...ie(r)})}function Q0(e,t){return new AR({check:"mime_type",mime:e,...ie(t)})}function tl(e){return new DR({check:"overwrite",tx:e})}function W0(e){return tl(t=>t.normalize(e))}function ek(){return tl(e=>e.trim())}function tk(){return tl(e=>e.toLowerCase())}function nk(){return tl(e=>e.toUpperCase())}function UM(e,t,r){return new e({type:"array",element:t,...ie(r)})}function Uie(e,t,r){return new e({type:"union",options:t,...ie(r)})}function Cie(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...ie(i)})}function Rie(e,t,r){return new e({type:"intersection",left:t,right:r})}function Mie(e,t,r,i){const n=r instanceof Qe,a=n?i:r,l=n?r:null;return new e({type:"tuple",items:t,rest:l,...ie(a)})}function Lie(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...ie(i)})}function Pie(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...ie(i)})}function Zie(e,t,r){return new e({type:"set",valueType:t,...ie(r)})}function Bie(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...ie(r)})}function Fie(e,t,r){return new e({type:"enum",entries:t,...ie(r)})}function Vie(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ie(r)})}function CM(e,t){return new e({type:"file",...ie(t)})}function qie(e,t){return new e({type:"transform",transform:t})}function Gie(e,t){return new e({type:"optional",innerType:t})}function Hie(e,t){return new e({type:"nullable",innerType:t})}function Kie(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Iv(r)}})}function Jie(e,t,r){return new e({type:"nonoptional",innerType:t,...ie(r)})}function Yie(e,t){return new e({type:"success",innerType:t})}function Xie(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Qie(e,t,r){return new e({type:"pipe",in:t,out:r})}function Wie(e,t){return new e({type:"readonly",innerType:t})}function eae(e,t,r){return new e({type:"template_literal",parts:t,...ie(r)})}function tae(e,t){return new e({type:"lazy",getter:t})}function nae(e,t){return new e({type:"promise",innerType:t})}function RM(e,t,r){const i=ie(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function MM(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ie(r)})}function LM(e){const t=PM(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(_s(i,r.value,t._zod.def));else{const n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(_s(n))}},e(r.value,r)));return t}function PM(e,t){const r=new en({check:"custom",...ie(t)});return r._zod.check=e,r}function ZM(e,t){const r=ie(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(k=>typeof k=="string"?k.toLowerCase():k),n=n.map(k=>typeof k=="string"?k.toLowerCase():k));const a=new Set(i),l=new Set(n),d=e.Codec??S0,f=e.Boolean??y0,h=e.String??Wd,p=new h({type:"string",error:r.error}),g=new f({type:"boolean",error:r.error}),b=new d({type:"pipe",in:p,out:g,transform:((k,w)=>{let I=k;return r.case!=="sensitive"&&(I=I.toLowerCase()),a.has(I)?!0:l.has(I)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...l],input:w.value,inst:b,continue:!1}),{})}),reverseTransform:((k,w)=>k===!0?i[0]||"true":n[0]||"false"),error:r.error});return b}function ef(e,t,r,i={}){const n=ie(i),a={...ie(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:d=>r.test(d),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}class Xb{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??pu,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,r={path:[],schemaPath:[]}){var g,b,k;var i;const n=t._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},l=this.seen.get(t);if(l)return l.count++,r.schemaPath.includes(t)&&(l.cycle=r.path),l.schema;const d={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,d);const f=(b=(g=t._zod).toJSONSchema)==null?void 0:b.call(g);if(f)d.schema=f;else{const w={...r,schemaPath:[...r.schemaPath,t],path:r.path},I=t._zod.parent;if(I)d.ref=I,this.process(I,w),this.seen.get(I).isParent=!0;else{const x=d.schema;switch(n.type){case"string":{const $=x;$.type="string";const{minimum:j,maximum:N,format:z,patterns:T,contentEncoding:E}=t._zod.bag;if(typeof j=="number"&&($.minLength=j),typeof N=="number"&&($.maxLength=N),z&&($.format=a[z]??z,$.format===""&&delete $.format),E&&($.contentEncoding=E),T&&T.size>0){const C=[...T];C.length===1?$.pattern=C[0].source:C.length>1&&(d.schema.allOf=[...C.map(ae=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:ae.source}))])}break}case"number":{const $=x,{minimum:j,maximum:N,format:z,multipleOf:T,exclusiveMaximum:E,exclusiveMinimum:C}=t._zod.bag;typeof z=="string"&&z.includes("int")?$.type="integer":$.type="number",typeof C=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.minimum=C,$.exclusiveMinimum=!0):$.exclusiveMinimum=C),typeof j=="number"&&($.minimum=j,typeof C=="number"&&this.target!=="draft-4"&&(C>=j?delete $.minimum:delete $.exclusiveMinimum)),typeof E=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.maximum=E,$.exclusiveMaximum=!0):$.exclusiveMaximum=E),typeof N=="number"&&($.maximum=N,typeof E=="number"&&this.target!=="draft-4"&&(E<=N?delete $.maximum:delete $.exclusiveMaximum)),typeof T=="number"&&($.multipleOf=T);break}case"boolean":{const $=x;$.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":{this.target==="openapi-3.0"?(x.type="string",x.nullable=!0,x.enum=[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 $=x,{minimum:j,maximum:N}=t._zod.bag;typeof j=="number"&&($.minItems=j),typeof N=="number"&&($.maxItems=N),$.type="array",$.items=this.process(n.element,{...w,path:[...w.path,"items"]});break}case"object":{const $=x;$.type="object",$.properties={};const j=n.shape;for(const T in j)$.properties[T]=this.process(j[T],{...w,path:[...w.path,"properties",T]});const N=new Set(Object.keys(j)),z=new Set([...N].filter(T=>{const E=n.shape[T]._zod;return this.io==="input"?E.optin===void 0:E.optout===void 0}));z.size>0&&($.required=Array.from(z)),((k=n.catchall)==null?void 0:k._zod.def.type)==="never"?$.additionalProperties=!1:n.catchall?n.catchall&&($.additionalProperties=this.process(n.catchall,{...w,path:[...w.path,"additionalProperties"]})):this.io==="output"&&($.additionalProperties=!1);break}case"union":{const $=x,j=n.options.map((N,z)=>this.process(N,{...w,path:[...w.path,"anyOf",z]}));$.anyOf=j;break}case"intersection":{const $=x,j=this.process(n.left,{...w,path:[...w.path,"allOf",0]}),N=this.process(n.right,{...w,path:[...w.path,"allOf",1]}),z=E=>"allOf"in E&&Object.keys(E).length===1,T=[...z(j)?j.allOf:[j],...z(N)?N.allOf:[N]];$.allOf=T;break}case"tuple":{const $=x;$.type="array";const j=this.target==="draft-2020-12"?"prefixItems":"items",N=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",z=n.items.map((ae,ue)=>this.process(ae,{...w,path:[...w.path,j,ue]})),T=n.rest?this.process(n.rest,{...w,path:[...w.path,N,...this.target==="openapi-3.0"?[n.items.length]:[]]}):null;this.target==="draft-2020-12"?($.prefixItems=z,T&&($.items=T)):this.target==="openapi-3.0"?($.items={anyOf:z},T&&$.items.anyOf.push(T),$.minItems=z.length,T||($.maxItems=z.length)):($.items=z,T&&($.additionalItems=T));const{minimum:E,maximum:C}=t._zod.bag;typeof E=="number"&&($.minItems=E),typeof C=="number"&&($.maxItems=C);break}case"record":{const $=x;$.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&($.propertyNames=this.process(n.keyType,{...w,path:[...w.path,"propertyNames"]})),$.additionalProperties=this.process(n.valueType,{...w,path:[...w.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 $=x,j=QS(n.entries);j.every(N=>typeof N=="number")&&($.type="number"),j.every(N=>typeof N=="string")&&($.type="string"),$.enum=j;break}case"literal":{const $=x,j=[];for(const N of n.values)if(N===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof N=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");j.push(Number(N))}else j.push(N);if(j.length!==0)if(j.length===1){const N=j[0];$.type=N===null?"null":typeof N,this.target==="draft-4"||this.target==="openapi-3.0"?$.enum=[N]:$.const=N}else j.every(N=>typeof N=="number")&&($.type="number"),j.every(N=>typeof N=="string")&&($.type="string"),j.every(N=>typeof N=="boolean")&&($.type="string"),j.every(N=>N===null)&&($.type="null"),$.enum=j;break}case"file":{const $=x,j={type:"string",format:"binary",contentEncoding:"binary"},{minimum:N,maximum:z,mime:T}=t._zod.bag;N!==void 0&&(j.minLength=N),z!==void 0&&(j.maxLength=z),T?T.length===1?(j.contentMediaType=T[0],Object.assign($,j)):$.anyOf=T.map(E=>({...j,contentMediaType:E})):Object.assign($,j);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const $=this.process(n.innerType,w);this.target==="openapi-3.0"?(d.ref=n.innerType,x.nullable=!0):x.anyOf=[$,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"success":{const $=x;$.type="boolean";break}case"default":{this.process(n.innerType,w),d.ref=n.innerType,x.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,w),d.ref=n.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,w),d.ref=n.innerType;let $;try{$=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=$;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const $=x,j=t._zod.pattern;if(!j)throw new Error("Pattern not found in template literal");$.type="string",$.pattern=j.source;break}case"pipe":{const $=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process($,w),d.ref=$;break}case"readonly":{this.process(n.innerType,w),d.ref=n.innerType,x.readOnly=!0;break}case"promise":{this.process(n.innerType,w),d.ref=n.innerType;break}case"optional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"lazy":{const $=t._zod.innerType;this.process($,w),d.ref=$;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const h=this.metadataRegistry.get(t);return h&&Object.assign(d.schema,h),this.io==="input"&&vn(t)&&(delete d.schema.examples,delete d.schema.default),this.io==="input"&&d.schema._prefault&&((i=d.schema).default??(i.default=d.schema._prefault)),delete d.schema._prefault,this.seen.get(t).schema}emit(t,r){var p,g,b,k,w,I;const i={cycles:(r==null?void 0:r.cycles)??"ref",reused:(r==null?void 0:r.reused)??"inline",external:(r==null?void 0:r.external)??void 0},n=this.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=x=>{var T;const $=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const E=(T=i.external.registry.get(x[0]))==null?void 0:T.id,C=i.external.uri??(ue=>ue);if(E)return{ref:C(E)};const ae=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=ae,{defId:ae,ref:`${C("__shared")}#/${$}/${ae}`}}if(x[1]===n)return{ref:"#"};const N=`#/${$}/`,z=x[1].schema.id??`__schema${this.counter++}`;return{defId:z,ref:N+z}},l=x=>{if(x[1].schema.$ref)return;const $=x[1],{ref:j,defId:N}=a(x);$.def={...$.schema},N&&($.defId=N);const z=$.schema;for(const T in z)delete z[T];z.$ref=j};if(i.cycles==="throw")for(const x of this.seen.entries()){const $=x[1];if($.cycle)throw new Error(`Cycle detected: #/${(p=$.cycle)==null?void 0:p.join("/")}/<root>
|
|
197
|
-
|
|
198
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of this.seen.entries()){const $=x[1];if(t===x[0]){l(x);continue}if(i.external){const N=(g=i.external.registry.get(x[0]))==null?void 0:g.id;if(t!==x[0]&&N){l(x);continue}}if((b=this.metadataRegistry.get(x[0]))==null?void 0:b.id){l(x);continue}if($.cycle){l(x);continue}if($.count>1&&i.reused==="ref"){l(x);continue}}const d=(x,$)=>{const j=this.seen.get(x),N=j.def??j.schema,z={...N};if(j.ref===null)return;const T=j.ref;if(j.ref=null,T){d(T,$);const E=this.seen.get(T).schema;E.$ref&&($.target==="draft-7"||$.target==="draft-4"||$.target==="openapi-3.0")?(N.allOf=N.allOf??[],N.allOf.push(E)):(Object.assign(N,E),Object.assign(N,z))}j.isParent||this.override({zodSchema:x,jsonSchema:N,path:j.path??[]})};for(const x of[...this.seen.entries()].reverse())d(x[0],{target:this.target});const f={};if(this.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?f.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?f.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),(k=i.external)!=null&&k.uri){const x=(w=i.external.registry.get(t))==null?void 0:w.id;if(!x)throw new Error("Schema is missing an `id` property");f.$id=i.external.uri(x)}Object.assign(f,n.def);const h=((I=i.external)==null?void 0:I.defs)??{};for(const x of this.seen.entries()){const $=x[1];$.def&&$.defId&&(h[$.defId]=$.def)}i.external||Object.keys(h).length>0&&(this.target==="draft-2020-12"?f.$defs=h:f.definitions=h);try{return JSON.parse(JSON.stringify(f))}catch{throw new Error("Error converting schema to JSON.")}}}function BM(e,t){if(e instanceof k0){const i=new Xb(t),n={};for(const d of e._idmap.entries()){const[f,h]=d;i.process(h)}const a={},l={registry:e,uri:t==null?void 0:t.uri,defs:n};for(const d of e._idmap.entries()){const[f,h]=d;a[f]=i.emit(h,{...t,external:l})}if(Object.keys(n).length>0){const d=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[d]:n}}return{schemas:a}}const r=new Xb(t);return r.process(e),r.emit(e,t)}function vn(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;switch(n.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 vn(n.element,r);case"object":{for(const a in n.shape)if(vn(n.shape[a],r))return!0;return!1}case"union":{for(const a of n.options)if(vn(a,r))return!0;return!1}case"intersection":return vn(n.left,r)||vn(n.right,r);case"tuple":{for(const a of n.items)if(vn(a,r))return!0;return!!(n.rest&&vn(n.rest,r))}case"record":return vn(n.keyType,r)||vn(n.valueType,r);case"map":return vn(n.keyType,r)||vn(n.valueType,r);case"set":return vn(n.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return vn(n.innerType,r);case"lazy":return vn(n.getter(),r);case"default":return vn(n.innerType,r);case"prefault":return vn(n.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return vn(n.in,r)||vn(n.out,r);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${n.type}`)}const rae=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),iae=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:h2,$ZodArray:b2,$ZodAsyncError:Eu,$ZodBase64:n2,$ZodBase64URL:i2,$ZodBigInt:b0,$ZodBigIntFormat:c2,$ZodBoolean:y0,$ZodCIDRv4:e2,$ZodCIDRv6:t2,$ZodCUID:FR,$ZodCUID2:VR,$ZodCatch:L2,$ZodCheck:en,$ZodCheckBigIntFormat:bR,$ZodCheckEndsWith:TR,$ZodCheckGreaterThan:v0,$ZodCheckIncludes:jR,$ZodCheckLengthEquals:xR,$ZodCheckLessThan:h0,$ZodCheckLowerCase:ER,$ZodCheckMaxLength:kR,$ZodCheckMaxSize:_R,$ZodCheckMimeType:AR,$ZodCheckMinLength:wR,$ZodCheckMinSize:$R,$ZodCheckMultipleOf:gR,$ZodCheckNumberFormat:yR,$ZodCheckOverwrite:DR,$ZodCheckProperty:zR,$ZodCheckRegex:OR,$ZodCheckSizeEquals:SR,$ZodCheckStartsWith:IR,$ZodCheckStringFormat:Qd,$ZodCheckUpperCase:NR,$ZodCodec:S0,$ZodCustom:H2,$ZodCustomStringFormat:l2,$ZodDate:y2,$ZodDefault:U2,$ZodDiscriminatedUnion:w2,$ZodE164:a2,$ZodEmail:LR,$ZodEmoji:ZR,$ZodEncodeError:Nv,$ZodEnum:j2,$ZodError:e0,$ZodFile:T2,$ZodFunction:V2,$ZodGUID:RR,$ZodIPv4:QR,$ZodIPv6:WR,$ZodISODate:JR,$ZodISODateTime:KR,$ZodISODuration:XR,$ZodISOTime:YR,$ZodIntersection:x2,$ZodJWT:u2,$ZodKSUID:HR,$ZodLazy:G2,$ZodLiteral:I2,$ZodMap:E2,$ZodNaN:P2,$ZodNanoID:BR,$ZodNever:p2,$ZodNonOptional:R2,$ZodNull:m2,$ZodNullable:D2,$ZodNumber:g0,$ZodNumberFormat:s2,$ZodObject:S2,$ZodObjectJIT:k2,$ZodOptional:A2,$ZodPipe:Z2,$ZodPrefault:C2,$ZodPromise:q2,$ZodReadonly:B2,$ZodRealError:Er,$ZodRecord:O2,$ZodRegistry:k0,$ZodSet:N2,$ZodString:Wd,$ZodStringFormat:Zt,$ZodSuccess:M2,$ZodSymbol:d2,$ZodTemplateLiteral:F2,$ZodTransform:z2,$ZodTuple:$0,$ZodType:Qe,$ZodULID:qR,$ZodURL:PR,$ZodUUID:MR,$ZodUndefined:f2,$ZodUnion:_0,$ZodUnknown:v2,$ZodVoid:g2,$ZodXID:GR,$brand:h6,$constructor:B,$input:W2,$output:Q2,Doc:UR,JSONSchema:rae,JSONSchemaGenerator:Xb,NEVER:m6,TimePrecision:nM,_any:kM,_array:UM,_base64:Z0,_base64url:B0,_bigint:pM,_boolean:hM,_catch:Xie,_check:PM,_cidrv4:L0,_cidrv6:P0,_coercedBigint:gM,_coercedBoolean:vM,_coercedDate:NM,_coercedNumber:lM,_coercedString:tM,_cuid:z0,_cuid2:A0,_custom:RM,_date:EM,_decode:i0,_decodeAsync:o0,_default:Kie,_discriminatedUnion:Cie,_e164:F0,_email:x0,_emoji:I0,_encode:r0,_encodeAsync:a0,_endsWith:X0,_enum:Bie,_file:CM,_float32:cM,_float64:dM,_gt:Pu,_gte:yr,_guid:Nh,_includes:J0,_int:sM,_int32:fM,_int64:yM,_intersection:Rie,_ipv4:R0,_ipv6:M0,_isoDate:iM,_isoDateTime:rM,_isoDuration:oM,_isoTime:aM,_jwt:V0,_ksuid:C0,_lazy:tae,_length:Cv,_literal:Vie,_lowercase:H0,_lt:Lu,_lte:bi,_map:Pie,_max:bi,_maxLength:Uv,_maxSize:Dv,_mime:Q0,_min:yr,_minLength:Ss,_minSize:fd,_multipleOf:dd,_nan:jM,_nanoid:T0,_nativeEnum:Fie,_negative:TM,_never:xM,_nonnegative:AM,_nonoptional:Jie,_nonpositive:zM,_normalize:W0,_null:SM,_nullable:Hie,_number:uM,_optional:Gie,_overwrite:tl,_parse:Gd,_parseAsync:Hd,_pipe:Qie,_positive:IM,_promise:nae,_property:DM,_readonly:Wie,_record:Lie,_refine:MM,_regex:G0,_safeDecode:l0,_safeDecodeAsync:c0,_safeEncode:u0,_safeEncodeAsync:s0,_safeParse:Kd,_safeParseAsync:Jd,_set:Zie,_size:q0,_startsWith:Y0,_string:eM,_stringFormat:ef,_stringbool:ZM,_success:Yie,_superRefine:LM,_symbol:_M,_templateLiteral:eae,_toLowerCase:tk,_toUpperCase:nk,_transform:qie,_trim:ek,_tuple:Mie,_uint32:mM,_uint64:bM,_ulid:D0,_undefined:$M,_union:Uie,_unknown:wM,_uppercase:K0,_url:Av,_uuid:O0,_uuidv4:E0,_uuidv6:N0,_uuidv7:j0,_void:OM,_xid:U0,clone:ei,config:qn,decode:pne,decodeAsync:yne,encode:vne,encodeAsync:gne,flattenError:t0,formatError:n0,globalConfig:wh,globalRegistry:pu,isValidBase64:p0,isValidBase64URL:r2,isValidJWT:o2,locales:X2,parse:Kb,parseAsync:Jb,prettifyError:D6,regexes:m0,registry:w0,safeDecode:_ne,safeDecodeAsync:Sne,safeEncode:bne,safeEncodeAsync:$ne,safeParse:U6,safeParseAsync:C6,toDotPath:A6,toJSONSchema:BM,treeifyError:z6,util:I6,version:CR},Symbol.toStringTag,{value:"Module"})),rk=B("ZodISODateTime",(e,t)=>{KR.init(e,t),Gt.init(e,t)});function FM(e){return rM(rk,e)}const ik=B("ZodISODate",(e,t)=>{JR.init(e,t),Gt.init(e,t)});function VM(e){return iM(ik,e)}const ak=B("ZodISOTime",(e,t)=>{YR.init(e,t),Gt.init(e,t)});function qM(e){return aM(ak,e)}const ok=B("ZodISODuration",(e,t)=>{XR.init(e,t),Gt.init(e,t)});function GM(e){return oM(ok,e)}const aae=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:ik,ZodISODateTime:rk,ZodISODuration:ok,ZodISOTime:ak,date:VM,datetime:FM,duration:GM,time:qM},Symbol.toStringTag,{value:"Module"})),HM=(e,t)=>{e0.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>n0(e,r)},flatten:{value:r=>t0(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,xh,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,xh,2)}},isEmpty:{get(){return e.issues.length===0}}})},oae=B("ZodError",HM),Nr=B("ZodError",HM,{Parent:Error}),KM=Gd(Nr),JM=Hd(Nr),YM=Kd(Nr),XM=Jd(Nr),QM=r0(Nr),WM=i0(Nr),eL=a0(Nr),tL=o0(Nr),nL=u0(Nr),rL=l0(Nr),iL=s0(Nr),aL=c0(Nr),at=B("ZodType",(e,t)=>(Qe.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Za(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(r,i)=>ei(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>KM(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>YM(e,r,i),e.parseAsync=async(r,i)=>JM(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>XM(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>QM(e,r,i),e.decode=(r,i)=>WM(e,r,i),e.encodeAsync=async(r,i)=>eL(e,r,i),e.decodeAsync=async(r,i)=>tL(e,r,i),e.safeEncode=(r,i)=>nL(e,r,i),e.safeDecode=(r,i)=>rL(e,r,i),e.safeEncodeAsync=async(r,i)=>iL(e,r,i),e.safeDecodeAsync=async(r,i)=>aL(e,r,i),e.refine=(r,i)=>e.check(qL(r,i)),e.superRefine=r=>e.check(GL(r)),e.overwrite=r=>e.check(tl(r)),e.optional=()=>Ih(e),e.nullable=()=>Th(e),e.nullish=()=>Ih(Th(e)),e.nonoptional=r=>AL(e,r),e.array=()=>Bv(e),e.or=r=>Nk([e,r]),e.and=r=>bL(e,r),e.transform=r=>zh(e,Tk(r)),e.default=r=>IL(e,r),e.prefault=r=>zL(e,r),e.catch=r=>CL(e,r),e.pipe=r=>zh(e,r),e.readonly=()=>LL(e),e.describe=r=>{const i=e.clone();return pu.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){var r;return(r=pu.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return pu.get(e);const i=e.clone();return pu.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),uk=B("_ZodString",(e,t)=>{Wd.init(e,t),at.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(G0(...i)),e.includes=(...i)=>e.check(J0(...i)),e.startsWith=(...i)=>e.check(Y0(...i)),e.endsWith=(...i)=>e.check(X0(...i)),e.min=(...i)=>e.check(Ss(...i)),e.max=(...i)=>e.check(Uv(...i)),e.length=(...i)=>e.check(Cv(...i)),e.nonempty=(...i)=>e.check(Ss(1,...i)),e.lowercase=i=>e.check(H0(i)),e.uppercase=i=>e.check(K0(i)),e.trim=()=>e.check(ek()),e.normalize=(...i)=>e.check(W0(...i)),e.toLowerCase=()=>e.check(tk()),e.toUpperCase=()=>e.check(nk())}),Rv=B("ZodString",(e,t)=>{Wd.init(e,t),uk.init(e,t),e.email=r=>e.check(x0(lk,r)),e.url=r=>e.check(Av(Mv,r)),e.jwt=r=>e.check(V0(kk,r)),e.emoji=r=>e.check(I0(sk,r)),e.guid=r=>e.check(Nh(jh,r)),e.uuid=r=>e.check(O0(Ea,r)),e.uuidv4=r=>e.check(E0(Ea,r)),e.uuidv6=r=>e.check(N0(Ea,r)),e.uuidv7=r=>e.check(j0(Ea,r)),e.nanoid=r=>e.check(T0(ck,r)),e.guid=r=>e.check(Nh(jh,r)),e.cuid=r=>e.check(z0(dk,r)),e.cuid2=r=>e.check(A0(fk,r)),e.ulid=r=>e.check(D0(mk,r)),e.base64=r=>e.check(Z0(_k,r)),e.base64url=r=>e.check(B0($k,r)),e.xid=r=>e.check(U0(hk,r)),e.ksuid=r=>e.check(C0(vk,r)),e.ipv4=r=>e.check(R0(pk,r)),e.ipv6=r=>e.check(M0(gk,r)),e.cidrv4=r=>e.check(L0(yk,r)),e.cidrv6=r=>e.check(P0(bk,r)),e.e164=r=>e.check(F0(Sk,r)),e.datetime=r=>e.check(FM(r)),e.date=r=>e.check(VM(r)),e.time=r=>e.check(qM(r)),e.duration=r=>e.check(GM(r))});function Qb(e){return eM(Rv,e)}const Gt=B("ZodStringFormat",(e,t)=>{Zt.init(e,t),uk.init(e,t)}),lk=B("ZodEmail",(e,t)=>{LR.init(e,t),Gt.init(e,t)});function uae(e){return x0(lk,e)}const jh=B("ZodGUID",(e,t)=>{RR.init(e,t),Gt.init(e,t)});function lae(e){return Nh(jh,e)}const Ea=B("ZodUUID",(e,t)=>{MR.init(e,t),Gt.init(e,t)});function sae(e){return O0(Ea,e)}function cae(e){return E0(Ea,e)}function dae(e){return N0(Ea,e)}function fae(e){return j0(Ea,e)}const Mv=B("ZodURL",(e,t)=>{PR.init(e,t),Gt.init(e,t)});function mae(e){return Av(Mv,e)}function hae(e){return Av(Mv,{protocol:/^https?$/,hostname:W6,...ie(e)})}const sk=B("ZodEmoji",(e,t)=>{ZR.init(e,t),Gt.init(e,t)});function vae(e){return I0(sk,e)}const ck=B("ZodNanoID",(e,t)=>{BR.init(e,t),Gt.init(e,t)});function pae(e){return T0(ck,e)}const dk=B("ZodCUID",(e,t)=>{FR.init(e,t),Gt.init(e,t)});function gae(e){return z0(dk,e)}const fk=B("ZodCUID2",(e,t)=>{VR.init(e,t),Gt.init(e,t)});function yae(e){return A0(fk,e)}const mk=B("ZodULID",(e,t)=>{qR.init(e,t),Gt.init(e,t)});function bae(e){return D0(mk,e)}const hk=B("ZodXID",(e,t)=>{GR.init(e,t),Gt.init(e,t)});function _ae(e){return U0(hk,e)}const vk=B("ZodKSUID",(e,t)=>{HR.init(e,t),Gt.init(e,t)});function $ae(e){return C0(vk,e)}const pk=B("ZodIPv4",(e,t)=>{QR.init(e,t),Gt.init(e,t)});function Sae(e){return R0(pk,e)}const gk=B("ZodIPv6",(e,t)=>{WR.init(e,t),Gt.init(e,t)});function kae(e){return M0(gk,e)}const yk=B("ZodCIDRv4",(e,t)=>{e2.init(e,t),Gt.init(e,t)});function wae(e){return L0(yk,e)}const bk=B("ZodCIDRv6",(e,t)=>{t2.init(e,t),Gt.init(e,t)});function xae(e){return P0(bk,e)}const _k=B("ZodBase64",(e,t)=>{n2.init(e,t),Gt.init(e,t)});function Oae(e){return Z0(_k,e)}const $k=B("ZodBase64URL",(e,t)=>{i2.init(e,t),Gt.init(e,t)});function Eae(e){return B0($k,e)}const Sk=B("ZodE164",(e,t)=>{a2.init(e,t),Gt.init(e,t)});function Nae(e){return F0(Sk,e)}const kk=B("ZodJWT",(e,t)=>{u2.init(e,t),Gt.init(e,t)});function jae(e){return V0(kk,e)}const tf=B("ZodCustomStringFormat",(e,t)=>{l2.init(e,t),Gt.init(e,t)});function Iae(e,t,r={}){return ef(tf,e,t,r)}function Tae(e){return ef(tf,"hostname",f0,e)}function zae(e){return ef(tf,"hex",vR,e)}function Aae(e,t){const r=(t==null?void 0:t.enc)??"hex",i=`${e}_${r}`,n=m0[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return ef(tf,i,n,t)}const Lv=B("ZodNumber",(e,t)=>{g0.init(e,t),at.init(e,t),e.gt=(i,n)=>e.check(Pu(i,n)),e.gte=(i,n)=>e.check(yr(i,n)),e.min=(i,n)=>e.check(yr(i,n)),e.lt=(i,n)=>e.check(Lu(i,n)),e.lte=(i,n)=>e.check(bi(i,n)),e.max=(i,n)=>e.check(bi(i,n)),e.int=i=>e.check(Wb(i)),e.safe=i=>e.check(Wb(i)),e.positive=i=>e.check(Pu(0,i)),e.nonnegative=i=>e.check(yr(0,i)),e.negative=i=>e.check(Lu(0,i)),e.nonpositive=i=>e.check(bi(0,i)),e.multipleOf=(i,n)=>e.check(dd(i,n)),e.step=(i,n)=>e.check(dd(i,n)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function oL(e){return uM(Lv,e)}const As=B("ZodNumberFormat",(e,t)=>{s2.init(e,t),Lv.init(e,t)});function Wb(e){return sM(As,e)}function Dae(e){return cM(As,e)}function Uae(e){return dM(As,e)}function Cae(e){return fM(As,e)}function Rae(e){return mM(As,e)}const Pv=B("ZodBoolean",(e,t)=>{y0.init(e,t),at.init(e,t)});function uL(e){return hM(Pv,e)}const Zv=B("ZodBigInt",(e,t)=>{b0.init(e,t),at.init(e,t),e.gte=(i,n)=>e.check(yr(i,n)),e.min=(i,n)=>e.check(yr(i,n)),e.gt=(i,n)=>e.check(Pu(i,n)),e.gte=(i,n)=>e.check(yr(i,n)),e.min=(i,n)=>e.check(yr(i,n)),e.lt=(i,n)=>e.check(Lu(i,n)),e.lte=(i,n)=>e.check(bi(i,n)),e.max=(i,n)=>e.check(bi(i,n)),e.positive=i=>e.check(Pu(BigInt(0),i)),e.negative=i=>e.check(Lu(BigInt(0),i)),e.nonpositive=i=>e.check(bi(BigInt(0),i)),e.nonnegative=i=>e.check(yr(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(dd(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Mae(e){return pM(Zv,e)}const wk=B("ZodBigIntFormat",(e,t)=>{c2.init(e,t),Zv.init(e,t)});function Lae(e){return yM(wk,e)}function Pae(e){return bM(wk,e)}const lL=B("ZodSymbol",(e,t)=>{d2.init(e,t),at.init(e,t)});function Zae(e){return _M(lL,e)}const sL=B("ZodUndefined",(e,t)=>{f2.init(e,t),at.init(e,t)});function Bae(e){return $M(sL,e)}const cL=B("ZodNull",(e,t)=>{m2.init(e,t),at.init(e,t)});function dL(e){return SM(cL,e)}const fL=B("ZodAny",(e,t)=>{h2.init(e,t),at.init(e,t)});function Fae(){return kM(fL)}const mL=B("ZodUnknown",(e,t)=>{v2.init(e,t),at.init(e,t)});function ks(){return wM(mL)}const hL=B("ZodNever",(e,t)=>{p2.init(e,t),at.init(e,t)});function xk(e){return xM(hL,e)}const vL=B("ZodVoid",(e,t)=>{g2.init(e,t),at.init(e,t)});function Vae(e){return OM(vL,e)}const Ok=B("ZodDate",(e,t)=>{y2.init(e,t),at.init(e,t),e.min=(i,n)=>e.check(yr(i,n)),e.max=(i,n)=>e.check(bi(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function qae(e){return EM(Ok,e)}const pL=B("ZodArray",(e,t)=>{b2.init(e,t),at.init(e,t),e.element=t.element,e.min=(r,i)=>e.check(Ss(r,i)),e.nonempty=r=>e.check(Ss(1,r)),e.max=(r,i)=>e.check(Uv(r,i)),e.length=(r,i)=>e.check(Cv(r,i)),e.unwrap=()=>e.element});function Bv(e,t){return UM(pL,e,t)}function Gae(e){const t=e._zod.def.shape;return Ik(Object.keys(t))}const Fv=B("ZodObject",(e,t)=>{k2.init(e,t),at.init(e,t),ct(e,"shape",()=>t.shape),e.keyof=()=>Ik(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ks()}),e.loose=()=>e.clone({...e._zod.def,catchall:ks()}),e.strict=()=>e.clone({...e._zod.def,catchall:xk()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>k6(e,r),e.safeExtend=r=>w6(e,r),e.merge=r=>x6(e,r),e.pick=r=>$6(e,r),e.omit=r=>S6(e,r),e.partial=(...r)=>O6(zk,e,r[0]),e.required=(...r)=>E6(Ak,e,r[0])});function Hae(e,t){const r={type:"object",shape:e??{},...ie(t)};return new Fv(r)}function Kae(e,t){return new Fv({type:"object",shape:e,catchall:xk(),...ie(t)})}function Jae(e,t){return new Fv({type:"object",shape:e,catchall:ks(),...ie(t)})}const Ek=B("ZodUnion",(e,t)=>{_0.init(e,t),at.init(e,t),e.options=t.options});function Nk(e,t){return new Ek({type:"union",options:e,...ie(t)})}const gL=B("ZodDiscriminatedUnion",(e,t)=>{Ek.init(e,t),w2.init(e,t)});function Yae(e,t,r){return new gL({type:"union",options:t,discriminator:e,...ie(r)})}const yL=B("ZodIntersection",(e,t)=>{x2.init(e,t),at.init(e,t)});function bL(e,t){return new yL({type:"intersection",left:e,right:t})}const _L=B("ZodTuple",(e,t)=>{$0.init(e,t),at.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function $L(e,t,r){const i=t instanceof Qe,n=i?r:t,a=i?t:null;return new _L({type:"tuple",items:e,rest:a,...ie(n)})}const jk=B("ZodRecord",(e,t)=>{O2.init(e,t),at.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function SL(e,t,r){return new jk({type:"record",keyType:e,valueType:t,...ie(r)})}function Xae(e,t,r){const i=ei(e);return i._zod.values=void 0,new jk({type:"record",keyType:i,valueType:t,...ie(r)})}const kL=B("ZodMap",(e,t)=>{E2.init(e,t),at.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Qae(e,t,r){return new kL({type:"map",keyType:e,valueType:t,...ie(r)})}const wL=B("ZodSet",(e,t)=>{N2.init(e,t),at.init(e,t),e.min=(...r)=>e.check(fd(...r)),e.nonempty=r=>e.check(fd(1,r)),e.max=(...r)=>e.check(Dv(...r)),e.size=(...r)=>e.check(q0(...r))});function Wae(e,t){return new wL({type:"set",valueType:e,...ie(t)})}const md=B("ZodEnum",(e,t)=>{j2.init(e,t),at.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const a={};for(const l of i)if(r.has(l))a[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new md({...t,checks:[],...ie(n),entries:a})},e.exclude=(i,n)=>{const a={...t.entries};for(const l of i)if(r.has(l))delete a[l];else throw new Error(`Key ${l} not found in enum`);return new md({...t,checks:[],...ie(n),entries:a})}});function Ik(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new md({type:"enum",entries:r,...ie(t)})}function eoe(e,t){return new md({type:"enum",entries:e,...ie(t)})}const xL=B("ZodLiteral",(e,t)=>{I2.init(e,t),at.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 toe(e,t){return new xL({type:"literal",values:Array.isArray(e)?e:[e],...ie(t)})}const OL=B("ZodFile",(e,t)=>{T2.init(e,t),at.init(e,t),e.min=(r,i)=>e.check(fd(r,i)),e.max=(r,i)=>e.check(Dv(r,i)),e.mime=(r,i)=>e.check(Q0(Array.isArray(r)?r:[r],i))});function noe(e){return CM(OL,e)}const EL=B("ZodTransform",(e,t)=>{z2.init(e,t),at.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nv(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(_s(a,r.value,t));else{const l=a;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=e),r.issues.push(_s(l))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(a=>(r.value=a,r)):(r.value=n,r)}});function Tk(e){return new EL({type:"transform",transform:e})}const zk=B("ZodOptional",(e,t)=>{A2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ih(e){return new zk({type:"optional",innerType:e})}const NL=B("ZodNullable",(e,t)=>{D2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Th(e){return new NL({type:"nullable",innerType:e})}function roe(e){return Ih(Th(e))}const jL=B("ZodDefault",(e,t)=>{U2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function IL(e,t){return new jL({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Iv(t)}})}const TL=B("ZodPrefault",(e,t)=>{C2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zL(e,t){return new TL({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Iv(t)}})}const Ak=B("ZodNonOptional",(e,t)=>{R2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function AL(e,t){return new Ak({type:"nonoptional",innerType:e,...ie(t)})}const DL=B("ZodSuccess",(e,t)=>{M2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ioe(e){return new DL({type:"success",innerType:e})}const UL=B("ZodCatch",(e,t)=>{L2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function CL(e,t){return new UL({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const RL=B("ZodNaN",(e,t)=>{P2.init(e,t),at.init(e,t)});function aoe(e){return jM(RL,e)}const Dk=B("ZodPipe",(e,t)=>{Z2.init(e,t),at.init(e,t),e.in=t.in,e.out=t.out});function zh(e,t){return new Dk({type:"pipe",in:e,out:t})}const Uk=B("ZodCodec",(e,t)=>{Dk.init(e,t),S0.init(e,t)});function ooe(e,t,r){return new Uk({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}const ML=B("ZodReadonly",(e,t)=>{B2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function LL(e){return new ML({type:"readonly",innerType:e})}const PL=B("ZodTemplateLiteral",(e,t)=>{F2.init(e,t),at.init(e,t)});function uoe(e,t){return new PL({type:"template_literal",parts:e,...ie(t)})}const ZL=B("ZodLazy",(e,t)=>{G2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.getter()});function BL(e){return new ZL({type:"lazy",getter:e})}const FL=B("ZodPromise",(e,t)=>{q2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function loe(e){return new FL({type:"promise",innerType:e})}const VL=B("ZodFunction",(e,t)=>{V2.init(e,t),at.init(e,t)});function jj(e){return new VL({type:"function",input:Array.isArray(e==null?void 0:e.input)?$L(e==null?void 0:e.input):(e==null?void 0:e.input)??Bv(ks()),output:(e==null?void 0:e.output)??ks()})}const Vv=B("ZodCustom",(e,t)=>{H2.init(e,t),at.init(e,t)});function soe(e){const t=new en({check:"custom"});return t._zod.check=e,t}function coe(e,t){return RM(Vv,e??(()=>!0),t)}function qL(e,t={}){return MM(Vv,e,t)}function GL(e){return LM(e)}function doe(e,t={error:`Input not instance of ${e.name}`}){const r=new Vv({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...ie(t)});return r._zod.bag.Class=e,r}const foe=(...e)=>ZM({Codec:Uk,Boolean:Pv,String:Rv},...e);function moe(e){const t=BL(()=>Nk([Qb(e),oL(),uL(),dL(),Bv(t),SL(Qb(),t)]));return t}function hoe(e,t){return zh(Tk(e),t)}const voe={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 poe(e){qn({customError:e})}function goe(){return qn().customError}var e_;e_||(e_={});function yoe(e){return tM(Rv,e)}function boe(e){return lM(Lv,e)}function _oe(e){return vM(Pv,e)}function $oe(e){return gM(Zv,e)}function Soe(e){return NM(Ok,e)}const koe=Object.freeze(Object.defineProperty({__proto__:null,bigint:$oe,boolean:_oe,date:Soe,number:boe,string:yoe},Symbol.toStringTag,{value:"Module"}));qn(K2());const HL=Object.freeze(Object.defineProperty({__proto__:null,$brand:h6,$input:W2,$output:Q2,NEVER:m6,TimePrecision:nM,ZodAny:fL,ZodArray:pL,ZodBase64:_k,ZodBase64URL:$k,ZodBigInt:Zv,ZodBigIntFormat:wk,ZodBoolean:Pv,ZodCIDRv4:yk,ZodCIDRv6:bk,ZodCUID:dk,ZodCUID2:fk,ZodCatch:UL,ZodCodec:Uk,ZodCustom:Vv,ZodCustomStringFormat:tf,ZodDate:Ok,ZodDefault:jL,ZodDiscriminatedUnion:gL,ZodE164:Sk,ZodEmail:lk,ZodEmoji:sk,ZodEnum:md,ZodError:oae,ZodFile:OL,get ZodFirstPartyTypeKind(){return e_},ZodFunction:VL,ZodGUID:jh,ZodIPv4:pk,ZodIPv6:gk,ZodISODate:ik,ZodISODateTime:rk,ZodISODuration:ok,ZodISOTime:ak,ZodIntersection:yL,ZodIssueCode:voe,ZodJWT:kk,ZodKSUID:vk,ZodLazy:ZL,ZodLiteral:xL,ZodMap:kL,ZodNaN:RL,ZodNanoID:ck,ZodNever:hL,ZodNonOptional:Ak,ZodNull:cL,ZodNullable:NL,ZodNumber:Lv,ZodNumberFormat:As,ZodObject:Fv,ZodOptional:zk,ZodPipe:Dk,ZodPrefault:TL,ZodPromise:FL,ZodReadonly:ML,ZodRealError:Nr,ZodRecord:jk,ZodSet:wL,ZodString:Rv,ZodStringFormat:Gt,ZodSuccess:DL,ZodSymbol:lL,ZodTemplateLiteral:PL,ZodTransform:EL,ZodTuple:_L,ZodType:at,ZodULID:mk,ZodURL:Mv,ZodUUID:Ea,ZodUndefined:sL,ZodUnion:Ek,ZodUnknown:mL,ZodVoid:vL,ZodXID:hk,_ZodString:uk,_default:IL,_function:jj,any:Fae,array:Bv,base64:Oae,base64url:Eae,bigint:Mae,boolean:uL,catch:CL,check:soe,cidrv4:wae,cidrv6:xae,clone:ei,codec:ooe,coerce:koe,config:qn,core:iae,cuid:gae,cuid2:yae,custom:coe,date:qae,decode:WM,decodeAsync:tL,discriminatedUnion:Yae,e164:Nae,email:uae,emoji:vae,encode:QM,encodeAsync:eL,endsWith:X0,enum:Ik,file:noe,flattenError:t0,float32:Dae,float64:Uae,formatError:n0,function:jj,getErrorMap:goe,globalRegistry:pu,gt:Pu,gte:yr,guid:lae,hash:Aae,hex:zae,hostname:Tae,httpUrl:hae,includes:J0,instanceof:doe,int:Wb,int32:Cae,int64:Lae,intersection:bL,ipv4:Sae,ipv6:kae,iso:aae,json:moe,jwt:jae,keyof:Gae,ksuid:$ae,lazy:BL,length:Cv,literal:toe,locales:X2,looseObject:Jae,lowercase:H0,lt:Lu,lte:bi,map:Qae,maxLength:Uv,maxSize:Dv,mime:Q0,minLength:Ss,minSize:fd,multipleOf:dd,nan:aoe,nanoid:pae,nativeEnum:eoe,negative:TM,never:xk,nonnegative:AM,nonoptional:AL,nonpositive:zM,normalize:W0,null:dL,nullable:Th,nullish:roe,number:oL,object:Hae,optional:Ih,overwrite:tl,parse:KM,parseAsync:JM,partialRecord:Xae,pipe:zh,positive:IM,prefault:zL,preprocess:hoe,prettifyError:D6,promise:loe,property:DM,readonly:LL,record:SL,refine:qL,regex:G0,regexes:m0,registry:w0,safeDecode:rL,safeDecodeAsync:aL,safeEncode:nL,safeEncodeAsync:iL,safeParse:YM,safeParseAsync:XM,set:Wae,setErrorMap:poe,size:q0,startsWith:Y0,strictObject:Kae,string:Qb,stringFormat:Iae,stringbool:foe,success:ioe,superRefine:GL,symbol:Zae,templateLiteral:uoe,toJSONSchema:BM,toLowerCase:tk,toUpperCase:nk,transform:Tk,treeifyError:z6,trim:ek,tuple:$L,uint32:Rae,uint64:Pae,ulid:bae,undefined:Bae,union:Nk,unknown:ks,uppercase:K0,url:mae,util:I6,uuid:sae,uuidv4:cae,uuidv6:dae,uuidv7:fae,void:Vae,xid:_ae},Symbol.toStringTag,{value:"Module"})),KL=()=>HL.string().trim().min(1,"Base URL is required").refine(e=>URL.canParse(e),"Base URL is not a valid URL").transform(e=>new URL(e)).refine(e=>e.protocol==="http:"||e.protocol==="https:","Base URL must use http or https protocol").refine(e=>e.pathname==="/"&&e.search===""&&e.hash==="","Base URL must have no path, query, nor hash").transform(e=>e.toString().replace(/\/$/,"")),JL=()=>HL.string().trim().min(1,"GraphQL URL is required").refine(e=>URL.canParse(e),"GraphQL URL is not a valid URL").transform(e=>new URL(e)).refine(e=>e.protocol==="http:"||e.protocol==="https:","GraphQL URL must use http or https protocol").refine(e=>e.pathname==="/graphql","GraphQL URL must have /graphql path").transform(e=>e.toString().replace(/\/$/,"")),woe=({text:e})=>y.jsx(tA,{placement:"top",overlay:y.jsx(t$,{children:e}),trigger:["hover","click","focus"],children:y.jsx(m$,{className:"text-muted ms-1",style:{cursor:"pointer"}})}),xoe=Qr(`
|
|
199
|
-
mutation AddCasino($input: HubAddCasinoInput!) {
|
|
200
|
-
hubAddCasino(input: $input) {
|
|
201
|
-
casino {
|
|
202
|
-
id
|
|
203
|
-
name
|
|
204
|
-
baseUrl
|
|
205
|
-
graphqlUrl
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
`),Ooe={name:"moneypot.com",baseUrl:"https://moneypot.com",graphqlUrl:"https://api.moneypot.com/graphql",apiKey:""},Eoe=Ta.object({name:Ta.string().min(1,"Name is required"),baseUrl:KL(),graphqlUrl:JL(),apiKey:Ta.uuid("API key must be a UUID")}),Noe=fn(({show:e,onHide:t})=>{const r=wn(),[i]=xT(r,{document:xoe}),a=cv({initialValues:Ooe,validate:l=>Yh(Eoe)(l),onSubmit:async(l,{setSubmitting:d,setStatus:f})=>(f(null),d(!0),i({variables:{input:{name:l.name,baseUrl:l.baseUrl,graphqlUrl:l.graphqlUrl,apiKey:l.apiKey}}}).then(h=>{var g;((g=h.hubAddCasino)==null?void 0:g.casino)&&(r.refetchCasinos(),t())}).catch(h=>{f(nr(h))}).finally(()=>{d(!1)}))});return y.jsx(pn,{show:e,onHide:t,size:"lg",children:y.jsxs(tt,{onSubmit:a.handleSubmit,children:[y.jsx(pn.Header,{closeButton:!0,children:y.jsx(pn.Title,{children:"Add Casino"})}),y.jsxs(pn.Body,{children:[a.status&&y.jsx(Sr,{variant:"danger",className:"mb-3",children:a.status}),y.jsxs("fieldset",{disabled:a.isSubmitting,children:[y.jsxs(tt.Group,{children:[y.jsx(tt.Label,{children:"Name (for your own reference)"}),y.jsx(tt.Control,{type:"text",name:"name",placeholder:"Ex: moneypot.com",value:a.values.name,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.name&&!!a.errors.name}),y.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.name})]}),y.jsxs(tt.Group,{className:"mt-2",children:[y.jsx(tt.Label,{children:"Website base URL"}),y.jsx(tt.Control,{type:"text",name:"baseUrl",placeholder:"Ex: https://moneypot.com",value:a.values.baseUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.baseUrl&&!!a.errors.baseUrl}),y.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.baseUrl})]}),y.jsxs(tt.Group,{className:"mt-2",children:[y.jsx(tt.Label,{children:"GraphQL URL"}),y.jsx(tt.Control,{type:"text",name:"graphqlUrl",placeholder:"Ex: https://api.moneypot.com/graphql",value:a.values.graphqlUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.graphqlUrl&&!!a.errors.graphqlUrl}),y.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.graphqlUrl})]}),y.jsxs(tt.Group,{className:"mt-2",children:[y.jsxs(tt.Label,{children:["Controller API Key"," ",y.jsx(woe,{text:"This should be a valid api key that you created for your controller on the casino website"})]}),y.jsx(tt.Control,{type:"text",name:"apiKey",placeholder:"Ex: 01234567-89ab-cdef-0123-456789abcdef",value:a.values.apiKey,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.apiKey&&!!a.errors.apiKey}),y.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.apiKey})]})]})]}),y.jsx(pn.Footer,{children:y.jsx(kn,{type:"submit",disabled:a.isSubmitting,children:a.isSubmitting?"Testing...":"Test connection and save"})})]})})}),joe=fn(()=>{var i;const e=wn(),[t,r]=S.useState(!1);return y.jsxs("div",{children:[y.jsx(Noe,{show:t,onHide:()=>r(!1)}),y.jsxs("h2",{children:["Casinos",y.jsx(kn,{className:"float-end",onClick:()=>r(!0),children:"Add casino"})]}),y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"ID"}),y.jsx("th",{children:"Name"}),y.jsx("th",{children:"Base URL"}),y.jsx("th",{children:"GraphQL URL"}),y.jsx("th",{children:"Added"}),y.jsx("th",{children:"Playground"})]})}),y.jsx("tbody",{children:(i=e.loggedIn)==null?void 0:i.casinos.map(n=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx($r,{to:`/casinos/${n.id}`,children:n.id})}),y.jsx("td",{children:n.name}),y.jsxs("td",{style:{whiteSpace:"nowrap"},children:[y.jsx("span",{className:"user-select-all",children:n.baseUrl})," ",y.jsx("a",{href:n.baseUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:y.jsx(zb,{style:{verticalAlign:"baseline"}})})]}),y.jsxs("td",{style:{whiteSpace:"nowrap"},children:[y.jsx("span",{className:"user-select-all",children:n.graphqlUrl})," ",y.jsx("a",{href:n.graphqlUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:y.jsx(zb,{style:{verticalAlign:"baseline"}})})]}),y.jsx("td",{children:y.jsx(Ca,{date:Gu(n.id),variant:"long"})}),y.jsx("td",{children:n.isPlayground?"Yes":"No"})]},n.id))})]})]})});function Ba(){var i,n;const{casinoId:e}=aI(),t=wn();return S.useEffect(()=>{var a;e&&!((a=t.loggedIn)!=null&&a.casinos.find(l=>l.id===e))&&console.warn(`Casino ${e} not found`)},[e,(i=t.loggedIn)==null?void 0:i.casinos]),((n=t.loggedIn)==null?void 0:n.casinos.find(a=>a.id===e))||null}const Ij=[{path:"",title:"Casino"},{path:"users",title:"Users"},{path:"experiences",title:"Experiences"},{path:"bankrolls",title:"Bankrolls"},{path:"currencies",title:"Currencies"},{path:"deposits",title:"Deposits"},{path:"withdrawals",title:"Withdrawals"},{path:"chat",title:"Chat"},{path:"jwks",title:"Pubkeys"}];function Ioe(e,t){return e.sort((r,i)=>i.length-r.length).find(r=>t.includes("/"+r))}const Toe=fn(()=>{var d;const e=Ra(),t=wn(),r=Uh(),i=Ba();if(!t.loggedIn)return y.jsx("div",{children:"You must be logged in"});if(!i)return y.jsx(ki,{});const n=Ioe(Ij.map(f=>f.path),e.pathname),a=e.pathname.match(/^\/casinos\/[^/]+/),l=f=>{var g;if(!a)return;const h=f.target.value,p=(g=t.loggedIn)==null?void 0:g.casinos.find(b=>b.id===h);p&&r(e.pathname.replace(/\/casinos\/[^/]+/,`/casinos/${p.id}`))};return y.jsxs("div",{children:[y.jsxs(nA,{direction:"horizontal",style:{alignItems:"baseline"},children:[y.jsxs(Ey,{children:[y.jsx(Ey.Item,{linkAs:$r,linkProps:{to:"/casinos"},children:"Casinos"}),y.jsx(Ey.Item,{active:!0,children:i.name})]}),y.jsxs(tt.Select,{className:"ms-2 d-inline-block",style:{width:"auto"},size:"sm",value:i.id,onChange:l,children:[y.jsx("option",{disabled:!0,children:"Select casino"}),(d=t.loggedIn)==null?void 0:d.casinos.map(f=>y.jsx("option",{value:f.id,children:f.name},f.id))]})]}),y.jsx("ul",{className:"nav nav-tabs mb-4 ",children:Ij.map(f=>y.jsx("li",{className:"nav-item",children:y.jsx($r,{to:f.path,className:`nav-link ${n===f.path?"active":""}`,children:f.title})},f.path))}),y.jsx(lI,{})]})}),zo=({text:e,sourceRef:t,popoverDuration:r=1e3,popoverPlacement:i="top"})=>{const[n,a]=S.useState("idle"),[l,d]=S.useState(!1),[f,h]=S.useState("success"),p=S.useRef(null),g=S.useRef(null),b=S.useRef(null);S.useEffect(()=>()=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current)},[]);const k=$=>{h($),d(!0),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{d(!1)},r)},w=()=>{p.current&&clearTimeout(p.current),navigator.clipboard.writeText(e).then(()=>{a("success"),p.current=setTimeout(()=>a("idle"),r),k("success")}).catch($=>{console.error("Failed to copy text: ",$),a("error"),p.current=setTimeout(()=>a("idle"),r),k("error")})},I=()=>{switch(n){case"success":return y.jsx(Db,{className:"text-success-emphasis"});case"error":return y.jsx(Mb,{className:"text-danger-emphasis"});default:return y.jsx(zA,{})}},x=()=>f==="success"?"Copied!":"Error";return y.jsxs(y.Fragment,{children:[y.jsx(kn,{ref:b,variant:"outline-secondary",size:"sm",onClick:w,"aria-label":"Copy to clipboard",children:I()}),y.jsx(n$,{show:l,target:(t==null?void 0:t.current)||b.current,placement:i,children:y.jsx(wb,{id:"copy-popover",children:y.jsx(wb.Body,{children:f==="success"?y.jsxs("span",{className:"text-success-emphasis",children:[y.jsx(Db,{})," ",x()]}):y.jsxs("span",{className:"text-danger-emphasis",children:[y.jsx(Mb,{})," ",x()]})})})})]})},zoe=Qr(`
|
|
210
|
-
query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {
|
|
211
|
-
hubCasinoById(id: $casinoId) {
|
|
212
|
-
id
|
|
213
|
-
hubUsersByCasinoId(after: $after, first: 10) {
|
|
214
|
-
pageInfo {
|
|
215
|
-
endCursor
|
|
216
|
-
hasNextPage
|
|
217
|
-
}
|
|
218
|
-
edges {
|
|
219
|
-
cursor
|
|
220
|
-
node {
|
|
221
|
-
id
|
|
222
|
-
uname
|
|
223
|
-
mpUserId
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
`),Aoe=fn(()=>{var h,p,g,b;const e=wn(),t=Ba(),{data:r,loading:i,error:n,fetchMore:a}=Co(e,{document:zoe,variables:{casinoId:t.id,after:null}}),l=()=>{a({variables:{casinoId:t.id,after:null}})},d=()=>{var k,w;a({variables:{casinoId:t.id,after:(w=(k=r==null?void 0:r.hubCasinoById)==null?void 0:k.hubUsersByCasinoId)==null?void 0:w.pageInfo.endCursor}})},f=((p=(h=r==null?void 0:r.hubCasinoById)==null?void 0:h.hubUsersByCasinoId)==null?void 0:p.edges.flatMap(k=>(k==null?void 0:k.node)||[]))||[];return y.jsxs("div",{children:[y.jsx("h2",{children:"Users"}),i&&y.jsx("div",{children:"Loading..."}),n&&y.jsx(Sr,{variant:"danger",children:nr(n)}),y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Added"}),y.jsx("th",{children:"Username"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP User ID"})]})}),y.jsx("tbody",{children:f.map(k=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Ca,{date:Gu(k.id),variant:"long"})}),y.jsx("td",{children:k.uname}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:k.id})," ",y.jsx(zo,{text:k.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:k.mpUserId})," ",y.jsx(zo,{text:k.mpUserId})]})]},k.id))})]}),y.jsxs("div",{children:[y.jsx(kn,{variant:"outline-secondary",onClick:l,disabled:i,children:"First page"}),y.jsx(kn,{variant:"outline-secondary",className:"ms-2",onClick:d,disabled:i||!((b=(g=r==null?void 0:r.hubCasinoById)==null?void 0:g.hubUsersByCasinoId)!=null&&b.pageInfo.hasNextPage),children:"Load more"})]})]})}),Doe=Qr(`
|
|
230
|
-
mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {
|
|
231
|
-
updateHubCasinoById(input: $input) {
|
|
232
|
-
hubCasino {
|
|
233
|
-
id
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
`),Uoe=Ta.object({name:Ta.string().min(1,"Name is required"),baseUrl:KL(),graphqlUrl:JL()}),Coe=fn(({show:e,onHide:t,casino:r})=>{const i=wn(),n={name:r.name,baseUrl:r.baseUrl,graphqlUrl:r.graphqlUrl},a=cv({initialValues:n,validate:l=>Yh(Uoe)(l),onSubmit:async(l,{setSubmitting:d,setStatus:f})=>{f(null),ls(i,{document:Doe,variables:{input:{id:r.id,hubCasinoPatch:{name:l.name,baseUrl:l.baseUrl,graphqlUrl:l.graphqlUrl}}}}).then(h=>{var g;((g=h.updateHubCasinoById)==null?void 0:g.hubCasino)&&(i.refetchCasinos(),t())}).catch(h=>{f(nr(h))}).finally(()=>{d(!1)})}});return y.jsx(pn,{show:e,onHide:t,size:"lg",children:y.jsxs(tt,{onSubmit:a.handleSubmit,children:[y.jsx(pn.Header,{closeButton:!0,children:y.jsx(pn.Title,{children:"Edit Casino"})}),y.jsxs(pn.Body,{children:[a.status&&y.jsx(Sr,{variant:"danger",className:"mb-3",children:a.status}),y.jsxs("fieldset",{disabled:a.isSubmitting,children:[y.jsxs(tt.Group,{children:[y.jsx(tt.Label,{children:"Name (for your own reference)"}),y.jsx(tt.Control,{type:"text",name:"name",placeholder:"Ex: moneypot.com",value:a.values.name,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.name&&!!a.errors.name,isValid:a.touched.name&&!a.errors.name}),y.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.name})]}),y.jsxs(tt.Group,{className:"mt-2",children:[y.jsx(tt.Label,{children:"Website base URL"}),y.jsx(tt.Control,{type:"text",name:"baseUrl",placeholder:"Ex: https://moneypot.com",value:a.values.baseUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.baseUrl&&!!a.errors.baseUrl}),y.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.baseUrl})]}),y.jsxs(tt.Group,{className:"mt-2",children:[y.jsx(tt.Label,{children:"GraphQL URL"}),y.jsx(tt.Control,{type:"text",name:"graphqlUrl",placeholder:"Ex: https://api.moneypot.com/graphql",value:a.values.graphqlUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.graphqlUrl&&!!a.errors.graphqlUrl}),y.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.graphqlUrl})]})]})]}),y.jsx(pn.Footer,{children:y.jsx(kn,{type:"submit",disabled:a.isSubmitting,children:"Save casino"})})]})})}),Roe=fn(()=>{const e=Ba(),[t,r]=S.useState(!1);return y.jsxs("div",{children:[y.jsx(Coe,{show:t,onHide:()=>r(!1),casino:e}),y.jsxs("h2",{children:["Casino: ",e.name,y.jsx(kn,{className:"ms-2",onClick:()=>r(!0),children:"Edit"})]}),y.jsxs("ul",{children:[y.jsxs("li",{children:[y.jsx("strong",{children:"Name:"})," ",e.name]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Added:"})," ",y.jsx(Ca,{date:Gu(e.id),variant:"long"})]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Base URL:"})," ",y.jsx("a",{href:e.baseUrl,target:"_blank",rel:"noreferrer",children:e.baseUrl})]}),y.jsxs("li",{children:[y.jsx("strong",{children:"GraphQL URL:"})," ",y.jsx("a",{href:e.graphqlUrl,target:"_blank",rel:"noreferrer",children:e.graphqlUrl})]})]})]})}),Moe=Qr(`
|
|
238
|
-
query GetCasinoExperiences($casinoId: UUID!) {
|
|
239
|
-
hubCasinoById(id: $casinoId) {
|
|
240
|
-
id
|
|
241
|
-
hubExperiencesByCasinoId {
|
|
242
|
-
nodes {
|
|
243
|
-
id
|
|
244
|
-
name
|
|
245
|
-
mpExperienceId
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
`),Loe=fn(()=>{var l,d;const e=wn(),t=Ba();console.log("CasinoExperiencesList. casino is",t.id);const{data:r,loading:i,error:n}=Co(e,{document:Moe,variables:{casinoId:t.id}});if(i)return y.jsx("div",{children:"Loading..."});if(n)return y.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return y.jsx(ki,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubExperiencesByCasinoId)==null?void 0:d.nodes.flatMap(f=>f||[]))||[];return y.jsxs("div",{children:[y.jsxs("p",{children:["This is the ",y.jsx("code",{children:"hub.experience"})," table for the current casino."]}),y.jsx("p",{children:"When you create a new experience on the Moneypot casino's website, it isn't automatically added here until the hub server sees an incoming experience deposit from a user."}),y.jsxs("p",{children:["Or you can look for missing experiences on the Moneypot API right now:"," ",y.jsx(kn,{size:"sm",disabled:!0,children:"Force sync (TODO)"})]}),y.jsxs("p",{children:["Or you can add a new experience to the Moneypot API from here:"," ",y.jsx(kn,{size:"sm",disabled:!0,children:"Add experience (TODO)"})]}),y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Added"}),y.jsx("th",{children:"Name"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP Experience ID"})]})}),y.jsx("tbody",{children:a.map(f=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Ca,{date:Gu(f.id),variant:"long"})}),y.jsx("td",{children:f.name}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:f.id})," ",y.jsx(zo,{text:f.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:f.mpExperienceId})," ",y.jsx(zo,{text:f.mpExperienceId})]})]},f.id))})]})]})}),Poe=Qr(`
|
|
251
|
-
mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {
|
|
252
|
-
updateHubBankrollById(input: $input) {
|
|
253
|
-
hubBankroll {
|
|
254
|
-
id
|
|
255
|
-
amount
|
|
256
|
-
currencyKey
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
`),Zoe=Ta.object({displayAmount:Ta.int().min(0)}),Boe=fn(({show:e,onHide:t,bankroll:r,onSuccess:i})=>y.jsxs(pn,{show:e,onHide:t,size:"lg",children:[y.jsx(pn.Header,{closeButton:!0,children:y.jsxs(pn.Title,{children:["Edit Bankroll ",r&&`- ${r.currencyKey}`]})}),y.jsx(Foe,{onHide:t,bankroll:r,onSuccess:i})]})),Foe=fn(({onHide:e,bankroll:t,onSuccess:r})=>{const i=wn(),[n,{loading:a,error:l}]=xT(i,{document:Poe}),d={displayAmount:Math.floor(t.amount/t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitScale)},h=cv({initialValues:d,validate:p=>Yh(Zoe)(p),onSubmit:async(p,{setSubmitting:g,setStatus:b})=>{b(null);const k=Math.floor(p.displayAmount*t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitScale);n({variables:{input:{id:t.id,hubBankrollPatch:{amount:k}}}}).then(w=>{var x;((x=w.updateHubBankrollById)==null?void 0:x.hubBankroll)?(i.refetchCasinos(),r(),e()):b("Failed to update bankroll")}).catch(w=>{b(nr(w))}).finally(()=>{g(!1)})}});return y.jsxs(tt,{onSubmit:h.handleSubmit,children:[y.jsxs(pn.Body,{children:[(h.status||l)&&y.jsx(Sr,{variant:"danger",className:"mb-3",children:h.status||(l==null?void 0:l.message)}),y.jsx("fieldset",{disabled:h.isSubmitting||a,children:y.jsxs(tt.Group,{children:[y.jsxs(tt.Label,{children:["Amount (",t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitName,")"]}),y.jsx(tt.Control,{type:"number",name:"displayAmount",step:1,value:h.values.displayAmount,onChange:h.handleChange,onBlur:h.handleBlur,isInvalid:h.touched.displayAmount&&!!h.errors.displayAmount,isValid:h.touched.displayAmount&&!h.errors.displayAmount}),y.jsx(tt.Control.Feedback,{type:"invalid",children:h.errors.displayAmount})]})})]}),y.jsx(pn.Footer,{children:y.jsx(kn,{type:"submit",disabled:h.isSubmitting||a,children:a?"Saving...":"Save bankroll"})})]})}),Voe=Qr(`
|
|
261
|
-
query GetCasinoBankrolls($casinoId: UUID!) {
|
|
262
|
-
hubCasinoById(id: $casinoId) {
|
|
263
|
-
id
|
|
264
|
-
hubBankrollsByCasinoId {
|
|
265
|
-
nodes {
|
|
266
|
-
id
|
|
267
|
-
amount
|
|
268
|
-
expectedValue
|
|
269
|
-
bets
|
|
270
|
-
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
271
|
-
key
|
|
272
|
-
displayUnitScale
|
|
273
|
-
displayUnitName
|
|
274
|
-
casinoId
|
|
275
|
-
}
|
|
276
|
-
currencyKey
|
|
277
|
-
wagered
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
`),qoe=fn(()=>{var g,b;const e=wn(),t=Ba(),[r,i]=S.useState(null),{data:n,loading:a,error:l,reload:d}=Co(e,{skip:!t,document:Voe,variables:{casinoId:t.id}});if(!t)return y.jsx(ki,{});if(a)return y.jsx("div",{children:"Loading..."});if(l)return y.jsx(Sr,{variant:"danger",children:nr(l)});if(!n)return y.jsx(ki,{});const f=((b=(g=n.hubCasinoById)==null?void 0:g.hubBankrollsByCasinoId)==null?void 0:b.nodes.flatMap(k=>k||[]))||[],h=t.hubCurrenciesByCasinoId.nodes.filter(k=>!f.some(w=>w.currencyKey===k.key)).map(k=>k.key);console.log("bankrolls",f),console.log("missingBankrollsKeys",h);const p=()=>{d()};return y.jsxs("div",{children:[r&&y.jsx(Boe,{show:!!r,onHide:()=>i(null),bankroll:r,onSuccess:p}),y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Currency"}),y.jsx("th",{children:"Amount"}),y.jsx("th",{children:"Bets"}),y.jsx("th",{children:"Expected Value"}),y.jsx("th",{children:"Wagered"})]})}),y.jsxs("tbody",{children:[f.map(k=>y.jsxs("tr",{children:[y.jsx("td",{children:k.currencyKey}),y.jsxs("td",{children:[E_(k.amount,k.hubCurrencyByCurrencyKeyAndCasinoId)," ",y.jsx(kn,{size:"sm",variant:"outline-secondary",onClick:()=>{i({...k,hubCurrencyByCurrencyKeyAndCasinoId:k.hubCurrencyByCurrencyKeyAndCasinoId})},children:"Edit"})]}),y.jsx("td",{children:k.bets}),y.jsx("td",{children:k.expectedValue}),y.jsx("td",{children:k.wagered})]},k.id)),h.map(k=>y.jsxs("tr",{children:[y.jsx("td",{children:k}),y.jsxs("td",{colSpan:4,children:["No bankroll",y.jsx(kn,{size:"sm",variant:"outline-primary",className:"ms-2",onClick:()=>{alert("TODO")},children:"Create bankroll"})]})]},k))]})]})]})}),Goe=Qr(`
|
|
283
|
-
query GetCasinoCurrencies($casinoId: UUID!) {
|
|
284
|
-
hubCasinoById(id: $casinoId) {
|
|
285
|
-
id
|
|
286
|
-
hubCurrenciesByCasinoId {
|
|
287
|
-
nodes {
|
|
288
|
-
key
|
|
289
|
-
displayUnitName
|
|
290
|
-
displayUnitScale
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
`),Hoe=fn(()=>{var l,d;const e=wn(),t=Ba(),{data:r,loading:i,error:n}=Co(e,{document:Goe,variables:{casinoId:t.id}});if(i)return y.jsx("div",{children:"Loading..."});if(n)return y.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return y.jsx(ki,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubCurrenciesByCasinoId)==null?void 0:d.nodes.flatMap(f=>f||[]))||[];return y.jsx("div",{children:y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Key"}),y.jsx("th",{children:"Display unit name"}),y.jsx("th",{children:"Display unit scale"})]})}),y.jsx("tbody",{children:a.map(f=>y.jsxs("tr",{children:[y.jsx("td",{children:f.key}),y.jsx("td",{children:f.displayUnitName}),y.jsx("td",{children:f.displayUnitScale})]},f.key))})]})})}),Koe=Qr(`
|
|
296
|
-
query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {
|
|
297
|
-
hubCasinoById(id: $casinoId) {
|
|
298
|
-
hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
299
|
-
pageInfo {
|
|
300
|
-
endCursor
|
|
301
|
-
hasNextPage
|
|
302
|
-
}
|
|
303
|
-
edges {
|
|
304
|
-
cursor
|
|
305
|
-
node {
|
|
306
|
-
id
|
|
307
|
-
mpTransferId
|
|
308
|
-
amount
|
|
309
|
-
userId
|
|
310
|
-
currencyKey
|
|
311
|
-
hubUserByUserId {
|
|
312
|
-
id
|
|
313
|
-
uname
|
|
314
|
-
}
|
|
315
|
-
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
316
|
-
displayUnitName
|
|
317
|
-
displayUnitScale
|
|
318
|
-
key
|
|
319
|
-
}
|
|
320
|
-
hubExperienceByExperienceId {
|
|
321
|
-
id
|
|
322
|
-
name
|
|
323
|
-
mpExperienceId
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
`),Joe=fn(()=>{var l,d;const e=wn(),t=Ba(),{data:r,loading:i,error:n}=Co(e,{document:Koe,variables:{casinoId:t.id}});if(i)return y.jsx("div",{children:"Loading..."});if(n)return y.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return y.jsx(ki,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubDepositsByCasinoId)==null?void 0:d.edges.flatMap(f=>(f==null?void 0:f.node)||[]))||[];return y.jsx("div",{children:y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"When"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP Transfer ID"}),y.jsx("th",{children:"User"}),y.jsx("th",{children:"Currency"}),y.jsx("th",{children:"Experience"})]})}),y.jsx("tbody",{children:a.map(f=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Ca,{date:Gu(f.id),variant:"long"})}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:f.id})," ",y.jsx(zo,{text:f.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:f.mpTransferId})," ",y.jsx(zo,{text:f.mpTransferId})]}),y.jsx("td",{children:y.jsx($r,{to:`/casinos/${t.id}/users/${f.userId}`,children:f.hubUserByUserId.uname})}),y.jsx("td",{children:E_(f.amount,f.hubCurrencyByCurrencyKeyAndCasinoId)}),y.jsx("td",{children:y.jsx($r,{to:`/casinos/${t.id}/experiences/${f.hubExperienceByExperienceId.id}`,children:f.hubExperienceByExperienceId.name})})]},f.id))})]})})}),Yoe=Qr(`
|
|
331
|
-
query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {
|
|
332
|
-
hubCasinoById(id: $casinoId) {
|
|
333
|
-
hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
334
|
-
pageInfo {
|
|
335
|
-
endCursor
|
|
336
|
-
hasNextPage
|
|
337
|
-
}
|
|
338
|
-
edges {
|
|
339
|
-
cursor
|
|
340
|
-
node {
|
|
341
|
-
id
|
|
342
|
-
mpTransferId
|
|
343
|
-
status
|
|
344
|
-
statusAt
|
|
345
|
-
amount
|
|
346
|
-
hubUserByUserId {
|
|
347
|
-
id
|
|
348
|
-
uname
|
|
349
|
-
}
|
|
350
|
-
hubExperienceByExperienceId {
|
|
351
|
-
id
|
|
352
|
-
name
|
|
353
|
-
}
|
|
354
|
-
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
355
|
-
key
|
|
356
|
-
displayUnitScale
|
|
357
|
-
displayUnitName
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
`),Xoe=fn(()=>{var l,d;const e=wn(),{casinoId:t}=aI();console.log("casinoId",t);const{data:r,loading:i,error:n}=Co(e,{document:Yoe,variables:{casinoId:t}});if(i)return y.jsx("div",{children:"Loading..."});if(n)return y.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return y.jsx(ki,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubWithdrawalsByCasinoId)==null?void 0:d.edges.flatMap(f=>(f==null?void 0:f.node)||[]))||[];return y.jsx("div",{children:y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"When"}),y.jsx("th",{children:"ID"}),y.jsx("th",{children:"MP Transfer ID"}),y.jsx("th",{children:"User"}),y.jsx("th",{children:"Amount"}),y.jsx("th",{children:"Experience"}),y.jsx("th",{children:"Status"})]})}),y.jsx("tbody",{children:a.map(f=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Ca,{date:Gu(f.id),variant:"long"})}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:f.id})," ",y.jsx(zo,{text:f.id})]}),y.jsxs("td",{children:[y.jsx("code",{className:"user-select-all",children:f.mpTransferId})," ",y.jsx(zo,{text:f.mpTransferId})]}),y.jsx("td",{children:y.jsx($r,{to:`/casinos/${t}/users/${f.hubUserByUserId.id}`,children:f.hubUserByUserId.uname})}),y.jsx("td",{children:E_(f.amount,f.hubCurrencyByCurrencyKeyAndCasinoId)}),y.jsx("td",{children:y.jsx($r,{to:`/casinos/${t}/experiences/${f.hubExperienceByExperienceId.id}`,children:f.hubExperienceByExperienceId.name})}),y.jsxs("td",{children:[f.status," ",y.jsx(Ca,{date:f.statusAt,variant:"long"})]})]},f.id))})]})})}),Qoe=()=>{const e=Uh();return S.useEffect(()=>{e("/casinos")},[e]),null},Woe=Qr(`
|
|
365
|
-
query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {
|
|
366
|
-
hubCasinoById(id: $casinoId) {
|
|
367
|
-
hubJwkSetSnapshotsByCasinoId(
|
|
368
|
-
orderBy: ID_DESC
|
|
369
|
-
after: $after
|
|
370
|
-
first: $first
|
|
371
|
-
) {
|
|
372
|
-
pageInfo {
|
|
373
|
-
endCursor
|
|
374
|
-
hasNextPage
|
|
375
|
-
}
|
|
376
|
-
edges {
|
|
377
|
-
cursor
|
|
378
|
-
node {
|
|
379
|
-
jwks
|
|
380
|
-
id
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
hubJwkSetByCasinoId {
|
|
385
|
-
updatedAt
|
|
386
|
-
jwks
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
`),eue=fn(()=>{var b,k,w,I,x;const e=wn(),t=Ba(),[r,i]=S.useState(null),{data:n,loading:a,error:l}=Co(e,{skip:!t,document:Woe,variables:{casinoId:t.id,first:1,after:r}});if(!t)return y.jsx(ki,{});if(a)return y.jsx("div",{children:"Loading..."});if(l)return y.jsx(Sr,{variant:"danger",children:nr(l)});if(!n)return y.jsx(ki,{});const d=()=>{i(null)},f=()=>{var j,N;const $=(N=(j=n.hubCasinoById)==null?void 0:j.hubJwkSetSnapshotsByCasinoId)==null?void 0:N.pageInfo.endCursor;$&&i($)},h=(k=(b=n.hubCasinoById)==null?void 0:b.hubJwkSetSnapshotsByCasinoId)==null?void 0:k.pageInfo.hasNextPage,p=(w=n.hubCasinoById)==null?void 0:w.hubJwkSetByCasinoId,g=((x=(I=n.hubCasinoById)==null?void 0:I.hubJwkSetSnapshotsByCasinoId)==null?void 0:x.edges.flatMap($=>($==null?void 0:$.node)||[]))||[];return y.jsxs("div",{children:[y.jsx("h2",{children:"Current public keys"}),y.jsx(r$,{className:"justify-content-center",children:y.jsx(tv,{lg:6,children:y.jsxs(Yl,{children:[y.jsxs(Yl.Header,{children:["Last updated:"," ",p?y.jsx(Ca,{date:p==null?void 0:p.updatedAt,variant:"long"}):"--"]}),y.jsx(Yl.Body,{children:p?y.jsx("pre",{children:JSON.stringify(p.jwks,null,2)}):y.jsx("p",{className:"text-danger text-center",children:"No public keys have been fetched from casino."})})]})})}),y.jsx("h2",{className:"mt-4",children:"History"}),y.jsxs("div",{className:"mb-3",children:[y.jsx(kn,{variant:"outline-secondary",onClick:d,disabled:a,children:"First page"}),y.jsx(kn,{variant:"outline-secondary",onClick:f,disabled:a||!h,className:"ms-2",children:"Next page"})]}),y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Fetched"}),y.jsx("th",{children:"JWKS"})]})}),y.jsx("tbody",{children:g.map($=>y.jsxs("tr",{children:[y.jsx("td",{children:y.jsx(Ca,{date:Gu($.id),variant:"long"})}),y.jsx("td",{children:y.jsx("pre",{children:JSON.stringify($.jwks,null,2)})})]},$.id))})]})]})}),tue=Qr(`
|
|
391
|
-
query GetCasinoChatMessages($casinoId: UUID!) {
|
|
392
|
-
hubCasinoById(id: $casinoId) {
|
|
393
|
-
id
|
|
394
|
-
hubChatMessagesByCasinoId(last: 100, orderBy: ID_ASC) {
|
|
395
|
-
edges {
|
|
396
|
-
node {
|
|
397
|
-
id
|
|
398
|
-
hubUserByUserId {
|
|
399
|
-
id
|
|
400
|
-
uname
|
|
401
|
-
}
|
|
402
|
-
hubExperienceByExperienceId {
|
|
403
|
-
id
|
|
404
|
-
name
|
|
405
|
-
}
|
|
406
|
-
body
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
`),nue=fn(()=>{var l,d;const e=wn(),t=Ba(),{data:r,loading:i,error:n}=Co(e,{document:tue,variables:{casinoId:t.id}});if(i)return y.jsx("div",{children:"Loading..."});if(n)return y.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return y.jsx(ki,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubChatMessagesByCasinoId)==null?void 0:d.edges.flatMap(f=>(f==null?void 0:f.node)||[]))||[];return y.jsxs("div",{children:[y.jsx("h2",{children:"Chat (WIP)"}),y.jsx("p",{children:"Last 100 messages across all experiences in the casino."}),y.jsxs(Ji,{striped:!0,bordered:!0,hover:!0,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"User"}),y.jsx("th",{children:"Experience"}),y.jsx("th",{children:"Body"})]})}),y.jsx("tbody",{children:a.map(f=>{var h,p;return y.jsxs("tr",{children:[y.jsx("td",{children:(h=f.hubUserByUserId)==null?void 0:h.uname}),y.jsx("td",{children:(p=f.hubExperienceByExperienceId)==null?void 0:p.name}),y.jsx("td",{children:f.body})]},f.id)})})]})]})}),rue=fF([{path:"/",element:y.jsx(Bte,{}),errorElement:y.jsx(mj,{}),children:[{path:"*",element:y.jsx(mj,{status:404})},{path:"/",element:y.jsx(Qoe,{})},{path:"/casinos",element:y.jsx(joe,{})},{path:"/casinos/:casinoId",element:y.jsx(Toe,{}),children:[{path:"",element:y.jsx(Roe,{})},{path:"users",element:y.jsx(Aoe,{})},{path:"experiences",element:y.jsx(Loe,{})},{path:"bankrolls",element:y.jsx(qoe,{})},{path:"currencies",element:y.jsx(Hoe,{})},{path:"deposits",element:y.jsx(Joe,{})},{path:"withdrawals",element:y.jsx(Xoe,{})},{path:"chat",element:y.jsx(nue,{})},{path:"jwks",element:y.jsx(eue,{})}]}]}],{basename:"/dashboard"}),iue=new E8,aue=new YF,oue=y.jsx(QF,{client:aue,children:y.jsx(N8,{store:iue,children:y.jsx(wF,{router:rue})})});hB.createRoot(document.getElementById("root")).render(oue)});export default uue();
|