@package-broker/ui 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,70 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function i(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=i(r);fetch(r.href,o)}})();function bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pm={exports:{}},Ql={};var jx;function s2(){if(jx)return Ql;jx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var f in r)f!=="key"&&(o[f]=r[f])}else o=r;return r=o.ref,{$$typeof:e,type:a,key:s,ref:r!==void 0?r:null,props:o}}return Ql.Fragment=t,Ql.jsx=i,Ql.jsxs=i,Ql}var Nx;function c2(){return Nx||(Nx=1,pm.exports=s2()),pm.exports}var y=c2(),gm={exports:{}},ke={};var zx;function f2(){if(zx)return ke;zx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function x(z){return z===null||typeof z!="object"?null:(z=b&&z[b]||z["@@iterator"],typeof z=="function"?z:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,N={};function j(z,Z,$){this.props=z,this.context=Z,this.refs=N,this.updater=$||S}j.prototype.isReactComponent={},j.prototype.setState=function(z,Z){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,Z,"setState")},j.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function C(){}C.prototype=j.prototype;function O(z,Z,$){this.props=z,this.context=Z,this.refs=N,this.updater=$||S}var G=O.prototype=new C;G.constructor=O,w(G,j.prototype),G.isPureReactComponent=!0;var X=Array.isArray;function L(){}var W={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function ie(z,Z,$){var oe=$.ref;return{$$typeof:e,type:z,key:Z,ref:oe!==void 0?oe:null,props:$}}function U(z,Z){return ie(z.type,Z,z.props)}function se(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ce(z){var Z={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function($){return Z[$]})}var Se=/\/+/g;function Y(z,Z){return typeof z=="object"&&z!==null&&z.key!=null?ce(""+z.key):Z.toString(36)}function P(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(L,L):(z.status="pending",z.then(function(Z){z.status==="pending"&&(z.status="fulfilled",z.value=Z)},function(Z){z.status==="pending"&&(z.status="rejected",z.reason=Z)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function R(z,Z,$,oe,me){var pe=typeof z;(pe==="undefined"||pe==="boolean")&&(z=null);var De=!1;if(z===null)De=!0;else switch(pe){case"bigint":case"string":case"number":De=!0;break;case"object":switch(z.$$typeof){case e:case t:De=!0;break;case p:return De=z._init,R(De(z._payload),Z,$,oe,me)}}if(De)return me=me(z),De=oe===""?"."+Y(z,0):oe,X(me)?($="",De!=null&&($=De.replace(Se,"$&/")+"/"),R(me,Z,$,"",function(pn){return pn})):me!=null&&(se(me)&&(me=U(me,$+(me.key==null||z&&z.key===me.key?"":(""+me.key).replace(Se,"$&/")+"/")+De)),Z.push(me)),1;De=0;var at=oe===""?".":oe+":";if(X(z))for(var Ge=0;Ge<z.length;Ge++)oe=z[Ge],pe=at+Y(oe,Ge),De+=R(oe,Z,$,pe,me);else if(Ge=x(z),typeof Ge=="function")for(z=Ge.call(z),Ge=0;!(oe=z.next()).done;)oe=oe.value,pe=at+Y(oe,Ge++),De+=R(oe,Z,$,pe,me);else if(pe==="object"){if(typeof z.then=="function")return R(P(z),Z,$,oe,me);throw Z=String(z),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return De}function F(z,Z,$){if(z==null)return z;var oe=[],me=0;return R(z,oe,"","",function(pe){return Z.call($,pe,me++)}),oe}function te(z){if(z._status===-1){var Z=z._result;Z=Z(),Z.then(function($){(z._status===0||z._status===-1)&&(z._status=1,z._result=$)},function($){(z._status===0||z._status===-1)&&(z._status=2,z._result=$)}),z._status===-1&&(z._status=0,z._result=Z)}if(z._status===1)return z._result.default;throw z._result}var ae=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},E={map:F,forEach:function(z,Z,$){F(z,function(){Z.apply(this,arguments)},$)},count:function(z){var Z=0;return F(z,function(){Z++}),Z},toArray:function(z){return F(z,function(Z){return Z})||[]},only:function(z){if(!se(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return ke.Activity=v,ke.Children=E,ke.Component=j,ke.Fragment=i,ke.Profiler=r,ke.PureComponent=O,ke.StrictMode=a,ke.Suspense=m,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,ke.__COMPILER_RUNTIME={__proto__:null,c:function(z){return W.H.useMemoCache(z)}},ke.cache=function(z){return function(){return z.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(z,Z,$){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var oe=w({},z.props),me=z.key;if(Z!=null)for(pe in Z.key!==void 0&&(me=""+Z.key),Z)!ne.call(Z,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Z.ref===void 0||(oe[pe]=Z[pe]);var pe=arguments.length-2;if(pe===1)oe.children=$;else if(1<pe){for(var De=Array(pe),at=0;at<pe;at++)De[at]=arguments[at+2];oe.children=De}return ie(z.type,me,oe)},ke.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:o,_context:z},z},ke.createElement=function(z,Z,$){var oe,me={},pe=null;if(Z!=null)for(oe in Z.key!==void 0&&(pe=""+Z.key),Z)ne.call(Z,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(me[oe]=Z[oe]);var De=arguments.length-2;if(De===1)me.children=$;else if(1<De){for(var at=Array(De),Ge=0;Ge<De;Ge++)at[Ge]=arguments[Ge+2];me.children=at}if(z&&z.defaultProps)for(oe in De=z.defaultProps,De)me[oe]===void 0&&(me[oe]=De[oe]);return ie(z,pe,me)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(z){return{$$typeof:f,render:z}},ke.isValidElement=se,ke.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:te}},ke.memo=function(z,Z){return{$$typeof:d,type:z,compare:Z===void 0?null:Z}},ke.startTransition=function(z){var Z=W.T,$={};W.T=$;try{var oe=z(),me=W.S;me!==null&&me($,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(L,ae)}catch(pe){ae(pe)}finally{Z!==null&&$.types!==null&&(Z.types=$.types),W.T=Z}},ke.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},ke.use=function(z){return W.H.use(z)},ke.useActionState=function(z,Z,$){return W.H.useActionState(z,Z,$)},ke.useCallback=function(z,Z){return W.H.useCallback(z,Z)},ke.useContext=function(z){return W.H.useContext(z)},ke.useDebugValue=function(){},ke.useDeferredValue=function(z,Z){return W.H.useDeferredValue(z,Z)},ke.useEffect=function(z,Z){return W.H.useEffect(z,Z)},ke.useEffectEvent=function(z){return W.H.useEffectEvent(z)},ke.useId=function(){return W.H.useId()},ke.useImperativeHandle=function(z,Z,$){return W.H.useImperativeHandle(z,Z,$)},ke.useInsertionEffect=function(z,Z){return W.H.useInsertionEffect(z,Z)},ke.useLayoutEffect=function(z,Z){return W.H.useLayoutEffect(z,Z)},ke.useMemo=function(z,Z){return W.H.useMemo(z,Z)},ke.useOptimistic=function(z,Z){return W.H.useOptimistic(z,Z)},ke.useReducer=function(z,Z,$){return W.H.useReducer(z,Z,$)},ke.useRef=function(z){return W.H.useRef(z)},ke.useState=function(z){return W.H.useState(z)},ke.useSyncExternalStore=function(z,Z,$){return W.H.useSyncExternalStore(z,Z,$)},ke.useTransition=function(){return W.H.useTransition()},ke.version="19.2.3",ke}var Ox;function sp(){return Ox||(Ox=1,gm.exports=f2()),gm.exports}var A=sp();const d2=bo(A);var vm={exports:{}},Jl={},ym={exports:{}},bm={};var Tx;function m2(){return Tx||(Tx=1,(function(e){function t(R,F){var te=R.length;R.push(F);e:for(;0<te;){var ae=te-1>>>1,E=R[ae];if(0<r(E,F))R[ae]=F,R[te]=E,te=ae;else break e}}function i(R){return R.length===0?null:R[0]}function a(R){if(R.length===0)return null;var F=R[0],te=R.pop();if(te!==F){R[0]=te;e:for(var ae=0,E=R.length,z=E>>>1;ae<z;){var Z=2*(ae+1)-1,$=R[Z],oe=Z+1,me=R[oe];if(0>r($,te))oe<E&&0>r(me,$)?(R[ae]=me,R[oe]=te,ae=oe):(R[ae]=$,R[Z]=te,ae=Z);else if(oe<E&&0>r(me,te))R[ae]=me,R[oe]=te,ae=oe;else break e}}return F}function r(R,F){var te=R.sortIndex-F.sortIndex;return te!==0?te:R.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,f=s.now();e.unstable_now=function(){return s.now()-f}}var m=[],d=[],p=1,v=null,b=3,x=!1,S=!1,w=!1,N=!1,j=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function G(R){for(var F=i(d);F!==null;){if(F.callback===null)a(d);else if(F.startTime<=R)a(d),F.sortIndex=F.expirationTime,t(m,F);else break;F=i(d)}}function X(R){if(w=!1,G(R),!S)if(i(m)!==null)S=!0,L||(L=!0,ce());else{var F=i(d);F!==null&&P(X,F.startTime-R)}}var L=!1,W=-1,ne=5,ie=-1;function U(){return N?!0:!(e.unstable_now()-ie<ne)}function se(){if(N=!1,L){var R=e.unstable_now();ie=R;var F=!0;try{e:{S=!1,w&&(w=!1,C(W),W=-1),x=!0;var te=b;try{t:{for(G(R),v=i(m);v!==null&&!(v.expirationTime>R&&U());){var ae=v.callback;if(typeof ae=="function"){v.callback=null,b=v.priorityLevel;var E=ae(v.expirationTime<=R);if(R=e.unstable_now(),typeof E=="function"){v.callback=E,G(R),F=!0;break t}v===i(m)&&a(m),G(R)}else a(m);v=i(m)}if(v!==null)F=!0;else{var z=i(d);z!==null&&P(X,z.startTime-R),F=!1}}break e}finally{v=null,b=te,x=!1}F=void 0}}finally{F?ce():L=!1}}}var ce;if(typeof O=="function")ce=function(){O(se)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,Y=Se.port2;Se.port1.onmessage=se,ce=function(){Y.postMessage(null)}}else ce=function(){j(se,0)};function P(R,F){W=j(function(){R(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(R){switch(b){case 1:case 2:case 3:var F=3;break;default:F=b}var te=b;b=F;try{return R()}finally{b=te}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(R,F){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var te=b;b=R;try{return F()}finally{b=te}},e.unstable_scheduleCallback=function(R,F,te){var ae=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ae+te:ae):te=ae,R){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=te+E,R={id:p++,callback:F,priorityLevel:R,startTime:te,expirationTime:E,sortIndex:-1},te>ae?(R.sortIndex=te,t(d,R),i(m)===null&&R===i(d)&&(w?(C(W),W=-1):w=!0,P(X,te-ae))):(R.sortIndex=E,t(m,R),S||x||(S=!0,L||(L=!0,ce()))),R},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(R){var F=b;return function(){var te=b;b=F;try{return R.apply(this,arguments)}finally{b=te}}}})(bm)),bm}var Ax;function h2(){return Ax||(Ax=1,ym.exports=m2()),ym.exports}var xm={exports:{}},At={};var Cx;function p2(){if(Cx)return At;Cx=1;var e=sp();function t(m){var d="https://react.dev/errors/"+m;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+m+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},r=Symbol.for("react.portal");function o(m,d,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:v==null?null:""+v,children:m,containerInfo:d,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,d){if(m==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,At.createPortal=function(m,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(m,d,null,p)},At.flushSync=function(m){var d=s.T,p=a.p;try{if(s.T=null,a.p=2,m)return m()}finally{s.T=d,a.p=p,a.d.f()}},At.preconnect=function(m,d){typeof m=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,a.d.C(m,d))},At.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},At.preinit=function(m,d){if(typeof m=="string"&&d&&typeof d.as=="string"){var p=d.as,v=f(p,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?a.d.S(m,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:x}):p==="script"&&a.d.X(m,{crossOrigin:v,integrity:b,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},At.preinitModule=function(m,d){if(typeof m=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=f(d.as,d.crossOrigin);a.d.M(m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&a.d.M(m)},At.preload=function(m,d){if(typeof m=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,v=f(p,d.crossOrigin);a.d.L(m,p,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},At.preloadModule=function(m,d){if(typeof m=="string")if(d){var p=f(d.as,d.crossOrigin);a.d.m(m,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else a.d.m(m)},At.requestFormReset=function(m){a.d.r(m)},At.unstable_batchedUpdates=function(m,d){return m(d)},At.useFormState=function(m,d,p){return s.H.useFormState(m,d,p)},At.useFormStatus=function(){return s.H.useHostTransitionStatus()},At.version="19.2.3",At}var Rx;function g2(){if(Rx)return xm.exports;Rx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xm.exports=p2(),xm.exports}var Dx;function v2(){if(Dx)return Jl;Dx=1;var e=h2(),t=sp(),i=g2();function a(n){var l="https://react.dev/errors/"+n;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var l=n,u=n;if(n.alternate)for(;l.return;)l=l.return;else{n=l;do l=n,(l.flags&4098)!==0&&(u=l.return),n=l.return;while(n)}return l.tag===3?u:null}function s(n){if(n.tag===13){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function f(n){if(n.tag===31){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function m(n){if(o(n)!==n)throw Error(a(188))}function d(n){var l=n.alternate;if(!l){if(l=o(n),l===null)throw Error(a(188));return l!==n?null:n}for(var u=n,c=l;;){var h=u.return;if(h===null)break;var g=h.alternate;if(g===null){if(c=h.return,c!==null){u=c;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===u)return m(h),n;if(g===c)return m(h),l;g=g.sibling}throw Error(a(188))}if(u.return!==c.return)u=h,c=g;else{for(var _=!1,k=h.child;k;){if(k===u){_=!0,u=h,c=g;break}if(k===c){_=!0,c=h,u=g;break}k=k.sibling}if(!_){for(k=g.child;k;){if(k===u){_=!0,u=g,c=h;break}if(k===c){_=!0,c=g,u=h;break}k=k.sibling}if(!_)throw Error(a(189))}}if(u.alternate!==c)throw Error(a(190))}if(u.tag!==3)throw Error(a(188));return u.stateNode.current===u?n:l}function p(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n;for(n=n.child;n!==null;){if(l=p(n),l!==null)return l;n=n.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),O=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function ce(n){return n===null||typeof n!="object"?null:(n=se&&n[se]||n["@@iterator"],typeof n=="function"?n:null)}var Se=Symbol.for("react.client.reference");function Y(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Se?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case w:return"Fragment";case j:return"Profiler";case N:return"StrictMode";case X:return"Suspense";case L:return"SuspenseList";case ie:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case O:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case G:var l=n.render;return n=n.displayName,n||(n=l.displayName||l.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case W:return l=n.displayName||null,l!==null?l:Y(n.type)||"Memo";case ne:l=n._payload,n=n._init;try{return Y(n(l))}catch{}}return null}var P=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ae=[],E=-1;function z(n){return{current:n}}function Z(n){0>E||(n.current=ae[E],ae[E]=null,E--)}function $(n,l){E++,ae[E]=n.current,n.current=l}var oe=z(null),me=z(null),pe=z(null),De=z(null);function at(n,l){switch($(pe,l),$(me,n),$(oe,null),l.nodeType){case 9:case 11:n=(n=l.documentElement)&&(n=n.namespaceURI)?Q0(n):0;break;default:if(n=l.tagName,l=l.namespaceURI)l=Q0(l),n=J0(l,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Z(oe),$(oe,n)}function Ge(){Z(oe),Z(me),Z(pe)}function pn(n){n.memoizedState!==null&&$(De,n);var l=oe.current,u=J0(l,n.type);l!==u&&($(me,n),$(oe,u))}function Wn(n){me.current===n&&(Z(oe),Z(me)),De.current===n&&(Z(De),Gl._currentValue=te)}var rl,Xo;function er(n){if(rl===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);rl=l&&l[1]||"",Xo=-1<u.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+rl+n+Xo}var Fi=!1;function Hi(n,l){if(!n||Fi)return"";Fi=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(l){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(V){var H=V}Reflect.construct(n,[],ee)}else{try{ee.call()}catch(V){H=V}n.call(ee.prototype)}}else{try{throw Error()}catch(V){H=V}(ee=n())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(V){if(V&&H&&typeof V.stack=="string")return[V.stack,H.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),_=g[0],k=g[1];if(_&&k){var T=_.split(`
4
+ `),B=k.split(`
5
+ `);for(h=c=0;c<T.length&&!T[c].includes("DetermineComponentFrameRoot");)c++;for(;h<B.length&&!B[h].includes("DetermineComponentFrameRoot");)h++;if(c===T.length||h===B.length)for(c=T.length-1,h=B.length-1;1<=c&&0<=h&&T[c]!==B[h];)h--;for(;1<=c&&0<=h;c--,h--)if(T[c]!==B[h]){if(c!==1||h!==1)do if(c--,h--,0>h||T[c]!==B[h]){var Q=`
6
+ `+T[c].replace(" at new "," at ");return n.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",n.displayName)),Q}while(1<=c&&0<=h);break}}}finally{Fi=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?er(u):""}function Qo(n,l){switch(n.tag){case 26:case 27:case 5:return er(n.type);case 16:return er("Lazy");case 13:return n.child!==l&&l!==null?er("Suspense Fallback"):er("Suspense");case 19:return er("SuspenseList");case 0:case 15:return Hi(n.type,!1);case 11:return Hi(n.type.render,!1);case 1:return Hi(n.type,!0);case 31:return er("Activity");default:return""}}function Jo(n){try{var l="",u=null;do l+=Qo(n,u),u=n,n=n.return;while(n);return l}catch(c){return`
7
+ Error generating stack: `+c.message+`
8
+ `+c.stack}}var Gi=Object.prototype.hasOwnProperty,Vi=e.unstable_scheduleCallback,il=e.unstable_cancelCallback,Wc=e.unstable_shouldYield,ef=e.unstable_requestPaint,Ut=e.unstable_now,tf=e.unstable_getCurrentPriorityLevel,J=e.unstable_ImmediatePriority,fe=e.unstable_UserBlockingPriority,xe=e.unstable_NormalPriority,Oe=e.unstable_LowPriority,Be=e.unstable_IdlePriority,tn=e.log,tr=e.unstable_setDisableYieldValue,Lt=null,xt=null;function Ft(n){if(typeof tn=="function"&&tr(n),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Lt,n)}catch{}}var Qe=Math.clz32?Math.clz32:X4,Ar=Math.log,Cn=Math.LN2;function X4(n){return n>>>=0,n===0?32:31-(Ar(n)/Cn|0)|0}var Ko=256,Wo=262144,eu=4194304;function fi(n){var l=n&42;if(l!==0)return l;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function tu(n,l,u){var c=n.pendingLanes;if(c===0)return 0;var h=0,g=n.suspendedLanes,_=n.pingedLanes;n=n.warmLanes;var k=c&134217727;return k!==0?(c=k&~g,c!==0?h=fi(c):(_&=k,_!==0?h=fi(_):u||(u=k&~n,u!==0&&(h=fi(u))))):(k=c&~g,k!==0?h=fi(k):_!==0?h=fi(_):u||(u=c&~n,u!==0&&(h=fi(u)))),h===0?0:l!==0&&l!==h&&(l&g)===0&&(g=h&-h,u=l&-l,g>=u||g===32&&(u&4194048)!==0)?l:h}function al(n,l){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&l)===0}function Q4(n,l){switch(n){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 Tv(){var n=eu;return eu<<=1,(eu&62914560)===0&&(eu=4194304),n}function nf(n){for(var l=[],u=0;31>u;u++)l.push(n);return l}function ll(n,l){n.pendingLanes|=l,l!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function J4(n,l,u,c,h,g){var _=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var k=n.entanglements,T=n.expirationTimes,B=n.hiddenUpdates;for(u=_&~u;0<u;){var Q=31-Qe(u),ee=1<<Q;k[Q]=0,T[Q]=-1;var H=B[Q];if(H!==null)for(B[Q]=null,Q=0;Q<H.length;Q++){var V=H[Q];V!==null&&(V.lane&=-536870913)}u&=~ee}c!==0&&Av(n,c,0),g!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=g&~(_&~l))}function Av(n,l,u){n.pendingLanes|=l,n.suspendedLanes&=~l;var c=31-Qe(l);n.entangledLanes|=l,n.entanglements[c]=n.entanglements[c]|1073741824|u&261930}function Cv(n,l){var u=n.entangledLanes|=l;for(n=n.entanglements;u;){var c=31-Qe(u),h=1<<c;h&l|n[c]&l&&(n[c]|=l),u&=~h}}function Rv(n,l){var u=l&-l;return u=(u&42)!==0?1:rf(u),(u&(n.suspendedLanes|l))!==0?0:u}function rf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function af(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Dv(){var n=F.p;return n!==0?n:(n=window.event,n===void 0?32:xx(n.type))}function Iv(n,l){var u=F.p;try{return F.p=n,l()}finally{F.p=u}}var Cr=Math.random().toString(36).slice(2),jt="__reactFiber$"+Cr,Ht="__reactProps$"+Cr,Yi="__reactContainer$"+Cr,lf="__reactEvents$"+Cr,K4="__reactListeners$"+Cr,W4="__reactHandles$"+Cr,Uv="__reactResources$"+Cr,ol="__reactMarker$"+Cr;function of(n){delete n[jt],delete n[Ht],delete n[lf],delete n[K4],delete n[W4]}function Xi(n){var l=n[jt];if(l)return l;for(var u=n.parentNode;u;){if(l=u[Yi]||u[jt]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(n=ix(n);n!==null;){if(u=n[jt])return u;n=ix(n)}return l}n=u,u=n.parentNode}return null}function Qi(n){if(n=n[jt]||n[Yi]){var l=n.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return n}return null}function ul(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n.stateNode;throw Error(a(33))}function Ji(n){var l=n[Uv];return l||(l=n[Uv]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function wt(n){n[ol]=!0}var Lv=new Set,Mv={};function di(n,l){Ki(n,l),Ki(n+"Capture",l)}function Ki(n,l){for(Mv[n]=l,n=0;n<l.length;n++)Lv.add(l[n])}var ez=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]*$"),Pv={},Zv={};function tz(n){return Gi.call(Zv,n)?!0:Gi.call(Pv,n)?!1:ez.test(n)?Zv[n]=!0:(Pv[n]=!0,!1)}function nu(n,l,u){if(tz(l))if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(l);return;case"boolean":var c=l.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(l);return}}n.setAttribute(l,""+u)}}function ru(n,l,u){if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttribute(l,""+u)}}function nr(n,l,u,c){if(c===null)n.removeAttribute(u);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(l,u,""+c)}}function gn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function qv(n){var l=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function nz(n,l,u){var c=Object.getOwnPropertyDescriptor(n.constructor.prototype,l);if(!n.hasOwnProperty(l)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,g=c.set;return Object.defineProperty(n,l,{configurable:!0,get:function(){return h.call(this)},set:function(_){u=""+_,g.call(this,_)}}),Object.defineProperty(n,l,{enumerable:c.enumerable}),{getValue:function(){return u},setValue:function(_){u=""+_},stopTracking:function(){n._valueTracker=null,delete n[l]}}}}function uf(n){if(!n._valueTracker){var l=qv(n)?"checked":"value";n._valueTracker=nz(n,l,""+n[l])}}function Bv(n){if(!n)return!1;var l=n._valueTracker;if(!l)return!0;var u=l.getValue(),c="";return n&&(c=qv(n)?n.checked?"true":"false":n.value),n=c,n!==u?(l.setValue(n),!0):!1}function iu(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var rz=/[\n"\\]/g;function vn(n){return n.replace(rz,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function sf(n,l,u,c,h,g,_,k){n.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.type=_:n.removeAttribute("type"),l!=null?_==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+gn(l)):n.value!==""+gn(l)&&(n.value=""+gn(l)):_!=="submit"&&_!=="reset"||n.removeAttribute("value"),l!=null?cf(n,_,gn(l)):u!=null?cf(n,_,gn(u)):c!=null&&n.removeAttribute("value"),h==null&&g!=null&&(n.defaultChecked=!!g),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.name=""+gn(k):n.removeAttribute("name")}function Fv(n,l,u,c,h,g,_,k){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),l!=null||u!=null){if(!(g!=="submit"&&g!=="reset"||l!=null)){uf(n);return}u=u!=null?""+gn(u):"",l=l!=null?""+gn(l):u,k||l===n.value||(n.value=l),n.defaultValue=l}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=k?n.checked:!!c,n.defaultChecked=!!c,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(n.name=_),uf(n)}function cf(n,l,u){l==="number"&&iu(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function Wi(n,l,u,c){if(n=n.options,l){l={};for(var h=0;h<u.length;h++)l["$"+u[h]]=!0;for(u=0;u<n.length;u++)h=l.hasOwnProperty("$"+n[u].value),n[u].selected!==h&&(n[u].selected=h),h&&c&&(n[u].defaultSelected=!0)}else{for(u=""+gn(u),l=null,h=0;h<n.length;h++){if(n[h].value===u){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}l!==null||n[h].disabled||(l=n[h])}l!==null&&(l.selected=!0)}}function Hv(n,l,u){if(l!=null&&(l=""+gn(l),l!==n.value&&(n.value=l),u==null)){n.defaultValue!==l&&(n.defaultValue=l);return}n.defaultValue=u!=null?""+gn(u):""}function Gv(n,l,u,c){if(l==null){if(c!=null){if(u!=null)throw Error(a(92));if(P(c)){if(1<c.length)throw Error(a(93));c=c[0]}u=c}u==null&&(u=""),l=u}u=gn(l),n.defaultValue=u,c=n.textContent,c===u&&c!==""&&c!==null&&(n.value=c),uf(n)}function ea(n,l){if(l){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=l;return}}n.textContent=l}var iz=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 Vv(n,l,u){var c=l.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?c?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="":c?n.setProperty(l,u):typeof u!="number"||u===0||iz.has(l)?l==="float"?n.cssFloat=u:n[l]=(""+u).trim():n[l]=u+"px"}function Yv(n,l,u){if(l!=null&&typeof l!="object")throw Error(a(62));if(n=n.style,u!=null){for(var c in u)!u.hasOwnProperty(c)||l!=null&&l.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var h in l)c=l[h],l.hasOwnProperty(h)&&u[h]!==c&&Vv(n,h,c)}else for(var g in l)l.hasOwnProperty(g)&&Vv(n,g,l[g])}function ff(n){if(n.indexOf("-")===-1)return!1;switch(n){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 az=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"]]),lz=/^[\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 au(n){return lz.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function rr(){}var df=null;function mf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ta=null,na=null;function Xv(n){var l=Qi(n);if(l&&(n=l.stateNode)){var u=n[Ht]||null;e:switch(n=l.stateNode,l.type){case"input":if(sf(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),l=u.name,u.type==="radio"&&l!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+vn(""+l)+'"][type="radio"]'),l=0;l<u.length;l++){var c=u[l];if(c!==n&&c.form===n.form){var h=c[Ht]||null;if(!h)throw Error(a(90));sf(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(l=0;l<u.length;l++)c=u[l],c.form===n.form&&Bv(c)}break e;case"textarea":Hv(n,u.value,u.defaultValue);break e;case"select":l=u.value,l!=null&&Wi(n,!!u.multiple,l,!1)}}}var hf=!1;function Qv(n,l,u){if(hf)return n(l,u);hf=!0;try{var c=n(l);return c}finally{if(hf=!1,(ta!==null||na!==null)&&(Gu(),ta&&(l=ta,n=na,na=ta=null,Xv(l),n)))for(l=0;l<n.length;l++)Xv(n[l])}}function sl(n,l){var u=n.stateNode;if(u===null)return null;var c=u[Ht]||null;if(c===null)return null;u=c[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(a(231,l,typeof u));return u}var ir=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pf=!1;if(ir)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){pf=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{pf=!1}var Rr=null,gf=null,lu=null;function Jv(){if(lu)return lu;var n,l=gf,u=l.length,c,h="value"in Rr?Rr.value:Rr.textContent,g=h.length;for(n=0;n<u&&l[n]===h[n];n++);var _=u-n;for(c=1;c<=_&&l[u-c]===h[g-c];c++);return lu=h.slice(n,1<c?1-c:void 0)}function ou(n){var l=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&l===13&&(n=13)):n=l,n===10&&(n=13),32<=n||n===13?n:0}function uu(){return!0}function Kv(){return!1}function Gt(n){function l(u,c,h,g,_){this._reactName=u,this._targetInst=h,this.type=c,this.nativeEvent=g,this.target=_,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(u=n[k],this[k]=u?u(g):g[k]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?uu:Kv,this.isPropagationStopped=Kv,this}return v(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=uu)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),l}var mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},su=Gt(mi),fl=v({},mi,{view:0,detail:0}),oz=Gt(fl),vf,yf,dl,cu=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==dl&&(dl&&n.type==="mousemove"?(vf=n.screenX-dl.screenX,yf=n.screenY-dl.screenY):yf=vf=0,dl=n),vf)},movementY:function(n){return"movementY"in n?n.movementY:yf}}),Wv=Gt(cu),uz=v({},cu,{dataTransfer:0}),sz=Gt(uz),cz=v({},fl,{relatedTarget:0}),bf=Gt(cz),fz=v({},mi,{animationName:0,elapsedTime:0,pseudoElement:0}),dz=Gt(fz),mz=v({},mi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),hz=Gt(mz),pz=v({},mi,{data:0}),ey=Gt(pz),gz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vz={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"},yz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bz(n){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(n):(n=yz[n])?!!l[n]:!1}function xf(){return bz}var xz=v({},fl,{key:function(n){if(n.key){var l=gz[n.key]||n.key;if(l!=="Unidentified")return l}return n.type==="keypress"?(n=ou(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?vz[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xf,charCode:function(n){return n.type==="keypress"?ou(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ou(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),_z=Gt(xz),Sz=v({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ty=Gt(Sz),kz=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xf}),wz=Gt(kz),$z=v({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ez=Gt($z),jz=v({},cu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Nz=Gt(jz),zz=v({},mi,{newState:0,oldState:0}),Oz=Gt(zz),Tz=[9,13,27,32],_f=ir&&"CompositionEvent"in window,ml=null;ir&&"documentMode"in document&&(ml=document.documentMode);var Az=ir&&"TextEvent"in window&&!ml,ny=ir&&(!_f||ml&&8<ml&&11>=ml),ry=" ",iy=!1;function ay(n,l){switch(n){case"keyup":return Tz.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ly(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ra=!1;function Cz(n,l){switch(n){case"compositionend":return ly(l);case"keypress":return l.which!==32?null:(iy=!0,ry);case"textInput":return n=l.data,n===ry&&iy?null:n;default:return null}}function Rz(n,l){if(ra)return n==="compositionend"||!_f&&ay(n,l)?(n=Jv(),lu=gf=Rr=null,ra=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return ny&&l.locale!=="ko"?null:l.data;default:return null}}var Dz={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 oy(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l==="input"?!!Dz[n.type]:l==="textarea"}function uy(n,l,u,c){ta?na?na.push(c):na=[c]:ta=c,l=Wu(l,"onChange"),0<l.length&&(u=new su("onChange","change",null,u,c),n.push({event:u,listeners:l}))}var hl=null,pl=null;function Iz(n){F0(n,0)}function fu(n){var l=ul(n);if(Bv(l))return n}function sy(n,l){if(n==="change")return l}var cy=!1;if(ir){var Sf;if(ir){var kf="oninput"in document;if(!kf){var fy=document.createElement("div");fy.setAttribute("oninput","return;"),kf=typeof fy.oninput=="function"}Sf=kf}else Sf=!1;cy=Sf&&(!document.documentMode||9<document.documentMode)}function dy(){hl&&(hl.detachEvent("onpropertychange",my),pl=hl=null)}function my(n){if(n.propertyName==="value"&&fu(pl)){var l=[];uy(l,pl,n,mf(n)),Qv(Iz,l)}}function Uz(n,l,u){n==="focusin"?(dy(),hl=l,pl=u,hl.attachEvent("onpropertychange",my)):n==="focusout"&&dy()}function Lz(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return fu(pl)}function Mz(n,l){if(n==="click")return fu(l)}function Pz(n,l){if(n==="input"||n==="change")return fu(l)}function Zz(n,l){return n===l&&(n!==0||1/n===1/l)||n!==n&&l!==l}var nn=typeof Object.is=="function"?Object.is:Zz;function gl(n,l){if(nn(n,l))return!0;if(typeof n!="object"||n===null||typeof l!="object"||l===null)return!1;var u=Object.keys(n),c=Object.keys(l);if(u.length!==c.length)return!1;for(c=0;c<u.length;c++){var h=u[c];if(!Gi.call(l,h)||!nn(n[h],l[h]))return!1}return!0}function hy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function py(n,l){var u=hy(n);n=0;for(var c;u;){if(u.nodeType===3){if(c=n+u.textContent.length,n<=l&&c>=l)return{node:u,offset:l-n};n=c}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=hy(u)}}function gy(n,l){return n&&l?n===l?!0:n&&n.nodeType===3?!1:l&&l.nodeType===3?gy(n,l.parentNode):"contains"in n?n.contains(l):n.compareDocumentPosition?!!(n.compareDocumentPosition(l)&16):!1:!1}function vy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var l=iu(n.document);l instanceof n.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)n=l.contentWindow;else break;l=iu(n.document)}return l}function wf(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l&&(l==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||l==="textarea"||n.contentEditable==="true")}var qz=ir&&"documentMode"in document&&11>=document.documentMode,ia=null,$f=null,vl=null,Ef=!1;function yy(n,l,u){var c=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Ef||ia==null||ia!==iu(c)||(c=ia,"selectionStart"in c&&wf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),vl&&gl(vl,c)||(vl=c,c=Wu($f,"onSelect"),0<c.length&&(l=new su("onSelect","select",null,l,u),n.push({event:l,listeners:c}),l.target=ia)))}function hi(n,l){var u={};return u[n.toLowerCase()]=l.toLowerCase(),u["Webkit"+n]="webkit"+l,u["Moz"+n]="moz"+l,u}var aa={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionrun:hi("Transition","TransitionRun"),transitionstart:hi("Transition","TransitionStart"),transitioncancel:hi("Transition","TransitionCancel"),transitionend:hi("Transition","TransitionEnd")},jf={},by={};ir&&(by=document.createElement("div").style,"AnimationEvent"in window||(delete aa.animationend.animation,delete aa.animationiteration.animation,delete aa.animationstart.animation),"TransitionEvent"in window||delete aa.transitionend.transition);function pi(n){if(jf[n])return jf[n];if(!aa[n])return n;var l=aa[n],u;for(u in l)if(l.hasOwnProperty(u)&&u in by)return jf[n]=l[u];return n}var xy=pi("animationend"),_y=pi("animationiteration"),Sy=pi("animationstart"),Bz=pi("transitionrun"),Fz=pi("transitionstart"),Hz=pi("transitioncancel"),ky=pi("transitionend"),wy=new Map,Nf="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(" ");Nf.push("scrollEnd");function Rn(n,l){wy.set(n,l),di(l,[n])}var du=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},yn=[],la=0,zf=0;function mu(){for(var n=la,l=zf=la=0;l<n;){var u=yn[l];yn[l++]=null;var c=yn[l];yn[l++]=null;var h=yn[l];yn[l++]=null;var g=yn[l];if(yn[l++]=null,c!==null&&h!==null){var _=c.pending;_===null?h.next=h:(h.next=_.next,_.next=h),c.pending=h}g!==0&&$y(u,h,g)}}function hu(n,l,u,c){yn[la++]=n,yn[la++]=l,yn[la++]=u,yn[la++]=c,zf|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Of(n,l,u,c){return hu(n,l,u,c),pu(n)}function gi(n,l){return hu(n,null,null,l),pu(n)}function $y(n,l,u){n.lanes|=u;var c=n.alternate;c!==null&&(c.lanes|=u);for(var h=!1,g=n.return;g!==null;)g.childLanes|=u,c=g.alternate,c!==null&&(c.childLanes|=u),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(h=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,h&&l!==null&&(h=31-Qe(u),n=g.hiddenUpdates,c=n[h],c===null?n[h]=[l]:c.push(l),l.lane=u|536870912),g):null}function pu(n){if(50<Ml)throw Ml=0,Md=null,Error(a(185));for(var l=n.return;l!==null;)n=l,l=n.return;return n.tag===3?n.stateNode:null}var oa={};function Gz(n,l,u,c){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(n,l,u,c){return new Gz(n,l,u,c)}function Tf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ar(n,l){var u=n.alternate;return u===null?(u=rn(n.tag,l,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=l,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,l=n.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function Ey(n,l){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=l,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,l=u.dependencies,n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),n}function gu(n,l,u,c,h,g){var _=0;if(c=n,typeof n=="function")Tf(n)&&(_=1);else if(typeof n=="string")_=JO(n,u,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case ie:return n=rn(31,u,l,h),n.elementType=ie,n.lanes=g,n;case w:return vi(u.children,h,g,l);case N:_=8,h|=24;break;case j:return n=rn(12,u,l,h|2),n.elementType=j,n.lanes=g,n;case X:return n=rn(13,u,l,h),n.elementType=X,n.lanes=g,n;case L:return n=rn(19,u,l,h),n.elementType=L,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:_=10;break e;case C:_=9;break e;case G:_=11;break e;case W:_=14;break e;case ne:_=16,c=null;break e}_=29,u=Error(a(130,n===null?"null":typeof n,"")),c=null}return l=rn(_,u,l,h),l.elementType=n,l.type=c,l.lanes=g,l}function vi(n,l,u,c){return n=rn(7,n,c,l),n.lanes=u,n}function Af(n,l,u){return n=rn(6,n,null,l),n.lanes=u,n}function jy(n){var l=rn(18,null,null,0);return l.stateNode=n,l}function Cf(n,l,u){return l=rn(4,n.children!==null?n.children:[],n.key,l),l.lanes=u,l.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},l}var Ny=new WeakMap;function bn(n,l){if(typeof n=="object"&&n!==null){var u=Ny.get(n);return u!==void 0?u:(l={value:n,source:l,stack:Jo(l)},Ny.set(n,l),l)}return{value:n,source:l,stack:Jo(l)}}var ua=[],sa=0,vu=null,yl=0,xn=[],_n=0,Dr=null,Bn=1,Fn="";function lr(n,l){ua[sa++]=yl,ua[sa++]=vu,vu=n,yl=l}function zy(n,l,u){xn[_n++]=Bn,xn[_n++]=Fn,xn[_n++]=Dr,Dr=n;var c=Bn;n=Fn;var h=32-Qe(c)-1;c&=~(1<<h),u+=1;var g=32-Qe(l)+h;if(30<g){var _=h-h%5;g=(c&(1<<_)-1).toString(32),c>>=_,h-=_,Bn=1<<32-Qe(l)+h|u<<h|c,Fn=g+n}else Bn=1<<g|u<<h|c,Fn=n}function Rf(n){n.return!==null&&(lr(n,1),zy(n,1,0))}function Df(n){for(;n===vu;)vu=ua[--sa],ua[sa]=null,yl=ua[--sa],ua[sa]=null;for(;n===Dr;)Dr=xn[--_n],xn[_n]=null,Fn=xn[--_n],xn[_n]=null,Bn=xn[--_n],xn[_n]=null}function Oy(n,l){xn[_n++]=Bn,xn[_n++]=Fn,xn[_n++]=Dr,Bn=l.id,Fn=l.overflow,Dr=n}var Nt=null,rt=null,Le=!1,Ir=null,Sn=!1,If=Error(a(519));function Ur(n){var l=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(bn(l,n)),If}function Ty(n){var l=n.stateNode,u=n.type,c=n.memoizedProps;switch(l[jt]=n,l[Ht]=c,u){case"dialog":Ae("cancel",l),Ae("close",l);break;case"iframe":case"object":case"embed":Ae("load",l);break;case"video":case"audio":for(u=0;u<Zl.length;u++)Ae(Zl[u],l);break;case"source":Ae("error",l);break;case"img":case"image":case"link":Ae("error",l),Ae("load",l);break;case"details":Ae("toggle",l);break;case"input":Ae("invalid",l),Fv(l,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ae("invalid",l);break;case"textarea":Ae("invalid",l),Gv(l,c.value,c.defaultValue,c.children)}u=c.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||l.textContent===""+u||c.suppressHydrationWarning===!0||Y0(l.textContent,u)?(c.popover!=null&&(Ae("beforetoggle",l),Ae("toggle",l)),c.onScroll!=null&&Ae("scroll",l),c.onScrollEnd!=null&&Ae("scrollend",l),c.onClick!=null&&(l.onclick=rr),l=!0):l=!1,l||Ur(n,!0)}function Ay(n){for(Nt=n.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:Nt=Nt.return}}function ca(n){if(n!==Nt)return!1;if(!Le)return Ay(n),Le=!0,!1;var l=n.tag,u;if((u=l!==3&&l!==27)&&((u=l===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||em(n.type,n.memoizedProps)),u=!u),u&&rt&&Ur(n),Ay(n),l===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));rt=rx(n)}else if(l===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));rt=rx(n)}else l===27?(l=rt,Jr(n.type)?(n=am,am=null,rt=n):rt=l):rt=Nt?wn(n.stateNode.nextSibling):null;return!0}function yi(){rt=Nt=null,Le=!1}function Uf(){var n=Ir;return n!==null&&(Qt===null?Qt=n:Qt.push.apply(Qt,n),Ir=null),n}function bl(n){Ir===null?Ir=[n]:Ir.push(n)}var Lf=z(null),bi=null,or=null;function Lr(n,l,u){$(Lf,l._currentValue),l._currentValue=u}function ur(n){n._currentValue=Lf.current,Z(Lf)}function Mf(n,l,u){for(;n!==null;){var c=n.alternate;if((n.childLanes&l)!==l?(n.childLanes|=l,c!==null&&(c.childLanes|=l)):c!==null&&(c.childLanes&l)!==l&&(c.childLanes|=l),n===u)break;n=n.return}}function Pf(n,l,u,c){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var g=h.dependencies;if(g!==null){var _=h.child;g=g.firstContext;e:for(;g!==null;){var k=g;g=h;for(var T=0;T<l.length;T++)if(k.context===l[T]){g.lanes|=u,k=g.alternate,k!==null&&(k.lanes|=u),Mf(g.return,u,n),c||(_=null);break e}g=k.next}}else if(h.tag===18){if(_=h.return,_===null)throw Error(a(341));_.lanes|=u,g=_.alternate,g!==null&&(g.lanes|=u),Mf(_,u,n),_=null}else _=h.child;if(_!==null)_.return=h;else for(_=h;_!==null;){if(_===n){_=null;break}if(h=_.sibling,h!==null){h.return=_.return,_=h;break}_=_.return}h=_}}function fa(n,l,u,c){n=null;for(var h=l,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var _=h.alternate;if(_===null)throw Error(a(387));if(_=_.memoizedProps,_!==null){var k=h.type;nn(h.pendingProps.value,_.value)||(n!==null?n.push(k):n=[k])}}else if(h===De.current){if(_=h.alternate,_===null)throw Error(a(387));_.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Gl):n=[Gl])}h=h.return}n!==null&&Pf(l,n,u,c),l.flags|=262144}function yu(n){for(n=n.firstContext;n!==null;){if(!nn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function xi(n){bi=n,or=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function zt(n){return Cy(bi,n)}function bu(n,l){return bi===null&&xi(n),Cy(n,l)}function Cy(n,l){var u=l._currentValue;if(l={context:l,memoizedValue:u,next:null},or===null){if(n===null)throw Error(a(308));or=l,n.dependencies={lanes:0,firstContext:l},n.flags|=524288}else or=or.next=l;return u}var Vz=typeof AbortController<"u"?AbortController:function(){var n=[],l=this.signal={aborted:!1,addEventListener:function(u,c){n.push(c)}};this.abort=function(){l.aborted=!0,n.forEach(function(u){return u()})}},Yz=e.unstable_scheduleCallback,Xz=e.unstable_NormalPriority,pt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zf(){return{controller:new Vz,data:new Map,refCount:0}}function xl(n){n.refCount--,n.refCount===0&&Yz(Xz,function(){n.controller.abort()})}var _l=null,qf=0,da=0,ma=null;function Qz(n,l){if(_l===null){var u=_l=[];qf=0,da=Hd(),ma={status:"pending",value:void 0,then:function(c){u.push(c)}}}return qf++,l.then(Ry,Ry),l}function Ry(){if(--qf===0&&_l!==null){ma!==null&&(ma.status="fulfilled");var n=_l;_l=null,da=0,ma=null;for(var l=0;l<n.length;l++)(0,n[l])()}}function Jz(n,l){var u=[],c={status:"pending",value:null,reason:null,then:function(h){u.push(h)}};return n.then(function(){c.status="fulfilled",c.value=l;for(var h=0;h<u.length;h++)(0,u[h])(l)},function(h){for(c.status="rejected",c.reason=h,h=0;h<u.length;h++)(0,u[h])(void 0)}),c}var Dy=R.S;R.S=function(n,l){y0=Ut(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Qz(n,l),Dy!==null&&Dy(n,l)};var _i=z(null);function Bf(){var n=_i.current;return n!==null?n:Je.pooledCache}function xu(n,l){l===null?$(_i,_i.current):$(_i,l.pool)}function Iy(){var n=Bf();return n===null?null:{parent:pt._currentValue,pool:n}}var ha=Error(a(460)),Ff=Error(a(474)),_u=Error(a(542)),Su={then:function(){}};function Uy(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Ly(n,l,u){switch(u=n[u],u===void 0?n.push(l):u!==l&&(l.then(rr,rr),l=u),l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,Py(n),n;default:if(typeof l.status=="string")l.then(rr,rr);else{if(n=Je,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=l,n.status="pending",n.then(function(c){if(l.status==="pending"){var h=l;h.status="fulfilled",h.value=c}},function(c){if(l.status==="pending"){var h=l;h.status="rejected",h.reason=c}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,Py(n),n}throw ki=l,ha}}function Si(n){try{var l=n._init;return l(n._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(ki=u,ha):u}}var ki=null;function My(){if(ki===null)throw Error(a(459));var n=ki;return ki=null,n}function Py(n){if(n===ha||n===_u)throw Error(a(483))}var pa=null,Sl=0;function ku(n){var l=Sl;return Sl+=1,pa===null&&(pa=[]),Ly(pa,n,l)}function kl(n,l){l=l.props.ref,n.ref=l!==void 0?l:null}function wu(n,l){throw l.$$typeof===b?Error(a(525)):(n=Object.prototype.toString.call(l),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":n)))}function Zy(n){function l(I,D){if(n){var q=I.deletions;q===null?(I.deletions=[D],I.flags|=16):q.push(D)}}function u(I,D){if(!n)return null;for(;D!==null;)l(I,D),D=D.sibling;return null}function c(I){for(var D=new Map;I!==null;)I.key!==null?D.set(I.key,I):D.set(I.index,I),I=I.sibling;return D}function h(I,D){return I=ar(I,D),I.index=0,I.sibling=null,I}function g(I,D,q){return I.index=q,n?(q=I.alternate,q!==null?(q=q.index,q<D?(I.flags|=67108866,D):q):(I.flags|=67108866,D)):(I.flags|=1048576,D)}function _(I){return n&&I.alternate===null&&(I.flags|=67108866),I}function k(I,D,q,K){return D===null||D.tag!==6?(D=Af(q,I.mode,K),D.return=I,D):(D=h(D,q),D.return=I,D)}function T(I,D,q,K){var ve=q.type;return ve===w?Q(I,D,q.props.children,K,q.key):D!==null&&(D.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ne&&Si(ve)===D.type)?(D=h(D,q.props),kl(D,q),D.return=I,D):(D=gu(q.type,q.key,q.props,null,I.mode,K),kl(D,q),D.return=I,D)}function B(I,D,q,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==q.containerInfo||D.stateNode.implementation!==q.implementation?(D=Cf(q,I.mode,K),D.return=I,D):(D=h(D,q.children||[]),D.return=I,D)}function Q(I,D,q,K,ve){return D===null||D.tag!==7?(D=vi(q,I.mode,K,ve),D.return=I,D):(D=h(D,q),D.return=I,D)}function ee(I,D,q){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Af(""+D,I.mode,q),D.return=I,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return q=gu(D.type,D.key,D.props,null,I.mode,q),kl(q,D),q.return=I,q;case S:return D=Cf(D,I.mode,q),D.return=I,D;case ne:return D=Si(D),ee(I,D,q)}if(P(D)||ce(D))return D=vi(D,I.mode,q,null),D.return=I,D;if(typeof D.then=="function")return ee(I,ku(D),q);if(D.$$typeof===O)return ee(I,bu(I,D),q);wu(I,D)}return null}function H(I,D,q,K){var ve=D!==null?D.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ve!==null?null:k(I,D,""+q,K);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return q.key===ve?T(I,D,q,K):null;case S:return q.key===ve?B(I,D,q,K):null;case ne:return q=Si(q),H(I,D,q,K)}if(P(q)||ce(q))return ve!==null?null:Q(I,D,q,K,null);if(typeof q.then=="function")return H(I,D,ku(q),K);if(q.$$typeof===O)return H(I,D,bu(I,q),K);wu(I,q)}return null}function V(I,D,q,K,ve){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return I=I.get(q)||null,k(D,I,""+K,ve);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return I=I.get(K.key===null?q:K.key)||null,T(D,I,K,ve);case S:return I=I.get(K.key===null?q:K.key)||null,B(D,I,K,ve);case ne:return K=Si(K),V(I,D,q,K,ve)}if(P(K)||ce(K))return I=I.get(q)||null,Q(D,I,K,ve,null);if(typeof K.then=="function")return V(I,D,q,ku(K),ve);if(K.$$typeof===O)return V(I,D,q,bu(D,K),ve);wu(D,K)}return null}function he(I,D,q,K){for(var ve=null,Pe=null,ge=D,je=D=0,Ue=null;ge!==null&&je<q.length;je++){ge.index>je?(Ue=ge,ge=null):Ue=ge.sibling;var Ze=H(I,ge,q[je],K);if(Ze===null){ge===null&&(ge=Ue);break}n&&ge&&Ze.alternate===null&&l(I,ge),D=g(Ze,D,je),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze,ge=Ue}if(je===q.length)return u(I,ge),Le&&lr(I,je),ve;if(ge===null){for(;je<q.length;je++)ge=ee(I,q[je],K),ge!==null&&(D=g(ge,D,je),Pe===null?ve=ge:Pe.sibling=ge,Pe=ge);return Le&&lr(I,je),ve}for(ge=c(ge);je<q.length;je++)Ue=V(ge,I,je,q[je],K),Ue!==null&&(n&&Ue.alternate!==null&&ge.delete(Ue.key===null?je:Ue.key),D=g(Ue,D,je),Pe===null?ve=Ue:Pe.sibling=Ue,Pe=Ue);return n&&ge.forEach(function(ni){return l(I,ni)}),Le&&lr(I,je),ve}function be(I,D,q,K){if(q==null)throw Error(a(151));for(var ve=null,Pe=null,ge=D,je=D=0,Ue=null,Ze=q.next();ge!==null&&!Ze.done;je++,Ze=q.next()){ge.index>je?(Ue=ge,ge=null):Ue=ge.sibling;var ni=H(I,ge,Ze.value,K);if(ni===null){ge===null&&(ge=Ue);break}n&&ge&&ni.alternate===null&&l(I,ge),D=g(ni,D,je),Pe===null?ve=ni:Pe.sibling=ni,Pe=ni,ge=Ue}if(Ze.done)return u(I,ge),Le&&lr(I,je),ve;if(ge===null){for(;!Ze.done;je++,Ze=q.next())Ze=ee(I,Ze.value,K),Ze!==null&&(D=g(Ze,D,je),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return Le&&lr(I,je),ve}for(ge=c(ge);!Ze.done;je++,Ze=q.next())Ze=V(ge,I,je,Ze.value,K),Ze!==null&&(n&&Ze.alternate!==null&&ge.delete(Ze.key===null?je:Ze.key),D=g(Ze,D,je),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return n&&ge.forEach(function(u2){return l(I,u2)}),Le&&lr(I,je),ve}function Xe(I,D,q,K){if(typeof q=="object"&&q!==null&&q.type===w&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case x:e:{for(var ve=q.key;D!==null;){if(D.key===ve){if(ve=q.type,ve===w){if(D.tag===7){u(I,D.sibling),K=h(D,q.props.children),K.return=I,I=K;break e}}else if(D.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ne&&Si(ve)===D.type){u(I,D.sibling),K=h(D,q.props),kl(K,q),K.return=I,I=K;break e}u(I,D);break}else l(I,D);D=D.sibling}q.type===w?(K=vi(q.props.children,I.mode,K,q.key),K.return=I,I=K):(K=gu(q.type,q.key,q.props,null,I.mode,K),kl(K,q),K.return=I,I=K)}return _(I);case S:e:{for(ve=q.key;D!==null;){if(D.key===ve)if(D.tag===4&&D.stateNode.containerInfo===q.containerInfo&&D.stateNode.implementation===q.implementation){u(I,D.sibling),K=h(D,q.children||[]),K.return=I,I=K;break e}else{u(I,D);break}else l(I,D);D=D.sibling}K=Cf(q,I.mode,K),K.return=I,I=K}return _(I);case ne:return q=Si(q),Xe(I,D,q,K)}if(P(q))return he(I,D,q,K);if(ce(q)){if(ve=ce(q),typeof ve!="function")throw Error(a(150));return q=ve.call(q),be(I,D,q,K)}if(typeof q.then=="function")return Xe(I,D,ku(q),K);if(q.$$typeof===O)return Xe(I,D,bu(I,q),K);wu(I,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,D!==null&&D.tag===6?(u(I,D.sibling),K=h(D,q),K.return=I,I=K):(u(I,D),K=Af(q,I.mode,K),K.return=I,I=K),_(I)):u(I,D)}return function(I,D,q,K){try{Sl=0;var ve=Xe(I,D,q,K);return pa=null,ve}catch(ge){if(ge===ha||ge===_u)throw ge;var Pe=rn(29,ge,null,I.mode);return Pe.lanes=K,Pe.return=I,Pe}}}var wi=Zy(!0),qy=Zy(!1),Mr=!1;function Hf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gf(n,l){n=n.updateQueue,l.updateQueue===n&&(l.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Pr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Zr(n,l,u){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(qe&2)!==0){var h=c.pending;return h===null?l.next=l:(l.next=h.next,h.next=l),c.pending=l,l=pu(n),$y(n,null,u),l}return hu(n,c,l,u),pu(n)}function wl(n,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194048)!==0)){var c=l.lanes;c&=n.pendingLanes,u|=c,l.lanes=u,Cv(n,u)}}function Vf(n,l){var u=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,u===c)){var h=null,g=null;if(u=u.firstBaseUpdate,u!==null){do{var _={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};g===null?h=g=_:g=g.next=_,u=u.next}while(u!==null);g===null?h=g=l:g=g.next=l}else h=g=l;u={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=l:n.next=l,u.lastBaseUpdate=l}var Yf=!1;function $l(){if(Yf){var n=ma;if(n!==null)throw n}}function El(n,l,u,c){Yf=!1;var h=n.updateQueue;Mr=!1;var g=h.firstBaseUpdate,_=h.lastBaseUpdate,k=h.shared.pending;if(k!==null){h.shared.pending=null;var T=k,B=T.next;T.next=null,_===null?g=B:_.next=B,_=T;var Q=n.alternate;Q!==null&&(Q=Q.updateQueue,k=Q.lastBaseUpdate,k!==_&&(k===null?Q.firstBaseUpdate=B:k.next=B,Q.lastBaseUpdate=T))}if(g!==null){var ee=h.baseState;_=0,Q=B=T=null,k=g;do{var H=k.lane&-536870913,V=H!==k.lane;if(V?(Ie&H)===H:(c&H)===H){H!==0&&H===da&&(Yf=!0),Q!==null&&(Q=Q.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var he=n,be=k;H=l;var Xe=u;switch(be.tag){case 1:if(he=be.payload,typeof he=="function"){ee=he.call(Xe,ee,H);break e}ee=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=be.payload,H=typeof he=="function"?he.call(Xe,ee,H):he,H==null)break e;ee=v({},ee,H);break e;case 2:Mr=!0}}H=k.callback,H!==null&&(n.flags|=64,V&&(n.flags|=8192),V=h.callbacks,V===null?h.callbacks=[H]:V.push(H))}else V={lane:H,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Q===null?(B=Q=V,T=ee):Q=Q.next=V,_|=H;if(k=k.next,k===null){if(k=h.shared.pending,k===null)break;V=k,k=V.next,V.next=null,h.lastBaseUpdate=V,h.shared.pending=null}}while(!0);Q===null&&(T=ee),h.baseState=T,h.firstBaseUpdate=B,h.lastBaseUpdate=Q,g===null&&(h.shared.lanes=0),Gr|=_,n.lanes=_,n.memoizedState=ee}}function By(n,l){if(typeof n!="function")throw Error(a(191,n));n.call(l)}function Fy(n,l){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)By(u[n],l)}var ga=z(null),$u=z(0);function Hy(n,l){n=vr,$($u,n),$(ga,l),vr=n|l.baseLanes}function Xf(){$($u,vr),$(ga,ga.current)}function Qf(){vr=$u.current,Z(ga),Z($u)}var an=z(null),kn=null;function qr(n){var l=n.alternate;$(dt,dt.current&1),$(an,n),kn===null&&(l===null||ga.current!==null||l.memoizedState!==null)&&(kn=n)}function Jf(n){$(dt,dt.current),$(an,n),kn===null&&(kn=n)}function Gy(n){n.tag===22?($(dt,dt.current),$(an,n),kn===null&&(kn=n)):Br()}function Br(){$(dt,dt.current),$(an,an.current)}function ln(n){Z(an),kn===n&&(kn=null),Z(dt)}var dt=z(0);function Eu(n){for(var l=n;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||rm(u)||im(u)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var sr=0,$e=null,Ve=null,gt=null,ju=!1,va=!1,$i=!1,Nu=0,jl=0,ya=null,Kz=0;function ct(){throw Error(a(321))}function Kf(n,l){if(l===null)return!1;for(var u=0;u<l.length&&u<n.length;u++)if(!nn(n[u],l[u]))return!1;return!0}function Wf(n,l,u,c,h,g){return sr=g,$e=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,R.H=n===null||n.memoizedState===null?zb:hd,$i=!1,g=u(c,h),$i=!1,va&&(g=Yy(l,u,c,h)),Vy(n),g}function Vy(n){R.H=Ol;var l=Ve!==null&&Ve.next!==null;if(sr=0,gt=Ve=$e=null,ju=!1,jl=0,ya=null,l)throw Error(a(300));n===null||vt||(n=n.dependencies,n!==null&&yu(n)&&(vt=!0))}function Yy(n,l,u,c){$e=n;var h=0;do{if(va&&(ya=null),jl=0,va=!1,25<=h)throw Error(a(301));if(h+=1,gt=Ve=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}R.H=Ob,g=l(u,c)}while(va);return g}function Wz(){var n=R.H,l=n.useState()[0];return l=typeof l.then=="function"?Nl(l):l,n=n.useState()[0],(Ve!==null?Ve.memoizedState:null)!==n&&($e.flags|=1024),l}function ed(){var n=Nu!==0;return Nu=0,n}function td(n,l,u){l.updateQueue=n.updateQueue,l.flags&=-2053,n.lanes&=~u}function nd(n){if(ju){for(n=n.memoizedState;n!==null;){var l=n.queue;l!==null&&(l.pending=null),n=n.next}ju=!1}sr=0,gt=Ve=$e=null,va=!1,jl=Nu=0,ya=null}function Mt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?$e.memoizedState=gt=n:gt=gt.next=n,gt}function mt(){if(Ve===null){var n=$e.alternate;n=n!==null?n.memoizedState:null}else n=Ve.next;var l=gt===null?$e.memoizedState:gt.next;if(l!==null)gt=l,Ve=n;else{if(n===null)throw $e.alternate===null?Error(a(467)):Error(a(310));Ve=n,n={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},gt===null?$e.memoizedState=gt=n:gt=gt.next=n}return gt}function zu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nl(n){var l=jl;return jl+=1,ya===null&&(ya=[]),n=Ly(ya,n,l),l=$e,(gt===null?l.memoizedState:gt.next)===null&&(l=l.alternate,R.H=l===null||l.memoizedState===null?zb:hd),n}function Ou(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Nl(n);if(n.$$typeof===O)return zt(n)}throw Error(a(438,String(n)))}function rd(n){var l=null,u=$e.updateQueue;if(u!==null&&(l=u.memoCache),l==null){var c=$e.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(l={data:c.data.map(function(h){return h.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),u===null&&(u=zu(),$e.updateQueue=u),u.memoCache=l,u=l.data[l.index],u===void 0)for(u=l.data[l.index]=Array(n),c=0;c<n;c++)u[c]=U;return l.index++,u}function cr(n,l){return typeof l=="function"?l(n):l}function Tu(n){var l=mt();return id(l,Ve,n)}function id(n,l,u){var c=n.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=u;var h=n.baseQueue,g=c.pending;if(g!==null){if(h!==null){var _=h.next;h.next=g.next,g.next=_}l.baseQueue=h=g,c.pending=null}if(g=n.baseState,h===null)n.memoizedState=g;else{l=h.next;var k=_=null,T=null,B=l,Q=!1;do{var ee=B.lane&-536870913;if(ee!==B.lane?(Ie&ee)===ee:(sr&ee)===ee){var H=B.revertLane;if(H===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),ee===da&&(Q=!0);else if((sr&H)===H){B=B.next,H===da&&(Q=!0);continue}else ee={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(k=T=ee,_=g):T=T.next=ee,$e.lanes|=H,Gr|=H;ee=B.action,$i&&u(g,ee),g=B.hasEagerState?B.eagerState:u(g,ee)}else H={lane:ee,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(k=T=H,_=g):T=T.next=H,$e.lanes|=ee,Gr|=ee;B=B.next}while(B!==null&&B!==l);if(T===null?_=g:T.next=k,!nn(g,n.memoizedState)&&(vt=!0,Q&&(u=ma,u!==null)))throw u;n.memoizedState=g,n.baseState=_,n.baseQueue=T,c.lastRenderedState=g}return h===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function ad(n){var l=mt(),u=l.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=n;var c=u.dispatch,h=u.pending,g=l.memoizedState;if(h!==null){u.pending=null;var _=h=h.next;do g=n(g,_.action),_=_.next;while(_!==h);nn(g,l.memoizedState)||(vt=!0),l.memoizedState=g,l.baseQueue===null&&(l.baseState=g),u.lastRenderedState=g}return[g,c]}function Xy(n,l,u){var c=$e,h=mt(),g=Le;if(g){if(u===void 0)throw Error(a(407));u=u()}else u=l();var _=!nn((Ve||h).memoizedState,u);if(_&&(h.memoizedState=u,vt=!0),h=h.queue,ud(Ky.bind(null,c,h,n),[n]),h.getSnapshot!==l||_||gt!==null&&gt.memoizedState.tag&1){if(c.flags|=2048,ba(9,{destroy:void 0},Jy.bind(null,c,h,u,l),null),Je===null)throw Error(a(349));g||(sr&127)!==0||Qy(c,l,u)}return u}function Qy(n,l,u){n.flags|=16384,n={getSnapshot:l,value:u},l=$e.updateQueue,l===null?(l=zu(),$e.updateQueue=l,l.stores=[n]):(u=l.stores,u===null?l.stores=[n]:u.push(n))}function Jy(n,l,u,c){l.value=u,l.getSnapshot=c,Wy(l)&&eb(n)}function Ky(n,l,u){return u(function(){Wy(l)&&eb(n)})}function Wy(n){var l=n.getSnapshot;n=n.value;try{var u=l();return!nn(n,u)}catch{return!0}}function eb(n){var l=gi(n,2);l!==null&&Jt(l,n,2)}function ld(n){var l=Mt();if(typeof n=="function"){var u=n;if(n=u(),$i){Ft(!0);try{u()}finally{Ft(!1)}}}return l.memoizedState=l.baseState=n,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:n},l}function tb(n,l,u,c){return n.baseState=u,id(n,Ve,typeof c=="function"?c:cr)}function eO(n,l,u,c,h){if(Ru(n))throw Error(a(485));if(n=l.action,n!==null){var g={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){g.listeners.push(_)}};R.T!==null?u(!0):g.isTransition=!1,c(g),u=l.pending,u===null?(g.next=l.pending=g,nb(l,g)):(g.next=u.next,l.pending=u.next=g)}}function nb(n,l){var u=l.action,c=l.payload,h=n.state;if(l.isTransition){var g=R.T,_={};R.T=_;try{var k=u(h,c),T=R.S;T!==null&&T(_,k),rb(n,l,k)}catch(B){od(n,l,B)}finally{g!==null&&_.types!==null&&(g.types=_.types),R.T=g}}else try{g=u(h,c),rb(n,l,g)}catch(B){od(n,l,B)}}function rb(n,l,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(c){ib(n,l,c)},function(c){return od(n,l,c)}):ib(n,l,u)}function ib(n,l,u){l.status="fulfilled",l.value=u,ab(l),n.state=u,l=n.pending,l!==null&&(u=l.next,u===l?n.pending=null:(u=u.next,l.next=u,nb(n,u)))}function od(n,l,u){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do l.status="rejected",l.reason=u,ab(l),l=l.next;while(l!==c)}n.action=null}function ab(n){n=n.listeners;for(var l=0;l<n.length;l++)(0,n[l])()}function lb(n,l){return l}function ob(n,l){if(Le){var u=Je.formState;if(u!==null){e:{var c=$e;if(Le){if(rt){t:{for(var h=rt,g=Sn;h.nodeType!==8;){if(!g){h=null;break t}if(h=wn(h.nextSibling),h===null){h=null;break t}}g=h.data,h=g==="F!"||g==="F"?h:null}if(h){rt=wn(h.nextSibling),c=h.data==="F!";break e}}Ur(c)}c=!1}c&&(l=u[0])}}return u=Mt(),u.memoizedState=u.baseState=l,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lb,lastRenderedState:l},u.queue=c,u=Eb.bind(null,$e,c),c.dispatch=u,c=ld(!1),g=md.bind(null,$e,!1,c.queue),c=Mt(),h={state:l,dispatch:null,action:n,pending:null},c.queue=h,u=eO.bind(null,$e,h,g,u),h.dispatch=u,c.memoizedState=n,[l,u,!1]}function ub(n){var l=mt();return sb(l,Ve,n)}function sb(n,l,u){if(l=id(n,l,lb)[0],n=Tu(cr)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var c=Nl(l)}catch(_){throw _===ha?_u:_}else c=l;l=mt();var h=l.queue,g=h.dispatch;return u!==l.memoizedState&&($e.flags|=2048,ba(9,{destroy:void 0},tO.bind(null,h,u),null)),[c,g,n]}function tO(n,l){n.action=l}function cb(n){var l=mt(),u=Ve;if(u!==null)return sb(l,u,n);mt(),l=l.memoizedState,u=mt();var c=u.queue.dispatch;return u.memoizedState=n,[l,c,!1]}function ba(n,l,u,c){return n={tag:n,create:u,deps:c,inst:l,next:null},l=$e.updateQueue,l===null&&(l=zu(),$e.updateQueue=l),u=l.lastEffect,u===null?l.lastEffect=n.next=n:(c=u.next,u.next=n,n.next=c,l.lastEffect=n),n}function fb(){return mt().memoizedState}function Au(n,l,u,c){var h=Mt();$e.flags|=n,h.memoizedState=ba(1|l,{destroy:void 0},u,c===void 0?null:c)}function Cu(n,l,u,c){var h=mt();c=c===void 0?null:c;var g=h.memoizedState.inst;Ve!==null&&c!==null&&Kf(c,Ve.memoizedState.deps)?h.memoizedState=ba(l,g,u,c):($e.flags|=n,h.memoizedState=ba(1|l,g,u,c))}function db(n,l){Au(8390656,8,n,l)}function ud(n,l){Cu(2048,8,n,l)}function nO(n){$e.flags|=4;var l=$e.updateQueue;if(l===null)l=zu(),$e.updateQueue=l,l.events=[n];else{var u=l.events;u===null?l.events=[n]:u.push(n)}}function mb(n){var l=mt().memoizedState;return nO({ref:l,nextImpl:n}),function(){if((qe&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}function hb(n,l){return Cu(4,2,n,l)}function pb(n,l){return Cu(4,4,n,l)}function gb(n,l){if(typeof l=="function"){n=n();var u=l(n);return function(){typeof u=="function"?u():l(null)}}if(l!=null)return n=n(),l.current=n,function(){l.current=null}}function vb(n,l,u){u=u!=null?u.concat([n]):null,Cu(4,4,gb.bind(null,l,n),u)}function sd(){}function yb(n,l){var u=mt();l=l===void 0?null:l;var c=u.memoizedState;return l!==null&&Kf(l,c[1])?c[0]:(u.memoizedState=[n,l],n)}function bb(n,l){var u=mt();l=l===void 0?null:l;var c=u.memoizedState;if(l!==null&&Kf(l,c[1]))return c[0];if(c=n(),$i){Ft(!0);try{n()}finally{Ft(!1)}}return u.memoizedState=[c,l],c}function cd(n,l,u){return u===void 0||(sr&1073741824)!==0&&(Ie&261930)===0?n.memoizedState=l:(n.memoizedState=u,n=x0(),$e.lanes|=n,Gr|=n,u)}function xb(n,l,u,c){return nn(u,l)?u:ga.current!==null?(n=cd(n,u,c),nn(n,l)||(vt=!0),n):(sr&42)===0||(sr&1073741824)!==0&&(Ie&261930)===0?(vt=!0,n.memoizedState=u):(n=x0(),$e.lanes|=n,Gr|=n,l)}function _b(n,l,u,c,h){var g=F.p;F.p=g!==0&&8>g?g:8;var _=R.T,k={};R.T=k,md(n,!1,l,u);try{var T=h(),B=R.S;if(B!==null&&B(k,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Q=Jz(T,c);zl(n,l,Q,sn(n))}else zl(n,l,c,sn(n))}catch(ee){zl(n,l,{then:function(){},status:"rejected",reason:ee},sn())}finally{F.p=g,_!==null&&k.types!==null&&(_.types=k.types),R.T=_}}function rO(){}function fd(n,l,u,c){if(n.tag!==5)throw Error(a(476));var h=Sb(n).queue;_b(n,h,l,te,u===null?rO:function(){return kb(n),u(c)})}function Sb(n){var l=n.memoizedState;if(l!==null)return l;l={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:te},next:null};var u={};return l.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:u},next:null},n.memoizedState=l,n=n.alternate,n!==null&&(n.memoizedState=l),l}function kb(n){var l=Sb(n);l.next===null&&(l=n.alternate.memoizedState),zl(n,l.next.queue,{},sn())}function dd(){return zt(Gl)}function wb(){return mt().memoizedState}function $b(){return mt().memoizedState}function iO(n){for(var l=n.return;l!==null;){switch(l.tag){case 24:case 3:var u=sn();n=Pr(u);var c=Zr(l,n,u);c!==null&&(Jt(c,l,u),wl(c,l,u)),l={cache:Zf()},n.payload=l;return}l=l.return}}function aO(n,l,u){var c=sn();u={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ru(n)?jb(l,u):(u=Of(n,l,u,c),u!==null&&(Jt(u,n,c),Nb(u,l,c)))}function Eb(n,l,u){var c=sn();zl(n,l,u,c)}function zl(n,l,u,c){var h={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Ru(n))jb(l,h);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=l.lastRenderedReducer,g!==null))try{var _=l.lastRenderedState,k=g(_,u);if(h.hasEagerState=!0,h.eagerState=k,nn(k,_))return hu(n,l,h,0),Je===null&&mu(),!1}catch{}if(u=Of(n,l,h,c),u!==null)return Jt(u,n,c),Nb(u,l,c),!0}return!1}function md(n,l,u,c){if(c={lane:2,revertLane:Hd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Ru(n)){if(l)throw Error(a(479))}else l=Of(n,u,c,2),l!==null&&Jt(l,n,2)}function Ru(n){var l=n.alternate;return n===$e||l!==null&&l===$e}function jb(n,l){va=ju=!0;var u=n.pending;u===null?l.next=l:(l.next=u.next,u.next=l),n.pending=l}function Nb(n,l,u){if((u&4194048)!==0){var c=l.lanes;c&=n.pendingLanes,u|=c,l.lanes=u,Cv(n,u)}}var Ol={readContext:zt,use:Ou,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};Ol.useEffectEvent=ct;var zb={readContext:zt,use:Ou,useCallback:function(n,l){return Mt().memoizedState=[n,l===void 0?null:l],n},useContext:zt,useEffect:db,useImperativeHandle:function(n,l,u){u=u!=null?u.concat([n]):null,Au(4194308,4,gb.bind(null,l,n),u)},useLayoutEffect:function(n,l){return Au(4194308,4,n,l)},useInsertionEffect:function(n,l){Au(4,2,n,l)},useMemo:function(n,l){var u=Mt();l=l===void 0?null:l;var c=n();if($i){Ft(!0);try{n()}finally{Ft(!1)}}return u.memoizedState=[c,l],c},useReducer:function(n,l,u){var c=Mt();if(u!==void 0){var h=u(l);if($i){Ft(!0);try{u(l)}finally{Ft(!1)}}}else h=l;return c.memoizedState=c.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},c.queue=n,n=n.dispatch=aO.bind(null,$e,n),[c.memoizedState,n]},useRef:function(n){var l=Mt();return n={current:n},l.memoizedState=n},useState:function(n){n=ld(n);var l=n.queue,u=Eb.bind(null,$e,l);return l.dispatch=u,[n.memoizedState,u]},useDebugValue:sd,useDeferredValue:function(n,l){var u=Mt();return cd(u,n,l)},useTransition:function(){var n=ld(!1);return n=_b.bind(null,$e,n.queue,!0,!1),Mt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,l,u){var c=$e,h=Mt();if(Le){if(u===void 0)throw Error(a(407));u=u()}else{if(u=l(),Je===null)throw Error(a(349));(Ie&127)!==0||Qy(c,l,u)}h.memoizedState=u;var g={value:u,getSnapshot:l};return h.queue=g,db(Ky.bind(null,c,g,n),[n]),c.flags|=2048,ba(9,{destroy:void 0},Jy.bind(null,c,g,u,l),null),u},useId:function(){var n=Mt(),l=Je.identifierPrefix;if(Le){var u=Fn,c=Bn;u=(c&~(1<<32-Qe(c)-1)).toString(32)+u,l="_"+l+"R_"+u,u=Nu++,0<u&&(l+="H"+u.toString(32)),l+="_"}else u=Kz++,l="_"+l+"r_"+u.toString(32)+"_";return n.memoizedState=l},useHostTransitionStatus:dd,useFormState:ob,useActionState:ob,useOptimistic:function(n){var l=Mt();l.memoizedState=l.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=u,l=md.bind(null,$e,!0,u),u.dispatch=l,[n,l]},useMemoCache:rd,useCacheRefresh:function(){return Mt().memoizedState=iO.bind(null,$e)},useEffectEvent:function(n){var l=Mt(),u={impl:n};return l.memoizedState=u,function(){if((qe&2)!==0)throw Error(a(440));return u.impl.apply(void 0,arguments)}}},hd={readContext:zt,use:Ou,useCallback:yb,useContext:zt,useEffect:ud,useImperativeHandle:vb,useInsertionEffect:hb,useLayoutEffect:pb,useMemo:bb,useReducer:Tu,useRef:fb,useState:function(){return Tu(cr)},useDebugValue:sd,useDeferredValue:function(n,l){var u=mt();return xb(u,Ve.memoizedState,n,l)},useTransition:function(){var n=Tu(cr)[0],l=mt().memoizedState;return[typeof n=="boolean"?n:Nl(n),l]},useSyncExternalStore:Xy,useId:wb,useHostTransitionStatus:dd,useFormState:ub,useActionState:ub,useOptimistic:function(n,l){var u=mt();return tb(u,Ve,n,l)},useMemoCache:rd,useCacheRefresh:$b};hd.useEffectEvent=mb;var Ob={readContext:zt,use:Ou,useCallback:yb,useContext:zt,useEffect:ud,useImperativeHandle:vb,useInsertionEffect:hb,useLayoutEffect:pb,useMemo:bb,useReducer:ad,useRef:fb,useState:function(){return ad(cr)},useDebugValue:sd,useDeferredValue:function(n,l){var u=mt();return Ve===null?cd(u,n,l):xb(u,Ve.memoizedState,n,l)},useTransition:function(){var n=ad(cr)[0],l=mt().memoizedState;return[typeof n=="boolean"?n:Nl(n),l]},useSyncExternalStore:Xy,useId:wb,useHostTransitionStatus:dd,useFormState:cb,useActionState:cb,useOptimistic:function(n,l){var u=mt();return Ve!==null?tb(u,Ve,n,l):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:rd,useCacheRefresh:$b};Ob.useEffectEvent=mb;function pd(n,l,u,c){l=n.memoizedState,u=u(c,l),u=u==null?l:v({},l,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var gd={enqueueSetState:function(n,l,u){n=n._reactInternals;var c=sn(),h=Pr(c);h.payload=l,u!=null&&(h.callback=u),l=Zr(n,h,c),l!==null&&(Jt(l,n,c),wl(l,n,c))},enqueueReplaceState:function(n,l,u){n=n._reactInternals;var c=sn(),h=Pr(c);h.tag=1,h.payload=l,u!=null&&(h.callback=u),l=Zr(n,h,c),l!==null&&(Jt(l,n,c),wl(l,n,c))},enqueueForceUpdate:function(n,l){n=n._reactInternals;var u=sn(),c=Pr(u);c.tag=2,l!=null&&(c.callback=l),l=Zr(n,c,u),l!==null&&(Jt(l,n,u),wl(l,n,u))}};function Tb(n,l,u,c,h,g,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,g,_):l.prototype&&l.prototype.isPureReactComponent?!gl(u,c)||!gl(h,g):!0}function Ab(n,l,u,c){n=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,c),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,c),l.state!==n&&gd.enqueueReplaceState(l,l.state,null)}function Ei(n,l){var u=l;if("ref"in l){u={};for(var c in l)c!=="ref"&&(u[c]=l[c])}if(n=n.defaultProps){u===l&&(u=v({},u));for(var h in n)u[h]===void 0&&(u[h]=n[h])}return u}function Cb(n){du(n)}function Rb(n){console.error(n)}function Db(n){du(n)}function Du(n,l){try{var u=n.onUncaughtError;u(l.value,{componentStack:l.stack})}catch(c){setTimeout(function(){throw c})}}function Ib(n,l,u){try{var c=n.onCaughtError;c(u.value,{componentStack:u.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function vd(n,l,u){return u=Pr(u),u.tag=3,u.payload={element:null},u.callback=function(){Du(n,l)},u}function Ub(n){return n=Pr(n),n.tag=3,n}function Lb(n,l,u,c){var h=u.type.getDerivedStateFromError;if(typeof h=="function"){var g=c.value;n.payload=function(){return h(g)},n.callback=function(){Ib(l,u,c)}}var _=u.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(n.callback=function(){Ib(l,u,c),typeof h!="function"&&(Vr===null?Vr=new Set([this]):Vr.add(this));var k=c.stack;this.componentDidCatch(c.value,{componentStack:k!==null?k:""})})}function lO(n,l,u,c,h){if(u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(l=u.alternate,l!==null&&fa(l,u,h,!0),u=an.current,u!==null){switch(u.tag){case 31:case 13:return kn===null?Vu():u.alternate===null&&ft===0&&(ft=3),u.flags&=-257,u.flags|=65536,u.lanes=h,c===Su?u.flags|=16384:(l=u.updateQueue,l===null?u.updateQueue=new Set([c]):l.add(c),qd(n,c,h)),!1;case 22:return u.flags|=65536,c===Su?u.flags|=16384:(l=u.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([c])},u.updateQueue=l):(u=l.retryQueue,u===null?l.retryQueue=new Set([c]):u.add(c)),qd(n,c,h)),!1}throw Error(a(435,u.tag))}return qd(n,c,h),Vu(),!1}if(Le)return l=an.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=h,c!==If&&(n=Error(a(422),{cause:c}),bl(bn(n,u)))):(c!==If&&(l=Error(a(423),{cause:c}),bl(bn(l,u))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,c=bn(c,u),h=vd(n.stateNode,c,h),Vf(n,h),ft!==4&&(ft=2)),!1;var g=Error(a(520),{cause:c});if(g=bn(g,u),Ll===null?Ll=[g]:Ll.push(g),ft!==4&&(ft=2),l===null)return!0;c=bn(c,u),u=l;do{switch(u.tag){case 3:return u.flags|=65536,n=h&-h,u.lanes|=n,n=vd(u.stateNode,c,n),Vf(u,n),!1;case 1:if(l=u.type,g=u.stateNode,(u.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Vr===null||!Vr.has(g))))return u.flags|=65536,h&=-h,u.lanes|=h,h=Ub(h),Lb(h,n,u,c),Vf(u,h),!1}u=u.return}while(u!==null);return!1}var yd=Error(a(461)),vt=!1;function Ot(n,l,u,c){l.child=n===null?qy(l,null,u,c):wi(l,n.child,u,c)}function Mb(n,l,u,c,h){u=u.render;var g=l.ref;if("ref"in c){var _={};for(var k in c)k!=="ref"&&(_[k]=c[k])}else _=c;return xi(l),c=Wf(n,l,u,_,g,h),k=ed(),n!==null&&!vt?(td(n,l,h),fr(n,l,h)):(Le&&k&&Rf(l),l.flags|=1,Ot(n,l,c,h),l.child)}function Pb(n,l,u,c,h){if(n===null){var g=u.type;return typeof g=="function"&&!Tf(g)&&g.defaultProps===void 0&&u.compare===null?(l.tag=15,l.type=g,Zb(n,l,g,c,h)):(n=gu(u.type,null,c,l,l.mode,h),n.ref=l.ref,n.return=l,l.child=n)}if(g=n.child,!Ed(n,h)){var _=g.memoizedProps;if(u=u.compare,u=u!==null?u:gl,u(_,c)&&n.ref===l.ref)return fr(n,l,h)}return l.flags|=1,n=ar(g,c),n.ref=l.ref,n.return=l,l.child=n}function Zb(n,l,u,c,h){if(n!==null){var g=n.memoizedProps;if(gl(g,c)&&n.ref===l.ref)if(vt=!1,l.pendingProps=c=g,Ed(n,h))(n.flags&131072)!==0&&(vt=!0);else return l.lanes=n.lanes,fr(n,l,h)}return bd(n,l,u,c,h)}function qb(n,l,u,c){var h=c.children,g=n!==null?n.memoizedState:null;if(n===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((l.flags&128)!==0){if(g=g!==null?g.baseLanes|u:u,n!==null){for(c=l.child=n.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~g}else c=0,l.child=null;return Bb(n,l,g,u,c)}if((u&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},n!==null&&xu(l,g!==null?g.cachePool:null),g!==null?Hy(l,g):Xf(),Gy(l);else return c=l.lanes=536870912,Bb(n,l,g!==null?g.baseLanes|u:u,u,c)}else g!==null?(xu(l,g.cachePool),Hy(l,g),Br(),l.memoizedState=null):(n!==null&&xu(l,null),Xf(),Br());return Ot(n,l,h,u),l.child}function Tl(n,l){return n!==null&&n.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Bb(n,l,u,c,h){var g=Bf();return g=g===null?null:{parent:pt._currentValue,pool:g},l.memoizedState={baseLanes:u,cachePool:g},n!==null&&xu(l,null),Xf(),Gy(l),n!==null&&fa(n,l,c,!0),l.childLanes=h,null}function Iu(n,l){return l=Lu({mode:l.mode,children:l.children},n.mode),l.ref=n.ref,n.child=l,l.return=n,l}function Fb(n,l,u){return wi(l,n.child,null,u),n=Iu(l,l.pendingProps),n.flags|=2,ln(l),l.memoizedState=null,n}function oO(n,l,u){var c=l.pendingProps,h=(l.flags&128)!==0;if(l.flags&=-129,n===null){if(Le){if(c.mode==="hidden")return n=Iu(l,c),l.lanes=536870912,Tl(null,n);if(Jf(l),(n=rt)?(n=nx(n,Sn),n=n!==null&&n.data==="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Dr!==null?{id:Bn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},u=jy(n),u.return=l,l.child=u,Nt=l,rt=null)):n=null,n===null)throw Ur(l);return l.lanes=536870912,null}return Iu(l,c)}var g=n.memoizedState;if(g!==null){var _=g.dehydrated;if(Jf(l),h)if(l.flags&256)l.flags&=-257,l=Fb(n,l,u);else if(l.memoizedState!==null)l.child=n.child,l.flags|=128,l=null;else throw Error(a(558));else if(vt||fa(n,l,u,!1),h=(u&n.childLanes)!==0,vt||h){if(c=Je,c!==null&&(_=Rv(c,u),_!==0&&_!==g.retryLane))throw g.retryLane=_,gi(n,_),Jt(c,n,_),yd;Vu(),l=Fb(n,l,u)}else n=g.treeContext,rt=wn(_.nextSibling),Nt=l,Le=!0,Ir=null,Sn=!1,n!==null&&Oy(l,n),l=Iu(l,c),l.flags|=4096;return l}return n=ar(n.child,{mode:c.mode,children:c.children}),n.ref=l.ref,l.child=n,n.return=l,n}function Uu(n,l){var u=l.ref;if(u===null)n!==null&&n.ref!==null&&(l.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(a(284));(n===null||n.ref!==u)&&(l.flags|=4194816)}}function bd(n,l,u,c,h){return xi(l),u=Wf(n,l,u,c,void 0,h),c=ed(),n!==null&&!vt?(td(n,l,h),fr(n,l,h)):(Le&&c&&Rf(l),l.flags|=1,Ot(n,l,u,h),l.child)}function Hb(n,l,u,c,h,g){return xi(l),l.updateQueue=null,u=Yy(l,c,u,h),Vy(n),c=ed(),n!==null&&!vt?(td(n,l,g),fr(n,l,g)):(Le&&c&&Rf(l),l.flags|=1,Ot(n,l,u,g),l.child)}function Gb(n,l,u,c,h){if(xi(l),l.stateNode===null){var g=oa,_=u.contextType;typeof _=="object"&&_!==null&&(g=zt(_)),g=new u(c,g),l.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=gd,l.stateNode=g,g._reactInternals=l,g=l.stateNode,g.props=c,g.state=l.memoizedState,g.refs={},Hf(l),_=u.contextType,g.context=typeof _=="object"&&_!==null?zt(_):oa,g.state=l.memoizedState,_=u.getDerivedStateFromProps,typeof _=="function"&&(pd(l,u,_,c),g.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(_=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),_!==g.state&&gd.enqueueReplaceState(g,g.state,null),El(l,c,g,h),$l(),g.state=l.memoizedState),typeof g.componentDidMount=="function"&&(l.flags|=4194308),c=!0}else if(n===null){g=l.stateNode;var k=l.memoizedProps,T=Ei(u,k);g.props=T;var B=g.context,Q=u.contextType;_=oa,typeof Q=="object"&&Q!==null&&(_=zt(Q));var ee=u.getDerivedStateFromProps;Q=typeof ee=="function"||typeof g.getSnapshotBeforeUpdate=="function",k=l.pendingProps!==k,Q||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(k||B!==_)&&Ab(l,g,c,_),Mr=!1;var H=l.memoizedState;g.state=H,El(l,c,g,h),$l(),B=l.memoizedState,k||H!==B||Mr?(typeof ee=="function"&&(pd(l,u,ee,c),B=l.memoizedState),(T=Mr||Tb(l,u,T,c,H,B,_))?(Q||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(l.flags|=4194308)):(typeof g.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=c,l.memoizedState=B),g.props=c,g.state=B,g.context=_,c=T):(typeof g.componentDidMount=="function"&&(l.flags|=4194308),c=!1)}else{g=l.stateNode,Gf(n,l),_=l.memoizedProps,Q=Ei(u,_),g.props=Q,ee=l.pendingProps,H=g.context,B=u.contextType,T=oa,typeof B=="object"&&B!==null&&(T=zt(B)),k=u.getDerivedStateFromProps,(B=typeof k=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==ee||H!==T)&&Ab(l,g,c,T),Mr=!1,H=l.memoizedState,g.state=H,El(l,c,g,h),$l();var V=l.memoizedState;_!==ee||H!==V||Mr||n!==null&&n.dependencies!==null&&yu(n.dependencies)?(typeof k=="function"&&(pd(l,u,k,c),V=l.memoizedState),(Q=Mr||Tb(l,u,Q,c,H,V,T)||n!==null&&n.dependencies!==null&&yu(n.dependencies))?(B||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,V,T),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,V,T)),typeof g.componentDidUpdate=="function"&&(l.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof g.componentDidUpdate!="function"||_===n.memoizedProps&&H===n.memoizedState||(l.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&H===n.memoizedState||(l.flags|=1024),l.memoizedProps=c,l.memoizedState=V),g.props=c,g.state=V,g.context=T,c=Q):(typeof g.componentDidUpdate!="function"||_===n.memoizedProps&&H===n.memoizedState||(l.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&H===n.memoizedState||(l.flags|=1024),c=!1)}return g=c,Uu(n,l),c=(l.flags&128)!==0,g||c?(g=l.stateNode,u=c&&typeof u.getDerivedStateFromError!="function"?null:g.render(),l.flags|=1,n!==null&&c?(l.child=wi(l,n.child,null,h),l.child=wi(l,null,u,h)):Ot(n,l,u,h),l.memoizedState=g.state,n=l.child):n=fr(n,l,h),n}function Vb(n,l,u,c){return yi(),l.flags|=256,Ot(n,l,u,c),l.child}var xd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _d(n){return{baseLanes:n,cachePool:Iy()}}function Sd(n,l,u){return n=n!==null?n.childLanes&~u:0,l&&(n|=un),n}function Yb(n,l,u){var c=l.pendingProps,h=!1,g=(l.flags&128)!==0,_;if((_=g)||(_=n!==null&&n.memoizedState===null?!1:(dt.current&2)!==0),_&&(h=!0,l.flags&=-129),_=(l.flags&32)!==0,l.flags&=-33,n===null){if(Le){if(h?qr(l):Br(),(n=rt)?(n=nx(n,Sn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Dr!==null?{id:Bn,overflow:Fn}:null,retryLane:536870912,hydrationErrors:null},u=jy(n),u.return=l,l.child=u,Nt=l,rt=null)):n=null,n===null)throw Ur(l);return im(n)?l.lanes=32:l.lanes=536870912,null}var k=c.children;return c=c.fallback,h?(Br(),h=l.mode,k=Lu({mode:"hidden",children:k},h),c=vi(c,h,u,null),k.return=l,c.return=l,k.sibling=c,l.child=k,c=l.child,c.memoizedState=_d(u),c.childLanes=Sd(n,_,u),l.memoizedState=xd,Tl(null,c)):(qr(l),kd(l,k))}var T=n.memoizedState;if(T!==null&&(k=T.dehydrated,k!==null)){if(g)l.flags&256?(qr(l),l.flags&=-257,l=wd(n,l,u)):l.memoizedState!==null?(Br(),l.child=n.child,l.flags|=128,l=null):(Br(),k=c.fallback,h=l.mode,c=Lu({mode:"visible",children:c.children},h),k=vi(k,h,u,null),k.flags|=2,c.return=l,k.return=l,c.sibling=k,l.child=c,wi(l,n.child,null,u),c=l.child,c.memoizedState=_d(u),c.childLanes=Sd(n,_,u),l.memoizedState=xd,l=Tl(null,c));else if(qr(l),im(k)){if(_=k.nextSibling&&k.nextSibling.dataset,_)var B=_.dgst;_=B,c=Error(a(419)),c.stack="",c.digest=_,bl({value:c,source:null,stack:null}),l=wd(n,l,u)}else if(vt||fa(n,l,u,!1),_=(u&n.childLanes)!==0,vt||_){if(_=Je,_!==null&&(c=Rv(_,u),c!==0&&c!==T.retryLane))throw T.retryLane=c,gi(n,c),Jt(_,n,c),yd;rm(k)||Vu(),l=wd(n,l,u)}else rm(k)?(l.flags|=192,l.child=n.child,l=null):(n=T.treeContext,rt=wn(k.nextSibling),Nt=l,Le=!0,Ir=null,Sn=!1,n!==null&&Oy(l,n),l=kd(l,c.children),l.flags|=4096);return l}return h?(Br(),k=c.fallback,h=l.mode,T=n.child,B=T.sibling,c=ar(T,{mode:"hidden",children:c.children}),c.subtreeFlags=T.subtreeFlags&65011712,B!==null?k=ar(B,k):(k=vi(k,h,u,null),k.flags|=2),k.return=l,c.return=l,c.sibling=k,l.child=c,Tl(null,c),c=l.child,k=n.child.memoizedState,k===null?k=_d(u):(h=k.cachePool,h!==null?(T=pt._currentValue,h=h.parent!==T?{parent:T,pool:T}:h):h=Iy(),k={baseLanes:k.baseLanes|u,cachePool:h}),c.memoizedState=k,c.childLanes=Sd(n,_,u),l.memoizedState=xd,Tl(n.child,c)):(qr(l),u=n.child,n=u.sibling,u=ar(u,{mode:"visible",children:c.children}),u.return=l,u.sibling=null,n!==null&&(_=l.deletions,_===null?(l.deletions=[n],l.flags|=16):_.push(n)),l.child=u,l.memoizedState=null,u)}function kd(n,l){return l=Lu({mode:"visible",children:l},n.mode),l.return=n,n.child=l}function Lu(n,l){return n=rn(22,n,null,l),n.lanes=0,n}function wd(n,l,u){return wi(l,n.child,null,u),n=kd(l,l.pendingProps.children),n.flags|=2,l.memoizedState=null,n}function Xb(n,l,u){n.lanes|=l;var c=n.alternate;c!==null&&(c.lanes|=l),Mf(n.return,l,u)}function $d(n,l,u,c,h,g){var _=n.memoizedState;_===null?n.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:c,tail:u,tailMode:h,treeForkCount:g}:(_.isBackwards=l,_.rendering=null,_.renderingStartTime=0,_.last=c,_.tail=u,_.tailMode=h,_.treeForkCount=g)}function Qb(n,l,u){var c=l.pendingProps,h=c.revealOrder,g=c.tail;c=c.children;var _=dt.current,k=(_&2)!==0;if(k?(_=_&1|2,l.flags|=128):_&=1,$(dt,_),Ot(n,l,c,u),c=Le?yl:0,!k&&n!==null&&(n.flags&128)!==0)e:for(n=l.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Xb(n,u,l);else if(n.tag===19)Xb(n,u,l);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===l)break e;for(;n.sibling===null;){if(n.return===null||n.return===l)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"forwards":for(u=l.child,h=null;u!==null;)n=u.alternate,n!==null&&Eu(n)===null&&(h=u),u=u.sibling;u=h,u===null?(h=l.child,l.child=null):(h=u.sibling,u.sibling=null),$d(l,!1,h,u,g,c);break;case"backwards":case"unstable_legacy-backwards":for(u=null,h=l.child,l.child=null;h!==null;){if(n=h.alternate,n!==null&&Eu(n)===null){l.child=h;break}n=h.sibling,h.sibling=u,u=h,h=n}$d(l,!0,u,null,g,c);break;case"together":$d(l,!1,null,null,void 0,c);break;default:l.memoizedState=null}return l.child}function fr(n,l,u){if(n!==null&&(l.dependencies=n.dependencies),Gr|=l.lanes,(u&l.childLanes)===0)if(n!==null){if(fa(n,l,u,!1),(u&l.childLanes)===0)return null}else return null;if(n!==null&&l.child!==n.child)throw Error(a(153));if(l.child!==null){for(n=l.child,u=ar(n,n.pendingProps),l.child=u,u.return=l;n.sibling!==null;)n=n.sibling,u=u.sibling=ar(n,n.pendingProps),u.return=l;u.sibling=null}return l.child}function Ed(n,l){return(n.lanes&l)!==0?!0:(n=n.dependencies,!!(n!==null&&yu(n)))}function uO(n,l,u){switch(l.tag){case 3:at(l,l.stateNode.containerInfo),Lr(l,pt,n.memoizedState.cache),yi();break;case 27:case 5:pn(l);break;case 4:at(l,l.stateNode.containerInfo);break;case 10:Lr(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Jf(l),null;break;case 13:var c=l.memoizedState;if(c!==null)return c.dehydrated!==null?(qr(l),l.flags|=128,null):(u&l.child.childLanes)!==0?Yb(n,l,u):(qr(l),n=fr(n,l,u),n!==null?n.sibling:null);qr(l);break;case 19:var h=(n.flags&128)!==0;if(c=(u&l.childLanes)!==0,c||(fa(n,l,u,!1),c=(u&l.childLanes)!==0),h){if(c)return Qb(n,l,u);l.flags|=128}if(h=l.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),$(dt,dt.current),c)break;return null;case 22:return l.lanes=0,qb(n,l,u,l.pendingProps);case 24:Lr(l,pt,n.memoizedState.cache)}return fr(n,l,u)}function Jb(n,l,u){if(n!==null)if(n.memoizedProps!==l.pendingProps)vt=!0;else{if(!Ed(n,u)&&(l.flags&128)===0)return vt=!1,uO(n,l,u);vt=(n.flags&131072)!==0}else vt=!1,Le&&(l.flags&1048576)!==0&&zy(l,yl,l.index);switch(l.lanes=0,l.tag){case 16:e:{var c=l.pendingProps;if(n=Si(l.elementType),l.type=n,typeof n=="function")Tf(n)?(c=Ei(n,c),l.tag=1,l=Gb(null,l,n,c,u)):(l.tag=0,l=bd(null,l,n,c,u));else{if(n!=null){var h=n.$$typeof;if(h===G){l.tag=11,l=Mb(null,l,n,c,u);break e}else if(h===W){l.tag=14,l=Pb(null,l,n,c,u);break e}}throw l=Y(n)||n,Error(a(306,l,""))}}return l;case 0:return bd(n,l,l.type,l.pendingProps,u);case 1:return c=l.type,h=Ei(c,l.pendingProps),Gb(n,l,c,h,u);case 3:e:{if(at(l,l.stateNode.containerInfo),n===null)throw Error(a(387));c=l.pendingProps;var g=l.memoizedState;h=g.element,Gf(n,l),El(l,c,null,u);var _=l.memoizedState;if(c=_.cache,Lr(l,pt,c),c!==g.cache&&Pf(l,[pt],u,!0),$l(),c=_.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:_.cache},l.updateQueue.baseState=g,l.memoizedState=g,l.flags&256){l=Vb(n,l,c,u);break e}else if(c!==h){h=bn(Error(a(424)),l),bl(h),l=Vb(n,l,c,u);break e}else for(n=l.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,rt=wn(n.firstChild),Nt=l,Le=!0,Ir=null,Sn=!0,u=qy(l,null,c,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(yi(),c===h){l=fr(n,l,u);break e}Ot(n,l,c,u)}l=l.child}return l;case 26:return Uu(n,l),n===null?(u=ux(l.type,null,l.pendingProps,null))?l.memoizedState=u:Le||(u=l.type,n=l.pendingProps,c=es(pe.current).createElement(u),c[jt]=l,c[Ht]=n,Tt(c,u,n),wt(c),l.stateNode=c):l.memoizedState=ux(l.type,n.memoizedProps,l.pendingProps,n.memoizedState),null;case 27:return pn(l),n===null&&Le&&(c=l.stateNode=ax(l.type,l.pendingProps,pe.current),Nt=l,Sn=!0,h=rt,Jr(l.type)?(am=h,rt=wn(c.firstChild)):rt=h),Ot(n,l,l.pendingProps.children,u),Uu(n,l),n===null&&(l.flags|=4194304),l.child;case 5:return n===null&&Le&&((h=c=rt)&&(c=LO(c,l.type,l.pendingProps,Sn),c!==null?(l.stateNode=c,Nt=l,rt=wn(c.firstChild),Sn=!1,h=!0):h=!1),h||Ur(l)),pn(l),h=l.type,g=l.pendingProps,_=n!==null?n.memoizedProps:null,c=g.children,em(h,g)?c=null:_!==null&&em(h,_)&&(l.flags|=32),l.memoizedState!==null&&(h=Wf(n,l,Wz,null,null,u),Gl._currentValue=h),Uu(n,l),Ot(n,l,c,u),l.child;case 6:return n===null&&Le&&((n=u=rt)&&(u=MO(u,l.pendingProps,Sn),u!==null?(l.stateNode=u,Nt=l,rt=null,n=!0):n=!1),n||Ur(l)),null;case 13:return Yb(n,l,u);case 4:return at(l,l.stateNode.containerInfo),c=l.pendingProps,n===null?l.child=wi(l,null,c,u):Ot(n,l,c,u),l.child;case 11:return Mb(n,l,l.type,l.pendingProps,u);case 7:return Ot(n,l,l.pendingProps,u),l.child;case 8:return Ot(n,l,l.pendingProps.children,u),l.child;case 12:return Ot(n,l,l.pendingProps.children,u),l.child;case 10:return c=l.pendingProps,Lr(l,l.type,c.value),Ot(n,l,c.children,u),l.child;case 9:return h=l.type._context,c=l.pendingProps.children,xi(l),h=zt(h),c=c(h),l.flags|=1,Ot(n,l,c,u),l.child;case 14:return Pb(n,l,l.type,l.pendingProps,u);case 15:return Zb(n,l,l.type,l.pendingProps,u);case 19:return Qb(n,l,u);case 31:return oO(n,l,u);case 22:return qb(n,l,u,l.pendingProps);case 24:return xi(l),c=zt(pt),n===null?(h=Bf(),h===null&&(h=Je,g=Zf(),h.pooledCache=g,g.refCount++,g!==null&&(h.pooledCacheLanes|=u),h=g),l.memoizedState={parent:c,cache:h},Hf(l),Lr(l,pt,h)):((n.lanes&u)!==0&&(Gf(n,l),El(l,null,null,u),$l()),h=n.memoizedState,g=l.memoizedState,h.parent!==c?(h={parent:c,cache:c},l.memoizedState=h,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=h),Lr(l,pt,c)):(c=g.cache,Lr(l,pt,c),c!==h.cache&&Pf(l,[pt],u,!0))),Ot(n,l,l.pendingProps.children,u),l.child;case 29:throw l.pendingProps}throw Error(a(156,l.tag))}function dr(n){n.flags|=4}function jd(n,l,u,c,h){if((l=(n.mode&32)!==0)&&(l=!1),l){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(w0())n.flags|=8192;else throw ki=Su,Ff}else n.flags&=-16777217}function Kb(n,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!mx(l))if(w0())n.flags|=8192;else throw ki=Su,Ff}function Mu(n,l){l!==null&&(n.flags|=4),n.flags&16384&&(l=n.tag!==22?Tv():536870912,n.lanes|=l,ka|=l)}function Al(n,l){if(!Le)switch(n.tailMode){case"hidden":l=n.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var c=null;u!==null;)u.alternate!==null&&(c=u),u=u.sibling;c===null?l||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function it(n){var l=n.alternate!==null&&n.alternate.child===n.child,u=0,c=0;if(l)for(var h=n.child;h!==null;)u|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)u|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=u,l}function sO(n,l,u){var c=l.pendingProps;switch(Df(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(l),null;case 1:return it(l),null;case 3:return u=l.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),l.memoizedState.cache!==c&&(l.flags|=2048),ur(pt),Ge(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(ca(l)?dr(l):n===null||n.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Uf())),it(l),null;case 26:var h=l.type,g=l.memoizedState;return n===null?(dr(l),g!==null?(it(l),Kb(l,g)):(it(l),jd(l,h,null,c,u))):g?g!==n.memoizedState?(dr(l),it(l),Kb(l,g)):(it(l),l.flags&=-16777217):(n=n.memoizedProps,n!==c&&dr(l),it(l),jd(l,h,n,c,u)),null;case 27:if(Wn(l),u=pe.current,h=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==c&&dr(l);else{if(!c){if(l.stateNode===null)throw Error(a(166));return it(l),null}n=oe.current,ca(l)?Ty(l):(n=ax(h,c,u),l.stateNode=n,dr(l))}return it(l),null;case 5:if(Wn(l),h=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==c&&dr(l);else{if(!c){if(l.stateNode===null)throw Error(a(166));return it(l),null}if(g=oe.current,ca(l))Ty(l);else{var _=es(pe.current);switch(g){case 1:g=_.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:g=_.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":g=_.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":g=_.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":g=_.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?_.createElement("select",{is:c.is}):_.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?_.createElement(h,{is:c.is}):_.createElement(h)}}g[jt]=l,g[Ht]=c;e:for(_=l.child;_!==null;){if(_.tag===5||_.tag===6)g.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===l)break e;for(;_.sibling===null;){if(_.return===null||_.return===l)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}l.stateNode=g;e:switch(Tt(g,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&dr(l)}}return it(l),jd(l,l.type,n===null?null:n.memoizedProps,l.pendingProps,u),null;case 6:if(n&&l.stateNode!=null)n.memoizedProps!==c&&dr(l);else{if(typeof c!="string"&&l.stateNode===null)throw Error(a(166));if(n=pe.current,ca(l)){if(n=l.stateNode,u=l.memoizedProps,c=null,h=Nt,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}n[jt]=l,n=!!(n.nodeValue===u||c!==null&&c.suppressHydrationWarning===!0||Y0(n.nodeValue,u)),n||Ur(l,!0)}else n=es(n).createTextNode(c),n[jt]=l,l.stateNode=n}return it(l),null;case 31:if(u=l.memoizedState,n===null||n.memoizedState!==null){if(c=ca(l),u!==null){if(n===null){if(!c)throw Error(a(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[jt]=l}else yi(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;it(l),n=!1}else u=Uf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=u),n=!0;if(!n)return l.flags&256?(ln(l),l):(ln(l),null);if((l.flags&128)!==0)throw Error(a(558))}return it(l),null;case 13:if(c=l.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=ca(l),c!==null&&c.dehydrated!==null){if(n===null){if(!h)throw Error(a(318));if(h=l.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[jt]=l}else yi(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;it(l),h=!1}else h=Uf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return l.flags&256?(ln(l),l):(ln(l),null)}return ln(l),(l.flags&128)!==0?(l.lanes=u,l):(u=c!==null,n=n!==null&&n.memoizedState!==null,u&&(c=l.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==h&&(c.flags|=2048)),u!==n&&u&&(l.child.flags|=8192),Mu(l,l.updateQueue),it(l),null);case 4:return Ge(),n===null&&Xd(l.stateNode.containerInfo),it(l),null;case 10:return ur(l.type),it(l),null;case 19:if(Z(dt),c=l.memoizedState,c===null)return it(l),null;if(h=(l.flags&128)!==0,g=c.rendering,g===null)if(h)Al(c,!1);else{if(ft!==0||n!==null&&(n.flags&128)!==0)for(n=l.child;n!==null;){if(g=Eu(n),g!==null){for(l.flags|=128,Al(c,!1),n=g.updateQueue,l.updateQueue=n,Mu(l,n),l.subtreeFlags=0,n=u,u=l.child;u!==null;)Ey(u,n),u=u.sibling;return $(dt,dt.current&1|2),Le&&lr(l,c.treeForkCount),l.child}n=n.sibling}c.tail!==null&&Ut()>Fu&&(l.flags|=128,h=!0,Al(c,!1),l.lanes=4194304)}else{if(!h)if(n=Eu(g),n!==null){if(l.flags|=128,h=!0,n=n.updateQueue,l.updateQueue=n,Mu(l,n),Al(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Le)return it(l),null}else 2*Ut()-c.renderingStartTime>Fu&&u!==536870912&&(l.flags|=128,h=!0,Al(c,!1),l.lanes=4194304);c.isBackwards?(g.sibling=l.child,l.child=g):(n=c.last,n!==null?n.sibling=g:l.child=g,c.last=g)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Ut(),n.sibling=null,u=dt.current,$(dt,h?u&1|2:u&1),Le&&lr(l,c.treeForkCount),n):(it(l),null);case 22:case 23:return ln(l),Qf(),c=l.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(l.flags|=8192):c&&(l.flags|=8192),c?(u&536870912)!==0&&(l.flags&128)===0&&(it(l),l.subtreeFlags&6&&(l.flags|=8192)):it(l),u=l.updateQueue,u!==null&&Mu(l,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048),n!==null&&Z(_i),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),l.memoizedState.cache!==u&&(l.flags|=2048),ur(pt),it(l),null;case 25:return null;case 30:return null}throw Error(a(156,l.tag))}function cO(n,l){switch(Df(l),l.tag){case 1:return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 3:return ur(pt),Ge(),n=l.flags,(n&65536)!==0&&(n&128)===0?(l.flags=n&-65537|128,l):null;case 26:case 27:case 5:return Wn(l),null;case 31:if(l.memoizedState!==null){if(ln(l),l.alternate===null)throw Error(a(340));yi()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 13:if(ln(l),n=l.memoizedState,n!==null&&n.dehydrated!==null){if(l.alternate===null)throw Error(a(340));yi()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 19:return Z(dt),null;case 4:return Ge(),null;case 10:return ur(l.type),null;case 22:case 23:return ln(l),Qf(),n!==null&&Z(_i),n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 24:return ur(pt),null;case 25:return null;default:return null}}function Wb(n,l){switch(Df(l),l.tag){case 3:ur(pt),Ge();break;case 26:case 27:case 5:Wn(l);break;case 4:Ge();break;case 31:l.memoizedState!==null&&ln(l);break;case 13:ln(l);break;case 19:Z(dt);break;case 10:ur(l.type);break;case 22:case 23:ln(l),Qf(),n!==null&&Z(_i);break;case 24:ur(pt)}}function Cl(n,l){try{var u=l.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var h=c.next;u=h;do{if((u.tag&n)===n){c=void 0;var g=u.create,_=u.inst;c=g(),_.destroy=c}u=u.next}while(u!==h)}}catch(k){He(l,l.return,k)}}function Fr(n,l,u){try{var c=l.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var g=h.next;c=g;do{if((c.tag&n)===n){var _=c.inst,k=_.destroy;if(k!==void 0){_.destroy=void 0,h=l;var T=u,B=k;try{B()}catch(Q){He(h,T,Q)}}}c=c.next}while(c!==g)}}catch(Q){He(l,l.return,Q)}}function e0(n){var l=n.updateQueue;if(l!==null){var u=n.stateNode;try{Fy(l,u)}catch(c){He(n,n.return,c)}}}function t0(n,l,u){u.props=Ei(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(c){He(n,l,c)}}function Rl(n,l){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof u=="function"?n.refCleanup=u(c):u.current=c}}catch(h){He(n,l,h)}}function Hn(n,l){var u=n.ref,c=n.refCleanup;if(u!==null)if(typeof c=="function")try{c()}catch(h){He(n,l,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(h){He(n,l,h)}else u.current=null}function n0(n){var l=n.type,u=n.memoizedProps,c=n.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":u.autoFocus&&c.focus();break e;case"img":u.src?c.src=u.src:u.srcSet&&(c.srcset=u.srcSet)}}catch(h){He(n,n.return,h)}}function Nd(n,l,u){try{var c=n.stateNode;AO(c,n.type,u,l),c[Ht]=l}catch(h){He(n,n.return,h)}}function r0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Jr(n.type)||n.tag===4}function zd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||r0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Jr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Od(n,l,u){var c=n.tag;if(c===5||c===6)n=n.stateNode,l?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,l):(l=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.appendChild(n),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=rr));else if(c!==4&&(c===27&&Jr(n.type)&&(u=n.stateNode,l=null),n=n.child,n!==null))for(Od(n,l,u),n=n.sibling;n!==null;)Od(n,l,u),n=n.sibling}function Pu(n,l,u){var c=n.tag;if(c===5||c===6)n=n.stateNode,l?u.insertBefore(n,l):u.appendChild(n);else if(c!==4&&(c===27&&Jr(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(Pu(n,l,u),n=n.sibling;n!==null;)Pu(n,l,u),n=n.sibling}function i0(n){var l=n.stateNode,u=n.memoizedProps;try{for(var c=n.type,h=l.attributes;h.length;)l.removeAttributeNode(h[0]);Tt(l,c,u),l[jt]=n,l[Ht]=u}catch(g){He(n,n.return,g)}}var mr=!1,yt=!1,Td=!1,a0=typeof WeakSet=="function"?WeakSet:Set,$t=null;function fO(n,l){if(n=n.containerInfo,Kd=os,n=vy(n),wf(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var c=u.getSelection&&u.getSelection();if(c&&c.rangeCount!==0){u=c.anchorNode;var h=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{u.nodeType,g.nodeType}catch{u=null;break e}var _=0,k=-1,T=-1,B=0,Q=0,ee=n,H=null;t:for(;;){for(var V;ee!==u||h!==0&&ee.nodeType!==3||(k=_+h),ee!==g||c!==0&&ee.nodeType!==3||(T=_+c),ee.nodeType===3&&(_+=ee.nodeValue.length),(V=ee.firstChild)!==null;)H=ee,ee=V;for(;;){if(ee===n)break t;if(H===u&&++B===h&&(k=_),H===g&&++Q===c&&(T=_),(V=ee.nextSibling)!==null)break;ee=H,H=ee.parentNode}ee=V}u=k===-1||T===-1?null:{start:k,end:T}}else u=null}u=u||{start:0,end:0}}else u=null;for(Wd={focusedElem:n,selectionRange:u},os=!1,$t=l;$t!==null;)if(l=$t,n=l.child,(l.subtreeFlags&1028)!==0&&n!==null)n.return=l,$t=n;else for(;$t!==null;){switch(l=$t,g=l.alternate,n=l.flags,l.tag){case 0:if((n&4)!==0&&(n=l.updateQueue,n=n!==null?n.events:null,n!==null))for(u=0;u<n.length;u++)h=n[u],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,u=l,h=g.memoizedProps,g=g.memoizedState,c=u.stateNode;try{var he=Ei(u.type,h);n=c.getSnapshotBeforeUpdate(he,g),c.__reactInternalSnapshotBeforeUpdate=n}catch(be){He(u,u.return,be)}}break;case 3:if((n&1024)!==0){if(n=l.stateNode.containerInfo,u=n.nodeType,u===9)nm(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":nm(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=l.sibling,n!==null){n.return=l.return,$t=n;break}$t=l.return}}function l0(n,l,u){var c=u.flags;switch(u.tag){case 0:case 11:case 15:pr(n,u),c&4&&Cl(5,u);break;case 1:if(pr(n,u),c&4)if(n=u.stateNode,l===null)try{n.componentDidMount()}catch(_){He(u,u.return,_)}else{var h=Ei(u.type,l.memoizedProps);l=l.memoizedState;try{n.componentDidUpdate(h,l,n.__reactInternalSnapshotBeforeUpdate)}catch(_){He(u,u.return,_)}}c&64&&e0(u),c&512&&Rl(u,u.return);break;case 3:if(pr(n,u),c&64&&(n=u.updateQueue,n!==null)){if(l=null,u.child!==null)switch(u.child.tag){case 27:case 5:l=u.child.stateNode;break;case 1:l=u.child.stateNode}try{Fy(n,l)}catch(_){He(u,u.return,_)}}break;case 27:l===null&&c&4&&i0(u);case 26:case 5:pr(n,u),l===null&&c&4&&n0(u),c&512&&Rl(u,u.return);break;case 12:pr(n,u);break;case 31:pr(n,u),c&4&&s0(n,u);break;case 13:pr(n,u),c&4&&c0(n,u),c&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=xO.bind(null,u),PO(n,u))));break;case 22:if(c=u.memoizedState!==null||mr,!c){l=l!==null&&l.memoizedState!==null||yt,h=mr;var g=yt;mr=c,(yt=l)&&!g?gr(n,u,(u.subtreeFlags&8772)!==0):pr(n,u),mr=h,yt=g}break;case 30:break;default:pr(n,u)}}function o0(n){var l=n.alternate;l!==null&&(n.alternate=null,o0(l)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(l=n.stateNode,l!==null&&of(l)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var lt=null,Vt=!1;function hr(n,l,u){for(u=u.child;u!==null;)u0(n,l,u),u=u.sibling}function u0(n,l,u){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Lt,u)}catch{}switch(u.tag){case 26:yt||Hn(u,l),hr(n,l,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:yt||Hn(u,l);var c=lt,h=Vt;Jr(u.type)&&(lt=u.stateNode,Vt=!1),hr(n,l,u),Bl(u.stateNode),lt=c,Vt=h;break;case 5:yt||Hn(u,l);case 6:if(c=lt,h=Vt,lt=null,hr(n,l,u),lt=c,Vt=h,lt!==null)if(Vt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(u.stateNode)}catch(g){He(u,l,g)}else try{lt.removeChild(u.stateNode)}catch(g){He(u,l,g)}break;case 18:lt!==null&&(Vt?(n=lt,ex(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),Ta(n)):ex(lt,u.stateNode));break;case 4:c=lt,h=Vt,lt=u.stateNode.containerInfo,Vt=!0,hr(n,l,u),lt=c,Vt=h;break;case 0:case 11:case 14:case 15:Fr(2,u,l),yt||Fr(4,u,l),hr(n,l,u);break;case 1:yt||(Hn(u,l),c=u.stateNode,typeof c.componentWillUnmount=="function"&&t0(u,l,c)),hr(n,l,u);break;case 21:hr(n,l,u);break;case 22:yt=(c=yt)||u.memoizedState!==null,hr(n,l,u),yt=c;break;default:hr(n,l,u)}}function s0(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Ta(n)}catch(u){He(l,l.return,u)}}}function c0(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ta(n)}catch(u){He(l,l.return,u)}}function dO(n){switch(n.tag){case 31:case 13:case 19:var l=n.stateNode;return l===null&&(l=n.stateNode=new a0),l;case 22:return n=n.stateNode,l=n._retryCache,l===null&&(l=n._retryCache=new a0),l;default:throw Error(a(435,n.tag))}}function Zu(n,l){var u=dO(n);l.forEach(function(c){if(!u.has(c)){u.add(c);var h=_O.bind(null,n,c);c.then(h,h)}})}function Yt(n,l){var u=l.deletions;if(u!==null)for(var c=0;c<u.length;c++){var h=u[c],g=n,_=l,k=_;e:for(;k!==null;){switch(k.tag){case 27:if(Jr(k.type)){lt=k.stateNode,Vt=!1;break e}break;case 5:lt=k.stateNode,Vt=!1;break e;case 3:case 4:lt=k.stateNode.containerInfo,Vt=!0;break e}k=k.return}if(lt===null)throw Error(a(160));u0(g,_,h),lt=null,Vt=!1,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)f0(l,n),l=l.sibling}var Dn=null;function f0(n,l){var u=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Yt(l,n),Xt(n),c&4&&(Fr(3,n,n.return),Cl(3,n),Fr(5,n,n.return));break;case 1:Yt(l,n),Xt(n),c&512&&(yt||u===null||Hn(u,u.return)),c&64&&mr&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?c:u.concat(c))));break;case 26:var h=Dn;if(Yt(l,n),Xt(n),c&512&&(yt||u===null||Hn(u,u.return)),c&4){var g=u!==null?u.memoizedState:null;if(c=n.memoizedState,u===null)if(c===null)if(n.stateNode===null){e:{c=n.type,u=n.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":g=h.getElementsByTagName("title")[0],(!g||g[ol]||g[jt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=h.createElement(c),h.head.insertBefore(g,h.querySelector("head > title"))),Tt(g,c,u),g[jt]=n,wt(g),c=g;break e;case"link":var _=fx("link","href",h).get(c+(u.href||""));if(_){for(var k=0;k<_.length;k++)if(g=_[k],g.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&g.getAttribute("rel")===(u.rel==null?null:u.rel)&&g.getAttribute("title")===(u.title==null?null:u.title)&&g.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){_.splice(k,1);break t}}g=h.createElement(c),Tt(g,c,u),h.head.appendChild(g);break;case"meta":if(_=fx("meta","content",h).get(c+(u.content||""))){for(k=0;k<_.length;k++)if(g=_[k],g.getAttribute("content")===(u.content==null?null:""+u.content)&&g.getAttribute("name")===(u.name==null?null:u.name)&&g.getAttribute("property")===(u.property==null?null:u.property)&&g.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&g.getAttribute("charset")===(u.charSet==null?null:u.charSet)){_.splice(k,1);break t}}g=h.createElement(c),Tt(g,c,u),h.head.appendChild(g);break;default:throw Error(a(468,c))}g[jt]=n,wt(g),c=g}n.stateNode=c}else dx(h,n.type,n.stateNode);else n.stateNode=cx(h,c,n.memoizedProps);else g!==c?(g===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):g.count--,c===null?dx(h,n.type,n.stateNode):cx(h,c,n.memoizedProps)):c===null&&n.stateNode!==null&&Nd(n,n.memoizedProps,u.memoizedProps)}break;case 27:Yt(l,n),Xt(n),c&512&&(yt||u===null||Hn(u,u.return)),u!==null&&c&4&&Nd(n,n.memoizedProps,u.memoizedProps);break;case 5:if(Yt(l,n),Xt(n),c&512&&(yt||u===null||Hn(u,u.return)),n.flags&32){h=n.stateNode;try{ea(h,"")}catch(he){He(n,n.return,he)}}c&4&&n.stateNode!=null&&(h=n.memoizedProps,Nd(n,h,u!==null?u.memoizedProps:h)),c&1024&&(Td=!0);break;case 6:if(Yt(l,n),Xt(n),c&4){if(n.stateNode===null)throw Error(a(162));c=n.memoizedProps,u=n.stateNode;try{u.nodeValue=c}catch(he){He(n,n.return,he)}}break;case 3:if(rs=null,h=Dn,Dn=ts(l.containerInfo),Yt(l,n),Dn=h,Xt(n),c&4&&u!==null&&u.memoizedState.isDehydrated)try{Ta(l.containerInfo)}catch(he){He(n,n.return,he)}Td&&(Td=!1,d0(n));break;case 4:c=Dn,Dn=ts(n.stateNode.containerInfo),Yt(l,n),Xt(n),Dn=c;break;case 12:Yt(l,n),Xt(n);break;case 31:Yt(l,n),Xt(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Zu(n,c)));break;case 13:Yt(l,n),Xt(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Bu=Ut()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Zu(n,c)));break;case 22:h=n.memoizedState!==null;var T=u!==null&&u.memoizedState!==null,B=mr,Q=yt;if(mr=B||h,yt=Q||T,Yt(l,n),yt=Q,mr=B,Xt(n),c&8192)e:for(l=n.stateNode,l._visibility=h?l._visibility&-2:l._visibility|1,h&&(u===null||T||mr||yt||ji(n)),u=null,l=n;;){if(l.tag===5||l.tag===26){if(u===null){T=u=l;try{if(g=T.stateNode,h)_=g.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{k=T.stateNode;var ee=T.memoizedProps.style,H=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;k.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(he){He(T,T.return,he)}}}else if(l.tag===6){if(u===null){T=l;try{T.stateNode.nodeValue=h?"":T.memoizedProps}catch(he){He(T,T.return,he)}}}else if(l.tag===18){if(u===null){T=l;try{var V=T.stateNode;h?tx(V,!0):tx(T.stateNode,!1)}catch(he){He(T,T.return,he)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===n)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break e;for(;l.sibling===null;){if(l.return===null||l.return===n)break e;u===l&&(u=null),l=l.return}u===l&&(u=null),l.sibling.return=l.return,l=l.sibling}c&4&&(c=n.updateQueue,c!==null&&(u=c.retryQueue,u!==null&&(c.retryQueue=null,Zu(n,u))));break;case 19:Yt(l,n),Xt(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Zu(n,c)));break;case 30:break;case 21:break;default:Yt(l,n),Xt(n)}}function Xt(n){var l=n.flags;if(l&2){try{for(var u,c=n.return;c!==null;){if(r0(c)){u=c;break}c=c.return}if(u==null)throw Error(a(160));switch(u.tag){case 27:var h=u.stateNode,g=zd(n);Pu(n,g,h);break;case 5:var _=u.stateNode;u.flags&32&&(ea(_,""),u.flags&=-33);var k=zd(n);Pu(n,k,_);break;case 3:case 4:var T=u.stateNode.containerInfo,B=zd(n);Od(n,B,T);break;default:throw Error(a(161))}}catch(Q){He(n,n.return,Q)}n.flags&=-3}l&4096&&(n.flags&=-4097)}function d0(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var l=n;d0(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),n=n.sibling}}function pr(n,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)l0(n,l.alternate,l),l=l.sibling}function ji(n){for(n=n.child;n!==null;){var l=n;switch(l.tag){case 0:case 11:case 14:case 15:Fr(4,l,l.return),ji(l);break;case 1:Hn(l,l.return);var u=l.stateNode;typeof u.componentWillUnmount=="function"&&t0(l,l.return,u),ji(l);break;case 27:Bl(l.stateNode);case 26:case 5:Hn(l,l.return),ji(l);break;case 22:l.memoizedState===null&&ji(l);break;case 30:ji(l);break;default:ji(l)}n=n.sibling}}function gr(n,l,u){for(u=u&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var c=l.alternate,h=n,g=l,_=g.flags;switch(g.tag){case 0:case 11:case 15:gr(h,g,u),Cl(4,g);break;case 1:if(gr(h,g,u),c=g,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(B){He(c,c.return,B)}if(c=g,h=c.updateQueue,h!==null){var k=c.stateNode;try{var T=h.shared.hiddenCallbacks;if(T!==null)for(h.shared.hiddenCallbacks=null,h=0;h<T.length;h++)By(T[h],k)}catch(B){He(c,c.return,B)}}u&&_&64&&e0(g),Rl(g,g.return);break;case 27:i0(g);case 26:case 5:gr(h,g,u),u&&c===null&&_&4&&n0(g),Rl(g,g.return);break;case 12:gr(h,g,u);break;case 31:gr(h,g,u),u&&_&4&&s0(h,g);break;case 13:gr(h,g,u),u&&_&4&&c0(h,g);break;case 22:g.memoizedState===null&&gr(h,g,u),Rl(g,g.return);break;case 30:break;default:gr(h,g,u)}l=l.sibling}}function Ad(n,l){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&xl(u))}function Cd(n,l){n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&xl(n))}function In(n,l,u,c){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)m0(n,l,u,c),l=l.sibling}function m0(n,l,u,c){var h=l.flags;switch(l.tag){case 0:case 11:case 15:In(n,l,u,c),h&2048&&Cl(9,l);break;case 1:In(n,l,u,c);break;case 3:In(n,l,u,c),h&2048&&(n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&xl(n)));break;case 12:if(h&2048){In(n,l,u,c),n=l.stateNode;try{var g=l.memoizedProps,_=g.id,k=g.onPostCommit;typeof k=="function"&&k(_,l.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(T){He(l,l.return,T)}}else In(n,l,u,c);break;case 31:In(n,l,u,c);break;case 13:In(n,l,u,c);break;case 23:break;case 22:g=l.stateNode,_=l.alternate,l.memoizedState!==null?g._visibility&2?In(n,l,u,c):Dl(n,l):g._visibility&2?In(n,l,u,c):(g._visibility|=2,xa(n,l,u,c,(l.subtreeFlags&10256)!==0||!1)),h&2048&&Ad(_,l);break;case 24:In(n,l,u,c),h&2048&&Cd(l.alternate,l);break;default:In(n,l,u,c)}}function xa(n,l,u,c,h){for(h=h&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var g=n,_=l,k=u,T=c,B=_.flags;switch(_.tag){case 0:case 11:case 15:xa(g,_,k,T,h),Cl(8,_);break;case 23:break;case 22:var Q=_.stateNode;_.memoizedState!==null?Q._visibility&2?xa(g,_,k,T,h):Dl(g,_):(Q._visibility|=2,xa(g,_,k,T,h)),h&&B&2048&&Ad(_.alternate,_);break;case 24:xa(g,_,k,T,h),h&&B&2048&&Cd(_.alternate,_);break;default:xa(g,_,k,T,h)}l=l.sibling}}function Dl(n,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var u=n,c=l,h=c.flags;switch(c.tag){case 22:Dl(u,c),h&2048&&Ad(c.alternate,c);break;case 24:Dl(u,c),h&2048&&Cd(c.alternate,c);break;default:Dl(u,c)}l=l.sibling}}var Il=8192;function _a(n,l,u){if(n.subtreeFlags&Il)for(n=n.child;n!==null;)h0(n,l,u),n=n.sibling}function h0(n,l,u){switch(n.tag){case 26:_a(n,l,u),n.flags&Il&&n.memoizedState!==null&&KO(u,Dn,n.memoizedState,n.memoizedProps);break;case 5:_a(n,l,u);break;case 3:case 4:var c=Dn;Dn=ts(n.stateNode.containerInfo),_a(n,l,u),Dn=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=Il,Il=16777216,_a(n,l,u),Il=c):_a(n,l,u));break;default:_a(n,l,u)}}function p0(n){var l=n.alternate;if(l!==null&&(n=l.child,n!==null)){l.child=null;do l=n.sibling,n.sibling=null,n=l;while(n!==null)}}function Ul(n){var l=n.deletions;if((n.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var c=l[u];$t=c,v0(c,n)}p0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)g0(n),n=n.sibling}function g0(n){switch(n.tag){case 0:case 11:case 15:Ul(n),n.flags&2048&&Fr(9,n,n.return);break;case 3:Ul(n);break;case 12:Ul(n);break;case 22:var l=n.stateNode;n.memoizedState!==null&&l._visibility&2&&(n.return===null||n.return.tag!==13)?(l._visibility&=-3,qu(n)):Ul(n);break;default:Ul(n)}}function qu(n){var l=n.deletions;if((n.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var c=l[u];$t=c,v0(c,n)}p0(n)}for(n=n.child;n!==null;){switch(l=n,l.tag){case 0:case 11:case 15:Fr(8,l,l.return),qu(l);break;case 22:u=l.stateNode,u._visibility&2&&(u._visibility&=-3,qu(l));break;default:qu(l)}n=n.sibling}}function v0(n,l){for(;$t!==null;){var u=$t;switch(u.tag){case 0:case 11:case 15:Fr(8,u,l);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var c=u.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:xl(u.memoizedState.cache)}if(c=u.child,c!==null)c.return=u,$t=c;else e:for(u=n;$t!==null;){c=$t;var h=c.sibling,g=c.return;if(o0(c),c===u){$t=null;break e}if(h!==null){h.return=g,$t=h;break e}$t=g}}}var mO={getCacheForType:function(n){var l=zt(pt),u=l.data.get(n);return u===void 0&&(u=n(),l.data.set(n,u)),u},cacheSignal:function(){return zt(pt).controller.signal}},hO=typeof WeakMap=="function"?WeakMap:Map,qe=0,Je=null,Te=null,Ie=0,Fe=0,on=null,Hr=!1,Sa=!1,Rd=!1,vr=0,ft=0,Gr=0,Ni=0,Dd=0,un=0,ka=0,Ll=null,Qt=null,Id=!1,Bu=0,y0=0,Fu=1/0,Hu=null,Vr=null,_t=0,Yr=null,wa=null,yr=0,Ud=0,Ld=null,b0=null,Ml=0,Md=null;function sn(){return(qe&2)!==0&&Ie!==0?Ie&-Ie:R.T!==null?Hd():Dv()}function x0(){if(un===0)if((Ie&536870912)===0||Le){var n=Wo;Wo<<=1,(Wo&3932160)===0&&(Wo=262144),un=n}else un=536870912;return n=an.current,n!==null&&(n.flags|=32),un}function Jt(n,l,u){(n===Je&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)&&($a(n,0),Xr(n,Ie,un,!1)),ll(n,u),((qe&2)===0||n!==Je)&&(n===Je&&((qe&2)===0&&(Ni|=u),ft===4&&Xr(n,Ie,un,!1)),Gn(n))}function _0(n,l,u){if((qe&6)!==0)throw Error(a(327));var c=!u&&(l&127)===0&&(l&n.expiredLanes)===0||al(n,l),h=c?vO(n,l):Zd(n,l,!0),g=c;do{if(h===0){Sa&&!c&&Xr(n,l,0,!1);break}else{if(u=n.current.alternate,g&&!pO(u)){h=Zd(n,l,!1),g=!1;continue}if(h===2){if(g=l,n.errorRecoveryDisabledLanes&g)var _=0;else _=n.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){l=_;e:{var k=n;h=Ll;var T=k.current.memoizedState.isDehydrated;if(T&&($a(k,_).flags|=256),_=Zd(k,_,!1),_!==2){if(Rd&&!T){k.errorRecoveryDisabledLanes|=g,Ni|=g,h=4;break e}g=Qt,Qt=h,g!==null&&(Qt===null?Qt=g:Qt.push.apply(Qt,g))}h=_}if(g=!1,h!==2)continue}}if(h===1){$a(n,0),Xr(n,l,0,!0);break}e:{switch(c=n,g=h,g){case 0:case 1:throw Error(a(345));case 4:if((l&4194048)!==l)break;case 6:Xr(c,l,un,!Hr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((l&62914560)===l&&(h=Bu+300-Ut(),10<h)){if(Xr(c,l,un,!Hr),tu(c,0,!0)!==0)break e;yr=l,c.timeoutHandle=K0(S0.bind(null,c,u,Qt,Hu,Id,l,un,Ni,ka,Hr,g,"Throttled",-0,0),h);break e}S0(c,u,Qt,Hu,Id,l,un,Ni,ka,Hr,g,null,-0,0)}}break}while(!0);Gn(n)}function S0(n,l,u,c,h,g,_,k,T,B,Q,ee,H,V){if(n.timeoutHandle=-1,ee=l.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rr},h0(l,g,ee);var he=(g&62914560)===g?Bu-Ut():(g&4194048)===g?y0-Ut():0;if(he=WO(ee,he),he!==null){yr=g,n.cancelPendingCommit=he(O0.bind(null,n,l,g,u,c,h,_,k,T,Q,ee,null,H,V)),Xr(n,g,_,!B);return}}O0(n,l,g,u,c,h,_,k,T)}function pO(n){for(var l=n;;){var u=l.tag;if((u===0||u===11||u===15)&&l.flags&16384&&(u=l.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var c=0;c<u.length;c++){var h=u[c],g=h.getSnapshot;h=h.value;try{if(!nn(g(),h))return!1}catch{return!1}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Xr(n,l,u,c){l&=~Dd,l&=~Ni,n.suspendedLanes|=l,n.pingedLanes&=~l,c&&(n.warmLanes|=l),c=n.expirationTimes;for(var h=l;0<h;){var g=31-Qe(h),_=1<<g;c[g]=-1,h&=~_}u!==0&&Av(n,u,l)}function Gu(){return(qe&6)===0?(Pl(0),!1):!0}function Pd(){if(Te!==null){if(Fe===0)var n=Te.return;else n=Te,or=bi=null,nd(n),pa=null,Sl=0,n=Te;for(;n!==null;)Wb(n.alternate,n),n=n.return;Te=null}}function $a(n,l){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,DO(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),yr=0,Pd(),Je=n,Te=u=ar(n.current,null),Ie=l,Fe=0,on=null,Hr=!1,Sa=al(n,l),Rd=!1,ka=un=Dd=Ni=Gr=ft=0,Qt=Ll=null,Id=!1,(l&8)!==0&&(l|=l&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=l;0<c;){var h=31-Qe(c),g=1<<h;l|=n[h],c&=~g}return vr=l,mu(),u}function k0(n,l){$e=null,R.H=Ol,l===ha||l===_u?(l=My(),Fe=3):l===Ff?(l=My(),Fe=4):Fe=l===yd?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,on=l,Te===null&&(ft=1,Du(n,bn(l,n.current)))}function w0(){var n=an.current;return n===null?!0:(Ie&4194048)===Ie?kn===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?n===kn:!1}function $0(){var n=R.H;return R.H=Ol,n===null?Ol:n}function E0(){var n=R.A;return R.A=mO,n}function Vu(){ft=4,Hr||(Ie&4194048)!==Ie&&an.current!==null||(Sa=!0),(Gr&134217727)===0&&(Ni&134217727)===0||Je===null||Xr(Je,Ie,un,!1)}function Zd(n,l,u){var c=qe;qe|=2;var h=$0(),g=E0();(Je!==n||Ie!==l)&&(Hu=null,$a(n,l)),l=!1;var _=ft;e:do try{if(Fe!==0&&Te!==null){var k=Te,T=on;switch(Fe){case 8:Pd(),_=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(l=!0);var B=Fe;if(Fe=0,on=null,Ea(n,k,T,B),u&&Sa){_=0;break e}break;default:B=Fe,Fe=0,on=null,Ea(n,k,T,B)}}gO(),_=ft;break}catch(Q){k0(n,Q)}while(!0);return l&&n.shellSuspendCounter++,or=bi=null,qe=c,R.H=h,R.A=g,Te===null&&(Je=null,Ie=0,mu()),_}function gO(){for(;Te!==null;)j0(Te)}function vO(n,l){var u=qe;qe|=2;var c=$0(),h=E0();Je!==n||Ie!==l?(Hu=null,Fu=Ut()+500,$a(n,l)):Sa=al(n,l);e:do try{if(Fe!==0&&Te!==null){l=Te;var g=on;t:switch(Fe){case 1:Fe=0,on=null,Ea(n,l,g,1);break;case 2:case 9:if(Uy(g)){Fe=0,on=null,N0(l);break}l=function(){Fe!==2&&Fe!==9||Je!==n||(Fe=7),Gn(n)},g.then(l,l);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Uy(g)?(Fe=0,on=null,N0(l)):(Fe=0,on=null,Ea(n,l,g,7));break;case 5:var _=null;switch(Te.tag){case 26:_=Te.memoizedState;case 5:case 27:var k=Te;if(_?mx(_):k.stateNode.complete){Fe=0,on=null;var T=k.sibling;if(T!==null)Te=T;else{var B=k.return;B!==null?(Te=B,Yu(B)):Te=null}break t}}Fe=0,on=null,Ea(n,l,g,5);break;case 6:Fe=0,on=null,Ea(n,l,g,6);break;case 8:Pd(),ft=6;break e;default:throw Error(a(462))}}yO();break}catch(Q){k0(n,Q)}while(!0);return or=bi=null,R.H=c,R.A=h,qe=u,Te!==null?0:(Je=null,Ie=0,mu(),ft)}function yO(){for(;Te!==null&&!Wc();)j0(Te)}function j0(n){var l=Jb(n.alternate,n,vr);n.memoizedProps=n.pendingProps,l===null?Yu(n):Te=l}function N0(n){var l=n,u=l.alternate;switch(l.tag){case 15:case 0:l=Hb(u,l,l.pendingProps,l.type,void 0,Ie);break;case 11:l=Hb(u,l,l.pendingProps,l.type.render,l.ref,Ie);break;case 5:nd(l);default:Wb(u,l),l=Te=Ey(l,vr),l=Jb(u,l,vr)}n.memoizedProps=n.pendingProps,l===null?Yu(n):Te=l}function Ea(n,l,u,c){or=bi=null,nd(l),pa=null,Sl=0;var h=l.return;try{if(lO(n,h,l,u,Ie)){ft=1,Du(n,bn(u,n.current)),Te=null;return}}catch(g){if(h!==null)throw Te=h,g;ft=1,Du(n,bn(u,n.current)),Te=null;return}l.flags&32768?(Le||c===1?n=!0:Sa||(Ie&536870912)!==0?n=!1:(Hr=n=!0,(c===2||c===9||c===3||c===6)&&(c=an.current,c!==null&&c.tag===13&&(c.flags|=16384))),z0(l,n)):Yu(l)}function Yu(n){var l=n;do{if((l.flags&32768)!==0){z0(l,Hr);return}n=l.return;var u=sO(l.alternate,l,vr);if(u!==null){Te=u;return}if(l=l.sibling,l!==null){Te=l;return}Te=l=n}while(l!==null);ft===0&&(ft=5)}function z0(n,l){do{var u=cO(n.alternate,n);if(u!==null){u.flags&=32767,Te=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!l&&(n=n.sibling,n!==null)){Te=n;return}Te=n=u}while(n!==null);ft=6,Te=null}function O0(n,l,u,c,h,g,_,k,T){n.cancelPendingCommit=null;do Xu();while(_t!==0);if((qe&6)!==0)throw Error(a(327));if(l!==null){if(l===n.current)throw Error(a(177));if(g=l.lanes|l.childLanes,g|=zf,J4(n,u,g,_,k,T),n===Je&&(Te=Je=null,Ie=0),wa=l,Yr=n,yr=u,Ud=g,Ld=h,b0=c,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,SO(xe,function(){return D0(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||c){c=R.T,R.T=null,h=F.p,F.p=2,_=qe,qe|=4;try{fO(n,l,u)}finally{qe=_,F.p=h,R.T=c}}_t=1,T0(),A0(),C0()}}function T0(){if(_t===1){_t=0;var n=Yr,l=wa,u=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||u){u=R.T,R.T=null;var c=F.p;F.p=2;var h=qe;qe|=4;try{f0(l,n);var g=Wd,_=vy(n.containerInfo),k=g.focusedElem,T=g.selectionRange;if(_!==k&&k&&k.ownerDocument&&gy(k.ownerDocument.documentElement,k)){if(T!==null&&wf(k)){var B=T.start,Q=T.end;if(Q===void 0&&(Q=B),"selectionStart"in k)k.selectionStart=B,k.selectionEnd=Math.min(Q,k.value.length);else{var ee=k.ownerDocument||document,H=ee&&ee.defaultView||window;if(H.getSelection){var V=H.getSelection(),he=k.textContent.length,be=Math.min(T.start,he),Xe=T.end===void 0?be:Math.min(T.end,he);!V.extend&&be>Xe&&(_=Xe,Xe=be,be=_);var I=py(k,be),D=py(k,Xe);if(I&&D&&(V.rangeCount!==1||V.anchorNode!==I.node||V.anchorOffset!==I.offset||V.focusNode!==D.node||V.focusOffset!==D.offset)){var q=ee.createRange();q.setStart(I.node,I.offset),V.removeAllRanges(),be>Xe?(V.addRange(q),V.extend(D.node,D.offset)):(q.setEnd(D.node,D.offset),V.addRange(q))}}}}for(ee=[],V=k;V=V.parentNode;)V.nodeType===1&&ee.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<ee.length;k++){var K=ee[k];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}os=!!Kd,Wd=Kd=null}finally{qe=h,F.p=c,R.T=u}}n.current=l,_t=2}}function A0(){if(_t===2){_t=0;var n=Yr,l=wa,u=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||u){u=R.T,R.T=null;var c=F.p;F.p=2;var h=qe;qe|=4;try{l0(n,l.alternate,l)}finally{qe=h,F.p=c,R.T=u}}_t=3}}function C0(){if(_t===4||_t===3){_t=0,ef();var n=Yr,l=wa,u=yr,c=b0;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?_t=5:(_t=0,wa=Yr=null,R0(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(Vr=null),af(u),l=l.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Lt,l,void 0,(l.current.flags&128)===128)}catch{}if(c!==null){l=R.T,h=F.p,F.p=2,R.T=null;try{for(var g=n.onRecoverableError,_=0;_<c.length;_++){var k=c[_];g(k.value,{componentStack:k.stack})}}finally{R.T=l,F.p=h}}(yr&3)!==0&&Xu(),Gn(n),h=n.pendingLanes,(u&261930)!==0&&(h&42)!==0?n===Md?Ml++:(Ml=0,Md=n):Ml=0,Pl(0)}}function R0(n,l){(n.pooledCacheLanes&=l)===0&&(l=n.pooledCache,l!=null&&(n.pooledCache=null,xl(l)))}function Xu(){return T0(),A0(),C0(),D0()}function D0(){if(_t!==5)return!1;var n=Yr,l=Ud;Ud=0;var u=af(yr),c=R.T,h=F.p;try{F.p=32>u?32:u,R.T=null,u=Ld,Ld=null;var g=Yr,_=yr;if(_t=0,wa=Yr=null,yr=0,(qe&6)!==0)throw Error(a(331));var k=qe;if(qe|=4,g0(g.current),m0(g,g.current,_,u),qe=k,Pl(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Lt,g)}catch{}return!0}finally{F.p=h,R.T=c,R0(n,l)}}function I0(n,l,u){l=bn(u,l),l=vd(n.stateNode,l,2),n=Zr(n,l,2),n!==null&&(ll(n,2),Gn(n))}function He(n,l,u){if(n.tag===3)I0(n,n,u);else for(;l!==null;){if(l.tag===3){I0(l,n,u);break}else if(l.tag===1){var c=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Vr===null||!Vr.has(c))){n=bn(u,n),u=Ub(2),c=Zr(l,u,2),c!==null&&(Lb(u,c,l,n),ll(c,2),Gn(c));break}}l=l.return}}function qd(n,l,u){var c=n.pingCache;if(c===null){c=n.pingCache=new hO;var h=new Set;c.set(l,h)}else h=c.get(l),h===void 0&&(h=new Set,c.set(l,h));h.has(u)||(Rd=!0,h.add(u),n=bO.bind(null,n,l,u),l.then(n,n))}function bO(n,l,u){var c=n.pingCache;c!==null&&c.delete(l),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Je===n&&(Ie&u)===u&&(ft===4||ft===3&&(Ie&62914560)===Ie&&300>Ut()-Bu?(qe&2)===0&&$a(n,0):Dd|=u,ka===Ie&&(ka=0)),Gn(n)}function U0(n,l){l===0&&(l=Tv()),n=gi(n,l),n!==null&&(ll(n,l),Gn(n))}function xO(n){var l=n.memoizedState,u=0;l!==null&&(u=l.retryLane),U0(n,u)}function _O(n,l){var u=0;switch(n.tag){case 31:case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(u=h.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(l),U0(n,u)}function SO(n,l){return Vi(n,l)}var Qu=null,ja=null,Bd=!1,Ju=!1,Fd=!1,Qr=0;function Gn(n){n!==ja&&n.next===null&&(ja===null?Qu=ja=n:ja=ja.next=n),Ju=!0,Bd||(Bd=!0,wO())}function Pl(n,l){if(!Fd&&Ju){Fd=!0;do for(var u=!1,c=Qu;c!==null;){if(n!==0){var h=c.pendingLanes;if(h===0)var g=0;else{var _=c.suspendedLanes,k=c.pingedLanes;g=(1<<31-Qe(42|n)+1)-1,g&=h&~(_&~k),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(u=!0,Z0(c,g))}else g=Ie,g=tu(c,c===Je?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||al(c,g)||(u=!0,Z0(c,g));c=c.next}while(u);Fd=!1}}function kO(){L0()}function L0(){Ju=Bd=!1;var n=0;Qr!==0&&RO()&&(n=Qr);for(var l=Ut(),u=null,c=Qu;c!==null;){var h=c.next,g=M0(c,l);g===0?(c.next=null,u===null?Qu=h:u.next=h,h===null&&(ja=u)):(u=c,(n!==0||(g&3)!==0)&&(Ju=!0)),c=h}_t!==0&&_t!==5||Pl(n),Qr!==0&&(Qr=0)}function M0(n,l){for(var u=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var _=31-Qe(g),k=1<<_,T=h[_];T===-1?((k&u)===0||(k&c)!==0)&&(h[_]=Q4(k,l)):T<=l&&(n.expiredLanes|=k),g&=~k}if(l=Je,u=Ie,u=tu(n,n===l?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,u===0||n===l&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&il(c),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||al(n,u)){if(l=u&-u,l===n.callbackPriority)return l;switch(c!==null&&il(c),af(u)){case 2:case 8:u=fe;break;case 32:u=xe;break;case 268435456:u=Be;break;default:u=xe}return c=P0.bind(null,n),u=Vi(u,c),n.callbackPriority=l,n.callbackNode=u,l}return c!==null&&c!==null&&il(c),n.callbackPriority=2,n.callbackNode=null,2}function P0(n,l){if(_t!==0&&_t!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(Xu()&&n.callbackNode!==u)return null;var c=Ie;return c=tu(n,n===Je?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(_0(n,c,l),M0(n,Ut()),n.callbackNode!=null&&n.callbackNode===u?P0.bind(null,n):null)}function Z0(n,l){if(Xu())return null;_0(n,l,!0)}function wO(){IO(function(){(qe&6)!==0?Vi(J,kO):L0()})}function Hd(){if(Qr===0){var n=da;n===0&&(n=Ko,Ko<<=1,(Ko&261888)===0&&(Ko=256)),Qr=n}return Qr}function q0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:au(""+n)}function B0(n,l){var u=l.ownerDocument.createElement("input");return u.name=l.name,u.value=l.value,n.id&&u.setAttribute("form",n.id),l.parentNode.insertBefore(u,l),n=new FormData(n),u.parentNode.removeChild(u),n}function $O(n,l,u,c,h){if(l==="submit"&&u&&u.stateNode===h){var g=q0((h[Ht]||null).action),_=c.submitter;_&&(l=(l=_[Ht]||null)?q0(l.formAction):_.getAttribute("formAction"),l!==null&&(g=l,_=null));var k=new su("action","action",null,c,h);n.push({event:k,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Qr!==0){var T=_?B0(h,_):new FormData(h);fd(u,{pending:!0,data:T,method:h.method,action:g},null,T)}}else typeof g=="function"&&(k.preventDefault(),T=_?B0(h,_):new FormData(h),fd(u,{pending:!0,data:T,method:h.method,action:g},g,T))},currentTarget:h}]})}}for(var Gd=0;Gd<Nf.length;Gd++){var Vd=Nf[Gd],EO=Vd.toLowerCase(),jO=Vd[0].toUpperCase()+Vd.slice(1);Rn(EO,"on"+jO)}Rn(xy,"onAnimationEnd"),Rn(_y,"onAnimationIteration"),Rn(Sy,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(Bz,"onTransitionRun"),Rn(Fz,"onTransitionStart"),Rn(Hz,"onTransitionCancel"),Rn(ky,"onTransitionEnd"),Ki("onMouseEnter",["mouseout","mouseover"]),Ki("onMouseLeave",["mouseout","mouseover"]),Ki("onPointerEnter",["pointerout","pointerover"]),Ki("onPointerLeave",["pointerout","pointerover"]),di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),di("onBeforeInput",["compositionend","keypress","textInput","paste"]),di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),NO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function F0(n,l){l=(l&4)!==0;for(var u=0;u<n.length;u++){var c=n[u],h=c.event;c=c.listeners;e:{var g=void 0;if(l)for(var _=c.length-1;0<=_;_--){var k=c[_],T=k.instance,B=k.currentTarget;if(k=k.listener,T!==g&&h.isPropagationStopped())break e;g=k,h.currentTarget=B;try{g(h)}catch(Q){du(Q)}h.currentTarget=null,g=T}else for(_=0;_<c.length;_++){if(k=c[_],T=k.instance,B=k.currentTarget,k=k.listener,T!==g&&h.isPropagationStopped())break e;g=k,h.currentTarget=B;try{g(h)}catch(Q){du(Q)}h.currentTarget=null,g=T}}}}function Ae(n,l){var u=l[lf];u===void 0&&(u=l[lf]=new Set);var c=n+"__bubble";u.has(c)||(H0(l,n,2,!1),u.add(c))}function Yd(n,l,u){var c=0;l&&(c|=4),H0(u,n,c,l)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function Xd(n){if(!n[Ku]){n[Ku]=!0,Lv.forEach(function(u){u!=="selectionchange"&&(NO.has(u)||Yd(u,!1,n),Yd(u,!0,n))});var l=n.nodeType===9?n:n.ownerDocument;l===null||l[Ku]||(l[Ku]=!0,Yd("selectionchange",!1,l))}}function H0(n,l,u,c){switch(xx(l)){case 2:var h=n2;break;case 8:h=r2;break;default:h=cm}u=h.bind(null,l,u,n),h=void 0,!pf||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(l,u,{capture:!0,passive:h}):n.addEventListener(l,u,!0):h!==void 0?n.addEventListener(l,u,{passive:h}):n.addEventListener(l,u,!1)}function Qd(n,l,u,c,h){var g=c;if((l&1)===0&&(l&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var k=c.stateNode.containerInfo;if(k===h)break;if(_===4)for(_=c.return;_!==null;){var T=_.tag;if((T===3||T===4)&&_.stateNode.containerInfo===h)return;_=_.return}for(;k!==null;){if(_=Xi(k),_===null)return;if(T=_.tag,T===5||T===6||T===26||T===27){c=g=_;continue e}k=k.parentNode}}c=c.return}Qv(function(){var B=g,Q=mf(u),ee=[];e:{var H=wy.get(n);if(H!==void 0){var V=su,he=n;switch(n){case"keypress":if(ou(u)===0)break e;case"keydown":case"keyup":V=_z;break;case"focusin":he="focus",V=bf;break;case"focusout":he="blur",V=bf;break;case"beforeblur":case"afterblur":V=bf;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Wv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=sz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=wz;break;case xy:case _y:case Sy:V=dz;break;case ky:V=Ez;break;case"scroll":case"scrollend":V=oz;break;case"wheel":V=Nz;break;case"copy":case"cut":case"paste":V=hz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=ty;break;case"toggle":case"beforetoggle":V=Oz}var be=(l&4)!==0,Xe=!be&&(n==="scroll"||n==="scrollend"),I=be?H!==null?H+"Capture":null:H;be=[];for(var D=B,q;D!==null;){var K=D;if(q=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||q===null||I===null||(K=sl(D,I),K!=null&&be.push(ql(D,K,q))),Xe)break;D=D.return}0<be.length&&(H=new V(H,he,null,u,Q),ee.push({event:H,listeners:be}))}}if((l&7)===0){e:{if(H=n==="mouseover"||n==="pointerover",V=n==="mouseout"||n==="pointerout",H&&u!==df&&(he=u.relatedTarget||u.fromElement)&&(Xi(he)||he[Yi]))break e;if((V||H)&&(H=Q.window===Q?Q:(H=Q.ownerDocument)?H.defaultView||H.parentWindow:window,V?(he=u.relatedTarget||u.toElement,V=B,he=he?Xi(he):null,he!==null&&(Xe=o(he),be=he.tag,he!==Xe||be!==5&&be!==27&&be!==6)&&(he=null)):(V=null,he=B),V!==he)){if(be=Wv,K="onMouseLeave",I="onMouseEnter",D="mouse",(n==="pointerout"||n==="pointerover")&&(be=ty,K="onPointerLeave",I="onPointerEnter",D="pointer"),Xe=V==null?H:ul(V),q=he==null?H:ul(he),H=new be(K,D+"leave",V,u,Q),H.target=Xe,H.relatedTarget=q,K=null,Xi(Q)===B&&(be=new be(I,D+"enter",he,u,Q),be.target=q,be.relatedTarget=Xe,K=be),Xe=K,V&&he)t:{for(be=zO,I=V,D=he,q=0,K=I;K;K=be(K))q++;K=0;for(var ve=D;ve;ve=be(ve))K++;for(;0<q-K;)I=be(I),q--;for(;0<K-q;)D=be(D),K--;for(;q--;){if(I===D||D!==null&&I===D.alternate){be=I;break t}I=be(I),D=be(D)}be=null}else be=null;V!==null&&G0(ee,H,V,be,!1),he!==null&&Xe!==null&&G0(ee,Xe,he,be,!0)}}e:{if(H=B?ul(B):window,V=H.nodeName&&H.nodeName.toLowerCase(),V==="select"||V==="input"&&H.type==="file")var Pe=sy;else if(oy(H))if(cy)Pe=Pz;else{Pe=Lz;var ge=Uz}else V=H.nodeName,!V||V.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&ff(B.elementType)&&(Pe=sy):Pe=Mz;if(Pe&&(Pe=Pe(n,B))){uy(ee,Pe,u,Q);break e}ge&&ge(n,H,B),n==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&cf(H,"number",H.value)}switch(ge=B?ul(B):window,n){case"focusin":(oy(ge)||ge.contentEditable==="true")&&(ia=ge,$f=B,vl=null);break;case"focusout":vl=$f=ia=null;break;case"mousedown":Ef=!0;break;case"contextmenu":case"mouseup":case"dragend":Ef=!1,yy(ee,u,Q);break;case"selectionchange":if(qz)break;case"keydown":case"keyup":yy(ee,u,Q)}var je;if(_f)e:{switch(n){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else ra?ay(n,u)&&(Ue="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(Ue="onCompositionStart");Ue&&(ny&&u.locale!=="ko"&&(ra||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&ra&&(je=Jv()):(Rr=Q,gf="value"in Rr?Rr.value:Rr.textContent,ra=!0)),ge=Wu(B,Ue),0<ge.length&&(Ue=new ey(Ue,n,null,u,Q),ee.push({event:Ue,listeners:ge}),je?Ue.data=je:(je=ly(u),je!==null&&(Ue.data=je)))),(je=Az?Cz(n,u):Rz(n,u))&&(Ue=Wu(B,"onBeforeInput"),0<Ue.length&&(ge=new ey("onBeforeInput","beforeinput",null,u,Q),ee.push({event:ge,listeners:Ue}),ge.data=je)),$O(ee,n,B,u,Q)}F0(ee,l)})}function ql(n,l,u){return{instance:n,listener:l,currentTarget:u}}function Wu(n,l){for(var u=l+"Capture",c=[];n!==null;){var h=n,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=sl(n,u),h!=null&&c.unshift(ql(n,h,g)),h=sl(n,l),h!=null&&c.push(ql(n,h,g))),n.tag===3)return c;n=n.return}return[]}function zO(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function G0(n,l,u,c,h){for(var g=l._reactName,_=[];u!==null&&u!==c;){var k=u,T=k.alternate,B=k.stateNode;if(k=k.tag,T!==null&&T===c)break;k!==5&&k!==26&&k!==27||B===null||(T=B,h?(B=sl(u,g),B!=null&&_.unshift(ql(u,B,T))):h||(B=sl(u,g),B!=null&&_.push(ql(u,B,T)))),u=u.return}_.length!==0&&n.push({event:l,listeners:_})}var OO=/\r\n?/g,TO=/\u0000|\uFFFD/g;function V0(n){return(typeof n=="string"?n:""+n).replace(OO,`
9
+ `).replace(TO,"")}function Y0(n,l){return l=V0(l),V0(n)===l}function Ye(n,l,u,c,h,g){switch(u){case"children":typeof c=="string"?l==="body"||l==="textarea"&&c===""||ea(n,c):(typeof c=="number"||typeof c=="bigint")&&l!=="body"&&ea(n,""+c);break;case"className":ru(n,"class",c);break;case"tabIndex":ru(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":ru(n,u,c);break;case"style":Yv(n,c,g);break;case"data":if(l!=="object"){ru(n,"data",c);break}case"src":case"href":if(c===""&&(l!=="a"||u!=="href")){n.removeAttribute(u);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(u);break}c=au(""+c),n.setAttribute(u,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(u,"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 g=="function"&&(u==="formAction"?(l!=="input"&&Ye(n,l,"name",h.name,h,null),Ye(n,l,"formEncType",h.formEncType,h,null),Ye(n,l,"formMethod",h.formMethod,h,null),Ye(n,l,"formTarget",h.formTarget,h,null)):(Ye(n,l,"encType",h.encType,h,null),Ye(n,l,"method",h.method,h,null),Ye(n,l,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(u);break}c=au(""+c),n.setAttribute(u,c);break;case"onClick":c!=null&&(n.onclick=rr);break;case"onScroll":c!=null&&Ae("scroll",n);break;case"onScrollEnd":c!=null&&Ae("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(u=c.__html,u!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=u}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}u=au(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(u,""+c):n.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":c===!0?n.setAttribute(u,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(u,c):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(u,c):n.removeAttribute(u);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(u):n.setAttribute(u,c);break;case"popover":Ae("beforetoggle",n),Ae("toggle",n),nu(n,"popover",c);break;case"xlinkActuate":nr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":nr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":nr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":nr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":nr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":nr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":nr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":nr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":nr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":nu(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=az.get(u)||u,nu(n,u,c))}}function Jd(n,l,u,c,h,g){switch(u){case"style":Yv(n,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(u=c.__html,u!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=u}}break;case"children":typeof c=="string"?ea(n,c):(typeof c=="number"||typeof c=="bigint")&&ea(n,""+c);break;case"onScroll":c!=null&&Ae("scroll",n);break;case"onScrollEnd":c!=null&&Ae("scrollend",n);break;case"onClick":c!=null&&(n.onclick=rr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mv.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(h=u.endsWith("Capture"),l=u.slice(2,h?u.length-7:void 0),g=n[Ht]||null,g=g!=null?g[u]:null,typeof g=="function"&&n.removeEventListener(l,g,h),typeof c=="function")){typeof g!="function"&&g!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(l,c,h);break e}u in n?n[u]=c:c===!0?n.setAttribute(u,""):nu(n,u,c)}}}function Tt(n,l,u){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",n),Ae("load",n);var c=!1,h=!1,g;for(g in u)if(u.hasOwnProperty(g)){var _=u[g];if(_!=null)switch(g){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,l));default:Ye(n,l,g,_,u,null)}}h&&Ye(n,l,"srcSet",u.srcSet,u,null),c&&Ye(n,l,"src",u.src,u,null);return;case"input":Ae("invalid",n);var k=g=_=h=null,T=null,B=null;for(c in u)if(u.hasOwnProperty(c)){var Q=u[c];if(Q!=null)switch(c){case"name":h=Q;break;case"type":_=Q;break;case"checked":T=Q;break;case"defaultChecked":B=Q;break;case"value":g=Q;break;case"defaultValue":k=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,l));break;default:Ye(n,l,c,Q,u,null)}}Fv(n,g,k,T,B,_,h,!1);return;case"select":Ae("invalid",n),c=_=g=null;for(h in u)if(u.hasOwnProperty(h)&&(k=u[h],k!=null))switch(h){case"value":g=k;break;case"defaultValue":_=k;break;case"multiple":c=k;default:Ye(n,l,h,k,u,null)}l=g,u=_,n.multiple=!!c,l!=null?Wi(n,!!c,l,!1):u!=null&&Wi(n,!!c,u,!0);return;case"textarea":Ae("invalid",n),g=h=c=null;for(_ in u)if(u.hasOwnProperty(_)&&(k=u[_],k!=null))switch(_){case"value":c=k;break;case"defaultValue":h=k;break;case"children":g=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(a(91));break;default:Ye(n,l,_,k,u,null)}Gv(n,c,h,g);return;case"option":for(T in u)u.hasOwnProperty(T)&&(c=u[T],c!=null)&&(T==="selected"?n.selected=c&&typeof c!="function"&&typeof c!="symbol":Ye(n,l,T,c,u,null));return;case"dialog":Ae("beforetoggle",n),Ae("toggle",n),Ae("cancel",n),Ae("close",n);break;case"iframe":case"object":Ae("load",n);break;case"video":case"audio":for(c=0;c<Zl.length;c++)Ae(Zl[c],n);break;case"image":Ae("error",n),Ae("load",n);break;case"details":Ae("toggle",n);break;case"embed":case"source":case"link":Ae("error",n),Ae("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in u)if(u.hasOwnProperty(B)&&(c=u[B],c!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,l));default:Ye(n,l,B,c,u,null)}return;default:if(ff(l)){for(Q in u)u.hasOwnProperty(Q)&&(c=u[Q],c!==void 0&&Jd(n,l,Q,c,u,void 0));return}}for(k in u)u.hasOwnProperty(k)&&(c=u[k],c!=null&&Ye(n,l,k,c,u,null))}function AO(n,l,u,c){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,_=null,k=null,T=null,B=null,Q=null;for(V in u){var ee=u[V];if(u.hasOwnProperty(V)&&ee!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=ee;default:c.hasOwnProperty(V)||Ye(n,l,V,null,c,ee)}}for(var H in c){var V=c[H];if(ee=u[H],c.hasOwnProperty(H)&&(V!=null||ee!=null))switch(H){case"type":g=V;break;case"name":h=V;break;case"checked":B=V;break;case"defaultChecked":Q=V;break;case"value":_=V;break;case"defaultValue":k=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(a(137,l));break;default:V!==ee&&Ye(n,l,H,V,c,ee)}}sf(n,_,k,T,B,Q,g,h);return;case"select":V=_=k=H=null;for(g in u)if(T=u[g],u.hasOwnProperty(g)&&T!=null)switch(g){case"value":break;case"multiple":V=T;default:c.hasOwnProperty(g)||Ye(n,l,g,null,c,T)}for(h in c)if(g=c[h],T=u[h],c.hasOwnProperty(h)&&(g!=null||T!=null))switch(h){case"value":H=g;break;case"defaultValue":k=g;break;case"multiple":_=g;default:g!==T&&Ye(n,l,h,g,c,T)}l=k,u=_,c=V,H!=null?Wi(n,!!u,H,!1):!!c!=!!u&&(l!=null?Wi(n,!!u,l,!0):Wi(n,!!u,u?[]:"",!1));return;case"textarea":V=H=null;for(k in u)if(h=u[k],u.hasOwnProperty(k)&&h!=null&&!c.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ye(n,l,k,null,c,h)}for(_ in c)if(h=c[_],g=u[_],c.hasOwnProperty(_)&&(h!=null||g!=null))switch(_){case"value":H=h;break;case"defaultValue":V=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==g&&Ye(n,l,_,h,c,g)}Hv(n,H,V);return;case"option":for(var he in u)H=u[he],u.hasOwnProperty(he)&&H!=null&&!c.hasOwnProperty(he)&&(he==="selected"?n.selected=!1:Ye(n,l,he,null,c,H));for(T in c)H=c[T],V=u[T],c.hasOwnProperty(T)&&H!==V&&(H!=null||V!=null)&&(T==="selected"?n.selected=H&&typeof H!="function"&&typeof H!="symbol":Ye(n,l,T,H,c,V));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in u)H=u[be],u.hasOwnProperty(be)&&H!=null&&!c.hasOwnProperty(be)&&Ye(n,l,be,null,c,H);for(B in c)if(H=c[B],V=u[B],c.hasOwnProperty(B)&&H!==V&&(H!=null||V!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,l));break;default:Ye(n,l,B,H,c,V)}return;default:if(ff(l)){for(var Xe in u)H=u[Xe],u.hasOwnProperty(Xe)&&H!==void 0&&!c.hasOwnProperty(Xe)&&Jd(n,l,Xe,void 0,c,H);for(Q in c)H=c[Q],V=u[Q],!c.hasOwnProperty(Q)||H===V||H===void 0&&V===void 0||Jd(n,l,Q,H,c,V);return}}for(var I in u)H=u[I],u.hasOwnProperty(I)&&H!=null&&!c.hasOwnProperty(I)&&Ye(n,l,I,null,c,H);for(ee in c)H=c[ee],V=u[ee],!c.hasOwnProperty(ee)||H===V||H==null&&V==null||Ye(n,l,ee,H,c,V)}function X0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function CO(){if(typeof performance.getEntriesByType=="function"){for(var n=0,l=0,u=performance.getEntriesByType("resource"),c=0;c<u.length;c++){var h=u[c],g=h.transferSize,_=h.initiatorType,k=h.duration;if(g&&k&&X0(_)){for(_=0,k=h.responseEnd,c+=1;c<u.length;c++){var T=u[c],B=T.startTime;if(B>k)break;var Q=T.transferSize,ee=T.initiatorType;Q&&X0(ee)&&(T=T.responseEnd,_+=Q*(T<k?1:(k-B)/(T-B)))}if(--c,l+=8*(g+_)/(h.duration/1e3),n++,10<n)break}}if(0<n)return l/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Kd=null,Wd=null;function es(n){return n.nodeType===9?n:n.ownerDocument}function Q0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function J0(n,l){if(n===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&l==="foreignObject"?0:n}function em(n,l){return n==="textarea"||n==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var tm=null;function RO(){var n=window.event;return n&&n.type==="popstate"?n===tm?!1:(tm=n,!0):(tm=null,!1)}var K0=typeof setTimeout=="function"?setTimeout:void 0,DO=typeof clearTimeout=="function"?clearTimeout:void 0,W0=typeof Promise=="function"?Promise:void 0,IO=typeof queueMicrotask=="function"?queueMicrotask:typeof W0<"u"?function(n){return W0.resolve(null).then(n).catch(UO)}:K0;function UO(n){setTimeout(function(){throw n})}function Jr(n){return n==="head"}function ex(n,l){var u=l,c=0;do{var h=u.nextSibling;if(n.removeChild(u),h&&h.nodeType===8)if(u=h.data,u==="/$"||u==="/&"){if(c===0){n.removeChild(h),Ta(l);return}c--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")c++;else if(u==="html")Bl(n.ownerDocument.documentElement);else if(u==="head"){u=n.ownerDocument.head,Bl(u);for(var g=u.firstChild;g;){var _=g.nextSibling,k=g.nodeName;g[ol]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&g.rel.toLowerCase()==="stylesheet"||u.removeChild(g),g=_}}else u==="body"&&Bl(n.ownerDocument.body);u=h}while(u);Ta(l)}function tx(n,l){var u=n;n=0;do{var c=u.nextSibling;if(u.nodeType===1?l?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(l?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),c&&c.nodeType===8)if(u=c.data,u==="/$"){if(n===0)break;n--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||n++;u=c}while(u)}function nm(n){var l=n.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var u=l;switch(l=l.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":nm(u),of(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function LO(n,l,u,c){for(;n.nodeType===1;){var h=u;if(n.nodeName.toLowerCase()!==l.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[ol])switch(l){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(l==="input"&&n.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=wn(n.nextSibling),n===null)break}return null}function MO(n,l,u){if(l==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=wn(n.nextSibling),n===null))return null;return n}function nx(n,l){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=wn(n.nextSibling),n===null))return null;return n}function rm(n){return n.data==="$?"||n.data==="$~"}function im(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function PO(n,l){var u=n.ownerDocument;if(n.data==="$~")n._reactRetry=l;else if(n.data!=="$?"||u.readyState!=="loading")l();else{var c=function(){l(),u.removeEventListener("DOMContentLoaded",c)};u.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function wn(n){for(;n!=null;n=n.nextSibling){var l=n.nodeType;if(l===1||l===3)break;if(l===8){if(l=n.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return n}var am=null;function rx(n){n=n.nextSibling;for(var l=0;n;){if(n.nodeType===8){var u=n.data;if(u==="/$"||u==="/&"){if(l===0)return wn(n.nextSibling);l--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||l++}n=n.nextSibling}return null}function ix(n){n=n.previousSibling;for(var l=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(l===0)return n;l--}else u!=="/$"&&u!=="/&"||l++}n=n.previousSibling}return null}function ax(n,l,u){switch(l=es(u),n){case"html":if(n=l.documentElement,!n)throw Error(a(452));return n;case"head":if(n=l.head,!n)throw Error(a(453));return n;case"body":if(n=l.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Bl(n){for(var l=n.attributes;l.length;)n.removeAttributeNode(l[0]);of(n)}var $n=new Map,lx=new Set;function ts(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var br=F.d;F.d={f:ZO,r:qO,D:BO,C:FO,L:HO,m:GO,X:YO,S:VO,M:XO};function ZO(){var n=br.f(),l=Gu();return n||l}function qO(n){var l=Qi(n);l!==null&&l.tag===5&&l.type==="form"?kb(l):br.r(n)}var Na=typeof document>"u"?null:document;function ox(n,l,u){var c=Na;if(c&&typeof l=="string"&&l){var h=vn(l);h='link[rel="'+n+'"][href="'+h+'"]',typeof u=="string"&&(h+='[crossorigin="'+u+'"]'),lx.has(h)||(lx.add(h),n={rel:n,crossOrigin:u,href:l},c.querySelector(h)===null&&(l=c.createElement("link"),Tt(l,"link",n),wt(l),c.head.appendChild(l)))}}function BO(n){br.D(n),ox("dns-prefetch",n,null)}function FO(n,l){br.C(n,l),ox("preconnect",n,l)}function HO(n,l,u){br.L(n,l,u);var c=Na;if(c&&n&&l){var h='link[rel="preload"][as="'+vn(l)+'"]';l==="image"&&u&&u.imageSrcSet?(h+='[imagesrcset="'+vn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(h+='[imagesizes="'+vn(u.imageSizes)+'"]')):h+='[href="'+vn(n)+'"]';var g=h;switch(l){case"style":g=za(n);break;case"script":g=Oa(n)}$n.has(g)||(n=v({rel:"preload",href:l==="image"&&u&&u.imageSrcSet?void 0:n,as:l},u),$n.set(g,n),c.querySelector(h)!==null||l==="style"&&c.querySelector(Fl(g))||l==="script"&&c.querySelector(Hl(g))||(l=c.createElement("link"),Tt(l,"link",n),wt(l),c.head.appendChild(l)))}}function GO(n,l){br.m(n,l);var u=Na;if(u&&n){var c=l&&typeof l.as=="string"?l.as:"script",h='link[rel="modulepreload"][as="'+vn(c)+'"][href="'+vn(n)+'"]',g=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Oa(n)}if(!$n.has(g)&&(n=v({rel:"modulepreload",href:n},l),$n.set(g,n),u.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Hl(g)))return}c=u.createElement("link"),Tt(c,"link",n),wt(c),u.head.appendChild(c)}}}function VO(n,l,u){br.S(n,l,u);var c=Na;if(c&&n){var h=Ji(c).hoistableStyles,g=za(n);l=l||"default";var _=h.get(g);if(!_){var k={loading:0,preload:null};if(_=c.querySelector(Fl(g)))k.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":l},u),(u=$n.get(g))&&lm(n,u);var T=_=c.createElement("link");wt(T),Tt(T,"link",n),T._p=new Promise(function(B,Q){T.onload=B,T.onerror=Q}),T.addEventListener("load",function(){k.loading|=1}),T.addEventListener("error",function(){k.loading|=2}),k.loading|=4,ns(_,l,c)}_={type:"stylesheet",instance:_,count:1,state:k},h.set(g,_)}}}function YO(n,l){br.X(n,l);var u=Na;if(u&&n){var c=Ji(u).hoistableScripts,h=Oa(n),g=c.get(h);g||(g=u.querySelector(Hl(h)),g||(n=v({src:n,async:!0},l),(l=$n.get(h))&&om(n,l),g=u.createElement("script"),wt(g),Tt(g,"link",n),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(h,g))}}function XO(n,l){br.M(n,l);var u=Na;if(u&&n){var c=Ji(u).hoistableScripts,h=Oa(n),g=c.get(h);g||(g=u.querySelector(Hl(h)),g||(n=v({src:n,async:!0,type:"module"},l),(l=$n.get(h))&&om(n,l),g=u.createElement("script"),wt(g),Tt(g,"link",n),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(h,g))}}function ux(n,l,u,c){var h=(h=pe.current)?ts(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(l=za(u.href),u=Ji(h).hoistableStyles,c=u.get(l),c||(c={type:"style",instance:null,count:0,state:null},u.set(l,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=za(u.href);var g=Ji(h).hoistableStyles,_=g.get(n);if(_||(h=h.ownerDocument||h,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,_),(g=h.querySelector(Fl(n)))&&!g._p&&(_.instance=g,_.state.loading=5),$n.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},$n.set(n,u),g||QO(h,n,u,_.state))),l&&c===null)throw Error(a(528,""));return _}if(l&&c!==null)throw Error(a(529,""));return null;case"script":return l=u.async,u=u.src,typeof u=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Oa(u),u=Ji(h).hoistableScripts,c=u.get(l),c||(c={type:"script",instance:null,count:0,state:null},u.set(l,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function za(n){return'href="'+vn(n)+'"'}function Fl(n){return'link[rel="stylesheet"]['+n+"]"}function sx(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function QO(n,l,u,c){n.querySelector('link[rel="preload"][as="style"]['+l+"]")?c.loading=1:(l=n.createElement("link"),c.preload=l,l.addEventListener("load",function(){return c.loading|=1}),l.addEventListener("error",function(){return c.loading|=2}),Tt(l,"link",u),wt(l),n.head.appendChild(l))}function Oa(n){return'[src="'+vn(n)+'"]'}function Hl(n){return"script[async]"+n}function cx(n,l,u){if(l.count++,l.instance===null)switch(l.type){case"style":var c=n.querySelector('style[data-href~="'+vn(u.href)+'"]');if(c)return l.instance=c,wt(c),c;var h=v({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),wt(c),Tt(c,"style",h),ns(c,u.precedence,n),l.instance=c;case"stylesheet":h=za(u.href);var g=n.querySelector(Fl(h));if(g)return l.state.loading|=4,l.instance=g,wt(g),g;c=sx(u),(h=$n.get(h))&&lm(c,h),g=(n.ownerDocument||n).createElement("link"),wt(g);var _=g;return _._p=new Promise(function(k,T){_.onload=k,_.onerror=T}),Tt(g,"link",c),l.state.loading|=4,ns(g,u.precedence,n),l.instance=g;case"script":return g=Oa(u.src),(h=n.querySelector(Hl(g)))?(l.instance=h,wt(h),h):(c=u,(h=$n.get(g))&&(c=v({},u),om(c,h)),n=n.ownerDocument||n,h=n.createElement("script"),wt(h),Tt(h,"link",c),n.head.appendChild(h),l.instance=h);case"void":return null;default:throw Error(a(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(c=l.instance,l.state.loading|=4,ns(c,u.precedence,n));return l.instance}function ns(n,l,u){for(var c=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,g=h,_=0;_<c.length;_++){var k=c[_];if(k.dataset.precedence===l)g=k;else if(g!==h)break}g?g.parentNode.insertBefore(n,g.nextSibling):(l=u.nodeType===9?u.head:u,l.insertBefore(n,l.firstChild))}function lm(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.title==null&&(n.title=l.title)}function om(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.integrity==null&&(n.integrity=l.integrity)}var rs=null;function fx(n,l,u){if(rs===null){var c=new Map,h=rs=new Map;h.set(u,c)}else h=rs,c=h.get(u),c||(c=new Map,h.set(u,c));if(c.has(n))return c;for(c.set(n,null),u=u.getElementsByTagName(n),h=0;h<u.length;h++){var g=u[h];if(!(g[ol]||g[jt]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var _=g.getAttribute(l)||"";_=n+_;var k=c.get(_);k?k.push(g):c.set(_,[g])}}return c}function dx(n,l,u){n=n.ownerDocument||n,n.head.insertBefore(u,l==="title"?n.querySelector("head > title"):null)}function JO(n,l,u){if(u===1||l.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(n=l.disabled,typeof l.precedence=="string"&&n==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function mx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function KO(n,l,u,c){if(u.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var h=za(c.href),g=l.querySelector(Fl(h));if(g){l=g._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(n.count++,n=is.bind(n),l.then(n,n)),u.state.loading|=4,u.instance=g,wt(g);return}g=l.ownerDocument||l,c=sx(c),(h=$n.get(h))&&lm(c,h),g=g.createElement("link"),wt(g);var _=g;_._p=new Promise(function(k,T){_.onload=k,_.onerror=T}),Tt(g,"link",c),u.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(u,l),(l=u.state.preload)&&(u.state.loading&3)===0&&(n.count++,u=is.bind(n),l.addEventListener("load",u),l.addEventListener("error",u))}}var um=0;function WO(n,l){return n.stylesheets&&n.count===0&&ls(n,n.stylesheets),0<n.count||0<n.imgCount?function(u){var c=setTimeout(function(){if(n.stylesheets&&ls(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+l);0<n.imgBytes&&um===0&&(um=62500*CO());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ls(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>um?50:800)+l);return n.unsuspend=u,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function is(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ls(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var as=null;function ls(n,l){n.stylesheets=null,n.unsuspend!==null&&(n.count++,as=new Map,l.forEach(e2,n),as=null,is.call(n))}function e2(n,l){if(!(l.state.loading&4)){var u=as.get(n);if(u)var c=u.get(null);else{u=new Map,as.set(n,u);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var _=h[g];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(u.set(_.dataset.precedence,_),c=_)}c&&u.set(null,c)}h=l.instance,_=h.getAttribute("data-precedence"),g=u.get(_)||c,g===c&&u.set(null,h),u.set(_,h),this.count++,c=is.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),g?g.parentNode.insertBefore(h,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),l.state.loading|=4}}var Gl={$$typeof:O,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function t2(n,l,u,c,h,g,_,k,T){this.tag=1,this.containerInfo=n,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=nf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nf(0),this.hiddenUpdates=nf(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function hx(n,l,u,c,h,g,_,k,T,B,Q,ee){return n=new t2(n,l,u,_,T,B,Q,ee,k),l=1,g===!0&&(l|=24),g=rn(3,null,null,l),n.current=g,g.stateNode=n,l=Zf(),l.refCount++,n.pooledCache=l,l.refCount++,g.memoizedState={element:c,isDehydrated:u,cache:l},Hf(g),n}function px(n){return n?(n=oa,n):oa}function gx(n,l,u,c,h,g){h=px(h),c.context===null?c.context=h:c.pendingContext=h,c=Pr(l),c.payload={element:u},g=g===void 0?null:g,g!==null&&(c.callback=g),u=Zr(n,c,l),u!==null&&(Jt(u,n,l),wl(u,n,l))}function vx(n,l){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<l?u:l}}function sm(n,l){vx(n,l),(n=n.alternate)&&vx(n,l)}function yx(n){if(n.tag===13||n.tag===31){var l=gi(n,67108864);l!==null&&Jt(l,n,67108864),sm(n,67108864)}}function bx(n){if(n.tag===13||n.tag===31){var l=sn();l=rf(l);var u=gi(n,l);u!==null&&Jt(u,n,l),sm(n,l)}}var os=!0;function n2(n,l,u,c){var h=R.T;R.T=null;var g=F.p;try{F.p=2,cm(n,l,u,c)}finally{F.p=g,R.T=h}}function r2(n,l,u,c){var h=R.T;R.T=null;var g=F.p;try{F.p=8,cm(n,l,u,c)}finally{F.p=g,R.T=h}}function cm(n,l,u,c){if(os){var h=fm(c);if(h===null)Qd(n,l,c,us,u),_x(n,c);else if(a2(h,n,l,u,c))c.stopPropagation();else if(_x(n,c),l&4&&-1<i2.indexOf(n)){for(;h!==null;){var g=Qi(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var _=fi(g.pendingLanes);if(_!==0){var k=g;for(k.pendingLanes|=2,k.entangledLanes|=2;_;){var T=1<<31-Qe(_);k.entanglements[1]|=T,_&=~T}Gn(g),(qe&6)===0&&(Fu=Ut()+500,Pl(0))}}break;case 31:case 13:k=gi(g,2),k!==null&&Jt(k,g,2),Gu(),sm(g,2)}if(g=fm(c),g===null&&Qd(n,l,c,us,u),g===h)break;h=g}h!==null&&c.stopPropagation()}else Qd(n,l,c,null,u)}}function fm(n){return n=mf(n),dm(n)}var us=null;function dm(n){if(us=null,n=Xi(n),n!==null){var l=o(n);if(l===null)n=null;else{var u=l.tag;if(u===13){if(n=s(l),n!==null)return n;n=null}else if(u===31){if(n=f(l),n!==null)return n;n=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;n=null}else l!==n&&(n=null)}}return us=n,null}function xx(n){switch(n){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(tf()){case J:return 2;case fe:return 8;case xe:case Oe:return 32;case Be:return 268435456;default:return 32}default:return 32}}var mm=!1,Kr=null,Wr=null,ei=null,Vl=new Map,Yl=new Map,ti=[],i2="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 _x(n,l){switch(n){case"focusin":case"focusout":Kr=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":Vl.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yl.delete(l.pointerId)}}function Xl(n,l,u,c,h,g){return n===null||n.nativeEvent!==g?(n={blockedOn:l,domEventName:u,eventSystemFlags:c,nativeEvent:g,targetContainers:[h]},l!==null&&(l=Qi(l),l!==null&&yx(l)),n):(n.eventSystemFlags|=c,l=n.targetContainers,h!==null&&l.indexOf(h)===-1&&l.push(h),n)}function a2(n,l,u,c,h){switch(l){case"focusin":return Kr=Xl(Kr,n,l,u,c,h),!0;case"dragenter":return Wr=Xl(Wr,n,l,u,c,h),!0;case"mouseover":return ei=Xl(ei,n,l,u,c,h),!0;case"pointerover":var g=h.pointerId;return Vl.set(g,Xl(Vl.get(g)||null,n,l,u,c,h)),!0;case"gotpointercapture":return g=h.pointerId,Yl.set(g,Xl(Yl.get(g)||null,n,l,u,c,h)),!0}return!1}function Sx(n){var l=Xi(n.target);if(l!==null){var u=o(l);if(u!==null){if(l=u.tag,l===13){if(l=s(u),l!==null){n.blockedOn=l,Iv(n.priority,function(){bx(u)});return}}else if(l===31){if(l=f(u),l!==null){n.blockedOn=l,Iv(n.priority,function(){bx(u)});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ss(n){if(n.blockedOn!==null)return!1;for(var l=n.targetContainers;0<l.length;){var u=fm(n.nativeEvent);if(u===null){u=n.nativeEvent;var c=new u.constructor(u.type,u);df=c,u.target.dispatchEvent(c),df=null}else return l=Qi(u),l!==null&&yx(l),n.blockedOn=u,!1;l.shift()}return!0}function kx(n,l,u){ss(n)&&u.delete(l)}function l2(){mm=!1,Kr!==null&&ss(Kr)&&(Kr=null),Wr!==null&&ss(Wr)&&(Wr=null),ei!==null&&ss(ei)&&(ei=null),Vl.forEach(kx),Yl.forEach(kx)}function cs(n,l){n.blockedOn===l&&(n.blockedOn=null,mm||(mm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,l2)))}var fs=null;function wx(n){fs!==n&&(fs=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){fs===n&&(fs=null);for(var l=0;l<n.length;l+=3){var u=n[l],c=n[l+1],h=n[l+2];if(typeof c!="function"){if(dm(c||u)===null)continue;break}var g=Qi(u);g!==null&&(n.splice(l,3),l-=3,fd(g,{pending:!0,data:h,method:u.method,action:c},c,h))}}))}function Ta(n){function l(T){return cs(T,n)}Kr!==null&&cs(Kr,n),Wr!==null&&cs(Wr,n),ei!==null&&cs(ei,n),Vl.forEach(l),Yl.forEach(l);for(var u=0;u<ti.length;u++){var c=ti[u];c.blockedOn===n&&(c.blockedOn=null)}for(;0<ti.length&&(u=ti[0],u.blockedOn===null);)Sx(u),u.blockedOn===null&&ti.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(c=0;c<u.length;c+=3){var h=u[c],g=u[c+1],_=h[Ht]||null;if(typeof g=="function")_||wx(u);else if(_){var k=null;if(g&&g.hasAttribute("formAction")){if(h=g,_=g[Ht]||null)k=_.formAction;else if(dm(h)!==null)continue}else k=_.action;typeof k=="function"?u[c+1]=k:(u.splice(c,3),c-=3),wx(u)}}}function $x(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(_){return h=_})},focusReset:"manual",scroll:"manual"})}function l(){h!==null&&(h(),h=null),c||setTimeout(u,20)}function u(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(u,100),function(){c=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),h!==null&&(h(),h=null)}}}function hm(n){this._internalRoot=n}ds.prototype.render=hm.prototype.render=function(n){var l=this._internalRoot;if(l===null)throw Error(a(409));var u=l.current,c=sn();gx(u,c,n,l,null,null)},ds.prototype.unmount=hm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var l=n.containerInfo;gx(n.current,2,null,n,null,null),Gu(),l[Yi]=null}};function ds(n){this._internalRoot=n}ds.prototype.unstable_scheduleHydration=function(n){if(n){var l=Dv();n={blockedOn:null,target:n,priority:l};for(var u=0;u<ti.length&&l!==0&&l<ti[u].priority;u++);ti.splice(u,0,n),u===0&&Sx(n)}};var Ex=t.version;if(Ex!=="19.2.3")throw Error(a(527,Ex,"19.2.3"));F.findDOMNode=function(n){var l=n._reactInternals;if(l===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=d(l),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var o2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ms=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ms.isDisabled&&ms.supportsFiber)try{Lt=ms.inject(o2),xt=ms}catch{}}return Jl.createRoot=function(n,l){if(!r(n))throw Error(a(299));var u=!1,c="",h=Cb,g=Rb,_=Db;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(c=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(_=l.onRecoverableError)),l=hx(n,1,!1,null,null,u,c,null,h,g,_,$x),n[Yi]=l.current,Xd(n),new hm(l)},Jl.hydrateRoot=function(n,l,u){if(!r(n))throw Error(a(299));var c=!1,h="",g=Cb,_=Rb,k=Db,T=null;return u!=null&&(u.unstable_strictMode===!0&&(c=!0),u.identifierPrefix!==void 0&&(h=u.identifierPrefix),u.onUncaughtError!==void 0&&(g=u.onUncaughtError),u.onCaughtError!==void 0&&(_=u.onCaughtError),u.onRecoverableError!==void 0&&(k=u.onRecoverableError),u.formState!==void 0&&(T=u.formState)),l=hx(n,1,!0,l,u??null,c,h,T,g,_,k,$x),l.context=px(null),u=l.current,c=sn(),c=rf(c),h=Pr(c),h.callback=null,Zr(u,h,c),u=c,l.current.lanes=u,ll(l,u),Gn(l),n[Yi]=l.current,Xd(n),new ds(l)},Jl.version="19.2.3",Jl}var Ix;function y2(){if(Ix)return vm.exports;Ix=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vm.exports=v2(),vm.exports}var b2=y2();const x2=bo(b2);var Ux="popstate";function _2(e={}){function t(a,r){let{pathname:o,search:s,hash:f}=a.location;return Rh("",{pathname:o,search:s,hash:f},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function i(a,r){return typeof r=="string"?r:so(r)}return k2(t,i,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S2(){return Math.random().toString(36).substring(2,10)}function Lx(e,t){return{usr:e.state,key:e.key,idx:t}}function Rh(e,t,i=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Xa(t):t,state:i,key:t&&t.key||a||S2()}}function so({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Xa(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function k2(e,t,i,a={}){let{window:r=document.defaultView,v5Compat:o=!1}=a,s=r.history,f="POP",m=null,d=p();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function p(){return(s.state||{idx:null}).idx}function v(){f="POP";let N=p(),j=N==null?null:N-d;d=N,m&&m({action:f,location:w.location,delta:j})}function b(N,j){f="PUSH";let C=Rh(w.location,N,j);d=p()+1;let O=Lx(C,d),G=w.createHref(C);try{s.pushState(O,"",G)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;r.location.assign(G)}o&&m&&m({action:f,location:w.location,delta:1})}function x(N,j){f="REPLACE";let C=Rh(w.location,N,j);d=p();let O=Lx(C,d),G=w.createHref(C);s.replaceState(O,"",G),o&&m&&m({action:f,location:w.location,delta:0})}function S(N){return w2(N)}let w={get action(){return f},get location(){return e(r,s)},listen(N){if(m)throw new Error("A history only accepts one active listener");return r.addEventListener(Ux,v),m=N,()=>{r.removeEventListener(Ux,v),m=null}},createHref(N){return t(r,N)},createURL:S,encodeLocation(N){let j=S(N);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:b,replace:x,go(N){return s.go(N)}};return w}function w2(e,t=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),st(i,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:so(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=i+a),new URL(a,i)}function rS(e,t,i="/"){return $2(e,t,i,!1)}function $2(e,t,i,a){let r=typeof t=="string"?Xa(t):t,o=wr(r.pathname||"/",i);if(o==null)return null;let s=iS(e);E2(s);let f=null;for(let m=0;f==null&&m<s.length;++m){let d=U2(o);f=D2(s[m],d,a)}return f}function iS(e,t=[],i=[],a="",r=!1){let o=(s,f,m=r,d)=>{let p={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(a)&&m)return;st(p.relativePath.startsWith(a),`Absolute route path "${p.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(a.length)}let v=Sr([a,p.relativePath]),b=i.concat(p);s.children&&s.children.length>0&&(st(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),iS(s.children,t,b,v,m)),!(s.path==null&&!s.index)&&t.push({path:v,score:C2(v,s.index),routesMeta:b})};return e.forEach((s,f)=>{if(s.path===""||!s.path?.includes("?"))o(s,f);else for(let m of aS(s.path))o(s,f,!0,m)}),t}function aS(e){let t=e.split("/");if(t.length===0)return[];let[i,...a]=t,r=i.endsWith("?"),o=i.replace(/\?$/,"");if(a.length===0)return r?[o,""]:[o];let s=aS(a.join("/")),f=[];return f.push(...s.map(m=>m===""?o:[o,m].join("/"))),r&&f.push(...s),f.map(m=>e.startsWith("/")&&m===""?"/":m)}function E2(e){e.sort((t,i)=>t.score!==i.score?i.score-t.score:R2(t.routesMeta.map(a=>a.childrenIndex),i.routesMeta.map(a=>a.childrenIndex)))}var j2=/^:[\w-]+$/,N2=3,z2=2,O2=1,T2=10,A2=-2,Mx=e=>e==="*";function C2(e,t){let i=e.split("/"),a=i.length;return i.some(Mx)&&(a+=A2),t&&(a+=z2),i.filter(r=>!Mx(r)).reduce((r,o)=>r+(j2.test(o)?N2:o===""?O2:T2),a)}function R2(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function D2(e,t,i=!1){let{routesMeta:a}=e,r={},o="/",s=[];for(let f=0;f<a.length;++f){let m=a[f],d=f===a.length-1,p=o==="/"?t:t.slice(o.length)||"/",v=Ns({path:m.relativePath,caseSensitive:m.caseSensitive,end:d},p),b=m.route;if(!v&&d&&i&&!a[a.length-1].route.index&&(v=Ns({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},p)),!v)return null;Object.assign(r,v.params),s.push({params:r,pathname:Sr([o,v.pathname]),pathnameBase:Z2(Sr([o,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(o=Sr([o,v.pathnameBase]))}return s}function Ns(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,a]=I2(e.path,e.caseSensitive,e.end),r=t.match(i);if(!r)return null;let o=r[0],s=o.replace(/(.)\/+$/,"$1"),f=r.slice(1);return{params:a.reduce((d,{paramName:p,isOptional:v},b)=>{if(p==="*"){let S=f[b]||"";s=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const x=f[b];return v&&!x?d[p]=void 0:d[p]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function I2(e,t=!1,i=!0){zn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,m)=>(a.push({paramName:f,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function U2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function wr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,a=e.charAt(i);return a&&a!=="/"?null:e.slice(i)||"/"}var lS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,L2=e=>lS.test(e);function M2(e,t="/"){let{pathname:i,search:a="",hash:r=""}=typeof e=="string"?Xa(e):e,o;if(i)if(L2(i))o=i;else{if(i.includes("//")){let s=i;i=i.replace(/\/\/+/g,"/"),zn(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${i}`)}i.startsWith("/")?o=Px(i.substring(1),"/"):o=Px(i,t)}else o=t;return{pathname:o,search:q2(a),hash:B2(r)}}function Px(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?i.length>1&&i.pop():r!=="."&&i.push(r)}),i.length>1?i.join("/"):"/"}function _m(e,t,i,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function P2(e){return e.filter((t,i)=>i===0||t.route.path&&t.route.path.length>0)}function oS(e){let t=P2(e);return t.map((i,a)=>a===t.length-1?i.pathname:i.pathnameBase)}function uS(e,t,i,a=!1){let r;typeof e=="string"?r=Xa(e):(r={...e},st(!r.pathname||!r.pathname.includes("?"),_m("?","pathname","search",r)),st(!r.pathname||!r.pathname.includes("#"),_m("#","pathname","hash",r)),st(!r.search||!r.search.includes("#"),_m("#","search","hash",r)));let o=e===""||r.pathname==="",s=o?"/":r.pathname,f;if(s==null)f=i;else{let v=t.length-1;if(!a&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),v-=1;r.pathname=b.join("/")}f=v>=0?t[v]:"/"}let m=M2(r,f),d=s&&s!=="/"&&s.endsWith("/"),p=(o||s===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(d||p)&&(m.pathname+="/"),m}var Sr=e=>e.join("/").replace(/\/\/+/g,"/"),Z2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,B2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,F2=class{constructor(e,t,i,a=!1){this.status=e,this.statusText=t||"",this.internal=a,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function H2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function G2(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var sS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cS(e,t){let i=e;if(typeof i!="string"||!lS.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let a=i,r=!1;if(sS)try{let o=new URL(window.location.href),s=i.startsWith("//")?new URL(o.protocol+i):new URL(i),f=wr(s.pathname,t);s.origin===o.origin&&f!=null?i=f+s.search+s.hash:r=!0}catch{zn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:r,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fS=["POST","PUT","PATCH","DELETE"];new Set(fS);var V2=["GET",...fS];new Set(V2);var Qa=A.createContext(null);Qa.displayName="DataRouter";var Fs=A.createContext(null);Fs.displayName="DataRouterState";var Y2=A.createContext(!1),dS=A.createContext({isTransitioning:!1});dS.displayName="ViewTransition";var X2=A.createContext(new Map);X2.displayName="Fetchers";var Q2=A.createContext(null);Q2.displayName="Await";var Tn=A.createContext(null);Tn.displayName="Navigation";var xo=A.createContext(null);xo.displayName="Location";var Qn=A.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var cp=A.createContext(null);cp.displayName="RouteError";var mS="REACT_ROUTER_ERROR",J2="REDIRECT",K2="ROUTE_ERROR_RESPONSE";function W2(e){if(e.startsWith(`${mS}:${J2}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function eT(e){if(e.startsWith(`${mS}:${K2}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new F2(t.status,t.statusText,t.data)}catch{}}function tT(e,{relative:t}={}){st(_o(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:a}=A.useContext(Tn),{hash:r,pathname:o,search:s}=So(e,{relative:t}),f=o;return i!=="/"&&(f=o==="/"?i:Sr([i,o])),a.createHref({pathname:f,search:s,hash:r})}function _o(){return A.useContext(xo)!=null}function Jn(){return st(_o(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(xo).location}var hS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pS(e){A.useContext(Tn).static||A.useLayoutEffect(e)}function fp(){let{isDataRoute:e}=A.useContext(Qn);return e?hT():nT()}function nT(){st(_o(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(Qa),{basename:t,navigator:i}=A.useContext(Tn),{matches:a}=A.useContext(Qn),{pathname:r}=Jn(),o=JSON.stringify(oS(a)),s=A.useRef(!1);return pS(()=>{s.current=!0}),A.useCallback((m,d={})=>{if(zn(s.current,hS),!s.current)return;if(typeof m=="number"){i.go(m);return}let p=uS(m,JSON.parse(o),r,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Sr([t,p.pathname])),(d.replace?i.replace:i.push)(p,d.state,d)},[t,i,o,r,e])}A.createContext(null);function gS(){let{matches:e}=A.useContext(Qn),t=e[e.length-1];return t?t.params:{}}function So(e,{relative:t}={}){let{matches:i}=A.useContext(Qn),{pathname:a}=Jn(),r=JSON.stringify(oS(i));return A.useMemo(()=>uS(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function rT(e,t){return vS(e,t)}function vS(e,t,i,a,r){st(_o(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=A.useContext(Tn),{matches:s}=A.useContext(Qn),f=s[s.length-1],m=f?f.params:{},d=f?f.pathname:"/",p=f?f.pathnameBase:"/",v=f&&f.route;{let C=v&&v.path||"";bS(d,!v||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+
11
+ Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let b=Jn(),x;if(t){let C=typeof t=="string"?Xa(t):t;st(p==="/"||C.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=b;let S=x.pathname||"/",w=S;if(p!=="/"){let C=p.replace(/^\//,"").split("/");w="/"+S.replace(/^\//,"").split("/").slice(C.length).join("/")}let N=rS(e,{pathname:w});zn(v||N!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),zn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=uT(N&&N.map(C=>Object.assign({},C,{params:Object.assign({},m,C.params),pathname:Sr([p,o.encodeLocation?o.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?p:Sr([p,o.encodeLocation?o.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),s,i,a,r);return t&&j?A.createElement(xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},j):j}function iT(){let e=mT(),t=H2(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:o},"ErrorBoundary")," or"," ",A.createElement("code",{style:o},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),i?A.createElement("pre",{style:r},i):null,s)}var aT=A.createElement(iT,null),yS=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const i=eT(e.digest);i&&(e=i)}let t=e!==void 0?A.createElement(Qn.Provider,{value:this.props.routeContext},A.createElement(cp.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(lT,{error:e},t):t}};yS.contextType=Y2;var Sm=new WeakMap;function lT({children:e,error:t}){let{basename:i}=A.useContext(Tn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=W2(t.digest);if(a){let r=Sm.get(t);if(r)throw r;let o=cS(a.location,i);if(sS&&!Sm.get(t))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Sm.set(t,s),s}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function oT({routeContext:e,match:t,children:i}){let a=A.useContext(Qa);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(Qn.Provider,{value:e},i)}function uT(e,t=[],i=null,a=null,r=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let o=e,s=i?.errors;if(s!=null){let p=o.findIndex(v=>v.route.id&&s?.[v.route.id]!==void 0);st(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let f=!1,m=-1;if(i)for(let p=0;p<o.length;p++){let v=o[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=p),v.route.id){let{loaderData:b,errors:x}=i,S=v.route.loader&&!b.hasOwnProperty(v.route.id)&&(!x||x[v.route.id]===void 0);if(v.route.lazy||S){f=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}let d=i&&a?(p,v)=>{a(p,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:G2(i.matches),errorInfo:v})}:void 0;return o.reduceRight((p,v,b)=>{let x,S=!1,w=null,N=null;i&&(x=s&&v.route.id?s[v.route.id]:void 0,w=v.route.errorElement||aT,f&&(m<0&&b===0?(bS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,N=null):m===b&&(S=!0,N=v.route.hydrateFallbackElement||null)));let j=t.concat(o.slice(0,b+1)),C=()=>{let O;return x?O=w:S?O=N:v.route.Component?O=A.createElement(v.route.Component,null):v.route.element?O=v.route.element:O=p,A.createElement(oT,{match:v,routeContext:{outlet:p,matches:j,isDataRoute:i!=null},children:O})};return i&&(v.route.ErrorBoundary||v.route.errorElement||b===0)?A.createElement(yS,{location:i.location,revalidation:i.revalidation,component:w,error:x,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:d}):C()},null)}function dp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sT(e){let t=A.useContext(Qa);return st(t,dp(e)),t}function cT(e){let t=A.useContext(Fs);return st(t,dp(e)),t}function fT(e){let t=A.useContext(Qn);return st(t,dp(e)),t}function mp(e){let t=fT(e),i=t.matches[t.matches.length-1];return st(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function dT(){return mp("useRouteId")}function mT(){let e=A.useContext(cp),t=cT("useRouteError"),i=mp("useRouteError");return e!==void 0?e:t.errors?.[i]}function hT(){let{router:e}=sT("useNavigate"),t=mp("useNavigate"),i=A.useRef(!1);return pS(()=>{i.current=!0}),A.useCallback(async(r,o={})=>{zn(i.current,hS),i.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}var Zx={};function bS(e,t,i){!t&&!Zx[e]&&(Zx[e]=!0,zn(!1,i))}A.memo(pT);function pT({routes:e,future:t,state:i,onError:a}){return vS(e,void 0,i,a,t)}function _r(e){st(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gT({basename:e="/",children:t=null,location:i,navigationType:a="POP",navigator:r,static:o=!1,unstable_useTransitions:s}){st(!_o(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),m=A.useMemo(()=>({basename:f,navigator:r,static:o,unstable_useTransitions:s,future:{}}),[f,r,o,s]);typeof i=="string"&&(i=Xa(i));let{pathname:d="/",search:p="",hash:v="",state:b=null,key:x="default"}=i,S=A.useMemo(()=>{let w=wr(d,f);return w==null?null:{location:{pathname:w,search:p,hash:v,state:b,key:x},navigationType:a}},[f,d,p,v,b,x,a]);return zn(S!=null,`<Router basename="${f}"> is not able to match the URL "${d}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:A.createElement(Tn.Provider,{value:m},A.createElement(xo.Provider,{children:t,value:S}))}function qx({children:e,location:t}){return rT(Dh(e),t)}function Dh(e,t=[]){let i=[];return A.Children.forEach(e,(a,r)=>{if(!A.isValidElement(a))return;let o=[...t,r];if(a.type===A.Fragment){i.push.apply(i,Dh(a.props.children,o));return}st(a.type===_r,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),st(!a.props.index||!a.props.children,"An index route cannot have child routes.");let s={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(s.children=Dh(a.props.children,o)),i.push(s)}),i}var $s="get",Es="application/x-www-form-urlencoded";function Hs(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function vT(e){return Hs(e)&&e.tagName.toLowerCase()==="button"}function yT(e){return Hs(e)&&e.tagName.toLowerCase()==="form"}function bT(e){return Hs(e)&&e.tagName.toLowerCase()==="input"}function xT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _T(e,t){return e.button===0&&(!t||t==="_self")&&!xT(e)}function Ih(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,i)=>{let a=e[i];return t.concat(Array.isArray(a)?a.map(r=>[i,r]):[[i,a]])},[]))}function ST(e,t){let i=Ih(e);return t&&t.forEach((a,r)=>{i.has(r)||t.getAll(r).forEach(o=>{i.append(r,o)})}),i}var hs=null;function kT(){if(hs===null)try{new FormData(document.createElement("form"),0),hs=!1}catch{hs=!0}return hs}var wT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function km(e){return e!=null&&!wT.has(e)?(zn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Es}"`),null):e}function $T(e,t){let i,a,r,o,s;if(yT(e)){let f=e.getAttribute("action");a=f?wr(f,t):null,i=e.getAttribute("method")||$s,r=km(e.getAttribute("enctype"))||Es,o=new FormData(e)}else if(vT(e)||bT(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||f.getAttribute("action");if(a=m?wr(m,t):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||$s,r=km(e.getAttribute("formenctype"))||km(f.getAttribute("enctype"))||Es,o=new FormData(f,e),!kT()){let{name:d,type:p,value:v}=e;if(p==="image"){let b=d?`${d}.`:"";o.append(`${b}x`,"0"),o.append(`${b}y`,"0")}else d&&o.append(d,v)}}else{if(Hs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=$s,a=null,r=Es,s=e}return o&&r==="text/plain"&&(s=o,o=void 0),{action:a,method:i.toLowerCase(),encType:r,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function hp(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ET(e,t,i){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname=`_root.${i}`:t&&wr(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${i}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${i}`,a}async function jT(e,t){if(e.id in t)return t[e.id];try{let i=await import(e.module);return t[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function NT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function zT(e,t,i){let a=await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let s=await jT(o,i);return s.links?s.links():[]}return[]}));return CT(a.flat(1).filter(NT).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Bx(e,t,i,a,r,o){let s=(m,d)=>i[d]?m.route.id!==i[d].route.id:!0,f=(m,d)=>i[d].pathname!==m.pathname||i[d].route.path?.endsWith("*")&&i[d].params["*"]!==m.params["*"];return o==="assets"?t.filter((m,d)=>s(m,d)||f(m,d)):o==="data"?t.filter((m,d)=>{let p=a.routes[m.route.id];if(!p||!p.hasLoader)return!1;if(s(m,d)||f(m,d))return!0;if(m.route.shouldRevalidate){let v=m.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function OT(e,t,{includeHydrateFallback:i}={}){return TT(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),i&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function TT(e){return[...new Set(e)]}function AT(e){let t={},i=Object.keys(e).sort();for(let a of i)t[a]=e[a];return t}function CT(e,t){let i=new Set;return new Set(t),e.reduce((a,r)=>{let o=JSON.stringify(AT(r));return i.has(o)||(i.add(o),a.push({key:o,link:r})),a},[])}function xS(){let e=A.useContext(Qa);return hp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function RT(){let e=A.useContext(Fs);return hp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var pp=A.createContext(void 0);pp.displayName="FrameworkContext";function _S(){let e=A.useContext(pp);return hp(e,"You must render this element inside a <HydratedRouter> element"),e}function DT(e,t){let i=A.useContext(pp),[a,r]=A.useState(!1),[o,s]=A.useState(!1),{onFocus:f,onBlur:m,onMouseEnter:d,onMouseLeave:p,onTouchStart:v}=t,b=A.useRef(null);A.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let w=j=>{j.forEach(C=>{s(C.isIntersecting)})},N=new IntersectionObserver(w,{threshold:.5});return b.current&&N.observe(b.current),()=>{N.disconnect()}}},[e]),A.useEffect(()=>{if(a){let w=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(w)}}},[a]);let x=()=>{r(!0)},S=()=>{r(!1),s(!1)};return i?e!=="intent"?[o,b,{}]:[o,b,{onFocus:Kl(f,x),onBlur:Kl(m,S),onMouseEnter:Kl(d,x),onMouseLeave:Kl(p,S),onTouchStart:Kl(v,x)}]:[!1,b,{}]}function Kl(e,t){return i=>{e&&e(i),i.defaultPrevented||t(i)}}function IT({page:e,...t}){let{router:i}=xS(),a=A.useMemo(()=>rS(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?A.createElement(LT,{page:e,matches:a,...t}):null}function UT(e){let{manifest:t,routeModules:i}=_S(),[a,r]=A.useState([]);return A.useEffect(()=>{let o=!1;return zT(e,t,i).then(s=>{o||r(s)}),()=>{o=!0}},[e,t,i]),a}function LT({page:e,matches:t,...i}){let a=Jn(),{manifest:r,routeModules:o}=_S(),{basename:s}=xS(),{loaderData:f,matches:m}=RT(),d=A.useMemo(()=>Bx(e,t,m,r,a,"data"),[e,t,m,r,a]),p=A.useMemo(()=>Bx(e,t,m,r,a,"assets"),[e,t,m,r,a]),v=A.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let S=new Set,w=!1;if(t.forEach(j=>{let C=r.routes[j.route.id];!C||!C.hasLoader||(!d.some(O=>O.route.id===j.route.id)&&j.route.id in f&&o[j.route.id]?.shouldRevalidate||C.hasClientLoader?w=!0:S.add(j.route.id))}),S.size===0)return[];let N=ET(e,s,"data");return w&&S.size>0&&N.searchParams.set("_routes",t.filter(j=>S.has(j.route.id)).map(j=>j.route.id).join(",")),[N.pathname+N.search]},[s,f,a,r,d,t,e,o]),b=A.useMemo(()=>OT(p,r),[p,r]),x=UT(p);return A.createElement(A.Fragment,null,v.map(S=>A.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...i})),b.map(S=>A.createElement("link",{key:S,rel:"modulepreload",href:S,...i})),x.map(({key:S,link:w})=>A.createElement("link",{key:S,nonce:i.nonce,...w})))}function MT(...e){return t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})}}var PT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{PT&&(window.__reactRouterVersion="7.11.0")}catch{}function ZT({basename:e,children:t,unstable_useTransitions:i,window:a}){let r=A.useRef();r.current==null&&(r.current=_2({window:a,v5Compat:!0}));let o=r.current,[s,f]=A.useState({action:o.action,location:o.location}),m=A.useCallback(d=>{i===!1?f(d):A.startTransition(()=>f(d))},[i]);return A.useLayoutEffect(()=>o.listen(m),[o,m]),A.createElement(gT,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,unstable_useTransitions:i})}var SS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,La=A.forwardRef(function({onClick:t,discover:i="render",prefetch:a="none",relative:r,reloadDocument:o,replace:s,state:f,target:m,to:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:b,...x},S){let{basename:w,unstable_useTransitions:N}=A.useContext(Tn),j=typeof d=="string"&&SS.test(d),C=cS(d,w);d=C.to;let O=tT(d,{relative:r}),[G,X,L]=DT(a,x),W=FT(d,{replace:s,state:f,target:m,preventScrollReset:p,relative:r,viewTransition:v,unstable_defaultShouldRevalidate:b,unstable_useTransitions:N});function ne(U){t&&t(U),U.defaultPrevented||W(U)}let ie=A.createElement("a",{...x,...L,href:C.absoluteURL||O,onClick:C.isExternal||o?t:ne,ref:MT(S,X),target:m,"data-discover":!j&&i==="render"?"true":void 0});return G&&!j?A.createElement(A.Fragment,null,ie,A.createElement(IT,{page:O})):ie});La.displayName="Link";var Uh=A.forwardRef(function({"aria-current":t="page",caseSensitive:i=!1,className:a="",end:r=!1,style:o,to:s,viewTransition:f,children:m,...d},p){let v=So(s,{relative:d.relative}),b=Jn(),x=A.useContext(Fs),{navigator:S,basename:w}=A.useContext(Tn),N=x!=null&&QT(v)&&f===!0,j=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,C=b.pathname,O=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(C=C.toLowerCase(),O=O?O.toLowerCase():null,j=j.toLowerCase()),O&&w&&(O=wr(O,w)||O);const G=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let X=C===j||!r&&C.startsWith(j)&&C.charAt(G)==="/",L=O!=null&&(O===j||!r&&O.startsWith(j)&&O.charAt(j.length)==="/"),W={isActive:X,isPending:L,isTransitioning:N},ne=X?t:void 0,ie;typeof a=="function"?ie=a(W):ie=[a,X?"active":null,L?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let U=typeof o=="function"?o(W):o;return A.createElement(La,{...d,"aria-current":ne,className:ie,ref:p,style:U,to:s,viewTransition:f},typeof m=="function"?m(W):m)});Uh.displayName="NavLink";var qT=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:i,reloadDocument:a,replace:r,state:o,method:s=$s,action:f,onSubmit:m,relative:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:b,...x},S)=>{let{unstable_useTransitions:w}=A.useContext(Tn),N=YT(),j=XT(f,{relative:d}),C=s.toLowerCase()==="get"?"get":"post",O=typeof f=="string"&&SS.test(f),G=X=>{if(m&&m(X),X.defaultPrevented)return;X.preventDefault();let L=X.nativeEvent.submitter,W=L?.getAttribute("formmethod")||s,ne=()=>N(L||X.currentTarget,{fetcherKey:t,method:W,navigate:i,replace:r,state:o,relative:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:b});w&&i!==!1?A.startTransition(()=>ne()):ne()};return A.createElement("form",{ref:S,method:C,action:j,onSubmit:a?m:G,...x,"data-discover":!O&&e==="render"?"true":void 0})});qT.displayName="Form";function BT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kS(e){let t=A.useContext(Qa);return st(t,BT(e)),t}function FT(e,{target:t,replace:i,state:a,preventScrollReset:r,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:f,unstable_useTransitions:m}={}){let d=fp(),p=Jn(),v=So(e,{relative:o});return A.useCallback(b=>{if(_T(b,t)){b.preventDefault();let x=i!==void 0?i:so(p)===so(v),S=()=>d(e,{replace:x,state:a,preventScrollReset:r,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:f});m?A.startTransition(()=>S()):S()}},[p,d,v,i,a,t,e,r,o,s,f,m])}function HT(e){zn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=A.useRef(Ih(e)),i=A.useRef(!1),a=Jn(),r=A.useMemo(()=>ST(a.search,i.current?null:t.current),[a.search]),o=fp(),s=A.useCallback((f,m)=>{const d=Ih(typeof f=="function"?f(new URLSearchParams(r)):f);i.current=!0,o("?"+d,m)},[o,r]);return[r,s]}var GT=0,VT=()=>`__${String(++GT)}__`;function YT(){let{router:e}=kS("useSubmit"),{basename:t}=A.useContext(Tn),i=dT(),a=e.fetch,r=e.navigate;return A.useCallback(async(o,s={})=>{let{action:f,method:m,encType:d,formData:p,body:v}=$T(o,t);if(s.navigate===!1){let b=s.fetcherKey||VT();await a(b,i,s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:p,body:v,formMethod:s.method||m,formEncType:s.encType||d,flushSync:s.flushSync})}else await r(s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:p,body:v,formMethod:s.method||m,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:i,flushSync:s.flushSync,viewTransition:s.viewTransition})},[a,r,t,i])}function XT(e,{relative:t}={}){let{basename:i}=A.useContext(Tn),a=A.useContext(Qn);st(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),o={...So(e||".",{relative:t})},s=Jn();if(e==null){o.search=s.search;let f=new URLSearchParams(o.search),m=f.getAll("index");if(m.some(p=>p==="")){f.delete("index"),m.filter(v=>v).forEach(v=>f.append("index",v));let p=f.toString();o.search=p?`?${p}`:""}}return(!e||e===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(o.pathname=o.pathname==="/"?i:Sr([i,o.pathname])),so(o)}function QT(e,{relative:t}={}){let i=A.useContext(dS);st(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=kS("useViewTransitionState"),r=So(e,{relative:t});if(!i.isTransitioning)return!1;let o=wr(i.currentLocation.pathname,a)||i.currentLocation.pathname,s=wr(i.nextLocation.pathname,a)||i.nextLocation.pathname;return Ns(r.pathname,s)!=null||Ns(r.pathname,o)!=null}var Ja=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},JT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},KT=class{#e=JT;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Oi=new KT;function WT(e){setTimeout(e,0)}var Ci=typeof window>"u"||"Deno"in globalThis;function Zt(){}function eA(e,t){return typeof e=="function"?e(t):e}function Lh(e){return typeof e=="number"&&e>=0&&e!==1/0}function wS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function li(e,t){return typeof e=="function"?e(t):e}function En(e,t){return typeof e=="function"?e(t):e}function Fx(e,t){const{type:i="all",exact:a,fetchStatus:r,predicate:o,queryKey:s,stale:f}=e;if(s){if(a){if(t.queryHash!==gp(s,t.options))return!1}else if(!co(t.queryKey,s))return!1}if(i!=="all"){const m=t.isActive();if(i==="active"&&!m||i==="inactive"&&m)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||r&&r!==t.state.fetchStatus||o&&!o(t))}function Hx(e,t){const{exact:i,status:a,predicate:r,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(i){if(Ri(t.options.mutationKey)!==Ri(o))return!1}else if(!co(t.options.mutationKey,o))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function gp(e,t){return(t?.queryKeyHashFn||Ri)(e)}function Ri(e){return JSON.stringify(e,(t,i)=>Mh(i)?Object.keys(i).sort().reduce((a,r)=>(a[r]=i[r],a),{}):i)}function co(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>co(e[i],t[i])):!1}var tA=Object.prototype.hasOwnProperty;function $S(e,t){if(e===t)return e;const i=Gx(e)&&Gx(t);if(!i&&!(Mh(e)&&Mh(t)))return t;const r=(i?e:Object.keys(e)).length,o=i?t:Object.keys(t),s=o.length,f=i?new Array(s):{};let m=0;for(let d=0;d<s;d++){const p=i?d:o[d],v=e[p],b=t[p];if(v===b){f[p]=v,(i?d<r:tA.call(e,p))&&m++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){f[p]=b;continue}const x=$S(v,b);f[p]=x,x===v&&m++}return r===s&&m===r?e:f}function zs(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function Gx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mh(e){if(!Vx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!Vx(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Vx(e){return Object.prototype.toString.call(e)==="[object Object]"}function nA(e){return new Promise(t=>{Oi.setTimeout(t,e)})}function Ph(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?$S(e,t):t}function rA(e,t,i=0){const a=[...e,t];return i&&a.length>i?a.slice(1):a}function iA(e,t,i=0){const a=[t,...e];return i&&a.length>i?a.slice(0,-1):a}var vp=Symbol();function ES(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function jS(e,t){return typeof e=="function"?e(...t):!!e}function aA(e,t,i){let a=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),a||(a=!0,r.aborted?i():r.addEventListener("abort",i,{once:!0})),r)}),e}var lA=class extends Ja{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ci&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},yp=new lA;function Zh(){let e,t;const i=new Promise((r,o)=>{e=r,t=o});i.status="pending",i.catch(()=>{});function a(r){Object.assign(i,r),delete i.resolve,delete i.reject}return i.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},i.reject=r=>{a({status:"rejected",reason:r}),t(r)},i}var oA=WT;function uA(){let e=[],t=0,i=f=>{f()},a=f=>{f()},r=oA;const o=f=>{t?e.push(f):r(()=>{i(f)})},s=()=>{const f=e;e=[],f.length&&r(()=>{a(()=>{f.forEach(m=>{i(m)})})})};return{batch:f=>{let m;t++;try{m=f()}finally{t--,t||s()}return m},batchCalls:f=>(...m)=>{o(()=>{f(...m)})},schedule:o,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{a=f},setScheduler:f=>{r=f}}}var St=uA(),sA=class extends Ja{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ci&&window.addEventListener){const t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#e}},Os=new sA;function cA(e){return Math.min(1e3*2**e,3e4)}function NS(e){return(e??"online")==="online"?Os.isOnline():!0}var qh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function zS(e){let t=!1,i=0,a;const r=Zh(),o=()=>r.status!=="pending",s=w=>{if(!o()){const N=new qh(w);b(N),e.onCancel?.(N)}},f=()=>{t=!0},m=()=>{t=!1},d=()=>yp.isFocused()&&(e.networkMode==="always"||Os.isOnline())&&e.canRun(),p=()=>NS(e.networkMode)&&e.canRun(),v=w=>{o()||(a?.(),r.resolve(w))},b=w=>{o()||(a?.(),r.reject(w))},x=()=>new Promise(w=>{a=N=>{(o()||d())&&w(N)},e.onPause?.()}).then(()=>{a=void 0,o()||e.onContinue?.()}),S=()=>{if(o())return;let w;const N=i===0?e.initialPromise:void 0;try{w=N??e.fn()}catch(j){w=Promise.reject(j)}Promise.resolve(w).then(v).catch(j=>{if(o())return;const C=e.retry??(Ci?0:3),O=e.retryDelay??cA,G=typeof O=="function"?O(i,j):O,X=C===!0||typeof C=="number"&&i<C||typeof C=="function"&&C(i,j);if(t||!X){b(j);return}i++,e.onFail?.(i,j),nA(G).then(()=>d()?void 0:x()).then(()=>{t?b(j):S()})})};return{promise:r,status:()=>r.status,cancel:s,continue:()=>(a?.(),r),cancelRetry:f,continueRetry:m,canStart:p,start:()=>(p()?S():x().then(S),r)}}var OS=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Lh(this.gcTime)&&(this.#e=Oi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ci?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Oi.clearTimeout(this.#e),this.#e=void 0)}},fA=class extends OS{#e;#t;#n;#i;#r;#l;#o;constructor(e){super(),this.#o=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Xx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#l,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Xx(this.options);t.data!==void 0&&(this.setState(Yx(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const i=Ph(this.state.data,e,this.options);return this.#a({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>En(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>li(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!wS(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,i.signal)})},r=()=>{const f=ES(this.options,t),d=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return a(p),p})();return this.#o=!1,this.options.persister?this.options.persister(f,d,this):f(d)},s=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return a(f),f})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#a({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=zS({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:f=>{f instanceof qh&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(f,m)=>{this.#a({type:"failed",failureCount:f,error:m})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof qh){if(f.silent)return this.#r.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#a({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#a(e){const t=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...TS(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Yx(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?a:void 0,a;case"error":const r=e.error;return{...i,error:r,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=t(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function TS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:NS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Xx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,a=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var dA=class extends Ja{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=Zh(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#l;#o;#a;#p;#d;#m;#s;#c;#u;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Qx(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bh(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bh(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#_(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof En(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!zs(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&Jx(this.#t,i,this.options,t)&&this.#f(),this.updateResult(),a&&(this.#t!==i||En(this.options.enabled,this.#t)!==En(t.enabled,this.#t)||li(this.options.staleTime,this.#t)!==li(t.staleTime,this.#t))&&this.#g();const r=this.#v();a&&(this.#t!==i||En(this.options.enabled,this.#t)!==En(t.enabled,this.#t)||r!==this.#u)&&this.#y(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(t,e);return hA(this,i)&&(this.#i=i,this.#l=this.options,this.#r=this.#t.state),i}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),i=this.#e.getQueryCache().build(this.#e,t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zt)),t}#g(){this.#x();const e=li(this.options.staleTime,this.#t);if(Ci||this.#i.isStale||!Lh(e))return;const i=wS(this.#i.dataUpdatedAt,e)+1;this.#s=Oi.setTimeout(()=>{this.#i.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#_(),this.#u=e,!(Ci||En(this.options.enabled,this.#t)===!1||!Lh(this.#u)||this.#u===0)&&(this.#c=Oi.setInterval(()=>{(this.options.refetchIntervalInBackground||yp.isFocused())&&this.#f()},this.#u))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#s&&(Oi.clearTimeout(this.#s),this.#s=void 0)}#_(){this.#c&&(Oi.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const i=this.#t,a=this.options,r=this.#i,o=this.#r,s=this.#l,m=e!==i?e.state:this.#n,{state:d}=e;let p={...d},v=!1,b;if(t._optimisticResults){const ne=this.hasListeners(),ie=!ne&&Qx(e,t),U=ne&&Jx(e,i,t,a);(ie||U)&&(p={...p,...TS(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:x,errorUpdatedAt:S,status:w}=p;b=p.data;let N=!1;if(t.placeholderData!==void 0&&b===void 0&&w==="pending"){let ne;r?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(ne=r.data,N=!0):ne=typeof t.placeholderData=="function"?t.placeholderData(this.#m?.state.data,this.#m):t.placeholderData,ne!==void 0&&(w="success",b=Ph(r?.data,ne,t),v=!0)}if(t.select&&b!==void 0&&!N)if(r&&b===o?.data&&t.select===this.#p)b=this.#d;else try{this.#p=t.select,b=t.select(b),b=Ph(r?.data,b,t),this.#d=b,this.#a=null}catch(ne){this.#a=ne}this.#a&&(x=this.#a,b=this.#d,S=Date.now(),w="error");const j=p.fetchStatus==="fetching",C=w==="pending",O=w==="error",G=C&&j,X=b!==void 0,W={status:w,fetchStatus:p.fetchStatus,isPending:C,isSuccess:w==="success",isError:O,isInitialLoading:G,isLoading:G,data:b,dataUpdatedAt:p.dataUpdatedAt,error:x,errorUpdatedAt:S,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>m.dataUpdateCount||p.errorUpdateCount>m.errorUpdateCount,isFetching:j,isRefetching:j&&!C,isLoadingError:O&&!X,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:O&&X,isStale:bp(e,t),refetch:this.refetch,promise:this.#o,isEnabled:En(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ne=se=>{W.status==="error"?se.reject(W.error):W.data!==void 0&&se.resolve(W.data)},ie=()=>{const se=this.#o=W.promise=Zh();ne(se)},U=this.#o;switch(U.status){case"pending":e.queryHash===i.queryHash&&ne(U);break;case"fulfilled":(W.status==="error"||W.data!==U.value)&&ie();break;case"rejected":(W.status!=="error"||W.error!==U.reason)&&ie();break}}return W}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#l=this.options,this.#r.data!==void 0&&(this.#m=this.#t),zs(t,e))return;this.#i=t;const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,r=typeof a=="function"?a():a;if(r==="all"||!r&&!this.#h.size)return!0;const o=new Set(r??this.#h);return this.options.throwOnError&&o.add("error"),Object.keys(this.#i).some(s=>{const f=s;return this.#i[f]!==e[f]&&o.has(f)})};this.#k({listeners:i()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#k(e){St.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function mA(e,t){return En(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Qx(e,t){return mA(e,t)||e.state.data!==void 0&&Bh(e,t,t.refetchOnMount)}function Bh(e,t,i){if(En(t.enabled,e)!==!1&&li(t.staleTime,e)!=="static"){const a=typeof i=="function"?i(e):i;return a==="always"||a!==!1&&bp(e,t)}return!1}function Jx(e,t,i,a){return(e!==t||En(a.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&bp(e,i)}function bp(e,t){return En(t.enabled,e)!==!1&&e.isStaleByTime(li(t.staleTime,e))}function hA(e,t){return!zs(e.getCurrentResult(),t)}function Kx(e){return{onFetch:(t,i)=>{const a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},m=0;const d=async()=>{let p=!1;const v=S=>{aA(S,()=>t.signal,()=>p=!0)},b=ES(t.options,t.fetchOptions),x=async(S,w,N)=>{if(p)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const C=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:w,direction:N?"backward":"forward",meta:t.options.meta};return v(L),L})(),O=await b(C),{maxPages:G}=t.options,X=N?iA:rA;return{pages:X(S.pages,O,G),pageParams:X(S.pageParams,w,G)}};if(r&&o.length){const S=r==="backward",w=S?pA:Wx,N={pages:o,pageParams:s},j=w(a,N);f=await x(N,j,S)}else{const S=e??o.length;do{const w=m===0?s[0]??a.initialPageParam:Wx(a,f);if(m>0&&w==null)break;f=await x(f,w),m++}while(m<S)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=d}}}function Wx(e,{pages:t,pageParams:i}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,i[a],i):void 0}function pA(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}var gA=class extends OS{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||AS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=zS({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#r({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",r=!this.#i.canStart();try{if(a)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#n.config.onMutate?.(e,this,i);const s=await this.options.onMutate?.(e,i);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:r})}const o=await this.#i.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,i),await this.options.onSuccess?.(o,e,this.state.context,i),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(o,null,e,this.state.context,i),this.#r({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,i)}catch(s){Promise.reject(s)}try{await this.options.onError?.(o,e,this.state.context,i)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,i)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,i)}catch(s){Promise.reject(s)}throw this.#r({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#r(e){const t=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),St.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function AS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vA=class extends Ja{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,i){const a=new gA({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:i});return this.add(a),a}add(e){this.#e.add(e);const t=ps(e);if(typeof t=="string"){const i=this.#t.get(t);i?i.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=ps(e);if(typeof t=="string"){const i=this.#t.get(t);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ps(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(r=>r.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=ps(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){St.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(i=>Hx(t,i))}findAll(e={}){return this.getAll().filter(t=>Hx(e,t))}notify(e){St.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return St.batch(()=>Promise.all(e.map(t=>t.continue().catch(Zt))))}};function ps(e){return e.options.scope?.id}var yA=class extends Ja{#e;#t=void 0;#n;#i;constructor(t,i){super(),this.#e=t,this.setOptions(i),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const i=this.options;this.options=this.#e.defaultMutationOptions(t),zs(this.options,i)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Ri(i.mutationKey)!==Ri(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#l(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#l()}mutate(t,i){return this.#i=i,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??AS();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#l(t){St.batch(()=>{if(this.#i&&this.hasListeners()){const i=this.#t.variables,a=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,i,a,r)}catch(o){Promise.reject(o)}try{this.#i.onSettled?.(t.data,null,i,a,r)}catch(o){Promise.reject(o)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,i,a,r)}catch(o){Promise.reject(o)}try{this.#i.onSettled?.(void 0,t.error,i,a,r)}catch(o){Promise.reject(o)}}}this.listeners.forEach(i=>{i(this.#t)})})}},bA=class extends Ja{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){const a=t.queryKey,r=t.queryHash??gp(a,t);let o=this.get(r);return o||(o=new fA({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){St.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(i=>Fx(t,i))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(i=>Fx(e,i)):t}notify(e){St.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){St.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xA=class{#e;#t;#n;#i;#r;#l;#o;#a;constructor(e={}){this.#e=e.queryCache||new bA,this.#t=e.mutationCache||new vA,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#o=yp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Os.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=this.#e.build(this,t),a=i.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(li(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:i})=>{const a=i.data;return[t,a]})}setQueryData(e,t,i){const a=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(a.queryHash)?.state.data,s=eA(t,o);if(s!==void 0)return this.#e.build(this,a).setData(s,{...i,manual:!0})}setQueriesData(e,t,i){return St.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,i)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;St.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=this.#e;return St.batch(()=>(i.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},a=St.batch(()=>this.#e.findAll(e).map(r=>r.cancel(i)));return Promise.all(a).then(Zt).catch(Zt)}invalidateQueries(e,t={}){return St.batch(()=>(this.#e.findAll(e).forEach(i=>{i.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},a=St.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let o=r.fetch(void 0,i);return i.throwOnError||(o=o.catch(Zt)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=this.#e.build(this,t);return i.isStaleByTime(li(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e.behavior=Kx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}ensureInfiniteQueryData(e){return e.behavior=Kx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Os.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(Ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],i={};return t.forEach(a=>{co(e,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(e,t){this.#r.set(Ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],i={};return t.forEach(a=>{co(e,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vp&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},CS=A.createContext(void 0),jr=e=>{const t=A.useContext(CS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_A=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(CS.Provider,{value:e,children:t})),RS=A.createContext(!1),SA=()=>A.useContext(RS);RS.Provider;function kA(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var wA=A.createContext(kA()),$A=()=>A.useContext(wA),EA=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},jA=e=>{A.useEffect(()=>{e.clearReset()},[e])},NA=({result:e,errorResetBoundary:t,throwOnError:i,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&e.data===void 0||jS(i,[e.error,a])),zA=e=>{if(e.suspense){const i=r=>r==="static"?r:Math.max(r??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...r)=>i(a(...r)):i(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},OA=(e,t)=>e.isLoading&&e.isFetching&&!t,TA=(e,t)=>e?.suspense&&t.isPending,e_=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function AA(e,t,i){const a=SA(),r=$A(),o=jr(),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=a?"isRestoring":"optimistic",zA(s),EA(s,r),jA(r);const f=!o.getQueryCache().get(s.queryHash),[m]=A.useState(()=>new t(o,s)),d=m.getOptimisticResult(s),p=!a&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(v=>{const b=p?m.subscribe(St.batchCalls(v)):Zt;return m.updateResult(),b},[m,p]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),A.useEffect(()=>{m.setOptions(s)},[s,m]),TA(s,d))throw e_(s,m,r);if(NA({result:d,errorResetBoundary:r,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!Ci&&OA(d,a)&&(f?e_(s,m,r):o.getQueryCache().get(s.queryHash)?.promise)?.catch(Zt).finally(()=>{m.updateResult()}),s.notifyOnChangeProps?d:m.trackResult(d)}function fn(e,t){return AA(e,dA)}function $r(e,t){const i=jr(),[a]=A.useState(()=>new yA(i,e));A.useEffect(()=>{a.setOptions(e)},[a,e]);const r=A.useSyncExternalStore(A.useCallback(s=>a.subscribe(St.batchCalls(s)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),o=A.useCallback((s,f)=>{a.mutate(s,f).catch(Zt)},[a]);if(r.error&&jS(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}const CA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),RA=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,a)=>a?a.toUpperCase():i.toLowerCase()),t_=e=>{const t=RA(e);return t.charAt(0).toUpperCase()+t.slice(1)},DS=(...e)=>e.filter((t,i,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===i).join(" ").trim(),DA=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var IA={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"};const UA=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:r="",children:o,iconNode:s,...f},m)=>A.createElement("svg",{ref:m,...IA,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:DS("lucide",r),...!o&&!DA(f)&&{"aria-hidden":"true"},...f},[...s.map(([d,p])=>A.createElement(d,p)),...Array.isArray(o)?o:[o]]));const kt=(e,t)=>{const i=A.forwardRef(({className:a,...r},o)=>A.createElement(UA,{ref:o,iconNode:t,className:DS(`lucide-${CA(t_(e))}`,`lucide-${e}`,a),...r}));return i.displayName=t_(e),i};const LA=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],MA=kt("chart-column",LA);const PA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],IS=kt("check",PA);const ZA=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],US=kt("clipboard-list",ZA);const qA=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],BA=kt("download",qA);const FA=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Fh=kt("heart",FA);const HA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],GA=kt("info",HA);const VA=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],xp=kt("key",VA);const YA=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],XA=kt("log-out",YA);const QA=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],JA=kt("mail",QA);const KA=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Di=kt("package",KA);const WA=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],e6=kt("pen",WA);const t6=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],n6=kt("save",t6);const r6=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Gs=kt("shield",r6);const i6=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],a6=kt("smartphone",i6);const l6=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],o6=kt("trash-2",l6);const u6=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],s6=kt("triangle-alert",u6);const c6=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],f6=kt("user-plus",c6);const d6=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Hh=kt("user",d6);const m6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ii=kt("x",m6),Vs="/api",h6="composer_proxy_admin_token";function Ys(){return typeof window<"u"?localStorage.getItem(h6):null}async function ot(e,t={}){const i=Ys(),a={"Content-Type":"application/json",...t.headers};i&&(a.Authorization=`Bearer ${i}`);const r=await fetch(`${Vs}${e}`,{...t,headers:a});if(!r.ok){const o=await r.json().catch(()=>({message:"Unknown error"}));throw new Error(o.message||`HTTP ${r.status}`)}return r.json()}async function p6(){try{const t=await(await fetch(`${Vs}/auth/check`,{headers:{"Content-Type":"application/json"}})).json();return{authRequired:t.authRequired??!0,setupRequired:t.setupRequired??!1}}catch{return{authRequired:!0,setupRequired:!1}}}async function g6(e){return ot("/setup",{method:"POST",body:JSON.stringify(e)})}async function v6(){return ot("/stats")}async function LS(){return ot("/repositories")}async function y6(e){return ot("/repositories",{method:"POST",body:JSON.stringify(e)})}async function b6(e,t){return ot(`/repositories/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function x6(e){return ot(`/repositories/${e}`,{method:"DELETE"})}async function _6(e){return ot(`/repositories/${e}/sync`,{method:"POST"})}async function S6(){return ot("/tokens")}async function k6(e){return ot("/tokens",{method:"POST",body:JSON.stringify(e)})}async function w6(e,t){return ot(`/tokens/${e}`,{method:"PATCH",body:JSON.stringify(t)})}async function $6(e){return ot(`/tokens/${e}`,{method:"DELETE"})}async function E6(e){const t=e?`?search=${encodeURIComponent(e)}`:"";return ot(`/packages${t}`)}async function j6(e){return ot(`/packages/${encodeURIComponent(e)}`)}async function N6(e,t){const i=Ys(),a={"Content-Type":"text/markdown"};i&&(a.Authorization=`Bearer ${i}`);const r=await fetch(`${Vs}/packages/${encodeURIComponent(e)}/${encodeURIComponent(t)}/readme`,{headers:a});if(!r.ok){if(r.status===404)return null;throw new Error(`HTTP ${r.status}`)}return r.text()}async function z6(e,t){const i=Ys(),a={"Content-Type":"text/markdown"};i&&(a.Authorization=`Bearer ${i}`);const r=await fetch(`${Vs}/packages/${encodeURIComponent(e)}/${encodeURIComponent(t)}/changelog`,{headers:a});if(!r.ok){if(r.status===404)return null;throw new Error(`HTTP ${r.status}`)}return r.text()}async function O6(e,t){return ot(`/packages/${encodeURIComponent(e)}/${encodeURIComponent(t)}/stats`)}async function Xs(){return ot("/settings")}async function T6(e){return ot("/settings/packagist-mirroring",{method:"PUT",body:JSON.stringify({enabled:e})})}async function A6(e,t){return ot("/packages/add-from-mirror",{method:"POST",body:JSON.stringify({repository_id:e,package_names:t})})}async function C6(){return ot("/users").then(e=>e.users)}async function R6(e){return ot("/users",{method:"POST",body:JSON.stringify(e)})}async function D6(e){return ot(`/users/${e}`,{method:"DELETE"})}async function I6(){return ot("/auth/2fa/setup",{method:"POST"})}async function U6(e,t){return ot("/auth/2fa/enable",{method:"POST",body:JSON.stringify({secret:e,code:t})})}async function L6(){return ot("/auth/2fa/disable",{method:"POST"})}async function M6(e,t){return ot("/auth/invite/accept",{method:"POST",body:JSON.stringify({token:e,password:t})})}const n_="composer_proxy_sponsor_banner_dismissed";function P6(){const[e,t]=A.useState(!1);A.useEffect(()=>{if(typeof window<"u"){const a=localStorage.getItem(n_);t(a==="true")}},[]);const i=()=>{t(!0),typeof window<"u"&&localStorage.setItem(n_,"true")};return e?null:y.jsxs("div",{className:"relative bg-gradient-to-r from-pink-500/10 via-purple-500/10 to-pink-500/10 border border-pink-500/20 rounded-lg p-4 mb-6",children:[y.jsx("button",{onClick:i,className:"absolute top-2 right-2 text-slate-400 hover:text-slate-200 transition","aria-label":"Dismiss",children:y.jsx(Ii,{className:"w-4 h-4"})}),y.jsx("div",{className:"pr-8",children:y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx(Fh,{className:"w-6 h-6 text-pink-400 fill-pink-400"}),y.jsxs("div",{className:"flex-1",children:[y.jsx("p",{className:"text-slate-200 font-medium mb-1",children:"Enjoying this project? Consider sponsoring!"}),y.jsx("p",{className:"text-slate-400 text-sm mb-3",children:"Built during evenings and weekends. Your support helps keep it going and funds new features, better docs, and faster bug fixes."}),y.jsxs("a",{href:"https://github.com/sponsors/lbajsarowicz",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700 text-white text-sm font-semibold rounded-lg shadow-lg shadow-pink-500/25 transition",children:[y.jsx(Fh,{className:"w-4 h-4 fill-current"}),y.jsx("span",{children:"Sponsor on GitHub"})]})]})]})})]})}function Z6(){const{data:e,isLoading:t,error:i}=fn({queryKey:["stats"],queryFn:v6,refetchInterval:3e4}),a=[{title:"Active Repositories",value:e?.active_repos??0,icon:Di,color:"from-primary-500 to-primary-700"},{title:"Cached Packages",value:e?.cached_packages??0,icon:US,color:"from-accent-500 to-accent-700"},{title:"Total Downloads",value:e?.total_downloads??0,icon:BA,color:"from-emerald-500 to-emerald-700"}];return i?(console.error("Dashboard Error:",i),y.jsx("div",{className:"card p-6","data-testid":"dashboard-error",children:y.jsxs("p",{className:"text-red-400",children:["Error loading stats: ",i.message]})})):y.jsxs("div",{className:"space-y-8","data-testid":"dashboard-page",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"dashboard-heading",children:"Dashboard"}),y.jsx("p",{className:"text-slate-400",children:"Overview of your Composer proxy"})]}),y.jsx(P6,{}),y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-testid":"stats-cards",children:a.map(r=>y.jsxs("div",{className:"card p-6","data-testid":`stat-card-${r.title.toLowerCase().replace(/\s+/g,"-")}`,children:[y.jsxs("div",{className:"flex items-center justify-between mb-4",children:[y.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${r.color} flex items-center justify-center shadow-lg`,children:y.jsx(r.icon,{className:"w-6 h-6 text-white"})}),t&&y.jsx("div",{className:"w-6 h-6 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin","aria-label":"Loading"})]}),y.jsx("p",{className:"text-slate-400 text-sm mb-1",children:r.title}),y.jsx("p",{className:"font-display text-3xl font-bold text-slate-100",children:t?"...":r.value.toLocaleString()})]},r.title))}),y.jsxs("div",{className:"card p-6","data-testid":"quick-start-section",children:[y.jsx("h3",{className:"font-display text-lg font-semibold text-slate-100 mb-4",children:"Quick Start"}),y.jsxs("div",{className:"space-y-4 text-slate-300",children:[y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("span",{className:"text-primary-400 font-bold",children:"1."}),y.jsxs("p",{children:["Add a ",y.jsx("strong",{children:"repository source"})," in the Repositories tab"]})]}),y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("span",{className:"text-primary-400 font-bold",children:"2."}),y.jsxs("p",{children:["Generate an ",y.jsx("strong",{children:"access token"})," in the Access Tokens tab"]})]}),y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("span",{className:"text-primary-400 font-bold",children:"3."}),y.jsxs("div",{className:"flex-1",children:[y.jsx("p",{className:"mb-3",children:"Configure your project to use this proxy:"}),y.jsxs("div",{className:"mb-4","data-testid":"composer-cli-config",children:[y.jsx("p",{className:"text-sm text-slate-400 mb-2",children:"Using Composer CLI:"}),y.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm text-slate-300",children:y.jsxs("code",{"data-testid":"composer-cli-command",children:["composer config repositories.proxy composer ",window.location.origin]})})]}),y.jsxs("div",{"data-testid":"composer-json-config",children:[y.jsx("p",{className:"text-sm text-slate-400 mb-2",children:"Or manually edit composer.json:"}),y.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm text-slate-300",children:y.jsx("code",{"data-testid":"composer-json-code",children:`{
12
+ "repositories": [
13
+ {
14
+ "type": "composer",
15
+ "url": "${window.location.origin}"
16
+ }
17
+ ]
18
+ }`})})]})]})]})]})]})]})}const Ts={http_basic:{label:"HTTP Basic (Username/Password)",fields:[{name:"username",label:"Username",type:"text"},{name:"password",label:"Password",type:"password"}]},github_token:{label:"GitHub Token",fields:[{name:"token",label:"Personal Access Token",type:"password"}]},gitlab_token:{label:"GitLab Token",fields:[{name:"token",label:"Personal/Project Access Token",type:"password"}]},bitbucket_app_password:{label:"Bitbucket App Password",fields:[{name:"username",label:"Username",type:"text"},{name:"password",label:"App Password",type:"password"}]},bitbucket_api_token:{label:"Bitbucket API Token",fields:[{name:"token",label:"Token",type:"password"}]},bitbucket_api_key:{label:"Bitbucket API Key",fields:[{name:"key",label:"API Key",type:"password"}]},bitbucket_server_pat:{label:"Bitbucket Server PAT",fields:[{name:"token",label:"Personal Access Token",type:"password"}]},bearer_token:{label:"Bearer Token",fields:[{name:"token",label:"Token",type:"password"}]},none:{label:"No Authentication",fields:[]}},As={composer:["http_basic","bearer_token"],git:["github_token","gitlab_token","bitbucket_app_password","bitbucket_api_token","bitbucket_api_key","bitbucket_server_pat"]};function Ia(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(i[a[r]]=e[a[r]]);return i}const q6={ZodAny:"any",ZodArray:"array",ZodBigInt:"bigint",ZodBoolean:"boolean",ZodDefault:"default",ZodPrefault:"prefault",ZodTransform:"transform",ZodEnum:"enum",ZodIntersection:"intersection",ZodLiteral:"literal",ZodNever:"never",ZodNull:"null",ZodNullable:"nullable",ZodNumber:"number",ZodNonOptional:"nonoptional",ZodObject:"object",ZodOptional:"optional",ZodPipe:"pipe",ZodReadonly:"readonly",ZodRecord:"record",ZodString:"string",ZodTuple:"tuple",ZodType:"type",ZodUnion:"union",ZodDiscriminatedUnion:"union",ZodUnknown:"unknown",ZodVoid:"void",ZodDate:"date"};function ii(e,t){return(Array.isArray(t)?t:[t]).some(a=>{var r;const o=((r=e?.def)===null||r===void 0?void 0:r.type)===q6[a];return a==="ZodDiscriminatedUnion"?o&&"discriminator"in e.def:o})}function Aa(e){return"def"in e}let B6=class{constructor(){this._map=new Map,this._idmap=new Map}add(t,...i){const a=i[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const i=this._map.get(t);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){const i=t._zod.parent;if(i){const a={...this.get(i)??{}};return delete a.id,{...a,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function F6(){return new B6}function wm(e){return e===void 0}function H6(e,t){const i={};return Object.entries(e).forEach(([a,r])=>{t.some(o=>o===a)||(i[a]=r)}),i}function $m(e,t){const i={};return Object.entries(e).forEach(([a,r])=>{t(r,a)||(i[a]=r)}),i}const r_=F6();class ai{static collectMetadata(t,i){const a=this.getMetadataFromRegistry(t),r=Object.assign(Object.assign({},a?._internal),i?._internal),o=Object.assign(Object.assign({},a?.param),i?.param),s=Object.assign(Object.assign(Object.assign(Object.assign({},Object.keys(r).length>0?{_internal:r}:{}),a),i),Object.keys(o).length>0?{param:o}:{});if(ii(t,["ZodOptional","ZodNullable","ZodDefault","ZodPrefault","ZodReadonly","ZodNonOptional"])&&Aa(t._zod.def.innerType))return this.collectMetadata(t._zod.def.innerType,s);if(ii(t,"ZodPipe")){const f=t._zod.def.in,m=t._zod.def.out;if(ii(f,"ZodTransform")&&Aa(m))return this.collectMetadata(m,s);if(Aa(f))return this.collectMetadata(f,s)}return s}static getMetadata(t){return this.collectMetadata(t)}static getOpenApiMetadata(t){const i=this.collectMetadata(t);return Ia(i??{},["_internal"])}static getInternalMetadata(t){var i;return(i=this.collectMetadata(t))===null||i===void 0?void 0:i._internal}static getParamMetadata(t){const i=this.collectMetadata(t);return Object.assign(Object.assign({},i),{param:Object.assign(Object.assign({},i?.description?{description:i.description}:{}),i?.param)})}static buildSchemaMetadata(t){return $m(H6(t,["param","_internal"]),wm)}static buildParameterMetadata(t){return $m(t,wm)}static applySchemaMetadata(t,i){return $m(Object.assign(Object.assign({},t),this.buildSchemaMetadata(i)),wm)}static getRefId(t){var i;return(i=this.getInternalMetadata(t))===null||i===void 0?void 0:i.refId}static unwrapChained(t){return this.unwrapUntil(t)}static getDefaultValue(t){var i;const a=(i=this.unwrapUntil(t,"ZodDefault"))!==null&&i!==void 0?i:this.unwrapUntil(t,"ZodPrefault");return a?._zod.def.defaultValue}static unwrapUntil(t,i){if(i&&ii(t,i))return t;if(ii(t,["ZodOptional","ZodNullable","ZodDefault","ZodPrefault","ZodReadonly","ZodNonOptional"])&&Aa(t._zod.def.innerType))return this.unwrapUntil(t._zod.def.innerType,i);if(ii(t,"ZodPipe")){const a=t._zod.def.in,r=t._zod.def.out;if(ii(a,"ZodTransform")&&Aa(r))return this.unwrapUntil(r,i);if(Aa(a))return this.unwrapUntil(a,i)}return i?void 0:t}static getMetadataFromInternalRegistry(t){return r_.get(t)}static getMetadataFromRegistry(t){const i=this.getMetadataFromInternalRegistry(t),a=t.meta();if(!i)return a;const{_internal:r}=i,o=Ia(i,["_internal"]),s=a??{},{id:f,title:m}=s,d=Ia(s,["id","title"]);return Object.assign(Object.assign(Object.assign({_internal:Object.assign(Object.assign({},f?{refId:f}:{}),r)},o),m?{description:m}:{}),d)}static setMetadataInRegistry(t,i){r_.add(t,i)}}function xr(e,t){const i=e[t];typeof i=="function"&&(e[t]=function(...a){const r=i.apply(this,a),o=ai.getMetadataFromRegistry(this);return o&&ai.setMetadataInRegistry(r,o),r})}function G6(e){typeof e.ZodType.prototype.openapi<"u"||(e.ZodType.prototype.openapi=function(...t){const{refId:i,metadata:a,options:r}=V6(...t),o=a??{},{param:s}=o,f=Ia(o,["param"]),m=ai.getMetadataFromRegistry(this),d=m??{},{_internal:p}=d,v=Ia(d,["_internal"]),b=Object.assign(Object.assign(Object.assign({},p),r),i?{refId:i}:void 0),x=Object.assign(Object.assign(Object.assign({},v),f),v?.param||s?{param:Object.assign(Object.assign({},v?.param),s)}:void 0),S=new this.constructor(this._def);if(ai.setMetadataInRegistry(S,Object.assign(Object.assign({},Object.keys(b).length>0?{_internal:b}:void 0),x)),ii(S,"ZodObject")){const N=ai.getMetadataFromRegistry(S),j=S.extend;S.extend=function(...C){const O=j.apply(S,C),G=N??{},{_internal:X}=G,L=Ia(G,["_internal"]);return ai.setMetadataInRegistry(O,{_internal:{extendedFrom:X?.refId?{refId:X.refId,schema:S}:X?.extendedFrom}}),O.openapi(L)},xr(S,"catchall")}xr(S,"optional"),xr(S,"nullable"),xr(S,"default"),xr(S,"transform"),xr(S,"refine"),xr(S,"length"),xr(S,"min"),xr(S,"max");const w=S.meta;return S.meta=function(...N){const j=w.apply(this,N);if(N[0]){const C=ai.getMetadataFromInternalRegistry(this);C&&ai.setMetadataInRegistry(j,Object.assign(Object.assign({},C),N[0]))}return j},S})}function V6(e,t,i){return typeof e=="string"?{refId:e,metadata:t,options:i}:{refId:void 0,metadata:e,options:t}}new Set(".\\+*[^]$()");const MS=Object.freeze({status:"aborted"});function M(e,t,i){function a(f,m){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:m,constr:s,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,m);const d=s.prototype,p=Object.keys(d);for(let v=0;v<p.length;v++){const b=p[v];b in f||(f[b]=d[b].bind(f))}}const r=i?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function s(f){var m;const d=i?.Parent?new o:this;a(d,f),(m=d._zod).deferred??(m.deferred=[]);for(const p of d._zod.deferred)p();return d}return Object.defineProperty(s,"init",{value:a}),Object.defineProperty(s,Symbol.hasInstance,{value:f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}const PS=Symbol("zod_brand");class Ai extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Qs extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Cs={};function Dt(e){return e&&Object.assign(Cs,e),Cs}function Y6(e){return e}function X6(e){return e}function Q6(e){}function J6(e){throw new Error("Unexpected value in exhaustive check")}function K6(e){}function _p(e){const t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,r])=>t.indexOf(+a)===-1).map(([a,r])=>r)}function ue(e,t="|"){return e.map(i=>_e(i)).join(t)}function Rs(e,t){return typeof t=="bigint"?t.toString():t}function ko(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Zi(e){return e==null}function Js(e){const t=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}function ZS(e,t){const i=(e.toString().split(".")[1]||"").length,a=t.toString();let r=(a.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(a)){const m=a.match(/\d?e-(\d?)/);m?.[1]&&(r=Number.parseInt(m[1]))}const o=i>r?i:r,s=Number.parseInt(e.toFixed(o).replace(".","")),f=Number.parseInt(t.toFixed(o).replace(".",""));return s%f/10**o}const i_=Symbol("evaluating");function Re(e,t,i){let a;Object.defineProperty(e,t,{get(){if(a!==i_)return a===void 0&&(a=i_,a=i()),a},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function W6(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function si(e,t,i){Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function Nr(...e){const t={};for(const i of e){const a=Object.getOwnPropertyDescriptors(i);Object.assign(t,a)}return Object.defineProperties({},t)}function eC(e){return Nr(e._zod.def)}function tC(e,t){return t?t.reduce((i,a)=>i?.[a],e):e}function nC(e){const t=Object.keys(e),i=t.map(a=>e[a]);return Promise.all(i).then(a=>{const r={};for(let o=0;o<t.length;o++)r[t[o]]=a[o];return r})}function rC(e=10){const t="abcdefghijklmnopqrstuvwxyz";let i="";for(let a=0;a<e;a++)i+=t[Math.floor(Math.random()*t.length)];return i}function Gh(e){return JSON.stringify(e)}function qS(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Sp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ma(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const BS=ko(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ui(e){if(Ma(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const i=t.prototype;return!(Ma(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function Ks(e){return Ui(e)?{...e}:Array.isArray(e)?[...e]:e}function iC(e){let t=0;for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&t++;return t}const aC=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Ds=new Set(["string","number","symbol"]),FS=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Er(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function An(e,t,i){const a=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(a._zod.parent=e),a}function re(e){const 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 lC(e){let t;return new Proxy({},{get(i,a,r){return t??(t=e()),Reflect.get(t,a,r)},set(i,a,r,o){return t??(t=e()),Reflect.set(t,a,r,o)},has(i,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(i,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(i){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(i,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(i,a,r){return t??(t=e()),Reflect.defineProperty(t,a,r)}})}function _e(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function HS(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const GS={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]},VS={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function YS(e,t){const i=e._zod.def,a=Nr(e._zod.def,{get shape(){const r={};for(const o in t){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(r[o]=i.shape[o])}return si(this,"shape",r),r},checks:[]});return An(e,a)}function XS(e,t){const i=e._zod.def,a=Nr(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const o in t){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete r[o]}return si(this,"shape",r),r},checks:[]});return An(e,a)}function QS(e,t){if(!Ui(t))throw new Error("Invalid input to extend: expected a plain object");const i=e._zod.def.checks;if(i&&i.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const r=Nr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return si(this,"shape",o),o},checks:[]});return An(e,r)}function JS(e,t){if(!Ui(t))throw new Error("Invalid input to safeExtend: expected a plain object");const i={...e._zod.def,get shape(){const a={...e._zod.def.shape,...t};return si(this,"shape",a),a},checks:e._zod.def.checks};return An(e,i)}function KS(e,t){const i=Nr(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return si(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return An(e,i)}function WS(e,t,i){const a=Nr(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(i)for(const s in i){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(o[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)o[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return si(this,"shape",o),o},checks:[]});return An(t,a)}function ek(e,t,i){const a=Nr(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(i)for(const s in i){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return si(this,"shape",o),o},checks:[]});return An(t,a)}function Ti(e,t=0){if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function Un(e,t){return t.map(i=>{var a;return(a=i).path??(a.path=[]),i.path.unshift(e),i})}function io(e){return typeof e=="string"?e:e?.message}function On(e,t,i){const a={...e,path:e.path??[]};if(!e.message){const r=io(e.inst?._zod.def?.error?.(e))??io(t?.error?.(e))??io(i.customError?.(e))??io(i.localeError?.(e))??"Invalid input";a.message=r}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function Ws(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ec(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Pa(...e){const[t,i,a]=e;return typeof t=="string"?{message:t,code:"custom",input:i,inst:a}:{...t}}function oC(e){return Object.entries(e).filter(([t,i])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function tk(e){const t=atob(e),i=new Uint8Array(t.length);for(let a=0;a<t.length;a++)i[a]=t.charCodeAt(a);return i}function nk(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return btoa(t)}function uC(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),i="=".repeat((4-t.length%4)%4);return tk(t+i)}function sC(e){return nk(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cC(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const i=new Uint8Array(t.length/2);for(let a=0;a<t.length;a+=2)i[a/2]=Number.parseInt(t.slice(a,a+2),16);return i}function fC(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class dC{constructor(...t){}}const rk=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:VS,Class:dC,NUMBER_FORMAT_RANGES:GS,aborted:Ti,allowsEval:BS,assert:K6,assertEqual:Y6,assertIs:Q6,assertNever:J6,assertNotEqual:X6,assignProp:si,base64ToUint8Array:tk,base64urlToUint8Array:uC,cached:ko,captureStackTrace:Sp,cleanEnum:oC,cleanRegex:Js,clone:An,cloneDef:eC,createTransparentProxy:lC,defineLazy:Re,esc:Gh,escapeRegex:Er,extend:QS,finalizeIssue:On,floatSafeRemainder:ZS,getElementAtPath:tC,getEnumValues:_p,getLengthableOrigin:ec,getParsedType:aC,getSizableOrigin:Ws,hexToUint8Array:cC,isObject:Ma,isPlainObject:Ui,issue:Pa,joinValues:ue,jsonStringifyReplacer:Rs,merge:KS,mergeDefs:Nr,normalizeParams:re,nullish:Zi,numKeys:iC,objectClone:W6,omit:XS,optionalKeys:HS,partial:WS,pick:YS,prefixIssues:Un,primitiveTypes:FS,promiseAllObject:nC,propertyKeyTypes:Ds,randomString:rC,required:ek,safeExtend:JS,shallowClone:Ks,slugify:qS,stringifyPrimitive:_e,uint8ArrayToBase64:nk,uint8ArrayToBase64url:sC,uint8ArrayToHex:fC,unwrapMessage:io},Symbol.toStringTag,{value:"Module"})),ik=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Rs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},kp=M("$ZodError",ik),mn=M("$ZodError",ik,{Parent:Error});function wp(e,t=i=>i.message){const i={},a=[];for(const r of e.issues)r.path.length>0?(i[r.path[0]]=i[r.path[0]]||[],i[r.path[0]].push(t(r))):a.push(t(r));return{formErrors:a,fieldErrors:i}}function $p(e,t=i=>i.message){const i={_errors:[]},a=r=>{for(const o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>a({issues:s}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)i._errors.push(t(o));else{let s=i,f=0;for(;f<o.path.length;){const m=o.path[f];f===o.path.length-1?(s[m]=s[m]||{_errors:[]},s[m]._errors.push(t(o))):s[m]=s[m]||{_errors:[]},s=s[m],f++}}};return a(e),i}function ak(e,t=i=>i.message){const i={errors:[]},a=(r,o=[])=>{var s,f;for(const m of r.issues)if(m.code==="invalid_union"&&m.errors.length)m.errors.map(d=>a({issues:d},m.path));else if(m.code==="invalid_key")a({issues:m.issues},m.path);else if(m.code==="invalid_element")a({issues:m.issues},m.path);else{const d=[...o,...m.path];if(d.length===0){i.errors.push(t(m));continue}let p=i,v=0;for(;v<d.length;){const b=d[v],x=v===d.length-1;typeof b=="string"?(p.properties??(p.properties={}),(s=p.properties)[b]??(s[b]={errors:[]}),p=p.properties[b]):(p.items??(p.items=[]),(f=p.items)[b]??(f[b]={errors:[]}),p=p.items[b]),x&&p.errors.push(t(m)),v++}}};return a(e),i}function lk(e){const t=[],i=e.map(a=>typeof a=="object"?a.key:a);for(const a of i)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 ok(e){const t=[],i=[...e.issues].sort((a,r)=>(a.path??[]).length-(r.path??[]).length);for(const a of i)t.push(`✖ ${a.message}`),a.path?.length&&t.push(` → at ${lk(a.path)}`);return t.join(`
19
+ `)}const wo=e=>(t,i,a,r)=>{const o=a?Object.assign(a,{async:!1}):{async:!1},s=t._zod.run({value:i,issues:[]},o);if(s instanceof Promise)throw new Ai;if(s.issues.length){const f=new(r?.Err??e)(s.issues.map(m=>On(m,o,Dt())));throw Sp(f,r?.callee),f}return s.value},Vh=wo(mn),$o=e=>async(t,i,a,r)=>{const o=a?Object.assign(a,{async:!0}):{async:!0};let s=t._zod.run({value:i,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const f=new(r?.Err??e)(s.issues.map(m=>On(m,o,Dt())));throw Sp(f,r?.callee),f}return s.value},Yh=$o(mn),Eo=e=>(t,i,a)=>{const r=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:i,issues:[]},r);if(o instanceof Promise)throw new Ai;return o.issues.length?{success:!1,error:new(e??kp)(o.issues.map(s=>On(s,r,Dt())))}:{success:!0,data:o.value}},uk=Eo(mn),jo=e=>async(t,i,a)=>{const r=a?Object.assign(a,{async:!0}):{async:!0};let o=t._zod.run({value:i,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>On(s,r,Dt())))}:{success:!0,data:o.value}},sk=jo(mn),Ep=e=>(t,i,a)=>{const r=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return wo(e)(t,i,r)},mC=Ep(mn),jp=e=>(t,i,a)=>wo(e)(t,i,a),hC=jp(mn),Np=e=>async(t,i,a)=>{const r=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return $o(e)(t,i,r)},pC=Np(mn),zp=e=>async(t,i,a)=>$o(e)(t,i,a),gC=zp(mn),Op=e=>(t,i,a)=>{const r=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Eo(e)(t,i,r)},vC=Op(mn),Tp=e=>(t,i,a)=>Eo(e)(t,i,a),yC=Tp(mn),Ap=e=>async(t,i,a)=>{const r=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return jo(e)(t,i,r)},bC=Ap(mn),Cp=e=>async(t,i,a)=>jo(e)(t,i,a),xC=Cp(mn),ck=/^[cC][^\s-]{8,}$/,fk=/^[0-9a-z]+$/,dk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,mk=/^[0-9a-vA-V]{20}$/,hk=/^[A-Za-z0-9]{27}$/,pk=/^[a-zA-Z0-9_-]{21}$/,gk=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_C=/^[-+]?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)?)??$/,vk=/^([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})$/,Za=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,SC=Za(4),kC=Za(6),wC=Za(7),yk=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$C=/^[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])?)*$/,EC=/^(([^<>()\[\]\\.,;:\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,}))$/,bk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,jC=bk,NC=/^[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])?)*$/,zC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xk(){return new RegExp(zC,"u")}const _k=/^(?:(?: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])$/,Sk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,kk=e=>{const t=Er(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},wk=/^((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])$/,$k=/^(([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])$/,Ek=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Rp=/^[A-Za-z0-9_-]*$/,jk=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Nk=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,zk=/^\+(?:[0-9]){6,14}[0-9]$/,Ok="(?:(?:\\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])))",Tk=new RegExp(`^${Ok}$`);function Ak(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ck(e){return new RegExp(`^${Ak(e)}$`)}function Rk(e){const t=Ak({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${i.join("|")})`;return new RegExp(`^${Ok}T(?:${a})$`)}const Dk=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ik=/^-?\d+n?$/,Uk=/^-?\d+$/,Lk=/^-?\d+(?:\.\d+)?/,Mk=/^(?:true|false)$/i,Pk=/^null$/i,Zk=/^undefined$/i,qk=/^[^A-Z]*$/,Bk=/^[^a-z]*$/,Fk=/^[0-9a-fA-F]*$/;function No(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function zo(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const OC=/^[0-9a-fA-F]{32}$/,TC=No(22,"=="),AC=zo(22),CC=/^[0-9a-fA-F]{40}$/,RC=No(27,"="),DC=zo(27),IC=/^[0-9a-fA-F]{64}$/,UC=No(43,"="),LC=zo(43),MC=/^[0-9a-fA-F]{96}$/,PC=No(64,""),ZC=zo(64),qC=/^[0-9a-fA-F]{128}$/,BC=No(86,"=="),FC=zo(86),Dp=Object.freeze(Object.defineProperty({__proto__:null,base64:Ek,base64url:Rp,bigint:Ik,boolean:Mk,browserEmail:NC,cidrv4:wk,cidrv6:$k,cuid:ck,cuid2:fk,date:Tk,datetime:Rk,domain:Nk,duration:gk,e164:zk,email:yk,emoji:xk,extendedDuration:_C,guid:vk,hex:Fk,hostname:jk,html5Email:$C,idnEmail:jC,integer:Uk,ipv4:_k,ipv6:Sk,ksuid:hk,lowercase:qk,mac:kk,md5_base64:TC,md5_base64url:AC,md5_hex:OC,nanoid:pk,null:Pk,number:Lk,rfc5322Email:EC,sha1_base64:RC,sha1_base64url:DC,sha1_hex:CC,sha256_base64:UC,sha256_base64url:LC,sha256_hex:IC,sha384_base64:PC,sha384_base64url:ZC,sha384_hex:MC,sha512_base64:BC,sha512_base64url:FC,sha512_hex:qC,string:Dk,time:Ck,ulid:dk,undefined:Zk,unicodeEmail:bk,uppercase:Bk,uuid:Za,uuid4:SC,uuid6:kC,uuid7:wC,xid:mk},Symbol.toStringTag,{value:"Module"})),ut=M("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),Hk={number:"number",bigint:"bigint",object:"date"},Ip=M("$ZodCheckLessThan",(e,t)=>{ut.init(e,t);const i=Hk[typeof t.value];e._zod.onattach.push(a=>{const r=a._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=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:i,code:"too_big",maximum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Up=M("$ZodCheckGreaterThan",(e,t)=>{ut.init(e,t);const i=Hk[typeof t.value];e._zod.onattach.push(a=>{const r=a._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=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:i,code:"too_small",minimum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Gk=M("$ZodCheckMultipleOf",(e,t)=>{ut.init(e,t),e._zod.onattach.push(i=>{var a;(a=i._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=i=>{if(typeof i.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%t.value===BigInt(0):ZS(i.value,t.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:t.value,input:i.value,inst:e,continue:!t.abort})}}),Vk=M("$ZodCheckNumberFormat",(e,t)=>{ut.init(e,t),t.format=t.format||"float64";const i=t.format?.includes("int"),a=i?"int":"number",[r,o]=GS[t.format];e._zod.onattach.push(s=>{const f=s._zod.bag;f.format=t.format,f.minimum=r,f.maximum=o,i&&(f.pattern=Uk)}),e._zod.check=s=>{const f=s.value;if(i){if(!Number.isInteger(f)){s.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?s.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,continue:!t.abort}):s.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,continue:!t.abort});return}}f<r&&s.issues.push({origin:"number",input:f,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),f>o&&s.issues.push({origin:"number",input:f,code:"too_big",maximum:o,inst:e})}}),Yk=M("$ZodCheckBigIntFormat",(e,t)=>{ut.init(e,t);const[i,a]=VS[t.format];e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,o.minimum=i,o.maximum=a}),e._zod.check=r=>{const o=r.value;o<i&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),o>a&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inst:e})}}),Xk=M("$ZodCheckMaxSize",(e,t)=>{var i;ut.init(e,t),(i=e._zod.def).when??(i.when=a=>{const r=a.value;return!Zi(r)&&r.size!==void 0}),e._zod.onattach.push(a=>{const r=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{const r=a.value;r.size<=t.maximum||a.issues.push({origin:Ws(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Qk=M("$ZodCheckMinSize",(e,t)=>{var i;ut.init(e,t),(i=e._zod.def).when??(i.when=a=>{const r=a.value;return!Zi(r)&&r.size!==void 0}),e._zod.onattach.push(a=>{const r=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const r=a.value;r.size>=t.minimum||a.issues.push({origin:Ws(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Jk=M("$ZodCheckSizeEquals",(e,t)=>{var i;ut.init(e,t),(i=e._zod.def).when??(i.when=a=>{const r=a.value;return!Zi(r)&&r.size!==void 0}),e._zod.onattach.push(a=>{const r=a._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=a=>{const r=a.value,o=r.size;if(o===t.size)return;const s=o>t.size;a.issues.push({origin:Ws(r),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Kk=M("$ZodCheckMaxLength",(e,t)=>{var i;ut.init(e,t),(i=e._zod.def).when??(i.when=a=>{const r=a.value;return!Zi(r)&&r.length!==void 0}),e._zod.onattach.push(a=>{const r=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{const r=a.value;if(r.length<=t.maximum)return;const s=ec(r);a.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Wk=M("$ZodCheckMinLength",(e,t)=>{var i;ut.init(e,t),(i=e._zod.def).when??(i.when=a=>{const r=a.value;return!Zi(r)&&r.length!==void 0}),e._zod.onattach.push(a=>{const r=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const r=a.value;if(r.length>=t.minimum)return;const s=ec(r);a.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ew=M("$ZodCheckLengthEquals",(e,t)=>{var i;ut.init(e,t),(i=e._zod.def).when??(i.when=a=>{const r=a.value;return!Zi(r)&&r.length!==void 0}),e._zod.onattach.push(a=>{const r=a._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=a=>{const r=a.value,o=r.length;if(o===t.length)return;const s=ec(r),f=o>t.length;a.issues.push({origin:s,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Oo=M("$ZodCheckStringFormat",(e,t)=>{var i,a;ut.init(e,t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(i=e._zod).check??(i.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})}):(a=e._zod).check??(a.check=()=>{})}),tw=M("$ZodCheckRegex",(e,t)=>{Oo.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),nw=M("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=qk),Oo.init(e,t)}),rw=M("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Bk),Oo.init(e,t)}),iw=M("$ZodCheckIncludes",(e,t)=>{ut.init(e,t);const i=Er(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${i}`:i);t.pattern=a,e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),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})}}),aw=M("$ZodCheckStartsWith",(e,t)=>{ut.init(e,t);const i=new RegExp(`^${Er(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.onattach.push(a=>{const r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(i)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),lw=M("$ZodCheckEndsWith",(e,t)=>{ut.init(e,t);const i=new RegExp(`.*${Er(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.onattach.push(a=>{const r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(i)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function a_(e,t,i){e.issues.length&&t.issues.push(...Un(i,e.issues))}const ow=M("$ZodCheckProperty",(e,t)=>{ut.init(e,t),e._zod.check=i=>{const a=t.schema._zod.run({value:i.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(r=>a_(r,i,t.property));a_(a,i,t.property)}}),uw=M("$ZodCheckMimeType",(e,t)=>{ut.init(e,t);const i=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{i.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),sw=M("$ZodCheckOverwrite",(e,t)=>{ut.init(e,t),e._zod.check=i=>{i.value=t.tx(i.value)}});class cw{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const a=t.split(`
20
+ `).filter(s=>s),r=Math.min(...a.map(s=>s.length-s.trimStart().length)),o=a.map(s=>s.slice(r)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const t=Function,i=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...i,r.join(`
21
+ `))}}const fw={major:4,minor:2,patch:1},we=M("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=fw;const a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(const r of a)for(const o of r._zod.onattach)o(e);if(a.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const r=(s,f,m)=>{let d=Ti(s),p;for(const v of f){if(v._zod.def.when){if(!v._zod.def.when(s))continue}else if(d)continue;const b=s.issues.length,x=v._zod.check(s);if(x instanceof Promise&&m?.async===!1)throw new Ai;if(p||x instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await x,s.issues.length!==b&&(d||(d=Ti(s,b)))});else{if(s.issues.length===b)continue;d||(d=Ti(s,b))}}return p?p.then(()=>s):s},o=(s,f,m)=>{if(Ti(s))return s.aborted=!0,s;const d=r(f,a,m);if(d instanceof Promise){if(m.async===!1)throw new Ai;return d.then(p=>e._zod.parse(p,m))}return e._zod.parse(d,m)};e._zod.run=(s,f)=>{if(f.skipChecks)return e._zod.parse(s,f);if(f.direction==="backward"){const d=e._zod.parse({value:s.value,issues:[]},{...f,skipChecks:!0});return d instanceof Promise?d.then(p=>o(p,s,f)):o(d,s,f)}const m=e._zod.parse(s,f);if(m instanceof Promise){if(f.async===!1)throw new Ai;return m.then(d=>r(d,a,f))}return r(m,a,f)}}e["~standard"]={validate:r=>{try{const o=uk(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return sk(e,r).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),To=M("$ZodString",(e,t)=>{we.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Dk(e._zod.bag),e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),et=M("$ZodStringFormat",(e,t)=>{Oo.init(e,t),To.init(e,t)}),dw=M("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vk),et.init(e,t)}),mw=M("$ZodUUID",(e,t)=>{if(t.version){const a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Za(a))}else t.pattern??(t.pattern=Za());et.init(e,t)}),hw=M("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=yk),et.init(e,t)}),pw=M("$ZodURL",(e,t)=>{et.init(e,t),e._zod.check=i=>{try{const a=i.value.trim(),r=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.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)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort})),t.normalize?i.value=r.href:i.value=a;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),gw=M("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xk()),et.init(e,t)}),vw=M("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=pk),et.init(e,t)}),yw=M("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ck),et.init(e,t)}),bw=M("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=fk),et.init(e,t)}),xw=M("$ZodULID",(e,t)=>{t.pattern??(t.pattern=dk),et.init(e,t)}),_w=M("$ZodXID",(e,t)=>{t.pattern??(t.pattern=mk),et.init(e,t)}),Sw=M("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=hk),et.init(e,t)}),kw=M("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Rk(t)),et.init(e,t)}),ww=M("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Tk),et.init(e,t)}),$w=M("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ck(t)),et.init(e,t)}),Ew=M("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=gk),et.init(e,t)}),jw=M("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_k),et.init(e,t),e._zod.bag.format="ipv4"}),Nw=M("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Sk),et.init(e,t),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),zw=M("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=kk(t.delimiter)),et.init(e,t),e._zod.bag.format="mac"}),Ow=M("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=wk),et.init(e,t)}),Tw=M("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=$k),et.init(e,t),e._zod.check=i=>{const a=i.value.split("/");try{if(a.length!==2)throw new Error;const[r,o]=a;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}}});function Lp(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Aw=M("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ek),et.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{Lp(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}});function Cw(e){if(!Rp.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),i=t.padEnd(Math.ceil(t.length/4)*4,"=");return Lp(i)}const Rw=M("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Rp),et.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{Cw(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),Dw=M("$ZodE164",(e,t)=>{t.pattern??(t.pattern=zk),et.init(e,t)});function Iw(e,t=null){try{const i=e.split(".");if(i.length!==3)return!1;const[a]=i;if(!a)return!1;const r=JSON.parse(atob(a));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const Uw=M("$ZodJWT",(e,t)=>{et.init(e,t),e._zod.check=i=>{Iw(i.value,t.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!t.abort})}}),Lw=M("$ZodCustomStringFormat",(e,t)=>{et.init(e,t),e._zod.check=i=>{t.fn(i.value)||i.issues.push({code:"invalid_format",format:t.format,input:i.value,inst:e,continue:!t.abort})}}),Mp=M("$ZodNumber",(e,t)=>{we.init(e,t),e._zod.pattern=e._zod.bag.pattern??Lk,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=Number(i.value)}catch{}const r=i.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return i;const o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),i}}),Mw=M("$ZodNumberFormat",(e,t)=>{Vk.init(e,t),Mp.init(e,t)}),Pp=M("$ZodBoolean",(e,t)=>{we.init(e,t),e._zod.pattern=Mk,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=!!i.value}catch{}const r=i.value;return typeof r=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),i}}),Zp=M("$ZodBigInt",(e,t)=>{we.init(e,t),e._zod.pattern=Ik,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=BigInt(i.value)}catch{}return typeof i.value=="bigint"||i.issues.push({expected:"bigint",code:"invalid_type",input:i.value,inst:e}),i}}),Pw=M("$ZodBigIntFormat",(e,t)=>{Yk.init(e,t),Zp.init(e,t)}),Zw=M("$ZodSymbol",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value;return typeof r=="symbol"||i.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),i}}),qw=M("$ZodUndefined",(e,t)=>{we.init(e,t),e._zod.pattern=Zk,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(i,a)=>{const r=i.value;return typeof r>"u"||i.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),i}}),Bw=M("$ZodNull",(e,t)=>{we.init(e,t),e._zod.pattern=Pk,e._zod.values=new Set([null]),e._zod.parse=(i,a)=>{const r=i.value;return r===null||i.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),i}}),Fw=M("$ZodAny",(e,t)=>{we.init(e,t),e._zod.parse=i=>i}),Hw=M("$ZodUnknown",(e,t)=>{we.init(e,t),e._zod.parse=i=>i}),Gw=M("$ZodNever",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:e}),i)}),Vw=M("$ZodVoid",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value;return typeof r>"u"||i.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),i}}),Yw=M("$ZodDate",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=new Date(i.value)}catch{}const r=i.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),i}});function l_(e,t,i){e.issues.length&&t.issues.push(...Un(i,e.issues)),t.value[i]=e.value}const Xw=M("$ZodArray",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value;if(!Array.isArray(r))return i.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),i;i.value=Array(r.length);const o=[];for(let s=0;s<r.length;s++){const f=r[s],m=t.element._zod.run({value:f,issues:[]},a);m instanceof Promise?o.push(m.then(d=>l_(d,i,s))):l_(m,i,s)}return o.length?Promise.all(o).then(()=>i):i}});function Is(e,t,i,a){e.issues.length&&t.issues.push(...Un(i,e.issues)),e.value===void 0?i in a&&(t.value[i]=void 0):t.value[i]=e.value}function Qw(e){const t=Object.keys(e.shape);for(const a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const i=HS(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function Jw(e,t,i,a,r,o){const s=[],f=r.keySet,m=r.catchall._zod,d=m.def.type;for(const p in t){if(f.has(p))continue;if(d==="never"){s.push(p);continue}const v=m.run({value:t[p],issues:[]},a);v instanceof Promise?e.push(v.then(b=>Is(b,i,p,t))):Is(v,i,p,t)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>i):i}const Kw=M("$ZodObject",(e,t)=>{if(we.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const m={...f};return Object.defineProperty(t,"shape",{value:m}),m}})}const a=ko(()=>Qw(t));Re(e._zod,"propValues",()=>{const f=t.shape,m={};for(const d in f){const p=f[d]._zod;if(p.values){m[d]??(m[d]=new Set);for(const v of p.values)m[d].add(v)}}return m});const r=Ma,o=t.catchall;let s;e._zod.parse=(f,m)=>{s??(s=a.value);const d=f.value;if(!r(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;f.value={};const p=[],v=s.shape;for(const b of s.keys){const S=v[b]._zod.run({value:d[b],issues:[]},m);S instanceof Promise?p.push(S.then(w=>Is(w,f,b,d))):Is(S,f,b,d)}return o?Jw(p,d,f,m,a.value,e):p.length?Promise.all(p).then(()=>f):f}}),Ww=M("$ZodObjectJIT",(e,t)=>{Kw.init(e,t);const i=e._zod.parse,a=ko(()=>Qw(t)),r=b=>{const x=new cw(["shape","payload","ctx"]),S=a.value,w=O=>{const G=Gh(O);return`shape[${G}]._zod.run({ value: input[${G}], issues: [] }, ctx)`};x.write("const input = payload.value;");const N=Object.create(null);let j=0;for(const O of S.keys)N[O]=`key_${j++}`;x.write("const newResult = {};");for(const O of S.keys){const G=N[O],X=Gh(O);x.write(`const ${G} = ${w(O)};`),x.write(`
22
+ if (${G}.issues.length) {
23
+ payload.issues = payload.issues.concat(${G}.issues.map(iss => ({
24
+ ...iss,
25
+ path: iss.path ? [${X}, ...iss.path] : [${X}]
26
+ })));
27
+ }
28
+
29
+
30
+ if (${G}.value === undefined) {
31
+ if (${X} in input) {
32
+ newResult[${X}] = undefined;
33
+ }
34
+ } else {
35
+ newResult[${X}] = ${G}.value;
36
+ }
37
+
38
+ `)}x.write("payload.value = newResult;"),x.write("return payload;");const C=x.compile();return(O,G)=>C(b,O,G)};let o;const s=Ma,f=!Cs.jitless,d=f&&BS.value,p=t.catchall;let v;e._zod.parse=(b,x)=>{v??(v=a.value);const S=b.value;return s(S)?f&&d&&x?.async===!1&&x.jitless!==!0?(o||(o=r(t.shape)),b=o(b,x),p?Jw([],S,b,x,v,e):b):i(b,x):(b.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),b)}});function o_(e,t,i,a){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const r=e.filter(o=>!Ti(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(o=>o.issues.map(s=>On(s,a,Dt())))}),t)}const tc=M("$ZodUnion",(e,t)=>{we.init(e,t),Re(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Re(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Re(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Re(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Js(o.source)).join("|")})$`)}});const i=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(i)return a(r,o);let s=!1;const f=[];for(const m of t.options){const d=m._zod.run({value:r.value,issues:[]},o);if(d instanceof Promise)f.push(d),s=!0;else{if(d.issues.length===0)return d;f.push(d)}}return s?Promise.all(f).then(m=>o_(m,r,e,o)):o_(f,r,e,o)}});function u_(e,t,i,a){const r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(o=>o.issues.map(s=>On(s,a,Dt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:[],inclusive:!1}),t)}const e$=M("$ZodXor",(e,t)=>{tc.init(e,t),t.inclusive=!1;const i=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(i)return a(r,o);let s=!1;const f=[];for(const m of t.options){const d=m._zod.run({value:r.value,issues:[]},o);d instanceof Promise?(f.push(d),s=!0):f.push(d)}return s?Promise.all(f).then(m=>u_(m,r,e,o)):u_(f,r,e,o)}}),t$=M("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,tc.init(e,t);const i=e._zod.parse;Re(e._zod,"propValues",()=>{const r={};for(const o of t.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[f,m]of Object.entries(s)){r[f]||(r[f]=new Set);for(const d of m)r[f].add(d)}}return r});const a=ko(()=>{const r=t.options,o=new Map;for(const s of r){const f=s._zod.propValues?.[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const m of f){if(o.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);o.set(m,s)}}return o});e._zod.parse=(r,o)=>{const s=r.value;if(!Ma(s))return r.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),r;const f=a.value.get(s?.[t.discriminator]);return f?f._zod.run(r,o):t.unionFallback?i(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),r)}}),n$=M("$ZodIntersection",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value,o=t.left._zod.run({value:r,issues:[]},a),s=t.right._zod.run({value:r,issues:[]},a);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([m,d])=>s_(i,m,d)):s_(i,o,s)}});function Xh(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(Ui(e)&&Ui(t)){const i=Object.keys(t),a=Object.keys(e).filter(o=>i.indexOf(o)!==-1),r={...e,...t};for(const o of a){const s=Xh(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r[o]=s.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const i=[];for(let a=0;a<e.length;a++){const r=e[a],o=t[a],s=Xh(r,o);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};i.push(s.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function s_(e,t,i){if(t.issues.length&&e.issues.push(...t.issues),i.issues.length&&e.issues.push(...i.issues),Ti(e))return e;const a=Xh(t.value,i.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const qp=M("$ZodTuple",(e,t)=>{we.init(e,t);const i=t.items;e._zod.parse=(a,r)=>{const o=a.value;if(!Array.isArray(o))return a.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];const s=[],f=[...i].reverse().findIndex(p=>p._zod.optin!=="optional"),m=f===-1?0:i.length-f;if(!t.rest){const p=o.length>i.length,v=o.length<m-1;if(p||v)return a.issues.push({...p?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},input:o,inst:e,origin:"array"}),a}let d=-1;for(const p of i){if(d++,d>=o.length&&d>=m)continue;const v=p._zod.run({value:o[d],issues:[]},r);v instanceof Promise?s.push(v.then(b=>gs(b,a,d))):gs(v,a,d)}if(t.rest){const p=o.slice(i.length);for(const v of p){d++;const b=t.rest._zod.run({value:v,issues:[]},r);b instanceof Promise?s.push(b.then(x=>gs(x,a,d))):gs(b,a,d)}}return s.length?Promise.all(s).then(()=>a):a}});function gs(e,t,i){e.issues.length&&t.issues.push(...Un(i,e.issues)),t.value[i]=e.value}const r$=M("$ZodRecord",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value;if(!Ui(r))return i.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),i;const o=[],s=t.keyType._zod.values;if(s){i.value={};const f=new Set;for(const d of s)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){f.add(typeof d=="number"?d.toString():d);const p=t.valueType._zod.run({value:r[d],issues:[]},a);p instanceof Promise?o.push(p.then(v=>{v.issues.length&&i.issues.push(...Un(d,v.issues)),i.value[d]=v.value})):(p.issues.length&&i.issues.push(...Un(d,p.issues)),i.value[d]=p.value)}let m;for(const d in r)f.has(d)||(m=m??[],m.push(d));m&&m.length>0&&i.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:m})}else{i.value={};for(const f of Reflect.ownKeys(r)){if(f==="__proto__")continue;const m=t.keyType._zod.run({value:f,issues:[]},a);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){t.mode==="loose"?i.value[f]=r[f]:i.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(p=>On(p,a,Dt())),input:f,path:[f],inst:e});continue}const d=t.valueType._zod.run({value:r[f],issues:[]},a);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&i.issues.push(...Un(f,p.issues)),i.value[m.value]=p.value})):(d.issues.length&&i.issues.push(...Un(f,d.issues)),i.value[m.value]=d.value)}}return o.length?Promise.all(o).then(()=>i):i}}),i$=M("$ZodMap",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value;if(!(r instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),i;const o=[];i.value=new Map;for(const[s,f]of r){const m=t.keyType._zod.run({value:s,issues:[]},a),d=t.valueType._zod.run({value:f,issues:[]},a);m instanceof Promise||d instanceof Promise?o.push(Promise.all([m,d]).then(([p,v])=>{c_(p,v,i,s,r,e,a)})):c_(m,d,i,s,r,e,a)}return o.length?Promise.all(o).then(()=>i):i}});function c_(e,t,i,a,r,o,s){e.issues.length&&(Ds.has(typeof a)?i.issues.push(...Un(a,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(f=>On(f,s,Dt()))})),t.issues.length&&(Ds.has(typeof a)?i.issues.push(...Un(a,t.issues)):i.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:a,issues:t.issues.map(f=>On(f,s,Dt()))})),i.value.set(e.value,t.value)}const a$=M("$ZodSet",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value;if(!(r instanceof Set))return i.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),i;const o=[];i.value=new Set;for(const s of r){const f=t.valueType._zod.run({value:s,issues:[]},a);f instanceof Promise?o.push(f.then(m=>f_(m,i))):f_(f,i)}return o.length?Promise.all(o).then(()=>i):i}});function f_(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const l$=M("$ZodEnum",(e,t)=>{we.init(e,t);const i=_p(t.entries),a=new Set(i);e._zod.values=a,e._zod.pattern=new RegExp(`^(${i.filter(r=>Ds.has(typeof r)).map(r=>typeof r=="string"?Er(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return a.has(s)||r.issues.push({code:"invalid_value",values:i,input:s,inst:e}),r}}),o$=M("$ZodLiteral",(e,t)=>{if(we.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const i=new Set(t.values);e._zod.values=i,e._zod.pattern=new RegExp(`^(${t.values.map(a=>typeof a=="string"?Er(a):a?Er(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,r)=>{const o=a.value;return i.has(o)||a.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),a}}),u$=M("$ZodFile",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{const r=i.value;return r instanceof File||i.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),i}}),s$=M("$ZodTransform",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{if(a.direction==="backward")throw new Qs(e.constructor.name);const r=t.transform(i.value,i);if(a.async)return(r instanceof Promise?r:Promise.resolve(r)).then(s=>(i.value=s,i));if(r instanceof Promise)throw new Ai;return i.value=r,i}});function d_(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const c$=M("$ZodOptional",(e,t)=>{we.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Re(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${Js(i.source)})?$`):void 0}),e._zod.parse=(i,a)=>{if(t.innerType._zod.optin==="optional"){const r=t.innerType._zod.run(i,a);return r instanceof Promise?r.then(o=>d_(o,i.value)):d_(r,i.value)}return i.value===void 0?i:t.innerType._zod.run(i,a)}}),f$=M("$ZodNullable",(e,t)=>{we.init(e,t),Re(e._zod,"optin",()=>t.innerType._zod.optin),Re(e._zod,"optout",()=>t.innerType._zod.optout),Re(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${Js(i.source)}|null)$`):void 0}),Re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(i,a)=>i.value===null?i:t.innerType._zod.run(i,a)}),d$=M("$ZodDefault",(e,t)=>{we.init(e,t),e._zod.optin="optional",Re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,a)=>{if(a.direction==="backward")return t.innerType._zod.run(i,a);if(i.value===void 0)return i.value=t.defaultValue,i;const r=t.innerType._zod.run(i,a);return r instanceof Promise?r.then(o=>m_(o,t)):m_(r,t)}});function m_(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const m$=M("$ZodPrefault",(e,t)=>{we.init(e,t),e._zod.optin="optional",Re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,a)=>(a.direction==="backward"||i.value===void 0&&(i.value=t.defaultValue),t.innerType._zod.run(i,a))}),h$=M("$ZodNonOptional",(e,t)=>{we.init(e,t),Re(e._zod,"values",()=>{const i=t.innerType._zod.values;return i?new Set([...i].filter(a=>a!==void 0)):void 0}),e._zod.parse=(i,a)=>{const r=t.innerType._zod.run(i,a);return r instanceof Promise?r.then(o=>h_(o,e)):h_(r,e)}});function h_(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const p$=M("$ZodSuccess",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>{if(a.direction==="backward")throw new Qs("ZodSuccess");const r=t.innerType._zod.run(i,a);return r instanceof Promise?r.then(o=>(i.value=o.issues.length===0,i)):(i.value=r.issues.length===0,i)}}),g$=M("$ZodCatch",(e,t)=>{we.init(e,t),Re(e._zod,"optin",()=>t.innerType._zod.optin),Re(e._zod,"optout",()=>t.innerType._zod.optout),Re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,a)=>{if(a.direction==="backward")return t.innerType._zod.run(i,a);const r=t.innerType._zod.run(i,a);return r instanceof Promise?r.then(o=>(i.value=o.value,o.issues.length&&(i.value=t.catchValue({...i,error:{issues:o.issues.map(s=>On(s,a,Dt()))},input:i.value}),i.issues=[]),i)):(i.value=r.value,r.issues.length&&(i.value=t.catchValue({...i,error:{issues:r.issues.map(o=>On(o,a,Dt()))},input:i.value}),i.issues=[]),i)}}),v$=M("$ZodNaN",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>((typeof i.value!="number"||!Number.isNaN(i.value))&&i.issues.push({input:i.value,inst:e,expected:"nan",code:"invalid_type"}),i)}),y$=M("$ZodPipe",(e,t)=>{we.init(e,t),Re(e._zod,"values",()=>t.in._zod.values),Re(e._zod,"optin",()=>t.in._zod.optin),Re(e._zod,"optout",()=>t.out._zod.optout),Re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(i,a)=>{if(a.direction==="backward"){const o=t.out._zod.run(i,a);return o instanceof Promise?o.then(s=>vs(s,t.in,a)):vs(o,t.in,a)}const r=t.in._zod.run(i,a);return r instanceof Promise?r.then(o=>vs(o,t.out,a)):vs(r,t.out,a)}});function vs(e,t,i){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}const Bp=M("$ZodCodec",(e,t)=>{we.init(e,t),Re(e._zod,"values",()=>t.in._zod.values),Re(e._zod,"optin",()=>t.in._zod.optin),Re(e._zod,"optout",()=>t.out._zod.optout),Re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(i,a)=>{if((a.direction||"forward")==="forward"){const o=t.in._zod.run(i,a);return o instanceof Promise?o.then(s=>ys(s,t,a)):ys(o,t,a)}else{const o=t.out._zod.run(i,a);return o instanceof Promise?o.then(s=>ys(s,t,a)):ys(o,t,a)}}});function ys(e,t,i){if(e.issues.length)return e.aborted=!0,e;if((i.direction||"forward")==="forward"){const r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>bs(e,o,t.out,i)):bs(e,r,t.out,i)}else{const r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>bs(e,o,t.in,i)):bs(e,r,t.in,i)}}function bs(e,t,i,a){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:t,issues:e.issues},a)}const b$=M("$ZodReadonly",(e,t)=>{we.init(e,t),Re(e._zod,"propValues",()=>t.innerType._zod.propValues),Re(e._zod,"values",()=>t.innerType._zod.values),Re(e._zod,"optin",()=>t.innerType?._zod?.optin),Re(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(i,a)=>{if(a.direction==="backward")return t.innerType._zod.run(i,a);const r=t.innerType._zod.run(i,a);return r instanceof Promise?r.then(p_):p_(r)}});function p_(e){return e.value=Object.freeze(e.value),e}const x$=M("$ZodTemplateLiteral",(e,t)=>{we.init(e,t);const i=[];for(const a of t.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);const r=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${a._zod.traits}`);const o=r.startsWith("^")?1:0,s=r.endsWith("$")?r.length-1:r.length;i.push(r.slice(o,s))}else if(a===null||FS.has(typeof a))i.push(Er(`${a}`));else throw new Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${i.join("")}$`),e._zod.parse=(a,r)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"template_literal",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a)}),_$=M("$ZodFunction",(e,t)=>(we.init(e,t),e._def=t,e._zod.def=t,e.implement=i=>{if(typeof i!="function")throw new Error("implement() must be called with a function");return function(...a){const r=e._def.input?Vh(e._def.input,a):a,o=Reflect.apply(i,this,r);return e._def.output?Vh(e._def.output,o):o}},e.implementAsync=i=>{if(typeof i!="function")throw new Error("implementAsync() must be called with a function");return async function(...a){const r=e._def.input?await Yh(e._def.input,a):a,o=await Reflect.apply(i,this,r);return e._def.output?await Yh(e._def.output,o):o}},e._zod.parse=(i,a)=>typeof i.value!="function"?(i.issues.push({code:"invalid_type",expected:"function",input:i.value,inst:e}),i):(e._def.output&&e._def.output._zod.def.type==="promise"?i.value=e.implementAsync(i.value):i.value=e.implement(i.value),i),e.input=(...i)=>{const a=e.constructor;return Array.isArray(i[0])?new a({type:"function",input:new qp({type:"tuple",items:i[0],rest:i[1]}),output:e._def.output}):new a({type:"function",input:i[0],output:e._def.output})},e.output=i=>{const a=e.constructor;return new a({type:"function",input:e._def.input,output:i})},e)),S$=M("$ZodPromise",(e,t)=>{we.init(e,t),e._zod.parse=(i,a)=>Promise.resolve(i.value).then(r=>t.innerType._zod.run({value:r,issues:[]},a))}),k$=M("$ZodLazy",(e,t)=>{we.init(e,t),Re(e._zod,"innerType",()=>t.getter()),Re(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Re(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Re(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Re(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(i,a)=>e._zod.innerType._zod.run(i,a)}),w$=M("$ZodCustom",(e,t)=>{ut.init(e,t),we.init(e,t),e._zod.parse=(i,a)=>i,e._zod.check=i=>{const a=i.value,r=t.fn(a);if(r instanceof Promise)return r.then(o=>g_(o,i,a,e));g_(r,i,a,e)}});function g_(e,t,i,a){if(!e){const r={code:"custom",input:i,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(r.params=a._zod.def.params),t.issues.push(Pa(r))}}const HC=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return r=>{switch(r.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${r.expected}، ولكن تم إدخال ${i(r.input)}`;case"invalid_value":return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${_e(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?` أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${o} ${r.maximum.toString()} ${s.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()} ${s.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${r.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${a[o.format]??r.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case"unrecognized_keys":return`معرف${r.keys.length>1?"ات":""} غريب${r.keys.length>1?"ة":""}: ${ue(r.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${r.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${r.origin}`;default:return"مدخل غير مقبول"}}};function GC(){return{localeError:HC()}}const VC=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(r){return e[r]??null}const i=r=>{const 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},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 r=>{switch(r.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${r.expected}, daxil olan ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Yanlış dəyər: gözlənilən ${_e(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${o}${r.maximum.toString()} ${s.unit??"element"}`:`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()} ${s.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${a[o.format]??r.format}`}case"not_multiple_of":return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${r.keys.length>1?"lar":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${r.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function YC(){return{localeError:VC()}}function v_(e,t,i,a){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19?a:o===1?t:o>=2&&o<=4?i:a}const XC=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"лік";case"object":{if(Array.isArray(r))return"масіў";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return r=>{switch(r.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${r.expected}, атрымана ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Няправільны ўвод: чакалася ${_e(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);if(s){const f=Number(r.maximum),m=v_(f,s.unit.one,s.unit.few,s.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна ${s.verb} ${o}${r.maximum.toString()} ${m}`}return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна быць ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);if(s){const f=Number(r.minimum),m=v_(f,s.unit.one,s.unit.few,s.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${s.verb} ${o}${r.minimum.toString()} ${m}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${a[o.format]??r.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${r.keys.length>1?"ключы":"ключ"}: ${ue(r.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${r.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${r.origin}`;default:return"Няправільны ўвод"}}};function QC(){return{localeError:XC()}}const JC=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},KC=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(a){return e[a]??null}const i={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"};return a=>{switch(a.code){case"invalid_type":return`Невалиден вход: очакван ${a.expected}, получен ${JC(a.input)}`;case"invalid_value":return a.values.length===1?`Невалиден вход: очакван ${_e(a.values[0])}`:`Невалидна опция: очаквано едно от ${ue(a.values,"|")}`;case"too_big":{const r=a.inclusive?"<=":"<",o=t(a.origin);return o?`Твърде голямо: очаква се ${a.origin??"стойност"} да съдържа ${r}${a.maximum.toString()} ${o.unit??"елемента"}`:`Твърде голямо: очаква се ${a.origin??"стойност"} да бъде ${r}${a.maximum.toString()}`}case"too_small":{const r=a.inclusive?">=":">",o=t(a.origin);return o?`Твърде малко: очаква се ${a.origin} да съдържа ${r}${a.minimum.toString()} ${o.unit}`:`Твърде малко: очаква се ${a.origin} да бъде ${r}${a.minimum.toString()}`}case"invalid_format":{const r=a;if(r.format==="starts_with")return`Невалиден низ: трябва да започва с "${r.prefix}"`;if(r.format==="ends_with")return`Невалиден низ: трябва да завършва с "${r.suffix}"`;if(r.format==="includes")return`Невалиден низ: трябва да включва "${r.includes}"`;if(r.format==="regex")return`Невалиден низ: трябва да съвпада с ${r.pattern}`;let o="Невалиден";return r.format==="emoji"&&(o="Невалидно"),r.format==="datetime"&&(o="Невалидно"),r.format==="date"&&(o="Невалидна"),r.format==="time"&&(o="Невалидно"),r.format==="duration"&&(o="Невалидна"),`${o} ${i[r.format]??a.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${a.divisor}`;case"unrecognized_keys":return`Неразпознат${a.keys.length>1?"и":""} ключ${a.keys.length>1?"ове":""}: ${ue(a.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${a.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${a.origin}`;default:return"Невалиден вход"}}};function WC(){return{localeError:KC()}}const eR=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipus invàlid: s'esperava ${r.expected}, s'ha rebut ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Valor invàlid: s'esperava ${_e(r.values[0])}`:`Opció invàlida: s'esperava una de ${ue(r.values," o ")}`;case"too_big":{const o=r.inclusive?"com a màxim":"menys de",s=t(r.origin);return s?`Massa gran: s'esperava que ${r.origin??"el valor"} contingués ${o} ${r.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"com a mínim":"més de",s=t(r.origin);return s?`Massa petit: s'esperava que ${r.origin} contingués ${o} ${r.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${a[o.format]??r.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${r.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${r.origin}`;default:return"Entrada invàlida"}}};function tR(){return{localeError:eR()}}const nR=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return r=>{switch(r.code){case"invalid_type":return`Neplatný vstup: očekáváno ${r.expected}, obdrženo ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatný vstup: očekáváno ${_e(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Hodnota je příliš velká: ${r.origin??"hodnota"} musí mít ${o}${r.maximum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš velká: ${r.origin??"hodnota"} musí být ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Hodnota je příliš malá: ${r.origin??"hodnota"} musí mít ${o}${r.minimum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš malá: ${r.origin??"hodnota"} musí být ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${a[o.format]??r.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${r.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${ue(r.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${r.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${r.origin}`;default:return"Neplatný vstup"}}};function rR(){return{localeError:nR()}}const iR=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function i(s){return e[s]??null}function a(s){return t[s]??s}const r=s=>{const f=typeof s;switch(f){case"number":return Number.isNaN(s)?"NaN":"tal";case"object":return Array.isArray(s)?"liste":s===null?"null":Object.getPrototypeOf(s)!==Object.prototype&&s.constructor?s.constructor.name:"objekt"}return f},o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return s=>{switch(s.code){case"invalid_type":return`Ugyldigt input: forventede ${a(s.expected)}, fik ${a(r(s.input))}`;case"invalid_value":return s.values.length===1?`Ugyldig værdi: forventede ${_e(s.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ue(s.values,"|")}`;case"too_big":{const f=s.inclusive?"<=":"<",m=i(s.origin),d=a(s.origin);return m?`For stor: forventede ${d??"value"} ${m.verb} ${f} ${s.maximum.toString()} ${m.unit??"elementer"}`:`For stor: forventede ${d??"value"} havde ${f} ${s.maximum.toString()}`}case"too_small":{const f=s.inclusive?">=":">",m=i(s.origin),d=a(s.origin);return m?`For lille: forventede ${d} ${m.verb} ${f} ${s.minimum.toString()} ${m.unit}`:`For lille: forventede ${d} havde ${f} ${s.minimum.toString()}`}case"invalid_format":{const f=s;return f.format==="starts_with"?`Ugyldig streng: skal starte med "${f.prefix}"`:f.format==="ends_with"?`Ugyldig streng: skal ende med "${f.suffix}"`:f.format==="includes"?`Ugyldig streng: skal indeholde "${f.includes}"`:f.format==="regex"?`Ugyldig streng: skal matche mønsteret ${f.pattern}`:`Ugyldig ${o[f.format]??s.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${s.divisor}`;case"unrecognized_keys":return`${s.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${ue(s.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${s.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${s.origin}`;default:return"Ugyldigt input"}}};function aR(){return{localeError:iR()}}const lR=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}const i=r=>{const 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},a={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ültige Eingabe: erwartet ${r.expected}, erhalten ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Ungültige Eingabe: erwartet ${_e(r.values[0])}`:`Ungültige Option: erwartet eine von ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Zu groß: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${a[o.format]??r.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${ue(r.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${r.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${r.origin}`;default:return"Ungültige Eingabe"}}};function oR(){return{localeError:lR()}}const uR=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},sR=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(a){return e[a]??null}const i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC 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 a=>{switch(a.code){case"invalid_type":return`Invalid input: expected ${a.expected}, received ${uR(a.input)}`;case"invalid_value":return a.values.length===1?`Invalid input: expected ${_e(a.values[0])}`:`Invalid option: expected one of ${ue(a.values,"|")}`;case"too_big":{const r=a.inclusive?"<=":"<",o=t(a.origin);return o?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{const r=a.inclusive?">=":">",o=t(a.origin);return o?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${o.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{const r=a;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 ${i[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${ue(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function $$(){return{localeError:sR()}}const cR=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},fR=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??null}const i={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return a=>{switch(a.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${a.expected}, riceviĝis ${cR(a.input)}`;case"invalid_value":return a.values.length===1?`Nevalida enigo: atendiĝis ${_e(a.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ue(a.values,"|")}`;case"too_big":{const r=a.inclusive?"<=":"<",o=t(a.origin);return o?`Tro granda: atendiĝis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()}`}case"too_small":{const r=a.inclusive?">=":">",o=t(a.origin);return o?`Tro malgranda: atendiĝis ke ${a.origin} havu ${r}${a.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${a.origin} estu ${r}${a.minimum.toString()}`}case"invalid_format":{const r=a;return r.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas finiĝi 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 ${i[r.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} ŝlosilo${a.keys.length>1?"j":""}: ${ue(a.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function dR(){return{localeError:fR()}}const mR=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function i(s){return e[s]??null}function a(s){return t[s]??s}const r=s=>{const f=typeof s;switch(f){case"number":return Number.isNaN(s)?"NaN":"number";case"object":return Array.isArray(s)?"array":s===null?"null":Object.getPrototypeOf(s)!==Object.prototype?s.constructor.name:"object"}return f},o={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return s=>{switch(s.code){case"invalid_type":return`Entrada inválida: se esperaba ${a(s.expected)}, recibido ${a(r(s.input))}`;case"invalid_value":return s.values.length===1?`Entrada inválida: se esperaba ${_e(s.values[0])}`:`Opción inválida: se esperaba una de ${ue(s.values,"|")}`;case"too_big":{const f=s.inclusive?"<=":"<",m=i(s.origin),d=a(s.origin);return m?`Demasiado grande: se esperaba que ${d??"valor"} tuviera ${f}${s.maximum.toString()} ${m.unit??"elementos"}`:`Demasiado grande: se esperaba que ${d??"valor"} fuera ${f}${s.maximum.toString()}`}case"too_small":{const f=s.inclusive?">=":">",m=i(s.origin),d=a(s.origin);return m?`Demasiado pequeño: se esperaba que ${d} tuviera ${f}${s.minimum.toString()} ${m.unit}`:`Demasiado pequeño: se esperaba que ${d} fuera ${f}${s.minimum.toString()}`}case"invalid_format":{const f=s;return f.format==="starts_with"?`Cadena inválida: debe comenzar con "${f.prefix}"`:f.format==="ends_with"?`Cadena inválida: debe terminar en "${f.suffix}"`:f.format==="includes"?`Cadena inválida: debe incluir "${f.includes}"`:f.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${f.pattern}`:`Inválido ${o[f.format]??s.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${s.divisor}`;case"unrecognized_keys":return`Llave${s.keys.length>1?"s":""} desconocida${s.keys.length>1?"s":""}: ${ue(s.keys,", ")}`;case"invalid_key":return`Llave inválida en ${a(s.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${a(s.origin)}`;default:return"Entrada inválida"}}};function hR(){return{localeError:mR()}}const pR=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"آرایه";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return r=>{switch(r.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${r.expected} می‌بود، ${i(r.input)} دریافت شد`;case"invalid_value":return r.values.length===1?`ورودی نامعتبر: می‌بایست ${_e(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${ue(r.values,"|")} می‌بود`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`خیلی بزرگ: ${r.origin??"مقدار"} باید ${o}${r.maximum.toString()} ${s.unit??"عنصر"} باشد`:`خیلی بزرگ: ${r.origin??"مقدار"} باید ${o}${r.maximum.toString()} باشد`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} ${s.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} باشد`}case"invalid_format":{const o=r;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${a[o.format]??r.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case"unrecognized_keys":return`کلید${r.keys.length>1?"های":""} ناشناس: ${ue(r.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${r.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${r.origin}`;default:return"ورودی نامعتبر"}}};function gR(){return{localeError:pR()}}const vR=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen syöte: täytyy olla ${_e(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Liian suuri: ${s.subject} täytyy olla ${o}${r.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Liian pieni: ${s.subject} täytyy olla ${o}${r.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${a[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ue(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öte"}}};function yR(){return{localeError:vR()}}const bR=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return r=>{switch(r.code){case"invalid_type":return`Entrée invalide : ${r.expected} attendu, ${i(r.input)} reçu`;case"invalid_value":return r.values.length===1?`Entrée invalide : ${_e(r.values[0])} attendu`:`Option invalide : une valeur parmi ${ue(r.values,"|")} attendue`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Trop grand : ${r.origin??"valeur"} doit ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"élément(s)"}`:`Trop grand : ${r.origin??"valeur"} doit être ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Trop petit : ${r.origin} doit ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Trop petit : ${r.origin} doit être ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${a[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${ue(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function xR(){return{localeError:bR()}}const _R=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return r=>{switch(r.code){case"invalid_type":return`Entrée invalide : attendu ${r.expected}, reçu ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Entrée invalide : attendu ${_e(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"≤":"<",s=t(r.origin);return s?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"≥":">",s=t(r.origin);return s?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${a[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${ue(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function SR(){return{localeError:_R()}}const kR=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},i=d=>d?e[d]:void 0,a=d=>{const p=i(d);return p?p.label:d??e.unknown.label},r=d=>`ה${a(d)}`,o=d=>(i(d)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",s=d=>d?t[d]??null:null,f=d=>{const p=typeof d;switch(p){case"number":return Number.isNaN(d)?"NaN":"number";case"object":return Array.isArray(d)?"array":d===null?"null":Object.getPrototypeOf(d)!==Object.prototype&&d.constructor?d.constructor.name:"object";default:return p}},m={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}};return d=>{switch(d.code){case"invalid_type":{const p=d.expected,v=a(p),b=f(d.input),x=e[b]?.label??b;return`קלט לא תקין: צריך להיות ${v}, התקבל ${x}`}case"invalid_value":{if(d.values.length===1)return`ערך לא תקין: הערך חייב להיות ${_e(d.values[0])}`;const p=d.values.map(x=>_e(x));if(d.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${p[0]} או ${p[1]}`;const v=p[p.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${p.slice(0,-1).join(", ")} או ${v}`}case"too_big":{const p=s(d.origin),v=r(d.origin??"value");if(d.origin==="string")return`${p?.longLabel??"ארוך"} מדי: ${v} צריכה להכיל ${d.maximum.toString()} ${p?.unit??""} ${d.inclusive?"או פחות":"לכל היותר"}`.trim();if(d.origin==="number"){const S=d.inclusive?`קטן או שווה ל-${d.maximum}`:`קטן מ-${d.maximum}`;return`גדול מדי: ${v} צריך להיות ${S}`}if(d.origin==="array"||d.origin==="set"){const S=d.origin==="set"?"צריכה":"צריך",w=d.inclusive?`${d.maximum} ${p?.unit??""} או פחות`:`פחות מ-${d.maximum} ${p?.unit??""}`;return`גדול מדי: ${v} ${S} להכיל ${w}`.trim()}const b=d.inclusive?"<=":"<",x=o(d.origin??"value");return p?.unit?`${p.longLabel} מדי: ${v} ${x} ${b}${d.maximum.toString()} ${p.unit}`:`${p?.longLabel??"גדול"} מדי: ${v} ${x} ${b}${d.maximum.toString()}`}case"too_small":{const p=s(d.origin),v=r(d.origin??"value");if(d.origin==="string")return`${p?.shortLabel??"קצר"} מדי: ${v} צריכה להכיל ${d.minimum.toString()} ${p?.unit??""} ${d.inclusive?"או יותר":"לפחות"}`.trim();if(d.origin==="number"){const S=d.inclusive?`גדול או שווה ל-${d.minimum}`:`גדול מ-${d.minimum}`;return`קטן מדי: ${v} צריך להיות ${S}`}if(d.origin==="array"||d.origin==="set"){const S=d.origin==="set"?"צריכה":"צריך";if(d.minimum===1&&d.inclusive){const N=(d.origin==="set","לפחות פריט אחד");return`קטן מדי: ${v} ${S} להכיל ${N}`}const w=d.inclusive?`${d.minimum} ${p?.unit??""} או יותר`:`יותר מ-${d.minimum} ${p?.unit??""}`;return`קטן מדי: ${v} ${S} להכיל ${w}`.trim()}const b=d.inclusive?">=":">",x=o(d.origin??"value");return p?.unit?`${p.shortLabel} מדי: ${v} ${x} ${b}${d.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"קטן"} מדי: ${v} ${x} ${b}${d.minimum.toString()}`}case"invalid_format":{const p=d;if(p.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${p.prefix}"`;if(p.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${p.suffix}"`;if(p.format==="includes")return`המחרוזת חייבת לכלול "${p.includes}"`;if(p.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${p.pattern}`;const v=m[p.format],b=v?.label??p.format,S=(v?.gender??"m")==="f"?"תקינה":"תקין";return`${b} לא ${S}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${d.divisor}`;case"unrecognized_keys":return`מפתח${d.keys.length>1?"ות":""} לא מזוה${d.keys.length>1?"ים":"ה"}: ${ue(d.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${r(d.origin??"array")}`;default:return"קלט לא תקין"}}};function wR(){return{localeError:kR()}}const $R=()=>{const 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}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"szám";case"object":{if(Array.isArray(r))return"tömb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return r=>{switch(r.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${r.expected}, a kapott érték ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Érvénytelen bemenet: a várt érték ${_e(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Túl nagy: ${r.origin??"érték"} mérete túl nagy ${o}${r.maximum.toString()} ${s.unit??"elem"}`:`Túl nagy: a bemeneti érték ${r.origin??"érték"} túl nagy: ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${o}${r.minimum.toString()} ${s.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${a[o.format]??r.format}`}case"not_multiple_of":return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${r.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${r.origin}`;default:return"Érvénytelen bemenet"}}};function ER(){return{localeError:$R()}}const jR=()=>{const 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}const i=r=>{const 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},a={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 ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${_e(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{const 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}`:`${a[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":""}: ${ue(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 NR(){return{localeError:jR()}}const zR=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},OR=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(a){return e[a]??null}const i={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return a=>{switch(a.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${zR(a.input)} þar sem á að vera ${a.expected}`;case"invalid_value":return a.values.length===1?`Rangt gildi: gert ráð fyrir ${_e(a.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ue(a.values,"|")}`;case"too_big":{const r=a.inclusive?"<=":"<",o=t(a.origin);return o?`Of stórt: gert er ráð fyrir að ${a.origin??"gildi"} hafi ${r}${a.maximum.toString()} ${o.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${a.origin??"gildi"} sé ${r}${a.maximum.toString()}`}case"too_small":{const r=a.inclusive?">=":">",o=t(a.origin);return o?`Of lítið: gert er ráð fyrir að ${a.origin} hafi ${r}${a.minimum.toString()} ${o.unit}`:`Of lítið: gert er ráð fyrir að ${a.origin} sé ${r}${a.minimum.toString()}`}case"invalid_format":{const r=a;return r.format==="starts_with"?`Ógildur strengur: verður að byrja á "${r.prefix}"`:r.format==="ends_with"?`Ógildur strengur: verður að enda á "${r.suffix}"`:r.format==="includes"?`Ógildur strengur: verður að innihalda "${r.includes}"`:r.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${r.pattern}`:`Rangt ${i[r.format]??a.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`Óþekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${ue(a.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${a.origin}`;default:return"Rangt gildi"}}};function TR(){return{localeError:OR()}}const AR=()=>{const 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}const i=r=>{const 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},a={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 ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${_e(r.values[0])}`:`Opzione non valida: atteso uno tra ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{const 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 ${a[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"}: ${ue(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 CR(){return{localeError:AR()}}const RR=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"数値";case"object":{if(Array.isArray(r))return"配列";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return r=>{switch(r.code){case"invalid_type":return`無効な入力: ${r.expected}が期待されましたが、${i(r.input)}が入力されました`;case"invalid_value":return r.values.length===1?`無効な入力: ${_e(r.values[0])}が期待されました`:`無効な選択: ${ue(r.values,"、")}のいずれかである必要があります`;case"too_big":{const o=r.inclusive?"以下である":"より小さい",s=t(r.origin);return s?`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${s.unit??"要素"}${o}必要があります`:`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${o}必要があります`}case"too_small":{const o=r.inclusive?"以上である":"より大きい",s=t(r.origin);return s?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${s.unit}${o}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=r;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${a[o.format]??r.format}`}case"not_multiple_of":return`無効な数値: ${r.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${r.keys.length>1?"群":""}: ${ue(r.keys,"、")}`;case"invalid_key":return`${r.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${r.origin}内の無効な値`;default:return"無効な入力"}}};function DR(){return{localeError:RR()}}const IR=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},UR=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(a){return e[a]??null}const i={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return a=>{switch(a.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${a.expected}, მიღებული ${IR(a.input)}`;case"invalid_value":return a.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${_e(a.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ue(a.values,"|")}-დან`;case"too_big":{const r=a.inclusive?"<=":"<",o=t(a.origin);return o?`ზედმეტად დიდი: მოსალოდნელი ${a.origin??"მნიშვნელობა"} ${o.verb} ${r}${a.maximum.toString()} ${o.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${a.origin??"მნიშვნელობა"} იყოს ${r}${a.maximum.toString()}`}case"too_small":{const r=a.inclusive?">=":">",o=t(a.origin);return o?`ზედმეტად პატარა: მოსალოდნელი ${a.origin} ${o.verb} ${r}${a.minimum.toString()} ${o.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${a.origin} იყოს ${r}${a.minimum.toString()}`}case"invalid_format":{const r=a;return r.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${r.prefix}"-ით`:r.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${r.suffix}"-ით`:r.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${r.includes}"-ს`:r.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${r.pattern}`:`არასწორი ${i[r.format]??a.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${a.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${a.keys.length>1?"ები":"ი"}: ${ue(a.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${a.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${a.origin}-ში`;default:return"არასწორი შეყვანა"}}};function LR(){return{localeError:UR()}}const MR=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"មិនមែនជាលេខ (NaN)":"លេខ";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},a={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return r=>{switch(r.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${r.expected} ប៉ុន្តែទទួលបាន ${i(r.input)}`;case"invalid_value":return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${_e(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${o} ${r.maximum.toString()} ${s.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()} ${s.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${a[o.format]??r.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${ue(r.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function E$(){return{localeError:MR()}}function PR(){return E$()}const ZR=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return r=>{switch(r.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${r.expected}, 받은 타입은 ${i(r.input)}입니다`;case"invalid_value":return r.values.length===1?`잘못된 입력: 값은 ${_e(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${ue(r.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=r.inclusive?"이하":"미만",s=o==="미만"?"이어야 합니다":"여야 합니다",f=t(r.origin),m=f?.unit??"요소";return f?`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()}${m} ${o}${s}`:`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()} ${o}${s}`}case"too_small":{const o=r.inclusive?"이상":"초과",s=o==="이상"?"이어야 합니다":"여야 합니다",f=t(r.origin),m=f?.unit??"요소";return f?`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()}${m} ${o}${s}`:`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()} ${o}${s}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${a[o.format]??r.format}`}case"not_multiple_of":return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${ue(r.keys,", ")}`;case"invalid_key":return`잘못된 키: ${r.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${r.origin}`;default:return"잘못된 입력"}}};function qR(){return{localeError:ZR()}}const BR=e=>ao(typeof e,e),ao=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Wl=e=>e.charAt(0).toUpperCase()+e.slice(1);function y_(e){const t=Math.abs(e),i=t%10,a=t%100;return a>=11&&a<=19||i===0?"many":i===1?"one":"few"}const FR=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(a,r,o,s){const f=e[a]??null;return f===null?f:{unit:f.unit[r],verb:f.verb[s][o?"inclusive":"notInclusive"]}}const i={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return a=>{switch(a.code){case"invalid_type":return`Gautas tipas ${BR(a.input)}, o tikėtasi - ${ao(a.expected)}`;case"invalid_value":return a.values.length===1?`Privalo būti ${_e(a.values[0])}`:`Privalo būti vienas iš ${ue(a.values,"|")} pasirinkimų`;case"too_big":{const r=ao(a.origin),o=t(a.origin,y_(Number(a.maximum)),a.inclusive??!1,"smaller");if(o?.verb)return`${Wl(r??a.origin??"reikšmė")} ${o.verb} ${a.maximum.toString()} ${o.unit??"elementų"}`;const s=a.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Wl(r??a.origin??"reikšmė")} turi būti ${s} ${a.maximum.toString()} ${o?.unit}`}case"too_small":{const r=ao(a.origin),o=t(a.origin,y_(Number(a.minimum)),a.inclusive??!1,"bigger");if(o?.verb)return`${Wl(r??a.origin??"reikšmė")} ${o.verb} ${a.minimum.toString()} ${o.unit??"elementų"}`;const s=a.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Wl(r??a.origin??"reikšmė")} turi būti ${s} ${a.minimum.toString()} ${o?.unit}`}case"invalid_format":{const r=a;return r.format==="starts_with"?`Eilutė privalo prasidėti "${r.prefix}"`:r.format==="ends_with"?`Eilutė privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilutė privalo įtraukti "${r.includes}"`:r.format==="regex"?`Eilutė privalo atitikti ${r.pattern}`:`Neteisingas ${i[r.format]??a.format}`}case"not_multiple_of":return`Skaičius privalo būti ${a.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${a.keys.length>1?"i":"as"} rakt${a.keys.length>1?"ai":"as"}: ${ue(a.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const r=ao(a.origin);return`${Wl(r??a.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function HR(){return{localeError:FR()}}const GR=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"број";case"object":{if(Array.isArray(r))return"низа";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return r=>{switch(r.code){case"invalid_type":return`Грешен внес: се очекува ${r.expected}, примено ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${_e(r.values[0])}`:`Грешана опција: се очекува една ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Премногу голем: се очекува ${r.origin??"вредноста"} да има ${o}${r.maximum.toString()} ${s.unit??"елементи"}`:`Премногу голем: се очекува ${r.origin??"вредноста"} да биде ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Премногу мал: се очекува ${r.origin} да има ${o}${r.minimum.toString()} ${s.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${a[o.format]??r.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ue(r.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${r.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${r.origin}`;default:return"Грешен внес"}}};function VR(){return{localeError:GR()}}const YR=()=>{const 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}const i=r=>{const 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},a={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 ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${_e(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: dijangka ${r.origin??"nilai"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: dijangka ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{const 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}`:`${a[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: ${ue(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 XR(){return{localeError:YR()}}const QR=()=>{const e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function t(r){return e[r]??null}const i=r=>{const 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},a={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 ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${_e(r.values[0])}`:`Ongeldige optie: verwacht één van ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Te groot: verwacht dat ${r.origin??"waarde"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"elementen"}`:`Te groot: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Te klein: verwacht dat ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Te klein: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{const 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: ${a[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":""}: ${ue(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 JR(){return{localeError:QR()}}const KR=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${_e(r.values[0])}`:`Ugyldig valg: forventet en av ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`For stor(t): forventet ${r.origin??"value"} til å ha ${o}${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til å ha ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${a[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${ue(r.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function WR(){return{localeError:KR()}}const eD=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return r=>{switch(r.code){case"invalid_type":return`Fâsit giren: umulan ${r.expected}, alınan ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Fâsit giren: umulan ${_e(r.values[0])}`:`Fâsit tercih: mûteberler ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Fazla büyük: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${s.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmalıydı.`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} ${s.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${a[o.format]??r.format}`}case"not_multiple_of":return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`${r.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function tD(){return{localeError:eD()}}const nD=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"ارې";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return r=>{switch(r.code){case"invalid_type":return`ناسم ورودي: باید ${r.expected} وای, مګر ${i(r.input)} ترلاسه شو`;case"invalid_value":return r.values.length===1?`ناسم ورودي: باید ${_e(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${ue(r.values,"|")} څخه وای`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`ډیر لوی: ${r.origin??"ارزښت"} باید ${o}${r.maximum.toString()} ${s.unit??"عنصرونه"} ولري`:`ډیر لوی: ${r.origin??"ارزښت"} باید ${o}${r.maximum.toString()} وي`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} ${s.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} وي`}case"invalid_format":{const o=r;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${a[o.format]??r.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${r.keys.length>1?"کلیډونه":"کلیډ"}: ${ue(r.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${r.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${r.origin} کې`;default:return"ناسمه ورودي"}}};function rD(){return{localeError:nD()}}const iD=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return r=>{switch(r.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${r.expected}, otrzymano ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${_e(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Za duża wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${o}${r.maximum.toString()} ${s.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Za mała wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${o}${r.minimum.toString()} ${s.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${a[o.format]??r.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${r.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${r.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function aD(){return{localeError:iD()}}const lD=()=>{const 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}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"número";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},a={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return r=>{switch(r.code){case"invalid_type":return`Tipo inválido: esperado ${r.expected}, recebido ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inválida: esperado ${_e(r.values[0])}`:`Opção inválida: esperada uma das ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${a[o.format]??r.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`Chave inválida em ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${r.origin}`;default:return"Campo inválido"}}};function oD(){return{localeError:lD()}}function b_(e,t,i,a){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19?a:o===1?t:o>=2&&o<=4?i:a}const uD=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"массив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return r=>{switch(r.code){case"invalid_type":return`Неверный ввод: ожидалось ${r.expected}, получено ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Неверный ввод: ожидалось ${_e(r.values[0])}`:`Неверный вариант: ожидалось одно из ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);if(s){const f=Number(r.maximum),m=b_(f,s.unit.one,s.unit.few,s.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет иметь ${o}${r.maximum.toString()} ${m}`}return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);if(s){const f=Number(r.minimum),m=b_(f,s.unit.one,s.unit.few,s.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${o}${r.minimum.toString()} ${m}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${a[o.format]??r.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспознанн${r.keys.length>1?"ые":"ый"} ключ${r.keys.length>1?"и":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${r.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${r.origin}`;default:return"Неверные входные данные"}}};function sD(){return{localeError:uD()}}const cD=()=>{const 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}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"število";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},a={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${r.expected}, prejeto ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pričakovano ${_e(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Premajhno: pričakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${s.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${a[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i ključi":" ključ"}: ${ue(r.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function fD(){return{localeError:cD()}}const dD=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${r.expected}, fick ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: förväntat ${_e(r.values[0])}`:`Ogiltigt val: förväntade en av ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`För stor(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.maximum.toString()} ${s.unit??"element"}`:`För stor(t): förväntat ${r.origin??"värdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`För lite(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.minimum.toString()} ${s.unit}`:`För lite(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${a[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${ue(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${r.origin??"värdet"}`;default:return"Ogiltig input"}}};function mD(){return{localeError:dD()}}const hD=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(r))return"அணி";if(r===null)return"வெறுமை";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${r.expected}, பெறப்பட்டது ${i(r.input)}`;case"invalid_value":return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${_e(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ue(r.values,"|")} இல் ஒன்று`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${o}${r.maximum.toString()} ${s.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${o}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ${s.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=r;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${a[o.format]??r.format}`}case"not_multiple_of":return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${r.keys.length>1?"கள்":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`${r.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${r.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function pD(){return{localeError:hD()}}const gD=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";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},a={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return r=>{switch(r.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r.expected} แต่ได้รับ ${i(r.input)}`;case"invalid_value":return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${_e(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"ไม่เกิน":"น้อยกว่า",s=t(r.origin);return s?`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${o} ${r.maximum.toString()} ${s.unit??"รายการ"}`:`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"อย่างน้อย":"มากกว่า",s=t(r.origin);return s?`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()} ${s.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${a[o.format]??r.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${ue(r.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${r.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function vD(){return{localeError:gD()}}const yD=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},bD=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(a){return e[a]??null}const i={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return a=>{switch(a.code){case"invalid_type":return`Geçersiz değer: beklenen ${a.expected}, alınan ${yD(a.input)}`;case"invalid_value":return a.values.length===1?`Geçersiz değer: beklenen ${_e(a.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ue(a.values,"|")}`;case"too_big":{const r=a.inclusive?"<=":"<",o=t(a.origin);return o?`Çok büyük: beklenen ${a.origin??"değer"} ${r}${a.maximum.toString()} ${o.unit??"öğe"}`:`Çok büyük: beklenen ${a.origin??"değer"} ${r}${a.maximum.toString()}`}case"too_small":{const r=a.inclusive?">=":">",o=t(a.origin);return o?`Çok küçük: beklenen ${a.origin} ${r}${a.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{const r=a;return r.format==="starts_with"?`Geçersiz metin: "${r.prefix}" ile başlamalı`:r.format==="ends_with"?`Geçersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Geçersiz metin: "${r.includes}" içermeli`:r.format==="regex"?`Geçersiz metin: ${r.pattern} desenine uymalı`:`Geçersiz ${i[r.format]??a.format}`}case"not_multiple_of":return`Geçersiz sayı: ${a.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${a.keys.length>1?"lar":""}: ${ue(a.keys,", ")}`;case"invalid_key":return`${a.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${a.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function xD(){return{localeError:bD()}}const _D=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"масив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return r=>{switch(r.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${r.expected}, отримано ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Неправильні вхідні дані: очікується ${_e(r.values[0])}`:`Неправильна опція: очікується одне з ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Занадто велике: очікується, що ${r.origin??"значення"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"елементів"}`:`Занадто велике: очікується, що ${r.origin??"значення"} буде ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Занадто мале: очікується, що ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${a[o.format]??r.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${r.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${r.keys.length>1?"і":""}: ${ue(r.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${r.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${r.origin}`;default:return"Неправильні вхідні дані"}}};function j$(){return{localeError:_D()}}function SD(){return j$()}const kD=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"نمبر";case"object":{if(Array.isArray(r))return"آرے";if(r===null)return"نل";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return r=>{switch(r.code){case"invalid_type":return`غلط ان پٹ: ${r.expected} متوقع تھا، ${i(r.input)} موصول ہوا`;case"invalid_value":return r.values.length===1?`غلط ان پٹ: ${_e(r.values[0])} متوقع تھا`:`غلط آپشن: ${ue(r.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`بہت بڑا: ${r.origin??"ویلیو"} کے ${o}${r.maximum.toString()} ${s.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??"ویلیو"} کا ${o}${r.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`بہت چھوٹا: ${r.origin} کے ${o}${r.minimum.toString()} ${s.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${o}${r.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=r;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${a[o.format]??r.format}`}case"not_multiple_of":return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${r.keys.length>1?"ز":""}: ${ue(r.keys,"، ")}`;case"invalid_key":return`${r.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${r.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function wD(){return{localeError:kD()}}const $D=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"số";case"object":{if(Array.isArray(r))return"mảng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return r=>{switch(r.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${r.expected}, nhận được ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${_e(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Quá lớn: mong đợi ${r.origin??"giá trị"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"phần tử"}`:`Quá lớn: mong đợi ${r.origin??"giá trị"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Quá nhỏ: mong đợi ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${a[o.format]??r.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${ue(r.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${r.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${r.origin}`;default:return"Đầu vào không hợp lệ"}}};function ED(){return{localeError:$D()}}const jD=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(r))return"数组";if(r===null)return"空值(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return r=>{switch(r.code){case"invalid_type":return`无效输入:期望 ${r.expected},实际接收 ${i(r.input)}`;case"invalid_value":return r.values.length===1?`无效输入:期望 ${_e(r.values[0])}`:`无效选项:期望以下之一 ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`数值过大:期望 ${r.origin??"值"} ${o}${r.maximum.toString()} ${s.unit??"个元素"}`:`数值过大:期望 ${r.origin??"值"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`数值过小:期望 ${r.origin} ${o}${r.minimum.toString()} ${s.unit}`:`数值过小:期望 ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${a[o.format]??r.format}`}case"not_multiple_of":return`无效数字:必须是 ${r.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${ue(r.keys,", ")}`;case"invalid_key":return`${r.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${r.origin} 中包含无效值(value)`;default:return"无效输入"}}};function ND(){return{localeError:jD()}}const zD=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(r){return e[r]??null}const i=r=>{const 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},a={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return r=>{switch(r.code){case"invalid_type":return`無效的輸入值:預期為 ${r.expected},但收到 ${i(r.input)}`;case"invalid_value":return r.values.length===1?`無效的輸入值:預期為 ${_e(r.values[0])}`:`無效的選項:預期為以下其中之一 ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`數值過大:預期 ${r.origin??"值"} 應為 ${o}${r.maximum.toString()} ${s.unit??"個元素"}`:`數值過大:預期 ${r.origin??"值"} 應為 ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`數值過小:預期 ${r.origin} 應為 ${o}${r.minimum.toString()} ${s.unit}`:`數值過小:預期 ${r.origin} 應為 ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${a[o.format]??r.format}`}case"not_multiple_of":return`無效的數字:必須為 ${r.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${r.keys.length>1?"們":""}:${ue(r.keys,"、")}`;case"invalid_key":return`${r.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${r.origin} 中有無效的值`;default:return"無效的輸入值"}}};function OD(){return{localeError:zD()}}const TD=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(r){return e[r]??null}const i=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(r))return"akopọ";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},a={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return r=>{switch(r.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${r.expected}, àmọ̀ a rí ${i(r.input)}`;case"invalid_value":return r.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${_e(r.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ue(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Tó pọ̀ jù: a ní láti jẹ́ pé ${r.origin??"iye"} ${s.verb} ${o}${r.maximum} ${s.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${r.maximum}`}case"too_small":{const o=r.inclusive?">=":">",s=t(r.origin);return s?`Kéré ju: a ní láti jẹ́ pé ${r.origin} ${s.verb} ${o}${r.minimum} ${s.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${r.minimum}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${a[o.format]??r.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${r.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${ue(r.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${r.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${r.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function AD(){return{localeError:TD()}}const N$=Object.freeze(Object.defineProperty({__proto__:null,ar:GC,az:YC,be:QC,bg:WC,ca:tR,cs:rR,da:aR,de:oR,en:$$,eo:dR,es:hR,fa:gR,fi:yR,fr:xR,frCA:SR,he:wR,hu:ER,id:NR,is:TR,it:CR,ja:DR,ka:LR,kh:PR,km:E$,ko:qR,lt:HR,mk:VR,ms:XR,nl:JR,no:WR,ota:tD,pl:aD,ps:rD,pt:oD,ru:sD,sl:fD,sv:mD,ta:pD,th:vD,tr:xD,ua:SD,uk:j$,ur:wD,vi:ED,yo:AD,zhCN:ND,zhTW:OD},Symbol.toStringTag,{value:"Module"}));var x_;const z$=Symbol("ZodOutput"),O$=Symbol("ZodInput");class T${constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...i){const a=i[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const i=this._map.get(t);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){const i=t._zod.parent;if(i){const a={...this.get(i)??{}};delete a.id;const r={...a,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Fp(){return new T$}(x_=globalThis).__zod_globalRegistry??(x_.__zod_globalRegistry=Fp());const Ln=globalThis.__zod_globalRegistry;function A$(e,t){return new e({type:"string",...re(t)})}function C$(e,t){return new e({type:"string",coerce:!0,...re(t)})}function Hp(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...re(t)})}function Us(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...re(t)})}function Gp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...re(t)})}function Vp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...re(t)})}function Yp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...re(t)})}function Xp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...re(t)})}function nc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...re(t)})}function Qp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...re(t)})}function Jp(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...re(t)})}function Kp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...re(t)})}function Wp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...re(t)})}function eg(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...re(t)})}function tg(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...re(t)})}function ng(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...re(t)})}function rg(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...re(t)})}function ig(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...re(t)})}function R$(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...re(t)})}function ag(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...re(t)})}function lg(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...re(t)})}function og(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...re(t)})}function ug(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...re(t)})}function sg(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...re(t)})}function cg(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...re(t)})}const D$={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function I$(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...re(t)})}function U$(e,t){return new e({type:"string",format:"date",check:"string_format",...re(t)})}function L$(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...re(t)})}function M$(e,t){return new e({type:"string",format:"duration",check:"string_format",...re(t)})}function P$(e,t){return new e({type:"number",checks:[],...re(t)})}function Z$(e,t){return new e({type:"number",coerce:!0,checks:[],...re(t)})}function q$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...re(t)})}function B$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...re(t)})}function F$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...re(t)})}function H$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...re(t)})}function G$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...re(t)})}function V$(e,t){return new e({type:"boolean",...re(t)})}function Y$(e,t){return new e({type:"boolean",coerce:!0,...re(t)})}function X$(e,t){return new e({type:"bigint",...re(t)})}function Q$(e,t){return new e({type:"bigint",coerce:!0,...re(t)})}function J$(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...re(t)})}function K$(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...re(t)})}function W$(e,t){return new e({type:"symbol",...re(t)})}function eE(e,t){return new e({type:"undefined",...re(t)})}function tE(e,t){return new e({type:"null",...re(t)})}function nE(e){return new e({type:"any"})}function rE(e){return new e({type:"unknown"})}function iE(e,t){return new e({type:"never",...re(t)})}function aE(e,t){return new e({type:"void",...re(t)})}function lE(e,t){return new e({type:"date",...re(t)})}function oE(e,t){return new e({type:"date",coerce:!0,...re(t)})}function uE(e,t){return new e({type:"nan",...re(t)})}function oi(e,t){return new Ip({check:"less_than",...re(t),value:e,inclusive:!1})}function Nn(e,t){return new Ip({check:"less_than",...re(t),value:e,inclusive:!0})}function ui(e,t){return new Up({check:"greater_than",...re(t),value:e,inclusive:!1})}function Wt(e,t){return new Up({check:"greater_than",...re(t),value:e,inclusive:!0})}function fg(e){return ui(0,e)}function dg(e){return oi(0,e)}function mg(e){return Nn(0,e)}function hg(e){return Wt(0,e)}function qa(e,t){return new Gk({check:"multiple_of",...re(t),value:e})}function Ao(e,t){return new Xk({check:"max_size",...re(t),maximum:e})}function Ba(e,t){return new Qk({check:"min_size",...re(t),minimum:e})}function rc(e,t){return new Jk({check:"size_equals",...re(t),size:e})}function Co(e,t){return new Kk({check:"max_length",...re(t),maximum:e})}function Li(e,t){return new Wk({check:"min_length",...re(t),minimum:e})}function Ro(e,t){return new ew({check:"length_equals",...re(t),length:e})}function ic(e,t){return new tw({check:"string_format",format:"regex",...re(t),pattern:e})}function ac(e){return new nw({check:"string_format",format:"lowercase",...re(e)})}function lc(e){return new rw({check:"string_format",format:"uppercase",...re(e)})}function oc(e,t){return new iw({check:"string_format",format:"includes",...re(t),includes:e})}function uc(e,t){return new aw({check:"string_format",format:"starts_with",...re(t),prefix:e})}function sc(e,t){return new lw({check:"string_format",format:"ends_with",...re(t),suffix:e})}function pg(e,t,i){return new ow({check:"property",property:e,schema:t,...re(i)})}function cc(e,t){return new uw({check:"mime_type",mime:e,...re(t)})}function zr(e){return new sw({check:"overwrite",tx:e})}function fc(e){return zr(t=>t.normalize(e))}function dc(){return zr(e=>e.trim())}function mc(){return zr(e=>e.toLowerCase())}function hc(){return zr(e=>e.toUpperCase())}function pc(){return zr(e=>qS(e))}function sE(e,t,i){return new e({type:"array",element:t,...re(i)})}function CD(e,t,i){return new e({type:"union",options:t,...re(i)})}function RD(e,t,i){return new e({type:"union",options:t,inclusive:!1,...re(i)})}function DD(e,t,i,a){return new e({type:"union",options:i,discriminator:t,...re(a)})}function ID(e,t,i){return new e({type:"intersection",left:t,right:i})}function UD(e,t,i,a){const r=i instanceof we,o=r?a:i,s=r?i:null;return new e({type:"tuple",items:t,rest:s,...re(o)})}function LD(e,t,i,a){return new e({type:"record",keyType:t,valueType:i,...re(a)})}function MD(e,t,i,a){return new e({type:"map",keyType:t,valueType:i,...re(a)})}function PD(e,t,i){return new e({type:"set",valueType:t,...re(i)})}function ZD(e,t,i){const a=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:a,...re(i)})}function qD(e,t,i){return new e({type:"enum",entries:t,...re(i)})}function BD(e,t,i){return new e({type:"literal",values:Array.isArray(t)?t:[t],...re(i)})}function cE(e,t){return new e({type:"file",...re(t)})}function FD(e,t){return new e({type:"transform",transform:t})}function HD(e,t){return new e({type:"optional",innerType:t})}function GD(e,t){return new e({type:"nullable",innerType:t})}function VD(e,t,i){return new e({type:"default",innerType:t,get defaultValue(){return typeof i=="function"?i():Ks(i)}})}function YD(e,t,i){return new e({type:"nonoptional",innerType:t,...re(i)})}function XD(e,t){return new e({type:"success",innerType:t})}function QD(e,t,i){return new e({type:"catch",innerType:t,catchValue:typeof i=="function"?i:()=>i})}function JD(e,t,i){return new e({type:"pipe",in:t,out:i})}function KD(e,t){return new e({type:"readonly",innerType:t})}function WD(e,t,i){return new e({type:"template_literal",parts:t,...re(i)})}function eI(e,t){return new e({type:"lazy",getter:t})}function tI(e,t){return new e({type:"promise",innerType:t})}function fE(e,t,i){const a=re(i);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function dE(e,t,i){return new e({type:"custom",check:"custom",fn:t,...re(i)})}function mE(e){const t=hE(i=>(i.addIssue=a=>{if(typeof a=="string")i.issues.push(Pa(a,i.value,t._zod.def));else{const r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=i.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),i.issues.push(Pa(r))}},e(i.value,i)));return t}function hE(e,t){const i=new ut({check:"custom",...re(t)});return i._zod.check=e,i}function pE(e){const t=new ut({check:"describe"});return t._zod.onattach=[i=>{const a=Ln.get(i)??{};Ln.add(i,{...a,description:e})}],t._zod.check=()=>{},t}function gE(e){const t=new ut({check:"meta"});return t._zod.onattach=[i=>{const a=Ln.get(i)??{};Ln.add(i,{...a,...e})}],t._zod.check=()=>{},t}function vE(e,t){const i=re(t);let a=i.truthy??["true","1","yes","on","y","enabled"],r=i.falsy??["false","0","no","off","n","disabled"];i.case!=="sensitive"&&(a=a.map(x=>typeof x=="string"?x.toLowerCase():x),r=r.map(x=>typeof x=="string"?x.toLowerCase():x));const o=new Set(a),s=new Set(r),f=e.Codec??Bp,m=e.Boolean??Pp,d=e.String??To,p=new d({type:"string",error:i.error}),v=new m({type:"boolean",error:i.error}),b=new f({type:"pipe",in:p,out:v,transform:((x,S)=>{let w=x;return i.case!=="sensitive"&&(w=w.toLowerCase()),o.has(w)?!0:s.has(w)?!1:(S.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:S.value,inst:b,continue:!1}),{})}),reverseTransform:((x,S)=>x===!0?a[0]||"true":r[0]||"false"),error:i.error});return b}function Do(e,t,i,a={}){const r=re(a),o={...re(a),check:"string_format",type:"string",format:t,fn:typeof i=="function"?i:f=>i.test(f),...r};return i instanceof RegExp&&(o.pattern=i),new e(o)}function Fa(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ln,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function We(e,t,i={path:[],schemaPath:[]}){var a;const r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,i.schemaPath.includes(e)&&(o.cycle=i.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,s);const f=e._zod.toJSONSchema?.();if(f)s.schema=f;else{const p={...i,schemaPath:[...i.schemaPath,e],path:i.path},v=e._zod.parent;if(v)s.ref=v,We(v,t,p),t.seen.get(v).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{const b=s.schema,x=t.processors[r.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);x(e,t,b,p)}}const m=t.metadataRegistry.get(e);return m&&Object.assign(s.schema,m),t.io==="input"&&Pt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((a=s.schema).default??(a.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Ha(e,t){const i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=o=>{const s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const p=e.external.registry.get(o[0])?.id,v=e.external.uri??(x=>x);if(p)return{ref:v(p)};const b=o[1].defId??o[1].schema.id??`schema${e.counter++}`;return o[1].defId=b,{defId:b,ref:`${v("__shared")}#/${s}/${b}`}}if(o[1]===i)return{ref:"#"};const m=`#/${s}/`,d=o[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:m+d}},r=o=>{if(o[1].schema.$ref)return;const s=o[1],{ref:f,defId:m}=a(o);s.def={...s.schema},m&&(s.defId=m);const d=s.schema;for(const p in d)delete d[p];d.$ref=f};if(e.cycles==="throw")for(const o of e.seen.entries()){const s=o[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
39
+
40
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const o of e.seen.entries()){const s=o[1];if(t===o[0]){r(o);continue}if(e.external){const m=e.external.registry.get(o[0])?.id;if(t!==o[0]&&m){r(o);continue}}if(e.metadataRegistry.get(o[0])?.id){r(o);continue}if(s.cycle){r(o);continue}if(s.count>1&&e.reused==="ref"){r(o);continue}}}function Ga(e,t){const i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=s=>{const f=e.seen.get(s),m=f.def??f.schema,d={...m};if(f.ref===null)return;const p=f.ref;if(f.ref=null,p){a(p);const v=e.seen.get(p).schema;v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(v)):(Object.assign(m,v),Object.assign(m,d))}f.isParent||e.override({zodSchema:s,jsonSchema:m,path:f.path??[]})};for(const s of[...e.seen.entries()].reverse())a(s[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,i.def??i.schema);const o=e.external?.defs??{};for(const s of e.seen.entries()){const f=s[1];f.def&&f.defId&&(o[f.defId]=f.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{const s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:fo(t,"input"),output:fo(t,"output")}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Pt(e,t){const i=t??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);const a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return Pt(a.element,i);if(a.type==="set")return Pt(a.valueType,i);if(a.type==="lazy")return Pt(a.getter(),i);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return Pt(a.innerType,i);if(a.type==="intersection")return Pt(a.left,i)||Pt(a.right,i);if(a.type==="record"||a.type==="map")return Pt(a.keyType,i)||Pt(a.valueType,i);if(a.type==="pipe")return Pt(a.in,i)||Pt(a.out,i);if(a.type==="object"){for(const r in a.shape)if(Pt(a.shape[r],i))return!0;return!1}if(a.type==="union"){for(const r of a.options)if(Pt(r,i))return!0;return!1}if(a.type==="tuple"){for(const r of a.items)if(Pt(r,i))return!0;return!!(a.rest&&Pt(a.rest,i))}return!1}const yE=(e,t={})=>i=>{const a=Fa({...i,processors:t});return We(e,a),Ha(a,e),Ga(a,e)},fo=(e,t)=>i=>{const{libraryOptions:a,target:r}=i??{},o=Fa({...a??{},target:r,io:t,processors:{}});return We(e,o),Ha(o,e),Ga(o,e)},nI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bE=(e,t,i,a)=>{const r=i;r.type="string";const{minimum:o,maximum:s,format:f,patterns:m,contentEncoding:d}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof s=="number"&&(r.maxLength=s),f&&(r.format=nI[f]??f,r.format===""&&delete r.format),d&&(r.contentEncoding=d),m&&m.size>0){const p=[...m];p.length===1?r.pattern=p[0].source:p.length>1&&(r.allOf=[...p.map(v=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},xE=(e,t,i,a)=>{const r=i,{minimum:o,maximum:s,format:f,multipleOf:m,exclusiveMaximum:d,exclusiveMinimum:p}=e._zod.bag;typeof f=="string"&&f.includes("int")?r.type="integer":r.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=p,r.exclusiveMinimum=!0):r.exclusiveMinimum=p),typeof o=="number"&&(r.minimum=o,typeof p=="number"&&t.target!=="draft-04"&&(p>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=d,r.exclusiveMaximum=!0):r.exclusiveMaximum=d),typeof s=="number"&&(r.maximum=s,typeof d=="number"&&t.target!=="draft-04"&&(d<=s?delete r.maximum:delete r.exclusiveMaximum)),typeof m=="number"&&(r.multipleOf=m)},_E=(e,t,i,a)=>{i.type="boolean"},SE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},kE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},wE=(e,t,i,a)=>{t.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},$E=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},EE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},jE=(e,t,i,a)=>{i.not={}},NE=(e,t,i,a)=>{},zE=(e,t,i,a)=>{},OE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},TE=(e,t,i,a)=>{const r=e._zod.def,o=_p(r.entries);o.every(s=>typeof s=="number")&&(i.type="number"),o.every(s=>typeof s=="string")&&(i.type="string"),i.enum=o},AE=(e,t,i,a)=>{const r=e._zod.def,o=[];for(const s of r.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){const s=o[0];i.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?i.enum=[s]:i.const=s}else o.every(s=>typeof s=="number")&&(i.type="number"),o.every(s=>typeof s=="string")&&(i.type="string"),o.every(s=>typeof s=="boolean")&&(i.type="boolean"),o.every(s=>s===null)&&(i.type="null"),i.enum=o},CE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},RE=(e,t,i,a)=>{const r=i,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},DE=(e,t,i,a)=>{const r=i,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:f,mime:m}=e._zod.bag;s!==void 0&&(o.minLength=s),f!==void 0&&(o.maxLength=f),m?m.length===1?(o.contentMediaType=m[0],Object.assign(r,o)):r.anyOf=m.map(d=>({...o,contentMediaType:d})):Object.assign(r,o)},IE=(e,t,i,a)=>{i.type="boolean"},UE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},LE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ME=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},PE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},ZE=(e,t,i,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},qE=(e,t,i,a)=>{const r=i,o=e._zod.def,{minimum:s,maximum:f}=e._zod.bag;typeof s=="number"&&(r.minItems=s),typeof f=="number"&&(r.maxItems=f),r.type="array",r.items=We(o.element,t,{...a,path:[...a.path,"items"]})},BE=(e,t,i,a)=>{const r=i,o=e._zod.def;r.type="object",r.properties={};const s=o.shape;for(const d in s)r.properties[d]=We(s[d],t,{...a,path:[...a.path,"properties",d]});const f=new Set(Object.keys(s)),m=new Set([...f].filter(d=>{const p=o.shape[d]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));m.size>0&&(r.required=Array.from(m)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=We(o.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},gg=(e,t,i,a)=>{const r=e._zod.def,o=r.inclusive===!1,s=r.options.map((f,m)=>We(f,t,{...a,path:[...a.path,o?"oneOf":"anyOf",m]}));o?i.oneOf=s:i.anyOf=s},FE=(e,t,i,a)=>{const r=e._zod.def,o=We(r.left,t,{...a,path:[...a.path,"allOf",0]}),s=We(r.right,t,{...a,path:[...a.path,"allOf",1]}),f=d=>"allOf"in d&&Object.keys(d).length===1,m=[...f(o)?o.allOf:[o],...f(s)?s.allOf:[s]];i.allOf=m},HE=(e,t,i,a)=>{const r=i,o=e._zod.def;r.type="array";const s=t.target==="draft-2020-12"?"prefixItems":"items",f=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",m=o.items.map((b,x)=>We(b,t,{...a,path:[...a.path,s,x]})),d=o.rest?We(o.rest,t,{...a,path:[...a.path,f,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=m,d&&(r.items=d)):t.target==="openapi-3.0"?(r.items={anyOf:m},d&&r.items.anyOf.push(d),r.minItems=m.length,d||(r.maxItems=m.length)):(r.items=m,d&&(r.additionalItems=d));const{minimum:p,maximum:v}=e._zod.bag;typeof p=="number"&&(r.minItems=p),typeof v=="number"&&(r.maxItems=v)},GE=(e,t,i,a)=>{const r=i,o=e._zod.def;r.type="object",(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=We(o.keyType,t,{...a,path:[...a.path,"propertyNames"]})),r.additionalProperties=We(o.valueType,t,{...a,path:[...a.path,"additionalProperties"]})},VE=(e,t,i,a)=>{const r=e._zod.def,o=We(r.innerType,t,a),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=r.innerType,i.nullable=!0):i.anyOf=[o,{type:"null"}]},YE=(e,t,i,a)=>{const r=e._zod.def;We(r.innerType,t,a);const o=t.seen.get(e);o.ref=r.innerType},XE=(e,t,i,a)=>{const r=e._zod.def;We(r.innerType,t,a);const o=t.seen.get(e);o.ref=r.innerType,i.default=JSON.parse(JSON.stringify(r.defaultValue))},QE=(e,t,i,a)=>{const r=e._zod.def;We(r.innerType,t,a);const o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},JE=(e,t,i,a)=>{const r=e._zod.def;We(r.innerType,t,a);const o=t.seen.get(e);o.ref=r.innerType;let s;try{s=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=s},KE=(e,t,i,a)=>{const r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;We(o,t,a);const s=t.seen.get(e);s.ref=o},WE=(e,t,i,a)=>{const r=e._zod.def;We(r.innerType,t,a);const o=t.seen.get(e);o.ref=r.innerType,i.readOnly=!0},ej=(e,t,i,a)=>{const r=e._zod.def;We(r.innerType,t,a);const o=t.seen.get(e);o.ref=r.innerType},tj=(e,t,i,a)=>{const r=e._zod.def;We(r.innerType,t,a);const o=t.seen.get(e);o.ref=r.innerType},nj=(e,t,i,a)=>{const r=e._zod.innerType;We(r,t,a);const o=t.seen.get(e);o.ref=r},Qh={string:bE,number:xE,boolean:_E,bigint:SE,symbol:kE,null:wE,undefined:$E,void:EE,never:jE,any:NE,unknown:zE,date:OE,enum:TE,literal:AE,nan:CE,template_literal:RE,file:DE,success:IE,custom:UE,function:LE,transform:ME,map:PE,set:ZE,array:qE,object:BE,union:gg,intersection:FE,tuple:HE,record:GE,nullable:VE,nonoptional:YE,default:XE,prefault:QE,catch:JE,pipe:KE,readonly:WE,promise:ej,optional:tj,lazy:nj};function rj(e,t){if("_idmap"in e){const a=e,r=Fa({...t,processors:Qh}),o={};for(const m of a._idmap.entries()){const[d,p]=m;We(p,r)}const s={},f={registry:a,uri:t?.uri,defs:o};r.external=f;for(const m of a._idmap.entries()){const[d,p]=m;Ha(r,p),s[d]=Ga(r,p)}if(Object.keys(o).length>0){const m=r.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[m]:o}}return{schemas:s}}const i=Fa({...t,processors:Qh});return We(e,i),Ha(i,e),Ga(i,e)}class rI{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let i=t?.target??"draft-2020-12";i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),this.ctx=Fa({processors:Qh,target:i,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,i={path:[],schemaPath:[]}){return We(t,this.ctx,i)}emit(t,i){i&&(i.cycles&&(this.ctx.cycles=i.cycles),i.reused&&(this.ctx.reused=i.reused),i.external&&(this.ctx.external=i.external)),Ha(this.ctx,t);const a=Ga(this.ctx,t),{"~standard":r,...o}=a;return o}}const iI=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),aI=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Fw,$ZodArray:Xw,$ZodAsyncError:Ai,$ZodBase64:Aw,$ZodBase64URL:Rw,$ZodBigInt:Zp,$ZodBigIntFormat:Pw,$ZodBoolean:Pp,$ZodCIDRv4:Ow,$ZodCIDRv6:Tw,$ZodCUID:yw,$ZodCUID2:bw,$ZodCatch:g$,$ZodCheck:ut,$ZodCheckBigIntFormat:Yk,$ZodCheckEndsWith:lw,$ZodCheckGreaterThan:Up,$ZodCheckIncludes:iw,$ZodCheckLengthEquals:ew,$ZodCheckLessThan:Ip,$ZodCheckLowerCase:nw,$ZodCheckMaxLength:Kk,$ZodCheckMaxSize:Xk,$ZodCheckMimeType:uw,$ZodCheckMinLength:Wk,$ZodCheckMinSize:Qk,$ZodCheckMultipleOf:Gk,$ZodCheckNumberFormat:Vk,$ZodCheckOverwrite:sw,$ZodCheckProperty:ow,$ZodCheckRegex:tw,$ZodCheckSizeEquals:Jk,$ZodCheckStartsWith:aw,$ZodCheckStringFormat:Oo,$ZodCheckUpperCase:rw,$ZodCodec:Bp,$ZodCustom:w$,$ZodCustomStringFormat:Lw,$ZodDate:Yw,$ZodDefault:d$,$ZodDiscriminatedUnion:t$,$ZodE164:Dw,$ZodEmail:hw,$ZodEmoji:gw,$ZodEncodeError:Qs,$ZodEnum:l$,$ZodError:kp,$ZodFile:u$,$ZodFunction:_$,$ZodGUID:dw,$ZodIPv4:jw,$ZodIPv6:Nw,$ZodISODate:ww,$ZodISODateTime:kw,$ZodISODuration:Ew,$ZodISOTime:$w,$ZodIntersection:n$,$ZodJWT:Uw,$ZodKSUID:Sw,$ZodLazy:k$,$ZodLiteral:o$,$ZodMAC:zw,$ZodMap:i$,$ZodNaN:v$,$ZodNanoID:vw,$ZodNever:Gw,$ZodNonOptional:h$,$ZodNull:Bw,$ZodNullable:f$,$ZodNumber:Mp,$ZodNumberFormat:Mw,$ZodObject:Kw,$ZodObjectJIT:Ww,$ZodOptional:c$,$ZodPipe:y$,$ZodPrefault:m$,$ZodPromise:S$,$ZodReadonly:b$,$ZodRealError:mn,$ZodRecord:r$,$ZodRegistry:T$,$ZodSet:a$,$ZodString:To,$ZodStringFormat:et,$ZodSuccess:p$,$ZodSymbol:Zw,$ZodTemplateLiteral:x$,$ZodTransform:s$,$ZodTuple:qp,$ZodType:we,$ZodULID:xw,$ZodURL:pw,$ZodUUID:mw,$ZodUndefined:qw,$ZodUnion:tc,$ZodUnknown:Hw,$ZodVoid:Vw,$ZodXID:_w,$ZodXor:e$,$brand:PS,$constructor:M,$input:O$,$output:z$,Doc:cw,JSONSchema:iI,JSONSchemaGenerator:rI,NEVER:MS,TimePrecision:D$,_any:nE,_array:sE,_base64:og,_base64url:ug,_bigint:X$,_boolean:V$,_catch:QD,_check:hE,_cidrv4:ag,_cidrv6:lg,_coercedBigint:Q$,_coercedBoolean:Y$,_coercedDate:oE,_coercedNumber:Z$,_coercedString:C$,_cuid:Kp,_cuid2:Wp,_custom:fE,_date:lE,_decode:jp,_decodeAsync:zp,_default:VD,_discriminatedUnion:DD,_e164:sg,_email:Hp,_emoji:Qp,_encode:Ep,_encodeAsync:Np,_endsWith:sc,_enum:ZD,_file:cE,_float32:B$,_float64:F$,_gt:ui,_gte:Wt,_guid:Us,_includes:oc,_int:q$,_int32:H$,_int64:J$,_intersection:ID,_ipv4:rg,_ipv6:ig,_isoDate:U$,_isoDateTime:I$,_isoDuration:M$,_isoTime:L$,_jwt:cg,_ksuid:ng,_lazy:eI,_length:Ro,_literal:BD,_lowercase:ac,_lt:oi,_lte:Nn,_mac:R$,_map:MD,_max:Nn,_maxLength:Co,_maxSize:Ao,_mime:cc,_min:Wt,_minLength:Li,_minSize:Ba,_multipleOf:qa,_nan:uE,_nanoid:Jp,_nativeEnum:qD,_negative:dg,_never:iE,_nonnegative:hg,_nonoptional:YD,_nonpositive:mg,_normalize:fc,_null:tE,_nullable:GD,_number:P$,_optional:HD,_overwrite:zr,_parse:wo,_parseAsync:$o,_pipe:JD,_positive:fg,_promise:tI,_property:pg,_readonly:KD,_record:LD,_refine:dE,_regex:ic,_safeDecode:Tp,_safeDecodeAsync:Cp,_safeEncode:Op,_safeEncodeAsync:Ap,_safeParse:Eo,_safeParseAsync:jo,_set:PD,_size:rc,_slugify:pc,_startsWith:uc,_string:A$,_stringFormat:Do,_stringbool:vE,_success:XD,_superRefine:mE,_symbol:W$,_templateLiteral:WD,_toLowerCase:mc,_toUpperCase:hc,_transform:FD,_trim:dc,_tuple:UD,_uint32:G$,_uint64:K$,_ulid:eg,_undefined:eE,_union:CD,_unknown:rE,_uppercase:lc,_url:nc,_uuid:Gp,_uuidv4:Vp,_uuidv6:Yp,_uuidv7:Xp,_void:aE,_xid:tg,_xor:RD,clone:An,config:Dt,createStandardJSONSchemaMethod:fo,createToJSONSchemaMethod:yE,decode:hC,decodeAsync:gC,describe:pE,encode:mC,encodeAsync:pC,extractDefs:Ha,finalize:Ga,flattenError:wp,formatError:$p,globalConfig:Cs,globalRegistry:Ln,initializeContext:Fa,isValidBase64:Lp,isValidBase64URL:Cw,isValidJWT:Iw,locales:N$,meta:gE,parse:Vh,parseAsync:Yh,prettifyError:ok,process:We,regexes:Dp,registry:Fp,safeDecode:yC,safeDecodeAsync:xC,safeEncode:vC,safeEncodeAsync:bC,safeParse:uk,safeParseAsync:sk,toDotPath:lk,toJSONSchema:rj,treeifyError:ak,util:rk,version:fw},Symbol.toStringTag,{value:"Module"})),lI=Object.freeze(Object.defineProperty({__proto__:null,endsWith:sc,gt:ui,gte:Wt,includes:oc,length:Ro,lowercase:ac,lt:oi,lte:Nn,maxLength:Co,maxSize:Ao,mime:cc,minLength:Li,minSize:Ba,multipleOf:qa,negative:dg,nonnegative:hg,nonpositive:mg,normalize:fc,overwrite:zr,positive:fg,property:pg,regex:ic,size:rc,slugify:pc,startsWith:uc,toLowerCase:mc,toUpperCase:hc,trim:dc,uppercase:lc},Symbol.toStringTag,{value:"Module"})),vg=M("ZodISODateTime",(e,t)=>{kw.init(e,t),tt.init(e,t)});function ij(e){return I$(vg,e)}const yg=M("ZodISODate",(e,t)=>{ww.init(e,t),tt.init(e,t)});function aj(e){return U$(yg,e)}const bg=M("ZodISOTime",(e,t)=>{$w.init(e,t),tt.init(e,t)});function lj(e){return L$(bg,e)}const xg=M("ZodISODuration",(e,t)=>{Ew.init(e,t),tt.init(e,t)});function oj(e){return M$(xg,e)}const uj=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:yg,ZodISODateTime:vg,ZodISODuration:xg,ZodISOTime:bg,date:aj,datetime:ij,duration:oj,time:lj},Symbol.toStringTag,{value:"Module"})),sj=(e,t)=>{kp.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>$p(e,i)},flatten:{value:i=>wp(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,Rs,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,Rs,2)}},isEmpty:{get(){return e.issues.length===0}}})},oI=M("ZodError",sj),hn=M("ZodError",sj,{Parent:Error}),cj=wo(hn),fj=$o(hn),dj=Eo(hn),mj=jo(hn),hj=Ep(hn),pj=jp(hn),gj=Np(hn),vj=zp(hn),yj=Op(hn),bj=Tp(hn),xj=Ap(hn),_j=Cp(hn),ze=M("ZodType",(e,t)=>(we.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:fo(e,"input"),output:fo(e,"output")}}),e.toJSONSchema=yE(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(Nr(t,{checks:[...t.checks??[],...i.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]})),e.clone=(i,a)=>An(e,i,a),e.brand=()=>e,e.register=((i,a)=>(i.add(e,a),e)),e.parse=(i,a)=>cj(e,i,a,{callee:e.parse}),e.safeParse=(i,a)=>dj(e,i,a),e.parseAsync=async(i,a)=>fj(e,i,a,{callee:e.parseAsync}),e.safeParseAsync=async(i,a)=>mj(e,i,a),e.spa=e.safeParseAsync,e.encode=(i,a)=>hj(e,i,a),e.decode=(i,a)=>pj(e,i,a),e.encodeAsync=async(i,a)=>gj(e,i,a),e.decodeAsync=async(i,a)=>vj(e,i,a),e.safeEncode=(i,a)=>yj(e,i,a),e.safeDecode=(i,a)=>bj(e,i,a),e.safeEncodeAsync=async(i,a)=>xj(e,i,a),e.safeDecodeAsync=async(i,a)=>_j(e,i,a),e.refine=(i,a)=>e.check(av(i,a)),e.superRefine=i=>e.check(lv(i)),e.overwrite=i=>e.check(zr(i)),e.optional=()=>ho(e),e.nullable=()=>po(e),e.nullish=()=>ho(po(e)),e.nonoptional=i=>Vg(e,i),e.array=()=>Or(e),e.or=i=>Ic([e,i]),e.and=i=>Rg(e,i),e.transform=i=>go(e,Lc(i)),e.default=i=>Fg(e,i),e.prefault=i=>Gg(e,i),e.catch=i=>Qg(e,i),e.pipe=i=>go(e,i),e.readonly=()=>Wg(e),e.describe=i=>{const a=e.clone();return Ln.add(a,{description:i}),a},Object.defineProperty(e,"description",{get(){return Ln.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return Ln.get(e);const a=e.clone();return Ln.add(a,i[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),gc=M("_ZodString",(e,t)=>{To.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,r,o)=>bE(e,a,r);const i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...a)=>e.check(ic(...a)),e.includes=(...a)=>e.check(oc(...a)),e.startsWith=(...a)=>e.check(uc(...a)),e.endsWith=(...a)=>e.check(sc(...a)),e.min=(...a)=>e.check(Li(...a)),e.max=(...a)=>e.check(Co(...a)),e.length=(...a)=>e.check(Ro(...a)),e.nonempty=(...a)=>e.check(Li(1,...a)),e.lowercase=a=>e.check(ac(a)),e.uppercase=a=>e.check(lc(a)),e.trim=()=>e.check(dc()),e.normalize=(...a)=>e.check(fc(...a)),e.toLowerCase=()=>e.check(mc()),e.toUpperCase=()=>e.check(hc()),e.slugify=()=>e.check(pc())}),Io=M("ZodString",(e,t)=>{To.init(e,t),gc.init(e,t),e.email=i=>e.check(Hp(vc,i)),e.url=i=>e.check(nc(Uo,i)),e.jwt=i=>e.check(cg(Ac,i)),e.emoji=i=>e.check(Qp(yc,i)),e.guid=i=>e.check(Us(mo,i)),e.uuid=i=>e.check(Gp(Xn,i)),e.uuidv4=i=>e.check(Vp(Xn,i)),e.uuidv6=i=>e.check(Yp(Xn,i)),e.uuidv7=i=>e.check(Xp(Xn,i)),e.nanoid=i=>e.check(Jp(bc,i)),e.guid=i=>e.check(Us(mo,i)),e.cuid=i=>e.check(Kp(xc,i)),e.cuid2=i=>e.check(Wp(_c,i)),e.ulid=i=>e.check(eg(Sc,i)),e.base64=i=>e.check(og(zc,i)),e.base64url=i=>e.check(ug(Oc,i)),e.xid=i=>e.check(tg(kc,i)),e.ksuid=i=>e.check(ng(wc,i)),e.ipv4=i=>e.check(rg($c,i)),e.ipv6=i=>e.check(ig(Ec,i)),e.cidrv4=i=>e.check(ag(jc,i)),e.cidrv6=i=>e.check(lg(Nc,i)),e.e164=i=>e.check(sg(Tc,i)),e.datetime=i=>e.check(ij(i)),e.date=i=>e.check(aj(i)),e.time=i=>e.check(lj(i)),e.duration=i=>e.check(oj(i))});function Ee(e){return A$(Io,e)}const tt=M("ZodStringFormat",(e,t)=>{et.init(e,t),gc.init(e,t)}),vc=M("ZodEmail",(e,t)=>{hw.init(e,t),tt.init(e,t)});function Sj(e){return Hp(vc,e)}const mo=M("ZodGUID",(e,t)=>{dw.init(e,t),tt.init(e,t)});function kj(e){return Us(mo,e)}const Xn=M("ZodUUID",(e,t)=>{mw.init(e,t),tt.init(e,t)});function wj(e){return Gp(Xn,e)}function $j(e){return Vp(Xn,e)}function Ej(e){return Yp(Xn,e)}function jj(e){return Xp(Xn,e)}const Uo=M("ZodURL",(e,t)=>{pw.init(e,t),tt.init(e,t)});function Nj(e){return nc(Uo,e)}function zj(e){return nc(Uo,{protocol:/^https?$/,hostname:Nk,...re(e)})}const yc=M("ZodEmoji",(e,t)=>{gw.init(e,t),tt.init(e,t)});function Oj(e){return Qp(yc,e)}const bc=M("ZodNanoID",(e,t)=>{vw.init(e,t),tt.init(e,t)});function Tj(e){return Jp(bc,e)}const xc=M("ZodCUID",(e,t)=>{yw.init(e,t),tt.init(e,t)});function Aj(e){return Kp(xc,e)}const _c=M("ZodCUID2",(e,t)=>{bw.init(e,t),tt.init(e,t)});function Cj(e){return Wp(_c,e)}const Sc=M("ZodULID",(e,t)=>{xw.init(e,t),tt.init(e,t)});function Rj(e){return eg(Sc,e)}const kc=M("ZodXID",(e,t)=>{_w.init(e,t),tt.init(e,t)});function Dj(e){return tg(kc,e)}const wc=M("ZodKSUID",(e,t)=>{Sw.init(e,t),tt.init(e,t)});function Ij(e){return ng(wc,e)}const $c=M("ZodIPv4",(e,t)=>{jw.init(e,t),tt.init(e,t)});function Uj(e){return rg($c,e)}const _g=M("ZodMAC",(e,t)=>{zw.init(e,t),tt.init(e,t)});function Lj(e){return R$(_g,e)}const Ec=M("ZodIPv6",(e,t)=>{Nw.init(e,t),tt.init(e,t)});function Mj(e){return ig(Ec,e)}const jc=M("ZodCIDRv4",(e,t)=>{Ow.init(e,t),tt.init(e,t)});function Pj(e){return ag(jc,e)}const Nc=M("ZodCIDRv6",(e,t)=>{Tw.init(e,t),tt.init(e,t)});function Zj(e){return lg(Nc,e)}const zc=M("ZodBase64",(e,t)=>{Aw.init(e,t),tt.init(e,t)});function qj(e){return og(zc,e)}const Oc=M("ZodBase64URL",(e,t)=>{Rw.init(e,t),tt.init(e,t)});function Bj(e){return ug(Oc,e)}const Tc=M("ZodE164",(e,t)=>{Dw.init(e,t),tt.init(e,t)});function Fj(e){return sg(Tc,e)}const Ac=M("ZodJWT",(e,t)=>{Uw.init(e,t),tt.init(e,t)});function Hj(e){return cg(Ac,e)}const Ka=M("ZodCustomStringFormat",(e,t)=>{Lw.init(e,t),tt.init(e,t)});function Gj(e,t,i={}){return Do(Ka,e,t,i)}function Vj(e){return Do(Ka,"hostname",jk,e)}function Yj(e){return Do(Ka,"hex",Fk,e)}function Xj(e,t){const i=t?.enc??"hex",a=`${e}_${i}`,r=Dp[a];if(!r)throw new Error(`Unrecognized hash format: ${a}`);return Do(Ka,a,r,t)}const Lo=M("ZodNumber",(e,t)=>{Mp.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,r,o)=>xE(e,a,r),e.gt=(a,r)=>e.check(ui(a,r)),e.gte=(a,r)=>e.check(Wt(a,r)),e.min=(a,r)=>e.check(Wt(a,r)),e.lt=(a,r)=>e.check(oi(a,r)),e.lte=(a,r)=>e.check(Nn(a,r)),e.max=(a,r)=>e.check(Nn(a,r)),e.int=a=>e.check(Ls(a)),e.safe=a=>e.check(Ls(a)),e.positive=a=>e.check(ui(0,a)),e.nonnegative=a=>e.check(Wt(0,a)),e.negative=a=>e.check(oi(0,a)),e.nonpositive=a=>e.check(Nn(0,a)),e.multipleOf=(a,r)=>e.check(qa(a,r)),e.step=(a,r)=>e.check(qa(a,r)),e.finite=()=>e;const i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function Et(e){return P$(Lo,e)}const qi=M("ZodNumberFormat",(e,t)=>{Mw.init(e,t),Lo.init(e,t)});function Ls(e){return q$(qi,e)}function Qj(e){return B$(qi,e)}function Jj(e){return F$(qi,e)}function Kj(e){return H$(qi,e)}function Wj(e){return G$(qi,e)}const Mo=M("ZodBoolean",(e,t)=>{Pp.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>_E(e,i,a)});function kr(e){return V$(Mo,e)}const Po=M("ZodBigInt",(e,t)=>{Zp.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,r,o)=>SE(e,a),e.gte=(a,r)=>e.check(Wt(a,r)),e.min=(a,r)=>e.check(Wt(a,r)),e.gt=(a,r)=>e.check(ui(a,r)),e.gte=(a,r)=>e.check(Wt(a,r)),e.min=(a,r)=>e.check(Wt(a,r)),e.lt=(a,r)=>e.check(oi(a,r)),e.lte=(a,r)=>e.check(Nn(a,r)),e.max=(a,r)=>e.check(Nn(a,r)),e.positive=a=>e.check(ui(BigInt(0),a)),e.negative=a=>e.check(oi(BigInt(0),a)),e.nonpositive=a=>e.check(Nn(BigInt(0),a)),e.nonnegative=a=>e.check(Wt(BigInt(0),a)),e.multipleOf=(a,r)=>e.check(qa(a,r));const i=e._zod.bag;e.minValue=i.minimum??null,e.maxValue=i.maximum??null,e.format=i.format??null});function eN(e){return X$(Po,e)}const Cc=M("ZodBigIntFormat",(e,t)=>{Pw.init(e,t),Po.init(e,t)});function tN(e){return J$(Cc,e)}function nN(e){return K$(Cc,e)}const Sg=M("ZodSymbol",(e,t)=>{Zw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>kE(e,i)});function rN(e){return W$(Sg,e)}const kg=M("ZodUndefined",(e,t)=>{qw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>$E(e,i)});function iN(e){return eE(kg,e)}const wg=M("ZodNull",(e,t)=>{Bw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>wE(e,i,a)});function $g(e){return tE(wg,e)}const Eg=M("ZodAny",(e,t)=>{Fw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>NE()});function aN(){return nE(Eg)}const jg=M("ZodUnknown",(e,t)=>{Hw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>zE()});function Mi(){return rE(jg)}const Ng=M("ZodNever",(e,t)=>{Gw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>jE(e,i,a)});function Rc(e){return iE(Ng,e)}const zg=M("ZodVoid",(e,t)=>{Vw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>EE(e,i)});function lN(e){return aE(zg,e)}const Dc=M("ZodDate",(e,t)=>{Yw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,r,o)=>OE(e,a),e.min=(a,r)=>e.check(Wt(a,r)),e.max=(a,r)=>e.check(Nn(a,r));const i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null});function oN(e){return lE(Dc,e)}const Og=M("ZodArray",(e,t)=>{Xw.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>qE(e,i,a,r),e.element=t.element,e.min=(i,a)=>e.check(Li(i,a)),e.nonempty=i=>e.check(Li(1,i)),e.max=(i,a)=>e.check(Co(i,a)),e.length=(i,a)=>e.check(Ro(i,a)),e.unwrap=()=>e.element});function Or(e,t){return sE(Og,e,t)}function uN(e){const t=e._zod.def.shape;return Pn(Object.keys(t))}const Zo=M("ZodObject",(e,t)=>{Ww.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>BE(e,i,a,r),Re(e,"shape",()=>t.shape),e.keyof=()=>Pn(Object.keys(e._zod.def.shape)),e.catchall=i=>e.clone({...e._zod.def,catchall:i}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Mi()}),e.loose=()=>e.clone({...e._zod.def,catchall:Mi()}),e.strict=()=>e.clone({...e._zod.def,catchall:Rc()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=i=>QS(e,i),e.safeExtend=i=>JS(e,i),e.merge=i=>KS(e,i),e.pick=i=>YS(e,i),e.omit=i=>XS(e,i),e.partial=(...i)=>WS(Mc,e,i[0]),e.required=(...i)=>ek(Pc,e,i[0])});function ht(e,t){const i={type:"object",shape:e??{},...re(t)};return new Zo(i)}function sN(e,t){return new Zo({type:"object",shape:e,catchall:Rc(),...re(t)})}function cN(e,t){return new Zo({type:"object",shape:e,catchall:Mi(),...re(t)})}const qo=M("ZodUnion",(e,t)=>{tc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>gg(e,i,a,r),e.options=t.options});function Ic(e,t){return new qo({type:"union",options:e,...re(t)})}const Tg=M("ZodXor",(e,t)=>{qo.init(e,t),e$.init(e,t),e._zod.processJSONSchema=(i,a,r)=>gg(e,i,a,r),e.options=t.options});function fN(e,t){return new Tg({type:"union",options:e,inclusive:!1,...re(t)})}const Ag=M("ZodDiscriminatedUnion",(e,t)=>{qo.init(e,t),t$.init(e,t)});function dN(e,t,i){return new Ag({type:"union",options:t,discriminator:e,...re(i)})}const Cg=M("ZodIntersection",(e,t)=>{n$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>FE(e,i,a,r)});function Rg(e,t){return new Cg({type:"intersection",left:e,right:t})}const Dg=M("ZodTuple",(e,t)=>{qp.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>HE(e,i,a,r),e.rest=i=>e.clone({...e._zod.def,rest:i})});function Ig(e,t,i){const a=t instanceof we,r=a?i:t,o=a?t:null;return new Dg({type:"tuple",items:e,rest:o,...re(r)})}const Bo=M("ZodRecord",(e,t)=>{r$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>GE(e,i,a,r),e.keyType=t.keyType,e.valueType=t.valueType});function Uc(e,t,i){return new Bo({type:"record",keyType:e,valueType:t,...re(i)})}function mN(e,t,i){const a=An(e);return a._zod.values=void 0,new Bo({type:"record",keyType:a,valueType:t,...re(i)})}function hN(e,t,i){return new Bo({type:"record",keyType:e,valueType:t,mode:"loose",...re(i)})}const Ug=M("ZodMap",(e,t)=>{i$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>PE(e,i),e.keyType=t.keyType,e.valueType=t.valueType});function pN(e,t,i){return new Ug({type:"map",keyType:e,valueType:t,...re(i)})}const Lg=M("ZodSet",(e,t)=>{a$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>ZE(e,i),e.min=(...i)=>e.check(Ba(...i)),e.nonempty=i=>e.check(Ba(1,i)),e.max=(...i)=>e.check(Ao(...i)),e.size=(...i)=>e.check(rc(...i))});function gN(e,t){return new Lg({type:"set",valueType:e,...re(t)})}const Va=M("ZodEnum",(e,t)=>{l$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(a,r,o)=>TE(e,a,r),e.enum=t.entries,e.options=Object.values(t.entries);const i=new Set(Object.keys(t.entries));e.extract=(a,r)=>{const o={};for(const s of a)if(i.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Va({...t,checks:[],...re(r),entries:o})},e.exclude=(a,r)=>{const o={...t.entries};for(const s of a)if(i.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Va({...t,checks:[],...re(r),entries:o})}});function Pn(e,t){const i=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Va({type:"enum",entries:i,...re(t)})}function vN(e,t){return new Va({type:"enum",entries:e,...re(t)})}const Mg=M("ZodLiteral",(e,t)=>{o$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>AE(e,i,a),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 yN(e,t){return new Mg({type:"literal",values:Array.isArray(e)?e:[e],...re(t)})}const Pg=M("ZodFile",(e,t)=>{u$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>DE(e,i,a),e.min=(i,a)=>e.check(Ba(i,a)),e.max=(i,a)=>e.check(Ao(i,a)),e.mime=(i,a)=>e.check(cc(Array.isArray(i)?i:[i],a))});function bN(e){return cE(Pg,e)}const Zg=M("ZodTransform",(e,t)=>{s$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>ME(e,i),e._zod.parse=(i,a)=>{if(a.direction==="backward")throw new Qs(e.constructor.name);i.addIssue=o=>{if(typeof o=="string")i.issues.push(Pa(o,i.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=e),i.issues.push(Pa(s))}};const r=t.transform(i.value,i);return r instanceof Promise?r.then(o=>(i.value=o,i)):(i.value=r,i)}});function Lc(e){return new Zg({type:"transform",transform:e})}const Mc=M("ZodOptional",(e,t)=>{c$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>tj(e,i,a,r),e.unwrap=()=>e._zod.def.innerType});function ho(e){return new Mc({type:"optional",innerType:e})}const qg=M("ZodNullable",(e,t)=>{f$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>VE(e,i,a,r),e.unwrap=()=>e._zod.def.innerType});function po(e){return new qg({type:"nullable",innerType:e})}function xN(e){return ho(po(e))}const Bg=M("ZodDefault",(e,t)=>{d$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>XE(e,i,a,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Fg(e,t){return new Bg({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ks(t)}})}const Hg=M("ZodPrefault",(e,t)=>{m$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>QE(e,i,a,r),e.unwrap=()=>e._zod.def.innerType});function Gg(e,t){return new Hg({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ks(t)}})}const Pc=M("ZodNonOptional",(e,t)=>{h$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>YE(e,i,a,r),e.unwrap=()=>e._zod.def.innerType});function Vg(e,t){return new Pc({type:"nonoptional",innerType:e,...re(t)})}const Yg=M("ZodSuccess",(e,t)=>{p$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>IE(e,i,a),e.unwrap=()=>e._zod.def.innerType});function _N(e){return new Yg({type:"success",innerType:e})}const Xg=M("ZodCatch",(e,t)=>{g$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>JE(e,i,a,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Qg(e,t){return new Xg({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Jg=M("ZodNaN",(e,t)=>{v$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>CE(e,i)});function SN(e){return uE(Jg,e)}const Zc=M("ZodPipe",(e,t)=>{y$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>KE(e,i,a,r),e.in=t.in,e.out=t.out});function go(e,t){return new Zc({type:"pipe",in:e,out:t})}const qc=M("ZodCodec",(e,t)=>{Zc.init(e,t),Bp.init(e,t)});function kN(e,t,i){return new qc({type:"pipe",in:e,out:t,transform:i.decode,reverseTransform:i.encode})}const Kg=M("ZodReadonly",(e,t)=>{b$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>WE(e,i,a,r),e.unwrap=()=>e._zod.def.innerType});function Wg(e){return new Kg({type:"readonly",innerType:e})}const ev=M("ZodTemplateLiteral",(e,t)=>{x$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>RE(e,i,a)});function wN(e,t){return new ev({type:"template_literal",parts:e,...re(t)})}const tv=M("ZodLazy",(e,t)=>{k$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>nj(e,i,a,r),e.unwrap=()=>e._zod.def.getter()});function nv(e){return new tv({type:"lazy",getter:e})}const rv=M("ZodPromise",(e,t)=>{S$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>ej(e,i,a,r),e.unwrap=()=>e._zod.def.innerType});function $N(e){return new rv({type:"promise",innerType:e})}const iv=M("ZodFunction",(e,t)=>{_$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>LE(e,i)});function Ms(e){return new iv({type:"function",input:Array.isArray(e?.input)?Ig(e?.input):e?.input??Or(Mi()),output:e?.output??Mi()})}const Fo=M("ZodCustom",(e,t)=>{w$.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,a,r)=>UE(e,i)});function EN(e){const t=new ut({check:"custom"});return t._zod.check=e,t}function jN(e,t){return fE(Fo,e??(()=>!0),t)}function av(e,t={}){return dE(Fo,e,t)}function lv(e){return mE(e)}const NN=pE,zN=gE;function ON(e,t={error:`Input not instance of ${e.name}`}){const i=new Fo({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...re(t)});return i._zod.bag.Class=e,i}const TN=(...e)=>vE({Codec:qc,Boolean:Mo,String:Io},...e);function AN(e){const t=nv(()=>Ic([Ee(e),Et(),kr(),$g(),Or(t),Uc(Ee(),t)]));return t}function CN(e,t){return go(Lc(e),t)}const uI=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:Eg,ZodArray:Og,ZodBase64:zc,ZodBase64URL:Oc,ZodBigInt:Po,ZodBigIntFormat:Cc,ZodBoolean:Mo,ZodCIDRv4:jc,ZodCIDRv6:Nc,ZodCUID:xc,ZodCUID2:_c,ZodCatch:Xg,ZodCodec:qc,ZodCustom:Fo,ZodCustomStringFormat:Ka,ZodDate:Dc,ZodDefault:Bg,ZodDiscriminatedUnion:Ag,ZodE164:Tc,ZodEmail:vc,ZodEmoji:yc,ZodEnum:Va,ZodFile:Pg,ZodFunction:iv,ZodGUID:mo,ZodIPv4:$c,ZodIPv6:Ec,ZodIntersection:Cg,ZodJWT:Ac,ZodKSUID:wc,ZodLazy:tv,ZodLiteral:Mg,ZodMAC:_g,ZodMap:Ug,ZodNaN:Jg,ZodNanoID:bc,ZodNever:Ng,ZodNonOptional:Pc,ZodNull:wg,ZodNullable:qg,ZodNumber:Lo,ZodNumberFormat:qi,ZodObject:Zo,ZodOptional:Mc,ZodPipe:Zc,ZodPrefault:Hg,ZodPromise:rv,ZodReadonly:Kg,ZodRecord:Bo,ZodSet:Lg,ZodString:Io,ZodStringFormat:tt,ZodSuccess:Yg,ZodSymbol:Sg,ZodTemplateLiteral:ev,ZodTransform:Zg,ZodTuple:Dg,ZodType:ze,ZodULID:Sc,ZodURL:Uo,ZodUUID:Xn,ZodUndefined:kg,ZodUnion:qo,ZodUnknown:jg,ZodVoid:zg,ZodXID:kc,ZodXor:Tg,_ZodString:gc,_default:Fg,_function:Ms,any:aN,array:Or,base64:qj,base64url:Bj,bigint:eN,boolean:kr,catch:Qg,check:EN,cidrv4:Pj,cidrv6:Zj,codec:kN,cuid:Aj,cuid2:Cj,custom:jN,date:oN,describe:NN,discriminatedUnion:dN,e164:Fj,email:Sj,emoji:Oj,enum:Pn,file:bN,float32:Qj,float64:Jj,function:Ms,guid:kj,hash:Xj,hex:Yj,hostname:Vj,httpUrl:zj,instanceof:ON,int:Ls,int32:Kj,int64:tN,intersection:Rg,ipv4:Uj,ipv6:Mj,json:AN,jwt:Hj,keyof:uN,ksuid:Ij,lazy:nv,literal:yN,looseObject:cN,looseRecord:hN,mac:Lj,map:pN,meta:zN,nan:SN,nanoid:Tj,nativeEnum:vN,never:Rc,nonoptional:Vg,null:$g,nullable:po,nullish:xN,number:Et,object:ht,optional:ho,partialRecord:mN,pipe:go,prefault:Gg,preprocess:CN,promise:$N,readonly:Wg,record:Uc,refine:av,set:gN,strictObject:sN,string:Ee,stringFormat:Gj,stringbool:TN,success:_N,superRefine:lv,symbol:rN,templateLiteral:wN,transform:Lc,tuple:Ig,uint32:Wj,uint64:nN,ulid:Rj,undefined:iN,union:Ic,unknown:Mi,url:Nj,uuid:wj,uuidv4:$j,uuidv6:Ej,uuidv7:jj,void:lN,xid:Dj,xor:fN},Symbol.toStringTag,{value:"Module"})),sI={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 cI(e){Dt({customError:e})}function fI(){return Dt().customError}var Jh;Jh||(Jh={});const de={...uI,...lI,iso:uj};function dI(e,t){const i=e.$schema;return i==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":i==="http://json-schema.org/draft-07/schema#"?"draft-7":i==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function mI(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const i=e.slice(1).split("/").filter(Boolean);if(i.length===0)return t.rootSchema;const a=t.version==="draft-2020-12"?"$defs":"definitions";if(i[0]===a){const r=i[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function RN(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return de.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return de.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);const o=mI(r,t),s=Ct(o,t);return t.refs.set(r,s),t.processing.delete(r),s}if(e.enum!==void 0){const r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return de.null();if(r.length===0)return de.never();if(r.length===1)return de.literal(r[0]);if(r.every(s=>typeof s=="string"))return de.enum(r);const o=r.map(s=>de.literal(s));return o.length<2?o[0]:de.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return de.literal(e.const);const i=e.type;if(Array.isArray(i)){const r=i.map(o=>{const s={...e,type:o};return RN(s,t)});return r.length===0?de.never():r.length===1?r[0]:de.union(r)}if(!i)return de.any();let a;switch(i){case"string":{let r=de.string();if(e.format){const o=e.format;o==="email"?r=r.check(de.email()):o==="uri"||o==="uri-reference"?r=r.check(de.url()):o==="uuid"||o==="guid"?r=r.check(de.uuid()):o==="date-time"?r=r.check(de.iso.datetime()):o==="date"?r=r.check(de.iso.date()):o==="time"?r=r.check(de.iso.time()):o==="duration"?r=r.check(de.iso.duration()):o==="ipv4"?r=r.check(de.ipv4()):o==="ipv6"?r=r.check(de.ipv6()):o==="mac"?r=r.check(de.mac()):o==="cidr"?r=r.check(de.cidrv4()):o==="cidr-v6"?r=r.check(de.cidrv6()):o==="base64"?r=r.check(de.base64()):o==="base64url"?r=r.check(de.base64url()):o==="e164"?r=r.check(de.e164()):o==="jwt"?r=r.check(de.jwt()):o==="emoji"?r=r.check(de.emoji()):o==="nanoid"?r=r.check(de.nanoid()):o==="cuid"?r=r.check(de.cuid()):o==="cuid2"?r=r.check(de.cuid2()):o==="ulid"?r=r.check(de.ulid()):o==="xid"?r=r.check(de.xid()):o==="ksuid"&&(r=r.check(de.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),a=r;break}case"number":case"integer":{let r=i==="integer"?de.number().int():de.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),a=r;break}case"boolean":{a=de.boolean();break}case"null":{a=de.null();break}case"object":{const r={},o=e.properties||{},s=new Set(e.required||[]);for(const[m,d]of Object.entries(o)){const p=Ct(d,t);r[m]=s.has(m)?p:p.optional()}if(e.propertyNames){const m=Ct(e.propertyNames,t),d=e.additionalProperties&&typeof e.additionalProperties=="object"?Ct(e.additionalProperties,t):de.any();if(Object.keys(r).length===0){a=de.record(m,d);break}const p=de.object(r).passthrough(),v=de.looseRecord(m,d);a=de.intersection(p,v);break}if(e.patternProperties){const m=e.patternProperties,d=Object.keys(m),p=[];for(const b of d){const x=Ct(m[b],t),S=de.string().regex(new RegExp(b));p.push(de.looseRecord(S,x))}const v=[];if(Object.keys(r).length>0&&v.push(de.object(r).passthrough()),v.push(...p),v.length===0)a=de.object({}).passthrough();else if(v.length===1)a=v[0];else{let b=de.intersection(v[0],v[1]);for(let x=2;x<v.length;x++)b=de.intersection(b,v[x]);a=b}break}const f=de.object(r);e.additionalProperties===!1?a=f.strict():typeof e.additionalProperties=="object"?a=f.catchall(Ct(e.additionalProperties,t)):a=f.passthrough();break}case"array":{const r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){const s=r.map(m=>Ct(m,t)),f=o&&typeof o=="object"&&!Array.isArray(o)?Ct(o,t):void 0;f?a=de.tuple(s).rest(f):a=de.tuple(s),typeof e.minItems=="number"&&(a=a.check(de.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(de.maxLength(e.maxItems)))}else if(Array.isArray(o)){const s=o.map(m=>Ct(m,t)),f=e.additionalItems&&typeof e.additionalItems=="object"?Ct(e.additionalItems,t):void 0;f?a=de.tuple(s).rest(f):a=de.tuple(s),typeof e.minItems=="number"&&(a=a.check(de.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(de.maxLength(e.maxItems)))}else if(o!==void 0){const s=Ct(o,t);let f=de.array(s);typeof e.minItems=="number"&&(f=f.min(e.minItems)),typeof e.maxItems=="number"&&(f=f.max(e.maxItems)),a=f}else a=de.array(de.any());break}default:throw new Error(`Unsupported type: ${i}`)}return e.description&&(a=a.describe(e.description)),e.default!==void 0&&(a=a.default(e.default)),a}function Ct(e,t){if(typeof e=="boolean")return e?de.any():de.never();let i=RN(e,t);const a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const r=e.anyOf.map(s=>Ct(s,t)),o=de.union(r);i=a?de.intersection(i,o):o}if(e.oneOf&&Array.isArray(e.oneOf)){const r=e.oneOf.map(s=>Ct(s,t)),o=de.xor(r);i=a?de.intersection(i,o):o}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)i=a?i:de.any();else{let r=a?i:Ct(e.allOf[0],t);const o=a?0:1;for(let s=o;s<e.allOf.length;s++)r=de.intersection(r,Ct(e.allOf[s],t));i=r}return e.nullable===!0&&t.version==="openapi-3.0"&&(i=de.nullable(i)),e.readOnly===!0&&(i=de.readonly(i)),i}function hI(e,t){if(typeof e=="boolean")return e?de.any():de.never();const i=dI(e,t?.defaultTarget),a=e.$defs||e.definitions||{};return Ct(e,{version:i,defs:a,refs:new Map,processing:new Set,rootSchema:e})}function pI(e){return C$(Io,e)}function gI(e){return Z$(Lo,e)}function vI(e){return Y$(Mo,e)}function yI(e){return Q$(Po,e)}function bI(e){return oE(Dc,e)}const xI=Object.freeze(Object.defineProperty({__proto__:null,bigint:yI,boolean:vI,date:bI,number:gI,string:pI},Symbol.toStringTag,{value:"Module"}));Dt($$());const _I=Object.freeze(Object.defineProperty({__proto__:null,$brand:PS,$input:O$,$output:z$,NEVER:MS,TimePrecision:D$,ZodAny:Eg,ZodArray:Og,ZodBase64:zc,ZodBase64URL:Oc,ZodBigInt:Po,ZodBigIntFormat:Cc,ZodBoolean:Mo,ZodCIDRv4:jc,ZodCIDRv6:Nc,ZodCUID:xc,ZodCUID2:_c,ZodCatch:Xg,ZodCodec:qc,ZodCustom:Fo,ZodCustomStringFormat:Ka,ZodDate:Dc,ZodDefault:Bg,ZodDiscriminatedUnion:Ag,ZodE164:Tc,ZodEmail:vc,ZodEmoji:yc,ZodEnum:Va,ZodError:oI,ZodFile:Pg,get ZodFirstPartyTypeKind(){return Jh},ZodFunction:iv,ZodGUID:mo,ZodIPv4:$c,ZodIPv6:Ec,ZodISODate:yg,ZodISODateTime:vg,ZodISODuration:xg,ZodISOTime:bg,ZodIntersection:Cg,ZodIssueCode:sI,ZodJWT:Ac,ZodKSUID:wc,ZodLazy:tv,ZodLiteral:Mg,ZodMAC:_g,ZodMap:Ug,ZodNaN:Jg,ZodNanoID:bc,ZodNever:Ng,ZodNonOptional:Pc,ZodNull:wg,ZodNullable:qg,ZodNumber:Lo,ZodNumberFormat:qi,ZodObject:Zo,ZodOptional:Mc,ZodPipe:Zc,ZodPrefault:Hg,ZodPromise:rv,ZodReadonly:Kg,ZodRealError:hn,ZodRecord:Bo,ZodSet:Lg,ZodString:Io,ZodStringFormat:tt,ZodSuccess:Yg,ZodSymbol:Sg,ZodTemplateLiteral:ev,ZodTransform:Zg,ZodTuple:Dg,ZodType:ze,ZodULID:Sc,ZodURL:Uo,ZodUUID:Xn,ZodUndefined:kg,ZodUnion:qo,ZodUnknown:jg,ZodVoid:zg,ZodXID:kc,ZodXor:Tg,_ZodString:gc,_default:Fg,_function:Ms,any:aN,array:Or,base64:qj,base64url:Bj,bigint:eN,boolean:kr,catch:Qg,check:EN,cidrv4:Pj,cidrv6:Zj,clone:An,codec:kN,coerce:xI,config:Dt,core:aI,cuid:Aj,cuid2:Cj,custom:jN,date:oN,decode:pj,decodeAsync:vj,describe:NN,discriminatedUnion:dN,e164:Fj,email:Sj,emoji:Oj,encode:hj,encodeAsync:gj,endsWith:sc,enum:Pn,file:bN,flattenError:wp,float32:Qj,float64:Jj,formatError:$p,fromJSONSchema:hI,function:Ms,getErrorMap:fI,globalRegistry:Ln,gt:ui,gte:Wt,guid:kj,hash:Xj,hex:Yj,hostname:Vj,httpUrl:zj,includes:oc,instanceof:ON,int:Ls,int32:Kj,int64:tN,intersection:Rg,ipv4:Uj,ipv6:Mj,iso:uj,json:AN,jwt:Hj,keyof:uN,ksuid:Ij,lazy:nv,length:Ro,literal:yN,locales:N$,looseObject:cN,looseRecord:hN,lowercase:ac,lt:oi,lte:Nn,mac:Lj,map:pN,maxLength:Co,maxSize:Ao,meta:zN,mime:cc,minLength:Li,minSize:Ba,multipleOf:qa,nan:SN,nanoid:Tj,nativeEnum:vN,negative:dg,never:Rc,nonnegative:hg,nonoptional:Vg,nonpositive:mg,normalize:fc,null:$g,nullable:po,nullish:xN,number:Et,object:ht,optional:ho,overwrite:zr,parse:cj,parseAsync:fj,partialRecord:mN,pipe:go,positive:fg,prefault:Gg,preprocess:CN,prettifyError:ok,promise:$N,property:pg,readonly:Wg,record:Uc,refine:av,regex:ic,regexes:Dp,registry:Fp,safeDecode:bj,safeDecodeAsync:_j,safeEncode:yj,safeEncodeAsync:xj,safeParse:dj,safeParseAsync:mj,set:gN,setErrorMap:cI,size:rc,slugify:pc,startsWith:uc,strictObject:sN,string:Ee,stringFormat:Gj,stringbool:TN,success:_N,superRefine:lv,symbol:rN,templateLiteral:wN,toJSONSchema:rj,toLowerCase:mc,toUpperCase:hc,transform:Lc,treeifyError:ak,trim:dc,tuple:Ig,uint32:Wj,uint64:nN,ulid:Rj,undefined:iN,union:Ic,unknown:Mi,uppercase:lc,url:Nj,util:rk,uuid:wj,uuidv4:$j,uuidv6:Ej,uuidv7:jj,void:lN,xid:Dj,xor:fN},Symbol.toStringTag,{value:"Module"}));G6(_I);const DN=Pn(["http_basic","github_token","gitlab_token","bitbucket_app_password","bitbucket_api_token","bitbucket_api_key","bitbucket_server_pat","bearer_token"]),IN=Pn(["git","composer","artifact"]),SI=ht({url:Ee().url("Invalid repository URL"),vcs_type:IN,credential_type:DN,auth_credentials:Uc(Ee(),Ee()).refine(e=>Object.keys(e).length>0,"At least one credential field is required"),composer_json_path:Ee().optional(),package_filter:Ee().optional()});SI.partial();const kI=ht({id:Ee(),url:Ee(),vcs_type:IN,credential_type:DN,composer_json_path:Ee().nullable(),package_filter:Ee().nullable(),status:Pn(["pending","active","error","syncing"]),error_message:Ee().nullable(),last_synced_at:Et().nullable(),created_at:Et()}),UN=Pn(["readonly","write"]);ht({description:Ee().min(1,"Description is required"),permissions:UN.default("readonly"),rate_limit_max:Et().int().min(0).max(25e3,"Rate limit cannot exceed 25,000 requests/hour").nullable().default(1e3),expires_at:Et().int().positive().optional()});ht({description:Ee().min(1,"Description is required").optional(),rate_limit_max:Et().int().min(0).max(25e3,"Rate limit cannot exceed 25,000 requests/hour").nullable().optional()});const wI=ht({id:Ee(),description:Ee(),permissions:UN,rate_limit_max:Et().nullable(),created_at:Et(),expires_at:Et().nullable(),last_used_at:Et().nullable()});ht({email:Ee().email("Invalid email address"),password:Ee().min(1,"Password is required"),code:Ee().optional()});ht({token:Ee(),user:ht({id:Ee(),email:Ee(),role:Pn(["admin","viewer"]),two_factor_enabled:kr()})});const LN=ht({id:Ee(),email:Ee(),role:Pn(["admin","viewer"]),two_factor_enabled:kr()});ht({users:Or(LN)});ht({email:Ee().email("Invalid email address"),password:Ee().optional(),role:Pn(["admin","viewer"]).default("viewer")});ht({message:Ee(),user:LN});ht({error:Ee(),message:Ee().optional(),code:Ee().optional(),requestId:Ee().optional()});ht({status:Ee(),timestamp:Et()});ht({active_repos:Et(),cached_packages:Et(),total_downloads:Et()});ht({kv_available:kr(),packagist_mirroring_enabled:kr(),package_caching_enabled:kr()});ht({enabled:kr()});const MN=ht({id:Ee(),name:Ee(),version:Ee(),repo_id:Ee(),dist_url:Ee().nullable(),source_dist_url:Ee().nullable(),released_at:Et().nullable(),created_at:Et()});Or(MN);ht({name:Ee(),versions:Or(MN)});wI.extend({token:Ee()});Or(kI);const PN=A.createContext(void 0),Em="composer_proxy_admin_token";function $I({children:e}){const[t,i]=A.useState(()=>typeof window<"u"?localStorage.getItem(Em):null),[a,r]=A.useState(null),[o,s]=A.useState(null);A.useEffect(()=>{t?fetch("/api/auth/me",{headers:{Authorization:`Bearer ${t}`}}).then(v=>{if(v.ok)return v.json();throw new Error("Failed to fetch user")}).then(v=>r(v.user)).catch(v=>{console.error("AuthContext: Failed to fetch user",v),s(v.message||"Unknown auth error"),m()}):r(null)},[t]);const f=v=>{i(v),localStorage.setItem(Em,v),s(null)},m=()=>{i(null),r(null),localStorage.removeItem(Em)},d=t!==null&&t.length>0,p=a?.role==="admin";return y.jsx(PN.Provider,{value:{adminToken:t,isAuthenticated:d,user:a,isAdmin:p,login:f,logout:m,authError:o},children:e})}function Wa(){const e=A.useContext(PN);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}function EI(){const[e,t]=A.useState(!1),[i,a]=A.useState(null),r=jr(),{data:o=[],isLoading:s}=fn({queryKey:["repositories"],queryFn:LS}),{data:f}=fn({queryKey:["settings"],queryFn:Xs}),m=f?.packagist_mirroring_enabled??!0,d=o.filter(S=>S.id!=="packagist"||m),p=$r({mutationFn:x6,onSuccess:()=>{r.invalidateQueries({queryKey:["repositories"]})}}),v=$r({mutationFn:_6,onSuccess:()=>{r.invalidateQueries({queryKey:["repositories"]})}}),b=S=>{const w={active:"bg-emerald-500/20 text-emerald-400 border-emerald-500/30",error:"bg-red-500/20 text-red-400 border-red-500/30",pending:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30",syncing:"bg-blue-500/20 text-blue-400 border-blue-500/30"};return y.jsx("span",{className:`px-2 py-1 text-xs font-medium rounded-full border ${w[S]}`,children:S})},{isAdmin:x}=Wa();return y.jsxs("div",{className:"space-y-8","data-testid":"repositories-page",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"repositories-heading",children:"Repositories"}),y.jsx("p",{className:"text-slate-400",children:"Manage your package sources. Packages are loaded on-demand when requested."})]}),x&&y.jsx("button",{onClick:()=>t(!0),className:"btn-primary","data-testid":"add-repository-button","aria-label":"Add new repository",children:"+ Add Repository"})]}),y.jsx("div",{className:"card overflow-hidden",children:s?y.jsx("div",{className:"p-8 text-center",children:y.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin mx-auto"})}):d.length===0?y.jsxs("div",{className:"p-8 text-center text-slate-400",children:["No repositories configured yet. ",x?"Add your first repository to get started.":"Ask an admin to configure repositories."]}):y.jsxs("table",{className:"w-full",children:[y.jsx("thead",{className:"bg-slate-800/50 border-b border-slate-700",children:y.jsxs("tr",{children:[y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"URL"}),y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Type"}),y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Status"}),y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Last Tested"}),x&&y.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Actions"})]})}),y.jsx("tbody",{className:"divide-y divide-slate-800",children:d.map(S=>{const w=S.id==="packagist";return y.jsxs("tr",{className:"hover:bg-slate-800/30",children:[y.jsxs("td",{className:"px-6 py-4",children:[y.jsxs("div",{className:"text-sm text-slate-200 font-medium truncate max-w-xs",children:[S.url,w&&y.jsx("span",{className:"ml-2 text-xs text-slate-500",children:"(Public Packagist)"})]}),S.error_message&&y.jsx("div",{className:"text-xs text-red-400 mt-1",children:S.error_message})]}),y.jsxs("td",{className:"px-6 py-4 text-sm text-slate-400",children:[S.vcs_type," / ",S.credential_type]}),y.jsx("td",{className:"px-6 py-4",children:b(S.status)}),y.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:S.last_synced_at?new Date(S.last_synced_at*1e3).toLocaleString():"Never"}),x&&y.jsxs("td",{className:"px-6 py-4 text-right space-x-3",children:[!w&&y.jsxs(y.Fragment,{children:[y.jsx("button",{onClick:()=>v.mutate(S.id),disabled:v.isPending||S.status==="syncing",className:"text-primary-400 hover:text-primary-300 text-sm disabled:opacity-50",title:"Test connection and validate credentials. Packages are loaded on-demand when requested.",children:S.status==="syncing"?"Testing...":"Test"}),y.jsx("button",{onClick:()=>a(S),className:"text-slate-400 hover:text-slate-200 text-sm",children:"Edit"}),y.jsx("button",{onClick:()=>{confirm("Delete this repository?")&&p.mutate(S.id)},className:"text-red-400 hover:text-red-300 text-sm",children:"Delete"})]}),w&&y.jsx("span",{className:"text-xs text-slate-500 italic",children:"Managed by system"})]})]},S.id)})})]})}),y.jsx(zI,{}),e&&y.jsx(jI,{onClose:()=>t(!1)}),i&&y.jsx(NI,{repository:i,onClose:()=>a(null)})]})}function jI({onClose:e}){const[t,i]=A.useState(""),[a,r]=A.useState("composer"),[o,s]=A.useState("http_basic"),[f,m]=A.useState({}),[d,p]=A.useState(""),[v,b]=A.useState(""),x=jr(),S=$r({mutationFn:y6,onSuccess:()=>{x.invalidateQueries({queryKey:["repositories"]}),e()}}),w=As[a]||[],N=Ts[o]?.fields||[],j=O=>{r(O);const G=As[O]||[];G.length>0&&!G.includes(o)&&(s(G[0]),m({}))},C=O=>{O.preventDefault(),S.mutate({url:t,vcs_type:a,credential_type:o,auth_credentials:f,composer_json_path:d||void 0,package_filter:v||void 0})};return y.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:y.jsxs("div",{className:"card max-w-lg w-full mx-4 p-6",children:[y.jsxs("div",{className:"flex items-center justify-between mb-6",children:[y.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Add Repository"}),y.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:y.jsx(Ii,{className:"w-4 h-4"})})]}),y.jsxs("form",{onSubmit:C,className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Repository URL"}),y.jsx("input",{type:"url",value:t,onChange:O=>i(O.target.value),placeholder:"https://github.com/owner/repo or https://composer.example.com",className:"input w-full",required:!0})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Source Type"}),y.jsxs("select",{value:a,onChange:O=>j(O.target.value),className:"input w-full",children:[y.jsx("option",{value:"composer",children:"Composer Repository"}),y.jsx("option",{value:"git",children:"Git Repository"})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Credential Type"}),y.jsx("select",{value:o,onChange:O=>{s(O.target.value),m({})},className:"input w-full",children:w.map(O=>y.jsx("option",{value:O,children:Ts[O]?.label||O},O))})]})]}),N.map(O=>y.jsxs("div",{children:[y.jsx("label",{className:"label",children:O.label}),y.jsx("input",{type:O.type,value:f[O.name]||"",onChange:G=>m(X=>({...X,[O.name]:G.target.value})),className:"input w-full",required:!0})]},O.name)),a==="git"&&y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Composer.json Path (optional)"}),y.jsx("input",{type:"text",value:d,onChange:O=>p(O.target.value),placeholder:"**/composer.json",className:"input w-full"}),y.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Glob pattern to find composer.json files. Default: **/composer.json"})]}),a==="composer"&&y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Package Filter (optional)"}),y.jsx("input",{type:"text",value:v,onChange:O=>b(O.target.value),placeholder:"vendor/package1, vendor/package2",className:"input w-full"}),y.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Comma-separated list of packages to filter. Optional - leave empty to allow all packages. Packages are loaded on-demand when requested by Composer."})]}),y.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[y.jsx("button",{type:"button",onClick:e,className:"btn-secondary",children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn-primary",disabled:S.isPending,children:S.isPending?"Adding...":"Add Repository"})]}),S.error&&y.jsx("p",{className:"text-red-400 text-sm",children:S.error.message})]})]})})}function NI({repository:e,onClose:t}){const[i,a]=A.useState(e.url),[r,o]=A.useState(e.vcs_type),[s,f]=A.useState(e.credential_type),[m,d]=A.useState({}),[p,v]=A.useState(e.composer_json_path||""),[b,x]=A.useState(e.package_filter||""),S=jr(),w=$r({mutationFn:G=>b6(e.id,G),onSuccess:()=>{S.invalidateQueries({queryKey:["repositories"]}),t()}}),N=As[r]||[],j=Ts[s]?.fields||[],C=G=>{o(G);const X=As[G]||[];X.length>0&&!X.includes(s)&&(f(X[0]),d({}))},O=G=>{G.preventDefault();const X={};if(i!==e.url&&(X.url=i),r!==e.vcs_type&&(X.vcs_type=r),s!==e.credential_type&&(X.credential_type=s),Object.values(m).some(W=>W.trim()!=="")&&(X.auth_credentials=m),p!==(e.composer_json_path||"")&&(X.composer_json_path=p||void 0),b!==(e.package_filter||"")&&(X.package_filter=b||void 0),Object.keys(X).length===0){t();return}w.mutate(X)};return y.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:y.jsxs("div",{className:"card max-w-lg w-full mx-4 p-6",children:[y.jsxs("div",{className:"flex items-center justify-between mb-6",children:[y.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Edit Repository"}),y.jsx("button",{onClick:t,className:"text-slate-400 hover:text-slate-200",children:y.jsx(Ii,{className:"w-4 h-4"})})]}),y.jsxs("form",{onSubmit:O,className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Repository URL"}),y.jsx("input",{type:"url",value:i,onChange:G=>a(G.target.value),placeholder:"https://github.com/owner/repo or https://composer.example.com",className:"input w-full",required:!0})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Source Type"}),y.jsxs("select",{value:r,onChange:G=>C(G.target.value),className:"input w-full",children:[y.jsx("option",{value:"composer",children:"Composer Repository"}),y.jsx("option",{value:"git",children:"Git Repository"})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Credential Type"}),y.jsx("select",{value:s,onChange:G=>{f(G.target.value),d({})},className:"input w-full",children:N.map(G=>y.jsx("option",{value:G,children:Ts[G]?.label||G},G))})]})]}),y.jsxs("div",{className:"space-y-4",children:[y.jsx("p",{className:"text-xs text-slate-500",children:"Leave credential fields empty to keep current values."}),j.map(G=>y.jsxs("div",{children:[y.jsx("label",{className:"label",children:G.label}),y.jsx("input",{type:G.type,value:m[G.name]||"",onChange:X=>d(L=>({...L,[G.name]:X.target.value})),placeholder:"Leave empty to keep current",className:"input w-full"})]},G.name))]}),r==="git"&&y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Composer.json Path (optional)"}),y.jsx("input",{type:"text",value:p,onChange:G=>v(G.target.value),placeholder:"**/composer.json",className:"input w-full"}),y.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Glob pattern to find composer.json files. Default: **/composer.json"})]}),r==="composer"&&y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Package Filter (optional)"}),y.jsx("input",{type:"text",value:b,onChange:G=>x(G.target.value),placeholder:"vendor/package1, vendor/package2",className:"input w-full"}),y.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Comma-separated list of packages to filter. Optional - leave empty to allow all packages. Packages are loaded on-demand when requested by Composer."})]}),y.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[y.jsx("button",{type:"button",onClick:t,className:"btn-secondary",children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn-primary",disabled:w.isPending,children:w.isPending?"Saving...":"Save Changes"})]}),w.error&&y.jsx("p",{className:"text-red-400 text-sm",children:w.error.message})]})]})})}function zI(){const e=jr(),{isAdmin:t}=Wa(),{data:i,isLoading:a}=fn({queryKey:["settings"],queryFn:Xs}),r=$r({mutationFn:T6,onSuccess:()=>{e.invalidateQueries({queryKey:["settings"]})}}),o=i?.packagist_mirroring_enabled??!0,s=()=>{t&&r.mutate(!o)};return y.jsxs("div",{className:"card p-6 mt-8",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsxs("div",{className:"flex-1",children:[y.jsx("h3",{className:"font-display text-lg font-semibold text-slate-100 mb-2",children:"Public Packagist Mirroring"}),y.jsxs("p",{className:"text-slate-400 text-sm mb-4",children:["When enabled, packages not found in your private repositories will be proxied from"," ",y.jsx("a",{href:"https://packagist.org",target:"_blank",rel:"noopener noreferrer",className:"text-primary-400 hover:underline",children:"packagist.org"}),". This allows Composer to resolve public dependencies through this proxy."]}),y.jsxs("div",{className:"bg-slate-800/50 rounded-lg p-4 text-sm",children:[y.jsx("p",{className:"text-slate-300 mb-2",children:y.jsx("strong",{children:"When to disable:"})}),y.jsxs("ul",{className:"list-disc list-inside text-slate-400 space-y-1",children:[y.jsx("li",{children:"You're using Magento Marketplace or another private repository as your primary source"}),y.jsx("li",{children:"You want to ensure only private packages are served by this proxy"}),y.jsx("li",{children:"You have a separate Packagist mirror configured in your Composer"})]})]})]}),y.jsxs("div",{className:"ml-8 flex flex-col items-center",children:[y.jsx("button",{onClick:s,disabled:a||r.isPending||!t,className:`relative inline-flex h-7 w-14 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:ring-offset-slate-900 disabled:opacity-50 ${o?"bg-primary-600":"bg-slate-700"}`,role:"switch","aria-checked":o,children:y.jsx("span",{className:`pointer-events-none inline-block h-6 w-6 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${o?"translate-x-7":"translate-x-0"}`})}),y.jsx("span",{className:"mt-2 text-xs text-slate-500",children:a?"Loading...":o?"Enabled":"Disabled"})]})]}),r.isError&&y.jsxs("p",{className:"text-red-400 text-sm mt-4",children:["Failed to update setting: ",r.error.message]})]})}function OI(){const[e,t]=A.useState(!1),[i,a]=A.useState(null),r=jr(),{isAdmin:o}=Wa(),{data:s=[],isLoading:f}=fn({queryKey:["tokens"],queryFn:S6}),{data:m,isLoading:d}=fn({queryKey:["settings"],queryFn:Xs}),p=m?.kv_available??!1,v=f||d,b=$r({mutationFn:({id:S,data:w})=>w6(S,w),onSuccess:()=>{r.invalidateQueries({queryKey:["tokens"]})}}),x=$r({mutationFn:$6,onSuccess:()=>{r.invalidateQueries({queryKey:["tokens"]})}});return y.jsxs("div",{className:"space-y-8","data-testid":"tokens-page",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"tokens-heading",children:"Access Tokens"}),y.jsx("p",{className:"text-slate-400",children:"Manage tokens for Composer authentication"})]}),o&&y.jsx("button",{onClick:()=>t(!0),className:"btn-primary","data-testid":"generate-token-button","aria-label":"Generate new access token",children:"+ Generate Token"})]}),y.jsx("div",{className:"card overflow-hidden",children:v?y.jsx("div",{className:"p-8 text-center",children:y.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin mx-auto"})}):s.length===0?y.jsxs("div",{className:"p-8 text-center text-slate-400",children:["No tokens generated yet. ",o?"Create your first token to authenticate Composer.":"Ask an admin to generate tokens."]}):y.jsxs("table",{className:"w-full",children:[y.jsx("thead",{className:"bg-slate-800/50 border-b border-slate-700",children:y.jsxs("tr",{children:[y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Description"}),y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Permissions"}),p&&y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Rate Limit"}),y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Created"}),y.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Last Used"}),o&&y.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Actions"})]})}),y.jsx("tbody",{className:"divide-y divide-slate-800",children:s.map(S=>y.jsx(TI,{token:S,onUpdate:w=>b.mutate({id:S.id,data:w}),onDelete:()=>{confirm("Revoke this token?")&&x.mutate(S.id)},isUpdating:b.isPending,kvAvailable:p,isAdmin:o},S.id))})]})}),e&&y.jsx(AI,{onClose:()=>{t(!1),a(null)},onCreated:S=>{a(S)},newToken:i,kvAvailable:p})]})}function TI({token:e,onUpdate:t,onDelete:i,isUpdating:a,kvAvailable:r,isAdmin:o}){const[s,f]=A.useState(!1),[m,d]=A.useState(e.description),p=()=>{t({description:m}),f(!1)},v=()=>{d(e.description),f(!1)};return y.jsxs("tr",{className:"hover:bg-slate-800/30",children:[y.jsx("td",{className:"px-6 py-4 text-sm text-slate-200 font-medium",children:s?y.jsx("input",{type:"text",value:m,onChange:b=>d(b.target.value),className:"input w-full text-sm",autoFocus:!0}):e.description}),y.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:y.jsx("div",{className:"flex items-center gap-2",children:e.permissions==="readonly"?y.jsxs(y.Fragment,{children:[y.jsx(Gs,{className:"w-4 h-4"}),y.jsx("span",{children:"Read-only"})]}):y.jsxs(y.Fragment,{children:[y.jsx(xp,{className:"w-4 h-4"}),y.jsx("span",{children:"Write"})]})})}),r&&y.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:e.rate_limit_max===null||e.rate_limit_max===0?"Unlimited":`${e.rate_limit_max.toLocaleString()}/hour`}),y.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:new Date(e.created_at*1e3).toLocaleString()}),y.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:e.last_used_at?new Date(e.last_used_at*1e3).toLocaleString():"Never"}),o&&y.jsx("td",{className:"px-6 py-4 text-right",children:y.jsx("div",{className:"flex items-center justify-end gap-2",children:s?y.jsxs(y.Fragment,{children:[y.jsx("button",{onClick:p,disabled:a,className:"text-green-400 hover:text-green-300 text-sm flex items-center gap-1",title:"Save",children:y.jsx(n6,{className:"w-4 h-4"})}),y.jsx("button",{onClick:v,disabled:a,className:"text-slate-400 hover:text-slate-200 text-sm",title:"Cancel",children:y.jsx(Ii,{className:"w-4 h-4"})})]}):y.jsxs(y.Fragment,{children:[y.jsx("button",{onClick:()=>f(!0),className:"text-blue-400 hover:text-blue-300 text-sm flex items-center gap-1",title:"Edit",children:y.jsx(e6,{className:"w-4 h-4"})}),y.jsx("button",{onClick:i,className:"text-red-400 hover:text-red-300 text-sm",title:"Revoke",children:"Revoke"})]})})})]})}function AI({onClose:e,onCreated:t,newToken:i,kvAvailable:a}){const[r,o]=A.useState(""),[s,f]=A.useState("readonly"),[m,d]=A.useState("1000"),[p,v]=A.useState(!1),b=jr(),x=$r({mutationFn:k6,onSuccess:N=>{b.invalidateQueries({queryKey:["tokens"]}),t(N)}}),S=N=>{N.preventDefault();const j=a&&m!==""?parseInt(m):null;x.mutate({description:r,permissions:s,rate_limit_max:j===null||isNaN(j)?null:j})},w=N=>{navigator.clipboard.writeText(N),v(!0),setTimeout(()=>v(!1),2e3)};if(i){const N=JSON.stringify({"http-basic":{[window.location.host]:{username:"token",password:i.token}}},null,2);return y.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:y.jsxs("div",{className:"card max-w-lg w-full mx-4 p-6",children:[y.jsxs("div",{className:"flex items-center justify-between mb-6",children:[y.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Token Generated!"}),y.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:y.jsx(Ii,{className:"w-4 h-4"})})]}),y.jsxs("div",{className:"bg-yellow-500/10 border border-yellow-500/30 rounded-lg p-4 mb-6 flex items-start gap-2",children:[y.jsx(s6,{className:"w-4 h-4 text-yellow-400 mt-0.5 flex-shrink-0"}),y.jsx("p",{className:"text-yellow-400 text-sm",children:"Copy this token now! It won't be shown again."})]}),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Token"}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("input",{type:"text",value:i.token,readOnly:!0,className:"input w-full font-mono text-xs"}),y.jsxs("button",{onClick:()=>w(i.token),className:"btn-secondary flex items-center gap-1",children:[p?y.jsx(IS,{className:"w-4 h-4"}):null,p?"Copied":"Copy"]})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"auth.json snippet"}),y.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-xs text-slate-300",children:y.jsx("code",{children:N})}),y.jsx("button",{onClick:()=>w(N),className:"btn-secondary mt-2 text-sm",children:"Copy auth.json"})]})]}),y.jsx("div",{className:"flex justify-end mt-6",children:y.jsx("button",{onClick:e,className:"btn-primary",children:"Done"})})]})})}return y.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:y.jsxs("div",{className:"card max-w-md w-full mx-4 p-6",children:[y.jsxs("div",{className:"flex items-center justify-between mb-6",children:[y.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Generate Token"}),y.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:y.jsx(Ii,{className:"w-4 h-4"})})]}),y.jsxs("form",{onSubmit:S,className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Description"}),y.jsx("input",{type:"text",value:r,onChange:N=>o(N.target.value),placeholder:"e.g., CI/CD Pipeline",className:"input w-full",required:!0})]}),y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Permissions"}),y.jsxs("div",{className:"space-y-2",children:[y.jsxs("label",{className:"flex items-start gap-3 p-3 rounded-lg border border-slate-700 bg-slate-800/50 cursor-pointer hover:bg-slate-800/70 transition-colors",children:[y.jsx("input",{type:"radio",name:"permissions",value:"readonly",checked:s==="readonly",onChange:N=>f(N.target.value),className:"mt-0.5"}),y.jsxs("div",{className:"flex-1",children:[y.jsxs("div",{className:"flex items-center gap-2 text-slate-200 font-medium",children:[y.jsx(Gs,{className:"w-4 h-4"}),"Read-only"]}),y.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"Can only download packages (composer install)"})]})]}),y.jsxs("label",{className:"flex items-start gap-3 p-3 rounded-lg border border-slate-700 bg-slate-800/50 cursor-pointer hover:bg-slate-800/70 transition-colors",children:[y.jsx("input",{type:"radio",name:"permissions",value:"write",checked:s==="write",onChange:N=>f(N.target.value),className:"mt-0.5"}),y.jsxs("div",{className:"flex-1",children:[y.jsxs("div",{className:"flex items-center gap-2 text-slate-200 font-medium",children:[y.jsx(xp,{className:"w-4 h-4"}),"Write"]}),y.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"Can fetch metadata and sync packages (composer require/update)"})]})]})]})]}),a&&y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Rate Limit (requests/hour)"}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("input",{type:"number",value:m,onChange:N=>d(N.target.value),placeholder:"Unlimited",min:0,max:25e3,className:"input w-full"}),y.jsx("p",{className:"text-xs text-slate-400",children:"Leave empty or set to 0 for unlimited (no rate limiting)"})]})]}),y.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[y.jsx("button",{type:"button",onClick:e,className:"btn-secondary",children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn-primary",disabled:x.isPending,children:x.isPending?"Generating...":"Generate Token"})]}),x.error&&y.jsx("p",{className:"text-red-400 text-sm",children:x.error.message})]})]})})}var xs={exports:{}},jm,__;function Bc(){if(__)return jm;__=1;const e="2.0.0",t=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=16,r=t-6;return jm={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:r,MAX_SAFE_INTEGER:i,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},jm}var Nm,S_;function Fc(){if(S_)return Nm;S_=1;var e={};return Nm=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{},Nm}var k_;function Ho(){return k_||(k_=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:r}=Bc(),o=Fc();t=e.exports={};const s=t.re=[],f=t.safeRe=[],m=t.src=[],d=t.safeSrc=[],p=t.t={};let v=0;const b="[a-zA-Z0-9-]",x=[["\\s",1],["\\d",r],[b,a]],S=N=>{for(const[j,C]of x)N=N.split(`${j}*`).join(`${j}{0,${C}}`).split(`${j}+`).join(`${j}{1,${C}}`);return N},w=(N,j,C)=>{const O=S(j),G=v++;o(N,G,j),p[N]=G,m[G]=j,d[G]=O,s[G]=new RegExp(j,C?"g":void 0),f[G]=new RegExp(O,C?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*"),w("NUMERICIDENTIFIERLOOSE","\\d+"),w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${b}*`),w("MAINVERSION",`(${m[p.NUMERICIDENTIFIER]})\\.(${m[p.NUMERICIDENTIFIER]})\\.(${m[p.NUMERICIDENTIFIER]})`),w("MAINVERSIONLOOSE",`(${m[p.NUMERICIDENTIFIERLOOSE]})\\.(${m[p.NUMERICIDENTIFIERLOOSE]})\\.(${m[p.NUMERICIDENTIFIERLOOSE]})`),w("PRERELEASEIDENTIFIER",`(?:${m[p.NONNUMERICIDENTIFIER]}|${m[p.NUMERICIDENTIFIER]})`),w("PRERELEASEIDENTIFIERLOOSE",`(?:${m[p.NONNUMERICIDENTIFIER]}|${m[p.NUMERICIDENTIFIERLOOSE]})`),w("PRERELEASE",`(?:-(${m[p.PRERELEASEIDENTIFIER]}(?:\\.${m[p.PRERELEASEIDENTIFIER]})*))`),w("PRERELEASELOOSE",`(?:-?(${m[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${m[p.PRERELEASEIDENTIFIERLOOSE]})*))`),w("BUILDIDENTIFIER",`${b}+`),w("BUILD",`(?:\\+(${m[p.BUILDIDENTIFIER]}(?:\\.${m[p.BUILDIDENTIFIER]})*))`),w("FULLPLAIN",`v?${m[p.MAINVERSION]}${m[p.PRERELEASE]}?${m[p.BUILD]}?`),w("FULL",`^${m[p.FULLPLAIN]}$`),w("LOOSEPLAIN",`[v=\\s]*${m[p.MAINVERSIONLOOSE]}${m[p.PRERELEASELOOSE]}?${m[p.BUILD]}?`),w("LOOSE",`^${m[p.LOOSEPLAIN]}$`),w("GTLT","((?:<|>)?=?)"),w("XRANGEIDENTIFIERLOOSE",`${m[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),w("XRANGEIDENTIFIER",`${m[p.NUMERICIDENTIFIER]}|x|X|\\*`),w("XRANGEPLAIN",`[v=\\s]*(${m[p.XRANGEIDENTIFIER]})(?:\\.(${m[p.XRANGEIDENTIFIER]})(?:\\.(${m[p.XRANGEIDENTIFIER]})(?:${m[p.PRERELEASE]})?${m[p.BUILD]}?)?)?`),w("XRANGEPLAINLOOSE",`[v=\\s]*(${m[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[p.XRANGEIDENTIFIERLOOSE]})(?:${m[p.PRERELEASELOOSE]})?${m[p.BUILD]}?)?)?`),w("XRANGE",`^${m[p.GTLT]}\\s*${m[p.XRANGEPLAIN]}$`),w("XRANGELOOSE",`^${m[p.GTLT]}\\s*${m[p.XRANGEPLAINLOOSE]}$`),w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),w("COERCE",`${m[p.COERCEPLAIN]}(?:$|[^\\d])`),w("COERCEFULL",m[p.COERCEPLAIN]+`(?:${m[p.PRERELEASE]})?(?:${m[p.BUILD]})?(?:$|[^\\d])`),w("COERCERTL",m[p.COERCE],!0),w("COERCERTLFULL",m[p.COERCEFULL],!0),w("LONETILDE","(?:~>?)"),w("TILDETRIM",`(\\s*)${m[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",w("TILDE",`^${m[p.LONETILDE]}${m[p.XRANGEPLAIN]}$`),w("TILDELOOSE",`^${m[p.LONETILDE]}${m[p.XRANGEPLAINLOOSE]}$`),w("LONECARET","(?:\\^)"),w("CARETTRIM",`(\\s*)${m[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",w("CARET",`^${m[p.LONECARET]}${m[p.XRANGEPLAIN]}$`),w("CARETLOOSE",`^${m[p.LONECARET]}${m[p.XRANGEPLAINLOOSE]}$`),w("COMPARATORLOOSE",`^${m[p.GTLT]}\\s*(${m[p.LOOSEPLAIN]})$|^$`),w("COMPARATOR",`^${m[p.GTLT]}\\s*(${m[p.FULLPLAIN]})$|^$`),w("COMPARATORTRIM",`(\\s*)${m[p.GTLT]}\\s*(${m[p.LOOSEPLAIN]}|${m[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",w("HYPHENRANGE",`^\\s*(${m[p.XRANGEPLAIN]})\\s+-\\s+(${m[p.XRANGEPLAIN]})\\s*$`),w("HYPHENRANGELOOSE",`^\\s*(${m[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${m[p.XRANGEPLAINLOOSE]})\\s*$`),w("STAR","(<|>)?=?\\s*\\*"),w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(xs,xs.exports)),xs.exports}var zm,w_;function ov(){if(w_)return zm;w_=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return zm=a=>a?typeof a!="object"?e:a:t,zm}var Om,$_;function ZN(){if($_)return Om;$_=1;const e=/^[0-9]+$/,t=(a,r)=>{if(typeof a=="number"&&typeof r=="number")return a===r?0:a<r?-1:1;const o=e.test(a),s=e.test(r);return o&&s&&(a=+a,r=+r),a===r?0:o&&!s?-1:s&&!o?1:a<r?-1:1};return Om={compareIdentifiers:t,rcompareIdentifiers:(a,r)=>t(r,a)},Om}var Tm,E_;function Bt(){if(E_)return Tm;E_=1;const e=Fc(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:i}=Bc(),{safeRe:a,t:r}=Ho(),o=ov(),{compareIdentifiers:s}=ZN();class f{constructor(d,p){if(p=o(p),d instanceof f){if(d.loose===!!p.loose&&d.includePrerelease===!!p.includePrerelease)return d;d=d.version}else if(typeof d!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",d,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const v=d.trim().match(p.loose?a[r.LOOSE]:a[r.FULL]);if(!v)throw new TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+v[1],this.minor=+v[2],this.patch=+v[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");v[4]?this.prerelease=v[4].split(".").map(b=>{if(/^[0-9]+$/.test(b)){const x=+b;if(x>=0&&x<i)return x}return b}):this.prerelease=[],this.build=v[5]?v[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(d){if(e("SemVer.compare",this.version,this.options,d),!(d instanceof f)){if(typeof d=="string"&&d===this.version)return 0;d=new f(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof f||(d=new f(d,this.options)),this.major<d.major?-1:this.major>d.major?1:this.minor<d.minor?-1:this.minor>d.minor?1:this.patch<d.patch?-1:this.patch>d.patch?1:0}comparePre(d){if(d instanceof f||(d=new f(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let p=0;do{const v=this.prerelease[p],b=d.prerelease[p];if(e("prerelease compare",p,v,b),v===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(v===void 0)return-1;if(v===b)continue;return s(v,b)}while(++p)}compareBuild(d){d instanceof f||(d=new f(d,this.options));let p=0;do{const v=this.build[p],b=d.build[p];if(e("build compare",p,v,b),v===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(v===void 0)return-1;if(v===b)continue;return s(v,b)}while(++p)}inc(d,p,v){if(d.startsWith("pre")){if(!p&&v===!1)throw new Error("invalid increment argument: identifier is empty");if(p){const b=`-${p}`.match(this.options.loose?a[r.PRERELEASELOOSE]:a[r.PRERELEASE]);if(!b||b[1]!==p)throw new Error(`invalid identifier: ${p}`)}}switch(d){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",p,v);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",p,v);break;case"prepatch":this.prerelease.length=0,this.inc("patch",p,v),this.inc("pre",p,v);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",p,v),this.inc("pre",p,v);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const b=Number(v)?1:0;if(this.prerelease.length===0)this.prerelease=[b];else{let x=this.prerelease.length;for(;--x>=0;)typeof this.prerelease[x]=="number"&&(this.prerelease[x]++,x=-2);if(x===-1){if(p===this.prerelease.join(".")&&v===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(b)}}if(p){let x=[p,b];v===!1&&(x=[p]),s(this.prerelease[0],p)===0?isNaN(this.prerelease[1])&&(this.prerelease=x):this.prerelease=x}break}default:throw new Error(`invalid increment argument: ${d}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Tm=f,Tm}var Am,j_;function el(){if(j_)return Am;j_=1;const e=Bt();return Am=(i,a,r=!1)=>{if(i instanceof e)return i;try{return new e(i,a)}catch(o){if(!r)return null;throw o}},Am}var Cm,N_;function CI(){if(N_)return Cm;N_=1;const e=el();return Cm=(i,a)=>{const r=e(i,a);return r?r.version:null},Cm}var Rm,z_;function RI(){if(z_)return Rm;z_=1;const e=el();return Rm=(i,a)=>{const r=e(i.trim().replace(/^[=v]+/,""),a);return r?r.version:null},Rm}var Dm,O_;function DI(){if(O_)return Dm;O_=1;const e=Bt();return Dm=(i,a,r,o,s)=>{typeof r=="string"&&(s=o,o=r,r=void 0);try{return new e(i instanceof e?i.version:i,r).inc(a,o,s).version}catch{return null}},Dm}var Im,T_;function II(){if(T_)return Im;T_=1;const e=el();return Im=(i,a)=>{const r=e(i,null,!0),o=e(a,null,!0),s=r.compare(o);if(s===0)return null;const f=s>0,m=f?r:o,d=f?o:r,p=!!m.prerelease.length;if(!!d.prerelease.length&&!p){if(!d.patch&&!d.minor)return"major";if(d.compareMain(m)===0)return d.minor&&!d.patch?"minor":"patch"}const b=p?"pre":"";return r.major!==o.major?b+"major":r.minor!==o.minor?b+"minor":r.patch!==o.patch?b+"patch":"prerelease"},Im}var Um,A_;function UI(){if(A_)return Um;A_=1;const e=Bt();return Um=(i,a)=>new e(i,a).major,Um}var Lm,C_;function LI(){if(C_)return Lm;C_=1;const e=Bt();return Lm=(i,a)=>new e(i,a).minor,Lm}var Mm,R_;function MI(){if(R_)return Mm;R_=1;const e=Bt();return Mm=(i,a)=>new e(i,a).patch,Mm}var Pm,D_;function PI(){if(D_)return Pm;D_=1;const e=el();return Pm=(i,a)=>{const r=e(i,a);return r&&r.prerelease.length?r.prerelease:null},Pm}var Zm,I_;function Zn(){if(I_)return Zm;I_=1;const e=Bt();return Zm=(i,a,r)=>new e(i,r).compare(new e(a,r)),Zm}var qm,U_;function ZI(){if(U_)return qm;U_=1;const e=Zn();return qm=(i,a,r)=>e(a,i,r),qm}var Bm,L_;function qI(){if(L_)return Bm;L_=1;const e=Zn();return Bm=(i,a)=>e(i,a,!0),Bm}var Fm,M_;function uv(){if(M_)return Fm;M_=1;const e=Bt();return Fm=(i,a,r)=>{const o=new e(i,r),s=new e(a,r);return o.compare(s)||o.compareBuild(s)},Fm}var Hm,P_;function BI(){if(P_)return Hm;P_=1;const e=uv();return Hm=(i,a)=>i.sort((r,o)=>e(r,o,a)),Hm}var Gm,Z_;function FI(){if(Z_)return Gm;Z_=1;const e=uv();return Gm=(i,a)=>i.sort((r,o)=>e(o,r,a)),Gm}var Vm,q_;function Hc(){if(q_)return Vm;q_=1;const e=Zn();return Vm=(i,a,r)=>e(i,a,r)>0,Vm}var Ym,B_;function sv(){if(B_)return Ym;B_=1;const e=Zn();return Ym=(i,a,r)=>e(i,a,r)<0,Ym}var Xm,F_;function qN(){if(F_)return Xm;F_=1;const e=Zn();return Xm=(i,a,r)=>e(i,a,r)===0,Xm}var Qm,H_;function BN(){if(H_)return Qm;H_=1;const e=Zn();return Qm=(i,a,r)=>e(i,a,r)!==0,Qm}var Jm,G_;function cv(){if(G_)return Jm;G_=1;const e=Zn();return Jm=(i,a,r)=>e(i,a,r)>=0,Jm}var Km,V_;function fv(){if(V_)return Km;V_=1;const e=Zn();return Km=(i,a,r)=>e(i,a,r)<=0,Km}var Wm,Y_;function FN(){if(Y_)return Wm;Y_=1;const e=qN(),t=BN(),i=Hc(),a=cv(),r=sv(),o=fv();return Wm=(f,m,d,p)=>{switch(m){case"===":return typeof f=="object"&&(f=f.version),typeof d=="object"&&(d=d.version),f===d;case"!==":return typeof f=="object"&&(f=f.version),typeof d=="object"&&(d=d.version),f!==d;case"":case"=":case"==":return e(f,d,p);case"!=":return t(f,d,p);case">":return i(f,d,p);case">=":return a(f,d,p);case"<":return r(f,d,p);case"<=":return o(f,d,p);default:throw new TypeError(`Invalid operator: ${m}`)}},Wm}var eh,X_;function HI(){if(X_)return eh;X_=1;const e=Bt(),t=el(),{safeRe:i,t:a}=Ho();return eh=(o,s)=>{if(o instanceof e)return o;if(typeof o=="number"&&(o=String(o)),typeof o!="string")return null;s=s||{};let f=null;if(!s.rtl)f=o.match(s.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{const x=s.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL];let S;for(;(S=x.exec(o))&&(!f||f.index+f[0].length!==o.length);)(!f||S.index+S[0].length!==f.index+f[0].length)&&(f=S),x.lastIndex=S.index+S[1].length+S[2].length;x.lastIndex=-1}if(f===null)return null;const m=f[2],d=f[3]||"0",p=f[4]||"0",v=s.includePrerelease&&f[5]?`-${f[5]}`:"",b=s.includePrerelease&&f[6]?`+${f[6]}`:"";return t(`${m}.${d}.${p}${v}${b}`,s)},eh}var th,Q_;function GI(){if(Q_)return th;Q_=1;class e{constructor(){this.max=1e3,this.map=new Map}get(i){const a=this.map.get(i);if(a!==void 0)return this.map.delete(i),this.map.set(i,a),a}delete(i){return this.map.delete(i)}set(i,a){if(!this.delete(i)&&a!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(i,a)}return this}}return th=e,th}var nh,J_;function qn(){if(J_)return nh;J_=1;const e=/\s+/g;class t{constructor(P,R){if(R=r(R),P instanceof t)return P.loose===!!R.loose&&P.includePrerelease===!!R.includePrerelease?P:new t(P.raw,R);if(P instanceof o)return this.raw=P.value,this.set=[[P]],this.formatted=void 0,this;if(this.options=R,this.loose=!!R.loose,this.includePrerelease=!!R.includePrerelease,this.raw=P.trim().replace(e," "),this.set=this.raw.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const F=this.set[0];if(this.set=this.set.filter(te=>!w(te[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(const te of this.set)if(te.length===1&&N(te[0])){this.set=[te];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let P=0;P<this.set.length;P++){P>0&&(this.formatted+="||");const R=this.set[P];for(let F=0;F<R.length;F++)F>0&&(this.formatted+=" "),this.formatted+=R[F].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(P){const F=((this.options.includePrerelease&&x)|(this.options.loose&&S))+":"+P,te=a.get(F);if(te)return te;const ae=this.options.loose,E=ae?m[d.HYPHENRANGELOOSE]:m[d.HYPHENRANGE];P=P.replace(E,ce(this.options.includePrerelease)),s("hyphen replace",P),P=P.replace(m[d.COMPARATORTRIM],p),s("comparator trim",P),P=P.replace(m[d.TILDETRIM],v),s("tilde trim",P),P=P.replace(m[d.CARETTRIM],b),s("caret trim",P);let z=P.split(" ").map(me=>C(me,this.options)).join(" ").split(/\s+/).map(me=>se(me,this.options));ae&&(z=z.filter(me=>(s("loose invalid filter",me,this.options),!!me.match(m[d.COMPARATORLOOSE])))),s("range list",z);const Z=new Map,$=z.map(me=>new o(me,this.options));for(const me of $){if(w(me))return[me];Z.set(me.value,me)}Z.size>1&&Z.has("")&&Z.delete("");const oe=[...Z.values()];return a.set(F,oe),oe}intersects(P,R){if(!(P instanceof t))throw new TypeError("a Range is required");return this.set.some(F=>j(F,R)&&P.set.some(te=>j(te,R)&&F.every(ae=>te.every(E=>ae.intersects(E,R)))))}test(P){if(!P)return!1;if(typeof P=="string")try{P=new f(P,this.options)}catch{return!1}for(let R=0;R<this.set.length;R++)if(Se(this.set[R],P,this.options))return!0;return!1}}nh=t;const i=GI(),a=new i,r=ov(),o=Gc(),s=Fc(),f=Bt(),{safeRe:m,t:d,comparatorTrimReplace:p,tildeTrimReplace:v,caretTrimReplace:b}=Ho(),{FLAG_INCLUDE_PRERELEASE:x,FLAG_LOOSE:S}=Bc(),w=Y=>Y.value==="<0.0.0-0",N=Y=>Y.value==="",j=(Y,P)=>{let R=!0;const F=Y.slice();let te=F.pop();for(;R&&F.length;)R=F.every(ae=>te.intersects(ae,P)),te=F.pop();return R},C=(Y,P)=>(Y=Y.replace(m[d.BUILD],""),s("comp",Y,P),Y=L(Y,P),s("caret",Y),Y=G(Y,P),s("tildes",Y),Y=ne(Y,P),s("xrange",Y),Y=U(Y,P),s("stars",Y),Y),O=Y=>!Y||Y.toLowerCase()==="x"||Y==="*",G=(Y,P)=>Y.trim().split(/\s+/).map(R=>X(R,P)).join(" "),X=(Y,P)=>{const R=P.loose?m[d.TILDELOOSE]:m[d.TILDE];return Y.replace(R,(F,te,ae,E,z)=>{s("tilde",Y,F,te,ae,E,z);let Z;return O(te)?Z="":O(ae)?Z=`>=${te}.0.0 <${+te+1}.0.0-0`:O(E)?Z=`>=${te}.${ae}.0 <${te}.${+ae+1}.0-0`:z?(s("replaceTilde pr",z),Z=`>=${te}.${ae}.${E}-${z} <${te}.${+ae+1}.0-0`):Z=`>=${te}.${ae}.${E} <${te}.${+ae+1}.0-0`,s("tilde return",Z),Z})},L=(Y,P)=>Y.trim().split(/\s+/).map(R=>W(R,P)).join(" "),W=(Y,P)=>{s("caret",Y,P);const R=P.loose?m[d.CARETLOOSE]:m[d.CARET],F=P.includePrerelease?"-0":"";return Y.replace(R,(te,ae,E,z,Z)=>{s("caret",Y,te,ae,E,z,Z);let $;return O(ae)?$="":O(E)?$=`>=${ae}.0.0${F} <${+ae+1}.0.0-0`:O(z)?ae==="0"?$=`>=${ae}.${E}.0${F} <${ae}.${+E+1}.0-0`:$=`>=${ae}.${E}.0${F} <${+ae+1}.0.0-0`:Z?(s("replaceCaret pr",Z),ae==="0"?E==="0"?$=`>=${ae}.${E}.${z}-${Z} <${ae}.${E}.${+z+1}-0`:$=`>=${ae}.${E}.${z}-${Z} <${ae}.${+E+1}.0-0`:$=`>=${ae}.${E}.${z}-${Z} <${+ae+1}.0.0-0`):(s("no pr"),ae==="0"?E==="0"?$=`>=${ae}.${E}.${z}${F} <${ae}.${E}.${+z+1}-0`:$=`>=${ae}.${E}.${z}${F} <${ae}.${+E+1}.0-0`:$=`>=${ae}.${E}.${z} <${+ae+1}.0.0-0`),s("caret return",$),$})},ne=(Y,P)=>(s("replaceXRanges",Y,P),Y.split(/\s+/).map(R=>ie(R,P)).join(" ")),ie=(Y,P)=>{Y=Y.trim();const R=P.loose?m[d.XRANGELOOSE]:m[d.XRANGE];return Y.replace(R,(F,te,ae,E,z,Z)=>{s("xRange",Y,F,te,ae,E,z,Z);const $=O(ae),oe=$||O(E),me=oe||O(z),pe=me;return te==="="&&pe&&(te=""),Z=P.includePrerelease?"-0":"",$?te===">"||te==="<"?F="<0.0.0-0":F="*":te&&pe?(oe&&(E=0),z=0,te===">"?(te=">=",oe?(ae=+ae+1,E=0,z=0):(E=+E+1,z=0)):te==="<="&&(te="<",oe?ae=+ae+1:E=+E+1),te==="<"&&(Z="-0"),F=`${te+ae}.${E}.${z}${Z}`):oe?F=`>=${ae}.0.0${Z} <${+ae+1}.0.0-0`:me&&(F=`>=${ae}.${E}.0${Z} <${ae}.${+E+1}.0-0`),s("xRange return",F),F})},U=(Y,P)=>(s("replaceStars",Y,P),Y.trim().replace(m[d.STAR],"")),se=(Y,P)=>(s("replaceGTE0",Y,P),Y.trim().replace(m[P.includePrerelease?d.GTE0PRE:d.GTE0],"")),ce=Y=>(P,R,F,te,ae,E,z,Z,$,oe,me,pe)=>(O(F)?R="":O(te)?R=`>=${F}.0.0${Y?"-0":""}`:O(ae)?R=`>=${F}.${te}.0${Y?"-0":""}`:E?R=`>=${R}`:R=`>=${R}${Y?"-0":""}`,O($)?Z="":O(oe)?Z=`<${+$+1}.0.0-0`:O(me)?Z=`<${$}.${+oe+1}.0-0`:pe?Z=`<=${$}.${oe}.${me}-${pe}`:Y?Z=`<${$}.${oe}.${+me+1}-0`:Z=`<=${Z}`,`${R} ${Z}`.trim()),Se=(Y,P,R)=>{for(let F=0;F<Y.length;F++)if(!Y[F].test(P))return!1;if(P.prerelease.length&&!R.includePrerelease){for(let F=0;F<Y.length;F++)if(s(Y[F].semver),Y[F].semver!==o.ANY&&Y[F].semver.prerelease.length>0){const te=Y[F].semver;if(te.major===P.major&&te.minor===P.minor&&te.patch===P.patch)return!0}return!1}return!0};return nh}var rh,K_;function Gc(){if(K_)return rh;K_=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(p,v){if(v=i(v),p instanceof t){if(p.loose===!!v.loose)return p;p=p.value}p=p.trim().split(/\s+/).join(" "),s("comparator",p,v),this.options=v,this.loose=!!v.loose,this.parse(p),this.semver===e?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(p){const v=this.options.loose?a[r.COMPARATORLOOSE]:a[r.COMPARATOR],b=p.match(v);if(!b)throw new TypeError(`Invalid comparator: ${p}`);this.operator=b[1]!==void 0?b[1]:"",this.operator==="="&&(this.operator=""),b[2]?this.semver=new f(b[2],this.options.loose):this.semver=e}toString(){return this.value}test(p){if(s("Comparator.test",p,this.options.loose),this.semver===e||p===e)return!0;if(typeof p=="string")try{p=new f(p,this.options)}catch{return!1}return o(p,this.operator,this.semver,this.options)}intersects(p,v){if(!(p instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new m(p.value,v).test(this.value):p.operator===""?p.value===""?!0:new m(this.value,v).test(p.semver):(v=i(v),v.includePrerelease&&(this.value==="<0.0.0-0"||p.value==="<0.0.0-0")||!v.includePrerelease&&(this.value.startsWith("<0.0.0")||p.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&p.operator.startsWith(">")||this.operator.startsWith("<")&&p.operator.startsWith("<")||this.semver.version===p.semver.version&&this.operator.includes("=")&&p.operator.includes("=")||o(this.semver,"<",p.semver,v)&&this.operator.startsWith(">")&&p.operator.startsWith("<")||o(this.semver,">",p.semver,v)&&this.operator.startsWith("<")&&p.operator.startsWith(">")))}}rh=t;const i=ov(),{safeRe:a,t:r}=Ho(),o=FN(),s=Fc(),f=Bt(),m=qn();return rh}var ih,W_;function Vc(){if(W_)return ih;W_=1;const e=qn();return ih=(i,a,r)=>{try{a=new e(a,r)}catch{return!1}return a.test(i)},ih}var ah,e1;function VI(){if(e1)return ah;e1=1;const e=qn();return ah=(i,a)=>new e(i,a).set.map(r=>r.map(o=>o.value).join(" ").trim().split(" ")),ah}var lh,t1;function YI(){if(t1)return lh;t1=1;const e=Bt(),t=qn();return lh=(a,r,o)=>{let s=null,f=null,m=null;try{m=new t(r,o)}catch{return null}return a.forEach(d=>{m.test(d)&&(!s||f.compare(d)===-1)&&(s=d,f=new e(s,o))}),s},lh}var oh,n1;function XI(){if(n1)return oh;n1=1;const e=Bt(),t=qn();return oh=(a,r,o)=>{let s=null,f=null,m=null;try{m=new t(r,o)}catch{return null}return a.forEach(d=>{m.test(d)&&(!s||f.compare(d)===1)&&(s=d,f=new e(s,o))}),s},oh}var uh,r1;function QI(){if(r1)return uh;r1=1;const e=Bt(),t=qn(),i=Hc();return uh=(r,o)=>{r=new t(r,o);let s=new e("0.0.0");if(r.test(s)||(s=new e("0.0.0-0"),r.test(s)))return s;s=null;for(let f=0;f<r.set.length;++f){const m=r.set[f];let d=null;m.forEach(p=>{const v=new e(p.semver.version);switch(p.operator){case">":v.prerelease.length===0?v.patch++:v.prerelease.push(0),v.raw=v.format();case"":case">=":(!d||i(v,d))&&(d=v);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),d&&(!s||i(s,d))&&(s=d)}return s&&r.test(s)?s:null},uh}var sh,i1;function JI(){if(i1)return sh;i1=1;const e=qn();return sh=(i,a)=>{try{return new e(i,a).range||"*"}catch{return null}},sh}var ch,a1;function dv(){if(a1)return ch;a1=1;const e=Bt(),t=Gc(),{ANY:i}=t,a=qn(),r=Vc(),o=Hc(),s=sv(),f=fv(),m=cv();return ch=(p,v,b,x)=>{p=new e(p,x),v=new a(v,x);let S,w,N,j,C;switch(b){case">":S=o,w=f,N=s,j=">",C=">=";break;case"<":S=s,w=m,N=o,j="<",C="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(r(p,v,x))return!1;for(let O=0;O<v.set.length;++O){const G=v.set[O];let X=null,L=null;if(G.forEach(W=>{W.semver===i&&(W=new t(">=0.0.0")),X=X||W,L=L||W,S(W.semver,X.semver,x)?X=W:N(W.semver,L.semver,x)&&(L=W)}),X.operator===j||X.operator===C||(!L.operator||L.operator===j)&&w(p,L.semver))return!1;if(L.operator===C&&N(p,L.semver))return!1}return!0},ch}var fh,l1;function KI(){if(l1)return fh;l1=1;const e=dv();return fh=(i,a,r)=>e(i,a,">",r),fh}var dh,o1;function WI(){if(o1)return dh;o1=1;const e=dv();return dh=(i,a,r)=>e(i,a,"<",r),dh}var mh,u1;function eU(){if(u1)return mh;u1=1;const e=qn();return mh=(i,a,r)=>(i=new e(i,r),a=new e(a,r),i.intersects(a,r)),mh}var hh,s1;function tU(){if(s1)return hh;s1=1;const e=Vc(),t=Zn();return hh=(i,a,r)=>{const o=[];let s=null,f=null;const m=i.sort((b,x)=>t(b,x,r));for(const b of m)e(b,a,r)?(f=b,s||(s=b)):(f&&o.push([s,f]),f=null,s=null);s&&o.push([s,null]);const d=[];for(const[b,x]of o)b===x?d.push(b):!x&&b===m[0]?d.push("*"):x?b===m[0]?d.push(`<=${x}`):d.push(`${b} - ${x}`):d.push(`>=${b}`);const p=d.join(" || "),v=typeof a.raw=="string"?a.raw:String(a);return p.length<v.length?p:a},hh}var ph,c1;function nU(){if(c1)return ph;c1=1;const e=qn(),t=Gc(),{ANY:i}=t,a=Vc(),r=Zn(),o=(v,b,x={})=>{if(v===b)return!0;v=new e(v,x),b=new e(b,x);let S=!1;e:for(const w of v.set){for(const N of b.set){const j=m(w,N,x);if(S=S||j!==null,j)continue e}if(S)return!1}return!0},s=[new t(">=0.0.0-0")],f=[new t(">=0.0.0")],m=(v,b,x)=>{if(v===b)return!0;if(v.length===1&&v[0].semver===i){if(b.length===1&&b[0].semver===i)return!0;x.includePrerelease?v=s:v=f}if(b.length===1&&b[0].semver===i){if(x.includePrerelease)return!0;b=f}const S=new Set;let w,N;for(const ne of v)ne.operator===">"||ne.operator===">="?w=d(w,ne,x):ne.operator==="<"||ne.operator==="<="?N=p(N,ne,x):S.add(ne.semver);if(S.size>1)return null;let j;if(w&&N){if(j=r(w.semver,N.semver,x),j>0)return null;if(j===0&&(w.operator!==">="||N.operator!=="<="))return null}for(const ne of S){if(w&&!a(ne,String(w),x)||N&&!a(ne,String(N),x))return null;for(const ie of b)if(!a(ne,String(ie),x))return!1;return!0}let C,O,G,X,L=N&&!x.includePrerelease&&N.semver.prerelease.length?N.semver:!1,W=w&&!x.includePrerelease&&w.semver.prerelease.length?w.semver:!1;L&&L.prerelease.length===1&&N.operator==="<"&&L.prerelease[0]===0&&(L=!1);for(const ne of b){if(X=X||ne.operator===">"||ne.operator===">=",G=G||ne.operator==="<"||ne.operator==="<=",w){if(W&&ne.semver.prerelease&&ne.semver.prerelease.length&&ne.semver.major===W.major&&ne.semver.minor===W.minor&&ne.semver.patch===W.patch&&(W=!1),ne.operator===">"||ne.operator===">="){if(C=d(w,ne,x),C===ne&&C!==w)return!1}else if(w.operator===">="&&!a(w.semver,String(ne),x))return!1}if(N){if(L&&ne.semver.prerelease&&ne.semver.prerelease.length&&ne.semver.major===L.major&&ne.semver.minor===L.minor&&ne.semver.patch===L.patch&&(L=!1),ne.operator==="<"||ne.operator==="<="){if(O=p(N,ne,x),O===ne&&O!==N)return!1}else if(N.operator==="<="&&!a(N.semver,String(ne),x))return!1}if(!ne.operator&&(N||w)&&j!==0)return!1}return!(w&&G&&!N&&j!==0||N&&X&&!w&&j!==0||W||L)},d=(v,b,x)=>{if(!v)return b;const S=r(v.semver,b.semver,x);return S>0?v:S<0||b.operator===">"&&v.operator===">="?b:v},p=(v,b,x)=>{if(!v)return b;const S=r(v.semver,b.semver,x);return S<0?v:S>0||b.operator==="<"&&v.operator==="<="?b:v};return ph=o,ph}var gh,f1;function rU(){if(f1)return gh;f1=1;const e=Ho(),t=Bc(),i=Bt(),a=ZN(),r=el(),o=CI(),s=RI(),f=DI(),m=II(),d=UI(),p=LI(),v=MI(),b=PI(),x=Zn(),S=ZI(),w=qI(),N=uv(),j=BI(),C=FI(),O=Hc(),G=sv(),X=qN(),L=BN(),W=cv(),ne=fv(),ie=FN(),U=HI(),se=Gc(),ce=qn(),Se=Vc(),Y=VI(),P=YI(),R=XI(),F=QI(),te=JI(),ae=dv(),E=KI(),z=WI(),Z=eU(),$=tU(),oe=nU();return gh={parse:r,valid:o,clean:s,inc:f,diff:m,major:d,minor:p,patch:v,prerelease:b,compare:x,rcompare:S,compareLoose:w,compareBuild:N,sort:j,rsort:C,gt:O,lt:G,eq:X,neq:L,gte:W,lte:ne,cmp:ie,coerce:U,Comparator:se,Range:ce,satisfies:Se,toComparators:Y,maxSatisfying:P,minSatisfying:R,minVersion:F,validRange:te,outside:ae,gtr:E,ltr:z,intersects:Z,simplifyRange:$,subset:oe,SemVer:i,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers},gh}var iU=rU();const Yn=bo(iU),aU="composer_proxy_admin_token";function lU(){return typeof window<"u"?localStorage.getItem(aU):null}function oU({distUrl:e}){const[t,i]=A.useState(!1),[a,r]=A.useState(null),o=async s=>{s.stopPropagation(),i(!0),r(null);try{const f=lU(),m={};f&&(m.Authorization=`Bearer ${f}`);const d=await fetch(e,{headers:m});if(!d.ok)throw new Error(`Download failed: ${d.status} ${d.statusText}`);const p=await d.blob(),v=window.URL.createObjectURL(p),b=document.createElement("a");b.href=v,b.download=e.split("/").pop()||"package.zip",document.body.appendChild(b),b.click(),document.body.removeChild(b),window.URL.revokeObjectURL(v)}catch(f){r(f instanceof Error?f.message:"Download failed")}finally{i(!1)}};return a?y.jsxs("div",{className:"flex flex-col items-end gap-1",children:[y.jsx("button",{onClick:o,className:"text-red-400 hover:text-red-300 text-sm","data-testid":"download-button",children:"Retry"}),y.jsx("span",{className:"text-xs text-red-500",children:a})]}):y.jsx("button",{onClick:o,disabled:t,className:"text-primary-400 hover:text-primary-300 text-sm disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"download-button",children:t?"Downloading...":"Download"})}function uU(){const[e,t]=A.useState(""),[i,a]=A.useState(!1),{data:r=[],isLoading:o}=fn({queryKey:["packages",e],queryFn:()=>E6(e||void 0)}),s=r.reduce((f,m)=>(f[m.name]||(f[m.name]=[]),f[m.name].push(m),f),{});return y.jsxs("div",{className:"space-y-8","data-testid":"packages-page",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"packages-heading",children:"Packages"}),y.jsx("p",{className:"text-slate-400",children:"Browse cached packages"})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-72",children:y.jsx("input",{type:"text",value:e,onChange:f=>t(f.target.value),placeholder:"Search packages...",className:"input w-full","data-testid":"package-search-input","aria-label":"Search packages"})}),y.jsx("button",{onClick:()=>a(!0),className:"btn-primary","data-testid":"add-packages-button",children:"Add Package"})]})]}),i&&y.jsx(cU,{onClose:()=>a(!1)}),y.jsx("div",{className:"space-y-4","data-testid":"packages-list",children:o?y.jsx("div",{className:"card p-8 text-center","data-testid":"packages-loading",children:y.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin mx-auto","aria-label":"Loading packages"})}):Object.keys(s).length===0?y.jsx("div",{className:"card p-8 text-center text-slate-400","data-testid":"packages-empty",role:"status","aria-live":"polite",children:"No packages found matching your search."}):Object.entries(s).map(([f,m])=>y.jsx(sU,{name:f,versions:m},f))})]})}function sU({name:e,versions:t}){const[i,a]=A.useState(!1),[r,o]=A.useState(!1),s=A.useMemo(()=>[...t].sort((b,x)=>{const S=/^\d+$/.test(b.version),w=/^\d+$/.test(x.version);if(S&&w){const G=parseInt(b.version,10);return parseInt(x.version,10)-G}if(S&&!w&&Yn.valid(x.version))return 1;if(!S&&w&&Yn.valid(b.version))return-1;const N=Yn.valid(b.version),j=Yn.valid(x.version);if(N&&j)return Yn.rcompare(b.version,x.version);if(N&&!j)return-1;if(!N&&j)return 1;const C=b.version.match(/^(\d+)/),O=x.version.match(/^(\d+)/);if(C&&O){const G=parseInt(C[1],10),X=parseInt(O[1],10);if(G!==X)return X-G}return x.version.localeCompare(b.version,void 0,{numeric:!0,sensitivity:"base"})}),[t]),f=s[0],m=r?s:s.slice(0,5),d=s.length>5,v=(b=>{if(!b)return[];try{const x=JSON.parse(b);return Array.isArray(x)?x:[x]}catch{return[b]}})(f.license);return y.jsxs("div",{className:"card","data-testid":"package-card","data-package-name":e,children:[y.jsxs("div",{className:"p-4 flex items-center justify-between cursor-pointer hover:bg-slate-800/30",onClick:()=>a(!i),role:"button","aria-expanded":i,"aria-label":`${e} package, ${t.length} versions`,"data-testid":"package-header",children:[y.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[y.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-primary-500/20 to-accent-500/20 rounded-lg flex items-center justify-center",children:y.jsx(Di,{className:"w-5 h-5 text-primary-400"})}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[y.jsx(La,{to:(()=>{const[b,...x]=e.split("/"),S=x.join("/");return`/packages/${b}/${S}`})(),onClick:b=>b.stopPropagation(),className:"font-medium text-slate-100 hover:text-primary-400 transition-colors",children:e}),f.package_type&&y.jsx("span",{className:"px-2 py-0.5 text-xs bg-slate-700 text-slate-300 rounded",children:f.package_type}),v.length>0&&y.jsx("span",{className:"px-2 py-0.5 text-xs bg-slate-700 text-slate-300 rounded",children:v[0]})]}),f.description&&y.jsx("p",{className:"text-sm text-slate-400 truncate mb-1",children:f.description}),y.jsxs("p",{className:"text-sm text-slate-500",children:[t.length," version",t.length!==1?"s":""," • Latest:"," ",y.jsx("span",{className:"text-primary-400",children:f.version})]})]})]}),y.jsx("span",{className:"text-slate-400","aria-hidden":"true","data-testid":"package-expand-toggle",children:i?"▼":"▶"})]}),i&&y.jsxs("div",{className:"border-t border-slate-800 p-4",role:"region","aria-label":`Versions for ${e}`,children:[y.jsx("h4",{className:"text-sm font-medium text-slate-400 mb-3",children:"Versions"}),y.jsx("div",{className:"space-y-2",role:"list",children:m.map(b=>y.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-800/50 rounded-lg","data-testid":"version-row","data-version":b.version,role:"listitem",children:[y.jsxs("div",{children:[y.jsx("span",{className:"font-medium text-slate-200",children:b.version}),b.released_at&&y.jsxs("span",{className:"text-sm text-slate-500 ml-2","aria-label":`Released ${new Date(b.released_at*1e3).toLocaleDateString()}`,children:["Released ",new Date(b.released_at*1e3).toLocaleDateString()]})]}),y.jsx(oU,{distUrl:b.dist_url})]},b.id))}),d&&!r&&y.jsx("button",{onClick:b=>{b.stopPropagation(),o(!0)},className:"mt-3 text-sm text-primary-400 hover:text-primary-300","data-testid":"show-all-versions-button","aria-label":"Show all versions",children:"Show all"})]})]})}function cU({onClose:e}){const[t,i]=A.useState(""),[a,r]=A.useState(""),o=jr(),{data:s=[]}=fn({queryKey:["repositories"],queryFn:LS}),{data:f}=fn({queryKey:["settings"],queryFn:Xs}),m=A.useMemo(()=>{const b=s.filter(x=>x.vcs_type==="composer"&&x.status==="active").filter(x=>!(f?.packagist_mirroring_enabled&&x.url==="https://repo.packagist.org")).map(x=>({...x,displayName:x.url}));return f?.packagist_mirroring_enabled&&b.unshift({id:"packagist",url:"https://repo.packagist.org",vcs_type:"composer",credential_type:"none",composer_json_path:null,package_filter:null,status:"active",error_message:null,last_synced_at:null,created_at:0,displayName:"Packagist.org"}),b},[s,f]);A.useMemo(()=>{m.length>0&&!a&&r(m[0].id)},[m,a]);const d=$r({mutationFn:v=>A6(v.repositoryId,v.packageNames),onSuccess:()=>{o.invalidateQueries({queryKey:["packages"]}),e()}}),p=v=>{v.preventDefault();const b=t.split(/[,\s\n]+/).map(x=>x.trim()).filter(x=>x.length>0);b.length!==0&&a&&d.mutate({repositoryId:a,packageNames:b})};return y.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:y.jsxs("div",{className:"card max-w-2xl w-full mx-4 p-6 max-h-[90vh] overflow-y-auto",children:[y.jsxs("div",{className:"flex items-center justify-between mb-6",children:[y.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Add Mirrored Package(s)"}),y.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:y.jsx(Ii,{className:"w-4 h-4"})})]}),y.jsxs("form",{onSubmit:p,className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Package name(s), separated by comma, spaces or newlines"}),y.jsx("textarea",{value:t,onChange:v=>i(v.target.value),placeholder:`vendor/package1
41
+ vendor/package2
42
+ vendor/package3`,className:"input w-full min-h-[120px] resize-y font-mono text-sm",required:!0})]}),y.jsxs("div",{children:[y.jsx("label",{className:"label",children:"Mirrored Repository"}),y.jsx("select",{value:a,onChange:v=>r(v.target.value),className:"input w-full",required:!0,children:m.length===0?y.jsx("option",{value:"",children:"No repositories available"}):m.map(v=>y.jsx("option",{value:v.id,children:v.displayName},v.id))}),y.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"You can set up mirrored third party repositories on the settings page."})]}),d.error&&y.jsx("div",{className:"bg-red-500/10 border border-red-500/50 rounded-lg p-3",children:y.jsx("p",{className:"text-red-400 text-sm",children:d.error.message})}),d.data&&y.jsxs("div",{className:"bg-slate-800/50 rounded-lg p-4",children:[y.jsx("p",{className:"text-slate-200 text-sm mb-2",children:d.data.message}),y.jsx("div",{className:"space-y-1 text-xs",children:d.data.results.map((v,b)=>y.jsxs("div",{className:v.success?"text-green-400":"text-red-400",children:[v.package,": ",v.success?`✓ ${v.versions} version(s) stored`:`✗ ${v.error}`]},b))})]}),y.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[y.jsx("button",{type:"button",onClick:e,className:"btn-secondary",children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn-primary",disabled:d.isPending||m.length===0,children:d.isPending?"Adding...":"Add"})]})]})]})})}function fU(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const dU=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mU=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hU={};function d1(e,t){return(hU.jsx?mU:dU).test(e)}const pU=/[ \t\n\f\r]/g;function gU(e){return typeof e=="object"?e.type==="text"?m1(e.value):!1:m1(e)}function m1(e){return e.replace(pU,"")===""}class Go{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}Go.prototype.normal={};Go.prototype.property={};Go.prototype.space=void 0;function HN(e,t){const i={},a={};for(const r of e)Object.assign(i,r.property),Object.assign(a,r.normal);return new Go(i,a,t)}function Kh(e){return e.toLowerCase()}class en{constructor(t,i){this.attribute=i,this.property=t}}en.prototype.attribute="";en.prototype.booleanish=!1;en.prototype.boolean=!1;en.prototype.commaOrSpaceSeparated=!1;en.prototype.commaSeparated=!1;en.prototype.defined=!1;en.prototype.mustUseProperty=!1;en.prototype.number=!1;en.prototype.overloadedBoolean=!1;en.prototype.property="";en.prototype.spaceSeparated=!1;en.prototype.space=void 0;let vU=0;const Ne=Bi(),bt=Bi(),Wh=Bi(),le=Bi(),nt=Bi(),Ua=Bi(),cn=Bi();function Bi(){return 2**++vU}const ep=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ne,booleanish:bt,commaOrSpaceSeparated:cn,commaSeparated:Ua,number:le,overloadedBoolean:Wh,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),vh=Object.keys(ep);class mv extends en{constructor(t,i,a,r){let o=-1;if(super(t,i),h1(this,"space",r),typeof a=="number")for(;++o<vh.length;){const s=vh[o];h1(this,vh[o],(a&ep[s])===ep[s])}}}mv.prototype.defined=!0;function h1(e,t,i){i&&(e[t]=i)}function tl(e){const t={},i={};for(const[a,r]of Object.entries(e.properties)){const o=new mv(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,i[Kh(a)]=a,i[Kh(o.attribute)]=a}return new Go(t,i,e.space)}const GN=tl({properties:{ariaActiveDescendant:null,ariaAtomic:bt,ariaAutoComplete:null,ariaBusy:bt,ariaChecked:bt,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:bt,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:bt,ariaFlowTo:nt,ariaGrabbed:bt,ariaHasPopup:null,ariaHidden:bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:le,ariaLive:null,ariaModal:bt,ariaMultiLine:bt,ariaMultiSelectable:bt,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:bt,ariaReadOnly:bt,ariaRelevant:null,ariaRequired:bt,ariaRoleDescription:nt,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:bt,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function VN(e,t){return t in e?e[t]:t}function YN(e,t){return VN(e,t.toLowerCase())}const yU=tl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ua,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Ne,allowPaymentRequest:Ne,allowUserMedia:Ne,alt:null,as:null,async:Ne,autoCapitalize:null,autoComplete:nt,autoFocus:Ne,autoPlay:Ne,blocking:nt,capture:null,charSet:null,checked:Ne,cite:null,className:nt,cols:le,colSpan:null,content:null,contentEditable:bt,controls:Ne,controlsList:nt,coords:le|Ua,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ne,defer:Ne,dir:null,dirName:null,disabled:Ne,download:Wh,draggable:bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ne,formTarget:null,headers:nt,height:le,hidden:Wh,high:le,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:Ne,inputMode:null,integrity:null,is:null,isMap:Ne,itemId:null,itemProp:nt,itemRef:nt,itemScope:Ne,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ne,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Ne,muted:Ne,name:null,nonce:null,noModule:Ne,noValidate:Ne,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:Ne,optimum:le,pattern:null,ping:nt,placeholder:null,playsInline:Ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ne,referrerPolicy:null,rel:nt,required:Ne,reversed:Ne,rows:le,rowSpan:le,sandbox:nt,scope:null,scoped:Ne,seamless:Ne,selected:Ne,shadowRootClonable:Ne,shadowRootDelegatesFocus:Ne,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Ne,useMap:null,value:bt,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ne,declare:Ne,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Ne,noHref:Ne,noShade:Ne,noWrap:Ne,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:bt,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ne,disableRemotePlayback:Ne,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:YN}),bU=tl({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:cn,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:nt,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:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,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:Ua,g2:Ua,glyphName:Ua,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:cn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,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:le,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:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cn,rev:cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cn,requiredFeatures:cn,requiredFonts:cn,requiredFormats:cn,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:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:cn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cn,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:VN}),XN=tl({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()}}),QN=tl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:YN}),JN=tl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xU={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"},_U=/[A-Z]/g,p1=/-[a-z]/g,SU=/^data[-\w.:]+$/i;function kU(e,t){const i=Kh(t);let a=t,r=en;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&SU.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(p1,$U);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!p1.test(o)){let s=o.replace(_U,wU);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=mv}return new r(a,t)}function wU(e){return"-"+e.toLowerCase()}function $U(e){return e.charAt(1).toUpperCase()}const EU=HN([GN,yU,XN,QN,JN],"html"),hv=HN([GN,bU,XN,QN,JN],"svg");function jU(e){return e.join(" ").trim()}var Ca={},yh,g1;function NU(){if(g1)return yh;g1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,f=/^\s+|\s+$/g,m=`
43
+ `,d="/",p="*",v="",b="comment",x="declaration";function S(N,j){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];j=j||{};var C=1,O=1;function G(Y){var P=Y.match(t);P&&(C+=P.length);var R=Y.lastIndexOf(m);O=~R?Y.length-R:O+Y.length}function X(){var Y={line:C,column:O};return function(P){return P.position=new L(Y),ie(),P}}function L(Y){this.start=Y,this.end={line:C,column:O},this.source=j.source}L.prototype.content=N;function W(Y){var P=new Error(j.source+":"+C+":"+O+": "+Y);if(P.reason=Y,P.filename=j.source,P.line=C,P.column=O,P.source=N,!j.silent)throw P}function ne(Y){var P=Y.exec(N);if(P){var R=P[0];return G(R),N=N.slice(R.length),P}}function ie(){ne(i)}function U(Y){var P;for(Y=Y||[];P=se();)P!==!1&&Y.push(P);return Y}function se(){var Y=X();if(!(d!=N.charAt(0)||p!=N.charAt(1))){for(var P=2;v!=N.charAt(P)&&(p!=N.charAt(P)||d!=N.charAt(P+1));)++P;if(P+=2,v===N.charAt(P-1))return W("End of comment missing");var R=N.slice(2,P-2);return O+=2,G(R),N=N.slice(P),O+=2,Y({type:b,comment:R})}}function ce(){var Y=X(),P=ne(a);if(P){if(se(),!ne(r))return W("property missing ':'");var R=ne(o),F=Y({type:x,property:w(P[0].replace(e,v)),value:R?w(R[0].replace(e,v)):v});return ne(s),F}}function Se(){var Y=[];U(Y);for(var P;P=ce();)P!==!1&&(Y.push(P),U(Y));return Y}return ie(),Se()}function w(N){return N?N.replace(f,v):v}return yh=S,yh}var v1;function zU(){if(v1)return Ca;v1=1;var e=Ca&&Ca.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.default=i;const t=e(NU());function i(a,r){let o=null;if(!a||typeof a!="string")return o;const s=(0,t.default)(a),f=typeof r=="function";return s.forEach(m=>{if(m.type!=="declaration")return;const{property:d,value:p}=m;f?r(d,p,m):p&&(o=o||{},o[d]=p)}),o}return Ca}var eo={},y1;function OU(){if(y1)return eo;y1=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(d){return!d||i.test(d)||e.test(d)},s=function(d,p){return p.toUpperCase()},f=function(d,p){return"".concat(p,"-")},m=function(d,p){return p===void 0&&(p={}),o(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(r,f):d=d.replace(a,f),d.replace(t,s))};return eo.camelCase=m,eo}var to,b1;function TU(){if(b1)return to;b1=1;var e=to&&to.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(zU()),i=OU();function a(r,o){var s={};return!r||typeof r!="string"||(0,t.default)(r,function(f,m){f&&m&&(s[(0,i.camelCase)(f,o)]=m)}),s}return a.default=a,to=a,to}var AU=TU();const CU=bo(AU),KN=WN("end"),pv=WN("start");function WN(e){return t;function t(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function RU(e){const t=pv(e),i=KN(e);if(t&&i)return{start:t,end:i}}function lo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?x1(e.position):"start"in e||"end"in e?x1(e):"line"in e||"column"in e?tp(e):""}function tp(e){return _1(e&&e.line)+":"+_1(e&&e.column)}function x1(e){return tp(e&&e.start)+"-"+tp(e&&e.end)}function _1(e){return e&&typeof e=="number"?e:1}class It extends Error{constructor(t,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let r="",o={},s=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof t=="string"?r=t:!o.cause&&t&&(s=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?o.ruleId=a:(o.source=a.slice(0,m),o.ruleId=a.slice(m+1))}if(!o.place&&o.ancestors&&o.ancestors){const m=o.ancestors[o.ancestors.length-1];m&&(o.place=m.position)}const f=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=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=f?f.line:void 0,this.name=lo(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=s&&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}}It.prototype.file="";It.prototype.name="";It.prototype.reason="";It.prototype.message="";It.prototype.stack="";It.prototype.column=void 0;It.prototype.line=void 0;It.prototype.ancestors=void 0;It.prototype.cause=void 0;It.prototype.fatal=void 0;It.prototype.place=void 0;It.prototype.ruleId=void 0;It.prototype.source=void 0;const gv={}.hasOwnProperty,DU=new Map,IU=/[A-Z]/g,UU=new Set(["table","tbody","thead","tfoot","tr"]),LU=new Set(["td","th"]),e4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MU(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=VU(i,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");a=GU(i,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?hv:EU,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=t4(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function t4(e,t,i){if(t.type==="element")return PU(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ZU(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return BU(e,t,i);if(t.type==="mdxjsEsm")return qU(e,t);if(t.type==="root")return FU(e,t,i);if(t.type==="text")return HU(e,t)}function PU(e,t,i){const a=e.schema;let r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=hv,e.schema=r),e.ancestors.push(t);const o=r4(e,t.tagName,!1),s=YU(e,t);let f=yv(e,t);return UU.has(t.tagName)&&(f=f.filter(function(m){return typeof m=="string"?!gU(m):!0})),n4(e,s,o,t),vv(s,f),e.ancestors.pop(),e.schema=a,e.create(t,o,s,i)}function ZU(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}vo(e,t.position)}function qU(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vo(e,t.position)}function BU(e,t,i){const a=e.schema;let r=a;t.name==="svg"&&a.space==="html"&&(r=hv,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:r4(e,t.name,!0),s=XU(e,t),f=yv(e,t);return n4(e,s,o,t),vv(s,f),e.ancestors.pop(),e.schema=a,e.create(t,o,s,i)}function FU(e,t,i){const a={};return vv(a,yv(e,t)),e.create(t,e.Fragment,a,i)}function HU(e,t){return t.value}function n4(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function vv(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function GU(e,t,i){return a;function a(r,o,s,f){const d=Array.isArray(s.children)?i:t;return f?d(o,s,f):d(o,s)}}function VU(e,t){return i;function i(a,r,o,s){const f=Array.isArray(o.children),m=pv(a);return t(r,o,s,f,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function YU(e,t){const i={};let a,r;for(r in t.properties)if(r!=="children"&&gv.call(t.properties,r)){const o=QU(e,r,t.properties[r]);if(o){const[s,f]=o;e.tableCellAlignToStyle&&s==="align"&&typeof f=="string"&&LU.has(t.tagName)?a=f:i[s]=f}}if(a){const o=i.style||(i.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function XU(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const o=a.data.estree.body[0];o.type;const s=o.expression;s.type;const f=s.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else vo(e,t.position);else{const r=a.name;let o;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,o=e.evaluater.evaluateExpression(f.expression)}else vo(e,t.position);else o=a.value===null?!0:a.value;i[r]=o}return i}function yv(e,t){const i=[];let a=-1;const r=e.passKeys?new Map:DU;for(;++a<t.children.length;){const o=t.children[a];let s;if(e.passKeys){const m=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(m){const d=r.get(m)||0;s=m+"-"+d,r.set(m,d+1)}}const f=t4(e,o,s);f!==void 0&&i.push(f)}return i}function QU(e,t,i){const a=kU(e.schema,t);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?fU(i):jU(i)),a.property==="style"){let r=typeof i=="object"?i:JU(e,String(i));return e.stylePropertyNameCase==="css"&&(r=KU(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?xU[a.property]||a.property:a.attribute,i]}}function JU(e,t){try{return CU(t,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const a=i,r=new It("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=e4+"#cannot-parse-style-attribute",r}}function r4(e,t,i){let a;if(!i)a={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,s;for(;++o<r.length;){const f=d1(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};s=s?{type:"MemberExpression",object:s,property:f,computed:!!(o&&f.type==="Literal"),optional:!1}:f}a=s}else a=d1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const r=a.value;return gv.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);vo(e)}function vo(e,t){const i=new It("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=e4+"#cannot-handle-mdx-estrees-without-createevaluater",i}function KU(e){const t={};let i;for(i in e)gv.call(e,i)&&(t[WU(i)]=e[i]);return t}function WU(e){let t=e.replace(IU,e3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function e3(e){return"-"+e.toLowerCase()}const bh={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"]},t3={};function bv(e,t){const i=t3,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,r=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return i4(e,a,r)}function i4(e,t,i){if(n3(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return S1(e.children,t,i)}return Array.isArray(e)?S1(e,t,i):""}function S1(e,t,i){const a=[];let r=-1;for(;++r<e.length;)a[r]=i4(e[r],t,i);return a.join("")}function n3(e){return!!(e&&typeof e=="object")}const k1=document.createElement("i");function xv(e){const t="&"+e+";";k1.innerHTML=t;const i=k1.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===t?!1:i}function dn(e,t,i,a){const r=e.length;let o=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,i=i>0?i:0,a.length<1e4)s=Array.from(a),s.unshift(t,i),e.splice(...s);else for(i&&e.splice(t,i);o<a.length;)s=a.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function jn(e,t){return e.length>0?(dn(e,e.length,0,t),e):t}const w1={}.hasOwnProperty;function a4(e){const t={};let i=-1;for(;++i<e.length;)r3(t,e[i]);return t}function r3(e,t){let i;for(i in t){const r=(w1.call(e,i)?e[i]:void 0)||(e[i]={}),o=t[i];let s;if(o)for(s in o){w1.call(r,s)||(r[s]=[]);const f=o[s];i3(r[s],Array.isArray(f)?f:f?[f]:[])}}}function i3(e,t){let i=-1;const a=[];for(;++i<t.length;)(t[i].add==="after"?e:a).push(t[i]);dn(e,0,0,a)}function l4(e,t){const i=Number.parseInt(e,t);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Mn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qt=ci(/[A-Za-z]/),Rt=ci(/[\dA-Za-z]/),a3=ci(/[#-'*+\--9=?A-Z^-~]/);function Ps(e){return e!==null&&(e<32||e===127)}const np=ci(/\d/),l3=ci(/[\dA-Fa-f]/),o3=ci(/[!-/:-@[-`{-~]/);function ye(e){return e!==null&&e<-2}function Ke(e){return e!==null&&(e<0||e===32)}function Ce(e){return e===-2||e===-1||e===32}const Yc=ci(new RegExp("\\p{P}|\\p{S}","u")),Pi=ci(/\s/);function ci(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function nl(e){const t=[];let i=-1,a=0,r=0;for(;++i<e.length;){const o=e.charCodeAt(i);let s="";if(o===37&&Rt(e.charCodeAt(i+1))&&Rt(e.charCodeAt(i+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const f=e.charCodeAt(i+1);o<56320&&f>56319&&f<57344?(s=String.fromCharCode(o,f),r=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(a,i),encodeURIComponent(s)),a=i+r+1,s=""),r&&(i+=r,r=0)}return t.join("")+e.slice(a)}function Me(e,t,i,a){const r=a?a-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(m){return Ce(m)?(e.enter(i),f(m)):t(m)}function f(m){return Ce(m)&&o++<r?(e.consume(m),f):(e.exit(i),t(m))}}const u3={tokenize:s3};function s3(e){const t=e.attempt(this.parser.constructs.contentInitial,a,r);let i;return t;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Me(e,t,"linePrefix")}function r(f){return e.enter("paragraph"),o(f)}function o(f){const m=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,s(f)}function s(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return ye(f)?(e.consume(f),e.exit("chunkText"),o):(e.consume(f),s)}}const c3={tokenize:f3},$1={tokenize:d3};function f3(e){const t=this,i=[];let a=0,r,o,s;return f;function f(O){if(a<i.length){const G=i[a];return t.containerState=G[1],e.attempt(G[0].continuation,m,d)(O)}return d(O)}function m(O){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&C();const G=t.events.length;let X=G,L;for(;X--;)if(t.events[X][0]==="exit"&&t.events[X][1].type==="chunkFlow"){L=t.events[X][1].end;break}j(a);let W=G;for(;W<t.events.length;)t.events[W][1].end={...L},W++;return dn(t.events,X+1,0,t.events.slice(G)),t.events.length=W,d(O)}return f(O)}function d(O){if(a===i.length){if(!r)return b(O);if(r.currentConstruct&&r.currentConstruct.concrete)return S(O);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check($1,p,v)(O)}function p(O){return r&&C(),j(a),b(O)}function v(O){return t.parser.lazy[t.now().line]=a!==i.length,s=t.now().offset,S(O)}function b(O){return t.containerState={},e.attempt($1,x,S)(O)}function x(O){return a++,i.push([t.currentConstruct,t.containerState]),b(O)}function S(O){if(O===null){r&&C(),j(0),e.consume(O);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),w(O)}function w(O){if(O===null){N(e.exit("chunkFlow"),!0),j(0),e.consume(O);return}return ye(O)?(e.consume(O),N(e.exit("chunkFlow")),a=0,t.interrupt=void 0,f):(e.consume(O),w)}function N(O,G){const X=t.sliceStream(O);if(G&&X.push(null),O.previous=o,o&&(o.next=O),o=O,r.defineSkip(O.start),r.write(X),t.parser.lazy[O.start.line]){let L=r.events.length;for(;L--;)if(r.events[L][1].start.offset<s&&(!r.events[L][1].end||r.events[L][1].end.offset>s))return;const W=t.events.length;let ne=W,ie,U;for(;ne--;)if(t.events[ne][0]==="exit"&&t.events[ne][1].type==="chunkFlow"){if(ie){U=t.events[ne][1].end;break}ie=!0}for(j(a),L=W;L<t.events.length;)t.events[L][1].end={...U},L++;dn(t.events,ne+1,0,t.events.slice(W)),t.events.length=L}}function j(O){let G=i.length;for(;G-- >O;){const X=i[G];t.containerState=X[1],X[0].exit.call(t,e)}i.length=O}function C(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function d3(e,t,i){return Me(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ya(e){if(e===null||Ke(e)||Pi(e))return 1;if(Yc(e))return 2}function Xc(e,t,i){const a=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!a.includes(o)&&(t=o(t,i),a.push(o))}return t}const rp={name:"attention",resolveAll:m3,tokenize:h3};function m3(e,t){let i=-1,a,r,o,s,f,m,d,p;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(a=i;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[a][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;m=e[a][1].end.offset-e[a][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const v={...e[a][1].end},b={...e[i][1].start};E1(v,-m),E1(b,m),s={type:m>1?"strongSequence":"emphasisSequence",start:v,end:{...e[a][1].end}},f={type:m>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:b},o={type:m>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},r={type:m>1?"strong":"emphasis",start:{...s.start},end:{...f.end}},e[a][1].end={...s.start},e[i][1].start={...f.end},d=[],e[a][1].end.offset-e[a][1].start.offset&&(d=jn(d,[["enter",e[a][1],t],["exit",e[a][1],t]])),d=jn(d,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",o,t]]),d=jn(d,Xc(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),d=jn(d,[["exit",o,t],["enter",f,t],["exit",f,t],["exit",r,t]]),e[i][1].end.offset-e[i][1].start.offset?(p=2,d=jn(d,[["enter",e[i][1],t],["exit",e[i][1],t]])):p=0,dn(e,a-1,i-a+3,d),i=a+d.length-p-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function h3(e,t){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,r=Ya(a);let o;return s;function s(m){return o=m,e.enter("attentionSequence"),f(m)}function f(m){if(m===o)return e.consume(m),f;const d=e.exit("attentionSequence"),p=Ya(m),v=!p||p===2&&r||i.includes(m),b=!r||r===2&&p||i.includes(a);return d._open=!!(o===42?v:v&&(r||!b)),d._close=!!(o===42?b:b&&(p||!v)),t(m)}}function E1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const p3={name:"autolink",tokenize:g3};function g3(e,t,i){let a=0;return r;function r(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(x){return qt(x)?(e.consume(x),s):x===64?i(x):d(x)}function s(x){return x===43||x===45||x===46||Rt(x)?(a=1,f(x)):d(x)}function f(x){return x===58?(e.consume(x),a=0,m):(x===43||x===45||x===46||Rt(x))&&a++<32?(e.consume(x),f):(a=0,d(x))}function m(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||Ps(x)?i(x):(e.consume(x),m)}function d(x){return x===64?(e.consume(x),p):a3(x)?(e.consume(x),d):i(x)}function p(x){return Rt(x)?v(x):i(x)}function v(x){return x===46?(e.consume(x),a=0,p):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):b(x)}function b(x){if((x===45||Rt(x))&&a++<63){const S=x===45?b:v;return e.consume(x),S}return i(x)}}const Vo={partial:!0,tokenize:v3};function v3(e,t,i){return a;function a(o){return Ce(o)?Me(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||ye(o)?t(o):i(o)}}const o4={continuation:{tokenize:b3},exit:x3,name:"blockQuote",tokenize:y3};function y3(e,t,i){const a=this;return r;function r(s){if(s===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return i(s)}function o(s){return Ce(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function b3(e,t,i){const a=this;return r;function r(s){return Ce(s)?Me(e,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(o4,t,i)(s)}}function x3(e){e.exit("blockQuote")}const u4={name:"characterEscape",tokenize:_3};function _3(e,t,i){return a;function a(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return o3(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(o)}}const s4={name:"characterReference",tokenize:S3};function S3(e,t,i){const a=this;let r=0,o,s;return f;function f(v){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),m}function m(v){return v===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(v),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,s=Rt,p(v))}function d(v){return v===88||v===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(v),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=l3,p):(e.enter("characterReferenceValue"),o=7,s=np,p(v))}function p(v){if(v===59&&r){const b=e.exit("characterReferenceValue");return s===Rt&&!xv(a.sliceSerialize(b))?i(v):(e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(v)&&r++<o?(e.consume(v),p):i(v)}}const j1={partial:!0,tokenize:w3},N1={concrete:!0,name:"codeFenced",tokenize:k3};function k3(e,t,i){const a=this,r={partial:!0,tokenize:X};let o=0,s=0,f;return m;function m(L){return d(L)}function d(L){const W=a.events[a.events.length-1];return o=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(L)}function p(L){return L===f?(s++,e.consume(L),p):s<3?i(L):(e.exit("codeFencedFenceSequence"),Ce(L)?Me(e,v,"whitespace")(L):v(L))}function v(L){return L===null||ye(L)?(e.exit("codeFencedFence"),a.interrupt?t(L):e.check(j1,w,G)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(L))}function b(L){return L===null||ye(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),v(L)):Ce(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Me(e,x,"whitespace")(L)):L===96&&L===f?i(L):(e.consume(L),b)}function x(L){return L===null||ye(L)?v(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(L))}function S(L){return L===null||ye(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(L)):L===96&&L===f?i(L):(e.consume(L),S)}function w(L){return e.attempt(r,G,N)(L)}function N(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),j}function j(L){return o>0&&Ce(L)?Me(e,C,"linePrefix",o+1)(L):C(L)}function C(L){return L===null||ye(L)?e.check(j1,w,G)(L):(e.enter("codeFlowValue"),O(L))}function O(L){return L===null||ye(L)?(e.exit("codeFlowValue"),C(L)):(e.consume(L),O)}function G(L){return e.exit("codeFenced"),t(L)}function X(L,W,ne){let ie=0;return U;function U(P){return L.enter("lineEnding"),L.consume(P),L.exit("lineEnding"),se}function se(P){return L.enter("codeFencedFence"),Ce(P)?Me(L,ce,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ce(P)}function ce(P){return P===f?(L.enter("codeFencedFenceSequence"),Se(P)):ne(P)}function Se(P){return P===f?(ie++,L.consume(P),Se):ie>=s?(L.exit("codeFencedFenceSequence"),Ce(P)?Me(L,Y,"whitespace")(P):Y(P)):ne(P)}function Y(P){return P===null||ye(P)?(L.exit("codeFencedFence"),W(P)):ne(P)}}}function w3(e,t,i){const a=this;return r;function r(s){return s===null?i(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return a.parser.lazy[a.now().line]?i(s):t(s)}}const xh={name:"codeIndented",tokenize:E3},$3={partial:!0,tokenize:j3};function E3(e,t,i){const a=this;return r;function r(d){return e.enter("codeIndented"),Me(e,o,"linePrefix",5)(d)}function o(d){const p=a.events[a.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?s(d):i(d)}function s(d){return d===null?m(d):ye(d)?e.attempt($3,s,m)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||ye(d)?(e.exit("codeFlowValue"),s(d)):(e.consume(d),f)}function m(d){return e.exit("codeIndented"),t(d)}}function j3(e,t,i){const a=this;return r;function r(s){return a.parser.lazy[a.now().line]?i(s):ye(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):Me(e,o,"linePrefix",5)(s)}function o(s){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(s):ye(s)?r(s):i(s)}}const N3={name:"codeText",previous:O3,resolve:z3,tokenize:T3};function z3(e){let t=e.length-4,i=3,a,r;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=i;++a<t;)if(e[a][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[t][1].type="codeTextPadding",i+=2,t-=2;break}}for(a=i-1,t++;++a<=t;)r===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(r=a):(a===t||e[a][1].type==="lineEnding")&&(e[r][1].type="codeTextData",a!==r+2&&(e[r][1].end=e[a-1][1].end,e.splice(r+2,a-r-2),t-=a-r-2,a=r+2),r=void 0);return e}function O3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function T3(e,t,i){let a=0,r,o;return s;function s(v){return e.enter("codeText"),e.enter("codeTextSequence"),f(v)}function f(v){return v===96?(e.consume(v),a++,f):(e.exit("codeTextSequence"),m(v))}function m(v){return v===null?i(v):v===32?(e.enter("space"),e.consume(v),e.exit("space"),m):v===96?(o=e.enter("codeTextSequence"),r=0,p(v)):ye(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),m):(e.enter("codeTextData"),d(v))}function d(v){return v===null||v===32||v===96||ye(v)?(e.exit("codeTextData"),m(v)):(e.consume(v),d)}function p(v){return v===96?(e.consume(v),r++,p):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(v)):(o.type="codeTextData",d(v))}}class A3{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,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,i,a){const r=i||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return a&&no(this.left,a),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),no(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),no(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){const i=this.left.splice(t,Number.POSITIVE_INFINITY);no(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);no(this.left,i.reverse())}}}function no(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function c4(e){const t={};let i=-1,a,r,o,s,f,m,d;const p=new A3(e);for(;++i<p.length;){for(;i in t;)i=t[i];if(a=p.get(i),i&&a[1].type==="chunkFlow"&&p.get(i-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,o=0,o<m.length&&m[o][1].type==="lineEndingBlank"&&(o+=2),o<m.length&&m[o][1].type==="content"))for(;++o<m.length&&m[o][1].type!=="content";)m[o][1].type==="chunkText"&&(m[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,C3(p,i)),i=t[i],d=!0);else if(a[1]._container){for(o=i,r=void 0;o--;)if(s=p.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(a[1].end={...p.get(r)[1].start},f=p.slice(r,i),f.unshift(a),p.splice(r,i-r+1,f))}}return dn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function C3(e,t){const i=e.get(t)[1],a=e.get(t)[2];let r=t-1;const o=[];let s=i._tokenizer;s||(s=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const f=s.events,m=[],d={};let p,v,b=-1,x=i,S=0,w=0;const N=[w];for(;x;){for(;e.get(++r)[1]!==x;);o.push(r),x._tokenizer||(p=a.sliceStream(x),x.next||p.push(null),v&&s.defineSkip(x.start),x._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),x._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),v=x,x=x.next}for(x=i;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(w=b+1,N.push(w),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(s.events=[],x?(x._tokenizer=void 0,x.previous=void 0):N.pop(),b=N.length;b--;){const j=f.slice(N[b],N[b+1]),C=o.pop();m.push([C,C+j.length-1]),e.splice(C,2,j)}for(m.reverse(),b=-1;++b<m.length;)d[S+m[b][0]]=S+m[b][1],S+=m[b][1]-m[b][0]-1;return d}const R3={resolve:I3,tokenize:U3},D3={partial:!0,tokenize:L3};function I3(e){return c4(e),e}function U3(e,t){let i;return a;function a(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),r(f)}function r(f){return f===null?o(f):ye(f)?e.check(D3,s,o)(f):(e.consume(f),r)}function o(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function s(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,r}}function L3(e,t,i){const a=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Me(e,o,"linePrefix")}function o(s){if(s===null||ye(s))return i(s);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(s):e.interrupt(a.parser.constructs.flow,i,t)(s)}}function f4(e,t,i,a,r,o,s,f,m){const d=m||Number.POSITIVE_INFINITY;let p=0;return v;function v(j){return j===60?(e.enter(a),e.enter(r),e.enter(o),e.consume(j),e.exit(o),b):j===null||j===32||j===41||Ps(j)?i(j):(e.enter(a),e.enter(s),e.enter(f),e.enter("chunkString",{contentType:"string"}),w(j))}function b(j){return j===62?(e.enter(o),e.consume(j),e.exit(o),e.exit(r),e.exit(a),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),x(j))}function x(j){return j===62?(e.exit("chunkString"),e.exit(f),b(j)):j===null||j===60||ye(j)?i(j):(e.consume(j),j===92?S:x)}function S(j){return j===60||j===62||j===92?(e.consume(j),x):x(j)}function w(j){return!p&&(j===null||j===41||Ke(j))?(e.exit("chunkString"),e.exit(f),e.exit(s),e.exit(a),t(j)):p<d&&j===40?(e.consume(j),p++,w):j===41?(e.consume(j),p--,w):j===null||j===32||j===40||Ps(j)?i(j):(e.consume(j),j===92?N:w)}function N(j){return j===40||j===41||j===92?(e.consume(j),w):w(j)}}function d4(e,t,i,a,r,o){const s=this;let f=0,m;return d;function d(x){return e.enter(a),e.enter(r),e.consume(x),e.exit(r),e.enter(o),p}function p(x){return f>999||x===null||x===91||x===93&&!m||x===94&&!f&&"_hiddenFootnoteSupport"in s.parser.constructs?i(x):x===93?(e.exit(o),e.enter(r),e.consume(x),e.exit(r),e.exit(a),t):ye(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===null||x===91||x===93||ye(x)||f++>999?(e.exit("chunkString"),p(x)):(e.consume(x),m||(m=!Ce(x)),x===92?b:v)}function b(x){return x===91||x===92||x===93?(e.consume(x),f++,v):v(x)}}function m4(e,t,i,a,r,o){let s;return f;function f(b){return b===34||b===39||b===40?(e.enter(a),e.enter(r),e.consume(b),e.exit(r),s=b===40?41:b,m):i(b)}function m(b){return b===s?(e.enter(r),e.consume(b),e.exit(r),e.exit(a),t):(e.enter(o),d(b))}function d(b){return b===s?(e.exit(o),m(s)):b===null?i(b):ye(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Me(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===s||b===null||ye(b)?(e.exit("chunkString"),d(b)):(e.consume(b),b===92?v:p)}function v(b){return b===s||b===92?(e.consume(b),p):p(b)}}function oo(e,t){let i;return a;function a(r){return ye(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),i=!0,a):Ce(r)?Me(e,a,i?"linePrefix":"lineSuffix")(r):t(r)}}const M3={name:"definition",tokenize:Z3},P3={partial:!0,tokenize:q3};function Z3(e,t,i){const a=this;let r;return o;function o(x){return e.enter("definition"),s(x)}function s(x){return d4.call(a,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return r=Mn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),m):i(x)}function m(x){return Ke(x)?oo(e,d)(x):d(x)}function d(x){return f4(e,p,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function p(x){return e.attempt(P3,v,v)(x)}function v(x){return Ce(x)?Me(e,b,"whitespace")(x):b(x)}function b(x){return x===null||ye(x)?(e.exit("definition"),a.parser.defined.push(r),t(x)):i(x)}}function q3(e,t,i){return a;function a(f){return Ke(f)?oo(e,r)(f):i(f)}function r(f){return m4(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return Ce(f)?Me(e,s,"whitespace")(f):s(f)}function s(f){return f===null||ye(f)?t(f):i(f)}}const B3={name:"hardBreakEscape",tokenize:F3};function F3(e,t,i){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return ye(o)?(e.exit("hardBreakEscape"),t(o)):i(o)}}const H3={name:"headingAtx",resolve:G3,tokenize:V3};function G3(e,t){let i=e.length-2,a=3,r,o;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},o={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},dn(e,a,i-a+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function V3(e,t,i){let a=0;return r;function r(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&a++<6?(e.consume(p),s):p===null||Ke(p)?(e.exit("atxHeadingSequence"),f(p)):i(p)}function f(p){return p===35?(e.enter("atxHeadingSequence"),m(p)):p===null||ye(p)?(e.exit("atxHeading"),t(p)):Ce(p)?Me(e,f,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function m(p){return p===35?(e.consume(p),m):(e.exit("atxHeadingSequence"),f(p))}function d(p){return p===null||p===35||Ke(p)?(e.exit("atxHeadingText"),f(p)):(e.consume(p),d)}}const Y3=["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"],z1=["pre","script","style","textarea"],X3={concrete:!0,name:"htmlFlow",resolveTo:K3,tokenize:W3},Q3={partial:!0,tokenize:tL},J3={partial:!0,tokenize:eL};function K3(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 W3(e,t,i){const a=this;let r,o,s,f,m;return d;function d($){return p($)}function p($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),v}function v($){return $===33?(e.consume($),b):$===47?(e.consume($),o=!0,w):$===63?(e.consume($),r=3,a.interrupt?t:E):qt($)?(e.consume($),s=String.fromCharCode($),N):i($)}function b($){return $===45?(e.consume($),r=2,x):$===91?(e.consume($),r=5,f=0,S):qt($)?(e.consume($),r=4,a.interrupt?t:E):i($)}function x($){return $===45?(e.consume($),a.interrupt?t:E):i($)}function S($){const oe="CDATA[";return $===oe.charCodeAt(f++)?(e.consume($),f===oe.length?a.interrupt?t:ce:S):i($)}function w($){return qt($)?(e.consume($),s=String.fromCharCode($),N):i($)}function N($){if($===null||$===47||$===62||Ke($)){const oe=$===47,me=s.toLowerCase();return!oe&&!o&&z1.includes(me)?(r=1,a.interrupt?t($):ce($)):Y3.includes(s.toLowerCase())?(r=6,oe?(e.consume($),j):a.interrupt?t($):ce($)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?i($):o?C($):O($))}return $===45||Rt($)?(e.consume($),s+=String.fromCharCode($),N):i($)}function j($){return $===62?(e.consume($),a.interrupt?t:ce):i($)}function C($){return Ce($)?(e.consume($),C):U($)}function O($){return $===47?(e.consume($),U):$===58||$===95||qt($)?(e.consume($),G):Ce($)?(e.consume($),O):U($)}function G($){return $===45||$===46||$===58||$===95||Rt($)?(e.consume($),G):X($)}function X($){return $===61?(e.consume($),L):Ce($)?(e.consume($),X):O($)}function L($){return $===null||$===60||$===61||$===62||$===96?i($):$===34||$===39?(e.consume($),m=$,W):Ce($)?(e.consume($),L):ne($)}function W($){return $===m?(e.consume($),m=null,ie):$===null||ye($)?i($):(e.consume($),W)}function ne($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||Ke($)?X($):(e.consume($),ne)}function ie($){return $===47||$===62||Ce($)?O($):i($)}function U($){return $===62?(e.consume($),se):i($)}function se($){return $===null||ye($)?ce($):Ce($)?(e.consume($),se):i($)}function ce($){return $===45&&r===2?(e.consume($),R):$===60&&r===1?(e.consume($),F):$===62&&r===4?(e.consume($),z):$===63&&r===3?(e.consume($),E):$===93&&r===5?(e.consume($),ae):ye($)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Q3,Z,Se)($)):$===null||ye($)?(e.exit("htmlFlowData"),Se($)):(e.consume($),ce)}function Se($){return e.check(J3,Y,Z)($)}function Y($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),P}function P($){return $===null||ye($)?Se($):(e.enter("htmlFlowData"),ce($))}function R($){return $===45?(e.consume($),E):ce($)}function F($){return $===47?(e.consume($),s="",te):ce($)}function te($){if($===62){const oe=s.toLowerCase();return z1.includes(oe)?(e.consume($),z):ce($)}return qt($)&&s.length<8?(e.consume($),s+=String.fromCharCode($),te):ce($)}function ae($){return $===93?(e.consume($),E):ce($)}function E($){return $===62?(e.consume($),z):$===45&&r===2?(e.consume($),E):ce($)}function z($){return $===null||ye($)?(e.exit("htmlFlowData"),Z($)):(e.consume($),z)}function Z($){return e.exit("htmlFlow"),t($)}}function eL(e,t,i){const a=this;return r;function r(s){return ye(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):i(s)}function o(s){return a.parser.lazy[a.now().line]?i(s):t(s)}}function tL(e,t,i){return a;function a(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Vo,t,i)}}const nL={name:"htmlText",tokenize:rL};function rL(e,t,i){const a=this;let r,o,s;return f;function f(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),m}function m(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),X):E===63?(e.consume(E),O):qt(E)?(e.consume(E),ne):i(E)}function d(E){return E===45?(e.consume(E),p):E===91?(e.consume(E),o=0,S):qt(E)?(e.consume(E),C):i(E)}function p(E){return E===45?(e.consume(E),x):i(E)}function v(E){return E===null?i(E):E===45?(e.consume(E),b):ye(E)?(s=v,F(E)):(e.consume(E),v)}function b(E){return E===45?(e.consume(E),x):v(E)}function x(E){return E===62?R(E):E===45?b(E):v(E)}function S(E){const z="CDATA[";return E===z.charCodeAt(o++)?(e.consume(E),o===z.length?w:S):i(E)}function w(E){return E===null?i(E):E===93?(e.consume(E),N):ye(E)?(s=w,F(E)):(e.consume(E),w)}function N(E){return E===93?(e.consume(E),j):w(E)}function j(E){return E===62?R(E):E===93?(e.consume(E),j):w(E)}function C(E){return E===null||E===62?R(E):ye(E)?(s=C,F(E)):(e.consume(E),C)}function O(E){return E===null?i(E):E===63?(e.consume(E),G):ye(E)?(s=O,F(E)):(e.consume(E),O)}function G(E){return E===62?R(E):O(E)}function X(E){return qt(E)?(e.consume(E),L):i(E)}function L(E){return E===45||Rt(E)?(e.consume(E),L):W(E)}function W(E){return ye(E)?(s=W,F(E)):Ce(E)?(e.consume(E),W):R(E)}function ne(E){return E===45||Rt(E)?(e.consume(E),ne):E===47||E===62||Ke(E)?ie(E):i(E)}function ie(E){return E===47?(e.consume(E),R):E===58||E===95||qt(E)?(e.consume(E),U):ye(E)?(s=ie,F(E)):Ce(E)?(e.consume(E),ie):R(E)}function U(E){return E===45||E===46||E===58||E===95||Rt(E)?(e.consume(E),U):se(E)}function se(E){return E===61?(e.consume(E),ce):ye(E)?(s=se,F(E)):Ce(E)?(e.consume(E),se):ie(E)}function ce(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(e.consume(E),r=E,Se):ye(E)?(s=ce,F(E)):Ce(E)?(e.consume(E),ce):(e.consume(E),Y)}function Se(E){return E===r?(e.consume(E),r=void 0,P):E===null?i(E):ye(E)?(s=Se,F(E)):(e.consume(E),Se)}function Y(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Ke(E)?ie(E):(e.consume(E),Y)}function P(E){return E===47||E===62||Ke(E)?ie(E):i(E)}function R(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):i(E)}function F(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),te}function te(E){return Ce(E)?Me(e,ae,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ae(E)}function ae(E){return e.enter("htmlTextData"),s(E)}}const _v={name:"labelEnd",resolveAll:oL,resolveTo:uL,tokenize:sL},iL={tokenize:cL},aL={tokenize:fL},lL={tokenize:dL};function oL(e){let t=-1;const i=[];for(;++t<e.length;){const a=e[t][1];if(i.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const r=a.type==="labelImage"?4:2;a.type="data",t+=r}}return e.length!==i.length&&dn(e,0,e.length,i),e}function uL(e,t){let i=e.length,a=0,r,o,s,f;for(;i--;)if(r=e[i][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[i][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[i][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=i,r.type!=="labelLink")){a=2;break}}else r.type==="labelEnd"&&(s=i);const m={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},p={type:"labelText",start:{...e[o+a+2][1].end},end:{...e[s-2][1].start}};return f=[["enter",m,t],["enter",d,t]],f=jn(f,e.slice(o+1,o+a+3)),f=jn(f,[["enter",p,t]]),f=jn(f,Xc(t.parser.constructs.insideSpan.null,e.slice(o+a+4,s-3),t)),f=jn(f,[["exit",p,t],e[s-2],e[s-1],["exit",d,t]]),f=jn(f,e.slice(s+1)),f=jn(f,[["exit",m,t]]),dn(e,o,e.length,f),e}function sL(e,t,i){const a=this;let r=a.events.length,o,s;for(;r--;)if((a.events[r][1].type==="labelImage"||a.events[r][1].type==="labelLink")&&!a.events[r][1]._balanced){o=a.events[r][1];break}return f;function f(b){return o?o._inactive?v(b):(s=a.parser.defined.includes(Mn(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),m):i(b)}function m(b){return b===40?e.attempt(iL,p,s?p:v)(b):b===91?e.attempt(aL,p,s?d:v)(b):s?p(b):v(b)}function d(b){return e.attempt(lL,p,v)(b)}function p(b){return t(b)}function v(b){return o._balanced=!0,i(b)}}function cL(e,t,i){return a;function a(v){return e.enter("resource"),e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),r}function r(v){return Ke(v)?oo(e,o)(v):o(v)}function o(v){return v===41?p(v):f4(e,s,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(v)}function s(v){return Ke(v)?oo(e,m)(v):p(v)}function f(v){return i(v)}function m(v){return v===34||v===39||v===40?m4(e,d,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(v):p(v)}function d(v){return Ke(v)?oo(e,p)(v):p(v)}function p(v){return v===41?(e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),e.exit("resource"),t):i(v)}}function fL(e,t,i){const a=this;return r;function r(f){return d4.call(a,e,o,s,"reference","referenceMarker","referenceString")(f)}function o(f){return a.parser.defined.includes(Mn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(f):i(f)}function s(f){return i(f)}}function dL(e,t,i){return a;function a(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):i(o)}}const mL={name:"labelStartImage",resolveAll:_v.resolveAll,tokenize:hL};function hL(e,t,i){const a=this;return r;function r(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o}function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),s):i(f)}function s(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(f):t(f)}}const pL={name:"labelStartLink",resolveAll:_v.resolveAll,tokenize:gL};function gL(e,t,i){const a=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(s):t(s)}}const _h={name:"lineEnding",tokenize:vL};function vL(e,t){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Me(e,t,"linePrefix")}}const js={name:"thematicBreak",tokenize:yL};function yL(e,t,i){let a=0,r;return o;function o(d){return e.enter("thematicBreak"),s(d)}function s(d){return r=d,f(d)}function f(d){return d===r?(e.enter("thematicBreakSequence"),m(d)):a>=3&&(d===null||ye(d))?(e.exit("thematicBreak"),t(d)):i(d)}function m(d){return d===r?(e.consume(d),a++,m):(e.exit("thematicBreakSequence"),Ce(d)?Me(e,f,"whitespace")(d):f(d))}}const Kt={continuation:{tokenize:SL},exit:wL,name:"list",tokenize:_L},bL={partial:!0,tokenize:$L},xL={partial:!0,tokenize:kL};function _L(e,t,i){const a=this,r=a.events[a.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return f;function f(x){const S=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:np(x)){if(a.containerState.type||(a.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(js,i,d)(x):d(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(x)}return i(x)}function m(x){return np(x)&&++s<10?(e.consume(x),m):(!a.interrupt||s<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),d(x)):i(x)}function d(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(Vo,a.interrupt?i:p,e.attempt(bL,b,v))}function p(x){return a.containerState.initialBlankLine=!0,o++,b(x)}function v(x){return Ce(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),b):i(x)}function b(x){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function SL(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(Vo,r,o);function r(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Me(e,t,"listItemIndent",a.containerState.size+1)(f)}function o(f){return a.containerState.furtherBlankLines||!Ce(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,s(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(xL,t,s)(f))}function s(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,Me(e,e.attempt(Kt,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function kL(e,t,i){const a=this;return Me(e,r,"listItemIndent",a.containerState.size+1);function r(o){const s=a.events[a.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===a.containerState.size?t(o):i(o)}}function wL(e){e.exit(this.containerState.type)}function $L(e,t,i){const a=this;return Me(e,r,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const s=a.events[a.events.length-1];return!Ce(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):i(o)}}const O1={name:"setextUnderline",resolveTo:EL,tokenize:jL};function EL(e,t){let i=e.length,a,r,o;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(r=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const s={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end={...e[o][1].end}):e[a][1]=s,e.push(["exit",s,t]),e}function jL(e,t,i){const a=this;let r;return o;function o(d){let p=a.events.length,v;for(;p--;)if(a.events[p][1].type!=="lineEnding"&&a.events[p][1].type!=="linePrefix"&&a.events[p][1].type!=="content"){v=a.events[p][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||v)?(e.enter("setextHeadingLine"),r=d,s(d)):i(d)}function s(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===r?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Ce(d)?Me(e,m,"lineSuffix")(d):m(d))}function m(d){return d===null||ye(d)?(e.exit("setextHeadingLine"),t(d)):i(d)}}const NL={tokenize:zL};function zL(e){const t=this,i=e.attempt(Vo,a,e.attempt(this.parser.constructs.flowInitial,r,Me(e,e.attempt(this.parser.constructs.flow,r,e.attempt(R3,r)),"linePrefix")));return i;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const OL={resolveAll:p4()},TL=h4("string"),AL=h4("text");function h4(e){return{resolveAll:p4(e==="text"?CL:void 0),tokenize:t};function t(i){const a=this,r=this.parser.constructs[e],o=i.attempt(r,s,f);return s;function s(p){return d(p)?o(p):f(p)}function f(p){if(p===null){i.consume(p);return}return i.enter("data"),i.consume(p),m}function m(p){return d(p)?(i.exit("data"),o(p)):(i.consume(p),m)}function d(p){if(p===null)return!0;const v=r[p];let b=-1;if(v)for(;++b<v.length;){const x=v[b];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function p4(e){return t;function t(i,a){let r=-1,o;for(;++r<=i.length;)o===void 0?i[r]&&i[r][1].type==="data"&&(o=r,r++):(!i[r]||i[r][1].type!=="data")&&(r!==o+2&&(i[o][1].end=i[r-1][1].end,i.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(i,a):i}}function CL(e,t){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],r=t.sliceStream(a);let o=r.length,s=-1,f=0,m;for(;o--;){const d=r[o];if(typeof d=="string"){for(s=d.length;d.charCodeAt(s-1)===32;)f++,s--;if(s)break;s=-1}else if(d===-2)m=!0,f++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&i===e.length&&(f=0),f){const d={type:i===e.length||m||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:a.start._bufferIndex+s,_index:a.start._index+o,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...d.start},a.start.offset===a.end.offset?Object.assign(a,d):(e.splice(i,0,["enter",d,t],["exit",d,t]),i+=2)}i++}return e}const RL={42:Kt,43:Kt,45:Kt,48:Kt,49:Kt,50:Kt,51:Kt,52:Kt,53:Kt,54:Kt,55:Kt,56:Kt,57:Kt,62:o4},DL={91:M3},IL={[-2]:xh,[-1]:xh,32:xh},UL={35:H3,42:js,45:[O1,js],60:X3,61:O1,95:js,96:N1,126:N1},LL={38:s4,92:u4},ML={[-5]:_h,[-4]:_h,[-3]:_h,33:mL,38:s4,42:rp,60:[p3,nL],91:pL,92:[B3,u4],93:_v,95:rp,96:N3},PL={null:[rp,OL]},ZL={null:[42,95]},qL={null:[]},BL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ZL,contentInitial:DL,disable:qL,document:RL,flow:UL,flowInitial:IL,insideSpan:PL,string:LL,text:ML},Symbol.toStringTag,{value:"Module"}));function FL(e,t,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const r={},o=[];let s=[],f=[];const m={attempt:W(X),check:W(L),consume:C,enter:O,exit:G,interrupt:W(L,{interrupt:!0})},d={code:null,containerState:{},defineSkip:w,events:[],now:S,parser:e,previous:null,sliceSerialize:b,sliceStream:x,write:v};let p=t.tokenize.call(d,m);return t.resolveAll&&o.push(t),d;function v(se){return s=jn(s,se),N(),s[s.length-1]!==null?[]:(ne(t,0),d.events=Xc(o,d.events,d),d.events)}function b(se,ce){return GL(x(se),ce)}function x(se){return HL(s,se)}function S(){const{_bufferIndex:se,_index:ce,line:Se,column:Y,offset:P}=a;return{_bufferIndex:se,_index:ce,line:Se,column:Y,offset:P}}function w(se){r[se.line]=se.column,U()}function N(){let se;for(;a._index<s.length;){const ce=s[a._index];if(typeof ce=="string")for(se=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===se&&a._bufferIndex<ce.length;)j(ce.charCodeAt(a._bufferIndex));else j(ce)}}function j(se){p=p(se)}function C(se){ye(se)?(a.line++,a.column=1,a.offset+=se===-3?2:1,U()):se!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===s[a._index].length&&(a._bufferIndex=-1,a._index++)),d.previous=se}function O(se,ce){const Se=ce||{};return Se.type=se,Se.start=S(),d.events.push(["enter",Se,d]),f.push(Se),Se}function G(se){const ce=f.pop();return ce.end=S(),d.events.push(["exit",ce,d]),ce}function X(se,ce){ne(se,ce.from)}function L(se,ce){ce.restore()}function W(se,ce){return Se;function Se(Y,P,R){let F,te,ae,E;return Array.isArray(Y)?Z(Y):"tokenize"in Y?Z([Y]):z(Y);function z(pe){return De;function De(at){const Ge=at!==null&&pe[at],pn=at!==null&&pe.null,Wn=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(pn)?pn:pn?[pn]:[]];return Z(Wn)(at)}}function Z(pe){return F=pe,te=0,pe.length===0?R:$(pe[te])}function $(pe){return De;function De(at){return E=ie(),ae=pe,pe.partial||(d.currentConstruct=pe),pe.name&&d.parser.constructs.disable.null.includes(pe.name)?me():pe.tokenize.call(ce?Object.assign(Object.create(d),ce):d,m,oe,me)(at)}}function oe(pe){return se(ae,E),P}function me(pe){return E.restore(),++te<F.length?$(F[te]):R}}}function ne(se,ce){se.resolveAll&&!o.includes(se)&&o.push(se),se.resolve&&dn(d.events,ce,d.events.length-ce,se.resolve(d.events.slice(ce),d)),se.resolveTo&&(d.events=se.resolveTo(d.events,d))}function ie(){const se=S(),ce=d.previous,Se=d.currentConstruct,Y=d.events.length,P=Array.from(f);return{from:Y,restore:R};function R(){a=se,d.previous=ce,d.currentConstruct=Se,d.events.length=Y,f=P,U()}}function U(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function HL(e,t){const i=t.start._index,a=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let s;if(i===r)s=[e[i].slice(a,o)];else{if(s=e.slice(i,r),a>-1){const f=s[0];typeof f=="string"?s[0]=f.slice(a):s.shift()}o>0&&s.push(e[r].slice(0,o))}return s}function GL(e,t){let i=-1;const a=[];let r;for(;++i<e.length;){const o=e[i];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
44
+ `;break}case-3:{s=`\r
45
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,a.push(s)}return a.join("")}function VL(e){const a={constructs:a4([BL,...(e||{}).extensions||[]]),content:r(u3),defined:[],document:r(c3),flow:r(NL),lazy:{},string:r(TL),text:r(AL)};return a;function r(o){return s;function s(f){return FL(a,o,f)}}}function YL(e){for(;!c4(e););return e}const T1=/[\0\t\n\r]/g;function XL(){let e=1,t="",i=!0,a;return r;function r(o,s,f){const m=[];let d,p,v,b,x;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),v=0,t="",i&&(o.charCodeAt(0)===65279&&v++,i=void 0);v<o.length;){if(T1.lastIndex=v,d=T1.exec(o),b=d&&d.index!==void 0?d.index:o.length,x=o.charCodeAt(b),!d){t=o.slice(v);break}if(x===10&&v===b&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),v<b&&(m.push(o.slice(v,b)),e+=b-v),x){case 0:{m.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,m.push(-2);e++<p;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:a=!0,e=1}v=b+1}return f&&(a&&m.push(-5),t&&m.push(t),m.push(null)),m}}const QL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JL(e){return e.replace(QL,KL)}function KL(e,t,i){if(t)return t;if(i.charCodeAt(0)===35){const r=i.charCodeAt(1),o=r===120||r===88;return l4(i.slice(o?2:1),o?16:10)}return xv(i)||e}const g4={}.hasOwnProperty;function WL(e,t,i){return typeof t!="string"&&(i=t,t=void 0),eM(i)(YL(VL(i).document().write(XL()(e,t,!0))))}function eM(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Gi),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:o(Fi),blockQuote:o(pn),characterEscape:ie,characterReference:ie,codeFenced:o(Wn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Wn,s),codeText:o(rl,s),codeTextData:ie,data:ie,codeFlowValue:ie,definition:o(Xo),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(er),hardBreakEscape:o(Hi),hardBreakTrailing:o(Hi),htmlFlow:o(Qo,s),htmlFlowData:ie,htmlText:o(Qo,s),htmlTextData:ie,image:o(Jo),label:s,link:o(Gi),listItem:o(il),listItemValue:b,listOrdered:o(Vi,v),listUnordered:o(Vi),paragraph:o(Wc),reference:$,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Fi),strong:o(ef),thematicBreak:o(tf)},exit:{atxHeading:m(),atxHeadingSequence:X,autolink:m(),autolinkEmail:Ge,autolinkProtocol:at,blockQuote:m(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:pe,characterReference:De,codeFenced:m(N),codeFencedFence:w,codeFencedFenceInfo:x,codeFencedFenceMeta:S,codeFlowValue:U,codeIndented:m(j),codeText:m(P),codeTextData:U,data:U,definition:m(),definitionDestinationString:G,definitionLabelString:C,definitionTitleString:O,emphasis:m(),hardBreakEscape:m(ce),hardBreakTrailing:m(ce),htmlFlow:m(Se),htmlFlowData:U,htmlText:m(Y),htmlTextData:U,image:m(F),label:ae,labelText:te,lineEnding:se,link:m(R),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:oe,resourceDestinationString:E,resourceTitleString:z,resource:Z,setextHeading:m(ne),setextHeadingLineSequence:W,setextHeadingText:L,strong:m(),thematicBreak:m()}};v4(t,(e||{}).mdastExtensions||[]);const i={};return a;function a(J){let fe={type:"root",children:[]};const xe={stack:[fe],tokenStack:[],config:t,enter:f,exit:d,buffer:s,resume:p,data:i},Oe=[];let Be=-1;for(;++Be<J.length;)if(J[Be][1].type==="listOrdered"||J[Be][1].type==="listUnordered")if(J[Be][0]==="enter")Oe.push(Be);else{const tn=Oe.pop();Be=r(J,tn,Be)}for(Be=-1;++Be<J.length;){const tn=t[J[Be][0]];g4.call(tn,J[Be][1].type)&&tn[J[Be][1].type].call(Object.assign({sliceSerialize:J[Be][2].sliceSerialize},xe),J[Be][1])}if(xe.tokenStack.length>0){const tn=xe.tokenStack[xe.tokenStack.length-1];(tn[1]||A1).call(xe,void 0,tn[0])}for(fe.position={start:ri(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:ri(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<t.transforms.length;)fe=t.transforms[Be](fe)||fe;return fe}function r(J,fe,xe){let Oe=fe-1,Be=-1,tn=!1,tr,Lt,xt,Ft;for(;++Oe<=xe;){const Qe=J[Oe];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Be++:Be--,Ft=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(tr&&!Ft&&!Be&&!xt&&(xt=Oe),Ft=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ft=void 0}if(!Be&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Be===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(tr){let Ar=Oe;for(Lt=void 0;Ar--;){const Cn=J[Ar];if(Cn[1].type==="lineEnding"||Cn[1].type==="lineEndingBlank"){if(Cn[0]==="exit")continue;Lt&&(J[Lt][1].type="lineEndingBlank",tn=!0),Cn[1].type="lineEnding",Lt=Ar}else if(!(Cn[1].type==="linePrefix"||Cn[1].type==="blockQuotePrefix"||Cn[1].type==="blockQuotePrefixWhitespace"||Cn[1].type==="blockQuoteMarker"||Cn[1].type==="listItemIndent"))break}xt&&(!Lt||xt<Lt)&&(tr._spread=!0),tr.end=Object.assign({},Lt?J[Lt][1].start:Qe[1].end),J.splice(Lt||Oe,0,["exit",tr,Qe[2]]),Oe++,xe++}if(Qe[1].type==="listItemPrefix"){const Ar={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};tr=Ar,J.splice(Oe,0,["enter",Ar,Qe[2]]),Oe++,xe++,xt=void 0,Ft=!0}}}return J[fe][1]._spread=tn,xe}function o(J,fe){return xe;function xe(Oe){f.call(this,J(Oe),Oe),fe&&fe.call(this,Oe)}}function s(){this.stack.push({type:"fragment",children:[]})}function f(J,fe,xe){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([fe,xe||void 0]),J.position={start:ri(fe.start),end:void 0}}function m(J){return fe;function fe(xe){J&&J.call(this,xe),d.call(this,xe)}}function d(J,fe){const xe=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==J.type&&(fe?fe.call(this,J,Oe[0]):(Oe[1]||A1).call(this,J,Oe[0]));else throw new Error("Cannot close `"+J.type+"` ("+lo({start:J.start,end:J.end})+"): it’s not open");xe.position.end=ri(J.end)}function p(){return bv(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function b(J){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function x(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=J}function S(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=J}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J.replace(/(\r?\n|\r)$/g,"")}function C(J){const fe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=fe,xe.identifier=Mn(this.sliceSerialize(J)).toLowerCase()}function O(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.title=J}function G(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.url=J}function X(J){const fe=this.stack[this.stack.length-1];if(!fe.depth){const xe=this.sliceSerialize(J).length;fe.depth=xe}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function W(J){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(J){const xe=this.stack[this.stack.length-1].children;let Oe=xe[xe.length-1];(!Oe||Oe.type!=="text")&&(Oe=Ut(),Oe.position={start:ri(J.start),end:void 0},xe.push(Oe)),this.stack.push(Oe)}function U(J){const fe=this.stack.pop();fe.value+=this.sliceSerialize(J),fe.position.end=ri(J.end)}function se(J){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=fe.children[fe.children.length-1];xe.position.end=ri(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(fe.type)&&(ie.call(this,J),U.call(this,J))}function ce(){this.data.atHardBreak=!0}function Se(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J}function Y(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J}function P(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J}function R(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=fe,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function F(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=fe,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function te(J){const fe=this.sliceSerialize(J),xe=this.stack[this.stack.length-2];xe.label=JL(fe),xe.identifier=Mn(fe).toLowerCase()}function ae(){const J=this.stack[this.stack.length-1],fe=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Oe=J.children;xe.children=Oe}else xe.alt=fe}function E(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.url=J}function z(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.title=J}function Z(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function oe(J){const fe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=fe,xe.identifier=Mn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function me(J){this.data.characterReferenceType=J.type}function pe(J){const fe=this.sliceSerialize(J),xe=this.data.characterReferenceType;let Oe;xe?(Oe=l4(fe,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Oe=xv(fe);const Be=this.stack[this.stack.length-1];Be.value+=Oe}function De(J){const fe=this.stack.pop();fe.position.end=ri(J.end)}function at(J){U.call(this,J);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(J)}function Ge(J){U.call(this,J);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(J)}function pn(){return{type:"blockquote",children:[]}}function Wn(){return{type:"code",lang:null,meta:null,value:""}}function rl(){return{type:"inlineCode",value:""}}function Xo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function er(){return{type:"emphasis",children:[]}}function Fi(){return{type:"heading",depth:0,children:[]}}function Hi(){return{type:"break"}}function Qo(){return{type:"html",value:""}}function Jo(){return{type:"image",title:null,url:"",alt:null}}function Gi(){return{type:"link",title:null,url:"",children:[]}}function Vi(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function il(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Wc(){return{type:"paragraph",children:[]}}function ef(){return{type:"strong",children:[]}}function Ut(){return{type:"text",value:""}}function tf(){return{type:"thematicBreak"}}}function ri(e){return{line:e.line,column:e.column,offset:e.offset}}function v4(e,t){let i=-1;for(;++i<t.length;){const a=t[i];Array.isArray(a)?v4(e,a):tM(e,a)}}function tM(e,t){let i;for(i in t)if(g4.call(t,i))switch(i){case"canContainEols":{const a=t[i];a&&e[i].push(...a);break}case"transforms":{const a=t[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=t[i];a&&Object.assign(e[i],a);break}}}function A1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lo({start:t.start,end:t.end})+") is still open")}function nM(e){const t=this;t.parser=i;function i(a){return WL(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function rM(e,t){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,i),e.applyData(t,i)}function iM(e,t){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,i),[e.applyData(t,i),{type:"text",value:`
46
+ `}]}function aM(e,t){const i=t.value?t.value+`
47
+ `:"",a={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(a.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};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 lM(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function oM(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function uM(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),r=nl(a.toLowerCase()),o=e.footnoteOrder.indexOf(a);let s,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),s=e.footnoteOrder.length):s=o+1,f+=1,e.footnoteCounts.set(a,f);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+r,id:i+"fnref-"+r+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,m);const d={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(t,d),e.applyData(t,d)}function sM(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function cM(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function y4(e,t){const i=t.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=a:r.push({type:"text",value:a}),r}function fM(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return y4(e,t);const r={src:nl(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function dM(e,t){const i={src:nl(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function mM(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)}function hM(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return y4(e,t);const r={href:nl(a.url||"")};a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function pM(e,t){const i={href:nl(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gM(e,t,i){const a=e.all(t),r=i?vM(i):b4(t),o={},s=[];if(typeof t.checked=="boolean"){const p=a[0];let v;p&&p.type==="element"&&p.tagName==="p"?v=p:(v={type:"element",tagName:"p",properties:{},children:[]},a.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const p=a[f];(r||f!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
48
+ `}),p.type==="element"&&p.tagName==="p"&&!r?s.push(...p.children):s.push(p)}const m=a[a.length-1];m&&(r||m.type!=="element"||m.tagName!=="p")&&s.push({type:"text",value:`
49
+ `});const d={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,d),e.applyData(t,d)}function vM(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const i=e.children;let a=-1;for(;!t&&++a<i.length;)t=b4(i[a])}return t}function b4(e){const t=e.spread;return t??e.children.length>1}function yM(e,t){const i={},a=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++r<a.length;){const s=a[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:i,children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function bM(e,t){const i={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function xM(e,t){const i={type:"root",children:e.wrap(e.all(t))};return e.patch(t,i),e.applyData(t,i)}function _M(e,t){const i={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function SM(e,t){const i=e.all(t),a=i.shift(),r=[];if(a){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],s),r.push(s)}if(i.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=pv(t.children[1]),m=KN(t.children[t.children.length-1]);f&&m&&(s.position={start:f,end:m}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function kM(e,t,i){const a=i?i.children:void 0,o=(a?a.indexOf(t):1)===0?"th":"td",s=i&&i.type==="table"?i.align:void 0,f=s?s.length:t.children.length;let m=-1;const d=[];for(;++m<f;){const v=t.children[m],b={},x=s?s[m]:void 0;x&&(b.align=x);let S={type:"element",tagName:o,properties:b,children:[]};v&&(S.children=e.all(v),e.patch(v,S),S=e.applyData(v,S)),d.push(S)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,p),e.applyData(t,p)}function wM(e,t){const i={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}const C1=9,R1=32;function $M(e){const t=String(e),i=/\r?\n|\r/g;let a=i.exec(t),r=0;const o=[];for(;a;)o.push(D1(t.slice(r,a.index),r>0,!0),a[0]),r=a.index+a[0].length,a=i.exec(t);return o.push(D1(t.slice(r),r>0,!1)),o.join("")}function D1(e,t,i){let a=0,r=e.length;if(t){let o=e.codePointAt(a);for(;o===C1||o===R1;)a++,o=e.codePointAt(a)}if(i){let o=e.codePointAt(r-1);for(;o===C1||o===R1;)r--,o=e.codePointAt(r-1)}return r>a?e.slice(a,r):""}function EM(e,t){const i={type:"text",value:$M(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function jM(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const NM={blockquote:rM,break:iM,code:aM,delete:lM,emphasis:oM,footnoteReference:uM,heading:sM,html:cM,imageReference:fM,image:dM,inlineCode:mM,linkReference:hM,link:pM,listItem:gM,list:yM,paragraph:bM,root:xM,strong:_M,table:SM,tableCell:wM,tableRow:kM,text:EM,thematicBreak:jM,toml:_s,yaml:_s,definition:_s,footnoteDefinition:_s};function _s(){}const x4=-1,Qc=0,uo=1,Zs=2,Sv=3,kv=4,wv=5,$v=6,_4=7,S4=8,I1=typeof self=="object"?self:globalThis,zM=(e,t)=>{const i=(r,o)=>(e.set(o,r),r),a=r=>{if(e.has(r))return e.get(r);const[o,s]=t[r];switch(o){case Qc:case x4:return i(s,r);case uo:{const f=i([],r);for(const m of s)f.push(a(m));return f}case Zs:{const f=i({},r);for(const[m,d]of s)f[a(m)]=a(d);return f}case Sv:return i(new Date(s),r);case kv:{const{source:f,flags:m}=s;return i(new RegExp(f,m),r)}case wv:{const f=i(new Map,r);for(const[m,d]of s)f.set(a(m),a(d));return f}case $v:{const f=i(new Set,r);for(const m of s)f.add(a(m));return f}case _4:{const{name:f,message:m}=s;return i(new I1[f](m),r)}case S4:return i(BigInt(s),r);case"BigInt":return i(Object(BigInt(s)),r);case"ArrayBuffer":return i(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:f}=new Uint8Array(s);return i(new DataView(f),s)}}return i(new I1[o](s),r)};return a},U1=e=>zM(new Map,e)(0),Ra="",{toString:OM}={},{keys:TM}=Object,ro=e=>{const t=typeof e;if(t!=="object"||!e)return[Qc,t];const i=OM.call(e).slice(8,-1);switch(i){case"Array":return[uo,Ra];case"Object":return[Zs,Ra];case"Date":return[Sv,Ra];case"RegExp":return[kv,Ra];case"Map":return[wv,Ra];case"Set":return[$v,Ra];case"DataView":return[uo,i]}return i.includes("Array")?[uo,i]:i.includes("Error")?[_4,i]:[Zs,i]},Ss=([e,t])=>e===Qc&&(t==="function"||t==="symbol"),AM=(e,t,i,a)=>{const r=(s,f)=>{const m=a.push(s)-1;return i.set(f,m),m},o=s=>{if(i.has(s))return i.get(s);let[f,m]=ro(s);switch(f){case Qc:{let p=s;switch(m){case"bigint":f=S4,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);p=null;break;case"undefined":return r([x4],s)}return r([f,p],s)}case uo:{if(m){let b=s;return m==="DataView"?b=new Uint8Array(s.buffer):m==="ArrayBuffer"&&(b=new Uint8Array(s)),r([m,[...b]],s)}const p=[],v=r([f,p],s);for(const b of s)p.push(o(b));return v}case Zs:{if(m)switch(m){case"BigInt":return r([m,s.toString()],s);case"Boolean":case"Number":case"String":return r([m,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const p=[],v=r([f,p],s);for(const b of TM(s))(e||!Ss(ro(s[b])))&&p.push([o(b),o(s[b])]);return v}case Sv:return r([f,s.toISOString()],s);case kv:{const{source:p,flags:v}=s;return r([f,{source:p,flags:v}],s)}case wv:{const p=[],v=r([f,p],s);for(const[b,x]of s)(e||!(Ss(ro(b))||Ss(ro(x))))&&p.push([o(b),o(x)]);return v}case $v:{const p=[],v=r([f,p],s);for(const b of s)(e||!Ss(ro(b)))&&p.push(o(b));return v}}const{message:d}=s;return r([f,{name:m,message:d}],s)};return o},L1=(e,{json:t,lossy:i}={})=>{const a=[];return AM(!(t||i),!!t,new Map,a)(e),a},qs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?U1(L1(e,t)):structuredClone(e):(e,t)=>U1(L1(e,t));function CM(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function RM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function DM(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||CM,a=e.options.footnoteBackLabel||RM,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let m=-1;for(;++m<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[m]);if(!d)continue;const p=e.all(d),v=String(d.identifier).toUpperCase(),b=nl(v.toLowerCase());let x=0;const S=[],w=e.footnoteCounts.get(v);for(;w!==void 0&&++x<=w;){S.length>0&&S.push({type:"text",value:" "});let C=typeof i=="string"?i:i(m,x);typeof C=="string"&&(C={type:"text",value:C}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,x),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const N=p[p.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const C=N.children[N.children.length-1];C&&C.type==="text"?C.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...S)}else p.push(...S);const j={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(p,!0)};e.patch(d,j),f.push(j)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...qs(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
50
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
51
+ `}]}}const Jc=(function(e){if(e==null)return MM;if(typeof e=="function")return Kc(e);if(typeof e=="object")return Array.isArray(e)?IM(e):UM(e);if(typeof e=="string")return LM(e);throw new Error("Expected function, string, or object as test")});function IM(e){const t=[];let i=-1;for(;++i<e.length;)t[i]=Jc(e[i]);return Kc(a);function a(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function UM(e){const t=e;return Kc(i);function i(a){const r=a;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function LM(e){return Kc(t);function t(i){return i&&i.type===e}}function Kc(e){return t;function t(i,a,r){return!!(PM(i)&&e.call(this,i,typeof a=="number"?a:void 0,r||void 0))}}function MM(){return!0}function PM(e){return e!==null&&typeof e=="object"&&"type"in e}const k4=[],ZM=!0,ip=!1,qM="skip";function w4(e,t,i,a){let r;typeof t=="function"&&typeof i!="function"?(a=i,i=t):r=t;const o=Jc(r),s=a?-1:1;f(e,void 0,[])();function f(m,d,p){const v=m&&typeof m=="object"?m:{};if(typeof v.type=="string"){const x=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(m.type+(x?"<"+x+">":""))+")"})}return b;function b(){let x=k4,S,w,N;if((!t||o(m,d,p[p.length-1]||void 0))&&(x=BM(i(m,p)),x[0]===ip))return x;if("children"in m&&m.children){const j=m;if(j.children&&x[0]!==qM)for(w=(a?j.children.length:-1)+s,N=p.concat(j);w>-1&&w<j.children.length;){const C=j.children[w];if(S=f(C,w,N)(),S[0]===ip)return S;w=typeof S[1]=="number"?S[1]:w+s}}return x}}}function BM(e){return Array.isArray(e)?e:typeof e=="number"?[ZM,e]:e==null?k4:[e]}function Ev(e,t,i,a){let r,o,s;typeof t=="function"&&typeof i!="function"?(o=void 0,s=t,r=i):(o=t,s=i,r=a),w4(e,o,f,r);function f(m,d){const p=d[d.length-1],v=p?p.children.indexOf(m):void 0;return s(m,v,p)}}const ap={}.hasOwnProperty,FM={};function HM(e,t){const i=t||FM,a=new Map,r=new Map,o=new Map,s={...NM,...i.handlers},f={all:d,applyData:VM,definitionById:a,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:m,options:i,patch:GM,wrap:XM};return Ev(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const v=p.type==="definition"?a:r,b=String(p.identifier).toUpperCase();v.has(b)||v.set(b,p)}}),f;function m(p,v){const b=p.type,x=f.handlers[b];if(ap.call(f.handlers,b)&&x)return x(f,p,v);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in p){const{children:w,...N}=p,j=qs(N);return j.children=f.all(p),j}return qs(p)}return(f.options.unknownHandler||YM)(f,p,v)}function d(p){const v=[];if("children"in p){const b=p.children;let x=-1;for(;++x<b.length;){const S=f.one(b[x],p);if(S){if(x&&b[x-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=M1(S.value)),!Array.isArray(S)&&S.type==="element")){const w=S.children[0];w&&w.type==="text"&&(w.value=M1(w.value))}Array.isArray(S)?v.push(...S):v.push(S)}}}return v}}function GM(e,t){e.position&&(t.position=RU(e))}function VM(e,t){let i=t;if(e&&e.data){const a=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const s="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:s}}i.type==="element"&&o&&Object.assign(i.properties,qs(o)),"children"in i&&i.children&&r!==null&&r!==void 0&&(i.children=r)}return i}function YM(e,t){const i=t.data||{},a="value"in t&&!(ap.call(i,"hProperties")||ap.call(i,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function XM(e,t){const i=[];let a=-1;for(t&&i.push({type:"text",value:`
52
+ `});++a<e.length;)a&&i.push({type:"text",value:`
53
+ `}),i.push(e[a]);return t&&e.length>0&&i.push({type:"text",value:`
54
+ `}),i}function M1(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function P1(e,t){const i=HM(e,t),a=i.one(e,void 0),r=DM(i),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
55
+ `},r),o}function QM(e,t){return e&&"run"in e?async function(i,a){const r=P1(i,{file:a,...t});await e.run(r,a)}:function(i,a){return P1(i,{file:a,...e||t})}}function Z1(e){if(e)throw e}var Sh,q1;function JM(){if(q1)return Sh;q1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var p=e.call(d,"constructor"),v=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!p&&!v)return!1;var b;for(b in d);return typeof b>"u"||e.call(d,b)},s=function(d,p){i&&p.name==="__proto__"?i(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},f=function(d,p){if(p==="__proto__")if(e.call(d,p)){if(a)return a(d,p).value}else return;return d[p]};return Sh=function m(){var d,p,v,b,x,S,w=arguments[0],N=1,j=arguments.length,C=!1;for(typeof w=="boolean"&&(C=w,w=arguments[1]||{},N=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});N<j;++N)if(d=arguments[N],d!=null)for(p in d)v=f(w,p),b=f(d,p),w!==b&&(C&&b&&(o(b)||(x=r(b)))?(x?(x=!1,S=v&&r(v)?v:[]):S=v&&o(v)?v:{},s(w,{name:p,newValue:m(C,S,b)})):typeof b<"u"&&s(w,{name:p,newValue:b}));return w},Sh}var KM=JM();const kh=bo(KM);function lp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function WM(){const e=[],t={run:i,use:a};return t;function i(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);f(null,...r);function f(m,...d){const p=e[++o];let v=-1;if(m){s(m);return}for(;++v<r.length;)(d[v]===null||d[v]===void 0)&&(d[v]=r[v]);r=d,p?e5(p,f)(...d):s(null,...d)}}function a(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function e5(e,t){let i;return a;function a(...s){const f=e.length>s.length;let m;f&&s.push(r);try{m=e.apply(this,s)}catch(d){const p=d;if(f&&i)throw p;return r(p)}f||(m&&m.then&&typeof m.then=="function"?m.then(o,r):m instanceof Error?r(m):o(m))}function r(s,...f){i||(i=!0,t(s,...f))}function o(s){r(null,s)}}const Vn={basename:t5,dirname:n5,extname:r5,join:i5,sep:"/"};function t5(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yo(e);let i=0,a=-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){i=r+1;break}}else a<0&&(o=!0,a=r+1);return a<0?"":e.slice(i,a)}if(t===e)return"";let s=-1,f=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){i=r+1;break}}else s<0&&(o=!0,s=r+1),f>-1&&(e.codePointAt(r)===t.codePointAt(f--)?f<0&&(a=r):(f=-1,a=s));return i===a?a=s:a<0&&(a=e.length),e.slice(i,a)}function n5(e){if(Yo(e),e.length===0)return".";let t=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){t=i;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function r5(e){Yo(e);let t=e.length,i=-1,a=0,r=-1,o=0,s;for(;t--;){const f=e.codePointAt(t);if(f===47){if(s){a=t+1;break}continue}i<0&&(s=!0,i=t+1),f===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||i<0||o===0||o===1&&r===i-1&&r===a+1?"":e.slice(r,i)}function i5(...e){let t=-1,i;for(;++t<e.length;)Yo(e[t]),e[t]&&(i=i===void 0?e[t]:i+"/"+e[t]);return i===void 0?".":a5(i)}function a5(e){Yo(e);const t=e.codePointAt(0)===47;let i=l5(e,!t);return i.length===0&&!t&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function l5(e,t){let i="",a=0,r=-1,o=0,s=-1,f,m;for(;++s<=e.length;){if(s<e.length)f=e.codePointAt(s);else{if(f===47)break;f=47}if(f===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",a=0):(i=i.slice(0,m),a=i.length-1-i.lastIndexOf("/")),r=s,o=0;continue}}else if(i.length>0){i="",a=0,r=s,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(r+1,s):i=e.slice(r+1,s),a=s-r-1;r=s,o=0}else f===46&&o>-1?o++:o=-1}return i}function Yo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const o5={cwd:u5};function u5(){return"/"}function op(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function s5(e){if(typeof e=="string")e=new URL(e);else if(!op(e)){const 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return c5(e)}function c5(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let i=-1;for(;++i<t.length;)if(t.codePointAt(i)===37&&t.codePointAt(i+1)===50){const a=t.codePointAt(i+2);if(a===70||a===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const wh=["history","path","basename","stem","extname","dirname"];class $4{constructor(t){let i;t?op(t)?i={path:t}:typeof t=="string"||f5(t)?i={value:t}:i=t:i={},this.cwd="cwd"in i?"":o5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<wh.length;){const o=wh[a];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let r;for(r in i)wh.includes(r)||(this[r]=i[r])}get basename(){return typeof this.path=="string"?Vn.basename(this.path):void 0}set basename(t){Eh(t,"basename"),$h(t,"basename"),this.path=Vn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Vn.dirname(this.path):void 0}set dirname(t){B1(this.basename,"dirname"),this.path=Vn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Vn.extname(this.path):void 0}set extname(t){if($h(t,"extname"),B1(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=Vn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){op(t)&&(t=s5(t)),Eh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Vn.basename(this.path,this.extname):void 0}set stem(t){Eh(t,"stem"),$h(t,"stem"),this.path=Vn.join(this.dirname||"",t+(this.extname||""))}fail(t,i,a){const r=this.message(t,i,a);throw r.fatal=!0,r}info(t,i,a){const r=this.message(t,i,a);return r.fatal=void 0,r}message(t,i,a){const r=new It(t,i,a);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 $h(e,t){if(e&&e.includes(Vn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Vn.sep+"`")}function Eh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function B1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function f5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const d5=(function(e){const a=this.constructor.prototype,r=a[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,a),o}),m5={}.hasOwnProperty;class jv extends d5{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=WM()}copy(){const t=new jv;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];t.use(...a)}return t.data(kh(!0,{},this.namespace)),t}data(t,i){return typeof t=="string"?arguments.length===2?(zh("data",this.frozen),this.namespace[t]=i,this):m5.call(this.namespace,t)&&this.namespace[t]||void 0:t?(zh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const r=i.call(t,...a);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const i=ks(t),a=this.parser||this.Parser;return jh("parse",a),a(String(i),i)}process(t,i){const a=this;return this.freeze(),jh("process",this.parser||this.Parser),Nh("process",this.compiler||this.Compiler),i?r(void 0,i):new Promise(r);function r(o,s){const f=ks(t),m=a.parse(f);a.run(m,f,function(p,v,b){if(p||!v||!b)return d(p);const x=v,S=a.stringify(x,b);g5(S)?b.value=S:b.result=S,d(p,b)});function d(p,v){p||!v?s(p):o?o(v):i(void 0,v)}}}processSync(t){let i=!1,a;return this.freeze(),jh("processSync",this.parser||this.Parser),Nh("processSync",this.compiler||this.Compiler),this.process(t,r),H1("processSync","process",i),a;function r(o,s){i=!0,Z1(o),a=s}}run(t,i,a){F1(t),this.freeze();const r=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?o(void 0,a):new Promise(o);function o(s,f){const m=ks(i);r.run(t,m,d);function d(p,v,b){const x=v||t;p?f(p):s?s(x):a(void 0,x,b)}}}runSync(t,i){let a=!1,r;return this.run(t,i,o),H1("runSync","run",a),r;function o(s,f){Z1(s),r=f,a=!0}}stringify(t,i){this.freeze();const a=ks(i),r=this.compiler||this.Compiler;return Nh("stringify",r),F1(t),r(t,a)}use(t,...i){const a=this.attachers,r=this.namespace;if(zh("use",this.frozen),t!=null)if(typeof t=="function")m(t,i);else if(typeof t=="object")Array.isArray(t)?f(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(d){if(typeof d=="function")m(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[p,...v]=d;m(p,v)}else s(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function s(d){if(!("plugins"in d)&&!("settings"in d))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");f(d.plugins),d.settings&&(r.settings=kh(!0,r.settings,d.settings))}function f(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const v=d[p];o(v)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function m(d,p){let v=-1,b=-1;for(;++v<a.length;)if(a[v][0]===d){b=v;break}if(b===-1)a.push([d,...p]);else if(p.length>0){let[x,...S]=p;const w=a[b][1];lp(w)&&lp(x)&&(x=kh(!0,w,x)),a[b]=[d,x,...S]}}}}const h5=new jv().freeze();function jh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zh(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 F1(e){if(!lp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function H1(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ks(e){return p5(e)?e:new $4(e)}function p5(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function g5(e){return typeof e=="string"||v5(e)}function v5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const y5="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",G1=[],V1={allowDangerousHtml:!0},b5=/^(https?|ircs?|mailto|xmpp)$/i,x5=[{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:"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 Y1(e){const t=_5(e),i=S5(e);return k5(t.runSync(t.parse(i),i),e)}function _5(e){const t=e.rehypePlugins||G1,i=e.remarkPlugins||G1,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...V1}:V1;return h5().use(nM).use(i).use(QM,a).use(t)}function S5(e){const t=e.children||"",i=new $4;return typeof t=="string"&&(i.value=t),i}function k5(e,t){const i=t.allowedElements,a=t.allowElement,r=t.components,o=t.disallowedElements,s=t.skipHtml,f=t.unwrapDisallowed,m=t.urlTransform||w5;for(const p of x5)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+y5+p.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ev(e,d),MU(e,{Fragment:y.Fragment,components:r,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function d(p,v,b){if(p.type==="raw"&&b&&typeof v=="number")return s?b.children.splice(v,1):b.children[v]={type:"text",value:p.value},v;if(p.type==="element"){let x;for(x in bh)if(Object.hasOwn(bh,x)&&Object.hasOwn(p.properties,x)){const S=p.properties[x],w=bh[x];(w===null||w.includes(p.tagName))&&(p.properties[x]=m(String(S||""),x,p))}}if(p.type==="element"){let x=i?!i.includes(p.tagName):o?o.includes(p.tagName):!1;if(!x&&a&&typeof v=="number"&&(x=!a(p,v,b)),x&&b&&typeof v=="number")return f&&p.children?b.children.splice(v,1,...p.children):b.children.splice(v,1),v}}}function w5(e){const t=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||i!==-1&&t>i||a!==-1&&t>a||b5.test(e.slice(0,t))?e:""}function X1(e,t){const i=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,r=i.indexOf(t);for(;r!==-1;)a++,r=i.indexOf(t,r+t.length);return a}function $5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function E5(e,t,i){const r=Jc((i||{}).ignore||[]),o=j5(t);let s=-1;for(;++s<o.length;)w4(e,"text",f);function f(d,p){let v=-1,b;for(;++v<p.length;){const x=p[v],S=b?b.children:void 0;if(r(x,S?S.indexOf(x):void 0,b))return;b=x}if(b)return m(d,p)}function m(d,p){const v=p[p.length-1],b=o[s][0],x=o[s][1];let S=0;const N=v.children.indexOf(d);let j=!1,C=[];b.lastIndex=0;let O=b.exec(d.value);for(;O;){const G=O.index,X={index:O.index,input:O.input,stack:[...p,d]};let L=x(...O,X);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?b.lastIndex=G+1:(S!==G&&C.push({type:"text",value:d.value.slice(S,G)}),Array.isArray(L)?C.push(...L):L&&C.push(L),S=G+O[0].length,j=!0),!b.global)break;O=b.exec(d.value)}return j?(S<d.value.length&&C.push({type:"text",value:d.value.slice(S)}),v.children.splice(N,1,...C)):C=[d],N+C.length}}function j5(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<i.length;){const r=i[a];t.push([N5(r[0]),z5(r[1])])}return t}function N5(e){return typeof e=="string"?new RegExp($5(e),"g"):e}function z5(e){return typeof e=="function"?e:function(){return e}}const Oh="phrasing",Th=["autolink","link","image","label"];function O5(){return{transforms:[U5],enter:{literalAutolink:A5,literalAutolinkEmail:Ah,literalAutolinkHttp:Ah,literalAutolinkWww:Ah},exit:{literalAutolink:I5,literalAutolinkEmail:D5,literalAutolinkHttp:C5,literalAutolinkWww:R5}}}function T5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Oh,notInConstruct:Th},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Oh,notInConstruct:Th},{character:":",before:"[ps]",after:"\\/",inConstruct:Oh,notInConstruct:Th}]}}function A5(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ah(e){this.config.enter.autolinkProtocol.call(this,e)}function C5(e){this.config.exit.autolinkProtocol.call(this,e)}function R5(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function D5(e){this.config.exit.autolinkEmail.call(this,e)}function I5(e){this.exit(e)}function U5(e){E5(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,L5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),M5]],{ignore:["link","linkReference"]})}function L5(e,t,i,a,r){let o="";if(!E4(r)||(/^w/i.test(t)&&(i=t+i,t="",o="http://"),!P5(i)))return!1;const s=Z5(i+a);if(!s[0])return!1;const f={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[f,{type:"text",value:s[1]}]:f}function M5(e,t,i,a){return!E4(a,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+i,children:[{type:"text",value:t+"@"+i}]}}function P5(e){const 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 Z5(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],a=i.indexOf(")");const r=X1(e,"(");let o=X1(e,")");for(;a!==-1&&r>o;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),o++;return[e,i]}function E4(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Pi(i)||Yc(i))&&(!t||i!==47)}j4.peek=Q5;function q5(){this.buffer()}function B5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F5(){this.buffer()}function H5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function G5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Mn(this.sliceSerialize(e)).toLowerCase(),i.label=t}function V5(e){this.exit(e)}function Y5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Mn(this.sliceSerialize(e)).toLowerCase(),i.label=t}function X5(e){this.exit(e)}function Q5(){return"["}function j4(e,t,i,a){const r=i.createTracker(a);let o=r.move("[^");const s=i.enter("footnoteReference"),f=i.enter("reference");return o+=r.move(i.safe(i.associationId(e),{after:"]",before:o})),f(),s(),o+=r.move("]"),o}function J5(){return{enter:{gfmFootnoteCallString:q5,gfmFootnoteCall:B5,gfmFootnoteDefinitionLabelString:F5,gfmFootnoteDefinition:H5},exit:{gfmFootnoteCallString:G5,gfmFootnoteCall:V5,gfmFootnoteDefinitionLabelString:Y5,gfmFootnoteDefinition:X5}}}function K5(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:j4},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,r,o,s){const f=o.createTracker(s);let m=f.move("[^");const d=o.enter("footnoteDefinition"),p=o.enter("label");return m+=f.move(o.safe(o.associationId(a),{before:m,after:"]"})),p(),m+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),m+=f.move((t?`
56
+ `:" ")+o.indentLines(o.containerFlow(a,f.current()),t?N4:W5))),d(),m}}function W5(e,t,i){return t===0?e:N4(e,t,i)}function N4(e,t,i){return(i?"":" ")+e}const eP=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];z4.peek=aP;function tP(){return{canContainEols:["delete"],enter:{strikethrough:rP},exit:{strikethrough:iP}}}function nP(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eP}],handlers:{delete:z4}}}function rP(e){this.enter({type:"delete",children:[]},e)}function iP(e){this.exit(e)}function z4(e,t,i,a){const r=i.createTracker(a),o=i.enter("strikethrough");let s=r.move("~~");return s+=i.containerPhrasing(e,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),o(),s}function aP(){return"~"}function lP(e){return e.length}function oP(e,t){const i=t||{},a=(i.align||[]).concat(),r=i.stringLength||lP,o=[],s=[],f=[],m=[];let d=0,p=-1;for(;++p<e.length;){const w=[],N=[];let j=-1;for(e[p].length>d&&(d=e[p].length);++j<e[p].length;){const C=uP(e[p][j]);if(i.alignDelimiters!==!1){const O=r(C);N[j]=O,(m[j]===void 0||O>m[j])&&(m[j]=O)}w.push(C)}s[p]=w,f[p]=N}let v=-1;if(typeof a=="object"&&"length"in a)for(;++v<d;)o[v]=Q1(a[v]);else{const w=Q1(a);for(;++v<d;)o[v]=w}v=-1;const b=[],x=[];for(;++v<d;){const w=o[v];let N="",j="";w===99?(N=":",j=":"):w===108?N=":":w===114&&(j=":");let C=i.alignDelimiters===!1?1:Math.max(1,m[v]-N.length-j.length);const O=N+"-".repeat(C)+j;i.alignDelimiters!==!1&&(C=N.length+C+j.length,C>m[v]&&(m[v]=C),x[v]=C),b[v]=O}s.splice(1,0,b),f.splice(1,0,x),p=-1;const S=[];for(;++p<s.length;){const w=s[p],N=f[p];v=-1;const j=[];for(;++v<d;){const C=w[v]||"";let O="",G="";if(i.alignDelimiters!==!1){const X=m[v]-(N[v]||0),L=o[v];L===114?O=" ".repeat(X):L===99?X%2?(O=" ".repeat(X/2+.5),G=" ".repeat(X/2-.5)):(O=" ".repeat(X/2),G=O):G=" ".repeat(X)}i.delimiterStart!==!1&&!v&&j.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&C==="")&&(i.delimiterStart!==!1||v)&&j.push(" "),i.alignDelimiters!==!1&&j.push(O),j.push(C),i.alignDelimiters!==!1&&j.push(G),i.padding!==!1&&j.push(" "),(i.delimiterEnd!==!1||v!==d-1)&&j.push("|")}S.push(i.delimiterEnd===!1?j.join("").replace(/ +$/,""):j.join(""))}return S.join(`
57
+ `)}function uP(e){return e==null?"":String(e)}function Q1(e){const 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 sP(e,t,i,a){const r=i.enter("blockquote"),o=i.createTracker(a);o.move("> "),o.shift(2);const s=i.indentLines(i.containerFlow(e,o.current()),cP);return r(),s}function cP(e,t,i){return">"+(i?"":" ")+e}function fP(e,t){return J1(e,t.inConstruct,!0)&&!J1(e,t.notInConstruct,!1)}function J1(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function K1(e,t,i,a){let r=-1;for(;++r<i.unsafe.length;)if(i.unsafe[r].character===`
58
+ `&&fP(i.stack,i.unsafe[r]))return/[ \t]/.test(a.before)?"":" ";return`\\
59
+ `}function dP(e,t){const i=String(e);let a=i.indexOf(t),r=a,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===r?++o>s&&(s=o):o=1,r=a+t.length,a=i.indexOf(t,r);return s}function mP(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 hP(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function pP(e,t,i,a){const r=hP(i),o=e.value||"",s=r==="`"?"GraveAccent":"Tilde";if(mP(e,i)){const v=i.enter("codeIndented"),b=i.indentLines(o,gP);return v(),b}const f=i.createTracker(a),m=r.repeat(Math.max(dP(o,r)+1,3)),d=i.enter("codeFenced");let p=f.move(m);if(e.lang){const v=i.enter(`codeFencedLang${s}`);p+=f.move(i.safe(e.lang,{before:p,after:" ",encode:["`"],...f.current()})),v()}if(e.lang&&e.meta){const v=i.enter(`codeFencedMeta${s}`);p+=f.move(" "),p+=f.move(i.safe(e.meta,{before:p,after:`
60
+ `,encode:["`"],...f.current()})),v()}return p+=f.move(`
61
+ `),o&&(p+=f.move(o+`
62
+ `)),p+=f.move(m),d(),p}function gP(e,t,i){return(i?"":" ")+e}function Nv(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function vP(e,t,i,a){const r=Nv(i),o=r==='"'?"Quote":"Apostrophe",s=i.enter("definition");let f=i.enter("label");const m=i.createTracker(a);let d=m.move("[");return d+=m.move(i.safe(i.associationId(e),{before:d,after:"]",...m.current()})),d+=m.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=m.move("<"),d+=m.move(i.safe(e.url,{before:d,after:">",...m.current()})),d+=m.move(">")):(f=i.enter("destinationRaw"),d+=m.move(i.safe(e.url,{before:d,after:e.title?" ":`
63
+ `,...m.current()}))),f(),e.title&&(f=i.enter(`title${o}`),d+=m.move(" "+r),d+=m.move(i.safe(e.title,{before:d,after:r,...m.current()})),d+=m.move(r),f()),s(),d}function yP(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function yo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bs(e,t,i){const a=Ya(e),r=Ya(t);return a===void 0?r===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===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}}O4.peek=bP;function O4(e,t,i,a){const r=yP(i),o=i.enter("emphasis"),s=i.createTracker(a),f=s.move(r);let m=s.move(i.containerPhrasing(e,{after:r,before:f,...s.current()}));const d=m.charCodeAt(0),p=Bs(a.before.charCodeAt(a.before.length-1),d,r);p.inside&&(m=yo(d)+m.slice(1));const v=m.charCodeAt(m.length-1),b=Bs(a.after.charCodeAt(0),v,r);b.inside&&(m=m.slice(0,-1)+yo(v));const x=s.move(r);return o(),i.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},f+m+x}function bP(e,t,i){return i.options.emphasis||"*"}function xP(e,t){let i=!1;return Ev(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,ip}),!!((!e.depth||e.depth<3)&&bv(e)&&(t.options.setext||i))}function _P(e,t,i,a){const r=Math.max(Math.min(6,e.depth||1),1),o=i.createTracker(a);if(xP(e,i)){const p=i.enter("headingSetext"),v=i.enter("phrasing"),b=i.containerPhrasing(e,{...o.current(),before:`
64
+ `,after:`
65
+ `});return v(),p(),b+`
66
+ `+(r===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
67
+ `))+1))}const s="#".repeat(r),f=i.enter("headingAtx"),m=i.enter("phrasing");o.move(s+" ");let d=i.containerPhrasing(e,{before:"# ",after:`
68
+ `,...o.current()});return/^[\t ]/.test(d)&&(d=yo(d.charCodeAt(0))+d.slice(1)),d=d?s+" "+d:s,i.options.closeAtx&&(d+=" "+s),m(),f(),d}T4.peek=SP;function T4(e){return e.value||""}function SP(){return"<"}A4.peek=kP;function A4(e,t,i,a){const r=Nv(i),o=r==='"'?"Quote":"Apostrophe",s=i.enter("image");let f=i.enter("label");const m=i.createTracker(a);let d=m.move("![");return d+=m.move(i.safe(e.alt,{before:d,after:"]",...m.current()})),d+=m.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=m.move("<"),d+=m.move(i.safe(e.url,{before:d,after:">",...m.current()})),d+=m.move(">")):(f=i.enter("destinationRaw"),d+=m.move(i.safe(e.url,{before:d,after:e.title?" ":")",...m.current()}))),f(),e.title&&(f=i.enter(`title${o}`),d+=m.move(" "+r),d+=m.move(i.safe(e.title,{before:d,after:r,...m.current()})),d+=m.move(r),f()),d+=m.move(")"),s(),d}function kP(){return"!"}C4.peek=wP;function C4(e,t,i,a){const r=e.referenceType,o=i.enter("imageReference");let s=i.enter("label");const f=i.createTracker(a);let m=f.move("![");const d=i.safe(e.alt,{before:m,after:"]",...f.current()});m+=f.move(d+"]["),s();const p=i.stack;i.stack=[],s=i.enter("reference");const v=i.safe(i.associationId(e),{before:m,after:"]",...f.current()});return s(),i.stack=p,o(),r==="full"||!d||d!==v?m+=f.move(v+"]"):r==="shortcut"?m=m.slice(0,-1):m+=f.move("]"),m}function wP(){return"!"}R4.peek=$P;function R4(e,t,i){let a=e.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(a);)r+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o<i.unsafe.length;){const s=i.unsafe[o],f=i.compilePattern(s);let m;if(s.atBreak)for(;m=f.exec(a);){let d=m.index;a.charCodeAt(d)===10&&a.charCodeAt(d-1)===13&&d--,a=a.slice(0,d)+" "+a.slice(m.index+1)}}return r+a+r}function $P(){return"`"}function D4(e,t){const i=bv(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}I4.peek=EP;function I4(e,t,i,a){const r=Nv(i),o=r==='"'?"Quote":"Apostrophe",s=i.createTracker(a);let f,m;if(D4(e,i)){const p=i.stack;i.stack=[],f=i.enter("autolink");let v=s.move("<");return v+=s.move(i.containerPhrasing(e,{before:v,after:">",...s.current()})),v+=s.move(">"),f(),i.stack=p,v}f=i.enter("link"),m=i.enter("label");let d=s.move("[");return d+=s.move(i.containerPhrasing(e,{before:d,after:"](",...s.current()})),d+=s.move("]("),m(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(m=i.enter("destinationLiteral"),d+=s.move("<"),d+=s.move(i.safe(e.url,{before:d,after:">",...s.current()})),d+=s.move(">")):(m=i.enter("destinationRaw"),d+=s.move(i.safe(e.url,{before:d,after:e.title?" ":")",...s.current()}))),m(),e.title&&(m=i.enter(`title${o}`),d+=s.move(" "+r),d+=s.move(i.safe(e.title,{before:d,after:r,...s.current()})),d+=s.move(r),m()),d+=s.move(")"),f(),d}function EP(e,t,i){return D4(e,i)?"<":"["}U4.peek=jP;function U4(e,t,i,a){const r=e.referenceType,o=i.enter("linkReference");let s=i.enter("label");const f=i.createTracker(a);let m=f.move("[");const d=i.containerPhrasing(e,{before:m,after:"]",...f.current()});m+=f.move(d+"]["),s();const p=i.stack;i.stack=[],s=i.enter("reference");const v=i.safe(i.associationId(e),{before:m,after:"]",...f.current()});return s(),i.stack=p,o(),r==="full"||!d||d!==v?m+=f.move(v+"]"):r==="shortcut"?m=m.slice(0,-1):m+=f.move("]"),m}function jP(){return"["}function zv(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function NP(e){const t=zv(e),i=e.options.bulletOther;if(!i)return t==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+i+"`) to be different");return i}function zP(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function L4(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function OP(e,t,i,a){const r=i.enter("list"),o=i.bulletCurrent;let s=e.ordered?zP(i):zv(i);const f=e.ordered?s==="."?")":".":NP(i);let m=t&&i.bulletLastUsed?s===i.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&p&&(!p.children||!p.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),L4(i)===s&&p){let v=-1;for(;++v<e.children.length;){const b=e.children[v];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(s=f),i.bulletCurrent=s;const d=i.containerFlow(e,a);return i.bulletLastUsed=s,i.bulletCurrent=o,r(),d}function TP(e){const 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 AP(e,t,i,a){const r=TP(i);let o=i.bulletCurrent||zv(i);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const f=i.createTracker(a);f.move(o+" ".repeat(s-o.length)),f.shift(s);const m=i.enter("listItem"),d=i.indentLines(i.containerFlow(e,f.current()),p);return m(),d;function p(v,b,x){return b?(x?"":" ".repeat(s))+v:(x?o:o+" ".repeat(s-o.length))+v}}function CP(e,t,i,a){const r=i.enter("paragraph"),o=i.enter("phrasing"),s=i.containerPhrasing(e,a);return o(),r(),s}const RP=Jc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function DP(e,t,i,a){return(e.children.some(function(s){return RP(s)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function IP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}M4.peek=UP;function M4(e,t,i,a){const r=IP(i),o=i.enter("strong"),s=i.createTracker(a),f=s.move(r+r);let m=s.move(i.containerPhrasing(e,{after:r,before:f,...s.current()}));const d=m.charCodeAt(0),p=Bs(a.before.charCodeAt(a.before.length-1),d,r);p.inside&&(m=yo(d)+m.slice(1));const v=m.charCodeAt(m.length-1),b=Bs(a.after.charCodeAt(0),v,r);b.inside&&(m=m.slice(0,-1)+yo(v));const x=s.move(r+r);return o(),i.attentionEncodeSurroundingInfo={after:b.outside,before:p.outside},f+m+x}function UP(e,t,i){return i.options.strong||"*"}function LP(e,t,i,a){return i.safe(e.value,a)}function MP(e){const 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 PP(e,t,i){const a=(L4(i)+(i.options.ruleSpaces?" ":"")).repeat(MP(i));return i.options.ruleSpaces?a.slice(0,-1):a}const P4={blockquote:sP,break:K1,code:pP,definition:vP,emphasis:O4,hardBreak:K1,heading:_P,html:T4,image:A4,imageReference:C4,inlineCode:R4,link:I4,linkReference:U4,list:OP,listItem:AP,paragraph:CP,root:DP,strong:M4,text:LP,thematicBreak:PP};function ZP(){return{enter:{table:qP,tableData:W1,tableHeader:W1,tableRow:FP},exit:{codeText:HP,table:BP,tableData:Ch,tableHeader:Ch,tableRow:Ch}}}function qP(e){const t=e._align;this.enter({type:"table",align:t.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function BP(e){this.exit(e),this.data.inTable=void 0}function FP(e){this.enter({type:"tableRow",children:[]},e)}function Ch(e){this.exit(e)}function W1(e){this.enter({type:"tableCell",children:[]},e)}function HP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,GP));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function GP(e,t){return t==="|"?t:e}function VP(e){const t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,r=t.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
69
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:s,tableCell:m,tableRow:f}};function s(x,S,w,N){return d(p(x,w,N),x.align)}function f(x,S,w,N){const j=v(x,w,N),C=d([j]);return C.slice(0,C.indexOf(`
70
+ `))}function m(x,S,w,N){const j=w.enter("tableCell"),C=w.enter("phrasing"),O=w.containerPhrasing(x,{...N,before:o,after:o});return C(),j(),O}function d(x,S){return oP(x,{align:S,alignDelimiters:a,padding:i,stringLength:r})}function p(x,S,w){const N=x.children;let j=-1;const C=[],O=S.enter("table");for(;++j<N.length;)C[j]=v(N[j],S,w);return O(),C}function v(x,S,w){const N=x.children;let j=-1;const C=[],O=S.enter("tableRow");for(;++j<N.length;)C[j]=m(N[j],x,S,w);return O(),C}function b(x,S,w){let N=P4.inlineCode(x,S,w);return w.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function YP(){return{exit:{taskListCheckValueChecked:eS,taskListCheckValueUnchecked:eS,paragraph:QP}}}function XP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:JP}}}function eS(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function QP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const a=i.children[0];if(a&&a.type==="text"){const r=t.children;let o=-1,s;for(;++o<r.length;){const f=r[o];if(f.type==="paragraph"){s=f;break}}s===i&&(a.value=a.value.slice(1),a.value.length===0?i.children.shift():i.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,i.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function JP(e,t,i,a){const r=e.children[0],o=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",f=i.createTracker(a);o&&f.move(s);let m=P4.listItem(e,t,i,{...a,...f.current()});return o&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),m;function d(p){return p+s}}function KP(){return[O5(),J5(),tP(),ZP(),YP()]}function WP(e){return{extensions:[T5(),K5(e),nP(),VP(e),XP()]}}const e9={tokenize:l9,partial:!0},Z4={tokenize:o9,partial:!0},q4={tokenize:u9,partial:!0},B4={tokenize:s9,partial:!0},t9={tokenize:c9,partial:!0},F4={name:"wwwAutolink",tokenize:i9,previous:G4},H4={name:"protocolAutolink",tokenize:a9,previous:V4},Tr={name:"emailAutolink",tokenize:r9,previous:Y4},Kn={};function n9(){return{text:Kn}}let zi=48;for(;zi<123;)Kn[zi]=Tr,zi++,zi===58?zi=65:zi===91&&(zi=97);Kn[43]=Tr;Kn[45]=Tr;Kn[46]=Tr;Kn[95]=Tr;Kn[72]=[Tr,H4];Kn[104]=[Tr,H4];Kn[87]=[Tr,F4];Kn[119]=[Tr,F4];function r9(e,t,i){const a=this;let r,o;return s;function s(v){return!up(v)||!Y4.call(a,a.previous)||Ov(a.events)?i(v):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(v))}function f(v){return up(v)?(e.consume(v),f):v===64?(e.consume(v),m):i(v)}function m(v){return v===46?e.check(t9,p,d)(v):v===45||v===95||Rt(v)?(o=!0,e.consume(v),m):p(v)}function d(v){return e.consume(v),r=!0,m}function p(v){return o&&r&&qt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(v)):i(v)}}function i9(e,t,i){const a=this;return r;function r(s){return s!==87&&s!==119||!G4.call(a,a.previous)||Ov(a.events)?i(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(e9,e.attempt(Z4,e.attempt(q4,o),i),i)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function a9(e,t,i){const a=this;let r="",o=!1;return s;function s(v){return(v===72||v===104)&&V4.call(a,a.previous)&&!Ov(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(v),e.consume(v),f):i(v)}function f(v){if(qt(v)&&r.length<5)return r+=String.fromCodePoint(v),e.consume(v),f;if(v===58){const b=r.toLowerCase();if(b==="http"||b==="https")return e.consume(v),m}return i(v)}function m(v){return v===47?(e.consume(v),o?d:(o=!0,m)):i(v)}function d(v){return v===null||Ps(v)||Ke(v)||Pi(v)||Yc(v)?i(v):e.attempt(Z4,e.attempt(q4,p),i)(v)}function p(v){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(v)}}function l9(e,t,i){let a=0;return r;function r(s){return(s===87||s===119)&&a<3?(a++,e.consume(s),r):s===46&&a===3?(e.consume(s),o):i(s)}function o(s){return s===null?i(s):t(s)}}function o9(e,t,i){let a,r,o;return s;function s(d){return d===46||d===95?e.check(B4,m,f)(d):d===null||Ke(d)||Pi(d)||d!==45&&Yc(d)?m(d):(o=!0,e.consume(d),s)}function f(d){return d===95?a=!0:(r=a,a=void 0),e.consume(d),s}function m(d){return r||a||!o?i(d):t(d)}}function u9(e,t){let i=0,a=0;return r;function r(s){return s===40?(i++,e.consume(s),r):s===41&&a<i?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(B4,t,o)(s):s===null||Ke(s)||Pi(s)?t(s):(e.consume(s),r)}function o(s){return s===41&&a++,e.consume(s),r}}function s9(e,t,i){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),o):f===93?(e.consume(f),r):f===60||f===null||Ke(f)||Pi(f)?t(f):i(f)}function r(f){return f===null||f===40||f===91||Ke(f)||Pi(f)?t(f):a(f)}function o(f){return qt(f)?s(f):i(f)}function s(f){return f===59?(e.consume(f),a):qt(f)?(e.consume(f),s):i(f)}}function c9(e,t,i){return a;function a(o){return e.consume(o),r}function r(o){return Rt(o)?i(o):t(o)}}function G4(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ke(e)}function V4(e){return!qt(e)}function Y4(e){return!(e===47||up(e))}function up(e){return e===43||e===45||e===46||e===95||Rt(e)}function Ov(e){let t=e.length,i=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const f9={tokenize:b9,partial:!0};function d9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:g9,continuation:{tokenize:v9},exit:y9}},text:{91:{name:"gfmFootnoteCall",tokenize:p9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:m9,resolveTo:h9}}}}function m9(e,t,i){const a=this;let r=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s;for(;r--;){const m=a.events[r][1];if(m.type==="labelImage"){s=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return f;function f(m){if(!s||!s._balanced)return i(m);const d=Mn(a.sliceSerialize({start:s.end,end:a.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?i(m):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),t(m))}}function h9(e,t){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},f=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",r,t],["exit",r,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...f),e}function p9(e,t,i){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,s;return f;function f(v){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(v),e.exit("gfmFootnoteCallLabelMarker"),m}function m(v){return v!==94?i(v):(e.enter("gfmFootnoteCallMarker"),e.consume(v),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(v){if(o>999||v===93&&!s||v===null||v===91||Ke(v))return i(v);if(v===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return r.includes(Mn(a.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(v),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(v)}return Ke(v)||(s=!0),o++,e.consume(v),v===92?p:d}function p(v){return v===91||v===92||v===93?(e.consume(v),o++,d):d(v)}}function g9(e,t,i){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,s=0,f;return m;function m(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):i(S)}function p(S){if(s>999||S===93&&!f||S===null||S===91||Ke(S))return i(S);if(S===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=Mn(a.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return Ke(S)||(f=!0),s++,e.consume(S),S===92?v:p}function v(S){return S===91||S===92||S===93?(e.consume(S),s++,p):p(S)}function b(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),r.includes(o)||r.push(o),Me(e,x,"gfmFootnoteDefinitionWhitespace")):i(S)}function x(S){return t(S)}}function v9(e,t,i){return e.check(Vo,t,e.attempt(f9,t,i))}function y9(e){e.exit("gfmFootnoteDefinition")}function b9(e,t,i){const a=this;return Me(e,r,"gfmFootnoteDefinitionIndent",5);function r(o){const s=a.events[a.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):i(o)}}function x9(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:o,resolveAll:r};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function r(s,f){let m=-1;for(;++m<s.length;)if(s[m][0]==="enter"&&s[m][1].type==="strikethroughSequenceTemporary"&&s[m][1]._close){let d=m;for(;d--;)if(s[d][0]==="exit"&&s[d][1].type==="strikethroughSequenceTemporary"&&s[d][1]._open&&s[m][1].end.offset-s[m][1].start.offset===s[d][1].end.offset-s[d][1].start.offset){s[m][1].type="strikethroughSequence",s[d][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},s[d][1].start),end:Object.assign({},s[m][1].end)},v={type:"strikethroughText",start:Object.assign({},s[d][1].end),end:Object.assign({},s[m][1].start)},b=[["enter",p,f],["enter",s[d][1],f],["exit",s[d][1],f],["enter",v,f]],x=f.parser.constructs.insideSpan.null;x&&dn(b,b.length,0,Xc(x,s.slice(d+1,m),f)),dn(b,b.length,0,[["exit",v,f],["enter",s[m][1],f],["exit",s[m][1],f],["exit",p,f]]),dn(s,d-1,m-d+3,b),m=d+b.length-2;break}}for(m=-1;++m<s.length;)s[m][1].type==="strikethroughSequenceTemporary"&&(s[m][1].type="data");return s}function o(s,f,m){const d=this.previous,p=this.events;let v=0;return b;function b(S){return d===126&&p[p.length-1][1].type!=="characterEscape"?m(S):(s.enter("strikethroughSequenceTemporary"),x(S))}function x(S){const w=Ya(d);if(S===126)return v>1?m(S):(s.consume(S),v++,x);if(v<2&&!i)return m(S);const N=s.exit("strikethroughSequenceTemporary"),j=Ya(S);return N._open=!j||j===2&&!!w,N._close=!w||w===2&&!!j,f(S)}}}class _9{constructor(){this.map=[]}add(t,i,a){S9(this,t,i,a)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(t.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),t.length=this.map[i][0];a.push(t.slice()),t.length=0;let r=a.pop();for(;r;){for(const o of r)t.push(o);r=a.pop()}this.map.length=0}}function S9(e,t,i,a){let r=0;if(!(i===0&&a.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=i,e.map[r][2].push(...a);return}r+=1}e.map.push([t,i,a])}}function k9(e,t){let i=!1;const a=[];for(;t<e.length;){const r=e[t];if(i){if(r[0]==="enter")r[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=a.length-1;a[o]=a[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(i=!0);t+=1}return a}function w9(){return{flow:{null:{name:"table",tokenize:$9,resolveAll:E9}}}}function $9(e,t,i){const a=this;let r=0,o=0,s;return f;function f(U){let se=a.events.length-1;for(;se>-1;){const Y=a.events[se][1].type;if(Y==="lineEnding"||Y==="linePrefix")se--;else break}const ce=se>-1?a.events[se][1].type:null,Se=ce==="tableHead"||ce==="tableRow"?L:m;return Se===L&&a.parser.lazy[a.now().line]?i(U):Se(U)}function m(U){return e.enter("tableHead"),e.enter("tableRow"),d(U)}function d(U){return U===124||(s=!0,o+=1),p(U)}function p(U){return U===null?i(U):ye(U)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),x):i(U):Ce(U)?Me(e,p,"whitespace")(U):(o+=1,s&&(s=!1,r+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),v(U)))}function v(U){return U===null||U===124||Ke(U)?(e.exit("data"),p(U)):(e.consume(U),U===92?b:v)}function b(U){return U===92||U===124?(e.consume(U),v):v(U)}function x(U){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(U):(e.enter("tableDelimiterRow"),s=!1,Ce(U)?Me(e,S,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):S(U))}function S(U){return U===45||U===58?N(U):U===124?(s=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),w):X(U)}function w(U){return Ce(U)?Me(e,N,"whitespace")(U):N(U)}function N(U){return U===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),j):U===45?(o+=1,j(U)):U===null||ye(U)?G(U):X(U)}function j(U){return U===45?(e.enter("tableDelimiterFiller"),C(U)):X(U)}function C(U){return U===45?(e.consume(U),C):U===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(U))}function O(U){return Ce(U)?Me(e,G,"whitespace")(U):G(U)}function G(U){return U===124?S(U):U===null||ye(U)?!s||r!==o?X(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(U)):X(U)}function X(U){return i(U)}function L(U){return e.enter("tableRow"),W(U)}function W(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),W):U===null||ye(U)?(e.exit("tableRow"),t(U)):Ce(U)?Me(e,W,"whitespace")(U):(e.enter("data"),ne(U))}function ne(U){return U===null||U===124||Ke(U)?(e.exit("data"),W(U)):(e.consume(U),U===92?ie:ne)}function ie(U){return U===92||U===124?(e.consume(U),ne):ne(U)}}function E9(e,t){let i=-1,a=!0,r=0,o=[0,0,0,0],s=[0,0,0,0],f=!1,m=0,d,p,v;const b=new _9;for(;++i<e.length;){const x=e[i],S=x[1];x[0]==="enter"?S.type==="tableHead"?(f=!1,m!==0&&(tS(b,t,m,d,p),p=void 0,m=0),d={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(i,0,[["enter",d,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(a=!0,v=void 0,o=[0,0,0,0],s=[0,i+1,0,0],f&&(f=!1,p={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(i,0,[["enter",p,t]])),r=S.type==="tableDelimiterRow"?2:p?3:1):r&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(a=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],v=ws(b,t,o,r,void 0,v),o=[0,0,0,0]),s[2]=i)):S.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(s[0]=s[1],v=ws(b,t,o,r,void 0,v)),o=s,s=[o[1],i,0,0])):S.type==="tableHead"?(f=!0,m=i):S.type==="tableRow"||S.type==="tableDelimiterRow"?(m=i,o[1]!==0?(s[0]=s[1],v=ws(b,t,o,r,i,v)):s[1]!==0&&(v=ws(b,t,s,r,i,v)),r=0):r&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(s[3]=i)}for(m!==0&&tS(b,t,m,d,p),b.consume(t.events),i=-1;++i<t.events.length;){const x=t.events[i];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=k9(t.events,i))}return e}function ws(e,t,i,a,r,o){const s=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(o.end=Object.assign({},Da(t.events,i[0])),e.add(i[0],0,[["exit",o,t]]));const m=Da(t.events,i[1]);if(o={type:s,start:Object.assign({},m),end:Object.assign({},m)},e.add(i[1],0,[["enter",o,t]]),i[2]!==0){const d=Da(t.events,i[2]),p=Da(t.events,i[3]),v={type:f,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(i[2],0,[["enter",v,t]]),a!==2){const b=t.events[i[2]],x=t.events[i[3]];if(b[1].end=Object.assign({},x[1].end),b[1].type="chunkText",b[1].contentType="text",i[3]>i[2]+1){const S=i[2]+1,w=i[3]-i[2]-1;e.add(S,w,[])}}e.add(i[3]+1,0,[["exit",v,t]])}return r!==void 0&&(o.end=Object.assign({},Da(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function tS(e,t,i,a,r){const o=[],s=Da(t.events,i);r&&(r.end=Object.assign({},s),o.push(["exit",r,t])),a.end=Object.assign({},s),o.push(["exit",a,t]),e.add(i+1,0,o)}function Da(e,t){const i=e[t],a=i[0]==="enter"?"start":"end";return i[1][a]}const j9={name:"tasklistCheck",tokenize:z9};function N9(){return{text:{91:j9}}}function z9(e,t,i){const a=this;return r;function r(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(m):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),o)}function o(m){return Ke(m)?(e.enter("taskListCheckValueUnchecked"),e.consume(m),e.exit("taskListCheckValueUnchecked"),s):m===88||m===120?(e.enter("taskListCheckValueChecked"),e.consume(m),e.exit("taskListCheckValueChecked"),s):i(m)}function s(m){return m===93?(e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(m)}function f(m){return ye(m)?t(m):Ce(m)?e.check({tokenize:O9},t,i)(m):i(m)}}function O9(e,t,i){return Me(e,a,"whitespace");function a(r){return r===null?i(r):t(r)}}function T9(e){return a4([n9(),d9(),x9(e),w9(),N9()])}const A9={};function nS(e){const t=this,i=e||A9,a=t.data(),r=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),s=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);r.push(T9(i)),o.push(KP()),s.push(WP(i))}const C9="composer_proxy_admin_token";function R9(){return typeof window<"u"?localStorage.getItem(C9):null}function D9({distUrl:e,version:t}){const[i,a]=A.useState(!1),[r,o]=A.useState(null),s=async f=>{f.stopPropagation(),a(!0),o(null);try{const m=R9(),d={};m&&(d.Authorization=`Bearer ${m}`);const p=await fetch(e,{headers:d});if(!p.ok)throw new Error(`Download failed: ${p.status} ${p.statusText}`);const v=await p.blob(),b=window.URL.createObjectURL(v),x=document.createElement("a");x.href=b,x.download=e.split("/").pop()||"package.zip",document.body.appendChild(x),x.click(),document.body.removeChild(x),window.URL.revokeObjectURL(b)}catch(m){o(m instanceof Error?m.message:"Download failed")}finally{a(!1)}};return r?y.jsxs("div",{className:"flex flex-col items-end gap-1",children:[y.jsx("button",{onClick:s,className:"text-red-400 hover:text-red-300 text-sm",children:"Retry"}),y.jsx("span",{className:"text-xs text-red-500",children:r})]}):y.jsx("button",{onClick:s,disabled:i,className:"btn-primary text-sm disabled:opacity-50 disabled:cursor-not-allowed",children:i?"Downloading...":`Download ${t}`})}function I9({text:e,label:t}){const[i,a]=A.useState(!1),r=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),2e3)}catch(o){console.error("Failed to copy:",o)}};return y.jsx("button",{onClick:r,className:"px-3 py-1.5 bg-slate-800 hover:bg-slate-700 border border-slate-700 rounded-lg text-sm text-slate-300 hover:text-slate-100 transition-colors flex items-center gap-2",title:i?"Copied!":`Copy ${t||"command"}`,children:i?y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"✓"}),y.jsx("span",{children:"Copied!"})]}):y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"📋"}),y.jsx("span",{children:"Copy"})]})})}function U9(){const{vendor:e,package:t}=gS(),i=Jn(),a=e&&t?`${e}/${t}`:null,r=()=>{const ie=i.hash;return ie.startsWith("#version--")?ie.replace("#version--",""):null},[o,s]=A.useState(r()),[f,m]=A.useState(!1),[d,p]=A.useState(!1);A.useEffect(()=>{const ie=r();ie!==o&&s(ie)},[i.hash]);const v=ie=>{s(ie),window.location.hash=`version--${ie}`},{data:b,isLoading:x}=fn({queryKey:["package",a],queryFn:()=>j6(a),enabled:!!a}),S=A.useMemo(()=>b?.versions?[...b.versions].sort((ie,U)=>{const se=/^\d+$/.test(ie.version),ce=/^\d+$/.test(U.version);if(se&&ce){const F=parseInt(ie.version,10);return parseInt(U.version,10)-F}if(se&&!ce&&Yn.valid(U.version))return 1;if(!se&&ce&&Yn.valid(ie.version))return-1;const Se=Yn.valid(ie.version),Y=Yn.valid(U.version);if(Se&&Y)return Yn.rcompare(ie.version,U.version);if(Se&&!Y)return-1;if(!Se&&Y)return 1;const P=ie.version.match(/^(\d+)/),R=U.version.match(/^(\d+)/);if(P&&R){const F=parseInt(P[1],10),te=parseInt(R[1],10);if(F!==te)return te-F}return U.version.localeCompare(ie.version,void 0,{numeric:!0,sensitivity:"base"})}):[],[b]),w=A.useMemo(()=>S.length?o&&S.find(ie=>ie.version===o)||S[0]:null,[S,o]),{data:N,isLoading:j}=fn({queryKey:["readme",a,w?.version],queryFn:()=>N6(a,w.version),enabled:!!a&&!!w}),C=A.useMemo(()=>!S.length||!w?!1:w.version===S[0].version,[S,w]),{data:O,isLoading:G}=fn({queryKey:["changelog",a,w?.version],queryFn:()=>z6(a,w.version),enabled:!!a&&!!w&&C}),{data:X,isLoading:L}=fn({queryKey:["stats",a,w?.version],queryFn:()=>O6(a,w.version),enabled:!!a&&!!w}),W=ie=>{if(!ie)return[];try{const U=JSON.parse(ie);return Array.isArray(U)?U:[U]}catch{return[ie]}};if(x)return y.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:y.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"})});if(!a)return y.jsxs("div",{className:"card p-8 text-center",children:[y.jsx("p",{className:"text-slate-400",children:"Invalid package name"}),y.jsx(La,{to:"/packages",className:"text-primary-400 hover:text-primary-300 mt-4 inline-block",children:"← Back to packages"})]});if(!b||!w)return y.jsxs("div",{className:"card p-8 text-center",children:[y.jsxs("p",{className:"text-slate-400",children:["Package not found: ",a]}),y.jsx(La,{to:"/packages",className:"text-primary-400 hover:text-primary-300 mt-4 inline-block",children:"← Back to packages"})]});const ne=W(w.license);return y.jsxs("div",{className:"space-y-6",children:[y.jsx("div",{className:"card p-6",children:y.jsx("div",{className:"flex items-start justify-between gap-4",children:y.jsxs("div",{className:"flex-1",children:[y.jsxs("div",{className:"flex items-center gap-3 mb-2 flex-wrap",children:[y.jsx("h1",{className:"font-display text-3xl font-bold text-slate-100",children:b.name}),y.jsx("select",{value:o||w.version,onChange:ie=>v(ie.target.value),className:"px-3 py-1.5 bg-slate-800 border border-slate-700 rounded-lg text-slate-100 focus:outline-none focus:ring-2 focus:ring-primary-500 text-sm",children:S.map(ie=>y.jsx("option",{value:ie.version,children:ie.version},ie.version))})]}),w.description&&y.jsx("p",{className:"text-slate-300 text-lg",children:w.description})]})})}),y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[y.jsxs("div",{className:"lg:col-span-2",children:[y.jsxs("div",{className:"card p-6",children:[y.jsx("h2",{className:"text-xl font-bold text-slate-100 mb-4",children:"README.md"}),j?y.jsx("div",{className:"flex items-center justify-center py-12",children:y.jsx("div",{className:"w-6 h-6 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"})}):N?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:`prose prose-invert max-w-none ${f?"":"max-h-[300px] overflow-hidden relative"}`,children:[!f&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-20 bg-gradient-to-t from-slate-900 to-transparent pointer-events-none"}),y.jsx(Y1,{remarkPlugins:[nS],className:"markdown-content",components:{a:({node:ie,...U})=>y.jsx("a",{...U,className:"text-primary-400 hover:text-primary-300",target:"_blank",rel:"noopener noreferrer"}),code:({node:ie,className:U,children:se,...ce})=>!U?y.jsx("code",{className:"px-1.5 py-0.5 bg-slate-800 rounded text-sm text-primary-300",...ce,children:se}):y.jsx("code",{className:"block p-4 bg-slate-900 rounded-lg overflow-x-auto text-sm",...ce,children:se})},children:N})]}),!f&&y.jsx("button",{onClick:()=>m(!0),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Expand full README →"}),f&&y.jsx("button",{onClick:()=>m(!1),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Collapse README ↑"})]}):y.jsxs("div",{className:"text-center py-12 text-slate-500",children:[y.jsx("p",{className:"mb-2",children:"📄 No README available for this version"}),y.jsx("p",{className:"text-sm text-slate-600",children:"No README file exists in this package version"})]})]}),C&&y.jsxs("div",{className:"card p-6 mt-6",children:[y.jsx("h2",{className:"text-xl font-bold text-slate-100 mb-4",children:"CHANGELOG"}),G?y.jsx("div",{className:"flex items-center justify-center py-12",children:y.jsx("div",{className:"w-6 h-6 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"})}):O?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:`prose prose-invert max-w-none ${d?"":"max-h-[300px] overflow-hidden relative"}`,children:[!d&&y.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-20 bg-gradient-to-t from-slate-900 to-transparent pointer-events-none"}),y.jsx(Y1,{remarkPlugins:[nS],className:"markdown-content",components:{a:({node:ie,...U})=>y.jsx("a",{...U,className:"text-primary-400 hover:text-primary-300",target:"_blank",rel:"noopener noreferrer"}),code:({node:ie,className:U,children:se,...ce})=>!U?y.jsx("code",{className:"px-1.5 py-0.5 bg-slate-800 rounded text-sm text-primary-300",...ce,children:se}):y.jsx("code",{className:"block p-4 bg-slate-900 rounded-lg overflow-x-auto text-sm",...ce,children:se})},children:O})]}),!d&&y.jsx("button",{onClick:()=>p(!0),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Expand full CHANGELOG →"}),d&&y.jsx("button",{onClick:()=>p(!1),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Collapse CHANGELOG ↑"})]}):y.jsxs("div",{className:"text-center py-12 text-slate-500",children:[y.jsx("p",{className:"mb-2",children:"📝 No CHANGELOG available"}),y.jsx("p",{className:"text-sm text-slate-600",children:"No CHANGELOG file exists in this package version"})]})]})]}),y.jsxs("div",{className:"space-y-6",children:[y.jsxs("div",{className:"card p-6",children:[y.jsx("h3",{className:"text-lg font-semibold text-slate-100 mb-4",children:"Get Package"}),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm text-slate-400 mb-2",children:"Install via Composer"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("code",{className:"flex-1 px-3 py-2 bg-slate-900 border border-slate-700 rounded-lg text-sm text-primary-300 font-mono break-all",children:["composer require ",b.name,":",w.version]}),y.jsx(I9,{text:`composer require ${b.name}:${w.version}`})]})]}),y.jsx("div",{className:"pt-2 border-t border-slate-700",children:y.jsx(D9,{distUrl:w.dist_url,version:w.version})})]})]}),y.jsxs("div",{className:"card p-6",children:[y.jsx("h3",{className:"text-lg font-semibold text-slate-100 mb-4",children:"About Package"}),y.jsxs("div",{className:"space-y-4",children:[w.package_type&&y.jsxs("div",{children:[y.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"Type"}),y.jsx("span",{className:"px-3 py-1 text-sm bg-slate-700 text-slate-200 rounded-lg inline-block",children:w.package_type})]}),ne.length>0&&y.jsxs("div",{children:[y.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"License"}),y.jsx("span",{className:"px-3 py-1 text-sm bg-slate-700 text-slate-200 rounded-lg inline-block",children:ne.join(", ")})]}),w.homepage&&y.jsxs("div",{children:[y.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"Homepage"}),y.jsxs("a",{href:w.homepage,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-primary-400 hover:text-primary-300 transition-colors text-sm",children:[y.jsx("span",{children:"🌐"}),y.jsx("span",{children:w.homepage}),y.jsx("span",{className:"text-slate-500",children:"→"})]})]}),y.jsxs("div",{className:"pt-2 border-t border-slate-700 space-y-2",children:[y.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"Statistics"}),L?y.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-500",children:[y.jsx("div",{className:"w-4 h-4 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"}),y.jsx("span",{children:"Loading stats..."})]}):X?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"text-sm",children:[y.jsx("span",{className:"text-slate-400",children:"Downloads: "}),y.jsx("span",{className:"text-slate-200 font-medium",children:X.downloads.toLocaleString()})]}),X.lastDownloadedAt?y.jsxs("div",{className:"text-sm",children:[y.jsx("span",{className:"text-slate-400",children:"Last downloaded: "}),y.jsx("span",{className:"text-slate-200",children:new Date(X.lastDownloadedAt*1e3).toLocaleDateString()})]}):y.jsx("div",{className:"text-sm text-slate-500",children:"Never downloaded"})]}):y.jsx("div",{className:"text-sm text-slate-500",children:"No download statistics available"})]})]})]}),y.jsxs("div",{className:"card p-6",children:[y.jsxs("h3",{className:"text-lg font-semibold text-slate-100 mb-4",children:["Versions (",S.length,")"]}),y.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:S.map(ie=>y.jsx("button",{onClick:()=>v(ie.version),className:`w-full text-left px-3 py-2 rounded-lg transition-colors ${(o||w.version)===ie.version?"bg-primary-500/20 text-primary-400":"bg-slate-800/50 text-slate-300 hover:bg-slate-800"}`,children:y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"font-medium",children:ie.version}),ie.released_at&&y.jsx("span",{className:"text-xs text-slate-500",children:new Date(ie.released_at*1e3).toLocaleDateString()})]})},ie.version))})]})]})]})]})}function L9({onSuccess:e}){const{login:t,authError:i}=Wa(),[a,r]=A.useState(""),[o,s]=A.useState(""),[f,m]=A.useState(""),[d,p]=A.useState(null),[v,b]=A.useState(!1),x=async S=>{S.preventDefault(),d!=="2FA required"&&p(null),b(!0);try{const w=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a,password:o,code:f})}),N=await w.json();w.ok&&N.token?(t(N.token),e()):N.code==="2fa_required"?p("2FA required"):p(N.message||N.error||"Invalid credentials")}catch{p("Failed to connect to server")}finally{b(!1)}};return y.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:y.jsx("div",{className:"max-w-md w-full mx-4",children:y.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8",children:[y.jsxs("div",{className:"text-center mb-8",children:[y.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-orange-500 to-amber-600 mb-4",children:y.jsx(Di,{className:"w-8 h-8 text-white"})}),y.jsx("h1",{className:"text-2xl font-bold text-white",children:"Composer Proxy"}),y.jsx("p",{className:"text-slate-400 mt-1",children:"Sign in to manage your packages"})]}),y.jsxs("form",{onSubmit:x,className:"space-y-5","data-testid":"login-form",children:[i&&y.jsxs("div",{role:"alert","aria-live":"polite","data-testid":"auth-context-error",className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm mb-4",children:["Auth Error: ",i]}),d&&y.jsx("div",{role:"alert","aria-live":"polite","data-testid":"login-error",className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm",children:d}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-slate-300 mb-2",children:"Email"}),y.jsx("input",{id:"email",type:"email",value:a,onChange:S=>r(S.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"admin@example.com",required:!0,"aria-label":"Email address",disabled:v})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-slate-300 mb-2",children:"Password"}),y.jsx("input",{id:"password",type:"password",value:o,onChange:S=>s(S.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"Enter your password",required:!0,"aria-label":"Password",disabled:v})]}),d==="2FA required"&&y.jsxs("div",{className:"animate-in fade-in slide-in-from-top-2 duration-300",children:[y.jsx("label",{htmlFor:"code",className:"block text-sm font-medium text-slate-300 mb-2",children:"2FA Code"}),y.jsx("input",{id:"code",type:"text",value:f,onChange:S=>m(S.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"000000",required:!0,autoFocus:!0,maxLength:6,pattern:"\\d{6}","aria-label":"2FA Code",disabled:v})]}),y.jsx("button",{type:"submit",disabled:v||!a||!o||d==="2FA required"&&f.length!==6,className:"w-full py-3 px-4 bg-gradient-to-r from-orange-500 to-amber-600 hover:from-orange-600 hover:to-amber-700 text-white font-semibold rounded-lg shadow-lg shadow-orange-500/25 transition disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Sign in",children:v?"Signing in...":"Sign In"})]})]})})})}function M9(){const{token:e}=gS(),t=fp(),[i,a]=A.useState(""),[r,o]=A.useState(""),[s,f]=A.useState(""),[m,d]=A.useState(!1),[p]=HT(),v=p.get("token"),b=e||v,x=async S=>{if(S.preventDefault(),!b){f("Invalid invite link");return}if(i!==r){f("Passwords do not match");return}if(i.length<8){f("Password must be at least 8 characters");return}d(!0),f("");try{await M6(b,i),t("/login",{state:{message:"Password set successfully! Please login."}})}catch(w){f(w.message||"Failed to accept invite")}finally{d(!1)}};return b?y.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:y.jsx("div",{className:"max-w-md w-full mx-4",children:y.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8",children:[y.jsxs("div",{className:"text-center mb-8",children:[y.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-orange-500 to-amber-600 mb-4",children:y.jsx(Di,{className:"w-8 h-8 text-white"})}),y.jsx("h1",{className:"text-2xl font-bold text-white",children:"Welcome"}),y.jsx("p",{className:"text-slate-400 mt-1",children:"Set your password to accept the invitation"})]}),y.jsxs("form",{className:"space-y-5",onSubmit:x,children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-slate-300 mb-2",children:"New Password"}),y.jsx("input",{id:"password",name:"password",type:"password",required:!0,value:i,onChange:S=>a(S.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"Minimum 8 characters",minLength:8})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"confirmPassword",className:"block text-sm font-medium text-slate-300 mb-2",children:"Confirm Password"}),y.jsx("input",{id:"confirmPassword",name:"confirmPassword",type:"password",required:!0,value:r,onChange:S=>o(S.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"Confirm your password"})]}),s&&y.jsx("div",{className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm",children:s}),y.jsx("button",{type:"submit",disabled:m,className:"w-full py-3 px-4 bg-gradient-to-r from-orange-500 to-amber-600 hover:from-orange-600 hover:to-amber-700 text-white font-semibold rounded-lg shadow-lg shadow-orange-500/25 transition disabled:opacity-50 disabled:cursor-not-allowed",children:m?"Setting password...":"Set Password and Login"})]})]})})}):y.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:y.jsx("div",{className:"max-w-md w-full mx-4",children:y.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8 text-center",children:[y.jsx("h2",{className:"text-2xl font-bold text-white mb-2",children:"Invalid Invite Link"}),y.jsx("p",{className:"text-slate-400",children:"Please check the link in your email."})]})})})}function P9({onSuccess:e}){const[t,i]=A.useState(""),[a,r]=A.useState(""),[o,s]=A.useState(null),[f,m]=A.useState(!1),d=async p=>{p.preventDefault(),s(null),m(!0);try{await g6({email:t,password:a}),e()}catch(v){s(v.message||"Failed to complete setup")}finally{m(!1)}};return y.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:y.jsx("div",{className:"max-w-md w-full mx-4",children:y.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8",children:[y.jsxs("div",{className:"text-center mb-8",children:[y.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-green-500 to-emerald-600 mb-4",children:y.jsx(Di,{className:"w-8 h-8 text-white"})}),y.jsx("h1",{className:"text-2xl font-bold text-white",children:"Welcome!"}),y.jsx("p",{className:"text-slate-400 mt-1",children:"Create your Admin account to get started"})]}),y.jsxs("form",{onSubmit:d,className:"space-y-5","data-testid":"setup-form",children:[o&&y.jsx("div",{role:"alert","aria-live":"polite","data-testid":"setup-error",className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm",children:o}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-slate-300 mb-2",children:"Admin Email"}),y.jsx("input",{id:"email",type:"email",value:t,onChange:p=>i(p.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-transparent transition",placeholder:"admin@example.com",required:!0,"aria-label":"Email address"})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-slate-300 mb-2",children:"Create Password"}),y.jsx("input",{id:"password",type:"password",value:a,onChange:p=>r(p.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-transparent transition",placeholder:"Choose a strong password",required:!0,minLength:8,"aria-label":"Password"})]}),y.jsx("button",{type:"submit",disabled:f||!t||!a,className:"w-full py-3 px-4 bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white font-semibold rounded-lg shadow-lg shadow-green-500/25 transition disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Create Account",children:f?"Setting up...":"Create Account"})]})]})})})}function Z9(){const[e,t]=A.useState([]),[i,a]=A.useState(!0),[r,o]=A.useState(null),[s,f]=A.useState(!1),{isAdmin:m}=Wa(),[d,p]=A.useState(""),[v,b]=A.useState("viewer"),[x,S]=A.useState(!1);A.useEffect(()=>{w()},[]);const w=async()=>{try{const C=await C6();t(C)}catch(C){o(C.message)}finally{a(!1)}},N=async C=>{if(window.confirm("Are you sure you want to delete this user?"))try{await D6(C),t(e.filter(O=>O.id!==C))}catch(O){alert(O.message)}},j=async C=>{C.preventDefault(),S(!0);try{await R6({email:d,role:v}),f(!1),p(""),w(),alert("User invited successfully. They will receive an email to set their password.")}catch(O){alert(O.message)}finally{S(!1)}};return i?y.jsx("div",{className:"text-slate-400",children:"Loading users..."}):y.jsxs("div",{className:"space-y-6",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Users"}),y.jsx("p",{className:"text-slate-400",children:"Manage access to the Composer Proxy"})]}),m&&y.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-2 px-4 py-2 bg-primary-600 hover:bg-primary-500 text-white rounded-lg transition",children:[y.jsx(f6,{className:"w-5 h-5"}),"Invite User"]})]}),r&&y.jsx("div",{className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400",children:r}),y.jsx("div",{className:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden",children:y.jsxs("table",{className:"w-full text-left border-collapse",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"bg-slate-800 border-b border-slate-700",children:[y.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"User"}),y.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"Role"}),y.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"Status"}),y.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"Created"}),m&&y.jsx("th",{className:"px-6 py-4 text-right text-sm font-semibold text-slate-300",children:"Actions"})]})}),y.jsx("tbody",{className:"divide-y divide-slate-700",children:e.map(C=>y.jsxs("tr",{className:"hover:bg-slate-800/30 transition",children:[y.jsx("td",{className:"px-6 py-4",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-8 h-8 rounded-full bg-slate-700 flex items-center justify-center",children:y.jsx(Hh,{className:"w-4 h-4 text-slate-400"})}),y.jsxs("div",{children:[y.jsx("div",{className:"text-slate-200 font-medium",children:C.email}),y.jsx("div",{className:"text-xs text-slate-500 font-mono",children:C.id})]})]})}),y.jsx("td",{className:"px-6 py-4",children:y.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-slate-700/50 border border-slate-600 w-fit",children:[y.jsx(Gs,{className:"w-3 h-3 text-primary-400"}),y.jsx("span",{className:"text-xs font-medium text-slate-300 capitalize",children:C.role})]})}),y.jsx("td",{className:"px-6 py-4",children:y.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${C.status==="active"?"bg-green-500/10 text-green-400 border border-green-500/20":"bg-yellow-500/10 text-yellow-400 border border-yellow-500/20"}`,children:C.status})}),y.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:new Date(C.created_at*1e3).toLocaleDateString()}),m&&y.jsx("td",{className:"px-6 py-4 text-right",children:y.jsx("button",{onClick:()=>N(C.id),className:"p-2 text-slate-400 hover:text-red-400 hover:bg-red-500/10 rounded-lg transition",title:"Delete User",children:y.jsx(o6,{className:"w-4 h-4"})})})]},C.id))})]})}),s&&y.jsx("div",{className:"fixed inset-0 bg-slate-900/80 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:y.jsxs("div",{className:"bg-slate-800 border border-slate-700 rounded-xl shadow-2xl max-w-md w-full p-6",children:[y.jsx("h2",{className:"text-xl font-bold text-white mb-4",children:"Invite New User"}),y.jsxs("form",{onSubmit:j,className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Email"}),y.jsxs("div",{className:"relative",children:[y.jsx(JA,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}),y.jsx("input",{type:"email",value:d,onChange:C=>p(C.target.value),className:"w-full bg-slate-900 border border-slate-700 rounded-lg pl-9 pr-4 py-2 text-slate-200 focus:outline-none focus:ring-2 focus:ring-primary-500",placeholder:"user@example.com",required:!0})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Role"}),y.jsxs("select",{value:v,onChange:C=>b(C.target.value),className:"w-full bg-slate-900 border border-slate-700 rounded-lg px-4 py-2 text-slate-200 focus:outline-none focus:ring-2 focus:ring-primary-500",children:[y.jsx("option",{value:"viewer",children:"Viewer"}),y.jsx("option",{value:"admin",children:"Admin"})]})]}),y.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[y.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 text-slate-300 hover:text-white transition",children:"Cancel"}),y.jsx("button",{type:"submit",disabled:x,className:"px-4 py-2 bg-primary-600 hover:bg-primary-500 text-white rounded-lg transition disabled:opacity-50",children:x?"Inviting...":"Invite User"})]})]})]})})]})}function q9(){const[e,t]=A.useState(null),[i,a]=A.useState(!0),[r,o]=A.useState(null),[s,f]=A.useState(""),[m,d]=A.useState(null),[p,v]=A.useState(null),[b,x]=A.useState(!1);A.useEffect(()=>{S()},[]);const S=async()=>{try{const C=Ys(),G=await(await fetch("/api/auth/me",{headers:{Authorization:`Bearer ${C}`}})).json();G.user&&t(G.user)}catch(C){console.error("Failed to fetch user",C)}finally{a(!1)}},w=async()=>{x(!0),v(null);try{const C=await I6();o(C)}catch{v("Failed to start 2FA setup")}finally{x(!1)}},N=async()=>{if(r){x(!0),v(null);try{const C=await U6(r.secret,s);d(C.recoveryCodes),o(null),f(""),await S()}catch{v("Invalid code")}finally{x(!1)}}},j=async()=>{if(confirm("Are you sure you want to disable 2FA? Your account will be less secure.")){x(!0),v(null);try{await L6(),await S()}catch{v("Failed to disable 2FA")}finally{x(!1)}}};return i?y.jsx("div",{className:"p-8 text-center text-slate-400",children:"Loading profile..."}):y.jsxs("div",{className:"space-y-6",children:[y.jsx("div",{className:"flex items-center justify-between",children:y.jsx("h1",{className:"text-2xl font-bold text-slate-100 font-display",children:"My Profile"})}),y.jsxs("div",{className:"bg-slate-800 rounded-lg border border-slate-700 p-6",children:[y.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[y.jsx("div",{className:"w-16 h-16 bg-slate-700 rounded-full flex items-center justify-center text-2xl font-bold text-slate-300",children:e?.email[0].toUpperCase()}),y.jsxs("div",{children:[y.jsx("h2",{className:"text-xl font-semibold text-white",children:e?.email}),y.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-500/10 text-blue-400 border border-blue-500/20 capitalize",children:e?.role})]})]}),y.jsxs("div",{className:"border-t border-slate-700 pt-6",children:[y.jsxs("h3",{className:"text-lg font-medium text-white mb-4 flex items-center gap-2",children:[y.jsx(Gs,{className:"w-5 h-5 text-orange-500"}),"Security"]}),y.jsxs("div",{className:"bg-slate-900/50 rounded-lg p-6 border border-slate-700/50",children:[y.jsxs("div",{className:"flex items-start justify-between mb-4",children:[y.jsxs("div",{children:[y.jsxs("h4",{className:"font-medium text-slate-200 flex items-center gap-2",children:["Two-Factor Authentication (2FA)",e?.two_factor_enabled&&y.jsx("span",{className:"text-xs bg-green-500/10 text-green-400 border border-green-500/20 px-2 py-0.5 rounded-full",children:"Enabled"})]}),y.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Add an extra layer of security to your account by requiring a code from your authenticator app."})]}),!e?.two_factor_enabled&&!r&&y.jsx("button",{onClick:w,disabled:b,className:"px-4 py-2 bg-orange-600 hover:bg-orange-700 text-white rounded-lg text-sm font-medium transition",children:"Enable 2FA"}),e?.two_factor_enabled&&y.jsx("button",{onClick:j,disabled:b,className:"px-4 py-2 bg-red-500/10 hover:bg-red-500/20 text-red-400 border border-red-500/20 rounded-lg text-sm font-medium transition",children:"Disable"})]}),r&&y.jsxs("div",{className:"mt-6 p-4 bg-slate-800 rounded-lg border border-slate-700 animate-in fade-in slide-in-from-top-4",children:[y.jsxs("h5",{className:"font-medium text-white mb-4 flex items-center gap-2",children:[y.jsx(a6,{className:"w-4 h-4"}),"Scan QR Code"]}),y.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsx("div",{className:"bg-white p-2 rounded-lg mb-4",children:y.jsx("img",{src:r.qrCode,alt:"2FA QR Code",className:"w-48 h-48"})}),y.jsx("p",{className:"text-xs text-slate-500 text-center max-w-xs",children:"Scan this code with Google Authenticator, Authy, or 1Password."})]}),y.jsxs("div",{className:"flex flex-col justify-center space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Manual Entry Code"}),y.jsx("code",{className:"block w-full p-2 bg-slate-900 rounded text-slate-300 font-mono text-sm select-all",children:r.secret})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Verification Code"}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("input",{type:"text",value:s,onChange:C=>f(C.target.value),placeholder:"000000",maxLength:6,className:"bg-slate-900 border border-slate-600 rounded px-3 py-2 text-white w-32 focus:ring-2 focus:ring-orange-500 outline-none"}),y.jsx("button",{onClick:N,disabled:s.length!==6||b,className:"px-4 py-2 bg-orange-600 hover:bg-orange-700 text-white rounded font-medium disabled:opacity-50",children:"Verify & Enable"})]}),p&&y.jsx("p",{className:"text-red-400 text-sm mt-2",children:p})]})]})]})]}),m&&y.jsxs("div",{className:"mt-6 p-4 bg-green-500/10 border border-green-500/20 rounded-lg",children:[y.jsxs("div",{className:"flex items-center gap-2 text-green-400 font-medium mb-2",children:[y.jsx(IS,{className:"w-5 h-5"}),"2FA Enabled Successfully!"]}),y.jsx("div",{className:"mb-4 text-slate-300 text-sm",children:"Please save these recovery codes in a secure place. You will need them if you lose access to your authenticator device."}),y.jsx("div",{className:"grid grid-cols-2 gap-2 font-mono text-sm bg-slate-900 p-4 rounded border border-slate-700",children:m.map(C=>y.jsx("div",{className:"text-slate-300 select-all",children:C},C))}),y.jsx("button",{onClick:()=>d(null),className:"mt-4 text-sm text-slate-400 hover:text-white underline",children:"I have saved these codes"})]})]})]})]})]})}function B9(){const{isAuthenticated:e,logout:t}=Wa(),[i,a]=A.useState(null),[r,o]=A.useState(!1),[s,f]=A.useState(!0);if(A.useEffect(()=>{p6().then(({authRequired:p,setupRequired:v})=>{a(p),o(v),f(!1)})},[]),s)return y.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:y.jsx("div",{className:"text-slate-400",children:"Loading..."})});const m=Jn();if(r)return y.jsx(P9,{onSuccess:()=>o(!1)});if(m.pathname.startsWith("/invite/"))return y.jsx(qx,{children:y.jsx(_r,{path:"/invite/:token",element:y.jsx(M9,{})})});if(i&&!e)return y.jsx(L9,{onSuccess:()=>{}});const d=[{path:"/",label:"Dashboard",icon:MA},{path:"/repositories",label:"Repositories",icon:Di},{path:"/tokens",label:"Access Tokens",icon:xp},{path:"/packages",label:"Packages",icon:US},{path:"/users",label:"Users",icon:Hh}];return y.jsxs("div",{className:"min-h-screen",children:[y.jsx("header",{className:"bg-slate-900/90 backdrop-blur-sm border-b border-slate-800 sticky top-0 z-50",children:y.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:y.jsxs("div",{className:"flex items-center justify-between h-16",children:[y.jsxs(La,{to:"/",className:"flex items-center gap-3 hover:opacity-80 transition-opacity",children:[y.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-primary-500 to-accent-600 rounded-lg flex items-center justify-center",children:y.jsx(Di,{className:"w-6 h-6 text-white"})}),y.jsxs("div",{children:[y.jsx("h1",{className:"font-display font-bold text-lg text-slate-100",children:"PACKAGE.broker"}),y.jsx("p",{className:"text-xs text-slate-500",children:"Serverless Edition"})]})]}),y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsxs("nav",{className:"flex items-center gap-1",role:"navigation","aria-label":"Main navigation",children:[d.map(p=>y.jsxs(Uh,{to:p.path,end:p.path==="/","data-testid":`nav-${p.path==="/"?"dashboard":p.path.slice(1)}`,className:({isActive:v})=>`px-4 py-2 rounded-lg font-medium text-sm transition-all duration-200 flex items-center gap-2 ${v?"bg-slate-800 text-primary-400 shadow-lg":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/50"}`,children:[y.jsx(p.icon,{className:"w-5 h-5 flex-shrink-0"}),y.jsx("span",{children:p.label})]},p.path)),y.jsxs("a",{href:"https://package.broker",target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2 rounded-lg font-medium text-sm text-slate-400 hover:text-slate-200 hover:bg-slate-800/50 transition-all duration-200 flex items-center gap-2","data-testid":"nav-about",children:[y.jsx(GA,{className:"w-5 h-5 flex-shrink-0"}),y.jsx("span",{children:"About"})]})]}),e&&y.jsxs("div",{className:"flex items-center gap-2 pl-2 border-l border-slate-700 ml-2",children:[y.jsx(Uh,{to:"/profile",className:({isActive:p})=>`px-3 py-2 text-sm rounded-lg transition flex items-center gap-1 ${p?"text-white bg-slate-800":"text-slate-400 hover:text-slate-200"}`,title:"Profile Settings",children:y.jsx(Hh,{className:"w-4 h-4"})}),y.jsx("button",{onClick:t,className:"px-3 py-2 text-sm text-slate-400 hover:text-red-400 transition flex items-center gap-1",title:"Sign out","aria-label":"Sign out","data-testid":"logout-button",children:y.jsx(XA,{className:"w-4 h-4"})})]})]})]})})}),y.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:y.jsxs(qx,{children:[y.jsx(_r,{path:"/",element:y.jsx(Z6,{})}),y.jsx(_r,{path:"/repositories",element:y.jsx(EI,{})}),y.jsx(_r,{path:"/tokens",element:y.jsx(OI,{})}),y.jsx(_r,{path:"/packages",element:y.jsx(uU,{})}),y.jsx(_r,{path:"/packages/:vendor/:package",element:y.jsx(U9,{})}),y.jsx(_r,{path:"/users",element:y.jsx(Z9,{})}),y.jsx(_r,{path:"/profile",element:y.jsx(q9,{})})]})}),y.jsx("footer",{className:"border-t border-slate-800 mt-16 py-8",children:y.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:y.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[y.jsxs("div",{className:"text-center md:text-left",children:[y.jsx("p",{className:"text-slate-300 font-medium mb-1",children:"PACKAGE.broker"}),y.jsx("p",{className:"text-slate-500 text-sm",children:"A lightweight, self-hosted Composer proxy running on Cloudflare's edge network"})]}),y.jsxs("div",{className:"flex flex-col items-center md:items-end gap-2",children:[y.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[y.jsx("a",{href:"https://github.com/package-broker/server",target:"_blank",rel:"noopener noreferrer",className:"text-slate-400 hover:text-slate-200 transition",children:"GitHub"}),y.jsxs("a",{href:"https://github.com/sponsors/lbajsarowicz",target:"_blank",rel:"noopener noreferrer",className:"text-pink-400 hover:text-pink-300 transition flex items-center gap-1",children:[y.jsx(Fh,{className:"w-4 h-4 fill-current"}),"Sponsor"]})]}),y.jsxs("p",{className:"text-slate-500 text-xs",children:["© ",new Date().getFullYear()," Łukasz Bajsarowicz • Licensed under AGPL-3.0"]})]})]})})})]})}function F9(){return y.jsx($I,{children:y.jsx(B9,{})})}const H9=new xA({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});x2.createRoot(document.getElementById("root")).render(y.jsx(d2.StrictMode,{children:y.jsx(ZT,{children:y.jsx(_A,{client:H9,children:y.jsx(F9,{})})})}));