@ensembleapp/client-sdk 0.0.24 → 0.0.25
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,51 +1,51 @@
|
|
|
1
1
|
/* Chat Widget - Embeddable chat widget */
|
|
2
|
-
"use strict";var ChatWidgetBundle=(()=>{var Sz=Object.create;var Tc=Object.defineProperty;var wz=Object.getOwnPropertyDescriptor;var Iz=Object.getOwnPropertyNames;var kz=Object.getPrototypeOf,_z=Object.prototype.hasOwnProperty;var $t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lr=(e,t)=>{for(var a in t)Tc(e,a,{get:t[a],enumerable:!0})},qw=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Iz(t))!_z.call(e,r)&&r!==a&&Tc(e,r,{get:()=>t[r],enumerable:!(n=wz(t,r))||n.enumerable});return e};var Le=(e,t,a)=>(a=e!=null?Sz(kz(e)):{},qw(t||!e||!e.__esModule?Tc(a,"default",{value:e,enumerable:!0}):a,e)),Cz=e=>qw(Tc({},"__esModule",{value:!0}),e);var Qw=$t(Qe=>{"use strict";function gm(e,t){var a=e.length;e.push(t);e:for(;0<a;){var n=a-1>>>1,r=e[n];if(0<Ac(r,t))e[n]=t,e[a]=r,a=n;else break e}}function sr(e){return e.length===0?null:e[0]}function Mc(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,r=e.length,o=r>>>1;n<o;){var i=2*(n+1)-1,l=e[i],s=i+1,u=e[s];if(0>Ac(l,a))s<r&&0>Ac(u,l)?(e[n]=u,e[s]=a,n=s):(e[n]=l,e[i]=a,n=i);else if(s<r&&0>Ac(u,a))e[n]=u,e[s]=a,n=s;else break e}}return t}function Ac(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}Qe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Zw=performance,Qe.unstable_now=function(){return Zw.now()}):(pm=Date,Hw=pm.now(),Qe.unstable_now=function(){return pm.now()-Hw});var Zw,pm,Hw,Ar=[],mn=[],Lz=1,Ta=null,Pt=3,vm=!1,rs=!1,ns=!1,ym=!1,Jw=typeof setTimeout=="function"?setTimeout:null,Xw=typeof clearTimeout=="function"?clearTimeout:null,Vw=typeof setImmediate<"u"?setImmediate:null;function Ec(e){for(var t=sr(mn);t!==null;){if(t.callback===null)Mc(mn);else if(t.startTime<=e)Mc(mn),t.sortIndex=t.expirationTime,gm(Ar,t);else break;t=sr(mn)}}function xm(e){if(ns=!1,Ec(e),!rs)if(sr(Ar)!==null)rs=!0,Ci||(Ci=!0,_i());else{var t=sr(mn);t!==null&&bm(xm,t.startTime-e)}}var Ci=!1,os=-1,Ww=5,Kw=-1;function Yw(){return ym?!0:!(Qe.unstable_now()-Kw<Ww)}function mm(){if(ym=!1,Ci){var e=Qe.unstable_now();Kw=e;var t=!0;try{e:{rs=!1,ns&&(ns=!1,Xw(os),os=-1),vm=!0;var a=Pt;try{t:{for(Ec(e),Ta=sr(Ar);Ta!==null&&!(Ta.expirationTime>e&&Yw());){var n=Ta.callback;if(typeof n=="function"){Ta.callback=null,Pt=Ta.priorityLevel;var r=n(Ta.expirationTime<=e);if(e=Qe.unstable_now(),typeof r=="function"){Ta.callback=r,Ec(e),t=!0;break t}Ta===sr(Ar)&&Mc(Ar),Ec(e)}else Mc(Ar);Ta=sr(Ar)}if(Ta!==null)t=!0;else{var o=sr(mn);o!==null&&bm(xm,o.startTime-e),t=!1}}break e}finally{Ta=null,Pt=a,vm=!1}t=void 0}}finally{t?_i():Ci=!1}}}var _i;typeof Vw=="function"?_i=function(){Vw(mm)}:typeof MessageChannel<"u"?(hm=new MessageChannel,Gw=hm.port2,hm.port1.onmessage=mm,_i=function(){Gw.postMessage(null)}):_i=function(){Jw(mm,0)};var hm,Gw;function bm(e,t){os=Jw(function(){e(Qe.unstable_now())},t)}Qe.unstable_IdlePriority=5;Qe.unstable_ImmediatePriority=1;Qe.unstable_LowPriority=4;Qe.unstable_NormalPriority=3;Qe.unstable_Profiling=null;Qe.unstable_UserBlockingPriority=2;Qe.unstable_cancelCallback=function(e){e.callback=null};Qe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ww=0<e?Math.floor(1e3/e):5};Qe.unstable_getCurrentPriorityLevel=function(){return Pt};Qe.unstable_next=function(e){switch(Pt){case 1:case 2:case 3:var t=3;break;default:t=Pt}var a=Pt;Pt=t;try{return e()}finally{Pt=a}};Qe.unstable_requestPaint=function(){ym=!0};Qe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Pt;Pt=e;try{return t()}finally{Pt=a}};Qe.unstable_scheduleCallback=function(e,t,a){var n=Qe.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,e={id:Lz++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>n?(e.sortIndex=a,gm(mn,e),sr(Ar)===null&&e===sr(mn)&&(ns?(Xw(os),os=-1):ns=!0,bm(xm,a-n))):(e.sortIndex=r,gm(Ar,e),rs||vm||(rs=!0,Ci||(Ci=!0,_i()))),e};Qe.unstable_shouldYield=Yw;Qe.unstable_wrapCallback=function(e){var t=Pt;return function(){var a=Pt;Pt=t;try{return e.apply(this,arguments)}finally{Pt=a}}}});var tI=$t((rZ,eI)=>{"use strict";eI.exports=Qw()});var fI=$t(se=>{"use strict";var Im=Symbol.for("react.transitional.element"),Tz=Symbol.for("react.portal"),Az=Symbol.for("react.fragment"),Ez=Symbol.for("react.strict_mode"),Mz=Symbol.for("react.profiler"),Oz=Symbol.for("react.consumer"),zz=Symbol.for("react.context"),Dz=Symbol.for("react.forward_ref"),Rz=Symbol.for("react.suspense"),$z=Symbol.for("react.memo"),iI=Symbol.for("react.lazy"),Pz=Symbol.for("react.activity"),aI=Symbol.iterator;function Nz(e){return e===null||typeof e!="object"?null:(e=aI&&e[aI]||e["@@iterator"],typeof e=="function"?e:null)}var lI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sI=Object.assign,uI={};function Ti(e,t,a){this.props=e,this.context=t,this.refs=uI,this.updater=a||lI}Ti.prototype.isReactComponent={};Ti.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cI(){}cI.prototype=Ti.prototype;function km(e,t,a){this.props=e,this.context=t,this.refs=uI,this.updater=a||lI}var _m=km.prototype=new cI;_m.constructor=km;sI(_m,Ti.prototype);_m.isPureReactComponent=!0;var rI=Array.isArray;function wm(){}var Ge={H:null,A:null,T:null,S:null},dI=Object.prototype.hasOwnProperty;function Cm(e,t,a){var n=a.ref;return{$$typeof:Im,type:e,key:t,ref:n!==void 0?n:null,props:a}}function Uz(e,t){return Cm(e.type,t,e.props)}function Lm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Im}function jz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var nI=/\/+/g;function Sm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jz(""+e.key):t.toString(36)}function Bz(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(wm,wm):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Li(e,t,a,n,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Im:case Tz:i=!0;break;case iI:return i=e._init,Li(i(e._payload),t,a,n,r)}}if(i)return r=r(e),i=n===""?"."+Sm(e,0):n,rI(r)?(a="",i!=null&&(a=i.replace(nI,"$&/")+"/"),Li(r,t,a,"",function(u){return u})):r!=null&&(Lm(r)&&(r=Uz(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(nI,"$&/")+"/")+i)),t.push(r)),1;i=0;var l=n===""?".":n+":";if(rI(e))for(var s=0;s<e.length;s++)n=e[s],o=l+Sm(n,s),i+=Li(n,t,a,o,r);else if(s=Nz(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,o=l+Sm(n,s++),i+=Li(n,t,a,o,r);else if(o==="object"){if(typeof e.then=="function")return Li(Bz(e),t,a,n,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Oc(e,t,a){if(e==null)return e;var n=[],r=0;return Li(e,n,"","",function(o){return t.call(a,o,r++)}),n}function Fz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oI=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qz={map:Oc,forEach:function(e,t,a){Oc(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Oc(e,function(){t++}),t},toArray:function(e){return Oc(e,function(t){return t})||[]},only:function(e){if(!Lm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Activity=Pz;se.Children=qz;se.Component=Ti;se.Fragment=Az;se.Profiler=Mz;se.PureComponent=km;se.StrictMode=Ez;se.Suspense=Rz;se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ge;se.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ge.H.useMemoCache(e)}};se.cache=function(e){return function(){return e.apply(null,arguments)}};se.cacheSignal=function(){return null};se.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=sI({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!dI.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(n[o]=t[o]);var o=arguments.length-2;if(o===1)n.children=a;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];n.children=i}return Cm(e.type,r,n)};se.createContext=function(e){return e={$$typeof:zz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Oz,_context:e},e};se.createElement=function(e,t,a){var n,r={},o=null;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)dI.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(r[n]=t[n]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];r.children=l}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)r[n]===void 0&&(r[n]=i[n]);return Cm(e,o,r)};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:Dz,render:e}};se.isValidElement=Lm;se.lazy=function(e){return{$$typeof:iI,_payload:{_status:-1,_result:e},_init:Fz}};se.memo=function(e,t){return{$$typeof:$z,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Ge.T,a={};Ge.T=a;try{var n=e(),r=Ge.S;r!==null&&r(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(wm,oI)}catch(o){oI(o)}finally{t!==null&&a.types!==null&&(t.types=a.types),Ge.T=t}};se.unstable_useCacheRefresh=function(){return Ge.H.useCacheRefresh()};se.use=function(e){return Ge.H.use(e)};se.useActionState=function(e,t,a){return Ge.H.useActionState(e,t,a)};se.useCallback=function(e,t){return Ge.H.useCallback(e,t)};se.useContext=function(e){return Ge.H.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e,t){return Ge.H.useDeferredValue(e,t)};se.useEffect=function(e,t){return Ge.H.useEffect(e,t)};se.useEffectEvent=function(e){return Ge.H.useEffectEvent(e)};se.useId=function(){return Ge.H.useId()};se.useImperativeHandle=function(e,t,a){return Ge.H.useImperativeHandle(e,t,a)};se.useInsertionEffect=function(e,t){return Ge.H.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return Ge.H.useLayoutEffect(e,t)};se.useMemo=function(e,t){return Ge.H.useMemo(e,t)};se.useOptimistic=function(e,t){return Ge.H.useOptimistic(e,t)};se.useReducer=function(e,t,a){return Ge.H.useReducer(e,t,a)};se.useRef=function(e){return Ge.H.useRef(e)};se.useState=function(e){return Ge.H.useState(e)};se.useSyncExternalStore=function(e,t,a){return Ge.H.useSyncExternalStore(e,t,a)};se.useTransition=function(){return Ge.H.useTransition()};se.version="19.2.3"});var Nt=$t((oZ,pI)=>{"use strict";pI.exports=fI()});var hI=$t(Zt=>{"use strict";var Zz=Nt();function mI(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function hn(){}var qt={d:{f:hn,r:function(){throw Error(mI(522))},D:hn,C:hn,L:hn,m:hn,X:hn,S:hn,M:hn},p:0,findDOMNode:null},Hz=Symbol.for("react.portal");function Vz(e,t,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hz,key:n==null?null:""+n,children:e,containerInfo:t,implementation:a}}var is=Zz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function zc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qt;Zt.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(mI(299));return Vz(e,t,null,a)};Zt.flushSync=function(e){var t=is.T,a=qt.p;try{if(is.T=null,qt.p=2,e)return e()}finally{is.T=t,qt.p=a,qt.d.f()}};Zt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,qt.d.C(e,t))};Zt.prefetchDNS=function(e){typeof e=="string"&&qt.d.D(e)};Zt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,n=zc(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?qt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:r,fetchPriority:o}):a==="script"&&qt.d.X(e,{crossOrigin:n,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Zt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=zc(t.as,t.crossOrigin);qt.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&qt.d.M(e)};Zt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,n=zc(a,t.crossOrigin);qt.d.L(e,a,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Zt.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=zc(t.as,t.crossOrigin);qt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else qt.d.m(e)};Zt.requestFormReset=function(e){qt.d.r(e)};Zt.unstable_batchedUpdates=function(e,t){return e(t)};Zt.useFormState=function(e,t,a){return is.H.useFormState(e,t,a)};Zt.useFormStatus=function(){return is.H.useHostTransitionStatus()};Zt.version="19.2.3"});var yI=$t((lZ,vI)=>{"use strict";function gI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gI)}catch(e){console.error(e)}}gI(),vI.exports=hI()});var E0=$t(nf=>{"use strict";var bt=tI(),Zk=Nt(),Gz=yI();function O(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Hk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vs(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Vk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Gk(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function xI(e){if(Vs(e)!==e)throw Error(O(188))}function Jz(e){var t=e.alternate;if(!t){if(t=Vs(e),t===null)throw Error(O(188));return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var o=r.alternate;if(o===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===a)return xI(r),e;if(o===n)return xI(r),t;o=o.sibling}throw Error(O(188))}if(a.return!==n.return)a=r,n=o;else{for(var i=!1,l=r.child;l;){if(l===a){i=!0,a=r,n=o;break}if(l===n){i=!0,n=r,a=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===a){i=!0,a=o,n=r;break}if(l===n){i=!0,n=o,a=r;break}l=l.sibling}if(!i)throw Error(O(189))}}if(a.alternate!==n)throw Error(O(190))}if(a.tag!==3)throw Error(O(188));return a.stateNode.current===a?e:t}function Jk(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Jk(e),t!==null)return t;e=e.sibling}return null}var We=Object.assign,Xz=Symbol.for("react.element"),Dc=Symbol.for("react.transitional.element"),ms=Symbol.for("react.portal"),Di=Symbol.for("react.fragment"),Xk=Symbol.for("react.strict_mode"),lh=Symbol.for("react.profiler"),Wk=Symbol.for("react.consumer"),Pr=Symbol.for("react.context"),ag=Symbol.for("react.forward_ref"),sh=Symbol.for("react.suspense"),uh=Symbol.for("react.suspense_list"),rg=Symbol.for("react.memo"),gn=Symbol.for("react.lazy"),ch=Symbol.for("react.activity"),Wz=Symbol.for("react.memo_cache_sentinel"),bI=Symbol.iterator;function ls(e){return e===null||typeof e!="object"?null:(e=bI&&e[bI]||e["@@iterator"],typeof e=="function"?e:null)}var Kz=Symbol.for("react.client.reference");function dh(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Kz?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Di:return"Fragment";case lh:return"Profiler";case Xk:return"StrictMode";case sh:return"Suspense";case uh:return"SuspenseList";case ch:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ms:return"Portal";case Pr:return e.displayName||"Context";case Wk:return(e._context.displayName||"Context")+".Consumer";case ag:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rg:return t=e.displayName||null,t!==null?t:dh(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return dh(e(t))}catch{}}return null}var hs=Array.isArray,re=Zk.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ee=Gz.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xo={pending:!1,data:null,method:null,action:null},fh=[],Ri=-1;function pr(e){return{current:e}}function _t(e){0>Ri||(e.current=fh[Ri],fh[Ri]=null,Ri--)}function Ze(e,t){Ri++,fh[Ri]=e.current,e.current=t}var fr=pr(null),Os=pr(null),Ln=pr(null),pd=pr(null);function md(e,t){switch(Ze(Ln,t),Ze(Os,e),Ze(fr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lk(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lk(t),e=g0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_t(fr),Ze(fr,e)}function Qi(){_t(fr),_t(Os),_t(Ln)}function ph(e){e.memoizedState!==null&&Ze(pd,e);var t=fr.current,a=g0(t,e.type);t!==a&&(Ze(Os,e),Ze(fr,a))}function hd(e){Os.current===e&&(_t(fr),_t(Os)),pd.current===e&&(_t(pd),qs._currentValue=xo)}var Tm,SI;function ho(e){if(Tm===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Tm=t&&t[1]||"",SI=-1<a.stack.indexOf(`
|
|
2
|
+
"use strict";var ChatWidgetBundle=(()=>{var Lz=Object.create;var Mc=Object.defineProperty;var Tz=Object.getOwnPropertyDescriptor;var Az=Object.getOwnPropertyNames;var Ez=Object.getPrototypeOf,Mz=Object.prototype.hasOwnProperty;var Ut=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cr=(e,t)=>{for(var a in t)Mc(e,a,{get:t[a],enumerable:!0})},Gw=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Az(t))!Mz.call(e,r)&&r!==a&&Mc(e,r,{get:()=>t[r],enumerable:!(n=Tz(t,r))||n.enumerable});return e};var be=(e,t,a)=>(a=e!=null?Lz(Ez(e)):{},Gw(t||!e||!e.__esModule?Mc(a,"default",{value:e,enumerable:!0}):a,e)),Oz=e=>Gw(Mc({},"__esModule",{value:!0}),e);var rI=Ut(et=>{"use strict";function bm(e,t){var a=e.length;e.push(t);e:for(;0<a;){var n=a-1>>>1,r=e[n];if(0<Oc(r,t))e[n]=t,e[a]=r,a=n;else break e}}function dr(e){return e.length===0?null:e[0]}function Dc(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,r=e.length,o=r>>>1;n<o;){var i=2*(n+1)-1,l=e[i],s=i+1,u=e[s];if(0>Oc(l,a))s<r&&0>Oc(u,l)?(e[n]=u,e[s]=a,n=s):(e[n]=l,e[i]=a,n=i);else if(s<r&&0>Oc(u,a))e[n]=u,e[s]=a,n=s;else break e}}return t}function Oc(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}et.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Ww=performance,et.unstable_now=function(){return Ww.now()}):(vm=Date,Jw=vm.now(),et.unstable_now=function(){return vm.now()-Jw});var Ww,vm,Jw,Or=[],vn=[],zz=1,Ma=null,jt=3,Sm=!1,is=!1,ls=!1,wm=!1,Yw=typeof setTimeout=="function"?setTimeout:null,Qw=typeof clearTimeout=="function"?clearTimeout:null,Xw=typeof setImmediate<"u"?setImmediate:null;function zc(e){for(var t=dr(vn);t!==null;){if(t.callback===null)Dc(vn);else if(t.startTime<=e)Dc(vn),t.sortIndex=t.expirationTime,bm(Or,t);else break;t=dr(vn)}}function Im(e){if(ls=!1,zc(e),!is)if(dr(Or)!==null)is=!0,Ai||(Ai=!0,Ti());else{var t=dr(vn);t!==null&&km(Im,t.startTime-e)}}var Ai=!1,ss=-1,eI=5,tI=-1;function aI(){return wm?!0:!(et.unstable_now()-tI<eI)}function ym(){if(wm=!1,Ai){var e=et.unstable_now();tI=e;var t=!0;try{e:{is=!1,ls&&(ls=!1,Qw(ss),ss=-1),Sm=!0;var a=jt;try{t:{for(zc(e),Ma=dr(Or);Ma!==null&&!(Ma.expirationTime>e&&aI());){var n=Ma.callback;if(typeof n=="function"){Ma.callback=null,jt=Ma.priorityLevel;var r=n(Ma.expirationTime<=e);if(e=et.unstable_now(),typeof r=="function"){Ma.callback=r,zc(e),t=!0;break t}Ma===dr(Or)&&Dc(Or),zc(e)}else Dc(Or);Ma=dr(Or)}if(Ma!==null)t=!0;else{var o=dr(vn);o!==null&&km(Im,o.startTime-e),t=!1}}break e}finally{Ma=null,jt=a,Sm=!1}t=void 0}}finally{t?Ti():Ai=!1}}}var Ti;typeof Xw=="function"?Ti=function(){Xw(ym)}:typeof MessageChannel<"u"?(xm=new MessageChannel,Kw=xm.port2,xm.port1.onmessage=ym,Ti=function(){Kw.postMessage(null)}):Ti=function(){Yw(ym,0)};var xm,Kw;function km(e,t){ss=Yw(function(){e(et.unstable_now())},t)}et.unstable_IdlePriority=5;et.unstable_ImmediatePriority=1;et.unstable_LowPriority=4;et.unstable_NormalPriority=3;et.unstable_Profiling=null;et.unstable_UserBlockingPriority=2;et.unstable_cancelCallback=function(e){e.callback=null};et.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):eI=0<e?Math.floor(1e3/e):5};et.unstable_getCurrentPriorityLevel=function(){return jt};et.unstable_next=function(e){switch(jt){case 1:case 2:case 3:var t=3;break;default:t=jt}var a=jt;jt=t;try{return e()}finally{jt=a}};et.unstable_requestPaint=function(){wm=!0};et.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=jt;jt=e;try{return t()}finally{jt=a}};et.unstable_scheduleCallback=function(e,t,a){var n=et.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,e={id:zz++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>n?(e.sortIndex=a,bm(vn,e),dr(Or)===null&&e===dr(vn)&&(ls?(Qw(ss),ss=-1):ls=!0,km(Im,a-n))):(e.sortIndex=r,bm(Or,e),is||Sm||(is=!0,Ai||(Ai=!0,Ti()))),e};et.unstable_shouldYield=aI;et.unstable_wrapCallback=function(e){var t=jt;return function(){var a=jt;jt=t;try{return e.apply(this,arguments)}finally{jt=a}}}});var oI=Ut((uZ,nI)=>{"use strict";nI.exports=rI()});var gI=Ut(se=>{"use strict";var Lm=Symbol.for("react.transitional.element"),Dz=Symbol.for("react.portal"),Rz=Symbol.for("react.fragment"),$z=Symbol.for("react.strict_mode"),Pz=Symbol.for("react.profiler"),Nz=Symbol.for("react.consumer"),Uz=Symbol.for("react.context"),jz=Symbol.for("react.forward_ref"),Bz=Symbol.for("react.suspense"),Fz=Symbol.for("react.memo"),cI=Symbol.for("react.lazy"),qz=Symbol.for("react.activity"),iI=Symbol.iterator;function Zz(e){return e===null||typeof e!="object"?null:(e=iI&&e[iI]||e["@@iterator"],typeof e=="function"?e:null)}var dI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fI=Object.assign,pI={};function Mi(e,t,a){this.props=e,this.context=t,this.refs=pI,this.updater=a||dI}Mi.prototype.isReactComponent={};Mi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Mi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mI(){}mI.prototype=Mi.prototype;function Tm(e,t,a){this.props=e,this.context=t,this.refs=pI,this.updater=a||dI}var Am=Tm.prototype=new mI;Am.constructor=Tm;fI(Am,Mi.prototype);Am.isPureReactComponent=!0;var lI=Array.isArray;function Cm(){}var We={H:null,A:null,T:null,S:null},hI=Object.prototype.hasOwnProperty;function Em(e,t,a){var n=a.ref;return{$$typeof:Lm,type:e,key:t,ref:n!==void 0?n:null,props:a}}function Hz(e,t){return Em(e.type,t,e.props)}function Mm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lm}function Vz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var sI=/\/+/g;function _m(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Vz(""+e.key):t.toString(36)}function Gz(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Cm,Cm):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ei(e,t,a,n,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Lm:case Dz:i=!0;break;case cI:return i=e._init,Ei(i(e._payload),t,a,n,r)}}if(i)return r=r(e),i=n===""?"."+_m(e,0):n,lI(r)?(a="",i!=null&&(a=i.replace(sI,"$&/")+"/"),Ei(r,t,a,"",function(u){return u})):r!=null&&(Mm(r)&&(r=Hz(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(sI,"$&/")+"/")+i)),t.push(r)),1;i=0;var l=n===""?".":n+":";if(lI(e))for(var s=0;s<e.length;s++)n=e[s],o=l+_m(n,s),i+=Ei(n,t,a,o,r);else if(s=Zz(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,o=l+_m(n,s++),i+=Ei(n,t,a,o,r);else if(o==="object"){if(typeof e.then=="function")return Ei(Gz(e),t,a,n,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Rc(e,t,a){if(e==null)return e;var n=[],r=0;return Ei(e,n,"","",function(o){return t.call(a,o,r++)}),n}function Wz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var uI=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jz={map:Rc,forEach:function(e,t,a){Rc(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Rc(e,function(){t++}),t},toArray:function(e){return Rc(e,function(t){return t})||[]},only:function(e){if(!Mm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Activity=qz;se.Children=Jz;se.Component=Mi;se.Fragment=Rz;se.Profiler=Pz;se.PureComponent=Tm;se.StrictMode=$z;se.Suspense=Bz;se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=We;se.__COMPILER_RUNTIME={__proto__:null,c:function(e){return We.H.useMemoCache(e)}};se.cache=function(e){return function(){return e.apply(null,arguments)}};se.cacheSignal=function(){return null};se.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=fI({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!hI.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(n[o]=t[o]);var o=arguments.length-2;if(o===1)n.children=a;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];n.children=i}return Em(e.type,r,n)};se.createContext=function(e){return e={$$typeof:Uz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Nz,_context:e},e};se.createElement=function(e,t,a){var n,r={},o=null;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)hI.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(r[n]=t[n]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];r.children=l}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)r[n]===void 0&&(r[n]=i[n]);return Em(e,o,r)};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:jz,render:e}};se.isValidElement=Mm;se.lazy=function(e){return{$$typeof:cI,_payload:{_status:-1,_result:e},_init:Wz}};se.memo=function(e,t){return{$$typeof:Fz,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=We.T,a={};We.T=a;try{var n=e(),r=We.S;r!==null&&r(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(Cm,uI)}catch(o){uI(o)}finally{t!==null&&a.types!==null&&(t.types=a.types),We.T=t}};se.unstable_useCacheRefresh=function(){return We.H.useCacheRefresh()};se.use=function(e){return We.H.use(e)};se.useActionState=function(e,t,a){return We.H.useActionState(e,t,a)};se.useCallback=function(e,t){return We.H.useCallback(e,t)};se.useContext=function(e){return We.H.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e,t){return We.H.useDeferredValue(e,t)};se.useEffect=function(e,t){return We.H.useEffect(e,t)};se.useEffectEvent=function(e){return We.H.useEffectEvent(e)};se.useId=function(){return We.H.useId()};se.useImperativeHandle=function(e,t,a){return We.H.useImperativeHandle(e,t,a)};se.useInsertionEffect=function(e,t){return We.H.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return We.H.useLayoutEffect(e,t)};se.useMemo=function(e,t){return We.H.useMemo(e,t)};se.useOptimistic=function(e,t){return We.H.useOptimistic(e,t)};se.useReducer=function(e,t,a){return We.H.useReducer(e,t,a)};se.useRef=function(e){return We.H.useRef(e)};se.useState=function(e){return We.H.useState(e)};se.useSyncExternalStore=function(e,t,a){return We.H.useSyncExternalStore(e,t,a)};se.useTransition=function(){return We.H.useTransition()};se.version="19.2.3"});var Bt=Ut((dZ,vI)=>{"use strict";vI.exports=gI()});var xI=Ut(Vt=>{"use strict";var Xz=Bt();function yI(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function yn(){}var Ht={d:{f:yn,r:function(){throw Error(yI(522))},D:yn,C:yn,L:yn,m:yn,X:yn,S:yn,M:yn},p:0,findDOMNode:null},Kz=Symbol.for("react.portal");function Yz(e,t,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Kz,key:n==null?null:""+n,children:e,containerInfo:t,implementation:a}}var us=Xz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function $c(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ht;Vt.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(yI(299));return Yz(e,t,null,a)};Vt.flushSync=function(e){var t=us.T,a=Ht.p;try{if(us.T=null,Ht.p=2,e)return e()}finally{us.T=t,Ht.p=a,Ht.d.f()}};Vt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ht.d.C(e,t))};Vt.prefetchDNS=function(e){typeof e=="string"&&Ht.d.D(e)};Vt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,n=$c(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?Ht.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:r,fetchPriority:o}):a==="script"&&Ht.d.X(e,{crossOrigin:n,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Vt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=$c(t.as,t.crossOrigin);Ht.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ht.d.M(e)};Vt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,n=$c(a,t.crossOrigin);Ht.d.L(e,a,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Vt.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=$c(t.as,t.crossOrigin);Ht.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ht.d.m(e)};Vt.requestFormReset=function(e){Ht.d.r(e)};Vt.unstable_batchedUpdates=function(e,t){return e(t)};Vt.useFormState=function(e,t,a){return us.H.useFormState(e,t,a)};Vt.useFormStatus=function(){return us.H.useHostTransitionStatus()};Vt.version="19.2.3"});var wI=Ut((pZ,SI)=>{"use strict";function bI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bI)}catch(e){console.error(e)}}bI(),SI.exports=xI()});var DC=Ut(sf=>{"use strict";var It=oI(),Wk=Bt(),Qz=wI();function O(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Jk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Js(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Xk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Kk(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function II(e){if(Js(e)!==e)throw Error(O(188))}function eD(e){var t=e.alternate;if(!t){if(t=Js(e),t===null)throw Error(O(188));return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var o=r.alternate;if(o===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===a)return II(r),e;if(o===n)return II(r),t;o=o.sibling}throw Error(O(188))}if(a.return!==n.return)a=r,n=o;else{for(var i=!1,l=r.child;l;){if(l===a){i=!0,a=r,n=o;break}if(l===n){i=!0,n=r,a=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===a){i=!0,a=o,n=r;break}if(l===n){i=!0,n=o,a=r;break}l=l.sibling}if(!i)throw Error(O(189))}}if(a.alternate!==n)throw Error(O(190))}if(a.tag!==3)throw Error(O(188));return a.stateNode.current===a?e:t}function Yk(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Yk(e),t!==null)return t;e=e.sibling}return null}var Ke=Object.assign,tD=Symbol.for("react.element"),Pc=Symbol.for("react.transitional.element"),vs=Symbol.for("react.portal"),Pi=Symbol.for("react.fragment"),Qk=Symbol.for("react.strict_mode"),dh=Symbol.for("react.profiler"),e_=Symbol.for("react.consumer"),jr=Symbol.for("react.context"),ig=Symbol.for("react.forward_ref"),fh=Symbol.for("react.suspense"),ph=Symbol.for("react.suspense_list"),lg=Symbol.for("react.memo"),xn=Symbol.for("react.lazy"),mh=Symbol.for("react.activity"),aD=Symbol.for("react.memo_cache_sentinel"),kI=Symbol.iterator;function cs(e){return e===null||typeof e!="object"?null:(e=kI&&e[kI]||e["@@iterator"],typeof e=="function"?e:null)}var rD=Symbol.for("react.client.reference");function hh(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===rD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pi:return"Fragment";case dh:return"Profiler";case Qk:return"StrictMode";case fh:return"Suspense";case ph:return"SuspenseList";case mh:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case vs:return"Portal";case jr:return e.displayName||"Context";case e_:return(e._context.displayName||"Context")+".Consumer";case ig:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lg:return t=e.displayName||null,t!==null?t:hh(e.type)||"Memo";case xn:t=e._payload,e=e._init;try{return hh(e(t))}catch{}}return null}var ys=Array.isArray,re=Wk.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Me=Qz.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,wo={pending:!1,data:null,method:null,action:null},gh=[],Ni=-1;function gr(e){return{current:e}}function Tt(e){0>Ni||(e.current=gh[Ni],gh[Ni]=null,Ni--)}function He(e,t){Ni++,gh[Ni]=e.current,e.current=t}var hr=gr(null),Rs=gr(null),En=gr(null),gd=gr(null);function vd(e,t){switch(He(En,t),He(Rs,e),He(hr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mk(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mk(t),e=bC(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Tt(hr),He(hr,e)}function al(){Tt(hr),Tt(Rs),Tt(En)}function vh(e){e.memoizedState!==null&&He(gd,e);var t=hr.current,a=bC(t,e.type);t!==a&&(He(Rs,e),He(hr,a))}function yd(e){Rs.current===e&&(Tt(hr),Tt(Rs)),gd.current===e&&(Tt(gd),Vs._currentValue=wo)}var Om,_I;function yo(e){if(Om===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Om=t&&t[1]||"",_I=-1<a.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+
|
|
4
|
+
`+Om+e+_I}var zm=!1;function Dm(e,t){if(!e||zm)return"";zm=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(f){var p=f}Reflect.construct(e,[],d)}else{try{d.call()}catch(f){p=f}e.call(d.prototype)}}else{try{throw Error()}catch(f){p=f}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(f){if(f&&p&&typeof f.stack=="string")return[f.stack,p.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),i=o[0],l=o[1];if(i&&l){var s=i.split(`
|
|
5
5
|
`),u=l.split(`
|
|
6
6
|
`);for(r=n=0;n<s.length&&!s[n].includes("DetermineComponentFrameRoot");)n++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(n===s.length||r===u.length)for(n=s.length-1,r=u.length-1;1<=n&&0<=r&&s[n]!==u[r];)r--;for(;1<=n&&0<=r;n--,r--)if(s[n]!==u[r]){if(n!==1||r!==1)do if(n--,r--,0>r||s[n]!==u[r]){var c=`
|
|
7
|
-
`+s[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=n&&0<=r);break}}}finally{
|
|
7
|
+
`+s[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=n&&0<=r);break}}}finally{zm=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?yo(a):""}function nD(e,t){switch(e.tag){case 26:case 27:case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return e.child!==t&&t!==null?yo("Suspense Fallback"):yo("Suspense");case 19:return yo("SuspenseList");case 0:case 15:return Dm(e.type,!1);case 11:return Dm(e.type.render,!1);case 1:return Dm(e.type,!0);case 31:return yo("Activity");default:return""}}function CI(e){try{var t="",a=null;do t+=nD(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
8
8
|
Error generating stack: `+n.message+`
|
|
9
|
-
`+n.stack}}var mh=Object.prototype.hasOwnProperty,ng=bt.unstable_scheduleCallback,Mm=bt.unstable_cancelCallback,Qz=bt.unstable_shouldYield,eD=bt.unstable_requestPaint,va=bt.unstable_now,tD=bt.unstable_getCurrentPriorityLevel,Kk=bt.unstable_ImmediatePriority,Yk=bt.unstable_UserBlockingPriority,gd=bt.unstable_NormalPriority,aD=bt.unstable_LowPriority,Qk=bt.unstable_IdlePriority,rD=bt.log,nD=bt.unstable_setDisableYieldValue,Gs=null,ya=null;function wn(e){if(typeof rD=="function"&&nD(e),ya&&typeof ya.setStrictMode=="function")try{ya.setStrictMode(Gs,e)}catch{}}var xa=Math.clz32?Math.clz32:lD,oD=Math.log,iD=Math.LN2;function lD(e){return e>>>=0,e===0?32:31-(oD(e)/iD|0)|0}var Rc=256,$c=262144,Pc=4194304;function go(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fd(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=n&134217727;return l!==0?(n=l&~o,n!==0?r=go(n):(i&=l,i!==0?r=go(i):a||(a=l&~e,a!==0&&(r=go(a))))):(l=n&~o,l!==0?r=go(l):i!==0?r=go(i):a||(a=n&~e,a!==0&&(r=go(a)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:r}function Js(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sD(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function e_(){var e=Pc;return Pc<<=1,(Pc&62914560)===0&&(Pc=4194304),e}function Om(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uD(e,t,a,n,r,o){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(a=i&~a;0<a;){var c=31-xa(a),d=1<<c;l[c]=0,s[c]=-1;var p=u[c];if(p!==null)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];f!==null&&(f.lane&=-536870913)}a&=~d}n!==0&&t_(e,n,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function t_(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-xa(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function a_(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-xa(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function r_(e,t){var a=t&-t;return a=(a&42)!==0?1:og(a),(a&(e.suspendedLanes|t))!==0?0:a}function og(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ig(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function n_(){var e=Ee.p;return e!==0?e:(e=window.event,e===void 0?32:L0(e.type))}function II(e,t){var a=Ee.p;try{return Ee.p=e,t()}finally{Ee.p=a}}var jn=Math.random().toString(36).slice(2),Et="__reactFiber$"+jn,aa="__reactProps$"+jn,cl="__reactContainer$"+jn,hh="__reactEvents$"+jn,cD="__reactListeners$"+jn,dD="__reactHandles$"+jn,kI="__reactResources$"+jn,Ws="__reactMarker$"+jn;function lg(e){delete e[Et],delete e[aa],delete e[hh],delete e[cD],delete e[dD]}function $i(e){var t=e[Et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[cl]||a[Et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ok(e);e!==null;){if(a=e[Et])return a;e=Ok(e)}return t}e=a,a=e.parentNode}return null}function dl(e){if(e=e[Et]||e[cl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function gs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(O(33))}function Vi(e){var t=e[kI];return t||(t=e[kI]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[Ws]=!0}var o_=new Set,i_={};function Ao(e,t){el(e,t),el(e+"Capture",t)}function el(e,t){for(i_[e]=t,e=0;e<t.length;e++)o_.add(t[e])}var fD=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]*$"),_I={},CI={};function pD(e){return mh.call(CI,e)?!0:mh.call(_I,e)?!1:fD.test(e)?CI[e]=!0:(_I[e]=!0,!1)}function Yc(e,t,a){if(pD(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Nc(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Er(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Ea(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function l_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mD(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gh(e){if(!e._valueTracker){var t=l_(e)?"checked":"value";e._valueTracker=mD(e,t,""+e[t])}}function s_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=l_(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function vd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hD=/[\n"\\]/g;function za(e){return e.replace(hD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vh(e,t,a,n,r,o,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ea(t)):e.value!==""+Ea(t)&&(e.value=""+Ea(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?yh(e,i,Ea(t)):a!=null?yh(e,i,Ea(a)):n!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Ea(l):e.removeAttribute("name")}function u_(e,t,a,n,r,o,i,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){gh(e);return}a=a!=null?""+Ea(a):"",t=t!=null?""+Ea(t):a,l||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=l?e.checked:!!n,e.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),gh(e)}function yh(e,t,a){t==="number"&&vd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Gi(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Ea(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function c_(e,t,a){if(t!=null&&(t=""+Ea(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ea(a):""}function d_(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(O(92));if(hs(n)){if(1<n.length)throw Error(O(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ea(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),gh(e)}function tl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var gD=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 LI(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||gD.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function f_(e,t,a){if(t!=null&&typeof t!="object")throw Error(O(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&a[r]!==n&&LI(e,r,n)}else for(var o in t)t.hasOwnProperty(o)&&LI(e,o,t[o])}function sg(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vD=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"]]),yD=/^[\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 Qc(e){return yD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Nr(){}var xh=null;function ug(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pi=null,Ji=null;function TI(e){var t=dl(e);if(t&&(e=t.stateNode)){var a=e[aa]||null;e:switch(e=t.stateNode,t.type){case"input":if(vh(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+za(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[aa]||null;if(!r)throw Error(O(90));vh(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&s_(n)}break e;case"textarea":c_(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Gi(e,!!a.multiple,t,!1)}}}var zm=!1;function p_(e,t,a){if(zm)return e(t,a);zm=!0;try{var n=e(t);return n}finally{if(zm=!1,(Pi!==null||Ji!==null)&&(ef(),Pi&&(t=Pi,e=Ji,Ji=Pi=null,TI(t),e)))for(t=0;t<e.length;t++)TI(e[t])}}function zs(e,t){var a=e.stateNode;if(a===null)return null;var n=a[aa]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(O(231,t,typeof a));return a}var qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bh=!1;if(qr)try{Ai={},Object.defineProperty(Ai,"passive",{get:function(){bh=!0}}),window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{bh=!1}var Ai,In=null,cg=null,ed=null;function m_(){if(ed)return ed;var e,t=cg,a=t.length,n,r="value"in In?In.value:In.textContent,o=r.length;for(e=0;e<a&&t[e]===r[e];e++);var i=a-e;for(n=1;n<=i&&t[a-n]===r[o-n];n++);return ed=r.slice(e,1<n?1-n:void 0)}function td(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Uc(){return!0}function AI(){return!1}function ra(e){function t(a,n,r,o,i){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(a=e[l],this[l]=a?a(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Uc:AI,this.isPropagationStopped=AI,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Uc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Uc)},persist:function(){},isPersistent:Uc}),t}var Eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qd=ra(Eo),Ks=We({},Eo,{view:0,detail:0}),xD=ra(Ks),Dm,Rm,ss,Zd=We({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ss&&(ss&&e.type==="mousemove"?(Dm=e.screenX-ss.screenX,Rm=e.screenY-ss.screenY):Rm=Dm=0,ss=e),Dm)},movementY:function(e){return"movementY"in e?e.movementY:Rm}}),EI=ra(Zd),bD=We({},Zd,{dataTransfer:0}),SD=ra(bD),wD=We({},Ks,{relatedTarget:0}),$m=ra(wD),ID=We({},Eo,{animationName:0,elapsedTime:0,pseudoElement:0}),kD=ra(ID),_D=We({},Eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CD=ra(_D),LD=We({},Eo,{data:0}),MI=ra(LD),TD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AD={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"},ED={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ED[e])?!!t[e]:!1}function dg(){return MD}var OD=We({},Ks,{key:function(e){if(e.key){var t=TD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=td(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dg,charCode:function(e){return e.type==="keypress"?td(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?td(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zD=ra(OD),DD=We({},Zd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),OI=ra(DD),RD=We({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dg}),$D=ra(RD),PD=We({},Eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),ND=ra(PD),UD=We({},Zd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jD=ra(UD),BD=We({},Eo,{newState:0,oldState:0}),FD=ra(BD),qD=[9,13,27,32],fg=qr&&"CompositionEvent"in window,xs=null;qr&&"documentMode"in document&&(xs=document.documentMode);var ZD=qr&&"TextEvent"in window&&!xs,h_=qr&&(!fg||xs&&8<xs&&11>=xs),zI=" ",DI=!1;function g_(e,t){switch(e){case"keyup":return qD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function v_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ni=!1;function HD(e,t){switch(e){case"compositionend":return v_(t);case"keypress":return t.which!==32?null:(DI=!0,zI);case"textInput":return e=t.data,e===zI&&DI?null:e;default:return null}}function VD(e,t){if(Ni)return e==="compositionend"||!fg&&g_(e,t)?(e=m_(),ed=cg=In=null,Ni=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return h_&&t.locale!=="ko"?null:t.data;default:return null}}var GD={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 RI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!GD[e.type]:t==="textarea"}function y_(e,t,a,n){Pi?Ji?Ji.push(n):Ji=[n]:Pi=n,t=Rd(t,"onChange"),0<t.length&&(a=new qd("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var bs=null,Ds=null;function JD(e){p0(e,0)}function Hd(e){var t=gs(e);if(s_(t))return e}function $I(e,t){if(e==="change")return t}var x_=!1;qr&&(qr?(Bc="oninput"in document,Bc||(Pm=document.createElement("div"),Pm.setAttribute("oninput","return;"),Bc=typeof Pm.oninput=="function"),jc=Bc):jc=!1,x_=jc&&(!document.documentMode||9<document.documentMode));var jc,Bc,Pm;function PI(){bs&&(bs.detachEvent("onpropertychange",b_),Ds=bs=null)}function b_(e){if(e.propertyName==="value"&&Hd(Ds)){var t=[];y_(t,Ds,e,ug(e)),p_(JD,t)}}function XD(e,t,a){e==="focusin"?(PI(),bs=t,Ds=a,bs.attachEvent("onpropertychange",b_)):e==="focusout"&&PI()}function WD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hd(Ds)}function KD(e,t){if(e==="click")return Hd(t)}function YD(e,t){if(e==="input"||e==="change")return Hd(t)}function QD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sa=typeof Object.is=="function"?Object.is:QD;function Rs(e,t){if(Sa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!mh.call(t,r)||!Sa(e[r],t[r]))return!1}return!0}function NI(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function UI(e,t){var a=NI(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=NI(a)}}function S_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?S_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w_(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vd(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=vd(e.document)}return t}function pg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eR=qr&&"documentMode"in document&&11>=document.documentMode,Ui=null,Sh=null,Ss=null,wh=!1;function jI(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;wh||Ui==null||Ui!==vd(n)||(n=Ui,"selectionStart"in n&&pg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ss&&Rs(Ss,n)||(Ss=n,n=Rd(Sh,"onSelect"),0<n.length&&(t=new qd("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ui)))}function mo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ji={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionrun:mo("Transition","TransitionRun"),transitionstart:mo("Transition","TransitionStart"),transitioncancel:mo("Transition","TransitionCancel"),transitionend:mo("Transition","TransitionEnd")},Nm={},I_={};qr&&(I_=document.createElement("div").style,"AnimationEvent"in window||(delete ji.animationend.animation,delete ji.animationiteration.animation,delete ji.animationstart.animation),"TransitionEvent"in window||delete ji.transitionend.transition);function Mo(e){if(Nm[e])return Nm[e];if(!ji[e])return e;var t=ji[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in I_)return Nm[e]=t[a];return e}var k_=Mo("animationend"),__=Mo("animationiteration"),C_=Mo("animationstart"),tR=Mo("transitionrun"),aR=Mo("transitionstart"),rR=Mo("transitioncancel"),L_=Mo("transitionend"),T_=new Map,Ih="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(" ");Ih.push("scrollEnd");function Qa(e,t){T_.set(e,t),Ao(t,[e])}var yd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Aa=[],Bi=0,mg=0;function Vd(){for(var e=Bi,t=mg=Bi=0;t<e;){var a=Aa[t];Aa[t++]=null;var n=Aa[t];Aa[t++]=null;var r=Aa[t];Aa[t++]=null;var o=Aa[t];if(Aa[t++]=null,n!==null&&r!==null){var i=n.pending;i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r}o!==0&&A_(a,r,o)}}function Gd(e,t,a,n){Aa[Bi++]=e,Aa[Bi++]=t,Aa[Bi++]=a,Aa[Bi++]=n,mg|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function hg(e,t,a,n){return Gd(e,t,a,n),xd(e)}function Oo(e,t){return Gd(e,null,null,t),xd(e)}function A_(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,o=e.return;o!==null;)o.childLanes|=a,n=o.alternate,n!==null&&(n.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-xa(a),e=o.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),o):null}function xd(e){if(50<Es)throw Es=0,Zh=null,Error(O(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fi={};function nR(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ha(e,t,a,n){return new nR(e,t,a,n)}function gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jr(e,t){var a=e.alternate;return a===null?(a=ha(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function E_(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ad(e,t,a,n,r,o){var i=0;if(n=e,typeof e=="function")gg(e)&&(i=1);else if(typeof e=="string")i=l$(e,a,fr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ch:return e=ha(31,a,t,r),e.elementType=ch,e.lanes=o,e;case Di:return bo(a.children,r,o,t);case Xk:i=8,r|=24;break;case lh:return e=ha(12,a,t,r|2),e.elementType=lh,e.lanes=o,e;case sh:return e=ha(13,a,t,r),e.elementType=sh,e.lanes=o,e;case uh:return e=ha(19,a,t,r),e.elementType=uh,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pr:i=10;break e;case Wk:i=9;break e;case ag:i=11;break e;case rg:i=14;break e;case gn:i=16,n=null;break e}i=29,a=Error(O(130,e===null?"null":typeof e,"")),n=null}return t=ha(i,a,t,r),t.elementType=e,t.type=n,t.lanes=o,t}function bo(e,t,a,n){return e=ha(7,e,n,t),e.lanes=a,e}function Um(e,t,a){return e=ha(6,e,null,t),e.lanes=a,e}function M_(e){var t=ha(18,null,null,0);return t.stateNode=e,t}function jm(e,t,a){return t=ha(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var BI=new WeakMap;function Da(e,t){if(typeof e=="object"&&e!==null){var a=BI.get(e);return a!==void 0?a:(t={value:e,source:t,stack:wI(t)},BI.set(e,t),t)}return{value:e,source:t,stack:wI(t)}}var qi=[],Zi=0,bd=null,$s=0,Ma=[],Oa=0,$n=null,ur=1,cr="";function Rr(e,t){qi[Zi++]=$s,qi[Zi++]=bd,bd=e,$s=t}function O_(e,t,a){Ma[Oa++]=ur,Ma[Oa++]=cr,Ma[Oa++]=$n,$n=e;var n=ur;e=cr;var r=32-xa(n)-1;n&=~(1<<r),a+=1;var o=32-xa(t)+r;if(30<o){var i=r-r%5;o=(n&(1<<i)-1).toString(32),n>>=i,r-=i,ur=1<<32-xa(t)+r|a<<r|n,cr=o+e}else ur=1<<o|a<<r|n,cr=e}function vg(e){e.return!==null&&(Rr(e,1),O_(e,1,0))}function yg(e){for(;e===bd;)bd=qi[--Zi],qi[Zi]=null,$s=qi[--Zi],qi[Zi]=null;for(;e===$n;)$n=Ma[--Oa],Ma[Oa]=null,cr=Ma[--Oa],Ma[Oa]=null,ur=Ma[--Oa],Ma[Oa]=null}function z_(e,t){Ma[Oa++]=ur,Ma[Oa++]=cr,Ma[Oa++]=$n,ur=t.id,cr=t.overflow,$n=e}var Mt=null,Xe=null,Ie=!1,Tn=null,Ra=!1,kh=Error(O(519));function Pn(e){var t=Error(O(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ps(Da(t,e)),kh}function FI(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Et]=e,t[aa]=n,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<Bs.length;a++)ve(Bs[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),u_(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),d_(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||h0(t.textContent,a)?(n.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),n.onScroll!=null&&ve("scroll",t),n.onScrollEnd!=null&&ve("scrollend",t),n.onClick!=null&&(t.onclick=Nr),t=!0):t=!1,t||Pn(e,!0)}function qI(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:Ra=!1;return;case 27:case 3:Ra=!0;return;default:Mt=Mt.return}}function Ei(e){if(e!==Mt)return!1;if(!Ie)return qI(e),Ie=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Xh(e.type,e.memoizedProps)),a=!a),a&&Xe&&Pn(e),qI(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));Xe=Mk(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));Xe=Mk(e)}else t===27?(t=Xe,Bn(e.type)?(e=Qh,Qh=null,Xe=e):Xe=t):Xe=Mt?Pa(e.stateNode.nextSibling):null;return!0}function ko(){Xe=Mt=null,Ie=!1}function Bm(){var e=Tn;return e!==null&&(ea===null?ea=e:ea.push.apply(ea,e),Tn=null),e}function Ps(e){Tn===null?Tn=[e]:Tn.push(e)}var _h=pr(null),zo=null,Ur=null;function yn(e,t,a){Ze(_h,t._currentValue),t._currentValue=a}function Br(e){e._currentValue=_h.current,_t(_h)}function Ch(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Lh(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var i=r.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=r;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=a,l=o.alternate,l!==null&&(l.lanes|=a),Ch(o.return,a,e),n||(i=null);break e}o=l.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(O(341));i.lanes|=a,o=i.alternate,o!==null&&(o.lanes|=a),Ch(i,a,e),i=null}else i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function fl(e,t,a,n){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(O(387));if(i=i.memoizedProps,i!==null){var l=r.type;Sa(r.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(r===pd.current){if(i=r.alternate,i===null)throw Error(O(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(qs):e=[qs])}r=r.return}e!==null&&Lh(t,e,a,n),t.flags|=262144}function Sd(e){for(e=e.firstContext;e!==null;){if(!Sa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _o(e){zo=e,Ur=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return D_(zo,e)}function Fc(e,t){return zo===null&&_o(e),D_(e,t)}function D_(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ur===null){if(e===null)throw Error(O(308));Ur=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ur=Ur.next=t;return a}var oR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},iR=bt.unstable_scheduleCallback,lR=bt.unstable_NormalPriority,gt={$$typeof:Pr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xg(){return{controller:new oR,data:new Map,refCount:0}}function Ys(e){e.refCount--,e.refCount===0&&iR(lR,function(){e.controller.abort()})}var ws=null,Th=0,al=0,Xi=null;function sR(e,t){if(ws===null){var a=ws=[];Th=0,al=Zg(),Xi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Th++,t.then(ZI,ZI),t}function ZI(){if(--Th===0&&ws!==null){Xi!==null&&(Xi.status="fulfilled");var e=ws;ws=null,al=0,Xi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uR(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var HI=re.S;re.S=function(e,t){JC=va(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sR(e,t),HI!==null&&HI(e,t)};var So=pr(null);function bg(){var e=So.current;return e!==null?e:Fe.pooledCache}function rd(e,t){t===null?Ze(So,So.current):Ze(So,t.pool)}function R_(){var e=bg();return e===null?null:{parent:gt._currentValue,pool:e}}var pl=Error(O(460)),Sg=Error(O(474)),Jd=Error(O(542)),wd={then:function(){}};function VI(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $_(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Nr,Nr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,JI(e),e;default:if(typeof t.status=="string")t.then(Nr,Nr);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(O(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,JI(e),e}throw wo=t,pl}}function vo(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(wo=a,pl):a}}var wo=null;function GI(){if(wo===null)throw Error(O(459));var e=wo;return wo=null,e}function JI(e){if(e===pl||e===Jd)throw Error(O(483))}var Wi=null,Ns=0;function qc(e){var t=Ns;return Ns+=1,Wi===null&&(Wi=[]),$_(Wi,e,t)}function us(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zc(e,t){throw t.$$typeof===Xz?Error(O(525)):(e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function P_(e){function t(v,y){if(e){var g=v.deletions;g===null?(v.deletions=[y],v.flags|=16):g.push(y)}}function a(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function n(v){for(var y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function r(v,y){return v=jr(v,y),v.index=0,v.sibling=null,v}function o(v,y,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<y?(v.flags|=67108866,y):g):(v.flags|=67108866,y)):(v.flags|=1048576,y)}function i(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function l(v,y,g,S){return y===null||y.tag!==6?(y=Um(g,v.mode,S),y.return=v,y):(y=r(y,g),y.return=v,y)}function s(v,y,g,S){var L=g.type;return L===Di?c(v,y,g.props.children,S,g.key):y!==null&&(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===gn&&vo(L)===y.type)?(y=r(y,g.props),us(y,g),y.return=v,y):(y=ad(g.type,g.key,g.props,null,v.mode,S),us(y,g),y.return=v,y)}function u(v,y,g,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=jm(g,v.mode,S),y.return=v,y):(y=r(y,g.children||[]),y.return=v,y)}function c(v,y,g,S,L){return y===null||y.tag!==7?(y=bo(g,v.mode,S,L),y.return=v,y):(y=r(y,g),y.return=v,y)}function d(v,y,g){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Um(""+y,v.mode,g),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Dc:return g=ad(y.type,y.key,y.props,null,v.mode,g),us(g,y),g.return=v,g;case ms:return y=jm(y,v.mode,g),y.return=v,y;case gn:return y=vo(y),d(v,y,g)}if(hs(y)||ls(y))return y=bo(y,v.mode,g,null),y.return=v,y;if(typeof y.then=="function")return d(v,qc(y),g);if(y.$$typeof===Pr)return d(v,Fc(v,y),g);Zc(v,y)}return null}function p(v,y,g,S){var L=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return L!==null?null:l(v,y,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Dc:return g.key===L?s(v,y,g,S):null;case ms:return g.key===L?u(v,y,g,S):null;case gn:return g=vo(g),p(v,y,g,S)}if(hs(g)||ls(g))return L!==null?null:c(v,y,g,S,null);if(typeof g.then=="function")return p(v,y,qc(g),S);if(g.$$typeof===Pr)return p(v,y,Fc(v,g),S);Zc(v,g)}return null}function f(v,y,g,S,L){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return v=v.get(g)||null,l(y,v,""+S,L);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Dc:return v=v.get(S.key===null?g:S.key)||null,s(y,v,S,L);case ms:return v=v.get(S.key===null?g:S.key)||null,u(y,v,S,L);case gn:return S=vo(S),f(v,y,g,S,L)}if(hs(S)||ls(S))return v=v.get(g)||null,c(y,v,S,L,null);if(typeof S.then=="function")return f(v,y,g,qc(S),L);if(S.$$typeof===Pr)return f(v,y,g,Fc(y,S),L);Zc(y,S)}return null}function m(v,y,g,S){for(var L=null,_=null,A=y,z=y=0,$=null;A!==null&&z<g.length;z++){A.index>z?($=A,A=null):$=A.sibling;var k=p(v,A,g[z],S);if(k===null){A===null&&(A=$);break}e&&A&&k.alternate===null&&t(v,A),y=o(k,y,z),_===null?L=k:_.sibling=k,_=k,A=$}if(z===g.length)return a(v,A),Ie&&Rr(v,z),L;if(A===null){for(;z<g.length;z++)A=d(v,g[z],S),A!==null&&(y=o(A,y,z),_===null?L=A:_.sibling=A,_=A);return Ie&&Rr(v,z),L}for(A=n(A);z<g.length;z++)$=f(A,v,z,g[z],S),$!==null&&(e&&$.alternate!==null&&A.delete($.key===null?z:$.key),y=o($,y,z),_===null?L=$:_.sibling=$,_=$);return e&&A.forEach(function(G){return t(v,G)}),Ie&&Rr(v,z),L}function x(v,y,g,S){if(g==null)throw Error(O(151));for(var L=null,_=null,A=y,z=y=0,$=null,k=g.next();A!==null&&!k.done;z++,k=g.next()){A.index>z?($=A,A=null):$=A.sibling;var G=p(v,A,k.value,S);if(G===null){A===null&&(A=$);break}e&&A&&G.alternate===null&&t(v,A),y=o(G,y,z),_===null?L=G:_.sibling=G,_=G,A=$}if(k.done)return a(v,A),Ie&&Rr(v,z),L;if(A===null){for(;!k.done;z++,k=g.next())k=d(v,k.value,S),k!==null&&(y=o(k,y,z),_===null?L=k:_.sibling=k,_=k);return Ie&&Rr(v,z),L}for(A=n(A);!k.done;z++,k=g.next())k=f(A,v,z,k.value,S),k!==null&&(e&&k.alternate!==null&&A.delete(k.key===null?z:k.key),y=o(k,y,z),_===null?L=k:_.sibling=k,_=k);return e&&A.forEach(function(Z){return t(v,Z)}),Ie&&Rr(v,z),L}function b(v,y,g,S){if(typeof g=="object"&&g!==null&&g.type===Di&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Dc:e:{for(var L=g.key;y!==null;){if(y.key===L){if(L=g.type,L===Di){if(y.tag===7){a(v,y.sibling),S=r(y,g.props.children),S.return=v,v=S;break e}}else if(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===gn&&vo(L)===y.type){a(v,y.sibling),S=r(y,g.props),us(S,g),S.return=v,v=S;break e}a(v,y);break}else t(v,y);y=y.sibling}g.type===Di?(S=bo(g.props.children,v.mode,S,g.key),S.return=v,v=S):(S=ad(g.type,g.key,g.props,null,v.mode,S),us(S,g),S.return=v,v=S)}return i(v);case ms:e:{for(L=g.key;y!==null;){if(y.key===L)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){a(v,y.sibling),S=r(y,g.children||[]),S.return=v,v=S;break e}else{a(v,y);break}else t(v,y);y=y.sibling}S=jm(g,v.mode,S),S.return=v,v=S}return i(v);case gn:return g=vo(g),b(v,y,g,S)}if(hs(g))return m(v,y,g,S);if(ls(g)){if(L=ls(g),typeof L!="function")throw Error(O(150));return g=L.call(g),x(v,y,g,S)}if(typeof g.then=="function")return b(v,y,qc(g),S);if(g.$$typeof===Pr)return b(v,y,Fc(v,g),S);Zc(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,y!==null&&y.tag===6?(a(v,y.sibling),S=r(y,g),S.return=v,v=S):(a(v,y),S=Um(g,v.mode,S),S.return=v,v=S),i(v)):a(v,y)}return function(v,y,g,S){try{Ns=0;var L=b(v,y,g,S);return Wi=null,L}catch(A){if(A===pl||A===Jd)throw A;var _=ha(29,A,null,v.mode);return _.lanes=S,_.return=v,_}}}var Co=P_(!0),N_=P_(!1),vn=!1;function wg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ah(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function An(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function En(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ae&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=xd(e),A_(e,null,a),t}return Gd(e,n,t,a),xd(e)}function Is(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,a_(e,a)}}function Fm(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?r=o=i:o=o.next=i,a=a.next}while(a!==null);o===null?r=o=t:o=o.next=t}else r=o=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Eh=!1;function ks(){if(Eh){var e=Xi;if(e!==null)throw e}}function _s(e,t,a,n){Eh=!1;var r=e.updateQueue;vn=!1;var o=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var s=l,u=s.next;s.next=null,i===null?o=u:i.next=u,i=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==i&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(o!==null){var d=r.baseState;i=0,c=u=s=null,l=o;do{var p=l.lane&-536870913,f=p!==l.lane;if(f?(be&p)===p:(n&p)===p){p!==0&&p===al&&(Eh=!0),c!==null&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,x=l;p=t;var b=a;switch(x.tag){case 1:if(m=x.payload,typeof m=="function"){d=m.call(b,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,p=typeof m=="function"?m.call(b,d,p):m,p==null)break e;d=We({},d,p);break e;case 2:vn=!0}}p=l.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=r.callbacks,f===null?r.callbacks=[p]:f.push(p))}else f={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=f,s=d):c=c.next=f,i|=p;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;f=l,l=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);c===null&&(s=d),r.baseState=s,r.firstBaseUpdate=u,r.lastBaseUpdate=c,o===null&&(r.shared.lanes=0),Un|=i,e.lanes=i,e.memoizedState=d}}function U_(e,t){if(typeof e!="function")throw Error(O(191,e));e.call(t)}function j_(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)U_(a[e],t)}var rl=pr(null),Id=pr(0);function XI(e,t){e=Gr,Ze(Id,e),Ze(rl,t),Gr=e|t.baseLanes}function Mh(){Ze(Id,Gr),Ze(rl,rl.current)}function Ig(){Gr=Id.current,_t(rl),_t(Id)}var wa=pr(null),$a=null;function xn(e){var t=e.alternate;Ze(ct,ct.current&1),Ze(wa,e),$a===null&&(t===null||rl.current!==null||t.memoizedState!==null)&&($a=e)}function Oh(e){Ze(ct,ct.current),Ze(wa,e),$a===null&&($a=e)}function B_(e){e.tag===22?(Ze(ct,ct.current),Ze(wa,e),$a===null&&($a=e)):bn(e)}function bn(){Ze(ct,ct.current),Ze(wa,wa.current)}function ma(e){_t(wa),$a===e&&($a=null),_t(ct)}var ct=pr(0);function kd(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Kh(a)||Yh(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zr=0,ce=null,je=null,mt=null,_d=!1,Ki=!1,Lo=!1,Cd=0,Us=0,Yi=null,cR=0;function ot(){throw Error(O(321))}function kg(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Sa(e[a],t[a]))return!1;return!0}function _g(e,t,a,n,r,o){return Zr=o,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,re.H=e===null||e.memoizedState===null?yC:$g,Lo=!1,o=a(n,r),Lo=!1,Ki&&(o=q_(t,a,n,r)),F_(e),o}function F_(e){re.H=js;var t=je!==null&&je.next!==null;if(Zr=0,mt=je=ce=null,_d=!1,Us=0,Yi=null,t)throw Error(O(300));e===null||vt||(e=e.dependencies,e!==null&&Sd(e)&&(vt=!0))}function q_(e,t,a,n){ce=e;var r=0;do{if(Ki&&(Yi=null),Us=0,Ki=!1,25<=r)throw Error(O(301));if(r+=1,mt=je=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}re.H=xC,o=t(a,n)}while(Ki);return o}function dR(){var e=re.H,t=e.useState()[0];return t=typeof t.then=="function"?Qs(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ce.flags|=1024),t}function Cg(){var e=Cd!==0;return Cd=0,e}function Lg(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Tg(e){if(_d){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_d=!1}Zr=0,mt=je=ce=null,Ki=!1,Us=Cd=0,Yi=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?ce.memoizedState=mt=e:mt=mt.next=e,mt}function dt(){if(je===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=mt===null?ce.memoizedState:mt.next;if(t!==null)mt=t,je=e;else{if(e===null)throw ce.alternate===null?Error(O(467)):Error(O(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},mt===null?ce.memoizedState=mt=e:mt=mt.next=e}return mt}function Xd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qs(e){var t=Us;return Us+=1,Yi===null&&(Yi=[]),e=$_(Yi,e,t),t=ce,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,re.H=t===null||t.memoizedState===null?yC:$g),e}function Wd(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Qs(e);if(e.$$typeof===Pr)return Ot(e)}throw Error(O(438,String(e)))}function Ag(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ce.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xd(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Wz;return t.index++,a}function Hr(e,t){return typeof t=="function"?t(e):t}function nd(e){var t=dt();return Eg(t,je,e)}function Eg(e,t,a){var n=e.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=a;var r=e.baseQueue,o=n.pending;if(o!==null){if(r!==null){var i=r.next;r.next=o.next,o.next=i}t.baseQueue=r=o,n.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var l=i=null,s=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(be&d)===d:(Zr&d)===d){var p=u.revertLane;if(p===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===al&&(c=!0);else if((Zr&p)===p){u=u.next,p===al&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=d,i=o):s=s.next=d,ce.lanes|=p,Un|=p;d=u.action,Lo&&a(o,d),o=u.hasEagerState?u.eagerState:a(o,d)}else p={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=p,i=o):s=s.next=p,ce.lanes|=d,Un|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=o:s.next=l,!Sa(o,e.memoizedState)&&(vt=!0,c&&(a=Xi,a!==null)))throw a;e.memoizedState=o,e.baseState=i,e.baseQueue=s,n.lastRenderedState=o}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function qm(e){var t=dt(),a=t.queue;if(a===null)throw Error(O(311));a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,o=t.memoizedState;if(r!==null){a.pending=null;var i=r=r.next;do o=e(o,i.action),i=i.next;while(i!==r);Sa(o,t.memoizedState)||(vt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,n]}function Z_(e,t,a){var n=ce,r=dt(),o=Ie;if(o){if(a===void 0)throw Error(O(407));a=a()}else a=t();var i=!Sa((je||r).memoizedState,a);if(i&&(r.memoizedState=a,vt=!0),r=r.queue,Mg(G_.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||mt!==null&&mt.memoizedState.tag&1){if(n.flags|=2048,nl(9,{destroy:void 0},V_.bind(null,n,r,a,t),null),Fe===null)throw Error(O(349));o||(Zr&127)!==0||H_(n,t,a)}return a}function H_(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Xd(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function V_(e,t,a,n){t.value=a,t.getSnapshot=n,J_(t)&&X_(e)}function G_(e,t,a){return a(function(){J_(t)&&X_(e)})}function J_(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Sa(e,a)}catch{return!0}}function X_(e){var t=Oo(e,2);t!==null&&ta(t,e,2)}function zh(e){var t=Ht();if(typeof e=="function"){var a=e;if(e=a(),Lo){wn(!0);try{a()}finally{wn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:e},t}function W_(e,t,a,n){return e.baseState=a,Eg(e,je,typeof n=="function"?n:Hr)}function fR(e,t,a,n,r){if(Yd(e))throw Error(O(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){o.listeners.push(i)}};re.T!==null?a(!0):o.isTransition=!1,n(o),a=t.pending,a===null?(o.next=t.pending=o,K_(t,o)):(o.next=a.next,t.pending=a.next=o)}}function K_(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var o=re.T,i={};re.T=i;try{var l=a(r,n),s=re.S;s!==null&&s(i,l),WI(e,t,l)}catch(u){Dh(e,t,u)}finally{o!==null&&i.types!==null&&(o.types=i.types),re.T=o}}else try{o=a(r,n),WI(e,t,o)}catch(u){Dh(e,t,u)}}function WI(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){KI(e,t,n)},function(n){return Dh(e,t,n)}):KI(e,t,a)}function KI(e,t,a){t.status="fulfilled",t.value=a,Y_(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,K_(e,a)))}function Dh(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Y_(t),t=t.next;while(t!==n)}e.action=null}function Y_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Q_(e,t){return t}function YI(e,t){if(Ie){var a=Fe.formState;if(a!==null){e:{var n=ce;if(Ie){if(Xe){t:{for(var r=Xe,o=Ra;r.nodeType!==8;){if(!o){r=null;break t}if(r=Pa(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Xe=Pa(r.nextSibling),n=r.data==="F!";break e}}Pn(n)}n=!1}n&&(t=a[0])}}return a=Ht(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q_,lastRenderedState:t},a.queue=n,a=hC.bind(null,ce,n),n.dispatch=a,n=zh(!1),o=Rg.bind(null,ce,!1,n.queue),n=Ht(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=fR.bind(null,ce,r,o,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function QI(e){var t=dt();return eC(t,je,e)}function eC(e,t,a){if(t=Eg(e,t,Q_)[0],e=nd(Hr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Qs(t)}catch(i){throw i===pl?Jd:i}else n=t;t=dt();var r=t.queue,o=r.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,nl(9,{destroy:void 0},pR.bind(null,r,a),null)),[n,o,e]}function pR(e,t){e.action=t}function ek(e){var t=dt(),a=je;if(a!==null)return eC(t,a,e);dt(),t=t.memoizedState,a=dt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function nl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Xd(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function tC(){return dt().memoizedState}function od(e,t,a,n){var r=Ht();ce.flags|=e,r.memoizedState=nl(1|t,{destroy:void 0},a,n===void 0?null:n)}function Kd(e,t,a,n){var r=dt();n=n===void 0?null:n;var o=r.memoizedState.inst;je!==null&&n!==null&&kg(n,je.memoizedState.deps)?r.memoizedState=nl(t,o,a,n):(ce.flags|=e,r.memoizedState=nl(1|t,o,a,n))}function tk(e,t){od(8390656,8,e,t)}function Mg(e,t){Kd(2048,8,e,t)}function mR(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Xd(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function aC(e){var t=dt().memoizedState;return mR({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(O(440));return t.impl.apply(void 0,arguments)}}function rC(e,t){return Kd(4,2,e,t)}function nC(e,t){return Kd(4,4,e,t)}function oC(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function iC(e,t,a){a=a!=null?a.concat([e]):null,Kd(4,4,oC.bind(null,t,e),a)}function Og(){}function lC(e,t){var a=dt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&kg(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function sC(e,t){var a=dt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&kg(t,n[1]))return n[0];if(n=e(),Lo){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[n,t],n}function zg(e,t,a){return a===void 0||(Zr&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=WC(),ce.lanes|=e,Un|=e,a)}function uC(e,t,a,n){return Sa(a,t)?a:rl.current!==null?(e=zg(e,a,n),Sa(e,t)||(vt=!0),e):(Zr&42)===0||(Zr&1073741824)!==0&&(be&261930)===0?(vt=!0,e.memoizedState=a):(e=WC(),ce.lanes|=e,Un|=e,t)}function cC(e,t,a,n,r){var o=Ee.p;Ee.p=o!==0&&8>o?o:8;var i=re.T,l={};re.T=l,Rg(e,!1,t,a);try{var s=r(),u=re.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=uR(s,n);Cs(e,t,c,ba(e))}else Cs(e,t,n,ba(e))}catch(d){Cs(e,t,{then:function(){},status:"rejected",reason:d},ba())}finally{Ee.p=o,i!==null&&l.types!==null&&(i.types=l.types),re.T=i}}function hR(){}function Rh(e,t,a,n){if(e.tag!==5)throw Error(O(476));var r=dC(e).queue;cC(e,r,t,xo,a===null?hR:function(){return fC(e),a(n)})}function dC(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xo,baseState:xo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:xo},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fC(e){var t=dC(e);t.next===null&&(t=e.alternate.memoizedState),Cs(e,t.next.queue,{},ba())}function Dg(){return Ot(qs)}function pC(){return dt().memoizedState}function mC(){return dt().memoizedState}function gR(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=ba();e=An(a);var n=En(t,e,a);n!==null&&(ta(n,t,a),Is(n,t,a)),t={cache:xg()},e.payload=t;return}t=t.return}}function vR(e,t,a){var n=ba();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Yd(e)?gC(t,a):(a=hg(e,t,a,n),a!==null&&(ta(a,e,n),vC(a,t,n)))}function hC(e,t,a){var n=ba();Cs(e,t,a,n)}function Cs(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Yd(e))gC(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,a);if(r.hasEagerState=!0,r.eagerState=l,Sa(l,i))return Gd(e,t,r,0),Fe===null&&Vd(),!1}catch{}if(a=hg(e,t,r,n),a!==null)return ta(a,e,n),vC(a,t,n),!0}return!1}function Rg(e,t,a,n){if(n={lane:2,revertLane:Zg(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Yd(e)){if(t)throw Error(O(479))}else t=hg(e,a,n,2),t!==null&&ta(t,e,2)}function Yd(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function gC(e,t){Ki=_d=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function vC(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,a_(e,a)}}var js={readContext:Ot,use:Wd,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};js.useEffectEvent=ot;var yC={readContext:Ot,use:Wd,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:tk,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,od(4194308,4,oC.bind(null,t,e),a)},useLayoutEffect:function(e,t){return od(4194308,4,e,t)},useInsertionEffect:function(e,t){od(4,2,e,t)},useMemo:function(e,t){var a=Ht();t=t===void 0?null:t;var n=e();if(Lo){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=Ht();if(a!==void 0){var r=a(t);if(Lo){wn(!0);try{a(t)}finally{wn(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=vR.bind(null,ce,e),[n.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=zh(e);var t=e.queue,a=hC.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Og,useDeferredValue:function(e,t){var a=Ht();return zg(a,e,t)},useTransition:function(){var e=zh(!1);return e=cC.bind(null,ce,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ce,r=Ht();if(Ie){if(a===void 0)throw Error(O(407));a=a()}else{if(a=t(),Fe===null)throw Error(O(349));(be&127)!==0||H_(n,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,tk(G_.bind(null,n,o,e),[e]),n.flags|=2048,nl(9,{destroy:void 0},V_.bind(null,n,o,a,t),null),a},useId:function(){var e=Ht(),t=Fe.identifierPrefix;if(Ie){var a=cr,n=ur;a=(n&~(1<<32-xa(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Cd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=cR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dg,useFormState:YI,useActionState:YI,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Rg.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ag,useCacheRefresh:function(){return Ht().memoizedState=gR.bind(null,ce)},useEffectEvent:function(e){var t=Ht(),a={impl:e};return t.memoizedState=a,function(){if((Ae&2)!==0)throw Error(O(440));return a.impl.apply(void 0,arguments)}}},$g={readContext:Ot,use:Wd,useCallback:lC,useContext:Ot,useEffect:Mg,useImperativeHandle:iC,useInsertionEffect:rC,useLayoutEffect:nC,useMemo:sC,useReducer:nd,useRef:tC,useState:function(){return nd(Hr)},useDebugValue:Og,useDeferredValue:function(e,t){var a=dt();return uC(a,je.memoizedState,e,t)},useTransition:function(){var e=nd(Hr)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Qs(e),t]},useSyncExternalStore:Z_,useId:pC,useHostTransitionStatus:Dg,useFormState:QI,useActionState:QI,useOptimistic:function(e,t){var a=dt();return W_(a,je,e,t)},useMemoCache:Ag,useCacheRefresh:mC};$g.useEffectEvent=aC;var xC={readContext:Ot,use:Wd,useCallback:lC,useContext:Ot,useEffect:Mg,useImperativeHandle:iC,useInsertionEffect:rC,useLayoutEffect:nC,useMemo:sC,useReducer:qm,useRef:tC,useState:function(){return qm(Hr)},useDebugValue:Og,useDeferredValue:function(e,t){var a=dt();return je===null?zg(a,e,t):uC(a,je.memoizedState,e,t)},useTransition:function(){var e=qm(Hr)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Qs(e),t]},useSyncExternalStore:Z_,useId:pC,useHostTransitionStatus:Dg,useFormState:ek,useActionState:ek,useOptimistic:function(e,t){var a=dt();return je!==null?W_(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ag,useCacheRefresh:mC};xC.useEffectEvent=aC;function Zm(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:We({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var $h={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=ba(),r=An(n);r.payload=t,a!=null&&(r.callback=a),t=En(e,r,n),t!==null&&(ta(t,e,n),Is(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=ba(),r=An(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=En(e,r,n),t!==null&&(ta(t,e,n),Is(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ba(),n=An(a);n.tag=2,t!=null&&(n.callback=t),t=En(e,n,a),t!==null&&(ta(t,e,a),Is(t,e,a))}};function ak(e,t,a,n,r,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!Rs(a,n)||!Rs(r,o):!0}function rk(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&$h.enqueueReplaceState(t,t.state,null)}function To(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=We({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function bC(e){yd(e)}function SC(e){console.error(e)}function wC(e){yd(e)}function Ld(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function nk(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ph(e,t,a){return a=An(a),a.tag=3,a.payload={element:null},a.callback=function(){Ld(e,t)},a}function IC(e){return e=An(e),e.tag=3,e}function kC(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var o=n.value;e.payload=function(){return r(o)},e.callback=function(){nk(t,a,n)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){nk(t,a,n),typeof r!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var l=n.stack;this.componentDidCatch(n.value,{componentStack:l!==null?l:""})})}function yR(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&fl(t,a,r,!0),a=wa.current,a!==null){switch(a.tag){case 31:case 13:return $a===null?Od():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===wd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),th(e,n,r)),!1;case 22:return a.flags|=65536,n===wd?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),th(e,n,r)),!1}throw Error(O(435,a.tag))}return th(e,n,r),Od(),!1}if(Ie)return t=wa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==kh&&(e=Error(O(422),{cause:n}),Ps(Da(e,a)))):(n!==kh&&(t=Error(O(423),{cause:n}),Ps(Da(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=Da(n,a),r=Ph(e.stateNode,n,r),Fm(e,r),it!==4&&(it=2)),!1;var o=Error(O(520),{cause:n});if(o=Da(o,a),As===null?As=[o]:As.push(o),it!==4&&(it=2),t===null)return!0;n=Da(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Ph(a.stateNode,n,e),Fm(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Mn===null||!Mn.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=IC(r),kC(r,e,a,n),Fm(a,r),!1}a=a.return}while(a!==null);return!1}var Pg=Error(O(461)),vt=!1;function At(e,t,a,n){t.child=e===null?N_(t,null,a,n):Co(t,e.child,a,n)}function ok(e,t,a,n,r){a=a.render;var o=t.ref;if("ref"in n){var i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}else i=n;return _o(t),n=_g(e,t,a,i,o,r),l=Cg(),e!==null&&!vt?(Lg(e,t,r),Vr(e,t,r)):(Ie&&l&&vg(t),t.flags|=1,At(e,t,n,r),t.child)}function ik(e,t,a,n,r){if(e===null){var o=a.type;return typeof o=="function"&&!gg(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,_C(e,t,o,n,r)):(e=ad(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Ng(e,r)){var i=o.memoizedProps;if(a=a.compare,a=a!==null?a:Rs,a(i,n)&&e.ref===t.ref)return Vr(e,t,r)}return t.flags|=1,e=jr(o,n),e.ref=t.ref,e.return=t,t.child=e}function _C(e,t,a,n,r){if(e!==null){var o=e.memoizedProps;if(Rs(o,n)&&e.ref===t.ref)if(vt=!1,t.pendingProps=n=o,Ng(e,r))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,Vr(e,t,r)}return Nh(e,t,a,n,r)}function CC(e,t,a,n){var r=n.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~o}else n=0,t.child=null;return lk(e,t,o,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rd(t,o!==null?o.cachePool:null),o!==null?XI(t,o):Mh(),B_(t);else return n=t.lanes=536870912,lk(e,t,o!==null?o.baseLanes|a:a,a,n)}else o!==null?(rd(t,o.cachePool),XI(t,o),bn(t),t.memoizedState=null):(e!==null&&rd(t,null),Mh(),bn(t));return At(e,t,r,a),t.child}function vs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lk(e,t,a,n,r){var o=bg();return o=o===null?null:{parent:gt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&rd(t,null),Mh(),B_(t),e!==null&&fl(e,t,n,!0),t.childLanes=r,null}function id(e,t){return t=Td({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sk(e,t,a){return Co(t,e.child,null,a),e=id(t,t.pendingProps),e.flags|=2,ma(t),t.memoizedState=null,e}function xR(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ie){if(n.mode==="hidden")return e=id(t,n),t.lanes=536870912,vs(null,e);if(Oh(t),(e=Xe)?(e=y0(e,Ra),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},a=M_(e),a.return=t,t.child=a,Mt=t,Xe=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return id(t,n)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if(Oh(t),r)if(t.flags&256)t.flags&=-257,t=sk(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(O(558));else if(vt||fl(e,t,a,!1),r=(a&e.childLanes)!==0,vt||r){if(n=Fe,n!==null&&(i=r_(n,a),i!==0&&i!==o.retryLane))throw o.retryLane=i,Oo(e,i),ta(n,e,i),Pg;Od(),t=sk(e,t,a)}else e=o.treeContext,Xe=Pa(i.nextSibling),Mt=t,Ie=!0,Tn=null,Ra=!1,e!==null&&z_(t,e),t=id(t,n),t.flags|=4096;return t}return e=jr(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ld(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(O(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Nh(e,t,a,n,r){return _o(t),a=_g(e,t,a,n,void 0,r),n=Cg(),e!==null&&!vt?(Lg(e,t,r),Vr(e,t,r)):(Ie&&n&&vg(t),t.flags|=1,At(e,t,a,r),t.child)}function uk(e,t,a,n,r,o){return _o(t),t.updateQueue=null,a=q_(t,n,a,r),F_(e),n=Cg(),e!==null&&!vt?(Lg(e,t,o),Vr(e,t,o)):(Ie&&n&&vg(t),t.flags|=1,At(e,t,a,o),t.child)}function ck(e,t,a,n,r){if(_o(t),t.stateNode===null){var o=Fi,i=a.contextType;typeof i=="object"&&i!==null&&(o=Ot(i)),o=new a(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=$h,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},wg(t),i=a.contextType,o.context=typeof i=="object"&&i!==null?Ot(i):Fi,o.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Zm(t,a,i,n),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(i=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),i!==o.state&&$h.enqueueReplaceState(o,o.state,null),_s(t,n,o,r),ks(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,s=To(a,l);o.props=s;var u=o.context,c=a.contextType;i=Fi,typeof c=="object"&&c!==null&&(i=Ot(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==i)&&rk(t,o,n,i),vn=!1;var p=t.memoizedState;o.state=p,_s(t,n,o,r),ks(),u=t.memoizedState,l||p!==u||vn?(typeof d=="function"&&(Zm(t,a,d,n),u=t.memoizedState),(s=vn||ak(t,a,s,n,p,u,i))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=i,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Ah(e,t),i=t.memoizedProps,c=To(a,i),o.props=c,d=t.pendingProps,p=o.context,u=a.contextType,s=Fi,typeof u=="object"&&u!==null&&(s=Ot(u)),l=a.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==d||p!==s)&&rk(t,o,n,s),vn=!1,p=t.memoizedState,o.state=p,_s(t,n,o,r),ks();var f=t.memoizedState;i!==d||p!==f||vn||e!==null&&e.dependencies!==null&&Sd(e.dependencies)?(typeof l=="function"&&(Zm(t,a,l,n),f=t.memoizedState),(c=vn||ak(t,a,c,n,p,f,s)||e!==null&&e.dependencies!==null&&Sd(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,f,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,f,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),o.props=n,o.state=f,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return o=n,ld(e,t),n=(t.flags&128)!==0,o||n?(o=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&n?(t.child=Co(t,e.child,null,r),t.child=Co(t,null,a,r)):At(e,t,a,r),t.memoizedState=o.state,e=t.child):e=Vr(e,t,r),e}function dk(e,t,a,n){return ko(),t.flags|=256,At(e,t,a,n),t.child}var Hm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vm(e){return{baseLanes:e,cachePool:R_()}}function Gm(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ga),e}function LC(e,t,a){var n=t.pendingProps,r=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ie){if(r?xn(t):bn(t),(e=Xe)?(e=y0(e,Ra),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},a=M_(e),a.return=t,t.child=a,Mt=t,Xe=null)):e=null,e===null)throw Pn(t);return Yh(e)?t.lanes=32:t.lanes=536870912,null}var l=n.children;return n=n.fallback,r?(bn(t),r=t.mode,l=Td({mode:"hidden",children:l},r),n=bo(n,r,a,null),l.return=t,n.return=t,l.sibling=n,t.child=l,n=t.child,n.memoizedState=Vm(a),n.childLanes=Gm(e,i,a),t.memoizedState=Hm,vs(null,n)):(xn(t),Uh(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(o)t.flags&256?(xn(t),t.flags&=-257,t=Jm(e,t,a)):t.memoizedState!==null?(bn(t),t.child=e.child,t.flags|=128,t=null):(bn(t),l=n.fallback,r=t.mode,n=Td({mode:"visible",children:n.children},r),l=bo(l,r,a,null),l.flags|=2,n.return=t,l.return=t,n.sibling=l,t.child=n,Co(t,e.child,null,a),n=t.child,n.memoizedState=Vm(a),n.childLanes=Gm(e,i,a),t.memoizedState=Hm,t=vs(null,n));else if(xn(t),Yh(l)){if(i=l.nextSibling&&l.nextSibling.dataset,i)var u=i.dgst;i=u,n=Error(O(419)),n.stack="",n.digest=i,Ps({value:n,source:null,stack:null}),t=Jm(e,t,a)}else if(vt||fl(e,t,a,!1),i=(a&e.childLanes)!==0,vt||i){if(i=Fe,i!==null&&(n=r_(i,a),n!==0&&n!==s.retryLane))throw s.retryLane=n,Oo(e,n),ta(i,e,n),Pg;Kh(l)||Od(),t=Jm(e,t,a)}else Kh(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Xe=Pa(l.nextSibling),Mt=t,Ie=!0,Tn=null,Ra=!1,e!==null&&z_(t,e),t=Uh(t,n.children),t.flags|=4096);return t}return r?(bn(t),l=n.fallback,r=t.mode,s=e.child,u=s.sibling,n=jr(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=jr(u,l):(l=bo(l,r,a,null),l.flags|=2),l.return=t,n.return=t,n.sibling=l,t.child=n,vs(null,n),n=t.child,l=e.child.memoizedState,l===null?l=Vm(a):(r=l.cachePool,r!==null?(s=gt._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=R_(),l={baseLanes:l.baseLanes|a,cachePool:r}),n.memoizedState=l,n.childLanes=Gm(e,i,a),t.memoizedState=Hm,vs(e.child,n)):(xn(t),a=e.child,e=a.sibling,a=jr(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a)}function Uh(e,t){return t=Td({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Td(e,t){return e=ha(22,e,null,t),e.lanes=0,e}function Jm(e,t,a){return Co(t,e.child,null,a),e=Uh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fk(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ch(e.return,t,a)}function Xm(e,t,a,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=a,i.tailMode=r,i.treeForkCount=o)}function TC(e,t,a){var n=t.pendingProps,r=n.revealOrder,o=n.tail;n=n.children;var i=ct.current,l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,Ze(ct,i),At(e,t,n,a),n=Ie?$s:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fk(e,a,t);else if(e.tag===19)fk(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&kd(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Xm(t,!1,r,a,o,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&kd(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Xm(t,!0,a,null,o,n);break;case"together":Xm(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Vr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,a=jr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=jr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ng(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Sd(e)))}function bR(e,t,a){switch(t.tag){case 3:md(t,t.stateNode.containerInfo),yn(t,gt,e.memoizedState.cache),ko();break;case 27:case 5:ph(t);break;case 4:md(t,t.stateNode.containerInfo);break;case 10:yn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oh(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(xn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?LC(e,t,a):(xn(t),e=Vr(e,t,a),e!==null?e.sibling:null);xn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(fl(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return TC(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ze(ct,ct.current),n)break;return null;case 22:return t.lanes=0,CC(e,t,a,t.pendingProps);case 24:yn(t,gt,e.memoizedState.cache)}return Vr(e,t,a)}function AC(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Ng(e,a)&&(t.flags&128)===0)return vt=!1,bR(e,t,a);vt=(e.flags&131072)!==0}else vt=!1,Ie&&(t.flags&1048576)!==0&&O_(t,$s,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=vo(t.elementType),t.type=e,typeof e=="function")gg(e)?(n=To(e,n),t.tag=1,t=ck(null,t,e,n,a)):(t.tag=0,t=Nh(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===ag){t.tag=11,t=ok(null,t,e,n,a);break e}else if(r===rg){t.tag=14,t=ik(null,t,e,n,a);break e}}throw t=dh(e)||e,Error(O(306,t,""))}}return t;case 0:return Nh(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=To(n,t.pendingProps),ck(e,t,n,r,a);case 3:e:{if(md(t,t.stateNode.containerInfo),e===null)throw Error(O(387));n=t.pendingProps;var o=t.memoizedState;r=o.element,Ah(e,t),_s(t,n,null,a);var i=t.memoizedState;if(n=i.cache,yn(t,gt,n),n!==o.cache&&Lh(t,[gt],a,!0),ks(),n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=dk(e,t,n,a);break e}else if(n!==r){r=Da(Error(O(424)),t),Ps(r),t=dk(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Xe=Pa(e.firstChild),Mt=t,Ie=!0,Tn=null,Ra=!0,a=N_(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ko(),n===r){t=Vr(e,t,a);break e}At(e,t,n,a)}t=t.child}return t;case 26:return ld(e,t),e===null?(a=Dk(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ie||(a=t.type,e=t.pendingProps,n=$d(Ln.current).createElement(a),n[Et]=t,n[aa]=e,zt(n,a,e),kt(n),t.stateNode=n):t.memoizedState=Dk(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ph(t),e===null&&Ie&&(n=t.stateNode=x0(t.type,t.pendingProps,Ln.current),Mt=t,Ra=!0,r=Xe,Bn(t.type)?(Qh=r,Xe=Pa(n.firstChild)):Xe=r),At(e,t,t.pendingProps.children,a),ld(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ie&&((r=n=Xe)&&(n=JR(n,t.type,t.pendingProps,Ra),n!==null?(t.stateNode=n,Mt=t,Xe=Pa(n.firstChild),Ra=!1,r=!0):r=!1),r||Pn(t)),ph(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,n=o.children,Xh(r,o)?n=null:i!==null&&Xh(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=_g(e,t,dR,null,null,a),qs._currentValue=r),ld(e,t),At(e,t,n,a),t.child;case 6:return e===null&&Ie&&((e=a=Xe)&&(a=XR(a,t.pendingProps,Ra),a!==null?(t.stateNode=a,Mt=t,Xe=null,e=!0):e=!1),e||Pn(t)),null;case 13:return LC(e,t,a);case 4:return md(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Co(t,null,n,a):At(e,t,n,a),t.child;case 11:return ok(e,t,t.type,t.pendingProps,a);case 7:return At(e,t,t.pendingProps,a),t.child;case 8:return At(e,t,t.pendingProps.children,a),t.child;case 12:return At(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,yn(t,t.type,n.value),At(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,_o(t),r=Ot(r),n=n(r),t.flags|=1,At(e,t,n,a),t.child;case 14:return ik(e,t,t.type,t.pendingProps,a);case 15:return _C(e,t,t.type,t.pendingProps,a);case 19:return TC(e,t,a);case 31:return xR(e,t,a);case 22:return CC(e,t,a,t.pendingProps);case 24:return _o(t),n=Ot(gt),e===null?(r=bg(),r===null&&(r=Fe,o=xg(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:n,cache:r},wg(t),yn(t,gt,r)):((e.lanes&a)!==0&&(Ah(e,t),_s(t,null,null,a),ks()),r=e.memoizedState,o=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),yn(t,gt,n)):(n=o.cache,yn(t,gt,n),n!==r.cache&&Lh(t,[gt],a,!0))),At(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(O(156,t.tag))}function Mr(e){e.flags|=4}function Wm(e,t,a,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(QC())e.flags|=8192;else throw wo=wd,Sg}else e.flags&=-16777217}function pk(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!w0(t))if(QC())e.flags|=8192;else throw wo=wd,Sg}function Hc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?e_():536870912,e.lanes|=t,ol|=t)}function cs(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function SR(e,t,a){var n=t.pendingProps;switch(yg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Br(gt),Qi(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ei(t)?Mr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bm())),Je(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(Mr(t),o!==null?(Je(t),pk(t,o)):(Je(t),Wm(t,r,null,n,a))):o?o!==e.memoizedState?(Mr(t),Je(t),pk(t,o)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Mr(t),Je(t),Wm(t,r,e,n,a)),null;case 27:if(hd(t),a=Ln.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Mr(t);else{if(!n){if(t.stateNode===null)throw Error(O(166));return Je(t),null}e=fr.current,Ei(t)?FI(t,e):(e=x0(r,n,a),t.stateNode=e,Mr(t))}return Je(t),null;case 5:if(hd(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Mr(t);else{if(!n){if(t.stateNode===null)throw Error(O(166));return Je(t),null}if(o=fr.current,Ei(t))FI(t,o);else{var i=$d(Ln.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=i.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r)}}o[Et]=t,o[aa]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)o.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch(zt(o,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Mr(t)}}return Je(t),Wm(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Mr(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(O(166));if(e=Ln.current,Ei(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=Mt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[Et]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||h0(e.nodeValue,a)),e||Pn(t,!0)}else e=$d(e).createTextNode(n),e[Et]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Ei(t),a!==null){if(e===null){if(!n)throw Error(O(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(557));e[Et]=t}else ko(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=Bm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ma(t),t):(ma(t),null);if((t.flags&128)!==0)throw Error(O(558))}return Je(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Ei(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(O(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(O(317));r[Et]=t}else ko(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),r=!1}else r=Bm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ma(t),t):(ma(t),null)}return ma(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Hc(t,t.updateQueue),Je(t),null);case 4:return Qi(),e===null&&Hg(t.stateNode.containerInfo),Je(t),null;case 10:return Br(t.type),Je(t),null;case 19:if(_t(ct),n=t.memoizedState,n===null)return Je(t),null;if(r=(t.flags&128)!==0,o=n.rendering,o===null)if(r)cs(n,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=kd(e),o!==null){for(t.flags|=128,cs(n,!1),e=o.updateQueue,t.updateQueue=e,Hc(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)E_(a,e),a=a.sibling;return Ze(ct,ct.current&1|2),Ie&&Rr(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&va()>Ed&&(t.flags|=128,r=!0,cs(n,!1),t.lanes=4194304)}else{if(!r)if(e=kd(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Hc(t,e),cs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!Ie)return Je(t),null}else 2*va()-n.renderingStartTime>Ed&&a!==536870912&&(t.flags|=128,r=!0,cs(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=va(),e.sibling=null,a=ct.current,Ze(ct,r?a&1|2:a&1),Ie&&Rr(t,n.treeForkCount),e):(Je(t),null);case 22:case 23:return ma(t),Ig(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&Hc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&_t(So),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Br(gt),Je(t),null;case 25:return null;case 30:return null}throw Error(O(156,t.tag))}function wR(e,t){switch(yg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(gt),Qi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hd(t),null;case 31:if(t.memoizedState!==null){if(ma(t),t.alternate===null)throw Error(O(340));ko()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ko()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _t(ct),null;case 4:return Qi(),null;case 10:return Br(t.type),null;case 22:case 23:return ma(t),Ig(),e!==null&&_t(So),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Br(gt),null;case 25:return null;default:return null}}function EC(e,t){switch(yg(t),t.tag){case 3:Br(gt),Qi();break;case 26:case 27:case 5:hd(t);break;case 4:Qi();break;case 31:t.memoizedState!==null&&ma(t);break;case 13:ma(t);break;case 19:_t(ct);break;case 10:Br(t.type);break;case 22:case 23:ma(t),Ig(),e!==null&&_t(So);break;case 24:Br(gt)}}function eu(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var o=a.create,i=a.inst;n=o(),i.destroy=n}a=a.next}while(a!==r)}}catch(l){De(t,t.return,l)}}function Nn(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var o=r.next;n=o;do{if((n.tag&e)===e){var i=n.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,r=t;var s=a,u=l;try{u()}catch(c){De(r,s,c)}}}n=n.next}while(n!==o)}}catch(c){De(t,t.return,c)}}function MC(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{j_(t,a)}catch(n){De(e,e.return,n)}}}function OC(e,t,a){a.props=To(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){De(e,t,n)}}function Ls(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(r){De(e,t,r)}}function dr(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){De(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){De(e,t,r)}else a.current=null}function zC(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){De(e,e.return,r)}}function Km(e,t,a){try{var n=e.stateNode;FR(n,e.type,a,t),n[aa]=t}catch(r){De(e,e.return,r)}}function DC(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Bn(e.type)||e.tag===4}function Ym(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||DC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Bn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jh(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Nr));else if(n!==4&&(n===27&&Bn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(jh(e,t,a),e=e.sibling;e!==null;)jh(e,t,a),e=e.sibling}function Ad(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Bn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ad(e,t,a),e=e.sibling;e!==null;)Ad(e,t,a),e=e.sibling}function RC(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);zt(t,n,a),t[Et]=e,t[aa]=a}catch(o){De(e,e.return,o)}}var $r=!1,ht=!1,Qm=!1,mk=typeof WeakSet=="function"?WeakSet:Set,It=null;function IR(e,t){if(e=e.containerInfo,Gh=jd,e=w_(e),pg(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var i=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==a||r!==0&&d.nodeType!==3||(l=i+r),d!==o||n!==0&&d.nodeType!==3||(s=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===a&&++u===r&&(l=i),p===o&&++c===n&&(s=i),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}a=l===-1||s===-1?null:{start:l,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(Jh={focusedElem:e,selectionRange:a},jd=!1,It=t;It!==null;)if(t=It,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,It=e;else for(;It!==null;){switch(t=It,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,a=t,r=o.memoizedProps,o=o.memoizedState,n=a.stateNode;try{var m=To(a.type,r);e=n.getSnapshotBeforeUpdate(m,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(x){De(a,a.return,x)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Wh(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(O(163))}if(e=t.sibling,e!==null){e.return=t.return,It=e;break}It=t.return}}function $C(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:zr(e,a),n&4&&eu(5,a);break;case 1:if(zr(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){De(a,a.return,i)}else{var r=To(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){De(a,a.return,i)}}n&64&&MC(a),n&512&&Ls(a,a.return);break;case 3:if(zr(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{j_(e,t)}catch(i){De(a,a.return,i)}}break;case 27:t===null&&n&4&&RC(a);case 26:case 5:zr(e,a),t===null&&n&4&&zC(a),n&512&&Ls(a,a.return);break;case 12:zr(e,a);break;case 31:zr(e,a),n&4&&UC(e,a);break;case 13:zr(e,a),n&4&&jC(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=OR.bind(null,a),WR(e,a))));break;case 22:if(n=a.memoizedState!==null||$r,!n){t=t!==null&&t.memoizedState!==null||ht,r=$r;var o=ht;$r=n,(ht=t)&&!o?Dr(e,a,(a.subtreeFlags&8772)!==0):zr(e,a),$r=r,ht=o}break;case 30:break;default:zr(e,a)}}function PC(e){var t=e.alternate;t!==null&&(e.alternate=null,PC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,Qt=!1;function Or(e,t,a){for(a=a.child;a!==null;)NC(e,t,a),a=a.sibling}function NC(e,t,a){if(ya&&typeof ya.onCommitFiberUnmount=="function")try{ya.onCommitFiberUnmount(Gs,a)}catch{}switch(a.tag){case 26:ht||dr(a,t),Or(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ht||dr(a,t);var n=et,r=Qt;Bn(a.type)&&(et=a.stateNode,Qt=!1),Or(e,t,a),Ms(a.stateNode),et=n,Qt=r;break;case 5:ht||dr(a,t);case 6:if(n=et,r=Qt,et=null,Or(e,t,a),et=n,Qt=r,et!==null)if(Qt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(o){De(a,t,o)}else try{et.removeChild(a.stateNode)}catch(o){De(a,t,o)}break;case 18:et!==null&&(Qt?(e=et,Ak(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ul(e)):Ak(et,a.stateNode));break;case 4:n=et,r=Qt,et=a.stateNode.containerInfo,Qt=!0,Or(e,t,a),et=n,Qt=r;break;case 0:case 11:case 14:case 15:Nn(2,a,t),ht||Nn(4,a,t),Or(e,t,a);break;case 1:ht||(dr(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&OC(a,t,n)),Or(e,t,a);break;case 21:Or(e,t,a);break;case 22:ht=(n=ht)||a.memoizedState!==null,Or(e,t,a),ht=n;break;default:Or(e,t,a)}}function UC(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ul(e)}catch(a){De(t,t.return,a)}}}function jC(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ul(e)}catch(a){De(t,t.return,a)}}function kR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mk),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mk),t;default:throw Error(O(435,e.tag))}}function Vc(e,t){var a=kR(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=zR.bind(null,e,n);n.then(r,r)}})}function Kt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n],o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Bn(l.type)){et=l.stateNode,Qt=!1;break e}break;case 5:et=l.stateNode,Qt=!1;break e;case 3:case 4:et=l.stateNode.containerInfo,Qt=!0;break e}l=l.return}if(et===null)throw Error(O(160));NC(o,i,r),et=null,Qt=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)BC(t,e),t=t.sibling}var Ya=null;function BC(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Yt(e),n&4&&(Nn(3,e,e.return),eu(3,e),Nn(5,e,e.return));break;case 1:Kt(t,e),Yt(e),n&512&&(ht||a===null||dr(a,a.return)),n&64&&$r&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var r=Ya;if(Kt(t,e),Yt(e),n&512&&(ht||a===null||dr(a,a.return)),n&4){var o=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Ws]||o[Et]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(n),r.head.insertBefore(o,r.querySelector("head > title"))),zt(o,n,a),o[Et]=e,kt(o),n=o;break e;case"link":var i=$k("link","href",r).get(n+(a.href||""));if(i){for(var l=0;l<i.length;l++)if(o=i[l],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(l,1);break t}}o=r.createElement(n),zt(o,n,a),r.head.appendChild(o);break;case"meta":if(i=$k("meta","content",r).get(n+(a.content||""))){for(l=0;l<i.length;l++)if(o=i[l],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(l,1);break t}}o=r.createElement(n),zt(o,n,a),r.head.appendChild(o);break;default:throw Error(O(468,n))}o[Et]=e,kt(o),n=o}e.stateNode=n}else Pk(r,e.type,e.stateNode);else e.stateNode=Rk(r,n,e.memoizedProps);else o!==n?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,n===null?Pk(r,e.type,e.stateNode):Rk(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Km(e,e.memoizedProps,a.memoizedProps)}break;case 27:Kt(t,e),Yt(e),n&512&&(ht||a===null||dr(a,a.return)),a!==null&&n&4&&Km(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Kt(t,e),Yt(e),n&512&&(ht||a===null||dr(a,a.return)),e.flags&32){r=e.stateNode;try{tl(r,"")}catch(m){De(e,e.return,m)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,Km(e,r,a!==null?a.memoizedProps:r)),n&1024&&(Qm=!0);break;case 6:if(Kt(t,e),Yt(e),n&4){if(e.stateNode===null)throw Error(O(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(m){De(e,e.return,m)}}break;case 3:if(cd=null,r=Ya,Ya=Pd(t.containerInfo),Kt(t,e),Ya=r,Yt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch(m){De(e,e.return,m)}Qm&&(Qm=!1,FC(e));break;case 4:n=Ya,Ya=Pd(e.stateNode.containerInfo),Kt(t,e),Yt(e),Ya=n;break;case 12:Kt(t,e),Yt(e);break;case 31:Kt(t,e),Yt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Vc(e,n)));break;case 13:Kt(t,e),Yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Qd=va()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Vc(e,n)));break;case 22:r=e.memoizedState!==null;var s=a!==null&&a.memoizedState!==null,u=$r,c=ht;if($r=u||r,ht=c||s,Kt(t,e),ht=c,$r=u,Yt(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||s||$r||ht||yo(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){s=a=t;try{if(o=s.stateNode,r)i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{l=s.stateNode;var d=s.memoizedProps.style,p=d!=null&&d.hasOwnProperty("display")?d.display:null;l.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(m){De(s,s.return,m)}}}else if(t.tag===6){if(a===null){s=t;try{s.stateNode.nodeValue=r?"":s.memoizedProps}catch(m){De(s,s.return,m)}}}else if(t.tag===18){if(a===null){s=t;try{var f=s.stateNode;r?Ek(f,!0):Ek(s.stateNode,!1)}catch(m){De(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Vc(e,a))));break;case 19:Kt(t,e),Yt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Vc(e,n)));break;case 30:break;case 21:break;default:Kt(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(DC(n)){a=n;break}n=n.return}if(a==null)throw Error(O(160));switch(a.tag){case 27:var r=a.stateNode,o=Ym(e);Ad(e,o,r);break;case 5:var i=a.stateNode;a.flags&32&&(tl(i,""),a.flags&=-33);var l=Ym(e);Ad(e,l,i);break;case 3:case 4:var s=a.stateNode.containerInfo,u=Ym(e);jh(e,u,s);break;default:throw Error(O(161))}}catch(c){De(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function FC(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;FC(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function zr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$C(e,t.alternate,t),t=t.sibling}function yo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nn(4,t,t.return),yo(t);break;case 1:dr(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&OC(t,t.return,a),yo(t);break;case 27:Ms(t.stateNode);case 26:case 5:dr(t,t.return),yo(t);break;case 22:t.memoizedState===null&&yo(t);break;case 30:yo(t);break;default:yo(t)}e=e.sibling}}function Dr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:Dr(r,o,a),eu(4,o);break;case 1:if(Dr(r,o,a),n=o,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){De(n,n.return,u)}if(n=o,r=n.updateQueue,r!==null){var l=n.stateNode;try{var s=r.shared.hiddenCallbacks;if(s!==null)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)U_(s[r],l)}catch(u){De(n,n.return,u)}}a&&i&64&&MC(o),Ls(o,o.return);break;case 27:RC(o);case 26:case 5:Dr(r,o,a),a&&n===null&&i&4&&zC(o),Ls(o,o.return);break;case 12:Dr(r,o,a);break;case 31:Dr(r,o,a),a&&i&4&&UC(r,o);break;case 13:Dr(r,o,a),a&&i&4&&jC(r,o);break;case 22:o.memoizedState===null&&Dr(r,o,a),Ls(o,o.return);break;case 30:break;default:Dr(r,o,a)}t=t.sibling}}function Ug(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ys(a))}function jg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ys(e))}function Ka(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qC(e,t,a,n),t=t.sibling}function qC(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ka(e,t,a,n),r&2048&&eu(9,t);break;case 1:Ka(e,t,a,n);break;case 3:Ka(e,t,a,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ys(e)));break;case 12:if(r&2048){Ka(e,t,a,n),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){De(t,t.return,s)}}else Ka(e,t,a,n);break;case 31:Ka(e,t,a,n);break;case 13:Ka(e,t,a,n);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,t.memoizedState!==null?o._visibility&2?Ka(e,t,a,n):Ts(e,t):o._visibility&2?Ka(e,t,a,n):(o._visibility|=2,Oi(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Ug(i,t);break;case 24:Ka(e,t,a,n),r&2048&&jg(t.alternate,t);break;default:Ka(e,t,a,n)}}function Oi(e,t,a,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,i=t,l=a,s=n,u=i.flags;switch(i.tag){case 0:case 11:case 15:Oi(o,i,l,s,r),eu(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?Oi(o,i,l,s,r):Ts(o,i):(c._visibility|=2,Oi(o,i,l,s,r)),r&&u&2048&&Ug(i.alternate,i);break;case 24:Oi(o,i,l,s,r),r&&u&2048&&jg(i.alternate,i);break;default:Oi(o,i,l,s,r)}t=t.sibling}}function Ts(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,r=n.flags;switch(n.tag){case 22:Ts(a,n),r&2048&&Ug(n.alternate,n);break;case 24:Ts(a,n),r&2048&&jg(n.alternate,n);break;default:Ts(a,n)}t=t.sibling}}var ys=8192;function Mi(e,t,a){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)ZC(e,t,a),e=e.sibling}function ZC(e,t,a){switch(e.tag){case 26:Mi(e,t,a),e.flags&ys&&e.memoizedState!==null&&s$(a,Ya,e.memoizedState,e.memoizedProps);break;case 5:Mi(e,t,a);break;case 3:case 4:var n=Ya;Ya=Pd(e.stateNode.containerInfo),Mi(e,t,a),Ya=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ys,ys=16777216,Mi(e,t,a),ys=n):Mi(e,t,a));break;default:Mi(e,t,a)}}function HC(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];It=n,GC(n,e)}HC(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)VC(e),e=e.sibling}function VC(e){switch(e.tag){case 0:case 11:case 15:ds(e),e.flags&2048&&Nn(9,e,e.return);break;case 3:ds(e);break;case 12:ds(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,sd(e)):ds(e);break;default:ds(e)}}function sd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];It=n,GC(n,e)}HC(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nn(8,t,t.return),sd(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,sd(t));break;default:sd(t)}e=e.sibling}}function GC(e,t){for(;It!==null;){var a=It;switch(a.tag){case 0:case 11:case 15:Nn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ys(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,It=n;else e:for(a=e;It!==null;){n=It;var r=n.sibling,o=n.return;if(PC(n),n===a){It=null;break e}if(r!==null){r.return=o,It=r;break e}It=o}}}var _R={getCacheForType:function(e){var t=Ot(gt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ot(gt).controller.signal}},CR=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Fe=null,ye=null,be=0,ze=0,pa=null,kn=!1,ml=!1,Bg=!1,Gr=0,it=0,Un=0,Io=0,Fg=0,ga=0,ol=0,As=null,ea=null,Bh=!1,Qd=0,JC=0,Ed=1/0,Md=null,Mn=null,xt=0,On=null,il=null,Fr=0,Fh=0,qh=null,XC=null,Es=0,Zh=null;function ba(){return(Ae&2)!==0&&be!==0?be&-be:re.T!==null?Zg():n_()}function WC(){if(ga===0)if((be&536870912)===0||Ie){var e=$c;$c<<=1,($c&3932160)===0&&($c=262144),ga=e}else ga=536870912;return e=wa.current,e!==null&&(e.flags|=32),ga}function ta(e,t,a){(e===Fe&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(ll(e,0),_n(e,be,ga,!1)),Xs(e,a),((Ae&2)===0||e!==Fe)&&(e===Fe&&((Ae&2)===0&&(Io|=a),it===4&&_n(e,be,ga,!1)),mr(e))}function KC(e,t,a){if((Ae&6)!==0)throw Error(O(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Js(e,t),r=n?AR(e,t):eh(e,t,!0),o=n;do{if(r===0){ml&&!n&&_n(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!LR(a)){r=eh(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;r=As;var s=l.current.memoizedState.isDehydrated;if(s&&(ll(l,i).flags|=256),i=eh(l,i,!1),i!==2){if(Bg&&!s){l.errorRecoveryDisabledLanes|=o,Io|=o,r=4;break e}o=ea,ea=r,o!==null&&(ea===null?ea=o:ea.push.apply(ea,o))}r=i}if(o=!1,r!==2)continue}}if(r===1){ll(e,0),_n(e,t,0,!0);break}e:{switch(n=e,o=r,o){case 0:case 1:throw Error(O(345));case 4:if((t&4194048)!==t)break;case 6:_n(n,t,ga,!kn);break e;case 2:ea=null;break;case 3:case 5:break;default:throw Error(O(329))}if((t&62914560)===t&&(r=Qd+300-va(),10<r)){if(_n(n,t,ga,!kn),Fd(n,0,!0)!==0)break e;Fr=t,n.timeoutHandle=v0(hk.bind(null,n,a,ea,Md,Bh,t,ga,Io,ol,kn,o,"Throttled",-0,0),r);break e}hk(n,a,ea,Md,Bh,t,ga,Io,ol,kn,o,null,-0,0)}}break}while(!0);mr(e)}function hk(e,t,a,n,r,o,i,l,s,u,c,d,p,f){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nr},ZC(t,o,d);var m=(o&62914560)===o?Qd-va():(o&4194048)===o?JC-va():0;if(m=u$(d,m),m!==null){Fr=o,e.cancelPendingCommit=m(vk.bind(null,e,t,o,a,n,r,i,l,s,c,d,null,p,f)),_n(e,o,i,!u);return}}vk(e,t,o,a,n,r,i,l,s)}function LR(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],o=r.getSnapshot;r=r.value;try{if(!Sa(o(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _n(e,t,a,n){t&=~Fg,t&=~Io,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var o=31-xa(r),i=1<<o;n[o]=-1,r&=~i}a!==0&&t_(e,a,t)}function ef(){return(Ae&6)===0?(tu(0,!1),!1):!0}function qg(){if(ye!==null){if(ze===0)var e=ye.return;else e=ye,Ur=zo=null,Tg(e),Wi=null,Ns=0,e=ye;for(;e!==null;)EC(e.alternate,e),e=e.return;ye=null}}function ll(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,HR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Fr=0,qg(),Fe=e,ye=a=jr(e.current,null),be=t,ze=0,pa=null,kn=!1,ml=Js(e,t),Bg=!1,ol=ga=Fg=Io=Un=it=0,ea=As=null,Bh=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-xa(n),o=1<<r;t|=e[r],n&=~o}return Gr=t,Vd(),a}function YC(e,t){ce=null,re.H=js,t===pl||t===Jd?(t=GI(),ze=3):t===Sg?(t=GI(),ze=4):ze=t===Pg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pa=t,ye===null&&(it=1,Ld(e,Da(t,e.current)))}function QC(){var e=wa.current;return e===null?!0:(be&4194048)===be?$a===null:(be&62914560)===be||(be&536870912)!==0?e===$a:!1}function e0(){var e=re.H;return re.H=js,e===null?js:e}function t0(){var e=re.A;return re.A=_R,e}function Od(){it=4,kn||(be&4194048)!==be&&wa.current!==null||(ml=!0),(Un&134217727)===0&&(Io&134217727)===0||Fe===null||_n(Fe,be,ga,!1)}function eh(e,t,a){var n=Ae;Ae|=2;var r=e0(),o=t0();(Fe!==e||be!==t)&&(Md=null,ll(e,t)),t=!1;var i=it;e:do try{if(ze!==0&&ye!==null){var l=ye,s=pa;switch(ze){case 8:qg(),i=6;break e;case 3:case 2:case 9:case 6:wa.current===null&&(t=!0);var u=ze;if(ze=0,pa=null,Hi(e,l,s,u),a&&ml){i=0;break e}break;default:u=ze,ze=0,pa=null,Hi(e,l,s,u)}}TR(),i=it;break}catch(c){YC(e,c)}while(!0);return t&&e.shellSuspendCounter++,Ur=zo=null,Ae=n,re.H=r,re.A=o,ye===null&&(Fe=null,be=0,Vd()),i}function TR(){for(;ye!==null;)a0(ye)}function AR(e,t){var a=Ae;Ae|=2;var n=e0(),r=t0();Fe!==e||be!==t?(Md=null,Ed=va()+500,ll(e,t)):ml=Js(e,t);e:do try{if(ze!==0&&ye!==null){t=ye;var o=pa;t:switch(ze){case 1:ze=0,pa=null,Hi(e,t,o,1);break;case 2:case 9:if(VI(o)){ze=0,pa=null,gk(t);break}t=function(){ze!==2&&ze!==9||Fe!==e||(ze=7),mr(e)},o.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:VI(o)?(ze=0,pa=null,gk(t)):(ze=0,pa=null,Hi(e,t,o,7));break;case 5:var i=null;switch(ye.tag){case 26:i=ye.memoizedState;case 5:case 27:var l=ye;if(i?w0(i):l.stateNode.complete){ze=0,pa=null;var s=l.sibling;if(s!==null)ye=s;else{var u=l.return;u!==null?(ye=u,tf(u)):ye=null}break t}}ze=0,pa=null,Hi(e,t,o,5);break;case 6:ze=0,pa=null,Hi(e,t,o,6);break;case 8:qg(),it=6;break e;default:throw Error(O(462))}}ER();break}catch(c){YC(e,c)}while(!0);return Ur=zo=null,re.H=n,re.A=r,Ae=a,ye!==null?0:(Fe=null,be=0,Vd(),it)}function ER(){for(;ye!==null&&!Qz();)a0(ye)}function a0(e){var t=AC(e.alternate,e,Gr);e.memoizedProps=e.pendingProps,t===null?tf(e):ye=t}function gk(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=uk(a,t,t.pendingProps,t.type,void 0,be);break;case 11:t=uk(a,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:Tg(t);default:EC(a,t),t=ye=E_(t,Gr),t=AC(a,t,Gr)}e.memoizedProps=e.pendingProps,t===null?tf(e):ye=t}function Hi(e,t,a,n){Ur=zo=null,Tg(t),Wi=null,Ns=0;var r=t.return;try{if(yR(e,r,t,a,be)){it=1,Ld(e,Da(a,e.current)),ye=null;return}}catch(o){if(r!==null)throw ye=r,o;it=1,Ld(e,Da(a,e.current)),ye=null;return}t.flags&32768?(Ie||n===1?e=!0:ml||(be&536870912)!==0?e=!1:(kn=e=!0,(n===2||n===9||n===3||n===6)&&(n=wa.current,n!==null&&n.tag===13&&(n.flags|=16384))),r0(t,e)):tf(t)}function tf(e){var t=e;do{if((t.flags&32768)!==0){r0(t,kn);return}e=t.return;var a=SR(t.alternate,t,Gr);if(a!==null){ye=a;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);it===0&&(it=5)}function r0(e,t){do{var a=wR(e.alternate,e);if(a!==null){a.flags&=32767,ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=a}while(e!==null);it=6,ye=null}function vk(e,t,a,n,r,o,i,l,s){e.cancelPendingCommit=null;do af();while(xt!==0);if((Ae&6)!==0)throw Error(O(327));if(t!==null){if(t===e.current)throw Error(O(177));if(o=t.lanes|t.childLanes,o|=mg,uD(e,a,o,i,l,s),e===Fe&&(ye=Fe=null,be=0),il=t,On=e,Fr=a,Fh=o,qh=r,XC=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,DR(gd,function(){return s0(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=re.T,re.T=null,r=Ee.p,Ee.p=2,i=Ae,Ae|=4;try{IR(e,t,a)}finally{Ae=i,Ee.p=r,re.T=n}}xt=1,n0(),o0(),i0()}}function n0(){if(xt===1){xt=0;var e=On,t=il,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=re.T,re.T=null;var n=Ee.p;Ee.p=2;var r=Ae;Ae|=4;try{BC(t,e);var o=Jh,i=w_(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&S_(l.ownerDocument.documentElement,l)){if(s!==null&&pg(l)){var u=s.start,c=s.end;if(c===void 0&&(c=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(c,l.value.length);else{var d=l.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),m=l.textContent.length,x=Math.min(s.start,m),b=s.end===void 0?x:Math.min(s.end,m);!f.extend&&x>b&&(i=b,b=x,x=i);var v=UI(l,x),y=UI(l,b);if(v&&y&&(f.rangeCount!==1||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var g=d.createRange();g.setStart(v.node,v.offset),f.removeAllRanges(),x>b?(f.addRange(g),f.extend(y.node,y.offset)):(g.setEnd(y.node,y.offset),f.addRange(g))}}}}for(d=[],f=l;f=f.parentNode;)f.nodeType===1&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<d.length;l++){var S=d[l];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}jd=!!Gh,Jh=Gh=null}finally{Ae=r,Ee.p=n,re.T=a}}e.current=t,xt=2}}function o0(){if(xt===2){xt=0;var e=On,t=il,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=re.T,re.T=null;var n=Ee.p;Ee.p=2;var r=Ae;Ae|=4;try{$C(e,t.alternate,t)}finally{Ae=r,Ee.p=n,re.T=a}}xt=3}}function i0(){if(xt===4||xt===3){xt=0,eD();var e=On,t=il,a=Fr,n=XC;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?xt=5:(xt=0,il=On=null,l0(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Mn=null),ig(a),t=t.stateNode,ya&&typeof ya.onCommitFiberRoot=="function")try{ya.onCommitFiberRoot(Gs,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=re.T,r=Ee.p,Ee.p=2,re.T=null;try{for(var o=e.onRecoverableError,i=0;i<n.length;i++){var l=n[i];o(l.value,{componentStack:l.stack})}}finally{re.T=t,Ee.p=r}}(Fr&3)!==0&&af(),mr(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Zh?Es++:(Es=0,Zh=e):Es=0,tu(0,!1)}}function l0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ys(t)))}function af(){return n0(),o0(),i0(),s0()}function s0(){if(xt!==5)return!1;var e=On,t=Fh;Fh=0;var a=ig(Fr),n=re.T,r=Ee.p;try{Ee.p=32>a?32:a,re.T=null,a=qh,qh=null;var o=On,i=Fr;if(xt=0,il=On=null,Fr=0,(Ae&6)!==0)throw Error(O(331));var l=Ae;if(Ae|=4,VC(o.current),qC(o,o.current,i,a),Ae=l,tu(0,!1),ya&&typeof ya.onPostCommitFiberRoot=="function")try{ya.onPostCommitFiberRoot(Gs,o)}catch{}return!0}finally{Ee.p=r,re.T=n,l0(e,t)}}function yk(e,t,a){t=Da(a,t),t=Ph(e.stateNode,t,2),e=En(e,t,2),e!==null&&(Xs(e,2),mr(e))}function De(e,t,a){if(e.tag===3)yk(e,e,a);else for(;t!==null;){if(t.tag===3){yk(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Mn===null||!Mn.has(n))){e=Da(a,e),a=IC(2),n=En(t,a,2),n!==null&&(kC(a,n,t,e),Xs(n,2),mr(n));break}}t=t.return}}function th(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new CR;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(Bg=!0,r.add(a),e=MR.bind(null,e,t,a),t.then(e,e))}function MR(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&(be&a)===a&&(it===4||it===3&&(be&62914560)===be&&300>va()-Qd?(Ae&2)===0&&ll(e,0):Fg|=a,ol===be&&(ol=0)),mr(e)}function u0(e,t){t===0&&(t=e_()),e=Oo(e,t),e!==null&&(Xs(e,t),mr(e))}function OR(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),u0(e,a)}function zR(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(O(314))}n!==null&&n.delete(t),u0(e,a)}function DR(e,t){return ng(e,t)}var zd=null,zi=null,Hh=!1,Dd=!1,ah=!1,Cn=0;function mr(e){e!==zi&&e.next===null&&(zi===null?zd=zi=e:zi=zi.next=e),Dd=!0,Hh||(Hh=!0,$R())}function tu(e,t){if(!ah&&Dd){ah=!0;do for(var a=!1,n=zd;n!==null;){if(!t)if(e!==0){var r=n.pendingLanes;if(r===0)var o=0;else{var i=n.suspendedLanes,l=n.pingedLanes;o=(1<<31-xa(42|e)+1)-1,o&=r&~(i&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,xk(n,o))}else o=be,o=Fd(n,n===Fe?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||Js(n,o)||(a=!0,xk(n,o));n=n.next}while(a);ah=!1}}function RR(){c0()}function c0(){Dd=Hh=!1;var e=0;Cn!==0&&ZR()&&(e=Cn);for(var t=va(),a=null,n=zd;n!==null;){var r=n.next,o=d0(n,t);o===0?(n.next=null,a===null?zd=r:a.next=r,r===null&&(zi=a)):(a=n,(e!==0||(o&3)!==0)&&(Dd=!0)),n=r}xt!==0&&xt!==5||tu(e,!1),Cn!==0&&(Cn=0)}function d0(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-xa(o),l=1<<i,s=r[i];s===-1?((l&a)===0||(l&n)!==0)&&(r[i]=sD(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(t=Fe,a=be,a=Fd(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Mm(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Js(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Mm(n),ig(a)){case 2:case 8:a=Yk;break;case 32:a=gd;break;case 268435456:a=Qk;break;default:a=gd}return n=f0.bind(null,e),a=ng(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Mm(n),e.callbackPriority=2,e.callbackNode=null,2}function f0(e,t){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(af()&&e.callbackNode!==a)return null;var n=be;return n=Fd(e,e===Fe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(KC(e,n,t),d0(e,va()),e.callbackNode!=null&&e.callbackNode===a?f0.bind(null,e):null)}function xk(e,t){if(af())return null;KC(e,t,!0)}function $R(){VR(function(){(Ae&6)!==0?ng(Kk,RR):c0()})}function Zg(){if(Cn===0){var e=al;e===0&&(e=Rc,Rc<<=1,(Rc&261888)===0&&(Rc=256)),Cn=e}return Cn}function bk(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Qc(""+e)}function Sk(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function PR(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var o=bk((r[aa]||null).action),i=n.submitter;i&&(t=(t=i[aa]||null)?bk(t.formAction):i.getAttribute("formAction"),t!==null&&(o=t,i=null));var l=new qd("action","action",null,n,r);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Cn!==0){var s=i?Sk(r,i):new FormData(r);Rh(a,{pending:!0,data:s,method:r.method,action:o},null,s)}}else typeof o=="function"&&(l.preventDefault(),s=i?Sk(r,i):new FormData(r),Rh(a,{pending:!0,data:s,method:r.method,action:o},o,s))},currentTarget:r}]})}}for(Gc=0;Gc<Ih.length;Gc++)Jc=Ih[Gc],wk=Jc.toLowerCase(),Ik=Jc[0].toUpperCase()+Jc.slice(1),Qa(wk,"on"+Ik);var Jc,wk,Ik,Gc;Qa(k_,"onAnimationEnd");Qa(__,"onAnimationIteration");Qa(C_,"onAnimationStart");Qa("dblclick","onDoubleClick");Qa("focusin","onFocus");Qa("focusout","onBlur");Qa(tR,"onTransitionRun");Qa(aR,"onTransitionStart");Qa(rR,"onTransitionCancel");Qa(L_,"onTransitionEnd");el("onMouseEnter",["mouseout","mouseover"]);el("onMouseLeave",["mouseout","mouseover"]);el("onPointerEnter",["pointerout","pointerover"]);el("onPointerLeave",["pointerout","pointerover"]);Ao("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ao("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ao("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ao("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ao("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ao("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bs="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(" "),NR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bs));function p0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],r=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var l=n[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){yd(c)}r.currentTarget=null,o=s}else for(i=0;i<n.length;i++){if(l=n[i],s=l.instance,u=l.currentTarget,l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){yd(c)}r.currentTarget=null,o=s}}}}function ve(e,t){var a=t[hh];a===void 0&&(a=t[hh]=new Set);var n=e+"__bubble";a.has(n)||(m0(t,e,2,!1),a.add(n))}function rh(e,t,a){var n=0;t&&(n|=4),m0(a,e,n,t)}var Xc="_reactListening"+Math.random().toString(36).slice(2);function Hg(e){if(!e[Xc]){e[Xc]=!0,o_.forEach(function(a){a!=="selectionchange"&&(NR.has(a)||rh(a,!1,e),rh(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xc]||(t[Xc]=!0,rh("selectionchange",!1,t))}}function m0(e,t,a,n){switch(L0(t)){case 2:var r=f$;break;case 8:r=p$;break;default:r=Xg}a=r.bind(null,t,a,e),r=void 0,!bh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function nh(e,t,a,n,r){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var l=n.stateNode.containerInfo;if(l===r)break;if(i===4)for(i=n.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;l!==null;){if(i=$i(l),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){n=o=i;continue e}l=l.parentNode}}n=n.return}p_(function(){var u=o,c=ug(a),d=[];e:{var p=T_.get(e);if(p!==void 0){var f=qd,m=e;switch(e){case"keypress":if(td(a)===0)break e;case"keydown":case"keyup":f=zD;break;case"focusin":m="focus",f=$m;break;case"focusout":m="blur",f=$m;break;case"beforeblur":case"afterblur":f=$m;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=EI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=SD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=$D;break;case k_:case __:case C_:f=kD;break;case L_:f=ND;break;case"scroll":case"scrollend":f=xD;break;case"wheel":f=jD;break;case"copy":case"cut":case"paste":f=CD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=OI;break;case"toggle":case"beforetoggle":f=FD}var x=(t&4)!==0,b=!x&&(e==="scroll"||e==="scrollend"),v=x?p!==null?p+"Capture":null:p;x=[];for(var y=u,g;y!==null;){var S=y;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||v===null||(S=zs(y,v),S!=null&&x.push(Fs(y,S,g))),b)break;y=y.return}0<x.length&&(p=new f(p,m,null,a,c),d.push({event:p,listeners:x}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&a!==xh&&(m=a.relatedTarget||a.fromElement)&&($i(m)||m[cl]))break e;if((f||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,f?(m=a.relatedTarget||a.toElement,f=u,m=m?$i(m):null,m!==null&&(b=Vs(m),x=m.tag,m!==b||x!==5&&x!==27&&x!==6)&&(m=null)):(f=null,m=u),f!==m)){if(x=EI,S="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=OI,S="onPointerLeave",v="onPointerEnter",y="pointer"),b=f==null?p:gs(f),g=m==null?p:gs(m),p=new x(S,y+"leave",f,a,c),p.target=b,p.relatedTarget=g,S=null,$i(c)===u&&(x=new x(v,y+"enter",m,a,c),x.target=g,x.relatedTarget=b,S=x),b=S,f&&m)t:{for(x=UR,v=f,y=m,g=0,S=v;S;S=x(S))g++;S=0;for(var L=y;L;L=x(L))S++;for(;0<g-S;)v=x(v),g--;for(;0<S-g;)y=x(y),S--;for(;g--;){if(v===y||y!==null&&v===y.alternate){x=v;break t}v=x(v),y=x(y)}x=null}else x=null;f!==null&&kk(d,p,f,x,!1),m!==null&&b!==null&&kk(d,b,m,x,!0)}}e:{if(p=u?gs(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var _=$I;else if(RI(p))if(x_)_=YD;else{_=WD;var A=XD}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&sg(u.elementType)&&(_=$I):_=KD;if(_&&(_=_(e,u))){y_(d,_,a,c);break e}A&&A(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&yh(p,"number",p.value)}switch(A=u?gs(u):window,e){case"focusin":(RI(A)||A.contentEditable==="true")&&(Ui=A,Sh=u,Ss=null);break;case"focusout":Ss=Sh=Ui=null;break;case"mousedown":wh=!0;break;case"contextmenu":case"mouseup":case"dragend":wh=!1,jI(d,a,c);break;case"selectionchange":if(eR)break;case"keydown":case"keyup":jI(d,a,c)}var z;if(fg)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Ni?g_(e,a)&&($="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&($="onCompositionStart");$&&(h_&&a.locale!=="ko"&&(Ni||$!=="onCompositionStart"?$==="onCompositionEnd"&&Ni&&(z=m_()):(In=c,cg="value"in In?In.value:In.textContent,Ni=!0)),A=Rd(u,$),0<A.length&&($=new MI($,e,null,a,c),d.push({event:$,listeners:A}),z?$.data=z:(z=v_(a),z!==null&&($.data=z)))),(z=ZD?HD(e,a):VD(e,a))&&($=Rd(u,"onBeforeInput"),0<$.length&&(A=new MI("onBeforeInput","beforeinput",null,a,c),d.push({event:A,listeners:$}),A.data=z)),PR(d,e,u,a,c)}p0(d,t)})}function Fs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Rd(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=zs(e,a),r!=null&&n.unshift(Fs(e,r,o)),r=zs(e,t),r!=null&&n.push(Fs(e,r,o))),e.tag===3)return n;e=e.return}return[]}function UR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kk(e,t,a,n,r){for(var o=t._reactName,i=[];a!==null&&a!==n;){var l=a,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===n)break;l!==5&&l!==26&&l!==27||u===null||(s=u,r?(u=zs(a,o),u!=null&&i.unshift(Fs(a,u,s))):r||(u=zs(a,o),u!=null&&i.push(Fs(a,u,s)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var jR=/\r\n?/g,BR=/\u0000|\uFFFD/g;function _k(e){return(typeof e=="string"?e:""+e).replace(jR,`
|
|
10
|
-
`).replace(BR,"")}function h0(e,t){return t=_k(t),_k(e)===t}function Ue(e,t,a,n,r,o){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||tl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&tl(e,""+n);break;case"className":Nc(e,"class",n);break;case"tabIndex":Nc(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Nc(e,a,n);break;case"style":f_(e,n,o);break;case"data":if(t!=="object"){Nc(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Qc(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"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 o=="function"&&(a==="formAction"?(t!=="input"&&Ue(e,t,"name",r.name,r,null),Ue(e,t,"formEncType",r.formEncType,r,null),Ue(e,t,"formMethod",r.formMethod,r,null),Ue(e,t,"formTarget",r.formTarget,r,null)):(Ue(e,t,"encType",r.encType,r,null),Ue(e,t,"method",r.method,r,null),Ue(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Qc(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Nr);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(O(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Qc(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ve("beforetoggle",e),ve("toggle",e),Yc(e,"popover",n);break;case"xlinkActuate":Er(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Er(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Er(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Er(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Er(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Er(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Er(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Er(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Er(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Yc(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=vD.get(a)||a,Yc(e,a,n))}}function Vh(e,t,a,n,r,o){switch(a){case"style":f_(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(O(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"children":typeof n=="string"?tl(e,n):(typeof n=="number"||typeof n=="bigint")&&tl(e,""+n);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Nr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!i_.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),o=e[aa]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof n=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Yc(e,a,n)}}}function zt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var n=!1,r=!1,o;for(o in a)if(a.hasOwnProperty(o)){var i=a[o];if(i!=null)switch(o){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:Ue(e,t,o,i,a,null)}}r&&Ue(e,t,"srcSet",a.srcSet,a,null),n&&Ue(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var l=o=i=r=null,s=null,u=null;for(n in a)if(a.hasOwnProperty(n)){var c=a[n];if(c!=null)switch(n){case"name":r=c;break;case"type":i=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":o=c;break;case"defaultValue":l=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(O(137,t));break;default:Ue(e,t,n,c,a,null)}}u_(e,o,l,s,u,i,r,!1);return;case"select":ve("invalid",e),n=i=o=null;for(r in a)if(a.hasOwnProperty(r)&&(l=a[r],l!=null))switch(r){case"value":o=l;break;case"defaultValue":i=l;break;case"multiple":n=l;default:Ue(e,t,r,l,a,null)}t=o,a=i,e.multiple=!!n,t!=null?Gi(e,!!n,t,!1):a!=null&&Gi(e,!!n,a,!0);return;case"textarea":ve("invalid",e),o=r=n=null;for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"value":n=l;break;case"defaultValue":r=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(O(91));break;default:Ue(e,t,i,l,a,null)}d_(e,n,r,o);return;case"option":for(s in a)a.hasOwnProperty(s)&&(n=a[s],n!=null)&&(s==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Ue(e,t,s,n,a,null));return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(n=0;n<Bs.length;n++)ve(Bs[n],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(n=a[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:Ue(e,t,u,n,a,null)}return;default:if(sg(t)){for(c in a)a.hasOwnProperty(c)&&(n=a[c],n!==void 0&&Vh(e,t,c,n,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null&&Ue(e,t,l,n,a,null))}function FR(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,i=null,l=null,s=null,u=null,c=null;for(f in a){var d=a[f];if(a.hasOwnProperty(f)&&d!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":s=d;default:n.hasOwnProperty(f)||Ue(e,t,f,null,n,d)}}for(var p in n){var f=n[p];if(d=a[p],n.hasOwnProperty(p)&&(f!=null||d!=null))switch(p){case"type":o=f;break;case"name":r=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(O(137,t));break;default:f!==d&&Ue(e,t,p,f,n,d)}}vh(e,i,l,s,u,c,o,r);return;case"select":f=i=l=p=null;for(o in a)if(s=a[o],a.hasOwnProperty(o)&&s!=null)switch(o){case"value":break;case"multiple":f=s;default:n.hasOwnProperty(o)||Ue(e,t,o,null,n,s)}for(r in n)if(o=n[r],s=a[r],n.hasOwnProperty(r)&&(o!=null||s!=null))switch(r){case"value":p=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&Ue(e,t,r,o,n,s)}t=l,a=i,n=f,p!=null?Gi(e,!!a,p,!1):!!n!=!!a&&(t!=null?Gi(e,!!a,t,!0):Gi(e,!!a,a?[]:"",!1));return;case"textarea":f=p=null;for(l in a)if(r=a[l],a.hasOwnProperty(l)&&r!=null&&!n.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Ue(e,t,l,null,n,r)}for(i in n)if(r=n[i],o=a[i],n.hasOwnProperty(i)&&(r!=null||o!=null))switch(i){case"value":p=r;break;case"defaultValue":f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(O(91));break;default:r!==o&&Ue(e,t,i,r,n,o)}c_(e,p,f);return;case"option":for(var m in a)p=a[m],a.hasOwnProperty(m)&&p!=null&&!n.hasOwnProperty(m)&&(m==="selected"?e.selected=!1:Ue(e,t,m,null,n,p));for(s in n)p=n[s],f=a[s],n.hasOwnProperty(s)&&p!==f&&(p!=null||f!=null)&&(s==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":Ue(e,t,s,p,n,f));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 x in a)p=a[x],a.hasOwnProperty(x)&&p!=null&&!n.hasOwnProperty(x)&&Ue(e,t,x,null,n,p);for(u in n)if(p=n[u],f=a[u],n.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(O(137,t));break;default:Ue(e,t,u,p,n,f)}return;default:if(sg(t)){for(var b in a)p=a[b],a.hasOwnProperty(b)&&p!==void 0&&!n.hasOwnProperty(b)&&Vh(e,t,b,void 0,n,p);for(c in n)p=n[c],f=a[c],!n.hasOwnProperty(c)||p===f||p===void 0&&f===void 0||Vh(e,t,c,p,n,f);return}}for(var v in a)p=a[v],a.hasOwnProperty(v)&&p!=null&&!n.hasOwnProperty(v)&&Ue(e,t,v,null,n,p);for(d in n)p=n[d],f=a[d],!n.hasOwnProperty(d)||p===f||p==null&&f==null||Ue(e,t,d,p,n,f)}function Ck(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qR(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],o=r.transferSize,i=r.initiatorType,l=r.duration;if(o&&l&&Ck(i)){for(i=0,l=r.responseEnd,n+=1;n<a.length;n++){var s=a[n],u=s.startTime;if(u>l)break;var c=s.transferSize,d=s.initiatorType;c&&Ck(d)&&(s=s.responseEnd,i+=c*(s<l?1:(l-u)/(s-u)))}if(--n,t+=8*(o+i)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Gh=null,Jh=null;function $d(e){return e.nodeType===9?e:e.ownerDocument}function Lk(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function g0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Xh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var oh=null;function ZR(){var e=window.event;return e&&e.type==="popstate"?e===oh?!1:(oh=e,!0):(oh=null,!1)}var v0=typeof setTimeout=="function"?setTimeout:void 0,HR=typeof clearTimeout=="function"?clearTimeout:void 0,Tk=typeof Promise=="function"?Promise:void 0,VR=typeof queueMicrotask=="function"?queueMicrotask:typeof Tk<"u"?function(e){return Tk.resolve(null).then(e).catch(GR)}:v0;function GR(e){setTimeout(function(){throw e})}function Bn(e){return e==="head"}function Ak(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(r),ul(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Ms(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ms(a);for(var o=a.firstChild;o;){var i=o.nextSibling,l=o.nodeName;o[Ws]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=i}}else a==="body"&&Ms(e.ownerDocument.body);a=r}while(a);ul(t)}function Ek(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Wh(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Wh(a),lg(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function JR(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Ws])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Pa(e.nextSibling),e===null)break}return null}function XR(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Pa(e.nextSibling),e===null))return null;return e}function y0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pa(e.nextSibling),e===null))return null;return e}function Kh(e){return e.data==="$?"||e.data==="$~"}function Yh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function WR(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Pa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Qh=null;function Mk(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Pa(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ok(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function x0(e,t,a){switch(t=$d(a),e){case"html":if(e=t.documentElement,!e)throw Error(O(452));return e;case"head":if(e=t.head,!e)throw Error(O(453));return e;case"body":if(e=t.body,!e)throw Error(O(454));return e;default:throw Error(O(451))}}function Ms(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lg(e)}var Na=new Map,zk=new Set;function Pd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Jr=Ee.d;Ee.d={f:KR,r:YR,D:QR,C:e$,L:t$,m:a$,X:n$,S:r$,M:o$};function KR(){var e=Jr.f(),t=ef();return e||t}function YR(e){var t=dl(e);t!==null&&t.tag===5&&t.type==="form"?fC(t):Jr.r(e)}var hl=typeof document>"u"?null:document;function b0(e,t,a){var n=hl;if(n&&typeof t=="string"&&t){var r=za(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),zk.has(r)||(zk.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),zt(t,"link",e),kt(t),n.head.appendChild(t)))}}function QR(e){Jr.D(e),b0("dns-prefetch",e,null)}function e$(e,t){Jr.C(e,t),b0("preconnect",e,t)}function t$(e,t,a){Jr.L(e,t,a);var n=hl;if(n&&e&&t){var r='link[rel="preload"][as="'+za(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+za(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+za(a.imageSizes)+'"]')):r+='[href="'+za(e)+'"]';var o=r;switch(t){case"style":o=sl(e);break;case"script":o=gl(e)}Na.has(o)||(e=We({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Na.set(o,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(au(o))||t==="script"&&n.querySelector(ru(o))||(t=n.createElement("link"),zt(t,"link",e),kt(t),n.head.appendChild(t)))}}function a$(e,t){Jr.m(e,t);var a=hl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+za(n)+'"][href="'+za(e)+'"]',o=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=gl(e)}if(!Na.has(o)&&(e=We({rel:"modulepreload",href:e},t),Na.set(o,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ru(o)))return}n=a.createElement("link"),zt(n,"link",e),kt(n),a.head.appendChild(n)}}}function r$(e,t,a){Jr.S(e,t,a);var n=hl;if(n&&e){var r=Vi(n).hoistableStyles,o=sl(e);t=t||"default";var i=r.get(o);if(!i){var l={loading:0,preload:null};if(i=n.querySelector(au(o)))l.loading=5;else{e=We({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Na.get(o))&&Vg(e,a);var s=i=n.createElement("link");kt(s),zt(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,ud(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:l},r.set(o,i)}}}function n$(e,t){Jr.X(e,t);var a=hl;if(a&&e){var n=Vi(a).hoistableScripts,r=gl(e),o=n.get(r);o||(o=a.querySelector(ru(r)),o||(e=We({src:e,async:!0},t),(t=Na.get(r))&&Gg(e,t),o=a.createElement("script"),kt(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function o$(e,t){Jr.M(e,t);var a=hl;if(a&&e){var n=Vi(a).hoistableScripts,r=gl(e),o=n.get(r);o||(o=a.querySelector(ru(r)),o||(e=We({src:e,async:!0,type:"module"},t),(t=Na.get(r))&&Gg(e,t),o=a.createElement("script"),kt(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function Dk(e,t,a,n){var r=(r=Ln.current)?Pd(r):null;if(!r)throw Error(O(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=sl(a.href),a=Vi(r).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=sl(a.href);var o=Vi(r).hoistableStyles,i=o.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,i),(o=r.querySelector(au(e)))&&!o._p&&(i.instance=o,i.state.loading=5),Na.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Na.set(e,a),o||i$(r,e,a,i.state))),t&&n===null)throw Error(O(528,""));return i}if(t&&n!==null)throw Error(O(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gl(a),a=Vi(r).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(O(444,e))}}function sl(e){return'href="'+za(e)+'"'}function au(e){return'link[rel="stylesheet"]['+e+"]"}function S0(e){return We({},e,{"data-precedence":e.precedence,precedence:null})}function i$(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),zt(t,"link",a),kt(t),e.head.appendChild(t))}function gl(e){return'[src="'+za(e)+'"]'}function ru(e){return"script[async]"+e}function Rk(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+za(a.href)+'"]');if(n)return t.instance=n,kt(n),n;var r=We({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),kt(n),zt(n,"style",r),ud(n,a.precedence,e),t.instance=n;case"stylesheet":r=sl(a.href);var o=e.querySelector(au(r));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;n=S0(a),(r=Na.get(r))&&Vg(n,r),o=(e.ownerDocument||e).createElement("link"),kt(o);var i=o;return i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),zt(o,"link",n),t.state.loading|=4,ud(o,a.precedence,e),t.instance=o;case"script":return o=gl(a.src),(r=e.querySelector(ru(o)))?(t.instance=r,kt(r),r):(n=a,(r=Na.get(o))&&(n=We({},a),Gg(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),kt(r),zt(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(O(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,ud(n,a.precedence,e));return t.instance}function ud(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,o=r,i=0;i<n.length;i++){var l=n[i];if(l.dataset.precedence===t)o=l;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Vg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var cd=null;function $k(e,t,a){if(cd===null){var n=new Map,r=cd=new Map;r.set(a,n)}else r=cd,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var o=a[r];if(!(o[Ws]||o[Et]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var i=o.getAttribute(t)||"";i=e+i;var l=n.get(i);l?l.push(o):n.set(i,[o])}}return n}function Pk(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function l$(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function w0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function s$(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=sl(n.href),o=t.querySelector(au(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Nd.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,kt(o);return}o=t.ownerDocument||t,n=S0(n),(r=Na.get(r))&&Vg(n,r),o=o.createElement("link"),kt(o);var i=o;i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),zt(o,"link",n),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Nd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ih=0;function u$(e,t){return e.stylesheets&&e.count===0&&dd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&dd(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ih===0&&(ih=62500*qR());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&dd(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ih?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function Nd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ud=null;function dd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ud=new Map,t.forEach(c$,e),Ud=null,Nd.call(e))}function c$(e,t){if(!(t.state.loading&4)){var a=Ud.get(e);if(a)var n=a.get(null);else{a=new Map,Ud.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var i=r[o];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),n=i)}n&&a.set(null,n)}r=t.instance,i=r.getAttribute("data-precedence"),o=a.get(i)||n,o===n&&a.set(null,r),a.set(i,r),this.count++,n=Nd.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var qs={$$typeof:Pr,Provider:null,Consumer:null,_currentValue:xo,_currentValue2:xo,_threadCount:0};function d$(e,t,a,n,r,o,i,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Om(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Om(0),this.hiddenUpdates=Om(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function I0(e,t,a,n,r,o,i,l,s,u,c,d){return e=new d$(e,t,a,i,s,u,c,d,l),t=1,o===!0&&(t|=24),o=ha(3,null,null,t),e.current=o,o.stateNode=e,t=xg(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:a,cache:t},wg(o),e}function k0(e){return e?(e=Fi,e):Fi}function _0(e,t,a,n,r,o){r=k0(r),n.context===null?n.context=r:n.pendingContext=r,n=An(t),n.payload={element:a},o=o===void 0?null:o,o!==null&&(n.callback=o),a=En(e,n,t),a!==null&&(ta(a,e,t),Is(a,e,t))}function Nk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Jg(e,t){Nk(e,t),(e=e.alternate)&&Nk(e,t)}function C0(e){if(e.tag===13||e.tag===31){var t=Oo(e,67108864);t!==null&&ta(t,e,67108864),Jg(e,67108864)}}function Uk(e){if(e.tag===13||e.tag===31){var t=ba();t=og(t);var a=Oo(e,t);a!==null&&ta(a,e,t),Jg(e,t)}}var jd=!0;function f$(e,t,a,n){var r=re.T;re.T=null;var o=Ee.p;try{Ee.p=2,Xg(e,t,a,n)}finally{Ee.p=o,re.T=r}}function p$(e,t,a,n){var r=re.T;re.T=null;var o=Ee.p;try{Ee.p=8,Xg(e,t,a,n)}finally{Ee.p=o,re.T=r}}function Xg(e,t,a,n){if(jd){var r=eg(n);if(r===null)nh(e,t,n,Bd,a),jk(e,n);else if(h$(r,e,t,a,n))n.stopPropagation();else if(jk(e,n),t&4&&-1<m$.indexOf(e)){for(;r!==null;){var o=dl(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var i=go(o.pendingLanes);if(i!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-xa(i);l.entanglements[1]|=s,i&=~s}mr(o),(Ae&6)===0&&(Ed=va()+500,tu(0,!1))}}break;case 31:case 13:l=Oo(o,2),l!==null&&ta(l,o,2),ef(),Jg(o,2)}if(o=eg(n),o===null&&nh(e,t,n,Bd,a),o===r)break;r=o}r!==null&&n.stopPropagation()}else nh(e,t,n,null,a)}}function eg(e){return e=ug(e),Wg(e)}var Bd=null;function Wg(e){if(Bd=null,e=$i(e),e!==null){var t=Vs(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Vk(t),e!==null)return e;e=null}else if(a===31){if(e=Gk(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bd=e,null}function L0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tD()){case Kk:return 2;case Yk:return 8;case gd:case aD:return 32;case Qk:return 268435456;default:return 32}default:return 32}}var tg=!1,zn=null,Dn=null,Rn=null,Zs=new Map,Hs=new Map,Sn=[],m$="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 jk(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hs.delete(t.pointerId)}}function fs(e,t,a,n,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:o,targetContainers:[r]},t!==null&&(t=dl(t),t!==null&&C0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function h$(e,t,a,n,r){switch(t){case"focusin":return zn=fs(zn,e,t,a,n,r),!0;case"dragenter":return Dn=fs(Dn,e,t,a,n,r),!0;case"mouseover":return Rn=fs(Rn,e,t,a,n,r),!0;case"pointerover":var o=r.pointerId;return Zs.set(o,fs(Zs.get(o)||null,e,t,a,n,r)),!0;case"gotpointercapture":return o=r.pointerId,Hs.set(o,fs(Hs.get(o)||null,e,t,a,n,r)),!0}return!1}function T0(e){var t=$i(e.target);if(t!==null){var a=Vs(t);if(a!==null){if(t=a.tag,t===13){if(t=Vk(a),t!==null){e.blockedOn=t,II(e.priority,function(){Uk(a)});return}}else if(t===31){if(t=Gk(a),t!==null){e.blockedOn=t,II(e.priority,function(){Uk(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=eg(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);xh=n,a.target.dispatchEvent(n),xh=null}else return t=dl(a),t!==null&&C0(t),e.blockedOn=a,!1;t.shift()}return!0}function Bk(e,t,a){fd(e)&&a.delete(t)}function g$(){tg=!1,zn!==null&&fd(zn)&&(zn=null),Dn!==null&&fd(Dn)&&(Dn=null),Rn!==null&&fd(Rn)&&(Rn=null),Zs.forEach(Bk),Hs.forEach(Bk)}function Wc(e,t){e.blockedOn===t&&(e.blockedOn=null,tg||(tg=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,g$)))}var Kc=null;function Fk(e){Kc!==e&&(Kc=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){Kc===e&&(Kc=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Wg(n||a)===null)continue;break}var o=dl(a);o!==null&&(e.splice(t,3),t-=3,Rh(o,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function ul(e){function t(s){return Wc(s,e)}zn!==null&&Wc(zn,e),Dn!==null&&Wc(Dn,e),Rn!==null&&Wc(Rn,e),Zs.forEach(t),Hs.forEach(t);for(var a=0;a<Sn.length;a++){var n=Sn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Sn.length&&(a=Sn[0],a.blockedOn===null);)T0(a),a.blockedOn===null&&Sn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],o=a[n+1],i=r[aa]||null;if(typeof o=="function")i||Fk(a);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(r=o,i=o[aa]||null)l=i.formAction;else if(Wg(r)!==null)continue}else l=i.action;typeof l=="function"?a[n+1]=l:(a.splice(n,3),n-=3),Fk(a)}}}function A0(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(i){return r=i})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Kg(e){this._internalRoot=e}rf.prototype.render=Kg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));var a=t.current,n=ba();_0(a,n,e,t,null,null)};rf.prototype.unmount=Kg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_0(e.current,2,null,e,null,null),ef(),t[cl]=null}};function rf(e){this._internalRoot=e}rf.prototype.unstable_scheduleHydration=function(e){if(e){var t=n_();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Sn.length&&t!==0&&t<Sn[a].priority;a++);Sn.splice(a,0,e),a===0&&T0(e)}};var qk=Zk.version;if(qk!=="19.2.3")throw Error(O(527,qk,"19.2.3"));Ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=Jz(t),e=e!==null?Jk(e):null,e=e===null?null:e.stateNode,e};var v$={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:re,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ps=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ps.isDisabled&&ps.supportsFiber))try{Gs=ps.inject(v$),ya=ps}catch{}var ps;nf.createRoot=function(e,t){if(!Hk(e))throw Error(O(299));var a=!1,n="",r=bC,o=SC,i=wC;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=I0(e,1,!1,null,null,a,n,null,r,o,i,A0),e[cl]=t.current,Hg(e),new Kg(t)};nf.hydrateRoot=function(e,t,a){if(!Hk(e))throw Error(O(299));var n=!1,r="",o=bC,i=SC,l=wC,s=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError),a.formState!==void 0&&(s=a.formState)),t=I0(e,1,!0,t,a??null,n,r,s,o,i,l,A0),t.context=k0(null),a=t.current,n=ba(),n=og(n),r=An(n),r.callback=null,En(a,r,n),a=n,t.current.lanes=a,Xs(t,a),mr(t),e[cl]=t.current,Hg(e),new rf(t)};nf.version="19.2.3"});var z0=$t((uZ,O0)=>{"use strict";function M0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M0)}catch(e){console.error(e)}}M0(),O0.exports=E0()});var BL=$t((h7,jL)=>{"use strict";var $L=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,aP=/\n/g,rP=/^\s*/,nP=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oP=/^:\s*/,iP=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,lP=/^[;\s]*/,sP=/^\s+|\s+$/g,uP=`
|
|
11
|
-
`,PL="/",NL="*",ei="",cP="comment",dP="declaration";function fP(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var a=1,n=1;function r(m){var x=m.match(aP);x&&(a+=x.length);var b=m.lastIndexOf(uP);n=~b?m.length-b:n+m.length}function o(){var m={line:a,column:n};return function(x){return x.position=new i(m),u(),x}}function i(m){this.start=m,this.end={line:a,column:n},this.source=t.source}i.prototype.content=e;function l(m){var x=new Error(t.source+":"+a+":"+n+": "+m);if(x.reason=m,x.filename=t.source,x.line=a,x.column=n,x.source=e,!t.silent)throw x}function s(m){var x=m.exec(e);if(x){var b=x[0];return r(b),e=e.slice(b.length),x}}function u(){s(rP)}function c(m){var x;for(m=m||[];x=d();)x!==!1&&m.push(x);return m}function d(){var m=o();if(!(PL!=e.charAt(0)||NL!=e.charAt(1))){for(var x=2;ei!=e.charAt(x)&&(NL!=e.charAt(x)||PL!=e.charAt(x+1));)++x;if(x+=2,ei===e.charAt(x-1))return l("End of comment missing");var b=e.slice(2,x-2);return n+=2,r(b),e=e.slice(x),n+=2,m({type:cP,comment:b})}}function p(){var m=o(),x=s(nP);if(x){if(d(),!s(oP))return l("property missing ':'");var b=s(iP),v=m({type:dP,property:UL(x[0].replace($L,ei)),value:b?UL(b[0].replace($L,ei)):ei});return s(lP),v}}function f(){var m=[];c(m);for(var x;x=p();)x!==!1&&(m.push(x),c(m));return m}return u(),f()}function UL(e){return e?e.replace(sP,ei):ei}jL.exports=fP});var FL=$t(vu=>{"use strict";var pP=vu&&vu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vu,"__esModule",{value:!0});vu.default=hP;var mP=pP(BL());function hP(e,t){let a=null;if(!e||typeof e!="string")return a;let n=(0,mP.default)(e),r=typeof t=="function";return n.forEach(o=>{if(o.type!=="declaration")return;let{property:i,value:l}=o;r?t(i,l,o):l&&(a=a||{},a[i]=l)}),a}});var ZL=$t(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.camelCase=void 0;var gP=/^--[a-zA-Z0-9_-]+$/,vP=/-([a-z])/g,yP=/^[^-]+$/,xP=/^-(webkit|moz|ms|o|khtml)-/,bP=/^-(ms)-/,SP=function(e){return!e||yP.test(e)||gP.test(e)},wP=function(e,t){return t.toUpperCase()},qL=function(e,t){return"".concat(t,"-")},IP=function(e,t){return t===void 0&&(t={}),SP(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(bP,qL):e=e.replace(xP,qL),e.replace(vP,wP))};If.camelCase=IP});var VL=$t((yv,HL)=>{"use strict";var kP=yv&&yv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_P=kP(FL()),CP=ZL();function vv(e,t){var a={};return!e||typeof e!="string"||(0,_P.default)(e,function(n,r){n&&r&&(a[(0,CP.camelCase)(n,t)]=r)}),a}vv.default=vv;HL.exports=vv});var aT=$t(_f=>{"use strict";var VP=Symbol.for("react.transitional.element"),GP=Symbol.for("react.fragment");function tT(e,t,a){var n=null;if(a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:VP,type:e,key:n,ref:t!==void 0?t:null,props:a}}_f.Fragment=GP;_f.jsx=tT;_f.jsxs=tT});var jt=$t((F7,rT)=>{"use strict";rT.exports=aT()});var x1=$t((GK,y1)=>{"use strict";var Jf=Object.prototype.hasOwnProperty,v1=Object.prototype.toString,d1=Object.defineProperty,f1=Object.getOwnPropertyDescriptor,p1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):v1.call(t)==="[object Array]"},m1=function(t){if(!t||v1.call(t)!=="[object Object]")return!1;var a=Jf.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Jf.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!n)return!1;var r;for(r in t);return typeof r>"u"||Jf.call(t,r)},h1=function(t,a){d1&&a.name==="__proto__"?d1(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},g1=function(t,a){if(a==="__proto__")if(Jf.call(t,a)){if(f1)return f1(t,a).value}else return;return t[a]};y1.exports=function e(){var t,a,n,r,o,i,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(a in t)n=g1(l,a),r=g1(t,a),l!==r&&(c&&r&&(m1(r)||(o=p1(r)))?(o?(o=!1,i=n&&p1(n)?n:[]):i=n&&m1(n)?n:{},h1(l,{name:a,newValue:e(c,i,r)})):typeof r<"u"&&h1(l,{name:a,newValue:r}));return l}});var WO=$t((Noe,XO)=>{"use strict";function c9(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let a,n=0;return function(...o){clearTimeout(a);let i=Date.now(),l=i-n,s=t-l;s<=0?(n=i,e.apply(this,o)):a=setTimeout(()=>{n=Date.now(),e.apply(this,o)},s)}}XO.exports=c9});var Y9={};function Wa(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Wa(`:root[data-chat-widget],[data-chat-widget]{--chat-primary: #3b82f6;--chat-primary-text: #ffffff;--chat-primary-hover: #2563eb;--chat-background: #ffffff;--chat-border: #e5e7eb;--chat-header-text: #ffffff;--chat-user-text: #ffffff;--chat-assistant-bg: transparent;--chat-assistant-text: #111827;--chat-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--chat-radius: .75rem;--chat-input-bg: #ffffff;--chat-input-text: #111827;--chat-input-placeholder: #6b7280;--chat-thought-border: #d1d5db;--chat-font-size: .925rem;--chat-thought-font-size: .75rem}.chat-widget{display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;background:var(--chat-background);border:1px solid var(--chat-border);border-radius:var(--chat-radius);box-shadow:0 20px 45px #0f172a1f;overflow:hidden;font-family:var(--chat-font-family);color:var(--chat-assistant-text)}.chat-widget__header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:.75rem 1rem;background:var(--chat-primary);color:var(--chat-header-text)}.chat-widget__title{margin:0;font-size:.875rem;font-weight:600}.chat-widget__messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.chat-widget__message{display:flex;flex-direction:column;gap:0}.chat-widget__message-row{display:flex}.chat-widget__message-row--user{justify-content:flex-end}.chat-widget__message-row--assistant{justify-content:flex-start}.chat-widget__bubble{max-width:90%;padding:.5rem .25rem;border-radius:calc(var(--chat-radius) * .65);font-size:var(--chat-font-size)}.chat-widget__bubble--user{background:var(--chat-primary);color:var(--chat-user-text);border-bottom-right-radius:.35rem}.chat-widget__bubble--assistant{width:90%;background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-bottom-left-radius:.35rem}.chat-widget__widget{width:100%}.chat-widget__markdown{white-space:normal;font-size:var(--chat-font-size)}.chat-widget__markdown h1{font-size:calc(var(--chat-font-size) * 1.4)}.chat-widget__markdown h2{font-size:calc(var(--chat-font-size) * 1.25)}.chat-widget__markdown h3{font-size:calc(var(--chat-font-size) * 1.1)}.chat-widget__markdown h4{font-size:calc(var(--chat-font-size) * 1.05)}.chat-widget__markdown h5{font-size:calc(var(--chat-font-size) * 1)}.chat-widget__markdown h6{font-size:calc(var(--chat-font-size) * .95)}.chat-widget__anchor-button{position:fixed;bottom:20px;right:20px;display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:0 10px 25px #0f172a33;cursor:pointer;font-weight:600;z-index:99999}.chat-widget__anchor-button:hover{background:var(--chat-primary-hover)}.chat-widget__anchor--left{right:auto;left:20px}.chat-widget__anchor-icon{width:1.1rem;height:1.1rem}.chat-widget__popup{position:fixed;bottom:80px;right:20px;z-index:99998}.chat-widget__anchor--left.chat-widget__popup{right:auto;left:20px}.chat-widget__popup-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:0 20px 45px #0f172a1f;border-radius:12px;overflow:hidden}.chat-widget__markdown table{width:100%;border-collapse:collapse;margin:.5rem 0}.chat-widget__markdown th,.chat-widget__markdown td{border:1px solid var(--chat-border);padding:.5rem;text-align:left;vertical-align:top}.chat-widget__markdown thead th{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);font-weight:600}.chat-widget__thoughts{min-width:0;--chat-font-size: var(--chat-thought-font-size)}.chat-widget__details{border:0}.chat-widget__thoughts-summary{list-style:none;display:flex;align-items:center;gap:.35rem;cursor:pointer;color:#6b7280;font-size:.8125rem}.chat-widget__thoughts-summary:hover{color:var(--chat-assistant-text)}.chat-widget__thoughts-icon-container{display:flex;border:1px solid #d1d5db;border-radius:999px;align-items:center;justify-content:center;width:1rem;height:1rem}.chat-widget__thoughts-icon{width:.75rem;height:.75rem;transition:transform .2s ease}.chat-widget__details[open] .chat-widget__thoughts-icon{transform:rotate(90deg)}.chat-widget__thoughts-content{margin-top:.5rem;margin-left:.4rem;padding:.75rem;border-left:2px solid var(--chat-thought-border);border-color:var(--chat-primary);max-width:100%;overflow-x:auto}.chat-widget__thoughts-text{margin:0;line-height:1.5;color:#4b5563;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;display:block}.chat-widget__loading{display:flex;justify-content:flex-start}.chat-widget__loading-bubble{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-radius:calc(var(--chat-radius) * .65);border-bottom-left-radius:.35rem;padding:.5rem .75rem}.chat-widget__loading-dots{display:flex;gap:.35rem}.chat-widget__loading-dot{width:.5rem;height:.5rem;border-radius:999px;background:#9ca3af;animation:chat-widget-bounce 1s infinite ease-in-out}.chat-widget__loading-dot[data-delay="1"]{animation-delay:.1s}.chat-widget__loading-dot[data-delay="2"]{animation-delay:.2s}@keyframes chat-widget-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.chat-widget__input{border-top:1px solid var(--chat-border);padding:.25rem 0 .75rem;background:var(--chat-input-bg)}.chat-widget__form{position:relative}.chat-widget__textarea{width:100%;border:0;padding:.75rem 5.25rem .75rem .75rem;background:transparent;font-size:.925rem;resize:none;color:var(--chat-input-text);font-family:inherit}.chat-widget__textarea::-moz-placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea::placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea:focus-visible{outline:none}.chat-widget__textarea:disabled{opacity:.5;cursor:not-allowed}.chat-widget__toolbar{position:absolute;top:0;right:3.75rem;height:100%;display:flex;align-items:center;padding:0 .5rem;border-right:1px solid var(--chat-border)}.chat-widget__submit{position:absolute;top:50%;right:.75rem;transform:translateY(-50%);background:transparent;border:0;width:2.5rem;height:2.5rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer}.chat-widget__submit:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__submit:not(:disabled):hover{color:var(--chat-primary-hover)}.chat-widget__send-icon{width:1.2rem;height:1.2rem}.chat-widget__mic-button{position:relative;border:none;background:transparent;width:2.25rem;height:2.25rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer;border-radius:999px}.chat-widget__mic-button:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__mic-button--active{color:var(--chat-primary-hover);background:#3b82f614}.chat-widget__mic-icon{width:1rem;height:1rem}.chat-widget__mic-bar{position:absolute;bottom:.1rem;left:50%;width:16px;height:2px;border-radius:999px;background:#94a3b866;overflow:hidden;display:block;transform:translate(-50%);pointer-events:none}.chat-widget__mic-bar-fill{display:block;width:100%;height:100%;background:currentColor;transform-origin:left;transition:transform .12s linear}.chat-widget__voice{display:flex;margin-top:.25rem}.chat-widget__voice-button{border:none;background:none;display:inline-flex;align-items:center;gap:.35rem;padding:.1rem 0;font-size:.8rem;font-weight:500;color:var(--chat-primary);cursor:pointer}.chat-widget__voice-button:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__voice-button--active{color:var(--chat-primary-hover)}.chat-widget__voice-icon{width:.95rem;height:.95rem}.chat-widget__voice-icon--spin{animation:chat-widget-spin 1s linear infinite}@keyframes chat-widget-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
12
|
-
`);var bz=Le(z0(),1);var tv={};lr(tv,{BRAND:()=>q$,DIRTY:()=>Do,EMPTY_PATH:()=>S$,INVALID:()=>ee,NEVER:()=>L2,OK:()=>Ut,ParseStatus:()=>Dt,Schema:()=>me,ZodAny:()=>Zn,ZodArray:()=>Yr,ZodBigInt:()=>$o,ZodBoolean:()=>Po,ZodBranded:()=>ou,ZodCatch:()=>Jo,ZodDate:()=>No,ZodDefault:()=>Go,ZodDiscriminatedUnion:()=>sf,ZodEffects:()=>Ba,ZodEnum:()=>Ho,ZodError:()=>na,ZodFirstPartyTypeKind:()=>T,ZodFunction:()=>cf,ZodIntersection:()=>Fo,ZodIssueCode:()=>D,ZodLazy:()=>qo,ZodLiteral:()=>Zo,ZodMap:()=>wl,ZodNaN:()=>kl,ZodNativeEnum:()=>Vo,ZodNever:()=>er,ZodNull:()=>jo,ZodNullable:()=>vr,ZodNumber:()=>Ro,ZodObject:()=>oa,ZodOptional:()=>Ua,ZodParsedType:()=>H,ZodPipeline:()=>iu,ZodPromise:()=>Hn,ZodReadonly:()=>Xo,ZodRecord:()=>uf,ZodSchema:()=>me,ZodSet:()=>Il,ZodString:()=>qn,ZodSymbol:()=>bl,ZodTransformer:()=>Ba,ZodTuple:()=>gr,ZodType:()=>me,ZodUndefined:()=>Uo,ZodUnion:()=>Bo,ZodUnknown:()=>Kr,ZodVoid:()=>Sl,addIssueToContext:()=>B,any:()=>Y$,array:()=>a2,bigint:()=>G$,boolean:()=>Z0,coerce:()=>C2,custom:()=>B0,date:()=>J$,datetimeRegex:()=>U0,defaultErrorMap:()=>Xr,discriminatedUnion:()=>i2,effect:()=>y2,enum:()=>h2,function:()=>f2,getErrorMap:()=>vl,getParsedType:()=>hr,instanceof:()=>H$,intersection:()=>l2,isAborted:()=>of,isAsync:()=>yl,isDirty:()=>lf,isValid:()=>Fn,late:()=>Z$,lazy:()=>p2,literal:()=>m2,makeIssue:()=>nu,map:()=>c2,nan:()=>V$,nativeEnum:()=>g2,never:()=>e2,null:()=>K$,nullable:()=>b2,number:()=>q0,object:()=>r2,objectUtil:()=>Yg,oboolean:()=>_2,onumber:()=>k2,optional:()=>x2,ostring:()=>I2,pipeline:()=>w2,preprocess:()=>S2,promise:()=>v2,quotelessJson:()=>y$,record:()=>u2,set:()=>d2,setErrorMap:()=>b$,strictObject:()=>n2,string:()=>F0,symbol:()=>X$,transformer:()=>y2,tuple:()=>s2,undefined:()=>W$,union:()=>o2,unknown:()=>Q$,util:()=>xe,void:()=>t2});var xe;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function a(r){throw new Error}e.assertNever=a,e.arrayToEnum=r=>{let o={};for(let i of r)o[i]=i;return o},e.getValidEnumValues=r=>{let o=e.objectKeys(r).filter(l=>typeof r[r[l]]!="number"),i={};for(let l of o)i[l]=r[l];return e.objectValues(i)},e.objectValues=r=>e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let o=[];for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&o.push(i);return o},e.find=(r,o)=>{for(let i of r)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function n(r,o=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(xe||(xe={}));var Yg;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(Yg||(Yg={}));var H=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),hr=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return Number.isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}};var D=xe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),y$=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),na=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(o){return o.message},n={_errors:[]},r=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)n._errors.push(a(i));else{let l=n,s=0;for(;s<i.path.length;){let u=i.path[s];s===i.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(a(i))):l[u]=l[u]||{_errors:[]},l=l[u],s++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a={},n=[];for(let r of this.issues)if(r.path.length>0){let o=r.path[0];a[o]=a[o]||[],a[o].push(t(r))}else n.push(t(r));return{formErrors:n,fieldErrors:a}}get formErrors(){return this.flatten()}};na.create=e=>new na(e);var x$=(e,t)=>{let a;switch(e.code){case D.invalid_type:e.received===H.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,xe.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:a=`Unrecognized key(s) in object: ${xe.joinValues(e.keys,", ")}`;break;case D.invalid_union:a="Invalid input";break;case D.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${xe.joinValues(e.options)}`;break;case D.invalid_enum_value:a=`Invalid enum value. Expected ${xe.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:a="Invalid function arguments";break;case D.invalid_return_type:a="Invalid function return type";break;case D.invalid_date:a="Invalid date";break;case D.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:xe.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case D.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case D.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case D.custom:a="Invalid input";break;case D.invalid_intersection_types:a="Intersection results could not be merged";break;case D.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:a="Number must be finite";break;default:a=t.defaultError,xe.assertNever(e)}return{message:a}},Xr=x$;var D0=Xr;function b$(e){D0=e}function vl(){return D0}var nu=e=>{let{data:t,path:a,errorMaps:n,issueData:r}=e,o=[...a,...r.path||[]],i={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let l="",s=n.filter(u=>!!u).slice().reverse();for(let u of s)l=u(i,{data:t,defaultError:l}).message;return{...r,path:o,message:l}},S$=[];function B(e,t){let a=vl(),n=nu({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===Xr?void 0:Xr].filter(r=>!!r)});e.common.issues.push(n)}var Dt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let n=[];for(let r of a){if(r.status==="aborted")return ee;r.status==="dirty"&&t.dirty(),n.push(r.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,a){let n=[];for(let r of a){let o=await r.key,i=await r.value;n.push({key:o,value:i})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,a){let n={};for(let r of a){let{key:o,value:i}=r;if(o.status==="aborted"||i.status==="aborted")return ee;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||r.alwaysSet)&&(n[o.value]=i.value)}return{status:t.value,value:n}}},ee=Object.freeze({status:"aborted"}),Do=e=>({status:"dirty",value:e}),Ut=e=>({status:"valid",value:e}),of=e=>e.status==="aborted",lf=e=>e.status==="dirty",Fn=e=>e.status==="valid",yl=e=>typeof Promise<"u"&&e instanceof Promise;var V;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(V||(V={}));var ja=class{constructor(t,a,n,r){this._cachedPath=[],this.parent=t,this.data=a,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},R0=(e,t)=>{if(Fn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new na(e.common.issues);return this._error=a,this._error}}};function de(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:n,description:r}=e;if(t&&(a||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(i,l)=>{let{message:s}=e;return i.code==="invalid_enum_value"?{message:s??l.defaultError}:typeof l.data>"u"?{message:s??n??l.defaultError}:i.code!=="invalid_type"?{message:l.defaultError}:{message:s??a??l.defaultError}},description:r}}var me=class{get description(){return this._def.description}_getType(t){return hr(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:hr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Dt,ctx:{common:t.parent.common,data:t.data,parsedType:hr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if(yl(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let n=this.safeParse(t,a);if(n.success)return n.data;throw n.error}safeParse(t,a){let n={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:hr(t)},r=this._parseSync({data:t,path:n.path,parent:n});return R0(n,r)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:hr(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:a});return Fn(n)?{value:n.value}:{issues:a.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(n=>Fn(n)?{value:n.value}:{issues:a.common.issues})}async parseAsync(t,a){let n=await this.safeParseAsync(t,a);if(n.success)return n.data;throw n.error}async safeParseAsync(t,a){let n={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:hr(t)},r=this._parse({data:t,path:n.path,parent:n}),o=await(yl(r)?r:Promise.resolve(r));return R0(n,o)}refine(t,a){let n=r=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(r):a;return this._refinement((r,o)=>{let i=t(r),l=()=>o.addIssue({code:D.custom,...n(r)});return typeof Promise<"u"&&i instanceof Promise?i.then(s=>s?!0:(l(),!1)):i?!0:(l(),!1)})}refinement(t,a){return this._refinement((n,r)=>t(n)?!0:(r.addIssue(typeof a=="function"?a(n,r):a),!1))}_refinement(t){return new Ba({schema:this,typeName:T.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return Ua.create(this,this._def)}nullable(){return vr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yr.create(this)}promise(){return Hn.create(this,this._def)}or(t){return Bo.create([this,t],this._def)}and(t){return Fo.create(this,t,this._def)}transform(t){return new Ba({...de(this._def),schema:this,typeName:T.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new Go({...de(this._def),innerType:this,defaultValue:a,typeName:T.ZodDefault})}brand(){return new ou({typeName:T.ZodBranded,type:this,...de(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new Jo({...de(this._def),innerType:this,catchValue:a,typeName:T.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return iu.create(this,t)}readonly(){return Xo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},w$=/^c[^\s-]{8,}$/i,I$=/^[0-9a-z]+$/,k$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,C$=/^[a-z0-9_-]{21}$/i,L$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,T$=/^[-+]?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)?)??$/,A$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,E$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Qg,M$=/^(?:(?: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])$/,O$=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,z$=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,D$=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,R$=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,P0="((\\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])))",P$=new RegExp(`^${P0}$`);function N0(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function N$(e){return new RegExp(`^${N0(e)}$`)}function U0(e){let t=`${P0}T${N0(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function U$(e,t){return!!((t==="v4"||!t)&&M$.test(e)||(t==="v6"||!t)&&z$.test(e))}function j$(e,t){if(!L$.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let n=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(n));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function B$(e,t){return!!((t==="v4"||!t)&&O$.test(e)||(t==="v6"||!t)&&D$.test(e))}var qn=class e extends me{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_type,expected:H.string,received:o.parsedType}),ee}let n=new Dt,r;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,l=t.data.length<o.value;(i||l)&&(r=this._getOrReturnCtx(t,r),i?B(r,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&B(r,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")A$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"email",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")Qg||(Qg=new RegExp(E$,"u")),Qg.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"emoji",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")_$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"uuid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")C$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"nanoid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")w$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"cuid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")I$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"cuid2",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")k$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"ulid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),B(r,{validation:"url",code:D.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"regex",code:D.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?U0(o).test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?P$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?N$(o).test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?T$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"duration",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?U$(t.data,o.version)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"ip",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?j$(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"jwt",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?B$(t.data,o.version)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"cidr",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?R$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"base64",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?$$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"base64url",code:D.invalid_string,message:o.message}),n.dirty()):xe.assertNever(o);return{status:n.value,value:t.data}}_regex(t,a,n){return this.refinement(r=>t.test(r),{validation:a,code:D.invalid_string,...V.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...V.errToObj(t)})}url(t){return this._addCheck({kind:"url",...V.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...V.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...V.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...V.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...V.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...V.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...V.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...V.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...V.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...V.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...V.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...V.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...V.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...V.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...V.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...V.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...V.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...V.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...V.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...V.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...V.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...V.errToObj(a)})}nonempty(t){return this.min(1,V.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};qn.create=e=>new qn({checks:[],typeName:T.ZodString,coerce:e?.coerce??!1,...de(e)});function F$(e,t){let a=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=a>n?a:n,o=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return o%i/10**r}var Ro=class e extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==H.number){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_type,expected:H.number,received:o.parsedType}),ee}let n,r=new Dt;for(let o of this._def.checks)o.kind==="int"?xe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),B(n,{code:D.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?F$(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),B(n,{code:D.not_finite,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,V.toString(a))}gt(t,a){return this.setLimit("min",t,!1,V.toString(a))}lte(t,a){return this.setLimit("max",t,!0,V.toString(a))}lt(t,a){return this.setLimit("max",t,!1,V.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:V.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:V.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:V.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:V.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&xe.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(a===null||n.value>a)&&(a=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(a)&&Number.isFinite(t)}};Ro.create=e=>new Ro({checks:[],typeName:T.ZodNumber,coerce:e?.coerce||!1,...de(e)});var $o=class e extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==H.bigint)return this._getInvalidInput(t);let n,r=new Dt;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return B(a,{code:D.invalid_type,expected:H.bigint,received:a.parsedType}),ee}gte(t,a){return this.setLimit("min",t,!0,V.toString(a))}gt(t,a){return this.setLimit("min",t,!1,V.toString(a))}lte(t,a){return this.setLimit("max",t,!0,V.toString(a))}lt(t,a){return this.setLimit("max",t,!1,V.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:V.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:V.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};$o.create=e=>new $o({checks:[],typeName:T.ZodBigInt,coerce:e?.coerce??!1,...de(e)});var Po=class extends me{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.boolean,received:n.parsedType}),ee}return Ut(t.data)}};Po.create=e=>new Po({typeName:T.ZodBoolean,coerce:e?.coerce||!1,...de(e)});var No=class e extends me{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_type,expected:H.date,received:o.parsedType}),ee}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_date}),ee}let n=new Dt,r;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):xe.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:V.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:V.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};No.create=e=>new No({checks:[],coerce:e?.coerce||!1,typeName:T.ZodDate,...de(e)});var bl=class extends me{_parse(t){if(this._getType(t)!==H.symbol){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.symbol,received:n.parsedType}),ee}return Ut(t.data)}};bl.create=e=>new bl({typeName:T.ZodSymbol,...de(e)});var Uo=class extends me{_parse(t){if(this._getType(t)!==H.undefined){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.undefined,received:n.parsedType}),ee}return Ut(t.data)}};Uo.create=e=>new Uo({typeName:T.ZodUndefined,...de(e)});var jo=class extends me{_parse(t){if(this._getType(t)!==H.null){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.null,received:n.parsedType}),ee}return Ut(t.data)}};jo.create=e=>new jo({typeName:T.ZodNull,...de(e)});var Zn=class extends me{constructor(){super(...arguments),this._any=!0}_parse(t){return Ut(t.data)}};Zn.create=e=>new Zn({typeName:T.ZodAny,...de(e)});var Kr=class extends me{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ut(t.data)}};Kr.create=e=>new Kr({typeName:T.ZodUnknown,...de(e)});var er=class extends me{_parse(t){let a=this._getOrReturnCtx(t);return B(a,{code:D.invalid_type,expected:H.never,received:a.parsedType}),ee}};er.create=e=>new er({typeName:T.ZodNever,...de(e)});var Sl=class extends me{_parse(t){if(this._getType(t)!==H.undefined){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.void,received:n.parsedType}),ee}return Ut(t.data)}};Sl.create=e=>new Sl({typeName:T.ZodVoid,...de(e)});var Yr=class e extends me{_parse(t){let{ctx:a,status:n}=this._processInputParams(t),r=this._def;if(a.parsedType!==H.array)return B(a,{code:D.invalid_type,expected:H.array,received:a.parsedType}),ee;if(r.exactLength!==null){let i=a.data.length>r.exactLength.value,l=a.data.length<r.exactLength.value;(i||l)&&(B(a,{code:i?D.too_big:D.too_small,minimum:l?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&a.data.length<r.minLength.value&&(B(a,{code:D.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&a.data.length>r.maxLength.value&&(B(a,{code:D.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),a.common.async)return Promise.all([...a.data].map((i,l)=>r.type._parseAsync(new ja(a,i,a.path,l)))).then(i=>Dt.mergeArray(n,i));let o=[...a.data].map((i,l)=>r.type._parseSync(new ja(a,i,a.path,l)));return Dt.mergeArray(n,o)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:V.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:V.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:V.toString(a)}})}nonempty(t){return this.min(1,t)}};Yr.create=(e,t)=>new Yr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:T.ZodArray,...de(t)});function xl(e){if(e instanceof oa){let t={};for(let a in e.shape){let n=e.shape[a];t[a]=Ua.create(xl(n))}return new oa({...e._def,shape:()=>t})}else return e instanceof Yr?new Yr({...e._def,type:xl(e.element)}):e instanceof Ua?Ua.create(xl(e.unwrap())):e instanceof vr?vr.create(xl(e.unwrap())):e instanceof gr?gr.create(e.items.map(t=>xl(t))):e}var oa=class e extends me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=xe.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==H.object){let u=this._getOrReturnCtx(t);return B(u,{code:D.invalid_type,expected:H.object,received:u.parsedType}),ee}let{status:n,ctx:r}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),l=[];if(!(this._def.catchall instanceof er&&this._def.unknownKeys==="strip"))for(let u in r.data)i.includes(u)||l.push(u);let s=[];for(let u of i){let c=o[u],d=r.data[u];s.push({key:{status:"valid",value:u},value:c._parse(new ja(r,d,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof er){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of l)s.push({key:{status:"valid",value:c},value:{status:"valid",value:r.data[c]}});else if(u==="strict")l.length>0&&(B(r,{code:D.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of l){let d=r.data[c];s.push({key:{status:"valid",value:c},value:u._parse(new ja(r,d,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of s){let d=await c.key,p=await c.value;u.push({key:d,value:p,alwaysSet:c.alwaysSet})}return u}).then(u=>Dt.mergeObjectSync(n,u)):Dt.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(t){return V.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,n)=>{let r=this._def.errorMap?.(a,n).message??n.defaultError;return a.code==="unrecognized_keys"?{message:V.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:T.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let n of xe.objectKeys(t))t[n]&&this.shape[n]&&(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let n of xe.objectKeys(this.shape))t[n]||(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}deepPartial(){return xl(this)}partial(t){let a={};for(let n of xe.objectKeys(this.shape)){let r=this.shape[n];t&&!t[n]?a[n]=r:a[n]=r.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let n of xe.objectKeys(this.shape))if(t&&!t[n])a[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof Ua;)o=o._def.innerType;a[n]=o}return new e({...this._def,shape:()=>a})}keyof(){return j0(xe.objectKeys(this.shape))}};oa.create=(e,t)=>new oa({shape:()=>e,unknownKeys:"strip",catchall:er.create(),typeName:T.ZodObject,...de(t)});oa.strictCreate=(e,t)=>new oa({shape:()=>e,unknownKeys:"strict",catchall:er.create(),typeName:T.ZodObject,...de(t)});oa.lazycreate=(e,t)=>new oa({shape:e,unknownKeys:"strip",catchall:er.create(),typeName:T.ZodObject,...de(t)});var Bo=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n=this._def.options;function r(o){for(let l of o)if(l.result.status==="valid")return l.result;for(let l of o)if(l.result.status==="dirty")return a.common.issues.push(...l.ctx.common.issues),l.result;let i=o.map(l=>new na(l.ctx.common.issues));return B(a,{code:D.invalid_union,unionErrors:i}),ee}if(a.common.async)return Promise.all(n.map(async o=>{let i={...a,common:{...a.common,issues:[]},parent:null};return{result:await o._parseAsync({data:a.data,path:a.path,parent:i}),ctx:i}})).then(r);{let o,i=[];for(let s of n){let u={...a,common:{...a.common,issues:[]},parent:null},c=s._parseSync({data:a.data,path:a.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return a.common.issues.push(...o.ctx.common.issues),o.result;let l=i.map(s=>new na(s));return B(a,{code:D.invalid_union,unionErrors:l}),ee}}get options(){return this._def.options}};Bo.create=(e,t)=>new Bo({options:e,typeName:T.ZodUnion,...de(t)});var Wr=e=>e instanceof qo?Wr(e.schema):e instanceof Ba?Wr(e.innerType()):e instanceof Zo?[e.value]:e instanceof Ho?e.options:e instanceof Vo?xe.objectValues(e.enum):e instanceof Go?Wr(e._def.innerType):e instanceof Uo?[void 0]:e instanceof jo?[null]:e instanceof Ua?[void 0,...Wr(e.unwrap())]:e instanceof vr?[null,...Wr(e.unwrap())]:e instanceof ou||e instanceof Xo?Wr(e.unwrap()):e instanceof Jo?Wr(e._def.innerType):[],sf=class e extends me{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==H.object)return B(a,{code:D.invalid_type,expected:H.object,received:a.parsedType}),ee;let n=this.discriminator,r=a.data[n],o=this.optionsMap.get(r);return o?a.common.async?o._parseAsync({data:a.data,path:a.path,parent:a}):o._parseSync({data:a.data,path:a.path,parent:a}):(B(a,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ee)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,n){let r=new Map;for(let o of a){let i=Wr(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let l of i){if(r.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);r.set(l,o)}}return new e({typeName:T.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:r,...de(n)})}};function ev(e,t){let a=hr(e),n=hr(t);if(e===t)return{valid:!0,data:e};if(a===H.object&&n===H.object){let r=xe.objectKeys(t),o=xe.objectKeys(e).filter(l=>r.indexOf(l)!==-1),i={...e,...t};for(let l of o){let s=ev(e[l],t[l]);if(!s.valid)return{valid:!1};i[l]=s.data}return{valid:!0,data:i}}else if(a===H.array&&n===H.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let o=0;o<e.length;o++){let i=e[o],l=t[o],s=ev(i,l);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}else return a===H.date&&n===H.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Fo=class extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=(o,i)=>{if(of(o)||of(i))return ee;let l=ev(o.value,i.value);return l.valid?((lf(o)||lf(i))&&a.dirty(),{status:a.value,value:l.data}):(B(n,{code:D.invalid_intersection_types}),ee)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,i])=>r(o,i)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Fo.create=(e,t,a)=>new Fo({left:e,right:t,typeName:T.ZodIntersection,...de(a)});var gr=class e extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.array)return B(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),ee;if(n.data.length<this._def.items.length)return B(n,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;!this._def.rest&&n.data.length>this._def.items.length&&(B(n,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let o=[...n.data].map((i,l)=>{let s=this._def.items[l]||this._def.rest;return s?s._parse(new ja(n,i,n.path,l)):null}).filter(i=>!!i);return n.common.async?Promise.all(o).then(i=>Dt.mergeArray(a,i)):Dt.mergeArray(a,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};gr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new gr({items:e,typeName:T.ZodTuple,rest:null,...de(t)})};var uf=class e extends me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.object)return B(n,{code:D.invalid_type,expected:H.object,received:n.parsedType}),ee;let r=[],o=this._def.keyType,i=this._def.valueType;for(let l in n.data)r.push({key:o._parse(new ja(n,l,n.path,l)),value:i._parse(new ja(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?Dt.mergeObjectAsync(a,r):Dt.mergeObjectSync(a,r)}get element(){return this._def.valueType}static create(t,a,n){return a instanceof me?new e({keyType:t,valueType:a,typeName:T.ZodRecord,...de(n)}):new e({keyType:qn.create(),valueType:t,typeName:T.ZodRecord,...de(a)})}},wl=class extends me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.map)return B(n,{code:D.invalid_type,expected:H.map,received:n.parsedType}),ee;let r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([l,s],u)=>({key:r._parse(new ja(n,l,n.path,[u,"key"])),value:o._parse(new ja(n,s,n.path,[u,"value"]))}));if(n.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let s of i){let u=await s.key,c=await s.value;if(u.status==="aborted"||c.status==="aborted")return ee;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}})}else{let l=new Map;for(let s of i){let u=s.key,c=s.value;if(u.status==="aborted"||c.status==="aborted")return ee;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}}}};wl.create=(e,t,a)=>new wl({valueType:t,keyType:e,typeName:T.ZodMap,...de(a)});var Il=class e extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.set)return B(n,{code:D.invalid_type,expected:H.set,received:n.parsedType}),ee;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(B(n,{code:D.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),a.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(B(n,{code:D.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),a.dirty());let o=this._def.valueType;function i(s){let u=new Set;for(let c of s){if(c.status==="aborted")return ee;c.status==="dirty"&&a.dirty(),u.add(c.value)}return{status:a.value,value:u}}let l=[...n.data.values()].map((s,u)=>o._parse(new ja(n,s,n.path,u)));return n.common.async?Promise.all(l).then(s=>i(s)):i(l)}min(t,a){return new e({...this._def,minSize:{value:t,message:V.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:V.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Il.create=(e,t)=>new Il({valueType:e,minSize:null,maxSize:null,typeName:T.ZodSet,...de(t)});var cf=class e extends me{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==H.function)return B(a,{code:D.invalid_type,expected:H.function,received:a.parsedType}),ee;function n(l,s){return nu({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,vl(),Xr].filter(u=>!!u),issueData:{code:D.invalid_arguments,argumentsError:s}})}function r(l,s){return nu({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,vl(),Xr].filter(u=>!!u),issueData:{code:D.invalid_return_type,returnTypeError:s}})}let o={errorMap:a.common.contextualErrorMap},i=a.data;if(this._def.returns instanceof Hn){let l=this;return Ut(async function(...s){let u=new na([]),c=await l._def.args.parseAsync(s,o).catch(f=>{throw u.addIssue(n(s,f)),u}),d=await Reflect.apply(i,this,c);return await l._def.returns._def.type.parseAsync(d,o).catch(f=>{throw u.addIssue(r(d,f)),u})})}else{let l=this;return Ut(function(...s){let u=l._def.args.safeParse(s,o);if(!u.success)throw new na([n(s,u.error)]);let c=Reflect.apply(i,this,u.data),d=l._def.returns.safeParse(c,o);if(!d.success)throw new na([r(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:gr.create(t).rest(Kr.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,n){return new e({args:t||gr.create([]).rest(Kr.create()),returns:a||Kr.create(),typeName:T.ZodFunction,...de(n)})}},qo=class extends me{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};qo.create=(e,t)=>new qo({getter:e,typeName:T.ZodLazy,...de(t)});var Zo=class extends me{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return B(a,{received:a.data,code:D.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:t.data}}get value(){return this._def.value}};Zo.create=(e,t)=>new Zo({value:e,typeName:T.ZodLiteral,...de(t)});function j0(e,t){return new Ho({values:e,typeName:T.ZodEnum,...de(t)})}var Ho=class e extends me{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),n=this._def.values;return B(a,{expected:xe.joinValues(n),received:a.parsedType,code:D.invalid_type}),ee}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),n=this._def.values;return B(a,{received:a.data,code:D.invalid_enum_value,options:n}),ee}return Ut(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...a})}};Ho.create=j0;var Vo=class extends me{_parse(t){let a=xe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==H.string&&n.parsedType!==H.number){let r=xe.objectValues(a);return B(n,{expected:xe.joinValues(r),received:n.parsedType,code:D.invalid_type}),ee}if(this._cache||(this._cache=new Set(xe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=xe.objectValues(a);return B(n,{received:n.data,code:D.invalid_enum_value,options:r}),ee}return Ut(t.data)}get enum(){return this._def.values}};Vo.create=(e,t)=>new Vo({values:e,typeName:T.ZodNativeEnum,...de(t)});var Hn=class extends me{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==H.promise&&a.common.async===!1)return B(a,{code:D.invalid_type,expected:H.promise,received:a.parsedType}),ee;let n=a.parsedType===H.promise?a.data:Promise.resolve(a.data);return Ut(n.then(r=>this._def.type.parseAsync(r,{path:a.path,errorMap:a.common.contextualErrorMap})))}};Hn.create=(e,t)=>new Hn({type:e,typeName:T.ZodPromise,...de(t)});var Ba=class extends me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===T.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:i=>{B(n,i),i.fatal?a.abort():a.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),r.type==="preprocess"){let i=r.transform(n.data,o);if(n.common.async)return Promise.resolve(i).then(async l=>{if(a.value==="aborted")return ee;let s=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return s.status==="aborted"?ee:s.status==="dirty"?Do(s.value):a.value==="dirty"?Do(s.value):s});{if(a.value==="aborted")return ee;let l=this._def.schema._parseSync({data:i,path:n.path,parent:n});return l.status==="aborted"?ee:l.status==="dirty"?Do(l.value):a.value==="dirty"?Do(l.value):l}}if(r.type==="refinement"){let i=l=>{let s=r.refinement(l,o);if(n.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?ee:(l.status==="dirty"&&a.dirty(),i(l.value),{status:a.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?ee:(l.status==="dirty"&&a.dirty(),i(l.value).then(()=>({status:a.value,value:l.value}))))}if(r.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Fn(i))return ee;let l=r.transform(i.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Fn(i)?Promise.resolve(r.transform(i.value,o)).then(l=>({status:a.value,value:l})):ee);xe.assertNever(r)}};Ba.create=(e,t,a)=>new Ba({schema:e,typeName:T.ZodEffects,effect:t,...de(a)});Ba.createWithPreprocess=(e,t,a)=>new Ba({schema:t,effect:{type:"preprocess",transform:e},typeName:T.ZodEffects,...de(a)});var Ua=class extends me{_parse(t){return this._getType(t)===H.undefined?Ut(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ua.create=(e,t)=>new Ua({innerType:e,typeName:T.ZodOptional,...de(t)});var vr=class extends me{_parse(t){return this._getType(t)===H.null?Ut(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};vr.create=(e,t)=>new vr({innerType:e,typeName:T.ZodNullable,...de(t)});var Go=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return a.parsedType===H.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};Go.create=(e,t)=>new Go({innerType:e,typeName:T.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...de(t)});var Jo=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n={...a,common:{...a.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return yl(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new na(n.common.issues)},input:n.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new na(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Jo.create=(e,t)=>new Jo({innerType:e,typeName:T.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...de(t)});var kl=class extends me{_parse(t){if(this._getType(t)!==H.nan){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.nan,received:n.parsedType}),ee}return{status:"valid",value:t.data}}};kl.create=e=>new kl({typeName:T.ZodNaN,...de(e)});var q$=Symbol("zod_brand"),ou=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return this._def.type._parse({data:n,path:a.path,parent:a})}unwrap(){return this._def.type}},iu=class e extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ee:o.status==="dirty"?(a.dirty(),Do(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{let r=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?ee:r.status==="dirty"?(a.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:n.path,parent:n})}}static create(t,a){return new e({in:t,out:a,typeName:T.ZodPipeline})}},Xo=class extends me{_parse(t){let a=this._def.innerType._parse(t),n=r=>(Fn(r)&&(r.value=Object.freeze(r.value)),r);return yl(a)?a.then(r=>n(r)):n(a)}unwrap(){return this._def.innerType}};Xo.create=(e,t)=>new Xo({innerType:e,typeName:T.ZodReadonly,...de(t)});function $0(e,t){let a=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof a=="string"?{message:a}:a}function B0(e,t={},a){return e?Zn.create().superRefine((n,r)=>{let o=e(n);if(o instanceof Promise)return o.then(i=>{if(!i){let l=$0(t,n),s=l.fatal??a??!0;r.addIssue({code:"custom",...l,fatal:s})}});if(!o){let i=$0(t,n),l=i.fatal??a??!0;r.addIssue({code:"custom",...i,fatal:l})}}):Zn.create()}var Z$={object:oa.lazycreate},T;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(T||(T={}));var H$=(e,t={message:`Input not instance of ${e.name}`})=>B0(a=>a instanceof e,t),F0=qn.create,q0=Ro.create,V$=kl.create,G$=$o.create,Z0=Po.create,J$=No.create,X$=bl.create,W$=Uo.create,K$=jo.create,Y$=Zn.create,Q$=Kr.create,e2=er.create,t2=Sl.create,a2=Yr.create,r2=oa.create,n2=oa.strictCreate,o2=Bo.create,i2=sf.create,l2=Fo.create,s2=gr.create,u2=uf.create,c2=wl.create,d2=Il.create,f2=cf.create,p2=qo.create,m2=Zo.create,h2=Ho.create,g2=Vo.create,v2=Hn.create,y2=Ba.create,x2=Ua.create,b2=vr.create,S2=Ba.createWithPreprocess,w2=iu.create,I2=()=>F0().optional(),k2=()=>q0().optional(),_2=()=>Z0().optional(),C2={string:(e=>qn.create({...e,coerce:!0})),number:(e=>Ro.create({...e,coerce:!0})),boolean:(e=>Po.create({...e,coerce:!0})),bigint:(e=>$o.create({...e,coerce:!0})),date:(e=>No.create({...e,coerce:!0}))};var L2=ee;var H0=tv;var G0=Symbol("Let zodToJsonSchema decide on which parser to use");var V0={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},J0=e=>typeof e=="string"?{...V0,name:e}:{...V0,...e};var X0=e=>{let t=J0(e),a=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:a,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}};function av(e,t,a,n){n?.errorMessages&&a&&(e.errorMessage={...e.errorMessage,[t]:a})}function ke(e,t,a,n,r){e[t]=a,av(e,t,n,r)}var df=(e,t)=>{let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];a++);return[(e.length-a).toString(),...t.slice(a)].join("/")};function tt(e){if(e.target!=="openAi")return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?df(t,e.currentPath):t.join("/")}}function W0(e,t){let a={type:"array"};return e.type?._def&&e.type?._def?.typeName!==T.ZodAny&&(a.items=ae(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&ke(a,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&ke(a,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(ke(a,"minItems",e.exactLength.value,e.exactLength.message,t),ke(a,"maxItems",e.exactLength.value,e.exactLength.message,t)),a}function K0(e,t){let a={type:"integer",format:"int64"};if(!e.checks)return a;for(let n of e.checks)switch(n.kind){case"min":t.target==="jsonSchema7"?n.inclusive?ke(a,"minimum",n.value,n.message,t):ke(a,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(a.exclusiveMinimum=!0),ke(a,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?ke(a,"maximum",n.value,n.message,t):ke(a,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(a.exclusiveMaximum=!0),ke(a,"maximum",n.value,n.message,t));break;case"multipleOf":ke(a,"multipleOf",n.value,n.message,t);break}return a}function Y0(){return{type:"boolean"}}function ff(e,t){return ae(e.type._def,t)}var Q0=(e,t)=>ae(e.innerType._def,t);function rv(e,t,a){let n=a??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((r,o)=>rv(e,t,r))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return T2(e,t)}}var T2=(e,t)=>{let a={type:"integer",format:"unix-time"};if(t.target==="openApi3")return a;for(let n of e.checks)switch(n.kind){case"min":ke(a,"minimum",n.value,n.message,t);break;case"max":ke(a,"maximum",n.value,n.message,t);break}return a};function eL(e,t){return{...ae(e.innerType._def,t),default:e.defaultValue()}}function tL(e,t){return t.effectStrategy==="input"?ae(e.schema._def,t):tt(t)}function aL(e){return{type:"string",enum:Array.from(e.values)}}var A2=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function rL(e,t){let a=[ae(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),ae(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),n=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,r=[];return a.forEach(o=>{if(A2(o))r.push(...o.allOf),o.unevaluatedProperties===void 0&&(n=void 0);else{let i=o;if("additionalProperties"in o&&o.additionalProperties===!1){let{additionalProperties:l,...s}=o;i=s}else n=void 0;r.push(i)}}),r.length?{allOf:r,...n}:void 0}function nL(e,t){let a=typeof e.value;return a!=="bigint"&&a!=="number"&&a!=="boolean"&&a!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:a==="bigint"?"integer":a,enum:[e.value]}:{type:a==="bigint"?"integer":a,const:e.value}}var nv,tr={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(nv===void 0&&(nv=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),nv),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function pf(e,t){let a={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":ke(a,"minLength",typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,n.message,t);break;case"max":ke(a,"maxLength",typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value,n.message,t);break;case"email":switch(t.emailStrategy){case"format:email":ar(a,"email",n.message,t);break;case"format:idn-email":ar(a,"idn-email",n.message,t);break;case"pattern:zod":Vt(a,tr.email,n.message,t);break}break;case"url":ar(a,"uri",n.message,t);break;case"uuid":ar(a,"uuid",n.message,t);break;case"regex":Vt(a,n.regex,n.message,t);break;case"cuid":Vt(a,tr.cuid,n.message,t);break;case"cuid2":Vt(a,tr.cuid2,n.message,t);break;case"startsWith":Vt(a,RegExp(`^${ov(n.value,t)}`),n.message,t);break;case"endsWith":Vt(a,RegExp(`${ov(n.value,t)}$`),n.message,t);break;case"datetime":ar(a,"date-time",n.message,t);break;case"date":ar(a,"date",n.message,t);break;case"time":ar(a,"time",n.message,t);break;case"duration":ar(a,"duration",n.message,t);break;case"length":ke(a,"minLength",typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,n.message,t),ke(a,"maxLength",typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value,n.message,t);break;case"includes":{Vt(a,RegExp(ov(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&ar(a,"ipv4",n.message,t),n.version!=="v4"&&ar(a,"ipv6",n.message,t);break}case"base64url":Vt(a,tr.base64url,n.message,t);break;case"jwt":Vt(a,tr.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&Vt(a,tr.ipv4Cidr,n.message,t),n.version!=="v4"&&Vt(a,tr.ipv6Cidr,n.message,t);break}case"emoji":Vt(a,tr.emoji(),n.message,t);break;case"ulid":{Vt(a,tr.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{ar(a,"binary",n.message,t);break}case"contentEncoding:base64":{ke(a,"contentEncoding","base64",n.message,t);break}case"pattern:zod":{Vt(a,tr.base64,n.message,t);break}}break}case"nanoid":Vt(a,tr.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function ov(e,t){return t.patternStrategy==="escape"?M2(e):e}var E2=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function M2(e){let t="";for(let a=0;a<e.length;a++)E2.has(e[a])||(t+="\\"),t+=e[a];return t}function ar(e,t,a,n){e.format||e.anyOf?.some(r=>r.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&n.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...a&&n.errorMessages&&{errorMessage:{format:a}}})):ke(e,"format",t,a,n)}function Vt(e,t,a,n){e.pattern||e.allOf?.some(r=>r.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&n.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:oL(t,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):ke(e,"pattern",oL(t,n),a,n)}function oL(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let a={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=a.i?e.source.toLowerCase():e.source,r="",o=!1,i=!1,l=!1;for(let s=0;s<n.length;s++){if(o){r+=n[s],o=!1;continue}if(a.i){if(i){if(n[s].match(/[a-z]/)){l?(r+=n[s],r+=`${n[s-2]}-${n[s]}`.toUpperCase(),l=!1):n[s+1]==="-"&&n[s+2]?.match(/[a-z]/)?(r+=n[s],l=!0):r+=`${n[s]}${n[s].toUpperCase()}`;continue}}else if(n[s].match(/[a-z]/)){r+=`[${n[s]}${n[s].toUpperCase()}]`;continue}}if(a.m){if(n[s]==="^"){r+=`(^|(?<=[\r
|
|
9
|
+
`+n.stack}}var yh=Object.prototype.hasOwnProperty,sg=It.unstable_scheduleCallback,Rm=It.unstable_cancelCallback,oD=It.unstable_shouldYield,iD=It.unstable_requestPaint,xa=It.unstable_now,lD=It.unstable_getCurrentPriorityLevel,t_=It.unstable_ImmediatePriority,a_=It.unstable_UserBlockingPriority,xd=It.unstable_NormalPriority,sD=It.unstable_LowPriority,r_=It.unstable_IdlePriority,uD=It.log,cD=It.unstable_setDisableYieldValue,Xs=null,ba=null;function _n(e){if(typeof uD=="function"&&cD(e),ba&&typeof ba.setStrictMode=="function")try{ba.setStrictMode(Xs,e)}catch{}}var Sa=Math.clz32?Math.clz32:pD,dD=Math.log,fD=Math.LN2;function pD(e){return e>>>=0,e===0?32:31-(dD(e)/fD|0)|0}var Nc=256,Uc=262144,jc=4194304;function xo(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hd(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=n&134217727;return l!==0?(n=l&~o,n!==0?r=xo(n):(i&=l,i!==0?r=xo(i):a||(a=l&~e,a!==0&&(r=xo(a))))):(l=n&~o,l!==0?r=xo(l):i!==0?r=xo(i):a||(a=n&~e,a!==0&&(r=xo(a)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:r}function Ks(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mD(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function n_(){var e=jc;return jc<<=1,(jc&62914560)===0&&(jc=4194304),e}function $m(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ys(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hD(e,t,a,n,r,o){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(a=i&~a;0<a;){var c=31-Sa(a),d=1<<c;l[c]=0,s[c]=-1;var p=u[c];if(p!==null)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];f!==null&&(f.lane&=-536870913)}a&=~d}n!==0&&o_(e,n,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function o_(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Sa(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function i_(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Sa(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function l_(e,t){var a=t&-t;return a=(a&42)!==0?1:ug(a),(a&(e.suspendedLanes|t))!==0?0:a}function ug(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function cg(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function s_(){var e=Me.p;return e!==0?e:(e=window.event,e===void 0?32:MC(e.type))}function LI(e,t){var a=Me.p;try{return Me.p=e,t()}finally{Me.p=a}}var qn=Math.random().toString(36).slice(2),zt="__reactFiber$"+qn,na="__reactProps$"+qn,pl="__reactContainer$"+qn,xh="__reactEvents$"+qn,gD="__reactListeners$"+qn,vD="__reactHandles$"+qn,TI="__reactResources$"+qn,Qs="__reactMarker$"+qn;function dg(e){delete e[zt],delete e[na],delete e[xh],delete e[gD],delete e[vD]}function Ui(e){var t=e[zt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[pl]||a[zt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=$k(e);e!==null;){if(a=e[zt])return a;e=$k(e)}return t}e=a,a=e.parentNode}return null}function ml(e){if(e=e[zt]||e[pl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(O(33))}function Ji(e){var t=e[TI];return t||(t=e[TI]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Lt(e){e[Qs]=!0}var u_=new Set,c_={};function Oo(e,t){rl(e,t),rl(e+"Capture",t)}function rl(e,t){for(c_[e]=t,e=0;e<t.length;e++)u_.add(t[e])}var yD=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]*$"),AI={},EI={};function xD(e){return yh.call(EI,e)?!0:yh.call(AI,e)?!1:yD.test(e)?EI[e]=!0:(AI[e]=!0,!1)}function td(e,t,a){if(xD(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Bc(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function zr(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function za(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function d_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bD(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bh(e){if(!e._valueTracker){var t=d_(e)?"checked":"value";e._valueTracker=bD(e,t,""+e[t])}}function f_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=d_(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function bd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var SD=/[\n"\\]/g;function $a(e){return e.replace(SD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Sh(e,t,a,n,r,o,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+za(t)):e.value!==""+za(t)&&(e.value=""+za(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?wh(e,i,za(t)):a!=null?wh(e,i,za(a)):n!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+za(l):e.removeAttribute("name")}function p_(e,t,a,n,r,o,i,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){bh(e);return}a=a!=null?""+za(a):"",t=t!=null?""+za(t):a,l||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=l?e.checked:!!n,e.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),bh(e)}function wh(e,t,a){t==="number"&&bd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Xi(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+za(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function m_(e,t,a){if(t!=null&&(t=""+za(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+za(a):""}function h_(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(O(92));if(ys(n)){if(1<n.length)throw Error(O(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=za(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),bh(e)}function nl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var wD=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 MI(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||wD.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function g_(e,t,a){if(t!=null&&typeof t!="object")throw Error(O(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&a[r]!==n&&MI(e,r,n)}else for(var o in t)t.hasOwnProperty(o)&&MI(e,o,t[o])}function fg(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ID=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"]]),kD=/^[\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 ad(e){return kD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Br(){}var Ih=null;function pg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ji=null,Ki=null;function OI(e){var t=ml(e);if(t&&(e=t.stateNode)){var a=e[na]||null;e:switch(e=t.stateNode,t.type){case"input":if(Sh(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+$a(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[na]||null;if(!r)throw Error(O(90));Sh(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&f_(n)}break e;case"textarea":m_(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Xi(e,!!a.multiple,t,!1)}}}var Pm=!1;function v_(e,t,a){if(Pm)return e(t,a);Pm=!0;try{var n=e(t);return n}finally{if(Pm=!1,(ji!==null||Ki!==null)&&(rf(),ji&&(t=ji,e=Ki,Ki=ji=null,OI(t),e)))for(t=0;t<e.length;t++)OI(e[t])}}function $s(e,t){var a=e.stateNode;if(a===null)return null;var n=a[na]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(O(231,t,typeof a));return a}var Vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kh=!1;if(Vr)try{Oi={},Object.defineProperty(Oi,"passive",{get:function(){kh=!0}}),window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{kh=!1}var Oi,Cn=null,mg=null,rd=null;function y_(){if(rd)return rd;var e,t=mg,a=t.length,n,r="value"in Cn?Cn.value:Cn.textContent,o=r.length;for(e=0;e<a&&t[e]===r[e];e++);var i=a-e;for(n=1;n<=i&&t[a-n]===r[o-n];n++);return rd=r.slice(e,1<n?1-n:void 0)}function nd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fc(){return!0}function zI(){return!1}function oa(e){function t(a,n,r,o,i){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(a=e[l],this[l]=a?a(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fc:zI,this.isPropagationStopped=zI,this}return Ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Fc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Fc)},persist:function(){},isPersistent:Fc}),t}var zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vd=oa(zo),eu=Ke({},zo,{view:0,detail:0}),_D=oa(eu),Nm,Um,ds,Gd=Ke({},eu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ds&&(ds&&e.type==="mousemove"?(Nm=e.screenX-ds.screenX,Um=e.screenY-ds.screenY):Um=Nm=0,ds=e),Nm)},movementY:function(e){return"movementY"in e?e.movementY:Um}}),DI=oa(Gd),CD=Ke({},Gd,{dataTransfer:0}),LD=oa(CD),TD=Ke({},eu,{relatedTarget:0}),jm=oa(TD),AD=Ke({},zo,{animationName:0,elapsedTime:0,pseudoElement:0}),ED=oa(AD),MD=Ke({},zo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OD=oa(MD),zD=Ke({},zo,{data:0}),RI=oa(zD),DD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RD={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"},$D={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$D[e])?!!t[e]:!1}function hg(){return PD}var ND=Ke({},eu,{key:function(e){if(e.key){var t=DD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?RD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hg,charCode:function(e){return e.type==="keypress"?nd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UD=oa(ND),jD=Ke({},Gd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$I=oa(jD),BD=Ke({},eu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hg}),FD=oa(BD),qD=Ke({},zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZD=oa(qD),HD=Ke({},Gd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),VD=oa(HD),GD=Ke({},zo,{newState:0,oldState:0}),WD=oa(GD),JD=[9,13,27,32],gg=Vr&&"CompositionEvent"in window,ws=null;Vr&&"documentMode"in document&&(ws=document.documentMode);var XD=Vr&&"TextEvent"in window&&!ws,x_=Vr&&(!gg||ws&&8<ws&&11>=ws),PI=" ",NI=!1;function b_(e,t){switch(e){case"keyup":return JD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bi=!1;function KD(e,t){switch(e){case"compositionend":return S_(t);case"keypress":return t.which!==32?null:(NI=!0,PI);case"textInput":return e=t.data,e===PI&&NI?null:e;default:return null}}function YD(e,t){if(Bi)return e==="compositionend"||!gg&&b_(e,t)?(e=y_(),rd=mg=Cn=null,Bi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return x_&&t.locale!=="ko"?null:t.data;default:return null}}var QD={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 UI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QD[e.type]:t==="textarea"}function w_(e,t,a,n){ji?Ki?Ki.push(n):Ki=[n]:ji=n,t=Nd(t,"onChange"),0<t.length&&(a=new Vd("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Is=null,Ps=null;function eR(e){vC(e,0)}function Wd(e){var t=xs(e);if(f_(t))return e}function jI(e,t){if(e==="change")return t}var I_=!1;Vr&&(Vr?(Zc="oninput"in document,Zc||(Bm=document.createElement("div"),Bm.setAttribute("oninput","return;"),Zc=typeof Bm.oninput=="function"),qc=Zc):qc=!1,I_=qc&&(!document.documentMode||9<document.documentMode));var qc,Zc,Bm;function BI(){Is&&(Is.detachEvent("onpropertychange",k_),Ps=Is=null)}function k_(e){if(e.propertyName==="value"&&Wd(Ps)){var t=[];w_(t,Ps,e,pg(e)),v_(eR,t)}}function tR(e,t,a){e==="focusin"?(BI(),Is=t,Ps=a,Is.attachEvent("onpropertychange",k_)):e==="focusout"&&BI()}function aR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wd(Ps)}function rR(e,t){if(e==="click")return Wd(t)}function nR(e,t){if(e==="input"||e==="change")return Wd(t)}function oR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ia=typeof Object.is=="function"?Object.is:oR;function Ns(e,t){if(Ia(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!yh.call(t,r)||!Ia(e[r],t[r]))return!1}return!0}function FI(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qI(e,t){var a=FI(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=FI(a)}}function __(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?__(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C_(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bd(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=bd(e.document)}return t}function vg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var iR=Vr&&"documentMode"in document&&11>=document.documentMode,Fi=null,_h=null,ks=null,Ch=!1;function ZI(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ch||Fi==null||Fi!==bd(n)||(n=Fi,"selectionStart"in n&&vg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ks&&Ns(ks,n)||(ks=n,n=Nd(_h,"onSelect"),0<n.length&&(t=new Vd("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Fi)))}function vo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var qi={animationend:vo("Animation","AnimationEnd"),animationiteration:vo("Animation","AnimationIteration"),animationstart:vo("Animation","AnimationStart"),transitionrun:vo("Transition","TransitionRun"),transitionstart:vo("Transition","TransitionStart"),transitioncancel:vo("Transition","TransitionCancel"),transitionend:vo("Transition","TransitionEnd")},Fm={},L_={};Vr&&(L_=document.createElement("div").style,"AnimationEvent"in window||(delete qi.animationend.animation,delete qi.animationiteration.animation,delete qi.animationstart.animation),"TransitionEvent"in window||delete qi.transitionend.transition);function Do(e){if(Fm[e])return Fm[e];if(!qi[e])return e;var t=qi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in L_)return Fm[e]=t[a];return e}var T_=Do("animationend"),A_=Do("animationiteration"),E_=Do("animationstart"),lR=Do("transitionrun"),sR=Do("transitionstart"),uR=Do("transitioncancel"),M_=Do("transitionend"),O_=new Map,Lh="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(" ");Lh.push("scrollEnd");function ar(e,t){O_.set(e,t),Oo(t,[e])}var Sd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Oa=[],Zi=0,yg=0;function Jd(){for(var e=Zi,t=yg=Zi=0;t<e;){var a=Oa[t];Oa[t++]=null;var n=Oa[t];Oa[t++]=null;var r=Oa[t];Oa[t++]=null;var o=Oa[t];if(Oa[t++]=null,n!==null&&r!==null){var i=n.pending;i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r}o!==0&&z_(a,r,o)}}function Xd(e,t,a,n){Oa[Zi++]=e,Oa[Zi++]=t,Oa[Zi++]=a,Oa[Zi++]=n,yg|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function xg(e,t,a,n){return Xd(e,t,a,n),wd(e)}function Ro(e,t){return Xd(e,null,null,t),wd(e)}function z_(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,o=e.return;o!==null;)o.childLanes|=a,n=o.alternate,n!==null&&(n.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-Sa(a),e=o.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),o):null}function wd(e){if(50<zs)throw zs=0,Wh=null,Error(O(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Hi={};function cR(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,a,n){return new cR(e,t,a,n)}function bg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qr(e,t){var a=e.alternate;return a===null?(a=va(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function D_(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function od(e,t,a,n,r,o){var i=0;if(n=e,typeof e=="function")bg(e)&&(i=1);else if(typeof e=="string")i=p$(e,a,hr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case mh:return e=va(31,a,t,r),e.elementType=mh,e.lanes=o,e;case Pi:return Io(a.children,r,o,t);case Qk:i=8,r|=24;break;case dh:return e=va(12,a,t,r|2),e.elementType=dh,e.lanes=o,e;case fh:return e=va(13,a,t,r),e.elementType=fh,e.lanes=o,e;case ph:return e=va(19,a,t,r),e.elementType=ph,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jr:i=10;break e;case e_:i=9;break e;case ig:i=11;break e;case lg:i=14;break e;case xn:i=16,n=null;break e}i=29,a=Error(O(130,e===null?"null":typeof e,"")),n=null}return t=va(i,a,t,r),t.elementType=e,t.type=n,t.lanes=o,t}function Io(e,t,a,n){return e=va(7,e,n,t),e.lanes=a,e}function qm(e,t,a){return e=va(6,e,null,t),e.lanes=a,e}function R_(e){var t=va(18,null,null,0);return t.stateNode=e,t}function Zm(e,t,a){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var HI=new WeakMap;function Pa(e,t){if(typeof e=="object"&&e!==null){var a=HI.get(e);return a!==void 0?a:(t={value:e,source:t,stack:CI(t)},HI.set(e,t),t)}return{value:e,source:t,stack:CI(t)}}var Vi=[],Gi=0,Id=null,Us=0,Da=[],Ra=0,Un=null,fr=1,pr="";function Nr(e,t){Vi[Gi++]=Us,Vi[Gi++]=Id,Id=e,Us=t}function $_(e,t,a){Da[Ra++]=fr,Da[Ra++]=pr,Da[Ra++]=Un,Un=e;var n=fr;e=pr;var r=32-Sa(n)-1;n&=~(1<<r),a+=1;var o=32-Sa(t)+r;if(30<o){var i=r-r%5;o=(n&(1<<i)-1).toString(32),n>>=i,r-=i,fr=1<<32-Sa(t)+r|a<<r|n,pr=o+e}else fr=1<<o|a<<r|n,pr=e}function Sg(e){e.return!==null&&(Nr(e,1),$_(e,1,0))}function wg(e){for(;e===Id;)Id=Vi[--Gi],Vi[Gi]=null,Us=Vi[--Gi],Vi[Gi]=null;for(;e===Un;)Un=Da[--Ra],Da[Ra]=null,pr=Da[--Ra],Da[Ra]=null,fr=Da[--Ra],Da[Ra]=null}function P_(e,t){Da[Ra++]=fr,Da[Ra++]=pr,Da[Ra++]=Un,fr=t.id,pr=t.overflow,Un=e}var Dt=null,Xe=null,ke=!1,Mn=null,Na=!1,Th=Error(O(519));function jn(e){var t=Error(O(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw js(Pa(t,e)),Th}function VI(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[zt]=e,t[na]=n,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<Zs.length;a++)ve(Zs[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),p_(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),h_(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||xC(t.textContent,a)?(n.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),n.onScroll!=null&&ve("scroll",t),n.onScrollEnd!=null&&ve("scrollend",t),n.onClick!=null&&(t.onclick=Br),t=!0):t=!1,t||jn(e,!0)}function GI(e){for(Dt=e.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:Na=!1;return;case 27:case 3:Na=!0;return;default:Dt=Dt.return}}function zi(e){if(e!==Dt)return!1;if(!ke)return GI(e),ke=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Qh(e.type,e.memoizedProps)),a=!a),a&&Xe&&jn(e),GI(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));Xe=Rk(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));Xe=Rk(e)}else t===27?(t=Xe,Zn(e.type)?(e=rg,rg=null,Xe=e):Xe=t):Xe=Dt?ja(e.stateNode.nextSibling):null;return!0}function Lo(){Xe=Dt=null,ke=!1}function Hm(){var e=Mn;return e!==null&&(aa===null?aa=e:aa.push.apply(aa,e),Mn=null),e}function js(e){Mn===null?Mn=[e]:Mn.push(e)}var Ah=gr(null),$o=null,Fr=null;function Sn(e,t,a){He(Ah,t._currentValue),t._currentValue=a}function Zr(e){e._currentValue=Ah.current,Tt(Ah)}function Eh(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Mh(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var i=r.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=r;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=a,l=o.alternate,l!==null&&(l.lanes|=a),Eh(o.return,a,e),n||(i=null);break e}o=l.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(O(341));i.lanes|=a,o=i.alternate,o!==null&&(o.lanes|=a),Eh(i,a,e),i=null}else i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function hl(e,t,a,n){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(O(387));if(i=i.memoizedProps,i!==null){var l=r.type;Ia(r.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(r===gd.current){if(i=r.alternate,i===null)throw Error(O(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Vs):e=[Vs])}r=r.return}e!==null&&Mh(t,e,a,n),t.flags|=262144}function kd(e){for(e=e.firstContext;e!==null;){if(!Ia(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function To(e){$o=e,Fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return N_($o,e)}function Hc(e,t){return $o===null&&To(e),N_(e,t)}function N_(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Fr===null){if(e===null)throw Error(O(308));Fr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fr=Fr.next=t;return a}var dR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},fR=It.unstable_scheduleCallback,pR=It.unstable_NormalPriority,yt={$$typeof:jr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ig(){return{controller:new dR,data:new Map,refCount:0}}function tu(e){e.refCount--,e.refCount===0&&fR(pR,function(){e.controller.abort()})}var _s=null,Oh=0,ol=0,Yi=null;function mR(e,t){if(_s===null){var a=_s=[];Oh=0,ol=Wg(),Yi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Oh++,t.then(WI,WI),t}function WI(){if(--Oh===0&&_s!==null){Yi!==null&&(Yi.status="fulfilled");var e=_s;_s=null,ol=0,Yi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hR(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var JI=re.S;re.S=function(e,t){Y0=xa(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&mR(e,t),JI!==null&&JI(e,t)};var ko=gr(null);function kg(){var e=ko.current;return e!==null?e:qe.pooledCache}function id(e,t){t===null?He(ko,ko.current):He(ko,t.pool)}function U_(){var e=kg();return e===null?null:{parent:yt._currentValue,pool:e}}var gl=Error(O(460)),_g=Error(O(474)),Kd=Error(O(542)),_d={then:function(){}};function XI(e){return e=e.status,e==="fulfilled"||e==="rejected"}function j_(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Br,Br),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,YI(e),e;default:if(typeof t.status=="string")t.then(Br,Br);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(O(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,YI(e),e}throw _o=t,gl}}function bo(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(_o=a,gl):a}}var _o=null;function KI(){if(_o===null)throw Error(O(459));var e=_o;return _o=null,e}function YI(e){if(e===gl||e===Kd)throw Error(O(483))}var Qi=null,Bs=0;function Vc(e){var t=Bs;return Bs+=1,Qi===null&&(Qi=[]),j_(Qi,e,t)}function fs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gc(e,t){throw t.$$typeof===tD?Error(O(525)):(e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function B_(e){function t(v,y){if(e){var g=v.deletions;g===null?(v.deletions=[y],v.flags|=16):g.push(y)}}function a(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function n(v){for(var y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function r(v,y){return v=qr(v,y),v.index=0,v.sibling=null,v}function o(v,y,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<y?(v.flags|=67108866,y):g):(v.flags|=67108866,y)):(v.flags|=1048576,y)}function i(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function l(v,y,g,S){return y===null||y.tag!==6?(y=qm(g,v.mode,S),y.return=v,y):(y=r(y,g),y.return=v,y)}function s(v,y,g,S){var L=g.type;return L===Pi?c(v,y,g.props.children,S,g.key):y!==null&&(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===xn&&bo(L)===y.type)?(y=r(y,g.props),fs(y,g),y.return=v,y):(y=od(g.type,g.key,g.props,null,v.mode,S),fs(y,g),y.return=v,y)}function u(v,y,g,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=Zm(g,v.mode,S),y.return=v,y):(y=r(y,g.children||[]),y.return=v,y)}function c(v,y,g,S,L){return y===null||y.tag!==7?(y=Io(g,v.mode,S,L),y.return=v,y):(y=r(y,g),y.return=v,y)}function d(v,y,g){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=qm(""+y,v.mode,g),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Pc:return g=od(y.type,y.key,y.props,null,v.mode,g),fs(g,y),g.return=v,g;case vs:return y=Zm(y,v.mode,g),y.return=v,y;case xn:return y=bo(y),d(v,y,g)}if(ys(y)||cs(y))return y=Io(y,v.mode,g,null),y.return=v,y;if(typeof y.then=="function")return d(v,Vc(y),g);if(y.$$typeof===jr)return d(v,Hc(v,y),g);Gc(v,y)}return null}function p(v,y,g,S){var L=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return L!==null?null:l(v,y,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pc:return g.key===L?s(v,y,g,S):null;case vs:return g.key===L?u(v,y,g,S):null;case xn:return g=bo(g),p(v,y,g,S)}if(ys(g)||cs(g))return L!==null?null:c(v,y,g,S,null);if(typeof g.then=="function")return p(v,y,Vc(g),S);if(g.$$typeof===jr)return p(v,y,Hc(v,g),S);Gc(v,g)}return null}function f(v,y,g,S,L){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return v=v.get(g)||null,l(y,v,""+S,L);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Pc:return v=v.get(S.key===null?g:S.key)||null,s(y,v,S,L);case vs:return v=v.get(S.key===null?g:S.key)||null,u(y,v,S,L);case xn:return S=bo(S),f(v,y,g,S,L)}if(ys(S)||cs(S))return v=v.get(g)||null,c(y,v,S,L,null);if(typeof S.then=="function")return f(v,y,g,Vc(S),L);if(S.$$typeof===jr)return f(v,y,g,Hc(y,S),L);Gc(y,S)}return null}function m(v,y,g,S){for(var L=null,_=null,A=y,z=y=0,$=null;A!==null&&z<g.length;z++){A.index>z?($=A,A=null):$=A.sibling;var k=p(v,A,g[z],S);if(k===null){A===null&&(A=$);break}e&&A&&k.alternate===null&&t(v,A),y=o(k,y,z),_===null?L=k:_.sibling=k,_=k,A=$}if(z===g.length)return a(v,A),ke&&Nr(v,z),L;if(A===null){for(;z<g.length;z++)A=d(v,g[z],S),A!==null&&(y=o(A,y,z),_===null?L=A:_.sibling=A,_=A);return ke&&Nr(v,z),L}for(A=n(A);z<g.length;z++)$=f(A,v,z,g[z],S),$!==null&&(e&&$.alternate!==null&&A.delete($.key===null?z:$.key),y=o($,y,z),_===null?L=$:_.sibling=$,_=$);return e&&A.forEach(function(G){return t(v,G)}),ke&&Nr(v,z),L}function x(v,y,g,S){if(g==null)throw Error(O(151));for(var L=null,_=null,A=y,z=y=0,$=null,k=g.next();A!==null&&!k.done;z++,k=g.next()){A.index>z?($=A,A=null):$=A.sibling;var G=p(v,A,k.value,S);if(G===null){A===null&&(A=$);break}e&&A&&G.alternate===null&&t(v,A),y=o(G,y,z),_===null?L=G:_.sibling=G,_=G,A=$}if(k.done)return a(v,A),ke&&Nr(v,z),L;if(A===null){for(;!k.done;z++,k=g.next())k=d(v,k.value,S),k!==null&&(y=o(k,y,z),_===null?L=k:_.sibling=k,_=k);return ke&&Nr(v,z),L}for(A=n(A);!k.done;z++,k=g.next())k=f(A,v,z,k.value,S),k!==null&&(e&&k.alternate!==null&&A.delete(k.key===null?z:k.key),y=o(k,y,z),_===null?L=k:_.sibling=k,_=k);return e&&A.forEach(function(Z){return t(v,Z)}),ke&&Nr(v,z),L}function b(v,y,g,S){if(typeof g=="object"&&g!==null&&g.type===Pi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pc:e:{for(var L=g.key;y!==null;){if(y.key===L){if(L=g.type,L===Pi){if(y.tag===7){a(v,y.sibling),S=r(y,g.props.children),S.return=v,v=S;break e}}else if(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===xn&&bo(L)===y.type){a(v,y.sibling),S=r(y,g.props),fs(S,g),S.return=v,v=S;break e}a(v,y);break}else t(v,y);y=y.sibling}g.type===Pi?(S=Io(g.props.children,v.mode,S,g.key),S.return=v,v=S):(S=od(g.type,g.key,g.props,null,v.mode,S),fs(S,g),S.return=v,v=S)}return i(v);case vs:e:{for(L=g.key;y!==null;){if(y.key===L)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){a(v,y.sibling),S=r(y,g.children||[]),S.return=v,v=S;break e}else{a(v,y);break}else t(v,y);y=y.sibling}S=Zm(g,v.mode,S),S.return=v,v=S}return i(v);case xn:return g=bo(g),b(v,y,g,S)}if(ys(g))return m(v,y,g,S);if(cs(g)){if(L=cs(g),typeof L!="function")throw Error(O(150));return g=L.call(g),x(v,y,g,S)}if(typeof g.then=="function")return b(v,y,Vc(g),S);if(g.$$typeof===jr)return b(v,y,Hc(v,g),S);Gc(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,y!==null&&y.tag===6?(a(v,y.sibling),S=r(y,g),S.return=v,v=S):(a(v,y),S=qm(g,v.mode,S),S.return=v,v=S),i(v)):a(v,y)}return function(v,y,g,S){try{Bs=0;var L=b(v,y,g,S);return Qi=null,L}catch(A){if(A===gl||A===Kd)throw A;var _=va(29,A,null,v.mode);return _.lanes=S,_.return=v,_}}}var Ao=B_(!0),F_=B_(!1),bn=!1;function Cg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function On(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zn(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ee&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=wd(e),z_(e,null,a),t}return Xd(e,n,t,a),wd(e)}function Cs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,i_(e,a)}}function Vm(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?r=o=i:o=o.next=i,a=a.next}while(a!==null);o===null?r=o=t:o=o.next=t}else r=o=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Dh=!1;function Ls(){if(Dh){var e=Yi;if(e!==null)throw e}}function Ts(e,t,a,n){Dh=!1;var r=e.updateQueue;bn=!1;var o=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var s=l,u=s.next;s.next=null,i===null?o=u:i.next=u,i=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==i&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(o!==null){var d=r.baseState;i=0,c=u=s=null,l=o;do{var p=l.lane&-536870913,f=p!==l.lane;if(f?(Se&p)===p:(n&p)===p){p!==0&&p===ol&&(Dh=!0),c!==null&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,x=l;p=t;var b=a;switch(x.tag){case 1:if(m=x.payload,typeof m=="function"){d=m.call(b,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,p=typeof m=="function"?m.call(b,d,p):m,p==null)break e;d=Ke({},d,p);break e;case 2:bn=!0}}p=l.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=r.callbacks,f===null?r.callbacks=[p]:f.push(p))}else f={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=f,s=d):c=c.next=f,i|=p;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;f=l,l=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);c===null&&(s=d),r.baseState=s,r.firstBaseUpdate=u,r.lastBaseUpdate=c,o===null&&(r.shared.lanes=0),Fn|=i,e.lanes=i,e.memoizedState=d}}function q_(e,t){if(typeof e!="function")throw Error(O(191,e));e.call(t)}function Z_(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)q_(a[e],t)}var il=gr(null),Cd=gr(0);function QI(e,t){e=Xr,He(Cd,e),He(il,t),Xr=e|t.baseLanes}function Rh(){He(Cd,Xr),He(il,il.current)}function Lg(){Xr=Cd.current,Tt(il),Tt(Cd)}var ka=gr(null),Ua=null;function wn(e){var t=e.alternate;He(ft,ft.current&1),He(ka,e),Ua===null&&(t===null||il.current!==null||t.memoizedState!==null)&&(Ua=e)}function $h(e){He(ft,ft.current),He(ka,e),Ua===null&&(Ua=e)}function H_(e){e.tag===22?(He(ft,ft.current),He(ka,e),Ua===null&&(Ua=e)):In(e)}function In(){He(ft,ft.current),He(ka,ka.current)}function ga(e){Tt(ka),Ua===e&&(Ua=null),Tt(ft)}var ft=gr(0);function Ld(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||tg(a)||ag(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gr=0,ce=null,Be=null,gt=null,Td=!1,el=!1,Eo=!1,Ad=0,Fs=0,tl=null,gR=0;function lt(){throw Error(O(321))}function Tg(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ia(e[a],t[a]))return!1;return!0}function Ag(e,t,a,n,r,o){return Gr=o,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,re.H=e===null||e.memoizedState===null?w0:jg,Eo=!1,o=a(n,r),Eo=!1,el&&(o=G_(t,a,n,r)),V_(e),o}function V_(e){re.H=qs;var t=Be!==null&&Be.next!==null;if(Gr=0,gt=Be=ce=null,Td=!1,Fs=0,tl=null,t)throw Error(O(300));e===null||xt||(e=e.dependencies,e!==null&&kd(e)&&(xt=!0))}function G_(e,t,a,n){ce=e;var r=0;do{if(el&&(tl=null),Fs=0,el=!1,25<=r)throw Error(O(301));if(r+=1,gt=Be=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}re.H=I0,o=t(a,n)}while(el);return o}function vR(){var e=re.H,t=e.useState()[0];return t=typeof t.then=="function"?au(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(ce.flags|=1024),t}function Eg(){var e=Ad!==0;return Ad=0,e}function Mg(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Og(e){if(Td){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Td=!1}Gr=0,gt=Be=ce=null,el=!1,Fs=Ad=0,tl=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?ce.memoizedState=gt=e:gt=gt.next=e,gt}function pt(){if(Be===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=gt===null?ce.memoizedState:gt.next;if(t!==null)gt=t,Be=e;else{if(e===null)throw ce.alternate===null?Error(O(467)):Error(O(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},gt===null?ce.memoizedState=gt=e:gt=gt.next=e}return gt}function Yd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function au(e){var t=Fs;return Fs+=1,tl===null&&(tl=[]),e=j_(tl,e,t),t=ce,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,re.H=t===null||t.memoizedState===null?w0:jg),e}function Qd(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return au(e);if(e.$$typeof===jr)return Rt(e)}throw Error(O(438,String(e)))}function zg(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ce.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Yd(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=aD;return t.index++,a}function Wr(e,t){return typeof t=="function"?t(e):t}function ld(e){var t=pt();return Dg(t,Be,e)}function Dg(e,t,a){var n=e.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=a;var r=e.baseQueue,o=n.pending;if(o!==null){if(r!==null){var i=r.next;r.next=o.next,o.next=i}t.baseQueue=r=o,n.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var l=i=null,s=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Se&d)===d:(Gr&d)===d){var p=u.revertLane;if(p===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===ol&&(c=!0);else if((Gr&p)===p){u=u.next,p===ol&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=d,i=o):s=s.next=d,ce.lanes|=p,Fn|=p;d=u.action,Eo&&a(o,d),o=u.hasEagerState?u.eagerState:a(o,d)}else p={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=p,i=o):s=s.next=p,ce.lanes|=d,Fn|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=o:s.next=l,!Ia(o,e.memoizedState)&&(xt=!0,c&&(a=Yi,a!==null)))throw a;e.memoizedState=o,e.baseState=i,e.baseQueue=s,n.lastRenderedState=o}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Gm(e){var t=pt(),a=t.queue;if(a===null)throw Error(O(311));a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,o=t.memoizedState;if(r!==null){a.pending=null;var i=r=r.next;do o=e(o,i.action),i=i.next;while(i!==r);Ia(o,t.memoizedState)||(xt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,n]}function W_(e,t,a){var n=ce,r=pt(),o=ke;if(o){if(a===void 0)throw Error(O(407));a=a()}else a=t();var i=!Ia((Be||r).memoizedState,a);if(i&&(r.memoizedState=a,xt=!0),r=r.queue,Rg(K_.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||gt!==null&>.memoizedState.tag&1){if(n.flags|=2048,ll(9,{destroy:void 0},X_.bind(null,n,r,a,t),null),qe===null)throw Error(O(349));o||(Gr&127)!==0||J_(n,t,a)}return a}function J_(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Yd(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function X_(e,t,a,n){t.value=a,t.getSnapshot=n,Y_(t)&&Q_(e)}function K_(e,t,a){return a(function(){Y_(t)&&Q_(e)})}function Y_(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ia(e,a)}catch{return!0}}function Q_(e){var t=Ro(e,2);t!==null&&ra(t,e,2)}function Ph(e){var t=Gt();if(typeof e=="function"){var a=e;if(e=a(),Eo){_n(!0);try{a()}finally{_n(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:e},t}function e0(e,t,a,n){return e.baseState=a,Dg(e,Be,typeof n=="function"?n:Wr)}function yR(e,t,a,n,r){if(tf(e))throw Error(O(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){o.listeners.push(i)}};re.T!==null?a(!0):o.isTransition=!1,n(o),a=t.pending,a===null?(o.next=t.pending=o,t0(t,o)):(o.next=a.next,t.pending=a.next=o)}}function t0(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var o=re.T,i={};re.T=i;try{var l=a(r,n),s=re.S;s!==null&&s(i,l),ek(e,t,l)}catch(u){Nh(e,t,u)}finally{o!==null&&i.types!==null&&(o.types=i.types),re.T=o}}else try{o=a(r,n),ek(e,t,o)}catch(u){Nh(e,t,u)}}function ek(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){tk(e,t,n)},function(n){return Nh(e,t,n)}):tk(e,t,a)}function tk(e,t,a){t.status="fulfilled",t.value=a,a0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,t0(e,a)))}function Nh(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,a0(t),t=t.next;while(t!==n)}e.action=null}function a0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function r0(e,t){return t}function ak(e,t){if(ke){var a=qe.formState;if(a!==null){e:{var n=ce;if(ke){if(Xe){t:{for(var r=Xe,o=Na;r.nodeType!==8;){if(!o){r=null;break t}if(r=ja(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Xe=ja(r.nextSibling),n=r.data==="F!";break e}}jn(n)}n=!1}n&&(t=a[0])}}return a=Gt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r0,lastRenderedState:t},a.queue=n,a=x0.bind(null,ce,n),n.dispatch=a,n=Ph(!1),o=Ug.bind(null,ce,!1,n.queue),n=Gt(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=yR.bind(null,ce,r,o,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function rk(e){var t=pt();return n0(t,Be,e)}function n0(e,t,a){if(t=Dg(e,t,r0)[0],e=ld(Wr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=au(t)}catch(i){throw i===gl?Kd:i}else n=t;t=pt();var r=t.queue,o=r.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,ll(9,{destroy:void 0},xR.bind(null,r,a),null)),[n,o,e]}function xR(e,t){e.action=t}function nk(e){var t=pt(),a=Be;if(a!==null)return n0(t,a,e);pt(),t=t.memoizedState,a=pt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function ll(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Yd(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function o0(){return pt().memoizedState}function sd(e,t,a,n){var r=Gt();ce.flags|=e,r.memoizedState=ll(1|t,{destroy:void 0},a,n===void 0?null:n)}function ef(e,t,a,n){var r=pt();n=n===void 0?null:n;var o=r.memoizedState.inst;Be!==null&&n!==null&&Tg(n,Be.memoizedState.deps)?r.memoizedState=ll(t,o,a,n):(ce.flags|=e,r.memoizedState=ll(1|t,o,a,n))}function ok(e,t){sd(8390656,8,e,t)}function Rg(e,t){ef(2048,8,e,t)}function bR(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Yd(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function i0(e){var t=pt().memoizedState;return bR({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(O(440));return t.impl.apply(void 0,arguments)}}function l0(e,t){return ef(4,2,e,t)}function s0(e,t){return ef(4,4,e,t)}function u0(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function c0(e,t,a){a=a!=null?a.concat([e]):null,ef(4,4,u0.bind(null,t,e),a)}function $g(){}function d0(e,t){var a=pt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Tg(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function f0(e,t){var a=pt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Tg(t,n[1]))return n[0];if(n=e(),Eo){_n(!0);try{e()}finally{_n(!1)}}return a.memoizedState=[n,t],n}function Pg(e,t,a){return a===void 0||(Gr&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=eC(),ce.lanes|=e,Fn|=e,a)}function p0(e,t,a,n){return Ia(a,t)?a:il.current!==null?(e=Pg(e,a,n),Ia(e,t)||(xt=!0),e):(Gr&42)===0||(Gr&1073741824)!==0&&(Se&261930)===0?(xt=!0,e.memoizedState=a):(e=eC(),ce.lanes|=e,Fn|=e,t)}function m0(e,t,a,n,r){var o=Me.p;Me.p=o!==0&&8>o?o:8;var i=re.T,l={};re.T=l,Ug(e,!1,t,a);try{var s=r(),u=re.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=hR(s,n);As(e,t,c,wa(e))}else As(e,t,n,wa(e))}catch(d){As(e,t,{then:function(){},status:"rejected",reason:d},wa())}finally{Me.p=o,i!==null&&l.types!==null&&(i.types=l.types),re.T=i}}function SR(){}function Uh(e,t,a,n){if(e.tag!==5)throw Error(O(476));var r=h0(e).queue;m0(e,r,t,wo,a===null?SR:function(){return g0(e),a(n)})}function h0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:wo,baseState:wo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:wo},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function g0(e){var t=h0(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},wa())}function Ng(){return Rt(Vs)}function v0(){return pt().memoizedState}function y0(){return pt().memoizedState}function wR(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=wa();e=On(a);var n=zn(t,e,a);n!==null&&(ra(n,t,a),Cs(n,t,a)),t={cache:Ig()},e.payload=t;return}t=t.return}}function IR(e,t,a){var n=wa();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},tf(e)?b0(t,a):(a=xg(e,t,a,n),a!==null&&(ra(a,e,n),S0(a,t,n)))}function x0(e,t,a){var n=wa();As(e,t,a,n)}function As(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(tf(e))b0(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,a);if(r.hasEagerState=!0,r.eagerState=l,Ia(l,i))return Xd(e,t,r,0),qe===null&&Jd(),!1}catch{}if(a=xg(e,t,r,n),a!==null)return ra(a,e,n),S0(a,t,n),!0}return!1}function Ug(e,t,a,n){if(n={lane:2,revertLane:Wg(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tf(e)){if(t)throw Error(O(479))}else t=xg(e,a,n,2),t!==null&&ra(t,e,2)}function tf(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function b0(e,t){el=Td=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function S0(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,i_(e,a)}}var qs={readContext:Rt,use:Qd,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};qs.useEffectEvent=lt;var w0={readContext:Rt,use:Qd,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:ok,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,sd(4194308,4,u0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return sd(4194308,4,e,t)},useInsertionEffect:function(e,t){sd(4,2,e,t)},useMemo:function(e,t){var a=Gt();t=t===void 0?null:t;var n=e();if(Eo){_n(!0);try{e()}finally{_n(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=Gt();if(a!==void 0){var r=a(t);if(Eo){_n(!0);try{a(t)}finally{_n(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=IR.bind(null,ce,e),[n.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ph(e);var t=e.queue,a=x0.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:$g,useDeferredValue:function(e,t){var a=Gt();return Pg(a,e,t)},useTransition:function(){var e=Ph(!1);return e=m0.bind(null,ce,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ce,r=Gt();if(ke){if(a===void 0)throw Error(O(407));a=a()}else{if(a=t(),qe===null)throw Error(O(349));(Se&127)!==0||J_(n,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,ok(K_.bind(null,n,o,e),[e]),n.flags|=2048,ll(9,{destroy:void 0},X_.bind(null,n,o,a,t),null),a},useId:function(){var e=Gt(),t=qe.identifierPrefix;if(ke){var a=pr,n=fr;a=(n&~(1<<32-Sa(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ad++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=gR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ng,useFormState:ak,useActionState:ak,useOptimistic:function(e){var t=Gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ug.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:zg,useCacheRefresh:function(){return Gt().memoizedState=wR.bind(null,ce)},useEffectEvent:function(e){var t=Gt(),a={impl:e};return t.memoizedState=a,function(){if((Ee&2)!==0)throw Error(O(440));return a.impl.apply(void 0,arguments)}}},jg={readContext:Rt,use:Qd,useCallback:d0,useContext:Rt,useEffect:Rg,useImperativeHandle:c0,useInsertionEffect:l0,useLayoutEffect:s0,useMemo:f0,useReducer:ld,useRef:o0,useState:function(){return ld(Wr)},useDebugValue:$g,useDeferredValue:function(e,t){var a=pt();return p0(a,Be.memoizedState,e,t)},useTransition:function(){var e=ld(Wr)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:au(e),t]},useSyncExternalStore:W_,useId:v0,useHostTransitionStatus:Ng,useFormState:rk,useActionState:rk,useOptimistic:function(e,t){var a=pt();return e0(a,Be,e,t)},useMemoCache:zg,useCacheRefresh:y0};jg.useEffectEvent=i0;var I0={readContext:Rt,use:Qd,useCallback:d0,useContext:Rt,useEffect:Rg,useImperativeHandle:c0,useInsertionEffect:l0,useLayoutEffect:s0,useMemo:f0,useReducer:Gm,useRef:o0,useState:function(){return Gm(Wr)},useDebugValue:$g,useDeferredValue:function(e,t){var a=pt();return Be===null?Pg(a,e,t):p0(a,Be.memoizedState,e,t)},useTransition:function(){var e=Gm(Wr)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:au(e),t]},useSyncExternalStore:W_,useId:v0,useHostTransitionStatus:Ng,useFormState:nk,useActionState:nk,useOptimistic:function(e,t){var a=pt();return Be!==null?e0(a,Be,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:zg,useCacheRefresh:y0};I0.useEffectEvent=i0;function Wm(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:Ke({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var jh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=wa(),r=On(n);r.payload=t,a!=null&&(r.callback=a),t=zn(e,r,n),t!==null&&(ra(t,e,n),Cs(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=wa(),r=On(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=zn(e,r,n),t!==null&&(ra(t,e,n),Cs(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=wa(),n=On(a);n.tag=2,t!=null&&(n.callback=t),t=zn(e,n,a),t!==null&&(ra(t,e,a),Cs(t,e,a))}};function ik(e,t,a,n,r,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!Ns(a,n)||!Ns(r,o):!0}function lk(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&jh.enqueueReplaceState(t,t.state,null)}function Mo(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=Ke({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function k0(e){Sd(e)}function _0(e){console.error(e)}function C0(e){Sd(e)}function Ed(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function sk(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Bh(e,t,a){return a=On(a),a.tag=3,a.payload={element:null},a.callback=function(){Ed(e,t)},a}function L0(e){return e=On(e),e.tag=3,e}function T0(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var o=n.value;e.payload=function(){return r(o)},e.callback=function(){sk(t,a,n)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){sk(t,a,n),typeof r!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var l=n.stack;this.componentDidCatch(n.value,{componentStack:l!==null?l:""})})}function kR(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&hl(t,a,r,!0),a=ka.current,a!==null){switch(a.tag){case 31:case 13:return Ua===null?Rd():a.alternate===null&&st===0&&(st=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===_d?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),oh(e,n,r)),!1;case 22:return a.flags|=65536,n===_d?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),oh(e,n,r)),!1}throw Error(O(435,a.tag))}return oh(e,n,r),Rd(),!1}if(ke)return t=ka.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Th&&(e=Error(O(422),{cause:n}),js(Pa(e,a)))):(n!==Th&&(t=Error(O(423),{cause:n}),js(Pa(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=Pa(n,a),r=Bh(e.stateNode,n,r),Vm(e,r),st!==4&&(st=2)),!1;var o=Error(O(520),{cause:n});if(o=Pa(o,a),Os===null?Os=[o]:Os.push(o),st!==4&&(st=2),t===null)return!0;n=Pa(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Bh(a.stateNode,n,e),Vm(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Dn===null||!Dn.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=L0(r),T0(r,e,a,n),Vm(a,r),!1}a=a.return}while(a!==null);return!1}var Bg=Error(O(461)),xt=!1;function Ot(e,t,a,n){t.child=e===null?F_(t,null,a,n):Ao(t,e.child,a,n)}function uk(e,t,a,n,r){a=a.render;var o=t.ref;if("ref"in n){var i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}else i=n;return To(t),n=Ag(e,t,a,i,o,r),l=Eg(),e!==null&&!xt?(Mg(e,t,r),Jr(e,t,r)):(ke&&l&&Sg(t),t.flags|=1,Ot(e,t,n,r),t.child)}function ck(e,t,a,n,r){if(e===null){var o=a.type;return typeof o=="function"&&!bg(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,A0(e,t,o,n,r)):(e=od(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Fg(e,r)){var i=o.memoizedProps;if(a=a.compare,a=a!==null?a:Ns,a(i,n)&&e.ref===t.ref)return Jr(e,t,r)}return t.flags|=1,e=qr(o,n),e.ref=t.ref,e.return=t,t.child=e}function A0(e,t,a,n,r){if(e!==null){var o=e.memoizedProps;if(Ns(o,n)&&e.ref===t.ref)if(xt=!1,t.pendingProps=n=o,Fg(e,r))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,Jr(e,t,r)}return Fh(e,t,a,n,r)}function E0(e,t,a,n){var r=n.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~o}else n=0,t.child=null;return dk(e,t,o,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&id(t,o!==null?o.cachePool:null),o!==null?QI(t,o):Rh(),H_(t);else return n=t.lanes=536870912,dk(e,t,o!==null?o.baseLanes|a:a,a,n)}else o!==null?(id(t,o.cachePool),QI(t,o),In(t),t.memoizedState=null):(e!==null&&id(t,null),Rh(),In(t));return Ot(e,t,r,a),t.child}function bs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dk(e,t,a,n,r){var o=kg();return o=o===null?null:{parent:yt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&id(t,null),Rh(),H_(t),e!==null&&hl(e,t,n,!0),t.childLanes=r,null}function ud(e,t){return t=Md({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fk(e,t,a){return Ao(t,e.child,null,a),e=ud(t,t.pendingProps),e.flags|=2,ga(t),t.memoizedState=null,e}function _R(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(n.mode==="hidden")return e=ud(t,n),t.lanes=536870912,bs(null,e);if($h(t),(e=Xe)?(e=wC(e,Na),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Un!==null?{id:fr,overflow:pr}:null,retryLane:536870912,hydrationErrors:null},a=R_(e),a.return=t,t.child=a,Dt=t,Xe=null)):e=null,e===null)throw jn(t);return t.lanes=536870912,null}return ud(t,n)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if($h(t),r)if(t.flags&256)t.flags&=-257,t=fk(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(O(558));else if(xt||hl(e,t,a,!1),r=(a&e.childLanes)!==0,xt||r){if(n=qe,n!==null&&(i=l_(n,a),i!==0&&i!==o.retryLane))throw o.retryLane=i,Ro(e,i),ra(n,e,i),Bg;Rd(),t=fk(e,t,a)}else e=o.treeContext,Xe=ja(i.nextSibling),Dt=t,ke=!0,Mn=null,Na=!1,e!==null&&P_(t,e),t=ud(t,n),t.flags|=4096;return t}return e=qr(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cd(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(O(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Fh(e,t,a,n,r){return To(t),a=Ag(e,t,a,n,void 0,r),n=Eg(),e!==null&&!xt?(Mg(e,t,r),Jr(e,t,r)):(ke&&n&&Sg(t),t.flags|=1,Ot(e,t,a,r),t.child)}function pk(e,t,a,n,r,o){return To(t),t.updateQueue=null,a=G_(t,n,a,r),V_(e),n=Eg(),e!==null&&!xt?(Mg(e,t,o),Jr(e,t,o)):(ke&&n&&Sg(t),t.flags|=1,Ot(e,t,a,o),t.child)}function mk(e,t,a,n,r){if(To(t),t.stateNode===null){var o=Hi,i=a.contextType;typeof i=="object"&&i!==null&&(o=Rt(i)),o=new a(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=jh,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},Cg(t),i=a.contextType,o.context=typeof i=="object"&&i!==null?Rt(i):Hi,o.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Wm(t,a,i,n),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(i=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),i!==o.state&&jh.enqueueReplaceState(o,o.state,null),Ts(t,n,o,r),Ls(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,s=Mo(a,l);o.props=s;var u=o.context,c=a.contextType;i=Hi,typeof c=="object"&&c!==null&&(i=Rt(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==i)&&lk(t,o,n,i),bn=!1;var p=t.memoizedState;o.state=p,Ts(t,n,o,r),Ls(),u=t.memoizedState,l||p!==u||bn?(typeof d=="function"&&(Wm(t,a,d,n),u=t.memoizedState),(s=bn||ik(t,a,s,n,p,u,i))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=i,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,zh(e,t),i=t.memoizedProps,c=Mo(a,i),o.props=c,d=t.pendingProps,p=o.context,u=a.contextType,s=Hi,typeof u=="object"&&u!==null&&(s=Rt(u)),l=a.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==d||p!==s)&&lk(t,o,n,s),bn=!1,p=t.memoizedState,o.state=p,Ts(t,n,o,r),Ls();var f=t.memoizedState;i!==d||p!==f||bn||e!==null&&e.dependencies!==null&&kd(e.dependencies)?(typeof l=="function"&&(Wm(t,a,l,n),f=t.memoizedState),(c=bn||ik(t,a,c,n,p,f,s)||e!==null&&e.dependencies!==null&&kd(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,f,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,f,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),o.props=n,o.state=f,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return o=n,cd(e,t),n=(t.flags&128)!==0,o||n?(o=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&n?(t.child=Ao(t,e.child,null,r),t.child=Ao(t,null,a,r)):Ot(e,t,a,r),t.memoizedState=o.state,e=t.child):e=Jr(e,t,r),e}function hk(e,t,a,n){return Lo(),t.flags|=256,Ot(e,t,a,n),t.child}var Jm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xm(e){return{baseLanes:e,cachePool:U_()}}function Km(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ya),e}function M0(e,t,a){var n=t.pendingProps,r=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(r?wn(t):In(t),(e=Xe)?(e=wC(e,Na),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Un!==null?{id:fr,overflow:pr}:null,retryLane:536870912,hydrationErrors:null},a=R_(e),a.return=t,t.child=a,Dt=t,Xe=null)):e=null,e===null)throw jn(t);return ag(e)?t.lanes=32:t.lanes=536870912,null}var l=n.children;return n=n.fallback,r?(In(t),r=t.mode,l=Md({mode:"hidden",children:l},r),n=Io(n,r,a,null),l.return=t,n.return=t,l.sibling=n,t.child=l,n=t.child,n.memoizedState=Xm(a),n.childLanes=Km(e,i,a),t.memoizedState=Jm,bs(null,n)):(wn(t),qh(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(o)t.flags&256?(wn(t),t.flags&=-257,t=Ym(e,t,a)):t.memoizedState!==null?(In(t),t.child=e.child,t.flags|=128,t=null):(In(t),l=n.fallback,r=t.mode,n=Md({mode:"visible",children:n.children},r),l=Io(l,r,a,null),l.flags|=2,n.return=t,l.return=t,n.sibling=l,t.child=n,Ao(t,e.child,null,a),n=t.child,n.memoizedState=Xm(a),n.childLanes=Km(e,i,a),t.memoizedState=Jm,t=bs(null,n));else if(wn(t),ag(l)){if(i=l.nextSibling&&l.nextSibling.dataset,i)var u=i.dgst;i=u,n=Error(O(419)),n.stack="",n.digest=i,js({value:n,source:null,stack:null}),t=Ym(e,t,a)}else if(xt||hl(e,t,a,!1),i=(a&e.childLanes)!==0,xt||i){if(i=qe,i!==null&&(n=l_(i,a),n!==0&&n!==s.retryLane))throw s.retryLane=n,Ro(e,n),ra(i,e,n),Bg;tg(l)||Rd(),t=Ym(e,t,a)}else tg(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Xe=ja(l.nextSibling),Dt=t,ke=!0,Mn=null,Na=!1,e!==null&&P_(t,e),t=qh(t,n.children),t.flags|=4096);return t}return r?(In(t),l=n.fallback,r=t.mode,s=e.child,u=s.sibling,n=qr(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=qr(u,l):(l=Io(l,r,a,null),l.flags|=2),l.return=t,n.return=t,n.sibling=l,t.child=n,bs(null,n),n=t.child,l=e.child.memoizedState,l===null?l=Xm(a):(r=l.cachePool,r!==null?(s=yt._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=U_(),l={baseLanes:l.baseLanes|a,cachePool:r}),n.memoizedState=l,n.childLanes=Km(e,i,a),t.memoizedState=Jm,bs(e.child,n)):(wn(t),a=e.child,e=a.sibling,a=qr(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a)}function qh(e,t){return t=Md({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Md(e,t){return e=va(22,e,null,t),e.lanes=0,e}function Ym(e,t,a){return Ao(t,e.child,null,a),e=qh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gk(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Eh(e.return,t,a)}function Qm(e,t,a,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=a,i.tailMode=r,i.treeForkCount=o)}function O0(e,t,a){var n=t.pendingProps,r=n.revealOrder,o=n.tail;n=n.children;var i=ft.current,l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,He(ft,i),Ot(e,t,n,a),n=ke?Us:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gk(e,a,t);else if(e.tag===19)gk(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Ld(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Qm(t,!1,r,a,o,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Ld(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Qm(t,!0,a,null,o,n);break;case"together":Qm(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Jr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(hl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,a=qr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=qr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Fg(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&kd(e)))}function CR(e,t,a){switch(t.tag){case 3:vd(t,t.stateNode.containerInfo),Sn(t,yt,e.memoizedState.cache),Lo();break;case 27:case 5:vh(t);break;case 4:vd(t,t.stateNode.containerInfo);break;case 10:Sn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$h(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(wn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?M0(e,t,a):(wn(t),e=Jr(e,t,a),e!==null?e.sibling:null);wn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(hl(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return O0(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),He(ft,ft.current),n)break;return null;case 22:return t.lanes=0,E0(e,t,a,t.pendingProps);case 24:Sn(t,yt,e.memoizedState.cache)}return Jr(e,t,a)}function z0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!Fg(e,a)&&(t.flags&128)===0)return xt=!1,CR(e,t,a);xt=(e.flags&131072)!==0}else xt=!1,ke&&(t.flags&1048576)!==0&&$_(t,Us,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=bo(t.elementType),t.type=e,typeof e=="function")bg(e)?(n=Mo(e,n),t.tag=1,t=mk(null,t,e,n,a)):(t.tag=0,t=Fh(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===ig){t.tag=11,t=uk(null,t,e,n,a);break e}else if(r===lg){t.tag=14,t=ck(null,t,e,n,a);break e}}throw t=hh(e)||e,Error(O(306,t,""))}}return t;case 0:return Fh(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=Mo(n,t.pendingProps),mk(e,t,n,r,a);case 3:e:{if(vd(t,t.stateNode.containerInfo),e===null)throw Error(O(387));n=t.pendingProps;var o=t.memoizedState;r=o.element,zh(e,t),Ts(t,n,null,a);var i=t.memoizedState;if(n=i.cache,Sn(t,yt,n),n!==o.cache&&Mh(t,[yt],a,!0),Ls(),n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=hk(e,t,n,a);break e}else if(n!==r){r=Pa(Error(O(424)),t),js(r),t=hk(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Xe=ja(e.firstChild),Dt=t,ke=!0,Mn=null,Na=!0,a=F_(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Lo(),n===r){t=Jr(e,t,a);break e}Ot(e,t,n,a)}t=t.child}return t;case 26:return cd(e,t),e===null?(a=Nk(t.type,null,t.pendingProps,null))?t.memoizedState=a:ke||(a=t.type,e=t.pendingProps,n=Ud(En.current).createElement(a),n[zt]=t,n[na]=e,$t(n,a,e),Lt(n),t.stateNode=n):t.memoizedState=Nk(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return vh(t),e===null&&ke&&(n=t.stateNode=IC(t.type,t.pendingProps,En.current),Dt=t,Na=!0,r=Xe,Zn(t.type)?(rg=r,Xe=ja(n.firstChild)):Xe=r),Ot(e,t,t.pendingProps.children,a),cd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((r=n=Xe)&&(n=e$(n,t.type,t.pendingProps,Na),n!==null?(t.stateNode=n,Dt=t,Xe=ja(n.firstChild),Na=!1,r=!0):r=!1),r||jn(t)),vh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,n=o.children,Qh(r,o)?n=null:i!==null&&Qh(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=Ag(e,t,vR,null,null,a),Vs._currentValue=r),cd(e,t),Ot(e,t,n,a),t.child;case 6:return e===null&&ke&&((e=a=Xe)&&(a=t$(a,t.pendingProps,Na),a!==null?(t.stateNode=a,Dt=t,Xe=null,e=!0):e=!1),e||jn(t)),null;case 13:return M0(e,t,a);case 4:return vd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ao(t,null,n,a):Ot(e,t,n,a),t.child;case 11:return uk(e,t,t.type,t.pendingProps,a);case 7:return Ot(e,t,t.pendingProps,a),t.child;case 8:return Ot(e,t,t.pendingProps.children,a),t.child;case 12:return Ot(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Sn(t,t.type,n.value),Ot(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,To(t),r=Rt(r),n=n(r),t.flags|=1,Ot(e,t,n,a),t.child;case 14:return ck(e,t,t.type,t.pendingProps,a);case 15:return A0(e,t,t.type,t.pendingProps,a);case 19:return O0(e,t,a);case 31:return _R(e,t,a);case 22:return E0(e,t,a,t.pendingProps);case 24:return To(t),n=Rt(yt),e===null?(r=kg(),r===null&&(r=qe,o=Ig(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:n,cache:r},Cg(t),Sn(t,yt,r)):((e.lanes&a)!==0&&(zh(e,t),Ts(t,null,null,a),Ls()),r=e.memoizedState,o=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Sn(t,yt,n)):(n=o.cache,Sn(t,yt,n),n!==r.cache&&Mh(t,[yt],a,!0))),Ot(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(O(156,t.tag))}function Dr(e){e.flags|=4}function eh(e,t,a,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(rC())e.flags|=8192;else throw _o=_d,_g}else e.flags&=-16777217}function vk(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!CC(t))if(rC())e.flags|=8192;else throw _o=_d,_g}function Wc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?n_():536870912,e.lanes|=t,sl|=t)}function ps(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function LR(e,t,a){var n=t.pendingProps;switch(wg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zr(yt),al(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(zi(t)?Dr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hm())),Je(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(Dr(t),o!==null?(Je(t),vk(t,o)):(Je(t),eh(t,r,null,n,a))):o?o!==e.memoizedState?(Dr(t),Je(t),vk(t,o)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Dr(t),Je(t),eh(t,r,e,n,a)),null;case 27:if(yd(t),a=En.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Dr(t);else{if(!n){if(t.stateNode===null)throw Error(O(166));return Je(t),null}e=hr.current,zi(t)?VI(t,e):(e=IC(r,n,a),t.stateNode=e,Dr(t))}return Je(t),null;case 5:if(yd(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Dr(t);else{if(!n){if(t.stateNode===null)throw Error(O(166));return Je(t),null}if(o=hr.current,zi(t))VI(t,o);else{var i=Ud(En.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=i.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r)}}o[zt]=t,o[na]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)o.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch($t(o,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Dr(t)}}return Je(t),eh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Dr(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(O(166));if(e=En.current,zi(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=Dt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[zt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||xC(e.nodeValue,a)),e||jn(t,!0)}else e=Ud(e).createTextNode(n),e[zt]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=zi(t),a!==null){if(e===null){if(!n)throw Error(O(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(557));e[zt]=t}else Lo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=Hm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ga(t),t):(ga(t),null);if((t.flags&128)!==0)throw Error(O(558))}return Je(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=zi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(O(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(O(317));r[zt]=t}else Lo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),r=!1}else r=Hm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ga(t),t):(ga(t),null)}return ga(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Wc(t,t.updateQueue),Je(t),null);case 4:return al(),e===null&&Jg(t.stateNode.containerInfo),Je(t),null;case 10:return Zr(t.type),Je(t),null;case 19:if(Tt(ft),n=t.memoizedState,n===null)return Je(t),null;if(r=(t.flags&128)!==0,o=n.rendering,o===null)if(r)ps(n,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Ld(e),o!==null){for(t.flags|=128,ps(n,!1),e=o.updateQueue,t.updateQueue=e,Wc(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)D_(a,e),a=a.sibling;return He(ft,ft.current&1|2),ke&&Nr(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&xa()>zd&&(t.flags|=128,r=!0,ps(n,!1),t.lanes=4194304)}else{if(!r)if(e=Ld(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Wc(t,e),ps(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!ke)return Je(t),null}else 2*xa()-n.renderingStartTime>zd&&a!==536870912&&(t.flags|=128,r=!0,ps(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=xa(),e.sibling=null,a=ft.current,He(ft,r?a&1|2:a&1),ke&&Nr(t,n.treeForkCount),e):(Je(t),null);case 22:case 23:return ga(t),Lg(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&Wc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Tt(ko),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zr(yt),Je(t),null;case 25:return null;case 30:return null}throw Error(O(156,t.tag))}function TR(e,t){switch(wg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(yt),al(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yd(t),null;case 31:if(t.memoizedState!==null){if(ga(t),t.alternate===null)throw Error(O(340));Lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ga(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(ft),null;case 4:return al(),null;case 10:return Zr(t.type),null;case 22:case 23:return ga(t),Lg(),e!==null&&Tt(ko),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zr(yt),null;case 25:return null;default:return null}}function D0(e,t){switch(wg(t),t.tag){case 3:Zr(yt),al();break;case 26:case 27:case 5:yd(t);break;case 4:al();break;case 31:t.memoizedState!==null&&ga(t);break;case 13:ga(t);break;case 19:Tt(ft);break;case 10:Zr(t.type);break;case 22:case 23:ga(t),Lg(),e!==null&&Tt(ko);break;case 24:Zr(yt)}}function ru(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var o=a.create,i=a.inst;n=o(),i.destroy=n}a=a.next}while(a!==r)}}catch(l){Re(t,t.return,l)}}function Bn(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var o=r.next;n=o;do{if((n.tag&e)===e){var i=n.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,r=t;var s=a,u=l;try{u()}catch(c){Re(r,s,c)}}}n=n.next}while(n!==o)}}catch(c){Re(t,t.return,c)}}function R0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Z_(t,a)}catch(n){Re(e,e.return,n)}}}function $0(e,t,a){a.props=Mo(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Re(e,t,n)}}function Es(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(r){Re(e,t,r)}}function mr(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Re(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Re(e,t,r)}else a.current=null}function P0(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Re(e,e.return,r)}}function th(e,t,a){try{var n=e.stateNode;WR(n,e.type,a,t),n[na]=t}catch(r){Re(e,e.return,r)}}function N0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zn(e.type)||e.tag===4}function ah(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||N0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zh(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Br));else if(n!==4&&(n===27&&Zn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Zh(e,t,a),e=e.sibling;e!==null;)Zh(e,t,a),e=e.sibling}function Od(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Zn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Od(e,t,a),e=e.sibling;e!==null;)Od(e,t,a),e=e.sibling}function U0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);$t(t,n,a),t[zt]=e,t[na]=a}catch(o){Re(e,e.return,o)}}var Ur=!1,vt=!1,rh=!1,yk=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function AR(e,t){if(e=e.containerInfo,Kh=qd,e=C_(e),vg(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var i=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==a||r!==0&&d.nodeType!==3||(l=i+r),d!==o||n!==0&&d.nodeType!==3||(s=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===a&&++u===r&&(l=i),p===o&&++c===n&&(s=i),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}a=l===-1||s===-1?null:{start:l,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(Yh={focusedElem:e,selectionRange:a},qd=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,a=t,r=o.memoizedProps,o=o.memoizedState,n=a.stateNode;try{var m=Mo(a.type,r);e=n.getSnapshotBeforeUpdate(m,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(x){Re(a,a.return,x)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)eg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eg(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(O(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}}function j0(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:$r(e,a),n&4&&ru(5,a);break;case 1:if($r(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Re(a,a.return,i)}else{var r=Mo(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Re(a,a.return,i)}}n&64&&R0(a),n&512&&Es(a,a.return);break;case 3:if($r(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Z_(e,t)}catch(i){Re(a,a.return,i)}}break;case 27:t===null&&n&4&&U0(a);case 26:case 5:$r(e,a),t===null&&n&4&&P0(a),n&512&&Es(a,a.return);break;case 12:$r(e,a);break;case 31:$r(e,a),n&4&&q0(e,a);break;case 13:$r(e,a),n&4&&Z0(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=NR.bind(null,a),a$(e,a))));break;case 22:if(n=a.memoizedState!==null||Ur,!n){t=t!==null&&t.memoizedState!==null||vt,r=Ur;var o=vt;Ur=n,(vt=t)&&!o?Pr(e,a,(a.subtreeFlags&8772)!==0):$r(e,a),Ur=r,vt=o}break;case 30:break;default:$r(e,a)}}function B0(e){var t=e.alternate;t!==null&&(e.alternate=null,B0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,ta=!1;function Rr(e,t,a){for(a=a.child;a!==null;)F0(e,t,a),a=a.sibling}function F0(e,t,a){if(ba&&typeof ba.onCommitFiberUnmount=="function")try{ba.onCommitFiberUnmount(Xs,a)}catch{}switch(a.tag){case 26:vt||mr(a,t),Rr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:vt||mr(a,t);var n=tt,r=ta;Zn(a.type)&&(tt=a.stateNode,ta=!1),Rr(e,t,a),Ds(a.stateNode),tt=n,ta=r;break;case 5:vt||mr(a,t);case 6:if(n=tt,r=ta,tt=null,Rr(e,t,a),tt=n,ta=r,tt!==null)if(ta)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(a.stateNode)}catch(o){Re(a,t,o)}else try{tt.removeChild(a.stateNode)}catch(o){Re(a,t,o)}break;case 18:tt!==null&&(ta?(e=tt,zk(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),fl(e)):zk(tt,a.stateNode));break;case 4:n=tt,r=ta,tt=a.stateNode.containerInfo,ta=!0,Rr(e,t,a),tt=n,ta=r;break;case 0:case 11:case 14:case 15:Bn(2,a,t),vt||Bn(4,a,t),Rr(e,t,a);break;case 1:vt||(mr(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&$0(a,t,n)),Rr(e,t,a);break;case 21:Rr(e,t,a);break;case 22:vt=(n=vt)||a.memoizedState!==null,Rr(e,t,a),vt=n;break;default:Rr(e,t,a)}}function q0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fl(e)}catch(a){Re(t,t.return,a)}}}function Z0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fl(e)}catch(a){Re(t,t.return,a)}}function ER(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yk),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yk),t;default:throw Error(O(435,e.tag))}}function Jc(e,t){var a=ER(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=UR.bind(null,e,n);n.then(r,r)}})}function Qt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n],o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Zn(l.type)){tt=l.stateNode,ta=!1;break e}break;case 5:tt=l.stateNode,ta=!1;break e;case 3:case 4:tt=l.stateNode.containerInfo,ta=!0;break e}l=l.return}if(tt===null)throw Error(O(160));F0(o,i,r),tt=null,ta=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)H0(t,e),t=t.sibling}var tr=null;function H0(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Qt(t,e),ea(e),n&4&&(Bn(3,e,e.return),ru(3,e),Bn(5,e,e.return));break;case 1:Qt(t,e),ea(e),n&512&&(vt||a===null||mr(a,a.return)),n&64&&Ur&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var r=tr;if(Qt(t,e),ea(e),n&512&&(vt||a===null||mr(a,a.return)),n&4){var o=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Qs]||o[zt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(n),r.head.insertBefore(o,r.querySelector("head > title"))),$t(o,n,a),o[zt]=e,Lt(o),n=o;break e;case"link":var i=jk("link","href",r).get(n+(a.href||""));if(i){for(var l=0;l<i.length;l++)if(o=i[l],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(l,1);break t}}o=r.createElement(n),$t(o,n,a),r.head.appendChild(o);break;case"meta":if(i=jk("meta","content",r).get(n+(a.content||""))){for(l=0;l<i.length;l++)if(o=i[l],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(l,1);break t}}o=r.createElement(n),$t(o,n,a),r.head.appendChild(o);break;default:throw Error(O(468,n))}o[zt]=e,Lt(o),n=o}e.stateNode=n}else Bk(r,e.type,e.stateNode);else e.stateNode=Uk(r,n,e.memoizedProps);else o!==n?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,n===null?Bk(r,e.type,e.stateNode):Uk(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&th(e,e.memoizedProps,a.memoizedProps)}break;case 27:Qt(t,e),ea(e),n&512&&(vt||a===null||mr(a,a.return)),a!==null&&n&4&&th(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Qt(t,e),ea(e),n&512&&(vt||a===null||mr(a,a.return)),e.flags&32){r=e.stateNode;try{nl(r,"")}catch(m){Re(e,e.return,m)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,th(e,r,a!==null?a.memoizedProps:r)),n&1024&&(rh=!0);break;case 6:if(Qt(t,e),ea(e),n&4){if(e.stateNode===null)throw Error(O(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(m){Re(e,e.return,m)}}break;case 3:if(pd=null,r=tr,tr=jd(t.containerInfo),Qt(t,e),tr=r,ea(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{fl(t.containerInfo)}catch(m){Re(e,e.return,m)}rh&&(rh=!1,V0(e));break;case 4:n=tr,tr=jd(e.stateNode.containerInfo),Qt(t,e),ea(e),tr=n;break;case 12:Qt(t,e),ea(e);break;case 31:Qt(t,e),ea(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Jc(e,n)));break;case 13:Qt(t,e),ea(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(af=xa()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Jc(e,n)));break;case 22:r=e.memoizedState!==null;var s=a!==null&&a.memoizedState!==null,u=Ur,c=vt;if(Ur=u||r,vt=c||s,Qt(t,e),vt=c,Ur=u,ea(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||s||Ur||vt||So(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){s=a=t;try{if(o=s.stateNode,r)i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{l=s.stateNode;var d=s.memoizedProps.style,p=d!=null&&d.hasOwnProperty("display")?d.display:null;l.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(m){Re(s,s.return,m)}}}else if(t.tag===6){if(a===null){s=t;try{s.stateNode.nodeValue=r?"":s.memoizedProps}catch(m){Re(s,s.return,m)}}}else if(t.tag===18){if(a===null){s=t;try{var f=s.stateNode;r?Dk(f,!0):Dk(s.stateNode,!1)}catch(m){Re(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Jc(e,a))));break;case 19:Qt(t,e),ea(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Jc(e,n)));break;case 30:break;case 21:break;default:Qt(t,e),ea(e)}}function ea(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(N0(n)){a=n;break}n=n.return}if(a==null)throw Error(O(160));switch(a.tag){case 27:var r=a.stateNode,o=ah(e);Od(e,o,r);break;case 5:var i=a.stateNode;a.flags&32&&(nl(i,""),a.flags&=-33);var l=ah(e);Od(e,l,i);break;case 3:case 4:var s=a.stateNode.containerInfo,u=ah(e);Zh(e,u,s);break;default:throw Error(O(161))}}catch(c){Re(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function V0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;V0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $r(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)j0(e,t.alternate,t),t=t.sibling}function So(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bn(4,t,t.return),So(t);break;case 1:mr(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&$0(t,t.return,a),So(t);break;case 27:Ds(t.stateNode);case 26:case 5:mr(t,t.return),So(t);break;case 22:t.memoizedState===null&&So(t);break;case 30:So(t);break;default:So(t)}e=e.sibling}}function Pr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:Pr(r,o,a),ru(4,o);break;case 1:if(Pr(r,o,a),n=o,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Re(n,n.return,u)}if(n=o,r=n.updateQueue,r!==null){var l=n.stateNode;try{var s=r.shared.hiddenCallbacks;if(s!==null)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)q_(s[r],l)}catch(u){Re(n,n.return,u)}}a&&i&64&&R0(o),Es(o,o.return);break;case 27:U0(o);case 26:case 5:Pr(r,o,a),a&&n===null&&i&4&&P0(o),Es(o,o.return);break;case 12:Pr(r,o,a);break;case 31:Pr(r,o,a),a&&i&4&&q0(r,o);break;case 13:Pr(r,o,a),a&&i&4&&Z0(r,o);break;case 22:o.memoizedState===null&&Pr(r,o,a),Es(o,o.return);break;case 30:break;default:Pr(r,o,a)}t=t.sibling}}function qg(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&tu(a))}function Zg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tu(e))}function er(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)G0(e,t,a,n),t=t.sibling}function G0(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:er(e,t,a,n),r&2048&&ru(9,t);break;case 1:er(e,t,a,n);break;case 3:er(e,t,a,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tu(e)));break;case 12:if(r&2048){er(e,t,a,n),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Re(t,t.return,s)}}else er(e,t,a,n);break;case 31:er(e,t,a,n);break;case 13:er(e,t,a,n);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,t.memoizedState!==null?o._visibility&2?er(e,t,a,n):Ms(e,t):o._visibility&2?er(e,t,a,n):(o._visibility|=2,Ri(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&qg(i,t);break;case 24:er(e,t,a,n),r&2048&&Zg(t.alternate,t);break;default:er(e,t,a,n)}}function Ri(e,t,a,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,i=t,l=a,s=n,u=i.flags;switch(i.tag){case 0:case 11:case 15:Ri(o,i,l,s,r),ru(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?Ri(o,i,l,s,r):Ms(o,i):(c._visibility|=2,Ri(o,i,l,s,r)),r&&u&2048&&qg(i.alternate,i);break;case 24:Ri(o,i,l,s,r),r&&u&2048&&Zg(i.alternate,i);break;default:Ri(o,i,l,s,r)}t=t.sibling}}function Ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,r=n.flags;switch(n.tag){case 22:Ms(a,n),r&2048&&qg(n.alternate,n);break;case 24:Ms(a,n),r&2048&&Zg(n.alternate,n);break;default:Ms(a,n)}t=t.sibling}}var Ss=8192;function Di(e,t,a){if(e.subtreeFlags&Ss)for(e=e.child;e!==null;)W0(e,t,a),e=e.sibling}function W0(e,t,a){switch(e.tag){case 26:Di(e,t,a),e.flags&Ss&&e.memoizedState!==null&&m$(a,tr,e.memoizedState,e.memoizedProps);break;case 5:Di(e,t,a);break;case 3:case 4:var n=tr;tr=jd(e.stateNode.containerInfo),Di(e,t,a),tr=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ss,Ss=16777216,Di(e,t,a),Ss=n):Di(e,t,a));break;default:Di(e,t,a)}}function J0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Ct=n,K0(n,e)}J0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)X0(e),e=e.sibling}function X0(e){switch(e.tag){case 0:case 11:case 15:ms(e),e.flags&2048&&Bn(9,e,e.return);break;case 3:ms(e);break;case 12:ms(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,dd(e)):ms(e);break;default:ms(e)}}function dd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Ct=n,K0(n,e)}J0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bn(8,t,t.return),dd(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,dd(t));break;default:dd(t)}e=e.sibling}}function K0(e,t){for(;Ct!==null;){var a=Ct;switch(a.tag){case 0:case 11:case 15:Bn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:tu(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Ct=n;else e:for(a=e;Ct!==null;){n=Ct;var r=n.sibling,o=n.return;if(B0(n),n===a){Ct=null;break e}if(r!==null){r.return=o,Ct=r;break e}Ct=o}}}var MR={getCacheForType:function(e){var t=Rt(yt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Rt(yt).controller.signal}},OR=typeof WeakMap=="function"?WeakMap:Map,Ee=0,qe=null,ye=null,Se=0,De=0,ha=null,Ln=!1,vl=!1,Hg=!1,Xr=0,st=0,Fn=0,Co=0,Vg=0,ya=0,sl=0,Os=null,aa=null,Hh=!1,af=0,Y0=0,zd=1/0,Dd=null,Dn=null,wt=0,Rn=null,ul=null,Hr=0,Vh=0,Gh=null,Q0=null,zs=0,Wh=null;function wa(){return(Ee&2)!==0&&Se!==0?Se&-Se:re.T!==null?Wg():s_()}function eC(){if(ya===0)if((Se&536870912)===0||ke){var e=Uc;Uc<<=1,(Uc&3932160)===0&&(Uc=262144),ya=e}else ya=536870912;return e=ka.current,e!==null&&(e.flags|=32),ya}function ra(e,t,a){(e===qe&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(cl(e,0),Tn(e,Se,ya,!1)),Ys(e,a),((Ee&2)===0||e!==qe)&&(e===qe&&((Ee&2)===0&&(Co|=a),st===4&&Tn(e,Se,ya,!1)),vr(e))}function tC(e,t,a){if((Ee&6)!==0)throw Error(O(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ks(e,t),r=n?RR(e,t):nh(e,t,!0),o=n;do{if(r===0){vl&&!n&&Tn(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!zR(a)){r=nh(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;r=Os;var s=l.current.memoizedState.isDehydrated;if(s&&(cl(l,i).flags|=256),i=nh(l,i,!1),i!==2){if(Hg&&!s){l.errorRecoveryDisabledLanes|=o,Co|=o,r=4;break e}o=aa,aa=r,o!==null&&(aa===null?aa=o:aa.push.apply(aa,o))}r=i}if(o=!1,r!==2)continue}}if(r===1){cl(e,0),Tn(e,t,0,!0);break}e:{switch(n=e,o=r,o){case 0:case 1:throw Error(O(345));case 4:if((t&4194048)!==t)break;case 6:Tn(n,t,ya,!Ln);break e;case 2:aa=null;break;case 3:case 5:break;default:throw Error(O(329))}if((t&62914560)===t&&(r=af+300-xa(),10<r)){if(Tn(n,t,ya,!Ln),Hd(n,0,!0)!==0)break e;Hr=t,n.timeoutHandle=SC(xk.bind(null,n,a,aa,Dd,Hh,t,ya,Co,sl,Ln,o,"Throttled",-0,0),r);break e}xk(n,a,aa,Dd,Hh,t,ya,Co,sl,Ln,o,null,-0,0)}}break}while(!0);vr(e)}function xk(e,t,a,n,r,o,i,l,s,u,c,d,p,f){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Br},W0(t,o,d);var m=(o&62914560)===o?af-xa():(o&4194048)===o?Y0-xa():0;if(m=h$(d,m),m!==null){Hr=o,e.cancelPendingCommit=m(Sk.bind(null,e,t,o,a,n,r,i,l,s,c,d,null,p,f)),Tn(e,o,i,!u);return}}Sk(e,t,o,a,n,r,i,l,s)}function zR(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],o=r.getSnapshot;r=r.value;try{if(!Ia(o(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Tn(e,t,a,n){t&=~Vg,t&=~Co,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var o=31-Sa(r),i=1<<o;n[o]=-1,r&=~i}a!==0&&o_(e,a,t)}function rf(){return(Ee&6)===0?(nu(0,!1),!1):!0}function Gg(){if(ye!==null){if(De===0)var e=ye.return;else e=ye,Fr=$o=null,Og(e),Qi=null,Bs=0,e=ye;for(;e!==null;)D0(e.alternate,e),e=e.return;ye=null}}function cl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,KR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Hr=0,Gg(),qe=e,ye=a=qr(e.current,null),Se=t,De=0,ha=null,Ln=!1,vl=Ks(e,t),Hg=!1,sl=ya=Vg=Co=Fn=st=0,aa=Os=null,Hh=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Sa(n),o=1<<r;t|=e[r],n&=~o}return Xr=t,Jd(),a}function aC(e,t){ce=null,re.H=qs,t===gl||t===Kd?(t=KI(),De=3):t===_g?(t=KI(),De=4):De=t===Bg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ha=t,ye===null&&(st=1,Ed(e,Pa(t,e.current)))}function rC(){var e=ka.current;return e===null?!0:(Se&4194048)===Se?Ua===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Ua:!1}function nC(){var e=re.H;return re.H=qs,e===null?qs:e}function oC(){var e=re.A;return re.A=MR,e}function Rd(){st=4,Ln||(Se&4194048)!==Se&&ka.current!==null||(vl=!0),(Fn&134217727)===0&&(Co&134217727)===0||qe===null||Tn(qe,Se,ya,!1)}function nh(e,t,a){var n=Ee;Ee|=2;var r=nC(),o=oC();(qe!==e||Se!==t)&&(Dd=null,cl(e,t)),t=!1;var i=st;e:do try{if(De!==0&&ye!==null){var l=ye,s=ha;switch(De){case 8:Gg(),i=6;break e;case 3:case 2:case 9:case 6:ka.current===null&&(t=!0);var u=De;if(De=0,ha=null,Wi(e,l,s,u),a&&vl){i=0;break e}break;default:u=De,De=0,ha=null,Wi(e,l,s,u)}}DR(),i=st;break}catch(c){aC(e,c)}while(!0);return t&&e.shellSuspendCounter++,Fr=$o=null,Ee=n,re.H=r,re.A=o,ye===null&&(qe=null,Se=0,Jd()),i}function DR(){for(;ye!==null;)iC(ye)}function RR(e,t){var a=Ee;Ee|=2;var n=nC(),r=oC();qe!==e||Se!==t?(Dd=null,zd=xa()+500,cl(e,t)):vl=Ks(e,t);e:do try{if(De!==0&&ye!==null){t=ye;var o=ha;t:switch(De){case 1:De=0,ha=null,Wi(e,t,o,1);break;case 2:case 9:if(XI(o)){De=0,ha=null,bk(t);break}t=function(){De!==2&&De!==9||qe!==e||(De=7),vr(e)},o.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:XI(o)?(De=0,ha=null,bk(t)):(De=0,ha=null,Wi(e,t,o,7));break;case 5:var i=null;switch(ye.tag){case 26:i=ye.memoizedState;case 5:case 27:var l=ye;if(i?CC(i):l.stateNode.complete){De=0,ha=null;var s=l.sibling;if(s!==null)ye=s;else{var u=l.return;u!==null?(ye=u,nf(u)):ye=null}break t}}De=0,ha=null,Wi(e,t,o,5);break;case 6:De=0,ha=null,Wi(e,t,o,6);break;case 8:Gg(),st=6;break e;default:throw Error(O(462))}}$R();break}catch(c){aC(e,c)}while(!0);return Fr=$o=null,re.H=n,re.A=r,Ee=a,ye!==null?0:(qe=null,Se=0,Jd(),st)}function $R(){for(;ye!==null&&!oD();)iC(ye)}function iC(e){var t=z0(e.alternate,e,Xr);e.memoizedProps=e.pendingProps,t===null?nf(e):ye=t}function bk(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pk(a,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=pk(a,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Og(t);default:D0(a,t),t=ye=D_(t,Xr),t=z0(a,t,Xr)}e.memoizedProps=e.pendingProps,t===null?nf(e):ye=t}function Wi(e,t,a,n){Fr=$o=null,Og(t),Qi=null,Bs=0;var r=t.return;try{if(kR(e,r,t,a,Se)){st=1,Ed(e,Pa(a,e.current)),ye=null;return}}catch(o){if(r!==null)throw ye=r,o;st=1,Ed(e,Pa(a,e.current)),ye=null;return}t.flags&32768?(ke||n===1?e=!0:vl||(Se&536870912)!==0?e=!1:(Ln=e=!0,(n===2||n===9||n===3||n===6)&&(n=ka.current,n!==null&&n.tag===13&&(n.flags|=16384))),lC(t,e)):nf(t)}function nf(e){var t=e;do{if((t.flags&32768)!==0){lC(t,Ln);return}e=t.return;var a=LR(t.alternate,t,Xr);if(a!==null){ye=a;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);st===0&&(st=5)}function lC(e,t){do{var a=TR(e.alternate,e);if(a!==null){a.flags&=32767,ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=a}while(e!==null);st=6,ye=null}function Sk(e,t,a,n,r,o,i,l,s){e.cancelPendingCommit=null;do of();while(wt!==0);if((Ee&6)!==0)throw Error(O(327));if(t!==null){if(t===e.current)throw Error(O(177));if(o=t.lanes|t.childLanes,o|=yg,hD(e,a,o,i,l,s),e===qe&&(ye=qe=null,Se=0),ul=t,Rn=e,Hr=a,Vh=o,Gh=r,Q0=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,jR(xd,function(){return fC(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=re.T,re.T=null,r=Me.p,Me.p=2,i=Ee,Ee|=4;try{AR(e,t,a)}finally{Ee=i,Me.p=r,re.T=n}}wt=1,sC(),uC(),cC()}}function sC(){if(wt===1){wt=0;var e=Rn,t=ul,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=re.T,re.T=null;var n=Me.p;Me.p=2;var r=Ee;Ee|=4;try{H0(t,e);var o=Yh,i=C_(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&__(l.ownerDocument.documentElement,l)){if(s!==null&&vg(l)){var u=s.start,c=s.end;if(c===void 0&&(c=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(c,l.value.length);else{var d=l.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),m=l.textContent.length,x=Math.min(s.start,m),b=s.end===void 0?x:Math.min(s.end,m);!f.extend&&x>b&&(i=b,b=x,x=i);var v=qI(l,x),y=qI(l,b);if(v&&y&&(f.rangeCount!==1||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var g=d.createRange();g.setStart(v.node,v.offset),f.removeAllRanges(),x>b?(f.addRange(g),f.extend(y.node,y.offset)):(g.setEnd(y.node,y.offset),f.addRange(g))}}}}for(d=[],f=l;f=f.parentNode;)f.nodeType===1&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<d.length;l++){var S=d[l];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}qd=!!Kh,Yh=Kh=null}finally{Ee=r,Me.p=n,re.T=a}}e.current=t,wt=2}}function uC(){if(wt===2){wt=0;var e=Rn,t=ul,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=re.T,re.T=null;var n=Me.p;Me.p=2;var r=Ee;Ee|=4;try{j0(e,t.alternate,t)}finally{Ee=r,Me.p=n,re.T=a}}wt=3}}function cC(){if(wt===4||wt===3){wt=0,iD();var e=Rn,t=ul,a=Hr,n=Q0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,ul=Rn=null,dC(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Dn=null),cg(a),t=t.stateNode,ba&&typeof ba.onCommitFiberRoot=="function")try{ba.onCommitFiberRoot(Xs,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=re.T,r=Me.p,Me.p=2,re.T=null;try{for(var o=e.onRecoverableError,i=0;i<n.length;i++){var l=n[i];o(l.value,{componentStack:l.stack})}}finally{re.T=t,Me.p=r}}(Hr&3)!==0&&of(),vr(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Wh?zs++:(zs=0,Wh=e):zs=0,nu(0,!1)}}function dC(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,tu(t)))}function of(){return sC(),uC(),cC(),fC()}function fC(){if(wt!==5)return!1;var e=Rn,t=Vh;Vh=0;var a=cg(Hr),n=re.T,r=Me.p;try{Me.p=32>a?32:a,re.T=null,a=Gh,Gh=null;var o=Rn,i=Hr;if(wt=0,ul=Rn=null,Hr=0,(Ee&6)!==0)throw Error(O(331));var l=Ee;if(Ee|=4,X0(o.current),G0(o,o.current,i,a),Ee=l,nu(0,!1),ba&&typeof ba.onPostCommitFiberRoot=="function")try{ba.onPostCommitFiberRoot(Xs,o)}catch{}return!0}finally{Me.p=r,re.T=n,dC(e,t)}}function wk(e,t,a){t=Pa(a,t),t=Bh(e.stateNode,t,2),e=zn(e,t,2),e!==null&&(Ys(e,2),vr(e))}function Re(e,t,a){if(e.tag===3)wk(e,e,a);else for(;t!==null;){if(t.tag===3){wk(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Dn===null||!Dn.has(n))){e=Pa(a,e),a=L0(2),n=zn(t,a,2),n!==null&&(T0(a,n,t,e),Ys(n,2),vr(n));break}}t=t.return}}function oh(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new OR;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(Hg=!0,r.add(a),e=PR.bind(null,e,t,a),t.then(e,e))}function PR(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(Se&a)===a&&(st===4||st===3&&(Se&62914560)===Se&&300>xa()-af?(Ee&2)===0&&cl(e,0):Vg|=a,sl===Se&&(sl=0)),vr(e)}function pC(e,t){t===0&&(t=n_()),e=Ro(e,t),e!==null&&(Ys(e,t),vr(e))}function NR(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),pC(e,a)}function UR(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(O(314))}n!==null&&n.delete(t),pC(e,a)}function jR(e,t){return sg(e,t)}var $d=null,$i=null,Jh=!1,Pd=!1,ih=!1,An=0;function vr(e){e!==$i&&e.next===null&&($i===null?$d=$i=e:$i=$i.next=e),Pd=!0,Jh||(Jh=!0,FR())}function nu(e,t){if(!ih&&Pd){ih=!0;do for(var a=!1,n=$d;n!==null;){if(!t)if(e!==0){var r=n.pendingLanes;if(r===0)var o=0;else{var i=n.suspendedLanes,l=n.pingedLanes;o=(1<<31-Sa(42|e)+1)-1,o&=r&~(i&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,Ik(n,o))}else o=Se,o=Hd(n,n===qe?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||Ks(n,o)||(a=!0,Ik(n,o));n=n.next}while(a);ih=!1}}function BR(){mC()}function mC(){Pd=Jh=!1;var e=0;An!==0&&XR()&&(e=An);for(var t=xa(),a=null,n=$d;n!==null;){var r=n.next,o=hC(n,t);o===0?(n.next=null,a===null?$d=r:a.next=r,r===null&&($i=a)):(a=n,(e!==0||(o&3)!==0)&&(Pd=!0)),n=r}wt!==0&&wt!==5||nu(e,!1),An!==0&&(An=0)}function hC(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-Sa(o),l=1<<i,s=r[i];s===-1?((l&a)===0||(l&n)!==0)&&(r[i]=mD(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(t=qe,a=Se,a=Hd(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Rm(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ks(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Rm(n),cg(a)){case 2:case 8:a=a_;break;case 32:a=xd;break;case 268435456:a=r_;break;default:a=xd}return n=gC.bind(null,e),a=sg(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Rm(n),e.callbackPriority=2,e.callbackNode=null,2}function gC(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(of()&&e.callbackNode!==a)return null;var n=Se;return n=Hd(e,e===qe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(tC(e,n,t),hC(e,xa()),e.callbackNode!=null&&e.callbackNode===a?gC.bind(null,e):null)}function Ik(e,t){if(of())return null;tC(e,t,!0)}function FR(){YR(function(){(Ee&6)!==0?sg(t_,BR):mC()})}function Wg(){if(An===0){var e=ol;e===0&&(e=Nc,Nc<<=1,(Nc&261888)===0&&(Nc=256)),An=e}return An}function kk(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ad(""+e)}function _k(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function qR(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var o=kk((r[na]||null).action),i=n.submitter;i&&(t=(t=i[na]||null)?kk(t.formAction):i.getAttribute("formAction"),t!==null&&(o=t,i=null));var l=new Vd("action","action",null,n,r);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(An!==0){var s=i?_k(r,i):new FormData(r);Uh(a,{pending:!0,data:s,method:r.method,action:o},null,s)}}else typeof o=="function"&&(l.preventDefault(),s=i?_k(r,i):new FormData(r),Uh(a,{pending:!0,data:s,method:r.method,action:o},o,s))},currentTarget:r}]})}}for(Xc=0;Xc<Lh.length;Xc++)Kc=Lh[Xc],Ck=Kc.toLowerCase(),Lk=Kc[0].toUpperCase()+Kc.slice(1),ar(Ck,"on"+Lk);var Kc,Ck,Lk,Xc;ar(T_,"onAnimationEnd");ar(A_,"onAnimationIteration");ar(E_,"onAnimationStart");ar("dblclick","onDoubleClick");ar("focusin","onFocus");ar("focusout","onBlur");ar(lR,"onTransitionRun");ar(sR,"onTransitionStart");ar(uR,"onTransitionCancel");ar(M_,"onTransitionEnd");rl("onMouseEnter",["mouseout","mouseover"]);rl("onMouseLeave",["mouseout","mouseover"]);rl("onPointerEnter",["pointerout","pointerover"]);rl("onPointerLeave",["pointerout","pointerover"]);Oo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Oo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Oo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Oo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Oo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Oo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zs="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(" "),ZR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zs));function vC(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],r=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var l=n[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){Sd(c)}r.currentTarget=null,o=s}else for(i=0;i<n.length;i++){if(l=n[i],s=l.instance,u=l.currentTarget,l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){Sd(c)}r.currentTarget=null,o=s}}}}function ve(e,t){var a=t[xh];a===void 0&&(a=t[xh]=new Set);var n=e+"__bubble";a.has(n)||(yC(t,e,2,!1),a.add(n))}function lh(e,t,a){var n=0;t&&(n|=4),yC(a,e,n,t)}var Yc="_reactListening"+Math.random().toString(36).slice(2);function Jg(e){if(!e[Yc]){e[Yc]=!0,u_.forEach(function(a){a!=="selectionchange"&&(ZR.has(a)||lh(a,!1,e),lh(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yc]||(t[Yc]=!0,lh("selectionchange",!1,t))}}function yC(e,t,a,n){switch(MC(t)){case 2:var r=y$;break;case 8:r=x$;break;default:r=Qg}a=r.bind(null,t,a,e),r=void 0,!kh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function sh(e,t,a,n,r){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var l=n.stateNode.containerInfo;if(l===r)break;if(i===4)for(i=n.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;l!==null;){if(i=Ui(l),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){n=o=i;continue e}l=l.parentNode}}n=n.return}v_(function(){var u=o,c=pg(a),d=[];e:{var p=O_.get(e);if(p!==void 0){var f=Vd,m=e;switch(e){case"keypress":if(nd(a)===0)break e;case"keydown":case"keyup":f=UD;break;case"focusin":m="focus",f=jm;break;case"focusout":m="blur",f=jm;break;case"beforeblur":case"afterblur":f=jm;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=DI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=LD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=FD;break;case T_:case A_:case E_:f=ED;break;case M_:f=ZD;break;case"scroll":case"scrollend":f=_D;break;case"wheel":f=VD;break;case"copy":case"cut":case"paste":f=OD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=$I;break;case"toggle":case"beforetoggle":f=WD}var x=(t&4)!==0,b=!x&&(e==="scroll"||e==="scrollend"),v=x?p!==null?p+"Capture":null:p;x=[];for(var y=u,g;y!==null;){var S=y;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||v===null||(S=$s(y,v),S!=null&&x.push(Hs(y,S,g))),b)break;y=y.return}0<x.length&&(p=new f(p,m,null,a,c),d.push({event:p,listeners:x}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&a!==Ih&&(m=a.relatedTarget||a.fromElement)&&(Ui(m)||m[pl]))break e;if((f||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,f?(m=a.relatedTarget||a.toElement,f=u,m=m?Ui(m):null,m!==null&&(b=Js(m),x=m.tag,m!==b||x!==5&&x!==27&&x!==6)&&(m=null)):(f=null,m=u),f!==m)){if(x=DI,S="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=$I,S="onPointerLeave",v="onPointerEnter",y="pointer"),b=f==null?p:xs(f),g=m==null?p:xs(m),p=new x(S,y+"leave",f,a,c),p.target=b,p.relatedTarget=g,S=null,Ui(c)===u&&(x=new x(v,y+"enter",m,a,c),x.target=g,x.relatedTarget=b,S=x),b=S,f&&m)t:{for(x=HR,v=f,y=m,g=0,S=v;S;S=x(S))g++;S=0;for(var L=y;L;L=x(L))S++;for(;0<g-S;)v=x(v),g--;for(;0<S-g;)y=x(y),S--;for(;g--;){if(v===y||y!==null&&v===y.alternate){x=v;break t}v=x(v),y=x(y)}x=null}else x=null;f!==null&&Tk(d,p,f,x,!1),m!==null&&b!==null&&Tk(d,b,m,x,!0)}}e:{if(p=u?xs(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var _=jI;else if(UI(p))if(I_)_=nR;else{_=aR;var A=tR}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&fg(u.elementType)&&(_=jI):_=rR;if(_&&(_=_(e,u))){w_(d,_,a,c);break e}A&&A(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&wh(p,"number",p.value)}switch(A=u?xs(u):window,e){case"focusin":(UI(A)||A.contentEditable==="true")&&(Fi=A,_h=u,ks=null);break;case"focusout":ks=_h=Fi=null;break;case"mousedown":Ch=!0;break;case"contextmenu":case"mouseup":case"dragend":Ch=!1,ZI(d,a,c);break;case"selectionchange":if(iR)break;case"keydown":case"keyup":ZI(d,a,c)}var z;if(gg)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Bi?b_(e,a)&&($="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&($="onCompositionStart");$&&(x_&&a.locale!=="ko"&&(Bi||$!=="onCompositionStart"?$==="onCompositionEnd"&&Bi&&(z=y_()):(Cn=c,mg="value"in Cn?Cn.value:Cn.textContent,Bi=!0)),A=Nd(u,$),0<A.length&&($=new RI($,e,null,a,c),d.push({event:$,listeners:A}),z?$.data=z:(z=S_(a),z!==null&&($.data=z)))),(z=XD?KD(e,a):YD(e,a))&&($=Nd(u,"onBeforeInput"),0<$.length&&(A=new RI("onBeforeInput","beforeinput",null,a,c),d.push({event:A,listeners:$}),A.data=z)),qR(d,e,u,a,c)}vC(d,t)})}function Hs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Nd(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=$s(e,a),r!=null&&n.unshift(Hs(e,r,o)),r=$s(e,t),r!=null&&n.push(Hs(e,r,o))),e.tag===3)return n;e=e.return}return[]}function HR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tk(e,t,a,n,r){for(var o=t._reactName,i=[];a!==null&&a!==n;){var l=a,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===n)break;l!==5&&l!==26&&l!==27||u===null||(s=u,r?(u=$s(a,o),u!=null&&i.unshift(Hs(a,u,s))):r||(u=$s(a,o),u!=null&&i.push(Hs(a,u,s)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var VR=/\r\n?/g,GR=/\u0000|\uFFFD/g;function Ak(e){return(typeof e=="string"?e:""+e).replace(VR,`
|
|
10
|
+
`).replace(GR,"")}function xC(e,t){return t=Ak(t),Ak(e)===t}function je(e,t,a,n,r,o){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||nl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&nl(e,""+n);break;case"className":Bc(e,"class",n);break;case"tabIndex":Bc(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Bc(e,a,n);break;case"style":g_(e,n,o);break;case"data":if(t!=="object"){Bc(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=ad(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"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 o=="function"&&(a==="formAction"?(t!=="input"&&je(e,t,"name",r.name,r,null),je(e,t,"formEncType",r.formEncType,r,null),je(e,t,"formMethod",r.formMethod,r,null),je(e,t,"formTarget",r.formTarget,r,null)):(je(e,t,"encType",r.encType,r,null),je(e,t,"method",r.method,r,null),je(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=ad(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Br);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(O(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=ad(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ve("beforetoggle",e),ve("toggle",e),td(e,"popover",n);break;case"xlinkActuate":zr(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":zr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":zr(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":zr(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":zr(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":zr(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":zr(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":zr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":zr(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":td(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=ID.get(a)||a,td(e,a,n))}}function Xh(e,t,a,n,r,o){switch(a){case"style":g_(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(O(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"children":typeof n=="string"?nl(e,n):(typeof n=="number"||typeof n=="bigint")&&nl(e,""+n);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!c_.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),o=e[na]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof n=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):td(e,a,n)}}}function $t(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var n=!1,r=!1,o;for(o in a)if(a.hasOwnProperty(o)){var i=a[o];if(i!=null)switch(o){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:je(e,t,o,i,a,null)}}r&&je(e,t,"srcSet",a.srcSet,a,null),n&&je(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var l=o=i=r=null,s=null,u=null;for(n in a)if(a.hasOwnProperty(n)){var c=a[n];if(c!=null)switch(n){case"name":r=c;break;case"type":i=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":o=c;break;case"defaultValue":l=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(O(137,t));break;default:je(e,t,n,c,a,null)}}p_(e,o,l,s,u,i,r,!1);return;case"select":ve("invalid",e),n=i=o=null;for(r in a)if(a.hasOwnProperty(r)&&(l=a[r],l!=null))switch(r){case"value":o=l;break;case"defaultValue":i=l;break;case"multiple":n=l;default:je(e,t,r,l,a,null)}t=o,a=i,e.multiple=!!n,t!=null?Xi(e,!!n,t,!1):a!=null&&Xi(e,!!n,a,!0);return;case"textarea":ve("invalid",e),o=r=n=null;for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"value":n=l;break;case"defaultValue":r=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(O(91));break;default:je(e,t,i,l,a,null)}h_(e,n,r,o);return;case"option":for(s in a)a.hasOwnProperty(s)&&(n=a[s],n!=null)&&(s==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":je(e,t,s,n,a,null));return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(n=0;n<Zs.length;n++)ve(Zs[n],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(n=a[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:je(e,t,u,n,a,null)}return;default:if(fg(t)){for(c in a)a.hasOwnProperty(c)&&(n=a[c],n!==void 0&&Xh(e,t,c,n,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null&&je(e,t,l,n,a,null))}function WR(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,i=null,l=null,s=null,u=null,c=null;for(f in a){var d=a[f];if(a.hasOwnProperty(f)&&d!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":s=d;default:n.hasOwnProperty(f)||je(e,t,f,null,n,d)}}for(var p in n){var f=n[p];if(d=a[p],n.hasOwnProperty(p)&&(f!=null||d!=null))switch(p){case"type":o=f;break;case"name":r=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(O(137,t));break;default:f!==d&&je(e,t,p,f,n,d)}}Sh(e,i,l,s,u,c,o,r);return;case"select":f=i=l=p=null;for(o in a)if(s=a[o],a.hasOwnProperty(o)&&s!=null)switch(o){case"value":break;case"multiple":f=s;default:n.hasOwnProperty(o)||je(e,t,o,null,n,s)}for(r in n)if(o=n[r],s=a[r],n.hasOwnProperty(r)&&(o!=null||s!=null))switch(r){case"value":p=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&je(e,t,r,o,n,s)}t=l,a=i,n=f,p!=null?Xi(e,!!a,p,!1):!!n!=!!a&&(t!=null?Xi(e,!!a,t,!0):Xi(e,!!a,a?[]:"",!1));return;case"textarea":f=p=null;for(l in a)if(r=a[l],a.hasOwnProperty(l)&&r!=null&&!n.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:je(e,t,l,null,n,r)}for(i in n)if(r=n[i],o=a[i],n.hasOwnProperty(i)&&(r!=null||o!=null))switch(i){case"value":p=r;break;case"defaultValue":f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(O(91));break;default:r!==o&&je(e,t,i,r,n,o)}m_(e,p,f);return;case"option":for(var m in a)p=a[m],a.hasOwnProperty(m)&&p!=null&&!n.hasOwnProperty(m)&&(m==="selected"?e.selected=!1:je(e,t,m,null,n,p));for(s in n)p=n[s],f=a[s],n.hasOwnProperty(s)&&p!==f&&(p!=null||f!=null)&&(s==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":je(e,t,s,p,n,f));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 x in a)p=a[x],a.hasOwnProperty(x)&&p!=null&&!n.hasOwnProperty(x)&&je(e,t,x,null,n,p);for(u in n)if(p=n[u],f=a[u],n.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(O(137,t));break;default:je(e,t,u,p,n,f)}return;default:if(fg(t)){for(var b in a)p=a[b],a.hasOwnProperty(b)&&p!==void 0&&!n.hasOwnProperty(b)&&Xh(e,t,b,void 0,n,p);for(c in n)p=n[c],f=a[c],!n.hasOwnProperty(c)||p===f||p===void 0&&f===void 0||Xh(e,t,c,p,n,f);return}}for(var v in a)p=a[v],a.hasOwnProperty(v)&&p!=null&&!n.hasOwnProperty(v)&&je(e,t,v,null,n,p);for(d in n)p=n[d],f=a[d],!n.hasOwnProperty(d)||p===f||p==null&&f==null||je(e,t,d,p,n,f)}function Ek(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function JR(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],o=r.transferSize,i=r.initiatorType,l=r.duration;if(o&&l&&Ek(i)){for(i=0,l=r.responseEnd,n+=1;n<a.length;n++){var s=a[n],u=s.startTime;if(u>l)break;var c=s.transferSize,d=s.initiatorType;c&&Ek(d)&&(s=s.responseEnd,i+=c*(s<l?1:(l-u)/(s-u)))}if(--n,t+=8*(o+i)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Kh=null,Yh=null;function Ud(e){return e.nodeType===9?e:e.ownerDocument}function Mk(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bC(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Qh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uh=null;function XR(){var e=window.event;return e&&e.type==="popstate"?e===uh?!1:(uh=e,!0):(uh=null,!1)}var SC=typeof setTimeout=="function"?setTimeout:void 0,KR=typeof clearTimeout=="function"?clearTimeout:void 0,Ok=typeof Promise=="function"?Promise:void 0,YR=typeof queueMicrotask=="function"?queueMicrotask:typeof Ok<"u"?function(e){return Ok.resolve(null).then(e).catch(QR)}:SC;function QR(e){setTimeout(function(){throw e})}function Zn(e){return e==="head"}function zk(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(r),fl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Ds(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ds(a);for(var o=a.firstChild;o;){var i=o.nextSibling,l=o.nodeName;o[Qs]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=i}}else a==="body"&&Ds(e.ownerDocument.body);a=r}while(a);fl(t)}function Dk(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function eg(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":eg(a),dg(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function e$(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Qs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=ja(e.nextSibling),e===null)break}return null}function t$(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ja(e.nextSibling),e===null))return null;return e}function wC(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ja(e.nextSibling),e===null))return null;return e}function tg(e){return e.data==="$?"||e.data==="$~"}function ag(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function a$(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function ja(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var rg=null;function Rk(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ja(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function $k(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function IC(e,t,a){switch(t=Ud(a),e){case"html":if(e=t.documentElement,!e)throw Error(O(452));return e;case"head":if(e=t.head,!e)throw Error(O(453));return e;case"body":if(e=t.body,!e)throw Error(O(454));return e;default:throw Error(O(451))}}function Ds(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dg(e)}var Ba=new Map,Pk=new Set;function jd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kr=Me.d;Me.d={f:r$,r:n$,D:o$,C:i$,L:l$,m:s$,X:c$,S:u$,M:d$};function r$(){var e=Kr.f(),t=rf();return e||t}function n$(e){var t=ml(e);t!==null&&t.tag===5&&t.type==="form"?g0(t):Kr.r(e)}var yl=typeof document>"u"?null:document;function kC(e,t,a){var n=yl;if(n&&typeof t=="string"&&t){var r=$a(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Pk.has(r)||(Pk.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),$t(t,"link",e),Lt(t),n.head.appendChild(t)))}}function o$(e){Kr.D(e),kC("dns-prefetch",e,null)}function i$(e,t){Kr.C(e,t),kC("preconnect",e,t)}function l$(e,t,a){Kr.L(e,t,a);var n=yl;if(n&&e&&t){var r='link[rel="preload"][as="'+$a(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+$a(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+$a(a.imageSizes)+'"]')):r+='[href="'+$a(e)+'"]';var o=r;switch(t){case"style":o=dl(e);break;case"script":o=xl(e)}Ba.has(o)||(e=Ke({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ba.set(o,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(ou(o))||t==="script"&&n.querySelector(iu(o))||(t=n.createElement("link"),$t(t,"link",e),Lt(t),n.head.appendChild(t)))}}function s$(e,t){Kr.m(e,t);var a=yl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+$a(n)+'"][href="'+$a(e)+'"]',o=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=xl(e)}if(!Ba.has(o)&&(e=Ke({rel:"modulepreload",href:e},t),Ba.set(o,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(iu(o)))return}n=a.createElement("link"),$t(n,"link",e),Lt(n),a.head.appendChild(n)}}}function u$(e,t,a){Kr.S(e,t,a);var n=yl;if(n&&e){var r=Ji(n).hoistableStyles,o=dl(e);t=t||"default";var i=r.get(o);if(!i){var l={loading:0,preload:null};if(i=n.querySelector(ou(o)))l.loading=5;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ba.get(o))&&Xg(e,a);var s=i=n.createElement("link");Lt(s),$t(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,fd(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:l},r.set(o,i)}}}function c$(e,t){Kr.X(e,t);var a=yl;if(a&&e){var n=Ji(a).hoistableScripts,r=xl(e),o=n.get(r);o||(o=a.querySelector(iu(r)),o||(e=Ke({src:e,async:!0},t),(t=Ba.get(r))&&Kg(e,t),o=a.createElement("script"),Lt(o),$t(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function d$(e,t){Kr.M(e,t);var a=yl;if(a&&e){var n=Ji(a).hoistableScripts,r=xl(e),o=n.get(r);o||(o=a.querySelector(iu(r)),o||(e=Ke({src:e,async:!0,type:"module"},t),(t=Ba.get(r))&&Kg(e,t),o=a.createElement("script"),Lt(o),$t(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function Nk(e,t,a,n){var r=(r=En.current)?jd(r):null;if(!r)throw Error(O(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=dl(a.href),a=Ji(r).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=dl(a.href);var o=Ji(r).hoistableStyles,i=o.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,i),(o=r.querySelector(ou(e)))&&!o._p&&(i.instance=o,i.state.loading=5),Ba.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ba.set(e,a),o||f$(r,e,a,i.state))),t&&n===null)throw Error(O(528,""));return i}if(t&&n!==null)throw Error(O(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xl(a),a=Ji(r).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(O(444,e))}}function dl(e){return'href="'+$a(e)+'"'}function ou(e){return'link[rel="stylesheet"]['+e+"]"}function _C(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function f$(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),$t(t,"link",a),Lt(t),e.head.appendChild(t))}function xl(e){return'[src="'+$a(e)+'"]'}function iu(e){return"script[async]"+e}function Uk(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+$a(a.href)+'"]');if(n)return t.instance=n,Lt(n),n;var r=Ke({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Lt(n),$t(n,"style",r),fd(n,a.precedence,e),t.instance=n;case"stylesheet":r=dl(a.href);var o=e.querySelector(ou(r));if(o)return t.state.loading|=4,t.instance=o,Lt(o),o;n=_C(a),(r=Ba.get(r))&&Xg(n,r),o=(e.ownerDocument||e).createElement("link"),Lt(o);var i=o;return i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),$t(o,"link",n),t.state.loading|=4,fd(o,a.precedence,e),t.instance=o;case"script":return o=xl(a.src),(r=e.querySelector(iu(o)))?(t.instance=r,Lt(r),r):(n=a,(r=Ba.get(o))&&(n=Ke({},a),Kg(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Lt(r),$t(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(O(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,fd(n,a.precedence,e));return t.instance}function fd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,o=r,i=0;i<n.length;i++){var l=n[i];if(l.dataset.precedence===t)o=l;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Xg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pd=null;function jk(e,t,a){if(pd===null){var n=new Map,r=pd=new Map;r.set(a,n)}else r=pd,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var o=a[r];if(!(o[Qs]||o[zt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var i=o.getAttribute(t)||"";i=e+i;var l=n.get(i);l?l.push(o):n.set(i,[o])}}return n}function Bk(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function p$(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function CC(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function m$(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=dl(n.href),o=t.querySelector(ou(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Bd.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,Lt(o);return}o=t.ownerDocument||t,n=_C(n),(r=Ba.get(r))&&Xg(n,r),o=o.createElement("link"),Lt(o);var i=o;i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),$t(o,"link",n),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Bd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ch=0;function h$(e,t){return e.stylesheets&&e.count===0&&md(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&md(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ch===0&&(ch=62500*JR());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&md(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ch?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function Bd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)md(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fd=null;function md(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fd=new Map,t.forEach(g$,e),Fd=null,Bd.call(e))}function g$(e,t){if(!(t.state.loading&4)){var a=Fd.get(e);if(a)var n=a.get(null);else{a=new Map,Fd.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var i=r[o];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),n=i)}n&&a.set(null,n)}r=t.instance,i=r.getAttribute("data-precedence"),o=a.get(i)||n,o===n&&a.set(null,r),a.set(i,r),this.count++,n=Bd.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Vs={$$typeof:jr,Provider:null,Consumer:null,_currentValue:wo,_currentValue2:wo,_threadCount:0};function v$(e,t,a,n,r,o,i,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$m(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$m(0),this.hiddenUpdates=$m(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function LC(e,t,a,n,r,o,i,l,s,u,c,d){return e=new v$(e,t,a,i,s,u,c,d,l),t=1,o===!0&&(t|=24),o=va(3,null,null,t),e.current=o,o.stateNode=e,t=Ig(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:a,cache:t},Cg(o),e}function TC(e){return e?(e=Hi,e):Hi}function AC(e,t,a,n,r,o){r=TC(r),n.context===null?n.context=r:n.pendingContext=r,n=On(t),n.payload={element:a},o=o===void 0?null:o,o!==null&&(n.callback=o),a=zn(e,n,t),a!==null&&(ra(a,e,t),Cs(a,e,t))}function Fk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Yg(e,t){Fk(e,t),(e=e.alternate)&&Fk(e,t)}function EC(e){if(e.tag===13||e.tag===31){var t=Ro(e,67108864);t!==null&&ra(t,e,67108864),Yg(e,67108864)}}function qk(e){if(e.tag===13||e.tag===31){var t=wa();t=ug(t);var a=Ro(e,t);a!==null&&ra(a,e,t),Yg(e,t)}}var qd=!0;function y$(e,t,a,n){var r=re.T;re.T=null;var o=Me.p;try{Me.p=2,Qg(e,t,a,n)}finally{Me.p=o,re.T=r}}function x$(e,t,a,n){var r=re.T;re.T=null;var o=Me.p;try{Me.p=8,Qg(e,t,a,n)}finally{Me.p=o,re.T=r}}function Qg(e,t,a,n){if(qd){var r=ng(n);if(r===null)sh(e,t,n,Zd,a),Zk(e,n);else if(S$(r,e,t,a,n))n.stopPropagation();else if(Zk(e,n),t&4&&-1<b$.indexOf(e)){for(;r!==null;){var o=ml(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var i=xo(o.pendingLanes);if(i!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-Sa(i);l.entanglements[1]|=s,i&=~s}vr(o),(Ee&6)===0&&(zd=xa()+500,nu(0,!1))}}break;case 31:case 13:l=Ro(o,2),l!==null&&ra(l,o,2),rf(),Yg(o,2)}if(o=ng(n),o===null&&sh(e,t,n,Zd,a),o===r)break;r=o}r!==null&&n.stopPropagation()}else sh(e,t,n,null,a)}}function ng(e){return e=pg(e),ev(e)}var Zd=null;function ev(e){if(Zd=null,e=Ui(e),e!==null){var t=Js(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Xk(t),e!==null)return e;e=null}else if(a===31){if(e=Kk(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zd=e,null}function MC(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(lD()){case t_:return 2;case a_:return 8;case xd:case sD:return 32;case r_:return 268435456;default:return 32}default:return 32}}var og=!1,$n=null,Pn=null,Nn=null,Gs=new Map,Ws=new Map,kn=[],b$="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 Zk(e,t){switch(e){case"focusin":case"focusout":$n=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ws.delete(t.pointerId)}}function hs(e,t,a,n,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:o,targetContainers:[r]},t!==null&&(t=ml(t),t!==null&&EC(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function S$(e,t,a,n,r){switch(t){case"focusin":return $n=hs($n,e,t,a,n,r),!0;case"dragenter":return Pn=hs(Pn,e,t,a,n,r),!0;case"mouseover":return Nn=hs(Nn,e,t,a,n,r),!0;case"pointerover":var o=r.pointerId;return Gs.set(o,hs(Gs.get(o)||null,e,t,a,n,r)),!0;case"gotpointercapture":return o=r.pointerId,Ws.set(o,hs(Ws.get(o)||null,e,t,a,n,r)),!0}return!1}function OC(e){var t=Ui(e.target);if(t!==null){var a=Js(t);if(a!==null){if(t=a.tag,t===13){if(t=Xk(a),t!==null){e.blockedOn=t,LI(e.priority,function(){qk(a)});return}}else if(t===31){if(t=Kk(a),t!==null){e.blockedOn=t,LI(e.priority,function(){qk(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ng(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Ih=n,a.target.dispatchEvent(n),Ih=null}else return t=ml(a),t!==null&&EC(t),e.blockedOn=a,!1;t.shift()}return!0}function Hk(e,t,a){hd(e)&&a.delete(t)}function w$(){og=!1,$n!==null&&hd($n)&&($n=null),Pn!==null&&hd(Pn)&&(Pn=null),Nn!==null&&hd(Nn)&&(Nn=null),Gs.forEach(Hk),Ws.forEach(Hk)}function Qc(e,t){e.blockedOn===t&&(e.blockedOn=null,og||(og=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,w$)))}var ed=null;function Vk(e){ed!==e&&(ed=e,It.unstable_scheduleCallback(It.unstable_NormalPriority,function(){ed===e&&(ed=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(ev(n||a)===null)continue;break}var o=ml(a);o!==null&&(e.splice(t,3),t-=3,Uh(o,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function fl(e){function t(s){return Qc(s,e)}$n!==null&&Qc($n,e),Pn!==null&&Qc(Pn,e),Nn!==null&&Qc(Nn,e),Gs.forEach(t),Ws.forEach(t);for(var a=0;a<kn.length;a++){var n=kn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<kn.length&&(a=kn[0],a.blockedOn===null);)OC(a),a.blockedOn===null&&kn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],o=a[n+1],i=r[na]||null;if(typeof o=="function")i||Vk(a);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(r=o,i=o[na]||null)l=i.formAction;else if(ev(r)!==null)continue}else l=i.action;typeof l=="function"?a[n+1]=l:(a.splice(n,3),n-=3),Vk(a)}}}function zC(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(i){return r=i})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function tv(e){this._internalRoot=e}lf.prototype.render=tv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));var a=t.current,n=wa();AC(a,n,e,t,null,null)};lf.prototype.unmount=tv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;AC(e.current,2,null,e,null,null),rf(),t[pl]=null}};function lf(e){this._internalRoot=e}lf.prototype.unstable_scheduleHydration=function(e){if(e){var t=s_();e={blockedOn:null,target:e,priority:t};for(var a=0;a<kn.length&&t!==0&&t<kn[a].priority;a++);kn.splice(a,0,e),a===0&&OC(e)}};var Gk=Wk.version;if(Gk!=="19.2.3")throw Error(O(527,Gk,"19.2.3"));Me.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=eD(t),e=e!==null?Yk(e):null,e=e===null?null:e.stateNode,e};var I$={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:re,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(gs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!gs.isDisabled&&gs.supportsFiber))try{Xs=gs.inject(I$),ba=gs}catch{}var gs;sf.createRoot=function(e,t){if(!Jk(e))throw Error(O(299));var a=!1,n="",r=k0,o=_0,i=C0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=LC(e,1,!1,null,null,a,n,null,r,o,i,zC),e[pl]=t.current,Jg(e),new tv(t)};sf.hydrateRoot=function(e,t,a){if(!Jk(e))throw Error(O(299));var n=!1,r="",o=k0,i=_0,l=C0,s=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError),a.formState!==void 0&&(s=a.formState)),t=LC(e,1,!0,t,a??null,n,r,s,o,i,l,zC),t.context=TC(null),a=t.current,n=wa(),n=ug(n),r=On(n),r.callback=null,zn(a,r,n),a=n,t.current.lanes=a,Ys(t,a),vr(t),e[pl]=t.current,Jg(e),new lf(t)};sf.version="19.2.3"});var PC=Ut((hZ,$C)=>{"use strict";function RC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RC)}catch(e){console.error(e)}}RC(),$C.exports=DC()});var ZL=Ut((S7,qL)=>{"use strict";var UL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,sP=/\n/g,uP=/^\s*/,cP=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,dP=/^:\s*/,fP=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pP=/^[;\s]*/,mP=/^\s+|\s+$/g,hP=`
|
|
11
|
+
`,jL="/",BL="*",ri="",gP="comment",vP="declaration";function yP(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var a=1,n=1;function r(m){var x=m.match(sP);x&&(a+=x.length);var b=m.lastIndexOf(hP);n=~b?m.length-b:n+m.length}function o(){var m={line:a,column:n};return function(x){return x.position=new i(m),u(),x}}function i(m){this.start=m,this.end={line:a,column:n},this.source=t.source}i.prototype.content=e;function l(m){var x=new Error(t.source+":"+a+":"+n+": "+m);if(x.reason=m,x.filename=t.source,x.line=a,x.column=n,x.source=e,!t.silent)throw x}function s(m){var x=m.exec(e);if(x){var b=x[0];return r(b),e=e.slice(b.length),x}}function u(){s(uP)}function c(m){var x;for(m=m||[];x=d();)x!==!1&&m.push(x);return m}function d(){var m=o();if(!(jL!=e.charAt(0)||BL!=e.charAt(1))){for(var x=2;ri!=e.charAt(x)&&(BL!=e.charAt(x)||jL!=e.charAt(x+1));)++x;if(x+=2,ri===e.charAt(x-1))return l("End of comment missing");var b=e.slice(2,x-2);return n+=2,r(b),e=e.slice(x),n+=2,m({type:gP,comment:b})}}function p(){var m=o(),x=s(cP);if(x){if(d(),!s(dP))return l("property missing ':'");var b=s(fP),v=m({type:vP,property:FL(x[0].replace(UL,ri)),value:b?FL(b[0].replace(UL,ri)):ri});return s(pP),v}}function f(){var m=[];c(m);for(var x;x=p();)x!==!1&&(m.push(x),c(m));return m}return u(),f()}function FL(e){return e?e.replace(mP,ri):ri}qL.exports=yP});var HL=Ut(bu=>{"use strict";var xP=bu&&bu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bu,"__esModule",{value:!0});bu.default=SP;var bP=xP(ZL());function SP(e,t){let a=null;if(!e||typeof e!="string")return a;let n=(0,bP.default)(e),r=typeof t=="function";return n.forEach(o=>{if(o.type!=="declaration")return;let{property:i,value:l}=o;r?t(i,l,o):l&&(a=a||{},a[i]=l)}),a}});var GL=Ut(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.camelCase=void 0;var wP=/^--[a-zA-Z0-9_-]+$/,IP=/-([a-z])/g,kP=/^[^-]+$/,_P=/^-(webkit|moz|ms|o|khtml)-/,CP=/^-(ms)-/,LP=function(e){return!e||kP.test(e)||wP.test(e)},TP=function(e,t){return t.toUpperCase()},VL=function(e,t){return"".concat(t,"-")},AP=function(e,t){return t===void 0&&(t={}),LP(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(CP,VL):e=e.replace(_P,VL),e.replace(IP,TP))};Cf.camelCase=AP});var JL=Ut((wv,WL)=>{"use strict";var EP=wv&&wv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},MP=EP(HL()),OP=GL();function Sv(e,t){var a={};return!e||typeof e!="string"||(0,MP.default)(e,function(n,r){n&&r&&(a[(0,OP.camelCase)(n,t)]=r)}),a}Sv.default=Sv;WL.exports=Sv});var oT=Ut(Tf=>{"use strict";var YP=Symbol.for("react.transitional.element"),QP=Symbol.for("react.fragment");function nT(e,t,a){var n=null;if(a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:YP,type:e,key:n,ref:t!==void 0?t:null,props:a}}Tf.Fragment=QP;Tf.jsx=nT;Tf.jsxs=nT});var bt=Ut((W7,iT)=>{"use strict";iT.exports=oT()});var w1=Ut((QK,S1)=>{"use strict";var Kf=Object.prototype.hasOwnProperty,b1=Object.prototype.toString,m1=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,g1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):b1.call(t)==="[object Array]"},v1=function(t){if(!t||b1.call(t)!=="[object Object]")return!1;var a=Kf.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Kf.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!n)return!1;var r;for(r in t);return typeof r>"u"||Kf.call(t,r)},y1=function(t,a){m1&&a.name==="__proto__"?m1(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},x1=function(t,a){if(a==="__proto__")if(Kf.call(t,a)){if(h1)return h1(t,a).value}else return;return t[a]};S1.exports=function e(){var t,a,n,r,o,i,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(a in t)n=x1(l,a),r=x1(t,a),l!==r&&(c&&r&&(v1(r)||(o=g1(r)))?(o?(o=!1,i=n&&g1(n)?n:[]):i=n&&v1(n)?n:{},y1(l,{name:a,newValue:e(c,i,r)})):typeof r<"u"&&y1(l,{name:a,newValue:r}));return l}});var QO=Ut((Zoe,YO)=>{"use strict";function g9(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let a,n=0;return function(...o){clearTimeout(a);let i=Date.now(),l=i-n,s=t-l;s<=0?(n=i,e.apply(this,o)):a=setTimeout(()=>{n=Date.now(),e.apply(this,o)},s)}}YO.exports=g9});var nZ={};function Qa(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Qa(`:root[data-chat-widget],[data-chat-widget]{--chat-primary: #3b82f6;--chat-primary-text: #ffffff;--chat-primary-hover: #2563eb;--chat-background: #ffffff;--chat-border: #e5e7eb;--chat-header-text: #ffffff;--chat-user-text: #ffffff;--chat-assistant-bg: transparent;--chat-assistant-text: #111827;--chat-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--chat-radius: .75rem;--chat-input-bg: #ffffff;--chat-input-text: #111827;--chat-input-placeholder: #6b7280;--chat-thought-border: #d1d5db;--chat-font-size: .925rem;--chat-thought-font-size: .75rem}.chat-widget{display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;background:var(--chat-background);border:1px solid var(--chat-border);border-radius:var(--chat-radius);box-shadow:0 20px 45px #0f172a1f;overflow:hidden;font-family:var(--chat-font-family);color:var(--chat-assistant-text)}.chat-widget__header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:.75rem 1rem;background:var(--chat-primary);color:var(--chat-header-text)}.chat-widget__title{margin:0;font-size:.875rem;font-weight:600}.chat-widget__messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.chat-widget__message{display:flex;flex-direction:column;gap:0}.chat-widget__message-row{display:flex}.chat-widget__message-row--user{justify-content:flex-end}.chat-widget__message-row--assistant{justify-content:flex-start}.chat-widget__bubble{max-width:90%;padding:.5rem .25rem;border-radius:calc(var(--chat-radius) * .65);font-size:var(--chat-font-size)}.chat-widget__bubble--user{background:var(--chat-primary);color:var(--chat-user-text);border-bottom-right-radius:.35rem}.chat-widget__bubble--assistant{width:90%;background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-bottom-left-radius:.35rem}.chat-widget__widget{width:100%}.chat-widget__markdown{white-space:normal;font-size:var(--chat-font-size)}.chat-widget__markdown h1{font-size:calc(var(--chat-font-size) * 1.4)}.chat-widget__markdown h2{font-size:calc(var(--chat-font-size) * 1.25)}.chat-widget__markdown h3{font-size:calc(var(--chat-font-size) * 1.1)}.chat-widget__markdown h4{font-size:calc(var(--chat-font-size) * 1.05)}.chat-widget__markdown h5{font-size:calc(var(--chat-font-size) * 1)}.chat-widget__markdown h6{font-size:calc(var(--chat-font-size) * .95)}.chat-widget__anchor-button{position:fixed;bottom:20px;right:20px;display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:0 10px 25px #0f172a33;cursor:pointer;font-weight:600;z-index:99999}.chat-widget__anchor-button:hover{background:var(--chat-primary-hover)}.chat-widget__anchor--left{right:auto;left:20px}.chat-widget__anchor-icon{width:1.1rem;height:1.1rem}.chat-widget__popup{position:fixed;bottom:80px;right:20px;z-index:99998}.chat-widget__anchor--left.chat-widget__popup{right:auto;left:20px}.chat-widget__popup-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:0 20px 45px #0f172a1f;border-radius:12px;overflow:hidden}.chat-widget__markdown table{width:100%;border-collapse:collapse;margin:.5rem 0}.chat-widget__markdown th,.chat-widget__markdown td{border:1px solid var(--chat-border);padding:.5rem;text-align:left;vertical-align:top}.chat-widget__markdown thead th{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);font-weight:600}.chat-widget__thoughts{min-width:0;--chat-font-size: var(--chat-thought-font-size)}.chat-widget__details{border:0}.chat-widget__thoughts-summary{list-style:none;display:flex;align-items:center;gap:.35rem;cursor:pointer;color:#6b7280;font-size:.8125rem}.chat-widget__thoughts-summary:hover{color:var(--chat-assistant-text)}.chat-widget__thoughts-icon-container{display:flex;border:1px solid #d1d5db;border-radius:999px;align-items:center;justify-content:center;width:1rem;height:1rem}.chat-widget__thoughts-icon{width:.75rem;height:.75rem;transition:transform .2s ease}.chat-widget__details[open] .chat-widget__thoughts-icon{transform:rotate(90deg)}.chat-widget__thoughts-content{margin-top:.5rem;margin-left:.4rem;padding:.75rem;border-left:2px solid var(--chat-thought-border);border-color:var(--chat-primary);max-width:100%;overflow-x:auto}.chat-widget__thoughts-text{margin:0;line-height:1.5;color:#4b5563;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;display:block}.chat-widget__loading{display:flex;justify-content:flex-start}.chat-widget__loading-bubble{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-radius:calc(var(--chat-radius) * .65);border-bottom-left-radius:.35rem;padding:.5rem .75rem}.chat-widget__loading-dots{display:flex;gap:.35rem}.chat-widget__loading-dot{width:.5rem;height:.5rem;border-radius:999px;background:#9ca3af;animation:chat-widget-bounce 1s infinite ease-in-out}.chat-widget__loading-dot[data-delay="1"]{animation-delay:.1s}.chat-widget__loading-dot[data-delay="2"]{animation-delay:.2s}@keyframes chat-widget-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.chat-widget__input{border-top:1px solid var(--chat-border);padding:.25rem 0 .75rem;background:var(--chat-input-bg)}.chat-widget__form{position:relative}.chat-widget__textarea{width:100%;border:0;padding:.75rem 5.25rem .75rem .75rem;background:transparent;font-size:.925rem;resize:none;color:var(--chat-input-text);font-family:inherit}.chat-widget__textarea::-moz-placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea::placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea:focus-visible{outline:none}.chat-widget__textarea:disabled{opacity:.5;cursor:not-allowed}.chat-widget__toolbar{position:absolute;top:0;right:3.75rem;height:100%;display:flex;align-items:center;padding:0 .5rem;border-right:1px solid var(--chat-border)}.chat-widget__submit{position:absolute;top:50%;right:.75rem;transform:translateY(-50%);background:transparent;border:0;width:2.5rem;height:2.5rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer}.chat-widget__submit:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__submit:not(:disabled):hover{color:var(--chat-primary-hover)}.chat-widget__send-icon{width:1.2rem;height:1.2rem}.chat-widget__mic-button{position:relative;border:none;background:transparent;width:2.25rem;height:2.25rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer;border-radius:999px}.chat-widget__mic-button:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__mic-button--active{color:var(--chat-primary-hover);background:#3b82f614}.chat-widget__mic-icon{width:1rem;height:1rem}.chat-widget__mic-bar{position:absolute;bottom:.1rem;left:50%;width:16px;height:2px;border-radius:999px;background:#94a3b866;overflow:hidden;display:block;transform:translate(-50%);pointer-events:none}.chat-widget__mic-bar-fill{display:block;width:100%;height:100%;background:currentColor;transform-origin:left;transition:transform .12s linear}.chat-widget__voice{display:flex;margin-top:.25rem}.chat-widget__voice-button{border:none;background:none;display:inline-flex;align-items:center;gap:.35rem;padding:.1rem 0;font-size:.8rem;font-weight:500;color:var(--chat-primary);cursor:pointer}.chat-widget__voice-button:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__voice-button--active{color:var(--chat-primary-hover)}.chat-widget__voice-icon{width:.95rem;height:.95rem}.chat-widget__voice-icon--spin{animation:chat-widget-spin 1s linear infinite}@keyframes chat-widget-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
12
|
+
`);var Cz=be(PC(),1);var ov={};cr(ov,{BRAND:()=>J$,DIRTY:()=>Po,EMPTY_PATH:()=>L$,INVALID:()=>ee,NEVER:()=>z2,OK:()=>Ft,ParseStatus:()=>Pt,Schema:()=>me,ZodAny:()=>Gn,ZodArray:()=>tn,ZodBigInt:()=>Uo,ZodBoolean:()=>jo,ZodBranded:()=>su,ZodCatch:()=>Ko,ZodDate:()=>Bo,ZodDefault:()=>Xo,ZodDiscriminatedUnion:()=>df,ZodEffects:()=>Za,ZodEnum:()=>Wo,ZodError:()=>ia,ZodFirstPartyTypeKind:()=>T,ZodFunction:()=>pf,ZodIntersection:()=>Ho,ZodIssueCode:()=>D,ZodLazy:()=>Vo,ZodLiteral:()=>Go,ZodMap:()=>_l,ZodNaN:()=>Ll,ZodNativeEnum:()=>Jo,ZodNever:()=>rr,ZodNull:()=>qo,ZodNullable:()=>br,ZodNumber:()=>No,ZodObject:()=>la,ZodOptional:()=>Fa,ZodParsedType:()=>H,ZodPipeline:()=>uu,ZodPromise:()=>Wn,ZodReadonly:()=>Yo,ZodRecord:()=>ff,ZodSchema:()=>me,ZodSet:()=>Cl,ZodString:()=>Vn,ZodSymbol:()=>Il,ZodTransformer:()=>Za,ZodTuple:()=>xr,ZodType:()=>me,ZodUndefined:()=>Fo,ZodUnion:()=>Zo,ZodUnknown:()=>en,ZodVoid:()=>kl,addIssueToContext:()=>B,any:()=>n2,array:()=>s2,bigint:()=>Q$,boolean:()=>WC,coerce:()=>O2,custom:()=>HC,date:()=>e2,datetimeRegex:()=>qC,defaultErrorMap:()=>Yr,discriminatedUnion:()=>f2,effect:()=>k2,enum:()=>S2,function:()=>y2,getErrorMap:()=>bl,getParsedType:()=>yr,instanceof:()=>K$,intersection:()=>p2,isAborted:()=>uf,isAsync:()=>Sl,isDirty:()=>cf,isValid:()=>Hn,late:()=>X$,lazy:()=>x2,literal:()=>b2,makeIssue:()=>lu,map:()=>g2,nan:()=>Y$,nativeEnum:()=>w2,never:()=>i2,null:()=>r2,nullable:()=>C2,number:()=>GC,object:()=>u2,objectUtil:()=>av,oboolean:()=>M2,onumber:()=>E2,optional:()=>_2,ostring:()=>A2,pipeline:()=>T2,preprocess:()=>L2,promise:()=>I2,quotelessJson:()=>k$,record:()=>h2,set:()=>v2,setErrorMap:()=>C$,strictObject:()=>c2,string:()=>VC,symbol:()=>t2,transformer:()=>k2,tuple:()=>m2,undefined:()=>a2,union:()=>d2,unknown:()=>o2,util:()=>xe,void:()=>l2});var xe;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function a(r){throw new Error}e.assertNever=a,e.arrayToEnum=r=>{let o={};for(let i of r)o[i]=i;return o},e.getValidEnumValues=r=>{let o=e.objectKeys(r).filter(l=>typeof r[r[l]]!="number"),i={};for(let l of o)i[l]=r[l];return e.objectValues(i)},e.objectValues=r=>e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let o=[];for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&o.push(i);return o},e.find=(r,o)=>{for(let i of r)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function n(r,o=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(xe||(xe={}));var av;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(av||(av={}));var H=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yr=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return Number.isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}};var D=xe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),k$=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ia=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(o){return o.message},n={_errors:[]},r=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)n._errors.push(a(i));else{let l=n,s=0;for(;s<i.path.length;){let u=i.path[s];s===i.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(a(i))):l[u]=l[u]||{_errors:[]},l=l[u],s++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a={},n=[];for(let r of this.issues)if(r.path.length>0){let o=r.path[0];a[o]=a[o]||[],a[o].push(t(r))}else n.push(t(r));return{formErrors:n,fieldErrors:a}}get formErrors(){return this.flatten()}};ia.create=e=>new ia(e);var _$=(e,t)=>{let a;switch(e.code){case D.invalid_type:e.received===H.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,xe.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:a=`Unrecognized key(s) in object: ${xe.joinValues(e.keys,", ")}`;break;case D.invalid_union:a="Invalid input";break;case D.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${xe.joinValues(e.options)}`;break;case D.invalid_enum_value:a=`Invalid enum value. Expected ${xe.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:a="Invalid function arguments";break;case D.invalid_return_type:a="Invalid function return type";break;case D.invalid_date:a="Invalid date";break;case D.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:xe.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case D.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case D.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case D.custom:a="Invalid input";break;case D.invalid_intersection_types:a="Intersection results could not be merged";break;case D.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:a="Number must be finite";break;default:a=t.defaultError,xe.assertNever(e)}return{message:a}},Yr=_$;var NC=Yr;function C$(e){NC=e}function bl(){return NC}var lu=e=>{let{data:t,path:a,errorMaps:n,issueData:r}=e,o=[...a,...r.path||[]],i={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let l="",s=n.filter(u=>!!u).slice().reverse();for(let u of s)l=u(i,{data:t,defaultError:l}).message;return{...r,path:o,message:l}},L$=[];function B(e,t){let a=bl(),n=lu({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===Yr?void 0:Yr].filter(r=>!!r)});e.common.issues.push(n)}var Pt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let n=[];for(let r of a){if(r.status==="aborted")return ee;r.status==="dirty"&&t.dirty(),n.push(r.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,a){let n=[];for(let r of a){let o=await r.key,i=await r.value;n.push({key:o,value:i})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,a){let n={};for(let r of a){let{key:o,value:i}=r;if(o.status==="aborted"||i.status==="aborted")return ee;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||r.alwaysSet)&&(n[o.value]=i.value)}return{status:t.value,value:n}}},ee=Object.freeze({status:"aborted"}),Po=e=>({status:"dirty",value:e}),Ft=e=>({status:"valid",value:e}),uf=e=>e.status==="aborted",cf=e=>e.status==="dirty",Hn=e=>e.status==="valid",Sl=e=>typeof Promise<"u"&&e instanceof Promise;var V;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(V||(V={}));var qa=class{constructor(t,a,n,r){this._cachedPath=[],this.parent=t,this.data=a,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},UC=(e,t)=>{if(Hn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new ia(e.common.issues);return this._error=a,this._error}}};function de(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:n,description:r}=e;if(t&&(a||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(i,l)=>{let{message:s}=e;return i.code==="invalid_enum_value"?{message:s??l.defaultError}:typeof l.data>"u"?{message:s??n??l.defaultError}:i.code!=="invalid_type"?{message:l.defaultError}:{message:s??a??l.defaultError}},description:r}}var me=class{get description(){return this._def.description}_getType(t){return yr(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:yr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pt,ctx:{common:t.parent.common,data:t.data,parsedType:yr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if(Sl(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let n=this.safeParse(t,a);if(n.success)return n.data;throw n.error}safeParse(t,a){let n={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yr(t)},r=this._parseSync({data:t,path:n.path,parent:n});return UC(n,r)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yr(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:a});return Hn(n)?{value:n.value}:{issues:a.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(n=>Hn(n)?{value:n.value}:{issues:a.common.issues})}async parseAsync(t,a){let n=await this.safeParseAsync(t,a);if(n.success)return n.data;throw n.error}async safeParseAsync(t,a){let n={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yr(t)},r=this._parse({data:t,path:n.path,parent:n}),o=await(Sl(r)?r:Promise.resolve(r));return UC(n,o)}refine(t,a){let n=r=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(r):a;return this._refinement((r,o)=>{let i=t(r),l=()=>o.addIssue({code:D.custom,...n(r)});return typeof Promise<"u"&&i instanceof Promise?i.then(s=>s?!0:(l(),!1)):i?!0:(l(),!1)})}refinement(t,a){return this._refinement((n,r)=>t(n)?!0:(r.addIssue(typeof a=="function"?a(n,r):a),!1))}_refinement(t){return new Za({schema:this,typeName:T.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return Fa.create(this,this._def)}nullable(){return br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return tn.create(this)}promise(){return Wn.create(this,this._def)}or(t){return Zo.create([this,t],this._def)}and(t){return Ho.create(this,t,this._def)}transform(t){return new Za({...de(this._def),schema:this,typeName:T.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new Xo({...de(this._def),innerType:this,defaultValue:a,typeName:T.ZodDefault})}brand(){return new su({typeName:T.ZodBranded,type:this,...de(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new Ko({...de(this._def),innerType:this,catchValue:a,typeName:T.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return uu.create(this,t)}readonly(){return Yo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},T$=/^c[^\s-]{8,}$/i,A$=/^[0-9a-z]+$/,E$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,M$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,O$=/^[a-z0-9_-]{21}$/i,z$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,D$=/^[-+]?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)?)??$/,R$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",rv,P$=/^(?:(?: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])$/,N$=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,U$=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,j$=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,B$=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,BC="((\\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])))",q$=new RegExp(`^${BC}$`);function FC(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function Z$(e){return new RegExp(`^${FC(e)}$`)}function qC(e){let t=`${BC}T${FC(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function H$(e,t){return!!((t==="v4"||!t)&&P$.test(e)||(t==="v6"||!t)&&U$.test(e))}function V$(e,t){if(!z$.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let n=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(n));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function G$(e,t){return!!((t==="v4"||!t)&&N$.test(e)||(t==="v6"||!t)&&j$.test(e))}var Vn=class e extends me{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_type,expected:H.string,received:o.parsedType}),ee}let n=new Pt,r;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,l=t.data.length<o.value;(i||l)&&(r=this._getOrReturnCtx(t,r),i?B(r,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&B(r,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")R$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"email",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")rv||(rv=new RegExp($$,"u")),rv.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"emoji",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")M$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"uuid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")O$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"nanoid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")T$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"cuid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")A$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"cuid2",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")E$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"ulid",code:D.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),B(r,{validation:"url",code:D.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"regex",code:D.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?qC(o).test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?q$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?Z$(o).test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{code:D.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?D$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"duration",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?H$(t.data,o.version)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"ip",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?V$(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"jwt",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?G$(t.data,o.version)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"cidr",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?B$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"base64",code:D.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?F$.test(t.data)||(r=this._getOrReturnCtx(t,r),B(r,{validation:"base64url",code:D.invalid_string,message:o.message}),n.dirty()):xe.assertNever(o);return{status:n.value,value:t.data}}_regex(t,a,n){return this.refinement(r=>t.test(r),{validation:a,code:D.invalid_string,...V.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...V.errToObj(t)})}url(t){return this._addCheck({kind:"url",...V.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...V.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...V.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...V.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...V.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...V.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...V.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...V.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...V.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...V.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...V.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...V.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...V.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...V.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...V.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...V.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...V.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...V.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...V.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...V.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...V.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...V.errToObj(a)})}nonempty(t){return this.min(1,V.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Vn.create=e=>new Vn({checks:[],typeName:T.ZodString,coerce:e?.coerce??!1,...de(e)});function W$(e,t){let a=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=a>n?a:n,o=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return o%i/10**r}var No=class e extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==H.number){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_type,expected:H.number,received:o.parsedType}),ee}let n,r=new Pt;for(let o of this._def.checks)o.kind==="int"?xe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),B(n,{code:D.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?W$(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),B(n,{code:D.not_finite,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,V.toString(a))}gt(t,a){return this.setLimit("min",t,!1,V.toString(a))}lte(t,a){return this.setLimit("max",t,!0,V.toString(a))}lt(t,a){return this.setLimit("max",t,!1,V.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:V.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:V.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:V.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:V.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&xe.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(a===null||n.value>a)&&(a=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(a)&&Number.isFinite(t)}};No.create=e=>new No({checks:[],typeName:T.ZodNumber,coerce:e?.coerce||!1,...de(e)});var Uo=class e extends me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==H.bigint)return this._getInvalidInput(t);let n,r=new Pt;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),B(n,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return B(a,{code:D.invalid_type,expected:H.bigint,received:a.parsedType}),ee}gte(t,a){return this.setLimit("min",t,!0,V.toString(a))}gt(t,a){return this.setLimit("min",t,!1,V.toString(a))}lte(t,a){return this.setLimit("max",t,!0,V.toString(a))}lt(t,a){return this.setLimit("max",t,!1,V.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:V.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:V.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Uo.create=e=>new Uo({checks:[],typeName:T.ZodBigInt,coerce:e?.coerce??!1,...de(e)});var jo=class extends me{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.boolean,received:n.parsedType}),ee}return Ft(t.data)}};jo.create=e=>new jo({typeName:T.ZodBoolean,coerce:e?.coerce||!1,...de(e)});var Bo=class e extends me{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_type,expected:H.date,received:o.parsedType}),ee}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return B(o,{code:D.invalid_date}),ee}let n=new Pt,r;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(r=this._getOrReturnCtx(t,r),B(r,{code:D.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):xe.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:V.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:V.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};Bo.create=e=>new Bo({checks:[],coerce:e?.coerce||!1,typeName:T.ZodDate,...de(e)});var Il=class extends me{_parse(t){if(this._getType(t)!==H.symbol){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.symbol,received:n.parsedType}),ee}return Ft(t.data)}};Il.create=e=>new Il({typeName:T.ZodSymbol,...de(e)});var Fo=class extends me{_parse(t){if(this._getType(t)!==H.undefined){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.undefined,received:n.parsedType}),ee}return Ft(t.data)}};Fo.create=e=>new Fo({typeName:T.ZodUndefined,...de(e)});var qo=class extends me{_parse(t){if(this._getType(t)!==H.null){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.null,received:n.parsedType}),ee}return Ft(t.data)}};qo.create=e=>new qo({typeName:T.ZodNull,...de(e)});var Gn=class extends me{constructor(){super(...arguments),this._any=!0}_parse(t){return Ft(t.data)}};Gn.create=e=>new Gn({typeName:T.ZodAny,...de(e)});var en=class extends me{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ft(t.data)}};en.create=e=>new en({typeName:T.ZodUnknown,...de(e)});var rr=class extends me{_parse(t){let a=this._getOrReturnCtx(t);return B(a,{code:D.invalid_type,expected:H.never,received:a.parsedType}),ee}};rr.create=e=>new rr({typeName:T.ZodNever,...de(e)});var kl=class extends me{_parse(t){if(this._getType(t)!==H.undefined){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.void,received:n.parsedType}),ee}return Ft(t.data)}};kl.create=e=>new kl({typeName:T.ZodVoid,...de(e)});var tn=class e extends me{_parse(t){let{ctx:a,status:n}=this._processInputParams(t),r=this._def;if(a.parsedType!==H.array)return B(a,{code:D.invalid_type,expected:H.array,received:a.parsedType}),ee;if(r.exactLength!==null){let i=a.data.length>r.exactLength.value,l=a.data.length<r.exactLength.value;(i||l)&&(B(a,{code:i?D.too_big:D.too_small,minimum:l?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&a.data.length<r.minLength.value&&(B(a,{code:D.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&a.data.length>r.maxLength.value&&(B(a,{code:D.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),a.common.async)return Promise.all([...a.data].map((i,l)=>r.type._parseAsync(new qa(a,i,a.path,l)))).then(i=>Pt.mergeArray(n,i));let o=[...a.data].map((i,l)=>r.type._parseSync(new qa(a,i,a.path,l)));return Pt.mergeArray(n,o)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:V.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:V.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:V.toString(a)}})}nonempty(t){return this.min(1,t)}};tn.create=(e,t)=>new tn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:T.ZodArray,...de(t)});function wl(e){if(e instanceof la){let t={};for(let a in e.shape){let n=e.shape[a];t[a]=Fa.create(wl(n))}return new la({...e._def,shape:()=>t})}else return e instanceof tn?new tn({...e._def,type:wl(e.element)}):e instanceof Fa?Fa.create(wl(e.unwrap())):e instanceof br?br.create(wl(e.unwrap())):e instanceof xr?xr.create(e.items.map(t=>wl(t))):e}var la=class e extends me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=xe.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==H.object){let u=this._getOrReturnCtx(t);return B(u,{code:D.invalid_type,expected:H.object,received:u.parsedType}),ee}let{status:n,ctx:r}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),l=[];if(!(this._def.catchall instanceof rr&&this._def.unknownKeys==="strip"))for(let u in r.data)i.includes(u)||l.push(u);let s=[];for(let u of i){let c=o[u],d=r.data[u];s.push({key:{status:"valid",value:u},value:c._parse(new qa(r,d,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof rr){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of l)s.push({key:{status:"valid",value:c},value:{status:"valid",value:r.data[c]}});else if(u==="strict")l.length>0&&(B(r,{code:D.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of l){let d=r.data[c];s.push({key:{status:"valid",value:c},value:u._parse(new qa(r,d,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of s){let d=await c.key,p=await c.value;u.push({key:d,value:p,alwaysSet:c.alwaysSet})}return u}).then(u=>Pt.mergeObjectSync(n,u)):Pt.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(t){return V.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,n)=>{let r=this._def.errorMap?.(a,n).message??n.defaultError;return a.code==="unrecognized_keys"?{message:V.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:T.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let n of xe.objectKeys(t))t[n]&&this.shape[n]&&(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let n of xe.objectKeys(this.shape))t[n]||(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}deepPartial(){return wl(this)}partial(t){let a={};for(let n of xe.objectKeys(this.shape)){let r=this.shape[n];t&&!t[n]?a[n]=r:a[n]=r.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let n of xe.objectKeys(this.shape))if(t&&!t[n])a[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof Fa;)o=o._def.innerType;a[n]=o}return new e({...this._def,shape:()=>a})}keyof(){return ZC(xe.objectKeys(this.shape))}};la.create=(e,t)=>new la({shape:()=>e,unknownKeys:"strip",catchall:rr.create(),typeName:T.ZodObject,...de(t)});la.strictCreate=(e,t)=>new la({shape:()=>e,unknownKeys:"strict",catchall:rr.create(),typeName:T.ZodObject,...de(t)});la.lazycreate=(e,t)=>new la({shape:e,unknownKeys:"strip",catchall:rr.create(),typeName:T.ZodObject,...de(t)});var Zo=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n=this._def.options;function r(o){for(let l of o)if(l.result.status==="valid")return l.result;for(let l of o)if(l.result.status==="dirty")return a.common.issues.push(...l.ctx.common.issues),l.result;let i=o.map(l=>new ia(l.ctx.common.issues));return B(a,{code:D.invalid_union,unionErrors:i}),ee}if(a.common.async)return Promise.all(n.map(async o=>{let i={...a,common:{...a.common,issues:[]},parent:null};return{result:await o._parseAsync({data:a.data,path:a.path,parent:i}),ctx:i}})).then(r);{let o,i=[];for(let s of n){let u={...a,common:{...a.common,issues:[]},parent:null},c=s._parseSync({data:a.data,path:a.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return a.common.issues.push(...o.ctx.common.issues),o.result;let l=i.map(s=>new ia(s));return B(a,{code:D.invalid_union,unionErrors:l}),ee}}get options(){return this._def.options}};Zo.create=(e,t)=>new Zo({options:e,typeName:T.ZodUnion,...de(t)});var Qr=e=>e instanceof Vo?Qr(e.schema):e instanceof Za?Qr(e.innerType()):e instanceof Go?[e.value]:e instanceof Wo?e.options:e instanceof Jo?xe.objectValues(e.enum):e instanceof Xo?Qr(e._def.innerType):e instanceof Fo?[void 0]:e instanceof qo?[null]:e instanceof Fa?[void 0,...Qr(e.unwrap())]:e instanceof br?[null,...Qr(e.unwrap())]:e instanceof su||e instanceof Yo?Qr(e.unwrap()):e instanceof Ko?Qr(e._def.innerType):[],df=class e extends me{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==H.object)return B(a,{code:D.invalid_type,expected:H.object,received:a.parsedType}),ee;let n=this.discriminator,r=a.data[n],o=this.optionsMap.get(r);return o?a.common.async?o._parseAsync({data:a.data,path:a.path,parent:a}):o._parseSync({data:a.data,path:a.path,parent:a}):(B(a,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ee)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,n){let r=new Map;for(let o of a){let i=Qr(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let l of i){if(r.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);r.set(l,o)}}return new e({typeName:T.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:r,...de(n)})}};function nv(e,t){let a=yr(e),n=yr(t);if(e===t)return{valid:!0,data:e};if(a===H.object&&n===H.object){let r=xe.objectKeys(t),o=xe.objectKeys(e).filter(l=>r.indexOf(l)!==-1),i={...e,...t};for(let l of o){let s=nv(e[l],t[l]);if(!s.valid)return{valid:!1};i[l]=s.data}return{valid:!0,data:i}}else if(a===H.array&&n===H.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let o=0;o<e.length;o++){let i=e[o],l=t[o],s=nv(i,l);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}else return a===H.date&&n===H.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ho=class extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=(o,i)=>{if(uf(o)||uf(i))return ee;let l=nv(o.value,i.value);return l.valid?((cf(o)||cf(i))&&a.dirty(),{status:a.value,value:l.data}):(B(n,{code:D.invalid_intersection_types}),ee)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,i])=>r(o,i)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Ho.create=(e,t,a)=>new Ho({left:e,right:t,typeName:T.ZodIntersection,...de(a)});var xr=class e extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.array)return B(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),ee;if(n.data.length<this._def.items.length)return B(n,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;!this._def.rest&&n.data.length>this._def.items.length&&(B(n,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let o=[...n.data].map((i,l)=>{let s=this._def.items[l]||this._def.rest;return s?s._parse(new qa(n,i,n.path,l)):null}).filter(i=>!!i);return n.common.async?Promise.all(o).then(i=>Pt.mergeArray(a,i)):Pt.mergeArray(a,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};xr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new xr({items:e,typeName:T.ZodTuple,rest:null,...de(t)})};var ff=class e extends me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.object)return B(n,{code:D.invalid_type,expected:H.object,received:n.parsedType}),ee;let r=[],o=this._def.keyType,i=this._def.valueType;for(let l in n.data)r.push({key:o._parse(new qa(n,l,n.path,l)),value:i._parse(new qa(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?Pt.mergeObjectAsync(a,r):Pt.mergeObjectSync(a,r)}get element(){return this._def.valueType}static create(t,a,n){return a instanceof me?new e({keyType:t,valueType:a,typeName:T.ZodRecord,...de(n)}):new e({keyType:Vn.create(),valueType:t,typeName:T.ZodRecord,...de(a)})}},_l=class extends me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.map)return B(n,{code:D.invalid_type,expected:H.map,received:n.parsedType}),ee;let r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([l,s],u)=>({key:r._parse(new qa(n,l,n.path,[u,"key"])),value:o._parse(new qa(n,s,n.path,[u,"value"]))}));if(n.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let s of i){let u=await s.key,c=await s.value;if(u.status==="aborted"||c.status==="aborted")return ee;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}})}else{let l=new Map;for(let s of i){let u=s.key,c=s.value;if(u.status==="aborted"||c.status==="aborted")return ee;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}}}};_l.create=(e,t,a)=>new _l({valueType:t,keyType:e,typeName:T.ZodMap,...de(a)});var Cl=class e extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==H.set)return B(n,{code:D.invalid_type,expected:H.set,received:n.parsedType}),ee;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(B(n,{code:D.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),a.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(B(n,{code:D.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),a.dirty());let o=this._def.valueType;function i(s){let u=new Set;for(let c of s){if(c.status==="aborted")return ee;c.status==="dirty"&&a.dirty(),u.add(c.value)}return{status:a.value,value:u}}let l=[...n.data.values()].map((s,u)=>o._parse(new qa(n,s,n.path,u)));return n.common.async?Promise.all(l).then(s=>i(s)):i(l)}min(t,a){return new e({...this._def,minSize:{value:t,message:V.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:V.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Cl.create=(e,t)=>new Cl({valueType:e,minSize:null,maxSize:null,typeName:T.ZodSet,...de(t)});var pf=class e extends me{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==H.function)return B(a,{code:D.invalid_type,expected:H.function,received:a.parsedType}),ee;function n(l,s){return lu({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,bl(),Yr].filter(u=>!!u),issueData:{code:D.invalid_arguments,argumentsError:s}})}function r(l,s){return lu({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,bl(),Yr].filter(u=>!!u),issueData:{code:D.invalid_return_type,returnTypeError:s}})}let o={errorMap:a.common.contextualErrorMap},i=a.data;if(this._def.returns instanceof Wn){let l=this;return Ft(async function(...s){let u=new ia([]),c=await l._def.args.parseAsync(s,o).catch(f=>{throw u.addIssue(n(s,f)),u}),d=await Reflect.apply(i,this,c);return await l._def.returns._def.type.parseAsync(d,o).catch(f=>{throw u.addIssue(r(d,f)),u})})}else{let l=this;return Ft(function(...s){let u=l._def.args.safeParse(s,o);if(!u.success)throw new ia([n(s,u.error)]);let c=Reflect.apply(i,this,u.data),d=l._def.returns.safeParse(c,o);if(!d.success)throw new ia([r(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:xr.create(t).rest(en.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,n){return new e({args:t||xr.create([]).rest(en.create()),returns:a||en.create(),typeName:T.ZodFunction,...de(n)})}},Vo=class extends me{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};Vo.create=(e,t)=>new Vo({getter:e,typeName:T.ZodLazy,...de(t)});var Go=class extends me{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return B(a,{received:a.data,code:D.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:t.data}}get value(){return this._def.value}};Go.create=(e,t)=>new Go({value:e,typeName:T.ZodLiteral,...de(t)});function ZC(e,t){return new Wo({values:e,typeName:T.ZodEnum,...de(t)})}var Wo=class e extends me{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),n=this._def.values;return B(a,{expected:xe.joinValues(n),received:a.parsedType,code:D.invalid_type}),ee}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),n=this._def.values;return B(a,{received:a.data,code:D.invalid_enum_value,options:n}),ee}return Ft(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...a})}};Wo.create=ZC;var Jo=class extends me{_parse(t){let a=xe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==H.string&&n.parsedType!==H.number){let r=xe.objectValues(a);return B(n,{expected:xe.joinValues(r),received:n.parsedType,code:D.invalid_type}),ee}if(this._cache||(this._cache=new Set(xe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=xe.objectValues(a);return B(n,{received:n.data,code:D.invalid_enum_value,options:r}),ee}return Ft(t.data)}get enum(){return this._def.values}};Jo.create=(e,t)=>new Jo({values:e,typeName:T.ZodNativeEnum,...de(t)});var Wn=class extends me{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==H.promise&&a.common.async===!1)return B(a,{code:D.invalid_type,expected:H.promise,received:a.parsedType}),ee;let n=a.parsedType===H.promise?a.data:Promise.resolve(a.data);return Ft(n.then(r=>this._def.type.parseAsync(r,{path:a.path,errorMap:a.common.contextualErrorMap})))}};Wn.create=(e,t)=>new Wn({type:e,typeName:T.ZodPromise,...de(t)});var Za=class extends me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===T.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:i=>{B(n,i),i.fatal?a.abort():a.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),r.type==="preprocess"){let i=r.transform(n.data,o);if(n.common.async)return Promise.resolve(i).then(async l=>{if(a.value==="aborted")return ee;let s=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return s.status==="aborted"?ee:s.status==="dirty"?Po(s.value):a.value==="dirty"?Po(s.value):s});{if(a.value==="aborted")return ee;let l=this._def.schema._parseSync({data:i,path:n.path,parent:n});return l.status==="aborted"?ee:l.status==="dirty"?Po(l.value):a.value==="dirty"?Po(l.value):l}}if(r.type==="refinement"){let i=l=>{let s=r.refinement(l,o);if(n.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?ee:(l.status==="dirty"&&a.dirty(),i(l.value),{status:a.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?ee:(l.status==="dirty"&&a.dirty(),i(l.value).then(()=>({status:a.value,value:l.value}))))}if(r.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Hn(i))return ee;let l=r.transform(i.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Hn(i)?Promise.resolve(r.transform(i.value,o)).then(l=>({status:a.value,value:l})):ee);xe.assertNever(r)}};Za.create=(e,t,a)=>new Za({schema:e,typeName:T.ZodEffects,effect:t,...de(a)});Za.createWithPreprocess=(e,t,a)=>new Za({schema:t,effect:{type:"preprocess",transform:e},typeName:T.ZodEffects,...de(a)});var Fa=class extends me{_parse(t){return this._getType(t)===H.undefined?Ft(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Fa.create=(e,t)=>new Fa({innerType:e,typeName:T.ZodOptional,...de(t)});var br=class extends me{_parse(t){return this._getType(t)===H.null?Ft(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};br.create=(e,t)=>new br({innerType:e,typeName:T.ZodNullable,...de(t)});var Xo=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return a.parsedType===H.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};Xo.create=(e,t)=>new Xo({innerType:e,typeName:T.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...de(t)});var Ko=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n={...a,common:{...a.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Sl(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ia(n.common.issues)},input:n.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ia(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Ko.create=(e,t)=>new Ko({innerType:e,typeName:T.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...de(t)});var Ll=class extends me{_parse(t){if(this._getType(t)!==H.nan){let n=this._getOrReturnCtx(t);return B(n,{code:D.invalid_type,expected:H.nan,received:n.parsedType}),ee}return{status:"valid",value:t.data}}};Ll.create=e=>new Ll({typeName:T.ZodNaN,...de(e)});var J$=Symbol("zod_brand"),su=class extends me{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return this._def.type._parse({data:n,path:a.path,parent:a})}unwrap(){return this._def.type}},uu=class e extends me{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ee:o.status==="dirty"?(a.dirty(),Po(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{let r=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?ee:r.status==="dirty"?(a.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:n.path,parent:n})}}static create(t,a){return new e({in:t,out:a,typeName:T.ZodPipeline})}},Yo=class extends me{_parse(t){let a=this._def.innerType._parse(t),n=r=>(Hn(r)&&(r.value=Object.freeze(r.value)),r);return Sl(a)?a.then(r=>n(r)):n(a)}unwrap(){return this._def.innerType}};Yo.create=(e,t)=>new Yo({innerType:e,typeName:T.ZodReadonly,...de(t)});function jC(e,t){let a=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof a=="string"?{message:a}:a}function HC(e,t={},a){return e?Gn.create().superRefine((n,r)=>{let o=e(n);if(o instanceof Promise)return o.then(i=>{if(!i){let l=jC(t,n),s=l.fatal??a??!0;r.addIssue({code:"custom",...l,fatal:s})}});if(!o){let i=jC(t,n),l=i.fatal??a??!0;r.addIssue({code:"custom",...i,fatal:l})}}):Gn.create()}var X$={object:la.lazycreate},T;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(T||(T={}));var K$=(e,t={message:`Input not instance of ${e.name}`})=>HC(a=>a instanceof e,t),VC=Vn.create,GC=No.create,Y$=Ll.create,Q$=Uo.create,WC=jo.create,e2=Bo.create,t2=Il.create,a2=Fo.create,r2=qo.create,n2=Gn.create,o2=en.create,i2=rr.create,l2=kl.create,s2=tn.create,u2=la.create,c2=la.strictCreate,d2=Zo.create,f2=df.create,p2=Ho.create,m2=xr.create,h2=ff.create,g2=_l.create,v2=Cl.create,y2=pf.create,x2=Vo.create,b2=Go.create,S2=Wo.create,w2=Jo.create,I2=Wn.create,k2=Za.create,_2=Fa.create,C2=br.create,L2=Za.createWithPreprocess,T2=uu.create,A2=()=>VC().optional(),E2=()=>GC().optional(),M2=()=>WC().optional(),O2={string:(e=>Vn.create({...e,coerce:!0})),number:(e=>No.create({...e,coerce:!0})),boolean:(e=>jo.create({...e,coerce:!0})),bigint:(e=>Uo.create({...e,coerce:!0})),date:(e=>Bo.create({...e,coerce:!0}))};var z2=ee;var at=ov;var XC=Symbol("Let zodToJsonSchema decide on which parser to use");var JC={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},KC=e=>typeof e=="string"?{...JC,name:e}:{...JC,...e};var YC=e=>{let t=KC(e),a=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:a,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}};function iv(e,t,a,n){n?.errorMessages&&a&&(e.errorMessage={...e.errorMessage,[t]:a})}function _e(e,t,a,n,r){e[t]=a,iv(e,t,n,r)}var mf=(e,t)=>{let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];a++);return[(e.length-a).toString(),...t.slice(a)].join("/")};function rt(e){if(e.target!=="openAi")return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?mf(t,e.currentPath):t.join("/")}}function QC(e,t){let a={type:"array"};return e.type?._def&&e.type?._def?.typeName!==T.ZodAny&&(a.items=ae(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&_e(a,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&_e(a,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(_e(a,"minItems",e.exactLength.value,e.exactLength.message,t),_e(a,"maxItems",e.exactLength.value,e.exactLength.message,t)),a}function eL(e,t){let a={type:"integer",format:"int64"};if(!e.checks)return a;for(let n of e.checks)switch(n.kind){case"min":t.target==="jsonSchema7"?n.inclusive?_e(a,"minimum",n.value,n.message,t):_e(a,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(a.exclusiveMinimum=!0),_e(a,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?_e(a,"maximum",n.value,n.message,t):_e(a,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(a.exclusiveMaximum=!0),_e(a,"maximum",n.value,n.message,t));break;case"multipleOf":_e(a,"multipleOf",n.value,n.message,t);break}return a}function tL(){return{type:"boolean"}}function hf(e,t){return ae(e.type._def,t)}var aL=(e,t)=>ae(e.innerType._def,t);function lv(e,t,a){let n=a??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((r,o)=>lv(e,t,r))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return D2(e,t)}}var D2=(e,t)=>{let a={type:"integer",format:"unix-time"};if(t.target==="openApi3")return a;for(let n of e.checks)switch(n.kind){case"min":_e(a,"minimum",n.value,n.message,t);break;case"max":_e(a,"maximum",n.value,n.message,t);break}return a};function rL(e,t){return{...ae(e.innerType._def,t),default:e.defaultValue()}}function nL(e,t){return t.effectStrategy==="input"?ae(e.schema._def,t):rt(t)}function oL(e){return{type:"string",enum:Array.from(e.values)}}var R2=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function iL(e,t){let a=[ae(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),ae(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),n=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,r=[];return a.forEach(o=>{if(R2(o))r.push(...o.allOf),o.unevaluatedProperties===void 0&&(n=void 0);else{let i=o;if("additionalProperties"in o&&o.additionalProperties===!1){let{additionalProperties:l,...s}=o;i=s}else n=void 0;r.push(i)}}),r.length?{allOf:r,...n}:void 0}function lL(e,t){let a=typeof e.value;return a!=="bigint"&&a!=="number"&&a!=="boolean"&&a!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:a==="bigint"?"integer":a,enum:[e.value]}:{type:a==="bigint"?"integer":a,const:e.value}}var sv,nr={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(sv===void 0&&(sv=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),sv),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function gf(e,t){let a={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":_e(a,"minLength",typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,n.message,t);break;case"max":_e(a,"maxLength",typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value,n.message,t);break;case"email":switch(t.emailStrategy){case"format:email":or(a,"email",n.message,t);break;case"format:idn-email":or(a,"idn-email",n.message,t);break;case"pattern:zod":Wt(a,nr.email,n.message,t);break}break;case"url":or(a,"uri",n.message,t);break;case"uuid":or(a,"uuid",n.message,t);break;case"regex":Wt(a,n.regex,n.message,t);break;case"cuid":Wt(a,nr.cuid,n.message,t);break;case"cuid2":Wt(a,nr.cuid2,n.message,t);break;case"startsWith":Wt(a,RegExp(`^${uv(n.value,t)}`),n.message,t);break;case"endsWith":Wt(a,RegExp(`${uv(n.value,t)}$`),n.message,t);break;case"datetime":or(a,"date-time",n.message,t);break;case"date":or(a,"date",n.message,t);break;case"time":or(a,"time",n.message,t);break;case"duration":or(a,"duration",n.message,t);break;case"length":_e(a,"minLength",typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,n.message,t),_e(a,"maxLength",typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value,n.message,t);break;case"includes":{Wt(a,RegExp(uv(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&or(a,"ipv4",n.message,t),n.version!=="v4"&&or(a,"ipv6",n.message,t);break}case"base64url":Wt(a,nr.base64url,n.message,t);break;case"jwt":Wt(a,nr.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&Wt(a,nr.ipv4Cidr,n.message,t),n.version!=="v4"&&Wt(a,nr.ipv6Cidr,n.message,t);break}case"emoji":Wt(a,nr.emoji(),n.message,t);break;case"ulid":{Wt(a,nr.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{or(a,"binary",n.message,t);break}case"contentEncoding:base64":{_e(a,"contentEncoding","base64",n.message,t);break}case"pattern:zod":{Wt(a,nr.base64,n.message,t);break}}break}case"nanoid":Wt(a,nr.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function uv(e,t){return t.patternStrategy==="escape"?P2(e):e}var $2=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function P2(e){let t="";for(let a=0;a<e.length;a++)$2.has(e[a])||(t+="\\"),t+=e[a];return t}function or(e,t,a,n){e.format||e.anyOf?.some(r=>r.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&n.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...a&&n.errorMessages&&{errorMessage:{format:a}}})):_e(e,"format",t,a,n)}function Wt(e,t,a,n){e.pattern||e.allOf?.some(r=>r.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&n.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:sL(t,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):_e(e,"pattern",sL(t,n),a,n)}function sL(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let a={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=a.i?e.source.toLowerCase():e.source,r="",o=!1,i=!1,l=!1;for(let s=0;s<n.length;s++){if(o){r+=n[s],o=!1;continue}if(a.i){if(i){if(n[s].match(/[a-z]/)){l?(r+=n[s],r+=`${n[s-2]}-${n[s]}`.toUpperCase(),l=!1):n[s+1]==="-"&&n[s+2]?.match(/[a-z]/)?(r+=n[s],l=!0):r+=`${n[s]}${n[s].toUpperCase()}`;continue}}else if(n[s].match(/[a-z]/)){r+=`[${n[s]}${n[s].toUpperCase()}]`;continue}}if(a.m){if(n[s]==="^"){r+=`(^|(?<=[\r
|
|
13
13
|
]))`;continue}else if(n[s]==="$"){r+=`($|(?=[\r
|
|
14
14
|
]))`;continue}}if(a.s&&n[s]==="."){r+=i?`${n[s]}\r
|
|
15
15
|
`:`[${n[s]}\r
|
|
16
|
-
]`;continue}r+=n[s],n[s]==="\\"?o=!0:i&&n[s]==="]"?i=!1:!i&&n[s]==="["&&(i=!0)}try{new RegExp(r)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return r}function mf(e,t){if(t.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),t.target==="openApi3"&&e.keyType?._def.typeName===T.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??tt(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let a={type:"object",additionalProperties:ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if(t.target==="openApi3")return a;if(e.keyType?._def.typeName===T.ZodString&&e.keyType._def.checks?.length){let{type:n,...r}=pf(e.keyType._def,t);return{...a,propertyNames:r}}else{if(e.keyType?._def.typeName===T.ZodEnum)return{...a,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===T.ZodBranded&&e.keyType._def.type._def.typeName===T.ZodString&&e.keyType._def.type._def.checks?.length){let{type:n,...r}=ff(e.keyType._def,t);return{...a,propertyNames:r}}}return a}function iL(e,t){if(t.mapStrategy==="record")return mf(e,t);let a=ae(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||tt(t),n=ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||tt(t);return{type:"array",maxItems:125,items:{type:"array",items:[a,n],minItems:2,maxItems:2}}}function lL(e){let t=e.values,n=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),r=Array.from(new Set(n.map(o=>typeof o)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:n}}function sL(e){return e.target==="openAi"?void 0:{not:tt({...e,currentPath:[...e.currentPath,"not"]})}}function uL(e){return e.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var lu={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function dL(e,t){if(t.target==="openApi3")return cL(e,t);let a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every(n=>n._def.typeName in lu&&(!n._def.checks||!n._def.checks.length))){let n=a.reduce((r,o)=>{let i=lu[o._def.typeName];return i&&!r.includes(i)?[...r,i]:r},[]);return{type:n.length>1?n:n[0]}}else if(a.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=a.reduce((r,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...r,i];case"bigint":return[...r,"integer"];case"object":if(o._def.value===null)return[...r,"null"];default:return r}},[]);if(n.length===a.length){let r=n.filter((o,i,l)=>l.indexOf(o)===i);return{type:r.length>1?r:r[0],enum:a.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(a.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:a.reduce((n,r)=>[...n,...r._def.values.filter(o=>!n.includes(o))],[])};return cL(e,t)}var cL=(e,t)=>{let a=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,r)=>ae(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return a.length?{anyOf:a}:void 0};function fL(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target==="openApi3"?{type:lu[e.innerType._def.typeName],nullable:!0}:{type:[lu[e.innerType._def.typeName],"null"]};if(t.target==="openApi3"){let n=ae(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let a=ae(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function pL(e,t){let a={type:"number"};if(!e.checks)return a;for(let n of e.checks)switch(n.kind){case"int":a.type="integer",av(a,"type",n.message,t);break;case"min":t.target==="jsonSchema7"?n.inclusive?ke(a,"minimum",n.value,n.message,t):ke(a,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(a.exclusiveMinimum=!0),ke(a,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?ke(a,"maximum",n.value,n.message,t):ke(a,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(a.exclusiveMaximum=!0),ke(a,"maximum",n.value,n.message,t));break;case"multipleOf":ke(a,"multipleOf",n.value,n.message,t);break}return a}function mL(e,t){let a=t.target==="openAi",n={type:"object",properties:{}},r=[],o=e.shape();for(let l in o){let s=o[l];if(s===void 0||s._def===void 0)continue;let u=z2(s);u&&a&&(s._def.typeName==="ZodOptional"&&(s=s._def.innerType),s.isNullable()||(s=s.nullable()),u=!1);let c=ae(s._def,{...t,currentPath:[...t.currentPath,"properties",l],propertyPath:[...t.currentPath,"properties",l]});c!==void 0&&(n.properties[l]=c,u||r.push(l))}r.length&&(n.required=r);let i=O2(e,t);return i!==void 0&&(n.additionalProperties=i),n}function O2(e,t){if(e.catchall._def.typeName!=="ZodNever")return ae(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function z2(e){try{return e.isOptional()}catch{return!0}}var hL=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return ae(e.innerType._def,t);let a=ae(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return a?{anyOf:[{not:tt(t)},a]}:tt(t)};var gL=(e,t)=>{if(t.pipeStrategy==="input")return ae(e.in._def,t);if(t.pipeStrategy==="output")return ae(e.out._def,t);let a=ae(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=ae(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",a?"1":"0"]});return{allOf:[a,n].filter(r=>r!==void 0)}};function vL(e,t){return ae(e.type._def,t)}function yL(e,t){let n={type:"array",uniqueItems:!0,items:ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&ke(n,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&ke(n,"maxItems",e.maxSize.value,e.maxSize.message,t),n}function xL(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((a,n)=>ae(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[]),additionalItems:ae(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((a,n)=>ae(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[])}}function bL(e){return{not:tt(e)}}function SL(e){return tt(e)}var wL=(e,t)=>ae(e.innerType._def,t);var IL=(e,t,a)=>{switch(t){case T.ZodString:return pf(e,a);case T.ZodNumber:return pL(e,a);case T.ZodObject:return mL(e,a);case T.ZodBigInt:return K0(e,a);case T.ZodBoolean:return Y0();case T.ZodDate:return rv(e,a);case T.ZodUndefined:return bL(a);case T.ZodNull:return uL(a);case T.ZodArray:return W0(e,a);case T.ZodUnion:case T.ZodDiscriminatedUnion:return dL(e,a);case T.ZodIntersection:return rL(e,a);case T.ZodTuple:return xL(e,a);case T.ZodRecord:return mf(e,a);case T.ZodLiteral:return nL(e,a);case T.ZodEnum:return aL(e);case T.ZodNativeEnum:return lL(e);case T.ZodNullable:return fL(e,a);case T.ZodOptional:return hL(e,a);case T.ZodMap:return iL(e,a);case T.ZodSet:return yL(e,a);case T.ZodLazy:return()=>e.getter()._def;case T.ZodPromise:return vL(e,a);case T.ZodNaN:case T.ZodNever:return sL(a);case T.ZodEffects:return tL(e,a);case T.ZodAny:return tt(a);case T.ZodUnknown:return SL(a);case T.ZodDefault:return eL(e,a);case T.ZodBranded:return ff(e,a);case T.ZodReadonly:return wL(e,a);case T.ZodCatch:return Q0(e,a);case T.ZodPipeline:return gL(e,a);case T.ZodFunction:case T.ZodVoid:case T.ZodSymbol:return;default:return(n=>{})(t)}};function ae(e,t,a=!1){let n=t.seen.get(e);if(t.override){let l=t.override?.(e,t,n,a);if(l!==G0)return l}if(n&&!a){let l=D2(n,t);if(l!==void 0)return l}let r={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,r);let o=IL(e,e.typeName,t),i=typeof o=="function"?ae(o(),t):o;if(i&&R2(e,t,i),t.postProcess){let l=t.postProcess(i,e,t);return r.jsonSchema=i,l}return r.jsonSchema=i,i}var D2=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:df(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((a,n)=>t.currentPath[n]===a)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),tt(t)):t.$refStrategy==="seen"?tt(t):void 0}},R2=(e,t,a)=>(e.description&&(a.description=e.description,t.markdownDescription&&(a.markdownDescription=e.description)),a);var iv=(e,t)=>{let a=X0(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((s,[u,c])=>({...s,[u]:ae(c._def,{...a,currentPath:[...a.basePath,a.definitionPath,u]},!0)??tt(a)}),{}):void 0,r=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=ae(e._def,r===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,r]},!1)??tt(a),i=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;i!==void 0&&(o.title=i),a.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[a.openAiAnyTypeName]||(n[a.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:a.$refStrategy==="relative"?"1":[...a.basePath,a.definitionPath,a.openAiAnyTypeName].join("/")}}));let l=r===void 0?n?{...o,[a.definitionPath]:n}:o:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,r].join("/"),[a.definitionPath]:{...n,[r]:o}};return a.target==="jsonSchema7"?l.$schema="http://json-schema.org/draft-07/schema#":(a.target==="jsonSchema2019-09"||a.target==="openAi")&&(l.$schema="https://json-schema.org/draft/2019-09/schema#"),a.target==="openAi"&&("anyOf"in l||"oneOf"in l||"allOf"in l||"type"in l&&Array.isArray(l.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),l};var $2=iv;async function hf({api:e,threadId:t,widgets:a,onAuthError:n}){let r=a.map(({widgetType:u,schema:c,enrich:d})=>{let p=c.extend({widgetType:H0.literal(u)});return{widgetType:u,schema:$2(p),enrich:d}}),{baseUrl:o,headers:i={}}=e,l=u=>fetch(`${o}/chat/widgets`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`,"thread-id":t,...i},body:JSON.stringify({widgetSchemas:r})}),s=await l(e.token);if(s.status===401&&n){let u=await n();u&&(s=await l(u))}if(!s.ok){let u=await s.text().catch(()=>s.statusText);throw new Error(`Failed to register chat widgets: ${s.status} ${u}`)}}var vf=Le(Nt());var kL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,n)=>n?n.toUpperCase():a.toLowerCase()),lv=e=>{let t=P2(e);return t.charAt(0).toUpperCase()+t.slice(1)},gf=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim(),_L=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var su=Le(Nt());var CL={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var LL=(0,su.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:r="",children:o,iconNode:i,...l},s)=>(0,su.createElement)("svg",{ref:s,...CL,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:gf("lucide",r),...!o&&!_L(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,c])=>(0,su.createElement)(u,c)),...Array.isArray(o)?o:[o]]));var Ct=(e,t)=>{let a=(0,vf.forwardRef)(({className:n,...r},o)=>(0,vf.createElement)(LL,{ref:o,iconNode:t,className:gf(`lucide-${kL(lv(e))}`,`lucide-${e}`,n),...r}));return a.displayName=lv(e),a};var N2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wo=Ct("chevron-right",N2);var U2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],Vn=Ct("circle-stop",U2);var j2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ko=Ct("message-square",j2);var B2=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],uu=Ct("mic-off",B2);var F2=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],cu=Ct("mic",F2);var q2=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],du=Ct("send",q2);var Z2=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],fu=Ct("thumbs-up",Z2);var H2=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],pu=Ct("thumbs-down",H2);var V2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mu=Ct("x",V2);var Ce=Le(Nt(),1);function TL(e,t){let a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var G2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,X2={};function yf(e,t){return((t||X2).jsx?J2:G2).test(e)}var W2=/[ \t\n\f\r]/g;function sv(e){return typeof e=="object"?e.type==="text"?AL(e.value):!1:AL(e)}function AL(e){return e.replace(W2,"")===""}var Qr=class{constructor(t,a,n){this.normal=a,this.property=t,n&&(this.space=n)}};Qr.prototype.normal={};Qr.prototype.property={};Qr.prototype.space=void 0;function uv(e,t){let a={},n={};for(let r of e)Object.assign(a,r.property),Object.assign(n,r.normal);return new Qr(a,n,t)}function hu(e){return e.toLowerCase()}var Lt=class{constructor(t,a){this.attribute=a,this.property=t}};Lt.prototype.attribute="";Lt.prototype.booleanish=!1;Lt.prototype.boolean=!1;Lt.prototype.commaOrSpaceSeparated=!1;Lt.prototype.commaSeparated=!1;Lt.prototype.defined=!1;Lt.prototype.mustUseProperty=!1;Lt.prototype.number=!1;Lt.prototype.overloadedBoolean=!1;Lt.prototype.property="";Lt.prototype.spaceSeparated=!1;Lt.prototype.space=void 0;var gu={};lr(gu,{boolean:()=>ue,booleanish:()=>lt,commaOrSpaceSeparated:()=>ia,commaSeparated:()=>Gn,number:()=>R,overloadedBoolean:()=>xf,spaceSeparated:()=>Re});var K2=0,ue=Yo(),lt=Yo(),xf=Yo(),R=Yo(),Re=Yo(),Gn=Yo(),ia=Yo();function Yo(){return 2**++K2}var cv=Object.keys(gu),Qo=class extends Lt{constructor(t,a,n,r){let o=-1;if(super(t,a),EL(this,"space",r),typeof n=="number")for(;++o<cv.length;){let i=cv[o];EL(this,cv[o],(n&gu[i])===gu[i])}}};Qo.prototype.defined=!0;function EL(e,t,a){a&&(e[t]=a)}function Fa(e){let t={},a={};for(let[n,r]of Object.entries(e.properties)){let o=new Qo(n,e.transform(e.attributes||{},n),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,a[hu(n)]=n,a[hu(o.attribute)]=n}return new Qr(t,a,e.space)}var dv=Fa({properties:{ariaActiveDescendant:null,ariaAtomic:lt,ariaAutoComplete:null,ariaBusy:lt,ariaChecked:lt,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:Re,ariaCurrent:null,ariaDescribedBy:Re,ariaDetails:null,ariaDisabled:lt,ariaDropEffect:Re,ariaErrorMessage:null,ariaExpanded:lt,ariaFlowTo:Re,ariaGrabbed:lt,ariaHasPopup:null,ariaHidden:lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re,ariaLevel:R,ariaLive:null,ariaModal:lt,ariaMultiLine:lt,ariaMultiSelectable:lt,ariaOrientation:null,ariaOwns:Re,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:lt,ariaReadOnly:lt,ariaRelevant:null,ariaRequired:lt,ariaRoleDescription:Re,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:lt,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bf(e,t){return t in e?e[t]:t}function Sf(e,t){return bf(e,t.toLowerCase())}var ML=Fa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gn,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:Re,autoFocus:ue,autoPlay:ue,blocking:Re,capture:null,charSet:null,checked:ue,cite:null,className:Re,cols:R,colSpan:null,content:null,contentEditable:lt,controls:ue,controlsList:Re,coords:R|Gn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:xf,draggable:lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:Re,height:R,hidden:xf,high:R,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:Re,itemRef:Re,itemScope:ue,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ue,optimum:R,pattern:null,ping:Re,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:Re,required:ue,reversed:ue,rows:R,rowSpan:R,sandbox:Re,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootClonable:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:lt,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:lt,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:Sf});var OL=Fa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ia,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:Re,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Gn,g2:Gn,glyphName:Gn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:ia,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ia,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ia,rev:ia,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ia,requiredFeatures:ia,requiredFonts:ia,requiredFormats:ia,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:ia,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ia,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ia,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bf});var fv=Fa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var pv=Fa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sf});var mv=Fa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var hv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Y2=/[A-Z]/g,zL=/-[a-z]/g,Q2=/^data[-\w.:]+$/i;function gv(e,t){let a=hu(t),n=t,r=Lt;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&Q2.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(zL,tP);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!zL.test(o)){let i=o.replace(Y2,eP);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}r=Qo}return new r(n,t)}function eP(e){return"-"+e.toLowerCase()}function tP(e){return e.charAt(1).toUpperCase()}var DL=uv([dv,ML,fv,pv,mv],"html"),wf=uv([dv,OL,fv,pv,mv],"svg");function RL(e){return e.join(" ").trim()}var WL=Le(VL(),1);var kf=GL("end"),_l=GL("start");function GL(e){return t;function t(a){let n=a&&a.position&&a.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function xv(e){let t=_l(e),a=kf(e);if(t&&a)return{start:t,end:a}}function Jn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?JL(e.position):"start"in e||"end"in e?JL(e):"line"in e||"column"in e?bv(e):""}function bv(e){return XL(e&&e.line)+":"+XL(e&&e.column)}function JL(e){return bv(e&&e.start)+"-"+bv(e&&e.end)}function XL(e){return e&&typeof e=="number"?e:1}var ft=class extends Error{constructor(t,a,n){super(),typeof a=="string"&&(n=a,a=void 0);let r="",o={},i=!1;if(a&&("line"in a&&"column"in a?o={place:a}:"start"in a&&"end"in a?o={place:a}:"type"in a?o={ancestors:[a],place:a.position}:o={...a}),typeof t=="string"?r=t:!o.cause&&t&&(i=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let s=n.indexOf(":");s===-1?o.ruleId=n:(o.source=n.slice(0,s),o.ruleId=n.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){let s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}let l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Jn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ft.prototype.file="";ft.prototype.name="";ft.prototype.reason="";ft.prototype.message="";ft.prototype.stack="";ft.prototype.column=void 0;ft.prototype.line=void 0;ft.prototype.ancestors=void 0;ft.prototype.cause=void 0;ft.prototype.fatal=void 0;ft.prototype.place=void 0;ft.prototype.ruleId=void 0;ft.prototype.source=void 0;var Sv={}.hasOwnProperty,LP=new Map,TP=/[A-Z]/g,AP=new Set(["table","tbody","thead","tfoot","tr"]),EP=new Set(["td","th"]),KL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wv(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let a=t.filePath||void 0,n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=NP(a,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=PP(a,t.jsx,t.jsxs)}let r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?wf:DL,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=YL(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function YL(e,t,a){if(t.type==="element")return MP(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return OP(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return DP(e,t,a);if(t.type==="mdxjsEsm")return zP(e,t);if(t.type==="root")return RP(e,t,a);if(t.type==="text")return $P(e,t)}function MP(e,t,a){let n=e.schema,r=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=wf,e.schema=r),e.ancestors.push(t);let o=eT(e,t.tagName,!1),i=UP(e,t),l=kv(e,t);return AP.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!sv(s):!0})),QL(e,i,o,t),Iv(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function OP(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}yu(e,t.position)}function zP(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);yu(e,t.position)}function DP(e,t,a){let n=e.schema,r=n;t.name==="svg"&&n.space==="html"&&(r=wf,e.schema=r),e.ancestors.push(t);let o=t.name===null?e.Fragment:eT(e,t.name,!0),i=jP(e,t),l=kv(e,t);return QL(e,i,o,t),Iv(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function RP(e,t,a){let n={};return Iv(n,kv(e,t)),e.create(t,e.Fragment,n,a)}function $P(e,t){return t.value}function QL(e,t,a,n){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=n)}function Iv(e,t){if(t.length>0){let a=t.length>1?t:t[0];a&&(e.children=a)}}function PP(e,t,a){return n;function n(r,o,i,l){let u=Array.isArray(i.children)?a:t;return l?u(o,i,l):u(o,i)}}function NP(e,t){return a;function a(n,r,o,i){let l=Array.isArray(o.children),s=_l(n);return t(r,o,i,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function UP(e,t){let a={},n,r;for(r in t.properties)if(r!=="children"&&Sv.call(t.properties,r)){let o=BP(e,r,t.properties[r]);if(o){let[i,l]=o;e.tableCellAlignToStyle&&i==="align"&&typeof l=="string"&&EP.has(t.tagName)?n=l:a[i]=l}}if(n){let o=a.style||(a.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return a}function jP(e,t){let a={};for(let n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){let o=n.data.estree.body[0];o.type;let i=o.expression;i.type;let l=i.properties[0];l.type,Object.assign(a,e.evaluater.evaluateExpression(l.argument))}else yu(e,t.position);else{let r=n.name,o;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){let l=n.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else yu(e,t.position);else o=n.value===null?!0:n.value;a[r]=o}return a}function kv(e,t){let a=[],n=-1,r=e.passKeys?new Map:LP;for(;++n<t.children.length;){let o=t.children[n],i;if(e.passKeys){let s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){let u=r.get(s)||0;i=s+"-"+u,r.set(s,u+1)}}let l=YL(e,o,i);l!==void 0&&a.push(l)}return a}function BP(e,t,a){let n=gv(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=n.commaSeparated?TL(a):RL(a)),n.property==="style"){let r=typeof a=="object"?a:FP(e,String(a));return e.stylePropertyNameCase==="css"&&(r=qP(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&n.space?hv[n.property]||n.property:n.attribute,a]}}function FP(e,t){try{return(0,WL.default)(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let n=a,r=new ft("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=KL+"#cannot-parse-style-attribute",r}}function eT(e,t,a){let n;if(!a)n={type:"Literal",value:t};else if(t.includes(".")){let r=t.split("."),o=-1,i;for(;++o<r.length;){let l=yf(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};i=i?{type:"MemberExpression",object:i,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}n=i}else n=yf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){let r=n.value;return Sv.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(n);yu(e)}function yu(e,t){let a=new ft("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=KL+"#cannot-handle-mdx-estrees-without-createevaluater",a}function qP(e){let t={},a;for(a in e)Sv.call(e,a)&&(t[ZP(a)]=e[a]);return t}function ZP(e){let t=e.replace(TP,HP);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function HP(e){return"-"+e.toLowerCase()}var xu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var El=Le(jt(),1),A1=Le(Nt(),1);var JP={};function ti(e,t){let a=t||JP,n=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,r=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return oT(e,n,r)}function oT(e,t,a){if(XP(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nT(e.children,t,a)}return Array.isArray(e)?nT(e,t,a):""}function nT(e,t,a){let n=[],r=-1;for(;++r<e.length;)n[r]=oT(e[r],t,a);return n.join("")}function XP(e){return!!(e&&typeof e=="object")}var iT=document.createElement("i");function Cl(e){let t="&"+e+";";iT.innerHTML=t;let a=iT.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function pt(e,t,a,n){let r=e.length,o=0,i;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,a=a>0?a:0,n.length<1e4)i=Array.from(n),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);o<n.length;)i=n.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function Gt(e,t){return e.length>0?(pt(e,e.length,0,t),e):t}var lT={}.hasOwnProperty;function Cf(e){let t={},a=-1;for(;++a<e.length;)WP(t,e[a]);return t}function WP(e,t){let a;for(a in t){let r=(lT.call(e,a)?e[a]:void 0)||(e[a]={}),o=t[a],i;if(o)for(i in o){lT.call(r,i)||(r[i]=[]);let l=o[i];KP(r[i],Array.isArray(l)?l:l?[l]:[])}}}function KP(e,t){let a=-1,n=[];for(;++a<t.length;)(t[a].add==="after"?e:n).push(t[a]);pt(e,0,0,n)}function Lf(e,t){let a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"\uFFFD":String.fromCodePoint(a)}function Bt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var St=Xn(/[A-Za-z]/),st=Xn(/[\dA-Za-z]/),sT=Xn(/[#-'*+\--9=?A-Z^-~]/);function ai(e){return e!==null&&(e<32||e===127)}var bu=Xn(/\d/),uT=Xn(/[\dA-Fa-f]/),cT=Xn(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function ge(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}var ri=Xn(/\p{P}|\p{S}/u),yr=Xn(/\s/);function Xn(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function qa(e){let t=[],a=-1,n=0,r=0;for(;++a<e.length;){let o=e.charCodeAt(a),i="";if(o===37&&st(e.charCodeAt(a+1))&&st(e.charCodeAt(a+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){let l=e.charCodeAt(a+1);o<56320&&l>56319&&l<57344?(i=String.fromCharCode(o,l),r=1):i="\uFFFD"}else i=String.fromCharCode(o);i&&(t.push(e.slice(n,a),encodeURIComponent(i)),n=a+r+1,i=""),r&&(a+=r,r=0)}return t.join("")+e.slice(n)}function K(e,t,a,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return i;function i(s){return Q(s)?(e.enter(a),l(s)):t(s)}function l(s){return Q(s)&&o++<r?(e.consume(s),l):(e.exit(a),t(s))}}var dT={tokenize:YP};function YP(e){let t=e.attempt(this.parser.constructs.contentInitial,n,r),a;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),K(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),o(l)}function o(l){let s=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=s),a=s,i(l)}function i(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return q(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),i)}}var pT={tokenize:QP},fT={tokenize:eN};function QP(e){let t=this,a=[],n=0,r,o,i;return l;function l(g){if(n<a.length){let S=a[n];return t.containerState=S[1],e.attempt(S[0].continuation,s,u)(g)}return u(g)}function s(g){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();let S=t.events.length,L=S,_;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){_=t.events[L][1].end;break}v(n);let A=S;for(;A<t.events.length;)t.events[A][1].end={..._},A++;return pt(t.events,L+1,0,t.events.slice(S)),t.events.length=A,u(g)}return l(g)}function u(g){if(n===a.length){if(!r)return p(g);if(r.currentConstruct&&r.currentConstruct.concrete)return m(g);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(fT,c,d)(g)}function c(g){return r&&y(),v(n),p(g)}function d(g){return t.parser.lazy[t.now().line]=n!==a.length,i=t.now().offset,m(g)}function p(g){return t.containerState={},e.attempt(fT,f,m)(g)}function f(g){return n++,a.push([t.currentConstruct,t.containerState]),p(g)}function m(g){if(g===null){r&&y(),v(0),e.consume(g);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),x(g)}function x(g){if(g===null){b(e.exit("chunkFlow"),!0),v(0),e.consume(g);return}return q(g)?(e.consume(g),b(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(g),x)}function b(g,S){let L=t.sliceStream(g);if(S&&L.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(L),t.parser.lazy[g.start.line]){let _=r.events.length;for(;_--;)if(r.events[_][1].start.offset<i&&(!r.events[_][1].end||r.events[_][1].end.offset>i))return;let A=t.events.length,z=A,$,k;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if($){k=t.events[z][1].end;break}$=!0}for(v(n),_=A;_<t.events.length;)t.events[_][1].end={...k},_++;pt(t.events,z+1,0,t.events.slice(A)),t.events.length=_}}function v(g){let S=a.length;for(;S-- >g;){let L=a[S];t.containerState=L[1],L[0].exit.call(t,e)}a.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function eN(e,t,a){return K(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function en(e){if(e===null||ge(e)||yr(e))return 1;if(ri(e))return 2}function Wn(e,t,a){let n=[],r=-1;for(;++r<e.length;){let o=e[r].resolveAll;o&&!n.includes(o)&&(t=o(t,a),n.push(o))}return t}var Su={name:"attention",resolveAll:tN,tokenize:aN};function tN(e,t){let a=-1,n,r,o,i,l,s,u,c;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(n=a;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[n][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[a][1].start};mT(d,-s),mT(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[a][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[n][1].end={...i.start},e[a][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Gt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Gt(u,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),u=Gt(u,Wn(t.parser.constructs.insideSpan.null,e.slice(n+1,a),t)),u=Gt(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[a][1].end.offset-e[a][1].start.offset?(c=2,u=Gt(u,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,pt(e,n-1,a-n+3,u),a=n+u.length-c-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function aN(e,t){let a=this.parser.constructs.attentionMarkers.null,n=this.previous,r=en(n),o;return i;function i(s){return o=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===o)return e.consume(s),l;let u=e.exit("attentionSequence"),c=en(s),d=!c||c===2&&r||a.includes(s),p=!r||r===2&&c||a.includes(n);return u._open=!!(o===42?d:d&&(r||!p)),u._close=!!(o===42?p:p&&(c||!d)),t(s)}}function mT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var _v={name:"autolink",tokenize:rN};function rN(e,t,a){let n=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return St(f)?(e.consume(f),i):f===64?a(f):u(f)}function i(f){return f===43||f===45||f===46||st(f)?(n=1,l(f)):u(f)}function l(f){return f===58?(e.consume(f),n=0,s):(f===43||f===45||f===46||st(f))&&n++<32?(e.consume(f),l):(n=0,u(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||ai(f)?a(f):(e.consume(f),s)}function u(f){return f===64?(e.consume(f),c):sT(f)?(e.consume(f),u):a(f)}function c(f){return st(f)?d(f):a(f)}function d(f){return f===46?(e.consume(f),n=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||st(f))&&n++<63){let m=f===45?p:d;return e.consume(f),m}return a(f)}}var xr={partial:!0,tokenize:nN};function nN(e,t,a){return n;function n(o){return Q(o)?K(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||q(o)?t(o):a(o)}}var Tf={continuation:{tokenize:iN},exit:lN,name:"blockQuote",tokenize:oN};function oN(e,t,a){let n=this;return r;function r(i){if(i===62){let l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return a(i)}function o(i){return Q(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function iN(e,t,a){let n=this;return r;function r(i){return Q(i)?K(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)}function o(i){return e.attempt(Tf,t,a)(i)}}function lN(e){e.exit("blockQuote")}var Af={name:"characterEscape",tokenize:sN};function sN(e,t,a){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return cT(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(o)}}var Ef={name:"characterReference",tokenize:uN};function uN(e,t,a){let n=this,r=0,o,i;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,i=st,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=uT,c):(e.enter("characterReferenceValue"),o=7,i=bu,c(d))}function c(d){if(d===59&&r){let p=e.exit("characterReferenceValue");return i===st&&!Cl(n.sliceSerialize(p))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&r++<o?(e.consume(d),c):a(d)}}var hT={partial:!0,tokenize:dN},Mf={concrete:!0,name:"codeFenced",tokenize:cN};function cN(e,t,a){let n=this,r={partial:!0,tokenize:L},o=0,i=0,l;return s;function s(_){return u(_)}function u(_){let A=n.events[n.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(_)}function c(_){return _===l?(i++,e.consume(_),c):i<3?a(_):(e.exit("codeFencedFenceSequence"),Q(_)?K(e,d,"whitespace")(_):d(_))}function d(_){return _===null||q(_)?(e.exit("codeFencedFence"),n.interrupt?t(_):e.check(hT,x,S)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||q(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(_)):Q(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,f,"whitespace")(_)):_===96&&_===l?a(_):(e.consume(_),p)}function f(_){return _===null||q(_)?d(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===null||q(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(_)):_===96&&_===l?a(_):(e.consume(_),m)}function x(_){return e.attempt(r,S,b)(_)}function b(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),v}function v(_){return o>0&&Q(_)?K(e,y,"linePrefix",o+1)(_):y(_)}function y(_){return _===null||q(_)?e.check(hT,x,S)(_):(e.enter("codeFlowValue"),g(_))}function g(_){return _===null||q(_)?(e.exit("codeFlowValue"),y(_)):(e.consume(_),g)}function S(_){return e.exit("codeFenced"),t(_)}function L(_,A,z){let $=0;return k;function k(J){return _.enter("lineEnding"),_.consume(J),_.exit("lineEnding"),G}function G(J){return _.enter("codeFencedFence"),Q(J)?K(_,Z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):Z(J)}function Z(J){return J===l?(_.enter("codeFencedFenceSequence"),F(J)):z(J)}function F(J){return J===l?($++,_.consume(J),F):$>=i?(_.exit("codeFencedFenceSequence"),Q(J)?K(_,X,"whitespace")(J):X(J)):z(J)}function X(J){return J===null||q(J)?(_.exit("codeFencedFence"),A(J)):z(J)}}}function dN(e,t,a){let n=this;return r;function r(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}var wu={name:"codeIndented",tokenize:pN},fN={partial:!0,tokenize:mN};function pN(e,t,a){let n=this;return r;function r(u){return e.enter("codeIndented"),K(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(u):a(u)}function i(u){return u===null?s(u):q(u)?e.attempt(fN,i,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||q(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function mN(e,t,a){let n=this;return r;function r(i){return n.parser.lazy[n.now().line]?a(i):q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):K(e,o,"linePrefix",5)(i)}function o(i){let l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):q(i)?r(i):a(i)}}var Cv={name:"codeText",previous:gN,resolve:hN,tokenize:vN};function hN(e){let t=e.length-4,a=3,n,r;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=a;++n<t;)if(e[n][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(n=a-1,t++;++n<=t;)r===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(r=n):(n===t||e[n][1].type==="lineEnding")&&(e[r][1].type="codeTextData",n!==r+2&&(e[r][1].end=e[n-1][1].end,e.splice(r+2,n-r-2),t-=n-r-2,n=r+2),r=void 0);return e}function gN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vN(e,t,a){let n=this,r=0,o,i;return l;function l(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?a(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(i=e.enter("codeTextSequence"),o=0,d(p)):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||q(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function d(p){return p===96?(e.consume(p),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",c(p))}}var Of=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,a){let n=a??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,a,n){let r=a||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Iu(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Iu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Iu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let a=this.left.splice(t,Number.POSITIVE_INFINITY);Iu(this.right,a.reverse())}else{let a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Iu(this.left,a.reverse())}}};function Iu(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function zf(e){let t={},a=-1,n,r,o,i,l,s,u,c=new Of(e);for(;++a<c.length;){for(;a in t;)a=t[a];if(n=c.get(a),a&&n[1].type==="chunkFlow"&&c.get(a-1)[1].type==="listItemPrefix"&&(s=n[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,yN(c,a)),a=t[a],u=!0);else if(n[1]._container){for(o=a,r=void 0;o--;)if(i=c.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;r&&(n[1].end={...c.get(r)[1].start},l=c.slice(r,a),l.unshift(n),c.splice(r,a-r+1,l))}}return pt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function yN(e,t){let a=e.get(t)[1],n=e.get(t)[2],r=t-1,o=[],i=a._tokenizer;i||(i=n.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));let l=i.events,s=[],u={},c,d,p=-1,f=a,m=0,x=0,b=[x];for(;f;){for(;e.get(++r)[1]!==f;);o.push(r),f._tokenizer||(c=n.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=a;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(x=p+1,b.push(x),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):b.pop(),p=b.length;p--;){let v=l.slice(b[p],b[p+1]),y=o.pop();s.push([y,y+v.length-1]),e.splice(y,2,v)}for(s.reverse(),p=-1;++p<s.length;)u[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return u}var Lv={resolve:bN,tokenize:SN},xN={partial:!0,tokenize:wN};function bN(e){return zf(e),e}function SN(e,t){let a;return n;function n(l){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?o(l):q(l)?e.check(xN,i,o)(l):(e.consume(l),r)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function i(l){return e.consume(l),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,r}}function wN(e,t,a){let n=this;return r;function r(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),K(e,o,"linePrefix")}function o(i){if(i===null||q(i))return a(i);let l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,a,t)(i)}}function Df(e,t,a,n,r,o,i,l,s){let u=s||Number.POSITIVE_INFINITY,c=0;return d;function d(v){return v===60?(e.enter(n),e.enter(r),e.enter(o),e.consume(v),e.exit(o),p):v===null||v===32||v===41||ai(v)?a(v):(e.enter(n),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(v))}function p(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(r),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(l),p(v)):v===null||v===60||q(v)?a(v):(e.consume(v),v===92?m:f)}function m(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function x(v){return!c&&(v===null||v===41||ge(v))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(n),t(v)):c<u&&v===40?(e.consume(v),c++,x):v===41?(e.consume(v),c--,x):v===null||v===32||v===40||ai(v)?a(v):(e.consume(v),v===92?b:x)}function b(v){return v===40||v===41||v===92?(e.consume(v),x):x(v)}}function Rf(e,t,a,n,r,o){let i=this,l=0,s;return u;function u(f){return e.enter(n),e.enter(r),e.consume(f),e.exit(r),e.enter(o),c}function c(f){return l>999||f===null||f===91||f===93&&!s||f===94&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):f===93?(e.exit(o),e.enter(r),e.consume(f),e.exit(r),e.exit(n),t):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||q(f)||l++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!Q(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),l++,d):d(f)}}function $f(e,t,a,n,r,o){let i;return l;function l(p){return p===34||p===39||p===40?(e.enter(n),e.enter(r),e.consume(p),e.exit(r),i=p===40?41:p,s):a(p)}function s(p){return p===i?(e.enter(r),e.consume(p),e.exit(r),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===i?(e.exit(o),s(i)):p===null?a(p):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),K(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===i||p===null||q(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===i||p===92?(e.consume(p),c):c(p)}}function ni(e,t){let a;return n;function n(r){return q(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a=!0,n):Q(r)?K(e,n,a?"linePrefix":"lineSuffix")(r):t(r)}}var Tv={name:"definition",tokenize:kN},IN={partial:!0,tokenize:_N};function kN(e,t,a){let n=this,r;return o;function o(f){return e.enter("definition"),i(f)}function i(f){return Rf.call(n,e,l,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function l(f){return r=Bt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):a(f)}function s(f){return ge(f)?ni(e,u)(f):u(f)}function u(f){return Df(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(IN,d,d)(f)}function d(f){return Q(f)?K(e,p,"whitespace")(f):p(f)}function p(f){return f===null||q(f)?(e.exit("definition"),n.parser.defined.push(r),t(f)):a(f)}}function _N(e,t,a){return n;function n(l){return ge(l)?ni(e,r)(l):a(l)}function r(l){return $f(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return Q(l)?K(e,i,"whitespace")(l):i(l)}function i(l){return l===null||q(l)?t(l):a(l)}}var Av={name:"hardBreakEscape",tokenize:CN};function CN(e,t,a){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return q(o)?(e.exit("hardBreakEscape"),t(o)):a(o)}}var Ev={name:"headingAtx",resolve:LN,tokenize:TN};function LN(e,t){let a=e.length-2,n=3,r,o;return e[n][1].type==="whitespace"&&(n+=2),a-2>n&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(n===a-1||a-4>n&&e[a-2][1].type==="whitespace")&&(a-=n+1===a?2:4),a>n&&(r={type:"atxHeadingText",start:e[n][1].start,end:e[a][1].end},o={type:"chunkText",start:e[n][1].start,end:e[a][1].end,contentType:"text"},pt(e,n,a-n+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function TN(e,t,a){let n=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&n++<6?(e.consume(c),i):c===null||ge(c)?(e.exit("atxHeadingSequence"),l(c)):a(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||q(c)?(e.exit("atxHeading"),t(c)):Q(c)?K(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||ge(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}var gT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Mv=["pre","script","style","textarea"];var Ov={concrete:!0,name:"htmlFlow",resolveTo:MN,tokenize:ON},AN={partial:!0,tokenize:DN},EN={partial:!0,tokenize:zN};function MN(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ON(e,t,a){let n=this,r,o,i,l,s;return u;function u(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),d}function d(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),o=!0,x):w===63?(e.consume(w),r=3,n.interrupt?t:I):St(w)?(e.consume(w),i=String.fromCharCode(w),b):a(w)}function p(w){return w===45?(e.consume(w),r=2,f):w===91?(e.consume(w),r=5,l=0,m):St(w)?(e.consume(w),r=4,n.interrupt?t:I):a(w)}function f(w){return w===45?(e.consume(w),n.interrupt?t:I):a(w)}function m(w){let Ve="CDATA[";return w===Ve.charCodeAt(l++)?(e.consume(w),l===Ve.length?n.interrupt?t:Z:m):a(w)}function x(w){return St(w)?(e.consume(w),i=String.fromCharCode(w),b):a(w)}function b(w){if(w===null||w===47||w===62||ge(w)){let Ve=w===47,La=i.toLowerCase();return!Ve&&!o&&Mv.includes(La)?(r=1,n.interrupt?t(w):Z(w)):gT.includes(i.toLowerCase())?(r=6,Ve?(e.consume(w),v):n.interrupt?t(w):Z(w)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?a(w):o?y(w):g(w))}return w===45||st(w)?(e.consume(w),i+=String.fromCharCode(w),b):a(w)}function v(w){return w===62?(e.consume(w),n.interrupt?t:Z):a(w)}function y(w){return Q(w)?(e.consume(w),y):k(w)}function g(w){return w===47?(e.consume(w),k):w===58||w===95||St(w)?(e.consume(w),S):Q(w)?(e.consume(w),g):k(w)}function S(w){return w===45||w===46||w===58||w===95||st(w)?(e.consume(w),S):L(w)}function L(w){return w===61?(e.consume(w),_):Q(w)?(e.consume(w),L):g(w)}function _(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),s=w,A):Q(w)?(e.consume(w),_):z(w)}function A(w){return w===s?(e.consume(w),s=null,$):w===null||q(w)?a(w):(e.consume(w),A)}function z(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||ge(w)?L(w):(e.consume(w),z)}function $(w){return w===47||w===62||Q(w)?g(w):a(w)}function k(w){return w===62?(e.consume(w),G):a(w)}function G(w){return w===null||q(w)?Z(w):Q(w)?(e.consume(w),G):a(w)}function Z(w){return w===45&&r===2?(e.consume(w),ne):w===60&&r===1?(e.consume(w),ie):w===62&&r===4?(e.consume(w),Ne):w===63&&r===3?(e.consume(w),I):w===93&&r===5?(e.consume(w),W):q(w)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(AN,ca,F)(w)):w===null||q(w)?(e.exit("htmlFlowData"),F(w)):(e.consume(w),Z)}function F(w){return e.check(EN,X,ca)(w)}function X(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),J}function J(w){return w===null||q(w)?F(w):(e.enter("htmlFlowData"),Z(w))}function ne(w){return w===45?(e.consume(w),I):Z(w)}function ie(w){return w===47?(e.consume(w),i="",te):Z(w)}function te(w){if(w===62){let Ve=i.toLowerCase();return Mv.includes(Ve)?(e.consume(w),Ne):Z(w)}return St(w)&&i.length<8?(e.consume(w),i+=String.fromCharCode(w),te):Z(w)}function W(w){return w===93?(e.consume(w),I):Z(w)}function I(w){return w===62?(e.consume(w),Ne):w===45&&r===2?(e.consume(w),I):Z(w)}function Ne(w){return w===null||q(w)?(e.exit("htmlFlowData"),ca(w)):(e.consume(w),Ne)}function ca(w){return e.exit("htmlFlow"),t(w)}}function zN(e,t,a){let n=this;return r;function r(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):a(i)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}function DN(e,t,a){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(xr,t,a)}}var zv={name:"htmlText",tokenize:RN};function RN(e,t,a){let n=this,r,o,i;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),s}function s(I){return I===33?(e.consume(I),u):I===47?(e.consume(I),L):I===63?(e.consume(I),g):St(I)?(e.consume(I),z):a(I)}function u(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),o=0,m):St(I)?(e.consume(I),y):a(I)}function c(I){return I===45?(e.consume(I),f):a(I)}function d(I){return I===null?a(I):I===45?(e.consume(I),p):q(I)?(i=d,ie(I)):(e.consume(I),d)}function p(I){return I===45?(e.consume(I),f):d(I)}function f(I){return I===62?ne(I):I===45?p(I):d(I)}function m(I){let Ne="CDATA[";return I===Ne.charCodeAt(o++)?(e.consume(I),o===Ne.length?x:m):a(I)}function x(I){return I===null?a(I):I===93?(e.consume(I),b):q(I)?(i=x,ie(I)):(e.consume(I),x)}function b(I){return I===93?(e.consume(I),v):x(I)}function v(I){return I===62?ne(I):I===93?(e.consume(I),v):x(I)}function y(I){return I===null||I===62?ne(I):q(I)?(i=y,ie(I)):(e.consume(I),y)}function g(I){return I===null?a(I):I===63?(e.consume(I),S):q(I)?(i=g,ie(I)):(e.consume(I),g)}function S(I){return I===62?ne(I):g(I)}function L(I){return St(I)?(e.consume(I),_):a(I)}function _(I){return I===45||st(I)?(e.consume(I),_):A(I)}function A(I){return q(I)?(i=A,ie(I)):Q(I)?(e.consume(I),A):ne(I)}function z(I){return I===45||st(I)?(e.consume(I),z):I===47||I===62||ge(I)?$(I):a(I)}function $(I){return I===47?(e.consume(I),ne):I===58||I===95||St(I)?(e.consume(I),k):q(I)?(i=$,ie(I)):Q(I)?(e.consume(I),$):ne(I)}function k(I){return I===45||I===46||I===58||I===95||st(I)?(e.consume(I),k):G(I)}function G(I){return I===61?(e.consume(I),Z):q(I)?(i=G,ie(I)):Q(I)?(e.consume(I),G):$(I)}function Z(I){return I===null||I===60||I===61||I===62||I===96?a(I):I===34||I===39?(e.consume(I),r=I,F):q(I)?(i=Z,ie(I)):Q(I)?(e.consume(I),Z):(e.consume(I),X)}function F(I){return I===r?(e.consume(I),r=void 0,J):I===null?a(I):q(I)?(i=F,ie(I)):(e.consume(I),F)}function X(I){return I===null||I===34||I===39||I===60||I===61||I===96?a(I):I===47||I===62||ge(I)?$(I):(e.consume(I),X)}function J(I){return I===47||I===62||ge(I)?$(I):a(I)}function ne(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):a(I)}function ie(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),te}function te(I){return Q(I)?K(e,W,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):W(I)}function W(I){return e.enter("htmlTextData"),i(I)}}var oi={name:"labelEnd",resolveAll:UN,resolveTo:jN,tokenize:BN},$N={tokenize:FN},PN={tokenize:qN},NN={tokenize:ZN};function UN(e){let t=-1,a=[];for(;++t<e.length;){let n=e[t][1];if(a.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let r=n.type==="labelImage"?4:2;n.type="data",t+=r}}return e.length!==a.length&&pt(e,0,e.length,a),e}function jN(e,t){let a=e.length,n=0,r,o,i,l;for(;a--;)if(r=e[a][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[a][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(i){if(e[a][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=a,r.type!=="labelLink")){n=2;break}}else r.type==="labelEnd"&&(i=a);let s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",s,t],["enter",u,t]],l=Gt(l,e.slice(o+1,o+n+3)),l=Gt(l,[["enter",c,t]]),l=Gt(l,Wn(t.parser.constructs.insideSpan.null,e.slice(o+n+4,i-3),t)),l=Gt(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=Gt(l,e.slice(i+1)),l=Gt(l,[["exit",s,t]]),pt(e,o,e.length,l),e}function BN(e,t,a){let n=this,r=n.events.length,o,i;for(;r--;)if((n.events[r][1].type==="labelImage"||n.events[r][1].type==="labelLink")&&!n.events[r][1]._balanced){o=n.events[r][1];break}return l;function l(p){return o?o._inactive?d(p):(i=n.parser.defined.includes(Bt(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):a(p)}function s(p){return p===40?e.attempt($N,c,i?c:d)(p):p===91?e.attempt(PN,c,i?u:d)(p):i?c(p):d(p)}function u(p){return e.attempt(NN,c,d)(p)}function c(p){return t(p)}function d(p){return o._balanced=!0,a(p)}}function FN(e,t,a){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return ge(d)?ni(e,o)(d):o(d)}function o(d){return d===41?c(d):Df(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return ge(d)?ni(e,s)(d):c(d)}function l(d){return a(d)}function s(d){return d===34||d===39||d===40?$f(e,u,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return ge(d)?ni(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function qN(e,t,a){let n=this;return r;function r(l){return Rf.call(n,e,o,i,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(Bt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):a(l)}function i(l){return a(l)}}function ZN(e,t,a){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):a(o)}}var Dv={name:"labelStartImage",resolveAll:oi.resolveAll,tokenize:HN};function HN(e,t,a){let n=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):a(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(l):t(l)}}var Rv={name:"labelStartLink",resolveAll:oi.resolveAll,tokenize:VN};function VN(e,t,a){let n=this;return r;function r(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o}function o(i){return i===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(i):t(i)}}var ku={name:"lineEnding",tokenize:GN};function GN(e,t){return a;function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),K(e,t,"linePrefix")}}var ii={name:"thematicBreak",tokenize:JN};function JN(e,t,a){let n=0,r;return o;function o(u){return e.enter("thematicBreak"),i(u)}function i(u){return r=u,l(u)}function l(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):n>=3&&(u===null||q(u))?(e.exit("thematicBreak"),t(u)):a(u)}function s(u){return u===r?(e.consume(u),n++,s):(e.exit("thematicBreakSequence"),Q(u)?K(e,l,"whitespace")(u):l(u))}}var Ft={continuation:{tokenize:YN},exit:e4,name:"list",tokenize:KN},XN={partial:!0,tokenize:t4},WN={partial:!0,tokenize:QN};function KN(e,t,a){let n=this,r=n.events[n.events.length-1],o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,i=0;return l;function l(f){let m=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:bu(f)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(ii,a,u)(f):u(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return a(f)}function s(f){return bu(f)&&++i<10?(e.consume(f),s):(!n.interrupt||i<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):a(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(xr,n.interrupt?a:c,e.attempt(XN,p,d))}function c(f){return n.containerState.initialBlankLine=!0,o++,p(f)}function d(f){return Q(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):a(f)}function p(f){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function YN(e,t,a){let n=this;return n.containerState._closeFlow=void 0,e.check(xr,r,o);function r(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,K(e,t,"listItemIndent",n.containerState.size+1)(l)}function o(l){return n.containerState.furtherBlankLines||!Q(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(WN,t,i)(l))}function i(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,K(e,e.attempt(Ft,t,a),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function QN(e,t,a){let n=this;return K(e,r,"listItemIndent",n.containerState.size+1);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(o):a(o)}}function e4(e){e.exit(this.containerState.type)}function t4(e,t,a){let n=this;return K(e,r,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){let i=n.events[n.events.length-1];return!Q(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):a(o)}}var Pf={name:"setextUnderline",resolveTo:a4,tokenize:r4};function a4(e,t){let a=e.length,n,r,o;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){n=a;break}e[a][1].type==="paragraph"&&(r=a)}else e[a][1].type==="content"&&e.splice(a,1),!o&&e[a][1].type==="definition"&&(o=a);let i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e}function r4(e,t,a){let n=this,r;return o;function o(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),r=u,i(u)):a(u)}function i(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===r?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Q(u)?K(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||q(u)?(e.exit("setextHeadingLine"),t(u)):a(u)}}var vT={tokenize:n4};function n4(e){let t=this,a=e.attempt(xr,n,e.attempt(this.parser.constructs.flowInitial,r,K(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Lv,r)),"linePrefix")));return a;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,a}}var yT={resolveAll:wT()},xT=ST("string"),bT=ST("text");function ST(e){return{resolveAll:wT(e==="text"?o4:void 0),tokenize:t};function t(a){let n=this,r=this.parser.constructs[e],o=a.attempt(r,i,l);return i;function i(c){return u(c)?o(c):l(c)}function l(c){if(c===null){a.consume(c);return}return a.enter("data"),a.consume(c),s}function s(c){return u(c)?(a.exit("data"),o(c)):(a.consume(c),s)}function u(c){if(c===null)return!0;let d=r[c],p=-1;if(d)for(;++p<d.length;){let f=d[p];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function wT(e){return t;function t(a,n){let r=-1,o;for(;++r<=a.length;)o===void 0?a[r]&&a[r][1].type==="data"&&(o=r,r++):(!a[r]||a[r][1].type!=="data")&&(r!==o+2&&(a[o][1].end=a[r-1][1].end,a.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(a,n):a}}function o4(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){let n=e[a-1][1],r=t.sliceStream(n),o=r.length,i=-1,l=0,s;for(;o--;){let u=r[o];if(typeof u=="string"){for(i=u.length;u.charCodeAt(i-1)===32;)l++,i--;if(i)break;i=-1}else if(u===-2)s=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(l=0),l){let u={type:a===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?i:n.start._bufferIndex+i,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(a,0,["enter",u,t],["exit",u,t]),a+=2)}a++}return e}var $v={};lr($v,{attentionMarkers:()=>p4,contentInitial:()=>l4,disable:()=>m4,document:()=>i4,flow:()=>u4,flowInitial:()=>s4,insideSpan:()=>f4,string:()=>c4,text:()=>d4});var i4={42:Ft,43:Ft,45:Ft,48:Ft,49:Ft,50:Ft,51:Ft,52:Ft,53:Ft,54:Ft,55:Ft,56:Ft,57:Ft,62:Tf},l4={91:Tv},s4={[-2]:wu,[-1]:wu,32:wu},u4={35:Ev,42:ii,45:[Pf,ii],60:Ov,61:Pf,95:ii,96:Mf,126:Mf},c4={38:Ef,92:Af},d4={[-5]:ku,[-4]:ku,[-3]:ku,33:Dv,38:Ef,42:Su,60:[_v,zv],91:Rv,92:[Av,Af],93:oi,95:Su,96:Cv},f4={null:[Su,yT]},p4={null:[42,95]},m4={null:[]};function IT(e,t,a){let n={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0},r={},o=[],i=[],l=[],s=!0,u={attempt:$(A),check:$(z),consume:S,enter:L,exit:_,interrupt:$(z,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:b,parser:e,previous:null,sliceSerialize:m,sliceStream:x,write:f},d=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function f(F){return i=Gt(i,F),y(),i[i.length-1]!==null?[]:(k(t,0),c.events=Wn(o,c.events,c),c.events)}function m(F,X){return g4(x(F),X)}function x(F){return h4(i,F)}function b(){let{_bufferIndex:F,_index:X,line:J,column:ne,offset:ie}=n;return{_bufferIndex:F,_index:X,line:J,column:ne,offset:ie}}function v(F){r[F.line]=F.column,Z()}function y(){let F;for(;n._index<i.length;){let X=i[n._index];if(typeof X=="string")for(F=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===F&&n._bufferIndex<X.length;)g(X.charCodeAt(n._bufferIndex));else g(X)}}function g(F){s=void 0,p=F,d=d(F)}function S(F){q(F)?(n.line++,n.column=1,n.offset+=F===-3?2:1,Z()):F!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===i[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=F,s=!0}function L(F,X){let J=X||{};return J.type=F,J.start=b(),c.events.push(["enter",J,c]),l.push(J),J}function _(F){let X=l.pop();return X.end=b(),c.events.push(["exit",X,c]),X}function A(F,X){k(F,X.from)}function z(F,X){X.restore()}function $(F,X){return J;function J(ne,ie,te){let W,I,Ne,ca;return Array.isArray(ne)?Ve(ne):"tokenize"in ne?Ve([ne]):w(ne);function w(rt){return Rt;function Rt(Xt){let da=Xt!==null&&rt[Xt],pn=Xt!==null&&rt.null,uo=[...Array.isArray(da)?da:da?[da]:[],...Array.isArray(pn)?pn:pn?[pn]:[]];return Ve(uo)(Xt)}}function Ve(rt){return W=rt,I=0,rt.length===0?te:La(rt[I])}function La(rt){return Rt;function Rt(Xt){return ca=G(),Ne=rt,rt.partial||(c.currentConstruct=rt),rt.name&&c.parser.constructs.disable.null.includes(rt.name)?Cr(Xt):rt.tokenize.call(X?Object.assign(Object.create(c),X):c,u,fn,Cr)(Xt)}}function fn(rt){return s=!0,F(Ne,ca),ie}function Cr(rt){return s=!0,ca.restore(),++I<W.length?La(W[I]):te}}}function k(F,X){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&pt(c.events,X,c.events.length-X,F.resolve(c.events.slice(X),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function G(){let F=b(),X=c.previous,J=c.currentConstruct,ne=c.events.length,ie=Array.from(l);return{from:ne,restore:te};function te(){n=F,c.previous=X,c.currentConstruct=J,c.events.length=ne,l=ie,Z()}}function Z(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}function h4(e,t){let a=t.start._index,n=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex,i;if(a===r)i=[e[a].slice(n,o)];else{if(i=e.slice(a,r),n>-1){let l=i[0];typeof l=="string"?i[0]=l.slice(n):i.shift()}o>0&&i.push(e[r].slice(0,o))}return i}function g4(e,t){let a=-1,n=[],r;for(;++a<e.length;){let o=e[a],i;if(typeof o=="string")i=o;else switch(o){case-5:{i="\r";break}case-4:{i=`
|
|
16
|
+
]`;continue}r+=n[s],n[s]==="\\"?o=!0:i&&n[s]==="]"?i=!1:!i&&n[s]==="["&&(i=!0)}try{new RegExp(r)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return r}function vf(e,t){if(t.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),t.target==="openApi3"&&e.keyType?._def.typeName===T.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??rt(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let a={type:"object",additionalProperties:ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if(t.target==="openApi3")return a;if(e.keyType?._def.typeName===T.ZodString&&e.keyType._def.checks?.length){let{type:n,...r}=gf(e.keyType._def,t);return{...a,propertyNames:r}}else{if(e.keyType?._def.typeName===T.ZodEnum)return{...a,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===T.ZodBranded&&e.keyType._def.type._def.typeName===T.ZodString&&e.keyType._def.type._def.checks?.length){let{type:n,...r}=hf(e.keyType._def,t);return{...a,propertyNames:r}}}return a}function uL(e,t){if(t.mapStrategy==="record")return vf(e,t);let a=ae(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||rt(t),n=ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||rt(t);return{type:"array",maxItems:125,items:{type:"array",items:[a,n],minItems:2,maxItems:2}}}function cL(e){let t=e.values,n=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),r=Array.from(new Set(n.map(o=>typeof o)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:n}}function dL(e){return e.target==="openAi"?void 0:{not:rt({...e,currentPath:[...e.currentPath,"not"]})}}function fL(e){return e.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var cu={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function mL(e,t){if(t.target==="openApi3")return pL(e,t);let a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every(n=>n._def.typeName in cu&&(!n._def.checks||!n._def.checks.length))){let n=a.reduce((r,o)=>{let i=cu[o._def.typeName];return i&&!r.includes(i)?[...r,i]:r},[]);return{type:n.length>1?n:n[0]}}else if(a.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=a.reduce((r,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...r,i];case"bigint":return[...r,"integer"];case"object":if(o._def.value===null)return[...r,"null"];default:return r}},[]);if(n.length===a.length){let r=n.filter((o,i,l)=>l.indexOf(o)===i);return{type:r.length>1?r:r[0],enum:a.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(a.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:a.reduce((n,r)=>[...n,...r._def.values.filter(o=>!n.includes(o))],[])};return pL(e,t)}var pL=(e,t)=>{let a=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,r)=>ae(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return a.length?{anyOf:a}:void 0};function hL(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target==="openApi3"?{type:cu[e.innerType._def.typeName],nullable:!0}:{type:[cu[e.innerType._def.typeName],"null"]};if(t.target==="openApi3"){let n=ae(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let a=ae(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function gL(e,t){let a={type:"number"};if(!e.checks)return a;for(let n of e.checks)switch(n.kind){case"int":a.type="integer",iv(a,"type",n.message,t);break;case"min":t.target==="jsonSchema7"?n.inclusive?_e(a,"minimum",n.value,n.message,t):_e(a,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(a.exclusiveMinimum=!0),_e(a,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?_e(a,"maximum",n.value,n.message,t):_e(a,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(a.exclusiveMaximum=!0),_e(a,"maximum",n.value,n.message,t));break;case"multipleOf":_e(a,"multipleOf",n.value,n.message,t);break}return a}function vL(e,t){let a=t.target==="openAi",n={type:"object",properties:{}},r=[],o=e.shape();for(let l in o){let s=o[l];if(s===void 0||s._def===void 0)continue;let u=U2(s);u&&a&&(s._def.typeName==="ZodOptional"&&(s=s._def.innerType),s.isNullable()||(s=s.nullable()),u=!1);let c=ae(s._def,{...t,currentPath:[...t.currentPath,"properties",l],propertyPath:[...t.currentPath,"properties",l]});c!==void 0&&(n.properties[l]=c,u||r.push(l))}r.length&&(n.required=r);let i=N2(e,t);return i!==void 0&&(n.additionalProperties=i),n}function N2(e,t){if(e.catchall._def.typeName!=="ZodNever")return ae(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function U2(e){try{return e.isOptional()}catch{return!0}}var yL=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return ae(e.innerType._def,t);let a=ae(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return a?{anyOf:[{not:rt(t)},a]}:rt(t)};var xL=(e,t)=>{if(t.pipeStrategy==="input")return ae(e.in._def,t);if(t.pipeStrategy==="output")return ae(e.out._def,t);let a=ae(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=ae(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",a?"1":"0"]});return{allOf:[a,n].filter(r=>r!==void 0)}};function bL(e,t){return ae(e.type._def,t)}function SL(e,t){let n={type:"array",uniqueItems:!0,items:ae(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&_e(n,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&_e(n,"maxItems",e.maxSize.value,e.maxSize.message,t),n}function wL(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((a,n)=>ae(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[]),additionalItems:ae(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((a,n)=>ae(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[])}}function IL(e){return{not:rt(e)}}function kL(e){return rt(e)}var _L=(e,t)=>ae(e.innerType._def,t);var CL=(e,t,a)=>{switch(t){case T.ZodString:return gf(e,a);case T.ZodNumber:return gL(e,a);case T.ZodObject:return vL(e,a);case T.ZodBigInt:return eL(e,a);case T.ZodBoolean:return tL();case T.ZodDate:return lv(e,a);case T.ZodUndefined:return IL(a);case T.ZodNull:return fL(a);case T.ZodArray:return QC(e,a);case T.ZodUnion:case T.ZodDiscriminatedUnion:return mL(e,a);case T.ZodIntersection:return iL(e,a);case T.ZodTuple:return wL(e,a);case T.ZodRecord:return vf(e,a);case T.ZodLiteral:return lL(e,a);case T.ZodEnum:return oL(e);case T.ZodNativeEnum:return cL(e);case T.ZodNullable:return hL(e,a);case T.ZodOptional:return yL(e,a);case T.ZodMap:return uL(e,a);case T.ZodSet:return SL(e,a);case T.ZodLazy:return()=>e.getter()._def;case T.ZodPromise:return bL(e,a);case T.ZodNaN:case T.ZodNever:return dL(a);case T.ZodEffects:return nL(e,a);case T.ZodAny:return rt(a);case T.ZodUnknown:return kL(a);case T.ZodDefault:return rL(e,a);case T.ZodBranded:return hf(e,a);case T.ZodReadonly:return _L(e,a);case T.ZodCatch:return aL(e,a);case T.ZodPipeline:return xL(e,a);case T.ZodFunction:case T.ZodVoid:case T.ZodSymbol:return;default:return(n=>{})(t)}};function ae(e,t,a=!1){let n=t.seen.get(e);if(t.override){let l=t.override?.(e,t,n,a);if(l!==XC)return l}if(n&&!a){let l=j2(n,t);if(l!==void 0)return l}let r={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,r);let o=CL(e,e.typeName,t),i=typeof o=="function"?ae(o(),t):o;if(i&&B2(e,t,i),t.postProcess){let l=t.postProcess(i,e,t);return r.jsonSchema=i,l}return r.jsonSchema=i,i}var j2=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:mf(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((a,n)=>t.currentPath[n]===a)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),rt(t)):t.$refStrategy==="seen"?rt(t):void 0}},B2=(e,t,a)=>(e.description&&(a.description=e.description,t.markdownDescription&&(a.markdownDescription=e.description)),a);var cv=(e,t)=>{let a=YC(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((s,[u,c])=>({...s,[u]:ae(c._def,{...a,currentPath:[...a.basePath,a.definitionPath,u]},!0)??rt(a)}),{}):void 0,r=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=ae(e._def,r===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,r]},!1)??rt(a),i=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;i!==void 0&&(o.title=i),a.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[a.openAiAnyTypeName]||(n[a.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:a.$refStrategy==="relative"?"1":[...a.basePath,a.definitionPath,a.openAiAnyTypeName].join("/")}}));let l=r===void 0?n?{...o,[a.definitionPath]:n}:o:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,r].join("/"),[a.definitionPath]:{...n,[r]:o}};return a.target==="jsonSchema7"?l.$schema="http://json-schema.org/draft-07/schema#":(a.target==="jsonSchema2019-09"||a.target==="openAi")&&(l.$schema="https://json-schema.org/draft/2019-09/schema#"),a.target==="openAi"&&("anyOf"in l||"oneOf"in l||"allOf"in l||"type"in l&&Array.isArray(l.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),l};var F2=cv;async function yf({api:e,threadId:t,widgets:a,onAuthError:n}){let r=a.map(({widgetType:u,schema:c,enrich:d})=>{let p=c.extend({widgetType:at.literal(u)});return{widgetType:u,schema:F2(p),enrich:d}}),{baseUrl:o,headers:i={}}=e,l=u=>fetch(`${o}/chat/widgets`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`,"thread-id":t,...i},body:JSON.stringify({widgetSchemas:r})}),s=await l(e.token);if(s.status===401&&n){let u=await n();u&&(s=await l(u))}if(!s.ok){let u=await s.text().catch(()=>s.statusText);throw new Error(`Failed to register chat widgets: ${s.status} ${u}`)}}var bf=be(Bt());var LL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,n)=>n?n.toUpperCase():a.toLowerCase()),dv=e=>{let t=q2(e);return t.charAt(0).toUpperCase()+t.slice(1)},xf=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim(),TL=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var du=be(Bt());var AL={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var EL=(0,du.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:r="",children:o,iconNode:i,...l},s)=>(0,du.createElement)("svg",{ref:s,...AL,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:xf("lucide",r),...!o&&!TL(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,c])=>(0,du.createElement)(u,c)),...Array.isArray(o)?o:[o]]));var At=(e,t)=>{let a=(0,bf.forwardRef)(({className:n,...r},o)=>(0,bf.createElement)(EL,{ref:o,iconNode:t,className:xf(`lucide-${LL(dv(e))}`,`lucide-${e}`,n),...r}));return a.displayName=dv(e),a};var Z2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Qo=At("chevron-right",Z2);var H2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],Jn=At("circle-stop",H2);var V2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ei=At("message-square",V2);var G2=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],fu=At("mic-off",G2);var W2=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],pu=At("mic",W2);var J2=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],mu=At("send",J2);var X2=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],hu=At("thumbs-up",X2);var K2=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],gu=At("thumbs-down",K2);var Y2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vu=At("x",Y2);var Le=be(Bt(),1);function ML(e,t){let a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var Q2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eP=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tP={};function Sf(e,t){return((t||tP).jsx?eP:Q2).test(e)}var aP=/[ \t\n\f\r]/g;function fv(e){return typeof e=="object"?e.type==="text"?OL(e.value):!1:OL(e)}function OL(e){return e.replace(aP,"")===""}var an=class{constructor(t,a,n){this.normal=a,this.property=t,n&&(this.space=n)}};an.prototype.normal={};an.prototype.property={};an.prototype.space=void 0;function pv(e,t){let a={},n={};for(let r of e)Object.assign(a,r.property),Object.assign(n,r.normal);return new an(a,n,t)}function yu(e){return e.toLowerCase()}var Et=class{constructor(t,a){this.attribute=a,this.property=t}};Et.prototype.attribute="";Et.prototype.booleanish=!1;Et.prototype.boolean=!1;Et.prototype.commaOrSpaceSeparated=!1;Et.prototype.commaSeparated=!1;Et.prototype.defined=!1;Et.prototype.mustUseProperty=!1;Et.prototype.number=!1;Et.prototype.overloadedBoolean=!1;Et.prototype.property="";Et.prototype.spaceSeparated=!1;Et.prototype.space=void 0;var xu={};cr(xu,{boolean:()=>ue,booleanish:()=>ut,commaOrSpaceSeparated:()=>sa,commaSeparated:()=>Xn,number:()=>R,overloadedBoolean:()=>wf,spaceSeparated:()=>$e});var rP=0,ue=ti(),ut=ti(),wf=ti(),R=ti(),$e=ti(),Xn=ti(),sa=ti();function ti(){return 2**++rP}var mv=Object.keys(xu),ai=class extends Et{constructor(t,a,n,r){let o=-1;if(super(t,a),zL(this,"space",r),typeof n=="number")for(;++o<mv.length;){let i=mv[o];zL(this,mv[o],(n&xu[i])===xu[i])}}};ai.prototype.defined=!0;function zL(e,t,a){a&&(e[t]=a)}function Ha(e){let t={},a={};for(let[n,r]of Object.entries(e.properties)){let o=new ai(n,e.transform(e.attributes||{},n),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,a[yu(n)]=n,a[yu(o.attribute)]=n}return new an(t,a,e.space)}var hv=Ha({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:$e,ariaCurrent:null,ariaDescribedBy:$e,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:$e,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:$e,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$e,ariaLevel:R,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:$e,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:$e,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:ut,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function If(e,t){return t in e?e[t]:t}function kf(e,t){return If(e,t.toLowerCase())}var DL=Ha({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xn,acceptCharset:$e,accessKey:$e,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:$e,autoFocus:ue,autoPlay:ue,blocking:$e,capture:null,charSet:null,checked:ue,cite:null,className:$e,cols:R,colSpan:null,content:null,contentEditable:ut,controls:ue,controlsList:$e,coords:R|Xn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:wf,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:$e,height:R,hidden:wf,high:R,href:null,hrefLang:null,htmlFor:$e,httpEquiv:$e,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:$e,itemRef:$e,itemScope:ue,itemType:$e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ue,optimum:R,pattern:null,ping:$e,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:$e,required:ue,reversed:ue,rows:R,rowSpan:R,sandbox:$e,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootClonable:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:ut,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$e,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:kf});var RL=Ha({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:sa,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:$e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xn,g2:Xn,glyphName:Xn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:sa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sa,rev:sa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sa,requiredFeatures:sa,requiredFonts:sa,requiredFormats:sa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:sa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sa,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:If});var gv=Ha({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var vv=Ha({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kf});var yv=Ha({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var xv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var nP=/[A-Z]/g,$L=/-[a-z]/g,oP=/^data[-\w.:]+$/i;function bv(e,t){let a=yu(t),n=t,r=Et;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&oP.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace($L,lP);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!$L.test(o)){let i=o.replace(nP,iP);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}r=ai}return new r(n,t)}function iP(e){return"-"+e.toLowerCase()}function lP(e){return e.charAt(1).toUpperCase()}var PL=pv([hv,DL,gv,vv,yv],"html"),_f=pv([hv,RL,gv,vv,yv],"svg");function NL(e){return e.join(" ").trim()}var QL=be(JL(),1);var Lf=XL("end"),Tl=XL("start");function XL(e){return t;function t(a){let n=a&&a.position&&a.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Iv(e){let t=Tl(e),a=Lf(e);if(t&&a)return{start:t,end:a}}function Kn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?KL(e.position):"start"in e||"end"in e?KL(e):"line"in e||"column"in e?kv(e):""}function kv(e){return YL(e&&e.line)+":"+YL(e&&e.column)}function KL(e){return kv(e&&e.start)+"-"+kv(e&&e.end)}function YL(e){return e&&typeof e=="number"?e:1}var mt=class extends Error{constructor(t,a,n){super(),typeof a=="string"&&(n=a,a=void 0);let r="",o={},i=!1;if(a&&("line"in a&&"column"in a?o={place:a}:"start"in a&&"end"in a?o={place:a}:"type"in a?o={ancestors:[a],place:a.position}:o={...a}),typeof t=="string"?r=t:!o.cause&&t&&(i=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let s=n.indexOf(":");s===-1?o.ruleId=n:(o.source=n.slice(0,s),o.ruleId=n.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){let s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}let l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Kn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};mt.prototype.file="";mt.prototype.name="";mt.prototype.reason="";mt.prototype.message="";mt.prototype.stack="";mt.prototype.column=void 0;mt.prototype.line=void 0;mt.prototype.ancestors=void 0;mt.prototype.cause=void 0;mt.prototype.fatal=void 0;mt.prototype.place=void 0;mt.prototype.ruleId=void 0;mt.prototype.source=void 0;var _v={}.hasOwnProperty,zP=new Map,DP=/[A-Z]/g,RP=new Set(["table","tbody","thead","tfoot","tr"]),$P=new Set(["td","th"]),eT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cv(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let a=t.filePath||void 0,n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=ZP(a,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=qP(a,t.jsx,t.jsxs)}let r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_f:PL,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=tT(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function tT(e,t,a){if(t.type==="element")return PP(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return NP(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jP(e,t,a);if(t.type==="mdxjsEsm")return UP(e,t);if(t.type==="root")return BP(e,t,a);if(t.type==="text")return FP(e,t)}function PP(e,t,a){let n=e.schema,r=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=_f,e.schema=r),e.ancestors.push(t);let o=rT(e,t.tagName,!1),i=HP(e,t),l=Tv(e,t);return RP.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!fv(s):!0})),aT(e,i,o,t),Lv(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function NP(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Su(e,t.position)}function UP(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Su(e,t.position)}function jP(e,t,a){let n=e.schema,r=n;t.name==="svg"&&n.space==="html"&&(r=_f,e.schema=r),e.ancestors.push(t);let o=t.name===null?e.Fragment:rT(e,t.name,!0),i=VP(e,t),l=Tv(e,t);return aT(e,i,o,t),Lv(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function BP(e,t,a){let n={};return Lv(n,Tv(e,t)),e.create(t,e.Fragment,n,a)}function FP(e,t){return t.value}function aT(e,t,a,n){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=n)}function Lv(e,t){if(t.length>0){let a=t.length>1?t:t[0];a&&(e.children=a)}}function qP(e,t,a){return n;function n(r,o,i,l){let u=Array.isArray(i.children)?a:t;return l?u(o,i,l):u(o,i)}}function ZP(e,t){return a;function a(n,r,o,i){let l=Array.isArray(o.children),s=Tl(n);return t(r,o,i,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function HP(e,t){let a={},n,r;for(r in t.properties)if(r!=="children"&&_v.call(t.properties,r)){let o=GP(e,r,t.properties[r]);if(o){let[i,l]=o;e.tableCellAlignToStyle&&i==="align"&&typeof l=="string"&&$P.has(t.tagName)?n=l:a[i]=l}}if(n){let o=a.style||(a.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return a}function VP(e,t){let a={};for(let n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){let o=n.data.estree.body[0];o.type;let i=o.expression;i.type;let l=i.properties[0];l.type,Object.assign(a,e.evaluater.evaluateExpression(l.argument))}else Su(e,t.position);else{let r=n.name,o;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){let l=n.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Su(e,t.position);else o=n.value===null?!0:n.value;a[r]=o}return a}function Tv(e,t){let a=[],n=-1,r=e.passKeys?new Map:zP;for(;++n<t.children.length;){let o=t.children[n],i;if(e.passKeys){let s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){let u=r.get(s)||0;i=s+"-"+u,r.set(s,u+1)}}let l=tT(e,o,i);l!==void 0&&a.push(l)}return a}function GP(e,t,a){let n=bv(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=n.commaSeparated?ML(a):NL(a)),n.property==="style"){let r=typeof a=="object"?a:WP(e,String(a));return e.stylePropertyNameCase==="css"&&(r=JP(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&n.space?xv[n.property]||n.property:n.attribute,a]}}function WP(e,t){try{return(0,QL.default)(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let n=a,r=new mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=eT+"#cannot-parse-style-attribute",r}}function rT(e,t,a){let n;if(!a)n={type:"Literal",value:t};else if(t.includes(".")){let r=t.split("."),o=-1,i;for(;++o<r.length;){let l=Sf(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};i=i?{type:"MemberExpression",object:i,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}n=i}else n=Sf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){let r=n.value;return _v.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(n);Su(e)}function Su(e,t){let a=new mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=eT+"#cannot-handle-mdx-estrees-without-createevaluater",a}function JP(e){let t={},a;for(a in e)_v.call(e,a)&&(t[XP(a)]=e[a]);return t}function XP(e){let t=e.replace(DP,KP);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function KP(e){return"-"+e.toLowerCase()}var wu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var zl=be(bt(),1),O1=be(Bt(),1);var eN={};function ni(e,t){let a=t||eN,n=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,r=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return sT(e,n,r)}function sT(e,t,a){if(tN(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lT(e.children,t,a)}return Array.isArray(e)?lT(e,t,a):""}function lT(e,t,a){let n=[],r=-1;for(;++r<e.length;)n[r]=sT(e[r],t,a);return n.join("")}function tN(e){return!!(e&&typeof e=="object")}var uT=document.createElement("i");function Al(e){let t="&"+e+";";uT.innerHTML=t;let a=uT.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function ht(e,t,a,n){let r=e.length,o=0,i;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,a=a>0?a:0,n.length<1e4)i=Array.from(n),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);o<n.length;)i=n.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function Jt(e,t){return e.length>0?(ht(e,e.length,0,t),e):t}var cT={}.hasOwnProperty;function Af(e){let t={},a=-1;for(;++a<e.length;)aN(t,e[a]);return t}function aN(e,t){let a;for(a in t){let r=(cT.call(e,a)?e[a]:void 0)||(e[a]={}),o=t[a],i;if(o)for(i in o){cT.call(r,i)||(r[i]=[]);let l=o[i];rN(r[i],Array.isArray(l)?l:l?[l]:[])}}}function rN(e,t){let a=-1,n=[];for(;++a<t.length;)(t[a].add==="after"?e:n).push(t[a]);ht(e,0,0,n)}function Ef(e,t){let a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"\uFFFD":String.fromCodePoint(a)}function qt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var kt=Yn(/[A-Za-z]/),ct=Yn(/[\dA-Za-z]/),dT=Yn(/[#-'*+\--9=?A-Z^-~]/);function oi(e){return e!==null&&(e<32||e===127)}var Iu=Yn(/\d/),fT=Yn(/[\dA-Fa-f]/),pT=Yn(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function ge(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}var ii=Yn(/\p{P}|\p{S}/u),Sr=Yn(/\s/);function Yn(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Va(e){let t=[],a=-1,n=0,r=0;for(;++a<e.length;){let o=e.charCodeAt(a),i="";if(o===37&&ct(e.charCodeAt(a+1))&&ct(e.charCodeAt(a+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){let l=e.charCodeAt(a+1);o<56320&&l>56319&&l<57344?(i=String.fromCharCode(o,l),r=1):i="\uFFFD"}else i=String.fromCharCode(o);i&&(t.push(e.slice(n,a),encodeURIComponent(i)),n=a+r+1,i=""),r&&(a+=r,r=0)}return t.join("")+e.slice(n)}function K(e,t,a,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return i;function i(s){return Q(s)?(e.enter(a),l(s)):t(s)}function l(s){return Q(s)&&o++<r?(e.consume(s),l):(e.exit(a),t(s))}}var mT={tokenize:nN};function nN(e){let t=e.attempt(this.parser.constructs.contentInitial,n,r),a;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),K(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),o(l)}function o(l){let s=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=s),a=s,i(l)}function i(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return q(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),i)}}var gT={tokenize:oN},hT={tokenize:iN};function oN(e){let t=this,a=[],n=0,r,o,i;return l;function l(g){if(n<a.length){let S=a[n];return t.containerState=S[1],e.attempt(S[0].continuation,s,u)(g)}return u(g)}function s(g){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();let S=t.events.length,L=S,_;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){_=t.events[L][1].end;break}v(n);let A=S;for(;A<t.events.length;)t.events[A][1].end={..._},A++;return ht(t.events,L+1,0,t.events.slice(S)),t.events.length=A,u(g)}return l(g)}function u(g){if(n===a.length){if(!r)return p(g);if(r.currentConstruct&&r.currentConstruct.concrete)return m(g);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(hT,c,d)(g)}function c(g){return r&&y(),v(n),p(g)}function d(g){return t.parser.lazy[t.now().line]=n!==a.length,i=t.now().offset,m(g)}function p(g){return t.containerState={},e.attempt(hT,f,m)(g)}function f(g){return n++,a.push([t.currentConstruct,t.containerState]),p(g)}function m(g){if(g===null){r&&y(),v(0),e.consume(g);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),x(g)}function x(g){if(g===null){b(e.exit("chunkFlow"),!0),v(0),e.consume(g);return}return q(g)?(e.consume(g),b(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(g),x)}function b(g,S){let L=t.sliceStream(g);if(S&&L.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(L),t.parser.lazy[g.start.line]){let _=r.events.length;for(;_--;)if(r.events[_][1].start.offset<i&&(!r.events[_][1].end||r.events[_][1].end.offset>i))return;let A=t.events.length,z=A,$,k;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if($){k=t.events[z][1].end;break}$=!0}for(v(n),_=A;_<t.events.length;)t.events[_][1].end={...k},_++;ht(t.events,z+1,0,t.events.slice(A)),t.events.length=_}}function v(g){let S=a.length;for(;S-- >g;){let L=a[S];t.containerState=L[1],L[0].exit.call(t,e)}a.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function iN(e,t,a){return K(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rn(e){if(e===null||ge(e)||Sr(e))return 1;if(ii(e))return 2}function Qn(e,t,a){let n=[],r=-1;for(;++r<e.length;){let o=e[r].resolveAll;o&&!n.includes(o)&&(t=o(t,a),n.push(o))}return t}var ku={name:"attention",resolveAll:lN,tokenize:sN};function lN(e,t){let a=-1,n,r,o,i,l,s,u,c;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(n=a;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[n][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[a][1].start};vT(d,-s),vT(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[a][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[n][1].end={...i.start},e[a][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Jt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Jt(u,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),u=Jt(u,Qn(t.parser.constructs.insideSpan.null,e.slice(n+1,a),t)),u=Jt(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[a][1].end.offset-e[a][1].start.offset?(c=2,u=Jt(u,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,ht(e,n-1,a-n+3,u),a=n+u.length-c-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function sN(e,t){let a=this.parser.constructs.attentionMarkers.null,n=this.previous,r=rn(n),o;return i;function i(s){return o=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===o)return e.consume(s),l;let u=e.exit("attentionSequence"),c=rn(s),d=!c||c===2&&r||a.includes(s),p=!r||r===2&&c||a.includes(n);return u._open=!!(o===42?d:d&&(r||!p)),u._close=!!(o===42?p:p&&(c||!d)),t(s)}}function vT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Av={name:"autolink",tokenize:uN};function uN(e,t,a){let n=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return kt(f)?(e.consume(f),i):f===64?a(f):u(f)}function i(f){return f===43||f===45||f===46||ct(f)?(n=1,l(f)):u(f)}function l(f){return f===58?(e.consume(f),n=0,s):(f===43||f===45||f===46||ct(f))&&n++<32?(e.consume(f),l):(n=0,u(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||oi(f)?a(f):(e.consume(f),s)}function u(f){return f===64?(e.consume(f),c):dT(f)?(e.consume(f),u):a(f)}function c(f){return ct(f)?d(f):a(f)}function d(f){return f===46?(e.consume(f),n=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||ct(f))&&n++<63){let m=f===45?p:d;return e.consume(f),m}return a(f)}}var wr={partial:!0,tokenize:cN};function cN(e,t,a){return n;function n(o){return Q(o)?K(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||q(o)?t(o):a(o)}}var Mf={continuation:{tokenize:fN},exit:pN,name:"blockQuote",tokenize:dN};function dN(e,t,a){let n=this;return r;function r(i){if(i===62){let l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return a(i)}function o(i){return Q(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function fN(e,t,a){let n=this;return r;function r(i){return Q(i)?K(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)}function o(i){return e.attempt(Mf,t,a)(i)}}function pN(e){e.exit("blockQuote")}var Of={name:"characterEscape",tokenize:mN};function mN(e,t,a){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return pT(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(o)}}var zf={name:"characterReference",tokenize:hN};function hN(e,t,a){let n=this,r=0,o,i;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,i=ct,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=fT,c):(e.enter("characterReferenceValue"),o=7,i=Iu,c(d))}function c(d){if(d===59&&r){let p=e.exit("characterReferenceValue");return i===ct&&!Al(n.sliceSerialize(p))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&r++<o?(e.consume(d),c):a(d)}}var yT={partial:!0,tokenize:vN},Df={concrete:!0,name:"codeFenced",tokenize:gN};function gN(e,t,a){let n=this,r={partial:!0,tokenize:L},o=0,i=0,l;return s;function s(_){return u(_)}function u(_){let A=n.events[n.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(_)}function c(_){return _===l?(i++,e.consume(_),c):i<3?a(_):(e.exit("codeFencedFenceSequence"),Q(_)?K(e,d,"whitespace")(_):d(_))}function d(_){return _===null||q(_)?(e.exit("codeFencedFence"),n.interrupt?t(_):e.check(yT,x,S)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||q(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(_)):Q(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,f,"whitespace")(_)):_===96&&_===l?a(_):(e.consume(_),p)}function f(_){return _===null||q(_)?d(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===null||q(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(_)):_===96&&_===l?a(_):(e.consume(_),m)}function x(_){return e.attempt(r,S,b)(_)}function b(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),v}function v(_){return o>0&&Q(_)?K(e,y,"linePrefix",o+1)(_):y(_)}function y(_){return _===null||q(_)?e.check(yT,x,S)(_):(e.enter("codeFlowValue"),g(_))}function g(_){return _===null||q(_)?(e.exit("codeFlowValue"),y(_)):(e.consume(_),g)}function S(_){return e.exit("codeFenced"),t(_)}function L(_,A,z){let $=0;return k;function k(W){return _.enter("lineEnding"),_.consume(W),_.exit("lineEnding"),G}function G(W){return _.enter("codeFencedFence"),Q(W)?K(_,Z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Z(W)}function Z(W){return W===l?(_.enter("codeFencedFenceSequence"),F(W)):z(W)}function F(W){return W===l?($++,_.consume(W),F):$>=i?(_.exit("codeFencedFenceSequence"),Q(W)?K(_,J,"whitespace")(W):J(W)):z(W)}function J(W){return W===null||q(W)?(_.exit("codeFencedFence"),A(W)):z(W)}}}function vN(e,t,a){let n=this;return r;function r(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}var _u={name:"codeIndented",tokenize:xN},yN={partial:!0,tokenize:bN};function xN(e,t,a){let n=this;return r;function r(u){return e.enter("codeIndented"),K(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(u):a(u)}function i(u){return u===null?s(u):q(u)?e.attempt(yN,i,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||q(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function bN(e,t,a){let n=this;return r;function r(i){return n.parser.lazy[n.now().line]?a(i):q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):K(e,o,"linePrefix",5)(i)}function o(i){let l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):q(i)?r(i):a(i)}}var Ev={name:"codeText",previous:wN,resolve:SN,tokenize:IN};function SN(e){let t=e.length-4,a=3,n,r;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=a;++n<t;)if(e[n][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(n=a-1,t++;++n<=t;)r===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(r=n):(n===t||e[n][1].type==="lineEnding")&&(e[r][1].type="codeTextData",n!==r+2&&(e[r][1].end=e[n-1][1].end,e.splice(r+2,n-r-2),t-=n-r-2,n=r+2),r=void 0);return e}function wN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function IN(e,t,a){let n=this,r=0,o,i;return l;function l(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?a(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(i=e.enter("codeTextSequence"),o=0,d(p)):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||q(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function d(p){return p===96?(e.consume(p),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",c(p))}}var Rf=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,a){let n=a??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,a,n){let r=a||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Cu(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Cu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let a=this.left.splice(t,Number.POSITIVE_INFINITY);Cu(this.right,a.reverse())}else{let a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cu(this.left,a.reverse())}}};function Cu(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function $f(e){let t={},a=-1,n,r,o,i,l,s,u,c=new Rf(e);for(;++a<c.length;){for(;a in t;)a=t[a];if(n=c.get(a),a&&n[1].type==="chunkFlow"&&c.get(a-1)[1].type==="listItemPrefix"&&(s=n[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,kN(c,a)),a=t[a],u=!0);else if(n[1]._container){for(o=a,r=void 0;o--;)if(i=c.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;r&&(n[1].end={...c.get(r)[1].start},l=c.slice(r,a),l.unshift(n),c.splice(r,a-r+1,l))}}return ht(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function kN(e,t){let a=e.get(t)[1],n=e.get(t)[2],r=t-1,o=[],i=a._tokenizer;i||(i=n.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));let l=i.events,s=[],u={},c,d,p=-1,f=a,m=0,x=0,b=[x];for(;f;){for(;e.get(++r)[1]!==f;);o.push(r),f._tokenizer||(c=n.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=a;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(x=p+1,b.push(x),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):b.pop(),p=b.length;p--;){let v=l.slice(b[p],b[p+1]),y=o.pop();s.push([y,y+v.length-1]),e.splice(y,2,v)}for(s.reverse(),p=-1;++p<s.length;)u[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return u}var Mv={resolve:CN,tokenize:LN},_N={partial:!0,tokenize:TN};function CN(e){return $f(e),e}function LN(e,t){let a;return n;function n(l){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?o(l):q(l)?e.check(_N,i,o)(l):(e.consume(l),r)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function i(l){return e.consume(l),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,r}}function TN(e,t,a){let n=this;return r;function r(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),K(e,o,"linePrefix")}function o(i){if(i===null||q(i))return a(i);let l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,a,t)(i)}}function Pf(e,t,a,n,r,o,i,l,s){let u=s||Number.POSITIVE_INFINITY,c=0;return d;function d(v){return v===60?(e.enter(n),e.enter(r),e.enter(o),e.consume(v),e.exit(o),p):v===null||v===32||v===41||oi(v)?a(v):(e.enter(n),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(v))}function p(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(r),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(l),p(v)):v===null||v===60||q(v)?a(v):(e.consume(v),v===92?m:f)}function m(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function x(v){return!c&&(v===null||v===41||ge(v))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(n),t(v)):c<u&&v===40?(e.consume(v),c++,x):v===41?(e.consume(v),c--,x):v===null||v===32||v===40||oi(v)?a(v):(e.consume(v),v===92?b:x)}function b(v){return v===40||v===41||v===92?(e.consume(v),x):x(v)}}function Nf(e,t,a,n,r,o){let i=this,l=0,s;return u;function u(f){return e.enter(n),e.enter(r),e.consume(f),e.exit(r),e.enter(o),c}function c(f){return l>999||f===null||f===91||f===93&&!s||f===94&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):f===93?(e.exit(o),e.enter(r),e.consume(f),e.exit(r),e.exit(n),t):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||q(f)||l++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!Q(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),l++,d):d(f)}}function Uf(e,t,a,n,r,o){let i;return l;function l(p){return p===34||p===39||p===40?(e.enter(n),e.enter(r),e.consume(p),e.exit(r),i=p===40?41:p,s):a(p)}function s(p){return p===i?(e.enter(r),e.consume(p),e.exit(r),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===i?(e.exit(o),s(i)):p===null?a(p):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),K(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===i||p===null||q(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===i||p===92?(e.consume(p),c):c(p)}}function li(e,t){let a;return n;function n(r){return q(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a=!0,n):Q(r)?K(e,n,a?"linePrefix":"lineSuffix")(r):t(r)}}var Ov={name:"definition",tokenize:EN},AN={partial:!0,tokenize:MN};function EN(e,t,a){let n=this,r;return o;function o(f){return e.enter("definition"),i(f)}function i(f){return Nf.call(n,e,l,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function l(f){return r=qt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):a(f)}function s(f){return ge(f)?li(e,u)(f):u(f)}function u(f){return Pf(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(AN,d,d)(f)}function d(f){return Q(f)?K(e,p,"whitespace")(f):p(f)}function p(f){return f===null||q(f)?(e.exit("definition"),n.parser.defined.push(r),t(f)):a(f)}}function MN(e,t,a){return n;function n(l){return ge(l)?li(e,r)(l):a(l)}function r(l){return Uf(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return Q(l)?K(e,i,"whitespace")(l):i(l)}function i(l){return l===null||q(l)?t(l):a(l)}}var zv={name:"hardBreakEscape",tokenize:ON};function ON(e,t,a){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return q(o)?(e.exit("hardBreakEscape"),t(o)):a(o)}}var Dv={name:"headingAtx",resolve:zN,tokenize:DN};function zN(e,t){let a=e.length-2,n=3,r,o;return e[n][1].type==="whitespace"&&(n+=2),a-2>n&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(n===a-1||a-4>n&&e[a-2][1].type==="whitespace")&&(a-=n+1===a?2:4),a>n&&(r={type:"atxHeadingText",start:e[n][1].start,end:e[a][1].end},o={type:"chunkText",start:e[n][1].start,end:e[a][1].end,contentType:"text"},ht(e,n,a-n+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function DN(e,t,a){let n=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&n++<6?(e.consume(c),i):c===null||ge(c)?(e.exit("atxHeadingSequence"),l(c)):a(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||q(c)?(e.exit("atxHeading"),t(c)):Q(c)?K(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||ge(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}var xT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Rv=["pre","script","style","textarea"];var $v={concrete:!0,name:"htmlFlow",resolveTo:PN,tokenize:NN},RN={partial:!0,tokenize:jN},$N={partial:!0,tokenize:UN};function PN(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function NN(e,t,a){let n=this,r,o,i,l,s;return u;function u(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),d}function d(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),o=!0,x):w===63?(e.consume(w),r=3,n.interrupt?t:I):kt(w)?(e.consume(w),i=String.fromCharCode(w),b):a(w)}function p(w){return w===45?(e.consume(w),r=2,f):w===91?(e.consume(w),r=5,l=0,m):kt(w)?(e.consume(w),r=4,n.interrupt?t:I):a(w)}function f(w){return w===45?(e.consume(w),n.interrupt?t:I):a(w)}function m(w){let Ge="CDATA[";return w===Ge.charCodeAt(l++)?(e.consume(w),l===Ge.length?n.interrupt?t:Z:m):a(w)}function x(w){return kt(w)?(e.consume(w),i=String.fromCharCode(w),b):a(w)}function b(w){if(w===null||w===47||w===62||ge(w)){let Ge=w===47,Ea=i.toLowerCase();return!Ge&&!o&&Rv.includes(Ea)?(r=1,n.interrupt?t(w):Z(w)):xT.includes(i.toLowerCase())?(r=6,Ge?(e.consume(w),v):n.interrupt?t(w):Z(w)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?a(w):o?y(w):g(w))}return w===45||ct(w)?(e.consume(w),i+=String.fromCharCode(w),b):a(w)}function v(w){return w===62?(e.consume(w),n.interrupt?t:Z):a(w)}function y(w){return Q(w)?(e.consume(w),y):k(w)}function g(w){return w===47?(e.consume(w),k):w===58||w===95||kt(w)?(e.consume(w),S):Q(w)?(e.consume(w),g):k(w)}function S(w){return w===45||w===46||w===58||w===95||ct(w)?(e.consume(w),S):L(w)}function L(w){return w===61?(e.consume(w),_):Q(w)?(e.consume(w),L):g(w)}function _(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),s=w,A):Q(w)?(e.consume(w),_):z(w)}function A(w){return w===s?(e.consume(w),s=null,$):w===null||q(w)?a(w):(e.consume(w),A)}function z(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||ge(w)?L(w):(e.consume(w),z)}function $(w){return w===47||w===62||Q(w)?g(w):a(w)}function k(w){return w===62?(e.consume(w),G):a(w)}function G(w){return w===null||q(w)?Z(w):Q(w)?(e.consume(w),G):a(w)}function Z(w){return w===45&&r===2?(e.consume(w),ne):w===60&&r===1?(e.consume(w),ie):w===62&&r===4?(e.consume(w),Ue):w===63&&r===3?(e.consume(w),I):w===93&&r===5?(e.consume(w),X):q(w)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(RN,fa,F)(w)):w===null||q(w)?(e.exit("htmlFlowData"),F(w)):(e.consume(w),Z)}function F(w){return e.check($N,J,fa)(w)}function J(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),W}function W(w){return w===null||q(w)?F(w):(e.enter("htmlFlowData"),Z(w))}function ne(w){return w===45?(e.consume(w),I):Z(w)}function ie(w){return w===47?(e.consume(w),i="",te):Z(w)}function te(w){if(w===62){let Ge=i.toLowerCase();return Rv.includes(Ge)?(e.consume(w),Ue):Z(w)}return kt(w)&&i.length<8?(e.consume(w),i+=String.fromCharCode(w),te):Z(w)}function X(w){return w===93?(e.consume(w),I):Z(w)}function I(w){return w===62?(e.consume(w),Ue):w===45&&r===2?(e.consume(w),I):Z(w)}function Ue(w){return w===null||q(w)?(e.exit("htmlFlowData"),fa(w)):(e.consume(w),Ue)}function fa(w){return e.exit("htmlFlow"),t(w)}}function UN(e,t,a){let n=this;return r;function r(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):a(i)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}function jN(e,t,a){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(wr,t,a)}}var Pv={name:"htmlText",tokenize:BN};function BN(e,t,a){let n=this,r,o,i;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),s}function s(I){return I===33?(e.consume(I),u):I===47?(e.consume(I),L):I===63?(e.consume(I),g):kt(I)?(e.consume(I),z):a(I)}function u(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),o=0,m):kt(I)?(e.consume(I),y):a(I)}function c(I){return I===45?(e.consume(I),f):a(I)}function d(I){return I===null?a(I):I===45?(e.consume(I),p):q(I)?(i=d,ie(I)):(e.consume(I),d)}function p(I){return I===45?(e.consume(I),f):d(I)}function f(I){return I===62?ne(I):I===45?p(I):d(I)}function m(I){let Ue="CDATA[";return I===Ue.charCodeAt(o++)?(e.consume(I),o===Ue.length?x:m):a(I)}function x(I){return I===null?a(I):I===93?(e.consume(I),b):q(I)?(i=x,ie(I)):(e.consume(I),x)}function b(I){return I===93?(e.consume(I),v):x(I)}function v(I){return I===62?ne(I):I===93?(e.consume(I),v):x(I)}function y(I){return I===null||I===62?ne(I):q(I)?(i=y,ie(I)):(e.consume(I),y)}function g(I){return I===null?a(I):I===63?(e.consume(I),S):q(I)?(i=g,ie(I)):(e.consume(I),g)}function S(I){return I===62?ne(I):g(I)}function L(I){return kt(I)?(e.consume(I),_):a(I)}function _(I){return I===45||ct(I)?(e.consume(I),_):A(I)}function A(I){return q(I)?(i=A,ie(I)):Q(I)?(e.consume(I),A):ne(I)}function z(I){return I===45||ct(I)?(e.consume(I),z):I===47||I===62||ge(I)?$(I):a(I)}function $(I){return I===47?(e.consume(I),ne):I===58||I===95||kt(I)?(e.consume(I),k):q(I)?(i=$,ie(I)):Q(I)?(e.consume(I),$):ne(I)}function k(I){return I===45||I===46||I===58||I===95||ct(I)?(e.consume(I),k):G(I)}function G(I){return I===61?(e.consume(I),Z):q(I)?(i=G,ie(I)):Q(I)?(e.consume(I),G):$(I)}function Z(I){return I===null||I===60||I===61||I===62||I===96?a(I):I===34||I===39?(e.consume(I),r=I,F):q(I)?(i=Z,ie(I)):Q(I)?(e.consume(I),Z):(e.consume(I),J)}function F(I){return I===r?(e.consume(I),r=void 0,W):I===null?a(I):q(I)?(i=F,ie(I)):(e.consume(I),F)}function J(I){return I===null||I===34||I===39||I===60||I===61||I===96?a(I):I===47||I===62||ge(I)?$(I):(e.consume(I),J)}function W(I){return I===47||I===62||ge(I)?$(I):a(I)}function ne(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):a(I)}function ie(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),te}function te(I){return Q(I)?K(e,X,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):X(I)}function X(I){return e.enter("htmlTextData"),i(I)}}var si={name:"labelEnd",resolveAll:HN,resolveTo:VN,tokenize:GN},FN={tokenize:WN},qN={tokenize:JN},ZN={tokenize:XN};function HN(e){let t=-1,a=[];for(;++t<e.length;){let n=e[t][1];if(a.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let r=n.type==="labelImage"?4:2;n.type="data",t+=r}}return e.length!==a.length&&ht(e,0,e.length,a),e}function VN(e,t){let a=e.length,n=0,r,o,i,l;for(;a--;)if(r=e[a][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[a][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(i){if(e[a][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=a,r.type!=="labelLink")){n=2;break}}else r.type==="labelEnd"&&(i=a);let s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",s,t],["enter",u,t]],l=Jt(l,e.slice(o+1,o+n+3)),l=Jt(l,[["enter",c,t]]),l=Jt(l,Qn(t.parser.constructs.insideSpan.null,e.slice(o+n+4,i-3),t)),l=Jt(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=Jt(l,e.slice(i+1)),l=Jt(l,[["exit",s,t]]),ht(e,o,e.length,l),e}function GN(e,t,a){let n=this,r=n.events.length,o,i;for(;r--;)if((n.events[r][1].type==="labelImage"||n.events[r][1].type==="labelLink")&&!n.events[r][1]._balanced){o=n.events[r][1];break}return l;function l(p){return o?o._inactive?d(p):(i=n.parser.defined.includes(qt(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):a(p)}function s(p){return p===40?e.attempt(FN,c,i?c:d)(p):p===91?e.attempt(qN,c,i?u:d)(p):i?c(p):d(p)}function u(p){return e.attempt(ZN,c,d)(p)}function c(p){return t(p)}function d(p){return o._balanced=!0,a(p)}}function WN(e,t,a){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return ge(d)?li(e,o)(d):o(d)}function o(d){return d===41?c(d):Pf(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return ge(d)?li(e,s)(d):c(d)}function l(d){return a(d)}function s(d){return d===34||d===39||d===40?Uf(e,u,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return ge(d)?li(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function JN(e,t,a){let n=this;return r;function r(l){return Nf.call(n,e,o,i,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(qt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):a(l)}function i(l){return a(l)}}function XN(e,t,a){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):a(o)}}var Nv={name:"labelStartImage",resolveAll:si.resolveAll,tokenize:KN};function KN(e,t,a){let n=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):a(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(l):t(l)}}var Uv={name:"labelStartLink",resolveAll:si.resolveAll,tokenize:YN};function YN(e,t,a){let n=this;return r;function r(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o}function o(i){return i===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(i):t(i)}}var Lu={name:"lineEnding",tokenize:QN};function QN(e,t){return a;function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),K(e,t,"linePrefix")}}var ui={name:"thematicBreak",tokenize:e4};function e4(e,t,a){let n=0,r;return o;function o(u){return e.enter("thematicBreak"),i(u)}function i(u){return r=u,l(u)}function l(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):n>=3&&(u===null||q(u))?(e.exit("thematicBreak"),t(u)):a(u)}function s(u){return u===r?(e.consume(u),n++,s):(e.exit("thematicBreakSequence"),Q(u)?K(e,l,"whitespace")(u):l(u))}}var Zt={continuation:{tokenize:n4},exit:i4,name:"list",tokenize:r4},t4={partial:!0,tokenize:l4},a4={partial:!0,tokenize:o4};function r4(e,t,a){let n=this,r=n.events[n.events.length-1],o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,i=0;return l;function l(f){let m=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:Iu(f)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(ui,a,u)(f):u(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return a(f)}function s(f){return Iu(f)&&++i<10?(e.consume(f),s):(!n.interrupt||i<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):a(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(wr,n.interrupt?a:c,e.attempt(t4,p,d))}function c(f){return n.containerState.initialBlankLine=!0,o++,p(f)}function d(f){return Q(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):a(f)}function p(f){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function n4(e,t,a){let n=this;return n.containerState._closeFlow=void 0,e.check(wr,r,o);function r(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,K(e,t,"listItemIndent",n.containerState.size+1)(l)}function o(l){return n.containerState.furtherBlankLines||!Q(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(a4,t,i)(l))}function i(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,K(e,e.attempt(Zt,t,a),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function o4(e,t,a){let n=this;return K(e,r,"listItemIndent",n.containerState.size+1);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(o):a(o)}}function i4(e){e.exit(this.containerState.type)}function l4(e,t,a){let n=this;return K(e,r,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){let i=n.events[n.events.length-1];return!Q(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):a(o)}}var jf={name:"setextUnderline",resolveTo:s4,tokenize:u4};function s4(e,t){let a=e.length,n,r,o;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){n=a;break}e[a][1].type==="paragraph"&&(r=a)}else e[a][1].type==="content"&&e.splice(a,1),!o&&e[a][1].type==="definition"&&(o=a);let i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e}function u4(e,t,a){let n=this,r;return o;function o(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),r=u,i(u)):a(u)}function i(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===r?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Q(u)?K(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||q(u)?(e.exit("setextHeadingLine"),t(u)):a(u)}}var bT={tokenize:c4};function c4(e){let t=this,a=e.attempt(wr,n,e.attempt(this.parser.constructs.flowInitial,r,K(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Mv,r)),"linePrefix")));return a;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,a}}var ST={resolveAll:_T()},wT=kT("string"),IT=kT("text");function kT(e){return{resolveAll:_T(e==="text"?d4:void 0),tokenize:t};function t(a){let n=this,r=this.parser.constructs[e],o=a.attempt(r,i,l);return i;function i(c){return u(c)?o(c):l(c)}function l(c){if(c===null){a.consume(c);return}return a.enter("data"),a.consume(c),s}function s(c){return u(c)?(a.exit("data"),o(c)):(a.consume(c),s)}function u(c){if(c===null)return!0;let d=r[c],p=-1;if(d)for(;++p<d.length;){let f=d[p];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function _T(e){return t;function t(a,n){let r=-1,o;for(;++r<=a.length;)o===void 0?a[r]&&a[r][1].type==="data"&&(o=r,r++):(!a[r]||a[r][1].type!=="data")&&(r!==o+2&&(a[o][1].end=a[r-1][1].end,a.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(a,n):a}}function d4(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){let n=e[a-1][1],r=t.sliceStream(n),o=r.length,i=-1,l=0,s;for(;o--;){let u=r[o];if(typeof u=="string"){for(i=u.length;u.charCodeAt(i-1)===32;)l++,i--;if(i)break;i=-1}else if(u===-2)s=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(l=0),l){let u={type:a===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?i:n.start._bufferIndex+i,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(a,0,["enter",u,t],["exit",u,t]),a+=2)}a++}return e}var jv={};cr(jv,{attentionMarkers:()=>x4,contentInitial:()=>p4,disable:()=>b4,document:()=>f4,flow:()=>h4,flowInitial:()=>m4,insideSpan:()=>y4,string:()=>g4,text:()=>v4});var f4={42:Zt,43:Zt,45:Zt,48:Zt,49:Zt,50:Zt,51:Zt,52:Zt,53:Zt,54:Zt,55:Zt,56:Zt,57:Zt,62:Mf},p4={91:Ov},m4={[-2]:_u,[-1]:_u,32:_u},h4={35:Dv,42:ui,45:[jf,ui],60:$v,61:jf,95:ui,96:Df,126:Df},g4={38:zf,92:Of},v4={[-5]:Lu,[-4]:Lu,[-3]:Lu,33:Nv,38:zf,42:ku,60:[Av,Pv],91:Uv,92:[zv,Of],93:si,95:ku,96:Ev},y4={null:[ku,ST]},x4={null:[42,95]},b4={null:[]};function CT(e,t,a){let n={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0},r={},o=[],i=[],l=[],s=!0,u={attempt:$(A),check:$(z),consume:S,enter:L,exit:_,interrupt:$(z,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:b,parser:e,previous:null,sliceSerialize:m,sliceStream:x,write:f},d=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function f(F){return i=Jt(i,F),y(),i[i.length-1]!==null?[]:(k(t,0),c.events=Qn(o,c.events,c),c.events)}function m(F,J){return w4(x(F),J)}function x(F){return S4(i,F)}function b(){let{_bufferIndex:F,_index:J,line:W,column:ne,offset:ie}=n;return{_bufferIndex:F,_index:J,line:W,column:ne,offset:ie}}function v(F){r[F.line]=F.column,Z()}function y(){let F;for(;n._index<i.length;){let J=i[n._index];if(typeof J=="string")for(F=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===F&&n._bufferIndex<J.length;)g(J.charCodeAt(n._bufferIndex));else g(J)}}function g(F){s=void 0,p=F,d=d(F)}function S(F){q(F)?(n.line++,n.column=1,n.offset+=F===-3?2:1,Z()):F!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===i[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=F,s=!0}function L(F,J){let W=J||{};return W.type=F,W.start=b(),c.events.push(["enter",W,c]),l.push(W),W}function _(F){let J=l.pop();return J.end=b(),c.events.push(["exit",J,c]),J}function A(F,J){k(F,J.from)}function z(F,J){J.restore()}function $(F,J){return W;function W(ne,ie,te){let X,I,Ue,fa;return Array.isArray(ne)?Ge(ne):"tokenize"in ne?Ge([ne]):w(ne);function w(ot){return Nt;function Nt(Kt){let pa=Kt!==null&&ot[Kt],gn=Kt!==null&&ot.null,po=[...Array.isArray(pa)?pa:pa?[pa]:[],...Array.isArray(gn)?gn:gn?[gn]:[]];return Ge(po)(Kt)}}function Ge(ot){return X=ot,I=0,ot.length===0?te:Ea(ot[I])}function Ea(ot){return Nt;function Nt(Kt){return fa=G(),Ue=ot,ot.partial||(c.currentConstruct=ot),ot.name&&c.parser.constructs.disable.null.includes(ot.name)?Ar(Kt):ot.tokenize.call(J?Object.assign(Object.create(c),J):c,u,hn,Ar)(Kt)}}function hn(ot){return s=!0,F(Ue,fa),ie}function Ar(ot){return s=!0,fa.restore(),++I<X.length?Ea(X[I]):te}}}function k(F,J){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&ht(c.events,J,c.events.length-J,F.resolve(c.events.slice(J),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function G(){let F=b(),J=c.previous,W=c.currentConstruct,ne=c.events.length,ie=Array.from(l);return{from:ne,restore:te};function te(){n=F,c.previous=J,c.currentConstruct=W,c.events.length=ne,l=ie,Z()}}function Z(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}function S4(e,t){let a=t.start._index,n=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex,i;if(a===r)i=[e[a].slice(n,o)];else{if(i=e.slice(a,r),n>-1){let l=i[0];typeof l=="string"?i[0]=l.slice(n):i.shift()}o>0&&i.push(e[r].slice(0,o))}return i}function w4(e,t){let a=-1,n=[],r;for(;++a<e.length;){let o=e[a],i;if(typeof o=="string")i=o;else switch(o){case-5:{i="\r";break}case-4:{i=`
|
|
17
17
|
`;break}case-3:{i=`\r
|
|
18
|
-
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&r)continue;i=" ";break}default:i=String.fromCharCode(o)}r=o===-2,n.push(i)}return n.join("")}function Pv(e){let n={constructs:Cf([$v,...(e||{}).extensions||[]]),content:r(dT),defined:[],document:r(pT),flow:r(vT),lazy:{},string:r(xT),text:r(bT)};return n;function r(o){return i;function i(l){return IT(n,o,l)}}}function Nv(e){for(;!zf(e););return e}var kT=/[\0\t\n\r]/g;function Uv(){let e=1,t="",a=!0,n;return r;function r(o,i,l){let s=[],u,c,d,p,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(i||void 0).decode(o)),d=0,t="",a&&(o.charCodeAt(0)===65279&&d++,a=void 0);d<o.length;){if(kT.lastIndex=d,u=kT.exec(o),p=u&&u.index!==void 0?u.index:o.length,f=o.charCodeAt(p),!u){t=o.slice(d);break}if(f===10&&d===p&&n)s.push(-3),n=void 0;else switch(n&&(s.push(-5),n=void 0),d<p&&(s.push(o.slice(d,p)),e+=p-d),f){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:n=!0,e=1}d=p+1}return l&&(n&&s.push(-5),t&&s.push(t),s.push(null)),s}}var v4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _T(e){return e.replace(v4,y4)}function y4(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){let r=a.charCodeAt(1),o=r===120||r===88;return Lf(a.slice(o?2:1),o?16:10)}return Cl(a)||e}var LT={}.hasOwnProperty;function jv(e,t,a){return typeof t!="string"&&(a=t,t=void 0),x4(a)(Nv(Pv(a).document().write(Uv()(e,t,!0))))}function x4(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Lc),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(_c),blockQuote:o(Xt),characterEscape:$,characterReference:$,codeFenced:o(da),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(da,i),codeText:o(pn,i),codeTextData:$,data:$,codeFlowValue:$,definition:o(uo),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(es),hardBreakEscape:o(Cc),hardBreakTrailing:o(Cc),htmlFlow:o(wi,i),htmlFlowData:$,htmlText:o(wi,i),htmlTextData:$,image:o(fm),label:i,link:o(Lc),listItem:o(Se),listItemValue:p,listOrdered:o(Ii,d),listUnordered:o(Ii),paragraph:o(nt),reference:w,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(_c),strong:o(Wt),thematicBreak:o(fo)},exit:{atxHeading:s(),atxHeadingSequence:L,autolink:s(),autolinkEmail:Rt,autolinkProtocol:rt,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:La,characterReferenceMarkerNumeric:La,characterReferenceValue:fn,characterReference:Cr,codeFenced:s(b),codeFencedFence:x,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:k,codeIndented:s(v),codeText:s(J),codeTextData:k,data:k,definition:s(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(F),htmlFlowData:k,htmlText:s(X),htmlTextData:k,image:s(ie),label:W,labelText:te,lineEnding:G,link:s(ne),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:Ve,resourceDestinationString:I,resourceTitleString:Ne,resource:ca,setextHeading:s(z),setextHeadingLineSequence:A,setextHeadingText:_,strong:s(),thematicBreak:s()}};TT(t,(e||{}).mdastExtensions||[]);let a={};return n;function n(E){let j={type:"root",children:[]},le={stack:[j],tokenStack:[],config:t,enter:l,exit:u,buffer:i,resume:c,data:a},we=[],Be=-1;for(;++Be<E.length;)if(E[Be][1].type==="listOrdered"||E[Be][1].type==="listUnordered")if(E[Be][0]==="enter")we.push(Be);else{let Xa=we.pop();Be=r(E,Xa,Be)}for(Be=-1;++Be<E.length;){let Xa=t[E[Be][0]];LT.call(Xa,E[Be][1].type)&&Xa[E[Be][1].type].call(Object.assign({sliceSerialize:E[Be][2].sliceSerialize},le),E[Be][1])}if(le.tokenStack.length>0){let Xa=le.tokenStack[le.tokenStack.length-1];(Xa[1]||CT).call(le,void 0,Xa[0])}for(j.position={start:Kn(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:Kn(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<t.transforms.length;)j=t.transforms[Be](j)||j;return j}function r(E,j,le){let we=j-1,Be=-1,Xa=!1,po,Lr,ts,as;for(;++we<=le;){let fa=E[we];switch(fa[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{fa[0]==="enter"?Be++:Be--,as=void 0;break}case"lineEndingBlank":{fa[0]==="enter"&&(po&&!as&&!Be&&!ts&&(ts=we),as=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:as=void 0}if(!Be&&fa[0]==="enter"&&fa[1].type==="listItemPrefix"||Be===-1&&fa[0]==="exit"&&(fa[1].type==="listUnordered"||fa[1].type==="listOrdered")){if(po){let ki=we;for(Lr=void 0;ki--;){let Tr=E[ki];if(Tr[1].type==="lineEnding"||Tr[1].type==="lineEndingBlank"){if(Tr[0]==="exit")continue;Lr&&(E[Lr][1].type="lineEndingBlank",Xa=!0),Tr[1].type="lineEnding",Lr=ki}else if(!(Tr[1].type==="linePrefix"||Tr[1].type==="blockQuotePrefix"||Tr[1].type==="blockQuotePrefixWhitespace"||Tr[1].type==="blockQuoteMarker"||Tr[1].type==="listItemIndent"))break}ts&&(!Lr||ts<Lr)&&(po._spread=!0),po.end=Object.assign({},Lr?E[Lr][1].start:fa[1].end),E.splice(Lr||we,0,["exit",po,fa[2]]),we++,le++}if(fa[1].type==="listItemPrefix"){let ki={type:"listItem",_spread:!1,start:Object.assign({},fa[1].start),end:void 0};po=ki,E.splice(we,0,["enter",ki,fa[2]]),we++,le++,ts=void 0,as=!0}}}return E[j][1]._spread=Xa,le}function o(E,j){return le;function le(we){l.call(this,E(we),we),j&&j.call(this,we)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(E,j,le){this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([j,le||void 0]),E.position={start:Kn(j.start),end:void 0}}function s(E){return j;function j(le){E&&E.call(this,le),u.call(this,le)}}function u(E,j){let le=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==E.type&&(j?j.call(this,E,we[0]):(we[1]||CT).call(this,E,we[0]));else throw new Error("Cannot close `"+E.type+"` ("+Jn({start:E.start,end:E.end})+"): it\u2019s not open");le.position.end=Kn(E.end)}function c(){return ti(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(E){if(this.data.expectingFirstListItemValue){let j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(E),10),this.data.expectingFirstListItemValue=void 0}}function f(){let E=this.resume(),j=this.stack[this.stack.length-1];j.lang=E}function m(){let E=this.resume(),j=this.stack[this.stack.length-1];j.meta=E}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E.replace(/(\r?\n|\r)$/g,"")}function y(E){let j=this.resume(),le=this.stack[this.stack.length-1];le.label=j,le.identifier=Bt(this.sliceSerialize(E)).toLowerCase()}function g(){let E=this.resume(),j=this.stack[this.stack.length-1];j.title=E}function S(){let E=this.resume(),j=this.stack[this.stack.length-1];j.url=E}function L(E){let j=this.stack[this.stack.length-1];if(!j.depth){let le=this.sliceSerialize(E).length;j.depth=le}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function A(E){let j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(E).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function $(E){let le=this.stack[this.stack.length-1].children,we=le[le.length-1];(!we||we.type!=="text")&&(we=co(),we.position={start:Kn(E.start),end:void 0},le.push(we)),this.stack.push(we)}function k(E){let j=this.stack.pop();j.value+=this.sliceSerialize(E),j.position.end=Kn(E.end)}function G(E){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let le=j.children[j.children.length-1];le.position.end=Kn(E.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,E),k.call(this,E))}function Z(){this.data.atHardBreak=!0}function F(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E}function X(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E}function J(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E}function ne(){let E=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=j,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function ie(){let E=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=j,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function te(E){let j=this.sliceSerialize(E),le=this.stack[this.stack.length-2];le.label=_T(j),le.identifier=Bt(j).toLowerCase()}function W(){let E=this.stack[this.stack.length-1],j=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){let we=E.children;le.children=we}else le.alt=j}function I(){let E=this.resume(),j=this.stack[this.stack.length-1];j.url=E}function Ne(){let E=this.resume(),j=this.stack[this.stack.length-1];j.title=E}function ca(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function Ve(E){let j=this.resume(),le=this.stack[this.stack.length-1];le.label=j,le.identifier=Bt(this.sliceSerialize(E)).toLowerCase(),this.data.referenceType="full"}function La(E){this.data.characterReferenceType=E.type}function fn(E){let j=this.sliceSerialize(E),le=this.data.characterReferenceType,we;le?(we=Lf(j,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Cl(j);let Be=this.stack[this.stack.length-1];Be.value+=we}function Cr(E){let j=this.stack.pop();j.position.end=Kn(E.end)}function rt(E){k.call(this,E);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(E)}function Rt(E){k.call(this,E);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(E)}function Xt(){return{type:"blockquote",children:[]}}function da(){return{type:"code",lang:null,meta:null,value:""}}function pn(){return{type:"inlineCode",value:""}}function uo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function es(){return{type:"emphasis",children:[]}}function _c(){return{type:"heading",depth:0,children:[]}}function Cc(){return{type:"break"}}function wi(){return{type:"html",value:""}}function fm(){return{type:"image",title:null,url:"",alt:null}}function Lc(){return{type:"link",title:null,url:"",children:[]}}function Ii(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function Se(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function nt(){return{type:"paragraph",children:[]}}function Wt(){return{type:"strong",children:[]}}function co(){return{type:"text",value:""}}function fo(){return{type:"thematicBreak"}}}function Kn(e){return{line:e.line,column:e.column,offset:e.offset}}function TT(e,t){let a=-1;for(;++a<t.length;){let n=t[a];Array.isArray(n)?TT(e,n):b4(e,n)}}function b4(e,t){let a;for(a in t)if(LT.call(t,a))switch(a){case"canContainEols":{let n=t[a];n&&e[a].push(...n);break}case"transforms":{let n=t[a];n&&e[a].push(...n);break}case"enter":case"exit":{let n=t[a];n&&Object.assign(e[a],n);break}}}function CT(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Jn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Jn({start:t.start,end:t.end})+") is still open")}function Nf(e){let t=this;t.parser=a;function a(n){return jv(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function AT(e,t){let a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,a),e.applyData(t,a)}function ET(e,t){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
19
|
-
`}]}function
|
|
20
|
-
`:"",n={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(n.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:a}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function
|
|
18
|
+
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&r)continue;i=" ";break}default:i=String.fromCharCode(o)}r=o===-2,n.push(i)}return n.join("")}function Bv(e){let n={constructs:Af([jv,...(e||{}).extensions||[]]),content:r(mT),defined:[],document:r(gT),flow:r(bT),lazy:{},string:r(wT),text:r(IT)};return n;function r(o){return i;function i(l){return CT(n,o,l)}}}function Fv(e){for(;!$f(e););return e}var LT=/[\0\t\n\r]/g;function qv(){let e=1,t="",a=!0,n;return r;function r(o,i,l){let s=[],u,c,d,p,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(i||void 0).decode(o)),d=0,t="",a&&(o.charCodeAt(0)===65279&&d++,a=void 0);d<o.length;){if(LT.lastIndex=d,u=LT.exec(o),p=u&&u.index!==void 0?u.index:o.length,f=o.charCodeAt(p),!u){t=o.slice(d);break}if(f===10&&d===p&&n)s.push(-3),n=void 0;else switch(n&&(s.push(-5),n=void 0),d<p&&(s.push(o.slice(d,p)),e+=p-d),f){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:n=!0,e=1}d=p+1}return l&&(n&&s.push(-5),t&&s.push(t),s.push(null)),s}}var I4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function TT(e){return e.replace(I4,k4)}function k4(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){let r=a.charCodeAt(1),o=r===120||r===88;return Ef(a.slice(o?2:1),o?16:10)}return Al(a)||e}var ET={}.hasOwnProperty;function Zv(e,t,a){return typeof t!="string"&&(a=t,t=void 0),_4(a)(Fv(Bv(a).document().write(qv()(e,t,!0))))}function _4(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Ec),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(Tc),blockQuote:o(Kt),characterEscape:$,characterReference:$,codeFenced:o(pa),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(pa,i),codeText:o(gn,i),codeTextData:$,data:$,codeFlowValue:$,definition:o(po),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(rs),hardBreakEscape:o(Ac),hardBreakTrailing:o(Ac),htmlFlow:o(_i,i),htmlFlowData:$,htmlText:o(_i,i),htmlTextData:$,image:o(gm),label:i,link:o(Ec),listItem:o(we),listItemValue:p,listOrdered:o(Ci,d),listUnordered:o(Ci),paragraph:o(it),reference:w,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Tc),strong:o(Yt),thematicBreak:o(ho)},exit:{atxHeading:s(),atxHeadingSequence:L,autolink:s(),autolinkEmail:Nt,autolinkProtocol:ot,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Ea,characterReferenceMarkerNumeric:Ea,characterReferenceValue:hn,characterReference:Ar,codeFenced:s(b),codeFencedFence:x,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:k,codeIndented:s(v),codeText:s(W),codeTextData:k,data:k,definition:s(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(F),htmlFlowData:k,htmlText:s(J),htmlTextData:k,image:s(ie),label:X,labelText:te,lineEnding:G,link:s(ne),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:Ge,resourceDestinationString:I,resourceTitleString:Ue,resource:fa,setextHeading:s(z),setextHeadingLineSequence:A,setextHeadingText:_,strong:s(),thematicBreak:s()}};MT(t,(e||{}).mdastExtensions||[]);let a={};return n;function n(E){let j={type:"root",children:[]},le={stack:[j],tokenStack:[],config:t,enter:l,exit:u,buffer:i,resume:c,data:a},Ie=[],Fe=-1;for(;++Fe<E.length;)if(E[Fe][1].type==="listOrdered"||E[Fe][1].type==="listUnordered")if(E[Fe][0]==="enter")Ie.push(Fe);else{let Ya=Ie.pop();Fe=r(E,Ya,Fe)}for(Fe=-1;++Fe<E.length;){let Ya=t[E[Fe][0]];ET.call(Ya,E[Fe][1].type)&&Ya[E[Fe][1].type].call(Object.assign({sliceSerialize:E[Fe][2].sliceSerialize},le),E[Fe][1])}if(le.tokenStack.length>0){let Ya=le.tokenStack[le.tokenStack.length-1];(Ya[1]||AT).call(le,void 0,Ya[0])}for(j.position={start:eo(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:eo(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},Fe=-1;++Fe<t.transforms.length;)j=t.transforms[Fe](j)||j;return j}function r(E,j,le){let Ie=j-1,Fe=-1,Ya=!1,go,Er,ns,os;for(;++Ie<=le;){let ma=E[Ie];switch(ma[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ma[0]==="enter"?Fe++:Fe--,os=void 0;break}case"lineEndingBlank":{ma[0]==="enter"&&(go&&!os&&!Fe&&!ns&&(ns=Ie),os=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:os=void 0}if(!Fe&&ma[0]==="enter"&&ma[1].type==="listItemPrefix"||Fe===-1&&ma[0]==="exit"&&(ma[1].type==="listUnordered"||ma[1].type==="listOrdered")){if(go){let Li=Ie;for(Er=void 0;Li--;){let Mr=E[Li];if(Mr[1].type==="lineEnding"||Mr[1].type==="lineEndingBlank"){if(Mr[0]==="exit")continue;Er&&(E[Er][1].type="lineEndingBlank",Ya=!0),Mr[1].type="lineEnding",Er=Li}else if(!(Mr[1].type==="linePrefix"||Mr[1].type==="blockQuotePrefix"||Mr[1].type==="blockQuotePrefixWhitespace"||Mr[1].type==="blockQuoteMarker"||Mr[1].type==="listItemIndent"))break}ns&&(!Er||ns<Er)&&(go._spread=!0),go.end=Object.assign({},Er?E[Er][1].start:ma[1].end),E.splice(Er||Ie,0,["exit",go,ma[2]]),Ie++,le++}if(ma[1].type==="listItemPrefix"){let Li={type:"listItem",_spread:!1,start:Object.assign({},ma[1].start),end:void 0};go=Li,E.splice(Ie,0,["enter",Li,ma[2]]),Ie++,le++,ns=void 0,os=!0}}}return E[j][1]._spread=Ya,le}function o(E,j){return le;function le(Ie){l.call(this,E(Ie),Ie),j&&j.call(this,Ie)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(E,j,le){this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([j,le||void 0]),E.position={start:eo(j.start),end:void 0}}function s(E){return j;function j(le){E&&E.call(this,le),u.call(this,le)}}function u(E,j){let le=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==E.type&&(j?j.call(this,E,Ie[0]):(Ie[1]||AT).call(this,E,Ie[0]));else throw new Error("Cannot close `"+E.type+"` ("+Kn({start:E.start,end:E.end})+"): it\u2019s not open");le.position.end=eo(E.end)}function c(){return ni(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(E){if(this.data.expectingFirstListItemValue){let j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(E),10),this.data.expectingFirstListItemValue=void 0}}function f(){let E=this.resume(),j=this.stack[this.stack.length-1];j.lang=E}function m(){let E=this.resume(),j=this.stack[this.stack.length-1];j.meta=E}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E.replace(/(\r?\n|\r)$/g,"")}function y(E){let j=this.resume(),le=this.stack[this.stack.length-1];le.label=j,le.identifier=qt(this.sliceSerialize(E)).toLowerCase()}function g(){let E=this.resume(),j=this.stack[this.stack.length-1];j.title=E}function S(){let E=this.resume(),j=this.stack[this.stack.length-1];j.url=E}function L(E){let j=this.stack[this.stack.length-1];if(!j.depth){let le=this.sliceSerialize(E).length;j.depth=le}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function A(E){let j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(E).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function $(E){let le=this.stack[this.stack.length-1].children,Ie=le[le.length-1];(!Ie||Ie.type!=="text")&&(Ie=mo(),Ie.position={start:eo(E.start),end:void 0},le.push(Ie)),this.stack.push(Ie)}function k(E){let j=this.stack.pop();j.value+=this.sliceSerialize(E),j.position.end=eo(E.end)}function G(E){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let le=j.children[j.children.length-1];le.position.end=eo(E.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,E),k.call(this,E))}function Z(){this.data.atHardBreak=!0}function F(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E}function J(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E}function W(){let E=this.resume(),j=this.stack[this.stack.length-1];j.value=E}function ne(){let E=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=j,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function ie(){let E=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=j,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function te(E){let j=this.sliceSerialize(E),le=this.stack[this.stack.length-2];le.label=TT(j),le.identifier=qt(j).toLowerCase()}function X(){let E=this.stack[this.stack.length-1],j=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){let Ie=E.children;le.children=Ie}else le.alt=j}function I(){let E=this.resume(),j=this.stack[this.stack.length-1];j.url=E}function Ue(){let E=this.resume(),j=this.stack[this.stack.length-1];j.title=E}function fa(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function Ge(E){let j=this.resume(),le=this.stack[this.stack.length-1];le.label=j,le.identifier=qt(this.sliceSerialize(E)).toLowerCase(),this.data.referenceType="full"}function Ea(E){this.data.characterReferenceType=E.type}function hn(E){let j=this.sliceSerialize(E),le=this.data.characterReferenceType,Ie;le?(Ie=Ef(j,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=Al(j);let Fe=this.stack[this.stack.length-1];Fe.value+=Ie}function Ar(E){let j=this.stack.pop();j.position.end=eo(E.end)}function ot(E){k.call(this,E);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(E)}function Nt(E){k.call(this,E);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(E)}function Kt(){return{type:"blockquote",children:[]}}function pa(){return{type:"code",lang:null,meta:null,value:""}}function gn(){return{type:"inlineCode",value:""}}function po(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rs(){return{type:"emphasis",children:[]}}function Tc(){return{type:"heading",depth:0,children:[]}}function Ac(){return{type:"break"}}function _i(){return{type:"html",value:""}}function gm(){return{type:"image",title:null,url:"",alt:null}}function Ec(){return{type:"link",title:null,url:"",children:[]}}function Ci(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function we(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function it(){return{type:"paragraph",children:[]}}function Yt(){return{type:"strong",children:[]}}function mo(){return{type:"text",value:""}}function ho(){return{type:"thematicBreak"}}}function eo(e){return{line:e.line,column:e.column,offset:e.offset}}function MT(e,t){let a=-1;for(;++a<t.length;){let n=t[a];Array.isArray(n)?MT(e,n):C4(e,n)}}function C4(e,t){let a;for(a in t)if(ET.call(t,a))switch(a){case"canContainEols":{let n=t[a];n&&e[a].push(...n);break}case"transforms":{let n=t[a];n&&e[a].push(...n);break}case"enter":case"exit":{let n=t[a];n&&Object.assign(e[a],n);break}}}function AT(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is still open")}function Bf(e){let t=this;t.parser=a;function a(n){return Zv(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function OT(e,t){let a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,a),e.applyData(t,a)}function zT(e,t){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
19
|
+
`}]}function DT(e,t){let a=t.value?t.value+`
|
|
20
|
+
`:"",n={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(n.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:a}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function RT(e,t){let a={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function $T(e,t){let a={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function PT(e,t){let a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),r=Va(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),i,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),i=e.footnoteOrder.length):i=o+1,l+=1,e.footnoteCounts.set(n,l);let s={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+r,id:a+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function NT(e,t){let a={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function UT(e,t){if(e.options.allowDangerousHtml){let a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function Ff(e,t){let a=t.referenceType,n="]";if(a==="collapsed"?n+="[]":a==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});let i=r[r.length-1];return i&&i.type==="text"?i.value+=n:r.push({type:"text",value:n}),r}function jT(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return Ff(e,t);let r={src:Va(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function BT(e,t){let a={src:Va(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);let n={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,n),e.applyData(t,n)}function FT(e,t){let a={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,a);let n={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(t,n),e.applyData(t,n)}function qT(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return Ff(e,t);let r={href:Va(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ZT(e,t){let a={href:Va(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);let n={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HT(e,t,a){let n=e.all(t),r=a?L4(a):VT(t),o={},i=[];if(typeof t.checked=="boolean"){let c=n[0],d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<n.length;){let c=n[l];(r||l!==0||c.type!=="element"||c.tagName!=="p")&&i.push({type:"text",value:`
|
|
21
21
|
`}),c.type==="element"&&c.tagName==="p"&&!r?i.push(...c.children):i.push(c)}let s=n[n.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&i.push({type:"text",value:`
|
|
22
|
-
`});let u={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,u),e.applyData(t,u)}function
|
|
22
|
+
`});let u={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,u),e.applyData(t,u)}function L4(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let a=e.children,n=-1;for(;!t&&++n<a.length;)t=VT(a[n])}return t}function VT(e){let t=e.spread;return t??e.children.length>1}function GT(e,t){let a={},n=e.all(t),r=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++r<n.length;){let i=n[r];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:a,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function WT(e,t){let a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function JT(e,t){let a={type:"root",children:e.wrap(e.all(t))};return e.patch(t,a),e.applyData(t,a)}function XT(e,t){let a={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function KT(e,t){let a=e.all(t),n=a.shift(),r=[];if(n){let i={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],i),r.push(i)}if(a.length>0){let i={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},l=Tl(t.children[1]),s=Lf(t.children[t.children.length-1]);l&&s&&(i.position={start:l,end:s}),r.push(i)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function YT(e,t,a){let n=a?a.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",i=a&&a.type==="table"?a.align:void 0,l=i?i.length:t.children.length,s=-1,u=[];for(;++s<l;){let d=t.children[s],p={},f=i?i[s]:void 0;f&&(p.align=f);let m={type:"element",tagName:o,properties:p,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function QT(e,t){let a={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function t1(e){let t=String(e),a=/\r?\n|\r/g,n=a.exec(t),r=0,o=[];for(;n;)o.push(e1(t.slice(r,n.index),r>0,!0),n[0]),r=n.index+n[0].length,n=a.exec(t);return o.push(e1(t.slice(r),r>0,!1)),o.join("")}function e1(e,t,a){let n=0,r=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(a){let o=e.codePointAt(r-1);for(;o===9||o===32;)r--,o=e.codePointAt(r-1)}return r>n?e.slice(n,r):""}function a1(e,t){let a={type:"text",value:t1(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function r1(e,t){let a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}var n1={blockquote:OT,break:zT,code:DT,delete:RT,emphasis:$T,footnoteReference:PT,heading:NT,html:UT,imageReference:jT,image:BT,inlineCode:FT,linkReference:qT,link:ZT,listItem:HT,list:GT,paragraph:WT,root:JT,strong:XT,table:KT,tableCell:QT,tableRow:YT,text:a1,thematicBreak:r1,toml:qf,yaml:qf,definition:qf,footnoteDefinition:qf};function qf(){}var o1=typeof self=="object"?self:globalThis,M4=(e,t)=>{let a=(r,o)=>(e.set(o,r),r),n=r=>{if(e.has(r))return e.get(r);let[o,i]=t[r];switch(o){case 0:case-1:return a(i,r);case 1:{let l=a([],r);for(let s of i)l.push(n(s));return l}case 2:{let l=a({},r);for(let[s,u]of i)l[n(s)]=n(u);return l}case 3:return a(new Date(i),r);case 4:{let{source:l,flags:s}=i;return a(new RegExp(l,s),r)}case 5:{let l=a(new Map,r);for(let[s,u]of i)l.set(n(s),n(u));return l}case 6:{let l=a(new Set,r);for(let s of i)l.add(n(s));return l}case 7:{let{name:l,message:s}=i;return a(new o1[l](s),r)}case 8:return a(BigInt(i),r);case"BigInt":return a(Object(BigInt(i)),r);case"ArrayBuffer":return a(new Uint8Array(i).buffer,i);case"DataView":{let{buffer:l}=new Uint8Array(i);return a(new DataView(l),i)}}return a(new o1[o](i),r)};return n},Gv=e=>M4(new Map,e)(0);var El="",{toString:O4}={},{keys:z4}=Object,Tu=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let a=O4.call(e).slice(8,-1);switch(a){case"Array":return[1,El];case"Object":return[2,El];case"Date":return[3,El];case"RegExp":return[4,El];case"Map":return[5,El];case"Set":return[6,El];case"DataView":return[1,a]}return a.includes("Array")?[1,a]:a.includes("Error")?[7,a]:[2,a]},Hf=([e,t])=>e===0&&(t==="function"||t==="symbol"),D4=(e,t,a,n)=>{let r=(i,l)=>{let s=n.push(i)-1;return a.set(l,s),s},o=i=>{if(a.has(i))return a.get(i);let[l,s]=Tu(i);switch(l){case 0:{let c=i;switch(s){case"bigint":l=8,c=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return r([-1],i)}return r([l,c],i)}case 1:{if(s){let p=i;return s==="DataView"?p=new Uint8Array(i.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(i)),r([s,[...p]],i)}let c=[],d=r([l,c],i);for(let p of i)c.push(o(p));return d}case 2:{if(s)switch(s){case"BigInt":return r([s,i.toString()],i);case"Boolean":case"Number":case"String":return r([s,i.valueOf()],i)}if(t&&"toJSON"in i)return o(i.toJSON());let c=[],d=r([l,c],i);for(let p of z4(i))(e||!Hf(Tu(i[p])))&&c.push([o(p),o(i[p])]);return d}case 3:return r([l,i.toISOString()],i);case 4:{let{source:c,flags:d}=i;return r([l,{source:c,flags:d}],i)}case 5:{let c=[],d=r([l,c],i);for(let[p,f]of i)(e||!(Hf(Tu(p))||Hf(Tu(f))))&&c.push([o(p),o(f)]);return d}case 6:{let c=[],d=r([l,c],i);for(let p of i)(e||!Hf(Tu(p)))&&c.push(o(p));return d}}let{message:u}=i;return r([l,{name:s,message:u}],i)};return o},Wv=(e,{json:t,lossy:a}={})=>{let n=[];return D4(!(t||a),!!t,new Map,n)(e),n};var Ml=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Gv(Wv(e,t)):structuredClone(e):(e,t)=>Gv(Wv(e,t));function R4(e,t){let a=[{type:"text",value:"\u21A9"}];return t>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),a}function $4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function c1(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||R4,n=e.options.footnoteBackLabel||$4,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],s=-1;for(;++s<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;let c=e.all(u),d=String(u.identifier).toUpperCase(),p=Va(d.toLowerCase()),f=0,m=[],x=e.footnoteCounts.get(d);for(;x!==void 0&&++f<=x;){m.length>0&&m.push({type:"text",value:" "});let y=typeof a=="string"?a:a(s,f);typeof y=="string"&&(y={type:"text",value:y}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(s,f),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}let b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){let y=b.children[b.children.length-1];y&&y.type==="text"?y.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...m)}else c.push(...m);let v={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,v),l.push(v)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ml(i),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
23
23
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
24
|
-
`}]}}var
|
|
24
|
+
`}]}}var to=(function(e){if(e==null)return j4;if(typeof e=="function")return Vf(e);if(typeof e=="object")return Array.isArray(e)?P4(e):N4(e);if(typeof e=="string")return U4(e);throw new Error("Expected function, string, or object as test")});function P4(e){let t=[],a=-1;for(;++a<e.length;)t[a]=to(e[a]);return Vf(n);function n(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function N4(e){let t=e;return Vf(a);function a(n){let r=n,o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function U4(e){return Vf(t);function t(a){return a&&a.type===e}}function Vf(e){return t;function t(a,n,r){return!!(B4(a)&&e.call(this,a,typeof n=="number"?n:void 0,r||void 0))}}function j4(){return!0}function B4(e){return e!==null&&typeof e=="object"&&"type"in e}var d1=[],Gf=!0,ci=!1,Wf="skip";function Au(e,t,a,n){let r;typeof t=="function"&&typeof a!="function"?(n=a,a=t):r=t;let o=to(r),i=n?-1:1;l(e,void 0,[])();function l(s,u,c){let d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){let f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=d1,m,x,b;if((!t||o(s,u,c[c.length-1]||void 0))&&(f=F4(a(s,c)),f[0]===ci))return f;if("children"in s&&s.children){let v=s;if(v.children&&f[0]!==Wf)for(x=(n?v.children.length:-1)+i,b=c.concat(v);x>-1&&x<v.children.length;){let y=v.children[x];if(m=l(y,x,b)(),m[0]===ci)return m;x=typeof m[1]=="number"?m[1]:x+i}}return f}}}function F4(e){return Array.isArray(e)?e:typeof e=="number"?[Gf,e]:e==null?d1:[e]}function di(e,t,a,n){let r,o,i;typeof t=="function"&&typeof a!="function"?(o=void 0,i=t,r=a):(o=t,i=a,r=n),Au(e,o,l,r);function l(s,u){let c=u[u.length-1],d=c?c.children.indexOf(s):void 0;return i(s,d,c)}}var Jv={}.hasOwnProperty,q4={};function p1(e,t){let a=t||q4,n=new Map,r=new Map,o=new Map,i={...n1,...a.handlers},l={all:u,applyData:H4,definitionById:n,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:i,one:s,options:a,patch:Z4,wrap:G4};return di(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let d=c.type==="definition"?n:r,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),l;function s(c,d){let p=c.type,f=l.handlers[p];if(Jv.call(l.handlers,p)&&f)return f(l,c,d);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in c){let{children:x,...b}=c,v=Ml(b);return v.children=l.all(c),v}return Ml(c)}return(l.options.unknownHandler||V4)(l,c,d)}function u(c){let d=[];if("children"in c){let p=c.children,f=-1;for(;++f<p.length;){let m=l.one(p[f],c);if(m){if(f&&p[f-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=f1(m.value)),!Array.isArray(m)&&m.type==="element")){let x=m.children[0];x&&x.type==="text"&&(x.value=f1(x.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function Z4(e,t){e.position&&(t.position=Iv(e))}function H4(e,t){let a=t;if(e&&e.data){let n=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(a.type==="element")a.tagName=n;else{let i="children"in a?a.children:[a];a={type:"element",tagName:n,properties:{},children:i}}a.type==="element"&&o&&Object.assign(a.properties,Ml(o)),"children"in a&&a.children&&r!==null&&r!==void 0&&(a.children=r)}return a}function V4(e,t){let a=t.data||{},n="value"in t&&!(Jv.call(a,"hProperties")||Jv.call(a,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function G4(e,t){let a=[],n=-1;for(t&&a.push({type:"text",value:`
|
|
25
25
|
`});++n<e.length;)n&&a.push({type:"text",value:`
|
|
26
26
|
`}),a.push(e[n]);return t&&e.length>0&&a.push({type:"text",value:`
|
|
27
|
-
`}),a}function
|
|
28
|
-
`},r)),o}function Gf(e,t){return e&&"run"in e?async function(a,n){let r=Vf(a,{file:n,...t});await e.run(r,n)}:function(a,n){return Vf(a,{file:n,...e||t})}}function Vv(e){if(e)throw e}var Wf=Le(x1(),1);function Lu(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gv(){let e=[],t={run:a,use:n};return t;function a(...r){let o=-1,i=r.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);l(null,...r);function l(s,...u){let c=e[++o],d=-1;if(s){i(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?b1(c,l)(...u):i(null,...u)}}function n(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function b1(e,t){let a;return n;function n(...i){let l=e.length>i.length,s;l&&i.push(r);try{s=e.apply(this,i)}catch(u){let c=u;if(l&&a)throw c;return r(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(i,...l){a||(a=!0,t(i,...l))}function o(i){r(null,i)}}var rr={basename:F4,dirname:q4,extname:Z4,join:H4,sep:"/"};function F4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tu(e);let a=0,n=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else n<0&&(o=!0,n=r+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let i=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else i<0&&(o=!0,i=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(n=r):(l=-1,n=i));return a===n?n=i:n<0&&(n=e.length),e.slice(a,n)}function q4(e){if(Tu(e),e.length===0)return".";let t=-1,a=e.length,n;for(;--a;)if(e.codePointAt(a)===47){if(n){t=a;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Z4(e){Tu(e);let t=e.length,a=-1,n=0,r=-1,o=0,i;for(;t--;){let l=e.codePointAt(t);if(l===47){if(i){n=t+1;break}continue}a<0&&(i=!0,a=t+1),l===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||a<0||o===0||o===1&&r===a-1&&r===n+1?"":e.slice(r,a)}function H4(...e){let t=-1,a;for(;++t<e.length;)Tu(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":V4(a)}function V4(e){Tu(e);let t=e.codePointAt(0)===47,a=G4(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function G4(e,t){let a="",n=0,r=-1,o=0,i=-1,l,s;for(;++i<=e.length;){if(i<e.length)l=e.codePointAt(i);else{if(l===47)break;l=47}if(l===47){if(!(r===i-1||o===1))if(r!==i-1&&o===2){if(a.length<2||n!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(s=a.lastIndexOf("/"),s!==a.length-1){s<0?(a="",n=0):(a=a.slice(0,s),n=a.length-1-a.lastIndexOf("/")),r=i,o=0;continue}}else if(a.length>0){a="",n=0,r=i,o=0;continue}}t&&(a=a.length>0?a+"/..":"..",n=2)}else a.length>0?a+="/"+e.slice(r+1,i):a=e.slice(r+1,i),n=i-r-1;r=i,o=0}else l===46&&o>-1?o++:o=-1}return a}function Tu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var S1={cwd:J4};function J4(){return"/"}function Al(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function w1(e){if(typeof e=="string")e=new URL(e);else if(!Al(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return X4(e)}function X4(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,a=-1;for(;++a<t.length;)if(t.codePointAt(a)===37&&t.codePointAt(a+1)===50){let n=t.codePointAt(a+2);if(n===70||n===102){let r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}var Jv=["history","path","basename","stem","extname","dirname"],ui=class{constructor(t){let a;t?Al(t)?a={path:t}:typeof t=="string"||W4(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":S1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Jv.length;){let o=Jv[n];o in a&&a[o]!==void 0&&a[o]!==null&&(this[o]=o==="history"?[...a[o]]:a[o])}let r;for(r in a)Jv.includes(r)||(this[r]=a[r])}get basename(){return typeof this.path=="string"?rr.basename(this.path):void 0}set basename(t){Wv(t,"basename"),Xv(t,"basename"),this.path=rr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rr.dirname(this.path):void 0}set dirname(t){I1(this.basename,"dirname"),this.path=rr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rr.extname(this.path):void 0}set extname(t){if(Xv(t,"extname"),I1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Al(t)&&(t=w1(t)),Wv(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rr.basename(this.path,this.extname):void 0}set stem(t){Wv(t,"stem"),Xv(t,"stem"),this.path=rr.join(this.dirname||"",t+(this.extname||""))}fail(t,a,n){let r=this.message(t,a,n);throw r.fatal=!0,r}info(t,a,n){let r=this.message(t,a,n);return r.fatal=void 0,r}message(t,a,n){let r=new ft(t,a,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Xv(e,t){if(e&&e.includes(rr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rr.sep+"`")}function Wv(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function I1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function W4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var k1=(function(e){let n=this.constructor.prototype,r=n[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,n),o});var K4={}.hasOwnProperty,ey=class e extends k1{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Gv()}copy(){let t=new e,a=-1;for(;++a<this.attachers.length;){let n=this.attachers[a];t.use(...n)}return t.data((0,Wf.default)(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(Qv("data",this.frozen),this.namespace[t]=a,this):K4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Qv("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[a,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=a.call(t,...n);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let a=Xf(t),n=this.parser||this.Parser;return Kv("parse",n),n(String(a),a)}process(t,a){let n=this;return this.freeze(),Kv("process",this.parser||this.Parser),Yv("process",this.compiler||this.Compiler),a?r(void 0,a):new Promise(r);function r(o,i){let l=Xf(t),s=n.parse(l);n.run(s,l,function(c,d,p){if(c||!d||!p)return u(c);let f=d,m=n.stringify(f,p);Q4(m)?p.value=m:p.result=m,u(c,p)});function u(c,d){c||!d?i(c):o?o(d):a(void 0,d)}}}processSync(t){let a=!1,n;return this.freeze(),Kv("processSync",this.parser||this.Parser),Yv("processSync",this.compiler||this.Compiler),this.process(t,r),C1("processSync","process",a),n;function r(o,i){a=!0,Vv(o),n=i}}run(t,a,n){_1(t),this.freeze();let r=this.transformers;return!n&&typeof a=="function"&&(n=a,a=void 0),n?o(void 0,n):new Promise(o);function o(i,l){let s=Xf(a);r.run(t,s,u);function u(c,d,p){let f=d||t;c?l(c):i?i(f):n(void 0,f,p)}}}runSync(t,a){let n=!1,r;return this.run(t,a,o),C1("runSync","run",n),r;function o(i,l){Vv(i),r=l,n=!0}}stringify(t,a){this.freeze();let n=Xf(a),r=this.compiler||this.Compiler;return Yv("stringify",r),_1(t),r(t,n)}use(t,...a){let n=this.attachers,r=this.namespace;if(Qv("use",this.frozen),t!=null)if(typeof t=="function")s(t,a);else if(typeof t=="object")Array.isArray(t)?l(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...d]=u;s(c,d)}else i(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function i(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(r.settings=(0,Wf.default)(!0,r.settings,u.settings))}function l(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,p=-1;for(;++d<n.length;)if(n[d][0]===u){p=d;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[f,...m]=c,x=n[p][1];Lu(x)&&Lu(f)&&(f=(0,Wf.default)(!0,x,f)),n[p]=[u,f,...m]}}}},ty=new ey().freeze();function Kv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Yv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qv(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _1(e){if(!Lu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function C1(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Xf(e){return Y4(e)?e:new ui(e)}function Y4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Q4(e){return typeof e=="string"||eU(e)}function eU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var tU="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",L1=[],T1={allowDangerousHtml:!0},aU=/^(https?|ircs?|mailto|xmpp)$/i,rU=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ay(e){let t=nU(e),a=oU(e);return iU(t.runSync(t.parse(a),a),e)}function nU(e){let t=e.rehypePlugins||L1,a=e.remarkPlugins||L1,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...T1}:T1;return ty().use(Nf).use(a).use(Gf,n).use(t)}function oU(e){let t=e.children||"",a=new ui;return typeof t=="string"?a.value=t:(""+t,void 0),a}function iU(e,t){let a=t.allowedElements,n=t.allowElement,r=t.components,o=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||E1;for(let c of rU)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+tU+c.id,void 0);return a&&o&&void 0,si(e,u),wv(e,{Fragment:El.Fragment,components:r,ignoreInvalidStyle:!0,jsx:El.jsx,jsxs:El.jsxs,passKeys:!0,passNode:!0});function u(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return i?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in xu)if(Object.hasOwn(xu,f)&&Object.hasOwn(c.properties,f)){let m=c.properties[f],x=xu[f];(x===null||x.includes(c.tagName))&&(c.properties[f]=s(String(m||""),f,c))}}if(c.type==="element"){let f=a?!a.includes(c.tagName):o?o.includes(c.tagName):!1;if(!f&&n&&typeof d=="number"&&(f=!n(c,d,p)),f&&p&&typeof d=="number")return l&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function E1(e){let t=e.indexOf(":"),a=e.indexOf("?"),n=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||a!==-1&&t>a||n!==-1&&t>n||aU.test(e.slice(0,t))?e:""}function ry(e,t){let a=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,r=a.indexOf(t);for(;r!==-1;)n++,r=a.indexOf(t,r+t.length);return n}function ny(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oy(e,t,a){let r=Yn((a||{}).ignore||[]),o=lU(t),i=-1;for(;++i<o.length;)Cu(e,"text",l);function l(u,c){let d=-1,p;for(;++d<c.length;){let f=c[d],m=p?p.children:void 0;if(r(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return s(u,c)}function s(u,c){let d=c[c.length-1],p=o[i][0],f=o[i][1],m=0,b=d.children.indexOf(u),v=!1,y=[];p.lastIndex=0;let g=p.exec(u.value);for(;g;){let S=g.index,L={index:g.index,input:g.input,stack:[...c,u]},_=f(...g,L);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?p.lastIndex=S+1:(m!==S&&y.push({type:"text",value:u.value.slice(m,S)}),Array.isArray(_)?y.push(..._):_&&y.push(_),m=S+g[0].length,v=!0),!p.global)break;g=p.exec(u.value)}return v?(m<u.value.length&&y.push({type:"text",value:u.value.slice(m)}),d.children.splice(b,1,...y)):y=[u],b+y.length}}function lU(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let a=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<a.length;){let r=a[n];t.push([sU(r[0]),uU(r[1])])}return t}function sU(e){return typeof e=="string"?new RegExp(ny(e),"g"):e}function uU(e){return typeof e=="function"?e:function(){return e}}var iy="phrasing",ly=["autolink","link","image","label"];function uy(){return{transforms:[hU],enter:{literalAutolink:cU,literalAutolinkEmail:sy,literalAutolinkHttp:sy,literalAutolinkWww:sy},exit:{literalAutolink:mU,literalAutolinkEmail:pU,literalAutolinkHttp:dU,literalAutolinkWww:fU}}}function cy(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:iy,notInConstruct:ly},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:iy,notInConstruct:ly},{character:":",before:"[ps]",after:"\\/",inConstruct:iy,notInConstruct:ly}]}}function cU(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function sy(e){this.config.enter.autolinkProtocol.call(this,e)}function dU(e){this.config.exit.autolinkProtocol.call(this,e)}function fU(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function pU(e){this.config.exit.autolinkEmail.call(this,e)}function mU(e){this.exit(e)}function hU(e){oy(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gU],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,vU]],{ignore:["link","linkReference"]})}function gU(e,t,a,n,r){let o="";if(!M1(r)||(/^w/i.test(t)&&(a=t+a,t="",o="http://"),!yU(a)))return!1;let i=xU(a+n);if(!i[0])return!1;let l={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function vU(e,t,a,n){return!M1(n,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+a,children:[{type:"text",value:t+"@"+a}]}}function yU(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xU(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let a=t[0],n=a.indexOf(")"),r=ry(e,"("),o=ry(e,")");for(;n!==-1&&r>o;)e+=a.slice(0,n+1),a=a.slice(n+1),n=a.indexOf(")"),o++;return[e,a]}function M1(e,t){let a=e.input.charCodeAt(e.index-1);return(e.index===0||yr(a)||ri(a))&&(!t||a!==47)}O1.peek=TU;function bU(){this.buffer()}function SU(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wU(){this.buffer()}function IU(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function kU(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Bt(this.sliceSerialize(e)).toLowerCase(),a.label=t}function _U(e){this.exit(e)}function CU(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Bt(this.sliceSerialize(e)).toLowerCase(),a.label=t}function LU(e){this.exit(e)}function TU(){return"["}function O1(e,t,a,n){let r=a.createTracker(n),o=r.move("[^"),i=a.enter("footnoteReference"),l=a.enter("reference");return o+=r.move(a.safe(a.associationId(e),{after:"]",before:o})),l(),i(),o+=r.move("]"),o}function dy(){return{enter:{gfmFootnoteCallString:bU,gfmFootnoteCall:SU,gfmFootnoteDefinitionLabelString:wU,gfmFootnoteDefinition:IU},exit:{gfmFootnoteCallString:kU,gfmFootnoteCall:_U,gfmFootnoteDefinitionLabelString:CU,gfmFootnoteDefinition:LU}}}function fy(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:a,footnoteReference:O1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(n,r,o,i){let l=o.createTracker(i),s=l.move("[^"),u=o.enter("footnoteDefinition"),c=o.enter("label");return s+=l.move(o.safe(o.associationId(n),{before:s,after:"]"})),c(),s+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),s+=l.move((t?`
|
|
29
|
-
`:" ")+o.indentLines(o.containerFlow(n,l.current()),t
|
|
30
|
-
`)}function
|
|
31
|
-
`&&
|
|
32
|
-
`}function
|
|
27
|
+
`}),a}function f1(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function Jf(e,t){let a=p1(e,t),n=a.one(e,void 0),r=c1(a),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return r&&("children"in o,o.children.push({type:"text",value:`
|
|
28
|
+
`},r)),o}function Xf(e,t){return e&&"run"in e?async function(a,n){let r=Jf(a,{file:n,...t});await e.run(r,n)}:function(a,n){return Jf(a,{file:n,...e||t})}}function Xv(e){if(e)throw e}var Qf=be(w1(),1);function Eu(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kv(){let e=[],t={run:a,use:n};return t;function a(...r){let o=-1,i=r.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);l(null,...r);function l(s,...u){let c=e[++o],d=-1;if(s){i(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?I1(c,l)(...u):i(null,...u)}}function n(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function I1(e,t){let a;return n;function n(...i){let l=e.length>i.length,s;l&&i.push(r);try{s=e.apply(this,i)}catch(u){let c=u;if(l&&a)throw c;return r(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(i,...l){a||(a=!0,t(i,...l))}function o(i){r(null,i)}}var ir={basename:W4,dirname:J4,extname:X4,join:K4,sep:"/"};function W4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mu(e);let a=0,n=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else n<0&&(o=!0,n=r+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let i=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else i<0&&(o=!0,i=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(n=r):(l=-1,n=i));return a===n?n=i:n<0&&(n=e.length),e.slice(a,n)}function J4(e){if(Mu(e),e.length===0)return".";let t=-1,a=e.length,n;for(;--a;)if(e.codePointAt(a)===47){if(n){t=a;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function X4(e){Mu(e);let t=e.length,a=-1,n=0,r=-1,o=0,i;for(;t--;){let l=e.codePointAt(t);if(l===47){if(i){n=t+1;break}continue}a<0&&(i=!0,a=t+1),l===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||a<0||o===0||o===1&&r===a-1&&r===n+1?"":e.slice(r,a)}function K4(...e){let t=-1,a;for(;++t<e.length;)Mu(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":Y4(a)}function Y4(e){Mu(e);let t=e.codePointAt(0)===47,a=Q4(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function Q4(e,t){let a="",n=0,r=-1,o=0,i=-1,l,s;for(;++i<=e.length;){if(i<e.length)l=e.codePointAt(i);else{if(l===47)break;l=47}if(l===47){if(!(r===i-1||o===1))if(r!==i-1&&o===2){if(a.length<2||n!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(s=a.lastIndexOf("/"),s!==a.length-1){s<0?(a="",n=0):(a=a.slice(0,s),n=a.length-1-a.lastIndexOf("/")),r=i,o=0;continue}}else if(a.length>0){a="",n=0,r=i,o=0;continue}}t&&(a=a.length>0?a+"/..":"..",n=2)}else a.length>0?a+="/"+e.slice(r+1,i):a=e.slice(r+1,i),n=i-r-1;r=i,o=0}else l===46&&o>-1?o++:o=-1}return a}function Mu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var k1={cwd:eU};function eU(){return"/"}function Ol(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _1(e){if(typeof e=="string")e=new URL(e);else if(!Ol(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return tU(e)}function tU(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,a=-1;for(;++a<t.length;)if(t.codePointAt(a)===37&&t.codePointAt(a+1)===50){let n=t.codePointAt(a+2);if(n===70||n===102){let r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}var Yv=["history","path","basename","stem","extname","dirname"],fi=class{constructor(t){let a;t?Ol(t)?a={path:t}:typeof t=="string"||aU(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":k1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Yv.length;){let o=Yv[n];o in a&&a[o]!==void 0&&a[o]!==null&&(this[o]=o==="history"?[...a[o]]:a[o])}let r;for(r in a)Yv.includes(r)||(this[r]=a[r])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){ey(t,"basename"),Qv(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){C1(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(Qv(t,"extname"),C1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ol(t)&&(t=_1(t)),ey(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){ey(t,"stem"),Qv(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,a,n){let r=this.message(t,a,n);throw r.fatal=!0,r}info(t,a,n){let r=this.message(t,a,n);return r.fatal=void 0,r}message(t,a,n){let r=new mt(t,a,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Qv(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}function ey(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function C1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function aU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var L1=(function(e){let n=this.constructor.prototype,r=n[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,n),o});var rU={}.hasOwnProperty,ny=class e extends L1{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kv()}copy(){let t=new e,a=-1;for(;++a<this.attachers.length;){let n=this.attachers[a];t.use(...n)}return t.data((0,Qf.default)(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(ry("data",this.frozen),this.namespace[t]=a,this):rU.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ry("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[a,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=a.call(t,...n);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let a=Yf(t),n=this.parser||this.Parser;return ty("parse",n),n(String(a),a)}process(t,a){let n=this;return this.freeze(),ty("process",this.parser||this.Parser),ay("process",this.compiler||this.Compiler),a?r(void 0,a):new Promise(r);function r(o,i){let l=Yf(t),s=n.parse(l);n.run(s,l,function(c,d,p){if(c||!d||!p)return u(c);let f=d,m=n.stringify(f,p);oU(m)?p.value=m:p.result=m,u(c,p)});function u(c,d){c||!d?i(c):o?o(d):a(void 0,d)}}}processSync(t){let a=!1,n;return this.freeze(),ty("processSync",this.parser||this.Parser),ay("processSync",this.compiler||this.Compiler),this.process(t,r),A1("processSync","process",a),n;function r(o,i){a=!0,Xv(o),n=i}}run(t,a,n){T1(t),this.freeze();let r=this.transformers;return!n&&typeof a=="function"&&(n=a,a=void 0),n?o(void 0,n):new Promise(o);function o(i,l){let s=Yf(a);r.run(t,s,u);function u(c,d,p){let f=d||t;c?l(c):i?i(f):n(void 0,f,p)}}}runSync(t,a){let n=!1,r;return this.run(t,a,o),A1("runSync","run",n),r;function o(i,l){Xv(i),r=l,n=!0}}stringify(t,a){this.freeze();let n=Yf(a),r=this.compiler||this.Compiler;return ay("stringify",r),T1(t),r(t,n)}use(t,...a){let n=this.attachers,r=this.namespace;if(ry("use",this.frozen),t!=null)if(typeof t=="function")s(t,a);else if(typeof t=="object")Array.isArray(t)?l(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...d]=u;s(c,d)}else i(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function i(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(r.settings=(0,Qf.default)(!0,r.settings,u.settings))}function l(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,p=-1;for(;++d<n.length;)if(n[d][0]===u){p=d;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[f,...m]=c,x=n[p][1];Eu(x)&&Eu(f)&&(f=(0,Qf.default)(!0,x,f)),n[p]=[u,f,...m]}}}},oy=new ny().freeze();function ty(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ay(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ry(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function T1(e){if(!Eu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function A1(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Yf(e){return nU(e)?e:new fi(e)}function nU(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function oU(e){return typeof e=="string"||iU(e)}function iU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var lU="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",E1=[],M1={allowDangerousHtml:!0},sU=/^(https?|ircs?|mailto|xmpp)$/i,uU=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iy(e){let t=cU(e),a=dU(e);return fU(t.runSync(t.parse(a),a),e)}function cU(e){let t=e.rehypePlugins||E1,a=e.remarkPlugins||E1,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...M1}:M1;return oy().use(Bf).use(a).use(Xf,n).use(t)}function dU(e){let t=e.children||"",a=new fi;return typeof t=="string"?a.value=t:(""+t,void 0),a}function fU(e,t){let a=t.allowedElements,n=t.allowElement,r=t.components,o=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||z1;for(let c of uU)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+lU+c.id,void 0);return a&&o&&void 0,di(e,u),Cv(e,{Fragment:zl.Fragment,components:r,ignoreInvalidStyle:!0,jsx:zl.jsx,jsxs:zl.jsxs,passKeys:!0,passNode:!0});function u(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return i?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in wu)if(Object.hasOwn(wu,f)&&Object.hasOwn(c.properties,f)){let m=c.properties[f],x=wu[f];(x===null||x.includes(c.tagName))&&(c.properties[f]=s(String(m||""),f,c))}}if(c.type==="element"){let f=a?!a.includes(c.tagName):o?o.includes(c.tagName):!1;if(!f&&n&&typeof d=="number"&&(f=!n(c,d,p)),f&&p&&typeof d=="number")return l&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function z1(e){let t=e.indexOf(":"),a=e.indexOf("?"),n=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||a!==-1&&t>a||n!==-1&&t>n||sU.test(e.slice(0,t))?e:""}function ly(e,t){let a=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,r=a.indexOf(t);for(;r!==-1;)n++,r=a.indexOf(t,r+t.length);return n}function sy(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function uy(e,t,a){let r=to((a||{}).ignore||[]),o=pU(t),i=-1;for(;++i<o.length;)Au(e,"text",l);function l(u,c){let d=-1,p;for(;++d<c.length;){let f=c[d],m=p?p.children:void 0;if(r(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return s(u,c)}function s(u,c){let d=c[c.length-1],p=o[i][0],f=o[i][1],m=0,b=d.children.indexOf(u),v=!1,y=[];p.lastIndex=0;let g=p.exec(u.value);for(;g;){let S=g.index,L={index:g.index,input:g.input,stack:[...c,u]},_=f(...g,L);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?p.lastIndex=S+1:(m!==S&&y.push({type:"text",value:u.value.slice(m,S)}),Array.isArray(_)?y.push(..._):_&&y.push(_),m=S+g[0].length,v=!0),!p.global)break;g=p.exec(u.value)}return v?(m<u.value.length&&y.push({type:"text",value:u.value.slice(m)}),d.children.splice(b,1,...y)):y=[u],b+y.length}}function pU(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let a=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<a.length;){let r=a[n];t.push([mU(r[0]),hU(r[1])])}return t}function mU(e){return typeof e=="string"?new RegExp(sy(e),"g"):e}function hU(e){return typeof e=="function"?e:function(){return e}}var cy="phrasing",dy=["autolink","link","image","label"];function py(){return{transforms:[SU],enter:{literalAutolink:gU,literalAutolinkEmail:fy,literalAutolinkHttp:fy,literalAutolinkWww:fy},exit:{literalAutolink:bU,literalAutolinkEmail:xU,literalAutolinkHttp:vU,literalAutolinkWww:yU}}}function my(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:cy,notInConstruct:dy},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:cy,notInConstruct:dy},{character:":",before:"[ps]",after:"\\/",inConstruct:cy,notInConstruct:dy}]}}function gU(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fy(e){this.config.enter.autolinkProtocol.call(this,e)}function vU(e){this.config.exit.autolinkProtocol.call(this,e)}function yU(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function xU(e){this.config.exit.autolinkEmail.call(this,e)}function bU(e){this.exit(e)}function SU(e){uy(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wU],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,IU]],{ignore:["link","linkReference"]})}function wU(e,t,a,n,r){let o="";if(!D1(r)||(/^w/i.test(t)&&(a=t+a,t="",o="http://"),!kU(a)))return!1;let i=_U(a+n);if(!i[0])return!1;let l={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function IU(e,t,a,n){return!D1(n,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+a,children:[{type:"text",value:t+"@"+a}]}}function kU(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function _U(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let a=t[0],n=a.indexOf(")"),r=ly(e,"("),o=ly(e,")");for(;n!==-1&&r>o;)e+=a.slice(0,n+1),a=a.slice(n+1),n=a.indexOf(")"),o++;return[e,a]}function D1(e,t){let a=e.input.charCodeAt(e.index-1);return(e.index===0||Sr(a)||ii(a))&&(!t||a!==47)}R1.peek=DU;function CU(){this.buffer()}function LU(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function TU(){this.buffer()}function AU(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function EU(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=qt(this.sliceSerialize(e)).toLowerCase(),a.label=t}function MU(e){this.exit(e)}function OU(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=qt(this.sliceSerialize(e)).toLowerCase(),a.label=t}function zU(e){this.exit(e)}function DU(){return"["}function R1(e,t,a,n){let r=a.createTracker(n),o=r.move("[^"),i=a.enter("footnoteReference"),l=a.enter("reference");return o+=r.move(a.safe(a.associationId(e),{after:"]",before:o})),l(),i(),o+=r.move("]"),o}function hy(){return{enter:{gfmFootnoteCallString:CU,gfmFootnoteCall:LU,gfmFootnoteDefinitionLabelString:TU,gfmFootnoteDefinition:AU},exit:{gfmFootnoteCallString:EU,gfmFootnoteCall:MU,gfmFootnoteDefinitionLabelString:OU,gfmFootnoteDefinition:zU}}}function gy(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:a,footnoteReference:R1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(n,r,o,i){let l=o.createTracker(i),s=l.move("[^"),u=o.enter("footnoteDefinition"),c=o.enter("label");return s+=l.move(o.safe(o.associationId(n),{before:s,after:"]"})),c(),s+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),s+=l.move((t?`
|
|
29
|
+
`:" ")+o.indentLines(o.containerFlow(n,l.current()),t?$1:RU))),u(),s}}function RU(e,t,a){return t===0?e:$1(e,t,a)}function $1(e,t,a){return(a?"":" ")+e}var $U=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];P1.peek=UU;function vy(){return{canContainEols:["delete"],enter:{strikethrough:PU},exit:{strikethrough:NU}}}function yy(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$U}],handlers:{delete:P1}}}function PU(e){this.enter({type:"delete",children:[]},e)}function NU(e){this.exit(e)}function P1(e,t,a,n){let r=a.createTracker(n),o=a.enter("strikethrough"),i=r.move("~~");return i+=a.containerPhrasing(e,{...r.current(),before:i,after:"~"}),i+=r.move("~~"),o(),i}function UU(){return"~"}function jU(e){return e.length}function U1(e,t){let a=t||{},n=(a.align||[]).concat(),r=a.stringLength||jU,o=[],i=[],l=[],s=[],u=0,c=-1;for(;++c<e.length;){let x=[],b=[],v=-1;for(e[c].length>u&&(u=e[c].length);++v<e[c].length;){let y=BU(e[c][v]);if(a.alignDelimiters!==!1){let g=r(y);b[v]=g,(s[v]===void 0||g>s[v])&&(s[v]=g)}x.push(y)}i[c]=x,l[c]=b}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<u;)o[d]=N1(n[d]);else{let x=N1(n);for(;++d<u;)o[d]=x}d=-1;let p=[],f=[];for(;++d<u;){let x=o[d],b="",v="";x===99?(b=":",v=":"):x===108?b=":":x===114&&(v=":");let y=a.alignDelimiters===!1?1:Math.max(1,s[d]-b.length-v.length),g=b+"-".repeat(y)+v;a.alignDelimiters!==!1&&(y=b.length+y+v.length,y>s[d]&&(s[d]=y),f[d]=y),p[d]=g}i.splice(1,0,p),l.splice(1,0,f),c=-1;let m=[];for(;++c<i.length;){let x=i[c],b=l[c];d=-1;let v=[];for(;++d<u;){let y=x[d]||"",g="",S="";if(a.alignDelimiters!==!1){let L=s[d]-(b[d]||0),_=o[d];_===114?g=" ".repeat(L):_===99?L%2?(g=" ".repeat(L/2+.5),S=" ".repeat(L/2-.5)):(g=" ".repeat(L/2),S=g):S=" ".repeat(L)}a.delimiterStart!==!1&&!d&&v.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&y==="")&&(a.delimiterStart!==!1||d)&&v.push(" "),a.alignDelimiters!==!1&&v.push(g),v.push(y),a.alignDelimiters!==!1&&v.push(S),a.padding!==!1&&v.push(" "),(a.delimiterEnd!==!1||d!==u-1)&&v.push("|")}m.push(a.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return m.join(`
|
|
30
|
+
`)}function BU(e){return e==null?"":String(e)}function N1(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function j1(e,t,a,n){let r=a.enter("blockquote"),o=a.createTracker(n);o.move("> "),o.shift(2);let i=a.indentLines(a.containerFlow(e,o.current()),FU);return r(),i}function FU(e,t,a){return">"+(a?"":" ")+e}function F1(e,t){return B1(e,t.inConstruct,!0)&&!B1(e,t.notInConstruct,!1)}function B1(e,t,a){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return a;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function xy(e,t,a,n){let r=-1;for(;++r<a.unsafe.length;)if(a.unsafe[r].character===`
|
|
31
|
+
`&&F1(a.stack,a.unsafe[r]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
32
|
+
`}function q1(e,t){let a=String(e),n=a.indexOf(t),r=n,o=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===r?++o>i&&(i=o):o=1,r=n+t.length,n=a.indexOf(t,r);return i}function Z1(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function H1(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function V1(e,t,a,n){let r=H1(a),o=e.value||"",i=r==="`"?"GraveAccent":"Tilde";if(Z1(e,a)){let d=a.enter("codeIndented"),p=a.indentLines(o,qU);return d(),p}let l=a.createTracker(n),s=r.repeat(Math.max(q1(o,r)+1,3)),u=a.enter("codeFenced"),c=l.move(s);if(e.lang){let d=a.enter(`codeFencedLang${i}`);c+=l.move(a.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){let d=a.enter(`codeFencedMeta${i}`);c+=l.move(" "),c+=l.move(a.safe(e.meta,{before:c,after:`
|
|
33
33
|
`,encode:["`"],...l.current()})),d()}return c+=l.move(`
|
|
34
34
|
`),o&&(c+=l.move(o+`
|
|
35
|
-
`)),c+=l.move(s),u(),c}function
|
|
36
|
-
`,...s.current()}))),l(),e.title&&(l=a.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(a.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),i(),u}function
|
|
35
|
+
`)),c+=l.move(s),u(),c}function qU(e,t,a){return(a?"":" ")+e}function Dl(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function G1(e,t,a,n){let r=Dl(a),o=r==='"'?"Quote":"Apostrophe",i=a.enter("definition"),l=a.enter("label"),s=a.createTracker(n),u=s.move("[");return u+=s.move(a.safe(a.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=a.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(a.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=a.enter("destinationRaw"),u+=s.move(a.safe(e.url,{before:u,after:e.title?" ":`
|
|
36
|
+
`,...s.current()}))),l(),e.title&&(l=a.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(a.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),i(),u}function W1(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ao(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Rl(e,t,a){let n=rn(e),r=rn(t);return n===void 0?r===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}by.peek=ZU;function by(e,t,a,n){let r=W1(a),o=a.enter("emphasis"),i=a.createTracker(n),l=i.move(r),s=i.move(a.containerPhrasing(e,{after:r,before:l,...i.current()})),u=s.charCodeAt(0),c=Rl(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=ao(u)+s.slice(1));let d=s.charCodeAt(s.length-1),p=Rl(n.after.charCodeAt(0),d,r);p.inside&&(s=s.slice(0,-1)+ao(d));let f=i.move(r);return o(),a.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},l+s+f}function ZU(e,t,a){return a.options.emphasis||"*"}function J1(e,t){let a=!1;return di(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return a=!0,ci}),!!((!e.depth||e.depth<3)&&ni(e)&&(t.options.setext||a))}function X1(e,t,a,n){let r=Math.max(Math.min(6,e.depth||1),1),o=a.createTracker(n);if(J1(e,a)){let c=a.enter("headingSetext"),d=a.enter("phrasing"),p=a.containerPhrasing(e,{...o.current(),before:`
|
|
37
37
|
`,after:`
|
|
38
38
|
`});return d(),c(),p+`
|
|
39
39
|
`+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
40
40
|
`))+1))}let i="#".repeat(r),l=a.enter("headingAtx"),s=a.enter("phrasing");o.move(i+" ");let u=a.containerPhrasing(e,{before:"# ",after:`
|
|
41
|
-
`,...o.current()});return/^[\t ]/.test(u)&&(u=
|
|
41
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=ao(u.charCodeAt(0))+u.slice(1)),u=u?i+" "+u:i,a.options.closeAtx&&(u+=" "+i),s(),l(),u}Sy.peek=HU;function Sy(e){return e.value||""}function HU(){return"<"}wy.peek=VU;function wy(e,t,a,n){let r=Dl(a),o=r==='"'?"Quote":"Apostrophe",i=a.enter("image"),l=a.enter("label"),s=a.createTracker(n),u=s.move("![");return u+=s.move(a.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=a.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(a.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=a.enter("destinationRaw"),u+=s.move(a.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=a.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(a.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),u+=s.move(")"),i(),u}function VU(){return"!"}Iy.peek=GU;function Iy(e,t,a,n){let r=e.referenceType,o=a.enter("imageReference"),i=a.enter("label"),l=a.createTracker(n),s=l.move("!["),u=a.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),i();let c=a.stack;a.stack=[],i=a.enter("reference");let d=a.safe(a.associationId(e),{before:s,after:"]",...l.current()});return i(),a.stack=c,o(),r==="full"||!u||u!==d?s+=l.move(d+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function GU(){return"!"}ky.peek=WU;function ky(e,t,a){let n=e.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<a.unsafe.length;){let i=a.unsafe[o],l=a.compilePattern(i),s;if(i.atBreak)for(;s=l.exec(n);){let u=s.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(s.index+1)}}return r+n+r}function WU(){return"`"}function _y(e,t){let a=ni(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Cy.peek=JU;function Cy(e,t,a,n){let r=Dl(a),o=r==='"'?"Quote":"Apostrophe",i=a.createTracker(n),l,s;if(_y(e,a)){let c=a.stack;a.stack=[],l=a.enter("autolink");let d=i.move("<");return d+=i.move(a.containerPhrasing(e,{before:d,after:">",...i.current()})),d+=i.move(">"),l(),a.stack=c,d}l=a.enter("link"),s=a.enter("label");let u=i.move("[");return u+=i.move(a.containerPhrasing(e,{before:u,after:"](",...i.current()})),u+=i.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=a.enter("destinationLiteral"),u+=i.move("<"),u+=i.move(a.safe(e.url,{before:u,after:">",...i.current()})),u+=i.move(">")):(s=a.enter("destinationRaw"),u+=i.move(a.safe(e.url,{before:u,after:e.title?" ":")",...i.current()}))),s(),e.title&&(s=a.enter(`title${o}`),u+=i.move(" "+r),u+=i.move(a.safe(e.title,{before:u,after:r,...i.current()})),u+=i.move(r),s()),u+=i.move(")"),l(),u}function JU(e,t,a){return _y(e,a)?"<":"["}Ly.peek=XU;function Ly(e,t,a,n){let r=e.referenceType,o=a.enter("linkReference"),i=a.enter("label"),l=a.createTracker(n),s=l.move("["),u=a.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),i();let c=a.stack;a.stack=[],i=a.enter("reference");let d=a.safe(a.associationId(e),{before:s,after:"]",...l.current()});return i(),a.stack=c,o(),r==="full"||!u||u!==d?s+=l.move(d+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function XU(){return"["}function $l(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function K1(e){let t=$l(e),a=e.options.bulletOther;if(!a)return t==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+a+"`) to be different");return a}function Y1(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ep(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Q1(e,t,a,n){let r=a.enter("list"),o=a.bulletCurrent,i=e.ordered?Y1(a):$l(a),l=e.ordered?i==="."?")":".":K1(a),s=t&&a.bulletLastUsed?i===a.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&c&&(!c.children||!c.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(s=!0),ep(a)===i&&c){let d=-1;for(;++d<e.children.length;){let p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(i=l),a.bulletCurrent=i;let u=a.containerFlow(e,n);return a.bulletLastUsed=i,a.bulletCurrent=o,r(),u}function eA(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function tA(e,t,a,n){let r=eA(a),o=a.bulletCurrent||$l(a);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(a.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let i=o.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=a.createTracker(n);l.move(o+" ".repeat(i-o.length)),l.shift(i);let s=a.enter("listItem"),u=a.indentLines(a.containerFlow(e,l.current()),c);return s(),u;function c(d,p,f){return p?(f?"":" ".repeat(i))+d:(f?o:o+" ".repeat(i-o.length))+d}}function aA(e,t,a,n){let r=a.enter("paragraph"),o=a.enter("phrasing"),i=a.containerPhrasing(e,n);return o(),r(),i}var Ty=to(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rA(e,t,a,n){return(e.children.some(function(i){return Ty(i)})?a.containerPhrasing:a.containerFlow).call(a,e,n)}function nA(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ay.peek=KU;function Ay(e,t,a,n){let r=nA(a),o=a.enter("strong"),i=a.createTracker(n),l=i.move(r+r),s=i.move(a.containerPhrasing(e,{after:r,before:l,...i.current()})),u=s.charCodeAt(0),c=Rl(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=ao(u)+s.slice(1));let d=s.charCodeAt(s.length-1),p=Rl(n.after.charCodeAt(0),d,r);p.inside&&(s=s.slice(0,-1)+ao(d));let f=i.move(r+r);return o(),a.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},l+s+f}function KU(e,t,a){return a.options.strong||"*"}function oA(e,t,a,n){return a.safe(e.value,n)}function iA(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function lA(e,t,a){let n=(ep(a)+(a.options.ruleSpaces?" ":"")).repeat(iA(a));return a.options.ruleSpaces?n.slice(0,-1):n}var Ou={blockquote:j1,break:xy,code:V1,definition:G1,emphasis:by,hardBreak:xy,heading:X1,html:Sy,image:wy,imageReference:Iy,inlineCode:ky,link:Cy,linkReference:Ly,list:Q1,listItem:tA,paragraph:aA,root:rA,strong:Ay,text:oA,thematicBreak:lA};function My(){return{enter:{table:YU,tableData:sA,tableHeader:sA,tableRow:e6},exit:{codeText:t6,table:QU,tableData:Ey,tableHeader:Ey,tableRow:Ey}}}function YU(e){let t=e._align;this.enter({type:"table",align:t.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function QU(e){this.exit(e),this.data.inTable=void 0}function e6(e){this.enter({type:"tableRow",children:[]},e)}function Ey(e){this.exit(e)}function sA(e){this.enter({type:"tableCell",children:[]},e)}function t6(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,a6));let a=this.stack[this.stack.length-1];a.type,a.value=t,this.exit(e)}function a6(e,t){return t==="|"?t:e}function Oy(e){let t=e||{},a=t.tableCellPadding,n=t.tablePipeAlign,r=t.stringLength,o=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
42
42
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:i,tableCell:s,tableRow:l}};function i(f,m,x,b){return u(c(f,x,b),f.align)}function l(f,m,x,b){let v=d(f,x,b),y=u([v]);return y.slice(0,y.indexOf(`
|
|
43
|
-
`))}function s(f,m,x,b){let v=x.enter("tableCell"),y=x.enter("phrasing"),g=x.containerPhrasing(f,{...b,before:o,after:o});return y(),v(),g}function u(f,m){return $1(f,{align:m,alignDelimiters:n,padding:a,stringLength:r})}function c(f,m,x){let b=f.children,v=-1,y=[],g=m.enter("table");for(;++v<b.length;)y[v]=d(b[v],m,x);return g(),y}function d(f,m,x){let b=f.children,v=-1,y=[],g=m.enter("tableRow");for(;++v<b.length;)y[v]=s(b[v],f,m,x);return g(),y}function p(f,m,x){let b=Au.inlineCode(f,m,x);return x.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function Ay(){return{exit:{taskListCheckValueChecked:iA,taskListCheckValueUnchecked:iA,paragraph:KU}}}function Ey(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:YU}}}function iA(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function KU(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let a=this.stack[this.stack.length-1];a.type;let n=a.children[0];if(n&&n.type==="text"){let r=t.children,o=-1,i;for(;++o<r.length;){let l=r[o];if(l.type==="paragraph"){i=l;break}}i===a&&(n.value=n.value.slice(1),n.value.length===0?a.children.shift():a.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,a.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function YU(e,t,a,n){let r=e.children[0],o=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=a.createTracker(n);o&&l.move(i);let s=Au.listItem(e,t,a,{...n,...l.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(c){return c+i}}function My(){return[uy(),dy(),py(),Ly(),Ay()]}function Oy(e){return{extensions:[cy(),fy(e),my(),Ty(e),Ey()]}}var QU={tokenize:n6,partial:!0},lA={tokenize:o6,partial:!0},sA={tokenize:i6,partial:!0},uA={tokenize:l6,partial:!0},e6={tokenize:s6,partial:!0},cA={name:"wwwAutolink",tokenize:a6,previous:fA},dA={name:"protocolAutolink",tokenize:r6,previous:pA},tn={name:"emailAutolink",tokenize:t6,previous:mA},br={};function Dy(){return{text:br}}var ci=48;for(;ci<123;)br[ci]=tn,ci++,ci===58?ci=65:ci===91&&(ci=97);br[43]=tn;br[45]=tn;br[46]=tn;br[95]=tn;br[72]=[tn,dA];br[104]=[tn,dA];br[87]=[tn,cA];br[119]=[tn,cA];function t6(e,t,a){let n=this,r,o;return i;function i(d){return!zy(d)||!mA.call(n,n.previous)||Ry(n.events)?a(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return zy(d)?(e.consume(d),l):d===64?(e.consume(d),s):a(d)}function s(d){return d===46?e.check(e6,c,u)(d):d===45||d===95||st(d)?(o=!0,e.consume(d),s):c(d)}function u(d){return e.consume(d),r=!0,s}function c(d){return o&&r&&St(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):a(d)}}function a6(e,t,a){let n=this;return r;function r(i){return i!==87&&i!==119||!fA.call(n,n.previous)||Ry(n.events)?a(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QU,e.attempt(lA,e.attempt(sA,o),a),a)(i))}function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function r6(e,t,a){let n=this,r="",o=!1;return i;function i(d){return(d===72||d===104)&&pA.call(n,n.previous)&&!Ry(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),l):a(d)}function l(d){if(St(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),l;if(d===58){let p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),s}return a(d)}function s(d){return d===47?(e.consume(d),o?u:(o=!0,s)):a(d)}function u(d){return d===null||ai(d)||ge(d)||yr(d)||ri(d)?a(d):e.attempt(lA,e.attempt(sA,c),a)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function n6(e,t,a){let n=0;return r;function r(i){return(i===87||i===119)&&n<3?(n++,e.consume(i),r):i===46&&n===3?(e.consume(i),o):a(i)}function o(i){return i===null?a(i):t(i)}}function o6(e,t,a){let n,r,o;return i;function i(u){return u===46||u===95?e.check(uA,s,l)(u):u===null||ge(u)||yr(u)||u!==45&&ri(u)?s(u):(o=!0,e.consume(u),i)}function l(u){return u===95?n=!0:(r=n,n=void 0),e.consume(u),i}function s(u){return r||n||!o?a(u):t(u)}}function i6(e,t){let a=0,n=0;return r;function r(i){return i===40?(a++,e.consume(i),r):i===41&&n<a?o(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(uA,t,o)(i):i===null||ge(i)||yr(i)?t(i):(e.consume(i),r)}function o(i){return i===41&&n++,e.consume(i),r}}function l6(e,t,a){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),o):l===93?(e.consume(l),r):l===60||l===null||ge(l)||yr(l)?t(l):a(l)}function r(l){return l===null||l===40||l===91||ge(l)||yr(l)?t(l):n(l)}function o(l){return St(l)?i(l):a(l)}function i(l){return l===59?(e.consume(l),n):St(l)?(e.consume(l),i):a(l)}}function s6(e,t,a){return n;function n(o){return e.consume(o),r}function r(o){return st(o)?a(o):t(o)}}function fA(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ge(e)}function pA(e){return!St(e)}function mA(e){return!(e===47||zy(e))}function zy(e){return e===43||e===45||e===46||e===95||st(e)}function Ry(e){let t=e.length,a=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){a=!0;break}if(n._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}var u6={tokenize:g6,partial:!0};function $y(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:p6,continuation:{tokenize:m6},exit:h6}},text:{91:{name:"gfmFootnoteCall",tokenize:f6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:c6,resolveTo:d6}}}}function c6(e,t,a){let n=this,r=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i;for(;r--;){let s=n.events[r][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!i||!i._balanced)return a(s);let u=Bt(n.sliceSerialize({start:i.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?a(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function d6(e,t){let a=e.length,n;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){n=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[a+1],e[a+2],["enter",r,t],e[a+3],e[a+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(a,e.length-a+1,...s),e}function f6(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,i;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?a(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!i||d===null||d===91||ge(d))return a(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return r.includes(Bt(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):a(d)}return ge(d)||(i=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function p6(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,i=0,l;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):a(m)}function c(m){if(i>999||m===93&&!l||m===null||m===91||ge(m))return a(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=Bt(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ge(m)||(l=!0),i++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),i++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),r.includes(o)||r.push(o),K(e,f,"gfmFootnoteDefinitionWhitespace")):a(m)}function f(m){return t(m)}}function m6(e,t,a){return e.check(xr,t,e.attempt(u6,t,a))}function h6(e){e.exit("gfmFootnoteDefinition")}function g6(e,t,a){let n=this;return K(e,r,"gfmFootnoteDefinitionIndent",5);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(o):a(o)}}function Py(e){let a=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:r};return a==null&&(a=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(i,l){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let u=s;for(;u--;)if(i[u][0]==="exit"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[u][1].end.offset-i[u][1].start.offset){i[s][1].type="strikethroughSequence",i[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},i[u][1].start),end:Object.assign({},i[s][1].end)},d={type:"strikethroughText",start:Object.assign({},i[u][1].end),end:Object.assign({},i[s][1].start)},p=[["enter",c,l],["enter",i[u][1],l],["exit",i[u][1],l],["enter",d,l]],f=l.parser.constructs.insideSpan.null;f&&pt(p,p.length,0,Wn(f,i.slice(u+1,s),l)),pt(p,p.length,0,[["exit",d,l],["enter",i[s][1],l],["exit",i[s][1],l],["exit",c,l]]),pt(i,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type="data");return i}function o(i,l,s){let u=this.previous,c=this.events,d=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?s(m):(i.enter("strikethroughSequenceTemporary"),f(m))}function f(m){let x=en(u);if(m===126)return d>1?s(m):(i.consume(m),d++,f);if(d<2&&!a)return s(m);let b=i.exit("strikethroughSequenceTemporary"),v=en(m);return b._open=!v||v===2&&!!x,b._close=!x||x===2&&!!v,l(m)}}}var Yf=class{constructor(){this.map=[]}add(t,a,n){v6(this,t,a,n)}consume(t){if(this.map.sort(function(o,i){return o[0]-i[0]}),this.map.length===0)return;let a=this.map.length,n=[];for(;a>0;)a-=1,n.push(t.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),t.length=this.map[a][0];n.push(t.slice()),t.length=0;let r=n.pop();for(;r;){for(let o of r)t.push(o);r=n.pop()}this.map.length=0}};function v6(e,t,a,n){let r=0;if(!(a===0&&n.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=a,e.map[r][2].push(...n);return}r+=1}e.map.push([t,a,n])}}function hA(e,t){let a=!1,n=[];for(;t<e.length;){let r=e[t];if(a){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(a=!0);t+=1}return n}function Ny(){return{flow:{null:{name:"table",tokenize:y6,resolveAll:x6}}}}function y6(e,t,a){let n=this,r=0,o=0,i;return l;function l(k){let G=n.events.length-1;for(;G>-1;){let X=n.events[G][1].type;if(X==="lineEnding"||X==="linePrefix")G--;else break}let Z=G>-1?n.events[G][1].type:null,F=Z==="tableHead"||Z==="tableRow"?_:s;return F===_&&n.parser.lazy[n.now().line]?a(k):F(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(i=!0,o+=1),c(k)}function c(k){return k===null?a(k):q(k)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),f):a(k):Q(k)?K(e,c,"whitespace")(k):(o+=1,i&&(i=!1,r+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||ge(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?p:d)}function p(k){return k===92||k===124?(e.consume(k),d):d(k)}function f(k){return n.interrupt=!1,n.parser.lazy[n.now().line]?a(k):(e.enter("tableDelimiterRow"),i=!1,Q(k)?K(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):m(k))}function m(k){return k===45||k===58?b(k):k===124?(i=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),x):L(k)}function x(k){return Q(k)?K(e,b,"whitespace")(k):b(k)}function b(k){return k===58?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),v):k===45?(o+=1,v(k)):k===null||q(k)?S(k):L(k)}function v(k){return k===45?(e.enter("tableDelimiterFiller"),y(k)):L(k)}function y(k){return k===45?(e.consume(k),y):k===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(k))}function g(k){return Q(k)?K(e,S,"whitespace")(k):S(k)}function S(k){return k===124?m(k):k===null||q(k)?!i||r!==o?L(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):L(k)}function L(k){return a(k)}function _(k){return e.enter("tableRow"),A(k)}function A(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):k===null||q(k)?(e.exit("tableRow"),t(k)):Q(k)?K(e,A,"whitespace")(k):(e.enter("data"),z(k))}function z(k){return k===null||k===124||ge(k)?(e.exit("data"),A(k)):(e.consume(k),k===92?$:z)}function $(k){return k===92||k===124?(e.consume(k),z):z(k)}}function x6(e,t){let a=-1,n=!0,r=0,o=[0,0,0,0],i=[0,0,0,0],l=!1,s=0,u,c,d,p=new Yf;for(;++a<e.length;){let f=e[a],m=f[1];f[0]==="enter"?m.type==="tableHead"?(l=!1,s!==0&&(gA(p,t,s,u,c),c=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,d=void 0,o=[0,0,0,0],i=[0,a+1,0,0],l&&(l=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",c,t]])),r=m.type==="tableDelimiterRow"?2:c?3:1):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,i[2]===0&&(o[1]!==0&&(i[0]=i[1],d=Qf(p,t,o,r,void 0,d),o=[0,0,0,0]),i[2]=a)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(i[0]=i[1],d=Qf(p,t,o,r,void 0,d)),o=i,i=[o[1],a,0,0])):m.type==="tableHead"?(l=!0,s=a):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=a,o[1]!==0?(i[0]=i[1],d=Qf(p,t,o,r,a,d)):i[1]!==0&&(d=Qf(p,t,i,r,a,d)),r=0):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(i[3]=a)}for(s!==0&&gA(p,t,s,u,c),p.consume(t.events),a=-1;++a<t.events.length;){let f=t.events[a];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=hA(t.events,a))}return e}function Qf(e,t,a,n,r,o){let i=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";a[0]!==0&&(o.end=Object.assign({},Dl(t.events,a[0])),e.add(a[0],0,[["exit",o,t]]));let s=Dl(t.events,a[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(a[1],0,[["enter",o,t]]),a[2]!==0){let u=Dl(t.events,a[2]),c=Dl(t.events,a[3]),d={type:l,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(a[2],0,[["enter",d,t]]),n!==2){let p=t.events[a[2]],f=t.events[a[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",a[3]>a[2]+1){let m=a[2]+1,x=a[3]-a[2]-1;e.add(m,x,[])}}e.add(a[3]+1,0,[["exit",d,t]])}return r!==void 0&&(o.end=Object.assign({},Dl(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function gA(e,t,a,n,r){let o=[],i=Dl(t.events,a);r&&(r.end=Object.assign({},i),o.push(["exit",r,t])),n.end=Object.assign({},i),o.push(["exit",n,t]),e.add(a+1,0,o)}function Dl(e,t){let a=e[t],n=a[0]==="enter"?"start":"end";return a[1][n]}var b6={name:"tasklistCheck",tokenize:S6};function Uy(){return{text:{91:b6}}}function S6(e,t,a){let n=this;return r;function r(s){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?a(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return ge(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),i):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),i):a(s)}function i(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):a(s)}function l(s){return q(s)?t(s):Q(s)?e.check({tokenize:w6},t,a)(s):a(s)}}function w6(e,t,a){return K(e,n,"whitespace");function n(r){return r===null?a(r):t(r)}}function vA(e){return Cf([Dy(),$y(),Py(e),Ny(),Uy()])}var I6={};function ep(e){let t=this,a=e||I6,n=t.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(vA(a)),o.push(My()),i.push(Oy(a))}var Va=Le(Nt(),1);var VA="vercel.ai.error",k6=Symbol.for(VA),yA,xA,_e=class GA extends(xA=Error,yA=k6,xA){constructor({name:t,message:a,cause:n}){super(a),this[yA]=!0,this.name=t,this.cause=n}static isInstance(t){return GA.hasMarker(t,VA)}static hasMarker(t,a){let n=Symbol.for(a);return t!=null&&typeof t=="object"&&n in t&&typeof t[n]=="boolean"&&t[n]===!0}},JA="AI_APICallError",XA=`vercel.ai.error.${JA}`,_6=Symbol.for(XA),bA,SA,Wte=class extends(SA=_e,bA=_6,SA){constructor({message:e,url:t,requestBodyValues:a,statusCode:n,responseHeaders:r,responseBody:o,cause:i,isRetryable:l=n!=null&&(n===408||n===409||n===429||n>=500),data:s}){super({name:JA,message:e,cause:i}),this[bA]=!0,this.url=t,this.requestBodyValues=a,this.statusCode=n,this.responseHeaders=r,this.responseBody=o,this.isRetryable=l,this.data=s}static isInstance(e){return _e.hasMarker(e,XA)}},WA="AI_EmptyResponseBodyError",KA=`vercel.ai.error.${WA}`,C6=Symbol.for(KA),wA,IA,Kte=class extends(IA=_e,wA=C6,IA){constructor({message:e="Empty response body"}={}){super({name:WA,message:e}),this[wA]=!0}static isInstance(e){return _e.hasMarker(e,KA)}};function YA(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var QA="AI_InvalidArgumentError",eE=`vercel.ai.error.${QA}`,L6=Symbol.for(eE),kA,_A,tE=class extends(_A=_e,kA=L6,_A){constructor({message:e,cause:t,argument:a}){super({name:QA,message:e,cause:t}),this[kA]=!0,this.argument=a}static isInstance(e){return _e.hasMarker(e,eE)}},aE="AI_InvalidPromptError",rE=`vercel.ai.error.${aE}`,T6=Symbol.for(rE),CA,LA,Yte=class extends(LA=_e,CA=T6,LA){constructor({prompt:e,message:t,cause:a}){super({name:aE,message:`Invalid prompt: ${t}`,cause:a}),this[CA]=!0,this.prompt=e}static isInstance(e){return _e.hasMarker(e,rE)}},nE="AI_InvalidResponseDataError",oE=`vercel.ai.error.${nE}`,A6=Symbol.for(oE),TA,AA,Qte=class extends(AA=_e,TA=A6,AA){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:nE,message:t}),this[TA]=!0,this.data=e}static isInstance(e){return _e.hasMarker(e,oE)}},iE="AI_JSONParseError",lE=`vercel.ai.error.${iE}`,E6=Symbol.for(lE),EA,MA,By=class extends(MA=_e,EA=E6,MA){constructor({text:e,cause:t}){super({name:iE,message:`JSON parsing failed: Text: ${e}.
|
|
44
|
-
Error message: ${
|
|
45
|
-
Error message: ${YA(a)}`,cause:a}),this[FA]=!0,this.value=t}static isInstance(t){return _e.hasMarker(t,xE)}static wrap({value:t,cause:a}){return jy.isInstance(a)&&a.value===t?a:new jy({value:t,cause:a})}},bE="AI_UnsupportedFunctionalityError",SE=`vercel.ai.error.${bE}`,P6=Symbol.for(SE),ZA,HA,oae=class extends(HA=_e,ZA=P6,HA){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:bE,message:t}),this[ZA]=!0,this.functionality=e}static isInstance(e){return _e.hasMarker(e,SE)}};var h={};lr(h,{$brand:()=>qy,$input:()=>rS,$output:()=>aS,NEVER:()=>Fy,TimePrecision:()=>iS,ZodAny:()=>jM,ZodArray:()=>ZM,ZodBase64:()=>mw,ZodBase64URL:()=>hw,ZodBigInt:()=>mc,ZodBigIntFormat:()=>yw,ZodBoolean:()=>pc,ZodCIDRv4:()=>fw,ZodCIDRv6:()=>pw,ZodCUID:()=>ow,ZodCUID2:()=>iw,ZodCatch:()=>uO,ZodCustom:()=>em,ZodCustomStringFormat:()=>zM,ZodDate:()=>Kp,ZodDefault:()=>rO,ZodDiscriminatedUnion:()=>HM,ZodE164:()=>gw,ZodEmail:()=>tw,ZodEmoji:()=>rw,ZodEnum:()=>cc,ZodError:()=>wB,ZodFile:()=>tO,ZodGUID:()=>Hp,ZodIPv4:()=>cw,ZodIPv6:()=>dw,ZodISODate:()=>Bp,ZodISODateTime:()=>jp,ZodISODuration:()=>qp,ZodISOTime:()=>Fp,ZodIntersection:()=>VM,ZodIssueCode:()=>CF,ZodJWT:()=>vw,ZodKSUID:()=>uw,ZodLazy:()=>hO,ZodLiteral:()=>QM,ZodMap:()=>WM,ZodNaN:()=>dO,ZodNanoID:()=>nw,ZodNever:()=>FM,ZodNonOptional:()=>_w,ZodNull:()=>NM,ZodNullable:()=>aO,ZodNumber:()=>fc,ZodNumberFormat:()=>Vl,ZodObject:()=>Yp,ZodOptional:()=>kw,ZodPipe:()=>Cw,ZodPrefault:()=>oO,ZodPromise:()=>vO,ZodReadonly:()=>fO,ZodRealError:()=>Hl,ZodRecord:()=>Sw,ZodSet:()=>KM,ZodString:()=>dc,ZodStringFormat:()=>He,ZodSuccess:()=>sO,ZodSymbol:()=>$M,ZodTemplateLiteral:()=>mO,ZodTransform:()=>ww,ZodTuple:()=>JM,ZodType:()=>he,ZodULID:()=>lw,ZodURL:()=>aw,ZodUUID:()=>sn,ZodUndefined:()=>PM,ZodUnion:()=>bw,ZodUnknown:()=>BM,ZodVoid:()=>qM,ZodXID:()=>sw,_ZodString:()=>ew,_default:()=>nO,any:()=>aF,array:()=>xw,base64:()=>FB,base64url:()=>qB,bigint:()=>KB,boolean:()=>RM,catch:()=>cO,check:()=>yO,cidrv4:()=>jB,cidrv6:()=>BB,clone:()=>Ia,coerce:()=>Lw,config:()=>yt,core:()=>ln,cuid:()=>zB,cuid2:()=>DB,custom:()=>SF,date:()=>nF,discriminatedUnion:()=>uF,e164:()=>ZB,email:()=>kB,emoji:()=>MB,endsWith:()=>ec,enum:()=>YM,file:()=>hF,flattenError:()=>Uu,float32:()=>GB,float64:()=>JB,formatError:()=>ju,function:()=>ZS,getErrorMap:()=>TF,globalRegistry:()=>Ir,gt:()=>nn,gte:()=>sa,guid:()=>_B,includes:()=>Yu,instanceof:()=>wF,int:()=>QS,int32:()=>XB,int64:()=>YB,intersection:()=>GM,ipv4:()=>NB,ipv6:()=>UB,iso:()=>Zp,json:()=>kF,jwt:()=>HB,keyof:()=>oF,ksuid:()=>PB,lazy:()=>gO,length:()=>Zl,literal:()=>eO,locales:()=>Vu,looseObject:()=>sF,lowercase:()=>Wu,lt:()=>rn,lte:()=>Za,map:()=>fF,maxLength:()=>ql,maxSize:()=>Fl,mime:()=>tc,minLength:()=>to,minSize:()=>yi,multipleOf:()=>vi,nan:()=>yF,nanoid:()=>OB,nativeEnum:()=>mF,negative:()=>DS,never:()=>Wp,nonnegative:()=>$S,nonoptional:()=>lO,nonpositive:()=>RS,normalize:()=>ac,null:()=>UM,nullable:()=>Jp,nullish:()=>gF,number:()=>DM,object:()=>iF,optional:()=>Gp,overwrite:()=>on,parse:()=>XS,parseAsync:()=>WS,partialRecord:()=>dF,pipe:()=>Xp,positive:()=>zS,prefault:()=>iO,preprocess:()=>_F,prettifyError:()=>ax,promise:()=>bF,property:()=>PS,readonly:()=>pO,record:()=>XM,refine:()=>xO,regex:()=>Xu,regexes:()=>mi,registry:()=>vp,safeParse:()=>KS,safeParseAsync:()=>uc,set:()=>pF,setErrorMap:()=>LF,size:()=>Ju,startsWith:()=>Qu,strictObject:()=>lF,string:()=>YS,stringFormat:()=>VB,stringbool:()=>IF,success:()=>vF,superRefine:()=>bO,symbol:()=>eF,templateLiteral:()=>xF,toJSONSchema:()=>sc,toLowerCase:()=>nc,toUpperCase:()=>oc,transform:()=>Iw,treeifyError:()=>tx,trim:()=>rc,tuple:()=>cF,uint32:()=>WB,uint64:()=>QB,ulid:()=>RB,undefined:()=>tF,union:()=>Qp,unknown:()=>Vp,uppercase:()=>Ku,url:()=>EB,uuid:()=>CB,uuidv4:()=>LB,uuidv6:()=>TB,uuidv7:()=>AB,void:()=>rF,xid:()=>$B});var ln={};lr(ln,{$ZodAny:()=>Eb,$ZodArray:()=>qu,$ZodAsyncError:()=>wr,$ZodBase64:()=>bb,$ZodBase64URL:()=>Sb,$ZodBigInt:()=>mp,$ZodBigIntFormat:()=>Cb,$ZodBoolean:()=>Fu,$ZodCIDRv4:()=>vb,$ZodCIDRv6:()=>yb,$ZodCUID:()=>ib,$ZodCUID2:()=>lb,$ZodCatch:()=>Xb,$ZodCheck:()=>at,$ZodCheckBigIntFormat:()=>$x,$ZodCheckEndsWith:()=>Jx,$ZodCheckGreaterThan:()=>cp,$ZodCheckIncludes:()=>Vx,$ZodCheckLengthEquals:()=>Fx,$ZodCheckLessThan:()=>up,$ZodCheckLowerCase:()=>Zx,$ZodCheckMaxLength:()=>jx,$ZodCheckMaxSize:()=>Px,$ZodCheckMimeType:()=>Wx,$ZodCheckMinLength:()=>Bx,$ZodCheckMinSize:()=>Nx,$ZodCheckMultipleOf:()=>Dx,$ZodCheckNumberFormat:()=>Rx,$ZodCheckOverwrite:()=>Kx,$ZodCheckProperty:()=>Xx,$ZodCheckRegex:()=>qx,$ZodCheckSizeEquals:()=>Ux,$ZodCheckStartsWith:()=>Gx,$ZodCheckStringFormat:()=>Nl,$ZodCheckUpperCase:()=>Hx,$ZodCustom:()=>tS,$ZodCustomStringFormat:()=>kb,$ZodDate:()=>zb,$ZodDefault:()=>Hb,$ZodDiscriminatedUnion:()=>Rb,$ZodE164:()=>wb,$ZodEmail:()=>ab,$ZodEmoji:()=>nb,$ZodEnum:()=>jb,$ZodError:()=>Nu,$ZodFile:()=>Fb,$ZodFunction:()=>Up,$ZodGUID:()=>eb,$ZodIPv4:()=>hb,$ZodIPv6:()=>gb,$ZodISODate:()=>fb,$ZodISODateTime:()=>db,$ZodISODuration:()=>mb,$ZodISOTime:()=>pb,$ZodIntersection:()=>$b,$ZodJWT:()=>Ib,$ZodKSUID:()=>cb,$ZodLazy:()=>eS,$ZodLiteral:()=>Bb,$ZodMap:()=>Nb,$ZodNaN:()=>Wb,$ZodNanoID:()=>ob,$ZodNever:()=>Mb,$ZodNonOptional:()=>Gb,$ZodNull:()=>Ab,$ZodNullable:()=>Zb,$ZodNumber:()=>pp,$ZodNumberFormat:()=>_b,$ZodObject:()=>Db,$ZodOptional:()=>qb,$ZodPipe:()=>Hu,$ZodPrefault:()=>Vb,$ZodPromise:()=>Qb,$ZodReadonly:()=>Kb,$ZodRealError:()=>Pl,$ZodRecord:()=>Pb,$ZodRegistry:()=>jl,$ZodSet:()=>Ub,$ZodString:()=>hi,$ZodStringFormat:()=>qe,$ZodSuccess:()=>Jb,$ZodSymbol:()=>Lb,$ZodTemplateLiteral:()=>Yb,$ZodTransform:()=>Zu,$ZodTuple:()=>gi,$ZodType:()=>oe,$ZodULID:()=>sb,$ZodURL:()=>rb,$ZodUUID:()=>tb,$ZodUndefined:()=>Tb,$ZodUnion:()=>hp,$ZodUnknown:()=>Ul,$ZodVoid:()=>Ob,$ZodXID:()=>ub,$brand:()=>qy,$constructor:()=>C,$input:()=>rS,$output:()=>aS,Doc:()=>Bu,JSONSchema:()=>EM,JSONSchemaGenerator:()=>lc,NEVER:()=>Fy,TimePrecision:()=>iS,_any:()=>LS,_array:()=>ic,_base64:()=>Rp,_base64url:()=>$p,_bigint:()=>bS,_boolean:()=>yS,_catch:()=>hB,_cidrv4:()=>zp,_cidrv6:()=>Dp,_coercedBigint:()=>SS,_coercedBoolean:()=>xS,_coercedDate:()=>MS,_coercedNumber:()=>fS,_coercedString:()=>oS,_cuid:()=>Cp,_cuid2:()=>Lp,_custom:()=>jS,_date:()=>ES,_default:()=>fB,_discriminatedUnion:()=>tB,_e164:()=>Pp,_email:()=>yp,_emoji:()=>kp,_endsWith:()=>ec,_enum:()=>iB,_file:()=>US,_float32:()=>mS,_float64:()=>hS,_gt:()=>nn,_gte:()=>sa,_guid:()=>Gu,_includes:()=>Yu,_int:()=>pS,_int32:()=>gS,_int64:()=>wS,_intersection:()=>aB,_ipv4:()=>Mp,_ipv6:()=>Op,_isoDate:()=>sS,_isoDateTime:()=>lS,_isoDuration:()=>cS,_isoTime:()=>uS,_jwt:()=>Np,_ksuid:()=>Ep,_lazy:()=>xB,_length:()=>Zl,_literal:()=>sB,_lowercase:()=>Wu,_lt:()=>rn,_lte:()=>Za,_map:()=>nB,_max:()=>Za,_maxLength:()=>ql,_maxSize:()=>Fl,_mime:()=>tc,_min:()=>sa,_minLength:()=>to,_minSize:()=>yi,_multipleOf:()=>vi,_nan:()=>OS,_nanoid:()=>_p,_nativeEnum:()=>lB,_negative:()=>DS,_never:()=>TS,_nonnegative:()=>$S,_nonoptional:()=>pB,_nonpositive:()=>RS,_normalize:()=>ac,_null:()=>CS,_nullable:()=>dB,_number:()=>dS,_optional:()=>cB,_overwrite:()=>on,_parse:()=>ap,_parseAsync:()=>np,_pipe:()=>gB,_positive:()=>zS,_promise:()=>bB,_property:()=>PS,_readonly:()=>vB,_record:()=>rB,_refine:()=>BS,_regex:()=>Xu,_safeParse:()=>ip,_safeParseAsync:()=>lp,_set:()=>oB,_size:()=>Ju,_startsWith:()=>Qu,_string:()=>nS,_stringFormat:()=>qS,_stringbool:()=>FS,_success:()=>mB,_symbol:()=>kS,_templateLiteral:()=>yB,_toLowerCase:()=>nc,_toUpperCase:()=>oc,_transform:()=>uB,_trim:()=>rc,_tuple:()=>NS,_uint32:()=>vS,_uint64:()=>IS,_ulid:()=>Tp,_undefined:()=>_S,_union:()=>eB,_unknown:()=>Bl,_uppercase:()=>Ku,_url:()=>Ip,_uuid:()=>xp,_uuidv4:()=>bp,_uuidv6:()=>Sp,_uuidv7:()=>wp,_void:()=>AS,_xid:()=>Ap,clone:()=>Ia,config:()=>yt,flattenError:()=>Uu,formatError:()=>ju,function:()=>ZS,globalConfig:()=>Eu,globalRegistry:()=>Ir,isValidBase64:()=>xb,isValidBase64URL:()=>BE,isValidJWT:()=>FE,locales:()=>Vu,parse:()=>rp,parseAsync:()=>op,prettifyError:()=>ax,regexes:()=>mi,registry:()=>vp,safeParse:()=>rx,safeParseAsync:()=>nx,toDotPath:()=>IE,toJSONSchema:()=>sc,treeifyError:()=>tx,util:()=>U,version:()=>Yx});var Fy=Object.freeze({status:"aborted"});function C(e,t,a){function n(l,s){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),t(l,s);for(let c in i.prototype)c in l||Object.defineProperty(l,c,{value:i.prototype[c].bind(l)});l._zod.constr=i,l._zod.def=s}let r=a?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function i(l){var s;let u=a?.Parent?new o:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>a?.Parent&&l instanceof a.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var qy=Symbol("zod_brand"),wr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Eu={};function yt(e){return e&&Object.assign(Eu,e),Eu}var U={};lr(U,{BIGINT_FORMAT_RANGES:()=>Qy,Class:()=>Hy,NUMBER_FORMAT_RANGES:()=>Yy,aborted:()=>fi,allowsEval:()=>Xy,assert:()=>F6,assertEqual:()=>N6,assertIs:()=>j6,assertNever:()=>B6,assertNotEqual:()=>U6,assignProp:()=>Jy,cached:()=>zu,captureStackTrace:()=>tp,cleanEnum:()=>tj,cleanRegex:()=>Du,clone:()=>Ia,createTransparentProxy:()=>J6,defineLazy:()=>Me,esc:()=>di,escapeRegex:()=>an,extend:()=>K6,finalizeIssue:()=>ka,floatSafeRemainder:()=>Gy,getElementAtPath:()=>q6,getEnumValues:()=>Ou,getLengthableOrigin:()=>Pu,getParsedType:()=>G6,getSizableOrigin:()=>$u,isObject:()=>Rl,isPlainObject:()=>$l,issue:()=>ex,joinValues:()=>M,jsonStringifyReplacer:()=>Vy,merge:()=>Y6,normalizeParams:()=>P,nullish:()=>eo,numKeys:()=>V6,omit:()=>W6,optionalKeys:()=>Ky,partial:()=>Q6,pick:()=>X6,prefixIssues:()=>la,primitiveTypes:()=>Wy,promiseAllObject:()=>Z6,propertyKeyTypes:()=>Ru,randomString:()=>H6,required:()=>ej,stringifyPrimitive:()=>N,unwrapMessage:()=>Mu});function N6(e){return e}function U6(e){return e}function j6(e){}function B6(e){throw new Error}function F6(e){}function Ou(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function M(e,t="|"){return e.map(a=>N(a)).join(t)}function Vy(e,t){return typeof t=="bigint"?t.toString():t}function zu(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw new Error("cached value already set")}}}function eo(e){return e==null}function Du(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function Gy(e,t){let a=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=a>n?a:n,o=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return o%i/10**r}function Me(e,t,a){Object.defineProperty(e,t,{get(){{let r=a();return e[t]=r,r}throw new Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Jy(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function q6(e,t){return t?t.reduce((a,n)=>a?.[n],e):e}function Z6(e){let t=Object.keys(e),a=t.map(n=>e[n]);return Promise.all(a).then(n=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=n[o];return r})}function H6(e=10){let t="abcdefghijklmnopqrstuvwxyz",a="";for(let n=0;n<e;n++)a+=t[Math.floor(Math.random()*t.length)];return a}function di(e){return JSON.stringify(e)}var tp=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Rl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xy=zu(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function $l(e){if(Rl(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let a=t.prototype;return!(Rl(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function V6(e){let t=0;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t++;return t}var G6=e=>{let 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}`)}},Ru=new Set(["string","number","symbol"]),Wy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function an(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ia(e,t,a){let n=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(n._zod.parent=e),n}function P(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(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 J6(e){let t;return new Proxy({},{get(a,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(a,n,r,o){return t??(t=e()),Reflect.set(t,n,r,o)},has(a,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(a,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(a){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(a,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(a,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}function N(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ky(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Yy={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]},Qy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function X6(e,t){let a={},n=e._zod.def;for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(a[r]=n.shape[r])}return Ia(e,{...e._zod.def,shape:a,checks:[]})}function W6(e,t){let a={...e._zod.def.shape},n=e._zod.def;for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete a[r]}return Ia(e,{...e._zod.def,shape:a,checks:[]})}function K6(e,t){if(!$l(t))throw new Error("Invalid input to extend: expected a plain object");let a={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return Jy(this,"shape",n),n},checks:[]};return Ia(e,a)}function Y6(e,t){return Ia(e,{...e._zod.def,get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return Jy(this,"shape",a),a},catchall:t._zod.def.catchall,checks:[]})}function Q6(e,t,a){let n=t._zod.def.shape,r={...n};if(a)for(let o in a){if(!(o in n))throw new Error(`Unrecognized key: "${o}"`);a[o]&&(r[o]=e?new e({type:"optional",innerType:n[o]}):n[o])}else for(let o in n)r[o]=e?new e({type:"optional",innerType:n[o]}):n[o];return Ia(t,{...t._zod.def,shape:r,checks:[]})}function ej(e,t,a){let n=t._zod.def.shape,r={...n};if(a)for(let o in a){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);a[o]&&(r[o]=new e({type:"nonoptional",innerType:n[o]}))}else for(let o in n)r[o]=new e({type:"nonoptional",innerType:n[o]});return Ia(t,{...t._zod.def,shape:r,checks:[]})}function fi(e,t=0){for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function la(e,t){return t.map(a=>{var n;return(n=a).path??(n.path=[]),a.path.unshift(e),a})}function Mu(e){return typeof e=="string"?e:e?.message}function ka(e,t,a){let n={...e,path:e.path??[]};if(!e.message){let r=Mu(e.inst?._zod.def?.error?.(e))??Mu(t?.error?.(e))??Mu(a.customError?.(e))??Mu(a.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function $u(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Pu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ex(...e){let[t,a,n]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:n}:{...t}}function tj(e){return Object.entries(e).filter(([t,a])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var Hy=class{constructor(...t){}};var wE=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Vy,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Nu=C("$ZodError",wE),Pl=C("$ZodError",wE,{Parent:Error});function Uu(e,t=a=>a.message){let a={},n=[];for(let r of e.issues)r.path.length>0?(a[r.path[0]]=a[r.path[0]]||[],a[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:a}}function ju(e,t){let a=t||function(o){return o.message},n={_errors:[]},r=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(a(i));else{let l=n,s=0;for(;s<i.path.length;){let u=i.path[s];s===i.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(a(i))):l[u]=l[u]||{_errors:[]},l=l[u],s++}}};return r(e),n}function tx(e,t){let a=t||function(o){return o.message},n={errors:[]},r=(o,i=[])=>{var l,s;for(let u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>r({issues:c},u.path));else if(u.code==="invalid_key")r({issues:u.issues},u.path);else if(u.code==="invalid_element")r({issues:u.issues},u.path);else{let c=[...i,...u.path];if(c.length===0){n.errors.push(a(u));continue}let d=n,p=0;for(;p<c.length;){let f=c[p],m=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(l=d.properties)[f]??(l[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(s=d.items)[f]??(s[f]={errors:[]}),d=d.items[f]),m&&d.errors.push(a(u)),p++}}};return r(e),n}function IE(e){let t=[];for(let a of e)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function ax(e){let t=[],a=[...e.issues].sort((n,r)=>n.path.length-r.path.length);for(let n of a)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${IE(n.path)}`);return t.join(`
|
|
46
|
-
`)}var ap=e=>(t,a,n,r)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise)throw new wr;if(i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>ka(s,o,yt())));throw tp(l,r?.callee),l}return i.value},rp=ap(Pl),np=e=>async(t,a,n,r)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>ka(s,o,yt())));throw tp(l,r?.callee),l}return i.value},op=np(Pl),ip=e=>(t,a,n)=>{let r=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:a,issues:[]},r);if(o instanceof Promise)throw new wr;return o.issues.length?{success:!1,error:new(e??Nu)(o.issues.map(i=>ka(i,r,yt())))}:{success:!0,data:o.value}},rx=ip(Pl),lp=e=>async(t,a,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:a,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>ka(i,r,yt())))}:{success:!0,data:o.value}},nx=lp(Pl);var mi={};lr(mi,{_emoji:()=>kE,base64:()=>xx,base64url:()=>sp,bigint:()=>Cx,boolean:()=>Ax,browserEmail:()=>cj,cidrv4:()=>vx,cidrv6:()=>yx,cuid:()=>ox,cuid2:()=>ix,date:()=>wx,datetime:()=>kx,domain:()=>dj,duration:()=>dx,e164:()=>Sx,email:()=>px,emoji:()=>mx,extendedDuration:()=>rj,guid:()=>fx,hostname:()=>bx,html5Email:()=>lj,integer:()=>Lx,ipv4:()=>hx,ipv6:()=>gx,ksuid:()=>ux,lowercase:()=>Ox,nanoid:()=>cx,null:()=>Ex,number:()=>Tx,rfc5322Email:()=>sj,string:()=>_x,time:()=>Ix,ulid:()=>lx,undefined:()=>Mx,unicodeEmail:()=>uj,uppercase:()=>zx,uuid:()=>pi,uuid4:()=>nj,uuid6:()=>oj,uuid7:()=>ij,xid:()=>sx});var ox=/^[cC][^\s-]{8,}$/,ix=/^[0-9a-z]+$/,lx=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sx=/^[0-9a-vA-V]{20}$/,ux=/^[A-Za-z0-9]{27}$/,cx=/^[a-zA-Z0-9_-]{21}$/,dx=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rj=/^[-+]?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)?)??$/,fx=/^([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})$/,pi=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)$/,nj=pi(4),oj=pi(6),ij=pi(7),px=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lj=/^[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])?)*$/,sj=/^(([^<>()\[\]\\.,;:\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,}))$/,uj=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,cj=/^[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])?)*$/,kE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function mx(){return new RegExp(kE,"u")}var hx=/^(?:(?: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])$/,gx=/^(([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})$/,vx=/^((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])$/,yx=/^(([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])$/,xx=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sp=/^[A-Za-z0-9_-]*$/,bx=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,dj=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Sx=/^\+(?:[0-9]){6,14}[0-9]$/,_E="(?:(?:\\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])))",wx=new RegExp(`^${_E}$`);function CE(e){let 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 Ix(e){return new RegExp(`^${CE(e)}$`)}function kx(e){let t=CE({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-]\\d{2}:\\d{2})");let n=`${t}(?:${a.join("|")})`;return new RegExp(`^${_E}T(?:${n})$`)}var _x=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Cx=/^\d+n?$/,Lx=/^\d+$/,Tx=/^-?\d+(?:\.\d+)?/i,Ax=/true|false/i,Ex=/null/i;var Mx=/undefined/i;var Ox=/^[^A-Z]*$/,zx=/^[^a-z]*$/;var at=C("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),TE={number:"number",bigint:"bigint",object:"date"},up=C("$ZodCheckLessThan",(e,t)=>{at.init(e,t);let a=TE[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:a,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cp=C("$ZodCheckGreaterThan",(e,t)=>{at.init(e,t);let a=TE[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:a,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Dx=C("$ZodCheckMultipleOf",(e,t)=>{at.init(e,t),e._zod.onattach.push(a=>{var n;(n=a._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%t.value===BigInt(0):Gy(a.value,t.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),Rx=C("$ZodCheckNumberFormat",(e,t)=>{at.init(e,t),t.format=t.format||"float64";let a=t.format?.includes("int"),n=a?"int":"number",[r,o]=Yy[t.format];e._zod.onattach.push(i=>{let l=i._zod.bag;l.format=t.format,l.minimum=r,l.maximum=o,a&&(l.pattern=Lx)}),e._zod.check=i=>{let l=i.value;if(a){if(!Number.isInteger(l)){i.issues.push({expected:n,format:t.format,code:"invalid_type",input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?i.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):i.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort});return}}l<r&&i.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>o&&i.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),$x=C("$ZodCheckBigIntFormat",(e,t)=>{at.init(e,t);let[a,n]=Qy[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=a,o.maximum=n}),e._zod.check=r=>{let o=r.value;o<a&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),o>n&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inst:e})}}),Px=C("$ZodCheckMaxSize",(e,t)=>{var a;at.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!eo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:$u(r),code:"too_big",maximum:t.maximum,input:r,inst:e,continue:!t.abort})}}),Nx=C("$ZodCheckMinSize",(e,t)=>{var a;at.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!eo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:$u(r),code:"too_small",minimum:t.minimum,input:r,inst:e,continue:!t.abort})}}),Ux=C("$ZodCheckSizeEquals",(e,t)=>{var a;at.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!eo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=n=>{let r=n.value,o=r.size;if(o===t.size)return;let i=o>t.size;n.issues.push({origin:$u(r),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),jx=C("$ZodCheckMaxLength",(e,t)=>{var a;at.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!eo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Pu(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Bx=C("$ZodCheckMinLength",(e,t)=>{var a;at.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!eo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Pu(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fx=C("$ZodCheckLengthEquals",(e,t)=>{var a;at.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!eo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{let r=n.value,o=r.length;if(o===t.length)return;let i=Pu(r),l=o>t.length;n.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Nl=C("$ZodCheckStringFormat",(e,t)=>{var a,n;at.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),qx=C("$ZodCheckRegex",(e,t)=>{Nl.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Zx=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ox),Nl.init(e,t)}),Hx=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zx),Nl.init(e,t)}),Vx=C("$ZodCheckIncludes",(e,t)=>{at.init(e,t);let a=an(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=n,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Gx=C("$ZodCheckStartsWith",(e,t)=>{at.init(e,t);let a=new RegExp(`^${an(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Jx=C("$ZodCheckEndsWith",(e,t)=>{at.init(e,t);let a=new RegExp(`.*${an(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function LE(e,t,a){e.issues.length&&t.issues.push(...la(a,e.issues))}var Xx=C("$ZodCheckProperty",(e,t)=>{at.init(e,t),e._zod.check=a=>{let n=t.schema._zod.run({value:a.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(r=>LE(r,a,t.property));LE(n,a,t.property)}}),Wx=C("$ZodCheckMimeType",(e,t)=>{at.init(e,t);let a=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{a.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e})}}),Kx=C("$ZodCheckOverwrite",(e,t)=>{at.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});var Bu=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}let n=t.split(`
|
|
43
|
+
`))}function s(f,m,x,b){let v=x.enter("tableCell"),y=x.enter("phrasing"),g=x.containerPhrasing(f,{...b,before:o,after:o});return y(),v(),g}function u(f,m){return U1(f,{align:m,alignDelimiters:n,padding:a,stringLength:r})}function c(f,m,x){let b=f.children,v=-1,y=[],g=m.enter("table");for(;++v<b.length;)y[v]=d(b[v],m,x);return g(),y}function d(f,m,x){let b=f.children,v=-1,y=[],g=m.enter("tableRow");for(;++v<b.length;)y[v]=s(b[v],f,m,x);return g(),y}function p(f,m,x){let b=Ou.inlineCode(f,m,x);return x.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function zy(){return{exit:{taskListCheckValueChecked:uA,taskListCheckValueUnchecked:uA,paragraph:r6}}}function Dy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:n6}}}function uA(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function r6(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let a=this.stack[this.stack.length-1];a.type;let n=a.children[0];if(n&&n.type==="text"){let r=t.children,o=-1,i;for(;++o<r.length;){let l=r[o];if(l.type==="paragraph"){i=l;break}}i===a&&(n.value=n.value.slice(1),n.value.length===0?a.children.shift():a.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,a.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function n6(e,t,a,n){let r=e.children[0],o=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=a.createTracker(n);o&&l.move(i);let s=Ou.listItem(e,t,a,{...n,...l.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(c){return c+i}}function Ry(){return[py(),hy(),vy(),My(),zy()]}function $y(e){return{extensions:[my(),gy(e),yy(),Oy(e),Dy()]}}var o6={tokenize:c6,partial:!0},cA={tokenize:d6,partial:!0},dA={tokenize:f6,partial:!0},fA={tokenize:p6,partial:!0},i6={tokenize:m6,partial:!0},pA={name:"wwwAutolink",tokenize:s6,previous:hA},mA={name:"protocolAutolink",tokenize:u6,previous:gA},nn={name:"emailAutolink",tokenize:l6,previous:vA},Ir={};function Ny(){return{text:Ir}}var pi=48;for(;pi<123;)Ir[pi]=nn,pi++,pi===58?pi=65:pi===91&&(pi=97);Ir[43]=nn;Ir[45]=nn;Ir[46]=nn;Ir[95]=nn;Ir[72]=[nn,mA];Ir[104]=[nn,mA];Ir[87]=[nn,pA];Ir[119]=[nn,pA];function l6(e,t,a){let n=this,r,o;return i;function i(d){return!Py(d)||!vA.call(n,n.previous)||Uy(n.events)?a(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return Py(d)?(e.consume(d),l):d===64?(e.consume(d),s):a(d)}function s(d){return d===46?e.check(i6,c,u)(d):d===45||d===95||ct(d)?(o=!0,e.consume(d),s):c(d)}function u(d){return e.consume(d),r=!0,s}function c(d){return o&&r&&kt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):a(d)}}function s6(e,t,a){let n=this;return r;function r(i){return i!==87&&i!==119||!hA.call(n,n.previous)||Uy(n.events)?a(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(o6,e.attempt(cA,e.attempt(dA,o),a),a)(i))}function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function u6(e,t,a){let n=this,r="",o=!1;return i;function i(d){return(d===72||d===104)&&gA.call(n,n.previous)&&!Uy(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),l):a(d)}function l(d){if(kt(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),l;if(d===58){let p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),s}return a(d)}function s(d){return d===47?(e.consume(d),o?u:(o=!0,s)):a(d)}function u(d){return d===null||oi(d)||ge(d)||Sr(d)||ii(d)?a(d):e.attempt(cA,e.attempt(dA,c),a)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function c6(e,t,a){let n=0;return r;function r(i){return(i===87||i===119)&&n<3?(n++,e.consume(i),r):i===46&&n===3?(e.consume(i),o):a(i)}function o(i){return i===null?a(i):t(i)}}function d6(e,t,a){let n,r,o;return i;function i(u){return u===46||u===95?e.check(fA,s,l)(u):u===null||ge(u)||Sr(u)||u!==45&&ii(u)?s(u):(o=!0,e.consume(u),i)}function l(u){return u===95?n=!0:(r=n,n=void 0),e.consume(u),i}function s(u){return r||n||!o?a(u):t(u)}}function f6(e,t){let a=0,n=0;return r;function r(i){return i===40?(a++,e.consume(i),r):i===41&&n<a?o(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(fA,t,o)(i):i===null||ge(i)||Sr(i)?t(i):(e.consume(i),r)}function o(i){return i===41&&n++,e.consume(i),r}}function p6(e,t,a){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),o):l===93?(e.consume(l),r):l===60||l===null||ge(l)||Sr(l)?t(l):a(l)}function r(l){return l===null||l===40||l===91||ge(l)||Sr(l)?t(l):n(l)}function o(l){return kt(l)?i(l):a(l)}function i(l){return l===59?(e.consume(l),n):kt(l)?(e.consume(l),i):a(l)}}function m6(e,t,a){return n;function n(o){return e.consume(o),r}function r(o){return ct(o)?a(o):t(o)}}function hA(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ge(e)}function gA(e){return!kt(e)}function vA(e){return!(e===47||Py(e))}function Py(e){return e===43||e===45||e===46||e===95||ct(e)}function Uy(e){let t=e.length,a=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){a=!0;break}if(n._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}var h6={tokenize:w6,partial:!0};function jy(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:x6,continuation:{tokenize:b6},exit:S6}},text:{91:{name:"gfmFootnoteCall",tokenize:y6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:g6,resolveTo:v6}}}}function g6(e,t,a){let n=this,r=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i;for(;r--;){let s=n.events[r][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!i||!i._balanced)return a(s);let u=qt(n.sliceSerialize({start:i.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?a(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function v6(e,t){let a=e.length,n;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){n=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[a+1],e[a+2],["enter",r,t],e[a+3],e[a+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(a,e.length-a+1,...s),e}function y6(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,i;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?a(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!i||d===null||d===91||ge(d))return a(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return r.includes(qt(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):a(d)}return ge(d)||(i=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function x6(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,i=0,l;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):a(m)}function c(m){if(i>999||m===93&&!l||m===null||m===91||ge(m))return a(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=qt(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ge(m)||(l=!0),i++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),i++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),r.includes(o)||r.push(o),K(e,f,"gfmFootnoteDefinitionWhitespace")):a(m)}function f(m){return t(m)}}function b6(e,t,a){return e.check(wr,t,e.attempt(h6,t,a))}function S6(e){e.exit("gfmFootnoteDefinition")}function w6(e,t,a){let n=this;return K(e,r,"gfmFootnoteDefinitionIndent",5);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(o):a(o)}}function By(e){let a=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:r};return a==null&&(a=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(i,l){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let u=s;for(;u--;)if(i[u][0]==="exit"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[u][1].end.offset-i[u][1].start.offset){i[s][1].type="strikethroughSequence",i[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},i[u][1].start),end:Object.assign({},i[s][1].end)},d={type:"strikethroughText",start:Object.assign({},i[u][1].end),end:Object.assign({},i[s][1].start)},p=[["enter",c,l],["enter",i[u][1],l],["exit",i[u][1],l],["enter",d,l]],f=l.parser.constructs.insideSpan.null;f&&ht(p,p.length,0,Qn(f,i.slice(u+1,s),l)),ht(p,p.length,0,[["exit",d,l],["enter",i[s][1],l],["exit",i[s][1],l],["exit",c,l]]),ht(i,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type="data");return i}function o(i,l,s){let u=this.previous,c=this.events,d=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?s(m):(i.enter("strikethroughSequenceTemporary"),f(m))}function f(m){let x=rn(u);if(m===126)return d>1?s(m):(i.consume(m),d++,f);if(d<2&&!a)return s(m);let b=i.exit("strikethroughSequenceTemporary"),v=rn(m);return b._open=!v||v===2&&!!x,b._close=!x||x===2&&!!v,l(m)}}}var tp=class{constructor(){this.map=[]}add(t,a,n){I6(this,t,a,n)}consume(t){if(this.map.sort(function(o,i){return o[0]-i[0]}),this.map.length===0)return;let a=this.map.length,n=[];for(;a>0;)a-=1,n.push(t.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),t.length=this.map[a][0];n.push(t.slice()),t.length=0;let r=n.pop();for(;r;){for(let o of r)t.push(o);r=n.pop()}this.map.length=0}};function I6(e,t,a,n){let r=0;if(!(a===0&&n.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=a,e.map[r][2].push(...n);return}r+=1}e.map.push([t,a,n])}}function yA(e,t){let a=!1,n=[];for(;t<e.length;){let r=e[t];if(a){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(a=!0);t+=1}return n}function Fy(){return{flow:{null:{name:"table",tokenize:k6,resolveAll:_6}}}}function k6(e,t,a){let n=this,r=0,o=0,i;return l;function l(k){let G=n.events.length-1;for(;G>-1;){let J=n.events[G][1].type;if(J==="lineEnding"||J==="linePrefix")G--;else break}let Z=G>-1?n.events[G][1].type:null,F=Z==="tableHead"||Z==="tableRow"?_:s;return F===_&&n.parser.lazy[n.now().line]?a(k):F(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(i=!0,o+=1),c(k)}function c(k){return k===null?a(k):q(k)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),f):a(k):Q(k)?K(e,c,"whitespace")(k):(o+=1,i&&(i=!1,r+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||ge(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?p:d)}function p(k){return k===92||k===124?(e.consume(k),d):d(k)}function f(k){return n.interrupt=!1,n.parser.lazy[n.now().line]?a(k):(e.enter("tableDelimiterRow"),i=!1,Q(k)?K(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):m(k))}function m(k){return k===45||k===58?b(k):k===124?(i=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),x):L(k)}function x(k){return Q(k)?K(e,b,"whitespace")(k):b(k)}function b(k){return k===58?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),v):k===45?(o+=1,v(k)):k===null||q(k)?S(k):L(k)}function v(k){return k===45?(e.enter("tableDelimiterFiller"),y(k)):L(k)}function y(k){return k===45?(e.consume(k),y):k===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(k))}function g(k){return Q(k)?K(e,S,"whitespace")(k):S(k)}function S(k){return k===124?m(k):k===null||q(k)?!i||r!==o?L(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):L(k)}function L(k){return a(k)}function _(k){return e.enter("tableRow"),A(k)}function A(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):k===null||q(k)?(e.exit("tableRow"),t(k)):Q(k)?K(e,A,"whitespace")(k):(e.enter("data"),z(k))}function z(k){return k===null||k===124||ge(k)?(e.exit("data"),A(k)):(e.consume(k),k===92?$:z)}function $(k){return k===92||k===124?(e.consume(k),z):z(k)}}function _6(e,t){let a=-1,n=!0,r=0,o=[0,0,0,0],i=[0,0,0,0],l=!1,s=0,u,c,d,p=new tp;for(;++a<e.length;){let f=e[a],m=f[1];f[0]==="enter"?m.type==="tableHead"?(l=!1,s!==0&&(xA(p,t,s,u,c),c=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,d=void 0,o=[0,0,0,0],i=[0,a+1,0,0],l&&(l=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",c,t]])),r=m.type==="tableDelimiterRow"?2:c?3:1):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,i[2]===0&&(o[1]!==0&&(i[0]=i[1],d=ap(p,t,o,r,void 0,d),o=[0,0,0,0]),i[2]=a)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(i[0]=i[1],d=ap(p,t,o,r,void 0,d)),o=i,i=[o[1],a,0,0])):m.type==="tableHead"?(l=!0,s=a):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=a,o[1]!==0?(i[0]=i[1],d=ap(p,t,o,r,a,d)):i[1]!==0&&(d=ap(p,t,i,r,a,d)),r=0):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(i[3]=a)}for(s!==0&&xA(p,t,s,u,c),p.consume(t.events),a=-1;++a<t.events.length;){let f=t.events[a];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=yA(t.events,a))}return e}function ap(e,t,a,n,r,o){let i=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";a[0]!==0&&(o.end=Object.assign({},Pl(t.events,a[0])),e.add(a[0],0,[["exit",o,t]]));let s=Pl(t.events,a[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(a[1],0,[["enter",o,t]]),a[2]!==0){let u=Pl(t.events,a[2]),c=Pl(t.events,a[3]),d={type:l,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(a[2],0,[["enter",d,t]]),n!==2){let p=t.events[a[2]],f=t.events[a[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",a[3]>a[2]+1){let m=a[2]+1,x=a[3]-a[2]-1;e.add(m,x,[])}}e.add(a[3]+1,0,[["exit",d,t]])}return r!==void 0&&(o.end=Object.assign({},Pl(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function xA(e,t,a,n,r){let o=[],i=Pl(t.events,a);r&&(r.end=Object.assign({},i),o.push(["exit",r,t])),n.end=Object.assign({},i),o.push(["exit",n,t]),e.add(a+1,0,o)}function Pl(e,t){let a=e[t],n=a[0]==="enter"?"start":"end";return a[1][n]}var C6={name:"tasklistCheck",tokenize:L6};function qy(){return{text:{91:C6}}}function L6(e,t,a){let n=this;return r;function r(s){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?a(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return ge(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),i):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),i):a(s)}function i(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):a(s)}function l(s){return q(s)?t(s):Q(s)?e.check({tokenize:T6},t,a)(s):a(s)}}function T6(e,t,a){return K(e,n,"whitespace");function n(r){return r===null?a(r):t(r)}}function bA(e){return Af([Ny(),jy(),By(e),Fy(),qy()])}var A6={};function rp(e){let t=this,a=e||A6,n=t.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(bA(a)),o.push(Ry()),i.push($y(a))}var Ja=be(Bt(),1);var JA="vercel.ai.error",E6=Symbol.for(JA),SA,wA,Ce=class XA extends(wA=Error,SA=E6,wA){constructor({name:t,message:a,cause:n}){super(a),this[SA]=!0,this.name=t,this.cause=n}static isInstance(t){return XA.hasMarker(t,JA)}static hasMarker(t,a){let n=Symbol.for(a);return t!=null&&typeof t=="object"&&n in t&&typeof t[n]=="boolean"&&t[n]===!0}},KA="AI_APICallError",YA=`vercel.ai.error.${KA}`,M6=Symbol.for(YA),IA,kA,aae=class extends(kA=Ce,IA=M6,kA){constructor({message:e,url:t,requestBodyValues:a,statusCode:n,responseHeaders:r,responseBody:o,cause:i,isRetryable:l=n!=null&&(n===408||n===409||n===429||n>=500),data:s}){super({name:KA,message:e,cause:i}),this[IA]=!0,this.url=t,this.requestBodyValues=a,this.statusCode=n,this.responseHeaders=r,this.responseBody=o,this.isRetryable=l,this.data=s}static isInstance(e){return Ce.hasMarker(e,YA)}},QA="AI_EmptyResponseBodyError",eE=`vercel.ai.error.${QA}`,O6=Symbol.for(eE),_A,CA,rae=class extends(CA=Ce,_A=O6,CA){constructor({message:e="Empty response body"}={}){super({name:QA,message:e}),this[_A]=!0}static isInstance(e){return Ce.hasMarker(e,eE)}};function tE(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var aE="AI_InvalidArgumentError",rE=`vercel.ai.error.${aE}`,z6=Symbol.for(rE),LA,TA,nE=class extends(TA=Ce,LA=z6,TA){constructor({message:e,cause:t,argument:a}){super({name:aE,message:e,cause:t}),this[LA]=!0,this.argument=a}static isInstance(e){return Ce.hasMarker(e,rE)}},oE="AI_InvalidPromptError",iE=`vercel.ai.error.${oE}`,D6=Symbol.for(iE),AA,EA,nae=class extends(EA=Ce,AA=D6,EA){constructor({prompt:e,message:t,cause:a}){super({name:oE,message:`Invalid prompt: ${t}`,cause:a}),this[AA]=!0,this.prompt=e}static isInstance(e){return Ce.hasMarker(e,iE)}},lE="AI_InvalidResponseDataError",sE=`vercel.ai.error.${lE}`,R6=Symbol.for(sE),MA,OA,oae=class extends(OA=Ce,MA=R6,OA){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:lE,message:t}),this[MA]=!0,this.data=e}static isInstance(e){return Ce.hasMarker(e,sE)}},uE="AI_JSONParseError",cE=`vercel.ai.error.${uE}`,$6=Symbol.for(cE),zA,DA,Hy=class extends(DA=Ce,zA=$6,DA){constructor({text:e,cause:t}){super({name:uE,message:`JSON parsing failed: Text: ${e}.
|
|
44
|
+
Error message: ${tE(t)}`,cause:t}),this[zA]=!0,this.text=e}static isInstance(e){return Ce.hasMarker(e,cE)}},dE="AI_LoadAPIKeyError",fE=`vercel.ai.error.${dE}`,P6=Symbol.for(fE),RA,$A,iae=class extends($A=Ce,RA=P6,$A){constructor({message:e}){super({name:dE,message:e}),this[RA]=!0}static isInstance(e){return Ce.hasMarker(e,fE)}},pE="AI_LoadSettingError",mE=`vercel.ai.error.${pE}`,N6=Symbol.for(mE),PA,NA,lae=class extends(NA=Ce,PA=N6,NA){constructor({message:e}){super({name:pE,message:e}),this[PA]=!0}static isInstance(e){return Ce.hasMarker(e,mE)}},hE="AI_NoContentGeneratedError",gE=`vercel.ai.error.${hE}`,U6=Symbol.for(gE),UA,jA,sae=class extends(jA=Ce,UA=U6,jA){constructor({message:e="No content generated."}={}){super({name:hE,message:e}),this[UA]=!0}static isInstance(e){return Ce.hasMarker(e,gE)}},vE="AI_NoSuchModelError",yE=`vercel.ai.error.${vE}`,j6=Symbol.for(yE),BA,FA,uae=class extends(FA=Ce,BA=j6,FA){constructor({errorName:e=vE,modelId:t,modelType:a,message:n=`No such ${a}: ${t}`}){super({name:e,message:n}),this[BA]=!0,this.modelId=t,this.modelType=a}static isInstance(e){return Ce.hasMarker(e,yE)}},xE="AI_TooManyEmbeddingValuesForCallError",bE=`vercel.ai.error.${xE}`,B6=Symbol.for(bE),qA,ZA,cae=class extends(ZA=Ce,qA=B6,ZA){constructor(e){super({name:xE,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[qA]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Ce.hasMarker(e,bE)}},SE="AI_TypeValidationError",wE=`vercel.ai.error.${SE}`,F6=Symbol.for(wE),HA,VA,kr=class Zy extends(VA=Ce,HA=F6,VA){constructor({value:t,cause:a}){super({name:SE,message:`Type validation failed: Value: ${JSON.stringify(t)}.
|
|
45
|
+
Error message: ${tE(a)}`,cause:a}),this[HA]=!0,this.value=t}static isInstance(t){return Ce.hasMarker(t,wE)}static wrap({value:t,cause:a}){return Zy.isInstance(a)&&a.value===t?a:new Zy({value:t,cause:a})}},IE="AI_UnsupportedFunctionalityError",kE=`vercel.ai.error.${IE}`,q6=Symbol.for(kE),GA,WA,dae=class extends(WA=Ce,GA=q6,WA){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:IE,message:t}),this[GA]=!0,this.functionality=e}static isInstance(e){return Ce.hasMarker(e,kE)}};var h={};cr(h,{$brand:()=>Gy,$input:()=>lS,$output:()=>iS,NEVER:()=>Vy,TimePrecision:()=>cS,ZodAny:()=>qM,ZodArray:()=>GM,ZodBase64:()=>yw,ZodBase64URL:()=>xw,ZodBigInt:()=>vc,ZodBigIntFormat:()=>ww,ZodBoolean:()=>gc,ZodCIDRv4:()=>gw,ZodCIDRv6:()=>vw,ZodCUID:()=>uw,ZodCUID2:()=>cw,ZodCatch:()=>fO,ZodCustom:()=>rm,ZodCustomStringFormat:()=>$M,ZodDate:()=>em,ZodDefault:()=>iO,ZodDiscriminatedUnion:()=>WM,ZodE164:()=>bw,ZodEmail:()=>ow,ZodEmoji:()=>lw,ZodEnum:()=>pc,ZodError:()=>TB,ZodFile:()=>nO,ZodGUID:()=>Wp,ZodIPv4:()=>mw,ZodIPv6:()=>hw,ZodISODate:()=>Zp,ZodISODateTime:()=>qp,ZodISODuration:()=>Vp,ZodISOTime:()=>Hp,ZodIntersection:()=>JM,ZodIssueCode:()=>OF,ZodJWT:()=>Sw,ZodKSUID:()=>pw,ZodLazy:()=>yO,ZodLiteral:()=>aO,ZodMap:()=>QM,ZodNaN:()=>mO,ZodNanoID:()=>sw,ZodNever:()=>HM,ZodNonOptional:()=>Aw,ZodNull:()=>BM,ZodNullable:()=>oO,ZodNumber:()=>hc,ZodNumberFormat:()=>Jl,ZodObject:()=>tm,ZodOptional:()=>Tw,ZodPipe:()=>Ew,ZodPrefault:()=>sO,ZodPromise:()=>bO,ZodReadonly:()=>hO,ZodRealError:()=>Wl,ZodRecord:()=>_w,ZodSet:()=>eO,ZodString:()=>mc,ZodStringFormat:()=>Ve,ZodSuccess:()=>dO,ZodSymbol:()=>UM,ZodTemplateLiteral:()=>vO,ZodTransform:()=>Cw,ZodTuple:()=>KM,ZodType:()=>he,ZodULID:()=>dw,ZodURL:()=>iw,ZodUUID:()=>dn,ZodUndefined:()=>jM,ZodUnion:()=>kw,ZodUnknown:()=>ZM,ZodVoid:()=>VM,ZodXID:()=>fw,_ZodString:()=>nw,_default:()=>lO,any:()=>sF,array:()=>Iw,base64:()=>WB,base64url:()=>JB,bigint:()=>rF,boolean:()=>NM,catch:()=>pO,check:()=>SO,cidrv4:()=>VB,cidrv6:()=>GB,clone:()=>_a,coerce:()=>Mw,config:()=>St,core:()=>cn,cuid:()=>UB,cuid2:()=>jB,custom:()=>LF,date:()=>cF,discriminatedUnion:()=>hF,e164:()=>XB,email:()=>EB,emoji:()=>PB,endsWith:()=>rc,enum:()=>tO,file:()=>SF,flattenError:()=>Fu,float32:()=>QB,float64:()=>eF,formatError:()=>qu,function:()=>WS,getErrorMap:()=>DF,globalRegistry:()=>Cr,gt:()=>sn,gte:()=>ca,guid:()=>MB,includes:()=>tc,instanceof:()=>TF,int:()=>rw,int32:()=>tF,int64:()=>nF,intersection:()=>XM,ipv4:()=>ZB,ipv6:()=>HB,iso:()=>Gp,json:()=>EF,jwt:()=>KB,keyof:()=>dF,ksuid:()=>qB,lazy:()=>xO,length:()=>Gl,literal:()=>rO,locales:()=>Ju,looseObject:()=>mF,lowercase:()=>Qu,lt:()=>ln,lte:()=>Ga,map:()=>yF,maxLength:()=>Vl,maxSize:()=>Hl,mime:()=>nc,minLength:()=>no,minSize:()=>Si,multipleOf:()=>bi,nan:()=>kF,nanoid:()=>NB,nativeEnum:()=>bF,negative:()=>NS,never:()=>Qp,nonnegative:()=>jS,nonoptional:()=>cO,nonpositive:()=>US,normalize:()=>oc,null:()=>FM,nullable:()=>Kp,nullish:()=>wF,number:()=>PM,object:()=>fF,optional:()=>Xp,overwrite:()=>un,parse:()=>QS,parseAsync:()=>ew,partialRecord:()=>vF,pipe:()=>Yp,positive:()=>PS,prefault:()=>uO,preprocess:()=>MF,prettifyError:()=>ix,promise:()=>CF,property:()=>BS,readonly:()=>gO,record:()=>YM,refine:()=>wO,regex:()=>Yu,regexes:()=>vi,registry:()=>bp,safeParse:()=>tw,safeParseAsync:()=>fc,set:()=>xF,setErrorMap:()=>zF,size:()=>Ku,startsWith:()=>ac,strictObject:()=>pF,string:()=>aw,stringFormat:()=>YB,stringbool:()=>AF,success:()=>IF,superRefine:()=>IO,symbol:()=>iF,templateLiteral:()=>_F,toJSONSchema:()=>dc,toLowerCase:()=>lc,toUpperCase:()=>sc,transform:()=>Lw,treeifyError:()=>ox,trim:()=>ic,tuple:()=>gF,uint32:()=>aF,uint64:()=>oF,ulid:()=>BB,undefined:()=>lF,union:()=>am,unknown:()=>Jp,uppercase:()=>ec,url:()=>$B,uuid:()=>OB,uuidv4:()=>zB,uuidv6:()=>DB,uuidv7:()=>RB,void:()=>uF,xid:()=>FB});var cn={};cr(cn,{$ZodAny:()=>Db,$ZodArray:()=>Vu,$ZodAsyncError:()=>_r,$ZodBase64:()=>kb,$ZodBase64URL:()=>_b,$ZodBigInt:()=>vp,$ZodBigIntFormat:()=>Eb,$ZodBoolean:()=>Hu,$ZodCIDRv4:()=>Sb,$ZodCIDRv6:()=>wb,$ZodCUID:()=>cb,$ZodCUID2:()=>db,$ZodCatch:()=>Qb,$ZodCheck:()=>nt,$ZodCheckBigIntFormat:()=>jx,$ZodCheckEndsWith:()=>Yx,$ZodCheckGreaterThan:()=>pp,$ZodCheckIncludes:()=>Xx,$ZodCheckLengthEquals:()=>Vx,$ZodCheckLessThan:()=>fp,$ZodCheckLowerCase:()=>Wx,$ZodCheckMaxLength:()=>Zx,$ZodCheckMaxSize:()=>Bx,$ZodCheckMimeType:()=>eb,$ZodCheckMinLength:()=>Hx,$ZodCheckMinSize:()=>Fx,$ZodCheckMultipleOf:()=>Nx,$ZodCheckNumberFormat:()=>Ux,$ZodCheckOverwrite:()=>tb,$ZodCheckProperty:()=>Qx,$ZodCheckRegex:()=>Gx,$ZodCheckSizeEquals:()=>qx,$ZodCheckStartsWith:()=>Kx,$ZodCheckStringFormat:()=>Bl,$ZodCheckUpperCase:()=>Jx,$ZodCustom:()=>oS,$ZodCustomStringFormat:()=>Tb,$ZodDate:()=>Pb,$ZodDefault:()=>Jb,$ZodDiscriminatedUnion:()=>Ub,$ZodE164:()=>Cb,$ZodEmail:()=>ib,$ZodEmoji:()=>sb,$ZodEnum:()=>Zb,$ZodError:()=>Bu,$ZodFile:()=>Vb,$ZodFunction:()=>Fp,$ZodGUID:()=>nb,$ZodIPv4:()=>xb,$ZodIPv6:()=>bb,$ZodISODate:()=>gb,$ZodISODateTime:()=>hb,$ZodISODuration:()=>yb,$ZodISOTime:()=>vb,$ZodIntersection:()=>jb,$ZodJWT:()=>Lb,$ZodKSUID:()=>mb,$ZodLazy:()=>nS,$ZodLiteral:()=>Hb,$ZodMap:()=>Fb,$ZodNaN:()=>eS,$ZodNanoID:()=>ub,$ZodNever:()=>Rb,$ZodNonOptional:()=>Kb,$ZodNull:()=>zb,$ZodNullable:()=>Wb,$ZodNumber:()=>gp,$ZodNumberFormat:()=>Ab,$ZodObject:()=>Nb,$ZodOptional:()=>Gb,$ZodPipe:()=>Wu,$ZodPrefault:()=>Xb,$ZodPromise:()=>rS,$ZodReadonly:()=>tS,$ZodRealError:()=>jl,$ZodRecord:()=>Bb,$ZodRegistry:()=>ql,$ZodSet:()=>qb,$ZodString:()=>yi,$ZodStringFormat:()=>Ze,$ZodSuccess:()=>Yb,$ZodSymbol:()=>Mb,$ZodTemplateLiteral:()=>aS,$ZodTransform:()=>Gu,$ZodTuple:()=>xi,$ZodType:()=>oe,$ZodULID:()=>fb,$ZodURL:()=>lb,$ZodUUID:()=>ob,$ZodUndefined:()=>Ob,$ZodUnion:()=>yp,$ZodUnknown:()=>Fl,$ZodVoid:()=>$b,$ZodXID:()=>pb,$brand:()=>Gy,$constructor:()=>C,$input:()=>lS,$output:()=>iS,Doc:()=>Zu,JSONSchema:()=>zM,JSONSchemaGenerator:()=>cc,NEVER:()=>Vy,TimePrecision:()=>cS,_any:()=>MS,_array:()=>uc,_base64:()=>Np,_base64url:()=>Up,_bigint:()=>kS,_boolean:()=>wS,_catch:()=>SB,_cidrv4:()=>$p,_cidrv6:()=>Pp,_coercedBigint:()=>_S,_coercedBoolean:()=>IS,_coercedDate:()=>RS,_coercedNumber:()=>gS,_coercedString:()=>uS,_cuid:()=>Ap,_cuid2:()=>Ep,_custom:()=>ZS,_date:()=>DS,_default:()=>yB,_discriminatedUnion:()=>lB,_e164:()=>jp,_email:()=>Sp,_emoji:()=>Lp,_endsWith:()=>rc,_enum:()=>fB,_file:()=>qS,_float32:()=>yS,_float64:()=>xS,_gt:()=>sn,_gte:()=>ca,_guid:()=>Xu,_includes:()=>tc,_int:()=>vS,_int32:()=>bS,_int64:()=>CS,_intersection:()=>sB,_ipv4:()=>Dp,_ipv6:()=>Rp,_isoDate:()=>fS,_isoDateTime:()=>dS,_isoDuration:()=>mS,_isoTime:()=>pS,_jwt:()=>Bp,_ksuid:()=>zp,_lazy:()=>_B,_length:()=>Gl,_literal:()=>mB,_lowercase:()=>Qu,_lt:()=>ln,_lte:()=>Ga,_map:()=>cB,_max:()=>Ga,_maxLength:()=>Vl,_maxSize:()=>Hl,_mime:()=>nc,_min:()=>ca,_minLength:()=>no,_minSize:()=>Si,_multipleOf:()=>bi,_nan:()=>$S,_nanoid:()=>Tp,_nativeEnum:()=>pB,_negative:()=>NS,_never:()=>OS,_nonnegative:()=>jS,_nonoptional:()=>xB,_nonpositive:()=>US,_normalize:()=>oc,_null:()=>ES,_nullable:()=>vB,_number:()=>hS,_optional:()=>gB,_overwrite:()=>un,_parse:()=>op,_parseAsync:()=>lp,_pipe:()=>wB,_positive:()=>PS,_promise:()=>CB,_property:()=>BS,_readonly:()=>IB,_record:()=>uB,_refine:()=>HS,_regex:()=>Yu,_safeParse:()=>up,_safeParseAsync:()=>cp,_set:()=>dB,_size:()=>Ku,_startsWith:()=>ac,_string:()=>sS,_stringFormat:()=>GS,_stringbool:()=>VS,_success:()=>bB,_symbol:()=>TS,_templateLiteral:()=>kB,_toLowerCase:()=>lc,_toUpperCase:()=>sc,_transform:()=>hB,_trim:()=>ic,_tuple:()=>FS,_uint32:()=>SS,_uint64:()=>LS,_ulid:()=>Mp,_undefined:()=>AS,_union:()=>iB,_unknown:()=>Zl,_uppercase:()=>ec,_url:()=>Cp,_uuid:()=>wp,_uuidv4:()=>Ip,_uuidv6:()=>kp,_uuidv7:()=>_p,_void:()=>zS,_xid:()=>Op,clone:()=>_a,config:()=>St,flattenError:()=>Fu,formatError:()=>qu,function:()=>WS,globalConfig:()=>zu,globalRegistry:()=>Cr,isValidBase64:()=>Ib,isValidBase64URL:()=>ZE,isValidJWT:()=>HE,locales:()=>Ju,parse:()=>ip,parseAsync:()=>sp,prettifyError:()=>ix,regexes:()=>vi,registry:()=>bp,safeParse:()=>lx,safeParseAsync:()=>sx,toDotPath:()=>CE,toJSONSchema:()=>dc,treeifyError:()=>ox,util:()=>U,version:()=>ab});var Vy=Object.freeze({status:"aborted"});function C(e,t,a){function n(l,s){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),t(l,s);for(let c in i.prototype)c in l||Object.defineProperty(l,c,{value:i.prototype[c].bind(l)});l._zod.constr=i,l._zod.def=s}let r=a?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function i(l){var s;let u=a?.Parent?new o:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>a?.Parent&&l instanceof a.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var Gy=Symbol("zod_brand"),_r=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},zu={};function St(e){return e&&Object.assign(zu,e),zu}var U={};cr(U,{BIGINT_FORMAT_RANGES:()=>rx,Class:()=>Jy,NUMBER_FORMAT_RANGES:()=>ax,aborted:()=>hi,allowsEval:()=>Qy,assert:()=>W6,assertEqual:()=>Z6,assertIs:()=>V6,assertNever:()=>G6,assertNotEqual:()=>H6,assignProp:()=>Yy,cached:()=>$u,captureStackTrace:()=>np,cleanEnum:()=>lj,cleanRegex:()=>Pu,clone:()=>_a,createTransparentProxy:()=>ej,defineLazy:()=>Oe,esc:()=>mi,escapeRegex:()=>on,extend:()=>rj,finalizeIssue:()=>Ca,floatSafeRemainder:()=>Ky,getElementAtPath:()=>J6,getEnumValues:()=>Ru,getLengthableOrigin:()=>ju,getParsedType:()=>Q6,getSizableOrigin:()=>Uu,isObject:()=>Nl,isPlainObject:()=>Ul,issue:()=>nx,joinValues:()=>M,jsonStringifyReplacer:()=>Xy,merge:()=>nj,normalizeParams:()=>P,nullish:()=>ro,numKeys:()=>Y6,omit:()=>aj,optionalKeys:()=>tx,partial:()=>oj,pick:()=>tj,prefixIssues:()=>ua,primitiveTypes:()=>ex,promiseAllObject:()=>X6,propertyKeyTypes:()=>Nu,randomString:()=>K6,required:()=>ij,stringifyPrimitive:()=>N,unwrapMessage:()=>Du});function Z6(e){return e}function H6(e){return e}function V6(e){}function G6(e){throw new Error}function W6(e){}function Ru(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function M(e,t="|"){return e.map(a=>N(a)).join(t)}function Xy(e,t){return typeof t=="bigint"?t.toString():t}function $u(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw new Error("cached value already set")}}}function ro(e){return e==null}function Pu(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function Ky(e,t){let a=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=a>n?a:n,o=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return o%i/10**r}function Oe(e,t,a){Object.defineProperty(e,t,{get(){{let r=a();return e[t]=r,r}throw new Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Yy(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function J6(e,t){return t?t.reduce((a,n)=>a?.[n],e):e}function X6(e){let t=Object.keys(e),a=t.map(n=>e[n]);return Promise.all(a).then(n=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=n[o];return r})}function K6(e=10){let t="abcdefghijklmnopqrstuvwxyz",a="";for(let n=0;n<e;n++)a+=t[Math.floor(Math.random()*t.length)];return a}function mi(e){return JSON.stringify(e)}var np=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Nl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Qy=$u(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ul(e){if(Nl(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let a=t.prototype;return!(Nl(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function Y6(e){let t=0;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t++;return t}var Q6=e=>{let 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}`)}},Nu=new Set(["string","number","symbol"]),ex=new Set(["string","number","bigint","boolean","symbol","undefined"]);function on(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _a(e,t,a){let n=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(n._zod.parent=e),n}function P(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(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 ej(e){let t;return new Proxy({},{get(a,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(a,n,r,o){return t??(t=e()),Reflect.set(t,n,r,o)},has(a,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(a,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(a){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(a,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(a,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}function N(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function tx(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ax={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]},rx={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tj(e,t){let a={},n=e._zod.def;for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(a[r]=n.shape[r])}return _a(e,{...e._zod.def,shape:a,checks:[]})}function aj(e,t){let a={...e._zod.def.shape},n=e._zod.def;for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete a[r]}return _a(e,{...e._zod.def,shape:a,checks:[]})}function rj(e,t){if(!Ul(t))throw new Error("Invalid input to extend: expected a plain object");let a={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return Yy(this,"shape",n),n},checks:[]};return _a(e,a)}function nj(e,t){return _a(e,{...e._zod.def,get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return Yy(this,"shape",a),a},catchall:t._zod.def.catchall,checks:[]})}function oj(e,t,a){let n=t._zod.def.shape,r={...n};if(a)for(let o in a){if(!(o in n))throw new Error(`Unrecognized key: "${o}"`);a[o]&&(r[o]=e?new e({type:"optional",innerType:n[o]}):n[o])}else for(let o in n)r[o]=e?new e({type:"optional",innerType:n[o]}):n[o];return _a(t,{...t._zod.def,shape:r,checks:[]})}function ij(e,t,a){let n=t._zod.def.shape,r={...n};if(a)for(let o in a){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);a[o]&&(r[o]=new e({type:"nonoptional",innerType:n[o]}))}else for(let o in n)r[o]=new e({type:"nonoptional",innerType:n[o]});return _a(t,{...t._zod.def,shape:r,checks:[]})}function hi(e,t=0){for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function ua(e,t){return t.map(a=>{var n;return(n=a).path??(n.path=[]),a.path.unshift(e),a})}function Du(e){return typeof e=="string"?e:e?.message}function Ca(e,t,a){let n={...e,path:e.path??[]};if(!e.message){let r=Du(e.inst?._zod.def?.error?.(e))??Du(t?.error?.(e))??Du(a.customError?.(e))??Du(a.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Uu(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ju(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function nx(...e){let[t,a,n]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:n}:{...t}}function lj(e){return Object.entries(e).filter(([t,a])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var Jy=class{constructor(...t){}};var _E=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Xy,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Bu=C("$ZodError",_E),jl=C("$ZodError",_E,{Parent:Error});function Fu(e,t=a=>a.message){let a={},n=[];for(let r of e.issues)r.path.length>0?(a[r.path[0]]=a[r.path[0]]||[],a[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:a}}function qu(e,t){let a=t||function(o){return o.message},n={_errors:[]},r=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(a(i));else{let l=n,s=0;for(;s<i.path.length;){let u=i.path[s];s===i.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(a(i))):l[u]=l[u]||{_errors:[]},l=l[u],s++}}};return r(e),n}function ox(e,t){let a=t||function(o){return o.message},n={errors:[]},r=(o,i=[])=>{var l,s;for(let u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>r({issues:c},u.path));else if(u.code==="invalid_key")r({issues:u.issues},u.path);else if(u.code==="invalid_element")r({issues:u.issues},u.path);else{let c=[...i,...u.path];if(c.length===0){n.errors.push(a(u));continue}let d=n,p=0;for(;p<c.length;){let f=c[p],m=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(l=d.properties)[f]??(l[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(s=d.items)[f]??(s[f]={errors:[]}),d=d.items[f]),m&&d.errors.push(a(u)),p++}}};return r(e),n}function CE(e){let t=[];for(let a of e)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function ix(e){let t=[],a=[...e.issues].sort((n,r)=>n.path.length-r.path.length);for(let n of a)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${CE(n.path)}`);return t.join(`
|
|
46
|
+
`)}var op=e=>(t,a,n,r)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise)throw new _r;if(i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>Ca(s,o,St())));throw np(l,r?.callee),l}return i.value},ip=op(jl),lp=e=>async(t,a,n,r)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>Ca(s,o,St())));throw np(l,r?.callee),l}return i.value},sp=lp(jl),up=e=>(t,a,n)=>{let r=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:a,issues:[]},r);if(o instanceof Promise)throw new _r;return o.issues.length?{success:!1,error:new(e??Bu)(o.issues.map(i=>Ca(i,r,St())))}:{success:!0,data:o.value}},lx=up(jl),cp=e=>async(t,a,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:a,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>Ca(i,r,St())))}:{success:!0,data:o.value}},sx=cp(jl);var vi={};cr(vi,{_emoji:()=>LE,base64:()=>Ix,base64url:()=>dp,bigint:()=>Ex,boolean:()=>zx,browserEmail:()=>gj,cidrv4:()=>Sx,cidrv6:()=>wx,cuid:()=>ux,cuid2:()=>cx,date:()=>Cx,datetime:()=>Tx,domain:()=>vj,duration:()=>hx,e164:()=>_x,email:()=>vx,emoji:()=>yx,extendedDuration:()=>uj,guid:()=>gx,hostname:()=>kx,html5Email:()=>pj,integer:()=>Mx,ipv4:()=>xx,ipv6:()=>bx,ksuid:()=>px,lowercase:()=>$x,nanoid:()=>mx,null:()=>Dx,number:()=>Ox,rfc5322Email:()=>mj,string:()=>Ax,time:()=>Lx,ulid:()=>dx,undefined:()=>Rx,unicodeEmail:()=>hj,uppercase:()=>Px,uuid:()=>gi,uuid4:()=>cj,uuid6:()=>dj,uuid7:()=>fj,xid:()=>fx});var ux=/^[cC][^\s-]{8,}$/,cx=/^[0-9a-z]+$/,dx=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,fx=/^[0-9a-vA-V]{20}$/,px=/^[A-Za-z0-9]{27}$/,mx=/^[a-zA-Z0-9_-]{21}$/,hx=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,uj=/^[-+]?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)?)??$/,gx=/^([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})$/,gi=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)$/,cj=gi(4),dj=gi(6),fj=gi(7),vx=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,pj=/^[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])?)*$/,mj=/^(([^<>()\[\]\\.,;:\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,}))$/,hj=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,gj=/^[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])?)*$/,LE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function yx(){return new RegExp(LE,"u")}var xx=/^(?:(?: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])$/,bx=/^(([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})$/,Sx=/^((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])$/,wx=/^(([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])$/,Ix=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,dp=/^[A-Za-z0-9_-]*$/,kx=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,vj=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,_x=/^\+(?:[0-9]){6,14}[0-9]$/,TE="(?:(?:\\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])))",Cx=new RegExp(`^${TE}$`);function AE(e){let 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 Lx(e){return new RegExp(`^${AE(e)}$`)}function Tx(e){let t=AE({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-]\\d{2}:\\d{2})");let n=`${t}(?:${a.join("|")})`;return new RegExp(`^${TE}T(?:${n})$`)}var Ax=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ex=/^\d+n?$/,Mx=/^\d+$/,Ox=/^-?\d+(?:\.\d+)?/i,zx=/true|false/i,Dx=/null/i;var Rx=/undefined/i;var $x=/^[^A-Z]*$/,Px=/^[^a-z]*$/;var nt=C("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),ME={number:"number",bigint:"bigint",object:"date"},fp=C("$ZodCheckLessThan",(e,t)=>{nt.init(e,t);let a=ME[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:a,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pp=C("$ZodCheckGreaterThan",(e,t)=>{nt.init(e,t);let a=ME[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:a,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nx=C("$ZodCheckMultipleOf",(e,t)=>{nt.init(e,t),e._zod.onattach.push(a=>{var n;(n=a._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%t.value===BigInt(0):Ky(a.value,t.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),Ux=C("$ZodCheckNumberFormat",(e,t)=>{nt.init(e,t),t.format=t.format||"float64";let a=t.format?.includes("int"),n=a?"int":"number",[r,o]=ax[t.format];e._zod.onattach.push(i=>{let l=i._zod.bag;l.format=t.format,l.minimum=r,l.maximum=o,a&&(l.pattern=Mx)}),e._zod.check=i=>{let l=i.value;if(a){if(!Number.isInteger(l)){i.issues.push({expected:n,format:t.format,code:"invalid_type",input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?i.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):i.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort});return}}l<r&&i.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>o&&i.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),jx=C("$ZodCheckBigIntFormat",(e,t)=>{nt.init(e,t);let[a,n]=rx[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=a,o.maximum=n}),e._zod.check=r=>{let o=r.value;o<a&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),o>n&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inst:e})}}),Bx=C("$ZodCheckMaxSize",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!ro(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Uu(r),code:"too_big",maximum:t.maximum,input:r,inst:e,continue:!t.abort})}}),Fx=C("$ZodCheckMinSize",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!ro(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Uu(r),code:"too_small",minimum:t.minimum,input:r,inst:e,continue:!t.abort})}}),qx=C("$ZodCheckSizeEquals",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!ro(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=n=>{let r=n.value,o=r.size;if(o===t.size)return;let i=o>t.size;n.issues.push({origin:Uu(r),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Zx=C("$ZodCheckMaxLength",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!ro(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ju(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Hx=C("$ZodCheckMinLength",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!ro(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ju(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vx=C("$ZodCheckLengthEquals",(e,t)=>{var a;nt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!ro(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{let r=n.value,o=r.length;if(o===t.length)return;let i=ju(r),l=o>t.length;n.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Bl=C("$ZodCheckStringFormat",(e,t)=>{var a,n;nt.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Gx=C("$ZodCheckRegex",(e,t)=>{Bl.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Wx=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$x),Bl.init(e,t)}),Jx=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Px),Bl.init(e,t)}),Xx=C("$ZodCheckIncludes",(e,t)=>{nt.init(e,t);let a=on(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=n,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Kx=C("$ZodCheckStartsWith",(e,t)=>{nt.init(e,t);let a=new RegExp(`^${on(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Yx=C("$ZodCheckEndsWith",(e,t)=>{nt.init(e,t);let a=new RegExp(`.*${on(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function EE(e,t,a){e.issues.length&&t.issues.push(...ua(a,e.issues))}var Qx=C("$ZodCheckProperty",(e,t)=>{nt.init(e,t),e._zod.check=a=>{let n=t.schema._zod.run({value:a.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(r=>EE(r,a,t.property));EE(n,a,t.property)}}),eb=C("$ZodCheckMimeType",(e,t)=>{nt.init(e,t);let a=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{a.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e})}}),tb=C("$ZodCheckOverwrite",(e,t)=>{nt.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});var Zu=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}let n=t.split(`
|
|
47
47
|
`).filter(i=>i),r=Math.min(...n.map(i=>i.length-i.trimStart().length)),o=n.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,a=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...a,r.join(`
|
|
48
|
-
`))}};var
|
|
48
|
+
`))}};var ab={major:4,minor:0,patch:0};var oe=C("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ab;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let r of n)for(let o of r._zod.onattach)o(e);if(n.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(o,i,l)=>{let s=hi(o),u;for(let c of i){if(c._zod.def.when){if(!c._zod.def.when(o))continue}else if(s)continue;let d=o.issues.length,p=c._zod.check(o);if(p instanceof Promise&&l?.async===!1)throw new _r;if(u||p instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await p,o.issues.length!==d&&(s||(s=hi(o,d)))});else{if(o.issues.length===d)continue;s||(s=hi(o,d))}}return u?u.then(()=>o):o};e._zod.run=(o,i)=>{let l=e._zod.parse(o,i);if(l instanceof Promise){if(i.async===!1)throw new _r;return l.then(s=>r(s,n,i))}return r(l,n,i)}}e["~standard"]={validate:r=>{try{let o=lx(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return sx(e,r).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),yi=C("$ZodString",(e,t)=>{oe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ax(e._zod.bag),e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Ze=C("$ZodStringFormat",(e,t)=>{Bl.init(e,t),yi.init(e,t)}),nb=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=gx),Ze.init(e,t)}),ob=C("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=gi(n))}else t.pattern??(t.pattern=gi());Ze.init(e,t)}),ib=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=vx),Ze.init(e,t)}),lb=C("$ZodURL",(e,t)=>{Ze.init(e,t),e._zod.check=a=>{try{let n=a.value,r=new URL(n),o=r.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:kx.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),!n.endsWith("/")&&o.endsWith("/")?a.value=o.slice(0,-1):a.value=o;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),sb=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yx()),Ze.init(e,t)}),ub=C("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=mx),Ze.init(e,t)}),cb=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ux),Ze.init(e,t)}),db=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=cx),Ze.init(e,t)}),fb=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=dx),Ze.init(e,t)}),pb=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=fx),Ze.init(e,t)}),mb=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=px),Ze.init(e,t)}),hb=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Tx(t)),Ze.init(e,t)}),gb=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Cx),Ze.init(e,t)}),vb=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Lx(t)),Ze.init(e,t)}),yb=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=hx),Ze.init(e,t)}),xb=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=xx),Ze.init(e,t),e._zod.onattach.push(a=>{let n=a._zod.bag;n.format="ipv4"})}),bb=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=bx),Ze.init(e,t),e._zod.onattach.push(a=>{let n=a._zod.bag;n.format="ipv6"}),e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),Sb=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Sx),Ze.init(e,t)}),wb=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=wx),Ze.init(e,t),e._zod.check=a=>{let[n,r]=a.value.split("/");try{if(!r)throw new Error;let o=Number(r);if(`${o}`!==r)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${n}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function Ib(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var kb=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ix),Ze.init(e,t),e._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64"}),e._zod.check=a=>{Ib(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function ZE(e){if(!dp.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ib(a)}var _b=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=dp),Ze.init(e,t),e._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64url"}),e._zod.check=a=>{ZE(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),Cb=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_x),Ze.init(e,t)});function HE(e,t=null){try{let a=e.split(".");if(a.length!==3)return!1;let[n]=a;if(!n)return!1;let r=JSON.parse(atob(n));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var Lb=C("$ZodJWT",(e,t)=>{Ze.init(e,t),e._zod.check=a=>{HE(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),Tb=C("$ZodCustomStringFormat",(e,t)=>{Ze.init(e,t),e._zod.check=a=>{t.fn(a.value)||a.issues.push({code:"invalid_format",format:t.format,input:a.value,inst:e,continue:!t.abort})}}),gp=C("$ZodNumber",(e,t)=>{oe.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ox,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=Number(a.value)}catch{}let r=a.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return a;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),a}}),Ab=C("$ZodNumber",(e,t)=>{Ux.init(e,t),gp.init(e,t)}),Hu=C("$ZodBoolean",(e,t)=>{oe.init(e,t),e._zod.pattern=zx,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=!!a.value}catch{}let r=a.value;return typeof r=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),a}}),vp=C("$ZodBigInt",(e,t)=>{oe.init(e,t),e._zod.pattern=Ex,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=BigInt(a.value)}catch{}return typeof a.value=="bigint"||a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:e}),a}}),Eb=C("$ZodBigInt",(e,t)=>{jx.init(e,t),vp.init(e,t)}),Mb=C("$ZodSymbol",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return typeof r=="symbol"||a.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),a}}),Ob=C("$ZodUndefined",(e,t)=>{oe.init(e,t),e._zod.pattern=Rx,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(a,n)=>{let r=a.value;return typeof r>"u"||a.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),a}}),zb=C("$ZodNull",(e,t)=>{oe.init(e,t),e._zod.pattern=Dx,e._zod.values=new Set([null]),e._zod.parse=(a,n)=>{let r=a.value;return r===null||a.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),a}}),Db=C("$ZodAny",(e,t)=>{oe.init(e,t),e._zod.parse=a=>a}),Fl=C("$ZodUnknown",(e,t)=>{oe.init(e,t),e._zod.parse=a=>a}),Rb=C("$ZodNever",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)}),$b=C("$ZodVoid",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return typeof r>"u"||a.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),a}}),Pb=C("$ZodDate",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=new Date(a.value)}catch{}let r=a.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||a.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),a}});function zE(e,t,a){e.issues.length&&t.issues.push(...ua(a,e.issues)),t.value[a]=e.value}var Vu=C("$ZodArray",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!Array.isArray(r))return a.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),a;a.value=Array(r.length);let o=[];for(let i=0;i<r.length;i++){let l=r[i],s=t.element._zod.run({value:l,issues:[]},n);s instanceof Promise?o.push(s.then(u=>zE(u,a,i))):zE(s,a,i)}return o.length?Promise.all(o).then(()=>a):a}});function mp(e,t,a){e.issues.length&&t.issues.push(...ua(a,e.issues)),t.value[a]=e.value}function DE(e,t,a,n){e.issues.length?n[a]===void 0?a in n?t.value[a]=void 0:t.value[a]=e.value:t.issues.push(...ua(a,e.issues)):e.value===void 0?a in n&&(t.value[a]=void 0):t.value[a]=e.value}var Nb=C("$ZodObject",(e,t)=>{oe.init(e,t);let a=$u(()=>{let d=Object.keys(t.shape);for(let f of d)if(!(t.shape[f]instanceof oe))throw new Error(`Invalid element at key "${f}": expected a Zod schema`);let p=tx(t.shape);return{shape:t.shape,keys:d,keySet:new Set(d),numKeys:d.length,optionalKeys:new Set(p)}});Oe(e._zod,"propValues",()=>{let d=t.shape,p={};for(let f in d){let m=d[f]._zod;if(m.values){p[f]??(p[f]=new Set);for(let x of m.values)p[f].add(x)}}return p});let n=d=>{let p=new Zu(["shape","payload","ctx"]),f=a.value,m=y=>{let g=mi(y);return`shape[${g}]._zod.run({ value: input[${g}], issues: [] }, ctx)`};p.write("const input = payload.value;");let x=Object.create(null),b=0;for(let y of f.keys)x[y]=`key_${b++}`;p.write("const newResult = {}");for(let y of f.keys)if(f.optionalKeys.has(y)){let g=x[y];p.write(`const ${g} = ${m(y)};`);let S=mi(y);p.write(`
|
|
49
49
|
if (${g}.issues.length) {
|
|
50
50
|
if (input[${S}] === undefined) {
|
|
51
51
|
if (${S} in input) {
|
|
@@ -67,30 +67,30 @@ Error message: ${YA(a)}`,cause:a}),this[FA]=!0,this.value=t}static isInstance(t)
|
|
|
67
67
|
`)}else{let g=x[y];p.write(`const ${g} = ${m(y)};`),p.write(`
|
|
68
68
|
if (${g}.issues.length) payload.issues = payload.issues.concat(${g}.issues.map(iss => ({
|
|
69
69
|
...iss,
|
|
70
|
-
path: iss.path ? [${
|
|
71
|
-
})));`),p.write(`newResult[${di(y)}] = ${g}.value`)}p.write("payload.value = newResult;"),p.write("return payload;");let v=p.compile();return(y,g)=>v(d,y,g)},r,o=Rl,i=!Eu.jitless,s=i&&Xy.value,u=t.catchall,c;e._zod.parse=(d,p)=>{c??(c=a.value);let f=d.value;if(!o(f))return d.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),d;let m=[];if(i&&s&&p?.async===!1&&p.jitless!==!0)r||(r=n(t.shape)),d=r(d,p);else{d.value={};let g=c.shape;for(let S of c.keys){let L=g[S],_=L._zod.run({value:f[S],issues:[]},p),A=L._zod.optin==="optional"&&L._zod.optout==="optional";_ instanceof Promise?m.push(_.then(z=>A?ME(z,d,S,f):dp(z,d,S))):A?ME(_,d,S,f):dp(_,d,S)}}if(!u)return m.length?Promise.all(m).then(()=>d):d;let x=[],b=c.keySet,v=u._zod,y=v.def.type;for(let g of Object.keys(f)){if(b.has(g))continue;if(y==="never"){x.push(g);continue}let S=v.run({value:f[g],issues:[]},p);S instanceof Promise?m.push(S.then(L=>dp(L,d,g))):dp(S,d,g)}return x.length&&d.issues.push({code:"unrecognized_keys",keys:x,input:f,inst:e}),m.length?Promise.all(m).then(()=>d):d}});function OE(e,t,a,n){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(r=>r.issues.map(o=>ka(o,n,yt())))}),t}var hp=C("$ZodUnion",(e,t)=>{oe.init(e,t),Me(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Me(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Me(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Me(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){let a=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${a.map(n=>Du(n.source)).join("|")})$`)}}),e._zod.parse=(a,n)=>{let r=!1,o=[];for(let i of t.options){let l=i._zod.run({value:a.value,issues:[]},n);if(l instanceof Promise)o.push(l),r=!0;else{if(l.issues.length===0)return l;o.push(l)}}return r?Promise.all(o).then(i=>OE(i,a,e,n)):OE(o,a,e,n)}}),Rb=C("$ZodDiscriminatedUnion",(e,t)=>{hp.init(e,t);let a=e._zod.parse;Me(e._zod,"propValues",()=>{let r={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,s]of Object.entries(i)){r[l]||(r[l]=new Set);for(let u of s)r[l].add(u)}}return r});let n=zu(()=>{let r=t.options,o=new Map;for(let i of r){let l=i._zod.propValues[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let s of l){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,i)}}return o});e._zod.parse=(r,o)=>{let i=r.value;if(!Rl(i))return r.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),r;let l=n.value.get(i?.[t.discriminator]);return l?l._zod.run(r,o):t.unionFallback?a(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:i,path:[t.discriminator],inst:e}),r)}}),$b=C("$ZodIntersection",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value,o=t.left._zod.run({value:r,issues:[]},n),i=t.right._zod.run({value:r,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([s,u])=>zE(a,s,u)):zE(a,o,i)}});function Qx(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($l(e)&&$l(t)){let a=Object.keys(t),n=Object.keys(e).filter(o=>a.indexOf(o)!==-1),r={...e,...t};for(let o of n){let i=Qx(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};r[o]=i.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let n=0;n<e.length;n++){let r=e[n],o=t[n],i=Qx(r,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a.push(i.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function zE(e,t,a){if(t.issues.length&&e.issues.push(...t.issues),a.issues.length&&e.issues.push(...a.issues),fi(e))return e;let n=Qx(t.value,a.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var gi=C("$ZodTuple",(e,t)=>{oe.init(e,t);let a=t.items,n=a.length-[...a].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let l=[];if(!t.rest){let u=i.length>a.length,c=i.length<n-1;if(u||c)return r.issues.push({input:i,inst:e,origin:"array",...u?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length}}),r}let s=-1;for(let u of a){if(s++,s>=i.length&&s>=n)continue;let c=u._zod.run({value:i[s],issues:[]},o);c instanceof Promise?l.push(c.then(d=>fp(d,r,s))):fp(c,r,s)}if(t.rest){let u=i.slice(a.length);for(let c of u){s++;let d=t.rest._zod.run({value:c,issues:[]},o);d instanceof Promise?l.push(d.then(p=>fp(p,r,s))):fp(d,r,s)}}return l.length?Promise.all(l).then(()=>r):r}});function fp(e,t,a){e.issues.length&&t.issues.push(...la(a,e.issues)),t.value[a]=e.value}var Pb=C("$ZodRecord",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!$l(r))return a.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),a;let o=[];if(t.keyType._zod.values){let i=t.keyType._zod.values;a.value={};for(let s of i)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){let u=t.valueType._zod.run({value:r[s],issues:[]},n);u instanceof Promise?o.push(u.then(c=>{c.issues.length&&a.issues.push(...la(s,c.issues)),a.value[s]=c.value})):(u.issues.length&&a.issues.push(...la(s,u.issues)),a.value[s]=u.value)}let l;for(let s in r)i.has(s)||(l=l??[],l.push(s));l&&l.length>0&&a.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:l})}else{a.value={};for(let i of Reflect.ownKeys(r)){if(i==="__proto__")continue;let l=t.keyType._zod.run({value:i,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){a.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(u=>ka(u,n,yt())),input:i,path:[i],inst:e}),a.value[l.value]=l.value;continue}let s=t.valueType._zod.run({value:r[i],issues:[]},n);s instanceof Promise?o.push(s.then(u=>{u.issues.length&&a.issues.push(...la(i,u.issues)),a.value[l.value]=u.value})):(s.issues.length&&a.issues.push(...la(i,s.issues)),a.value[l.value]=s.value)}}return o.length?Promise.all(o).then(()=>a):a}}),Nb=C("$ZodMap",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),a;let o=[];a.value=new Map;for(let[i,l]of r){let s=t.keyType._zod.run({value:i,issues:[]},n),u=t.valueType._zod.run({value:l,issues:[]},n);s instanceof Promise||u instanceof Promise?o.push(Promise.all([s,u]).then(([c,d])=>{DE(c,d,a,i,r,e,n)})):DE(s,u,a,i,r,e,n)}return o.length?Promise.all(o).then(()=>a):a}});function DE(e,t,a,n,r,o,i){e.issues.length&&(Ru.has(typeof n)?a.issues.push(...la(n,e.issues)):a.issues.push({origin:"map",code:"invalid_key",input:r,inst:o,issues:e.issues.map(l=>ka(l,i,yt()))})),t.issues.length&&(Ru.has(typeof n)?a.issues.push(...la(n,t.issues)):a.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:n,issues:t.issues.map(l=>ka(l,i,yt()))})),a.value.set(e.value,t.value)}var Ub=C("$ZodSet",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Set))return a.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),a;let o=[];a.value=new Set;for(let i of r){let l=t.valueType._zod.run({value:i,issues:[]},n);l instanceof Promise?o.push(l.then(s=>RE(s,a))):RE(l,a)}return o.length?Promise.all(o).then(()=>a):a}});function RE(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var jb=C("$ZodEnum",(e,t)=>{oe.init(e,t);let a=Ou(t.entries);e._zod.values=new Set(a),e._zod.pattern=new RegExp(`^(${a.filter(n=>Ru.has(typeof n)).map(n=>typeof n=="string"?an(n):n.toString()).join("|")})$`),e._zod.parse=(n,r)=>{let o=n.value;return e._zod.values.has(o)||n.issues.push({code:"invalid_value",values:a,input:o,inst:e}),n}}),Bb=C("$ZodLiteral",(e,t)=>{oe.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(a=>typeof a=="string"?an(a):a?a.toString():String(a)).join("|")})$`),e._zod.parse=(a,n)=>{let r=a.value;return e._zod.values.has(r)||a.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),a}}),Fb=C("$ZodFile",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return r instanceof File||a.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),a}}),Zu=C("$ZodTransform",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=t.transform(a.value,a);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(i=>(a.value=i,a));if(r instanceof Promise)throw new wr;return a.value=r,a}}),qb=C("$ZodOptional",(e,t)=>{oe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Me(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Du(a.source)})?$`):void 0}),e._zod.parse=(a,n)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(a,n):a.value===void 0?a:t.innerType._zod.run(a,n)}),Zb=C("$ZodNullable",(e,t)=>{oe.init(e,t),Me(e._zod,"optin",()=>t.innerType._zod.optin),Me(e._zod,"optout",()=>t.innerType._zod.optout),Me(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Du(a.source)}|null)$`):void 0}),Me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,n)=>a.value===null?a:t.innerType._zod.run(a,n)}),Hb=C("$ZodDefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{if(a.value===void 0)return a.value=t.defaultValue,a;let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>$E(o,t)):$E(r,t)}});function $E(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Vb=C("$ZodPrefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>(a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,n))}),Gb=C("$ZodNonOptional",(e,t)=>{oe.init(e,t),Me(e._zod,"values",()=>{let a=t.innerType._zod.values;return a?new Set([...a].filter(n=>n!==void 0)):void 0}),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>PE(o,e)):PE(r,e)}});function PE(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Jb=C("$ZodSuccess",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.issues.length===0,a)):(a.value=r.issues.length===0,a)}}),Xb=C("$ZodCatch",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Me(e._zod,"optout",()=>t.innerType._zod.optout),Me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.value,o.issues.length&&(a.value=t.catchValue({...a,error:{issues:o.issues.map(i=>ka(i,n,yt()))},input:a.value}),a.issues=[]),a)):(a.value=r.value,r.issues.length&&(a.value=t.catchValue({...a,error:{issues:r.issues.map(o=>ka(o,n,yt()))},input:a.value}),a.issues=[]),a)}}),Wb=C("$ZodNaN",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>((typeof a.value!="number"||!Number.isNaN(a.value))&&a.issues.push({input:a.value,inst:e,expected:"nan",code:"invalid_type"}),a)}),Hu=C("$ZodPipe",(e,t)=>{oe.init(e,t),Me(e._zod,"values",()=>t.in._zod.values),Me(e._zod,"optin",()=>t.in._zod.optin),Me(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(a,n)=>{let r=t.in._zod.run(a,n);return r instanceof Promise?r.then(o=>NE(o,t,n)):NE(r,t,n)}});function NE(e,t,a){return fi(e)?e:t.out._zod.run({value:e.value,issues:e.issues},a)}var Kb=C("$ZodReadonly",(e,t)=>{oe.init(e,t),Me(e._zod,"propValues",()=>t.innerType._zod.propValues),Me(e._zod,"values",()=>t.innerType._zod.values),Me(e._zod,"optin",()=>t.innerType._zod.optin),Me(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(UE):UE(r)}});function UE(e){return e.value=Object.freeze(e.value),e}var Yb=C("$ZodTemplateLiteral",(e,t)=>{oe.init(e,t);let a=[];for(let n of t.parts)if(n instanceof oe){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let r=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=r.startsWith("^")?1:0,i=r.endsWith("$")?r.length-1:r.length;a.push(r.slice(o,i))}else if(n===null||Wy.has(typeof n))a.push(an(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${a.join("")}$`),e._zod.parse=(n,r)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"template_literal",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source}),n)}),Qb=C("$ZodPromise",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>Promise.resolve(a.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),eS=C("$ZodLazy",(e,t)=>{oe.init(e,t),Me(e._zod,"innerType",()=>t.getter()),Me(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Me(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Me(e._zod,"optin",()=>e._zod.innerType._zod.optin),Me(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(a,n)=>e._zod.innerType._zod.run(a,n)}),tS=C("$ZodCustom",(e,t)=>{at.init(e,t),oe.init(e,t),e._zod.parse=(a,n)=>a,e._zod.check=a=>{let n=a.value,r=t.fn(n);if(r instanceof Promise)return r.then(o=>jE(o,a,n,e));jE(r,a,n,e)}});function jE(e,t,a,n){if(!e){let r={code:"custom",input:a,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(r.params=n._zod.def.params),t.issues.push(ex(r))}}var Vu={};lr(Vu,{ar:()=>ZE,az:()=>HE,be:()=>GE,ca:()=>JE,cs:()=>XE,de:()=>WE,en:()=>gp,eo:()=>KE,es:()=>YE,fa:()=>QE,fi:()=>eM,fr:()=>tM,frCA:()=>aM,he:()=>rM,hu:()=>nM,id:()=>oM,it:()=>iM,ja:()=>lM,kh:()=>sM,ko:()=>uM,mk:()=>cM,ms:()=>dM,nl:()=>fM,no:()=>pM,ota:()=>mM,pl:()=>gM,ps:()=>hM,pt:()=>vM,ru:()=>xM,sl:()=>bM,sv:()=>SM,ta:()=>wM,th:()=>IM,tr:()=>kM,ua:()=>_M,ur:()=>CM,vi:()=>LM,zhCN:()=>TM,zhTW:()=>AM});var fj=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return r=>{switch(r.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${M(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function ZE(){return{localeError:fj()}}var pj=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r.expected}, daxil olan ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function HE(){return{localeError:pj()}}function VE(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var mj=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=VE(l,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=VE(l,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function GE(){return{localeError:mj()}}var hj=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${r.expected}, s'ha rebut ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${N(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${M(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",i=t(r.origin);return i?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(r.origin);return i?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function JE(){return{localeError:hj()}}var gj=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";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(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return r=>{switch(r.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r.expected}, obdr\u017Eeno ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${M(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function XE(){return{localeError:gj()}}var vj=()=>{let 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(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${r.expected}, erhalten ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${M(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function WE(){return{localeError:vj()}}var yj=e=>{let 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},xj=()=>{let 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(n){return e[n]??null}let a={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`Invalid input: expected ${n.expected}, received ${yj(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${N(n.values[0])}`:`Invalid option: expected one of ${M(n.values,"|")}`;case"too_big":{let r=n.inclusive?"<=":"<",o=t(n.origin);return o?`Too big: expected ${n.origin??"value"} to have ${r}${n.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${r}${n.maximum.toString()}`}case"too_small":{let r=n.inclusive?">=":">",o=t(n.origin);return o?`Too small: expected ${n.origin} to have ${r}${n.minimum.toString()} ${o.unit}`:`Too small: expected ${n.origin} to be ${r}${n.minimum.toString()}`}case"invalid_format":{let r=n;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${a[r.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${M(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function gp(){return{localeError:xj()}}var bj=e=>{let 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},Sj=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let a={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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 n=>{switch(n.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${n.expected}, ricevi\u011Dis ${bj(n.input)}`;case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${M(n.values,"|")}`;case"too_big":{let r=n.inclusive?"<=":"<",o=t(n.origin);return o?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${r}${n.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${r}${n.maximum.toString()}`}case"too_small":{let r=n.inclusive?">=":">",o=t(n.origin);return o?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${r}${n.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${r}${n.minimum.toString()}`}case"invalid_format":{let r=n;return r.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${a[r.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${M(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function KE(){return{localeError:Sj()}}var wj=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"arreglo";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${r.expected}, recibido ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Demasiado peque\xF1o: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r.origin}`;default:return"Entrada inv\xE1lida"}}};function YE(){return{localeError:wj()}}var Ij=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return r=>{switch(r.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a(r.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${M(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${M(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function QE(){return{localeError:Ij()}}var kj=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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 r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${M(r.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\xF6te"}}};function eM(){return{localeError:kj()}}var _j=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : ${r.expected} attendu, ${a(r.input)} re\xE7u`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${N(r.values[0])} attendu`:`Option invalide : une valeur parmi ${M(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Trop grand : ${r.origin??"valeur"} doit ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Trop petit : ${r.origin} doit ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${M(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function tM(){return{localeError:_j()}}var Cj=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${r.expected}, re\xE7u ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${N(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",i=t(r.origin);return i?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",i=t(r.origin);return i?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${M(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function aM(){return{localeError:Cj()}}var Lj=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{switch(r.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${r.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${N(r.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()} ${i.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()} ${i.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${n[o.format]??r.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${r.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${r.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${r.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function rM(){return{localeError:Lj()}}var Tj=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return r=>{switch(r.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r.expected}, a kapott \xE9rt\xE9k ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function nM(){return{localeError:Tj()}}var Aj=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${N(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function oM(){return{localeError:Aj()}}var Ej=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${N(r.values[0])}`:`Opzione non valida: atteso uno tra ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${M(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function iM(){return{localeError:Ej()}}var Mj=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a(r.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${M(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(r.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(r.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${M(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function lM(){return{localeError:Mj()}}var Oj=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return r=>{switch(r.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${M(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function sM(){return{localeError:Oj()}}var zj=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return r=>{switch(r.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a(r.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${M(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${i}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${M(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function uM(){return{localeError:zj()}}var Dj=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return r=>{switch(r.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${N(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function cM(){return{localeError:Dj()}}var Rj=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${N(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: dijangka ${r.origin??"nilai"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: dijangka ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${M(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function dM(){return{localeError:Rj()}}var $j=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${N(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${i.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${i.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function fM(){return{localeError:$j()}}var Pj=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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\xE5de",ipv6:"IPv6-omr\xE5de",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 r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${N(r.values[0])}`:`Ugyldig valg: forventet en av ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${M(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function pM(){return{localeError:Pj()}}var Nj=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return r=>{switch(r.code){case"invalid_type":return`F\xE2sit giren: umulan ${r.expected}, al\u0131nan ${a(r.input)}`;case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${N(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function mM(){return{localeError:Nj()}}var Uj=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0627\u0631\u06D0";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return r=>{switch(r.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a(r.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${M(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function hM(){return{localeError:Uj()}}var jj=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return r=>{switch(r.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r.expected}, otrzymano ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function gM(){return{localeError:jj()}}var Bj=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${r.expected}, recebido ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${N(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function vM(){return{localeError:Bj()}}function yM(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var Fj=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=yM(l,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=yM(l,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${M(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function xM(){return{localeError:Fj()}}var qj=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${r.expected}, prejeto ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${M(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function bM(){return{localeError:qj()}}var Zj=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${r.expected}, fick ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${M(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function SM(){return{localeError:Zj()}}var Hj=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${M(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function wM(){return{localeError:Hj()}}var Vj=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return r=>{switch(r.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${M(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function IM(){return{localeError:Vj()}}var Gj=e=>{let 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},Jj=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let a={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return n=>{switch(n.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${n.expected}, al\u0131nan ${Gj(n.input)}`;case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${M(n.values,"|")}`;case"too_big":{let r=n.inclusive?"<=":"<",o=t(n.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${r}${n.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${r}${n.maximum.toString()}`}case"too_small":{let r=n.inclusive?">=":">",o=t(n.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${r}${n.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${r}${n.minimum.toString()}`}case"invalid_format":{let r=n;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${a[r.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${M(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function kM(){return{localeError:Jj()}}var Xj=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${M(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function _M(){return{localeError:Xj()}}var Wj=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return r=>{switch(r.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a(r.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${M(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${M(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function CM(){return{localeError:Wj()}}var Kj=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return r=>{switch(r.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${M(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function LM(){return{localeError:Kj()}}var Yj=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function TM(){return{localeError:Yj()}}var Qj=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r.expected}\uFF0C\u4F46\u6536\u5230 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${M(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function AM(){return{localeError:Qj()}}var aS=Symbol("ZodOutput"),rS=Symbol("ZodInput"),jl=class{constructor(){this._map=new Map,this._idmap=new Map}add(t,...a){let n=a[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){let a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){let a=t._zod.parent;if(a){let n={...this.get(a)??{}};return delete n.id,{...n,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function vp(){return new jl}var Ir=vp();function nS(e,t){return new e({type:"string",...P(t)})}function oS(e,t){return new e({type:"string",coerce:!0,...P(t)})}function yp(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...P(t)})}function Gu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...P(t)})}function xp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...P(t)})}function bp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...P(t)})}function Sp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...P(t)})}function wp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...P(t)})}function Ip(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...P(t)})}function kp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...P(t)})}function _p(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...P(t)})}function Cp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...P(t)})}function Lp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...P(t)})}function Tp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...P(t)})}function Ap(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...P(t)})}function Ep(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...P(t)})}function Mp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...P(t)})}function Op(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...P(t)})}function zp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...P(t)})}function Dp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...P(t)})}function Rp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...P(t)})}function $p(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...P(t)})}function Pp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...P(t)})}function Np(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...P(t)})}var iS={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function lS(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...P(t)})}function sS(e,t){return new e({type:"string",format:"date",check:"string_format",...P(t)})}function uS(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...P(t)})}function cS(e,t){return new e({type:"string",format:"duration",check:"string_format",...P(t)})}function dS(e,t){return new e({type:"number",checks:[],...P(t)})}function fS(e,t){return new e({type:"number",coerce:!0,checks:[],...P(t)})}function pS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...P(t)})}function mS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...P(t)})}function hS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...P(t)})}function gS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...P(t)})}function vS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...P(t)})}function yS(e,t){return new e({type:"boolean",...P(t)})}function xS(e,t){return new e({type:"boolean",coerce:!0,...P(t)})}function bS(e,t){return new e({type:"bigint",...P(t)})}function SS(e,t){return new e({type:"bigint",coerce:!0,...P(t)})}function wS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...P(t)})}function IS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...P(t)})}function kS(e,t){return new e({type:"symbol",...P(t)})}function _S(e,t){return new e({type:"undefined",...P(t)})}function CS(e,t){return new e({type:"null",...P(t)})}function LS(e){return new e({type:"any"})}function Bl(e){return new e({type:"unknown"})}function TS(e,t){return new e({type:"never",...P(t)})}function AS(e,t){return new e({type:"void",...P(t)})}function ES(e,t){return new e({type:"date",...P(t)})}function MS(e,t){return new e({type:"date",coerce:!0,...P(t)})}function OS(e,t){return new e({type:"nan",...P(t)})}function rn(e,t){return new up({check:"less_than",...P(t),value:e,inclusive:!1})}function Za(e,t){return new up({check:"less_than",...P(t),value:e,inclusive:!0})}function nn(e,t){return new cp({check:"greater_than",...P(t),value:e,inclusive:!1})}function sa(e,t){return new cp({check:"greater_than",...P(t),value:e,inclusive:!0})}function zS(e){return nn(0,e)}function DS(e){return rn(0,e)}function RS(e){return Za(0,e)}function $S(e){return sa(0,e)}function vi(e,t){return new Dx({check:"multiple_of",...P(t),value:e})}function Fl(e,t){return new Px({check:"max_size",...P(t),maximum:e})}function yi(e,t){return new Nx({check:"min_size",...P(t),minimum:e})}function Ju(e,t){return new Ux({check:"size_equals",...P(t),size:e})}function ql(e,t){return new jx({check:"max_length",...P(t),maximum:e})}function to(e,t){return new Bx({check:"min_length",...P(t),minimum:e})}function Zl(e,t){return new Fx({check:"length_equals",...P(t),length:e})}function Xu(e,t){return new qx({check:"string_format",format:"regex",...P(t),pattern:e})}function Wu(e){return new Zx({check:"string_format",format:"lowercase",...P(e)})}function Ku(e){return new Hx({check:"string_format",format:"uppercase",...P(e)})}function Yu(e,t){return new Vx({check:"string_format",format:"includes",...P(t),includes:e})}function Qu(e,t){return new Gx({check:"string_format",format:"starts_with",...P(t),prefix:e})}function ec(e,t){return new Jx({check:"string_format",format:"ends_with",...P(t),suffix:e})}function PS(e,t,a){return new Xx({check:"property",property:e,schema:t,...P(a)})}function tc(e,t){return new Wx({check:"mime_type",mime:e,...P(t)})}function on(e){return new Kx({check:"overwrite",tx:e})}function ac(e){return on(t=>t.normalize(e))}function rc(){return on(e=>e.trim())}function nc(){return on(e=>e.toLowerCase())}function oc(){return on(e=>e.toUpperCase())}function ic(e,t,a){return new e({type:"array",element:t,...P(a)})}function eB(e,t,a){return new e({type:"union",options:t,...P(a)})}function tB(e,t,a,n){return new e({type:"union",options:a,discriminator:t,...P(n)})}function aB(e,t,a){return new e({type:"intersection",left:t,right:a})}function NS(e,t,a,n){let r=a instanceof oe,o=r?n:a,i=r?a:null;return new e({type:"tuple",items:t,rest:i,...P(o)})}function rB(e,t,a,n){return new e({type:"record",keyType:t,valueType:a,...P(n)})}function nB(e,t,a,n){return new e({type:"map",keyType:t,valueType:a,...P(n)})}function oB(e,t,a){return new e({type:"set",valueType:t,...P(a)})}function iB(e,t,a){let n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:n,...P(a)})}function lB(e,t,a){return new e({type:"enum",entries:t,...P(a)})}function sB(e,t,a){return new e({type:"literal",values:Array.isArray(t)?t:[t],...P(a)})}function US(e,t){return new e({type:"file",...P(t)})}function uB(e,t){return new e({type:"transform",transform:t})}function cB(e,t){return new e({type:"optional",innerType:t})}function dB(e,t){return new e({type:"nullable",innerType:t})}function fB(e,t,a){return new e({type:"default",innerType:t,get defaultValue(){return typeof a=="function"?a():a}})}function pB(e,t,a){return new e({type:"nonoptional",innerType:t,...P(a)})}function mB(e,t){return new e({type:"success",innerType:t})}function hB(e,t,a){return new e({type:"catch",innerType:t,catchValue:typeof a=="function"?a:()=>a})}function gB(e,t,a){return new e({type:"pipe",in:t,out:a})}function vB(e,t){return new e({type:"readonly",innerType:t})}function yB(e,t,a){return new e({type:"template_literal",parts:t,...P(a)})}function xB(e,t){return new e({type:"lazy",getter:t})}function bB(e,t){return new e({type:"promise",innerType:t})}function jS(e,t,a){let n=P(a);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function BS(e,t,a){return new e({type:"custom",check:"custom",fn:t,...P(a)})}function FS(e,t){let a=P(t),n=a.truthy??["true","1","yes","on","y","enabled"],r=a.falsy??["false","0","no","off","n","disabled"];a.case!=="sensitive"&&(n=n.map(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(n),i=new Set(r),l=e.Pipe??Hu,s=e.Boolean??Fu,u=e.String??hi,c=e.Transform??Zu,d=new c({type:"transform",transform:(m,x)=>{let b=m;return a.case!=="sensitive"&&(b=b.toLowerCase()),o.has(b)?!0:i.has(b)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:x.value,inst:d}),{})},error:a.error}),p=new l({type:"pipe",in:new u({type:"string",error:a.error}),out:d,error:a.error});return new l({type:"pipe",in:p,out:new s({type:"boolean",error:a.error}),error:a.error})}function qS(e,t,a,n={}){let r=P(n),o={...P(n),check:"string_format",type:"string",format:t,fn:typeof a=="function"?a:l=>a.test(l),...r};return a instanceof RegExp&&(o.pattern=a),new e(o)}var Up=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let a=((...n)=>{let r=this._def.input?rp(this._def.input,n,void 0,{callee:a}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=t(...r);return this._def.output?rp(this._def.output,o,void 0,{callee:a}):o});return a}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let a=(async(...n)=>{let r=this._def.input?await op(this._def.input,n,void 0,{callee:a}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await t(...r);return this._def.output?op(this._def.output,o,void 0,{callee:a}):o});return a}input(...t){let a=this.constructor;return Array.isArray(t[0])?new a({type:"function",input:new gi({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new a({type:"function",input:t[0],output:this._def.output})}output(t){let a=this.constructor;return new a({type:"function",input:this._def.input,output:t})}};function ZS(e){return new Up({type:"function",input:Array.isArray(e?.input)?NS(gi,e?.input):e?.input??ic(qu,Bl(Ul)),output:e?.output??Bl(Ul)})}var lc=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??Ir,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,a={path:[],schemaPath:[]}){var n;let r=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},i=this.seen.get(t);if(i)return i.count++,a.schemaPath.includes(t)&&(i.cycle=a.path),i.schema;let l={schema:{},count:1,cycle:void 0,path:a.path};this.seen.set(t,l);let s=t._zod.toJSONSchema?.();if(s)l.schema=s;else{let d={...a,schemaPath:[...a.schemaPath,t],path:a.path},p=t._zod.parent;if(p)l.ref=p,this.process(p,d),this.seen.get(p).isParent=!0;else{let f=l.schema;switch(r.type){case"string":{let m=f;m.type="string";let{minimum:x,maximum:b,format:v,patterns:y,contentEncoding:g}=t._zod.bag;if(typeof x=="number"&&(m.minLength=x),typeof b=="number"&&(m.maxLength=b),v&&(m.format=o[v]??v,m.format===""&&delete m.format),g&&(m.contentEncoding=g),y&&y.size>0){let S=[...y];S.length===1?m.pattern=S[0].source:S.length>1&&(l.schema.allOf=[...S.map(L=>({...this.target==="draft-7"?{type:"string"}:{},pattern:L.source}))])}break}case"number":{let m=f,{minimum:x,maximum:b,format:v,multipleOf:y,exclusiveMaximum:g,exclusiveMinimum:S}=t._zod.bag;typeof v=="string"&&v.includes("int")?m.type="integer":m.type="number",typeof S=="number"&&(m.exclusiveMinimum=S),typeof x=="number"&&(m.minimum=x,typeof S=="number"&&(S>=x?delete m.minimum:delete m.exclusiveMinimum)),typeof g=="number"&&(m.exclusiveMaximum=g),typeof b=="number"&&(m.maximum=b,typeof g=="number"&&(g<=b?delete m.maximum:delete m.exclusiveMaximum)),typeof y=="number"&&(m.multipleOf=y);break}case"boolean":{let m=f;m.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":{f.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":{f.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let m=f,{minimum:x,maximum:b}=t._zod.bag;typeof x=="number"&&(m.minItems=x),typeof b=="number"&&(m.maxItems=b),m.type="array",m.items=this.process(r.element,{...d,path:[...d.path,"items"]});break}case"object":{let m=f;m.type="object",m.properties={};let x=r.shape;for(let y in x)m.properties[y]=this.process(x[y],{...d,path:[...d.path,"properties",y]});let b=new Set(Object.keys(x)),v=new Set([...b].filter(y=>{let g=r.shape[y]._zod;return this.io==="input"?g.optin===void 0:g.optout===void 0}));v.size>0&&(m.required=Array.from(v)),r.catchall?._zod.def.type==="never"?m.additionalProperties=!1:r.catchall?r.catchall&&(m.additionalProperties=this.process(r.catchall,{...d,path:[...d.path,"additionalProperties"]})):this.io==="output"&&(m.additionalProperties=!1);break}case"union":{let m=f;m.anyOf=r.options.map((x,b)=>this.process(x,{...d,path:[...d.path,"anyOf",b]}));break}case"intersection":{let m=f,x=this.process(r.left,{...d,path:[...d.path,"allOf",0]}),b=this.process(r.right,{...d,path:[...d.path,"allOf",1]}),v=g=>"allOf"in g&&Object.keys(g).length===1,y=[...v(x)?x.allOf:[x],...v(b)?b.allOf:[b]];m.allOf=y;break}case"tuple":{let m=f;m.type="array";let x=r.items.map((y,g)=>this.process(y,{...d,path:[...d.path,"prefixItems",g]}));if(this.target==="draft-2020-12"?m.prefixItems=x:m.items=x,r.rest){let y=this.process(r.rest,{...d,path:[...d.path,"items"]});this.target==="draft-2020-12"?m.items=y:m.additionalItems=y}r.rest&&(m.items=this.process(r.rest,{...d,path:[...d.path,"items"]}));let{minimum:b,maximum:v}=t._zod.bag;typeof b=="number"&&(m.minItems=b),typeof v=="number"&&(m.maxItems=v);break}case"record":{let m=f;m.type="object",m.propertyNames=this.process(r.keyType,{...d,path:[...d.path,"propertyNames"]}),m.additionalProperties=this.process(r.valueType,{...d,path:[...d.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":{let m=f,x=Ou(r.entries);x.every(b=>typeof b=="number")&&(m.type="number"),x.every(b=>typeof b=="string")&&(m.type="string"),m.enum=x;break}case"literal":{let m=f,x=[];for(let b of r.values)if(b===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof b=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");x.push(Number(b))}else x.push(b);if(x.length!==0)if(x.length===1){let b=x[0];m.type=b===null?"null":typeof b,m.const=b}else x.every(b=>typeof b=="number")&&(m.type="number"),x.every(b=>typeof b=="string")&&(m.type="string"),x.every(b=>typeof b=="boolean")&&(m.type="string"),x.every(b=>b===null)&&(m.type="null"),m.enum=x;break}case"file":{let m=f,x={type:"string",format:"binary",contentEncoding:"binary"},{minimum:b,maximum:v,mime:y}=t._zod.bag;b!==void 0&&(x.minLength=b),v!==void 0&&(x.maxLength=v),y?y.length===1?(x.contentMediaType=y[0],Object.assign(m,x)):m.anyOf=y.map(g=>({...x,contentMediaType:g})):Object.assign(m,x);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let m=this.process(r.innerType,d);f.anyOf=[m,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,d),l.ref=r.innerType;break}case"success":{let m=f;m.type="boolean";break}case"default":{this.process(r.innerType,d),l.ref=r.innerType,f.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,d),l.ref=r.innerType,this.io==="input"&&(f._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,d),l.ref=r.innerType;let m;try{m=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}f.default=m;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let m=f,x=t._zod.pattern;if(!x)throw new Error("Pattern not found in template literal");m.type="string",m.pattern=x.source;break}case"pipe":{let m=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(m,d),l.ref=m;break}case"readonly":{this.process(r.innerType,d),l.ref=r.innerType,f.readOnly=!0;break}case"promise":{this.process(r.innerType,d),l.ref=r.innerType;break}case"optional":{this.process(r.innerType,d),l.ref=r.innerType;break}case"lazy":{let m=t._zod.innerType;this.process(m,d),l.ref=m;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let u=this.metadataRegistry.get(t);return u&&Object.assign(l.schema,u),this.io==="input"&&wt(t)&&(delete l.schema.examples,delete l.schema.default),this.io==="input"&&l.schema._prefault&&((n=l.schema).default??(n.default=l.schema._prefault)),delete l.schema._prefault,this.seen.get(t).schema}emit(t,a){let n={cycles:a?.cycles??"ref",reused:a?.reused??"inline",external:a?.external??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=c=>{let d=this.target==="draft-2020-12"?"$defs":"definitions";if(n.external){let x=n.external.registry.get(c[0])?.id,b=n.external.uri??(y=>y);if(x)return{ref:b(x)};let v=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=v,{defId:v,ref:`${b("__shared")}#/${d}/${v}`}}if(c[1]===r)return{ref:"#"};let f=`#/${d}/`,m=c[1].schema.id??`__schema${this.counter++}`;return{defId:m,ref:f+m}},i=c=>{if(c[1].schema.$ref)return;let d=c[1],{ref:p,defId:f}=o(c);d.def={...d.schema},f&&(d.defId=f);let m=d.schema;for(let x in m)delete m[x];m.$ref=p};if(n.cycles==="throw")for(let c of this.seen.entries()){let d=c[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
|
|
70
|
+
path: iss.path ? [${mi(y)}, ...iss.path] : [${mi(y)}]
|
|
71
|
+
})));`),p.write(`newResult[${mi(y)}] = ${g}.value`)}p.write("payload.value = newResult;"),p.write("return payload;");let v=p.compile();return(y,g)=>v(d,y,g)},r,o=Nl,i=!zu.jitless,s=i&&Qy.value,u=t.catchall,c;e._zod.parse=(d,p)=>{c??(c=a.value);let f=d.value;if(!o(f))return d.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),d;let m=[];if(i&&s&&p?.async===!1&&p.jitless!==!0)r||(r=n(t.shape)),d=r(d,p);else{d.value={};let g=c.shape;for(let S of c.keys){let L=g[S],_=L._zod.run({value:f[S],issues:[]},p),A=L._zod.optin==="optional"&&L._zod.optout==="optional";_ instanceof Promise?m.push(_.then(z=>A?DE(z,d,S,f):mp(z,d,S))):A?DE(_,d,S,f):mp(_,d,S)}}if(!u)return m.length?Promise.all(m).then(()=>d):d;let x=[],b=c.keySet,v=u._zod,y=v.def.type;for(let g of Object.keys(f)){if(b.has(g))continue;if(y==="never"){x.push(g);continue}let S=v.run({value:f[g],issues:[]},p);S instanceof Promise?m.push(S.then(L=>mp(L,d,g))):mp(S,d,g)}return x.length&&d.issues.push({code:"unrecognized_keys",keys:x,input:f,inst:e}),m.length?Promise.all(m).then(()=>d):d}});function RE(e,t,a,n){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(r=>r.issues.map(o=>Ca(o,n,St())))}),t}var yp=C("$ZodUnion",(e,t)=>{oe.init(e,t),Oe(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Oe(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Oe(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Oe(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){let a=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${a.map(n=>Pu(n.source)).join("|")})$`)}}),e._zod.parse=(a,n)=>{let r=!1,o=[];for(let i of t.options){let l=i._zod.run({value:a.value,issues:[]},n);if(l instanceof Promise)o.push(l),r=!0;else{if(l.issues.length===0)return l;o.push(l)}}return r?Promise.all(o).then(i=>RE(i,a,e,n)):RE(o,a,e,n)}}),Ub=C("$ZodDiscriminatedUnion",(e,t)=>{yp.init(e,t);let a=e._zod.parse;Oe(e._zod,"propValues",()=>{let r={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,s]of Object.entries(i)){r[l]||(r[l]=new Set);for(let u of s)r[l].add(u)}}return r});let n=$u(()=>{let r=t.options,o=new Map;for(let i of r){let l=i._zod.propValues[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let s of l){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,i)}}return o});e._zod.parse=(r,o)=>{let i=r.value;if(!Nl(i))return r.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),r;let l=n.value.get(i?.[t.discriminator]);return l?l._zod.run(r,o):t.unionFallback?a(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:i,path:[t.discriminator],inst:e}),r)}}),jb=C("$ZodIntersection",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value,o=t.left._zod.run({value:r,issues:[]},n),i=t.right._zod.run({value:r,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([s,u])=>$E(a,s,u)):$E(a,o,i)}});function rb(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(Ul(e)&&Ul(t)){let a=Object.keys(t),n=Object.keys(e).filter(o=>a.indexOf(o)!==-1),r={...e,...t};for(let o of n){let i=rb(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};r[o]=i.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let n=0;n<e.length;n++){let r=e[n],o=t[n],i=rb(r,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a.push(i.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function $E(e,t,a){if(t.issues.length&&e.issues.push(...t.issues),a.issues.length&&e.issues.push(...a.issues),hi(e))return e;let n=rb(t.value,a.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var xi=C("$ZodTuple",(e,t)=>{oe.init(e,t);let a=t.items,n=a.length-[...a].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let l=[];if(!t.rest){let u=i.length>a.length,c=i.length<n-1;if(u||c)return r.issues.push({input:i,inst:e,origin:"array",...u?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length}}),r}let s=-1;for(let u of a){if(s++,s>=i.length&&s>=n)continue;let c=u._zod.run({value:i[s],issues:[]},o);c instanceof Promise?l.push(c.then(d=>hp(d,r,s))):hp(c,r,s)}if(t.rest){let u=i.slice(a.length);for(let c of u){s++;let d=t.rest._zod.run({value:c,issues:[]},o);d instanceof Promise?l.push(d.then(p=>hp(p,r,s))):hp(d,r,s)}}return l.length?Promise.all(l).then(()=>r):r}});function hp(e,t,a){e.issues.length&&t.issues.push(...ua(a,e.issues)),t.value[a]=e.value}var Bb=C("$ZodRecord",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!Ul(r))return a.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),a;let o=[];if(t.keyType._zod.values){let i=t.keyType._zod.values;a.value={};for(let s of i)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){let u=t.valueType._zod.run({value:r[s],issues:[]},n);u instanceof Promise?o.push(u.then(c=>{c.issues.length&&a.issues.push(...ua(s,c.issues)),a.value[s]=c.value})):(u.issues.length&&a.issues.push(...ua(s,u.issues)),a.value[s]=u.value)}let l;for(let s in r)i.has(s)||(l=l??[],l.push(s));l&&l.length>0&&a.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:l})}else{a.value={};for(let i of Reflect.ownKeys(r)){if(i==="__proto__")continue;let l=t.keyType._zod.run({value:i,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){a.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(u=>Ca(u,n,St())),input:i,path:[i],inst:e}),a.value[l.value]=l.value;continue}let s=t.valueType._zod.run({value:r[i],issues:[]},n);s instanceof Promise?o.push(s.then(u=>{u.issues.length&&a.issues.push(...ua(i,u.issues)),a.value[l.value]=u.value})):(s.issues.length&&a.issues.push(...ua(i,s.issues)),a.value[l.value]=s.value)}}return o.length?Promise.all(o).then(()=>a):a}}),Fb=C("$ZodMap",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),a;let o=[];a.value=new Map;for(let[i,l]of r){let s=t.keyType._zod.run({value:i,issues:[]},n),u=t.valueType._zod.run({value:l,issues:[]},n);s instanceof Promise||u instanceof Promise?o.push(Promise.all([s,u]).then(([c,d])=>{PE(c,d,a,i,r,e,n)})):PE(s,u,a,i,r,e,n)}return o.length?Promise.all(o).then(()=>a):a}});function PE(e,t,a,n,r,o,i){e.issues.length&&(Nu.has(typeof n)?a.issues.push(...ua(n,e.issues)):a.issues.push({origin:"map",code:"invalid_key",input:r,inst:o,issues:e.issues.map(l=>Ca(l,i,St()))})),t.issues.length&&(Nu.has(typeof n)?a.issues.push(...ua(n,t.issues)):a.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:n,issues:t.issues.map(l=>Ca(l,i,St()))})),a.value.set(e.value,t.value)}var qb=C("$ZodSet",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Set))return a.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),a;let o=[];a.value=new Set;for(let i of r){let l=t.valueType._zod.run({value:i,issues:[]},n);l instanceof Promise?o.push(l.then(s=>NE(s,a))):NE(l,a)}return o.length?Promise.all(o).then(()=>a):a}});function NE(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Zb=C("$ZodEnum",(e,t)=>{oe.init(e,t);let a=Ru(t.entries);e._zod.values=new Set(a),e._zod.pattern=new RegExp(`^(${a.filter(n=>Nu.has(typeof n)).map(n=>typeof n=="string"?on(n):n.toString()).join("|")})$`),e._zod.parse=(n,r)=>{let o=n.value;return e._zod.values.has(o)||n.issues.push({code:"invalid_value",values:a,input:o,inst:e}),n}}),Hb=C("$ZodLiteral",(e,t)=>{oe.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(a=>typeof a=="string"?on(a):a?a.toString():String(a)).join("|")})$`),e._zod.parse=(a,n)=>{let r=a.value;return e._zod.values.has(r)||a.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),a}}),Vb=C("$ZodFile",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return r instanceof File||a.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),a}}),Gu=C("$ZodTransform",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=t.transform(a.value,a);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(i=>(a.value=i,a));if(r instanceof Promise)throw new _r;return a.value=r,a}}),Gb=C("$ZodOptional",(e,t)=>{oe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Oe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Oe(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Pu(a.source)})?$`):void 0}),e._zod.parse=(a,n)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(a,n):a.value===void 0?a:t.innerType._zod.run(a,n)}),Wb=C("$ZodNullable",(e,t)=>{oe.init(e,t),Oe(e._zod,"optin",()=>t.innerType._zod.optin),Oe(e._zod,"optout",()=>t.innerType._zod.optout),Oe(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Pu(a.source)}|null)$`):void 0}),Oe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,n)=>a.value===null?a:t.innerType._zod.run(a,n)}),Jb=C("$ZodDefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{if(a.value===void 0)return a.value=t.defaultValue,a;let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>UE(o,t)):UE(r,t)}});function UE(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Xb=C("$ZodPrefault",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>(a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,n))}),Kb=C("$ZodNonOptional",(e,t)=>{oe.init(e,t),Oe(e._zod,"values",()=>{let a=t.innerType._zod.values;return a?new Set([...a].filter(n=>n!==void 0)):void 0}),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>jE(o,e)):jE(r,e)}});function jE(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Yb=C("$ZodSuccess",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.issues.length===0,a)):(a.value=r.issues.length===0,a)}}),Qb=C("$ZodCatch",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Oe(e._zod,"optout",()=>t.innerType._zod.optout),Oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.value,o.issues.length&&(a.value=t.catchValue({...a,error:{issues:o.issues.map(i=>Ca(i,n,St()))},input:a.value}),a.issues=[]),a)):(a.value=r.value,r.issues.length&&(a.value=t.catchValue({...a,error:{issues:r.issues.map(o=>Ca(o,n,St()))},input:a.value}),a.issues=[]),a)}}),eS=C("$ZodNaN",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>((typeof a.value!="number"||!Number.isNaN(a.value))&&a.issues.push({input:a.value,inst:e,expected:"nan",code:"invalid_type"}),a)}),Wu=C("$ZodPipe",(e,t)=>{oe.init(e,t),Oe(e._zod,"values",()=>t.in._zod.values),Oe(e._zod,"optin",()=>t.in._zod.optin),Oe(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(a,n)=>{let r=t.in._zod.run(a,n);return r instanceof Promise?r.then(o=>BE(o,t,n)):BE(r,t,n)}});function BE(e,t,a){return hi(e)?e:t.out._zod.run({value:e.value,issues:e.issues},a)}var tS=C("$ZodReadonly",(e,t)=>{oe.init(e,t),Oe(e._zod,"propValues",()=>t.innerType._zod.propValues),Oe(e._zod,"values",()=>t.innerType._zod.values),Oe(e._zod,"optin",()=>t.innerType._zod.optin),Oe(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(FE):FE(r)}});function FE(e){return e.value=Object.freeze(e.value),e}var aS=C("$ZodTemplateLiteral",(e,t)=>{oe.init(e,t);let a=[];for(let n of t.parts)if(n instanceof oe){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let r=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=r.startsWith("^")?1:0,i=r.endsWith("$")?r.length-1:r.length;a.push(r.slice(o,i))}else if(n===null||ex.has(typeof n))a.push(on(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${a.join("")}$`),e._zod.parse=(n,r)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"template_literal",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source}),n)}),rS=C("$ZodPromise",(e,t)=>{oe.init(e,t),e._zod.parse=(a,n)=>Promise.resolve(a.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),nS=C("$ZodLazy",(e,t)=>{oe.init(e,t),Oe(e._zod,"innerType",()=>t.getter()),Oe(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Oe(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Oe(e._zod,"optin",()=>e._zod.innerType._zod.optin),Oe(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(a,n)=>e._zod.innerType._zod.run(a,n)}),oS=C("$ZodCustom",(e,t)=>{nt.init(e,t),oe.init(e,t),e._zod.parse=(a,n)=>a,e._zod.check=a=>{let n=a.value,r=t.fn(n);if(r instanceof Promise)return r.then(o=>qE(o,a,n,e));qE(r,a,n,e)}});function qE(e,t,a,n){if(!e){let r={code:"custom",input:a,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(r.params=n._zod.def.params),t.issues.push(nx(r))}}var Ju={};cr(Ju,{ar:()=>GE,az:()=>WE,be:()=>XE,ca:()=>KE,cs:()=>YE,de:()=>QE,en:()=>xp,eo:()=>eM,es:()=>tM,fa:()=>aM,fi:()=>rM,fr:()=>nM,frCA:()=>oM,he:()=>iM,hu:()=>lM,id:()=>sM,it:()=>uM,ja:()=>cM,kh:()=>dM,ko:()=>fM,mk:()=>pM,ms:()=>mM,nl:()=>hM,no:()=>gM,ota:()=>vM,pl:()=>xM,ps:()=>yM,pt:()=>bM,ru:()=>wM,sl:()=>IM,sv:()=>kM,ta:()=>_M,th:()=>CM,tr:()=>LM,ua:()=>TM,ur:()=>AM,vi:()=>EM,zhCN:()=>MM,zhTW:()=>OM});var yj=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return r=>{switch(r.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${M(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function GE(){return{localeError:yj()}}var xj=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r.expected}, daxil olan ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function WE(){return{localeError:xj()}}function JE(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var bj=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=JE(l,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=JE(l,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function XE(){return{localeError:bj()}}var Sj=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${r.expected}, s'ha rebut ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${N(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${M(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",i=t(r.origin);return i?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(r.origin);return i?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function KE(){return{localeError:Sj()}}var wj=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";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(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return r=>{switch(r.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r.expected}, obdr\u017Eeno ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${M(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function YE(){return{localeError:wj()}}var Ij=()=>{let 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(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${r.expected}, erhalten ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${M(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function QE(){return{localeError:Ij()}}var kj=e=>{let 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},_j=()=>{let 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(n){return e[n]??null}let a={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`Invalid input: expected ${n.expected}, received ${kj(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${N(n.values[0])}`:`Invalid option: expected one of ${M(n.values,"|")}`;case"too_big":{let r=n.inclusive?"<=":"<",o=t(n.origin);return o?`Too big: expected ${n.origin??"value"} to have ${r}${n.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${r}${n.maximum.toString()}`}case"too_small":{let r=n.inclusive?">=":">",o=t(n.origin);return o?`Too small: expected ${n.origin} to have ${r}${n.minimum.toString()} ${o.unit}`:`Too small: expected ${n.origin} to be ${r}${n.minimum.toString()}`}case"invalid_format":{let r=n;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${a[r.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${M(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function xp(){return{localeError:_j()}}var Cj=e=>{let 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},Lj=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let a={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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 n=>{switch(n.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${n.expected}, ricevi\u011Dis ${Cj(n.input)}`;case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${M(n.values,"|")}`;case"too_big":{let r=n.inclusive?"<=":"<",o=t(n.origin);return o?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${r}${n.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${r}${n.maximum.toString()}`}case"too_small":{let r=n.inclusive?">=":">",o=t(n.origin);return o?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${r}${n.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${r}${n.minimum.toString()}`}case"invalid_format":{let r=n;return r.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${a[r.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${M(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function eM(){return{localeError:Lj()}}var Tj=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"arreglo";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${r.expected}, recibido ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Demasiado peque\xF1o: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r.origin}`;default:return"Entrada inv\xE1lida"}}};function tM(){return{localeError:Tj()}}var Aj=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return r=>{switch(r.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a(r.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${M(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${M(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function aM(){return{localeError:Aj()}}var Ej=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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 r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${M(r.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\xF6te"}}};function rM(){return{localeError:Ej()}}var Mj=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : ${r.expected} attendu, ${a(r.input)} re\xE7u`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${N(r.values[0])} attendu`:`Option invalide : une valeur parmi ${M(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Trop grand : ${r.origin??"valeur"} doit ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Trop petit : ${r.origin} doit ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${M(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function nM(){return{localeError:Mj()}}var Oj=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${r.expected}, re\xE7u ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${N(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",i=t(r.origin);return i?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",i=t(r.origin);return i?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${M(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function oM(){return{localeError:Oj()}}var zj=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{switch(r.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${r.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${N(r.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()} ${i.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()} ${i.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${n[o.format]??r.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${r.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${r.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${r.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function iM(){return{localeError:zj()}}var Dj=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return r=>{switch(r.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r.expected}, a kapott \xE9rt\xE9k ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function lM(){return{localeError:Dj()}}var Rj=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${N(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function sM(){return{localeError:Rj()}}var $j=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${N(r.values[0])}`:`Opzione non valida: atteso uno tra ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${M(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function uM(){return{localeError:$j()}}var Pj=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a(r.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${M(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(r.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(r.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${M(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function cM(){return{localeError:Pj()}}var Nj=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return r=>{switch(r.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${M(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function dM(){return{localeError:Nj()}}var Uj=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return r=>{switch(r.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a(r.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${M(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${i}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${M(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function fM(){return{localeError:Uj()}}var jj=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return r=>{switch(r.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${N(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function pM(){return{localeError:jj()}}var Bj=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${N(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: dijangka ${r.origin??"nilai"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: dijangka ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${M(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function mM(){return{localeError:Bj()}}var Fj=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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 r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${N(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${i.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${i.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function hM(){return{localeError:Fj()}}var qj=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={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\xE5de",ipv6:"IPv6-omr\xE5de",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 r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${N(r.values[0])}`:`Ugyldig valg: forventet en av ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${M(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function gM(){return{localeError:qj()}}var Zj=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return r=>{switch(r.code){case"invalid_type":return`F\xE2sit giren: umulan ${r.expected}, al\u0131nan ${a(r.input)}`;case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${N(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function vM(){return{localeError:Zj()}}var Hj=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0627\u0631\u06D0";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return r=>{switch(r.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a(r.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${M(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${M(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function yM(){return{localeError:Hj()}}var Vj=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return r=>{switch(r.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r.expected}, otrzymano ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function xM(){return{localeError:Vj()}}var Gj=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${r.expected}, recebido ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${N(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function bM(){return{localeError:Gj()}}function SM(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var Wj=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=SM(l,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=SM(l,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${M(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function wM(){return{localeError:Wj()}}var Jj=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${r.expected}, prejeto ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${M(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function IM(){return{localeError:Jj()}}var Xj=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${r.expected}, fick ${a(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${M(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function kM(){return{localeError:Xj()}}var Kj=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${M(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function _M(){return{localeError:Kj()}}var Yj=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return r=>{switch(r.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${M(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function CM(){return{localeError:Yj()}}var Qj=e=>{let 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},eB=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let a={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return n=>{switch(n.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${n.expected}, al\u0131nan ${Qj(n.input)}`;case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${M(n.values,"|")}`;case"too_big":{let r=n.inclusive?"<=":"<",o=t(n.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${r}${n.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${r}${n.maximum.toString()}`}case"too_small":{let r=n.inclusive?">=":">",o=t(n.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${r}${n.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${r}${n.minimum.toString()}`}case"invalid_format":{let r=n;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${a[r.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${M(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function LM(){return{localeError:eB()}}var tB=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${M(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function TM(){return{localeError:tB()}}var aB=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return r=>{switch(r.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a(r.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${M(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${M(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function AM(){return{localeError:aB()}}var rB=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return r=>{switch(r.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${M(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function EM(){return{localeError:rB()}}var nB=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${M(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function MM(){return{localeError:nB()}}var oB=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let a=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r.expected}\uFF0C\u4F46\u6536\u5230 ${a(r.input)}`;case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${M(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${M(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function OM(){return{localeError:oB()}}var iS=Symbol("ZodOutput"),lS=Symbol("ZodInput"),ql=class{constructor(){this._map=new Map,this._idmap=new Map}add(t,...a){let n=a[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){let a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){let a=t._zod.parent;if(a){let n={...this.get(a)??{}};return delete n.id,{...n,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function bp(){return new ql}var Cr=bp();function sS(e,t){return new e({type:"string",...P(t)})}function uS(e,t){return new e({type:"string",coerce:!0,...P(t)})}function Sp(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...P(t)})}function Xu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...P(t)})}function wp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...P(t)})}function Ip(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...P(t)})}function kp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...P(t)})}function _p(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...P(t)})}function Cp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...P(t)})}function Lp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...P(t)})}function Tp(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...P(t)})}function Ap(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...P(t)})}function Ep(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...P(t)})}function Mp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...P(t)})}function Op(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...P(t)})}function zp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...P(t)})}function Dp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...P(t)})}function Rp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...P(t)})}function $p(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...P(t)})}function Pp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...P(t)})}function Np(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...P(t)})}function Up(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...P(t)})}function jp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...P(t)})}function Bp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...P(t)})}var cS={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function dS(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...P(t)})}function fS(e,t){return new e({type:"string",format:"date",check:"string_format",...P(t)})}function pS(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...P(t)})}function mS(e,t){return new e({type:"string",format:"duration",check:"string_format",...P(t)})}function hS(e,t){return new e({type:"number",checks:[],...P(t)})}function gS(e,t){return new e({type:"number",coerce:!0,checks:[],...P(t)})}function vS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...P(t)})}function yS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...P(t)})}function xS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...P(t)})}function bS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...P(t)})}function SS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...P(t)})}function wS(e,t){return new e({type:"boolean",...P(t)})}function IS(e,t){return new e({type:"boolean",coerce:!0,...P(t)})}function kS(e,t){return new e({type:"bigint",...P(t)})}function _S(e,t){return new e({type:"bigint",coerce:!0,...P(t)})}function CS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...P(t)})}function LS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...P(t)})}function TS(e,t){return new e({type:"symbol",...P(t)})}function AS(e,t){return new e({type:"undefined",...P(t)})}function ES(e,t){return new e({type:"null",...P(t)})}function MS(e){return new e({type:"any"})}function Zl(e){return new e({type:"unknown"})}function OS(e,t){return new e({type:"never",...P(t)})}function zS(e,t){return new e({type:"void",...P(t)})}function DS(e,t){return new e({type:"date",...P(t)})}function RS(e,t){return new e({type:"date",coerce:!0,...P(t)})}function $S(e,t){return new e({type:"nan",...P(t)})}function ln(e,t){return new fp({check:"less_than",...P(t),value:e,inclusive:!1})}function Ga(e,t){return new fp({check:"less_than",...P(t),value:e,inclusive:!0})}function sn(e,t){return new pp({check:"greater_than",...P(t),value:e,inclusive:!1})}function ca(e,t){return new pp({check:"greater_than",...P(t),value:e,inclusive:!0})}function PS(e){return sn(0,e)}function NS(e){return ln(0,e)}function US(e){return Ga(0,e)}function jS(e){return ca(0,e)}function bi(e,t){return new Nx({check:"multiple_of",...P(t),value:e})}function Hl(e,t){return new Bx({check:"max_size",...P(t),maximum:e})}function Si(e,t){return new Fx({check:"min_size",...P(t),minimum:e})}function Ku(e,t){return new qx({check:"size_equals",...P(t),size:e})}function Vl(e,t){return new Zx({check:"max_length",...P(t),maximum:e})}function no(e,t){return new Hx({check:"min_length",...P(t),minimum:e})}function Gl(e,t){return new Vx({check:"length_equals",...P(t),length:e})}function Yu(e,t){return new Gx({check:"string_format",format:"regex",...P(t),pattern:e})}function Qu(e){return new Wx({check:"string_format",format:"lowercase",...P(e)})}function ec(e){return new Jx({check:"string_format",format:"uppercase",...P(e)})}function tc(e,t){return new Xx({check:"string_format",format:"includes",...P(t),includes:e})}function ac(e,t){return new Kx({check:"string_format",format:"starts_with",...P(t),prefix:e})}function rc(e,t){return new Yx({check:"string_format",format:"ends_with",...P(t),suffix:e})}function BS(e,t,a){return new Qx({check:"property",property:e,schema:t,...P(a)})}function nc(e,t){return new eb({check:"mime_type",mime:e,...P(t)})}function un(e){return new tb({check:"overwrite",tx:e})}function oc(e){return un(t=>t.normalize(e))}function ic(){return un(e=>e.trim())}function lc(){return un(e=>e.toLowerCase())}function sc(){return un(e=>e.toUpperCase())}function uc(e,t,a){return new e({type:"array",element:t,...P(a)})}function iB(e,t,a){return new e({type:"union",options:t,...P(a)})}function lB(e,t,a,n){return new e({type:"union",options:a,discriminator:t,...P(n)})}function sB(e,t,a){return new e({type:"intersection",left:t,right:a})}function FS(e,t,a,n){let r=a instanceof oe,o=r?n:a,i=r?a:null;return new e({type:"tuple",items:t,rest:i,...P(o)})}function uB(e,t,a,n){return new e({type:"record",keyType:t,valueType:a,...P(n)})}function cB(e,t,a,n){return new e({type:"map",keyType:t,valueType:a,...P(n)})}function dB(e,t,a){return new e({type:"set",valueType:t,...P(a)})}function fB(e,t,a){let n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:n,...P(a)})}function pB(e,t,a){return new e({type:"enum",entries:t,...P(a)})}function mB(e,t,a){return new e({type:"literal",values:Array.isArray(t)?t:[t],...P(a)})}function qS(e,t){return new e({type:"file",...P(t)})}function hB(e,t){return new e({type:"transform",transform:t})}function gB(e,t){return new e({type:"optional",innerType:t})}function vB(e,t){return new e({type:"nullable",innerType:t})}function yB(e,t,a){return new e({type:"default",innerType:t,get defaultValue(){return typeof a=="function"?a():a}})}function xB(e,t,a){return new e({type:"nonoptional",innerType:t,...P(a)})}function bB(e,t){return new e({type:"success",innerType:t})}function SB(e,t,a){return new e({type:"catch",innerType:t,catchValue:typeof a=="function"?a:()=>a})}function wB(e,t,a){return new e({type:"pipe",in:t,out:a})}function IB(e,t){return new e({type:"readonly",innerType:t})}function kB(e,t,a){return new e({type:"template_literal",parts:t,...P(a)})}function _B(e,t){return new e({type:"lazy",getter:t})}function CB(e,t){return new e({type:"promise",innerType:t})}function ZS(e,t,a){let n=P(a);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function HS(e,t,a){return new e({type:"custom",check:"custom",fn:t,...P(a)})}function VS(e,t){let a=P(t),n=a.truthy??["true","1","yes","on","y","enabled"],r=a.falsy??["false","0","no","off","n","disabled"];a.case!=="sensitive"&&(n=n.map(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(n),i=new Set(r),l=e.Pipe??Wu,s=e.Boolean??Hu,u=e.String??yi,c=e.Transform??Gu,d=new c({type:"transform",transform:(m,x)=>{let b=m;return a.case!=="sensitive"&&(b=b.toLowerCase()),o.has(b)?!0:i.has(b)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:x.value,inst:d}),{})},error:a.error}),p=new l({type:"pipe",in:new u({type:"string",error:a.error}),out:d,error:a.error});return new l({type:"pipe",in:p,out:new s({type:"boolean",error:a.error}),error:a.error})}function GS(e,t,a,n={}){let r=P(n),o={...P(n),check:"string_format",type:"string",format:t,fn:typeof a=="function"?a:l=>a.test(l),...r};return a instanceof RegExp&&(o.pattern=a),new e(o)}var Fp=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let a=((...n)=>{let r=this._def.input?ip(this._def.input,n,void 0,{callee:a}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=t(...r);return this._def.output?ip(this._def.output,o,void 0,{callee:a}):o});return a}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let a=(async(...n)=>{let r=this._def.input?await sp(this._def.input,n,void 0,{callee:a}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await t(...r);return this._def.output?sp(this._def.output,o,void 0,{callee:a}):o});return a}input(...t){let a=this.constructor;return Array.isArray(t[0])?new a({type:"function",input:new xi({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new a({type:"function",input:t[0],output:this._def.output})}output(t){let a=this.constructor;return new a({type:"function",input:this._def.input,output:t})}};function WS(e){return new Fp({type:"function",input:Array.isArray(e?.input)?FS(xi,e?.input):e?.input??uc(Vu,Zl(Fl)),output:e?.output??Zl(Fl)})}var cc=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??Cr,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,a={path:[],schemaPath:[]}){var n;let r=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},i=this.seen.get(t);if(i)return i.count++,a.schemaPath.includes(t)&&(i.cycle=a.path),i.schema;let l={schema:{},count:1,cycle:void 0,path:a.path};this.seen.set(t,l);let s=t._zod.toJSONSchema?.();if(s)l.schema=s;else{let d={...a,schemaPath:[...a.schemaPath,t],path:a.path},p=t._zod.parent;if(p)l.ref=p,this.process(p,d),this.seen.get(p).isParent=!0;else{let f=l.schema;switch(r.type){case"string":{let m=f;m.type="string";let{minimum:x,maximum:b,format:v,patterns:y,contentEncoding:g}=t._zod.bag;if(typeof x=="number"&&(m.minLength=x),typeof b=="number"&&(m.maxLength=b),v&&(m.format=o[v]??v,m.format===""&&delete m.format),g&&(m.contentEncoding=g),y&&y.size>0){let S=[...y];S.length===1?m.pattern=S[0].source:S.length>1&&(l.schema.allOf=[...S.map(L=>({...this.target==="draft-7"?{type:"string"}:{},pattern:L.source}))])}break}case"number":{let m=f,{minimum:x,maximum:b,format:v,multipleOf:y,exclusiveMaximum:g,exclusiveMinimum:S}=t._zod.bag;typeof v=="string"&&v.includes("int")?m.type="integer":m.type="number",typeof S=="number"&&(m.exclusiveMinimum=S),typeof x=="number"&&(m.minimum=x,typeof S=="number"&&(S>=x?delete m.minimum:delete m.exclusiveMinimum)),typeof g=="number"&&(m.exclusiveMaximum=g),typeof b=="number"&&(m.maximum=b,typeof g=="number"&&(g<=b?delete m.maximum:delete m.exclusiveMaximum)),typeof y=="number"&&(m.multipleOf=y);break}case"boolean":{let m=f;m.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":{f.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":{f.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let m=f,{minimum:x,maximum:b}=t._zod.bag;typeof x=="number"&&(m.minItems=x),typeof b=="number"&&(m.maxItems=b),m.type="array",m.items=this.process(r.element,{...d,path:[...d.path,"items"]});break}case"object":{let m=f;m.type="object",m.properties={};let x=r.shape;for(let y in x)m.properties[y]=this.process(x[y],{...d,path:[...d.path,"properties",y]});let b=new Set(Object.keys(x)),v=new Set([...b].filter(y=>{let g=r.shape[y]._zod;return this.io==="input"?g.optin===void 0:g.optout===void 0}));v.size>0&&(m.required=Array.from(v)),r.catchall?._zod.def.type==="never"?m.additionalProperties=!1:r.catchall?r.catchall&&(m.additionalProperties=this.process(r.catchall,{...d,path:[...d.path,"additionalProperties"]})):this.io==="output"&&(m.additionalProperties=!1);break}case"union":{let m=f;m.anyOf=r.options.map((x,b)=>this.process(x,{...d,path:[...d.path,"anyOf",b]}));break}case"intersection":{let m=f,x=this.process(r.left,{...d,path:[...d.path,"allOf",0]}),b=this.process(r.right,{...d,path:[...d.path,"allOf",1]}),v=g=>"allOf"in g&&Object.keys(g).length===1,y=[...v(x)?x.allOf:[x],...v(b)?b.allOf:[b]];m.allOf=y;break}case"tuple":{let m=f;m.type="array";let x=r.items.map((y,g)=>this.process(y,{...d,path:[...d.path,"prefixItems",g]}));if(this.target==="draft-2020-12"?m.prefixItems=x:m.items=x,r.rest){let y=this.process(r.rest,{...d,path:[...d.path,"items"]});this.target==="draft-2020-12"?m.items=y:m.additionalItems=y}r.rest&&(m.items=this.process(r.rest,{...d,path:[...d.path,"items"]}));let{minimum:b,maximum:v}=t._zod.bag;typeof b=="number"&&(m.minItems=b),typeof v=="number"&&(m.maxItems=v);break}case"record":{let m=f;m.type="object",m.propertyNames=this.process(r.keyType,{...d,path:[...d.path,"propertyNames"]}),m.additionalProperties=this.process(r.valueType,{...d,path:[...d.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":{let m=f,x=Ru(r.entries);x.every(b=>typeof b=="number")&&(m.type="number"),x.every(b=>typeof b=="string")&&(m.type="string"),m.enum=x;break}case"literal":{let m=f,x=[];for(let b of r.values)if(b===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof b=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");x.push(Number(b))}else x.push(b);if(x.length!==0)if(x.length===1){let b=x[0];m.type=b===null?"null":typeof b,m.const=b}else x.every(b=>typeof b=="number")&&(m.type="number"),x.every(b=>typeof b=="string")&&(m.type="string"),x.every(b=>typeof b=="boolean")&&(m.type="string"),x.every(b=>b===null)&&(m.type="null"),m.enum=x;break}case"file":{let m=f,x={type:"string",format:"binary",contentEncoding:"binary"},{minimum:b,maximum:v,mime:y}=t._zod.bag;b!==void 0&&(x.minLength=b),v!==void 0&&(x.maxLength=v),y?y.length===1?(x.contentMediaType=y[0],Object.assign(m,x)):m.anyOf=y.map(g=>({...x,contentMediaType:g})):Object.assign(m,x);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let m=this.process(r.innerType,d);f.anyOf=[m,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,d),l.ref=r.innerType;break}case"success":{let m=f;m.type="boolean";break}case"default":{this.process(r.innerType,d),l.ref=r.innerType,f.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,d),l.ref=r.innerType,this.io==="input"&&(f._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,d),l.ref=r.innerType;let m;try{m=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}f.default=m;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let m=f,x=t._zod.pattern;if(!x)throw new Error("Pattern not found in template literal");m.type="string",m.pattern=x.source;break}case"pipe":{let m=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(m,d),l.ref=m;break}case"readonly":{this.process(r.innerType,d),l.ref=r.innerType,f.readOnly=!0;break}case"promise":{this.process(r.innerType,d),l.ref=r.innerType;break}case"optional":{this.process(r.innerType,d),l.ref=r.innerType;break}case"lazy":{let m=t._zod.innerType;this.process(m,d),l.ref=m;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let u=this.metadataRegistry.get(t);return u&&Object.assign(l.schema,u),this.io==="input"&&_t(t)&&(delete l.schema.examples,delete l.schema.default),this.io==="input"&&l.schema._prefault&&((n=l.schema).default??(n.default=l.schema._prefault)),delete l.schema._prefault,this.seen.get(t).schema}emit(t,a){let n={cycles:a?.cycles??"ref",reused:a?.reused??"inline",external:a?.external??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=c=>{let d=this.target==="draft-2020-12"?"$defs":"definitions";if(n.external){let x=n.external.registry.get(c[0])?.id,b=n.external.uri??(y=>y);if(x)return{ref:b(x)};let v=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=v,{defId:v,ref:`${b("__shared")}#/${d}/${v}`}}if(c[1]===r)return{ref:"#"};let f=`#/${d}/`,m=c[1].schema.id??`__schema${this.counter++}`;return{defId:m,ref:f+m}},i=c=>{if(c[1].schema.$ref)return;let d=c[1],{ref:p,defId:f}=o(c);d.def={...d.schema},f&&(d.defId=f);let m=d.schema;for(let x in m)delete m[x];m.$ref=p};if(n.cycles==="throw")for(let c of this.seen.entries()){let d=c[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
|
|
72
72
|
|
|
73
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let c of this.seen.entries()){let d=c[1];if(t===c[0]){i(c);continue}if(n.external){let f=n.external.registry.get(c[0])?.id;if(t!==c[0]&&f){i(c);continue}}if(this.metadataRegistry.get(c[0])?.id){i(c);continue}if(d.cycle){i(c);continue}if(d.count>1&&n.reused==="ref"){i(c);continue}}let l=(c,d)=>{let p=this.seen.get(c),f=p.def??p.schema,m={...f};if(p.ref===null)return;let x=p.ref;if(p.ref=null,x){l(x,d);let b=this.seen.get(x).schema;b.$ref&&d.target==="draft-7"?(f.allOf=f.allOf??[],f.allOf.push(b)):(Object.assign(f,b),Object.assign(f,m))}p.isParent||this.override({zodSchema:c,jsonSchema:f,path:p.path??[]})};for(let c of[...this.seen.entries()].reverse())l(c[0],{target:this.target});let s={};if(this.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?s.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),n.external?.uri){let c=n.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");s.$id=n.external.uri(c)}Object.assign(s,r.def);let u=n.external?.defs??{};for(let c of this.seen.entries()){let d=c[1];d.def&&d.defId&&(u[d.defId]=d.def)}n.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?s.$defs=u:s.definitions=u);try{return JSON.parse(JSON.stringify(s))}catch{throw new Error("Error converting schema to JSON.")}}};function sc(e,t){if(e instanceof jl){let n=new lc(t),r={};for(let l of e._idmap.entries()){let[s,u]=l;n.process(u)}let o={},i={registry:e,uri:t?.uri,defs:r};for(let l of e._idmap.entries()){let[s,u]=l;o[s]=n.emit(u,{...t,external:i})}if(Object.keys(r).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[l]:r}}return{schemas:o}}let a=new lc(t);return a.process(e),a.emit(e,t)}function wt(e,t){let a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let r=e._zod.def;switch(r.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 wt(r.element,a);case"object":{for(let o in r.shape)if(wt(r.shape[o],a))return!0;return!1}case"union":{for(let o of r.options)if(wt(o,a))return!0;return!1}case"intersection":return wt(r.left,a)||wt(r.right,a);case"tuple":{for(let o of r.items)if(wt(o,a))return!0;return!!(r.rest&&wt(r.rest,a))}case"record":return wt(r.keyType,a)||wt(r.valueType,a);case"map":return wt(r.keyType,a)||wt(r.valueType,a);case"set":return wt(r.valueType,a);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return wt(r.innerType,a);case"lazy":return wt(r.getter(),a);case"default":return wt(r.innerType,a);case"prefault":return wt(r.innerType,a);case"custom":return!1;case"transform":return!0;case"pipe":return wt(r.in,a)||wt(r.out,a);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${r.type}`)}var EM={};var Zp={};lr(Zp,{ZodISODate:()=>Bp,ZodISODateTime:()=>jp,ZodISODuration:()=>qp,ZodISOTime:()=>Fp,date:()=>VS,datetime:()=>HS,duration:()=>JS,time:()=>GS});var jp=C("ZodISODateTime",(e,t)=>{db.init(e,t),He.init(e,t)});function HS(e){return lS(jp,e)}var Bp=C("ZodISODate",(e,t)=>{fb.init(e,t),He.init(e,t)});function VS(e){return sS(Bp,e)}var Fp=C("ZodISOTime",(e,t)=>{pb.init(e,t),He.init(e,t)});function GS(e){return uS(Fp,e)}var qp=C("ZodISODuration",(e,t)=>{mb.init(e,t),He.init(e,t)});function JS(e){return cS(qp,e)}var OM=(e,t)=>{Nu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>ju(e,a)},flatten:{value:a=>Uu(e,a)},addIssue:{value:a=>e.issues.push(a)},addIssues:{value:a=>e.issues.push(...a)},isEmpty:{get(){return e.issues.length===0}}})},wB=C("ZodError",OM),Hl=C("ZodError",OM,{Parent:Error});var XS=ap(Hl),WS=np(Hl),KS=ip(Hl),uc=lp(Hl);var he=C("ZodType",(e,t)=>(oe.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone({...t,checks:[...t.checks??[],...a.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(a,n)=>Ia(e,a,n),e.brand=()=>e,e.register=((a,n)=>(a.add(e,n),e)),e.parse=(a,n)=>XS(e,a,n,{callee:e.parse}),e.safeParse=(a,n)=>KS(e,a,n),e.parseAsync=async(a,n)=>WS(e,a,n,{callee:e.parseAsync}),e.safeParseAsync=async(a,n)=>uc(e,a,n),e.spa=e.safeParseAsync,e.refine=(a,n)=>e.check(xO(a,n)),e.superRefine=a=>e.check(bO(a)),e.overwrite=a=>e.check(on(a)),e.optional=()=>Gp(e),e.nullable=()=>Jp(e),e.nullish=()=>Gp(Jp(e)),e.nonoptional=a=>lO(e,a),e.array=()=>xw(e),e.or=a=>Qp([e,a]),e.and=a=>GM(e,a),e.transform=a=>Xp(e,Iw(a)),e.default=a=>nO(e,a),e.prefault=a=>iO(e,a),e.catch=a=>cO(e,a),e.pipe=a=>Xp(e,a),e.readonly=()=>pO(e),e.describe=a=>{let n=e.clone();return Ir.add(n,{description:a}),n},Object.defineProperty(e,"description",{get(){return Ir.get(e)?.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return Ir.get(e);let n=e.clone();return Ir.add(n,a[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ew=C("_ZodString",(e,t)=>{hi.init(e,t),he.init(e,t);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...n)=>e.check(Xu(...n)),e.includes=(...n)=>e.check(Yu(...n)),e.startsWith=(...n)=>e.check(Qu(...n)),e.endsWith=(...n)=>e.check(ec(...n)),e.min=(...n)=>e.check(to(...n)),e.max=(...n)=>e.check(ql(...n)),e.length=(...n)=>e.check(Zl(...n)),e.nonempty=(...n)=>e.check(to(1,...n)),e.lowercase=n=>e.check(Wu(n)),e.uppercase=n=>e.check(Ku(n)),e.trim=()=>e.check(rc()),e.normalize=(...n)=>e.check(ac(...n)),e.toLowerCase=()=>e.check(nc()),e.toUpperCase=()=>e.check(oc())}),dc=C("ZodString",(e,t)=>{hi.init(e,t),ew.init(e,t),e.email=a=>e.check(yp(tw,a)),e.url=a=>e.check(Ip(aw,a)),e.jwt=a=>e.check(Np(vw,a)),e.emoji=a=>e.check(kp(rw,a)),e.guid=a=>e.check(Gu(Hp,a)),e.uuid=a=>e.check(xp(sn,a)),e.uuidv4=a=>e.check(bp(sn,a)),e.uuidv6=a=>e.check(Sp(sn,a)),e.uuidv7=a=>e.check(wp(sn,a)),e.nanoid=a=>e.check(_p(nw,a)),e.guid=a=>e.check(Gu(Hp,a)),e.cuid=a=>e.check(Cp(ow,a)),e.cuid2=a=>e.check(Lp(iw,a)),e.ulid=a=>e.check(Tp(lw,a)),e.base64=a=>e.check(Rp(mw,a)),e.base64url=a=>e.check($p(hw,a)),e.xid=a=>e.check(Ap(sw,a)),e.ksuid=a=>e.check(Ep(uw,a)),e.ipv4=a=>e.check(Mp(cw,a)),e.ipv6=a=>e.check(Op(dw,a)),e.cidrv4=a=>e.check(zp(fw,a)),e.cidrv6=a=>e.check(Dp(pw,a)),e.e164=a=>e.check(Pp(gw,a)),e.datetime=a=>e.check(HS(a)),e.date=a=>e.check(VS(a)),e.time=a=>e.check(GS(a)),e.duration=a=>e.check(JS(a))});function YS(e){return nS(dc,e)}var He=C("ZodStringFormat",(e,t)=>{qe.init(e,t),ew.init(e,t)}),tw=C("ZodEmail",(e,t)=>{ab.init(e,t),He.init(e,t)});function kB(e){return yp(tw,e)}var Hp=C("ZodGUID",(e,t)=>{eb.init(e,t),He.init(e,t)});function _B(e){return Gu(Hp,e)}var sn=C("ZodUUID",(e,t)=>{tb.init(e,t),He.init(e,t)});function CB(e){return xp(sn,e)}function LB(e){return bp(sn,e)}function TB(e){return Sp(sn,e)}function AB(e){return wp(sn,e)}var aw=C("ZodURL",(e,t)=>{rb.init(e,t),He.init(e,t)});function EB(e){return Ip(aw,e)}var rw=C("ZodEmoji",(e,t)=>{nb.init(e,t),He.init(e,t)});function MB(e){return kp(rw,e)}var nw=C("ZodNanoID",(e,t)=>{ob.init(e,t),He.init(e,t)});function OB(e){return _p(nw,e)}var ow=C("ZodCUID",(e,t)=>{ib.init(e,t),He.init(e,t)});function zB(e){return Cp(ow,e)}var iw=C("ZodCUID2",(e,t)=>{lb.init(e,t),He.init(e,t)});function DB(e){return Lp(iw,e)}var lw=C("ZodULID",(e,t)=>{sb.init(e,t),He.init(e,t)});function RB(e){return Tp(lw,e)}var sw=C("ZodXID",(e,t)=>{ub.init(e,t),He.init(e,t)});function $B(e){return Ap(sw,e)}var uw=C("ZodKSUID",(e,t)=>{cb.init(e,t),He.init(e,t)});function PB(e){return Ep(uw,e)}var cw=C("ZodIPv4",(e,t)=>{hb.init(e,t),He.init(e,t)});function NB(e){return Mp(cw,e)}var dw=C("ZodIPv6",(e,t)=>{gb.init(e,t),He.init(e,t)});function UB(e){return Op(dw,e)}var fw=C("ZodCIDRv4",(e,t)=>{vb.init(e,t),He.init(e,t)});function jB(e){return zp(fw,e)}var pw=C("ZodCIDRv6",(e,t)=>{yb.init(e,t),He.init(e,t)});function BB(e){return Dp(pw,e)}var mw=C("ZodBase64",(e,t)=>{bb.init(e,t),He.init(e,t)});function FB(e){return Rp(mw,e)}var hw=C("ZodBase64URL",(e,t)=>{Sb.init(e,t),He.init(e,t)});function qB(e){return $p(hw,e)}var gw=C("ZodE164",(e,t)=>{wb.init(e,t),He.init(e,t)});function ZB(e){return Pp(gw,e)}var vw=C("ZodJWT",(e,t)=>{Ib.init(e,t),He.init(e,t)});function HB(e){return Np(vw,e)}var zM=C("ZodCustomStringFormat",(e,t)=>{kb.init(e,t),He.init(e,t)});function VB(e,t,a={}){return qS(zM,e,t,a)}var fc=C("ZodNumber",(e,t)=>{pp.init(e,t),he.init(e,t),e.gt=(n,r)=>e.check(nn(n,r)),e.gte=(n,r)=>e.check(sa(n,r)),e.min=(n,r)=>e.check(sa(n,r)),e.lt=(n,r)=>e.check(rn(n,r)),e.lte=(n,r)=>e.check(Za(n,r)),e.max=(n,r)=>e.check(Za(n,r)),e.int=n=>e.check(QS(n)),e.safe=n=>e.check(QS(n)),e.positive=n=>e.check(nn(0,n)),e.nonnegative=n=>e.check(sa(0,n)),e.negative=n=>e.check(rn(0,n)),e.nonpositive=n=>e.check(Za(0,n)),e.multipleOf=(n,r)=>e.check(vi(n,r)),e.step=(n,r)=>e.check(vi(n,r)),e.finite=()=>e;let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function DM(e){return dS(fc,e)}var Vl=C("ZodNumberFormat",(e,t)=>{_b.init(e,t),fc.init(e,t)});function QS(e){return pS(Vl,e)}function GB(e){return mS(Vl,e)}function JB(e){return hS(Vl,e)}function XB(e){return gS(Vl,e)}function WB(e){return vS(Vl,e)}var pc=C("ZodBoolean",(e,t)=>{Fu.init(e,t),he.init(e,t)});function RM(e){return yS(pc,e)}var mc=C("ZodBigInt",(e,t)=>{mp.init(e,t),he.init(e,t),e.gte=(n,r)=>e.check(sa(n,r)),e.min=(n,r)=>e.check(sa(n,r)),e.gt=(n,r)=>e.check(nn(n,r)),e.gte=(n,r)=>e.check(sa(n,r)),e.min=(n,r)=>e.check(sa(n,r)),e.lt=(n,r)=>e.check(rn(n,r)),e.lte=(n,r)=>e.check(Za(n,r)),e.max=(n,r)=>e.check(Za(n,r)),e.positive=n=>e.check(nn(BigInt(0),n)),e.negative=n=>e.check(rn(BigInt(0),n)),e.nonpositive=n=>e.check(Za(BigInt(0),n)),e.nonnegative=n=>e.check(sa(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(vi(n,r));let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function KB(e){return bS(mc,e)}var yw=C("ZodBigIntFormat",(e,t)=>{Cb.init(e,t),mc.init(e,t)});function YB(e){return wS(yw,e)}function QB(e){return IS(yw,e)}var $M=C("ZodSymbol",(e,t)=>{Lb.init(e,t),he.init(e,t)});function eF(e){return kS($M,e)}var PM=C("ZodUndefined",(e,t)=>{Tb.init(e,t),he.init(e,t)});function tF(e){return _S(PM,e)}var NM=C("ZodNull",(e,t)=>{Ab.init(e,t),he.init(e,t)});function UM(e){return CS(NM,e)}var jM=C("ZodAny",(e,t)=>{Eb.init(e,t),he.init(e,t)});function aF(){return LS(jM)}var BM=C("ZodUnknown",(e,t)=>{Ul.init(e,t),he.init(e,t)});function Vp(){return Bl(BM)}var FM=C("ZodNever",(e,t)=>{Mb.init(e,t),he.init(e,t)});function Wp(e){return TS(FM,e)}var qM=C("ZodVoid",(e,t)=>{Ob.init(e,t),he.init(e,t)});function rF(e){return AS(qM,e)}var Kp=C("ZodDate",(e,t)=>{zb.init(e,t),he.init(e,t),e.min=(n,r)=>e.check(sa(n,r)),e.max=(n,r)=>e.check(Za(n,r));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function nF(e){return ES(Kp,e)}var ZM=C("ZodArray",(e,t)=>{qu.init(e,t),he.init(e,t),e.element=t.element,e.min=(a,n)=>e.check(to(a,n)),e.nonempty=a=>e.check(to(1,a)),e.max=(a,n)=>e.check(ql(a,n)),e.length=(a,n)=>e.check(Zl(a,n)),e.unwrap=()=>e.element});function xw(e,t){return ic(ZM,e,t)}function oF(e){let t=e._zod.def.shape;return eO(Object.keys(t))}var Yp=C("ZodObject",(e,t)=>{Db.init(e,t),he.init(e,t),U.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>YM(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Vp()}),e.loose=()=>e.clone({...e._zod.def,catchall:Vp()}),e.strict=()=>e.clone({...e._zod.def,catchall:Wp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>U.extend(e,a),e.merge=a=>U.merge(e,a),e.pick=a=>U.pick(e,a),e.omit=a=>U.omit(e,a),e.partial=(...a)=>U.partial(kw,e,a[0]),e.required=(...a)=>U.required(_w,e,a[0])});function iF(e,t){let a={type:"object",get shape(){return U.assignProp(this,"shape",{...e}),this.shape},...U.normalizeParams(t)};return new Yp(a)}function lF(e,t){return new Yp({type:"object",get shape(){return U.assignProp(this,"shape",{...e}),this.shape},catchall:Wp(),...U.normalizeParams(t)})}function sF(e,t){return new Yp({type:"object",get shape(){return U.assignProp(this,"shape",{...e}),this.shape},catchall:Vp(),...U.normalizeParams(t)})}var bw=C("ZodUnion",(e,t)=>{hp.init(e,t),he.init(e,t),e.options=t.options});function Qp(e,t){return new bw({type:"union",options:e,...U.normalizeParams(t)})}var HM=C("ZodDiscriminatedUnion",(e,t)=>{bw.init(e,t),Rb.init(e,t)});function uF(e,t,a){return new HM({type:"union",options:t,discriminator:e,...U.normalizeParams(a)})}var VM=C("ZodIntersection",(e,t)=>{$b.init(e,t),he.init(e,t)});function GM(e,t){return new VM({type:"intersection",left:e,right:t})}var JM=C("ZodTuple",(e,t)=>{gi.init(e,t),he.init(e,t),e.rest=a=>e.clone({...e._zod.def,rest:a})});function cF(e,t,a){let n=t instanceof oe,r=n?a:t,o=n?t:null;return new JM({type:"tuple",items:e,rest:o,...U.normalizeParams(r)})}var Sw=C("ZodRecord",(e,t)=>{Pb.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function XM(e,t,a){return new Sw({type:"record",keyType:e,valueType:t,...U.normalizeParams(a)})}function dF(e,t,a){return new Sw({type:"record",keyType:Qp([e,Wp()]),valueType:t,...U.normalizeParams(a)})}var WM=C("ZodMap",(e,t)=>{Nb.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function fF(e,t,a){return new WM({type:"map",keyType:e,valueType:t,...U.normalizeParams(a)})}var KM=C("ZodSet",(e,t)=>{Ub.init(e,t),he.init(e,t),e.min=(...a)=>e.check(yi(...a)),e.nonempty=a=>e.check(yi(1,a)),e.max=(...a)=>e.check(Fl(...a)),e.size=(...a)=>e.check(Ju(...a))});function pF(e,t){return new KM({type:"set",valueType:e,...U.normalizeParams(t)})}var cc=C("ZodEnum",(e,t)=>{jb.init(e,t),he.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let a=new Set(Object.keys(t.entries));e.extract=(n,r)=>{let o={};for(let i of n)if(a.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new cc({...t,checks:[],...U.normalizeParams(r),entries:o})},e.exclude=(n,r)=>{let o={...t.entries};for(let i of n)if(a.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new cc({...t,checks:[],...U.normalizeParams(r),entries:o})}});function YM(e,t){let a=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new cc({type:"enum",entries:a,...U.normalizeParams(t)})}function mF(e,t){return new cc({type:"enum",entries:e,...U.normalizeParams(t)})}var QM=C("ZodLiteral",(e,t)=>{Bb.init(e,t),he.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 eO(e,t){return new QM({type:"literal",values:Array.isArray(e)?e:[e],...U.normalizeParams(t)})}var tO=C("ZodFile",(e,t)=>{Fb.init(e,t),he.init(e,t),e.min=(a,n)=>e.check(yi(a,n)),e.max=(a,n)=>e.check(Fl(a,n)),e.mime=(a,n)=>e.check(tc(Array.isArray(a)?a:[a],n))});function hF(e){return US(tO,e)}var ww=C("ZodTransform",(e,t)=>{Zu.init(e,t),he.init(e,t),e._zod.parse=(a,n)=>{a.addIssue=o=>{if(typeof o=="string")a.issues.push(U.issue(o,a.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=a.value),i.inst??(i.inst=e),i.continue??(i.continue=!0),a.issues.push(U.issue(i))}};let r=t.transform(a.value,a);return r instanceof Promise?r.then(o=>(a.value=o,a)):(a.value=r,a)}});function Iw(e){return new ww({type:"transform",transform:e})}var kw=C("ZodOptional",(e,t)=>{qb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gp(e){return new kw({type:"optional",innerType:e})}var aO=C("ZodNullable",(e,t)=>{Zb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Jp(e){return new aO({type:"nullable",innerType:e})}function gF(e){return Gp(Jp(e))}var rO=C("ZodDefault",(e,t)=>{Hb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nO(e,t){return new rO({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var oO=C("ZodPrefault",(e,t)=>{Vb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function iO(e,t){return new oO({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var _w=C("ZodNonOptional",(e,t)=>{Gb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function lO(e,t){return new _w({type:"nonoptional",innerType:e,...U.normalizeParams(t)})}var sO=C("ZodSuccess",(e,t)=>{Jb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function vF(e){return new sO({type:"success",innerType:e})}var uO=C("ZodCatch",(e,t)=>{Xb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cO(e,t){return new uO({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var dO=C("ZodNaN",(e,t)=>{Wb.init(e,t),he.init(e,t)});function yF(e){return OS(dO,e)}var Cw=C("ZodPipe",(e,t)=>{Hu.init(e,t),he.init(e,t),e.in=t.in,e.out=t.out});function Xp(e,t){return new Cw({type:"pipe",in:e,out:t})}var fO=C("ZodReadonly",(e,t)=>{Kb.init(e,t),he.init(e,t)});function pO(e){return new fO({type:"readonly",innerType:e})}var mO=C("ZodTemplateLiteral",(e,t)=>{Yb.init(e,t),he.init(e,t)});function xF(e,t){return new mO({type:"template_literal",parts:e,...U.normalizeParams(t)})}var hO=C("ZodLazy",(e,t)=>{eS.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.getter()});function gO(e){return new hO({type:"lazy",getter:e})}var vO=C("ZodPromise",(e,t)=>{Qb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bF(e){return new vO({type:"promise",innerType:e})}var em=C("ZodCustom",(e,t)=>{tS.init(e,t),he.init(e,t)});function yO(e){let t=new at({check:"custom"});return t._zod.check=e,t}function SF(e,t){return jS(em,e??(()=>!0),t)}function xO(e,t={}){return BS(em,e,t)}function bO(e){let t=yO(a=>(a.addIssue=n=>{if(typeof n=="string")a.issues.push(U.issue(n,a.value,t._zod.def));else{let r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=a.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),a.issues.push(U.issue(r))}},e(a.value,a)));return t}function wF(e,t={error:`Input not instance of ${e.name}`}){let a=new em({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...U.normalizeParams(t)});return a._zod.bag.Class=e,a}var IF=(...e)=>FS({Pipe:Cw,Boolean:pc,String:dc,Transform:ww},...e);function kF(e){let t=gO(()=>Qp([YS(e),DM(),RM(),UM(),xw(t),XM(YS(),t)]));return t}function _F(e,t){return Xp(Iw(e),t)}var CF={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 LF(e){yt({customError:e})}function TF(){return yt().customError}var Lw={};lr(Lw,{bigint:()=>OF,boolean:()=>MF,date:()=>zF,number:()=>EF,string:()=>AF});function AF(e){return oS(dc,e)}function EF(e){return fS(fc,e)}function MF(e){return xS(pc,e)}function OF(e){return SS(mc,e)}function zF(e){return MS(Kp,e)}yt(gp());var tm=class extends Error{constructor(t,a){super(t),this.name="ParseError",this.type=a.type,this.field=a.field,this.value=a.value,this.line=a.line}};function Tw(e){}function SO(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=Tw,onError:a=Tw,onRetry:n=Tw,onComment:r}=e,o="",i=!0,l,s="",u="";function c(x){let b=i?x.replace(/^\xEF\xBB\xBF/,""):x,[v,y]=DF(`${o}${b}`);for(let g of v)d(g);o=y,i=!1}function d(x){if(x===""){f();return}if(x.startsWith(":")){r&&r(x.slice(x.startsWith(": ")?2:1));return}let b=x.indexOf(":");if(b!==-1){let v=x.slice(0,b),y=x[b+1]===" "?2:1,g=x.slice(b+y);p(v,g,x);return}p(x,"",x)}function p(x,b,v){switch(x){case"event":u=b;break;case"data":s=`${s}${b}
|
|
74
|
-
`;break;case"id":l=b.includes("\0")?void 0:b;break;case"retry":/^\d+$/.test(b)?n(parseInt(b,10)):a(new
|
|
75
|
-
`)?s.slice(0,-1):s}),l=void 0,s="",u=""}function m(x={}){o&&x.consume&&d(o),i=!0,l=void 0,s="",u="",o=""}return{feed:c,reset:m}}function
|
|
73
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let c of this.seen.entries()){let d=c[1];if(t===c[0]){i(c);continue}if(n.external){let f=n.external.registry.get(c[0])?.id;if(t!==c[0]&&f){i(c);continue}}if(this.metadataRegistry.get(c[0])?.id){i(c);continue}if(d.cycle){i(c);continue}if(d.count>1&&n.reused==="ref"){i(c);continue}}let l=(c,d)=>{let p=this.seen.get(c),f=p.def??p.schema,m={...f};if(p.ref===null)return;let x=p.ref;if(p.ref=null,x){l(x,d);let b=this.seen.get(x).schema;b.$ref&&d.target==="draft-7"?(f.allOf=f.allOf??[],f.allOf.push(b)):(Object.assign(f,b),Object.assign(f,m))}p.isParent||this.override({zodSchema:c,jsonSchema:f,path:p.path??[]})};for(let c of[...this.seen.entries()].reverse())l(c[0],{target:this.target});let s={};if(this.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?s.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),n.external?.uri){let c=n.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");s.$id=n.external.uri(c)}Object.assign(s,r.def);let u=n.external?.defs??{};for(let c of this.seen.entries()){let d=c[1];d.def&&d.defId&&(u[d.defId]=d.def)}n.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?s.$defs=u:s.definitions=u);try{return JSON.parse(JSON.stringify(s))}catch{throw new Error("Error converting schema to JSON.")}}};function dc(e,t){if(e instanceof ql){let n=new cc(t),r={};for(let l of e._idmap.entries()){let[s,u]=l;n.process(u)}let o={},i={registry:e,uri:t?.uri,defs:r};for(let l of e._idmap.entries()){let[s,u]=l;o[s]=n.emit(u,{...t,external:i})}if(Object.keys(r).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[l]:r}}return{schemas:o}}let a=new cc(t);return a.process(e),a.emit(e,t)}function _t(e,t){let a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let r=e._zod.def;switch(r.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 _t(r.element,a);case"object":{for(let o in r.shape)if(_t(r.shape[o],a))return!0;return!1}case"union":{for(let o of r.options)if(_t(o,a))return!0;return!1}case"intersection":return _t(r.left,a)||_t(r.right,a);case"tuple":{for(let o of r.items)if(_t(o,a))return!0;return!!(r.rest&&_t(r.rest,a))}case"record":return _t(r.keyType,a)||_t(r.valueType,a);case"map":return _t(r.keyType,a)||_t(r.valueType,a);case"set":return _t(r.valueType,a);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return _t(r.innerType,a);case"lazy":return _t(r.getter(),a);case"default":return _t(r.innerType,a);case"prefault":return _t(r.innerType,a);case"custom":return!1;case"transform":return!0;case"pipe":return _t(r.in,a)||_t(r.out,a);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${r.type}`)}var zM={};var Gp={};cr(Gp,{ZodISODate:()=>Zp,ZodISODateTime:()=>qp,ZodISODuration:()=>Vp,ZodISOTime:()=>Hp,date:()=>XS,datetime:()=>JS,duration:()=>YS,time:()=>KS});var qp=C("ZodISODateTime",(e,t)=>{hb.init(e,t),Ve.init(e,t)});function JS(e){return dS(qp,e)}var Zp=C("ZodISODate",(e,t)=>{gb.init(e,t),Ve.init(e,t)});function XS(e){return fS(Zp,e)}var Hp=C("ZodISOTime",(e,t)=>{vb.init(e,t),Ve.init(e,t)});function KS(e){return pS(Hp,e)}var Vp=C("ZodISODuration",(e,t)=>{yb.init(e,t),Ve.init(e,t)});function YS(e){return mS(Vp,e)}var RM=(e,t)=>{Bu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>qu(e,a)},flatten:{value:a=>Fu(e,a)},addIssue:{value:a=>e.issues.push(a)},addIssues:{value:a=>e.issues.push(...a)},isEmpty:{get(){return e.issues.length===0}}})},TB=C("ZodError",RM),Wl=C("ZodError",RM,{Parent:Error});var QS=op(Wl),ew=lp(Wl),tw=up(Wl),fc=cp(Wl);var he=C("ZodType",(e,t)=>(oe.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone({...t,checks:[...t.checks??[],...a.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(a,n)=>_a(e,a,n),e.brand=()=>e,e.register=((a,n)=>(a.add(e,n),e)),e.parse=(a,n)=>QS(e,a,n,{callee:e.parse}),e.safeParse=(a,n)=>tw(e,a,n),e.parseAsync=async(a,n)=>ew(e,a,n,{callee:e.parseAsync}),e.safeParseAsync=async(a,n)=>fc(e,a,n),e.spa=e.safeParseAsync,e.refine=(a,n)=>e.check(wO(a,n)),e.superRefine=a=>e.check(IO(a)),e.overwrite=a=>e.check(un(a)),e.optional=()=>Xp(e),e.nullable=()=>Kp(e),e.nullish=()=>Xp(Kp(e)),e.nonoptional=a=>cO(e,a),e.array=()=>Iw(e),e.or=a=>am([e,a]),e.and=a=>XM(e,a),e.transform=a=>Yp(e,Lw(a)),e.default=a=>lO(e,a),e.prefault=a=>uO(e,a),e.catch=a=>pO(e,a),e.pipe=a=>Yp(e,a),e.readonly=()=>gO(e),e.describe=a=>{let n=e.clone();return Cr.add(n,{description:a}),n},Object.defineProperty(e,"description",{get(){return Cr.get(e)?.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return Cr.get(e);let n=e.clone();return Cr.add(n,a[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),nw=C("_ZodString",(e,t)=>{yi.init(e,t),he.init(e,t);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...n)=>e.check(Yu(...n)),e.includes=(...n)=>e.check(tc(...n)),e.startsWith=(...n)=>e.check(ac(...n)),e.endsWith=(...n)=>e.check(rc(...n)),e.min=(...n)=>e.check(no(...n)),e.max=(...n)=>e.check(Vl(...n)),e.length=(...n)=>e.check(Gl(...n)),e.nonempty=(...n)=>e.check(no(1,...n)),e.lowercase=n=>e.check(Qu(n)),e.uppercase=n=>e.check(ec(n)),e.trim=()=>e.check(ic()),e.normalize=(...n)=>e.check(oc(...n)),e.toLowerCase=()=>e.check(lc()),e.toUpperCase=()=>e.check(sc())}),mc=C("ZodString",(e,t)=>{yi.init(e,t),nw.init(e,t),e.email=a=>e.check(Sp(ow,a)),e.url=a=>e.check(Cp(iw,a)),e.jwt=a=>e.check(Bp(Sw,a)),e.emoji=a=>e.check(Lp(lw,a)),e.guid=a=>e.check(Xu(Wp,a)),e.uuid=a=>e.check(wp(dn,a)),e.uuidv4=a=>e.check(Ip(dn,a)),e.uuidv6=a=>e.check(kp(dn,a)),e.uuidv7=a=>e.check(_p(dn,a)),e.nanoid=a=>e.check(Tp(sw,a)),e.guid=a=>e.check(Xu(Wp,a)),e.cuid=a=>e.check(Ap(uw,a)),e.cuid2=a=>e.check(Ep(cw,a)),e.ulid=a=>e.check(Mp(dw,a)),e.base64=a=>e.check(Np(yw,a)),e.base64url=a=>e.check(Up(xw,a)),e.xid=a=>e.check(Op(fw,a)),e.ksuid=a=>e.check(zp(pw,a)),e.ipv4=a=>e.check(Dp(mw,a)),e.ipv6=a=>e.check(Rp(hw,a)),e.cidrv4=a=>e.check($p(gw,a)),e.cidrv6=a=>e.check(Pp(vw,a)),e.e164=a=>e.check(jp(bw,a)),e.datetime=a=>e.check(JS(a)),e.date=a=>e.check(XS(a)),e.time=a=>e.check(KS(a)),e.duration=a=>e.check(YS(a))});function aw(e){return sS(mc,e)}var Ve=C("ZodStringFormat",(e,t)=>{Ze.init(e,t),nw.init(e,t)}),ow=C("ZodEmail",(e,t)=>{ib.init(e,t),Ve.init(e,t)});function EB(e){return Sp(ow,e)}var Wp=C("ZodGUID",(e,t)=>{nb.init(e,t),Ve.init(e,t)});function MB(e){return Xu(Wp,e)}var dn=C("ZodUUID",(e,t)=>{ob.init(e,t),Ve.init(e,t)});function OB(e){return wp(dn,e)}function zB(e){return Ip(dn,e)}function DB(e){return kp(dn,e)}function RB(e){return _p(dn,e)}var iw=C("ZodURL",(e,t)=>{lb.init(e,t),Ve.init(e,t)});function $B(e){return Cp(iw,e)}var lw=C("ZodEmoji",(e,t)=>{sb.init(e,t),Ve.init(e,t)});function PB(e){return Lp(lw,e)}var sw=C("ZodNanoID",(e,t)=>{ub.init(e,t),Ve.init(e,t)});function NB(e){return Tp(sw,e)}var uw=C("ZodCUID",(e,t)=>{cb.init(e,t),Ve.init(e,t)});function UB(e){return Ap(uw,e)}var cw=C("ZodCUID2",(e,t)=>{db.init(e,t),Ve.init(e,t)});function jB(e){return Ep(cw,e)}var dw=C("ZodULID",(e,t)=>{fb.init(e,t),Ve.init(e,t)});function BB(e){return Mp(dw,e)}var fw=C("ZodXID",(e,t)=>{pb.init(e,t),Ve.init(e,t)});function FB(e){return Op(fw,e)}var pw=C("ZodKSUID",(e,t)=>{mb.init(e,t),Ve.init(e,t)});function qB(e){return zp(pw,e)}var mw=C("ZodIPv4",(e,t)=>{xb.init(e,t),Ve.init(e,t)});function ZB(e){return Dp(mw,e)}var hw=C("ZodIPv6",(e,t)=>{bb.init(e,t),Ve.init(e,t)});function HB(e){return Rp(hw,e)}var gw=C("ZodCIDRv4",(e,t)=>{Sb.init(e,t),Ve.init(e,t)});function VB(e){return $p(gw,e)}var vw=C("ZodCIDRv6",(e,t)=>{wb.init(e,t),Ve.init(e,t)});function GB(e){return Pp(vw,e)}var yw=C("ZodBase64",(e,t)=>{kb.init(e,t),Ve.init(e,t)});function WB(e){return Np(yw,e)}var xw=C("ZodBase64URL",(e,t)=>{_b.init(e,t),Ve.init(e,t)});function JB(e){return Up(xw,e)}var bw=C("ZodE164",(e,t)=>{Cb.init(e,t),Ve.init(e,t)});function XB(e){return jp(bw,e)}var Sw=C("ZodJWT",(e,t)=>{Lb.init(e,t),Ve.init(e,t)});function KB(e){return Bp(Sw,e)}var $M=C("ZodCustomStringFormat",(e,t)=>{Tb.init(e,t),Ve.init(e,t)});function YB(e,t,a={}){return GS($M,e,t,a)}var hc=C("ZodNumber",(e,t)=>{gp.init(e,t),he.init(e,t),e.gt=(n,r)=>e.check(sn(n,r)),e.gte=(n,r)=>e.check(ca(n,r)),e.min=(n,r)=>e.check(ca(n,r)),e.lt=(n,r)=>e.check(ln(n,r)),e.lte=(n,r)=>e.check(Ga(n,r)),e.max=(n,r)=>e.check(Ga(n,r)),e.int=n=>e.check(rw(n)),e.safe=n=>e.check(rw(n)),e.positive=n=>e.check(sn(0,n)),e.nonnegative=n=>e.check(ca(0,n)),e.negative=n=>e.check(ln(0,n)),e.nonpositive=n=>e.check(Ga(0,n)),e.multipleOf=(n,r)=>e.check(bi(n,r)),e.step=(n,r)=>e.check(bi(n,r)),e.finite=()=>e;let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function PM(e){return hS(hc,e)}var Jl=C("ZodNumberFormat",(e,t)=>{Ab.init(e,t),hc.init(e,t)});function rw(e){return vS(Jl,e)}function QB(e){return yS(Jl,e)}function eF(e){return xS(Jl,e)}function tF(e){return bS(Jl,e)}function aF(e){return SS(Jl,e)}var gc=C("ZodBoolean",(e,t)=>{Hu.init(e,t),he.init(e,t)});function NM(e){return wS(gc,e)}var vc=C("ZodBigInt",(e,t)=>{vp.init(e,t),he.init(e,t),e.gte=(n,r)=>e.check(ca(n,r)),e.min=(n,r)=>e.check(ca(n,r)),e.gt=(n,r)=>e.check(sn(n,r)),e.gte=(n,r)=>e.check(ca(n,r)),e.min=(n,r)=>e.check(ca(n,r)),e.lt=(n,r)=>e.check(ln(n,r)),e.lte=(n,r)=>e.check(Ga(n,r)),e.max=(n,r)=>e.check(Ga(n,r)),e.positive=n=>e.check(sn(BigInt(0),n)),e.negative=n=>e.check(ln(BigInt(0),n)),e.nonpositive=n=>e.check(Ga(BigInt(0),n)),e.nonnegative=n=>e.check(ca(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(bi(n,r));let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function rF(e){return kS(vc,e)}var ww=C("ZodBigIntFormat",(e,t)=>{Eb.init(e,t),vc.init(e,t)});function nF(e){return CS(ww,e)}function oF(e){return LS(ww,e)}var UM=C("ZodSymbol",(e,t)=>{Mb.init(e,t),he.init(e,t)});function iF(e){return TS(UM,e)}var jM=C("ZodUndefined",(e,t)=>{Ob.init(e,t),he.init(e,t)});function lF(e){return AS(jM,e)}var BM=C("ZodNull",(e,t)=>{zb.init(e,t),he.init(e,t)});function FM(e){return ES(BM,e)}var qM=C("ZodAny",(e,t)=>{Db.init(e,t),he.init(e,t)});function sF(){return MS(qM)}var ZM=C("ZodUnknown",(e,t)=>{Fl.init(e,t),he.init(e,t)});function Jp(){return Zl(ZM)}var HM=C("ZodNever",(e,t)=>{Rb.init(e,t),he.init(e,t)});function Qp(e){return OS(HM,e)}var VM=C("ZodVoid",(e,t)=>{$b.init(e,t),he.init(e,t)});function uF(e){return zS(VM,e)}var em=C("ZodDate",(e,t)=>{Pb.init(e,t),he.init(e,t),e.min=(n,r)=>e.check(ca(n,r)),e.max=(n,r)=>e.check(Ga(n,r));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function cF(e){return DS(em,e)}var GM=C("ZodArray",(e,t)=>{Vu.init(e,t),he.init(e,t),e.element=t.element,e.min=(a,n)=>e.check(no(a,n)),e.nonempty=a=>e.check(no(1,a)),e.max=(a,n)=>e.check(Vl(a,n)),e.length=(a,n)=>e.check(Gl(a,n)),e.unwrap=()=>e.element});function Iw(e,t){return uc(GM,e,t)}function dF(e){let t=e._zod.def.shape;return rO(Object.keys(t))}var tm=C("ZodObject",(e,t)=>{Nb.init(e,t),he.init(e,t),U.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>tO(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Jp()}),e.loose=()=>e.clone({...e._zod.def,catchall:Jp()}),e.strict=()=>e.clone({...e._zod.def,catchall:Qp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>U.extend(e,a),e.merge=a=>U.merge(e,a),e.pick=a=>U.pick(e,a),e.omit=a=>U.omit(e,a),e.partial=(...a)=>U.partial(Tw,e,a[0]),e.required=(...a)=>U.required(Aw,e,a[0])});function fF(e,t){let a={type:"object",get shape(){return U.assignProp(this,"shape",{...e}),this.shape},...U.normalizeParams(t)};return new tm(a)}function pF(e,t){return new tm({type:"object",get shape(){return U.assignProp(this,"shape",{...e}),this.shape},catchall:Qp(),...U.normalizeParams(t)})}function mF(e,t){return new tm({type:"object",get shape(){return U.assignProp(this,"shape",{...e}),this.shape},catchall:Jp(),...U.normalizeParams(t)})}var kw=C("ZodUnion",(e,t)=>{yp.init(e,t),he.init(e,t),e.options=t.options});function am(e,t){return new kw({type:"union",options:e,...U.normalizeParams(t)})}var WM=C("ZodDiscriminatedUnion",(e,t)=>{kw.init(e,t),Ub.init(e,t)});function hF(e,t,a){return new WM({type:"union",options:t,discriminator:e,...U.normalizeParams(a)})}var JM=C("ZodIntersection",(e,t)=>{jb.init(e,t),he.init(e,t)});function XM(e,t){return new JM({type:"intersection",left:e,right:t})}var KM=C("ZodTuple",(e,t)=>{xi.init(e,t),he.init(e,t),e.rest=a=>e.clone({...e._zod.def,rest:a})});function gF(e,t,a){let n=t instanceof oe,r=n?a:t,o=n?t:null;return new KM({type:"tuple",items:e,rest:o,...U.normalizeParams(r)})}var _w=C("ZodRecord",(e,t)=>{Bb.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function YM(e,t,a){return new _w({type:"record",keyType:e,valueType:t,...U.normalizeParams(a)})}function vF(e,t,a){return new _w({type:"record",keyType:am([e,Qp()]),valueType:t,...U.normalizeParams(a)})}var QM=C("ZodMap",(e,t)=>{Fb.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function yF(e,t,a){return new QM({type:"map",keyType:e,valueType:t,...U.normalizeParams(a)})}var eO=C("ZodSet",(e,t)=>{qb.init(e,t),he.init(e,t),e.min=(...a)=>e.check(Si(...a)),e.nonempty=a=>e.check(Si(1,a)),e.max=(...a)=>e.check(Hl(...a)),e.size=(...a)=>e.check(Ku(...a))});function xF(e,t){return new eO({type:"set",valueType:e,...U.normalizeParams(t)})}var pc=C("ZodEnum",(e,t)=>{Zb.init(e,t),he.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let a=new Set(Object.keys(t.entries));e.extract=(n,r)=>{let o={};for(let i of n)if(a.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new pc({...t,checks:[],...U.normalizeParams(r),entries:o})},e.exclude=(n,r)=>{let o={...t.entries};for(let i of n)if(a.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new pc({...t,checks:[],...U.normalizeParams(r),entries:o})}});function tO(e,t){let a=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new pc({type:"enum",entries:a,...U.normalizeParams(t)})}function bF(e,t){return new pc({type:"enum",entries:e,...U.normalizeParams(t)})}var aO=C("ZodLiteral",(e,t)=>{Hb.init(e,t),he.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 rO(e,t){return new aO({type:"literal",values:Array.isArray(e)?e:[e],...U.normalizeParams(t)})}var nO=C("ZodFile",(e,t)=>{Vb.init(e,t),he.init(e,t),e.min=(a,n)=>e.check(Si(a,n)),e.max=(a,n)=>e.check(Hl(a,n)),e.mime=(a,n)=>e.check(nc(Array.isArray(a)?a:[a],n))});function SF(e){return qS(nO,e)}var Cw=C("ZodTransform",(e,t)=>{Gu.init(e,t),he.init(e,t),e._zod.parse=(a,n)=>{a.addIssue=o=>{if(typeof o=="string")a.issues.push(U.issue(o,a.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=a.value),i.inst??(i.inst=e),i.continue??(i.continue=!0),a.issues.push(U.issue(i))}};let r=t.transform(a.value,a);return r instanceof Promise?r.then(o=>(a.value=o,a)):(a.value=r,a)}});function Lw(e){return new Cw({type:"transform",transform:e})}var Tw=C("ZodOptional",(e,t)=>{Gb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Xp(e){return new Tw({type:"optional",innerType:e})}var oO=C("ZodNullable",(e,t)=>{Wb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Kp(e){return new oO({type:"nullable",innerType:e})}function wF(e){return Xp(Kp(e))}var iO=C("ZodDefault",(e,t)=>{Jb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lO(e,t){return new iO({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var sO=C("ZodPrefault",(e,t)=>{Xb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uO(e,t){return new sO({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var Aw=C("ZodNonOptional",(e,t)=>{Kb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function cO(e,t){return new Aw({type:"nonoptional",innerType:e,...U.normalizeParams(t)})}var dO=C("ZodSuccess",(e,t)=>{Yb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function IF(e){return new dO({type:"success",innerType:e})}var fO=C("ZodCatch",(e,t)=>{Qb.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pO(e,t){return new fO({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var mO=C("ZodNaN",(e,t)=>{eS.init(e,t),he.init(e,t)});function kF(e){return $S(mO,e)}var Ew=C("ZodPipe",(e,t)=>{Wu.init(e,t),he.init(e,t),e.in=t.in,e.out=t.out});function Yp(e,t){return new Ew({type:"pipe",in:e,out:t})}var hO=C("ZodReadonly",(e,t)=>{tS.init(e,t),he.init(e,t)});function gO(e){return new hO({type:"readonly",innerType:e})}var vO=C("ZodTemplateLiteral",(e,t)=>{aS.init(e,t),he.init(e,t)});function _F(e,t){return new vO({type:"template_literal",parts:e,...U.normalizeParams(t)})}var yO=C("ZodLazy",(e,t)=>{nS.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.getter()});function xO(e){return new yO({type:"lazy",getter:e})}var bO=C("ZodPromise",(e,t)=>{rS.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function CF(e){return new bO({type:"promise",innerType:e})}var rm=C("ZodCustom",(e,t)=>{oS.init(e,t),he.init(e,t)});function SO(e){let t=new nt({check:"custom"});return t._zod.check=e,t}function LF(e,t){return ZS(rm,e??(()=>!0),t)}function wO(e,t={}){return HS(rm,e,t)}function IO(e){let t=SO(a=>(a.addIssue=n=>{if(typeof n=="string")a.issues.push(U.issue(n,a.value,t._zod.def));else{let r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=a.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),a.issues.push(U.issue(r))}},e(a.value,a)));return t}function TF(e,t={error:`Input not instance of ${e.name}`}){let a=new rm({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...U.normalizeParams(t)});return a._zod.bag.Class=e,a}var AF=(...e)=>VS({Pipe:Ew,Boolean:gc,String:mc,Transform:Cw},...e);function EF(e){let t=xO(()=>am([aw(e),PM(),NM(),FM(),Iw(t),YM(aw(),t)]));return t}function MF(e,t){return Yp(Lw(e),t)}var OF={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 zF(e){St({customError:e})}function DF(){return St().customError}var Mw={};cr(Mw,{bigint:()=>NF,boolean:()=>PF,date:()=>UF,number:()=>$F,string:()=>RF});function RF(e){return uS(mc,e)}function $F(e){return gS(hc,e)}function PF(e){return IS(gc,e)}function NF(e){return _S(vc,e)}function UF(e){return RS(em,e)}St(xp());var nm=class extends Error{constructor(t,a){super(t),this.name="ParseError",this.type=a.type,this.field=a.field,this.value=a.value,this.line=a.line}};function Ow(e){}function kO(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=Ow,onError:a=Ow,onRetry:n=Ow,onComment:r}=e,o="",i=!0,l,s="",u="";function c(x){let b=i?x.replace(/^\xEF\xBB\xBF/,""):x,[v,y]=jF(`${o}${b}`);for(let g of v)d(g);o=y,i=!1}function d(x){if(x===""){f();return}if(x.startsWith(":")){r&&r(x.slice(x.startsWith(": ")?2:1));return}let b=x.indexOf(":");if(b!==-1){let v=x.slice(0,b),y=x[b+1]===" "?2:1,g=x.slice(b+y);p(v,g,x);return}p(x,"",x)}function p(x,b,v){switch(x){case"event":u=b;break;case"data":s=`${s}${b}
|
|
74
|
+
`;break;case"id":l=b.includes("\0")?void 0:b;break;case"retry":/^\d+$/.test(b)?n(parseInt(b,10)):a(new nm(`Invalid \`retry\` value: "${b}"`,{type:"invalid-retry",value:b,line:v}));break;default:a(new nm(`Unknown field "${x.length>20?`${x.slice(0,20)}\u2026`:x}"`,{type:"unknown-field",field:x,value:b,line:v}));break}}function f(){s.length>0&&t({id:l,event:u||void 0,data:s.endsWith(`
|
|
75
|
+
`)?s.slice(0,-1):s}),l=void 0,s="",u=""}function m(x={}){o&&x.consume&&d(o),i=!0,l=void 0,s="",u="",o=""}return{feed:c,reset:m}}function jF(e){let t=[],a="",n=0;for(;n<e.length;){let r=e.indexOf("\r",n),o=e.indexOf(`
|
|
76
76
|
`,n),i=-1;if(r!==-1&&o!==-1?i=Math.min(r,o):r!==-1?r===e.length-1?i=-1:i=r:o!==-1&&(i=o),i===-1){a=e.slice(n);break}else{let l=e.slice(n,i);t.push(l),n=i+1,e[n-1]==="\r"&&e[n]===`
|
|
77
|
-
`&&n++}}return[t,a]}var am=class extends TransformStream{constructor({onError:t,onRetry:a,onComment:n}={}){let r;super({start(o){r=SO({onEvent:i=>{o.enqueue(i)},onError(i){t==="terminate"?o.error(i):typeof t=="function"&&t(i)},onRetry:a,onComment:n})},transform(o){r.feed(o)}})}};var{btoa:Nne,atob:Une}=globalThis;var LO="AI_DownloadError",TO=`vercel.ai.error.${LO}`,RF=Symbol.for(TO),wO,IO,Bne=class extends(IO=_e,wO=RF,IO){constructor({url:e,statusCode:t,statusText:a,cause:n,message:r=n==null?`Failed to download ${e}: ${t} ${a}`:`Failed to download ${e}: ${n}`}){super({name:LO,message:r,cause:n}),this[wO]=!0,this.url=e,this.statusCode=t,this.statusText=a}static isInstance(e){return _e.hasMarker(e,TO)}};var un=({prefix:e,size:t=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let r=()=>{let o=a.length,i=new Array(t);for(let l=0;l<t;l++)i[l]=a[Math.random()*o|0];return i.join("")};if(e==null)return r;if(a.includes(n))throw new tE({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${a}".`});return()=>`${e}${n}${r()}`},AO=un();function zw(e=globalThis){var t,a,n;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(n=(a=e.process)==null?void 0:a.versions)!=null&&n.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function ao(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((a,n)=>{t[n.toLowerCase()]=a});else{Array.isArray(e)||(e=Object.entries(e));for(let[a,n]of e)n!=null&&(t[a.toLowerCase()]=n)}return t}function hc(e,...t){let a=new Headers(ao(e)),n=a.get("user-agent")||"";return a.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}var $F=/"__proto__"\s*:/,PF=/"constructor"\s*:/;function kO(e){let t=JSON.parse(e);return t===null||typeof t!="object"||$F.test(e)===!1&&PF.test(e)===!1?t:NF(t)}function NF(e){let t=[e];for(;t.length;){let a=t;t=[];for(let n of a){if(Object.prototype.hasOwnProperty.call(n,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let r in n){let o=n[r];o&&typeof o=="object"&&t.push(o)}}}return e}function UF(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return kO(e)}try{return kO(e)}finally{Error.stackTraceLimit=t}}function Dw(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:a}=e;if(a!=null)for(let n of Object.keys(a))a[n]=xi(a[n])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(xi):xi(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(xi)),e.allOf!=null&&(e.allOf=e.allOf.map(xi)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(xi));let{definitions:t}=e;if(t!=null)for(let a of Object.keys(t))t[a]=xi(t[a]);return e}function xi(e){return typeof e=="boolean"?e:Dw(e)}var jF=Symbol("Let zodToJsonSchema decide on which parser to use"),_O={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},BF=e=>typeof e=="string"?{..._O,name:e}:{..._O,...e};function _a(){return{}}function FF(e,t){var a,n,r;let o={type:"array"};return(a=e.type)!=null&&a._def&&((r=(n=e.type)==null?void 0:n._def)==null?void 0:r.typeName)!==T.ZodAny&&(o.items=$e(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(o.minItems=e.minLength.value),e.maxLength&&(o.maxItems=e.maxLength.value),e.exactLength&&(o.minItems=e.exactLength.value,o.maxItems=e.exactLength.value),o}function qF(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function ZF(){return{type:"boolean"}}function EO(e,t){return $e(e.type._def,t)}var HF=(e,t)=>$e(e.innerType._def,t);function MO(e,t,a){let n=a??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((r,o)=>MO(e,t,r))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return VF(e)}}var VF=e=>{let t={type:"integer",format:"unix-time"};for(let a of e.checks)switch(a.kind){case"min":t.minimum=a.value;break;case"max":t.maximum=a.value;break}return t};function GF(e,t){return{...$e(e.innerType._def,t),default:e.defaultValue()}}function JF(e,t){return t.effectStrategy==="input"?$e(e.schema._def,t):_a()}function XF(e){return{type:"string",enum:Array.from(e.values)}}var WF=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function KF(e,t){let a=[$e(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),$e(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(r=>!!r),n=[];return a.forEach(r=>{if(WF(r))n.push(...r.allOf);else{let o=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:i,...l}=r;o=l}n.push(o)}}),n.length?{allOf:n}:void 0}function YF(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var Aw=void 0,nr={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Aw===void 0&&(Aw=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Aw),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function OO(e,t){let a={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":or(a,"email",n.message,t);break;case"format:idn-email":or(a,"idn-email",n.message,t);break;case"pattern:zod":Jt(a,nr.email,n.message,t);break}break;case"url":or(a,"uri",n.message,t);break;case"uuid":or(a,"uuid",n.message,t);break;case"regex":Jt(a,n.regex,n.message,t);break;case"cuid":Jt(a,nr.cuid,n.message,t);break;case"cuid2":Jt(a,nr.cuid2,n.message,t);break;case"startsWith":Jt(a,RegExp(`^${Ew(n.value,t)}`),n.message,t);break;case"endsWith":Jt(a,RegExp(`${Ew(n.value,t)}$`),n.message,t);break;case"datetime":or(a,"date-time",n.message,t);break;case"date":or(a,"date",n.message,t);break;case"time":or(a,"time",n.message,t);break;case"duration":or(a,"duration",n.message,t);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"includes":{Jt(a,RegExp(Ew(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&or(a,"ipv4",n.message,t),n.version!=="v4"&&or(a,"ipv6",n.message,t);break}case"base64url":Jt(a,nr.base64url,n.message,t);break;case"jwt":Jt(a,nr.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&Jt(a,nr.ipv4Cidr,n.message,t),n.version!=="v4"&&Jt(a,nr.ipv6Cidr,n.message,t);break}case"emoji":Jt(a,nr.emoji(),n.message,t);break;case"ulid":{Jt(a,nr.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{or(a,"binary",n.message,t);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{Jt(a,nr.base64,n.message,t);break}}break}case"nanoid":Jt(a,nr.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function Ew(e,t){return t.patternStrategy==="escape"?eq(e):e}var QF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function eq(e){let t="";for(let a=0;a<e.length;a++)QF.has(e[a])||(t+="\\"),t+=e[a];return t}function or(e,t,a,n){var r;e.format||(r=e.anyOf)!=null&&r.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...a&&n.errorMessages&&{errorMessage:{format:a}}})):e.format=t}function Jt(e,t,a,n){var r;e.pattern||(r=e.allOf)!=null&&r.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:CO(t,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):e.pattern=CO(t,n)}function CO(e,t){var a;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,o="",i=!1,l=!1,s=!1;for(let u=0;u<r.length;u++){if(i){o+=r[u],i=!1;continue}if(n.i){if(l){if(r[u].match(/[a-z]/)){s?(o+=r[u],o+=`${r[u-2]}-${r[u]}`.toUpperCase(),s=!1):r[u+1]==="-"&&((a=r[u+2])!=null&&a.match(/[a-z]/))?(o+=r[u],s=!0):o+=`${r[u]}${r[u].toUpperCase()}`;continue}}else if(r[u].match(/[a-z]/)){o+=`[${r[u]}${r[u].toUpperCase()}]`;continue}}if(n.m){if(r[u]==="^"){o+=`(^|(?<=[\r
|
|
77
|
+
`&&n++}}return[t,a]}var om=class extends TransformStream{constructor({onError:t,onRetry:a,onComment:n}={}){let r;super({start(o){r=kO({onEvent:i=>{o.enqueue(i)},onError(i){t==="terminate"?o.error(i):typeof t=="function"&&t(i)},onRetry:a,onComment:n})},transform(o){r.feed(o)}})}};var{btoa:Zne,atob:Hne}=globalThis;var EO="AI_DownloadError",MO=`vercel.ai.error.${EO}`,BF=Symbol.for(MO),_O,CO,Gne=class extends(CO=Ce,_O=BF,CO){constructor({url:e,statusCode:t,statusText:a,cause:n,message:r=n==null?`Failed to download ${e}: ${t} ${a}`:`Failed to download ${e}: ${n}`}){super({name:EO,message:r,cause:n}),this[_O]=!0,this.url=e,this.statusCode=t,this.statusText=a}static isInstance(e){return Ce.hasMarker(e,MO)}};var fn=({prefix:e,size:t=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let r=()=>{let o=a.length,i=new Array(t);for(let l=0;l<t;l++)i[l]=a[Math.random()*o|0];return i.join("")};if(e==null)return r;if(a.includes(n))throw new nE({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${a}".`});return()=>`${e}${n}${r()}`},OO=fn();function Pw(e=globalThis){var t,a,n;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(n=(a=e.process)==null?void 0:a.versions)!=null&&n.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function oo(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((a,n)=>{t[n.toLowerCase()]=a});else{Array.isArray(e)||(e=Object.entries(e));for(let[a,n]of e)n!=null&&(t[a.toLowerCase()]=n)}return t}function yc(e,...t){let a=new Headers(oo(e)),n=a.get("user-agent")||"";return a.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}var FF=/"__proto__"\s*:/,qF=/"constructor"\s*:/;function LO(e){let t=JSON.parse(e);return t===null||typeof t!="object"||FF.test(e)===!1&&qF.test(e)===!1?t:ZF(t)}function ZF(e){let t=[e];for(;t.length;){let a=t;t=[];for(let n of a){if(Object.prototype.hasOwnProperty.call(n,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let r in n){let o=n[r];o&&typeof o=="object"&&t.push(o)}}}return e}function HF(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return LO(e)}try{return LO(e)}finally{Error.stackTraceLimit=t}}function Nw(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:a}=e;if(a!=null)for(let n of Object.keys(a))a[n]=wi(a[n])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(wi):wi(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(wi)),e.allOf!=null&&(e.allOf=e.allOf.map(wi)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(wi));let{definitions:t}=e;if(t!=null)for(let a of Object.keys(t))t[a]=wi(t[a]);return e}function wi(e){return typeof e=="boolean"?e:Nw(e)}var VF=Symbol("Let zodToJsonSchema decide on which parser to use"),TO={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},GF=e=>typeof e=="string"?{...TO,name:e}:{...TO,...e};function La(){return{}}function WF(e,t){var a,n,r;let o={type:"array"};return(a=e.type)!=null&&a._def&&((r=(n=e.type)==null?void 0:n._def)==null?void 0:r.typeName)!==T.ZodAny&&(o.items=Pe(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(o.minItems=e.minLength.value),e.maxLength&&(o.maxItems=e.maxLength.value),e.exactLength&&(o.minItems=e.exactLength.value,o.maxItems=e.exactLength.value),o}function JF(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function XF(){return{type:"boolean"}}function zO(e,t){return Pe(e.type._def,t)}var KF=(e,t)=>Pe(e.innerType._def,t);function DO(e,t,a){let n=a??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((r,o)=>DO(e,t,r))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return YF(e)}}var YF=e=>{let t={type:"integer",format:"unix-time"};for(let a of e.checks)switch(a.kind){case"min":t.minimum=a.value;break;case"max":t.maximum=a.value;break}return t};function QF(e,t){return{...Pe(e.innerType._def,t),default:e.defaultValue()}}function e3(e,t){return t.effectStrategy==="input"?Pe(e.schema._def,t):La()}function t3(e){return{type:"string",enum:Array.from(e.values)}}var a3=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function r3(e,t){let a=[Pe(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Pe(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(r=>!!r),n=[];return a.forEach(r=>{if(a3(r))n.push(...r.allOf);else{let o=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:i,...l}=r;o=l}n.push(o)}}),n.length?{allOf:n}:void 0}function n3(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var zw=void 0,lr={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(zw===void 0&&(zw=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),zw),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function RO(e,t){let a={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":sr(a,"email",n.message,t);break;case"format:idn-email":sr(a,"idn-email",n.message,t);break;case"pattern:zod":Xt(a,lr.email,n.message,t);break}break;case"url":sr(a,"uri",n.message,t);break;case"uuid":sr(a,"uuid",n.message,t);break;case"regex":Xt(a,n.regex,n.message,t);break;case"cuid":Xt(a,lr.cuid,n.message,t);break;case"cuid2":Xt(a,lr.cuid2,n.message,t);break;case"startsWith":Xt(a,RegExp(`^${Dw(n.value,t)}`),n.message,t);break;case"endsWith":Xt(a,RegExp(`${Dw(n.value,t)}$`),n.message,t);break;case"datetime":sr(a,"date-time",n.message,t);break;case"date":sr(a,"date",n.message,t);break;case"time":sr(a,"time",n.message,t);break;case"duration":sr(a,"duration",n.message,t);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"includes":{Xt(a,RegExp(Dw(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&sr(a,"ipv4",n.message,t),n.version!=="v4"&&sr(a,"ipv6",n.message,t);break}case"base64url":Xt(a,lr.base64url,n.message,t);break;case"jwt":Xt(a,lr.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&Xt(a,lr.ipv4Cidr,n.message,t),n.version!=="v4"&&Xt(a,lr.ipv6Cidr,n.message,t);break}case"emoji":Xt(a,lr.emoji(),n.message,t);break;case"ulid":{Xt(a,lr.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{sr(a,"binary",n.message,t);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{Xt(a,lr.base64,n.message,t);break}}break}case"nanoid":Xt(a,lr.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function Dw(e,t){return t.patternStrategy==="escape"?i3(e):e}var o3=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function i3(e){let t="";for(let a=0;a<e.length;a++)o3.has(e[a])||(t+="\\"),t+=e[a];return t}function sr(e,t,a,n){var r;e.format||(r=e.anyOf)!=null&&r.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...a&&n.errorMessages&&{errorMessage:{format:a}}})):e.format=t}function Xt(e,t,a,n){var r;e.pattern||(r=e.allOf)!=null&&r.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:AO(t,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):e.pattern=AO(t,n)}function AO(e,t){var a;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,o="",i=!1,l=!1,s=!1;for(let u=0;u<r.length;u++){if(i){o+=r[u],i=!1;continue}if(n.i){if(l){if(r[u].match(/[a-z]/)){s?(o+=r[u],o+=`${r[u-2]}-${r[u]}`.toUpperCase(),s=!1):r[u+1]==="-"&&((a=r[u+2])!=null&&a.match(/[a-z]/))?(o+=r[u],s=!0):o+=`${r[u]}${r[u].toUpperCase()}`;continue}}else if(r[u].match(/[a-z]/)){o+=`[${r[u]}${r[u].toUpperCase()}]`;continue}}if(n.m){if(r[u]==="^"){o+=`(^|(?<=[\r
|
|
78
78
|
]))`;continue}else if(r[u]==="$"){o+=`($|(?=[\r
|
|
79
79
|
]))`;continue}}if(n.s&&r[u]==="."){o+=l?`${r[u]}\r
|
|
80
80
|
`:`[${r[u]}\r
|
|
81
|
-
]`;continue}o+=r[u],r[u]==="\\"?i=!0:l&&r[u]==="]"?l=!1:!l&&r[u]==="["&&(l=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return o}function zO(e,t){var a,n,r,o,i,l;let s={type:"object",additionalProperties:(a=$e(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?a:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===T.ZodString&&((r=e.keyType._def.checks)!=null&&r.length)){let{type:u,...c}=OO(e.keyType._def,t);return{...s,propertyNames:c}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===T.ZodEnum)return{...s,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===T.ZodBranded&&e.keyType._def.type._def.typeName===T.ZodString&&((l=e.keyType._def.type._def.checks)!=null&&l.length)){let{type:u,...c}=EO(e.keyType._def,t);return{...s,propertyNames:c}}}return s}function tq(e,t){if(t.mapStrategy==="record")return zO(e,t);let a=$e(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||_a(),n=$e(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||_a();return{type:"array",maxItems:125,items:{type:"array",items:[a,n],minItems:2,maxItems:2}}}function aq(e){let t=e.values,n=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),r=Array.from(new Set(n.map(o=>typeof o)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:n}}function rq(){return{not:_a()}}function nq(){return{type:"null"}}var Mw={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function oq(e,t){let a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every(n=>n._def.typeName in Mw&&(!n._def.checks||!n._def.checks.length))){let n=a.reduce((r,o)=>{let i=Mw[o._def.typeName];return i&&!r.includes(i)?[...r,i]:r},[]);return{type:n.length>1?n:n[0]}}else if(a.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=a.reduce((r,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...r,i];case"bigint":return[...r,"integer"];case"object":if(o._def.value===null)return[...r,"null"];default:return r}},[]);if(n.length===a.length){let r=n.filter((o,i,l)=>l.indexOf(o)===i);return{type:r.length>1?r:r[0],enum:a.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(a.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:a.reduce((n,r)=>[...n,...r._def.values.filter(o=>!n.includes(o))],[])};return iq(e,t)}var iq=(e,t)=>{let a=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,r)=>$e(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return a.length?{anyOf:a}:void 0};function lq(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[Mw[e.innerType._def.typeName],"null"]};let a=$e(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function sq(e){let t={type:"number"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"int":t.type="integer";break;case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function uq(e,t){let a={type:"object",properties:{}},n=[],r=e.shape();for(let i in r){let l=r[i];if(l===void 0||l._def===void 0)continue;let s=dq(l),u=$e(l._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});u!==void 0&&(a.properties[i]=u,s||n.push(i))}n.length&&(a.required=n);let o=cq(e,t);return o!==void 0&&(a.additionalProperties=o),a}function cq(e,t){if(e.catchall._def.typeName!=="ZodNever")return $e(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function dq(e){try{return e.isOptional()}catch{return!0}}var fq=(e,t)=>{var a;if(t.currentPath.toString()===((a=t.propertyPath)==null?void 0:a.toString()))return $e(e.innerType._def,t);let n=$e(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:_a()},n]}:_a()},pq=(e,t)=>{if(t.pipeStrategy==="input")return $e(e.in._def,t);if(t.pipeStrategy==="output")return $e(e.out._def,t);let a=$e(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=$e(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",a?"1":"0"]});return{allOf:[a,n].filter(r=>r!==void 0)}};function mq(e,t){return $e(e.type._def,t)}function hq(e,t){let n={type:"array",uniqueItems:!0,items:$e(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function gq(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((a,n)=>$e(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[]),additionalItems:$e(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((a,n)=>$e(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[])}}function vq(){return{not:_a()}}function yq(){return _a()}var xq=(e,t)=>$e(e.innerType._def,t),bq=(e,t,a)=>{switch(t){case T.ZodString:return OO(e,a);case T.ZodNumber:return sq(e);case T.ZodObject:return uq(e,a);case T.ZodBigInt:return qF(e);case T.ZodBoolean:return ZF();case T.ZodDate:return MO(e,a);case T.ZodUndefined:return vq();case T.ZodNull:return nq();case T.ZodArray:return FF(e,a);case T.ZodUnion:case T.ZodDiscriminatedUnion:return oq(e,a);case T.ZodIntersection:return KF(e,a);case T.ZodTuple:return gq(e,a);case T.ZodRecord:return zO(e,a);case T.ZodLiteral:return YF(e);case T.ZodEnum:return XF(e);case T.ZodNativeEnum:return aq(e);case T.ZodNullable:return lq(e,a);case T.ZodOptional:return fq(e,a);case T.ZodMap:return tq(e,a);case T.ZodSet:return hq(e,a);case T.ZodLazy:return()=>e.getter()._def;case T.ZodPromise:return mq(e,a);case T.ZodNaN:case T.ZodNever:return rq();case T.ZodEffects:return JF(e,a);case T.ZodAny:return _a();case T.ZodUnknown:return yq();case T.ZodDefault:return GF(e,a);case T.ZodBranded:return EO(e,a);case T.ZodReadonly:return xq(e,a);case T.ZodCatch:return HF(e,a);case T.ZodPipeline:return pq(e,a);case T.ZodFunction:case T.ZodVoid:case T.ZodSymbol:return;default:return(n=>{})(t)}},Sq=(e,t)=>{let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];a++);return[(e.length-a).toString(),...t.slice(a)].join("/")};function $e(e,t,a=!1){var n;let r=t.seen.get(e);if(t.override){let s=(n=t.override)==null?void 0:n.call(t,e,t,r,a);if(s!==jF)return s}if(r&&!a){let s=wq(r,t);if(s!==void 0)return s}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=bq(e,e.typeName,t),l=typeof i=="function"?$e(i(),t):i;if(l&&Iq(e,t,l),t.postProcess){let s=t.postProcess(l,e,t);return o.jsonSchema=l,s}return o.jsonSchema=l,l}var wq=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:Sq(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((a,n)=>t.currentPath[n]===a)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),_a()):t.$refStrategy==="seen"?_a():void 0}},Iq=(e,t,a)=>(e.description&&(a.description=e.description),a),kq=e=>{let t=BF(e),a=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:a,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},_q=(e,t)=>{var a;let n=kq(t),r=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,d])=>{var p;return{...u,[c]:(p=$e(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0))!=null?p:_a()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(a=$e(e._def,o===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,o]},!1))!=null?a:_a(),l=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;l!==void 0&&(i.title=l);let s=o===void 0?r?{...i,[n.definitionPath]:r}:i:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,o].join("/"),[n.definitionPath]:{...r,[o]:i}};return s.$schema="http://json-schema.org/draft-07/schema#",s},Ow=Symbol.for("vercel.ai.schema");function rm(e){let t;return()=>(t==null&&(t=e()),t)}function nm(e,{validate:t}={}){return{[Ow]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function Cq(e){return typeof e=="object"&&e!==null&&Ow in e&&e[Ow]===!0&&"jsonSchema"in e&&"validate"in e}function om(e){return e==null?nm({properties:{},additionalProperties:!1}):Cq(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?gc(e):Lq(e):e()}function Lq(e){return nm(()=>Dw(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let a=await e["~standard"].validate(t);return"value"in a?{success:!0,value:a.value}:{success:!1,error:new Sr({value:t,cause:a.issues})}}})}function Tq(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return nm(()=>_q(e,{$refStrategy:n?"root":"none"}),{validate:async r=>{let o=await e.safeParseAsync(r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function Aq(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return nm(()=>Dw(sc(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async r=>{let o=await uc(e,r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function Eq(e){return"_zod"in e}function gc(e,t){return Eq(e)?Aq(e,t):Tq(e,t)}async function im({value:e,schema:t}){let a=await Gl({value:e,schema:t});if(!a.success)throw Sr.wrap({value:e,cause:a.error});return a.value}async function Gl({value:e,schema:t}){let a=om(t);try{if(a.validate==null)return{success:!0,value:e,rawValue:e};let n=await a.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:Sr.wrap({value:e,cause:n.error}),rawValue:e}}catch(n){return{success:!1,error:Sr.wrap({value:e,cause:n}),rawValue:e}}}async function cn({text:e,schema:t}){try{let a=UF(e);return t==null?{success:!0,value:a,rawValue:a}:await Gl({value:a,schema:t})}catch(a){return{success:!1,error:By.isInstance(a)?a:new By({text:e,cause:a}),rawValue:void 0}}}function DO({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new am).pipeThrough(new TransformStream({async transform({data:a},n){a!=="[DONE]"&&n.enqueue(await cn({text:a,schema:t}))}}))}async function kr(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var Oq=Object.defineProperty,zq=(e,t)=>{for(var a in t)Oq(e,a,{get:t[a],enumerable:!0})},Dq="AI_InvalidArgumentError",Rq=`vercel.ai.error.${Dq}`,$q=Symbol.for(Rq),Pq;Pq=$q;var Nq="AI_InvalidStreamPartError",Uq=`vercel.ai.error.${Nq}`,jq=Symbol.for(Uq),Bq;Bq=jq;var Fq="AI_InvalidToolApprovalError",qq=`vercel.ai.error.${Fq}`,Zq=Symbol.for(qq),Hq;Hq=Zq;var Vq="AI_InvalidToolInputError",Gq=`vercel.ai.error.${Vq}`,Jq=Symbol.for(Gq),Xq;Xq=Jq;var Wq="AI_ToolCallNotFoundForApprovalError",Kq=`vercel.ai.error.${Wq}`,Yq=Symbol.for(Kq),Qq;Qq=Yq;var e3="AI_NoImageGeneratedError",t3=`vercel.ai.error.${e3}`,a3=Symbol.for(t3),r3;r3=a3;var PO="AI_NoObjectGeneratedError",NO=`vercel.ai.error.${PO}`,n3=Symbol.for(NO),UO,ro=class extends _e{constructor({message:e="No object generated.",cause:t,text:a,response:n,usage:r,finishReason:o}){super({name:PO,message:e,cause:t}),this[UO]=!0,this.text=a,this.response=n,this.usage=r,this.finishReason=o}static isInstance(e){return _e.hasMarker(e,NO)}};UO=n3;var o3="AI_NoOutputGeneratedError",i3=`vercel.ai.error.${o3}`,l3=Symbol.for(i3),s3;s3=l3;var u3="AI_NoSuchToolError",c3=`vercel.ai.error.${u3}`,d3=Symbol.for(c3),f3;f3=d3;var p3="AI_ToolCallRepairError",m3=`vercel.ai.error.${p3}`,h3=Symbol.for(m3),g3;g3=h3;var jO="AI_UIMessageStreamError",BO=`vercel.ai.error.${jO}`,v3=Symbol.for(BO),FO,Jl=class extends _e{constructor({chunkType:e,chunkId:t,message:a}){super({name:jO,message:a}),this[FO]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return _e.hasMarker(e,BO)}};FO=v3;var y3="AI_InvalidDataContentError",x3=`vercel.ai.error.${y3}`,b3=Symbol.for(x3),S3;S3=b3;var w3="AI_InvalidMessageRoleError",I3=`vercel.ai.error.${w3}`,k3=Symbol.for(I3),_3;_3=k3;var C3="AI_MessageConversionError",L3=`vercel.ai.error.${C3}`,T3=Symbol.for(L3),A3;A3=T3;var E3="AI_RetryError",M3=`vercel.ai.error.${E3}`,O3=Symbol.for(M3),z3;z3=O3;var RO="6.0.39";var qO=h.union([h.string(),h.instanceof(Uint8Array),h.instanceof(ArrayBuffer),h.custom(e=>{var t,a;return(a=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?a:!1},{message:"Must be a Buffer"})]);var vc=h.lazy(()=>h.union([h.null(),h.string(),h.number(),h.boolean(),h.record(h.string(),vc.optional()),h.array(vc)])),Y=h.record(h.string(),h.record(h.string(),vc.optional())),ZO=h.object({type:h.literal("text"),text:h.string(),providerOptions:Y.optional()}),D3=h.object({type:h.literal("image"),image:h.union([qO,h.instanceof(URL)]),mediaType:h.string().optional(),providerOptions:Y.optional()}),HO=h.object({type:h.literal("file"),data:h.union([qO,h.instanceof(URL)]),filename:h.string().optional(),mediaType:h.string(),providerOptions:Y.optional()}),R3=h.object({type:h.literal("reasoning"),text:h.string(),providerOptions:Y.optional()}),$3=h.object({type:h.literal("tool-call"),toolCallId:h.string(),toolName:h.string(),input:h.unknown(),providerOptions:Y.optional(),providerExecuted:h.boolean().optional()}),P3=h.discriminatedUnion("type",[h.object({type:h.literal("text"),value:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("json"),value:vc,providerOptions:Y.optional()}),h.object({type:h.literal("execution-denied"),reason:h.string().optional(),providerOptions:Y.optional()}),h.object({type:h.literal("error-text"),value:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("error-json"),value:vc,providerOptions:Y.optional()}),h.object({type:h.literal("content"),value:h.array(h.union([h.object({type:h.literal("text"),text:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("media"),data:h.string(),mediaType:h.string()}),h.object({type:h.literal("file-data"),data:h.string(),mediaType:h.string(),filename:h.string().optional(),providerOptions:Y.optional()}),h.object({type:h.literal("file-url"),url:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("file-id"),fileId:h.union([h.string(),h.record(h.string(),h.string())]),providerOptions:Y.optional()}),h.object({type:h.literal("image-data"),data:h.string(),mediaType:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("image-url"),url:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("image-file-id"),fileId:h.union([h.string(),h.record(h.string(),h.string())]),providerOptions:Y.optional()}),h.object({type:h.literal("custom"),providerOptions:Y.optional()})]))})]),VO=h.object({type:h.literal("tool-result"),toolCallId:h.string(),toolName:h.string(),output:P3,providerOptions:Y.optional()}),N3=h.object({type:h.literal("tool-approval-request"),approvalId:h.string(),toolCallId:h.string()}),U3=h.object({type:h.literal("tool-approval-response"),approvalId:h.string(),approved:h.boolean(),reason:h.string().optional()}),j3=h.object({role:h.literal("system"),content:h.string(),providerOptions:Y.optional()}),B3=h.object({role:h.literal("user"),content:h.union([h.string(),h.array(h.union([ZO,D3,HO]))]),providerOptions:Y.optional()}),F3=h.object({role:h.literal("assistant"),content:h.union([h.string(),h.array(h.union([ZO,HO,R3,$3,VO,N3]))]),providerOptions:Y.optional()}),q3=h.object({role:h.literal("tool"),content:h.array(h.union([VO,U3])),providerOptions:Y.optional()}),uoe=h.union([j3,B3,F3,q3]);function GO(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let a={...e};for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];if(r===void 0)continue;let o=n in e?e[n]:void 0,i=r!==null&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp),l=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&l?a[n]=GO(o,r):a[n]=r}return a}var Z3={};zq(Z3,{array:()=>J3,choice:()=>X3,json:()=>W3,object:()=>G3,text:()=>V3});function H3(e){let t=["ROOT"],a=-1,n=null;function r(s,u,c){switch(s){case'"':{a=u,t.pop(),t.push(c),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{a=u,n=u,t.pop(),t.push(c),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=u,t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"{":{a=u,t.pop(),t.push(c),t.push("INSIDE_OBJECT_START");break}case"[":{a=u,t.pop(),t.push(c),t.push("INSIDE_ARRAY_START");break}}}function o(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{a=u,t.pop();break}}}function i(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=u,t.pop();break}}}for(let s=0;s<e.length;s++){let u=e[s];switch(t[t.length-1]){case"ROOT":r(u,s,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{a=s,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{u===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{r(u,s,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,s);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),a=s;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:a=s}break}case"INSIDE_ARRAY_START":{u==="]"?(a=s,t.pop()):(a=s,r(u,s,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=s,t.pop();break}default:{a=s;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{r(u,s,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),a=s;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=s;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let d=e.substring(n,s+1);!"false".startsWith(d)&&!"true".startsWith(d)&&!"null".startsWith(d)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,s):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s)):a=s;break}}}let l=e.slice(0,a+1);for(let s=t.length-1;s>=0;s--)switch(t[s]){case"INSIDE_STRING":{l+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{l+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{l+="]";break}case"INSIDE_LITERAL":{let c=e.substring(n,e.length);"true".startsWith(c)?l+="true".slice(c.length):"false".startsWith(c)?l+="false".slice(c.length):"null".startsWith(c)&&(l+="null".slice(c.length))}}return l}async function yc(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await cn({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await cn({text:H3(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var V3=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),G3=({schema:e,name:t,description:a})=>{let n=om(e);return{name:"object",responseFormat:kr(n.jsonSchema).then(r=>({type:"json",schema:r,...t!=null&&{name:t},...a!=null&&{description:a}})),async parseCompleteOutput({text:r},o){let i=await cn({text:r});if(!i.success)throw new ro({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=await Gl({value:i.value,schema:n});if(!l.success)throw new ro({message:"No object generated: response did not match schema.",cause:l.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return l.value},async parsePartialOutput({text:r}){let o=await yc(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},J3=({element:e,name:t,description:a})=>{let n=om(e);return{name:"array",responseFormat:kr(n.jsonSchema).then(r=>{let{$schema:o,...i}=r;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}}),async parseCompleteOutput({text:r},o){let i=await cn({text:r});if(!i.success)throw new ro({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=i.value;if(l==null||typeof l!="object"||!("elements"in l)||!Array.isArray(l.elements))throw new ro({message:"No object generated: response did not match schema.",cause:new Sr({value:l,cause:"response must be an object with an elements array"}),text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});for(let s of l.elements){let u=await Gl({value:s,schema:n});if(!u.success)throw new ro({message:"No object generated: response did not match schema.",cause:u.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason})}return l.elements},async parsePartialOutput({text:r}){let o=await yc(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=o.value;if(i==null||typeof i!="object"||!("elements"in i)||!Array.isArray(i.elements))return;let l=o.state==="repaired-parse"&&i.elements.length>0?i.elements.slice(0,-1):i.elements,s=[];for(let u of l){let c=await Gl({value:u,schema:n});c.success&&s.push(c.value)}return{partial:s}}}},createElementStreamTransform(){let r=0;return new TransformStream({transform({partialOutput:o},i){if(o!=null)for(;r<o.length;r++)i.enqueue(o[r])}})}}},X3=({options:e,name:t,description:a})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}),async parseCompleteOutput({text:n},r){let o=await cn({text:n});if(!o.success)throw new ro({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=o.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new ro({message:"No object generated: response did not match schema.",cause:new Sr({value:i,cause:"response must be an object that contains a choice value."}),text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.result},async parsePartialOutput({text:n}){let r=await yc(n);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=r.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string")return;let i=e.filter(l=>l.startsWith(o.result));return r.state==="successful-parse"?i.includes(o.result)?{partial:o.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),W3=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:a},n){let r=await cn({text:a});if(!r.success)throw new ro({message:"No object generated: could not parse the response.",cause:r.error,text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});return r.value},async parsePartialOutput({text:a}){let n=await yc(a);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return n.value===void 0?void 0:{partial:n.value}}},createElementStreamTransform(){}});var poe=un({prefix:"aitxt",size:24});var hoe=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
81
|
+
]`;continue}o+=r[u],r[u]==="\\"?i=!0:l&&r[u]==="]"?l=!1:!l&&r[u]==="["&&(l=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return o}function $O(e,t){var a,n,r,o,i,l;let s={type:"object",additionalProperties:(a=Pe(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?a:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===T.ZodString&&((r=e.keyType._def.checks)!=null&&r.length)){let{type:u,...c}=RO(e.keyType._def,t);return{...s,propertyNames:c}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===T.ZodEnum)return{...s,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===T.ZodBranded&&e.keyType._def.type._def.typeName===T.ZodString&&((l=e.keyType._def.type._def.checks)!=null&&l.length)){let{type:u,...c}=zO(e.keyType._def,t);return{...s,propertyNames:c}}}return s}function l3(e,t){if(t.mapStrategy==="record")return $O(e,t);let a=Pe(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||La(),n=Pe(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||La();return{type:"array",maxItems:125,items:{type:"array",items:[a,n],minItems:2,maxItems:2}}}function s3(e){let t=e.values,n=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),r=Array.from(new Set(n.map(o=>typeof o)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:n}}function u3(){return{not:La()}}function c3(){return{type:"null"}}var Rw={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function d3(e,t){let a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every(n=>n._def.typeName in Rw&&(!n._def.checks||!n._def.checks.length))){let n=a.reduce((r,o)=>{let i=Rw[o._def.typeName];return i&&!r.includes(i)?[...r,i]:r},[]);return{type:n.length>1?n:n[0]}}else if(a.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=a.reduce((r,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...r,i];case"bigint":return[...r,"integer"];case"object":if(o._def.value===null)return[...r,"null"];default:return r}},[]);if(n.length===a.length){let r=n.filter((o,i,l)=>l.indexOf(o)===i);return{type:r.length>1?r:r[0],enum:a.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(a.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:a.reduce((n,r)=>[...n,...r._def.values.filter(o=>!n.includes(o))],[])};return f3(e,t)}var f3=(e,t)=>{let a=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,r)=>Pe(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return a.length?{anyOf:a}:void 0};function p3(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[Rw[e.innerType._def.typeName],"null"]};let a=Pe(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function m3(e){let t={type:"number"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"int":t.type="integer";break;case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function h3(e,t){let a={type:"object",properties:{}},n=[],r=e.shape();for(let i in r){let l=r[i];if(l===void 0||l._def===void 0)continue;let s=v3(l),u=Pe(l._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});u!==void 0&&(a.properties[i]=u,s||n.push(i))}n.length&&(a.required=n);let o=g3(e,t);return o!==void 0&&(a.additionalProperties=o),a}function g3(e,t){if(e.catchall._def.typeName!=="ZodNever")return Pe(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function v3(e){try{return e.isOptional()}catch{return!0}}var y3=(e,t)=>{var a;if(t.currentPath.toString()===((a=t.propertyPath)==null?void 0:a.toString()))return Pe(e.innerType._def,t);let n=Pe(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:La()},n]}:La()},x3=(e,t)=>{if(t.pipeStrategy==="input")return Pe(e.in._def,t);if(t.pipeStrategy==="output")return Pe(e.out._def,t);let a=Pe(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=Pe(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",a?"1":"0"]});return{allOf:[a,n].filter(r=>r!==void 0)}};function b3(e,t){return Pe(e.type._def,t)}function S3(e,t){let n={type:"array",uniqueItems:!0,items:Pe(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function w3(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((a,n)=>Pe(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[]),additionalItems:Pe(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((a,n)=>Pe(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[])}}function I3(){return{not:La()}}function k3(){return La()}var _3=(e,t)=>Pe(e.innerType._def,t),C3=(e,t,a)=>{switch(t){case T.ZodString:return RO(e,a);case T.ZodNumber:return m3(e);case T.ZodObject:return h3(e,a);case T.ZodBigInt:return JF(e);case T.ZodBoolean:return XF();case T.ZodDate:return DO(e,a);case T.ZodUndefined:return I3();case T.ZodNull:return c3();case T.ZodArray:return WF(e,a);case T.ZodUnion:case T.ZodDiscriminatedUnion:return d3(e,a);case T.ZodIntersection:return r3(e,a);case T.ZodTuple:return w3(e,a);case T.ZodRecord:return $O(e,a);case T.ZodLiteral:return n3(e);case T.ZodEnum:return t3(e);case T.ZodNativeEnum:return s3(e);case T.ZodNullable:return p3(e,a);case T.ZodOptional:return y3(e,a);case T.ZodMap:return l3(e,a);case T.ZodSet:return S3(e,a);case T.ZodLazy:return()=>e.getter()._def;case T.ZodPromise:return b3(e,a);case T.ZodNaN:case T.ZodNever:return u3();case T.ZodEffects:return e3(e,a);case T.ZodAny:return La();case T.ZodUnknown:return k3();case T.ZodDefault:return QF(e,a);case T.ZodBranded:return zO(e,a);case T.ZodReadonly:return _3(e,a);case T.ZodCatch:return KF(e,a);case T.ZodPipeline:return x3(e,a);case T.ZodFunction:case T.ZodVoid:case T.ZodSymbol:return;default:return(n=>{})(t)}},L3=(e,t)=>{let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];a++);return[(e.length-a).toString(),...t.slice(a)].join("/")};function Pe(e,t,a=!1){var n;let r=t.seen.get(e);if(t.override){let s=(n=t.override)==null?void 0:n.call(t,e,t,r,a);if(s!==VF)return s}if(r&&!a){let s=T3(r,t);if(s!==void 0)return s}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=C3(e,e.typeName,t),l=typeof i=="function"?Pe(i(),t):i;if(l&&A3(e,t,l),t.postProcess){let s=t.postProcess(l,e,t);return o.jsonSchema=l,s}return o.jsonSchema=l,l}var T3=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:L3(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((a,n)=>t.currentPath[n]===a)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),La()):t.$refStrategy==="seen"?La():void 0}},A3=(e,t,a)=>(e.description&&(a.description=e.description),a),E3=e=>{let t=GF(e),a=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:a,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},M3=(e,t)=>{var a;let n=E3(t),r=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,d])=>{var p;return{...u,[c]:(p=Pe(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0))!=null?p:La()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(a=Pe(e._def,o===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,o]},!1))!=null?a:La(),l=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;l!==void 0&&(i.title=l);let s=o===void 0?r?{...i,[n.definitionPath]:r}:i:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,o].join("/"),[n.definitionPath]:{...r,[o]:i}};return s.$schema="http://json-schema.org/draft-07/schema#",s},$w=Symbol.for("vercel.ai.schema");function im(e){let t;return()=>(t==null&&(t=e()),t)}function lm(e,{validate:t}={}){return{[$w]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function O3(e){return typeof e=="object"&&e!==null&&$w in e&&e[$w]===!0&&"jsonSchema"in e&&"validate"in e}function sm(e){return e==null?lm({properties:{},additionalProperties:!1}):O3(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?xc(e):z3(e):e()}function z3(e){return lm(()=>Nw(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let a=await e["~standard"].validate(t);return"value"in a?{success:!0,value:a.value}:{success:!1,error:new kr({value:t,cause:a.issues})}}})}function D3(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return lm(()=>M3(e,{$refStrategy:n?"root":"none"}),{validate:async r=>{let o=await e.safeParseAsync(r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function R3(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return lm(()=>Nw(dc(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async r=>{let o=await fc(e,r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function $3(e){return"_zod"in e}function xc(e,t){return $3(e)?R3(e,t):D3(e,t)}async function um({value:e,schema:t}){let a=await Xl({value:e,schema:t});if(!a.success)throw kr.wrap({value:e,cause:a.error});return a.value}async function Xl({value:e,schema:t}){let a=sm(t);try{if(a.validate==null)return{success:!0,value:e,rawValue:e};let n=await a.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:kr.wrap({value:e,cause:n.error}),rawValue:e}}catch(n){return{success:!1,error:kr.wrap({value:e,cause:n}),rawValue:e}}}async function pn({text:e,schema:t}){try{let a=HF(e);return t==null?{success:!0,value:a,rawValue:a}:await Xl({value:a,schema:t})}catch(a){return{success:!1,error:Hy.isInstance(a)?a:new Hy({text:e,cause:a}),rawValue:void 0}}}function PO({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new om).pipeThrough(new TransformStream({async transform({data:a},n){a!=="[DONE]"&&n.enqueue(await pn({text:a,schema:t}))}}))}async function Lr(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var N3=Object.defineProperty,U3=(e,t)=>{for(var a in t)N3(e,a,{get:t[a],enumerable:!0})},j3="AI_InvalidArgumentError",B3=`vercel.ai.error.${j3}`,F3=Symbol.for(B3),q3;q3=F3;var Z3="AI_InvalidStreamPartError",H3=`vercel.ai.error.${Z3}`,V3=Symbol.for(H3),G3;G3=V3;var W3="AI_InvalidToolApprovalError",J3=`vercel.ai.error.${W3}`,X3=Symbol.for(J3),K3;K3=X3;var Y3="AI_InvalidToolInputError",Q3=`vercel.ai.error.${Y3}`,eq=Symbol.for(Q3),tq;tq=eq;var aq="AI_ToolCallNotFoundForApprovalError",rq=`vercel.ai.error.${aq}`,nq=Symbol.for(rq),oq;oq=nq;var iq="AI_NoImageGeneratedError",lq=`vercel.ai.error.${iq}`,sq=Symbol.for(lq),uq;uq=sq;var jO="AI_NoObjectGeneratedError",BO=`vercel.ai.error.${jO}`,cq=Symbol.for(BO),FO,io=class extends Ce{constructor({message:e="No object generated.",cause:t,text:a,response:n,usage:r,finishReason:o}){super({name:jO,message:e,cause:t}),this[FO]=!0,this.text=a,this.response=n,this.usage=r,this.finishReason=o}static isInstance(e){return Ce.hasMarker(e,BO)}};FO=cq;var dq="AI_NoOutputGeneratedError",fq=`vercel.ai.error.${dq}`,pq=Symbol.for(fq),mq;mq=pq;var hq="AI_NoSuchToolError",gq=`vercel.ai.error.${hq}`,vq=Symbol.for(gq),yq;yq=vq;var xq="AI_ToolCallRepairError",bq=`vercel.ai.error.${xq}`,Sq=Symbol.for(bq),wq;wq=Sq;var qO="AI_UIMessageStreamError",ZO=`vercel.ai.error.${qO}`,Iq=Symbol.for(ZO),HO,Kl=class extends Ce{constructor({chunkType:e,chunkId:t,message:a}){super({name:qO,message:a}),this[HO]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Ce.hasMarker(e,ZO)}};HO=Iq;var kq="AI_InvalidDataContentError",_q=`vercel.ai.error.${kq}`,Cq=Symbol.for(_q),Lq;Lq=Cq;var Tq="AI_InvalidMessageRoleError",Aq=`vercel.ai.error.${Tq}`,Eq=Symbol.for(Aq),Mq;Mq=Eq;var Oq="AI_MessageConversionError",zq=`vercel.ai.error.${Oq}`,Dq=Symbol.for(zq),Rq;Rq=Dq;var $q="AI_RetryError",Pq=`vercel.ai.error.${$q}`,Nq=Symbol.for(Pq),Uq;Uq=Nq;var NO="6.0.39";var VO=h.union([h.string(),h.instanceof(Uint8Array),h.instanceof(ArrayBuffer),h.custom(e=>{var t,a;return(a=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?a:!1},{message:"Must be a Buffer"})]);var bc=h.lazy(()=>h.union([h.null(),h.string(),h.number(),h.boolean(),h.record(h.string(),bc.optional()),h.array(bc)])),Y=h.record(h.string(),h.record(h.string(),bc.optional())),GO=h.object({type:h.literal("text"),text:h.string(),providerOptions:Y.optional()}),jq=h.object({type:h.literal("image"),image:h.union([VO,h.instanceof(URL)]),mediaType:h.string().optional(),providerOptions:Y.optional()}),WO=h.object({type:h.literal("file"),data:h.union([VO,h.instanceof(URL)]),filename:h.string().optional(),mediaType:h.string(),providerOptions:Y.optional()}),Bq=h.object({type:h.literal("reasoning"),text:h.string(),providerOptions:Y.optional()}),Fq=h.object({type:h.literal("tool-call"),toolCallId:h.string(),toolName:h.string(),input:h.unknown(),providerOptions:Y.optional(),providerExecuted:h.boolean().optional()}),qq=h.discriminatedUnion("type",[h.object({type:h.literal("text"),value:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("json"),value:bc,providerOptions:Y.optional()}),h.object({type:h.literal("execution-denied"),reason:h.string().optional(),providerOptions:Y.optional()}),h.object({type:h.literal("error-text"),value:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("error-json"),value:bc,providerOptions:Y.optional()}),h.object({type:h.literal("content"),value:h.array(h.union([h.object({type:h.literal("text"),text:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("media"),data:h.string(),mediaType:h.string()}),h.object({type:h.literal("file-data"),data:h.string(),mediaType:h.string(),filename:h.string().optional(),providerOptions:Y.optional()}),h.object({type:h.literal("file-url"),url:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("file-id"),fileId:h.union([h.string(),h.record(h.string(),h.string())]),providerOptions:Y.optional()}),h.object({type:h.literal("image-data"),data:h.string(),mediaType:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("image-url"),url:h.string(),providerOptions:Y.optional()}),h.object({type:h.literal("image-file-id"),fileId:h.union([h.string(),h.record(h.string(),h.string())]),providerOptions:Y.optional()}),h.object({type:h.literal("custom"),providerOptions:Y.optional()})]))})]),JO=h.object({type:h.literal("tool-result"),toolCallId:h.string(),toolName:h.string(),output:qq,providerOptions:Y.optional()}),Zq=h.object({type:h.literal("tool-approval-request"),approvalId:h.string(),toolCallId:h.string()}),Hq=h.object({type:h.literal("tool-approval-response"),approvalId:h.string(),approved:h.boolean(),reason:h.string().optional()}),Vq=h.object({role:h.literal("system"),content:h.string(),providerOptions:Y.optional()}),Gq=h.object({role:h.literal("user"),content:h.union([h.string(),h.array(h.union([GO,jq,WO]))]),providerOptions:Y.optional()}),Wq=h.object({role:h.literal("assistant"),content:h.union([h.string(),h.array(h.union([GO,WO,Bq,Fq,JO,Zq]))]),providerOptions:Y.optional()}),Jq=h.object({role:h.literal("tool"),content:h.array(h.union([JO,Hq])),providerOptions:Y.optional()}),hoe=h.union([Vq,Gq,Wq,Jq]);function XO(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let a={...e};for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];if(r===void 0)continue;let o=n in e?e[n]:void 0,i=r!==null&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp),l=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&l?a[n]=XO(o,r):a[n]=r}return a}var Xq={};U3(Xq,{array:()=>e9,choice:()=>t9,json:()=>a9,object:()=>Qq,text:()=>Yq});function Kq(e){let t=["ROOT"],a=-1,n=null;function r(s,u,c){switch(s){case'"':{a=u,t.pop(),t.push(c),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{a=u,n=u,t.pop(),t.push(c),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=u,t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"{":{a=u,t.pop(),t.push(c),t.push("INSIDE_OBJECT_START");break}case"[":{a=u,t.pop(),t.push(c),t.push("INSIDE_ARRAY_START");break}}}function o(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{a=u,t.pop();break}}}function i(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=u,t.pop();break}}}for(let s=0;s<e.length;s++){let u=e[s];switch(t[t.length-1]){case"ROOT":r(u,s,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{a=s,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{u===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{r(u,s,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,s);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),a=s;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:a=s}break}case"INSIDE_ARRAY_START":{u==="]"?(a=s,t.pop()):(a=s,r(u,s,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=s,t.pop();break}default:{a=s;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{r(u,s,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),a=s;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=s;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let d=e.substring(n,s+1);!"false".startsWith(d)&&!"true".startsWith(d)&&!"null".startsWith(d)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,s):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s)):a=s;break}}}let l=e.slice(0,a+1);for(let s=t.length-1;s>=0;s--)switch(t[s]){case"INSIDE_STRING":{l+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{l+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{l+="]";break}case"INSIDE_LITERAL":{let c=e.substring(n,e.length);"true".startsWith(c)?l+="true".slice(c.length):"false".startsWith(c)?l+="false".slice(c.length):"null".startsWith(c)&&(l+="null".slice(c.length))}}return l}async function Sc(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await pn({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await pn({text:Kq(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var Yq=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),Qq=({schema:e,name:t,description:a})=>{let n=sm(e);return{name:"object",responseFormat:Lr(n.jsonSchema).then(r=>({type:"json",schema:r,...t!=null&&{name:t},...a!=null&&{description:a}})),async parseCompleteOutput({text:r},o){let i=await pn({text:r});if(!i.success)throw new io({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=await Xl({value:i.value,schema:n});if(!l.success)throw new io({message:"No object generated: response did not match schema.",cause:l.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return l.value},async parsePartialOutput({text:r}){let o=await Sc(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},e9=({element:e,name:t,description:a})=>{let n=sm(e);return{name:"array",responseFormat:Lr(n.jsonSchema).then(r=>{let{$schema:o,...i}=r;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}}),async parseCompleteOutput({text:r},o){let i=await pn({text:r});if(!i.success)throw new io({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=i.value;if(l==null||typeof l!="object"||!("elements"in l)||!Array.isArray(l.elements))throw new io({message:"No object generated: response did not match schema.",cause:new kr({value:l,cause:"response must be an object with an elements array"}),text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});for(let s of l.elements){let u=await Xl({value:s,schema:n});if(!u.success)throw new io({message:"No object generated: response did not match schema.",cause:u.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason})}return l.elements},async parsePartialOutput({text:r}){let o=await Sc(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=o.value;if(i==null||typeof i!="object"||!("elements"in i)||!Array.isArray(i.elements))return;let l=o.state==="repaired-parse"&&i.elements.length>0?i.elements.slice(0,-1):i.elements,s=[];for(let u of l){let c=await Xl({value:u,schema:n});c.success&&s.push(c.value)}return{partial:s}}}},createElementStreamTransform(){let r=0;return new TransformStream({transform({partialOutput:o},i){if(o!=null)for(;r<o.length;r++)i.enqueue(o[r])}})}}},t9=({options:e,name:t,description:a})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}),async parseCompleteOutput({text:n},r){let o=await pn({text:n});if(!o.success)throw new io({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=o.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new io({message:"No object generated: response did not match schema.",cause:new kr({value:i,cause:"response must be an object that contains a choice value."}),text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.result},async parsePartialOutput({text:n}){let r=await Sc(n);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=r.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string")return;let i=e.filter(l=>l.startsWith(o.result));return r.state==="successful-parse"?i.includes(o.result)?{partial:o.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),a9=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:a},n){let r=await pn({text:a});if(!r.success)throw new io({message:"No object generated: could not parse the response.",cause:r.error,text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});return r.value},async parsePartialOutput({text:a}){let n=await Sc(a);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return n.value===void 0?void 0:{partial:n.value}}},createElementStreamTransform(){}});var xoe=fn({prefix:"aitxt",size:24});var Soe=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
82
82
|
|
|
83
83
|
`)},flush(e){e.enqueue(`data: [DONE]
|
|
84
84
|
|
|
85
|
-
`)}})}};var K3=rm(()=>gc(h.union([h.strictObject({type:h.literal("text-start"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("text-delta"),id:h.string(),delta:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("text-end"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("error"),errorText:h.string()}),h.strictObject({type:h.literal("tool-input-start"),toolCallId:h.string(),toolName:h.string(),providerExecuted:h.boolean().optional(),providerMetadata:Y.optional(),dynamic:h.boolean().optional(),title:h.string().optional()}),h.strictObject({type:h.literal("tool-input-delta"),toolCallId:h.string(),inputTextDelta:h.string()}),h.strictObject({type:h.literal("tool-input-available"),toolCallId:h.string(),toolName:h.string(),input:h.unknown(),providerExecuted:h.boolean().optional(),providerMetadata:Y.optional(),dynamic:h.boolean().optional(),title:h.string().optional()}),h.strictObject({type:h.literal("tool-input-error"),toolCallId:h.string(),toolName:h.string(),input:h.unknown(),providerExecuted:h.boolean().optional(),providerMetadata:Y.optional(),dynamic:h.boolean().optional(),errorText:h.string(),title:h.string().optional()}),h.strictObject({type:h.literal("tool-approval-request"),approvalId:h.string(),toolCallId:h.string()}),h.strictObject({type:h.literal("tool-output-available"),toolCallId:h.string(),output:h.unknown(),providerExecuted:h.boolean().optional(),dynamic:h.boolean().optional(),preliminary:h.boolean().optional()}),h.strictObject({type:h.literal("tool-output-error"),toolCallId:h.string(),errorText:h.string(),providerExecuted:h.boolean().optional(),dynamic:h.boolean().optional()}),h.strictObject({type:h.literal("tool-output-denied"),toolCallId:h.string()}),h.strictObject({type:h.literal("reasoning-start"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("reasoning-delta"),id:h.string(),delta:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("reasoning-end"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("source-url"),sourceId:h.string(),url:h.string(),title:h.string().optional(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("source-document"),sourceId:h.string(),mediaType:h.string(),title:h.string(),filename:h.string().optional(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("file"),url:h.string(),mediaType:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:h.string().optional(),data:h.unknown(),transient:h.boolean().optional()}),h.strictObject({type:h.literal("start-step")}),h.strictObject({type:h.literal("finish-step")}),h.strictObject({type:h.literal("start"),messageId:h.string().optional(),messageMetadata:h.unknown().optional()}),h.strictObject({type:h.literal("finish"),finishReason:h.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:h.unknown().optional()}),h.strictObject({type:h.literal("abort"),reason:h.string().optional()}),h.strictObject({type:h.literal("message-metadata"),messageMetadata:h.unknown()})])));function Y3(e){return e.type.startsWith("data-")}function Rw(e){return e.type.startsWith("tool-")}function Q3(e){return e.type==="dynamic-tool"}function $w(e){return Rw(e)||Q3(e)}function $O(e){return e.type.split("-").slice(1).join("-")}function e9({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function t9({stream:e,messageMetadataSchema:t,dataPartSchemas:a,runUpdateMessageJob:n,onError:r,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(l,s){await n(async({state:u,write:c})=>{var d,p,f,m;function x(g){let L=u.message.parts.filter($w).find(_=>_.toolCallId===g);if(L==null)throw new Jl({chunkType:"tool-invocation",chunkId:g,message:`No tool invocation found for tool call ID "${g}".`});return L}function b(g){var S;let L=u.message.parts.find(z=>Rw(z)&&z.toolCallId===g.toolCallId),_=g,A=L;L!=null?(L.state=g.state,A.input=_.input,A.output=_.output,A.errorText=_.errorText,A.rawInput=_.rawInput,A.preliminary=_.preliminary,g.title!==void 0&&(A.title=g.title),A.providerExecuted=(S=_.providerExecuted)!=null?S:L.providerExecuted,_.providerMetadata!=null&&(L.callProviderMetadata=_.providerMetadata)):u.message.parts.push({type:`tool-${g.toolName}`,toolCallId:g.toolCallId,state:g.state,title:g.title,input:_.input,output:_.output,rawInput:_.rawInput,errorText:_.errorText,providerExecuted:_.providerExecuted,preliminary:_.preliminary,..._.providerMetadata!=null?{callProviderMetadata:_.providerMetadata}:{}})}function v(g){var S,L;let _=u.message.parts.find($=>$.type==="dynamic-tool"&&$.toolCallId===g.toolCallId),A=g,z=_;_!=null?(_.state=g.state,z.toolName=g.toolName,z.input=A.input,z.output=A.output,z.errorText=A.errorText,z.rawInput=(S=A.rawInput)!=null?S:z.rawInput,z.preliminary=A.preliminary,g.title!==void 0&&(z.title=g.title),z.providerExecuted=(L=A.providerExecuted)!=null?L:_.providerExecuted,A.providerMetadata!=null&&(_.callProviderMetadata=A.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:g.toolName,toolCallId:g.toolCallId,state:g.state,input:A.input,output:A.output,errorText:A.errorText,preliminary:A.preliminary,providerExecuted:A.providerExecuted,title:g.title,...A.providerMetadata!=null?{callProviderMetadata:A.providerMetadata}:{}})}async function y(g){if(g!=null){let S=u.message.metadata!=null?GO(u.message.metadata,g):g;t!=null&&await im({value:S,schema:t}),u.message.metadata=S}}switch(l.type){case"text-start":{let g={type:"text",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeTextParts[l.id]=g,u.message.parts.push(g),c();break}case"text-delta":{let g=u.activeTextParts[l.id];if(g==null)throw new Jl({chunkType:"text-delta",chunkId:l.id,message:`Received text-delta for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});g.text+=l.delta,g.providerMetadata=(d=l.providerMetadata)!=null?d:g.providerMetadata,c();break}case"text-end":{let g=u.activeTextParts[l.id];if(g==null)throw new Jl({chunkType:"text-end",chunkId:l.id,message:`Received text-end for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});g.state="done",g.providerMetadata=(p=l.providerMetadata)!=null?p:g.providerMetadata,delete u.activeTextParts[l.id],c();break}case"reasoning-start":{let g={type:"reasoning",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeReasoningParts[l.id]=g,u.message.parts.push(g),c();break}case"reasoning-delta":{let g=u.activeReasoningParts[l.id];if(g==null)throw new Jl({chunkType:"reasoning-delta",chunkId:l.id,message:`Received reasoning-delta for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});g.text+=l.delta,g.providerMetadata=(f=l.providerMetadata)!=null?f:g.providerMetadata,c();break}case"reasoning-end":{let g=u.activeReasoningParts[l.id];if(g==null)throw new Jl({chunkType:"reasoning-end",chunkId:l.id,message:`Received reasoning-end for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});g.providerMetadata=(m=l.providerMetadata)!=null?m:g.providerMetadata,g.state="done",delete u.activeReasoningParts[l.id],c();break}case"file":{u.message.parts.push({type:"file",mediaType:l.mediaType,url:l.url}),c();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:l.sourceId,url:l.url,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:l.sourceId,mediaType:l.mediaType,title:l.title,filename:l.filename,providerMetadata:l.providerMetadata}),c();break}case"tool-input-start":{let g=u.message.parts.filter(Rw);u.partialToolCalls[l.toolCallId]={text:"",toolName:l.toolName,index:g.length,dynamic:l.dynamic,title:l.title},l.dynamic?v({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}):b({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"tool-input-delta":{let g=u.partialToolCalls[l.toolCallId];if(g==null)throw new Jl({chunkType:"tool-input-delta",chunkId:l.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${l.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});g.text+=l.inputTextDelta;let{value:S}=await yc(g.text);g.dynamic?v({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:S,title:g.title}):b({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:S,title:g.title}),c();break}case"tool-input-available":{l.dynamic?v({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}):b({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}),c(),o&&!l.providerExecuted&&await o({toolCall:l});break}case"tool-input-error":{l.dynamic?v({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}):b({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:void 0,rawInput:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}),c();break}case"tool-approval-request":{let g=x(l.toolCallId);g.state="approval-requested",g.approval={id:l.approvalId},c();break}case"tool-output-denied":{let g=x(l.toolCallId);g.state="output-denied",c();break}case"tool-output-available":{let g=x(l.toolCallId);g.type==="dynamic-tool"?v({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-available",input:g.input,output:l.output,preliminary:l.preliminary,providerExecuted:l.providerExecuted,title:g.title}):b({toolCallId:l.toolCallId,toolName:$O(g),state:"output-available",input:g.input,output:l.output,providerExecuted:l.providerExecuted,preliminary:l.preliminary,title:g.title}),c();break}case"tool-output-error":{let g=x(l.toolCallId);g.type==="dynamic-tool"?v({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-error",input:g.input,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.title}):b({toolCallId:l.toolCallId,toolName:$O(g),state:"output-error",input:g.input,rawInput:g.rawInput,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.title}),c();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{l.messageId!=null&&(u.message.id=l.messageId),await y(l.messageMetadata),(l.messageId!=null||l.messageMetadata!=null)&&c();break}case"finish":{l.finishReason!=null&&(u.finishReason=l.finishReason),await y(l.messageMetadata),l.messageMetadata!=null&&c();break}case"message-metadata":{await y(l.messageMetadata),l.messageMetadata!=null&&c();break}case"error":{r?.(new Error(l.errorText));break}default:if(Y3(l)){a?.[l.type]!=null&&await im({value:l.data,schema:a[l.type]});let g=l;if(g.transient){i?.(g);break}let S=g.id!=null?u.message.parts.find(L=>g.type===L.type&&g.id===L.id):void 0;S!=null?S.data=g.data:u.message.parts.push(g),i?.(g),c()}}s.enqueue(l)})}}))}async function a9({stream:e,onError:t}){let a=e.getReader();try{for(;;){let{done:n}=await a.read();if(n)break}}catch(n){t?.(n)}finally{a.releaseLock()}}var xoe=un({prefix:"aitxt",size:24});var woe=rm(()=>gc(h.array(h.object({id:h.string(),role:h.enum(["system","user","assistant"]),metadata:h.unknown().optional(),parts:h.array(h.union([h.object({type:h.literal("text"),text:h.string(),state:h.enum(["streaming","done"]).optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("reasoning"),text:h.string(),state:h.enum(["streaming","done"]).optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("source-url"),sourceId:h.string(),url:h.string(),title:h.string().optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("source-document"),sourceId:h.string(),mediaType:h.string(),title:h.string(),filename:h.string().optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("file"),mediaType:h.string(),filename:h.string().optional(),url:h.string(),providerMetadata:Y.optional()}),h.object({type:h.literal("step-start")}),h.object({type:h.string().startsWith("data-"),id:h.string().optional(),data:h.unknown()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("input-streaming"),input:h.unknown().optional(),providerExecuted:h.boolean().optional(),callProviderMetadata:Y.optional(),output:h.never().optional(),errorText:h.never().optional(),approval:h.never().optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("input-available"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.never().optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("approval-requested"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.never().optional(),reason:h.never().optional()})}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("approval-responded"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.boolean(),reason:h.string().optional()})}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("output-available"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.unknown(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),preliminary:h.boolean().optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("output-error"),input:h.unknown(),rawInput:h.unknown().optional(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.string(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("output-denied"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!1),reason:h.string().optional()})}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("input-streaming"),providerExecuted:h.boolean().optional(),callProviderMetadata:Y.optional(),input:h.unknown().optional(),output:h.never().optional(),errorText:h.never().optional(),approval:h.never().optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("input-available"),providerExecuted:h.boolean().optional(),input:h.unknown(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.never().optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("approval-requested"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.never().optional(),reason:h.never().optional()})}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("approval-responded"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.boolean(),reason:h.string().optional()})}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("output-available"),providerExecuted:h.boolean().optional(),input:h.unknown(),output:h.unknown(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),preliminary:h.boolean().optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("output-error"),providerExecuted:h.boolean().optional(),input:h.unknown(),rawInput:h.unknown().optional(),output:h.never().optional(),errorText:h.string(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("output-denied"),providerExecuted:h.boolean().optional(),input:h.unknown(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!1),reason:h.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var koe=un({prefix:"aiobj",size:24});var r9=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,a)=>{this.queue.push(async()=>{try{await e(),t()}catch(n){a(n)}}),this.processQueue()})}};var Coe=un({prefix:"aiobj",size:24});var n9="AI_NoSuchProviderError",o9=`vercel.ai.error.${n9}`,i9=Symbol.for(o9),l9;l9=i9;async function s9(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{let{name:a,type:n}=t,r=await new Promise((o,i)=>{let l=new FileReader;l.onload=s=>{var u;o((u=s.target)==null?void 0:u.result)},l.onerror=s=>i(s),l.readAsDataURL(t)});return{type:"file",mediaType:n,filename:a,url:r}}))}var u9=class{constructor({api:e="/api/chat",credentials:t,headers:a,body:n,fetch:r,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=a,this.body=n,this.fetch=r,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var a,n,r,o,i;let l=await kr(this.body),s=await kr(this.headers),u=await kr(this.credentials),c={...ao(s),...ao(t.headers)},d=await((a=this.prepareSendMessagesRequest)==null?void 0:a.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...l,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=(n=d?.api)!=null?n:this.api,f=d?.headers!==void 0?ao(d.headers):c,m=d?.body!==void 0?d.body:{...l,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},x=(r=d?.credentials)!=null?r:u,v=await((o=this.fetch)!=null?o:globalThis.fetch)(p,{method:"POST",headers:hc({"Content-Type":"application/json",...f},`ai-sdk/${RO}`,zw()),body:JSON.stringify(m),credentials:x,signal:e});if(!v.ok)throw new Error((i=await v.text())!=null?i:"Failed to fetch the chat response.");if(!v.body)throw new Error("The response body is empty.");return this.processResponseStream(v.body)}async reconnectToStream(e){var t,a,n,r,o;let i=await kr(this.body),l=await kr(this.headers),s=await kr(this.credentials),u={...ao(l),...ao(e.headers)},c=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:u,credentials:s,requestMetadata:e.metadata})),d=(a=c?.api)!=null?a:`${this.api}/${e.chatId}/stream`,p=c?.headers!==void 0?ao(c.headers):u,f=(n=c?.credentials)!=null?n:s,x=await((r=this.fetch)!=null?r:globalThis.fetch)(d,{method:"GET",headers:hc(p,`ai-sdk/${RO}`,zw()),credentials:f});if(x.status===204)return null;if(!x.ok)throw new Error((o=await x.text())!=null?o:"Failed to fetch the chat response.");if(!x.body)throw new Error("The response body is empty.");return this.processResponseStream(x.body)}},Pw=class extends u9{constructor(e={}){super(e)}processResponseStream(e){return DO({stream:e,schema:K3}).pipeThrough(new TransformStream({async transform(t,a){if(!t.success)throw t.error;a.enqueue(t.value)}}))}},JO=class{constructor({generateId:e=AO,id:t=e(),transport:a=new Pw,messageMetadataSchema:n,dataPartSchemas:r,state:o,onError:i,onToolCall:l,onFinish:s,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new r9,this.sendMessage=async(d,p)=>{var f,m,x,b;if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(f=this.lastMessage)==null?void 0:f.id,...p});return}let v;if("text"in d||"files"in d?v={parts:[...Array.isArray(d.files)?d.files:await s9(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:v=d,d.messageId!=null){let y=this.state.messages.findIndex(g=>g.id===d.messageId);if(y===-1)throw new Error(`message with id ${d.messageId} not found`);if(this.state.messages[y].role!=="user")throw new Error(`message with id ${d.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,y+1),this.state.replaceMessage(y,{...v,id:d.messageId,role:(m=v.role)!=null?m:"user",metadata:d.metadata})}else this.state.pushMessage({...v,id:(x=v.id)!=null?x:this.generateId(),role:(b=v.role)!=null?b:"user",metadata:d.metadata});await this.makeRequest({trigger:"submit-message",messageId:d.messageId,...p})},this.regenerate=async({messageId:d,...p}={})=>{let f=d==null?this.state.messages.length-1:this.state.messages.findIndex(m=>m.id===d);if(f===-1)throw new Error(`message ${d} not found`);this.state.messages=this.state.messages.slice(0,this.messages[f].role==="assistant"?f:f+1),await this.makeRequest({trigger:"regenerate-message",messageId:d,...p})},this.resumeStream=async(d={})=>{await this.makeRequest({trigger:"resume-stream",...d})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:d,approved:p,reason:f})=>this.jobExecutor.run(async()=>{var m,x;let b=this.state.messages,v=b[b.length-1],y=g=>$w(g)&&g.state==="approval-requested"&&g.approval.id===d?{...g,state:"approval-responded",approval:{id:d,approved:p,reason:f}}:g;this.state.replaceMessage(b.length-1,{...v,parts:v.parts.map(y)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(y)),this.status!=="streaming"&&this.status!=="submitted"&&((m=this.sendAutomaticallyWhen)!=null&&m.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(x=this.lastMessage)==null?void 0:x.id})}),this.addToolOutput=async({state:d="output-available",tool:p,toolCallId:f,output:m,errorText:x})=>this.jobExecutor.run(async()=>{var b,v;let y=this.state.messages,g=y[y.length-1],S=L=>$w(L)&&L.toolCallId===f?{...L,state:d,output:m,errorText:x}:L;this.state.replaceMessage(y.length-1,{...g,parts:g.parts.map(S)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(S)),this.status!=="streaming"&&this.status!=="submitted"&&((b=this.sendAutomaticallyWhen)!=null&&b.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(v=this.lastMessage)==null?void 0:v.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var d;this.status!=="streaming"&&this.status!=="submitted"||(d=this.activeResponse)!=null&&d.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=a,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=r,this.state=o,this.onError=i,this.onToolCall=l,this.onFinish=s,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:a,body:n,messageId:r}){var o,i,l,s;this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,p=!1;try{let f={state:e9({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};f.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=f;let m;if(e==="resume-stream"){let b=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:a,body:n});if(b==null){this.setStatus({status:"ready"});return}m=b}else m=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:f.abortController.signal,metadata:t,headers:a,body:n,trigger:e,messageId:r});let x=b=>this.jobExecutor.run(()=>b({state:f.state,write:()=>{var v;this.setStatus({status:"streaming"}),f.state.message.id===((v=this.lastMessage)==null?void 0:v.id)?this.state.replaceMessage(this.state.messages.length-1,f.state.message):this.state.pushMessage(f.state.message)}}));await a9({stream:t9({stream:m,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:x,onError:b=>{throw b}}),onError:b=>{throw b}}),this.setStatus({status:"ready"})}catch(f){if(c||f.name==="AbortError")return c=!0,this.setStatus({status:"ready"}),null;p=!0,f instanceof TypeError&&(f.message.toLowerCase().includes("fetch")||f.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&f instanceof Error&&this.onError(f),this.setStatus({status:"error",error:f})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:p,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(f){console.error(f)}this.activeResponse=void 0}(l=this.sendAutomaticallyWhen)!=null&&l.call(this,{messages:this.state.messages})&&!p&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:a,body:n})}};var QO=Le(WO(),1);var wc=Le(Nt(),1);var um=Le(Nt(),1);var YO=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},Ke=(e,t,a)=>(YO(e,t,"read from private field"),a?a.call(e):t.get(e)),_r=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},no=(e,t,a,n)=>(YO(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a);function d9(e,t){return t!=null?(0,QO.default)(e,t):e}var Ha,lm,sm,xc,bc,Sc,Xl,Nw,Uw,f9=class{constructor(e=[]){_r(this,Ha,void 0),_r(this,lm,"ready"),_r(this,sm,void 0),_r(this,xc,new Set),_r(this,bc,new Set),_r(this,Sc,new Set),this.pushMessage=t=>{no(this,Ha,Ke(this,Ha).concat(t)),Ke(this,Xl).call(this)},this.popMessage=()=>{no(this,Ha,Ke(this,Ha).slice(0,-1)),Ke(this,Xl).call(this)},this.replaceMessage=(t,a)=>{no(this,Ha,[...Ke(this,Ha).slice(0,t),this.snapshot(a),...Ke(this,Ha).slice(t+1)]),Ke(this,Xl).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,a)=>{let n=a?d9(t,a):t;return Ke(this,xc).add(n),()=>{Ke(this,xc).delete(n)}},this["~registerStatusCallback"]=t=>(Ke(this,bc).add(t),()=>{Ke(this,bc).delete(t)}),this["~registerErrorCallback"]=t=>(Ke(this,Sc).add(t),()=>{Ke(this,Sc).delete(t)}),_r(this,Xl,()=>{Ke(this,xc).forEach(t=>t())}),_r(this,Nw,()=>{Ke(this,bc).forEach(t=>t())}),_r(this,Uw,()=>{Ke(this,Sc).forEach(t=>t())}),no(this,Ha,e)}get status(){return Ke(this,lm)}set status(e){no(this,lm,e),Ke(this,Nw).call(this)}get error(){return Ke(this,sm)}set error(e){no(this,sm,e),Ke(this,Uw).call(this)}get messages(){return Ke(this,Ha)}set messages(e){no(this,Ha,[...e]),Ke(this,Xl).call(this)}};Ha=new WeakMap;lm=new WeakMap;sm=new WeakMap;xc=new WeakMap;bc=new WeakMap;Sc=new WeakMap;Xl=new WeakMap;Nw=new WeakMap;Uw=new WeakMap;var Wl,KO=class extends JO{constructor({messages:e,...t}){let a=new f9(e);super({...t,state:a}),_r(this,Wl,void 0),this["~registerMessagesCallback"]=(n,r)=>Ke(this,Wl)["~registerMessagesCallback"](n,r),this["~registerStatusCallback"]=n=>Ke(this,Wl)["~registerStatusCallback"](n),this["~registerErrorCallback"]=n=>Ke(this,Wl)["~registerErrorCallback"](n),no(this,Wl,a)}};Wl=new WeakMap;function ez({experimental_throttle:e,resume:t=!1,...a}={}){let n=(0,Va.useRef)("chat"in a?{}:{onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});"chat"in a||(n.current={onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});let r={...a,onToolCall:p=>{var f,m;return(m=(f=n.current).onToolCall)==null?void 0:m.call(f,p)},onData:p=>{var f,m;return(m=(f=n.current).onData)==null?void 0:m.call(f,p)},onFinish:p=>{var f,m;return(m=(f=n.current).onFinish)==null?void 0:m.call(f,p)},onError:p=>{var f,m;return(m=(f=n.current).onError)==null?void 0:m.call(f,p)},sendAutomaticallyWhen:p=>{var f,m,x;return(x=(m=(f=n.current).sendAutomaticallyWhen)==null?void 0:m.call(f,p))!=null?x:!1}},o=(0,Va.useRef)("chat"in a?a.chat:new KO(r));("chat"in a&&a.chat!==o.current||"id"in a&&o.current.id!==a.id)&&(o.current="chat"in a?a.chat:new KO(r));let l=(0,Va.useCallback)(p=>o.current["~registerMessagesCallback"](p,e),[e,o.current.id]),s=(0,Va.useSyncExternalStore)(l,()=>o.current.messages,()=>o.current.messages),u=(0,Va.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),c=(0,Va.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),d=(0,Va.useCallback)(p=>{typeof p=="function"&&(p=p(o.current.messages)),o.current.messages=p},[o]);return(0,Va.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:s,setMessages:d,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:c,resumeStream:o.current.resumeStream,status:u,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}var Ga=Le(Nt(),1);function p9(e,t){return async(a,n)=>{let r=i=>fetch(a,{...n,headers:{...n?.headers,Authorization:`Bearer ${i}`}}),o=await r(e.current);if(o.status===401&&t){let i=await t();if(i)return e.current=i,r(i)}return o}}function tz({api:e,threadId:t,agentId:a,agentExecutionId:n,dataContext:r,onError:o,onAuthError:i,onFinish:l,onData:s,onMessage:u}){let{baseUrl:c,token:d,headers:p={}}=e,f=(0,Ga.useRef)(r);f.current=r;let m=(0,Ga.useRef)(d);m.current=d;let x=(0,Ga.useRef)(i);x.current=i;let b=(0,Ga.useMemo)(()=>p9(m,async()=>x.current?.()??null),[]),v=(0,Ga.useMemo)(()=>new Pw({api:`${c}/chat`,fetch:b,headers:{"Content-Type":"application/json","thread-id":t,...a?{"agent-id":a}:{},...n?{"agent-execution-id":n}:{},...p},prepareSendMessagesRequest({messages:k,id:G}){return{body:{id:G,message:k[k.length-1],dataContext:f.current}}}}),[c,b,t,a,n,p]),{messages:y,status:g,sendMessage:S,stop:L,setMessages:_}=ez({id:t,transport:v,onError:k=>{console.error("Chat error:",k),o?.(k)},onFinish:k=>{l?.(k)},onData:k=>{s?.(k)}}),[A,z]=(0,Ga.useState)(!0);return(0,Ga.useEffect)(()=>{(async()=>{try{let G=await b(`${c}/chat/messages`,{method:"GET",headers:{"thread-id":t}});if(!G.ok)throw new Error(`Failed to fetch messages: ${G.statusText}`);let F=(await G.json()).messages||[];F.length>0&&_(F)}catch(G){console.error("Error fetching initial messages:",G),o?.(G)}finally{z(!1)}})()},[n,a,b,c,o,_,t]),(0,Ga.useEffect)(()=>{if(!u||y.length===0)return;let k=y[y.length-1];k&&u(k)},[y,u]),{messages:y.map((k,G,Z)=>{let F=[],X=[],J=[],ne=te=>{let W=J[J.length-1];W?W.content.push(te):F.push({type:"content",item:te})};for(k.parts.forEach(te=>{if(te.type==="data-tag-start"){let W=te.data;W&&typeof W=="object"&&"tagId"in W&&J.push({tagId:W.tagId,content:[]})}else if(te.type==="data-tag-end"){let W=J.pop();W&&F.push({type:"tag-group",group:W})}else if(te.type==="text"){let W=te.text.trim();W&&ne(W)}else if(te.type==="data-ui")te.data.forEach(W=>ne(W));else if(te.type==="data-thoughts"){let W=te.data.map(I=>I.output).filter(I=>I!=null);X.push(...W)}else if(te.type!=="data-transfer"){if(te.type==="step-start"){let W=J[J.length-1];W&&(W.lastStepStartIndex=W.content.length)}else if(te.type.startsWith("tool-")){let W=te,I=W.toolName||W.type.replace("tool-","");ne({type:"tool-call",toolName:I,input:W.input,state:W.state==="output-available"?"output-available":W.state==="input-error"||W.state==="output-error"?"error":"pending",output:W.output})}}});J.length>0;){let te=J.pop();te&&F.push({type:"tag-group",group:te})}let ie=G===Z.length-1;if(k.role==="assistant"&&(!ie||g!=="streaming")){let te=k.parts.at(-1);te&&te.type==="data-thoughts"&&te.data.map(I=>I.output).forEach(I=>F.push({type:"content",item:I}))}return{id:k.id,role:k.role,sections:F,thoughts:X}}),status:g,isLoadingInitial:A,sendMessage:S,stop:L,setMessages:_}}var oo=Le(Nt(),1);function az({api:e,threadId:t,agentId:a,agentExecutionId:n}){let{baseUrl:r,token:o}=e,[i,l]=(0,oo.useState)({}),[s,u]=(0,oo.useState)(null),[c,d]=(0,oo.useState)(null),p=(0,oo.useCallback)(async({messageId:x,rating:b,improvementText:v})=>{u(x),d(null);try{let y=await fetch(`${r}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify({threadId:t,messageId:x,rating:b,improvementText:v||void 0,agentId:a||void 0,orchestrationId:n||void 0})});if(!y.ok){let L=await y.json().catch(()=>({}));throw new Error(L.error||`Failed to submit feedback: ${y.statusText}`)}let{data:g}=await y.json(),S={id:g.id,messageId:g.messageId,rating:g.rating,improvementText:g.improvementText,createdAt:new Date(g.createdAt)};return l(L=>({...L,[x]:{rating:S.rating,comment:S.improvementText}})),S}catch(y){let g=y instanceof Error?y:new Error("Unknown error");return d(g),console.error("Failed to submit feedback:",g),null}finally{u(null)}},[r,o,t,a,n]),f=(0,oo.useCallback)(x=>i[x],[i]),m=(0,oo.useCallback)(x=>x in i,[i]);return{submitFeedback:p,getFeedbackForMessage:f,hasFeedback:m,isSubmitting:s,error:c}}function rz(e){var t,a,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=rz(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function nz(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=rz(e))&&(n&&(n+=" "),n+=t);return n}var m9=e=>{let t=g9(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{let l=i.split("-");return l[0]===""&&l.length!==1&&l.shift(),lz(l,t)||h9(i)},getConflictingClassGroupIds:(i,l)=>{let s=a[i]||[];return l&&n[i]?[...s,...n[i]]:s}}},lz=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],n=t.nextPart.get(a),r=n?lz(e.slice(1),n):void 0;if(r)return r;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},oz=/^\[(.+)\]$/,h9=e=>{if(oz.test(e)){let t=oz.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},g9=e=>{let{theme:t,prefix:a}=e,n={nextPart:new Map,validators:[]};return y9(Object.entries(e.classGroups),a).forEach(([o,i])=>{Bw(i,n,o,t)}),n},Bw=(e,t,a,n)=>{e.forEach(r=>{if(typeof r=="string"){let o=r===""?t:iz(t,r);o.classGroupId=a;return}if(typeof r=="function"){if(v9(r)){Bw(r(n),t,a,n);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([o,i])=>{Bw(i,iz(t,o),a,n)})})},iz=(e,t)=>{let a=e;return t.split("-").forEach(n=>{a.nextPart.has(n)||a.nextPart.set(n,{nextPart:new Map,validators:[]}),a=a.nextPart.get(n)}),a},v9=e=>e.isThemeGetter,y9=(e,t)=>t?e.map(([a,n])=>{let r=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[a,r]}):e,x9=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,n=new Map,r=(o,i)=>{a.set(o,i),t++,t>e&&(t=0,n=a,a=new Map)};return{get(o){let i=a.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return r(o,i),i},set(o,i){a.has(o)?a.set(o,i):r(o,i)}}};var b9=e=>{let{separator:t,experimentalParseClassName:a}=e,n=t.length===1,r=t[0],o=t.length,i=l=>{let s=[],u=0,c=0,d;for(let b=0;b<l.length;b++){let v=l[b];if(u===0){if(v===r&&(n||l.slice(b,b+o)===t)){s.push(l.slice(c,b)),c=b+o;continue}if(v==="/"){d=b;continue}}v==="["?u++:v==="]"&&u--}let p=s.length===0?l:l.substring(c),f=p.startsWith("!"),m=f?p.substring(1):p,x=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:x}};return a?l=>a({className:l,parseClassName:i}):i},S9=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(n=>{n[0]==="["?(t.push(...a.sort(),n),a=[]):a.push(n)}),t.push(...a.sort()),t},w9=e=>({cache:x9(e.cacheSize),parseClassName:b9(e),...m9(e)}),I9=/\s+/,k9=(e,t)=>{let{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(I9),l="";for(let s=i.length-1;s>=0;s-=1){let u=i[s],{modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=a(u),m=!!f,x=n(m?p.substring(0,f):p);if(!x){if(!m){l=u+(l.length>0?" "+l:l);continue}if(x=n(p),!x){l=u+(l.length>0?" "+l:l);continue}m=!1}let b=S9(c).join(":"),v=d?b+"!":b,y=v+x;if(o.includes(y))continue;o.push(y);let g=r(x,m);for(let S=0;S<g.length;++S){let L=g[S];o.push(v+L)}l=u+(l.length>0?" "+l:l)}return l};function _9(){let e=0,t,a,n="";for(;e<arguments.length;)(t=arguments[e++])&&(a=sz(t))&&(n&&(n+=" "),n+=a);return n}var sz=e=>{if(typeof e=="string")return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=sz(e[n]))&&(a&&(a+=" "),a+=t);return a};function C9(e,...t){let a,n,r,o=i;function i(s){let u=t.reduce((c,d)=>d(c),e());return a=w9(u),n=a.cache.get,r=a.cache.set,o=l,l(s)}function l(s){let u=n(s);if(u)return u;let c=k9(s,a);return r(s,c),c}return function(){return o(_9.apply(null,arguments))}}var Ye=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},uz=/^\[(?:([a-z-]+):)?(.+)\]$/i,L9=/^\d+\/\d+$/,T9=new Set(["px","full","screen"]),A9=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E9=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,M9=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O9=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z9=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>Kl(e)||T9.has(e)||L9.test(e),io=e=>Yl(e,"length",B9),Kl=e=>!!e&&!Number.isNaN(Number(e)),jw=e=>Yl(e,"number",Kl),Ic=e=>!!e&&Number.isInteger(Number(e)),D9=e=>e.endsWith("%")&&Kl(e.slice(0,-1)),pe=e=>uz.test(e),lo=e=>A9.test(e),R9=new Set(["length","size","percentage"]),$9=e=>Yl(e,R9,cz),P9=e=>Yl(e,"position",cz),N9=new Set(["image","url"]),U9=e=>Yl(e,N9,q9),j9=e=>Yl(e,"",F9),kc=()=>!0,Yl=(e,t,a)=>{let n=uz.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):a(n[2]):!1},B9=e=>E9.test(e)&&!M9.test(e),cz=()=>!1,F9=e=>O9.test(e),q9=e=>z9.test(e);var Z9=()=>{let e=Ye("colors"),t=Ye("spacing"),a=Ye("blur"),n=Ye("brightness"),r=Ye("borderColor"),o=Ye("borderRadius"),i=Ye("borderSpacing"),l=Ye("borderWidth"),s=Ye("contrast"),u=Ye("grayscale"),c=Ye("hueRotate"),d=Ye("invert"),p=Ye("gap"),f=Ye("gradientColorStops"),m=Ye("gradientColorStopPositions"),x=Ye("inset"),b=Ye("margin"),v=Ye("opacity"),y=Ye("padding"),g=Ye("saturate"),S=Ye("scale"),L=Ye("sepia"),_=Ye("skew"),A=Ye("space"),z=Ye("translate"),$=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",pe,t],Z=()=>[pe,t],F=()=>["",dn,io],X=()=>["auto",Kl,pe],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",pe],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ne=()=>[Kl,pe];return{cacheSize:500,separator:":",theme:{colors:[kc],spacing:[dn,io],blur:["none","",lo,pe],brightness:Ne(),borderColor:[e],borderRadius:["none","","full",lo,pe],borderSpacing:Z(),borderWidth:F(),contrast:Ne(),grayscale:W(),hueRotate:Ne(),invert:W(),gap:Z(),gradientColorStops:[e],gradientColorStopPositions:[D9,io],inset:G(),margin:G(),opacity:Ne(),padding:Z(),saturate:Ne(),scale:Ne(),sepia:W(),skew:Ne(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[lo]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),pe]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ic,pe]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",Ic,pe]}],"grid-cols":[{"grid-cols":[kc]}],"col-start-end":[{col:["auto",{span:["full",Ic,pe]},pe]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[kc]}],"row-start-end":[{row:["auto",{span:[Ic,pe]},pe]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[lo]},lo]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lo,io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jw]}],"font-family":[{font:[kc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",pe]}],"line-clamp":[{"line-clamp":["none",Kl,jw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dn,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dn,io]}],"underline-offset":[{"underline-offset":["auto",dn,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),P9]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$9]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},U9]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:ne()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[dn,pe]}],"outline-w":[{outline:[dn,io]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[dn,io]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lo,j9]}],"shadow-color":[{shadow:[kc]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",lo,pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:Ne()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:Ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ic,pe]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dn,io,jw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var dz=C9(Z9);function ir(...e){return dz(nz(e))}Wa(`.chat-widget__feedback{display:flex;align-items:center;gap:.25rem;margin-top:.35rem}.chat-widget__feedback-button{border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;color:#9ca3af;cursor:pointer;border-radius:.35rem;transition:all .15s ease}.chat-widget__feedback-button:hover:not(:disabled){background:#0000000d;color:#6b7280}.chat-widget__feedback-button:disabled{cursor:default;opacity:.5}.chat-widget__feedback-button--positive.chat-widget__feedback-button--selected{color:#22c55e;background:#22c55e1a}.chat-widget__feedback-button--negative.chat-widget__feedback-button--selected{color:#ef4444;background:#ef44441a}.chat-widget__feedback-button--comment.chat-widget__feedback-button--selected{color:var(--chat-primary, #3b82f6);background:#3b82f61a}.chat-widget__feedback-button--comment.chat-widget__feedback-button--has-content{color:var(--chat-primary, #3b82f6)}.chat-widget__feedback-icon{width:1rem;height:1rem}.chat-widget__feedback-comment-section{margin-top:.75rem;background:var(--chat-background, #ffffff);border:1px solid var(--chat-border, #e5e7eb);border-radius:.5rem;padding:.75rem;width:100%;max-width:400px}.chat-widget__feedback-comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;font-size:.8125rem;font-weight:600;color:var(--chat-assistant-text, #111827)}.chat-widget__feedback-comment-required{font-size:.6875rem;font-weight:500;color:#ef4444;background:#ef44441a;padding:.125rem .375rem;border-radius:.25rem}.chat-widget__feedback-textarea{width:100%;min-height:120px;padding:.625rem;border:1px solid var(--chat-border, #e5e7eb);border-radius:.35rem;font-size:.875rem;font-family:inherit;resize:vertical;color:var(--chat-input-text, #111827);background:var(--chat-input-bg, #ffffff);line-height:1.5}.chat-widget__feedback-textarea:focus{outline:none;border-color:var(--chat-primary, #3b82f6);box-shadow:0 0 0 2px #3b82f61a}.chat-widget__feedback-textarea::-moz-placeholder{color:var(--chat-input-placeholder, #6b7280)}.chat-widget__feedback-textarea::placeholder{color:var(--chat-input-placeholder, #6b7280)}.chat-widget__feedback-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem}.chat-widget__feedback-cancel,.chat-widget__feedback-submit{padding:.5rem 1rem;font-size:.8125rem;font-weight:500;border-radius:.35rem;cursor:pointer;transition:all .15s ease}.chat-widget__feedback-cancel{background:transparent;border:1px solid var(--chat-border, #e5e7eb);color:#6b7280}.chat-widget__feedback-cancel:hover{background:#0000000d}.chat-widget__feedback-submit{background:var(--chat-primary, #3b82f6);border:none;color:var(--chat-primary-text, #ffffff)}.chat-widget__feedback-submit:hover:not(:disabled){background:var(--chat-primary-hover, #2563eb)}.chat-widget__feedback-submit:disabled{opacity:.5;cursor:not-allowed}.chat-widget__feedback-wrapper{position:relative}
|
|
86
|
-
`);var
|
|
87
|
-
`);var
|
|
88
|
-
`);var
|
|
85
|
+
`)}})}};var r9=im(()=>xc(h.union([h.strictObject({type:h.literal("text-start"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("text-delta"),id:h.string(),delta:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("text-end"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("error"),errorText:h.string()}),h.strictObject({type:h.literal("tool-input-start"),toolCallId:h.string(),toolName:h.string(),providerExecuted:h.boolean().optional(),providerMetadata:Y.optional(),dynamic:h.boolean().optional(),title:h.string().optional()}),h.strictObject({type:h.literal("tool-input-delta"),toolCallId:h.string(),inputTextDelta:h.string()}),h.strictObject({type:h.literal("tool-input-available"),toolCallId:h.string(),toolName:h.string(),input:h.unknown(),providerExecuted:h.boolean().optional(),providerMetadata:Y.optional(),dynamic:h.boolean().optional(),title:h.string().optional()}),h.strictObject({type:h.literal("tool-input-error"),toolCallId:h.string(),toolName:h.string(),input:h.unknown(),providerExecuted:h.boolean().optional(),providerMetadata:Y.optional(),dynamic:h.boolean().optional(),errorText:h.string(),title:h.string().optional()}),h.strictObject({type:h.literal("tool-approval-request"),approvalId:h.string(),toolCallId:h.string()}),h.strictObject({type:h.literal("tool-output-available"),toolCallId:h.string(),output:h.unknown(),providerExecuted:h.boolean().optional(),dynamic:h.boolean().optional(),preliminary:h.boolean().optional()}),h.strictObject({type:h.literal("tool-output-error"),toolCallId:h.string(),errorText:h.string(),providerExecuted:h.boolean().optional(),dynamic:h.boolean().optional()}),h.strictObject({type:h.literal("tool-output-denied"),toolCallId:h.string()}),h.strictObject({type:h.literal("reasoning-start"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("reasoning-delta"),id:h.string(),delta:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("reasoning-end"),id:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("source-url"),sourceId:h.string(),url:h.string(),title:h.string().optional(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("source-document"),sourceId:h.string(),mediaType:h.string(),title:h.string(),filename:h.string().optional(),providerMetadata:Y.optional()}),h.strictObject({type:h.literal("file"),url:h.string(),mediaType:h.string(),providerMetadata:Y.optional()}),h.strictObject({type:h.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:h.string().optional(),data:h.unknown(),transient:h.boolean().optional()}),h.strictObject({type:h.literal("start-step")}),h.strictObject({type:h.literal("finish-step")}),h.strictObject({type:h.literal("start"),messageId:h.string().optional(),messageMetadata:h.unknown().optional()}),h.strictObject({type:h.literal("finish"),finishReason:h.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:h.unknown().optional()}),h.strictObject({type:h.literal("abort"),reason:h.string().optional()}),h.strictObject({type:h.literal("message-metadata"),messageMetadata:h.unknown()})])));function n9(e){return e.type.startsWith("data-")}function Uw(e){return e.type.startsWith("tool-")}function o9(e){return e.type==="dynamic-tool"}function jw(e){return Uw(e)||o9(e)}function UO(e){return e.type.split("-").slice(1).join("-")}function i9({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function l9({stream:e,messageMetadataSchema:t,dataPartSchemas:a,runUpdateMessageJob:n,onError:r,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(l,s){await n(async({state:u,write:c})=>{var d,p,f,m;function x(g){let L=u.message.parts.filter(jw).find(_=>_.toolCallId===g);if(L==null)throw new Kl({chunkType:"tool-invocation",chunkId:g,message:`No tool invocation found for tool call ID "${g}".`});return L}function b(g){var S;let L=u.message.parts.find(z=>Uw(z)&&z.toolCallId===g.toolCallId),_=g,A=L;L!=null?(L.state=g.state,A.input=_.input,A.output=_.output,A.errorText=_.errorText,A.rawInput=_.rawInput,A.preliminary=_.preliminary,g.title!==void 0&&(A.title=g.title),A.providerExecuted=(S=_.providerExecuted)!=null?S:L.providerExecuted,_.providerMetadata!=null&&(L.callProviderMetadata=_.providerMetadata)):u.message.parts.push({type:`tool-${g.toolName}`,toolCallId:g.toolCallId,state:g.state,title:g.title,input:_.input,output:_.output,rawInput:_.rawInput,errorText:_.errorText,providerExecuted:_.providerExecuted,preliminary:_.preliminary,..._.providerMetadata!=null?{callProviderMetadata:_.providerMetadata}:{}})}function v(g){var S,L;let _=u.message.parts.find($=>$.type==="dynamic-tool"&&$.toolCallId===g.toolCallId),A=g,z=_;_!=null?(_.state=g.state,z.toolName=g.toolName,z.input=A.input,z.output=A.output,z.errorText=A.errorText,z.rawInput=(S=A.rawInput)!=null?S:z.rawInput,z.preliminary=A.preliminary,g.title!==void 0&&(z.title=g.title),z.providerExecuted=(L=A.providerExecuted)!=null?L:_.providerExecuted,A.providerMetadata!=null&&(_.callProviderMetadata=A.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:g.toolName,toolCallId:g.toolCallId,state:g.state,input:A.input,output:A.output,errorText:A.errorText,preliminary:A.preliminary,providerExecuted:A.providerExecuted,title:g.title,...A.providerMetadata!=null?{callProviderMetadata:A.providerMetadata}:{}})}async function y(g){if(g!=null){let S=u.message.metadata!=null?XO(u.message.metadata,g):g;t!=null&&await um({value:S,schema:t}),u.message.metadata=S}}switch(l.type){case"text-start":{let g={type:"text",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeTextParts[l.id]=g,u.message.parts.push(g),c();break}case"text-delta":{let g=u.activeTextParts[l.id];if(g==null)throw new Kl({chunkType:"text-delta",chunkId:l.id,message:`Received text-delta for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});g.text+=l.delta,g.providerMetadata=(d=l.providerMetadata)!=null?d:g.providerMetadata,c();break}case"text-end":{let g=u.activeTextParts[l.id];if(g==null)throw new Kl({chunkType:"text-end",chunkId:l.id,message:`Received text-end for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});g.state="done",g.providerMetadata=(p=l.providerMetadata)!=null?p:g.providerMetadata,delete u.activeTextParts[l.id],c();break}case"reasoning-start":{let g={type:"reasoning",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeReasoningParts[l.id]=g,u.message.parts.push(g),c();break}case"reasoning-delta":{let g=u.activeReasoningParts[l.id];if(g==null)throw new Kl({chunkType:"reasoning-delta",chunkId:l.id,message:`Received reasoning-delta for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});g.text+=l.delta,g.providerMetadata=(f=l.providerMetadata)!=null?f:g.providerMetadata,c();break}case"reasoning-end":{let g=u.activeReasoningParts[l.id];if(g==null)throw new Kl({chunkType:"reasoning-end",chunkId:l.id,message:`Received reasoning-end for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});g.providerMetadata=(m=l.providerMetadata)!=null?m:g.providerMetadata,g.state="done",delete u.activeReasoningParts[l.id],c();break}case"file":{u.message.parts.push({type:"file",mediaType:l.mediaType,url:l.url}),c();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:l.sourceId,url:l.url,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:l.sourceId,mediaType:l.mediaType,title:l.title,filename:l.filename,providerMetadata:l.providerMetadata}),c();break}case"tool-input-start":{let g=u.message.parts.filter(Uw);u.partialToolCalls[l.toolCallId]={text:"",toolName:l.toolName,index:g.length,dynamic:l.dynamic,title:l.title},l.dynamic?v({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}):b({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"tool-input-delta":{let g=u.partialToolCalls[l.toolCallId];if(g==null)throw new Kl({chunkType:"tool-input-delta",chunkId:l.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${l.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});g.text+=l.inputTextDelta;let{value:S}=await Sc(g.text);g.dynamic?v({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:S,title:g.title}):b({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:S,title:g.title}),c();break}case"tool-input-available":{l.dynamic?v({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}):b({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}),c(),o&&!l.providerExecuted&&await o({toolCall:l});break}case"tool-input-error":{l.dynamic?v({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}):b({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:void 0,rawInput:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}),c();break}case"tool-approval-request":{let g=x(l.toolCallId);g.state="approval-requested",g.approval={id:l.approvalId},c();break}case"tool-output-denied":{let g=x(l.toolCallId);g.state="output-denied",c();break}case"tool-output-available":{let g=x(l.toolCallId);g.type==="dynamic-tool"?v({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-available",input:g.input,output:l.output,preliminary:l.preliminary,providerExecuted:l.providerExecuted,title:g.title}):b({toolCallId:l.toolCallId,toolName:UO(g),state:"output-available",input:g.input,output:l.output,providerExecuted:l.providerExecuted,preliminary:l.preliminary,title:g.title}),c();break}case"tool-output-error":{let g=x(l.toolCallId);g.type==="dynamic-tool"?v({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-error",input:g.input,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.title}):b({toolCallId:l.toolCallId,toolName:UO(g),state:"output-error",input:g.input,rawInput:g.rawInput,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.title}),c();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{l.messageId!=null&&(u.message.id=l.messageId),await y(l.messageMetadata),(l.messageId!=null||l.messageMetadata!=null)&&c();break}case"finish":{l.finishReason!=null&&(u.finishReason=l.finishReason),await y(l.messageMetadata),l.messageMetadata!=null&&c();break}case"message-metadata":{await y(l.messageMetadata),l.messageMetadata!=null&&c();break}case"error":{r?.(new Error(l.errorText));break}default:if(n9(l)){a?.[l.type]!=null&&await um({value:l.data,schema:a[l.type]});let g=l;if(g.transient){i?.(g);break}let S=g.id!=null?u.message.parts.find(L=>g.type===L.type&&g.id===L.id):void 0;S!=null?S.data=g.data:u.message.parts.push(g),i?.(g),c()}}s.enqueue(l)})}}))}async function s9({stream:e,onError:t}){let a=e.getReader();try{for(;;){let{done:n}=await a.read();if(n)break}}catch(n){t?.(n)}finally{a.releaseLock()}}var _oe=fn({prefix:"aitxt",size:24});var Toe=im(()=>xc(h.array(h.object({id:h.string(),role:h.enum(["system","user","assistant"]),metadata:h.unknown().optional(),parts:h.array(h.union([h.object({type:h.literal("text"),text:h.string(),state:h.enum(["streaming","done"]).optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("reasoning"),text:h.string(),state:h.enum(["streaming","done"]).optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("source-url"),sourceId:h.string(),url:h.string(),title:h.string().optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("source-document"),sourceId:h.string(),mediaType:h.string(),title:h.string(),filename:h.string().optional(),providerMetadata:Y.optional()}),h.object({type:h.literal("file"),mediaType:h.string(),filename:h.string().optional(),url:h.string(),providerMetadata:Y.optional()}),h.object({type:h.literal("step-start")}),h.object({type:h.string().startsWith("data-"),id:h.string().optional(),data:h.unknown()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("input-streaming"),input:h.unknown().optional(),providerExecuted:h.boolean().optional(),callProviderMetadata:Y.optional(),output:h.never().optional(),errorText:h.never().optional(),approval:h.never().optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("input-available"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.never().optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("approval-requested"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.never().optional(),reason:h.never().optional()})}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("approval-responded"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.boolean(),reason:h.string().optional()})}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("output-available"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.unknown(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),preliminary:h.boolean().optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("output-error"),input:h.unknown(),rawInput:h.unknown().optional(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.string(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.literal("dynamic-tool"),toolName:h.string(),toolCallId:h.string(),state:h.literal("output-denied"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!1),reason:h.string().optional()})}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("input-streaming"),providerExecuted:h.boolean().optional(),callProviderMetadata:Y.optional(),input:h.unknown().optional(),output:h.never().optional(),errorText:h.never().optional(),approval:h.never().optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("input-available"),providerExecuted:h.boolean().optional(),input:h.unknown(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.never().optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("approval-requested"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.never().optional(),reason:h.never().optional()})}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("approval-responded"),input:h.unknown(),providerExecuted:h.boolean().optional(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.boolean(),reason:h.string().optional()})}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("output-available"),providerExecuted:h.boolean().optional(),input:h.unknown(),output:h.unknown(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),preliminary:h.boolean().optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("output-error"),providerExecuted:h.boolean().optional(),input:h.unknown(),rawInput:h.unknown().optional(),output:h.never().optional(),errorText:h.string(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!0),reason:h.string().optional()}).optional()}),h.object({type:h.string().startsWith("tool-"),toolCallId:h.string(),state:h.literal("output-denied"),providerExecuted:h.boolean().optional(),input:h.unknown(),output:h.never().optional(),errorText:h.never().optional(),callProviderMetadata:Y.optional(),approval:h.object({id:h.string(),approved:h.literal(!1),reason:h.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var Eoe=fn({prefix:"aiobj",size:24});var u9=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,a)=>{this.queue.push(async()=>{try{await e(),t()}catch(n){a(n)}}),this.processQueue()})}};var Ooe=fn({prefix:"aiobj",size:24});var c9="AI_NoSuchProviderError",d9=`vercel.ai.error.${c9}`,f9=Symbol.for(d9),p9;p9=f9;async function m9(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{let{name:a,type:n}=t,r=await new Promise((o,i)=>{let l=new FileReader;l.onload=s=>{var u;o((u=s.target)==null?void 0:u.result)},l.onerror=s=>i(s),l.readAsDataURL(t)});return{type:"file",mediaType:n,filename:a,url:r}}))}var h9=class{constructor({api:e="/api/chat",credentials:t,headers:a,body:n,fetch:r,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=a,this.body=n,this.fetch=r,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var a,n,r,o,i;let l=await Lr(this.body),s=await Lr(this.headers),u=await Lr(this.credentials),c={...oo(s),...oo(t.headers)},d=await((a=this.prepareSendMessagesRequest)==null?void 0:a.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...l,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=(n=d?.api)!=null?n:this.api,f=d?.headers!==void 0?oo(d.headers):c,m=d?.body!==void 0?d.body:{...l,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},x=(r=d?.credentials)!=null?r:u,v=await((o=this.fetch)!=null?o:globalThis.fetch)(p,{method:"POST",headers:yc({"Content-Type":"application/json",...f},`ai-sdk/${NO}`,Pw()),body:JSON.stringify(m),credentials:x,signal:e});if(!v.ok)throw new Error((i=await v.text())!=null?i:"Failed to fetch the chat response.");if(!v.body)throw new Error("The response body is empty.");return this.processResponseStream(v.body)}async reconnectToStream(e){var t,a,n,r,o;let i=await Lr(this.body),l=await Lr(this.headers),s=await Lr(this.credentials),u={...oo(l),...oo(e.headers)},c=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:u,credentials:s,requestMetadata:e.metadata})),d=(a=c?.api)!=null?a:`${this.api}/${e.chatId}/stream`,p=c?.headers!==void 0?oo(c.headers):u,f=(n=c?.credentials)!=null?n:s,x=await((r=this.fetch)!=null?r:globalThis.fetch)(d,{method:"GET",headers:yc(p,`ai-sdk/${NO}`,Pw()),credentials:f});if(x.status===204)return null;if(!x.ok)throw new Error((o=await x.text())!=null?o:"Failed to fetch the chat response.");if(!x.body)throw new Error("The response body is empty.");return this.processResponseStream(x.body)}},Bw=class extends h9{constructor(e={}){super(e)}processResponseStream(e){return PO({stream:e,schema:r9}).pipeThrough(new TransformStream({async transform(t,a){if(!t.success)throw t.error;a.enqueue(t.value)}}))}},KO=class{constructor({generateId:e=OO,id:t=e(),transport:a=new Bw,messageMetadataSchema:n,dataPartSchemas:r,state:o,onError:i,onToolCall:l,onFinish:s,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new u9,this.sendMessage=async(d,p)=>{var f,m,x,b;if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(f=this.lastMessage)==null?void 0:f.id,...p});return}let v;if("text"in d||"files"in d?v={parts:[...Array.isArray(d.files)?d.files:await m9(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:v=d,d.messageId!=null){let y=this.state.messages.findIndex(g=>g.id===d.messageId);if(y===-1)throw new Error(`message with id ${d.messageId} not found`);if(this.state.messages[y].role!=="user")throw new Error(`message with id ${d.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,y+1),this.state.replaceMessage(y,{...v,id:d.messageId,role:(m=v.role)!=null?m:"user",metadata:d.metadata})}else this.state.pushMessage({...v,id:(x=v.id)!=null?x:this.generateId(),role:(b=v.role)!=null?b:"user",metadata:d.metadata});await this.makeRequest({trigger:"submit-message",messageId:d.messageId,...p})},this.regenerate=async({messageId:d,...p}={})=>{let f=d==null?this.state.messages.length-1:this.state.messages.findIndex(m=>m.id===d);if(f===-1)throw new Error(`message ${d} not found`);this.state.messages=this.state.messages.slice(0,this.messages[f].role==="assistant"?f:f+1),await this.makeRequest({trigger:"regenerate-message",messageId:d,...p})},this.resumeStream=async(d={})=>{await this.makeRequest({trigger:"resume-stream",...d})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:d,approved:p,reason:f})=>this.jobExecutor.run(async()=>{var m,x;let b=this.state.messages,v=b[b.length-1],y=g=>jw(g)&&g.state==="approval-requested"&&g.approval.id===d?{...g,state:"approval-responded",approval:{id:d,approved:p,reason:f}}:g;this.state.replaceMessage(b.length-1,{...v,parts:v.parts.map(y)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(y)),this.status!=="streaming"&&this.status!=="submitted"&&((m=this.sendAutomaticallyWhen)!=null&&m.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(x=this.lastMessage)==null?void 0:x.id})}),this.addToolOutput=async({state:d="output-available",tool:p,toolCallId:f,output:m,errorText:x})=>this.jobExecutor.run(async()=>{var b,v;let y=this.state.messages,g=y[y.length-1],S=L=>jw(L)&&L.toolCallId===f?{...L,state:d,output:m,errorText:x}:L;this.state.replaceMessage(y.length-1,{...g,parts:g.parts.map(S)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(S)),this.status!=="streaming"&&this.status!=="submitted"&&((b=this.sendAutomaticallyWhen)!=null&&b.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(v=this.lastMessage)==null?void 0:v.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var d;this.status!=="streaming"&&this.status!=="submitted"||(d=this.activeResponse)!=null&&d.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=a,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=r,this.state=o,this.onError=i,this.onToolCall=l,this.onFinish=s,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:a,body:n,messageId:r}){var o,i,l,s;this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,p=!1;try{let f={state:i9({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};f.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=f;let m;if(e==="resume-stream"){let b=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:a,body:n});if(b==null){this.setStatus({status:"ready"});return}m=b}else m=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:f.abortController.signal,metadata:t,headers:a,body:n,trigger:e,messageId:r});let x=b=>this.jobExecutor.run(()=>b({state:f.state,write:()=>{var v;this.setStatus({status:"streaming"}),f.state.message.id===((v=this.lastMessage)==null?void 0:v.id)?this.state.replaceMessage(this.state.messages.length-1,f.state.message):this.state.pushMessage(f.state.message)}}));await s9({stream:l9({stream:m,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:x,onError:b=>{throw b}}),onError:b=>{throw b}}),this.setStatus({status:"ready"})}catch(f){if(c||f.name==="AbortError")return c=!0,this.setStatus({status:"ready"}),null;p=!0,f instanceof TypeError&&(f.message.toLowerCase().includes("fetch")||f.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&f instanceof Error&&this.onError(f),this.setStatus({status:"error",error:f})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:p,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(f){console.error(f)}this.activeResponse=void 0}(l=this.sendAutomaticallyWhen)!=null&&l.call(this,{messages:this.state.messages})&&!p&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:a,body:n})}};var az=be(QO(),1);var _c=be(Bt(),1);var fm=be(Bt(),1);var tz=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},Ye=(e,t,a)=>(tz(e,t,"read from private field"),a?a.call(e):t.get(e)),Tr=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},lo=(e,t,a,n)=>(tz(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a);function v9(e,t){return t!=null?(0,az.default)(e,t):e}var Wa,cm,dm,wc,Ic,kc,Yl,Fw,qw,y9=class{constructor(e=[]){Tr(this,Wa,void 0),Tr(this,cm,"ready"),Tr(this,dm,void 0),Tr(this,wc,new Set),Tr(this,Ic,new Set),Tr(this,kc,new Set),this.pushMessage=t=>{lo(this,Wa,Ye(this,Wa).concat(t)),Ye(this,Yl).call(this)},this.popMessage=()=>{lo(this,Wa,Ye(this,Wa).slice(0,-1)),Ye(this,Yl).call(this)},this.replaceMessage=(t,a)=>{lo(this,Wa,[...Ye(this,Wa).slice(0,t),this.snapshot(a),...Ye(this,Wa).slice(t+1)]),Ye(this,Yl).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,a)=>{let n=a?v9(t,a):t;return Ye(this,wc).add(n),()=>{Ye(this,wc).delete(n)}},this["~registerStatusCallback"]=t=>(Ye(this,Ic).add(t),()=>{Ye(this,Ic).delete(t)}),this["~registerErrorCallback"]=t=>(Ye(this,kc).add(t),()=>{Ye(this,kc).delete(t)}),Tr(this,Yl,()=>{Ye(this,wc).forEach(t=>t())}),Tr(this,Fw,()=>{Ye(this,Ic).forEach(t=>t())}),Tr(this,qw,()=>{Ye(this,kc).forEach(t=>t())}),lo(this,Wa,e)}get status(){return Ye(this,cm)}set status(e){lo(this,cm,e),Ye(this,Fw).call(this)}get error(){return Ye(this,dm)}set error(e){lo(this,dm,e),Ye(this,qw).call(this)}get messages(){return Ye(this,Wa)}set messages(e){lo(this,Wa,[...e]),Ye(this,Yl).call(this)}};Wa=new WeakMap;cm=new WeakMap;dm=new WeakMap;wc=new WeakMap;Ic=new WeakMap;kc=new WeakMap;Yl=new WeakMap;Fw=new WeakMap;qw=new WeakMap;var Ql,ez=class extends KO{constructor({messages:e,...t}){let a=new y9(e);super({...t,state:a}),Tr(this,Ql,void 0),this["~registerMessagesCallback"]=(n,r)=>Ye(this,Ql)["~registerMessagesCallback"](n,r),this["~registerStatusCallback"]=n=>Ye(this,Ql)["~registerStatusCallback"](n),this["~registerErrorCallback"]=n=>Ye(this,Ql)["~registerErrorCallback"](n),lo(this,Ql,a)}};Ql=new WeakMap;function rz({experimental_throttle:e,resume:t=!1,...a}={}){let n=(0,Ja.useRef)("chat"in a?{}:{onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});"chat"in a||(n.current={onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});let r={...a,onToolCall:p=>{var f,m;return(m=(f=n.current).onToolCall)==null?void 0:m.call(f,p)},onData:p=>{var f,m;return(m=(f=n.current).onData)==null?void 0:m.call(f,p)},onFinish:p=>{var f,m;return(m=(f=n.current).onFinish)==null?void 0:m.call(f,p)},onError:p=>{var f,m;return(m=(f=n.current).onError)==null?void 0:m.call(f,p)},sendAutomaticallyWhen:p=>{var f,m,x;return(x=(m=(f=n.current).sendAutomaticallyWhen)==null?void 0:m.call(f,p))!=null?x:!1}},o=(0,Ja.useRef)("chat"in a?a.chat:new ez(r));("chat"in a&&a.chat!==o.current||"id"in a&&o.current.id!==a.id)&&(o.current="chat"in a?a.chat:new ez(r));let l=(0,Ja.useCallback)(p=>o.current["~registerMessagesCallback"](p,e),[e,o.current.id]),s=(0,Ja.useSyncExternalStore)(l,()=>o.current.messages,()=>o.current.messages),u=(0,Ja.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),c=(0,Ja.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),d=(0,Ja.useCallback)(p=>{typeof p=="function"&&(p=p(o.current.messages)),o.current.messages=p},[o]);return(0,Ja.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:s,setMessages:d,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:c,resumeStream:o.current.resumeStream,status:u,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}var Xa=be(Bt(),1);function x9(e,t){return async(a,n)=>{let r=i=>fetch(a,{...n,headers:{...n?.headers,Authorization:`Bearer ${i}`}}),o=await r(e.current);if(o.status===401&&t){let i=await t();if(i)return e.current=i,r(i)}return o}}function nz({api:e,threadId:t,agentId:a,agentExecutionId:n,dataContext:r,onError:o,onAuthError:i,onFinish:l,onData:s,onMessage:u}){let{baseUrl:c,token:d,headers:p={}}=e,f=(0,Xa.useRef)(r);f.current=r;let m=(0,Xa.useRef)(d);m.current=d;let x=(0,Xa.useRef)(i);x.current=i;let b=(0,Xa.useMemo)(()=>x9(m,async()=>x.current?.()??null),[]),v=(0,Xa.useMemo)(()=>new Bw({api:`${c}/chat`,fetch:b,headers:{"Content-Type":"application/json","thread-id":t,...a?{"agent-id":a}:{},...n?{"agent-execution-id":n}:{},...p},prepareSendMessagesRequest({messages:k,id:G}){return{body:{id:G,message:k[k.length-1],dataContext:f.current}}}}),[c,b,t,a,n,p]),{messages:y,status:g,sendMessage:S,stop:L,setMessages:_}=rz({id:t,transport:v,onError:k=>{console.error("Chat error:",k),o?.(k)},onFinish:k=>{l?.(k)},onData:k=>{s?.(k)}}),[A,z]=(0,Xa.useState)(!0);return(0,Xa.useEffect)(()=>{(async()=>{try{let G=await b(`${c}/chat/messages`,{method:"GET",headers:{"thread-id":t}});if(!G.ok)throw new Error(`Failed to fetch messages: ${G.statusText}`);let F=(await G.json()).messages||[];F.length>0&&_(F)}catch(G){console.error("Error fetching initial messages:",G),o?.(G)}finally{z(!1)}})()},[n,a,b,c,o,_,t]),(0,Xa.useEffect)(()=>{if(!u||y.length===0)return;let k=y[y.length-1];k&&u(k)},[y,u]),{messages:y.map((k,G,Z)=>{let F=[],J=[],W=[],ne=te=>{let X=W[W.length-1];X?X.content.push(te):F.push({type:"content",item:te})};for(k.parts.forEach(te=>{if(te.type==="data-tag-start"){let X=te.data;X&&typeof X=="object"&&"tagId"in X&&W.push({tagId:X.tagId,content:[]})}else if(te.type==="data-tag-end"){let X=W.pop();X&&F.push({type:"tag-group",group:X})}else if(te.type==="text"){let X=te.text.trim();X&&ne(X)}else if(te.type==="data-ui")te.data.forEach(X=>ne(X));else if(te.type==="data-thoughts"){let X=te.data.map(I=>I.output).filter(I=>I!=null);J.push(...X)}else if(te.type!=="data-transfer"){if(te.type==="step-start"){let X=W[W.length-1];X&&(X.lastStepStartIndex=X.content.length)}else if(te.type.startsWith("tool-")){let X=te,I=X.toolName||X.type.replace("tool-","");ne({type:"tool-call",toolName:I,input:X.input,state:X.state==="output-available"?"output-available":X.state==="input-error"||X.state==="output-error"?"error":"pending",output:X.output})}}});W.length>0;){let te=W.pop();te&&F.push({type:"tag-group",group:te})}let ie=G===Z.length-1;if(k.role==="assistant"&&(!ie||g!=="streaming")){let te=k.parts.at(-1);te&&te.type==="data-thoughts"&&te.data.map(I=>I.output).forEach(I=>F.push({type:"content",item:I}))}return{id:k.id,role:k.role,sections:F,thoughts:J}}),status:g,isLoadingInitial:A,sendMessage:S,stop:L,setMessages:_}}var so=be(Bt(),1);function oz({api:e,threadId:t,agentId:a,agentExecutionId:n}){let{baseUrl:r,token:o}=e,[i,l]=(0,so.useState)({}),[s,u]=(0,so.useState)(null),[c,d]=(0,so.useState)(null),p=(0,so.useCallback)(async({messageId:x,rating:b,improvementText:v})=>{u(x),d(null);try{let y=await fetch(`${r}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify({threadId:t,messageId:x,rating:b,improvementText:v||void 0,agentId:a||void 0,orchestrationId:n||void 0})});if(!y.ok){let L=await y.json().catch(()=>({}));throw new Error(L.error||`Failed to submit feedback: ${y.statusText}`)}let{data:g}=await y.json(),S={id:g.id,messageId:g.messageId,rating:g.rating,improvementText:g.improvementText,createdAt:new Date(g.createdAt)};return l(L=>({...L,[x]:{rating:S.rating,comment:S.improvementText}})),S}catch(y){let g=y instanceof Error?y:new Error("Unknown error");return d(g),console.error("Failed to submit feedback:",g),null}finally{u(null)}},[r,o,t,a,n]),f=(0,so.useCallback)(x=>i[x],[i]),m=(0,so.useCallback)(x=>x in i,[i]);return{submitFeedback:p,getFeedbackForMessage:f,hasFeedback:m,isSubmitting:s,error:c}}function iz(e){var t,a,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=iz(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function lz(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=iz(e))&&(n&&(n+=" "),n+=t);return n}var b9=e=>{let t=w9(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{let l=i.split("-");return l[0]===""&&l.length!==1&&l.shift(),cz(l,t)||S9(i)},getConflictingClassGroupIds:(i,l)=>{let s=a[i]||[];return l&&n[i]?[...s,...n[i]]:s}}},cz=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],n=t.nextPart.get(a),r=n?cz(e.slice(1),n):void 0;if(r)return r;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},sz=/^\[(.+)\]$/,S9=e=>{if(sz.test(e)){let t=sz.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},w9=e=>{let{theme:t,prefix:a}=e,n={nextPart:new Map,validators:[]};return k9(Object.entries(e.classGroups),a).forEach(([o,i])=>{Hw(i,n,o,t)}),n},Hw=(e,t,a,n)=>{e.forEach(r=>{if(typeof r=="string"){let o=r===""?t:uz(t,r);o.classGroupId=a;return}if(typeof r=="function"){if(I9(r)){Hw(r(n),t,a,n);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([o,i])=>{Hw(i,uz(t,o),a,n)})})},uz=(e,t)=>{let a=e;return t.split("-").forEach(n=>{a.nextPart.has(n)||a.nextPart.set(n,{nextPart:new Map,validators:[]}),a=a.nextPart.get(n)}),a},I9=e=>e.isThemeGetter,k9=(e,t)=>t?e.map(([a,n])=>{let r=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[a,r]}):e,_9=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,n=new Map,r=(o,i)=>{a.set(o,i),t++,t>e&&(t=0,n=a,a=new Map)};return{get(o){let i=a.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return r(o,i),i},set(o,i){a.has(o)?a.set(o,i):r(o,i)}}};var C9=e=>{let{separator:t,experimentalParseClassName:a}=e,n=t.length===1,r=t[0],o=t.length,i=l=>{let s=[],u=0,c=0,d;for(let b=0;b<l.length;b++){let v=l[b];if(u===0){if(v===r&&(n||l.slice(b,b+o)===t)){s.push(l.slice(c,b)),c=b+o;continue}if(v==="/"){d=b;continue}}v==="["?u++:v==="]"&&u--}let p=s.length===0?l:l.substring(c),f=p.startsWith("!"),m=f?p.substring(1):p,x=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:x}};return a?l=>a({className:l,parseClassName:i}):i},L9=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(n=>{n[0]==="["?(t.push(...a.sort(),n),a=[]):a.push(n)}),t.push(...a.sort()),t},T9=e=>({cache:_9(e.cacheSize),parseClassName:C9(e),...b9(e)}),A9=/\s+/,E9=(e,t)=>{let{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(A9),l="";for(let s=i.length-1;s>=0;s-=1){let u=i[s],{modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=a(u),m=!!f,x=n(m?p.substring(0,f):p);if(!x){if(!m){l=u+(l.length>0?" "+l:l);continue}if(x=n(p),!x){l=u+(l.length>0?" "+l:l);continue}m=!1}let b=L9(c).join(":"),v=d?b+"!":b,y=v+x;if(o.includes(y))continue;o.push(y);let g=r(x,m);for(let S=0;S<g.length;++S){let L=g[S];o.push(v+L)}l=u+(l.length>0?" "+l:l)}return l};function M9(){let e=0,t,a,n="";for(;e<arguments.length;)(t=arguments[e++])&&(a=dz(t))&&(n&&(n+=" "),n+=a);return n}var dz=e=>{if(typeof e=="string")return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=dz(e[n]))&&(a&&(a+=" "),a+=t);return a};function O9(e,...t){let a,n,r,o=i;function i(s){let u=t.reduce((c,d)=>d(c),e());return a=T9(u),n=a.cache.get,r=a.cache.set,o=l,l(s)}function l(s){let u=n(s);if(u)return u;let c=E9(s,a);return r(s,c),c}return function(){return o(M9.apply(null,arguments))}}var Qe=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},fz=/^\[(?:([a-z-]+):)?(.+)\]$/i,z9=/^\d+\/\d+$/,D9=new Set(["px","full","screen"]),R9=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$9=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P9=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,N9=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U9=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mn=e=>es(e)||D9.has(e)||z9.test(e),uo=e=>ts(e,"length",G9),es=e=>!!e&&!Number.isNaN(Number(e)),Zw=e=>ts(e,"number",es),Cc=e=>!!e&&Number.isInteger(Number(e)),j9=e=>e.endsWith("%")&&es(e.slice(0,-1)),pe=e=>fz.test(e),co=e=>R9.test(e),B9=new Set(["length","size","percentage"]),F9=e=>ts(e,B9,pz),q9=e=>ts(e,"position",pz),Z9=new Set(["image","url"]),H9=e=>ts(e,Z9,J9),V9=e=>ts(e,"",W9),Lc=()=>!0,ts=(e,t,a)=>{let n=fz.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):a(n[2]):!1},G9=e=>$9.test(e)&&!P9.test(e),pz=()=>!1,W9=e=>N9.test(e),J9=e=>U9.test(e);var X9=()=>{let e=Qe("colors"),t=Qe("spacing"),a=Qe("blur"),n=Qe("brightness"),r=Qe("borderColor"),o=Qe("borderRadius"),i=Qe("borderSpacing"),l=Qe("borderWidth"),s=Qe("contrast"),u=Qe("grayscale"),c=Qe("hueRotate"),d=Qe("invert"),p=Qe("gap"),f=Qe("gradientColorStops"),m=Qe("gradientColorStopPositions"),x=Qe("inset"),b=Qe("margin"),v=Qe("opacity"),y=Qe("padding"),g=Qe("saturate"),S=Qe("scale"),L=Qe("sepia"),_=Qe("skew"),A=Qe("space"),z=Qe("translate"),$=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",pe,t],Z=()=>[pe,t],F=()=>["",mn,uo],J=()=>["auto",es,pe],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",pe],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ue=()=>[es,pe];return{cacheSize:500,separator:":",theme:{colors:[Lc],spacing:[mn,uo],blur:["none","",co,pe],brightness:Ue(),borderColor:[e],borderRadius:["none","","full",co,pe],borderSpacing:Z(),borderWidth:F(),contrast:Ue(),grayscale:X(),hueRotate:Ue(),invert:X(),gap:Z(),gradientColorStops:[e],gradientColorStopPositions:[j9,uo],inset:G(),margin:G(),opacity:Ue(),padding:Z(),saturate:Ue(),scale:Ue(),sepia:X(),skew:Ue(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[co]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),pe]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Cc,pe]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",Cc,pe]}],"grid-cols":[{"grid-cols":[Lc]}],"col-start-end":[{col:["auto",{span:["full",Cc,pe]},pe]}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":[Lc]}],"row-start-end":[{row:["auto",{span:[Cc,pe]},pe]}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[co]},co]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",co,uo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zw]}],"font-family":[{font:[Lc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",pe]}],"line-clamp":[{"line-clamp":["none",es,Zw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mn,uo]}],"underline-offset":[{"underline-offset":["auto",mn,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),q9]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",F9]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},H9]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:ne()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[mn,pe]}],"outline-w":[{outline:[mn,uo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[mn,uo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",co,V9]}],"shadow-color":[{shadow:[Lc]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",co,pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:Ue()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:Ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Cc,pe]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mn,uo,Zw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var mz=O9(X9);function ur(...e){return mz(lz(e))}Qa(`.chat-widget__feedback{display:flex;align-items:center;gap:.25rem;margin-top:.35rem}.chat-widget__feedback-button{border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;color:#9ca3af;cursor:pointer;border-radius:.35rem;transition:all .15s ease}.chat-widget__feedback-button:hover:not(:disabled){background:#0000000d;color:#6b7280}.chat-widget__feedback-button:disabled{cursor:default;opacity:.5}.chat-widget__feedback-button--positive.chat-widget__feedback-button--selected{color:#22c55e;background:#22c55e1a}.chat-widget__feedback-button--negative.chat-widget__feedback-button--selected{color:#ef4444;background:#ef44441a}.chat-widget__feedback-button--comment.chat-widget__feedback-button--selected{color:var(--chat-primary, #3b82f6);background:#3b82f61a}.chat-widget__feedback-button--comment.chat-widget__feedback-button--has-content{color:var(--chat-primary, #3b82f6)}.chat-widget__feedback-icon{width:1rem;height:1rem}.chat-widget__feedback-comment-section{margin-top:.75rem;background:var(--chat-background, #ffffff);border:1px solid var(--chat-border, #e5e7eb);border-radius:.5rem;padding:.75rem;width:100%;max-width:400px}.chat-widget__feedback-comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;font-size:.8125rem;font-weight:600;color:var(--chat-assistant-text, #111827)}.chat-widget__feedback-comment-required{font-size:.6875rem;font-weight:500;color:#ef4444;background:#ef44441a;padding:.125rem .375rem;border-radius:.25rem}.chat-widget__feedback-textarea{width:100%;min-height:120px;padding:.625rem;border:1px solid var(--chat-border, #e5e7eb);border-radius:.35rem;font-size:.875rem;font-family:inherit;resize:vertical;color:var(--chat-input-text, #111827);background:var(--chat-input-bg, #ffffff);line-height:1.5}.chat-widget__feedback-textarea:focus{outline:none;border-color:var(--chat-primary, #3b82f6);box-shadow:0 0 0 2px #3b82f61a}.chat-widget__feedback-textarea::-moz-placeholder{color:var(--chat-input-placeholder, #6b7280)}.chat-widget__feedback-textarea::placeholder{color:var(--chat-input-placeholder, #6b7280)}.chat-widget__feedback-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem}.chat-widget__feedback-cancel,.chat-widget__feedback-submit{padding:.5rem 1rem;font-size:.8125rem;font-weight:500;border-radius:.35rem;cursor:pointer;transition:all .15s ease}.chat-widget__feedback-cancel{background:transparent;border:1px solid var(--chat-border, #e5e7eb);color:#6b7280}.chat-widget__feedback-cancel:hover{background:#0000000d}.chat-widget__feedback-submit{background:var(--chat-primary, #3b82f6);border:none;color:var(--chat-primary-text, #ffffff)}.chat-widget__feedback-submit:hover:not(:disabled){background:var(--chat-primary-hover, #2563eb)}.chat-widget__feedback-submit:disabled{opacity:.5;cursor:not-allowed}.chat-widget__feedback-wrapper{position:relative}
|
|
86
|
+
`);var da=be(Bt(),1),Mt=be(bt(),1),dt={wrapper:"chat-widget__feedback-wrapper",container:"chat-widget__feedback",button:"chat-widget__feedback-button",buttonPositive:"chat-widget__feedback-button--positive",buttonNegative:"chat-widget__feedback-button--negative",buttonComment:"chat-widget__feedback-button--comment",buttonSelected:"chat-widget__feedback-button--selected",buttonHasContent:"chat-widget__feedback-button--has-content",icon:"chat-widget__feedback-icon",commentSection:"chat-widget__feedback-comment-section",commentHeader:"chat-widget__feedback-comment-header",commentRequired:"chat-widget__feedback-comment-required",textarea:"chat-widget__feedback-textarea",actions:"chat-widget__feedback-actions",cancelButton:"chat-widget__feedback-cancel",submitButton:"chat-widget__feedback-submit"},hz=({messageId:e,existingRating:t,existingComment:a,isSubmitting:n,requireCommentForNegative:r=!1,onSubmit:o})=>{let[i,l]=(0,da.useState)(t??null),[s,u]=(0,da.useState)(a??""),[c,d]=(0,da.useState)(null),[p,f]=(0,da.useState)(!1),[m,x]=(0,da.useState)(a??"");(0,da.useEffect)(()=>{t&&l(t),a!==void 0&&(u(a),x(a))},[t,a]);let b=(0,da.useCallback)(()=>{l("positive"),d(null),o(e,"positive",m.trim()||void 0)},[e,m,o]),v=(0,da.useCallback)(()=>{r?(d("negative"),f(!0)):(l("negative"),d(null),o(e,"negative",m.trim()||void 0))},[e,m,r,o]),y=(0,da.useCallback)(()=>{p?(f(!1),c==="negative"&&r&&d(null),x(s)):f(!0)},[p,c,r,s]),g=(0,da.useCallback)(()=>{f(!1),x(s),c==="negative"&&r&&d(null)},[c,r,s]),S=(0,da.useCallback)(()=>{let G=c??i;G&&(G==="negative"&&r&&!m.trim()||(o(e,G,m.trim()||void 0),l(G),u(m.trim()),d(null),f(!1)))},[e,c,i,m,r,o]),L=c??i,_=L==="positive",A=L==="negative",z=A&&r,$=!z||m.trim().length>0,k=s.length>0;return(0,Mt.jsxs)("div",{className:dt.wrapper,children:[(0,Mt.jsxs)("div",{className:dt.container,children:[(0,Mt.jsx)("button",{type:"button",className:`${dt.button} ${dt.buttonPositive} ${_?dt.buttonSelected:""}`,onClick:b,disabled:n,title:"Good response","aria-label":"Mark as good response",children:(0,Mt.jsx)(hu,{className:dt.icon})}),(0,Mt.jsx)("button",{type:"button",className:`${dt.button} ${dt.buttonNegative} ${A?dt.buttonSelected:""}`,onClick:v,disabled:n,title:"Could be improved","aria-label":"Mark as could be improved",children:(0,Mt.jsx)(gu,{className:dt.icon})}),(0,Mt.jsx)("button",{type:"button",className:`${dt.button} ${dt.buttonComment} ${p?dt.buttonSelected:""} ${k?dt.buttonHasContent:""}`,onClick:y,disabled:n,title:"Add comment","aria-label":"Add comment",children:(0,Mt.jsx)(ei,{className:dt.icon})})]}),p&&(0,Mt.jsxs)("div",{className:dt.commentSection,children:[(0,Mt.jsxs)("div",{className:dt.commentHeader,children:[(0,Mt.jsx)("span",{children:"Add a comment"}),z&&(0,Mt.jsx)("span",{className:dt.commentRequired,children:"Required"})]}),(0,Mt.jsx)("textarea",{className:dt.textarea,placeholder:A?"What could be improved?":"Share your thoughts...",value:m,onChange:G=>x(G.target.value),rows:5}),(0,Mt.jsxs)("div",{className:dt.actions,children:[(0,Mt.jsx)("button",{type:"button",className:dt.cancelButton,onClick:g,children:"Cancel"}),(0,Mt.jsx)("button",{type:"button",className:dt.submitButton,onClick:S,disabled:n||!$||!L,children:L?"Save":"Select Rating First"})]})]})]})};var Ae=be(Bt(),1);var Ii=be(bt(),1),gz=()=>{if(typeof window>"u")return null;let e=window;return e.SpeechRecognition||e.webkitSpeechRecognition||null},vz=e=>Math.max(0,Math.min(1,e)),yz=(...e)=>e.map(t=>t.trim()).filter(Boolean).join(" ");function xz({onInterim:e,onFinal:t,onError:a,onListeningChange:n,silenceTimeout:r=3e3,finalDelay:o=1500,language:i,disabled:l,className:s}){let[u,c]=(0,Ae.useState)(!1),[d,p]=(0,Ae.useState)(!1),[f,m]=(0,Ae.useState)(0),x=(0,Ae.useRef)(null),[b,v]=(0,Ae.useState)(!1),y=(0,Ae.useRef)(null),g=(0,Ae.useRef)(null),S=(0,Ae.useRef)(""),L=(0,Ae.useRef)(null),_=(0,Ae.useRef)(0),A=i??"en-US",z=(0,Ae.useCallback)(()=>{y.current&&(clearTimeout(y.current),y.current=null)},[]),$=(0,Ae.useCallback)(()=>{L.current&&(cancelAnimationFrame(L.current),L.current=null)},[]),k=(0,Ae.useCallback)(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]),G=(0,Ae.useCallback)(()=>{z(),k(),$(),m(0),v(!1),_.current=0,x.current?.stop()},[z,k,$]),Z=(0,Ae.useCallback)(w=>{console.error("Speech recognition error:",w),a?.(w)},[a]),F=(0,Ae.useCallback)(()=>{r&&(z(),y.current=setTimeout(G,r))},[r,z,G]),J=(0,Ae.useCallback)(w=>{w&&e?.(w)},[e]),W=(0,Ae.useCallback)(w=>{w&&t?.(w)},[t]),ne=(0,Ae.useCallback)(()=>{let w=S.current.trim();w&&W(w),S.current="",k()},[W,k]),ie=(0,Ae.useCallback)(()=>{if(!_.current||!o){m(0),v(!1),L.current=null;return}let w=_.current-Date.now(),Ge=vz(w/o);if(m(Ge),w<=0){v(!1),L.current=null;return}L.current=requestAnimationFrame(ie)},[o]),te=(0,Ae.useCallback)(()=>{if(!o){m(0),v(!1);return}_.current=Date.now()+o,m(1),v(!0),$(),L.current=requestAnimationFrame(ie)},[o,$,ie]),X=(0,Ae.useCallback)(()=>{if(k(),!o){ne();return}te(),g.current=setTimeout(ne,o)},[k,o,ne,te]),I=(0,Ae.useCallback)(w=>{w.continuous=!0,w.interimResults=!0,w.lang=A,w.onresult=Ge=>{let Ea="",hn="";for(let Nt=Ge.resultIndex;Nt<Ge.results.length;Nt++){let Kt=Ge.results[Nt];if(!Kt)continue;let pa=Kt[0]?.transcript??"";Kt.isFinal?hn+=pa:Ea+=pa}let Ar=Ea.trim();if(Ar){te();let Nt=yz(S.current,Ar);J(Nt)}else{let Nt=S.current.trim();Nt&&J(Nt)}let ot=hn.trim();ot&&(S.current=yz(S.current,ot),J(S.current),X(),w.stop()),F()},w.onerror=Ge=>{if(Ge.error==="no-speech"){F();return}Z(Ge.error)},w.onstart=()=>{c(!0),n?.(!0),F()},w.onend=()=>{c(!1),n?.(!1),z(),g.current||ne()}},[A,F,te,J,X,Z,n,z,ne,b]),Ue=(0,Ae.useCallback)(()=>{if(typeof window>"u")return null;let w=gz();return w?(x.current||(x.current=new w),I(x.current),x.current):(Z("Speech recognition is not supported in this browser."),null)},[I,Z]),fa=(0,Ae.useCallback)(()=>{if(l)return;if(u){G();return}let w=Ue();if(w)try{w.start()}catch{Z("Microphone permission denied or unavailable.")}},[l,u,G,Ue,Z]);return(0,Ae.useEffect)(()=>{l&&u&&G()},[l,u,G]),(0,Ae.useEffect)(()=>{p(typeof window<"u"&&!!gz())},[]),(0,Ae.useEffect)(()=>()=>{z(),k(),$(),x.current?.stop(),x.current=null},[z,k,$]),d?(0,Ii.jsxs)("button",{type:"button",className:ur("chat-widget__mic-button",u&&"chat-widget__mic-button--active",s),onClick:fa,disabled:l,"aria-pressed":u,"aria-label":"Toggle microphone",children:[u?(0,Ii.jsx)(pu,{className:"chat-widget__mic-icon"}):(0,Ii.jsx)(fu,{className:"chat-widget__mic-icon"}),o>0&&u&&b&&(0,Ii.jsx)("span",{className:"chat-widget__mic-bar","aria-hidden":"true",children:(0,Ii.jsx)("span",{className:"chat-widget__mic-bar-fill",style:{transform:`scaleX(${vz(f)})`}})})]}):null}Qa(`.tag-group{margin:6px 0}.tag-group-header{display:inline-flex;align-items:center;gap:4px;background:none;border:none;padding:2px 6px 2px 2px;cursor:pointer;font-size:13px;color:#666;border-radius:4px;transition:background-color .15s ease}.tag-group-header:hover{background:#f5f5f5}.tag-group-chevron{width:14px;height:14px;flex-shrink:0;transition:transform .15s ease;color:#999}.tag-group-chevron--expanded{transform:rotate(90deg)}.tag-group-label{font-weight:500;color:#555}.tag-group-content{margin-left:7px;padding-left:12px;border-left:2px solid #e0e0e0;margin-top:4px}.tag-group-item{margin:4px 0;font-size:13px;color:#444}.tag-group-item--text{display:flex;align-items:flex-start;gap:6px}.tag-group-item--text:before{content:"\\2022";color:#999;font-size:14px;line-height:1.4;flex-shrink:0}.tag-group-item .tool-call-item{margin:0}.tag-group-item--widget{display:block;margin:8px 0}.tag-group-item .chat-widget__markdown,.tag-group-item .chat-widget__markdown p{margin:0}
|
|
87
|
+
`);var ki=be(bt(),1);function bz({tagId:e,isExpanded:t,onToggle:a,children:n}){return(0,ki.jsxs)("div",{className:"tag-group",children:[(0,ki.jsxs)("button",{className:"tag-group-header",onClick:a,"aria-expanded":t,type:"button",children:[(0,ki.jsx)(Qo,{className:`tag-group-chevron ${t?"tag-group-chevron--expanded":""}`,"aria-hidden":"true"}),(0,ki.jsx)("span",{className:"tag-group-label",children:e})]}),t&&(0,ki.jsx)("div",{className:"tag-group-content",role:"region",children:n})]})}Qa(`.tool-call-item{font-size:13px;color:#666;margin:4px 0}.tool-call-header{display:flex;align-items:center;gap:6px;margin-top:4px;margin-bottom:4px}.tool-call-bullet{color:#999;font-size:14px;line-height:1}.tool-call-spinner{width:12px;height:12px;border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;animation:tool-call-spin .8s linear infinite}@keyframes tool-call-spin{to{transform:rotate(360deg)}}.tool-call-label{color:#888}.tool-call-label code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;background:#f5f5f5;padding:2px 6px;border-radius:4px;color:#555}.tool-call-toggle{font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#6b7280;background:transparent;border:1px solid #d1d5db;border-radius:3px;cursor:pointer;padding:2px 6px;margin-left:4px;transition:all .15s ease}.tool-call-toggle:hover{color:#374151;border-color:#9ca3af;background:#f9fafb}.tool-call-result{margin-top:8px;margin-left:16px;padding:8px 12px;background:#f8f9fa;border-radius:6px;border:1px solid #e9ecef;overflow-x:auto}.tool-call-result pre{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:#333;white-space:pre-wrap;word-break:break-word}.tool-call-error{color:#dc2626;font-weight:600;font-size:9px;letter-spacing:.5px;margin-left:auto}
|
|
88
|
+
`);var Sz=be(Bt(),1),Ka=be(bt(),1);function wz({toolCall:e,className:t=""}){let[a,n]=(0,Sz.useState)(!1),r=e.state==="output-available"&&e.output!==void 0,o=e.state==="pending",i=e.state==="error";return(0,Ka.jsxs)("div",{className:`tool-call-item ${t}`,children:[(0,Ka.jsxs)("div",{className:"tool-call-header",children:[(0,Ka.jsx)("span",{className:"tool-call-bullet",children:"\u2022"}),o&&(0,Ka.jsx)("span",{className:"tool-call-spinner"}),(0,Ka.jsxs)("span",{className:"tool-call-label",children:[o?"Calling":"Called"," ",(0,Ka.jsx)("code",{children:e.toolName})]}),r&&(0,Ka.jsx)("button",{className:"tool-call-toggle",onClick:()=>n(!a),type:"button",children:a?"HIDE":"SHOW RESULT"}),i&&(0,Ka.jsx)("span",{className:"tool-call-error",children:"ERROR"})]}),a&&r&&(0,Ka.jsx)("div",{className:"tool-call-result",children:(0,Ka.jsx)("pre",{children:K9(e.output)})})]})}function K9(e){if(e==null)return"";if(typeof e=="string")try{let t=JSON.parse(e);return JSON.stringify(t,null,2)}catch{return e}return JSON.stringify(e,null,2)}var fe=be(bt(),1);function Y9({children:e}){return(0,fe.jsx)(iy,{remarkPlugins:[rp],children:e.replace(/\n\n/gi,`
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
`)})}var G9=Ce.default.memo(V9);function J9({message:e,widgets:t,tagExpansionState:a,onTagToggle:n,feedbackEnabled:r,showFeedback:o,existingRating:i,existingComment:l,feedbackSubmitting:s,requireCommentForNegative:u,onFeedbackSubmit:c}){let d=(f,m)=>{if(f==null)return null;if(typeof f=="string")return(0,fe.jsx)("div",{className:"chat-widget__markdown",children:(0,fe.jsx)(G9,{children:f})},m);if("type"in f&&f.type==="tool-call")return(0,fe.jsx)(xz,{toolCall:f},m);if("widgetType"in f){let x=t?.find(v=>v.widgetType===f.widgetType);if(!x)return(0,fe.jsxs)("span",{children:["[Unknown widget: ",f.widgetType,"]"]},m);let b=f;return(0,fe.jsx)("div",{className:"chat-widget__widget",children:x.render(b.payload,b.enriched??{})},m)}return null},p=(f,m)=>{if(f.type==="content")return(0,fe.jsx)("div",{className:ir(Oe.messageRow,e.role==="user"?Oe.userMessageRow:Oe.assistantMessageRow),children:(0,fe.jsx)("div",{className:ir(Oe.messageBubble,e.role==="user"?Oe.userMessage:Oe.assistantMessage),children:d(f.item,`${e.id}-section-${m}`)})},`${e.id}-section-${m}`);if(f.type==="tag-group"){let{group:x}=f,b=`${e.id}-tag-${x.tagId}`,v=a.get(b)??!0;return(0,fe.jsx)(vz,{tagId:x.tagId,isExpanded:v,onToggle:()=>n(e.id,x.tagId,v),children:x.content.map((y,g)=>{let S=typeof y=="string",L=!S&&"widgetType"in y;return(0,fe.jsx)("div",{className:ir("tag-group-item",S&&"tag-group-item--text",L&&"tag-group-item--widget"),children:d(y,`${b}-item-${g}`)},`${b}-item-${g}`)})},b)}return null};return(0,fe.jsxs)("div",{className:Oe.messageWrapper,children:[e.sections.map((f,m)=>p(f,m)),e.role==="assistant"&&e.thoughts&&e.thoughts.length>0&&(0,fe.jsx)("div",{className:Oe.thoughtsContainer,children:(0,fe.jsxs)("details",{className:"chat-widget__details",children:[(0,fe.jsxs)("summary",{className:Oe.thoughtsSummary,children:[(0,fe.jsx)("span",{className:Oe.thoughtsIconContainer,children:(0,fe.jsx)(Wo,{className:Oe.thoughtsIcon})}),(0,fe.jsx)("span",{children:"Thoughts"})]}),(0,fe.jsx)("div",{className:Oe.thoughtsContent,children:(0,fe.jsx)("pre",{className:Oe.thoughtsText,children:e.thoughts.map((f,m)=>d(f,`${e.id}-thought-${m}`))})})]})}),r&&e.role==="assistant"&&e.id!=="welcome-message"&&o&&(0,fe.jsx)(fz,{messageId:e.id,existingRating:i,existingComment:l,isSubmitting:s,requireCommentForNegative:u,onSubmit:c})]})}var X9=Ce.default.memo(J9),Oe={container:"chat-widget",header:"chat-widget__header",headerTitle:"chat-widget__title",messagesContainer:"chat-widget__messages",messageWrapper:"chat-widget__message",messageRow:"chat-widget__message-row",userMessageRow:"chat-widget__message-row--user",assistantMessageRow:"chat-widget__message-row--assistant",messageBubble:"chat-widget__bubble",userMessage:"chat-widget__bubble--user",assistantMessage:"chat-widget__bubble--assistant",thoughtsContainer:"chat-widget__thoughts",thoughtsSummary:"chat-widget__thoughts-summary",thoughtsIconContainer:"chat-widget__thoughts-icon-container",thoughtsIcon:"chat-widget__thoughts-icon",thoughtsContent:"chat-widget__thoughts-content",thoughtsText:"chat-widget__thoughts-text",loadingContainer:"chat-widget__loading",loadingBubble:"chat-widget__loading-bubble",loadingDots:"chat-widget__loading-dots",loadingDot:"chat-widget__loading-dot",inputContainer:"chat-widget__input",inputForm:"chat-widget__form",textarea:"chat-widget__textarea",toolbar:"chat-widget__toolbar",submitButton:"chat-widget__submit",sendIcon:"chat-widget__send-icon",voiceControl:"chat-widget__voice",micButton:"chat-widget__mic-button"},W9={primaryColor:"#3b82f6",primaryTextColor:"#ffffff",backgroundColor:"#ffffff",borderColor:"#e5e7eb",headerTextColor:"#ffffff",userBubbleTextColor:"#ffffff",assistantBubbleBackground:"transparent",assistantBubbleTextColor:"#111827",fontFamily:"'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",borderRadius:"0.75rem",inputBackground:"#ffffff",inputTextColor:"#111827",inputPlaceholderColor:"#6b7280",thoughtsBorderColor:"#d1d5db"},K9=(e,t=.15)=>{let a=e.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(a))return e;let n=parseInt(a.slice(0,2),16),r=parseInt(a.slice(2,4),16),o=parseInt(a.slice(4,6),16),i=l=>Math.round(l*(1-t));return`#${i(n).toString(16).padStart(2,"0")}${i(r).toString(16).padStart(2,"0")}${i(o).toString(16).padStart(2,"0")}`};function Ql({api:e,threadId:t,agentId:a,agentExecutionId:n,dataContext:r,onError:o,onAuthError:i,onFinish:l,onMessage:s,title:u,initialAssistantMessage:c,initialUserMessage:d,inputPlaceholder:p,className:f,styles:m,voice:x,speechToText:b,widgets:v,feedback:y}){let g=(0,Ce.useMemo)(()=>({...W9,...m||{}}),[m]),S=(0,Ce.useMemo)(()=>({"--chat-primary":g.primaryColor,"--chat-primary-text":g.primaryTextColor,"--chat-primary-hover":K9(g.primaryColor,.2),"--chat-background":g.backgroundColor,"--chat-border":g.borderColor,"--chat-header-text":g.headerTextColor,"--chat-user-text":g.userBubbleTextColor,"--chat-assistant-bg":g.assistantBubbleBackground,"--chat-assistant-text":g.assistantBubbleTextColor,"--chat-font-family":g.fontFamily,"--chat-radius":g.borderRadius,"--chat-input-bg":g.inputBackground,"--chat-input-text":g.inputTextColor,"--chat-input-placeholder":g.inputPlaceholderColor,"--chat-thought-border":g.thoughtsBorderColor}),[g]),[L,_]=(0,Ce.useState)(""),[A,z]=(0,Ce.useState)(!1),[$,k]=(0,Ce.useState)(!1),G=(0,Ce.useRef)(null),Z=(0,Ce.useRef)(null),F=(0,Ce.useRef)(!0),X=(0,Ce.useRef)(null),J=(0,Ce.useRef)(!1),{messages:ne,status:ie,isLoadingInitial:te,sendMessage:W,stop:I,setMessages:Ne}=tz({api:e,threadId:t,agentId:a??void 0,agentExecutionId:n??void 0,dataContext:r,onError:o,onAuthError:i,onFinish:l,onMessage:s}),ca=y?.enabled!==!1,{submitFeedback:w,getFeedbackForMessage:Ve,isSubmitting:La}=az({api:e,threadId:t,agentId:a??void 0,agentExecutionId:n??void 0}),fn=(0,Ce.useCallback)((Se,nt,Wt)=>{w({messageId:Se,rating:nt,improvementText:Wt})},[w]),[Cr,rt]=(0,Ce.useState)(new Map),Rt=(0,Ce.useCallback)((Se,nt,Wt)=>{J.current=!0,rt(co=>{let fo=new Map(co),E=`${Se}-tag-${nt}`;return fo.set(E,!Wt),fo})},[]),Xt=(0,Ce.useMemo)(()=>{if(!x||x.enabled===!1||!x.url)return null;let Se=x.payload,nt=Wt=>Se?typeof Se=="function"?Se(Wt):{message:Wt,...Se}:{message:Wt};return{url:x.url,method:x.method??"POST",autoplayLatest:x.autoplayLatest??!0,headers:{...x.headers??{}},buildPayload:nt}},[x]);(0,Ce.useEffect)(()=>{c&&!d&&!te&&ne.length===0&&Ne([{id:"welcome-message",role:"assistant",parts:[{type:"text",text:c}]}])},[c,d,te,ne.length,Ne]);let da=(0,Ce.useRef)(!1);(0,Ce.useEffect)(()=>{d&&!da.current&&!te&&ie==="ready"&&ne.length===0&&(da.current=!0,W({text:d}))},[d,te,ie,ne.length,W]);let pn=(0,Ce.useCallback)(()=>{if(!Z.current)return;let{scrollTop:Se,scrollHeight:nt,clientHeight:Wt}=Z.current,co=nt-Se-Wt;F.current=co<100},[]);(0,Ce.useEffect)(()=>{if(J.current){J.current=!1;return}let nt=ne[ne.length-1]?.role==="user";(F.current||nt)&&G.current?.scrollIntoView({behavior:"smooth"})},[ne,ie]),(0,Ce.useEffect)(()=>{let Se=setTimeout(()=>{X.current?.focus()},150);return()=>clearTimeout(Se)},[]),(0,Ce.useEffect)(()=>{ie==="ready"&&X.current?.focus(),ie!=="streaming"&&k(!1)},[ie]);let uo=(0,Ce.useCallback)(Se=>{let nt=(Se??L).trim();return!nt||ie!=="ready"?!1:(W({text:nt}),_(""),!0)},[L,ie,W,_]),es=()=>{uo()},_c=Se=>{Se.preventDefault(),es()},Cc=Se=>{Se.key==="Enter"&&!Se.shiftKey&&(Se.preventDefault(),es())},wi=b?.enabled!==!1,fm=(0,Ce.useCallback)(Se=>{_(Se)},[_]),Lc=(0,Ce.useCallback)(Se=>{let nt=Se?.trim();if(!nt||$)return;_(nt),uo(nt)&&k(!0)},[uo,_,$]);(0,Ce.useEffect)(()=>{wi||z(!1)},[wi]);let Ii=(0,Ce.useRef)({threadId:"",widgets:null});return(0,Ce.useEffect)(()=>{!v||v.length===0||Ii.current.threadId===t&&Ii.current.widgets===v||hf({api:e,threadId:t,widgets:v,onAuthError:i}).then(()=>{Ii.current={threadId:t,widgets:v}}).catch(nt=>{console.error("Failed to register chat widgets",nt)})},[e,t,v,i]),(0,fe.jsxs)("div",{className:ir(Oe.container,f),style:S,"data-chat-widget":"",children:[u&&(0,fe.jsx)("div",{className:Oe.header,children:(0,fe.jsx)("h3",{className:Oe.headerTitle,children:u})}),(0,fe.jsxs)("div",{className:Oe.messagesContainer,ref:Z,onScroll:pn,children:[ne.map((Se,nt)=>{let Wt=nt===ne.length-1,co=!(ie==="streaming"&&Wt),fo=Ve(Se.id);return(0,fe.jsx)(X9,{message:Se,widgets:v,tagExpansionState:Cr,onTagToggle:Rt,feedbackEnabled:ca,showFeedback:co,existingRating:fo?.rating,existingComment:fo?.comment,feedbackSubmitting:La===Se.id,requireCommentForNegative:y?.requireCommentForNegative,onFeedbackSubmit:fn},Se.id)}),ie==="streaming"&&(0,fe.jsx)("div",{className:Oe.loadingContainer,children:(0,fe.jsx)("div",{className:Oe.loadingBubble,children:(0,fe.jsxs)("div",{className:Oe.loadingDots,children:[(0,fe.jsx)("div",{className:Oe.loadingDot}),(0,fe.jsx)("div",{className:Oe.loadingDot,"data-delay":"1"}),(0,fe.jsx)("div",{className:Oe.loadingDot,"data-delay":"2"})]})})}),(0,fe.jsx)("div",{ref:G})]}),(0,fe.jsx)("div",{className:Oe.inputContainer,children:(0,fe.jsxs)("form",{onSubmit:_c,className:Oe.inputForm,children:[(0,fe.jsx)("textarea",{ref:X,value:L,onChange:Se=>_(Se.target.value),onKeyDown:Cc,placeholder:p,disabled:ie!=="ready",rows:1,className:Oe.textarea}),(0,fe.jsx)("div",{className:Oe.toolbar,children:wi&&(0,fe.jsx)(gz,{className:Oe.micButton,disabled:ie!=="ready",silenceTimeout:b?.silenceTimeout,language:b?.language,finalDelay:b?.finalDelay,onInterim:fm,onFinal:Lc,onError:b?.onError,onListeningChange:z})}),(0,fe.jsx)("button",{type:"button",onClick:ie==="streaming"?I:es,disabled:ie==="streaming"?!1:!L.trim()||ie!=="ready",className:Oe.submitButton,children:ie==="streaming"?(0,fe.jsx)(Vn,{className:Oe.sendIcon}):(0,fe.jsx)(du,{className:Oe.sendIcon})})]})})]})}Wa(`.chat-popup__anchor{position:fixed;inset-block-end:20px;inset-inline-end:20px}.chat-popup--start{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__anchor-button{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:0 10px 25px #0f172a33;cursor:pointer;font-weight:600;z-index:99999}.chat-popup__anchor-button:hover{background:var(--chat-primary-hover)}.chat-popup__anchor-icon{width:1.1rem;height:1.1rem}.chat-popup__panel{position:fixed;inset-block-end:20px;inset-inline-end:20px;z-index:99998;transition:opacity .15s ease,visibility .15s ease}.chat-popup--start.chat-popup__panel{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__panel--open{opacity:1;visibility:visible;pointer-events:auto}.chat-popup__panel--closed{opacity:0;visibility:hidden;pointer-events:none}.chat-popup__panel-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:0 20px 45px #0f172a1f;border-radius:12px;overflow:visible;background:var(--chat-background);border:1px solid var(--chat-border);position:relative}.chat-popup__close{position:absolute;top:0;z-index:10;transform:translate(30%,-40%)}.chat-popup__close--end{inset-inline-end:0}.chat-popup__close--start{inset-inline-start:0}.chat-popup__close-button{border:none;background:var(--chat-primary);color:var(--chat-primary-text);width:32px;height:32px;border-radius:999px;cursor:pointer;display:grid;place-items:center;box-shadow:0 10px 25px #0f172a33}.chat-popup__close-button:hover{background:var(--chat-primary-hover)}.chat-popup__close-icon{width:16px;height:16px}
|
|
93
|
-
`);var so=Le(Nt(),1);var Ca=Le(jt(),1);function cm({anchor:e,...t}){let[a,n]=(0,so.useState)(e?.initiallyOpen??!1),[r,o]=(0,so.useState)(e?.initiallyOpen??!1),i=t.openOverride??a;(0,so.useEffect)(()=>{t.openOverride!==void 0&&(n(t.openOverride),t.openOverride&&o(!0))},[t.openOverride]);let l=()=>{let f=!i;f&&o(!0),t.onToggleOpen?t.onToggleOpen(f):n(f)},s=e?.position==="bottom-start"?"chat-popup--start":"chat-popup--end",u=e?.closeButton??t.closeButton,c=u?.show!==!1,d=(0,so.useMemo)(()=>{let f=t.styles?.primaryColor??"#3b82f6",m=t.styles?.primaryTextColor??"#ffffff",x=t.styles?.backgroundColor??"#ffffff",b=t.styles?.borderColor??"#e5e7eb",v=t.styles?.headerTextColor??"#ffffff";return{"--chat-primary":f,"--chat-primary-hover":((g,S=.15)=>{let L=g.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(L))return g;let _=parseInt(L.slice(0,2),16),A=parseInt(L.slice(2,4),16),z=parseInt(L.slice(4,6),16),$=k=>Math.round(k*(1-S));return`#${$(_).toString(16).padStart(2,"0")}${$(A).toString(16).padStart(2,"0")}${$(z).toString(16).padStart(2,"0")}`})(f,.2),"--chat-primary-text":m,"--chat-background":x,"--chat-border":b,"--chat-header-text":v}},[t.styles]),p=(0,so.useMemo)(()=>{let f=t.popupSize??{};return{width:f.width??"600px",height:f.height??"500px",maxWidth:f.maxWidth??"calc(100vw - 40px)",maxHeight:f.maxHeight??"calc(100vh - 140px)"}},[t.popupSize]);return(0,Ca.jsxs)("div",{style:d,children:[(0,Ca.jsx)("div",{className:ir("chat-popup__anchor",s),children:e?.render?e.render({isOpen:i,toggle:l}):!i&&(0,Ca.jsxs)("button",{type:"button",className:"chat-popup__anchor-button",onClick:l,"aria-expanded":a,"aria-label":e?.label??"Open chat",children:[(0,Ca.jsx)(Ko,{className:"chat-popup__anchor-icon"}),(0,Ca.jsx)("span",{children:e?.label??"Chat"})]})}),(0,Ca.jsx)("div",{className:ir("chat-popup__panel",s,i?"chat-popup__panel--open":"chat-popup__panel--closed"),children:(0,Ca.jsxs)("div",{className:"chat-popup__panel-inner",style:p,children:[c&&(0,Ca.jsx)("div",{className:ir("chat-popup__close",u?.position==="top-start"?"chat-popup__close--start":"chat-popup__close--end"),children:u?.render?u.render({toggle:l}):(0,Ca.jsx)("button",{type:"button",className:"chat-popup__close-button",onClick:l,"aria-label":"Close chat",children:(0,Ca.jsx)(mu,{className:"chat-popup__close-icon"})})}),r&&(0,Ca.jsx)(Ql,{...t})]})})]})}var dm=Le(jt(),1),Fw=class{constructor(t){this.container=null;this.root=null;this.config=t}async init(){if(await this.registerWidgetsIfNeeded(),this.container&&this.config.containerId&&this.container.id!==this.config.containerId&&this.destroy(),this.root&&this.container)return;if(this.config.containerId){if(this.container=document.getElementById(this.config.containerId),!this.container){console.error(`Container with id "${this.config.containerId}" not found`);return}}else this.config.anchor?.enabled?(this.container=document.createElement("div"),document.body.appendChild(this.container)):(this.container=document.createElement("div"),this.container.id="chat-widget-container",this.container.style.cssText=`
|
|
92
|
+
`)})}var Q9=Le.default.memo(Y9);function eZ({message:e,widgets:t,tagExpansionState:a,onTagToggle:n,feedbackEnabled:r,showFeedback:o,existingRating:i,existingComment:l,feedbackSubmitting:s,requireCommentForNegative:u,onFeedbackSubmit:c}){let d=(f,m)=>{if(f==null)return null;if(typeof f=="string")return(0,fe.jsx)("div",{className:"chat-widget__markdown",children:(0,fe.jsx)(Q9,{children:f})},m);if("type"in f&&f.type==="tool-call")return(0,fe.jsx)(wz,{toolCall:f},m);if("widgetType"in f){let x=t?.find(v=>v.widgetType===f.widgetType);if(!x)return(0,fe.jsxs)("span",{children:["[Unknown widget: ",f.widgetType,"]"]},m);let b=f;return(0,fe.jsx)("div",{className:"chat-widget__widget",children:x.render(b.payload,b.enriched??{})},m)}return null},p=(f,m)=>{if(f.type==="content")return(0,fe.jsx)("div",{className:ur(ze.messageRow,e.role==="user"?ze.userMessageRow:ze.assistantMessageRow),children:(0,fe.jsx)("div",{className:ur(ze.messageBubble,e.role==="user"?ze.userMessage:ze.assistantMessage),children:d(f.item,`${e.id}-section-${m}`)})},`${e.id}-section-${m}`);if(f.type==="tag-group"){let{group:x}=f,b=`${e.id}-tag-${x.tagId}`,v=a.get(b)??!0;return(0,fe.jsx)(bz,{tagId:x.tagId,isExpanded:v,onToggle:()=>n(e.id,x.tagId,v),children:x.content.map((y,g)=>{let S=typeof y=="string",L=!S&&"widgetType"in y;return(0,fe.jsx)("div",{className:ur("tag-group-item",S&&"tag-group-item--text",L&&"tag-group-item--widget"),children:d(y,`${b}-item-${g}`)},`${b}-item-${g}`)})},b)}return null};return(0,fe.jsxs)("div",{className:ze.messageWrapper,children:[e.sections.map((f,m)=>p(f,m)),e.role==="assistant"&&e.thoughts&&e.thoughts.length>0&&(0,fe.jsx)("div",{className:ze.thoughtsContainer,children:(0,fe.jsxs)("details",{className:"chat-widget__details",children:[(0,fe.jsxs)("summary",{className:ze.thoughtsSummary,children:[(0,fe.jsx)("span",{className:ze.thoughtsIconContainer,children:(0,fe.jsx)(Qo,{className:ze.thoughtsIcon})}),(0,fe.jsx)("span",{children:"Thoughts"})]}),(0,fe.jsx)("div",{className:ze.thoughtsContent,children:(0,fe.jsx)("pre",{className:ze.thoughtsText,children:e.thoughts.map((f,m)=>d(f,`${e.id}-thought-${m}`))})})]})}),r&&e.role==="assistant"&&e.id!=="welcome-message"&&o&&(0,fe.jsx)(hz,{messageId:e.id,existingRating:i,existingComment:l,isSubmitting:s,requireCommentForNegative:u,onSubmit:c})]})}var tZ=Le.default.memo(eZ),ze={container:"chat-widget",header:"chat-widget__header",headerTitle:"chat-widget__title",messagesContainer:"chat-widget__messages",messageWrapper:"chat-widget__message",messageRow:"chat-widget__message-row",userMessageRow:"chat-widget__message-row--user",assistantMessageRow:"chat-widget__message-row--assistant",messageBubble:"chat-widget__bubble",userMessage:"chat-widget__bubble--user",assistantMessage:"chat-widget__bubble--assistant",thoughtsContainer:"chat-widget__thoughts",thoughtsSummary:"chat-widget__thoughts-summary",thoughtsIconContainer:"chat-widget__thoughts-icon-container",thoughtsIcon:"chat-widget__thoughts-icon",thoughtsContent:"chat-widget__thoughts-content",thoughtsText:"chat-widget__thoughts-text",loadingContainer:"chat-widget__loading",loadingBubble:"chat-widget__loading-bubble",loadingDots:"chat-widget__loading-dots",loadingDot:"chat-widget__loading-dot",inputContainer:"chat-widget__input",inputForm:"chat-widget__form",textarea:"chat-widget__textarea",toolbar:"chat-widget__toolbar",submitButton:"chat-widget__submit",sendIcon:"chat-widget__send-icon",voiceControl:"chat-widget__voice",micButton:"chat-widget__mic-button"},aZ={primaryColor:"#3b82f6",primaryTextColor:"#ffffff",backgroundColor:"#ffffff",borderColor:"#e5e7eb",headerTextColor:"#ffffff",userBubbleTextColor:"#ffffff",assistantBubbleBackground:"transparent",assistantBubbleTextColor:"#111827",fontFamily:"'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",borderRadius:"0.75rem",inputBackground:"#ffffff",inputTextColor:"#111827",inputPlaceholderColor:"#6b7280",thoughtsBorderColor:"#d1d5db"},rZ=(e,t=.15)=>{let a=e.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(a))return e;let n=parseInt(a.slice(0,2),16),r=parseInt(a.slice(2,4),16),o=parseInt(a.slice(4,6),16),i=l=>Math.round(l*(1-t));return`#${i(n).toString(16).padStart(2,"0")}${i(r).toString(16).padStart(2,"0")}${i(o).toString(16).padStart(2,"0")}`};function as({api:e,threadId:t,agentId:a,agentExecutionId:n,dataContext:r,onError:o,onAuthError:i,onFinish:l,onMessage:s,title:u,initialAssistantMessage:c,initialUserMessage:d,inputPlaceholder:p,className:f,styles:m,voice:x,speechToText:b,widgets:v,feedback:y}){let g=(0,Le.useMemo)(()=>({...aZ,...m||{}}),[m]),S=(0,Le.useMemo)(()=>({"--chat-primary":g.primaryColor,"--chat-primary-text":g.primaryTextColor,"--chat-primary-hover":rZ(g.primaryColor,.2),"--chat-background":g.backgroundColor,"--chat-border":g.borderColor,"--chat-header-text":g.headerTextColor,"--chat-user-text":g.userBubbleTextColor,"--chat-assistant-bg":g.assistantBubbleBackground,"--chat-assistant-text":g.assistantBubbleTextColor,"--chat-font-family":g.fontFamily,"--chat-radius":g.borderRadius,"--chat-input-bg":g.inputBackground,"--chat-input-text":g.inputTextColor,"--chat-input-placeholder":g.inputPlaceholderColor,"--chat-thought-border":g.thoughtsBorderColor}),[g]),[L,_]=(0,Le.useState)(""),[A,z]=(0,Le.useState)(!1),[$,k]=(0,Le.useState)(!1),G=(0,Le.useRef)(null),Z=(0,Le.useRef)(null),F=(0,Le.useRef)(!0),J=(0,Le.useRef)(null),W=(0,Le.useRef)(!1),{messages:ne,status:ie,isLoadingInitial:te,sendMessage:X,stop:I,setMessages:Ue}=nz({api:e,threadId:t,agentId:a??void 0,agentExecutionId:n??void 0,dataContext:r,onError:o,onAuthError:i,onFinish:l,onMessage:s}),fa=y?.enabled!==!1,{submitFeedback:w,getFeedbackForMessage:Ge,isSubmitting:Ea}=oz({api:e,threadId:t,agentId:a??void 0,agentExecutionId:n??void 0}),hn=(0,Le.useCallback)((we,it,Yt)=>{w({messageId:we,rating:it,improvementText:Yt})},[w]),[Ar,ot]=(0,Le.useState)(new Map),Nt=(0,Le.useCallback)((we,it,Yt)=>{W.current=!0,ot(mo=>{let ho=new Map(mo),E=`${we}-tag-${it}`;return ho.set(E,!Yt),ho})},[]),Kt=(0,Le.useMemo)(()=>{if(!x||x.enabled===!1||!x.url)return null;let we=x.payload,it=Yt=>we?typeof we=="function"?we(Yt):{message:Yt,...we}:{message:Yt};return{url:x.url,method:x.method??"POST",autoplayLatest:x.autoplayLatest??!0,headers:{...x.headers??{}},buildPayload:it}},[x]);(0,Le.useEffect)(()=>{c&&!d&&!te&&ne.length===0&&Ue([{id:"welcome-message",role:"assistant",parts:[{type:"text",text:c}]}])},[c,d,te,ne.length,Ue]);let pa=(0,Le.useRef)(!1);(0,Le.useEffect)(()=>{d&&!pa.current&&!te&&ie==="ready"&&ne.length===0&&(pa.current=!0,X({text:d}))},[d,te,ie,ne.length,X]);let gn=(0,Le.useCallback)(()=>{if(!Z.current)return;let{scrollTop:we,scrollHeight:it,clientHeight:Yt}=Z.current,mo=it-we-Yt;F.current=mo<100},[]);(0,Le.useEffect)(()=>{if(W.current){W.current=!1;return}let it=ne[ne.length-1]?.role==="user";(F.current||it)&&G.current?.scrollIntoView({behavior:"smooth"})},[ne,ie]),(0,Le.useEffect)(()=>{let we=setTimeout(()=>{J.current?.focus()},150);return()=>clearTimeout(we)},[]),(0,Le.useEffect)(()=>{ie==="ready"&&J.current?.focus(),ie!=="streaming"&&k(!1)},[ie]);let po=(0,Le.useCallback)(we=>{let it=(we??L).trim();return!it||ie!=="ready"?!1:(X({text:it}),_(""),!0)},[L,ie,X,_]),rs=()=>{po()},Tc=we=>{we.preventDefault(),rs()},Ac=we=>{we.key==="Enter"&&!we.shiftKey&&(we.preventDefault(),rs())},_i=b?.enabled!==!1,gm=(0,Le.useCallback)(we=>{_(we)},[_]),Ec=(0,Le.useCallback)(we=>{let it=we?.trim();if(!it||$)return;_(it),po(it)&&k(!0)},[po,_,$]);(0,Le.useEffect)(()=>{_i||z(!1)},[_i]);let Ci=(0,Le.useRef)({threadId:"",widgets:null});return(0,Le.useEffect)(()=>{!v||v.length===0||Ci.current.threadId===t&&Ci.current.widgets===v||yf({api:e,threadId:t,widgets:v,onAuthError:i}).then(()=>{Ci.current={threadId:t,widgets:v}}).catch(it=>{console.error("Failed to register chat widgets",it)})},[e,t,v,i]),(0,fe.jsxs)("div",{className:ur(ze.container,f),style:S,"data-chat-widget":"",children:[u&&(0,fe.jsx)("div",{className:ze.header,children:(0,fe.jsx)("h3",{className:ze.headerTitle,children:u})}),(0,fe.jsxs)("div",{className:ze.messagesContainer,ref:Z,onScroll:gn,children:[ne.map((we,it)=>{let Yt=it===ne.length-1,mo=!(ie==="streaming"&&Yt),ho=Ge(we.id);return(0,fe.jsx)(tZ,{message:we,widgets:v,tagExpansionState:Ar,onTagToggle:Nt,feedbackEnabled:fa,showFeedback:mo,existingRating:ho?.rating,existingComment:ho?.comment,feedbackSubmitting:Ea===we.id,requireCommentForNegative:y?.requireCommentForNegative,onFeedbackSubmit:hn},we.id)}),ie==="streaming"&&(0,fe.jsx)("div",{className:ze.loadingContainer,children:(0,fe.jsx)("div",{className:ze.loadingBubble,children:(0,fe.jsxs)("div",{className:ze.loadingDots,children:[(0,fe.jsx)("div",{className:ze.loadingDot}),(0,fe.jsx)("div",{className:ze.loadingDot,"data-delay":"1"}),(0,fe.jsx)("div",{className:ze.loadingDot,"data-delay":"2"})]})})}),(0,fe.jsx)("div",{ref:G})]}),(0,fe.jsx)("div",{className:ze.inputContainer,children:(0,fe.jsxs)("form",{onSubmit:Tc,className:ze.inputForm,children:[(0,fe.jsx)("textarea",{ref:J,value:L,onChange:we=>_(we.target.value),onKeyDown:Ac,placeholder:p,disabled:ie!=="ready",rows:1,className:ze.textarea}),(0,fe.jsx)("div",{className:ze.toolbar,children:_i&&(0,fe.jsx)(xz,{className:ze.micButton,disabled:ie!=="ready",silenceTimeout:b?.silenceTimeout,language:b?.language,finalDelay:b?.finalDelay,onInterim:gm,onFinal:Ec,onError:b?.onError,onListeningChange:z})}),(0,fe.jsx)("button",{type:"button",onClick:ie==="streaming"?I:rs,disabled:ie==="streaming"?!1:!L.trim()||ie!=="ready",className:ze.submitButton,children:ie==="streaming"?(0,fe.jsx)(Jn,{className:ze.sendIcon}):(0,fe.jsx)(mu,{className:ze.sendIcon})})]})})]})}Qa(`.chat-popup__anchor{position:fixed;inset-block-end:20px;inset-inline-end:20px}.chat-popup--start{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__anchor-button{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:0 10px 25px #0f172a33;cursor:pointer;font-weight:600;z-index:99999}.chat-popup__anchor-button:hover{background:var(--chat-primary-hover)}.chat-popup__anchor-icon{width:1.1rem;height:1.1rem}.chat-popup__panel{position:fixed;inset-block-end:20px;inset-inline-end:20px;z-index:99998;transition:opacity .15s ease,visibility .15s ease}.chat-popup--start.chat-popup__panel{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__panel--open{opacity:1;visibility:visible;pointer-events:auto}.chat-popup__panel--closed{opacity:0;visibility:hidden;pointer-events:none}.chat-popup__panel-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:0 20px 45px #0f172a1f;border-radius:12px;overflow:visible;background:var(--chat-background);border:1px solid var(--chat-border);position:relative}.chat-popup__close{position:absolute;top:0;z-index:10;transform:translate(30%,-40%)}.chat-popup__close--end{inset-inline-end:0}.chat-popup__close--start{inset-inline-start:0}.chat-popup__close-button{border:none;background:var(--chat-primary);color:var(--chat-primary-text);width:32px;height:32px;border-radius:999px;cursor:pointer;display:grid;place-items:center;box-shadow:0 10px 25px #0f172a33}.chat-popup__close-button:hover{background:var(--chat-primary-hover)}.chat-popup__close-icon{width:16px;height:16px}
|
|
93
|
+
`);var fo=be(Bt(),1);var Ta=be(bt(),1);function pm({anchor:e,...t}){let[a,n]=(0,fo.useState)(e?.initiallyOpen??!1),[r,o]=(0,fo.useState)(e?.initiallyOpen??!1),i=t.openOverride??a;(0,fo.useEffect)(()=>{t.openOverride!==void 0&&(n(t.openOverride),t.openOverride&&o(!0))},[t.openOverride]);let l=()=>{let f=!i;f&&o(!0),t.onToggleOpen?t.onToggleOpen(f):n(f)},s=e?.position==="bottom-start"?"chat-popup--start":"chat-popup--end",u=e?.closeButton??t.closeButton,c=u?.show!==!1,d=(0,fo.useMemo)(()=>{let f=t.styles?.primaryColor??"#3b82f6",m=t.styles?.primaryTextColor??"#ffffff",x=t.styles?.backgroundColor??"#ffffff",b=t.styles?.borderColor??"#e5e7eb",v=t.styles?.headerTextColor??"#ffffff";return{"--chat-primary":f,"--chat-primary-hover":((g,S=.15)=>{let L=g.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(L))return g;let _=parseInt(L.slice(0,2),16),A=parseInt(L.slice(2,4),16),z=parseInt(L.slice(4,6),16),$=k=>Math.round(k*(1-S));return`#${$(_).toString(16).padStart(2,"0")}${$(A).toString(16).padStart(2,"0")}${$(z).toString(16).padStart(2,"0")}`})(f,.2),"--chat-primary-text":m,"--chat-background":x,"--chat-border":b,"--chat-header-text":v}},[t.styles]),p=(0,fo.useMemo)(()=>{let f=t.popupSize??{};return{width:f.width??"600px",height:f.height??"500px",maxWidth:f.maxWidth??"calc(100vw - 40px)",maxHeight:f.maxHeight??"calc(100vh - 140px)"}},[t.popupSize]);return(0,Ta.jsxs)("div",{style:d,children:[(0,Ta.jsx)("div",{className:ur("chat-popup__anchor",s),children:e?.render?e.render({isOpen:i,toggle:l}):!i&&(0,Ta.jsxs)("button",{type:"button",className:"chat-popup__anchor-button",onClick:l,"aria-expanded":a,"aria-label":e?.label??"Open chat",children:[(0,Ta.jsx)(ei,{className:"chat-popup__anchor-icon"}),(0,Ta.jsx)("span",{children:e?.label??"Chat"})]})}),(0,Ta.jsx)("div",{className:ur("chat-popup__panel",s,i?"chat-popup__panel--open":"chat-popup__panel--closed"),children:(0,Ta.jsxs)("div",{className:"chat-popup__panel-inner",style:p,children:[c&&(0,Ta.jsx)("div",{className:ur("chat-popup__close",u?.position==="top-start"?"chat-popup__close--start":"chat-popup__close--end"),children:u?.render?u.render({toggle:l}):(0,Ta.jsx)("button",{type:"button",className:"chat-popup__close-button",onClick:l,"aria-label":"Close chat",children:(0,Ta.jsx)(vu,{className:"chat-popup__close-icon"})})}),r&&(0,Ta.jsx)(as,{...t})]})})]})}var mm=({widgetType:e,schema:t,enrich:a,render:n})=>({widgetType:e,schema:t,enrich:a,render:n});var Te=be(bt(),1),Iz=at.object({fromLocation:at.string().describe("The location the user is searching for"),fromCoordinates:at.object({latitude:at.number(),longitude:at.number()}).describe("The location's lat/lng coordinates. This must come from the previous geocoding tool as-is - do NOT guess"),vendors:at.array(at.object({vendor_id:at.string(),notes:at.string().optional().describe("Why this vendor was recommended"),vendorCoordinates:at.object({latitude:at.number(),longitude:at.number()}).describe("The lat/lng coordinates of this vendor. This must come from the vendor's location.coordinates from the previous vendor search tool - do NOT guess")}))}).describe("displaying a list of vendor cards. Use this widget to represent data from CareNetwork vendor search tool.");function kz({payload:e,enriched:t,onAddToList:a}){if(!t||!t.vendorDetails||!t.distanceMatrix)return(0,Te.jsx)("div",{children:"Outdated vendor-cards widget"});let{vendorDetails:n,distanceMatrix:r}=t,o=n?.data??{},i=r?.data??[],l=s=>{let u=s/1609.34;return u<.1?"< 0.1 mi":`${u.toFixed(1)} mi`};return(0,Te.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:e.vendors.map((s,u)=>{let c=o[s.vendor_id],d=c?.names?.[0]?.value??"Unknown",p=c?.location?.address,f=i.find(S=>S.destinationIndex===u),m=f&&f.distanceMeters?l(f.distanceMeters):void 0,x=c?.financials?.fees?.find(S=>S.fee_type?.includes("Hourly"))?.amount,b=c?.avg_rating,v=c?.review_count,y=c?.booleans,g=c?.verification;return(0,Te.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.2rem",padding:"1rem",background:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"0.5rem",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",fontSize:"0.875rem"},children:[(0,Te.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,Te.jsx)("div",{style:{width:"2rem",height:"2rem",borderRadius:"9999px",background:"#bfd1f5",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"0.875rem",color:"#374151"},children:d.charAt(0).toUpperCase()}),(0,Te.jsx)("span",{style:{fontWeight:600,fontSize:"1rem",color:"#111827"},children:d})]}),a&&(0,Te.jsx)("button",{onClick:()=>a(s.vendor_id),style:{background:"none",border:"none",color:"#3b82f6",fontSize:"0.875rem",cursor:"pointer",padding:0},children:"Add to list"})]}),(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"#6b7280"},children:[(0,Te.jsx)("span",{style:{color:"#facc15"},children:"\u2605"}),(0,Te.jsx)("span",{children:b?.toFixed(1)??"\u2014"}),(0,Te.jsxs)("span",{style:{color:"#9ca3af"},children:["(",v??0," reviews)"]})]}),p&&(0,Te.jsx)("div",{style:{color:"#6b7280"},children:p}),m&&(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280"},children:[(0,Te.jsx)("span",{children:"\u{1F4CD}"}),(0,Te.jsxs)("span",{children:[m," from ",e.fromLocation]})]}),x&&(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280"},children:[(0,Te.jsx)("span",{children:"\u{1F4B0}"}),(0,Te.jsxs)("span",{children:["Rate: $",x,"/hr"]})]}),s.notes&&(0,Te.jsxs)("div",{style:{color:"#374151",marginTop:"0.4rem"},children:[(0,Te.jsx)("span",{style:{marginRight:"0.25rem"},children:"\u2728"}),(0,Te.jsx)("strong",{children:"Recommendation notes"}),(0,Te.jsx)("div",{style:{marginLeft:"1.25rem",marginTop:"0.25rem",color:"#6b7280"},children:s.notes})]}),(0,Te.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginTop:"0.25rem",paddingTop:"0.5rem",borderTop:"1px solid #f3f4f6"},children:[g?.verified&&(0,Te.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,Te.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Verified"]}),y?.is_agency_insured&&(0,Te.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,Te.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Insured"]}),y?.free_in_home_evaluation&&(0,Te.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#3b82f6",fontSize:"0.75rem"},children:[(0,Te.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u{1F3E0}"})," Free In-Home Evaluation"]}),y?.can_request_same_caregiver&&(0,Te.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280",fontSize:"0.75rem"},children:[(0,Te.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u{1F464}"})," Same Caregiver Available"]})]})]},s.vendor_id)})})}var Aa=be(bt(),1),nle=[mm({widgetType:"person-card",schema:at.object({name:at.string(),photoUri:at.string().optional().describe("URL to a photo of the person"),details:at.record(at.any()).optional()}).describe("showing a person card with name, photo and additional details"),render:e=>(0,Aa.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",padding:"1rem",background:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"0.5rem",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"},children:(0,Aa.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[e.photoUri&&(0,Aa.jsx)("img",{src:e.photoUri,alt:e.name,style:{width:"3rem",height:"3rem",borderRadius:"9999px",objectFit:"cover",flexShrink:0},loading:"lazy"}),(0,Aa.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,Aa.jsx)("div",{style:{fontWeight:600,fontSize:"1rem",color:"#111827",marginBottom:"0.25rem"},children:e.name}),e.details?(0,Aa.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Object.entries(e.details).map(([t,a])=>(0,Aa.jsxs)("div",{style:{display:"flex",gap:"0.5rem",fontSize:"0.875rem"},children:[(0,Aa.jsxs)("span",{style:{color:"#6b7280",fontWeight:500,minWidth:"fit-content"},children:[t,":"]}),(0,Aa.jsx)("span",{style:{color:"#374151"},children:String(a)})]},t))}):null]})]})})}),mm({widgetType:"link",schema:at.object({uri:at.string().url(),text:at.string().optional()}).describe("rendering a clickable link"),render:e=>(0,Aa.jsx)("a",{href:e.uri,target:"_blank",rel:"noreferrer",style:{display:"inline-flex",alignItems:"center",padding:"0.5rem 0.75rem",background:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"0.375rem",color:"#3b82f6",textDecoration:"none",fontSize:"0.875rem",fontWeight:500,transition:"all 0.2s ease"},onMouseEnter:t=>{t.currentTarget.style.background="#e5e7eb",t.currentTarget.style.borderColor="#9ca3af",t.currentTarget.style.color="#2563eb"},onMouseLeave:t=>{t.currentTarget.style.background="#f3f4f6",t.currentTarget.style.borderColor="#d1d5db",t.currentTarget.style.color="#3b82f6"},children:e.text||e.uri})})],_z=e=>[mm({widgetType:"vendor-cards",schema:Iz,enrich:{vendorDetails:{toolId:e?"86dc78e28f933225750d9bcff7c94b18-CPgsswom7FkUYvplmy6H":"CPgsswom7FkUYvplmy6H",inputs:{vendorIds:"${vendors|map('vendor_id')|join(',')}"}},distanceMatrix:{toolId:e?"86dc78e28f933225750d9bcff7c94b18-DwsbeKAxOctXSGgghvW8":"DwsbeKAxOctXSGgghvW8",inputs:{origin:"${fromCoordinates}",destinations:"${vendors|map('vendorCoordinates')}"}}},render:(n,r)=>(0,Aa.jsx)(kz,{payload:n,enriched:r})})];var hm=be(bt(),1),Vw=class{constructor(t){this.container=null;this.root=null;this.config=t}async init(){if(await this.registerWidgetsIfNeeded(),this.container&&this.config.containerId&&this.container.id!==this.config.containerId&&this.destroy(),this.root&&this.container)return;if(this.config.containerId){if(this.container=document.getElementById(this.config.containerId),!this.container){console.error(`Container with id "${this.config.containerId}" not found`);return}}else this.config.anchor?.enabled?(this.container=document.createElement("div"),document.body.appendChild(this.container)):(this.container=document.createElement("div"),this.container.id="chat-widget-container",this.container.style.cssText=`
|
|
94
94
|
position: fixed;
|
|
95
95
|
bottom: 20px;
|
|
96
96
|
right: 20px;
|
|
@@ -100,7 +100,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
100
100
|
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
|
|
101
101
|
border-radius: 12px;
|
|
102
102
|
overflow: hidden;
|
|
103
|
-
`,document.body.appendChild(this.container));this.container&&(this.container.style.display="block"),this.root=(0,
|
|
103
|
+
`,document.body.appendChild(this.container));this.container&&(this.container.style.display="block"),this.root=(0,Cz.createRoot)(this.container);let{containerId:t,...a}=this.config,n=a.anchor?.enabled?pm:as;this.root.render((0,hm.jsx)(n,{...a,openOverride:this.openOverride,onToggleOpen:r=>{this.openOverride=r,this.updateConfig({})}}))}destroy(){this.root&&(this.root.unmount(),this.root=null),this.container&&this.container.parentNode&&!this.config.containerId&&this.container.parentNode.removeChild(this.container),this.container&&this.config.containerId&&(this.container.innerHTML=""),this.container=null}updateConfig(t){let a=t.api?{...this.config.api,...t.api}:this.config.api;if(this.config={...this.config,...t,api:a},this.registerWidgetsIfNeeded(),this.root){let{containerId:n,...r}=this.config,o=r.anchor?.enabled?pm:as;this.root.render((0,hm.jsx)(o,{...r,openOverride:this.openOverride,onToggleOpen:i=>{this.openOverride=i,this.updateConfig({})}}))}}updateToken(t){this.updateConfig({api:{...this.config.api||{baseUrl:"",token:""},token:t}})}async registerWidgetsIfNeeded(){let t=this.config.widgets;if(!(!t||t.length===0)&&!(this.lastRegistered&&this.lastRegistered.threadId===this.config.threadId&&this.lastRegistered.widgets===t))try{await yf({api:this.config.api,threadId:this.config.threadId,widgets:t,onAuthError:this.config.onAuthError}),this.lastRegistered={threadId:this.config.threadId,widgets:t}}catch(a){console.error("Failed to register chat widgets",a)}}},Ne=null;window.ChatWidget={init:async e=>{Ne?Ne.updateConfig(e):Ne=new Vw(e),await Ne.init()},destroy:()=>{Ne&&(Ne.destroy(),Ne=null)},hide:()=>{Ne&&(Ne.openOverride=!1,Ne.container&&(Ne.container.style.display="block"),Ne.updateConfig({}))},show:()=>{if(Ne){if(Ne.openOverride=!0,Ne.container&&(Ne.container.style.display="block"),Ne.container&&Ne.container.children.length===0&&Ne.root){let{containerId:e,...t}=Ne.config,a=t.anchor?.enabled?pm:as;Ne.root.render((0,hm.jsx)(a,{...t,openOverride:Ne.openOverride,onToggleOpen:n=>{Ne.openOverride=n,Ne.updateConfig({})}}))}Ne.updateConfig({})}},updateConfig:e=>{Ne&&Ne.updateConfig(e)},updateToken:e=>{Ne&&Ne.updateToken(e)},getVendorCardsWidget:_z};if(typeof window<"u"){let e=window.chatWidgetConfig;e&&window.ChatWidget.init(e).catch(console.error);let t=document.currentScript;if(t&&t.hasAttribute("data-config"))try{let a=JSON.parse(t.getAttribute("data-config")||"{}");window.ChatWidget.init(a).catch(console.error)}catch(a){console.error("Failed to parse chat widget config from data-config attribute:",a)}if(t&&t.hasAttribute("data-api-base-url")&&t.hasAttribute("data-token")&&t.hasAttribute("data-thread-id")){let a={api:{baseUrl:t.getAttribute("data-api-base-url")||"",token:t.getAttribute("data-token")||""},threadId:t.getAttribute("data-thread-id")||"",containerId:t.getAttribute("data-container-id")||void 0,title:t.getAttribute("data-title")||void 0,initialAssistantMessage:t.getAttribute("data-initial-assistant-message")||void 0,initialUserMessage:t.getAttribute("data-initial-user-message")||void 0},n=t.getAttribute("data-agent-id")||void 0,r=t.getAttribute("data-agent-execution-id")||void 0;if(n&&(a.agentId=n),r&&(a.agentExecutionId=r),t.getAttribute("data-anchor")==="true"&&(a.anchor={enabled:!0}),t.hasAttribute("data-headers"))try{let o=JSON.parse(t.getAttribute("data-headers")||"{}");a.api.headers=o}catch(o){console.error("Failed to parse headers from data-headers attribute:",o)}window.ChatWidget.init(a).catch(console.error)}}return Oz(nZ);})();
|
|
104
104
|
/*! Bundled license information:
|
|
105
105
|
|
|
106
106
|
scheduler/cjs/scheduler.production.js:
|