@chosengeneration/light-code 0.26.0 → 0.33.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.
Files changed (4) hide show
  1. package/dist/cli.js +28042 -34400
  2. package/dist/client/client.js +53 -53
  3. package/dist/server.js +31762 -38133
  4. package/package.json +4 -4
@@ -1,55 +1,55 @@
1
- "use strict";(()=>{var nE=Object.create;var Zf=Object.defineProperty;var iE=Object.getOwnPropertyDescriptor;var rE=Object.getOwnPropertyNames;var oE=Object.getPrototypeOf,aE=Object.prototype.hasOwnProperty;var Qn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bi=(e,t)=>{for(var n in t)Zf(e,n,{get:t[n],enumerable:!0})},lE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of rE(t))!aE.call(e,i)&&i!==n&&Zf(e,i,{get:()=>t[i],enumerable:!(r=iE(t,i))||r.enumerable});return e};var P=(e,t,n)=>(n=e!=null?nE(oE(e)):{},lE(t||!e||!e.__esModule?Zf(n,"default",{value:e,enumerable:!0}):n,e));var o0=Qn(Gc=>{"use strict";var cE=Symbol.for("react.transitional.element"),sE=Symbol.for("react.fragment");function r0(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:cE,type:e,key:r,ref:t!==void 0?t:null,props:n}}Gc.Fragment=sE;Gc.jsx=r0;Gc.jsxs=r0});var ie=Qn((bN,a0)=>{"use strict";a0.exports=o0()});var k_=Qn(ue=>{"use strict";var ty=Symbol.for("react.transitional.element"),bA=Symbol.for("react.portal"),xA=Symbol.for("react.fragment"),SA=Symbol.for("react.strict_mode"),kA=Symbol.for("react.profiler"),_A=Symbol.for("react.consumer"),wA=Symbol.for("react.context"),$A=Symbol.for("react.forward_ref"),zA=Symbol.for("react.suspense"),TA=Symbol.for("react.memo"),g_=Symbol.for("react.lazy"),CA=Symbol.for("react.activity"),f_=Symbol.iterator;function EA(e){return e===null||typeof e!="object"?null:(e=f_&&e[f_]||e["@@iterator"],typeof e=="function"?e:null)}var v_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y_=Object.assign,b_={};function Yo(e,t,n){this.props=e,this.context=t,this.refs=b_,this.updater=n||v_}Yo.prototype.isReactComponent={};Yo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function x_(){}x_.prototype=Yo.prototype;function ny(e,t,n){this.props=e,this.context=t,this.refs=b_,this.updater=n||v_}var iy=ny.prototype=new x_;iy.constructor=ny;y_(iy,Yo.prototype);iy.isPureReactComponent=!0;var m_=Array.isArray;function ey(){}var We={H:null,A:null,T:null,S:null},S_=Object.prototype.hasOwnProperty;function ry(e,t,n){var r=n.ref;return{$$typeof:ty,type:e,key:t,ref:r!==void 0?r:null,props:n}}function DA(e,t){return ry(e.type,t,e.props)}function oy(e){return typeof e=="object"&&e!==null&&e.$$typeof===ty}function IA(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var p_=/\/+/g;function Wv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?IA(""+e.key):t.toString(36)}function AA(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ey,ey):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Go(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ty:case bA:a=!0;break;case g_:return a=e._init,Go(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+Wv(e,0):r,m_(i)?(n="",a!=null&&(n=a.replace(p_,"$&/")+"/"),Go(i,t,n,"",function(u){return u})):i!=null&&(oy(i)&&(i=DA(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(p_,"$&/")+"/")+a)),t.push(i)),1;a=0;var l=r===""?".":r+":";if(m_(e))for(var c=0;c<e.length;c++)r=e[c],o=l+Wv(r,c),a+=Go(r,t,n,o,i);else if(c=EA(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,o=l+Wv(r,c++),a+=Go(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return Go(AA(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Mu(e,t,n){if(e==null)return e;var r=[],i=0;return Go(e,r,"","",function(o){return t.call(n,o,i++)}),r}function jA(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var h_=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},OA={map:Mu,forEach:function(e,t,n){Mu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Mu(e,function(){t++}),t},toArray:function(e){return Mu(e,function(t){return t})||[]},only:function(e){if(!oy(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Activity=CA;ue.Children=OA;ue.Component=Yo;ue.Fragment=xA;ue.Profiler=kA;ue.PureComponent=ny;ue.StrictMode=SA;ue.Suspense=zA;ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=We;ue.__COMPILER_RUNTIME={__proto__:null,c:function(e){return We.H.useMemoCache(e)}};ue.cache=function(e){return function(){return e.apply(null,arguments)}};ue.cacheSignal=function(){return null};ue.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=y_({},e.props),i=e.key;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)!S_.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];r.children=a}return ry(e.type,i,r)};ue.createContext=function(e){return e={$$typeof:wA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:_A,_context:e},e};ue.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)S_.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return ry(e,o,i)};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:$A,render:e}};ue.isValidElement=oy;ue.lazy=function(e){return{$$typeof:g_,_payload:{_status:-1,_result:e},_init:jA}};ue.memo=function(e,t){return{$$typeof:TA,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=We.T,n={};We.T=n;try{var r=e(),i=We.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(ey,h_)}catch(o){h_(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),We.T=t}};ue.unstable_useCacheRefresh=function(){return We.H.useCacheRefresh()};ue.use=function(e){return We.H.use(e)};ue.useActionState=function(e,t,n){return We.H.useActionState(e,t,n)};ue.useCallback=function(e,t){return We.H.useCallback(e,t)};ue.useContext=function(e){return We.H.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e,t){return We.H.useDeferredValue(e,t)};ue.useEffect=function(e,t){return We.H.useEffect(e,t)};ue.useEffectEvent=function(e){return We.H.useEffectEvent(e)};ue.useId=function(){return We.H.useId()};ue.useImperativeHandle=function(e,t,n){return We.H.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return We.H.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return We.H.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return We.H.useMemo(e,t)};ue.useOptimistic=function(e,t){return We.H.useOptimistic(e,t)};ue.useReducer=function(e,t,n){return We.H.useReducer(e,t,n)};ue.useRef=function(e){return We.H.useRef(e)};ue.useState=function(e){return We.H.useState(e)};ue.useSyncExternalStore=function(e,t,n){return We.H.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return We.H.useTransition()};ue.version="19.2.8"});var ge=Qn((e8,__)=>{"use strict";__.exports=k_()});var y$=Qn(rt=>{"use strict";function Yy(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<ed(i,t))e[r]=t,e[n]=i,n=r;else break e}}function ui(e){return e.length===0?null:e[0]}function nd(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>ed(l,n))c<i&&0>ed(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else if(c<i&&0>ed(u,n))e[r]=u,e[c]=n,r=c;else break e}}return t}function ed(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}rt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(s$=performance,rt.unstable_now=function(){return s$.now()}):(qy=Date,u$=qy.now(),rt.unstable_now=function(){return qy.now()-u$});var s$,qy,u$,zi=[],lr=[],Pj=1,Nn=null,Pt=3,Jy=!1,Fl=!1,Vl=!1,Xy=!1,m$=typeof setTimeout=="function"?setTimeout:null,p$=typeof clearTimeout=="function"?clearTimeout:null,d$=typeof setImmediate<"u"?setImmediate:null;function td(e){for(var t=ui(lr);t!==null;){if(t.callback===null)nd(lr);else if(t.startTime<=e)nd(lr),t.sortIndex=t.expirationTime,Yy(zi,t);else break;t=ui(lr)}}function Ky(e){if(Vl=!1,td(e),!Fl)if(ui(zi)!==null)Fl=!0,ua||(ua=!0,sa());else{var t=ui(lr);t!==null&&Qy(Ky,t.startTime-e)}}var ua=!1,ql=-1,h$=5,g$=-1;function v$(){return Xy?!0:!(rt.unstable_now()-g$<h$)}function Hy(){if(Xy=!1,ua){var e=rt.unstable_now();g$=e;var t=!0;try{e:{Fl=!1,Vl&&(Vl=!1,p$(ql),ql=-1),Jy=!0;var n=Pt;try{t:{for(td(e),Nn=ui(zi);Nn!==null&&!(Nn.expirationTime>e&&v$());){var r=Nn.callback;if(typeof r=="function"){Nn.callback=null,Pt=Nn.priorityLevel;var i=r(Nn.expirationTime<=e);if(e=rt.unstable_now(),typeof i=="function"){Nn.callback=i,td(e),t=!0;break t}Nn===ui(zi)&&nd(zi),td(e)}else nd(zi);Nn=ui(zi)}if(Nn!==null)t=!0;else{var o=ui(lr);o!==null&&Qy(Ky,o.startTime-e),t=!1}}break e}finally{Nn=null,Pt=n,Jy=!1}t=void 0}}finally{t?sa():ua=!1}}}var sa;typeof d$=="function"?sa=function(){d$(Hy)}:typeof MessageChannel<"u"?(Gy=new MessageChannel,f$=Gy.port2,Gy.port1.onmessage=Hy,sa=function(){f$.postMessage(null)}):sa=function(){m$(Hy,0)};var Gy,f$;function Qy(e,t){ql=m$(function(){e(rt.unstable_now())},t)}rt.unstable_IdlePriority=5;rt.unstable_ImmediatePriority=1;rt.unstable_LowPriority=4;rt.unstable_NormalPriority=3;rt.unstable_Profiling=null;rt.unstable_UserBlockingPriority=2;rt.unstable_cancelCallback=function(e){e.callback=null};rt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):h$=0<e?Math.floor(1e3/e):5};rt.unstable_getCurrentPriorityLevel=function(){return Pt};rt.unstable_next=function(e){switch(Pt){case 1:case 2:case 3:var t=3;break;default:t=Pt}var n=Pt;Pt=t;try{return e()}finally{Pt=n}};rt.unstable_requestPaint=function(){Xy=!0};rt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Pt;Pt=e;try{return t()}finally{Pt=n}};rt.unstable_scheduleCallback=function(e,t,n){var r=rt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:Pj++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,Yy(lr,e),ui(zi)===null&&e===ui(lr)&&(Vl?(p$(ql),ql=-1):Vl=!0,Qy(Ky,n-r))):(e.sortIndex=i,Yy(zi,e),Fl||Jy||(Fl=!0,ua||(ua=!0,sa()))),e};rt.unstable_shouldYield=v$;rt.unstable_wrapCallback=function(e){var t=Pt;return function(){var n=Pt;Pt=t;try{return e.apply(this,arguments)}finally{Pt=n}}}});var x$=Qn((iL,b$)=>{"use strict";b$.exports=y$()});var k$=Qn(Qt=>{"use strict";var Fj=ge();function S$(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function cr(){}var Kt={d:{f:cr,r:function(){throw Error(S$(522))},D:cr,C:cr,L:cr,m:cr,X:cr,S:cr,M:cr},p:0,findDOMNode:null},Vj=Symbol.for("react.portal");function qj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vj,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Hl=Fj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function id(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Kt;Qt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(S$(299));return qj(e,t,null,n)};Qt.flushSync=function(e){var t=Hl.T,n=Kt.p;try{if(Hl.T=null,Kt.p=2,e)return e()}finally{Hl.T=t,Kt.p=n,Kt.d.f()}};Qt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Kt.d.C(e,t))};Qt.prefetchDNS=function(e){typeof e=="string"&&Kt.d.D(e)};Qt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=id(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Kt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&Kt.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Qt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=id(t.as,t.crossOrigin);Kt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Kt.d.M(e)};Qt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=id(n,t.crossOrigin);Kt.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Qt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=id(t.as,t.crossOrigin);Kt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Kt.d.m(e)};Qt.requestFormReset=function(e){Kt.d.r(e)};Qt.unstable_batchedUpdates=function(e,t){return e(t)};Qt.useFormState=function(e,t,n){return Hl.H.useFormState(e,t,n)};Qt.useFormStatus=function(){return Hl.H.useHostTransitionStatus()};Qt.version="19.2.8"});var $$=Qn((oL,w$)=>{"use strict";function _$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_$)}catch(e){console.error(e)}}_$(),w$.exports=k$()});var R2=Qn(Ef=>{"use strict";var _t=x$(),Kz=ge(),Hj=$$();function D(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Qz(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ac(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Wz(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eT(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function z$(e){if(Ac(e)!==e)throw Error(D(188))}function Gj(e){var t=e.alternate;if(!t){if(t=Ac(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return z$(i),e;if(o===r)return z$(i),t;o=o.sibling}throw Error(D(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function tT(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=tT(e),t!==null)return t;e=e.sibling}return null}var nt=Object.assign,Yj=Symbol.for("react.element"),rd=Symbol.for("react.transitional.element"),ec=Symbol.for("react.portal"),ga=Symbol.for("react.fragment"),nT=Symbol.for("react.strict_mode"),Ab=Symbol.for("react.profiler"),iT=Symbol.for("react.consumer"),Oi=Symbol.for("react.context"),Tx=Symbol.for("react.forward_ref"),jb=Symbol.for("react.suspense"),Ob=Symbol.for("react.suspense_list"),Cx=Symbol.for("react.memo"),sr=Symbol.for("react.lazy"),Ub=Symbol.for("react.activity"),Jj=Symbol.for("react.memo_cache_sentinel"),T$=Symbol.iterator;function Gl(e){return e===null||typeof e!="object"?null:(e=T$&&e[T$]||e["@@iterator"],typeof e=="function"?e:null)}var Xj=Symbol.for("react.client.reference");function Nb(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xj?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ga:return"Fragment";case Ab:return"Profiler";case nT:return"StrictMode";case jb:return"Suspense";case Ob:return"SuspenseList";case Ub:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ec:return"Portal";case Oi:return e.displayName||"Context";case iT:return(e._context.displayName||"Context")+".Consumer";case Tx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cx:return t=e.displayName||null,t!==null?t:Nb(e.type)||"Memo";case sr:t=e._payload,e=e._init;try{return Nb(e(t))}catch{}}return null}var tc=Array.isArray,oe=Kz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ie=Hj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qr={pending:!1,data:null,method:null,action:null},Rb=[],va=-1;function hi(e){return{current:e}}function Tt(e){0>va||(e.current=Rb[va],Rb[va]=null,va--)}function Ke(e,t){va++,Rb[va]=e.current,e.current=t}var pi=hi(null),yc=hi(null),xr=hi(null),Rd=hi(null);function Md(e,t){switch(Ke(xr,t),Ke(yc,e),Ke(pi,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Oz(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Oz(t),e=_2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Tt(pi),Ke(pi,e)}function Ua(){Tt(pi),Tt(yc),Tt(xr)}function Mb(e){e.memoizedState!==null&&Ke(Rd,e);var t=pi.current,n=_2(t,e.type);t!==n&&(Ke(yc,e),Ke(pi,n))}function Bd(e){yc.current===e&&(Tt(pi),Tt(yc)),Rd.current===e&&(Tt(Rd),Ec._currentValue=Qr)}var Wy,C$;function Yr(e){if(Wy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wy=t&&t[1]||"",C$=-1<n.stack.indexOf(`
1
+ "use strict";(()=>{var jE=Object.create;var am=Object.defineProperty;var OE=Object.getOwnPropertyDescriptor;var UE=Object.getOwnPropertyNames;var NE=Object.getPrototypeOf,RE=Object.prototype.hasOwnProperty;var oi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$i=(e,t)=>{for(var n in t)am(e,n,{get:t[n],enumerable:!0})},ME=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UE(t))!RE.call(e,i)&&i!==n&&am(e,i,{get:()=>t[i],enumerable:!(r=OE(t,i))||r.enumerable});return e};var M=(e,t,n)=>(n=e!=null?jE(NE(e)):{},ME(t||!e||!e.__esModule?am(n,"default",{value:e,enumerable:!0}):n,e));var ES=oi(fc=>{"use strict";var BE=Symbol.for("react.transitional.element"),ZE=Symbol.for("react.fragment");function CS(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:BE,type:e,key:r,ref:t!==void 0?t:null,props:n}}fc.Fragment=ZE;fc.jsx=CS;fc.jsxs=CS});var oe=oi((QN,IS)=>{"use strict";IS.exports=ES()});var H_=oi(me=>{"use strict";var Sv=Symbol.for("react.transitional.element"),XA=Symbol.for("react.portal"),KA=Symbol.for("react.fragment"),WA=Symbol.for("react.strict_mode"),QA=Symbol.for("react.profiler"),ej=Symbol.for("react.consumer"),tj=Symbol.for("react.context"),nj=Symbol.for("react.forward_ref"),ij=Symbol.for("react.suspense"),rj=Symbol.for("react.memo"),Z_=Symbol.for("react.lazy"),oj=Symbol.for("react.activity"),N_=Symbol.iterator;function aj(e){return e===null||typeof e!="object"?null:(e=N_&&e[N_]||e["@@iterator"],typeof e=="function"?e:null)}var L_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P_=Object.assign,F_={};function sa(e,t,n){this.props=e,this.context=t,this.refs=F_,this.updater=n||L_}sa.prototype.isReactComponent={};sa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function V_(){}V_.prototype=sa.prototype;function kv(e,t,n){this.props=e,this.context=t,this.refs=F_,this.updater=n||L_}var _v=kv.prototype=new V_;_v.constructor=kv;P_(_v,sa.prototype);_v.isPureReactComponent=!0;var R_=Array.isArray;function xv(){}var et={H:null,A:null,T:null,S:null},q_=Object.prototype.hasOwnProperty;function wv(e,t,n){var r=n.ref;return{$$typeof:Sv,type:e,key:t,ref:r!==void 0?r:null,props:n}}function lj(e,t){return wv(e.type,t,e.props)}function $v(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sv}function sj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var M_=/\/+/g;function bv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sj(""+e.key):t.toString(36)}function cj(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(xv,xv):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function la(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Sv:case XA:a=!0;break;case Z_:return a=e._init,la(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+bv(e,0):r,R_(i)?(n="",a!=null&&(n=a.replace(M_,"$&/")+"/"),la(i,t,n,"",function(u){return u})):i!=null&&($v(i)&&(i=lj(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(M_,"$&/")+"/")+a)),t.push(i)),1;a=0;var l=r===""?".":r+":";if(R_(e))for(var s=0;s<e.length;s++)r=e[s],o=l+bv(r,s),a+=la(r,t,n,o,i);else if(s=aj(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,o=l+bv(r,s++),a+=la(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return la(cj(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function id(e,t,n){if(e==null)return e;var r=[],i=0;return la(e,r,"","",function(o){return t.call(n,o,i++)}),r}function uj(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var B_=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dj={map:id,forEach:function(e,t,n){id(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return id(e,function(){t++}),t},toArray:function(e){return id(e,function(t){return t})||[]},only:function(e){if(!$v(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};me.Activity=oj;me.Children=dj;me.Component=sa;me.Fragment=KA;me.Profiler=QA;me.PureComponent=kv;me.StrictMode=WA;me.Suspense=ij;me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et;me.__COMPILER_RUNTIME={__proto__:null,c:function(e){return et.H.useMemoCache(e)}};me.cache=function(e){return function(){return e.apply(null,arguments)}};me.cacheSignal=function(){return null};me.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=P_({},e.props),i=e.key;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)!q_.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];r.children=a}return wv(e.type,i,r)};me.createContext=function(e){return e={$$typeof:tj,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ej,_context:e},e};me.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)q_.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return wv(e,o,i)};me.createRef=function(){return{current:null}};me.forwardRef=function(e){return{$$typeof:nj,render:e}};me.isValidElement=$v;me.lazy=function(e){return{$$typeof:Z_,_payload:{_status:-1,_result:e},_init:uj}};me.memo=function(e,t){return{$$typeof:rj,type:e,compare:t===void 0?null:t}};me.startTransition=function(e){var t=et.T,n={};et.T=n;try{var r=e(),i=et.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(xv,B_)}catch(o){B_(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),et.T=t}};me.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()};me.use=function(e){return et.H.use(e)};me.useActionState=function(e,t,n){return et.H.useActionState(e,t,n)};me.useCallback=function(e,t){return et.H.useCallback(e,t)};me.useContext=function(e){return et.H.useContext(e)};me.useDebugValue=function(){};me.useDeferredValue=function(e,t){return et.H.useDeferredValue(e,t)};me.useEffect=function(e,t){return et.H.useEffect(e,t)};me.useEffectEvent=function(e){return et.H.useEffectEvent(e)};me.useId=function(){return et.H.useId()};me.useImperativeHandle=function(e,t,n){return et.H.useImperativeHandle(e,t,n)};me.useInsertionEffect=function(e,t){return et.H.useInsertionEffect(e,t)};me.useLayoutEffect=function(e,t){return et.H.useLayoutEffect(e,t)};me.useMemo=function(e,t){return et.H.useMemo(e,t)};me.useOptimistic=function(e,t){return et.H.useOptimistic(e,t)};me.useReducer=function(e,t,n){return et.H.useReducer(e,t,n)};me.useRef=function(e){return et.H.useRef(e)};me.useState=function(e){return et.H.useState(e)};me.useSyncExternalStore=function(e,t,n){return et.H.useSyncExternalStore(e,t,n)};me.useTransition=function(){return et.H.useTransition()};me.version="19.2.8"});var he=oi((O8,G_)=>{"use strict";G_.exports=H_()});var H$=oi(ot=>{"use strict";function pb(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<bd(i,t))e[r]=t,e[n]=i,n=r;else break e}}function yi(e){return e.length===0?null:e[0]}function Sd(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,l=e[a],s=a+1,u=e[s];if(0>bd(l,n))s<i&&0>bd(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[a]=n,r=a);else if(s<i&&0>bd(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function bd(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}ot.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(R$=performance,ot.unstable_now=function(){return R$.now()}):(fb=Date,M$=fb.now(),ot.unstable_now=function(){return fb.now()-M$});var R$,fb,M$,Oi=[],vr=[],kO=1,Ln=null,Ht=3,gb=!1,ls=!1,ss=!1,yb=!1,L$=typeof setTimeout=="function"?setTimeout:null,P$=typeof clearTimeout=="function"?clearTimeout:null,B$=typeof setImmediate<"u"?setImmediate:null;function xd(e){for(var t=yi(vr);t!==null;){if(t.callback===null)Sd(vr);else if(t.startTime<=e)Sd(vr),t.sortIndex=t.expirationTime,pb(Oi,t);else break;t=yi(vr)}}function vb(e){if(ss=!1,xd(e),!ls)if(yi(Oi)!==null)ls=!0,za||(za=!0,$a());else{var t=yi(vr);t!==null&&bb(vb,t.startTime-e)}}var za=!1,cs=-1,F$=5,V$=-1;function q$(){return yb?!0:!(ot.unstable_now()-V$<F$)}function mb(){if(yb=!1,za){var e=ot.unstable_now();V$=e;var t=!0;try{e:{ls=!1,ss&&(ss=!1,P$(cs),cs=-1),gb=!0;var n=Ht;try{t:{for(xd(e),Ln=yi(Oi);Ln!==null&&!(Ln.expirationTime>e&&q$());){var r=Ln.callback;if(typeof r=="function"){Ln.callback=null,Ht=Ln.priorityLevel;var i=r(Ln.expirationTime<=e);if(e=ot.unstable_now(),typeof i=="function"){Ln.callback=i,xd(e),t=!0;break t}Ln===yi(Oi)&&Sd(Oi),xd(e)}else Sd(Oi);Ln=yi(Oi)}if(Ln!==null)t=!0;else{var o=yi(vr);o!==null&&bb(vb,o.startTime-e),t=!1}}break e}finally{Ln=null,Ht=n,gb=!1}t=void 0}}finally{t?$a():za=!1}}}var $a;typeof B$=="function"?$a=function(){B$(mb)}:typeof MessageChannel<"u"?(hb=new MessageChannel,Z$=hb.port2,hb.port1.onmessage=mb,$a=function(){Z$.postMessage(null)}):$a=function(){L$(mb,0)};var hb,Z$;function bb(e,t){cs=L$(function(){e(ot.unstable_now())},t)}ot.unstable_IdlePriority=5;ot.unstable_ImmediatePriority=1;ot.unstable_LowPriority=4;ot.unstable_NormalPriority=3;ot.unstable_Profiling=null;ot.unstable_UserBlockingPriority=2;ot.unstable_cancelCallback=function(e){e.callback=null};ot.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F$=0<e?Math.floor(1e3/e):5};ot.unstable_getCurrentPriorityLevel=function(){return Ht};ot.unstable_next=function(e){switch(Ht){case 1:case 2:case 3:var t=3;break;default:t=Ht}var n=Ht;Ht=t;try{return e()}finally{Ht=n}};ot.unstable_requestPaint=function(){yb=!0};ot.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ht;Ht=e;try{return t()}finally{Ht=n}};ot.unstable_scheduleCallback=function(e,t,n){var r=ot.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:kO++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,pb(vr,e),yi(Oi)===null&&e===yi(vr)&&(ss?(P$(cs),cs=-1):ss=!0,bb(vb,n-r))):(e.sortIndex=i,pb(Oi,e),ls||gb||(ls=!0,za||(za=!0,$a()))),e};ot.unstable_shouldYield=q$;ot.unstable_wrapCallback=function(e){var t=Ht;return function(){var n=Ht;Ht=t;try{return e.apply(this,arguments)}finally{Ht=n}}}});var Y$=oi((oP,G$)=>{"use strict";G$.exports=H$()});var X$=oi(tn=>{"use strict";var _O=he();function J$(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function br(){}var en={d:{f:br,r:function(){throw Error(J$(522))},D:br,C:br,L:br,m:br,X:br,S:br,M:br},p:0,findDOMNode:null},wO=Symbol.for("react.portal");function $O(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wO,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var us=_O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function kd(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=en;tn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(J$(299));return $O(e,t,null,n)};tn.flushSync=function(e){var t=us.T,n=en.p;try{if(us.T=null,en.p=2,e)return e()}finally{us.T=t,en.p=n,en.d.f()}};tn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,en.d.C(e,t))};tn.prefetchDNS=function(e){typeof e=="string"&&en.d.D(e)};tn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=kd(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?en.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&en.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};tn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=kd(t.as,t.crossOrigin);en.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&en.d.M(e)};tn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=kd(n,t.crossOrigin);en.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};tn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=kd(t.as,t.crossOrigin);en.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else en.d.m(e)};tn.requestFormReset=function(e){en.d.r(e)};tn.unstable_batchedUpdates=function(e,t){return e(t)};tn.useFormState=function(e,t,n){return us.H.useFormState(e,t,n)};tn.useFormStatus=function(){return us.H.useHostTransitionStatus()};tn.version="19.2.8"});var Q$=oi((lP,W$)=>{"use strict";function K$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(K$)}catch(e){console.error(e)}}K$(),W$.exports=X$()});var d6=oi(Yf=>{"use strict";var $t=Y$(),$T=he(),zO=Q$();function I(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zT(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function TT(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function CT(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ez(e){if(Xs(e)!==e)throw Error(I(188))}function TO(e){var t=e.alternate;if(!t){if(t=Xs(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ez(i),e;if(o===r)return ez(i),t;o=o.sibling}throw Error(I(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function ET(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ET(e),t!==null)return t;e=e.sibling}return null}var rt=Object.assign,CO=Symbol.for("react.element"),_d=Symbol.for("react.transitional.element"),vs=Symbol.for("react.portal"),Aa=Symbol.for("react.fragment"),IT=Symbol.for("react.strict_mode"),Qb=Symbol.for("react.profiler"),DT=Symbol.for("react.consumer"),Pi=Symbol.for("react.context"),Yx=Symbol.for("react.forward_ref"),ex=Symbol.for("react.suspense"),tx=Symbol.for("react.suspense_list"),Jx=Symbol.for("react.memo"),xr=Symbol.for("react.lazy"),nx=Symbol.for("react.activity"),EO=Symbol.for("react.memo_cache_sentinel"),tz=Symbol.iterator;function ds(e){return e===null||typeof e!="object"?null:(e=tz&&e[tz]||e["@@iterator"],typeof e=="function"?e:null)}var IO=Symbol.for("react.client.reference");function ix(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===IO?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Aa:return"Fragment";case Qb:return"Profiler";case IT:return"StrictMode";case ex:return"Suspense";case tx:return"SuspenseList";case nx:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case vs:return"Portal";case Pi:return e.displayName||"Context";case DT:return(e._context.displayName||"Context")+".Consumer";case Yx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jx:return t=e.displayName||null,t!==null?t:ix(e.type)||"Memo";case xr:t=e._payload,e=e._init;try{return ix(e(t))}catch{}}return null}var bs=Array.isArray,ce=$T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=zO.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ho={pending:!1,data:null,method:null,action:null},rx=[],ja=-1;function ki(e){return{current:e}}function It(e){0>ja||(e.current=rx[ja],rx[ja]=null,ja--)}function We(e,t){ja++,rx[ja]=e.current,e.current=t}var Si=ki(null),Ns=ki(null),Dr=ki(null),nf=ki(null);function rf(e,t){switch(We(Dr,t),We(Ns,e),We(Si,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sT(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sT(t),e=K4(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}It(Si),We(Si,e)}function Ka(){It(Si),It(Ns),It(Dr)}function ox(e){e.memoizedState!==null&&We(nf,e);var t=Si.current,n=K4(t,e.type);t!==n&&(We(Ns,e),We(Si,n))}function of(e){Ns.current===e&&(It(Si),It(Ns)),nf.current===e&&(It(nf),Gs._currentValue=ho)}var xb,nz;function co(e){if(xb===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xb=t&&t[1]||"",nz=-1<n.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Wy+e+C$}var eb=!1;function tb(e,t){if(!e||eb)return"";eb=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(f){var p=f}Reflect.construct(e,[],m)}else{try{m.call()}catch(f){p=f}e.call(m.prototype)}}else{try{throw Error()}catch(f){p=f}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(f){if(f&&p&&typeof f.stack=="string")return[f.stack,p.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var c=a.split(`
3
+ `+xb+e+nz}var Sb=!1;function kb(e,t){if(!e||Sb)return"";Sb=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(f){var h=f}Reflect.construct(e,[],m)}else{try{m.call()}catch(f){h=f}e.call(m.prototype)}}else{try{throw Error()}catch(f){h=f}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(f){if(f&&h&&typeof f.stack=="string")return[f.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var s=a.split(`
4
4
  `),u=l.split(`
5
- `);for(i=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===c.length||i===u.length)for(r=c.length-1,i=u.length-1;1<=r&&0<=i&&c[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==u[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==u[i]){var d=`
6
- `+c[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=i);break}}}finally{eb=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Yr(n):""}function Kj(e,t){switch(e.tag){case 26:case 27:case 5:return Yr(e.type);case 16:return Yr("Lazy");case 13:return e.child!==t&&t!==null?Yr("Suspense Fallback"):Yr("Suspense");case 19:return Yr("SuspenseList");case 0:case 15:return tb(e.type,!1);case 11:return tb(e.type.render,!1);case 1:return tb(e.type,!0);case 31:return Yr("Activity");default:return""}}function E$(e){try{var t="",n=null;do t+=Kj(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
5
+ `);for(i=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===s.length||i===u.length)for(r=s.length-1,i=u.length-1;1<=r&&0<=i&&s[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(s[r]!==u[i]){if(r!==1||i!==1)do if(r--,i--,0>i||s[r]!==u[i]){var d=`
6
+ `+s[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=i);break}}}finally{Sb=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?co(n):""}function DO(e,t){switch(e.tag){case 26:case 27:case 5:return co(e.type);case 16:return co("Lazy");case 13:return e.child!==t&&t!==null?co("Suspense Fallback"):co("Suspense");case 19:return co("SuspenseList");case 0:case 15:return kb(e.type,!1);case 11:return kb(e.type.render,!1);case 1:return kb(e.type,!0);case 31:return co("Activity");default:return""}}function iz(e){try{var t="",n=null;do t+=DO(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
7
7
  Error generating stack: `+r.message+`
8
- `+r.stack}}var Bb=Object.prototype.hasOwnProperty,Ex=_t.unstable_scheduleCallback,nb=_t.unstable_cancelCallback,Qj=_t.unstable_shouldYield,Wj=_t.unstable_requestPaint,_n=_t.unstable_now,eO=_t.unstable_getCurrentPriorityLevel,rT=_t.unstable_ImmediatePriority,oT=_t.unstable_UserBlockingPriority,Zd=_t.unstable_NormalPriority,tO=_t.unstable_LowPriority,aT=_t.unstable_IdlePriority,nO=_t.log,iO=_t.unstable_setDisableYieldValue,jc=null,wn=null;function hr(e){if(typeof nO=="function"&&iO(e),wn&&typeof wn.setStrictMode=="function")try{wn.setStrictMode(jc,e)}catch{}}var $n=Math.clz32?Math.clz32:aO,rO=Math.log,oO=Math.LN2;function aO(e){return e>>>=0,e===0?32:31-(rO(e)/oO|0)|0}var od=256,ad=262144,ld=4194304;function Jr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mf(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~o,r!==0?i=Jr(r):(a&=l,a!==0?i=Jr(a):n||(n=l&~e,n!==0&&(i=Jr(n))))):(l=r&~o,l!==0?i=Jr(l):a!==0?i=Jr(a):n||(n=r&~e,n!==0&&(i=Jr(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Oc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lO(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lT(){var e=ld;return ld<<=1,(ld&62914560)===0&&(ld=4194304),e}function ib(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Uc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cO(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var d=31-$n(n),m=1<<d;l[d]=0,c[d]=-1;var p=u[d];if(p!==null)for(u[d]=null,d=0;d<p.length;d++){var f=p[d];f!==null&&(f.lane&=-536870913)}n&=~m}r!==0&&cT(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function cT(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-$n(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function sT(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function uT(e,t){var n=t&-t;return n=(n&42)!==0?1:Dx(n),(n&(e.suspendedLanes|t))!==0?0:n}function Dx(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ix(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dT(){var e=Ie.p;return e!==0?e:(e=window.event,e===void 0?32:O2(e.type))}function D$(e,t){var n=Ie.p;try{return Ie.p=e,t()}finally{Ie.p=n}}var jr=Math.random().toString(36).slice(2),jt="__reactFiber$"+jr,dn="__reactProps$"+jr,Ha="__reactContainer$"+jr,Zb="__reactEvents$"+jr,sO="__reactListeners$"+jr,uO="__reactHandles$"+jr,I$="__reactResources$"+jr,Nc="__reactMarker$"+jr;function Ax(e){delete e[jt],delete e[dn],delete e[Zb],delete e[sO],delete e[uO]}function ya(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ha]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bz(e);e!==null;){if(n=e[jt])return n;e=Bz(e)}return t}e=n,n=e.parentNode}return null}function Ga(e){if(e=e[jt]||e[Ha]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(D(33))}function Ca(e){var t=e[I$];return t||(t=e[I$]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function zt(e){e[Nc]=!0}var fT=new Set,mT={};function co(e,t){Na(e,t),Na(e+"Capture",t)}function Na(e,t){for(mT[e]=t,e=0;e<t.length;e++)fT.add(t[e])}var dO=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]*$"),A$={},j$={};function fO(e){return Bb.call(j$,e)?!0:Bb.call(A$,e)?!1:dO.test(e)?j$[e]=!0:(A$[e]=!0,!1)}function kd(e,t,n){if(fO(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function cd(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ti(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mO(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lb(e){if(!e._valueTracker){var t=pT(e)?"checked":"value";e._valueTracker=mO(e,t,""+e[t])}}function hT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ld(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var pO=/[\n"\\]/g;function Ln(e){return e.replace(pO,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pb(e,t,n,r,i,o,a,l){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mn(t)):e.value!==""+Mn(t)&&(e.value=""+Mn(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?Fb(e,a,Mn(t)):n!=null?Fb(e,a,Mn(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Mn(l):e.removeAttribute("name")}function gT(e,t,n,r,i,o,a,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Lb(e);return}n=n!=null?""+Mn(n):"",t=t!=null?""+Mn(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),Lb(e)}function Fb(e,t,n){t==="number"&&Ld(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ea(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Mn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function vT(e,t,n){if(t!=null&&(t=""+Mn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Mn(n):""}function yT(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(D(92));if(tc(r)){if(1<r.length)throw Error(D(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Mn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Lb(e)}function Ra(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hO=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 O$(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||hO.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function bT(e,t,n){if(t!=null&&typeof t!="object")throw Error(D(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&O$(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&O$(e,o,t[o])}function jx(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gO=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"]]),vO=/^[\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 _d(e){return vO.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ui(){}var Vb=null;function Ox(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ba=null,Da=null;function U$(e){var t=Ga(e);if(t&&(e=t.stateNode)){var n=e[dn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pb(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ln(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[dn]||null;if(!i)throw Error(D(90));Pb(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&hT(r)}break e;case"textarea":vT(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ea(e,!!n.multiple,t,!1)}}}var rb=!1;function xT(e,t,n){if(rb)return e(t,n);rb=!0;try{var r=e(t);return r}finally{if(rb=!1,(ba!==null||Da!==null)&&($f(),ba&&(t=ba,e=Da,Da=ba=null,U$(t),e)))for(t=0;t<e.length;t++)U$(e[t])}}function bc(e,t){var n=e.stateNode;if(n===null)return null;var r=n[dn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Zi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qb=!1;if(Zi)try{da={},Object.defineProperty(da,"passive",{get:function(){qb=!0}}),window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{qb=!1}var da,gr=null,Ux=null,wd=null;function ST(){if(wd)return wd;var e,t=Ux,n=t.length,r,i="value"in gr?gr.value:gr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return wd=i.slice(e,1<r?1-r:void 0)}function $d(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function sd(){return!0}function N$(){return!1}function fn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?sd:N$,this.isPropagationStopped=N$,this}return nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=sd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=sd)},persist:function(){},isPersistent:sd}),t}var so={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pf=fn(so),Rc=nt({},so,{view:0,detail:0}),yO=fn(Rc),ob,ab,Yl,hf=nt({},Rc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nx,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yl&&(Yl&&e.type==="mousemove"?(ob=e.screenX-Yl.screenX,ab=e.screenY-Yl.screenY):ab=ob=0,Yl=e),ob)},movementY:function(e){return"movementY"in e?e.movementY:ab}}),R$=fn(hf),bO=nt({},hf,{dataTransfer:0}),xO=fn(bO),SO=nt({},Rc,{relatedTarget:0}),lb=fn(SO),kO=nt({},so,{animationName:0,elapsedTime:0,pseudoElement:0}),_O=fn(kO),wO=nt({},so,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$O=fn(wO),zO=nt({},so,{data:0}),M$=fn(zO),TO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CO={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"},EO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DO(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=EO[e])?!!t[e]:!1}function Nx(){return DO}var IO=nt({},Rc,{key:function(e){if(e.key){var t=TO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$d(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?CO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nx,charCode:function(e){return e.type==="keypress"?$d(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$d(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AO=fn(IO),jO=nt({},hf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),B$=fn(jO),OO=nt({},Rc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nx}),UO=fn(OO),NO=nt({},so,{propertyName:0,elapsedTime:0,pseudoElement:0}),RO=fn(NO),MO=nt({},hf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),BO=fn(MO),ZO=nt({},so,{newState:0,oldState:0}),LO=fn(ZO),PO=[9,13,27,32],Rx=Zi&&"CompositionEvent"in window,oc=null;Zi&&"documentMode"in document&&(oc=document.documentMode);var FO=Zi&&"TextEvent"in window&&!oc,kT=Zi&&(!Rx||oc&&8<oc&&11>=oc),Z$=" ",L$=!1;function _T(e,t){switch(e){case"keyup":return PO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xa=!1;function VO(e,t){switch(e){case"compositionend":return wT(t);case"keypress":return t.which!==32?null:(L$=!0,Z$);case"textInput":return e=t.data,e===Z$&&L$?null:e;default:return null}}function qO(e,t){if(xa)return e==="compositionend"||!Rx&&_T(e,t)?(e=ST(),wd=Ux=gr=null,xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kT&&t.locale!=="ko"?null:t.data;default:return null}}var HO={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 P$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HO[e.type]:t==="textarea"}function $T(e,t,n,r){ba?Da?Da.push(r):Da=[r]:ba=r,t=af(t,"onChange"),0<t.length&&(n=new pf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ac=null,xc=null;function GO(e){x2(e,0)}function gf(e){var t=nc(e);if(hT(t))return e}function F$(e,t){if(e==="change")return t}var zT=!1;Zi&&(Zi?(dd="oninput"in document,dd||(cb=document.createElement("div"),cb.setAttribute("oninput","return;"),dd=typeof cb.oninput=="function"),ud=dd):ud=!1,zT=ud&&(!document.documentMode||9<document.documentMode));var ud,dd,cb;function V$(){ac&&(ac.detachEvent("onpropertychange",TT),xc=ac=null)}function TT(e){if(e.propertyName==="value"&&gf(xc)){var t=[];$T(t,xc,e,Ox(e)),xT(GO,t)}}function YO(e,t,n){e==="focusin"?(V$(),ac=t,xc=n,ac.attachEvent("onpropertychange",TT)):e==="focusout"&&V$()}function JO(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gf(xc)}function XO(e,t){if(e==="click")return gf(t)}function KO(e,t){if(e==="input"||e==="change")return gf(t)}function QO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tn=typeof Object.is=="function"?Object.is:QO;function Sc(e,t){if(Tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Bb.call(t,i)||!Tn(e[i],t[i]))return!1}return!0}function q$(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function H$(e,t){var n=q$(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=q$(n)}}function CT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?CT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ET(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ld(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ld(e.document)}return t}function Mx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var WO=Zi&&"documentMode"in document&&11>=document.documentMode,Sa=null,Hb=null,lc=null,Gb=!1;function G$(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gb||Sa==null||Sa!==Ld(r)||(r=Sa,"selectionStart"in r&&Mx(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lc&&Sc(lc,r)||(lc=r,r=af(Hb,"onSelect"),0<r.length&&(t=new pf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sa)))}function Gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ka={animationend:Gr("Animation","AnimationEnd"),animationiteration:Gr("Animation","AnimationIteration"),animationstart:Gr("Animation","AnimationStart"),transitionrun:Gr("Transition","TransitionRun"),transitionstart:Gr("Transition","TransitionStart"),transitioncancel:Gr("Transition","TransitionCancel"),transitionend:Gr("Transition","TransitionEnd")},sb={},DT={};Zi&&(DT=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function uo(e){if(sb[e])return sb[e];if(!ka[e])return e;var t=ka[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in DT)return sb[e]=t[n];return e}var IT=uo("animationend"),AT=uo("animationiteration"),jT=uo("animationstart"),eU=uo("transitionrun"),tU=uo("transitionstart"),nU=uo("transitioncancel"),OT=uo("transitionend"),UT=new Map,Yb="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(" ");Yb.push("scrollEnd");function Kn(e,t){UT.set(e,t),co(t,[e])}var Pd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Rn=[],_a=0,Bx=0;function vf(){for(var e=_a,t=Bx=_a=0;t<e;){var n=Rn[t];Rn[t++]=null;var r=Rn[t];Rn[t++]=null;var i=Rn[t];Rn[t++]=null;var o=Rn[t];if(Rn[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&NT(n,i,o)}}function yf(e,t,n,r){Rn[_a++]=e,Rn[_a++]=t,Rn[_a++]=n,Rn[_a++]=r,Bx|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Zx(e,t,n,r){return yf(e,t,n,r),Fd(e)}function fo(e,t){return yf(e,null,null,t),Fd(e)}function NT(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-$n(n),e=o.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),o):null}function Fd(e){if(50<gc)throw gc=0,hx=null,Error(D(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wa={};function iU(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(e,t,n,r){return new iU(e,t,n,r)}function Lx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ri(e,t){var n=e.alternate;return n===null?(n=Sn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function RT(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zd(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")Lx(e)&&(a=1);else if(typeof e=="string")a=aN(e,n,pi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ub:return e=Sn(31,n,t,i),e.elementType=Ub,e.lanes=o,e;case ga:return Wr(n.children,i,o,t);case nT:a=8,i|=24;break;case Ab:return e=Sn(12,n,t,i|2),e.elementType=Ab,e.lanes=o,e;case jb:return e=Sn(13,n,t,i),e.elementType=jb,e.lanes=o,e;case Ob:return e=Sn(19,n,t,i),e.elementType=Ob,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Oi:a=10;break e;case iT:a=9;break e;case Tx:a=11;break e;case Cx:a=14;break e;case sr:a=16,r=null;break e}a=29,n=Error(D(130,e===null?"null":typeof e,"")),r=null}return t=Sn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Wr(e,t,n,r){return e=Sn(7,e,r,t),e.lanes=n,e}function ub(e,t,n){return e=Sn(6,e,null,t),e.lanes=n,e}function MT(e){var t=Sn(18,null,null,0);return t.stateNode=e,t}function db(e,t,n){return t=Sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Y$=new WeakMap;function Pn(e,t){if(typeof e=="object"&&e!==null){var n=Y$.get(e);return n!==void 0?n:(t={value:e,source:t,stack:E$(t)},Y$.set(e,t),t)}return{value:e,source:t,stack:E$(t)}}var $a=[],za=0,Vd=null,kc=0,Bn=[],Zn=0,Er=null,di=1,fi="";function Ai(e,t){$a[za++]=kc,$a[za++]=Vd,Vd=e,kc=t}function BT(e,t,n){Bn[Zn++]=di,Bn[Zn++]=fi,Bn[Zn++]=Er,Er=e;var r=di;e=fi;var i=32-$n(r)-1;r&=~(1<<i),n+=1;var o=32-$n(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,di=1<<32-$n(t)+i|n<<i|r,fi=o+e}else di=1<<o|n<<i|r,fi=e}function Px(e){e.return!==null&&(Ai(e,1),BT(e,1,0))}function Fx(e){for(;e===Vd;)Vd=$a[--za],$a[za]=null,kc=$a[--za],$a[za]=null;for(;e===Er;)Er=Bn[--Zn],Bn[Zn]=null,fi=Bn[--Zn],Bn[Zn]=null,di=Bn[--Zn],Bn[Zn]=null}function ZT(e,t){Bn[Zn++]=di,Bn[Zn++]=fi,Bn[Zn++]=Er,di=t.id,fi=t.overflow,Er=e}var Ot=null,tt=null,ze=!1,Sr=null,Fn=!1,Jb=Error(D(519));function Dr(e){var t=Error(D(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _c(Pn(t,e)),Jb}function J$(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[jt]=e,t[dn]=r,n){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(n=0;n<Tc.length;n++)Se(Tc[n],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),gT(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),yT(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||k2(t.textContent,n)?(r.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),r.onScroll!=null&&Se("scroll",t),r.onScrollEnd!=null&&Se("scrollend",t),r.onClick!=null&&(t.onclick=Ui),t=!0):t=!1,t||Dr(e,!0)}function X$(e){for(Ot=e.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:Ot=Ot.return}}function fa(e){if(e!==Ot)return!1;if(!ze)return X$(e),ze=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||xx(e.type,e.memoizedProps)),n=!n),n&&tt&&Dr(e),X$(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));tt=Mz(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));tt=Mz(e)}else t===27?(t=tt,Or(e.type)?(e=wx,wx=null,tt=e):tt=t):tt=Ot?qn(e.stateNode.nextSibling):null;return!0}function io(){tt=Ot=null,ze=!1}function fb(){var e=Sr;return e!==null&&(sn===null?sn=e:sn.push.apply(sn,e),Sr=null),e}function _c(e){Sr===null?Sr=[e]:Sr.push(e)}var Xb=hi(null),mo=null,Ni=null;function dr(e,t,n){Ke(Xb,t._currentValue),t._currentValue=n}function Mi(e){e._currentValue=Xb.current,Tt(Xb)}function Kb(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Qb(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Kb(o.return,n,e),r||(a=null);break e}o=l.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(D(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),Kb(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function Ya(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(D(387));if(a=a.memoizedProps,a!==null){var l=i.type;Tn(i.pendingProps.value,a.value)||(e!==null?e.push(l):e=[l])}}else if(i===Rd.current){if(a=i.alternate,a===null)throw Error(D(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ec):e=[Ec])}i=i.return}e!==null&&Qb(t,e,n,r),t.flags|=262144}function qd(e){for(e=e.firstContext;e!==null;){if(!Tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ro(e){mo=e,Ni=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return LT(mo,e)}function fd(e,t){return mo===null&&ro(e),LT(e,t)}function LT(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ni===null){if(e===null)throw Error(D(308));Ni=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ni=Ni.next=t;return n}var rU=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},oU=_t.unstable_scheduleCallback,aU=_t.unstable_NormalPriority,bt={$$typeof:Oi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vx(){return{controller:new rU,data:new Map,refCount:0}}function Mc(e){e.refCount--,e.refCount===0&&oU(aU,function(){e.controller.abort()})}var cc=null,Wb=0,Ma=0,Ia=null;function lU(e,t){if(cc===null){var n=cc=[];Wb=0,Ma=h1(),Ia={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Wb++,t.then(K$,K$),t}function K$(){if(--Wb===0&&cc!==null){Ia!==null&&(Ia.status="fulfilled");var e=cc;cc=null,Ma=0,Ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cU(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var Q$=oe.S;oe.S=function(e,t){t2=_n(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&lU(e,t),Q$!==null&&Q$(e,t)};var eo=hi(null);function qx(){var e=eo.current;return e!==null?e:He.pooledCache}function Td(e,t){t===null?Ke(eo,eo.current):Ke(eo,t.pool)}function PT(){var e=qx();return e===null?null:{parent:bt._currentValue,pool:e}}var Ja=Error(D(460)),Hx=Error(D(474)),bf=Error(D(542)),Hd={then:function(){}};function W$(e){return e=e.status,e==="fulfilled"||e==="rejected"}function FT(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ui,Ui),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tz(e),e;default:if(typeof t.status=="string")t.then(Ui,Ui);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(D(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tz(e),e}throw to=t,Ja}}function Xr(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(to=n,Ja):n}}var to=null;function ez(){if(to===null)throw Error(D(459));var e=to;return to=null,e}function tz(e){if(e===Ja||e===bf)throw Error(D(483))}var Aa=null,wc=0;function md(e){var t=wc;return wc+=1,Aa===null&&(Aa=[]),FT(Aa,e,t)}function Jl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pd(e,t){throw t.$$typeof===Yj?Error(D(525)):(e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function VT(e){function t(g,h){if(e){var y=g.deletions;y===null?(g.deletions=[h],g.flags|=16):y.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g){for(var h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(g,h){return g=Ri(g,h),g.index=0,g.sibling=null,g}function o(g,h,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<h?(g.flags|=67108866,h):y):(g.flags|=67108866,h)):(g.flags|=1048576,h)}function a(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,h,y,v){return h===null||h.tag!==6?(h=ub(y,g.mode,v),h.return=g,h):(h=i(h,y),h.return=g,h)}function c(g,h,y,v){var j=y.type;return j===ga?d(g,h,y.props.children,v,y.key):h!==null&&(h.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===sr&&Xr(j)===h.type)?(h=i(h,y.props),Jl(h,y),h.return=g,h):(h=zd(y.type,y.key,y.props,null,g.mode,v),Jl(h,y),h.return=g,h)}function u(g,h,y,v){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=db(y,g.mode,v),h.return=g,h):(h=i(h,y.children||[]),h.return=g,h)}function d(g,h,y,v,j){return h===null||h.tag!==7?(h=Wr(y,g.mode,v,j),h.return=g,h):(h=i(h,y),h.return=g,h)}function m(g,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=ub(""+h,g.mode,y),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case rd:return y=zd(h.type,h.key,h.props,null,g.mode,y),Jl(y,h),y.return=g,y;case ec:return h=db(h,g.mode,y),h.return=g,h;case sr:return h=Xr(h),m(g,h,y)}if(tc(h)||Gl(h))return h=Wr(h,g.mode,y,null),h.return=g,h;if(typeof h.then=="function")return m(g,md(h),y);if(h.$$typeof===Oi)return m(g,fd(g,h),y);pd(g,h)}return null}function p(g,h,y,v){var j=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return j!==null?null:l(g,h,""+y,v);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case rd:return y.key===j?c(g,h,y,v):null;case ec:return y.key===j?u(g,h,y,v):null;case sr:return y=Xr(y),p(g,h,y,v)}if(tc(y)||Gl(y))return j!==null?null:d(g,h,y,v,null);if(typeof y.then=="function")return p(g,h,md(y),v);if(y.$$typeof===Oi)return p(g,h,fd(g,y),v);pd(g,y)}return null}function f(g,h,y,v,j){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(y)||null,l(h,g,""+v,j);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case rd:return g=g.get(v.key===null?y:v.key)||null,c(h,g,v,j);case ec:return g=g.get(v.key===null?y:v.key)||null,u(h,g,v,j);case sr:return v=Xr(v),f(g,h,y,v,j)}if(tc(v)||Gl(v))return g=g.get(y)||null,d(h,g,v,j,null);if(typeof v.then=="function")return f(g,h,y,md(v),j);if(v.$$typeof===Oi)return f(g,h,y,fd(h,v),j);pd(h,v)}return null}function x(g,h,y,v){for(var j=null,X=null,L=h,T=h=0,Q=null;L!==null&&T<y.length;T++){L.index>T?(Q=L,L=null):Q=L.sibling;var z=p(g,L,y[T],v);if(z===null){L===null&&(L=Q);break}e&&L&&z.alternate===null&&t(g,L),h=o(z,h,T),X===null?j=z:X.sibling=z,X=z,L=Q}if(T===y.length)return n(g,L),ze&&Ai(g,T),j;if(L===null){for(;T<y.length;T++)L=m(g,y[T],v),L!==null&&(h=o(L,h,T),X===null?j=L:X.sibling=L,X=L);return ze&&Ai(g,T),j}for(L=r(L);T<y.length;T++)Q=f(L,g,T,y[T],v),Q!==null&&(e&&Q.alternate!==null&&L.delete(Q.key===null?T:Q.key),h=o(Q,h,T),X===null?j=Q:X.sibling=Q,X=Q);return e&&L.forEach(function(W){return t(g,W)}),ze&&Ai(g,T),j}function _(g,h,y,v){if(y==null)throw Error(D(151));for(var j=null,X=null,L=h,T=h=0,Q=null,z=y.next();L!==null&&!z.done;T++,z=y.next()){L.index>T?(Q=L,L=null):Q=L.sibling;var W=p(g,L,z.value,v);if(W===null){L===null&&(L=Q);break}e&&L&&W.alternate===null&&t(g,L),h=o(W,h,T),X===null?j=W:X.sibling=W,X=W,L=Q}if(z.done)return n(g,L),ze&&Ai(g,T),j;if(L===null){for(;!z.done;T++,z=y.next())z=m(g,z.value,v),z!==null&&(h=o(z,h,T),X===null?j=z:X.sibling=z,X=z);return ze&&Ai(g,T),j}for(L=r(L);!z.done;T++,z=y.next())z=f(L,g,T,z.value,v),z!==null&&(e&&z.alternate!==null&&L.delete(z.key===null?T:z.key),h=o(z,h,T),X===null?j=z:X.sibling=z,X=z);return e&&L.forEach(function(Ge){return t(g,Ge)}),ze&&Ai(g,T),j}function Z(g,h,y,v){if(typeof y=="object"&&y!==null&&y.type===ga&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case rd:e:{for(var j=y.key;h!==null;){if(h.key===j){if(j=y.type,j===ga){if(h.tag===7){n(g,h.sibling),v=i(h,y.props.children),v.return=g,g=v;break e}}else if(h.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===sr&&Xr(j)===h.type){n(g,h.sibling),v=i(h,y.props),Jl(v,y),v.return=g,g=v;break e}n(g,h);break}else t(g,h);h=h.sibling}y.type===ga?(v=Wr(y.props.children,g.mode,v,y.key),v.return=g,g=v):(v=zd(y.type,y.key,y.props,null,g.mode,v),Jl(v,y),v.return=g,g=v)}return a(g);case ec:e:{for(j=y.key;h!==null;){if(h.key===j)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(g,h.sibling),v=i(h,y.children||[]),v.return=g,g=v;break e}else{n(g,h);break}else t(g,h);h=h.sibling}v=db(y,g.mode,v),v.return=g,g=v}return a(g);case sr:return y=Xr(y),Z(g,h,y,v)}if(tc(y))return x(g,h,y,v);if(Gl(y)){if(j=Gl(y),typeof j!="function")throw Error(D(150));return y=j.call(y),_(g,h,y,v)}if(typeof y.then=="function")return Z(g,h,md(y),v);if(y.$$typeof===Oi)return Z(g,h,fd(g,y),v);pd(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(n(g,h.sibling),v=i(h,y),v.return=g,g=v):(n(g,h),v=ub(y,g.mode,v),v.return=g,g=v),a(g)):n(g,h)}return function(g,h,y,v){try{wc=0;var j=Z(g,h,y,v);return Aa=null,j}catch(L){if(L===Ja||L===bf)throw L;var X=Sn(29,L,null,g.mode);return X.lanes=v,X.return=g,X}}}var oo=VT(!0),qT=VT(!1),ur=!1;function Gx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ex(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _r(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(De&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Fd(e),NT(e,null,n),t}return yf(e,r,t,n),Fd(e)}function sc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sT(e,n)}}function mb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var tx=!1;function uc(){if(tx){var e=Ia;if(e!==null)throw e}}function dc(e,t,n,r){tx=!1;var i=e.updateQueue;ur=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var m=i.baseState;a=0,d=u=c=null,l=o;do{var p=l.lane&-536870913,f=p!==l.lane;if(f?(_e&p)===p:(r&p)===p){p!==0&&p===Ma&&(tx=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var x=e,_=l;p=t;var Z=n;switch(_.tag){case 1:if(x=_.payload,typeof x=="function"){m=x.call(Z,m,p);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=_.payload,p=typeof x=="function"?x.call(Z,m,p):x,p==null)break e;m=nt({},m,p);break e;case 2:ur=!0}}p=l.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=i.callbacks,f===null?i.callbacks=[p]:f.push(p))}else f={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,c=m):d=d.next=f,a|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);d===null&&(c=m),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,o===null&&(i.shared.lanes=0),Ar|=a,e.lanes=a,e.memoizedState=m}}function HT(e,t){if(typeof e!="function")throw Error(D(191,e));e.call(t)}function GT(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)HT(n[e],t)}var Ba=hi(null),Gd=hi(0);function nz(e,t){e=Vi,Ke(Gd,e),Ke(Ba,t),Vi=e|t.baseLanes}function nx(){Ke(Gd,Vi),Ke(Ba,Ba.current)}function Yx(){Vi=Gd.current,Tt(Ba),Tt(Gd)}var Cn=hi(null),Vn=null;function fr(e){var t=e.alternate;Ke(ht,ht.current&1),Ke(Cn,e),Vn===null&&(t===null||Ba.current!==null||t.memoizedState!==null)&&(Vn=e)}function ix(e){Ke(ht,ht.current),Ke(Cn,e),Vn===null&&(Vn=e)}function YT(e){e.tag===22?(Ke(ht,ht.current),Ke(Cn,e),Vn===null&&(Vn=e)):mr(e)}function mr(){Ke(ht,ht.current),Ke(Cn,Cn.current)}function xn(e){Tt(Cn),Vn===e&&(Vn=null),Tt(ht)}var ht=hi(0);function Yd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||kx(n)||_x(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Li=0,pe=null,Pe=null,vt=null,Jd=!1,ja=!1,ao=!1,Xd=0,$c=0,Oa=null,sU=0;function dt(){throw Error(D(321))}function Jx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tn(e[n],t[n]))return!1;return!0}function Xx(e,t,n,r,i,o){return Li=o,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oe.H=e===null||e.memoizedState===null?$4:l1,ao=!1,o=n(r,i),ao=!1,ja&&(o=XT(t,n,r,i)),JT(e),o}function JT(e){oe.H=zc;var t=Pe!==null&&Pe.next!==null;if(Li=0,vt=Pe=pe=null,Jd=!1,$c=0,Oa=null,t)throw Error(D(300));e===null||xt||(e=e.dependencies,e!==null&&qd(e)&&(xt=!0))}function XT(e,t,n,r){pe=e;var i=0;do{if(ja&&(Oa=null),$c=0,ja=!1,25<=i)throw Error(D(301));if(i+=1,vt=Pe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}oe.H=z4,o=t(n,r)}while(ja);return o}function uU(){var e=oe.H,t=e.useState()[0];return t=typeof t.then=="function"?Bc(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(pe.flags|=1024),t}function Kx(){var e=Xd!==0;return Xd=0,e}function Qx(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wx(e){if(Jd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jd=!1}Li=0,vt=Pe=pe=null,ja=!1,$c=Xd=0,Oa=null}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?pe.memoizedState=vt=e:vt=vt.next=e,vt}function gt(){if(Pe===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=vt===null?pe.memoizedState:vt.next;if(t!==null)vt=t,Pe=e;else{if(e===null)throw pe.alternate===null?Error(D(467)):Error(D(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},vt===null?pe.memoizedState=vt=e:vt=vt.next=e}return vt}function xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bc(e){var t=$c;return $c+=1,Oa===null&&(Oa=[]),e=FT(Oa,e,t),t=pe,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,oe.H=t===null||t.memoizedState===null?$4:l1),e}function Sf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bc(e);if(e.$$typeof===Oi)return Ut(e)}throw Error(D(438,String(e)))}function e1(e){var t=null,n=pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=pe.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=xf(),pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Jj;return t.index++,n}function Pi(e,t){return typeof t=="function"?t(e):t}function Cd(e){var t=gt();return t1(t,Pe,e)}function t1(e,t,n){var r=e.queue;if(r===null)throw Error(D(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var l=a=null,c=null,u=t,d=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(_e&m)===m:(Li&m)===m){var p=u.revertLane;if(p===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===Ma&&(d=!0);else if((Li&p)===p){u=u.next,p===Ma&&(d=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=m,a=o):c=c.next=m,pe.lanes|=p,Ar|=p;m=u.action,ao&&n(o,m),o=u.hasEagerState?u.eagerState:n(o,m)}else p={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=p,a=o):c=c.next=p,pe.lanes|=m,Ar|=m;u=u.next}while(u!==null&&u!==t);if(c===null?a=o:c.next=l,!Tn(o,e.memoizedState)&&(xt=!0,d&&(n=Ia,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=c,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function pb(e){var t=gt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Tn(o,t.memoizedState)||(xt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function KT(e,t,n){var r=pe,i=gt(),o=ze;if(o){if(n===void 0)throw Error(D(407));n=n()}else n=t();var a=!Tn((Pe||i).memoizedState,n);if(a&&(i.memoizedState=n,xt=!0),i=i.queue,n1(e4.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||vt!==null&&vt.memoizedState.tag&1){if(r.flags|=2048,Za(9,{destroy:void 0},WT.bind(null,r,i,n,t),null),He===null)throw Error(D(349));o||(Li&127)!==0||QT(r,t,n)}return n}function QT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t=xf(),pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function WT(e,t,n,r){t.value=n,t.getSnapshot=r,t4(t)&&n4(e)}function e4(e,t,n){return n(function(){t4(t)&&n4(e)})}function t4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tn(e,n)}catch{return!0}}function n4(e){var t=fo(e,2);t!==null&&un(t,e,2)}function rx(e){var t=Wt();if(typeof e=="function"){var n=e;if(e=n(),ao){hr(!0);try{n()}finally{hr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:e},t}function i4(e,t,n,r){return e.baseState=n,t1(e,Pe,typeof r=="function"?r:Pi)}function dU(e,t,n,r,i){if(_f(e))throw Error(D(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};oe.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,r4(t,o)):(o.next=n.next,t.pending=n.next=o)}}function r4(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=oe.T,a={};oe.T=a;try{var l=n(i,r),c=oe.S;c!==null&&c(a,l),iz(e,t,l)}catch(u){ox(e,t,u)}finally{o!==null&&a.types!==null&&(o.types=a.types),oe.T=o}}else try{o=n(i,r),iz(e,t,o)}catch(u){ox(e,t,u)}}function iz(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){rz(e,t,r)},function(r){return ox(e,t,r)}):rz(e,t,n)}function rz(e,t,n){t.status="fulfilled",t.value=n,o4(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,r4(e,n)))}function ox(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,o4(t),t=t.next;while(t!==r)}e.action=null}function o4(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function a4(e,t){return t}function oz(e,t){if(ze){var n=He.formState;if(n!==null){e:{var r=pe;if(ze){if(tt){t:{for(var i=tt,o=Fn;i.nodeType!==8;){if(!o){i=null;break t}if(i=qn(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){tt=qn(i.nextSibling),r=i.data==="F!";break e}}Dr(r)}r=!1}r&&(t=n[0])}}return n=Wt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a4,lastRenderedState:t},n.queue=r,n=k4.bind(null,pe,r),r.dispatch=n,r=rx(!1),o=a1.bind(null,pe,!1,r.queue),r=Wt(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=dU.bind(null,pe,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function az(e){var t=gt();return l4(t,Pe,e)}function l4(e,t,n){if(t=t1(e,t,a4)[0],e=Cd(Pi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Bc(t)}catch(a){throw a===Ja?bf:a}else r=t;t=gt();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(pe.flags|=2048,Za(9,{destroy:void 0},fU.bind(null,i,n),null)),[r,o,e]}function fU(e,t){e.action=t}function lz(e){var t=gt(),n=Pe;if(n!==null)return l4(t,n,e);gt(),t=t.memoizedState,n=gt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Za(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=pe.updateQueue,t===null&&(t=xf(),pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function c4(){return gt().memoizedState}function Ed(e,t,n,r){var i=Wt();pe.flags|=e,i.memoizedState=Za(1|t,{destroy:void 0},n,r===void 0?null:r)}function kf(e,t,n,r){var i=gt();r=r===void 0?null:r;var o=i.memoizedState.inst;Pe!==null&&r!==null&&Jx(r,Pe.memoizedState.deps)?i.memoizedState=Za(t,o,n,r):(pe.flags|=e,i.memoizedState=Za(1|t,o,n,r))}function cz(e,t){Ed(8390656,8,e,t)}function n1(e,t){kf(2048,8,e,t)}function mU(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=xf(),pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function s4(e){var t=gt().memoizedState;return mU({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(D(440));return t.impl.apply(void 0,arguments)}}function u4(e,t){return kf(4,2,e,t)}function d4(e,t){return kf(4,4,e,t)}function f4(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function m4(e,t,n){n=n!=null?n.concat([e]):null,kf(4,4,f4.bind(null,t,e),n)}function i1(){}function p4(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Jx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function h4(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Jx(t,r[1]))return r[0];if(r=e(),ao){hr(!0);try{e()}finally{hr(!1)}}return n.memoizedState=[r,t],r}function r1(e,t,n){return n===void 0||(Li&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=i2(),pe.lanes|=e,Ar|=e,n)}function g4(e,t,n,r){return Tn(n,t)?n:Ba.current!==null?(e=r1(e,n,r),Tn(e,t)||(xt=!0),e):(Li&42)===0||(Li&1073741824)!==0&&(_e&261930)===0?(xt=!0,e.memoizedState=n):(e=i2(),pe.lanes|=e,Ar|=e,t)}function v4(e,t,n,r,i){var o=Ie.p;Ie.p=o!==0&&8>o?o:8;var a=oe.T,l={};oe.T=l,a1(e,!1,t,n);try{var c=i(),u=oe.S;if(u!==null&&u(l,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=cU(c,r);fc(e,t,d,zn(e))}else fc(e,t,r,zn(e))}catch(m){fc(e,t,{then:function(){},status:"rejected",reason:m},zn())}finally{Ie.p=o,a!==null&&l.types!==null&&(a.types=l.types),oe.T=a}}function pU(){}function ax(e,t,n,r){if(e.tag!==5)throw Error(D(476));var i=y4(e).queue;v4(e,i,t,Qr,n===null?pU:function(){return b4(e),n(r)})}function y4(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Qr,baseState:Qr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:Qr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function b4(e){var t=y4(e);t.next===null&&(t=e.alternate.memoizedState),fc(e,t.next.queue,{},zn())}function o1(){return Ut(Ec)}function x4(){return gt().memoizedState}function S4(){return gt().memoizedState}function hU(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=zn();e=kr(n);var r=_r(t,e,n);r!==null&&(un(r,t,n),sc(r,t,n)),t={cache:Vx()},e.payload=t;return}t=t.return}}function gU(e,t,n){var r=zn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_f(e)?_4(t,n):(n=Zx(e,t,n,r),n!==null&&(un(n,e,r),w4(n,t,r)))}function k4(e,t,n){var r=zn();fc(e,t,n,r)}function fc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_f(e))_4(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Tn(l,a))return yf(e,t,i,0),He===null&&vf(),!1}catch{}if(n=Zx(e,t,i,r),n!==null)return un(n,e,r),w4(n,t,r),!0}return!1}function a1(e,t,n,r){if(r={lane:2,revertLane:h1(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},_f(e)){if(t)throw Error(D(479))}else t=Zx(e,n,r,2),t!==null&&un(t,e,2)}function _f(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function _4(e,t){ja=Jd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function w4(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sT(e,n)}}var zc={readContext:Ut,use:Sf,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};zc.useEffectEvent=dt;var $4={readContext:Ut,use:Sf,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:cz,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ed(4194308,4,f4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ed(4194308,4,e,t)},useInsertionEffect:function(e,t){Ed(4,2,e,t)},useMemo:function(e,t){var n=Wt();t=t===void 0?null:t;var r=e();if(ao){hr(!0);try{e()}finally{hr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Wt();if(n!==void 0){var i=n(t);if(ao){hr(!0);try{n(t)}finally{hr(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=gU.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:function(e){e=rx(e);var t=e.queue,n=k4.bind(null,pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:i1,useDeferredValue:function(e,t){var n=Wt();return r1(n,e,t)},useTransition:function(){var e=rx(!1);return e=v4.bind(null,pe,e.queue,!0,!1),Wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=pe,i=Wt();if(ze){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),He===null)throw Error(D(349));(_e&127)!==0||QT(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,cz(e4.bind(null,r,o,e),[e]),r.flags|=2048,Za(9,{destroy:void 0},WT.bind(null,r,o,n,t),null),n},useId:function(){var e=Wt(),t=He.identifierPrefix;if(ze){var n=fi,r=di;n=(r&~(1<<32-$n(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=sU++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:o1,useFormState:oz,useActionState:oz,useOptimistic:function(e){var t=Wt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=a1.bind(null,pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:e1,useCacheRefresh:function(){return Wt().memoizedState=hU.bind(null,pe)},useEffectEvent:function(e){var t=Wt(),n={impl:e};return t.memoizedState=n,function(){if((De&2)!==0)throw Error(D(440));return n.impl.apply(void 0,arguments)}}},l1={readContext:Ut,use:Sf,useCallback:p4,useContext:Ut,useEffect:n1,useImperativeHandle:m4,useInsertionEffect:u4,useLayoutEffect:d4,useMemo:h4,useReducer:Cd,useRef:c4,useState:function(){return Cd(Pi)},useDebugValue:i1,useDeferredValue:function(e,t){var n=gt();return g4(n,Pe.memoizedState,e,t)},useTransition:function(){var e=Cd(Pi)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Bc(e),t]},useSyncExternalStore:KT,useId:x4,useHostTransitionStatus:o1,useFormState:az,useActionState:az,useOptimistic:function(e,t){var n=gt();return i4(n,Pe,e,t)},useMemoCache:e1,useCacheRefresh:S4};l1.useEffectEvent=s4;var z4={readContext:Ut,use:Sf,useCallback:p4,useContext:Ut,useEffect:n1,useImperativeHandle:m4,useInsertionEffect:u4,useLayoutEffect:d4,useMemo:h4,useReducer:pb,useRef:c4,useState:function(){return pb(Pi)},useDebugValue:i1,useDeferredValue:function(e,t){var n=gt();return Pe===null?r1(n,e,t):g4(n,Pe.memoizedState,e,t)},useTransition:function(){var e=pb(Pi)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Bc(e),t]},useSyncExternalStore:KT,useId:x4,useHostTransitionStatus:o1,useFormState:lz,useActionState:lz,useOptimistic:function(e,t){var n=gt();return Pe!==null?i4(n,Pe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:e1,useCacheRefresh:S4};z4.useEffectEvent=s4;function hb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:nt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var lx={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=zn(),i=kr(r);i.payload=t,n!=null&&(i.callback=n),t=_r(e,i,r),t!==null&&(un(t,e,r),sc(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=zn(),i=kr(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=_r(e,i,r),t!==null&&(un(t,e,r),sc(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zn(),r=kr(n);r.tag=2,t!=null&&(r.callback=t),t=_r(e,r,n),t!==null&&(un(t,e,n),sc(t,e,n))}};function sz(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Sc(n,r)||!Sc(i,o):!0}function uz(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&lx.enqueueReplaceState(t,t.state,null)}function lo(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=nt({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function T4(e){Pd(e)}function C4(e){console.error(e)}function E4(e){Pd(e)}function Kd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function dz(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function cx(e,t,n){return n=kr(n),n.tag=3,n.payload={element:null},n.callback=function(){Kd(e,t)},n}function D4(e){return e=kr(e),e.tag=3,e}function I4(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){dz(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){dz(t,n,r),typeof i!="function"&&(wr===null?wr=new Set([this]):wr.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function vU(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Ya(t,n,i,!0),n=Cn.current,n!==null){switch(n.tag){case 31:case 13:return Vn===null?nf():n.alternate===null&&ft===0&&(ft=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Hd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),zb(e,r,i)),!1;case 22:return n.flags|=65536,r===Hd?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),zb(e,r,i)),!1}throw Error(D(435,n.tag))}return zb(e,r,i),nf(),!1}if(ze)return t=Cn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Jb&&(e=Error(D(422),{cause:r}),_c(Pn(e,n)))):(r!==Jb&&(t=Error(D(423),{cause:r}),_c(Pn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Pn(r,n),i=cx(e.stateNode,r,i),mb(e,i),ft!==4&&(ft=2)),!1;var o=Error(D(520),{cause:r});if(o=Pn(o,n),hc===null?hc=[o]:hc.push(o),ft!==4&&(ft=2),t===null)return!0;r=Pn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=cx(n.stateNode,r,e),mb(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(wr===null||!wr.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=D4(i),I4(i,e,n,r),mb(n,i),!1}n=n.return}while(n!==null);return!1}var c1=Error(D(461)),xt=!1;function At(e,t,n,r){t.child=e===null?qT(t,null,n,r):oo(t,e.child,n,r)}function fz(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}else a=r;return ro(t),r=Xx(e,t,n,a,o,i),l=Kx(),e!==null&&!xt?(Qx(e,t,i),Fi(e,t,i)):(ze&&l&&Px(t),t.flags|=1,At(e,t,r,i),t.child)}function mz(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Lx(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,A4(e,t,o,r,i)):(e=zd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!s1(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Sc,n(a,r)&&e.ref===t.ref)return Fi(e,t,i)}return t.flags|=1,e=Ri(o,r),e.ref=t.ref,e.return=t,t.child=e}function A4(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Sc(o,r)&&e.ref===t.ref)if(xt=!1,t.pendingProps=r=o,s1(e,i))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,Fi(e,t,i)}return sx(e,t,n,r,i)}function j4(e,t,n,r){var i=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return pz(e,t,o,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Td(t,o!==null?o.cachePool:null),o!==null?nz(t,o):nx(),YT(t);else return r=t.lanes=536870912,pz(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(Td(t,o.cachePool),nz(t,o),mr(t),t.memoizedState=null):(e!==null&&Td(t,null),nx(),mr(t));return At(e,t,i,n),t.child}function ic(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pz(e,t,n,r,i){var o=qx();return o=o===null?null:{parent:bt._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Td(t,null),nx(),YT(t),e!==null&&Ya(e,t,r,!0),t.childLanes=i,null}function Dd(e,t){return t=Qd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hz(e,t,n){return oo(t,e.child,null,n),e=Dd(t,t.pendingProps),e.flags|=2,xn(t),t.memoizedState=null,e}function yU(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(r.mode==="hidden")return e=Dd(t,r),t.lanes=536870912,ic(null,e);if(ix(t),(e=tt)?(e=$2(e,Fn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Er!==null?{id:di,overflow:fi}:null,retryLane:536870912,hydrationErrors:null},n=MT(e),n.return=t,t.child=n,Ot=t,tt=null)):e=null,e===null)throw Dr(t);return t.lanes=536870912,null}return Dd(t,r)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(ix(t),i)if(t.flags&256)t.flags&=-257,t=hz(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(D(558));else if(xt||Ya(e,t,n,!1),i=(n&e.childLanes)!==0,xt||i){if(r=He,r!==null&&(a=uT(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,fo(e,a),un(r,e,a),c1;nf(),t=hz(e,t,n)}else e=o.treeContext,tt=qn(a.nextSibling),Ot=t,ze=!0,Sr=null,Fn=!1,e!==null&&ZT(t,e),t=Dd(t,r),t.flags|=4096;return t}return e=Ri(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Id(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(D(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function sx(e,t,n,r,i){return ro(t),n=Xx(e,t,n,r,void 0,i),r=Kx(),e!==null&&!xt?(Qx(e,t,i),Fi(e,t,i)):(ze&&r&&Px(t),t.flags|=1,At(e,t,n,i),t.child)}function gz(e,t,n,r,i,o){return ro(t),t.updateQueue=null,n=XT(t,r,n,i),JT(e),r=Kx(),e!==null&&!xt?(Qx(e,t,o),Fi(e,t,o)):(ze&&r&&Px(t),t.flags|=1,At(e,t,n,o),t.child)}function vz(e,t,n,r,i){if(ro(t),t.stateNode===null){var o=wa,a=n.contextType;typeof a=="object"&&a!==null&&(o=Ut(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=lx,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},Gx(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?Ut(a):wa,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(hb(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&lx.enqueueReplaceState(o,o.state,null),dc(t,r,o,i),uc(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,c=lo(n,l);o.props=c;var u=o.context,d=n.contextType;a=wa,typeof d=="object"&&d!==null&&(a=Ut(d));var m=n.getDerivedStateFromProps;d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==a)&&uz(t,o,r,a),ur=!1;var p=t.memoizedState;o.state=p,dc(t,r,o,i),uc(),u=t.memoizedState,l||p!==u||ur?(typeof m=="function"&&(hb(t,n,m,r),u=t.memoizedState),(c=ur||sz(t,n,c,r,p,u,a))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ex(e,t),a=t.memoizedProps,d=lo(n,a),o.props=d,m=t.pendingProps,p=o.context,u=n.contextType,c=wa,typeof u=="object"&&u!==null&&(c=Ut(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==m||p!==c)&&uz(t,o,r,c),ur=!1,p=t.memoizedState,o.state=p,dc(t,r,o,i),uc();var f=t.memoizedState;a!==m||p!==f||ur||e!==null&&e.dependencies!==null&&qd(e.dependencies)?(typeof l=="function"&&(hb(t,n,l,r),f=t.memoizedState),(d=ur||sz(t,n,d,r,p,f,c)||e!==null&&e.dependencies!==null&&qd(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,f,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,f,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Id(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):At(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Fi(e,t,i),e}function yz(e,t,n,r){return io(),t.flags|=256,At(e,t,n,r),t.child}var gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vb(e){return{baseLanes:e,cachePool:PT()}}function yb(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=kn),e}function O4(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(i?fr(t):mr(t),(e=tt)?(e=$2(e,Fn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Er!==null?{id:di,overflow:fi}:null,retryLane:536870912,hydrationErrors:null},n=MT(e),n.return=t,t.child=n,Ot=t,tt=null)):e=null,e===null)throw Dr(t);return _x(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,i?(mr(t),i=t.mode,l=Qd({mode:"hidden",children:l},i),r=Wr(r,i,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=vb(n),r.childLanes=yb(e,a,n),t.memoizedState=gb,ic(null,r)):(fr(t),ux(t,l))}var c=e.memoizedState;if(c!==null&&(l=c.dehydrated,l!==null)){if(o)t.flags&256?(fr(t),t.flags&=-257,t=bb(e,t,n)):t.memoizedState!==null?(mr(t),t.child=e.child,t.flags|=128,t=null):(mr(t),l=r.fallback,i=t.mode,r=Qd({mode:"visible",children:r.children},i),l=Wr(l,i,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,oo(t,e.child,null,n),r=t.child,r.memoizedState=vb(n),r.childLanes=yb(e,a,n),t.memoizedState=gb,t=ic(null,r));else if(fr(t),_x(l)){if(a=l.nextSibling&&l.nextSibling.dataset,a)var u=a.dgst;a=u,r=Error(D(419)),r.stack="",r.digest=a,_c({value:r,source:null,stack:null}),t=bb(e,t,n)}else if(xt||Ya(e,t,n,!1),a=(n&e.childLanes)!==0,xt||a){if(a=He,a!==null&&(r=uT(a,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,fo(e,r),un(a,e,r),c1;kx(l)||nf(),t=bb(e,t,n)}else kx(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,tt=qn(l.nextSibling),Ot=t,ze=!0,Sr=null,Fn=!1,e!==null&&ZT(t,e),t=ux(t,r.children),t.flags|=4096);return t}return i?(mr(t),l=r.fallback,i=t.mode,c=e.child,u=c.sibling,r=Ri(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&65011712,u!==null?l=Ri(u,l):(l=Wr(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,ic(null,r),r=t.child,l=e.child.memoizedState,l===null?l=vb(n):(i=l.cachePool,i!==null?(c=bt._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=PT(),l={baseLanes:l.baseLanes|n,cachePool:i}),r.memoizedState=l,r.childLanes=yb(e,a,n),t.memoizedState=gb,ic(e.child,r)):(fr(t),n=e.child,e=n.sibling,n=Ri(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function ux(e,t){return t=Qd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qd(e,t){return e=Sn(22,e,null,t),e.lanes=0,e}function bb(e,t,n){return oo(t,e.child,null,n),e=ux(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bz(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Kb(e.return,t,n)}function xb(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function U4(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=ht.current,l=(a&2)!==0;if(l?(a=a&1|2,t.flags|=128):a&=1,Ke(ht,a),At(e,t,r,n),r=ze?kc:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bz(e,n,t);else if(e.tag===19)bz(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Yd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xb(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Yd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xb(t,!0,n,null,o,r);break;case"together":xb(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Fi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ar|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ya(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=Ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function s1(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qd(e)))}function bU(e,t,n){switch(t.tag){case 3:Md(t,t.stateNode.containerInfo),dr(t,bt,e.memoizedState.cache),io();break;case 27:case 5:Mb(t);break;case 4:Md(t,t.stateNode.containerInfo);break;case 10:dr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ix(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(fr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?O4(e,t,n):(fr(t),e=Fi(e,t,n),e!==null?e.sibling:null);fr(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Ya(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return U4(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ke(ht,ht.current),r)break;return null;case 22:return t.lanes=0,j4(e,t,n,t.pendingProps);case 24:dr(t,bt,e.memoizedState.cache)}return Fi(e,t,n)}function N4(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!s1(e,n)&&(t.flags&128)===0)return xt=!1,bU(e,t,n);xt=(e.flags&131072)!==0}else xt=!1,ze&&(t.flags&1048576)!==0&&BT(t,kc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Xr(t.elementType),t.type=e,typeof e=="function")Lx(e)?(r=lo(e,r),t.tag=1,t=vz(null,t,e,r,n)):(t.tag=0,t=sx(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===Tx){t.tag=11,t=fz(null,t,e,r,n);break e}else if(i===Cx){t.tag=14,t=mz(null,t,e,r,n);break e}}throw t=Nb(e)||e,Error(D(306,t,""))}}return t;case 0:return sx(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=lo(r,t.pendingProps),vz(e,t,r,i,n);case 3:e:{if(Md(t,t.stateNode.containerInfo),e===null)throw Error(D(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,ex(e,t),dc(t,r,null,n);var a=t.memoizedState;if(r=a.cache,dr(t,bt,r),r!==o.cache&&Qb(t,[bt],n,!0),uc(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yz(e,t,r,n);break e}else if(r!==i){i=Pn(Error(D(424)),t),_c(i),t=yz(e,t,r,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,tt=qn(e.firstChild),Ot=t,ze=!0,Sr=null,Fn=!0,n=qT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(io(),r===i){t=Fi(e,t,n);break e}At(e,t,r,n)}t=t.child}return t;case 26:return Id(e,t),e===null?(n=Lz(t.type,null,t.pendingProps,null))?t.memoizedState=n:ze||(n=t.type,e=t.pendingProps,r=lf(xr.current).createElement(n),r[jt]=t,r[dn]=e,Nt(r,n,e),zt(r),t.stateNode=r):t.memoizedState=Lz(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Mb(t),e===null&&ze&&(r=t.stateNode=z2(t.type,t.pendingProps,xr.current),Ot=t,Fn=!0,i=tt,Or(t.type)?(wx=i,tt=qn(r.firstChild)):tt=i),At(e,t,t.pendingProps.children,n),Id(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((i=r=tt)&&(r=GU(r,t.type,t.pendingProps,Fn),r!==null?(t.stateNode=r,Ot=t,tt=qn(r.firstChild),Fn=!1,i=!0):i=!1),i||Dr(t)),Mb(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,xx(i,o)?r=null:a!==null&&xx(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=Xx(e,t,uU,null,null,n),Ec._currentValue=i),Id(e,t),At(e,t,r,n),t.child;case 6:return e===null&&ze&&((e=n=tt)&&(n=YU(n,t.pendingProps,Fn),n!==null?(t.stateNode=n,Ot=t,tt=null,e=!0):e=!1),e||Dr(t)),null;case 13:return O4(e,t,n);case 4:return Md(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):At(e,t,r,n),t.child;case 11:return fz(e,t,t.type,t.pendingProps,n);case 7:return At(e,t,t.pendingProps,n),t.child;case 8:return At(e,t,t.pendingProps.children,n),t.child;case 12:return At(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,dr(t,t.type,r.value),At(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,ro(t),i=Ut(i),r=r(i),t.flags|=1,At(e,t,r,n),t.child;case 14:return mz(e,t,t.type,t.pendingProps,n);case 15:return A4(e,t,t.type,t.pendingProps,n);case 19:return U4(e,t,n);case 31:return yU(e,t,n);case 22:return j4(e,t,n,t.pendingProps);case 24:return ro(t),r=Ut(bt),e===null?(i=qx(),i===null&&(i=He,o=Vx(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Gx(t),dr(t,bt,i)):((e.lanes&n)!==0&&(ex(e,t),dc(t,null,null,n),uc()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),dr(t,bt,r)):(r=o.cache,dr(t,bt,r),r!==i.cache&&Qb(t,[bt],n,!0))),At(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(D(156,t.tag))}function Ci(e){e.flags|=4}function Sb(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(a2())e.flags|=8192;else throw to=Hd,Hx}else e.flags&=-16777217}function xz(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!E2(t))if(a2())e.flags|=8192;else throw to=Hd,Hx}function hd(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lT():536870912,e.lanes|=t,La|=t)}function Xl(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xU(e,t,n){var r=t.pendingProps;switch(Fx(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Mi(bt),Ua(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fa(t)?Ci(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fb())),et(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Ci(t),o!==null?(et(t),xz(t,o)):(et(t),Sb(t,i,null,r,n))):o?o!==e.memoizedState?(Ci(t),et(t),xz(t,o)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Ci(t),et(t),Sb(t,i,e,r,n)),null;case 27:if(Bd(t),n=xr.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ci(t);else{if(!r){if(t.stateNode===null)throw Error(D(166));return et(t),null}e=pi.current,fa(t)?J$(t,e):(e=z2(i,r,n),t.stateNode=e,Ci(t))}return et(t),null;case 5:if(Bd(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ci(t);else{if(!r){if(t.stateNode===null)throw Error(D(166));return et(t),null}if(o=pi.current,fa(t))J$(t,o);else{var a=lf(xr.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[jt]=t,o[dn]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(Nt(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Ci(t)}}return et(t),Sb(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ci(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(e=xr.current,fa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ot,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[jt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||k2(e.nodeValue,n)),e||Dr(t,!0)}else e=lf(e).createTextNode(r),e[jt]=t,t.stateNode=e}return et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=fa(t),n!==null){if(e===null){if(!r)throw Error(D(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(557));e[jt]=t}else io(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else n=fb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(xn(t),t):(xn(t),null);if((t.flags&128)!==0)throw Error(D(558))}return et(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=fa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[jt]=t}else io(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),i=!1}else i=fb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(xn(t),t):(xn(t),null)}return xn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hd(t,t.updateQueue),et(t),null);case 4:return Ua(),e===null&&g1(t.stateNode.containerInfo),et(t),null;case 10:return Mi(t.type),et(t),null;case 19:if(Tt(ht),r=t.memoizedState,r===null)return et(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)Xl(r,!1);else{if(ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Yd(e),o!==null){for(t.flags|=128,Xl(r,!1),e=o.updateQueue,t.updateQueue=e,hd(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)RT(n,e),n=n.sibling;return Ke(ht,ht.current&1|2),ze&&Ai(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_n()>ef&&(t.flags|=128,i=!0,Xl(r,!1),t.lanes=4194304)}else{if(!i)if(e=Yd(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,hd(t,e),Xl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!ze)return et(t),null}else 2*_n()-r.renderingStartTime>ef&&n!==536870912&&(t.flags|=128,i=!0,Xl(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_n(),e.sibling=null,n=ht.current,Ke(ht,i?n&1|2:n&1),ze&&Ai(t,r.treeForkCount),e):(et(t),null);case 22:case 23:return xn(t),Yx(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),n=t.updateQueue,n!==null&&hd(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Tt(eo),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Mi(bt),et(t),null;case 25:return null;case 30:return null}throw Error(D(156,t.tag))}function SU(e,t){switch(Fx(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mi(bt),Ua(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bd(t),null;case 31:if(t.memoizedState!==null){if(xn(t),t.alternate===null)throw Error(D(340));io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(ht),null;case 4:return Ua(),null;case 10:return Mi(t.type),null;case 22:case 23:return xn(t),Yx(),e!==null&&Tt(eo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mi(bt),null;case 25:return null;default:return null}}function R4(e,t){switch(Fx(t),t.tag){case 3:Mi(bt),Ua();break;case 26:case 27:case 5:Bd(t);break;case 4:Ua();break;case 31:t.memoizedState!==null&&xn(t);break;case 13:xn(t);break;case 19:Tt(ht);break;case 10:Mi(t.type);break;case 22:case 23:xn(t),Yx(),e!==null&&Tt(eo);break;case 24:Mi(bt)}}function Zc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(l){Me(t,t.return,l)}}function Ir(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(l!==void 0){a.destroy=void 0,i=t;var c=n,u=l;try{u()}catch(d){Me(i,c,d)}}}r=r.next}while(r!==o)}}catch(d){Me(t,t.return,d)}}function M4(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{GT(t,n)}catch(r){Me(e,e.return,r)}}}function B4(e,t,n){n.props=lo(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Me(e,t,r)}}function mc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){Me(e,t,i)}}function mi(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Me(e,t,i)}else n.current=null}function Z4(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Me(e,e.return,i)}}function kb(e,t,n){try{var r=e.stateNode;LU(r,e.type,n,t),r[dn]=t}catch(i){Me(e,e.return,i)}}function L4(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Or(e.type)||e.tag===4}function _b(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Or(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ui));else if(r!==4&&(r===27&&Or(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(dx(e,t,n),e=e.sibling;e!==null;)dx(e,t,n),e=e.sibling}function Wd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Or(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Wd(e,t,n),e=e.sibling;e!==null;)Wd(e,t,n),e=e.sibling}function P4(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Nt(t,r,n),t[jt]=e,t[dn]=n}catch(o){Me(e,e.return,o)}}var ji=!1,yt=!1,wb=!1,Sz=typeof WeakSet=="function"?WeakSet:Set,$t=null;function kU(e,t){if(e=e.containerInfo,yx=df,e=ET(e),Mx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,m=e,p=null;t:for(;;){for(var f;m!==n||i!==0&&m.nodeType!==3||(l=a+i),m!==o||r!==0&&m.nodeType!==3||(c=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(f=m.firstChild)!==null;)p=m,m=f;for(;;){if(m===e)break t;if(p===n&&++u===i&&(l=a),p===o&&++d===r&&(c=a),(f=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=f}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(bx={focusedElem:e,selectionRange:n},df=!1,$t=t;$t!==null;)if(t=$t,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$t=e;else for(;$t!==null;){switch(t=$t,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var x=lo(n.type,i);e=r.getSnapshotBeforeUpdate(x,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(_){Me(n,n.return,_)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Sx(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sx(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(D(163))}if(e=t.sibling,e!==null){e.return=t.return,$t=e;break}$t=t.return}}function F4(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Di(e,n),r&4&&Zc(5,n);break;case 1:if(Di(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){Me(n,n.return,a)}else{var i=lo(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){Me(n,n.return,a)}}r&64&&M4(n),r&512&&mc(n,n.return);break;case 3:if(Di(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{GT(e,t)}catch(a){Me(n,n.return,a)}}break;case 27:t===null&&r&4&&P4(n);case 26:case 5:Di(e,n),t===null&&r&4&&Z4(n),r&512&&mc(n,n.return);break;case 12:Di(e,n);break;case 31:Di(e,n),r&4&&H4(e,n);break;case 13:Di(e,n),r&4&&G4(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=IU.bind(null,n),JU(e,n))));break;case 22:if(r=n.memoizedState!==null||ji,!r){t=t!==null&&t.memoizedState!==null||yt,i=ji;var o=yt;ji=r,(yt=t)&&!o?Ii(e,n,(n.subtreeFlags&8772)!==0):Di(e,n),ji=i,yt=o}break;case 30:break;default:Di(e,n)}}function V4(e){var t=e.alternate;t!==null&&(e.alternate=null,V4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ax(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ot=null,cn=!1;function Ei(e,t,n){for(n=n.child;n!==null;)q4(e,t,n),n=n.sibling}function q4(e,t,n){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(jc,n)}catch{}switch(n.tag){case 26:yt||mi(n,t),Ei(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:yt||mi(n,t);var r=ot,i=cn;Or(n.type)&&(ot=n.stateNode,cn=!1),Ei(e,t,n),vc(n.stateNode),ot=r,cn=i;break;case 5:yt||mi(n,t);case 6:if(r=ot,i=cn,ot=null,Ei(e,t,n),ot=r,cn=i,ot!==null)if(cn)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(n.stateNode)}catch(o){Me(n,t,o)}else try{ot.removeChild(n.stateNode)}catch(o){Me(n,t,o)}break;case 18:ot!==null&&(cn?(e=ot,Nz(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),qa(e)):Nz(ot,n.stateNode));break;case 4:r=ot,i=cn,ot=n.stateNode.containerInfo,cn=!0,Ei(e,t,n),ot=r,cn=i;break;case 0:case 11:case 14:case 15:Ir(2,n,t),yt||Ir(4,n,t),Ei(e,t,n);break;case 1:yt||(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&B4(n,t,r)),Ei(e,t,n);break;case 21:Ei(e,t,n);break;case 22:yt=(r=yt)||n.memoizedState!==null,Ei(e,t,n),yt=r;break;default:Ei(e,t,n)}}function H4(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qa(e)}catch(n){Me(t,t.return,n)}}}function G4(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qa(e)}catch(n){Me(t,t.return,n)}}function _U(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sz),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sz),t;default:throw Error(D(435,e.tag))}}function gd(e,t){var n=_U(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=AU.bind(null,e,r);r.then(i,i)}})}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 27:if(Or(l.type)){ot=l.stateNode,cn=!1;break e}break;case 5:ot=l.stateNode,cn=!1;break e;case 3:case 4:ot=l.stateNode.containerInfo,cn=!0;break e}l=l.return}if(ot===null)throw Error(D(160));q4(o,a,i),ot=null,cn=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Y4(t,e),t=t.sibling}var Xn=null;function Y4(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:an(t,e),ln(e),r&4&&(Ir(3,e,e.return),Zc(3,e),Ir(5,e,e.return));break;case 1:an(t,e),ln(e),r&512&&(yt||n===null||mi(n,n.return)),r&64&&ji&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Xn;if(an(t,e),ln(e),r&512&&(yt||n===null||mi(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Nc]||o[jt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Nt(o,r,n),o[jt]=e,zt(o),r=o;break e;case"link":var a=Fz("link","href",i).get(r+(n.href||""));if(a){for(var l=0;l<a.length;l++)if(o=a[l],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(l,1);break t}}o=i.createElement(r),Nt(o,r,n),i.head.appendChild(o);break;case"meta":if(a=Fz("meta","content",i).get(r+(n.content||""))){for(l=0;l<a.length;l++)if(o=a[l],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(l,1);break t}}o=i.createElement(r),Nt(o,r,n),i.head.appendChild(o);break;default:throw Error(D(468,r))}o[jt]=e,zt(o),r=o}e.stateNode=r}else Vz(i,e.type,e.stateNode);else e.stateNode=Pz(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Vz(i,e.type,e.stateNode):Pz(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&kb(e,e.memoizedProps,n.memoizedProps)}break;case 27:an(t,e),ln(e),r&512&&(yt||n===null||mi(n,n.return)),n!==null&&r&4&&kb(e,e.memoizedProps,n.memoizedProps);break;case 5:if(an(t,e),ln(e),r&512&&(yt||n===null||mi(n,n.return)),e.flags&32){i=e.stateNode;try{Ra(i,"")}catch(x){Me(e,e.return,x)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,kb(e,i,n!==null?n.memoizedProps:i)),r&1024&&(wb=!0);break;case 6:if(an(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(D(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(x){Me(e,e.return,x)}}break;case 3:if(Od=null,i=Xn,Xn=cf(t.containerInfo),an(t,e),Xn=i,ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qa(t.containerInfo)}catch(x){Me(e,e.return,x)}wb&&(wb=!1,J4(e));break;case 4:r=Xn,Xn=cf(e.stateNode.containerInfo),an(t,e),ln(e),Xn=r;break;case 12:an(t,e),ln(e);break;case 31:an(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gd(e,r)));break;case 13:an(t,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(wf=_n()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gd(e,r)));break;case 22:i=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,u=ji,d=yt;if(ji=u||i,yt=d||c,an(t,e),yt=d,ji=u,ln(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||c||ji||yt||Kr(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(o=c.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{l=c.stateNode;var m=c.memoizedProps.style,p=m!=null&&m.hasOwnProperty("display")?m.display:null;l.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(x){Me(c,c.return,x)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(x){Me(c,c.return,x)}}}else if(t.tag===18){if(n===null){c=t;try{var f=c.stateNode;i?Rz(f,!0):Rz(c.stateNode,!1)}catch(x){Me(c,c.return,x)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gd(e,n))));break;case 19:an(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gd(e,r)));break;case 30:break;case 21:break;default:an(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(L4(r)){n=r;break}r=r.return}if(n==null)throw Error(D(160));switch(n.tag){case 27:var i=n.stateNode,o=_b(e);Wd(e,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(Ra(a,""),n.flags&=-33);var l=_b(e);Wd(e,l,a);break;case 3:case 4:var c=n.stateNode.containerInfo,u=_b(e);dx(e,u,c);break;default:throw Error(D(161))}}catch(d){Me(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function J4(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;J4(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Di(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)F4(e,t.alternate,t),t=t.sibling}function Kr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ir(4,t,t.return),Kr(t);break;case 1:mi(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&B4(t,t.return,n),Kr(t);break;case 27:vc(t.stateNode);case 26:case 5:mi(t,t.return),Kr(t);break;case 22:t.memoizedState===null&&Kr(t);break;case 30:Kr(t);break;default:Kr(t)}e=e.sibling}}function Ii(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Ii(i,o,n),Zc(4,o);break;case 1:if(Ii(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){Me(r,r.return,u)}if(r=o,i=r.updateQueue,i!==null){var l=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)HT(c[i],l)}catch(u){Me(r,r.return,u)}}n&&a&64&&M4(o),mc(o,o.return);break;case 27:P4(o);case 26:case 5:Ii(i,o,n),n&&r===null&&a&4&&Z4(o),mc(o,o.return);break;case 12:Ii(i,o,n);break;case 31:Ii(i,o,n),n&&a&4&&H4(i,o);break;case 13:Ii(i,o,n),n&&a&4&&G4(i,o);break;case 22:o.memoizedState===null&&Ii(i,o,n),mc(o,o.return);break;case 30:break;default:Ii(i,o,n)}t=t.sibling}}function u1(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Mc(n))}function d1(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mc(e))}function Jn(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)X4(e,t,n,r),t=t.sibling}function X4(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jn(e,t,n,r),i&2048&&Zc(9,t);break;case 1:Jn(e,t,n,r);break;case 3:Jn(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mc(e)));break;case 12:if(i&2048){Jn(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,l=o.onPostCommit;typeof l=="function"&&l(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){Me(t,t.return,c)}}else Jn(e,t,n,r);break;case 31:Jn(e,t,n,r);break;case 13:Jn(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?Jn(e,t,n,r):pc(e,t):o._visibility&2?Jn(e,t,n,r):(o._visibility|=2,pa(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&u1(a,t);break;case 24:Jn(e,t,n,r),i&2048&&d1(t.alternate,t);break;default:Jn(e,t,n,r)}}function pa(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,l=n,c=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:pa(o,a,l,c,i),Zc(8,a);break;case 23:break;case 22:var d=a.stateNode;a.memoizedState!==null?d._visibility&2?pa(o,a,l,c,i):pc(o,a):(d._visibility|=2,pa(o,a,l,c,i)),i&&u&2048&&u1(a.alternate,a);break;case 24:pa(o,a,l,c,i),i&&u&2048&&d1(a.alternate,a);break;default:pa(o,a,l,c,i)}t=t.sibling}}function pc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:pc(n,r),i&2048&&u1(r.alternate,r);break;case 24:pc(n,r),i&2048&&d1(r.alternate,r);break;default:pc(n,r)}t=t.sibling}}var rc=8192;function ma(e,t,n){if(e.subtreeFlags&rc)for(e=e.child;e!==null;)K4(e,t,n),e=e.sibling}function K4(e,t,n){switch(e.tag){case 26:ma(e,t,n),e.flags&rc&&e.memoizedState!==null&&lN(n,Xn,e.memoizedState,e.memoizedProps);break;case 5:ma(e,t,n);break;case 3:case 4:var r=Xn;Xn=cf(e.stateNode.containerInfo),ma(e,t,n),Xn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=rc,rc=16777216,ma(e,t,n),rc=r):ma(e,t,n));break;default:ma(e,t,n)}}function Q4(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Kl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$t=r,e2(r,e)}Q4(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)W4(e),e=e.sibling}function W4(e){switch(e.tag){case 0:case 11:case 15:Kl(e),e.flags&2048&&Ir(9,e,e.return);break;case 3:Kl(e);break;case 12:Kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ad(e)):Kl(e);break;default:Kl(e)}}function Ad(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$t=r,e2(r,e)}Q4(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ir(8,t,t.return),Ad(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ad(t));break;default:Ad(t)}e=e.sibling}}function e2(e,t){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:Ir(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Mc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$t=r;else e:for(n=e;$t!==null;){r=$t;var i=r.sibling,o=r.return;if(V4(r),r===n){$t=null;break e}if(i!==null){i.return=o,$t=i;break e}$t=o}}}var wU={getCacheForType:function(e){var t=Ut(bt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(bt).controller.signal}},$U=typeof WeakMap=="function"?WeakMap:Map,De=0,He=null,ke=null,_e=0,Re=0,bn=null,vr=!1,Xa=!1,f1=!1,Vi=0,ft=0,Ar=0,no=0,m1=0,kn=0,La=0,hc=null,sn=null,fx=!1,wf=0,t2=0,ef=1/0,tf=null,wr=null,kt=0,$r=null,Pa=null,Bi=0,mx=0,px=null,n2=null,gc=0,hx=null;function zn(){return(De&2)!==0&&_e!==0?_e&-_e:oe.T!==null?h1():dT()}function i2(){if(kn===0)if((_e&536870912)===0||ze){var e=ad;ad<<=1,(ad&3932160)===0&&(ad=262144),kn=e}else kn=536870912;return e=Cn.current,e!==null&&(e.flags|=32),kn}function un(e,t,n){(e===He&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),yr(e,_e,kn,!1)),Uc(e,n),((De&2)===0||e!==He)&&(e===He&&((De&2)===0&&(no|=n),ft===4&&yr(e,_e,kn,!1)),gi(e))}function r2(e,t,n){if((De&6)!==0)throw Error(D(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Oc(e,t),i=r?CU(e,t):$b(e,t,!0),o=r;do{if(i===0){Xa&&!r&&yr(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!zU(n)){i=$b(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var l=e;i=hc;var c=l.current.memoizedState.isDehydrated;if(c&&(Fa(l,a).flags|=256),a=$b(l,a,!1),a!==2){if(f1&&!c){l.errorRecoveryDisabledLanes|=o,no|=o,i=4;break e}o=sn,sn=i,o!==null&&(sn===null?sn=o:sn.push.apply(sn,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){Fa(e,0),yr(e,t,0,!0);break}e:{switch(r=e,o=i,o){case 0:case 1:throw Error(D(345));case 4:if((t&4194048)!==t)break;case 6:yr(r,t,kn,!vr);break e;case 2:sn=null;break;case 3:case 5:break;default:throw Error(D(329))}if((t&62914560)===t&&(i=wf+300-_n(),10<i)){if(yr(r,t,kn,!vr),mf(r,0,!0)!==0)break e;Bi=t,r.timeoutHandle=w2(kz.bind(null,r,n,sn,tf,fx,t,kn,no,La,vr,o,"Throttled",-0,0),i);break e}kz(r,n,sn,tf,fx,t,kn,no,La,vr,o,null,-0,0)}}break}while(!0);gi(e)}function kz(e,t,n,r,i,o,a,l,c,u,d,m,p,f){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ui},K4(t,o,m);var x=(o&62914560)===o?wf-_n():(o&4194048)===o?t2-_n():0;if(x=cN(m,x),x!==null){Bi=o,e.cancelPendingCommit=x(wz.bind(null,e,t,o,n,r,i,a,l,c,d,m,null,p,f)),yr(e,o,a,!u);return}}wz(e,t,o,n,r,i,a,l,c)}function zU(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Tn(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yr(e,t,n,r){t&=~m1,t&=~no,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-$n(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&cT(e,n,t)}function $f(){return(De&6)===0?(Lc(0,!1),!1):!0}function p1(){if(ke!==null){if(Re===0)var e=ke.return;else e=ke,Ni=mo=null,Wx(e),Aa=null,wc=0,e=ke;for(;e!==null;)R4(e.alternate,e),e=e.return;ke=null}}function Fa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,VU(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Bi=0,p1(),He=e,ke=n=Ri(e.current,null),_e=t,Re=0,bn=null,vr=!1,Xa=Oc(e,t),f1=!1,La=kn=m1=no=Ar=ft=0,sn=hc=null,fx=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-$n(r),o=1<<i;t|=e[i],r&=~o}return Vi=t,vf(),n}function o2(e,t){pe=null,oe.H=zc,t===Ja||t===bf?(t=ez(),Re=3):t===Hx?(t=ez(),Re=4):Re=t===c1?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bn=t,ke===null&&(ft=1,Kd(e,Pn(t,e.current)))}function a2(){var e=Cn.current;return e===null?!0:(_e&4194048)===_e?Vn===null:(_e&62914560)===_e||(_e&536870912)!==0?e===Vn:!1}function l2(){var e=oe.H;return oe.H=zc,e===null?zc:e}function c2(){var e=oe.A;return oe.A=wU,e}function nf(){ft=4,vr||(_e&4194048)!==_e&&Cn.current!==null||(Xa=!0),(Ar&134217727)===0&&(no&134217727)===0||He===null||yr(He,_e,kn,!1)}function $b(e,t,n){var r=De;De|=2;var i=l2(),o=c2();(He!==e||_e!==t)&&(tf=null,Fa(e,t)),t=!1;var a=ft;e:do try{if(Re!==0&&ke!==null){var l=ke,c=bn;switch(Re){case 8:p1(),a=6;break e;case 3:case 2:case 9:case 6:Cn.current===null&&(t=!0);var u=Re;if(Re=0,bn=null,Ta(e,l,c,u),n&&Xa){a=0;break e}break;default:u=Re,Re=0,bn=null,Ta(e,l,c,u)}}TU(),a=ft;break}catch(d){o2(e,d)}while(!0);return t&&e.shellSuspendCounter++,Ni=mo=null,De=r,oe.H=i,oe.A=o,ke===null&&(He=null,_e=0,vf()),a}function TU(){for(;ke!==null;)s2(ke)}function CU(e,t){var n=De;De|=2;var r=l2(),i=c2();He!==e||_e!==t?(tf=null,ef=_n()+500,Fa(e,t)):Xa=Oc(e,t);e:do try{if(Re!==0&&ke!==null){t=ke;var o=bn;t:switch(Re){case 1:Re=0,bn=null,Ta(e,t,o,1);break;case 2:case 9:if(W$(o)){Re=0,bn=null,_z(t);break}t=function(){Re!==2&&Re!==9||He!==e||(Re=7),gi(e)},o.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:W$(o)?(Re=0,bn=null,_z(t)):(Re=0,bn=null,Ta(e,t,o,7));break;case 5:var a=null;switch(ke.tag){case 26:a=ke.memoizedState;case 5:case 27:var l=ke;if(a?E2(a):l.stateNode.complete){Re=0,bn=null;var c=l.sibling;if(c!==null)ke=c;else{var u=l.return;u!==null?(ke=u,zf(u)):ke=null}break t}}Re=0,bn=null,Ta(e,t,o,5);break;case 6:Re=0,bn=null,Ta(e,t,o,6);break;case 8:p1(),ft=6;break e;default:throw Error(D(462))}}EU();break}catch(d){o2(e,d)}while(!0);return Ni=mo=null,oe.H=r,oe.A=i,De=n,ke!==null?0:(He=null,_e=0,vf(),ft)}function EU(){for(;ke!==null&&!Qj();)s2(ke)}function s2(e){var t=N4(e.alternate,e,Vi);e.memoizedProps=e.pendingProps,t===null?zf(e):ke=t}function _z(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gz(n,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=gz(n,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:Wx(t);default:R4(n,t),t=ke=RT(t,Vi),t=N4(n,t,Vi)}e.memoizedProps=e.pendingProps,t===null?zf(e):ke=t}function Ta(e,t,n,r){Ni=mo=null,Wx(t),Aa=null,wc=0;var i=t.return;try{if(vU(e,i,t,n,_e)){ft=1,Kd(e,Pn(n,e.current)),ke=null;return}}catch(o){if(i!==null)throw ke=i,o;ft=1,Kd(e,Pn(n,e.current)),ke=null;return}t.flags&32768?(ze||r===1?e=!0:Xa||(_e&536870912)!==0?e=!1:(vr=e=!0,(r===2||r===9||r===3||r===6)&&(r=Cn.current,r!==null&&r.tag===13&&(r.flags|=16384))),u2(t,e)):zf(t)}function zf(e){var t=e;do{if((t.flags&32768)!==0){u2(t,vr);return}e=t.return;var n=xU(t.alternate,t,Vi);if(n!==null){ke=n;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);ft===0&&(ft=5)}function u2(e,t){do{var n=SU(e.alternate,e);if(n!==null){n.flags&=32767,ke=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=n}while(e!==null);ft=6,ke=null}function wz(e,t,n,r,i,o,a,l,c){e.cancelPendingCommit=null;do Tf();while(kt!==0);if((De&6)!==0)throw Error(D(327));if(t!==null){if(t===e.current)throw Error(D(177));if(o=t.lanes|t.childLanes,o|=Bx,cO(e,n,o,a,l,c),e===He&&(ke=He=null,_e=0),Pa=t,$r=e,Bi=n,mx=o,px=i,n2=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,jU(Zd,function(){return h2(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=oe.T,oe.T=null,i=Ie.p,Ie.p=2,a=De,De|=4;try{kU(e,t,n)}finally{De=a,Ie.p=i,oe.T=r}}kt=1,d2(),f2(),m2()}}function d2(){if(kt===1){kt=0;var e=$r,t=Pa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=oe.T,oe.T=null;var r=Ie.p;Ie.p=2;var i=De;De|=4;try{Y4(t,e);var o=bx,a=ET(e.containerInfo),l=o.focusedElem,c=o.selectionRange;if(a!==l&&l&&l.ownerDocument&&CT(l.ownerDocument.documentElement,l)){if(c!==null&&Mx(l)){var u=c.start,d=c.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var m=l.ownerDocument||document,p=m&&m.defaultView||window;if(p.getSelection){var f=p.getSelection(),x=l.textContent.length,_=Math.min(c.start,x),Z=c.end===void 0?_:Math.min(c.end,x);!f.extend&&_>Z&&(a=Z,Z=_,_=a);var g=H$(l,_),h=H$(l,Z);if(g&&h&&(f.rangeCount!==1||f.anchorNode!==g.node||f.anchorOffset!==g.offset||f.focusNode!==h.node||f.focusOffset!==h.offset)){var y=m.createRange();y.setStart(g.node,g.offset),f.removeAllRanges(),_>Z?(f.addRange(y),f.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),f.addRange(y))}}}}for(m=[],f=l;f=f.parentNode;)f.nodeType===1&&m.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<m.length;l++){var v=m[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}df=!!yx,bx=yx=null}finally{De=i,Ie.p=r,oe.T=n}}e.current=t,kt=2}}function f2(){if(kt===2){kt=0;var e=$r,t=Pa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=oe.T,oe.T=null;var r=Ie.p;Ie.p=2;var i=De;De|=4;try{F4(e,t.alternate,t)}finally{De=i,Ie.p=r,oe.T=n}}kt=3}}function m2(){if(kt===4||kt===3){kt=0,Wj();var e=$r,t=Pa,n=Bi,r=n2;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?kt=5:(kt=0,Pa=$r=null,p2(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(wr=null),Ix(n),t=t.stateNode,wn&&typeof wn.onCommitFiberRoot=="function")try{wn.onCommitFiberRoot(jc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=oe.T,i=Ie.p,Ie.p=2,oe.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var l=r[a];o(l.value,{componentStack:l.stack})}}finally{oe.T=t,Ie.p=i}}(Bi&3)!==0&&Tf(),gi(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===hx?gc++:(gc=0,hx=e):gc=0,Lc(0,!1)}}function p2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mc(t)))}function Tf(){return d2(),f2(),m2(),h2()}function h2(){if(kt!==5)return!1;var e=$r,t=mx;mx=0;var n=Ix(Bi),r=oe.T,i=Ie.p;try{Ie.p=32>n?32:n,oe.T=null,n=px,px=null;var o=$r,a=Bi;if(kt=0,Pa=$r=null,Bi=0,(De&6)!==0)throw Error(D(331));var l=De;if(De|=4,W4(o.current),X4(o,o.current,a,n),De=l,Lc(0,!1),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(jc,o)}catch{}return!0}finally{Ie.p=i,oe.T=r,p2(e,t)}}function $z(e,t,n){t=Pn(n,t),t=cx(e.stateNode,t,2),e=_r(e,t,2),e!==null&&(Uc(e,2),gi(e))}function Me(e,t,n){if(e.tag===3)$z(e,e,n);else for(;t!==null;){if(t.tag===3){$z(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(wr===null||!wr.has(r))){e=Pn(n,e),n=D4(2),r=_r(t,n,2),r!==null&&(I4(n,r,t,e),Uc(r,2),gi(r));break}}t=t.return}}function zb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $U;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(f1=!0,i.add(n),e=DU.bind(null,e,t,n),t.then(e,e))}function DU(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,He===e&&(_e&n)===n&&(ft===4||ft===3&&(_e&62914560)===_e&&300>_n()-wf?(De&2)===0&&Fa(e,0):m1|=n,La===_e&&(La=0)),gi(e)}function g2(e,t){t===0&&(t=lT()),e=fo(e,t),e!==null&&(Uc(e,t),gi(e))}function IU(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),g2(e,n)}function AU(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(D(314))}r!==null&&r.delete(t),g2(e,n)}function jU(e,t){return Ex(e,t)}var rf=null,ha=null,gx=!1,of=!1,Tb=!1,br=0;function gi(e){e!==ha&&e.next===null&&(ha===null?rf=ha=e:ha=ha.next=e),of=!0,gx||(gx=!0,UU())}function Lc(e,t){if(!Tb&&of){Tb=!0;do for(var n=!1,r=rf;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-$n(42|e)+1)-1,o&=i&~(a&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,zz(r,o))}else o=_e,o=mf(r,r===He?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||Oc(r,o)||(n=!0,zz(r,o));r=r.next}while(n);Tb=!1}}function OU(){v2()}function v2(){of=gx=!1;var e=0;br!==0&&FU()&&(e=br);for(var t=_n(),n=null,r=rf;r!==null;){var i=r.next,o=y2(r,t);o===0?(r.next=null,n===null?rf=i:n.next=i,i===null&&(ha=n)):(n=r,(e!==0||(o&3)!==0)&&(of=!0)),r=i}kt!==0&&kt!==5||Lc(e,!1),br!==0&&(br=0)}function y2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-$n(o),l=1<<a,c=i[a];c===-1?((l&n)===0||(l&r)!==0)&&(i[a]=lO(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}if(t=He,n=_e,n=mf(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&nb(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Oc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&nb(r),Ix(n)){case 2:case 8:n=oT;break;case 32:n=Zd;break;case 268435456:n=aT;break;default:n=Zd}return r=b2.bind(null,e),n=Ex(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&nb(r),e.callbackPriority=2,e.callbackNode=null,2}function b2(e,t){if(kt!==0&&kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Tf()&&e.callbackNode!==n)return null;var r=_e;return r=mf(e,e===He?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(r2(e,r,t),y2(e,_n()),e.callbackNode!=null&&e.callbackNode===n?b2.bind(null,e):null)}function zz(e,t){if(Tf())return null;r2(e,t,!0)}function UU(){qU(function(){(De&6)!==0?Ex(rT,OU):v2()})}function h1(){if(br===0){var e=Ma;e===0&&(e=od,od<<=1,(od&261888)===0&&(od=256)),br=e}return br}function Tz(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_d(""+e)}function Cz(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function NU(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=Tz((i[dn]||null).action),a=r.submitter;a&&(t=(t=a[dn]||null)?Tz(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var l=new pf("action","action",null,r,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(br!==0){var c=a?Cz(i,a):new FormData(i);ax(n,{pending:!0,data:c,method:i.method,action:o},null,c)}}else typeof o=="function"&&(l.preventDefault(),c=a?Cz(i,a):new FormData(i),ax(n,{pending:!0,data:c,method:i.method,action:o},o,c))},currentTarget:i}]})}}for(vd=0;vd<Yb.length;vd++)yd=Yb[vd],Ez=yd.toLowerCase(),Dz=yd[0].toUpperCase()+yd.slice(1),Kn(Ez,"on"+Dz);var yd,Ez,Dz,vd;Kn(IT,"onAnimationEnd");Kn(AT,"onAnimationIteration");Kn(jT,"onAnimationStart");Kn("dblclick","onDoubleClick");Kn("focusin","onFocus");Kn("focusout","onBlur");Kn(eU,"onTransitionRun");Kn(tU,"onTransitionStart");Kn(nU,"onTransitionCancel");Kn(OT,"onTransitionEnd");Na("onMouseEnter",["mouseout","mouseover"]);Na("onMouseLeave",["mouseout","mouseover"]);Na("onPointerEnter",["pointerout","pointerover"]);Na("onPointerLeave",["pointerout","pointerover"]);co("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));co("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));co("onBeforeInput",["compositionend","keypress","textInput","paste"]);co("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));co("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));co("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tc="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(" "),RU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tc));function x2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Pd(d)}i.currentTarget=null,o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Pd(d)}i.currentTarget=null,o=c}}}}function Se(e,t){var n=t[Zb];n===void 0&&(n=t[Zb]=new Set);var r=e+"__bubble";n.has(r)||(S2(t,e,2,!1),n.add(r))}function Cb(e,t,n){var r=0;t&&(r|=4),S2(n,e,r,t)}var bd="_reactListening"+Math.random().toString(36).slice(2);function g1(e){if(!e[bd]){e[bd]=!0,fT.forEach(function(n){n!=="selectionchange"&&(RU.has(n)||Cb(n,!1,e),Cb(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,Cb("selectionchange",!1,t))}}function S2(e,t,n,r){switch(O2(t)){case 2:var i=dN;break;case 8:i=fN;break;default:i=x1}n=i.bind(null,t,n,e),i=void 0,!qb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Eb(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;l!==null;){if(a=ya(l),a===null)return;if(c=a.tag,c===5||c===6||c===26||c===27){r=o=a;continue e}l=l.parentNode}}r=r.return}xT(function(){var u=o,d=Ox(n),m=[];e:{var p=UT.get(e);if(p!==void 0){var f=pf,x=e;switch(e){case"keypress":if($d(n)===0)break e;case"keydown":case"keyup":f=AO;break;case"focusin":x="focus",f=lb;break;case"focusout":x="blur",f=lb;break;case"beforeblur":case"afterblur":f=lb;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=R$;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=xO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=UO;break;case IT:case AT:case jT:f=_O;break;case OT:f=RO;break;case"scroll":case"scrollend":f=yO;break;case"wheel":f=BO;break;case"copy":case"cut":case"paste":f=$O;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=B$;break;case"toggle":case"beforetoggle":f=LO}var _=(t&4)!==0,Z=!_&&(e==="scroll"||e==="scrollend"),g=_?p!==null?p+"Capture":null:p;_=[];for(var h=u,y;h!==null;){var v=h;if(y=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||y===null||g===null||(v=bc(h,g),v!=null&&_.push(Cc(h,v,y))),Z)break;h=h.return}0<_.length&&(p=new f(p,x,null,n,d),m.push({event:p,listeners:_}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==Vb&&(x=n.relatedTarget||n.fromElement)&&(ya(x)||x[Ha]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=u,x=x?ya(x):null,x!==null&&(Z=Ac(x),_=x.tag,x!==Z||_!==5&&_!==27&&_!==6)&&(x=null)):(f=null,x=u),f!==x)){if(_=R$,v="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(_=B$,v="onPointerLeave",g="onPointerEnter",h="pointer"),Z=f==null?p:nc(f),y=x==null?p:nc(x),p=new _(v,h+"leave",f,n,d),p.target=Z,p.relatedTarget=y,v=null,ya(d)===u&&(_=new _(g,h+"enter",x,n,d),_.target=y,_.relatedTarget=Z,v=_),Z=v,f&&x)t:{for(_=MU,g=f,h=x,y=0,v=g;v;v=_(v))y++;v=0;for(var j=h;j;j=_(j))v++;for(;0<y-v;)g=_(g),y--;for(;0<v-y;)h=_(h),v--;for(;y--;){if(g===h||h!==null&&g===h.alternate){_=g;break t}g=_(g),h=_(h)}_=null}else _=null;f!==null&&Iz(m,p,f,_,!1),x!==null&&Z!==null&&Iz(m,Z,x,_,!0)}}e:{if(p=u?nc(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var X=F$;else if(P$(p))if(zT)X=KO;else{X=JO;var L=YO}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&jx(u.elementType)&&(X=F$):X=XO;if(X&&(X=X(e,u))){$T(m,X,n,d);break e}L&&L(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&Fb(p,"number",p.value)}switch(L=u?nc(u):window,e){case"focusin":(P$(L)||L.contentEditable==="true")&&(Sa=L,Hb=u,lc=null);break;case"focusout":lc=Hb=Sa=null;break;case"mousedown":Gb=!0;break;case"contextmenu":case"mouseup":case"dragend":Gb=!1,G$(m,n,d);break;case"selectionchange":if(WO)break;case"keydown":case"keyup":G$(m,n,d)}var T;if(Rx)e:{switch(e){case"compositionstart":var Q="onCompositionStart";break e;case"compositionend":Q="onCompositionEnd";break e;case"compositionupdate":Q="onCompositionUpdate";break e}Q=void 0}else xa?_T(e,n)&&(Q="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Q="onCompositionStart");Q&&(kT&&n.locale!=="ko"&&(xa||Q!=="onCompositionStart"?Q==="onCompositionEnd"&&xa&&(T=ST()):(gr=d,Ux="value"in gr?gr.value:gr.textContent,xa=!0)),L=af(u,Q),0<L.length&&(Q=new M$(Q,e,null,n,d),m.push({event:Q,listeners:L}),T?Q.data=T:(T=wT(n),T!==null&&(Q.data=T)))),(T=FO?VO(e,n):qO(e,n))&&(Q=af(u,"onBeforeInput"),0<Q.length&&(L=new M$("onBeforeInput","beforeinput",null,n,d),m.push({event:L,listeners:Q}),L.data=T)),NU(m,e,u,n,d)}x2(m,t)})}function Cc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function af(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=bc(e,n),i!=null&&r.unshift(Cc(e,i,o)),i=bc(e,t),i!=null&&r.push(Cc(e,i,o))),e.tag===3)return r;e=e.return}return[]}function MU(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Iz(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(l=l.tag,c!==null&&c===r)break;l!==5&&l!==26&&l!==27||u===null||(c=u,i?(u=bc(n,o),u!=null&&a.unshift(Cc(n,u,c))):i||(u=bc(n,o),u!=null&&a.push(Cc(n,u,c)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var BU=/\r\n?/g,ZU=/\u0000|\uFFFD/g;function Az(e){return(typeof e=="string"?e:""+e).replace(BU,`
9
- `).replace(ZU,"")}function k2(e,t){return t=Az(t),Az(e)===t}function Le(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ra(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ra(e,""+r);break;case"className":cd(e,"class",r);break;case"tabIndex":cd(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":cd(e,n,r);break;case"style":bT(e,r,o);break;case"data":if(t!=="object"){cd(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=_d(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Le(e,t,"name",i.name,i,null),Le(e,t,"formEncType",i.formEncType,i,null),Le(e,t,"formMethod",i.formMethod,i,null),Le(e,t,"formTarget",i.formTarget,i,null)):(Le(e,t,"encType",i.encType,i,null),Le(e,t,"method",i.method,i,null),Le(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=_d(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Ui);break;case"onScroll":r!=null&&Se("scroll",e);break;case"onScrollEnd":r!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(D(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(D(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=_d(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Se("beforetoggle",e),Se("toggle",e),kd(e,"popover",r);break;case"xlinkActuate":Ti(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Ti(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Ti(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Ti(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Ti(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Ti(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Ti(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Ti(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Ti(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":kd(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=gO.get(n)||n,kd(e,n,r))}}function vx(e,t,n,r,i,o){switch(n){case"style":bT(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(D(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(D(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ra(e,r):(typeof r=="number"||typeof r=="bigint")&&Ra(e,""+r);break;case"onScroll":r!=null&&Se("scroll",e);break;case"onScrollEnd":r!=null&&Se("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Ui);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mT.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[dn]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):kd(e,n,r)}}}function Nt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(D(137,t));default:Le(e,t,o,a,n,null)}}i&&Le(e,t,"srcSet",n.srcSet,n,null),r&&Le(e,t,"src",n.src,n,null);return;case"input":Se("invalid",e);var l=o=a=i=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":i=d;break;case"type":a=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(D(137,t));break;default:Le(e,t,r,d,n,null)}}gT(e,o,l,c,u,a,i,!1);return;case"select":Se("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":r=l;default:Le(e,t,i,l,n,null)}t=o,n=a,e.multiple=!!r,t!=null?Ea(e,!!r,t,!1):n!=null&&Ea(e,!!r,n,!0);return;case"textarea":Se("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":r=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(D(91));break;default:Le(e,t,a,l,n,null)}yT(e,r,i,o);return;case"option":for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null)&&(c==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Le(e,t,c,r,n,null));return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(r=0;r<Tc.length;r++)Se(Tc[r],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(D(137,t));default:Le(e,t,u,r,n,null)}return;default:if(jx(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&vx(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Le(e,t,l,r,n,null))}function LU(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,l=null,c=null,u=null,d=null;for(f in n){var m=n[f];if(n.hasOwnProperty(f)&&m!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":c=m;default:r.hasOwnProperty(f)||Le(e,t,f,null,r,m)}}for(var p in r){var f=r[p];if(m=n[p],r.hasOwnProperty(p)&&(f!=null||m!=null))switch(p){case"type":o=f;break;case"name":i=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(D(137,t));break;default:f!==m&&Le(e,t,p,f,r,m)}}Pb(e,a,l,c,u,d,o,i);return;case"select":f=a=l=p=null;for(o in n)if(c=n[o],n.hasOwnProperty(o)&&c!=null)switch(o){case"value":break;case"multiple":f=c;default:r.hasOwnProperty(o)||Le(e,t,o,null,r,c)}for(i in r)if(o=r[i],c=n[i],r.hasOwnProperty(i)&&(o!=null||c!=null))switch(i){case"value":p=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==c&&Le(e,t,i,o,r,c)}t=l,n=a,r=f,p!=null?Ea(e,!!n,p,!1):!!r!=!!n&&(t!=null?Ea(e,!!n,t,!0):Ea(e,!!n,n?[]:"",!1));return;case"textarea":f=p=null;for(l in n)if(i=n[l],n.hasOwnProperty(l)&&i!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Le(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":p=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(D(91));break;default:i!==o&&Le(e,t,a,i,r,o)}vT(e,p,f);return;case"option":for(var x in n)p=n[x],n.hasOwnProperty(x)&&p!=null&&!r.hasOwnProperty(x)&&(x==="selected"?e.selected=!1:Le(e,t,x,null,r,p));for(c in r)p=r[c],f=n[c],r.hasOwnProperty(c)&&p!==f&&(p!=null||f!=null)&&(c==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":Le(e,t,c,p,r,f));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!=null&&!r.hasOwnProperty(_)&&Le(e,t,_,null,r,p);for(u in r)if(p=r[u],f=n[u],r.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(D(137,t));break;default:Le(e,t,u,p,r,f)}return;default:if(jx(t)){for(var Z in n)p=n[Z],n.hasOwnProperty(Z)&&p!==void 0&&!r.hasOwnProperty(Z)&&vx(e,t,Z,void 0,r,p);for(d in r)p=r[d],f=n[d],!r.hasOwnProperty(d)||p===f||p===void 0&&f===void 0||vx(e,t,d,p,r,f);return}}for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Le(e,t,g,null,r,p);for(m in r)p=r[m],f=n[m],!r.hasOwnProperty(m)||p===f||p==null&&f==null||Le(e,t,m,p,r,f)}function jz(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PU(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,l=i.duration;if(o&&l&&jz(a)){for(a=0,l=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],u=c.startTime;if(u>l)break;var d=c.transferSize,m=c.initiatorType;d&&jz(m)&&(c=c.responseEnd,a+=d*(c<l?1:(l-u)/(c-u)))}if(--r,t+=8*(o+a)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yx=null,bx=null;function lf(e){return e.nodeType===9?e:e.ownerDocument}function Oz(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Db=null;function FU(){var e=window.event;return e&&e.type==="popstate"?e===Db?!1:(Db=e,!0):(Db=null,!1)}var w2=typeof setTimeout=="function"?setTimeout:void 0,VU=typeof clearTimeout=="function"?clearTimeout:void 0,Uz=typeof Promise=="function"?Promise:void 0,qU=typeof queueMicrotask=="function"?queueMicrotask:typeof Uz<"u"?function(e){return Uz.resolve(null).then(e).catch(HU)}:w2;function HU(e){setTimeout(function(){throw e})}function Or(e){return e==="head"}function Nz(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(i),qa(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")vc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,vc(n);for(var o=n.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[Nc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&vc(e.ownerDocument.body);n=i}while(n);qa(t)}function Rz(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function Sx(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Sx(n),Ax(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function GU(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Nc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=qn(e.nextSibling),e===null)break}return null}function YU(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=qn(e.nextSibling),e===null))return null;return e}function $2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qn(e.nextSibling),e===null))return null;return e}function kx(e){return e.data==="$?"||e.data==="$~"}function _x(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function JU(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function qn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var wx=null;function Mz(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return qn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Bz(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function z2(e,t,n){switch(t=lf(n),e){case"html":if(e=t.documentElement,!e)throw Error(D(452));return e;case"head":if(e=t.head,!e)throw Error(D(453));return e;case"body":if(e=t.body,!e)throw Error(D(454));return e;default:throw Error(D(451))}}function vc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ax(e)}var Hn=new Map,Zz=new Set;function cf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qi=Ie.d;Ie.d={f:XU,r:KU,D:QU,C:WU,L:eN,m:tN,X:iN,S:nN,M:rN};function XU(){var e=qi.f(),t=$f();return e||t}function KU(e){var t=Ga(e);t!==null&&t.tag===5&&t.type==="form"?b4(t):qi.r(e)}var Ka=typeof document>"u"?null:document;function T2(e,t,n){var r=Ka;if(r&&typeof t=="string"&&t){var i=Ln(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Zz.has(i)||(Zz.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Nt(t,"link",e),zt(t),r.head.appendChild(t)))}}function QU(e){qi.D(e),T2("dns-prefetch",e,null)}function WU(e,t){qi.C(e,t),T2("preconnect",e,t)}function eN(e,t,n){qi.L(e,t,n);var r=Ka;if(r&&e&&t){var i='link[rel="preload"][as="'+Ln(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ln(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ln(n.imageSizes)+'"]')):i+='[href="'+Ln(e)+'"]';var o=i;switch(t){case"style":o=Va(e);break;case"script":o=Qa(e)}Hn.has(o)||(e=nt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Hn.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Pc(o))||t==="script"&&r.querySelector(Fc(o))||(t=r.createElement("link"),Nt(t,"link",e),zt(t),r.head.appendChild(t)))}}function tN(e,t){qi.m(e,t);var n=Ka;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ln(r)+'"][href="'+Ln(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Qa(e)}if(!Hn.has(o)&&(e=nt({rel:"modulepreload",href:e},t),Hn.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fc(o)))return}r=n.createElement("link"),Nt(r,"link",e),zt(r),n.head.appendChild(r)}}}function nN(e,t,n){qi.S(e,t,n);var r=Ka;if(r&&e){var i=Ca(r).hoistableStyles,o=Va(e);t=t||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(Pc(o)))l.loading=5;else{e=nt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Hn.get(o))&&v1(e,n);var c=a=r.createElement("link");zt(c),Nt(c,"link",e),c._p=new Promise(function(u,d){c.onload=u,c.onerror=d}),c.addEventListener("load",function(){l.loading|=1}),c.addEventListener("error",function(){l.loading|=2}),l.loading|=4,jd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:l},i.set(o,a)}}}function iN(e,t){qi.X(e,t);var n=Ka;if(n&&e){var r=Ca(n).hoistableScripts,i=Qa(e),o=r.get(i);o||(o=n.querySelector(Fc(i)),o||(e=nt({src:e,async:!0},t),(t=Hn.get(i))&&y1(e,t),o=n.createElement("script"),zt(o),Nt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function rN(e,t){qi.M(e,t);var n=Ka;if(n&&e){var r=Ca(n).hoistableScripts,i=Qa(e),o=r.get(i);o||(o=n.querySelector(Fc(i)),o||(e=nt({src:e,async:!0,type:"module"},t),(t=Hn.get(i))&&y1(e,t),o=n.createElement("script"),zt(o),Nt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function Lz(e,t,n,r){var i=(i=xr.current)?cf(i):null;if(!i)throw Error(D(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Va(n.href),n=Ca(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Va(n.href);var o=Ca(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(Pc(e)))&&!o._p&&(a.instance=o,a.state.loading=5),Hn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Hn.set(e,n),o||oN(i,e,n,a.state))),t&&r===null)throw Error(D(528,""));return a}if(t&&r!==null)throw Error(D(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qa(n),n=Ca(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(D(444,e))}}function Va(e){return'href="'+Ln(e)+'"'}function Pc(e){return'link[rel="stylesheet"]['+e+"]"}function C2(e){return nt({},e,{"data-precedence":e.precedence,precedence:null})}function oN(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Nt(t,"link",n),zt(t),e.head.appendChild(t))}function Qa(e){return'[src="'+Ln(e)+'"]'}function Fc(e){return"script[async]"+e}function Pz(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Ln(n.href)+'"]');if(r)return t.instance=r,zt(r),r;var i=nt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),zt(r),Nt(r,"style",i),jd(r,n.precedence,e),t.instance=r;case"stylesheet":i=Va(n.href);var o=e.querySelector(Pc(i));if(o)return t.state.loading|=4,t.instance=o,zt(o),o;r=C2(n),(i=Hn.get(i))&&v1(r,i),o=(e.ownerDocument||e).createElement("link"),zt(o);var a=o;return a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Nt(o,"link",r),t.state.loading|=4,jd(o,n.precedence,e),t.instance=o;case"script":return o=Qa(n.src),(i=e.querySelector(Fc(o)))?(t.instance=i,zt(i),i):(r=n,(i=Hn.get(o))&&(r=nt({},n),y1(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),zt(i),Nt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(D(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,jd(r,n.precedence,e));return t.instance}function jd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function v1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function y1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Od=null;function Fz(e,t,n){if(Od===null){var r=new Map,i=Od=new Map;i.set(n,r)}else i=Od,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Nc]||o[jt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var l=r.get(a);l?l.push(o):r.set(a,[o])}}return r}function Vz(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function aN(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function E2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lN(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Va(r.href),o=t.querySelector(Pc(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=sf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,zt(o);return}o=t.ownerDocument||t,r=C2(r),(i=Hn.get(i))&&v1(r,i),o=o.createElement("link"),zt(o);var a=o;a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Nt(o,"link",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=sf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ib=0;function cN(e,t){return e.stylesheets&&e.count===0&&Ud(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Ud(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Ib===0&&(Ib=62500*PU());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ud(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Ib?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ud(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uf=null;function Ud(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uf=new Map,t.forEach(sN,e),uf=null,sf.call(e))}function sN(e,t){if(!(t.state.loading&4)){var n=uf.get(e);if(n)var r=n.get(null);else{n=new Map,uf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=sf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ec={$$typeof:Oi,Provider:null,Consumer:null,_currentValue:Qr,_currentValue2:Qr,_threadCount:0};function uN(e,t,n,r,i,o,a,l,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ib(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.hiddenUpdates=ib(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function D2(e,t,n,r,i,o,a,l,c,u,d,m){return e=new uN(e,t,n,a,c,u,d,m,l),t=1,o===!0&&(t|=24),o=Sn(3,null,null,t),e.current=o,o.stateNode=e,t=Vx(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},Gx(o),e}function I2(e){return e?(e=wa,e):wa}function A2(e,t,n,r,i,o){i=I2(i),r.context===null?r.context=i:r.pendingContext=i,r=kr(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=_r(e,r,t),n!==null&&(un(n,e,t),sc(n,e,t))}function qz(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function b1(e,t){qz(e,t),(e=e.alternate)&&qz(e,t)}function j2(e){if(e.tag===13||e.tag===31){var t=fo(e,67108864);t!==null&&un(t,e,67108864),b1(e,67108864)}}function Hz(e){if(e.tag===13||e.tag===31){var t=zn();t=Dx(t);var n=fo(e,t);n!==null&&un(n,e,t),b1(e,t)}}var df=!0;function dN(e,t,n,r){var i=oe.T;oe.T=null;var o=Ie.p;try{Ie.p=2,x1(e,t,n,r)}finally{Ie.p=o,oe.T=i}}function fN(e,t,n,r){var i=oe.T;oe.T=null;var o=Ie.p;try{Ie.p=8,x1(e,t,n,r)}finally{Ie.p=o,oe.T=i}}function x1(e,t,n,r){if(df){var i=$x(r);if(i===null)Eb(e,t,r,ff,n),Gz(e,r);else if(pN(i,e,t,n,r))r.stopPropagation();else if(Gz(e,r),t&4&&-1<mN.indexOf(e)){for(;i!==null;){var o=Ga(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=Jr(o.pendingLanes);if(a!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var c=1<<31-$n(a);l.entanglements[1]|=c,a&=~c}gi(o),(De&6)===0&&(ef=_n()+500,Lc(0,!1))}}break;case 31:case 13:l=fo(o,2),l!==null&&un(l,o,2),$f(),b1(o,2)}if(o=$x(r),o===null&&Eb(e,t,r,ff,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Eb(e,t,r,null,n)}}function $x(e){return e=Ox(e),S1(e)}var ff=null;function S1(e){if(ff=null,e=ya(e),e!==null){var t=Ac(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Wz(t),e!==null)return e;e=null}else if(n===31){if(e=eT(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ff=e,null}function O2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(eO()){case rT:return 2;case oT:return 8;case Zd:case tO:return 32;case aT:return 268435456;default:return 32}default:return 32}}var zx=!1,zr=null,Tr=null,Cr=null,Dc=new Map,Ic=new Map,pr=[],mN="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 Gz(e,t){switch(e){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Tr=null;break;case"mouseover":case"mouseout":Cr=null;break;case"pointerover":case"pointerout":Dc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ic.delete(t.pointerId)}}function Ql(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ga(t),t!==null&&j2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pN(e,t,n,r,i){switch(t){case"focusin":return zr=Ql(zr,e,t,n,r,i),!0;case"dragenter":return Tr=Ql(Tr,e,t,n,r,i),!0;case"mouseover":return Cr=Ql(Cr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Dc.set(o,Ql(Dc.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ic.set(o,Ql(Ic.get(o)||null,e,t,n,r,i)),!0}return!1}function U2(e){var t=ya(e.target);if(t!==null){var n=Ac(t);if(n!==null){if(t=n.tag,t===13){if(t=Wz(n),t!==null){e.blockedOn=t,D$(e.priority,function(){Hz(n)});return}}else if(t===31){if(t=eT(n),t!==null){e.blockedOn=t,D$(e.priority,function(){Hz(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$x(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vb=r,n.target.dispatchEvent(r),Vb=null}else return t=Ga(n),t!==null&&j2(t),e.blockedOn=n,!1;t.shift()}return!0}function Yz(e,t,n){Nd(e)&&n.delete(t)}function hN(){zx=!1,zr!==null&&Nd(zr)&&(zr=null),Tr!==null&&Nd(Tr)&&(Tr=null),Cr!==null&&Nd(Cr)&&(Cr=null),Dc.forEach(Yz),Ic.forEach(Yz)}function xd(e,t){e.blockedOn===t&&(e.blockedOn=null,zx||(zx=!0,_t.unstable_scheduleCallback(_t.unstable_NormalPriority,hN)))}var Sd=null;function Jz(e){Sd!==e&&(Sd=e,_t.unstable_scheduleCallback(_t.unstable_NormalPriority,function(){Sd===e&&(Sd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(S1(r||n)===null)continue;break}var o=Ga(n);o!==null&&(e.splice(t,3),t-=3,ax(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function qa(e){function t(c){return xd(c,e)}zr!==null&&xd(zr,e),Tr!==null&&xd(Tr,e),Cr!==null&&xd(Cr,e),Dc.forEach(t),Ic.forEach(t);for(var n=0;n<pr.length;n++){var r=pr[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<pr.length&&(n=pr[0],n.blockedOn===null);)U2(n),n.blockedOn===null&&pr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[dn]||null;if(typeof o=="function")a||Jz(n);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[dn]||null)l=a.formAction;else if(S1(i)!==null)continue}else l=a.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),Jz(n)}}}function N2(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function k1(e){this._internalRoot=e}Cf.prototype.render=k1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));var n=t.current,r=zn();A2(n,r,e,t,null,null)};Cf.prototype.unmount=k1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;A2(e.current,2,null,e,null,null),$f(),t[Ha]=null}};function Cf(e){this._internalRoot=e}Cf.prototype.unstable_scheduleHydration=function(e){if(e){var t=dT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pr.length&&t!==0&&t<pr[n].priority;n++);pr.splice(n,0,e),n===0&&U2(e)}};var Xz=Kz.version;if(Xz!=="19.2.8")throw Error(D(527,Xz,"19.2.8"));Ie.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Gj(t),e=e!==null?tT(e):null,e=e===null?null:e.stateNode,e};var gN={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:oe,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Wl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Wl.isDisabled&&Wl.supportsFiber))try{jc=Wl.inject(gN),wn=Wl}catch{}var Wl;Ef.createRoot=function(e,t){if(!Qz(e))throw Error(D(299));var n=!1,r="",i=T4,o=C4,a=E4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=D2(e,1,!1,null,null,n,r,null,i,o,a,N2),e[Ha]=t.current,g1(e),new k1(t)};Ef.hydrateRoot=function(e,t,n){if(!Qz(e))throw Error(D(299));var r=!1,i="",o=T4,a=C4,l=E4,c=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=D2(e,1,!0,t,n??null,r,i,c,o,a,l,N2),t.context=I2(null),n=t.current,r=zn(),r=Dx(r),i=kr(r),i.callback=null,_r(n,i,r),n=r,t.current.lanes=n,Uc(t,n),gi(t),e[Ha]=t.current,g1(e),new Cf(t)};Ef.version="19.2.8"});var Z2=Qn((lL,B2)=>{"use strict";function M2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M2)}catch(e){console.error(e)}}M2(),B2.exports=R2()});var Oe=P(ie(),1);var Yc={id:"code",name:"Code",description:"Full access: read, edit, run commands, and use MCP tools.",groups:["read","edit","command","mcp","always"]},l0={id:"ask",name:"Ask",description:"Read-only: inspect the workspace and answer questions. Cannot edit or run commands.",groups:["read","mcp","always"]},uE={id:"junior",name:"Junior",description:"A cheap model does the work and consults Claude for the plan. Requires the expert.",groups:["read","edit","command","mcp","always"],requiresExpert:!0,guidance:["# Junior mode","","You are the junior on this task. A stronger model (Claude) is available through","`ask_expert` and is the one that decides *what* to do; you decide *how* and carry it out.","You are the hands: reading, searching, editing, running commands, checking results.","","## The first consultation is expensive; the rest are cheap","","Consultations in one task continue **one conversation**. The first pays to establish it","and costs roughly twenty times a follow-up; every one after that is cheap and the expert","still remembers everything you have told it.","","Two things follow, and they matter more than any other instruction here:","","1. **Make the first consultation count.** Gather what is needed first and ask one full,",' well-formed question. Do not open with "hello" or a question you could answer yourself \u2014'," you are paying the setup cost either way, so spend it on something real.","2. **Never repeat yourself afterwards.** The expert remembers the code you pasted, the plan",' it gave you and what you have tried. A follow-up is "step 3 failed with this error",'," not the whole story again. Re-explaining throws away the entire saving.","","## Consulting is the default, not the exception","","On any request that is not trivial, **your first action is `ask_expert`** \u2014 before you plan,","before you edit, before you decide the task is straightforward. Do not wait to be told. If",'the user has to say "ask the expert", this mode has failed and is costing them the price of',"a worse model for no benefit.","","A request is **not** trivial, and you must consult, if any of these is true:","","- it touches more than one file, or a file you have not read in this session;","- it asks you to design, refactor, choose an approach, or decide between options;","- it involves code you did not write in this conversation;","- you would have to guess at how something works to proceed;","- your first attempt failed, or a test or command reported an error;",'- you are about to say "I think" or "probably" about anything load-bearing.',"","When in doubt, consult. A consultation costs cents. Confidently doing the wrong thing costs","the user their afternoon.","","Ask for a concrete plan, the files involved, and the traps to avoid \u2014 **broken into","checkpoints**, as described below.","","**Genuinely trivial requests you simply do:** fixing a typo you can see, answering a","question about a file you have already read, running a command the user named. Asking about","those would waste the user\u2019s money on something you already know.","","## Checkpoints: implement, review, continue","","For anything larger than a single edit, ask the expert to split the plan into **checkpoints**.","Then work the loop: implement one checkpoint, go back to the expert with what you actually","did, take its feedback, and move to the next. Keep going until the work is complete.","","**This is a cost measure, not a quality ritual, and the distinction decides how you use it.**","The expensive failure in this arrangement is not a consultation \u2014 it is you building the","wrong thing for twenty turns and then needing the whole approach redone. A review after each","checkpoint costs about as much as one cheap follow-up and caps how far a wrong direction can","run before someone notices. It only pays if you keep it cheap:","","- **A checkpoint is a unit worth reviewing** \u2014 a coherent, working slice, typically a few"," related edits. If a checkpoint is one line, the review costs more than the mistake it"," could catch: fold it into the next one. If it is the entire feature, it is not a"," checkpoint and defeats the point.",'- **Report the delta, never the context.** "Checkpoint 2 done: added `retryWithBackoff` in'," `http.ts`, wired it into `send()`, tests pass. Deviated from the plan by keeping the old",' signature, because three callers depend on it." The expert has the plan and remembers the',"code \u2014 it can open anything it wants to see for itself.","- **Say what surprised you.** The parts worth a review are the deviations, the things that"," did not match the plan, and anything you were unsure about. A checkpoint that went exactly"," as planned needs a sentence, not a report.","- **Skip the review** when a checkpoint was mechanical and everything passed. Say so at the"," next one instead. Two checkpoints in one review is cheaper than two reviews.",'- **Run the tests before you report.** "Tests pass" is worth far more to the reviewer than a'," description of the code, and finding it yourself is free where the expert finding it is not.","","If a budget is set the expert stops being available once it is reached, and you finish the","work alone. Spend the consultations you have on the checkpoints that carry the most risk.","","**Also consult again when:**","- the same step has failed twice and you do not understand why;","- the code contradicts the plan, so following it would be wrong;","- something is ambiguous in a way that changes *what* should be built, not merely how.","","## Gather the context before you ask","","The expert can open files itself, but doing so costs the user far more than it costs you.","So before consulting: find the relevant code, read it, and **include the actual code in","your question** along with what you have already tried and what happened.","","## You are its hands for tools, too","","The expert cannot call any of your tools \u2014 no MCP tool, no Python tool, no searching the","documentation index. It is told what you have, by name, but not the exact parameters. So","if it asks you to look up a tool\u2019s arguments or read a skill, do it and report back in the","same conversation; that round trip is cheap and stops it guessing a signature.","","## Carrying out the plan","","Follow it, but you are not a transcription service. The expert never ran anything and may","be wrong about the real code. If a step does not match what you find, say so and adapt \u2014","and if the mismatch is fundamental, that is one of the reasons to consult again.","","Tell the user which checkpoint you are on and what the expert said about the last one, so","they can see what they paid for and stop you if the direction is wrong. They are the only","reviewer whose approval actually gates anything."].join(`
10
- `)},Jc=[Yc,l0,uE],Lf=Yc.id;function Pf(e){return Jc.find(t=>t.id===e)??Yc}var $={};bi($,{$brand:()=>Vf,$input:()=>dh,$output:()=>uh,NEVER:()=>Ff,TimePrecision:()=>hh,ZodAny:()=>rv,ZodArray:()=>cv,ZodBase64:()=>ku,ZodBase64URL:()=>_u,ZodBigInt:()=>Ho,ZodBigIntFormat:()=>zu,ZodBoolean:()=>qo,ZodCIDRv4:()=>xu,ZodCIDRv6:()=>Su,ZodCUID:()=>mu,ZodCUID2:()=>pu,ZodCatch:()=>Dv,ZodCodec:()=>Il,ZodCustom:()=>Al,ZodCustomStringFormat:()=>Fo,ZodDate:()=>zl,ZodDefault:()=>wv,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>wu,ZodEmail:()=>uu,ZodEmoji:()=>du,ZodEnum:()=>Lo,ZodError:()=>LI,ZodExactOptional:()=>Sv,ZodFile:()=>bv,ZodFirstPartyTypeKind:()=>Fv,ZodFunction:()=>Zv,ZodGUID:()=>Sl,ZodIPv4:()=>yu,ZodIPv6:()=>bu,ZodISODate:()=>ru,ZodISODateTime:()=>iu,ZodISODuration:()=>au,ZodISOTime:()=>ou,ZodIntersection:()=>dv,ZodIssueCode:()=>FI,ZodJWT:()=>$u,ZodKSUID:()=>vu,ZodLazy:()=>Rv,ZodLiteral:()=>yv,ZodMAC:()=>Kg,ZodMap:()=>gv,ZodNaN:()=>Av,ZodNanoID:()=>fu,ZodNever:()=>av,ZodNonOptional:()=>Au,ZodNull:()=>nv,ZodNullable:()=>_v,ZodNumber:()=>Vo,ZodNumberFormat:()=>Fr,ZodObject:()=>Cl,ZodOptional:()=>Iu,ZodPipe:()=>Dl,ZodPrefault:()=>zv,ZodPreprocess:()=>jv,ZodPromise:()=>Bv,ZodReadonly:()=>Ov,ZodRealError:()=>nn,ZodRecord:()=>Zo,ZodSet:()=>vv,ZodString:()=>Po,ZodStringFormat:()=>Ze,ZodSuccess:()=>Ev,ZodSymbol:()=>ev,ZodTemplateLiteral:()=>Nv,ZodTransform:()=>xv,ZodTuple:()=>mv,ZodType:()=>fe,ZodULID:()=>hu,ZodURL:()=>$l,ZodUUID:()=>ni,ZodUndefined:()=>tv,ZodUnion:()=>El,ZodUnknown:()=>ov,ZodVoid:()=>lv,ZodXID:()=>gu,ZodXor:()=>sv,_ZodString:()=>su,_default:()=>$v,_function:()=>Jk,any:()=>zk,array:()=>Tl,base64:()=>sk,base64url:()=>uk,bigint:()=>Sk,boolean:()=>Wg,catch:()=>Iv,check:()=>Xk,cidrv4:()=>lk,cidrv6:()=>ck,clone:()=>Vt,codec:()=>qk,coerce:()=>Vv,config:()=>ct,core:()=>ki,cuid:()=>WS,cuid2:()=>ek,custom:()=>Kk,date:()=>Ck,decode:()=>Vg,decodeAsync:()=>Hg,describe:()=>Qk,discriminatedUnion:()=>Ok,e164:()=>dk,email:()=>FS,emoji:()=>KS,encode:()=>Fg,encodeAsync:()=>qg,endsWith:()=>Do,enum:()=>Eu,exactOptional:()=>kv,file:()=>Lk,flattenError:()=>ll,float32:()=>vk,float64:()=>yk,formatError:()=>cl,fromJSONSchema:()=>o_,function:()=>Jk,getErrorMap:()=>qI,globalRegistry:()=>Ct,gt:()=>ei,gte:()=>Ht,guid:()=>VS,hash:()=>gk,hex:()=>hk,hostname:()=>pk,httpUrl:()=>XS,includes:()=>Co,instanceof:()=>e_,int:()=>lu,int32:()=>bk,int64:()=>kk,intersection:()=>fv,invertCodec:()=>Hk,ipv4:()=>rk,ipv6:()=>ak,iso:()=>Bo,json:()=>n_,jwt:()=>fk,keyof:()=>Ek,ksuid:()=>ik,lazy:()=>Mv,length:()=>Lr,literal:()=>Zk,locales:()=>gl,looseObject:()=>Ak,looseRecord:()=>Nk,lowercase:()=>zo,lt:()=>Wn,lte:()=>pn,mac:()=>ok,map:()=>Rk,maxLength:()=>Zr,maxSize:()=>Qi,meta:()=>Wk,mime:()=>Io,minLength:()=>Si,minSize:()=>ti,multipleOf:()=>Ki,nan:()=>Vk,nanoid:()=>QS,nativeEnum:()=>Bk,negative:()=>Gs,never:()=>Tu,nonnegative:()=>Js,nonoptional:()=>Cv,nonpositive:()=>Ys,normalize:()=>Ao,null:()=>iv,nullable:()=>_l,nullish:()=>Pk,number:()=>Qg,object:()=>Dk,optional:()=>kl,overwrite:()=>Yn,parse:()=>Bg,parseAsync:()=>Zg,partialRecord:()=>Uk,pipe:()=>cu,positive:()=>Hs,prefault:()=>Tv,preprocess:()=>i_,prettifyError:()=>im,promise:()=>Yk,property:()=>Xs,readonly:()=>Uv,record:()=>hv,refine:()=>Lv,regex:()=>$o,regexes:()=>mn,registry:()=>$s,safeDecode:()=>Yg,safeDecodeAsync:()=>Xg,safeEncode:()=>Gg,safeEncodeAsync:()=>Jg,safeParse:()=>Lg,safeParseAsync:()=>Pg,set:()=>Mk,setErrorMap:()=>VI,size:()=>Br,slugify:()=>No,startsWith:()=>Eo,strictObject:()=>Ik,string:()=>xl,stringFormat:()=>mk,stringbool:()=>t_,success:()=>Fk,superRefine:()=>Pv,symbol:()=>wk,templateLiteral:()=>Gk,toJSONSchema:()=>eu,toLowerCase:()=>Oo,toUpperCase:()=>Uo,transform:()=>Du,treeifyError:()=>nm,trim:()=>jo,tuple:()=>pv,uint32:()=>xk,uint64:()=>_k,ulid:()=>tk,undefined:()=>$k,union:()=>Cu,unknown:()=>Pr,uppercase:()=>To,url:()=>JS,util:()=>N,uuid:()=>qS,uuidv4:()=>HS,uuidv6:()=>GS,uuidv7:()=>YS,void:()=>Tk,xid:()=>nk,xor:()=>jk});var ki={};bi(ki,{$ZodAny:()=>Ap,$ZodArray:()=>Rp,$ZodAsyncError:()=>Gn,$ZodBase64:()=>kp,$ZodBase64URL:()=>_p,$ZodBigInt:()=>vs,$ZodBigIntFormat:()=>Cp,$ZodBoolean:()=>fl,$ZodCIDRv4:()=>bp,$ZodCIDRv6:()=>xp,$ZodCUID:()=>lp,$ZodCUID2:()=>cp,$ZodCatch:()=>th,$ZodCheck:()=>Fe,$ZodCheckBigIntFormat:()=>Rm,$ZodCheckEndsWith:()=>Jm,$ZodCheckGreaterThan:()=>ds,$ZodCheckIncludes:()=>Gm,$ZodCheckLengthEquals:()=>Fm,$ZodCheckLessThan:()=>us,$ZodCheckLowerCase:()=>qm,$ZodCheckMaxLength:()=>Lm,$ZodCheckMaxSize:()=>Mm,$ZodCheckMimeType:()=>Km,$ZodCheckMinLength:()=>Pm,$ZodCheckMinSize:()=>Bm,$ZodCheckMultipleOf:()=>Um,$ZodCheckNumberFormat:()=>Nm,$ZodCheckOverwrite:()=>Qm,$ZodCheckProperty:()=>Xm,$ZodCheckRegex:()=>Vm,$ZodCheckSizeEquals:()=>Zm,$ZodCheckStartsWith:()=>Ym,$ZodCheckStringFormat:()=>_o,$ZodCheckUpperCase:()=>Hm,$ZodCodec:()=>pl,$ZodCustom:()=>sh,$ZodCustomStringFormat:()=>zp,$ZodDate:()=>Np,$ZodDefault:()=>Kp,$ZodDiscriminatedUnion:()=>Zp,$ZodE164:()=>wp,$ZodEmail:()=>ip,$ZodEmoji:()=>op,$ZodEncodeError:()=>Hi,$ZodEnum:()=>qp,$ZodError:()=>al,$ZodExactOptional:()=>Jp,$ZodFile:()=>Gp,$ZodFunction:()=>ah,$ZodGUID:()=>tp,$ZodIPv4:()=>gp,$ZodIPv6:()=>vp,$ZodISODate:()=>mp,$ZodISODateTime:()=>fp,$ZodISODuration:()=>hp,$ZodISOTime:()=>pp,$ZodIntersection:()=>Lp,$ZodJWT:()=>$p,$ZodKSUID:()=>dp,$ZodLazy:()=>ch,$ZodLiteral:()=>Hp,$ZodMAC:()=>yp,$ZodMap:()=>Fp,$ZodNaN:()=>nh,$ZodNanoID:()=>ap,$ZodNever:()=>Op,$ZodNonOptional:()=>Wp,$ZodNull:()=>Ip,$ZodNullable:()=>Xp,$ZodNumber:()=>gs,$ZodNumberFormat:()=>Tp,$ZodObject:()=>M0,$ZodObjectJIT:()=>Mp,$ZodOptional:()=>bs,$ZodPipe:()=>xs,$ZodPrefault:()=>Qp,$ZodPreprocess:()=>ih,$ZodPromise:()=>lh,$ZodReadonly:()=>rh,$ZodRealError:()=>tn,$ZodRecord:()=>Pp,$ZodRegistry:()=>ws,$ZodSet:()=>Vp,$ZodString:()=>Mr,$ZodStringFormat:()=>Be,$ZodSuccess:()=>eh,$ZodSymbol:()=>Ep,$ZodTemplateLiteral:()=>oh,$ZodTransform:()=>Yp,$ZodTuple:()=>ys,$ZodType:()=>ae,$ZodULID:()=>sp,$ZodURL:()=>rp,$ZodUUID:()=>np,$ZodUndefined:()=>Dp,$ZodUnion:()=>ml,$ZodUnknown:()=>jp,$ZodVoid:()=>Up,$ZodXID:()=>up,$ZodXor:()=>Bp,$brand:()=>Vf,$constructor:()=>k,$input:()=>dh,$output:()=>uh,Doc:()=>dl,JSONSchema:()=>ZS,JSONSchemaGenerator:()=>tu,NEVER:()=>Ff,TimePrecision:()=>hh,_any:()=>Nh,_array:()=>Fh,_base64:()=>Ps,_base64url:()=>Fs,_bigint:()=>Eh,_boolean:()=>Th,_catch:()=>jI,_check:()=>BS,_cidrv4:()=>Zs,_cidrv6:()=>Ls,_coercedBigint:()=>Dh,_coercedBoolean:()=>Ch,_coercedDate:()=>Lh,_coercedNumber:()=>Sh,_coercedString:()=>mh,_cuid:()=>js,_cuid2:()=>Os,_custom:()=>qh,_date:()=>Zh,_decode:()=>ts,_decodeAsync:()=>is,_default:()=>DI,_discriminatedUnion:()=>yI,_e164:()=>Vs,_email:()=>zs,_emoji:()=>Is,_encode:()=>es,_encodeAsync:()=>ns,_endsWith:()=>Do,_enum:()=>wI,_file:()=>Vh,_float32:()=>_h,_float64:()=>wh,_gt:()=>ei,_gte:()=>Ht,_guid:()=>vl,_includes:()=>Co,_int:()=>kh,_int32:()=>$h,_int64:()=>Ih,_intersection:()=>bI,_ipv4:()=>Ms,_ipv6:()=>Bs,_isoDate:()=>vh,_isoDateTime:()=>gh,_isoDuration:()=>bh,_isoTime:()=>yh,_jwt:()=>qs,_ksuid:()=>Rs,_lazy:()=>RI,_length:()=>Lr,_literal:()=>zI,_lowercase:()=>zo,_lt:()=>Wn,_lte:()=>pn,_mac:()=>ph,_map:()=>kI,_max:()=>pn,_maxLength:()=>Zr,_maxSize:()=>Qi,_mime:()=>Io,_min:()=>Ht,_minLength:()=>Si,_minSize:()=>ti,_multipleOf:()=>Ki,_nan:()=>Ph,_nanoid:()=>As,_nativeEnum:()=>$I,_negative:()=>Gs,_never:()=>Mh,_nonnegative:()=>Js,_nonoptional:()=>II,_nonpositive:()=>Ys,_normalize:()=>Ao,_null:()=>Uh,_nullable:()=>EI,_number:()=>xh,_optional:()=>CI,_overwrite:()=>Yn,_parse:()=>bo,_parseAsync:()=>xo,_pipe:()=>OI,_positive:()=>Hs,_promise:()=>MI,_property:()=>Xs,_readonly:()=>UI,_record:()=>SI,_refine:()=>Hh,_regex:()=>$o,_safeDecode:()=>os,_safeDecodeAsync:()=>ls,_safeEncode:()=>rs,_safeEncodeAsync:()=>as,_safeParse:()=>So,_safeParseAsync:()=>ko,_set:()=>_I,_size:()=>Br,_slugify:()=>No,_startsWith:()=>Eo,_string:()=>fh,_stringFormat:()=>Ro,_stringbool:()=>Xh,_success:()=>AI,_superRefine:()=>Gh,_symbol:()=>jh,_templateLiteral:()=>NI,_toLowerCase:()=>Oo,_toUpperCase:()=>Uo,_transform:()=>TI,_trim:()=>jo,_tuple:()=>xI,_uint32:()=>zh,_uint64:()=>Ah,_ulid:()=>Us,_undefined:()=>Oh,_union:()=>gI,_unknown:()=>Rh,_uppercase:()=>To,_url:()=>yl,_uuid:()=>Ts,_uuidv4:()=>Cs,_uuidv6:()=>Es,_uuidv7:()=>Ds,_void:()=>Bh,_xid:()=>Ns,_xor:()=>vI,clone:()=>Vt,config:()=>ct,createStandardJSONSchemaMethod:()=>Mo,createToJSONSchemaMethod:()=>Kh,decode:()=>ME,decodeAsync:()=>ZE,describe:()=>Yh,encode:()=>RE,encodeAsync:()=>BE,extractDefs:()=>er,finalize:()=>tr,flattenError:()=>ll,formatError:()=>cl,globalConfig:()=>Ur,globalRegistry:()=>Ct,initializeContext:()=>Wi,isValidBase64:()=>Sp,isValidBase64URL:()=>O0,isValidJWT:()=>U0,locales:()=>gl,meta:()=>Jh,parse:()=>Qc,parseAsync:()=>Wc,prettifyError:()=>im,process:()=>Ae,regexes:()=>mn,registry:()=>$s,safeDecode:()=>PE,safeDecodeAsync:()=>VE,safeEncode:()=>LE,safeEncodeAsync:()=>FE,safeParse:()=>rm,safeParseAsync:()=>om,toDotPath:()=>m0,toJSONSchema:()=>eu,treeifyError:()=>nm,util:()=>N,version:()=>Wm});var c0,Ff=Object.freeze({status:"aborted"});function k(e,t,n){function r(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);let u=a.prototype,d=Object.keys(u);for(let m=0;m<d.length;m++){let p=d[m];p in l||(l[p]=u[p].bind(l))}}let i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(l){var c;let u=n?.Parent?new o:this;r(u,l),(c=u._zod).deferred??(c.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Vf=Symbol("zod_brand"),Gn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Hi=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(c0=globalThis).__zod_globalConfig??(c0.__zod_globalConfig={});var Ur=globalThis.__zod_globalConfig;function ct(e){return e&&Object.assign(Ur,e),Ur}var N={};bi(N,{BIGINT_FORMAT_RANGES:()=>em,Class:()=>Hf,NUMBER_FORMAT_RANGES:()=>Wf,aborted:()=>Xi,allowsEval:()=>Jf,assert:()=>hE,assertEqual:()=>dE,assertIs:()=>mE,assertNever:()=>pE,assertNotEqual:()=>fE,assignProp:()=>Yi,base64ToUint8Array:()=>u0,base64urlToUint8Array:()=>AE,cached:()=>vo,captureStackTrace:()=>Kc,cleanEnum:()=>IE,cleanRegex:()=>nl,clone:()=>Vt,cloneDef:()=>vE,createTransparentProxy:()=>_E,defineLazy:()=>he,esc:()=>Xc,escapeRegex:()=>In,explicitlyAborted:()=>tm,extend:()=>zE,finalizeIssue:()=>qt,floatSafeRemainder:()=>Gf,getElementAtPath:()=>yE,getEnumValues:()=>tl,getLengthableOrigin:()=>ol,getParsedType:()=>kE,getSizableOrigin:()=>rl,hexToUint8Array:()=>OE,isObject:()=>Nr,isPlainObject:()=>Ji,issue:()=>yo,joinValues:()=>w,jsonStringifyReplacer:()=>go,merge:()=>CE,mergeDefs:()=>xi,normalizeParams:()=>M,nullish:()=>Gi,numKeys:()=>SE,objectClone:()=>gE,omit:()=>$E,optionalKeys:()=>Qf,parsedType:()=>U,partial:()=>EE,pick:()=>wE,prefixIssues:()=>en,primitiveTypes:()=>Kf,promiseAllObject:()=>bE,propertyKeyTypes:()=>il,randomString:()=>xE,required:()=>DE,safeExtend:()=>TE,shallowClone:()=>Xf,slugify:()=>Yf,stringifyPrimitive:()=>A,uint8ArrayToBase64:()=>d0,uint8ArrayToBase64url:()=>jE,uint8ArrayToHex:()=>UE,unwrapMessage:()=>el});function dE(e){return e}function fE(e){return e}function mE(e){}function pE(e){throw new Error("Unexpected value in exhaustive check")}function hE(e){}function tl(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function w(e,t="|"){return e.map(n=>A(n)).join(t)}function go(e,t){return typeof t=="bigint"?t.toString():t}function vo(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Gi(e){return e==null}function nl(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Gf(e,t){let n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var s0=Symbol("evaluating");function he(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==s0)return r===void 0&&(r=s0,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function gE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Yi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function xi(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function vE(e){return xi(e._zod.def)}function yE(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function bE(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return i})}function xE(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Xc(e){return JSON.stringify(e)}function Yf(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Kc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Nr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Jf=vo(()=>{if(Ur.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ji(e){if(Nr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Nr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Xf(e){return Ji(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function SE(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var kE=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},il=new Set(["string","number","symbol"]),Kf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function In(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vt(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function _E(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,o){return t??(t=e()),Reflect.set(t,r,i,o)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function A(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Qf(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Wf={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]},em={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function wE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=xi(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return Yi(this,"shape",a),a},checks:[]});return Vt(e,o)}function $E(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=xi(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return Yi(this,"shape",a),a},checks:[]});return Vt(e,o)}function zE(e,t){if(!Ji(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=xi(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Yi(this,"shape",o),o}});return Vt(e,i)}function TE(e,t){if(!Ji(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=xi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return Yi(this,"shape",r),r}});return Vt(e,n)}function CE(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=xi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return Yi(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Vt(e,n)}function EE(e,t,n){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=xi(t._zod.def,{get shape(){let l=t._zod.def.shape,c={...l};if(n)for(let u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)c[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return Yi(this,"shape",c),c},checks:[]});return Vt(t,a)}function DE(e,t,n){let r=xi(t._zod.def,{get shape(){let i=t._zod.def.shape,o={...i};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(let a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return Yi(this,"shape",o),o}});return Vt(t,r)}function Xi(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function tm(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function en(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function el(e){return typeof e=="string"?e:e?.message}function qt(e,t,n){let r=e.message?e.message:el(e.inst?._zod.def?.error?.(e))??el(t?.error?.(e))??el(n.customError?.(e))??el(n.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...l}=e;return l.path??(l.path=[]),l.message=r,t?.reportInput&&(l.input=a),l}function rl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ol(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function U(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function yo(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function IE(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function u0(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function d0(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function AE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return u0(t+n)}function jE(e){return d0(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function OE(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function UE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Hf=class{constructor(...t){}};var f0=(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,go,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},al=k("$ZodError",f0),tn=k("$ZodError",f0,{Parent:Error});function ll(e,t=n=>n.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function cl(e,t=n=>n.message){let n={_errors:[]},r=(i,o=[])=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>r({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(t(a));else{let c=n,u=0;for(;u<l.length;){let d=l[u];u===l.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(a))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}}};return r(e),n}function nm(e,t=n=>n.message){let n={errors:[]},r=(i,o=[])=>{var a,l;for(let c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>r({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")r({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")r({issues:c.issues},[...o,...c.path]);else{let u=[...o,...c.path];if(u.length===0){n.errors.push(t(c));continue}let d=n,m=0;for(;m<u.length;){let p=u[m],f=m===u.length-1;typeof p=="string"?(d.properties??(d.properties={}),(a=d.properties)[p]??(a[p]={errors:[]}),d=d.properties[p]):(d.items??(d.items=[]),(l=d.items)[p]??(l[p]={errors:[]}),d=d.items[p]),f&&d.errors.push(t(c)),m++}}};return r(e),n}function m0(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function im(e){let t=[],n=[...e.issues].sort((r,i)=>(r.path??[]).length-(i.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${m0(r.path)}`);return t.join(`
11
- `)}var bo=e=>(t,n,r,i)=>{let o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Gn;if(a.issues.length){let l=new(i?.Err??e)(a.issues.map(c=>qt(c,o,ct())));throw Kc(l,i?.callee),l}return a.value},Qc=bo(tn),xo=e=>async(t,n,r,i)=>{let o=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(i?.Err??e)(a.issues.map(c=>qt(c,o,ct())));throw Kc(l,i?.callee),l}return a.value},Wc=xo(tn),So=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Gn;return o.issues.length?{success:!1,error:new(e??al)(o.issues.map(a=>qt(a,i,ct())))}:{success:!0,data:o.value}},rm=So(tn),ko=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>qt(a,i,ct())))}:{success:!0,data:o.value}},om=ko(tn),es=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return bo(e)(t,n,i)},RE=es(tn),ts=e=>(t,n,r)=>bo(e)(t,n,r),ME=ts(tn),ns=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return xo(e)(t,n,i)},BE=ns(tn),is=e=>async(t,n,r)=>xo(e)(t,n,r),ZE=is(tn),rs=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return So(e)(t,n,i)},LE=rs(tn),os=e=>(t,n,r)=>So(e)(t,n,r),PE=os(tn),as=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return ko(e)(t,n,i)},FE=as(tn),ls=e=>async(t,n,r)=>ko(e)(t,n,r),VE=ls(tn);var mn={};bi(mn,{base64:()=>Sm,base64url:()=>cs,bigint:()=>Cm,boolean:()=>Dm,browserEmail:()=>QE,cidrv4:()=>bm,cidrv6:()=>xm,cuid:()=>am,cuid2:()=>lm,date:()=>wm,datetime:()=>zm,domain:()=>tD,duration:()=>fm,e164:()=>_m,email:()=>pm,emoji:()=>hm,extendedDuration:()=>qE,guid:()=>mm,hex:()=>nD,hostname:()=>eD,html5Email:()=>JE,httpProtocol:()=>km,idnEmail:()=>KE,integer:()=>Em,ipv4:()=>gm,ipv6:()=>vm,ksuid:()=>um,lowercase:()=>jm,mac:()=>ym,md5_base64:()=>rD,md5_base64url:()=>oD,md5_hex:()=>iD,nanoid:()=>dm,null:()=>Im,number:()=>ss,rfc5322Email:()=>XE,sha1_base64:()=>lD,sha1_base64url:()=>cD,sha1_hex:()=>aD,sha256_base64:()=>uD,sha256_base64url:()=>dD,sha256_hex:()=>sD,sha384_base64:()=>mD,sha384_base64url:()=>pD,sha384_hex:()=>fD,sha512_base64:()=>gD,sha512_base64url:()=>vD,sha512_hex:()=>hD,string:()=>Tm,time:()=>$m,ulid:()=>cm,undefined:()=>Am,unicodeEmail:()=>p0,uppercase:()=>Om,uuid:()=>Rr,uuid4:()=>HE,uuid6:()=>GE,uuid7:()=>YE,xid:()=>sm});var am=/^[cC][0-9a-z]{6,}$/,lm=/^[0-9a-z]+$/,cm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sm=/^[0-9a-vA-V]{20}$/,um=/^[A-Za-z0-9]{27}$/,dm=/^[a-zA-Z0-9_-]{21}$/,fm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qE=/^[-+]?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)?)??$/,mm=/^([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})$/,Rr=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)$/,HE=Rr(4),GE=Rr(6),YE=Rr(7),pm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,JE=/^[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])?)*$/,XE=/^(([^<>()\[\]\\.,;:\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,}))$/,p0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,KE=p0,QE=/^[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])?)*$/,WE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hm(){return new RegExp(WE,"u")}var gm=/^(?:(?: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])$/,vm=/^(([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}|:))$/,ym=e=>{let t=In(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},bm=/^((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])$/,xm=/^(([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])$/,Sm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,cs=/^[A-Za-z0-9_-]*$/,eD=/^(?=.{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])?)*\.?$/,tD=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,km=/^https?$/,_m=/^\+[1-9]\d{6,14}$/,h0="(?:(?:\\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])))",wm=new RegExp(`^${h0}$`);function g0(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function $m(e){return new RegExp(`^${g0(e)}$`)}function zm(e){let t=g0({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return new RegExp(`^${h0}T(?:${r})$`)}var Tm=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Cm=/^-?\d+n?$/,Em=/^-?\d+$/,ss=/^-?\d+(?:\.\d+)?$/,Dm=/^(?:true|false)$/i,Im=/^null$/i;var Am=/^undefined$/i;var jm=/^[^A-Z]*$/,Om=/^[^a-z]*$/,nD=/^[0-9a-fA-F]*$/;function sl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ul(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var iD=/^[0-9a-fA-F]{32}$/,rD=sl(22,"=="),oD=ul(22),aD=/^[0-9a-fA-F]{40}$/,lD=sl(27,"="),cD=ul(27),sD=/^[0-9a-fA-F]{64}$/,uD=sl(43,"="),dD=ul(43),fD=/^[0-9a-fA-F]{96}$/,mD=sl(64,""),pD=ul(64),hD=/^[0-9a-fA-F]{128}$/,gD=sl(86,"=="),vD=ul(86);var Fe=k("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),y0={number:"number",bigint:"bigint",object:"date"},us=k("$ZodCheckLessThan",(e,t)=>{Fe.init(e,t);let n=y0[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ds=k("$ZodCheckGreaterThan",(e,t)=>{Fe.init(e,t);let n=y0[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Um=k("$ZodCheckMultipleOf",(e,t)=>{Fe.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Gf(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Nm=k("$ZodCheckNumberFormat",(e,t)=>{Fe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Wf[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,n&&(l.pattern=Em)}),e._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Rm=k("$ZodCheckBigIntFormat",(e,t)=>{Fe.init(e,t);let[n,r]=em[t.format];e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,o.minimum=n,o.maximum=r}),e._zod.check=i=>{let o=i.value;o<n&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Mm=k("$ZodCheckMaxSize",(e,t)=>{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!Gi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;i.size<=t.maximum||r.issues.push({origin:rl(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Bm=k("$ZodCheckMinSize",(e,t)=>{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!Gi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;i.size>=t.minimum||r.issues.push({origin:rl(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Zm=k("$ZodCheckSizeEquals",(e,t)=>{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!Gi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=r=>{let i=r.value,o=i.size;if(o===t.size)return;let a=o>t.size;r.issues.push({origin:rl(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Lm=k("$ZodCheckMaxLength",(e,t)=>{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!Gi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;if(i.length<=t.maximum)return;let a=ol(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Pm=k("$ZodCheckMinLength",(e,t)=>{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!Gi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;if(i.length>=t.minimum)return;let a=ol(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Fm=k("$ZodCheckLengthEquals",(e,t)=>{var n;Fe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!Gi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{let i=r.value,o=i.length;if(o===t.length)return;let a=ol(i),l=o>t.length;r.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),_o=k("$ZodCheckStringFormat",(e,t)=>{var n,r;Fe.init(e,t),e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Vm=k("$ZodCheckRegex",(e,t)=>{_o.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qm=k("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=jm),_o.init(e,t)}),Hm=k("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Om),_o.init(e,t)}),Gm=k("$ZodCheckIncludes",(e,t)=>{Fe.init(e,t);let n=In(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{let o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Ym=k("$ZodCheckStartsWith",(e,t)=>{Fe.init(e,t);let n=new RegExp(`^${In(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Jm=k("$ZodCheckEndsWith",(e,t)=>{Fe.init(e,t);let n=new RegExp(`.*${In(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function v0(e,t,n){e.issues.length&&t.issues.push(...en(n,e.issues))}var Xm=k("$ZodCheckProperty",(e,t)=>{Fe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>v0(i,n,t.property));v0(r,n,t.property)}}),Km=k("$ZodCheckMimeType",(e,t)=>{Fe.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Qm=k("$ZodCheckOverwrite",(e,t)=>{Fe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var dl=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
8
+ `+r.stack}}var ax=Object.prototype.hasOwnProperty,Xx=$t.unstable_scheduleCallback,_b=$t.unstable_cancelCallback,AO=$t.unstable_shouldYield,jO=$t.unstable_requestPaint,Tn=$t.unstable_now,OO=$t.unstable_getCurrentPriorityLevel,AT=$t.unstable_ImmediatePriority,jT=$t.unstable_UserBlockingPriority,af=$t.unstable_NormalPriority,UO=$t.unstable_LowPriority,OT=$t.unstable_IdlePriority,NO=$t.log,RO=$t.unstable_setDisableYieldValue,Ks=null,Cn=null;function zr(e){if(typeof NO=="function"&&RO(e),Cn&&typeof Cn.setStrictMode=="function")try{Cn.setStrictMode(Ks,e)}catch{}}var En=Math.clz32?Math.clz32:ZO,MO=Math.log,BO=Math.LN2;function ZO(e){return e>>>=0,e===0?32:31-(MO(e)/BO|0)|0}var wd=256,$d=262144,zd=4194304;function uo(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Af(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~o,r!==0?i=uo(r):(a&=l,a!==0?i=uo(a):n||(n=l&~e,n!==0&&(i=uo(n))))):(l=r&~o,l!==0?i=uo(l):a!==0?i=uo(a):n||(n=r&~e,n!==0&&(i=uo(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Ws(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function LO(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function UT(){var e=zd;return zd<<=1,(zd&62914560)===0&&(zd=4194304),e}function wb(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function PO(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var d=31-En(n),m=1<<d;l[d]=0,s[d]=-1;var h=u[d];if(h!==null)for(u[d]=null,d=0;d<h.length;d++){var f=h[d];f!==null&&(f.lane&=-536870913)}n&=~m}r!==0&&NT(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function NT(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-En(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function RT(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-En(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function MT(e,t){var n=t&-t;return n=(n&42)!==0?1:Kx(n),(n&(e.suspendedLanes|t))!==0?0:n}function Kx(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wx(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function BT(){var e=Ae.p;return e!==0?e:(e=window.event,e===void 0?32:s6(e.type))}function rz(e,t){var n=Ae.p;try{return Ae.p=e,t()}finally{Ae.p=n}}var Vr=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Vr,pn="__reactProps$"+Vr,sl="__reactContainer$"+Vr,lx="__reactEvents$"+Vr,FO="__reactListeners$"+Vr,VO="__reactHandles$"+Vr,oz="__reactResources$"+Vr,ec="__reactMarker$"+Vr;function Qx(e){delete e[Rt],delete e[pn],delete e[lx],delete e[FO],delete e[VO]}function Oa(e){var t=e[Rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sl]||n[Rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mT(e);e!==null;){if(n=e[Rt])return n;e=mT(e)}return t}e=n,n=e.parentNode}return null}function cl(e){if(e=e[Rt]||e[sl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(I(33))}function Va(e){var t=e[oz];return t||(t=e[oz]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Et(e){e[ec]=!0}var ZT=new Set,LT={};function wo(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for(LT[e]=t,e=0;e<t.length;e++)ZT.add(t[e])}var qO=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]*$"),az={},lz={};function HO(e){return ax.call(lz,e)?!0:ax.call(az,e)?!1:qO.test(e)?lz[e]=!0:(az[e]=!0,!1)}function Ld(e,t,n){if(HO(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Td(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ui(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function PT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GO(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sx(e){if(!e._valueTracker){var t=PT(e)?"checked":"value";e._valueTracker=GO(e,t,""+e[t])}}function FT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var YO=/[\n"\\]/g;function Hn(e){return e.replace(YO,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cx(e,t,n,r,i,o,a,l){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Fn(t)):e.value!==""+Fn(t)&&(e.value=""+Fn(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?ux(e,a,Fn(t)):n!=null?ux(e,a,Fn(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Fn(l):e.removeAttribute("name")}function VT(e,t,n,r,i,o,a,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){sx(e);return}n=n!=null?""+Fn(n):"",t=t!=null?""+Fn(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),sx(e)}function ux(e,t,n){t==="number"&&lf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qa(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Fn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qT(e,t,n){if(t!=null&&(t=""+Fn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Fn(n):""}function HT(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(I(92));if(bs(r)){if(1<r.length)throw Error(I(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Fn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),sx(e)}function Qa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var JO=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 sz(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||JO.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function GT(e,t,n){if(t!=null&&typeof t!="object")throw Error(I(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&sz(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&sz(e,o,t[o])}function e1(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var XO=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"]]),KO=/^[\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 Pd(e){return KO.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fi(){}var dx=null;function t1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,Ha=null;function cz(e){var t=cl(e);if(t&&(e=t.stateNode)){var n=e[pn]||null;e:switch(e=t.stateNode,t.type){case"input":if(cx(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Hn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[pn]||null;if(!i)throw Error(I(90));cx(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&FT(r)}break e;case"textarea":qT(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qa(e,!!n.multiple,t,!1)}}}var $b=!1;function YT(e,t,n){if($b)return e(t,n);$b=!0;try{var r=e(t);return r}finally{if($b=!1,(Ua!==null||Ha!==null)&&(Vf(),Ua&&(t=Ua,e=Ha,Ha=Ua=null,cz(t),e)))for(t=0;t<e.length;t++)cz(e[t])}}function Rs(e,t){var n=e.stateNode;if(n===null)return null;var r=n[pn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var Yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fx=!1;if(Yi)try{Ta={},Object.defineProperty(Ta,"passive",{get:function(){fx=!0}}),window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{fx=!1}var Ta,Tr=null,n1=null,Fd=null;function JT(){if(Fd)return Fd;var e,t=n1,n=t.length,r,i="value"in Tr?Tr.value:Tr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Fd=i.slice(e,1<r?1-r:void 0)}function Vd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Cd(){return!0}function uz(){return!1}function gn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cd:uz,this.isPropagationStopped=uz,this}return rt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Cd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cd)},persist:function(){},isPersistent:Cd}),t}var $o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jf=gn($o),tc=rt({},$o,{view:0,detail:0}),WO=gn(tc),zb,Tb,fs,Of=rt({},tc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:i1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fs&&(fs&&e.type==="mousemove"?(zb=e.screenX-fs.screenX,Tb=e.screenY-fs.screenY):Tb=zb=0,fs=e),zb)},movementY:function(e){return"movementY"in e?e.movementY:Tb}}),dz=gn(Of),QO=rt({},Of,{dataTransfer:0}),eU=gn(QO),tU=rt({},tc,{relatedTarget:0}),Cb=gn(tU),nU=rt({},$o,{animationName:0,elapsedTime:0,pseudoElement:0}),iU=gn(nU),rU=rt({},$o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oU=gn(rU),aU=rt({},$o,{data:0}),fz=gn(aU),lU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sU={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"},cU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cU[e])?!!t[e]:!1}function i1(){return uU}var dU=rt({},tc,{key:function(e){if(e.key){var t=lU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:i1,charCode:function(e){return e.type==="keypress"?Vd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fU=gn(dU),mU=rt({},Of,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mz=gn(mU),hU=rt({},tc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:i1}),pU=gn(hU),gU=rt({},$o,{propertyName:0,elapsedTime:0,pseudoElement:0}),yU=gn(gU),vU=rt({},Of,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bU=gn(vU),xU=rt({},$o,{newState:0,oldState:0}),SU=gn(xU),kU=[9,13,27,32],r1=Yi&&"CompositionEvent"in window,_s=null;Yi&&"documentMode"in document&&(_s=document.documentMode);var _U=Yi&&"TextEvent"in window&&!_s,XT=Yi&&(!r1||_s&&8<_s&&11>=_s),hz=" ",pz=!1;function KT(e,t){switch(e){case"keyup":return kU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Na=!1;function wU(e,t){switch(e){case"compositionend":return WT(t);case"keypress":return t.which!==32?null:(pz=!0,hz);case"textInput":return e=t.data,e===hz&&pz?null:e;default:return null}}function $U(e,t){if(Na)return e==="compositionend"||!r1&&KT(e,t)?(e=JT(),Fd=n1=Tr=null,Na=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return XT&&t.locale!=="ko"?null:t.data;default:return null}}var zU={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 gz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zU[e.type]:t==="textarea"}function QT(e,t,n,r){Ua?Ha?Ha.push(r):Ha=[r]:Ua=r,t=$f(t,"onChange"),0<t.length&&(n=new jf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ws=null,Ms=null;function TU(e){Y4(e,0)}function Uf(e){var t=xs(e);if(FT(t))return e}function yz(e,t){if(e==="change")return t}var e2=!1;Yi&&(Yi?(Id="oninput"in document,Id||(Eb=document.createElement("div"),Eb.setAttribute("oninput","return;"),Id=typeof Eb.oninput=="function"),Ed=Id):Ed=!1,e2=Ed&&(!document.documentMode||9<document.documentMode));var Ed,Id,Eb;function vz(){ws&&(ws.detachEvent("onpropertychange",t2),Ms=ws=null)}function t2(e){if(e.propertyName==="value"&&Uf(Ms)){var t=[];QT(t,Ms,e,t1(e)),YT(TU,t)}}function CU(e,t,n){e==="focusin"?(vz(),ws=t,Ms=n,ws.attachEvent("onpropertychange",t2)):e==="focusout"&&vz()}function EU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Uf(Ms)}function IU(e,t){if(e==="click")return Uf(t)}function DU(e,t){if(e==="input"||e==="change")return Uf(t)}function AU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dn=typeof Object.is=="function"?Object.is:AU;function Bs(e,t){if(Dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ax.call(t,i)||!Dn(e[i],t[i]))return!1}return!0}function bz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xz(e,t){var n=bz(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bz(n)}}function n2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?n2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function i2(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lf(e.document)}return t}function o1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var jU=Yi&&"documentMode"in document&&11>=document.documentMode,Ra=null,mx=null,$s=null,hx=!1;function Sz(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hx||Ra==null||Ra!==lf(r)||(r=Ra,"selectionStart"in r&&o1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$s&&Bs($s,r)||($s=r,r=$f(mx,"onSelect"),0<r.length&&(t=new jf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ra)))}function so(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ma={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionrun:so("Transition","TransitionRun"),transitionstart:so("Transition","TransitionStart"),transitioncancel:so("Transition","TransitionCancel"),transitionend:so("Transition","TransitionEnd")},Ib={},r2={};Yi&&(r2=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function zo(e){if(Ib[e])return Ib[e];if(!Ma[e])return e;var t=Ma[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in r2)return Ib[e]=t[n];return e}var o2=zo("animationend"),a2=zo("animationiteration"),l2=zo("animationstart"),OU=zo("transitionrun"),UU=zo("transitionstart"),NU=zo("transitioncancel"),s2=zo("transitionend"),c2=new Map,px="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(" ");px.push("scrollEnd");function ii(e,t){c2.set(e,t),wo(t,[e])}var sf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pn=[],Ba=0,a1=0;function Nf(){for(var e=Ba,t=a1=Ba=0;t<e;){var n=Pn[t];Pn[t++]=null;var r=Pn[t];Pn[t++]=null;var i=Pn[t];Pn[t++]=null;var o=Pn[t];if(Pn[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&u2(n,i,o)}}function Rf(e,t,n,r){Pn[Ba++]=e,Pn[Ba++]=t,Pn[Ba++]=n,Pn[Ba++]=r,a1|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function l1(e,t,n,r){return Rf(e,t,n,r),cf(e)}function To(e,t){return Rf(e,null,null,t),cf(e)}function u2(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-En(n),e=o.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),o):null}function cf(e){if(50<Os)throw Os=0,Nx=null,Error(I(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Za={};function RU(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,n,r){return new RU(e,t,n,r)}function s1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qi(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function d2(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qd(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")s1(e)&&(a=1);else if(typeof e=="string")a=ZN(e,n,Si.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case nx:return e=$n(31,n,t,i),e.elementType=nx,e.lanes=o,e;case Aa:return po(n.children,i,o,t);case IT:a=8,i|=24;break;case Qb:return e=$n(12,n,t,i|2),e.elementType=Qb,e.lanes=o,e;case ex:return e=$n(13,n,t,i),e.elementType=ex,e.lanes=o,e;case tx:return e=$n(19,n,t,i),e.elementType=tx,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pi:a=10;break e;case DT:a=9;break e;case Yx:a=11;break e;case Jx:a=14;break e;case xr:a=16,r=null;break e}a=29,n=Error(I(130,e===null?"null":typeof e,"")),r=null}return t=$n(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function po(e,t,n,r){return e=$n(7,e,r,t),e.lanes=n,e}function Db(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function f2(e){var t=$n(18,null,null,0);return t.stateNode=e,t}function Ab(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var kz=new WeakMap;function Gn(e,t){if(typeof e=="object"&&e!==null){var n=kz.get(e);return n!==void 0?n:(t={value:e,source:t,stack:iz(t)},kz.set(e,t),t)}return{value:e,source:t,stack:iz(t)}}var La=[],Pa=0,uf=null,Zs=0,Vn=[],qn=0,Zr=null,vi=1,bi="";function Zi(e,t){La[Pa++]=Zs,La[Pa++]=uf,uf=e,Zs=t}function m2(e,t,n){Vn[qn++]=vi,Vn[qn++]=bi,Vn[qn++]=Zr,Zr=e;var r=vi;e=bi;var i=32-En(r)-1;r&=~(1<<i),n+=1;var o=32-En(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,vi=1<<32-En(t)+i|n<<i|r,bi=o+e}else vi=1<<o|n<<i|r,bi=e}function c1(e){e.return!==null&&(Zi(e,1),m2(e,1,0))}function u1(e){for(;e===uf;)uf=La[--Pa],La[Pa]=null,Zs=La[--Pa],La[Pa]=null;for(;e===Zr;)Zr=Vn[--qn],Vn[qn]=null,bi=Vn[--qn],Vn[qn]=null,vi=Vn[--qn],Vn[qn]=null}function h2(e,t){Vn[qn++]=vi,Vn[qn++]=bi,Vn[qn++]=Zr,vi=t.id,bi=t.overflow,Zr=e}var Mt=null,it=null,Ce=!1,Ar=null,Yn=!1,gx=Error(I(519));function Lr(e){var t=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ls(Gn(t,e)),gx}function _z(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Rt]=e,t[pn]=r,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<qs.length;n++)_e(qs[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),VT(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),HT(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||X4(t.textContent,n)?(r.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),r.onScroll!=null&&_e("scroll",t),r.onScrollEnd!=null&&_e("scrollend",t),r.onClick!=null&&(t.onclick=Fi),t=!0):t=!1,t||Lr(e,!0)}function wz(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Mt=Mt.return}}function Ca(e){if(e!==Mt)return!1;if(!Ce)return wz(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lx(e.type,e.memoizedProps)),n=!n),n&&it&&Lr(e),wz(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));it=fT(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));it=fT(e)}else t===27?(t=it,qr(e.type)?(e=qx,qx=null,it=e):it=t):it=Mt?Xn(e.stateNode.nextSibling):null;return!0}function bo(){it=Mt=null,Ce=!1}function jb(){var e=Ar;return e!==null&&(mn===null?mn=e:mn.push.apply(mn,e),Ar=null),e}function Ls(e){Ar===null?Ar=[e]:Ar.push(e)}var yx=ki(null),Co=null,Vi=null;function kr(e,t,n){We(yx,t._currentValue),t._currentValue=n}function Hi(e){e._currentValue=yx.current,It(yx)}function vx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bx(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=i;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),vx(o.return,n,e),r||(a=null);break e}o=l.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(I(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),vx(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function ul(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(I(387));if(a=a.memoizedProps,a!==null){var l=i.type;Dn(i.pendingProps.value,a.value)||(e!==null?e.push(l):e=[l])}}else if(i===nf.current){if(a=i.alternate,a===null)throw Error(I(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Gs):e=[Gs])}i=i.return}e!==null&&bx(t,e,n,r),t.flags|=262144}function df(e){for(e=e.firstContext;e!==null;){if(!Dn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xo(e){Co=e,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return p2(Co,e)}function Dd(e,t){return Co===null&&xo(e),p2(e,t)}function p2(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vi===null){if(e===null)throw Error(I(308));Vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vi=Vi.next=t;return n}var MU=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},BU=$t.unstable_scheduleCallback,ZU=$t.unstable_NormalPriority,xt={$$typeof:Pi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function d1(){return{controller:new MU,data:new Map,refCount:0}}function nc(e){e.refCount--,e.refCount===0&&BU(ZU,function(){e.controller.abort()})}var zs=null,xx=0,el=0,Ga=null;function LU(e,t){if(zs===null){var n=zs=[];xx=0,el=N1(),Ga={status:"pending",value:void 0,then:function(r){n.push(r)}}}return xx++,t.then($z,$z),t}function $z(){if(--xx===0&&zs!==null){Ga!==null&&(Ga.status="fulfilled");var e=zs;zs=null,el=0,Ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function PU(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var zz=ce.S;ce.S=function(e,t){E4=Tn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&LU(e,t),zz!==null&&zz(e,t)};var go=ki(null);function f1(){var e=go.current;return e!==null?e:Ge.pooledCache}function Hd(e,t){t===null?We(go,go.current):We(go,t.pool)}function g2(){var e=f1();return e===null?null:{parent:xt._currentValue,pool:e}}var dl=Error(I(460)),m1=Error(I(474)),Mf=Error(I(542)),ff={then:function(){}};function Tz(e){return e=e.status,e==="fulfilled"||e==="rejected"}function y2(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Fi,Fi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ez(e),e;default:if(typeof t.status=="string")t.then(Fi,Fi);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(I(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ez(e),e}throw yo=t,dl}}function fo(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(yo=n,dl):n}}var yo=null;function Cz(){if(yo===null)throw Error(I(459));var e=yo;return yo=null,e}function Ez(e){if(e===dl||e===Mf)throw Error(I(483))}var Ya=null,Ps=0;function Ad(e){var t=Ps;return Ps+=1,Ya===null&&(Ya=[]),y2(Ya,e,t)}function ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function jd(e,t){throw t.$$typeof===CO?Error(I(525)):(e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function v2(e){function t(g,y){if(e){var b=g.deletions;b===null?(g.deletions=[y],g.flags|=16):b.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g){for(var y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(g,y){return g=qi(g,y),g.index=0,g.sibling=null,g}function o(g,y,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<y?(g.flags|=67108866,y):b):(g.flags|=67108866,y)):(g.flags|=1048576,y)}function a(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,y,b,v){return y===null||y.tag!==6?(y=Db(b,g.mode,v),y.return=g,y):(y=i(y,b),y.return=g,y)}function s(g,y,b,v){var A=b.type;return A===Aa?d(g,y,b.props.children,v,b.key):y!==null&&(y.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===xr&&fo(A)===y.type)?(y=i(y,b.props),ms(y,b),y.return=g,y):(y=qd(b.type,b.key,b.props,null,g.mode,v),ms(y,b),y.return=g,y)}function u(g,y,b,v){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Ab(b,g.mode,v),y.return=g,y):(y=i(y,b.children||[]),y.return=g,y)}function d(g,y,b,v,A){return y===null||y.tag!==7?(y=po(b,g.mode,v,A),y.return=g,y):(y=i(y,b),y.return=g,y)}function m(g,y,b){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Db(""+y,g.mode,b),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _d:return b=qd(y.type,y.key,y.props,null,g.mode,b),ms(b,y),b.return=g,b;case vs:return y=Ab(y,g.mode,b),y.return=g,y;case xr:return y=fo(y),m(g,y,b)}if(bs(y)||ds(y))return y=po(y,g.mode,b,null),y.return=g,y;if(typeof y.then=="function")return m(g,Ad(y),b);if(y.$$typeof===Pi)return m(g,Dd(g,y),b);jd(g,y)}return null}function h(g,y,b,v){var A=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return A!==null?null:l(g,y,""+b,v);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _d:return b.key===A?s(g,y,b,v):null;case vs:return b.key===A?u(g,y,b,v):null;case xr:return b=fo(b),h(g,y,b,v)}if(bs(b)||ds(b))return A!==null?null:d(g,y,b,v,null);if(typeof b.then=="function")return h(g,y,Ad(b),v);if(b.$$typeof===Pi)return h(g,y,Dd(g,b),v);jd(g,b)}return null}function f(g,y,b,v,A){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(b)||null,l(y,g,""+v,A);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _d:return g=g.get(v.key===null?b:v.key)||null,s(y,g,v,A);case vs:return g=g.get(v.key===null?b:v.key)||null,u(y,g,v,A);case xr:return v=fo(v),f(g,y,b,v,A)}if(bs(v)||ds(v))return g=g.get(b)||null,d(y,g,v,A,null);if(typeof v.then=="function")return f(g,y,b,Ad(v),A);if(v.$$typeof===Pi)return f(g,y,b,Dd(y,v),A);jd(y,v)}return null}function x(g,y,b,v){for(var A=null,ee=null,B=y,T=y=0,V=null;B!==null&&T<b.length;T++){B.index>T?(V=B,B=null):V=B.sibling;var C=h(g,B,b[T],v);if(C===null){B===null&&(B=V);break}e&&B&&C.alternate===null&&t(g,B),y=o(C,y,T),ee===null?A=C:ee.sibling=C,ee=C,B=V}if(T===b.length)return n(g,B),Ce&&Zi(g,T),A;if(B===null){for(;T<b.length;T++)B=m(g,b[T],v),B!==null&&(y=o(B,y,T),ee===null?A=B:ee.sibling=B,ee=B);return Ce&&Zi(g,T),A}for(B=r(B);T<b.length;T++)V=f(B,g,T,b[T],v),V!==null&&(e&&V.alternate!==null&&B.delete(V.key===null?T:V.key),y=o(V,y,T),ee===null?A=V:ee.sibling=V,ee=V);return e&&B.forEach(function(re){return t(g,re)}),Ce&&Zi(g,T),A}function k(g,y,b,v){if(b==null)throw Error(I(151));for(var A=null,ee=null,B=y,T=y=0,V=null,C=b.next();B!==null&&!C.done;T++,C=b.next()){B.index>T?(V=B,B=null):V=B.sibling;var re=h(g,B,C.value,v);if(re===null){B===null&&(B=V);break}e&&B&&re.alternate===null&&t(g,B),y=o(re,y,T),ee===null?A=re:ee.sibling=re,ee=re,B=V}if(C.done)return n(g,B),Ce&&Zi(g,T),A;if(B===null){for(;!C.done;T++,C=b.next())C=m(g,C.value,v),C!==null&&(y=o(C,y,T),ee===null?A=C:ee.sibling=C,ee=C);return Ce&&Zi(g,T),A}for(B=r(B);!C.done;T++,C=b.next())C=f(B,g,T,C.value,v),C!==null&&(e&&C.alternate!==null&&B.delete(C.key===null?T:C.key),y=o(C,y,T),ee===null?A=C:ee.sibling=C,ee=C);return e&&B.forEach(function(Ye){return t(g,Ye)}),Ce&&Zi(g,T),A}function N(g,y,b,v){if(typeof b=="object"&&b!==null&&b.type===Aa&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case _d:e:{for(var A=b.key;y!==null;){if(y.key===A){if(A=b.type,A===Aa){if(y.tag===7){n(g,y.sibling),v=i(y,b.props.children),v.return=g,g=v;break e}}else if(y.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===xr&&fo(A)===y.type){n(g,y.sibling),v=i(y,b.props),ms(v,b),v.return=g,g=v;break e}n(g,y);break}else t(g,y);y=y.sibling}b.type===Aa?(v=po(b.props.children,g.mode,v,b.key),v.return=g,g=v):(v=qd(b.type,b.key,b.props,null,g.mode,v),ms(v,b),v.return=g,g=v)}return a(g);case vs:e:{for(A=b.key;y!==null;){if(y.key===A)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(g,y.sibling),v=i(y,b.children||[]),v.return=g,g=v;break e}else{n(g,y);break}else t(g,y);y=y.sibling}v=Ab(b,g.mode,v),v.return=g,g=v}return a(g);case xr:return b=fo(b),N(g,y,b,v)}if(bs(b))return x(g,y,b,v);if(ds(b)){if(A=ds(b),typeof A!="function")throw Error(I(150));return b=A.call(b),k(g,y,b,v)}if(typeof b.then=="function")return N(g,y,Ad(b),v);if(b.$$typeof===Pi)return N(g,y,Dd(g,b),v);jd(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(n(g,y.sibling),v=i(y,b),v.return=g,g=v):(n(g,y),v=Db(b,g.mode,v),v.return=g,g=v),a(g)):n(g,y)}return function(g,y,b,v){try{Ps=0;var A=N(g,y,b,v);return Ya=null,A}catch(B){if(B===dl||B===Mf)throw B;var ee=$n(29,B,null,g.mode);return ee.lanes=v,ee.return=g,ee}}}var So=v2(!0),b2=v2(!1),Sr=!1;function h1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function jr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Or(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(De&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=cf(e),u2(e,null,n),t}return Rf(e,r,t,n),cf(e)}function Ts(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,RT(e,n)}}function Ob(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var kx=!1;function Cs(){if(kx){var e=Ga;if(e!==null)throw e}}function Es(e,t,n,r){kx=!1;var i=e.updateQueue;Sr=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?o=u:a.next=u,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(o!==null){var m=i.baseState;a=0,d=u=s=null,l=o;do{var h=l.lane&-536870913,f=h!==l.lane;if(f?($e&h)===h:(r&h)===h){h!==0&&h===el&&(kx=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var x=e,k=l;h=t;var N=n;switch(k.tag){case 1:if(x=k.payload,typeof x=="function"){m=x.call(N,m,h);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=k.payload,h=typeof x=="function"?x.call(N,m,h):x,h==null)break e;m=rt({},m,h);break e;case 2:Sr=!0}}h=l.callback,h!==null&&(e.flags|=64,f&&(e.flags|=8192),f=i.callbacks,f===null?i.callbacks=[h]:f.push(h))}else f={lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,s=m):d=d.next=f,a|=h;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);d===null&&(s=m),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=d,o===null&&(i.shared.lanes=0),Fr|=a,e.lanes=a,e.memoizedState=m}}function x2(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function S2(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)x2(n[e],t)}var tl=ki(null),mf=ki(0);function Iz(e,t){e=Wi,We(mf,e),We(tl,t),Wi=e|t.baseLanes}function _x(){We(mf,Wi),We(tl,tl.current)}function p1(){Wi=mf.current,It(tl),It(mf)}var An=ki(null),Jn=null;function _r(e){var t=e.alternate;We(gt,gt.current&1),We(An,e),Jn===null&&(t===null||tl.current!==null||t.memoizedState!==null)&&(Jn=e)}function wx(e){We(gt,gt.current),We(An,e),Jn===null&&(Jn=e)}function k2(e){e.tag===22?(We(gt,gt.current),We(An,e),Jn===null&&(Jn=e)):wr(e)}function wr(){We(gt,gt.current),We(An,An.current)}function wn(e){It(An),Jn===e&&(Jn=null),It(gt)}var gt=ki(0);function hf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fx(n)||Vx(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ji=0,ye=null,Ve=null,vt=null,pf=!1,Ja=!1,ko=!1,gf=0,Fs=0,Xa=null,FU=0;function ft(){throw Error(I(321))}function g1(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dn(e[n],t[n]))return!1;return!0}function y1(e,t,n,r,i,o){return Ji=o,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ce.H=e===null||e.memoizedState===null?Q2:C1,ko=!1,o=n(r,i),ko=!1,Ja&&(o=w2(t,n,r,i)),_2(e),o}function _2(e){ce.H=Vs;var t=Ve!==null&&Ve.next!==null;if(Ji=0,vt=Ve=ye=null,pf=!1,Fs=0,Xa=null,t)throw Error(I(300));e===null||St||(e=e.dependencies,e!==null&&df(e)&&(St=!0))}function w2(e,t,n,r){ye=e;var i=0;do{if(Ja&&(Xa=null),Fs=0,Ja=!1,25<=i)throw Error(I(301));if(i+=1,vt=Ve=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ce.H=e4,o=t(n,r)}while(Ja);return o}function VU(){var e=ce.H,t=e.useState()[0];return t=typeof t.then=="function"?ic(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(ye.flags|=1024),t}function v1(){var e=gf!==0;return gf=0,e}function b1(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function x1(e){if(pf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pf=!1}Ji=0,vt=Ve=ye=null,Ja=!1,Fs=gf=0,Xa=null}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?ye.memoizedState=vt=e:vt=vt.next=e,vt}function yt(){if(Ve===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=vt===null?ye.memoizedState:vt.next;if(t!==null)vt=t,Ve=e;else{if(e===null)throw ye.alternate===null?Error(I(467)):Error(I(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},vt===null?ye.memoizedState=vt=e:vt=vt.next=e}return vt}function Bf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ic(e){var t=Fs;return Fs+=1,Xa===null&&(Xa=[]),e=y2(Xa,e,t),t=ye,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,ce.H=t===null||t.memoizedState===null?Q2:C1),e}function Zf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ic(e);if(e.$$typeof===Pi)return Bt(e)}throw Error(I(438,String(e)))}function S1(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ye.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Bf(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=EO;return t.index++,n}function Xi(e,t){return typeof t=="function"?t(e):t}function Gd(e){var t=yt();return k1(t,Ve,e)}function k1(e,t,n){var r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var l=a=null,s=null,u=t,d=!1;do{var m=u.lane&-536870913;if(m!==u.lane?($e&m)===m:(Ji&m)===m){var h=u.revertLane;if(h===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===el&&(d=!0);else if((Ji&h)===h){u=u.next,h===el&&(d=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=m,a=o):s=s.next=m,ye.lanes|=h,Fr|=h;m=u.action,ko&&n(o,m),o=u.hasEagerState?u.eagerState:n(o,m)}else h={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=h,a=o):s=s.next=h,ye.lanes|=m,Fr|=m;u=u.next}while(u!==null&&u!==t);if(s===null?a=o:s.next=l,!Dn(o,e.memoizedState)&&(St=!0,d&&(n=Ga,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=s,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ub(e){var t=yt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Dn(o,t.memoizedState)||(St=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function $2(e,t,n){var r=ye,i=yt(),o=Ce;if(o){if(n===void 0)throw Error(I(407));n=n()}else n=t();var a=!Dn((Ve||i).memoizedState,n);if(a&&(i.memoizedState=n,St=!0),i=i.queue,_1(C2.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||vt!==null&&vt.memoizedState.tag&1){if(r.flags|=2048,nl(9,{destroy:void 0},T2.bind(null,r,i,n,t),null),Ge===null)throw Error(I(349));o||(Ji&127)!==0||z2(r,t,n)}return n}function z2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Bf(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function T2(e,t,n,r){t.value=n,t.getSnapshot=r,E2(t)&&I2(e)}function C2(e,t,n){return n(function(){E2(t)&&I2(e)})}function E2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dn(e,n)}catch{return!0}}function I2(e){var t=To(e,2);t!==null&&hn(t,e,2)}function $x(e){var t=nn();if(typeof e=="function"){var n=e;if(e=n(),ko){zr(!0);try{n()}finally{zr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e},t}function D2(e,t,n,r){return e.baseState=n,k1(e,Ve,typeof r=="function"?r:Xi)}function qU(e,t,n,r,i){if(Pf(e))throw Error(I(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};ce.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,A2(t,o)):(o.next=n.next,t.pending=n.next=o)}}function A2(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=ce.T,a={};ce.T=a;try{var l=n(i,r),s=ce.S;s!==null&&s(a,l),Dz(e,t,l)}catch(u){zx(e,t,u)}finally{o!==null&&a.types!==null&&(o.types=a.types),ce.T=o}}else try{o=n(i,r),Dz(e,t,o)}catch(u){zx(e,t,u)}}function Dz(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Az(e,t,r)},function(r){return zx(e,t,r)}):Az(e,t,n)}function Az(e,t,n){t.status="fulfilled",t.value=n,j2(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,A2(e,n)))}function zx(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,j2(t),t=t.next;while(t!==r)}e.action=null}function j2(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function O2(e,t){return t}function jz(e,t){if(Ce){var n=Ge.formState;if(n!==null){e:{var r=ye;if(Ce){if(it){t:{for(var i=it,o=Yn;i.nodeType!==8;){if(!o){i=null;break t}if(i=Xn(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){it=Xn(i.nextSibling),r=i.data==="F!";break e}}Lr(r)}r=!1}r&&(t=n[0])}}return n=nn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:O2,lastRenderedState:t},n.queue=r,n=X2.bind(null,ye,r),r.dispatch=n,r=$x(!1),o=T1.bind(null,ye,!1,r.queue),r=nn(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=qU.bind(null,ye,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Oz(e){var t=yt();return U2(t,Ve,e)}function U2(e,t,n){if(t=k1(e,t,O2)[0],e=Gd(Xi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=ic(t)}catch(a){throw a===dl?Mf:a}else r=t;t=yt();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,nl(9,{destroy:void 0},HU.bind(null,i,n),null)),[r,o,e]}function HU(e,t){e.action=t}function Uz(e){var t=yt(),n=Ve;if(n!==null)return U2(t,n,e);yt(),t=t.memoizedState,n=yt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function nl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Bf(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function N2(){return yt().memoizedState}function Yd(e,t,n,r){var i=nn();ye.flags|=e,i.memoizedState=nl(1|t,{destroy:void 0},n,r===void 0?null:r)}function Lf(e,t,n,r){var i=yt();r=r===void 0?null:r;var o=i.memoizedState.inst;Ve!==null&&r!==null&&g1(r,Ve.memoizedState.deps)?i.memoizedState=nl(t,o,n,r):(ye.flags|=e,i.memoizedState=nl(1|t,o,n,r))}function Nz(e,t){Yd(8390656,8,e,t)}function _1(e,t){Lf(2048,8,e,t)}function GU(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Bf(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function R2(e){var t=yt().memoizedState;return GU({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(I(440));return t.impl.apply(void 0,arguments)}}function M2(e,t){return Lf(4,2,e,t)}function B2(e,t){return Lf(4,4,e,t)}function Z2(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function L2(e,t,n){n=n!=null?n.concat([e]):null,Lf(4,4,Z2.bind(null,t,e),n)}function w1(){}function P2(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&g1(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function F2(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&g1(t,r[1]))return r[0];if(r=e(),ko){zr(!0);try{e()}finally{zr(!1)}}return n.memoizedState=[r,t],r}function $1(e,t,n){return n===void 0||(Ji&1073741824)!==0&&($e&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=D4(),ye.lanes|=e,Fr|=e,n)}function V2(e,t,n,r){return Dn(n,t)?n:tl.current!==null?(e=$1(e,n,r),Dn(e,t)||(St=!0),e):(Ji&42)===0||(Ji&1073741824)!==0&&($e&261930)===0?(St=!0,e.memoizedState=n):(e=D4(),ye.lanes|=e,Fr|=e,t)}function q2(e,t,n,r,i){var o=Ae.p;Ae.p=o!==0&&8>o?o:8;var a=ce.T,l={};ce.T=l,T1(e,!1,t,n);try{var s=i(),u=ce.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=PU(s,r);Is(e,t,d,In(e))}else Is(e,t,r,In(e))}catch(m){Is(e,t,{then:function(){},status:"rejected",reason:m},In())}finally{Ae.p=o,a!==null&&l.types!==null&&(a.types=l.types),ce.T=a}}function YU(){}function Tx(e,t,n,r){if(e.tag!==5)throw Error(I(476));var i=H2(e).queue;q2(e,i,t,ho,n===null?YU:function(){return G2(e),n(r)})}function H2(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ho,baseState:ho,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:ho},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function G2(e){var t=H2(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},In())}function z1(){return Bt(Gs)}function Y2(){return yt().memoizedState}function J2(){return yt().memoizedState}function JU(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=In();e=jr(n);var r=Or(t,e,n);r!==null&&(hn(r,t,n),Ts(r,t,n)),t={cache:d1()},e.payload=t;return}t=t.return}}function XU(e,t,n){var r=In();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Pf(e)?K2(t,n):(n=l1(e,t,n,r),n!==null&&(hn(n,e,r),W2(n,t,r)))}function X2(e,t,n){var r=In();Is(e,t,n,r)}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pf(e))K2(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Dn(l,a))return Rf(e,t,i,0),Ge===null&&Nf(),!1}catch{}if(n=l1(e,t,i,r),n!==null)return hn(n,e,r),W2(n,t,r),!0}return!1}function T1(e,t,n,r){if(r={lane:2,revertLane:N1(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Pf(e)){if(t)throw Error(I(479))}else t=l1(e,n,r,2),t!==null&&hn(t,e,2)}function Pf(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function K2(e,t){Ja=pf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function W2(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,RT(e,n)}}var Vs={readContext:Bt,use:Zf,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};Vs.useEffectEvent=ft;var Q2={readContext:Bt,use:Zf,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:Nz,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Yd(4194308,4,Z2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yd(4194308,4,e,t)},useInsertionEffect:function(e,t){Yd(4,2,e,t)},useMemo:function(e,t){var n=nn();t=t===void 0?null:t;var r=e();if(ko){zr(!0);try{e()}finally{zr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=nn();if(n!==void 0){var i=n(t);if(ko){zr(!0);try{n(t)}finally{zr(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=XU.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:function(e){e=$x(e);var t=e.queue,n=X2.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:w1,useDeferredValue:function(e,t){var n=nn();return $1(n,e,t)},useTransition:function(){var e=$x(!1);return e=q2.bind(null,ye,e.queue,!0,!1),nn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ye,i=nn();if(Ce){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ge===null)throw Error(I(349));($e&127)!==0||z2(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Nz(C2.bind(null,r,o,e),[e]),r.flags|=2048,nl(9,{destroy:void 0},T2.bind(null,r,o,n,t),null),n},useId:function(){var e=nn(),t=Ge.identifierPrefix;if(Ce){var n=bi,r=vi;n=(r&~(1<<32-En(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gf++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=FU++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:z1,useFormState:jz,useActionState:jz,useOptimistic:function(e){var t=nn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=T1.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:S1,useCacheRefresh:function(){return nn().memoizedState=JU.bind(null,ye)},useEffectEvent:function(e){var t=nn(),n={impl:e};return t.memoizedState=n,function(){if((De&2)!==0)throw Error(I(440));return n.impl.apply(void 0,arguments)}}},C1={readContext:Bt,use:Zf,useCallback:P2,useContext:Bt,useEffect:_1,useImperativeHandle:L2,useInsertionEffect:M2,useLayoutEffect:B2,useMemo:F2,useReducer:Gd,useRef:N2,useState:function(){return Gd(Xi)},useDebugValue:w1,useDeferredValue:function(e,t){var n=yt();return V2(n,Ve.memoizedState,e,t)},useTransition:function(){var e=Gd(Xi)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:ic(e),t]},useSyncExternalStore:$2,useId:Y2,useHostTransitionStatus:z1,useFormState:Oz,useActionState:Oz,useOptimistic:function(e,t){var n=yt();return D2(n,Ve,e,t)},useMemoCache:S1,useCacheRefresh:J2};C1.useEffectEvent=R2;var e4={readContext:Bt,use:Zf,useCallback:P2,useContext:Bt,useEffect:_1,useImperativeHandle:L2,useInsertionEffect:M2,useLayoutEffect:B2,useMemo:F2,useReducer:Ub,useRef:N2,useState:function(){return Ub(Xi)},useDebugValue:w1,useDeferredValue:function(e,t){var n=yt();return Ve===null?$1(n,e,t):V2(n,Ve.memoizedState,e,t)},useTransition:function(){var e=Ub(Xi)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:ic(e),t]},useSyncExternalStore:$2,useId:Y2,useHostTransitionStatus:z1,useFormState:Uz,useActionState:Uz,useOptimistic:function(e,t){var n=yt();return Ve!==null?D2(n,Ve,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:S1,useCacheRefresh:J2};e4.useEffectEvent=R2;function Nb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:rt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cx={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=In(),i=jr(r);i.payload=t,n!=null&&(i.callback=n),t=Or(e,i,r),t!==null&&(hn(t,e,r),Ts(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=In(),i=jr(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Or(e,i,r),t!==null&&(hn(t,e,r),Ts(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=In(),r=jr(n);r.tag=2,t!=null&&(r.callback=t),t=Or(e,r,n),t!==null&&(hn(t,e,n),Ts(t,e,n))}};function Rz(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Bs(n,r)||!Bs(i,o):!0}function Mz(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cx.enqueueReplaceState(t,t.state,null)}function _o(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=rt({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function t4(e){sf(e)}function n4(e){console.error(e)}function i4(e){sf(e)}function yf(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Bz(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ex(e,t,n){return n=jr(n),n.tag=3,n.payload={element:null},n.callback=function(){yf(e,t)},n}function r4(e){return e=jr(e),e.tag=3,e}function o4(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Bz(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){Bz(t,n,r),typeof i!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function KU(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&ul(t,n,i,!0),n=An.current,n!==null){switch(n.tag){case 31:case 13:return Jn===null?kf():n.alternate===null&&mt===0&&(mt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===ff?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gb(e,r,i)),!1;case 22:return n.flags|=65536,r===ff?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gb(e,r,i)),!1}throw Error(I(435,n.tag))}return Gb(e,r,i),kf(),!1}if(Ce)return t=An.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==gx&&(e=Error(I(422),{cause:r}),Ls(Gn(e,n)))):(r!==gx&&(t=Error(I(423),{cause:r}),Ls(Gn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Gn(r,n),i=Ex(e.stateNode,r,i),Ob(e,i),mt!==4&&(mt=2)),!1;var o=Error(I(520),{cause:r});if(o=Gn(o,n),js===null?js=[o]:js.push(o),mt!==4&&(mt=2),t===null)return!0;r=Gn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Ex(n.stateNode,r,e),Ob(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ur===null||!Ur.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=r4(i),o4(i,e,n,r),Ob(n,i),!1}n=n.return}while(n!==null);return!1}var E1=Error(I(461)),St=!1;function Nt(e,t,n,r){t.child=e===null?b2(t,null,n,r):So(t,e.child,n,r)}function Zz(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}else a=r;return xo(t),r=y1(e,t,n,a,o,i),l=v1(),e!==null&&!St?(b1(e,t,i),Ki(e,t,i)):(Ce&&l&&c1(t),t.flags|=1,Nt(e,t,r,i),t.child)}function Lz(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!s1(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,a4(e,t,o,r,i)):(e=qd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!I1(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Bs,n(a,r)&&e.ref===t.ref)return Ki(e,t,i)}return t.flags|=1,e=qi(o,r),e.ref=t.ref,e.return=t,t.child=e}function a4(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Bs(o,r)&&e.ref===t.ref)if(St=!1,t.pendingProps=r=o,I1(e,i))(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,Ki(e,t,i)}return Ix(e,t,n,r,i)}function l4(e,t,n,r){var i=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return Pz(e,t,o,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hd(t,o!==null?o.cachePool:null),o!==null?Iz(t,o):_x(),k2(t);else return r=t.lanes=536870912,Pz(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(Hd(t,o.cachePool),Iz(t,o),wr(t),t.memoizedState=null):(e!==null&&Hd(t,null),_x(),wr(t));return Nt(e,t,i,n),t.child}function Ss(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pz(e,t,n,r,i){var o=f1();return o=o===null?null:{parent:xt._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Hd(t,null),_x(),k2(t),e!==null&&ul(e,t,r,!0),t.childLanes=i,null}function Jd(e,t){return t=vf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fz(e,t,n){return So(t,e.child,null,n),e=Jd(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function WU(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(r.mode==="hidden")return e=Jd(t,r),t.lanes=536870912,Ss(null,e);if(wx(t),(e=it)?(e=Q4(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zr!==null?{id:vi,overflow:bi}:null,retryLane:536870912,hydrationErrors:null},n=f2(e),n.return=t,t.child=n,Mt=t,it=null)):e=null,e===null)throw Lr(t);return t.lanes=536870912,null}return Jd(t,r)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(wx(t),i)if(t.flags&256)t.flags&=-257,t=Fz(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(I(558));else if(St||ul(e,t,n,!1),i=(n&e.childLanes)!==0,St||i){if(r=Ge,r!==null&&(a=MT(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,To(e,a),hn(r,e,a),E1;kf(),t=Fz(e,t,n)}else e=o.treeContext,it=Xn(a.nextSibling),Mt=t,Ce=!0,Ar=null,Yn=!1,e!==null&&h2(t,e),t=Jd(t,r),t.flags|=4096;return t}return e=qi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Xd(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(I(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ix(e,t,n,r,i){return xo(t),n=y1(e,t,n,r,void 0,i),r=v1(),e!==null&&!St?(b1(e,t,i),Ki(e,t,i)):(Ce&&r&&c1(t),t.flags|=1,Nt(e,t,n,i),t.child)}function Vz(e,t,n,r,i,o){return xo(t),t.updateQueue=null,n=w2(t,r,n,i),_2(e),r=v1(),e!==null&&!St?(b1(e,t,o),Ki(e,t,o)):(Ce&&r&&c1(t),t.flags|=1,Nt(e,t,n,o),t.child)}function qz(e,t,n,r,i){if(xo(t),t.stateNode===null){var o=Za,a=n.contextType;typeof a=="object"&&a!==null&&(o=Bt(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Cx,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},h1(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?Bt(a):Za,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(Nb(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&Cx.enqueueReplaceState(o,o.state,null),Es(t,r,o,i),Cs(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,s=_o(n,l);o.props=s;var u=o.context,d=n.contextType;a=Za,typeof d=="object"&&d!==null&&(a=Bt(d));var m=n.getDerivedStateFromProps;d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==a)&&Mz(t,o,r,a),Sr=!1;var h=t.memoizedState;o.state=h,Es(t,r,o,i),Cs(),u=t.memoizedState,l||h!==u||Sr?(typeof m=="function"&&(Nb(t,n,m,r),u=t.memoizedState),(s=Sr||Rz(t,n,s,r,h,u,a))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Sx(e,t),a=t.memoizedProps,d=_o(n,a),o.props=d,m=t.pendingProps,h=o.context,u=n.contextType,s=Za,typeof u=="object"&&u!==null&&(s=Bt(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==m||h!==s)&&Mz(t,o,r,s),Sr=!1,h=t.memoizedState,o.state=h,Es(t,r,o,i),Cs();var f=t.memoizedState;a!==m||h!==f||Sr||e!==null&&e.dependencies!==null&&df(e.dependencies)?(typeof l=="function"&&(Nb(t,n,l,r),f=t.memoizedState),(d=Sr||Rz(t,n,d,r,h,f,s)||e!==null&&e.dependencies!==null&&df(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,f,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,f,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=s,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Xd(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=So(t,e.child,null,i),t.child=So(t,null,n,i)):Nt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Ki(e,t,i),e}function Hz(e,t,n,r){return bo(),t.flags|=256,Nt(e,t,n,r),t.child}var Rb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mb(e){return{baseLanes:e,cachePool:g2()}}function Bb(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zn),e}function s4(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(gt.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(i?_r(t):wr(t),(e=it)?(e=Q4(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zr!==null?{id:vi,overflow:bi}:null,retryLane:536870912,hydrationErrors:null},n=f2(e),n.return=t,t.child=n,Mt=t,it=null)):e=null,e===null)throw Lr(t);return Vx(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,i?(wr(t),i=t.mode,l=vf({mode:"hidden",children:l},i),r=po(r,i,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Mb(n),r.childLanes=Bb(e,a,n),t.memoizedState=Rb,Ss(null,r)):(_r(t),Dx(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(o)t.flags&256?(_r(t),t.flags&=-257,t=Zb(e,t,n)):t.memoizedState!==null?(wr(t),t.child=e.child,t.flags|=128,t=null):(wr(t),l=r.fallback,i=t.mode,r=vf({mode:"visible",children:r.children},i),l=po(l,i,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,So(t,e.child,null,n),r=t.child,r.memoizedState=Mb(n),r.childLanes=Bb(e,a,n),t.memoizedState=Rb,t=Ss(null,r));else if(_r(t),Vx(l)){if(a=l.nextSibling&&l.nextSibling.dataset,a)var u=a.dgst;a=u,r=Error(I(419)),r.stack="",r.digest=a,Ls({value:r,source:null,stack:null}),t=Zb(e,t,n)}else if(St||ul(e,t,n,!1),a=(n&e.childLanes)!==0,St||a){if(a=Ge,a!==null&&(r=MT(a,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,To(e,r),hn(a,e,r),E1;Fx(l)||kf(),t=Zb(e,t,n)}else Fx(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,it=Xn(l.nextSibling),Mt=t,Ce=!0,Ar=null,Yn=!1,e!==null&&h2(t,e),t=Dx(t,r.children),t.flags|=4096);return t}return i?(wr(t),l=r.fallback,i=t.mode,s=e.child,u=s.sibling,r=qi(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=qi(u,l):(l=po(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Ss(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Mb(n):(i=l.cachePool,i!==null?(s=xt._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=g2(),l={baseLanes:l.baseLanes|n,cachePool:i}),r.memoizedState=l,r.childLanes=Bb(e,a,n),t.memoizedState=Rb,Ss(e.child,r)):(_r(t),n=e.child,e=n.sibling,n=qi(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Dx(e,t){return t=vf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vf(e,t){return e=$n(22,e,null,t),e.lanes=0,e}function Zb(e,t,n){return So(t,e.child,null,n),e=Dx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gz(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vx(e.return,t,n)}function Lb(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function c4(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=gt.current,l=(a&2)!==0;if(l?(a=a&1|2,t.flags|=128):a&=1,We(gt,a),Nt(e,t,r,n),r=Ce?Zs:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gz(e,n,t);else if(e.tag===19)Gz(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&hf(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Lb(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&hf(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Lb(t,!0,n,null,o,r);break;case"together":Lb(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ki(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ul(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=qi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function I1(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&df(e)))}function QU(e,t,n){switch(t.tag){case 3:rf(t,t.stateNode.containerInfo),kr(t,xt,e.memoizedState.cache),bo();break;case 27:case 5:ox(t);break;case 4:rf(t,t.stateNode.containerInfo);break;case 10:kr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wx(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(_r(t),t.flags|=128,null):(n&t.child.childLanes)!==0?s4(e,t,n):(_r(t),e=Ki(e,t,n),e!==null?e.sibling:null);_r(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(ul(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return c4(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),We(gt,gt.current),r)break;return null;case 22:return t.lanes=0,l4(e,t,n,t.pendingProps);case 24:kr(t,xt,e.memoizedState.cache)}return Ki(e,t,n)}function u4(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)St=!0;else{if(!I1(e,n)&&(t.flags&128)===0)return St=!1,QU(e,t,n);St=(e.flags&131072)!==0}else St=!1,Ce&&(t.flags&1048576)!==0&&m2(t,Zs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=fo(t.elementType),t.type=e,typeof e=="function")s1(e)?(r=_o(e,r),t.tag=1,t=qz(null,t,e,r,n)):(t.tag=0,t=Ix(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===Yx){t.tag=11,t=Zz(null,t,e,r,n);break e}else if(i===Jx){t.tag=14,t=Lz(null,t,e,r,n);break e}}throw t=ix(e)||e,Error(I(306,t,""))}}return t;case 0:return Ix(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=_o(r,t.pendingProps),qz(e,t,r,i,n);case 3:e:{if(rf(t,t.stateNode.containerInfo),e===null)throw Error(I(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Sx(e,t),Es(t,r,null,n);var a=t.memoizedState;if(r=a.cache,kr(t,xt,r),r!==o.cache&&bx(t,[xt],n,!0),Cs(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Hz(e,t,r,n);break e}else if(r!==i){i=Gn(Error(I(424)),t),Ls(i),t=Hz(e,t,r,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,it=Xn(e.firstChild),Mt=t,Ce=!0,Ar=null,Yn=!0,n=b2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bo(),r===i){t=Ki(e,t,n);break e}Nt(e,t,r,n)}t=t.child}return t;case 26:return Xd(e,t),e===null?(n=pT(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,r=zf(Dr.current).createElement(n),r[Rt]=t,r[pn]=e,Zt(r,n,e),Et(r),t.stateNode=r):t.memoizedState=pT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ox(t),e===null&&Ce&&(r=t.stateNode=e6(t.type,t.pendingProps,Dr.current),Mt=t,Yn=!0,i=it,qr(t.type)?(qx=i,it=Xn(r.firstChild)):it=i),Nt(e,t,t.pendingProps.children,n),Xd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((i=r=it)&&(r=TN(r,t.type,t.pendingProps,Yn),r!==null?(t.stateNode=r,Mt=t,it=Xn(r.firstChild),Yn=!1,i=!0):i=!1),i||Lr(t)),ox(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,Lx(i,o)?r=null:a!==null&&Lx(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=y1(e,t,VU,null,null,n),Gs._currentValue=i),Xd(e,t),Nt(e,t,r,n),t.child;case 6:return e===null&&Ce&&((e=n=it)&&(n=CN(n,t.pendingProps,Yn),n!==null?(t.stateNode=n,Mt=t,it=null,e=!0):e=!1),e||Lr(t)),null;case 13:return s4(e,t,n);case 4:return rf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=So(t,null,r,n):Nt(e,t,r,n),t.child;case 11:return Zz(e,t,t.type,t.pendingProps,n);case 7:return Nt(e,t,t.pendingProps,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,kr(t,t.type,r.value),Nt(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,xo(t),i=Bt(i),r=r(i),t.flags|=1,Nt(e,t,r,n),t.child;case 14:return Lz(e,t,t.type,t.pendingProps,n);case 15:return a4(e,t,t.type,t.pendingProps,n);case 19:return c4(e,t,n);case 31:return WU(e,t,n);case 22:return l4(e,t,n,t.pendingProps);case 24:return xo(t),r=Bt(xt),e===null?(i=f1(),i===null&&(i=Ge,o=d1(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},h1(t),kr(t,xt,i)):((e.lanes&n)!==0&&(Sx(e,t),Es(t,null,null,n),Cs()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),kr(t,xt,r)):(r=o.cache,kr(t,xt,r),r!==i.cache&&bx(t,[xt],n,!0))),Nt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(I(156,t.tag))}function Ni(e){e.flags|=4}function Pb(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(O4())e.flags|=8192;else throw yo=ff,m1}else e.flags&=-16777217}function Yz(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!i6(t))if(O4())e.flags|=8192;else throw yo=ff,m1}function Od(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?UT():536870912,e.lanes|=t,il|=t)}function hs(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function eN(e,t,n){var r=t.pendingProps;switch(u1(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hi(xt),Ka(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ca(t)?Ni(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jb())),nt(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Ni(t),o!==null?(nt(t),Yz(t,o)):(nt(t),Pb(t,i,null,r,n))):o?o!==e.memoizedState?(Ni(t),nt(t),Yz(t,o)):(nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Ni(t),nt(t),Pb(t,i,e,r,n)),null;case 27:if(of(t),n=Dr.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ni(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return nt(t),null}e=Si.current,Ca(t)?_z(t,e):(e=e6(i,r,n),t.stateNode=e,Ni(t))}return nt(t),null;case 5:if(of(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ni(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return nt(t),null}if(o=Si.current,Ca(t))_z(t,o);else{var a=zf(Dr.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[Rt]=t,o[pn]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(Zt(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Ni(t)}}return nt(t),Pb(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ni(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(e=Dr.current,Ca(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Mt,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||X4(e.nodeValue,n)),e||Lr(t,!0)}else e=zf(e).createTextNode(r),e[Rt]=t,t.stateNode=e}return nt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ca(t),n!==null){if(e===null){if(!r)throw Error(I(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(557));e[Rt]=t}else bo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),e=!1}else n=jb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(I(558))}return nt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ca(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[Rt]=t}else bo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),i=!1}else i=jb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Od(t,t.updateQueue),nt(t),null);case 4:return Ka(),e===null&&R1(t.stateNode.containerInfo),nt(t),null;case 10:return Hi(t.type),nt(t),null;case 19:if(It(gt),r=t.memoizedState,r===null)return nt(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)hs(r,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=hf(e),o!==null){for(t.flags|=128,hs(r,!1),e=o.updateQueue,t.updateQueue=e,Od(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)d2(n,e),n=n.sibling;return We(gt,gt.current&1|2),Ce&&Zi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Tn()>xf&&(t.flags|=128,i=!0,hs(r,!1),t.lanes=4194304)}else{if(!i)if(e=hf(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Od(t,e),hs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Ce)return nt(t),null}else 2*Tn()-r.renderingStartTime>xf&&n!==536870912&&(t.flags|=128,i=!0,hs(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Tn(),e.sibling=null,n=gt.current,We(gt,i?n&1|2:n&1),Ce&&Zi(t,r.treeForkCount),e):(nt(t),null);case 22:case 23:return wn(t),p1(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),n=t.updateQueue,n!==null&&Od(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&It(go),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hi(xt),nt(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function tN(e,t){switch(u1(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(xt),Ka(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return of(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(I(340));bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return It(gt),null;case 4:return Ka(),null;case 10:return Hi(t.type),null;case 22:case 23:return wn(t),p1(),e!==null&&It(go),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(xt),null;case 25:return null;default:return null}}function d4(e,t){switch(u1(t),t.tag){case 3:Hi(xt),Ka();break;case 26:case 27:case 5:of(t);break;case 4:Ka();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:It(gt);break;case 10:Hi(t.type);break;case 22:case 23:wn(t),p1(),e!==null&&It(go);break;case 24:Hi(xt)}}function rc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(l){Ze(t,t.return,l)}}function Pr(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(l!==void 0){a.destroy=void 0,i=t;var s=n,u=l;try{u()}catch(d){Ze(i,s,d)}}}r=r.next}while(r!==o)}}catch(d){Ze(t,t.return,d)}}function f4(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{S2(t,n)}catch(r){Ze(e,e.return,r)}}}function m4(e,t,n){n.props=_o(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Ze(e,t,r)}}function Ds(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){Ze(e,t,i)}}function xi(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){Ze(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ze(e,t,i)}else n.current=null}function h4(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Ze(e,e.return,i)}}function Fb(e,t,n){try{var r=e.stateNode;SN(r,e.type,n,t),r[pn]=t}catch(i){Ze(e,e.return,i)}}function p4(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qr(e.type)||e.tag===4}function Vb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&qr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ax(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fi));else if(r!==4&&(r===27&&qr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ax(e,t,n),e=e.sibling;e!==null;)Ax(e,t,n),e=e.sibling}function bf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&qr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(bf(e,t,n),e=e.sibling;e!==null;)bf(e,t,n),e=e.sibling}function g4(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Zt(t,r,n),t[Rt]=e,t[pn]=n}catch(o){Ze(e,e.return,o)}}var Li=!1,bt=!1,qb=!1,Jz=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function nN(e,t){if(e=e.containerInfo,Bx=If,e=i2(e),o1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,d=0,m=e,h=null;t:for(;;){for(var f;m!==n||i!==0&&m.nodeType!==3||(l=a+i),m!==o||r!==0&&m.nodeType!==3||(s=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(f=m.firstChild)!==null;)h=m,m=f;for(;;){if(m===e)break t;if(h===n&&++u===i&&(l=a),h===o&&++d===r&&(s=a),(f=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=f}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zx={focusedElem:e,selectionRange:n},If=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var x=_o(n.type,i);e=r.getSnapshotBeforeUpdate(x,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(k){Ze(n,n.return,k)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Px(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Px(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(I(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}}function y4(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mi(e,n),r&4&&rc(5,n);break;case 1:if(Mi(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){Ze(n,n.return,a)}else{var i=_o(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){Ze(n,n.return,a)}}r&64&&f4(n),r&512&&Ds(n,n.return);break;case 3:if(Mi(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{S2(e,t)}catch(a){Ze(n,n.return,a)}}break;case 27:t===null&&r&4&&g4(n);case 26:case 5:Mi(e,n),t===null&&r&4&&h4(n),r&512&&Ds(n,n.return);break;case 12:Mi(e,n);break;case 31:Mi(e,n),r&4&&x4(e,n);break;case 13:Mi(e,n),r&4&&S4(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=dN.bind(null,n),EN(e,n))));break;case 22:if(r=n.memoizedState!==null||Li,!r){t=t!==null&&t.memoizedState!==null||bt,i=Li;var o=bt;Li=r,(bt=t)&&!o?Bi(e,n,(n.subtreeFlags&8772)!==0):Mi(e,n),Li=i,bt=o}break;case 30:break;default:Mi(e,n)}}function v4(e){var t=e.alternate;t!==null&&(e.alternate=null,v4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qx(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var at=null,fn=!1;function Ri(e,t,n){for(n=n.child;n!==null;)b4(e,t,n),n=n.sibling}function b4(e,t,n){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(Ks,n)}catch{}switch(n.tag){case 26:bt||xi(n,t),Ri(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:bt||xi(n,t);var r=at,i=fn;qr(n.type)&&(at=n.stateNode,fn=!1),Ri(e,t,n),Us(n.stateNode),at=r,fn=i;break;case 5:bt||xi(n,t);case 6:if(r=at,i=fn,at=null,Ri(e,t,n),at=r,fn=i,at!==null)if(fn)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(n.stateNode)}catch(o){Ze(n,t,o)}else try{at.removeChild(n.stateNode)}catch(o){Ze(n,t,o)}break;case 18:at!==null&&(fn?(e=at,uT(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ll(e)):uT(at,n.stateNode));break;case 4:r=at,i=fn,at=n.stateNode.containerInfo,fn=!0,Ri(e,t,n),at=r,fn=i;break;case 0:case 11:case 14:case 15:Pr(2,n,t),bt||Pr(4,n,t),Ri(e,t,n);break;case 1:bt||(xi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&m4(n,t,r)),Ri(e,t,n);break;case 21:Ri(e,t,n);break;case 22:bt=(r=bt)||n.memoizedState!==null,Ri(e,t,n),bt=r;break;default:Ri(e,t,n)}}function x4(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ll(e)}catch(n){Ze(t,t.return,n)}}}function S4(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ll(e)}catch(n){Ze(t,t.return,n)}}function iN(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jz),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jz),t;default:throw Error(I(435,e.tag))}}function Ud(e,t){var n=iN(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=fN.bind(null,e,r);r.then(i,i)}})}function un(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 27:if(qr(l.type)){at=l.stateNode,fn=!1;break e}break;case 5:at=l.stateNode,fn=!1;break e;case 3:case 4:at=l.stateNode.containerInfo,fn=!0;break e}l=l.return}if(at===null)throw Error(I(160));b4(o,a,i),at=null,fn=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)k4(t,e),t=t.sibling}var ni=null;function k4(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:un(t,e),dn(e),r&4&&(Pr(3,e,e.return),rc(3,e),Pr(5,e,e.return));break;case 1:un(t,e),dn(e),r&512&&(bt||n===null||xi(n,n.return)),r&64&&Li&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=ni;if(un(t,e),dn(e),r&512&&(bt||n===null||xi(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[ec]||o[Rt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Zt(o,r,n),o[Rt]=e,Et(o),r=o;break e;case"link":var a=yT("link","href",i).get(r+(n.href||""));if(a){for(var l=0;l<a.length;l++)if(o=a[l],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(l,1);break t}}o=i.createElement(r),Zt(o,r,n),i.head.appendChild(o);break;case"meta":if(a=yT("meta","content",i).get(r+(n.content||""))){for(l=0;l<a.length;l++)if(o=a[l],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(l,1);break t}}o=i.createElement(r),Zt(o,r,n),i.head.appendChild(o);break;default:throw Error(I(468,r))}o[Rt]=e,Et(o),r=o}e.stateNode=r}else vT(i,e.type,e.stateNode);else e.stateNode=gT(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?vT(i,e.type,e.stateNode):gT(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Fb(e,e.memoizedProps,n.memoizedProps)}break;case 27:un(t,e),dn(e),r&512&&(bt||n===null||xi(n,n.return)),n!==null&&r&4&&Fb(e,e.memoizedProps,n.memoizedProps);break;case 5:if(un(t,e),dn(e),r&512&&(bt||n===null||xi(n,n.return)),e.flags&32){i=e.stateNode;try{Qa(i,"")}catch(x){Ze(e,e.return,x)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Fb(e,i,n!==null?n.memoizedProps:i)),r&1024&&(qb=!0);break;case 6:if(un(t,e),dn(e),r&4){if(e.stateNode===null)throw Error(I(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(x){Ze(e,e.return,x)}}break;case 3:if(Qd=null,i=ni,ni=Tf(t.containerInfo),un(t,e),ni=i,dn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ll(t.containerInfo)}catch(x){Ze(e,e.return,x)}qb&&(qb=!1,_4(e));break;case 4:r=ni,ni=Tf(e.stateNode.containerInfo),un(t,e),dn(e),ni=r;break;case 12:un(t,e),dn(e);break;case 31:un(t,e),dn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ud(e,r)));break;case 13:un(t,e),dn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ff=Tn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ud(e,r)));break;case 22:i=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Li,d=bt;if(Li=u||i,bt=d||s,un(t,e),bt=d,Li=u,dn(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||s||Li||bt||mo(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(o=s.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{l=s.stateNode;var m=s.memoizedProps.style,h=m!=null&&m.hasOwnProperty("display")?m.display:null;l.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(x){Ze(s,s.return,x)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=i?"":s.memoizedProps}catch(x){Ze(s,s.return,x)}}}else if(t.tag===18){if(n===null){s=t;try{var f=s.stateNode;i?dT(f,!0):dT(s.stateNode,!1)}catch(x){Ze(s,s.return,x)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Ud(e,n))));break;case 19:un(t,e),dn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ud(e,r)));break;case 30:break;case 21:break;default:un(t,e),dn(e)}}function dn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(p4(r)){n=r;break}r=r.return}if(n==null)throw Error(I(160));switch(n.tag){case 27:var i=n.stateNode,o=Vb(e);bf(e,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(Qa(a,""),n.flags&=-33);var l=Vb(e);bf(e,l,a);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Vb(e);Ax(e,u,s);break;default:throw Error(I(161))}}catch(d){Ze(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _4(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_4(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Mi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)y4(e,t.alternate,t),t=t.sibling}function mo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pr(4,t,t.return),mo(t);break;case 1:xi(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&m4(t,t.return,n),mo(t);break;case 27:Us(t.stateNode);case 26:case 5:xi(t,t.return),mo(t);break;case 22:t.memoizedState===null&&mo(t);break;case 30:mo(t);break;default:mo(t)}e=e.sibling}}function Bi(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Bi(i,o,n),rc(4,o);break;case 1:if(Bi(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){Ze(r,r.return,u)}if(r=o,i=r.updateQueue,i!==null){var l=r.stateNode;try{var s=i.shared.hiddenCallbacks;if(s!==null)for(i.shared.hiddenCallbacks=null,i=0;i<s.length;i++)x2(s[i],l)}catch(u){Ze(r,r.return,u)}}n&&a&64&&f4(o),Ds(o,o.return);break;case 27:g4(o);case 26:case 5:Bi(i,o,n),n&&r===null&&a&4&&h4(o),Ds(o,o.return);break;case 12:Bi(i,o,n);break;case 31:Bi(i,o,n),n&&a&4&&x4(i,o);break;case 13:Bi(i,o,n),n&&a&4&&S4(i,o);break;case 22:o.memoizedState===null&&Bi(i,o,n),Ds(o,o.return);break;case 30:break;default:Bi(i,o,n)}t=t.sibling}}function D1(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&nc(n))}function A1(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nc(e))}function ti(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)w4(e,t,n,r),t=t.sibling}function w4(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ti(e,t,n,r),i&2048&&rc(9,t);break;case 1:ti(e,t,n,r);break;case 3:ti(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nc(e)));break;case 12:if(i&2048){ti(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,l=o.onPostCommit;typeof l=="function"&&l(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Ze(t,t.return,s)}}else ti(e,t,n,r);break;case 31:ti(e,t,n,r);break;case 13:ti(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?ti(e,t,n,r):As(e,t):o._visibility&2?ti(e,t,n,r):(o._visibility|=2,Ia(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&D1(a,t);break;case 24:ti(e,t,n,r),i&2048&&A1(t.alternate,t);break;default:ti(e,t,n,r)}}function Ia(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,l=n,s=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:Ia(o,a,l,s,i),rc(8,a);break;case 23:break;case 22:var d=a.stateNode;a.memoizedState!==null?d._visibility&2?Ia(o,a,l,s,i):As(o,a):(d._visibility|=2,Ia(o,a,l,s,i)),i&&u&2048&&D1(a.alternate,a);break;case 24:Ia(o,a,l,s,i),i&&u&2048&&A1(a.alternate,a);break;default:Ia(o,a,l,s,i)}t=t.sibling}}function As(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:As(n,r),i&2048&&D1(r.alternate,r);break;case 24:As(n,r),i&2048&&A1(r.alternate,r);break;default:As(n,r)}t=t.sibling}}var ks=8192;function Ea(e,t,n){if(e.subtreeFlags&ks)for(e=e.child;e!==null;)$4(e,t,n),e=e.sibling}function $4(e,t,n){switch(e.tag){case 26:Ea(e,t,n),e.flags&ks&&e.memoizedState!==null&&LN(n,ni,e.memoizedState,e.memoizedProps);break;case 5:Ea(e,t,n);break;case 3:case 4:var r=ni;ni=Tf(e.stateNode.containerInfo),Ea(e,t,n),ni=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ks,ks=16777216,Ea(e,t,n),ks=r):Ea(e,t,n));break;default:Ea(e,t,n)}}function z4(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ps(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ct=r,C4(r,e)}z4(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)T4(e),e=e.sibling}function T4(e){switch(e.tag){case 0:case 11:case 15:ps(e),e.flags&2048&&Pr(9,e,e.return);break;case 3:ps(e);break;case 12:ps(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kd(e)):ps(e);break;default:ps(e)}}function Kd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ct=r,C4(r,e)}z4(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pr(8,t,t.return),Kd(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Kd(t));break;default:Kd(t)}e=e.sibling}}function C4(e,t){for(;Ct!==null;){var n=Ct;switch(n.tag){case 0:case 11:case 15:Pr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:nc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Ct=r;else e:for(n=e;Ct!==null;){r=Ct;var i=r.sibling,o=r.return;if(v4(r),r===n){Ct=null;break e}if(i!==null){i.return=o,Ct=i;break e}Ct=o}}}var rN={getCacheForType:function(e){var t=Bt(xt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Bt(xt).controller.signal}},oN=typeof WeakMap=="function"?WeakMap:Map,De=0,Ge=null,we=null,$e=0,Be=0,_n=null,Cr=!1,fl=!1,j1=!1,Wi=0,mt=0,Fr=0,vo=0,O1=0,zn=0,il=0,js=null,mn=null,jx=!1,Ff=0,E4=0,xf=1/0,Sf=null,Ur=null,wt=0,Nr=null,rl=null,Gi=0,Ox=0,Ux=null,I4=null,Os=0,Nx=null;function In(){return(De&2)!==0&&$e!==0?$e&-$e:ce.T!==null?N1():BT()}function D4(){if(zn===0)if(($e&536870912)===0||Ce){var e=$d;$d<<=1,($d&3932160)===0&&($d=262144),zn=e}else zn=536870912;return e=An.current,e!==null&&(e.flags|=32),zn}function hn(e,t,n){(e===Ge&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(ol(e,0),Er(e,$e,zn,!1)),Qs(e,n),((De&2)===0||e!==Ge)&&(e===Ge&&((De&2)===0&&(vo|=n),mt===4&&Er(e,$e,zn,!1)),_i(e))}function A4(e,t,n){if((De&6)!==0)throw Error(I(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ws(e,t),i=r?sN(e,t):Hb(e,t,!0),o=r;do{if(i===0){fl&&!r&&Er(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!aN(n)){i=Hb(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var l=e;i=js;var s=l.current.memoizedState.isDehydrated;if(s&&(ol(l,a).flags|=256),a=Hb(l,a,!1),a!==2){if(j1&&!s){l.errorRecoveryDisabledLanes|=o,vo|=o,i=4;break e}o=mn,mn=i,o!==null&&(mn===null?mn=o:mn.push.apply(mn,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){ol(e,0),Er(e,t,0,!0);break}e:{switch(r=e,o=i,o){case 0:case 1:throw Error(I(345));case 4:if((t&4194048)!==t)break;case 6:Er(r,t,zn,!Cr);break e;case 2:mn=null;break;case 3:case 5:break;default:throw Error(I(329))}if((t&62914560)===t&&(i=Ff+300-Tn(),10<i)){if(Er(r,t,zn,!Cr),Af(r,0,!0)!==0)break e;Gi=t,r.timeoutHandle=W4(Xz.bind(null,r,n,mn,Sf,jx,t,zn,vo,il,Cr,o,"Throttled",-0,0),i);break e}Xz(r,n,mn,Sf,jx,t,zn,vo,il,Cr,o,null,-0,0)}}break}while(!0);_i(e)}function Xz(e,t,n,r,i,o,a,l,s,u,d,m,h,f){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fi},$4(t,o,m);var x=(o&62914560)===o?Ff-Tn():(o&4194048)===o?E4-Tn():0;if(x=PN(m,x),x!==null){Gi=o,e.cancelPendingCommit=x(Wz.bind(null,e,t,o,n,r,i,a,l,s,d,m,null,h,f)),Er(e,o,a,!u);return}}Wz(e,t,o,n,r,i,a,l,s)}function aN(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Dn(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Er(e,t,n,r){t&=~O1,t&=~vo,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-En(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&NT(e,n,t)}function Vf(){return(De&6)===0?(oc(0,!1),!1):!0}function U1(){if(we!==null){if(Be===0)var e=we.return;else e=we,Vi=Co=null,x1(e),Ya=null,Ps=0,e=we;for(;e!==null;)d4(e.alternate,e),e=e.return;we=null}}function ol(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,wN(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Gi=0,U1(),Ge=e,we=n=qi(e.current,null),$e=t,Be=0,_n=null,Cr=!1,fl=Ws(e,t),j1=!1,il=zn=O1=vo=Fr=mt=0,mn=js=null,jx=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-En(r),o=1<<i;t|=e[i],r&=~o}return Wi=t,Nf(),n}function j4(e,t){ye=null,ce.H=Vs,t===dl||t===Mf?(t=Cz(),Be=3):t===m1?(t=Cz(),Be=4):Be=t===E1?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_n=t,we===null&&(mt=1,yf(e,Gn(t,e.current)))}function O4(){var e=An.current;return e===null?!0:($e&4194048)===$e?Jn===null:($e&62914560)===$e||($e&536870912)!==0?e===Jn:!1}function U4(){var e=ce.H;return ce.H=Vs,e===null?Vs:e}function N4(){var e=ce.A;return ce.A=rN,e}function kf(){mt=4,Cr||($e&4194048)!==$e&&An.current!==null||(fl=!0),(Fr&134217727)===0&&(vo&134217727)===0||Ge===null||Er(Ge,$e,zn,!1)}function Hb(e,t,n){var r=De;De|=2;var i=U4(),o=N4();(Ge!==e||$e!==t)&&(Sf=null,ol(e,t)),t=!1;var a=mt;e:do try{if(Be!==0&&we!==null){var l=we,s=_n;switch(Be){case 8:U1(),a=6;break e;case 3:case 2:case 9:case 6:An.current===null&&(t=!0);var u=Be;if(Be=0,_n=null,Fa(e,l,s,u),n&&fl){a=0;break e}break;default:u=Be,Be=0,_n=null,Fa(e,l,s,u)}}lN(),a=mt;break}catch(d){j4(e,d)}while(!0);return t&&e.shellSuspendCounter++,Vi=Co=null,De=r,ce.H=i,ce.A=o,we===null&&(Ge=null,$e=0,Nf()),a}function lN(){for(;we!==null;)R4(we)}function sN(e,t){var n=De;De|=2;var r=U4(),i=N4();Ge!==e||$e!==t?(Sf=null,xf=Tn()+500,ol(e,t)):fl=Ws(e,t);e:do try{if(Be!==0&&we!==null){t=we;var o=_n;t:switch(Be){case 1:Be=0,_n=null,Fa(e,t,o,1);break;case 2:case 9:if(Tz(o)){Be=0,_n=null,Kz(t);break}t=function(){Be!==2&&Be!==9||Ge!==e||(Be=7),_i(e)},o.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Tz(o)?(Be=0,_n=null,Kz(t)):(Be=0,_n=null,Fa(e,t,o,7));break;case 5:var a=null;switch(we.tag){case 26:a=we.memoizedState;case 5:case 27:var l=we;if(a?i6(a):l.stateNode.complete){Be=0,_n=null;var s=l.sibling;if(s!==null)we=s;else{var u=l.return;u!==null?(we=u,qf(u)):we=null}break t}}Be=0,_n=null,Fa(e,t,o,5);break;case 6:Be=0,_n=null,Fa(e,t,o,6);break;case 8:U1(),mt=6;break e;default:throw Error(I(462))}}cN();break}catch(d){j4(e,d)}while(!0);return Vi=Co=null,ce.H=r,ce.A=i,De=n,we!==null?0:(Ge=null,$e=0,Nf(),mt)}function cN(){for(;we!==null&&!AO();)R4(we)}function R4(e){var t=u4(e.alternate,e,Wi);e.memoizedProps=e.pendingProps,t===null?qf(e):we=t}function Kz(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vz(n,t,t.pendingProps,t.type,void 0,$e);break;case 11:t=Vz(n,t,t.pendingProps,t.type.render,t.ref,$e);break;case 5:x1(t);default:d4(n,t),t=we=d2(t,Wi),t=u4(n,t,Wi)}e.memoizedProps=e.pendingProps,t===null?qf(e):we=t}function Fa(e,t,n,r){Vi=Co=null,x1(t),Ya=null,Ps=0;var i=t.return;try{if(KU(e,i,t,n,$e)){mt=1,yf(e,Gn(n,e.current)),we=null;return}}catch(o){if(i!==null)throw we=i,o;mt=1,yf(e,Gn(n,e.current)),we=null;return}t.flags&32768?(Ce||r===1?e=!0:fl||($e&536870912)!==0?e=!1:(Cr=e=!0,(r===2||r===9||r===3||r===6)&&(r=An.current,r!==null&&r.tag===13&&(r.flags|=16384))),M4(t,e)):qf(t)}function qf(e){var t=e;do{if((t.flags&32768)!==0){M4(t,Cr);return}e=t.return;var n=eN(t.alternate,t,Wi);if(n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);mt===0&&(mt=5)}function M4(e,t){do{var n=tN(e.alternate,e);if(n!==null){n.flags&=32767,we=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=n}while(e!==null);mt=6,we=null}function Wz(e,t,n,r,i,o,a,l,s){e.cancelPendingCommit=null;do Hf();while(wt!==0);if((De&6)!==0)throw Error(I(327));if(t!==null){if(t===e.current)throw Error(I(177));if(o=t.lanes|t.childLanes,o|=a1,PO(e,n,o,a,l,s),e===Ge&&(we=Ge=null,$e=0),rl=t,Nr=e,Gi=n,Ox=o,Ux=i,I4=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mN(af,function(){return F4(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=ce.T,ce.T=null,i=Ae.p,Ae.p=2,a=De,De|=4;try{nN(e,t,n)}finally{De=a,Ae.p=i,ce.T=r}}wt=1,B4(),Z4(),L4()}}function B4(){if(wt===1){wt=0;var e=Nr,t=rl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ce.T,ce.T=null;var r=Ae.p;Ae.p=2;var i=De;De|=4;try{k4(t,e);var o=Zx,a=i2(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(a!==l&&l&&l.ownerDocument&&n2(l.ownerDocument.documentElement,l)){if(s!==null&&o1(l)){var u=s.start,d=s.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var m=l.ownerDocument||document,h=m&&m.defaultView||window;if(h.getSelection){var f=h.getSelection(),x=l.textContent.length,k=Math.min(s.start,x),N=s.end===void 0?k:Math.min(s.end,x);!f.extend&&k>N&&(a=N,N=k,k=a);var g=xz(l,k),y=xz(l,N);if(g&&y&&(f.rangeCount!==1||f.anchorNode!==g.node||f.anchorOffset!==g.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var b=m.createRange();b.setStart(g.node,g.offset),f.removeAllRanges(),k>N?(f.addRange(b),f.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),f.addRange(b))}}}}for(m=[],f=l;f=f.parentNode;)f.nodeType===1&&m.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<m.length;l++){var v=m[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}If=!!Bx,Zx=Bx=null}finally{De=i,Ae.p=r,ce.T=n}}e.current=t,wt=2}}function Z4(){if(wt===2){wt=0;var e=Nr,t=rl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ce.T,ce.T=null;var r=Ae.p;Ae.p=2;var i=De;De|=4;try{y4(e,t.alternate,t)}finally{De=i,Ae.p=r,ce.T=n}}wt=3}}function L4(){if(wt===4||wt===3){wt=0,jO();var e=Nr,t=rl,n=Gi,r=I4;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,rl=Nr=null,P4(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ur=null),Wx(n),t=t.stateNode,Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(Ks,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ce.T,i=Ae.p,Ae.p=2,ce.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var l=r[a];o(l.value,{componentStack:l.stack})}}finally{ce.T=t,Ae.p=i}}(Gi&3)!==0&&Hf(),_i(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Nx?Os++:(Os=0,Nx=e):Os=0,oc(0,!1)}}function P4(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nc(t)))}function Hf(){return B4(),Z4(),L4(),F4()}function F4(){if(wt!==5)return!1;var e=Nr,t=Ox;Ox=0;var n=Wx(Gi),r=ce.T,i=Ae.p;try{Ae.p=32>n?32:n,ce.T=null,n=Ux,Ux=null;var o=Nr,a=Gi;if(wt=0,rl=Nr=null,Gi=0,(De&6)!==0)throw Error(I(331));var l=De;if(De|=4,T4(o.current),w4(o,o.current,a,n),De=l,oc(0,!1),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(Ks,o)}catch{}return!0}finally{Ae.p=i,ce.T=r,P4(e,t)}}function Qz(e,t,n){t=Gn(n,t),t=Ex(e.stateNode,t,2),e=Or(e,t,2),e!==null&&(Qs(e,2),_i(e))}function Ze(e,t,n){if(e.tag===3)Qz(e,e,n);else for(;t!==null;){if(t.tag===3){Qz(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ur===null||!Ur.has(r))){e=Gn(n,e),n=r4(2),r=Or(t,n,2),r!==null&&(o4(n,r,t,e),Qs(r,2),_i(r));break}}t=t.return}}function Gb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new oN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(j1=!0,i.add(n),e=uN.bind(null,e,t,n),t.then(e,e))}function uN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&($e&n)===n&&(mt===4||mt===3&&($e&62914560)===$e&&300>Tn()-Ff?(De&2)===0&&ol(e,0):O1|=n,il===$e&&(il=0)),_i(e)}function V4(e,t){t===0&&(t=UT()),e=To(e,t),e!==null&&(Qs(e,t),_i(e))}function dN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),V4(e,n)}function fN(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(I(314))}r!==null&&r.delete(t),V4(e,n)}function mN(e,t){return Xx(e,t)}var _f=null,Da=null,Rx=!1,wf=!1,Yb=!1,Ir=0;function _i(e){e!==Da&&e.next===null&&(Da===null?_f=Da=e:Da=Da.next=e),wf=!0,Rx||(Rx=!0,pN())}function oc(e,t){if(!Yb&&wf){Yb=!0;do for(var n=!1,r=_f;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-En(42|e)+1)-1,o&=i&~(a&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,eT(r,o))}else o=$e,o=Af(r,r===Ge?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||Ws(r,o)||(n=!0,eT(r,o));r=r.next}while(n);Yb=!1}}function hN(){q4()}function q4(){wf=Rx=!1;var e=0;Ir!==0&&_N()&&(e=Ir);for(var t=Tn(),n=null,r=_f;r!==null;){var i=r.next,o=H4(r,t);o===0?(r.next=null,n===null?_f=i:n.next=i,i===null&&(Da=n)):(n=r,(e!==0||(o&3)!==0)&&(wf=!0)),r=i}wt!==0&&wt!==5||oc(e,!1),Ir!==0&&(Ir=0)}function H4(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-En(o),l=1<<a,s=i[a];s===-1?((l&n)===0||(l&r)!==0)&&(i[a]=LO(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(t=Ge,n=$e,n=Af(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&_b(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ws(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&_b(r),Wx(n)){case 2:case 8:n=jT;break;case 32:n=af;break;case 268435456:n=OT;break;default:n=af}return r=G4.bind(null,e),n=Xx(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&_b(r),e.callbackPriority=2,e.callbackNode=null,2}function G4(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hf()&&e.callbackNode!==n)return null;var r=$e;return r=Af(e,e===Ge?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(A4(e,r,t),H4(e,Tn()),e.callbackNode!=null&&e.callbackNode===n?G4.bind(null,e):null)}function eT(e,t){if(Hf())return null;A4(e,t,!0)}function pN(){$N(function(){(De&6)!==0?Xx(AT,hN):q4()})}function N1(){if(Ir===0){var e=el;e===0&&(e=wd,wd<<=1,(wd&261888)===0&&(wd=256)),Ir=e}return Ir}function tT(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pd(""+e)}function nT(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gN(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=tT((i[pn]||null).action),a=r.submitter;a&&(t=(t=a[pn]||null)?tT(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var l=new jf("action","action",null,r,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ir!==0){var s=a?nT(i,a):new FormData(i);Tx(n,{pending:!0,data:s,method:i.method,action:o},null,s)}}else typeof o=="function"&&(l.preventDefault(),s=a?nT(i,a):new FormData(i),Tx(n,{pending:!0,data:s,method:i.method,action:o},o,s))},currentTarget:i}]})}}for(Nd=0;Nd<px.length;Nd++)Rd=px[Nd],iT=Rd.toLowerCase(),rT=Rd[0].toUpperCase()+Rd.slice(1),ii(iT,"on"+rT);var Rd,iT,rT,Nd;ii(o2,"onAnimationEnd");ii(a2,"onAnimationIteration");ii(l2,"onAnimationStart");ii("dblclick","onDoubleClick");ii("focusin","onFocus");ii("focusout","onBlur");ii(OU,"onTransitionRun");ii(UU,"onTransitionStart");ii(NU,"onTransitionCancel");ii(s2,"onTransitionEnd");Wa("onMouseEnter",["mouseout","mouseover"]);Wa("onMouseLeave",["mouseout","mouseover"]);Wa("onPointerEnter",["pointerout","pointerover"]);Wa("onPointerLeave",["pointerout","pointerover"]);wo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wo("onBeforeInput",["compositionend","keypress","textInput","paste"]);wo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qs="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(" "),yN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qs));function Y4(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){sf(d)}i.currentTarget=null,o=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){sf(d)}i.currentTarget=null,o=s}}}}function _e(e,t){var n=t[lx];n===void 0&&(n=t[lx]=new Set);var r=e+"__bubble";n.has(r)||(J4(t,e,2,!1),n.add(r))}function Jb(e,t,n){var r=0;t&&(r|=4),J4(n,e,r,t)}var Md="_reactListening"+Math.random().toString(36).slice(2);function R1(e){if(!e[Md]){e[Md]=!0,ZT.forEach(function(n){n!=="selectionchange"&&(yN.has(n)||Jb(n,!1,e),Jb(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Md]||(t[Md]=!0,Jb("selectionchange",!1,t))}}function J4(e,t,n,r){switch(s6(t)){case 2:var i=qN;break;case 8:i=HN;break;default:i=L1}n=i.bind(null,t,n,e),i=void 0,!fx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Xb(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;l!==null;){if(a=Oa(l),a===null)return;if(s=a.tag,s===5||s===6||s===26||s===27){r=o=a;continue e}l=l.parentNode}}r=r.return}YT(function(){var u=o,d=t1(n),m=[];e:{var h=c2.get(e);if(h!==void 0){var f=jf,x=e;switch(e){case"keypress":if(Vd(n)===0)break e;case"keydown":case"keyup":f=fU;break;case"focusin":x="focus",f=Cb;break;case"focusout":x="blur",f=Cb;break;case"beforeblur":case"afterblur":f=Cb;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=dz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=eU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=pU;break;case o2:case a2:case l2:f=iU;break;case s2:f=yU;break;case"scroll":case"scrollend":f=WO;break;case"wheel":f=bU;break;case"copy":case"cut":case"paste":f=oU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=mz;break;case"toggle":case"beforetoggle":f=SU}var k=(t&4)!==0,N=!k&&(e==="scroll"||e==="scrollend"),g=k?h!==null?h+"Capture":null:h;k=[];for(var y=u,b;y!==null;){var v=y;if(b=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||b===null||g===null||(v=Rs(y,g),v!=null&&k.push(Hs(y,v,b))),N)break;y=y.return}0<k.length&&(h=new f(h,x,null,n,d),m.push({event:h,listeners:k}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==dx&&(x=n.relatedTarget||n.fromElement)&&(Oa(x)||x[sl]))break e;if((f||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=u,x=x?Oa(x):null,x!==null&&(N=Xs(x),k=x.tag,x!==N||k!==5&&k!==27&&k!==6)&&(x=null)):(f=null,x=u),f!==x)){if(k=dz,v="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(k=mz,v="onPointerLeave",g="onPointerEnter",y="pointer"),N=f==null?h:xs(f),b=x==null?h:xs(x),h=new k(v,y+"leave",f,n,d),h.target=N,h.relatedTarget=b,v=null,Oa(d)===u&&(k=new k(g,y+"enter",x,n,d),k.target=b,k.relatedTarget=N,v=k),N=v,f&&x)t:{for(k=vN,g=f,y=x,b=0,v=g;v;v=k(v))b++;v=0;for(var A=y;A;A=k(A))v++;for(;0<b-v;)g=k(g),b--;for(;0<v-b;)y=k(y),v--;for(;b--;){if(g===y||y!==null&&g===y.alternate){k=g;break t}g=k(g),y=k(y)}k=null}else k=null;f!==null&&oT(m,h,f,k,!1),x!==null&&N!==null&&oT(m,N,x,k,!0)}}e:{if(h=u?xs(u):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var ee=yz;else if(gz(h))if(e2)ee=DU;else{ee=EU;var B=CU}else f=h.nodeName,!f||f.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&e1(u.elementType)&&(ee=yz):ee=IU;if(ee&&(ee=ee(e,u))){QT(m,ee,n,d);break e}B&&B(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&ux(h,"number",h.value)}switch(B=u?xs(u):window,e){case"focusin":(gz(B)||B.contentEditable==="true")&&(Ra=B,mx=u,$s=null);break;case"focusout":$s=mx=Ra=null;break;case"mousedown":hx=!0;break;case"contextmenu":case"mouseup":case"dragend":hx=!1,Sz(m,n,d);break;case"selectionchange":if(jU)break;case"keydown":case"keyup":Sz(m,n,d)}var T;if(r1)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Na?KT(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(XT&&n.locale!=="ko"&&(Na||V!=="onCompositionStart"?V==="onCompositionEnd"&&Na&&(T=JT()):(Tr=d,n1="value"in Tr?Tr.value:Tr.textContent,Na=!0)),B=$f(u,V),0<B.length&&(V=new fz(V,e,null,n,d),m.push({event:V,listeners:B}),T?V.data=T:(T=WT(n),T!==null&&(V.data=T)))),(T=_U?wU(e,n):$U(e,n))&&(V=$f(u,"onBeforeInput"),0<V.length&&(B=new fz("onBeforeInput","beforeinput",null,n,d),m.push({event:B,listeners:V}),B.data=T)),gN(m,e,u,n,d)}Y4(m,t)})}function Hs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $f(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Rs(e,n),i!=null&&r.unshift(Hs(e,i,o)),i=Rs(e,t),i!=null&&r.push(Hs(e,i,o))),e.tag===3)return r;e=e.return}return[]}function vN(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function oT(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===r)break;l!==5&&l!==26&&l!==27||u===null||(s=u,i?(u=Rs(n,o),u!=null&&a.unshift(Hs(n,u,s))):i||(u=Rs(n,o),u!=null&&a.push(Hs(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var bN=/\r\n?/g,xN=/\u0000|\uFFFD/g;function aT(e){return(typeof e=="string"?e:""+e).replace(bN,`
9
+ `).replace(xN,"")}function X4(e,t){return t=aT(t),aT(e)===t}function Fe(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Qa(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Qa(e,""+r);break;case"className":Td(e,"class",r);break;case"tabIndex":Td(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Td(e,n,r);break;case"style":GT(e,r,o);break;case"data":if(t!=="object"){Td(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Pd(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Fe(e,t,"name",i.name,i,null),Fe(e,t,"formEncType",i.formEncType,i,null),Fe(e,t,"formMethod",i.formMethod,i,null),Fe(e,t,"formTarget",i.formTarget,i,null)):(Fe(e,t,"encType",i.encType,i,null),Fe(e,t,"method",i.method,i,null),Fe(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Pd(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Fi);break;case"onScroll":r!=null&&_e("scroll",e);break;case"onScrollEnd":r!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Pd(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Ld(e,"popover",r);break;case"xlinkActuate":Ui(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Ui(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Ui(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Ui(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Ui(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Ui(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Ui(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Ui(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Ui(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Ld(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=XO.get(n)||n,Ld(e,n,r))}}function Mx(e,t,n,r,i,o){switch(n){case"style":GT(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Qa(e,r):(typeof r=="number"||typeof r=="bigint")&&Qa(e,""+r);break;case"onScroll":r!=null&&_e("scroll",e);break;case"onScrollEnd":r!=null&&_e("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Fi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!LT.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[pn]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Ld(e,n,r)}}}function Zt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:Fe(e,t,o,a,n,null)}}i&&Fe(e,t,"srcSet",n.srcSet,n,null),r&&Fe(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var l=o=a=i=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":i=d;break;case"type":a=d;break;case"checked":s=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(I(137,t));break;default:Fe(e,t,r,d,n,null)}}VT(e,o,l,s,u,a,i,!1);return;case"select":_e("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":r=l;default:Fe(e,t,i,l,n,null)}t=o,n=a,e.multiple=!!r,t!=null?qa(e,!!r,t,!1):n!=null&&qa(e,!!r,n,!0);return;case"textarea":_e("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":r=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(I(91));break;default:Fe(e,t,a,l,n,null)}HT(e,r,i,o);return;case"option":for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null)&&(s==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Fe(e,t,s,r,n,null));return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(r=0;r<qs.length;r++)_e(qs[r],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:Fe(e,t,u,r,n,null)}return;default:if(e1(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Mx(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Fe(e,t,l,r,n,null))}function SN(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,l=null,s=null,u=null,d=null;for(f in n){var m=n[f];if(n.hasOwnProperty(f)&&m!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":s=m;default:r.hasOwnProperty(f)||Fe(e,t,f,null,r,m)}}for(var h in r){var f=r[h];if(m=n[h],r.hasOwnProperty(h)&&(f!=null||m!=null))switch(h){case"type":o=f;break;case"name":i=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(I(137,t));break;default:f!==m&&Fe(e,t,h,f,r,m)}}cx(e,a,l,s,u,d,o,i);return;case"select":f=a=l=h=null;for(o in n)if(s=n[o],n.hasOwnProperty(o)&&s!=null)switch(o){case"value":break;case"multiple":f=s;default:r.hasOwnProperty(o)||Fe(e,t,o,null,r,s)}for(i in r)if(o=r[i],s=n[i],r.hasOwnProperty(i)&&(o!=null||s!=null))switch(i){case"value":h=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==s&&Fe(e,t,i,o,r,s)}t=l,n=a,r=f,h!=null?qa(e,!!n,h,!1):!!r!=!!n&&(t!=null?qa(e,!!n,t,!0):qa(e,!!n,n?[]:"",!1));return;case"textarea":f=h=null;for(l in n)if(i=n[l],n.hasOwnProperty(l)&&i!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Fe(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":h=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(I(91));break;default:i!==o&&Fe(e,t,a,i,r,o)}qT(e,h,f);return;case"option":for(var x in n)h=n[x],n.hasOwnProperty(x)&&h!=null&&!r.hasOwnProperty(x)&&(x==="selected"?e.selected=!1:Fe(e,t,x,null,r,h));for(s in r)h=r[s],f=n[s],r.hasOwnProperty(s)&&h!==f&&(h!=null||f!=null)&&(s==="selected"?e.selected=h&&typeof h!="function"&&typeof h!="symbol":Fe(e,t,s,h,r,f));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var k in n)h=n[k],n.hasOwnProperty(k)&&h!=null&&!r.hasOwnProperty(k)&&Fe(e,t,k,null,r,h);for(u in r)if(h=r[u],f=n[u],r.hasOwnProperty(u)&&h!==f&&(h!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(I(137,t));break;default:Fe(e,t,u,h,r,f)}return;default:if(e1(t)){for(var N in n)h=n[N],n.hasOwnProperty(N)&&h!==void 0&&!r.hasOwnProperty(N)&&Mx(e,t,N,void 0,r,h);for(d in r)h=r[d],f=n[d],!r.hasOwnProperty(d)||h===f||h===void 0&&f===void 0||Mx(e,t,d,h,r,f);return}}for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!=null&&!r.hasOwnProperty(g)&&Fe(e,t,g,null,r,h);for(m in r)h=r[m],f=n[m],!r.hasOwnProperty(m)||h===f||h==null&&f==null||Fe(e,t,m,h,r,f)}function lT(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kN(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,l=i.duration;if(o&&l&&lT(a)){for(a=0,l=i.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>l)break;var d=s.transferSize,m=s.initiatorType;d&&lT(m)&&(s=s.responseEnd,a+=d*(s<l?1:(l-u)/(s-u)))}if(--r,t+=8*(o+a)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Bx=null,Zx=null;function zf(e){return e.nodeType===9?e:e.ownerDocument}function sT(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function K4(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Lx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kb=null;function _N(){var e=window.event;return e&&e.type==="popstate"?e===Kb?!1:(Kb=e,!0):(Kb=null,!1)}var W4=typeof setTimeout=="function"?setTimeout:void 0,wN=typeof clearTimeout=="function"?clearTimeout:void 0,cT=typeof Promise=="function"?Promise:void 0,$N=typeof queueMicrotask=="function"?queueMicrotask:typeof cT<"u"?function(e){return cT.resolve(null).then(e).catch(zN)}:W4;function zN(e){setTimeout(function(){throw e})}function qr(e){return e==="head"}function uT(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(i),ll(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")Us(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Us(n);for(var o=n.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[ec]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&Us(e.ownerDocument.body);n=i}while(n);ll(t)}function dT(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function Px(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Px(n),Qx(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function TN(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ec])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Xn(e.nextSibling),e===null)break}return null}function CN(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xn(e.nextSibling),e===null))return null;return e}function Q4(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xn(e.nextSibling),e===null))return null;return e}function Fx(e){return e.data==="$?"||e.data==="$~"}function Vx(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function EN(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Xn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var qx=null;function fT(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function e6(e,t,n){switch(t=zf(n),e){case"html":if(e=t.documentElement,!e)throw Error(I(452));return e;case"head":if(e=t.head,!e)throw Error(I(453));return e;case"body":if(e=t.body,!e)throw Error(I(454));return e;default:throw Error(I(451))}}function Us(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qx(e)}var Kn=new Map,hT=new Set;function Tf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qi=Ae.d;Ae.d={f:IN,r:DN,D:AN,C:jN,L:ON,m:UN,X:RN,S:NN,M:MN};function IN(){var e=Qi.f(),t=Vf();return e||t}function DN(e){var t=cl(e);t!==null&&t.tag===5&&t.type==="form"?G2(t):Qi.r(e)}var ml=typeof document>"u"?null:document;function t6(e,t,n){var r=ml;if(r&&typeof t=="string"&&t){var i=Hn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),hT.has(i)||(hT.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Zt(t,"link",e),Et(t),r.head.appendChild(t)))}}function AN(e){Qi.D(e),t6("dns-prefetch",e,null)}function jN(e,t){Qi.C(e,t),t6("preconnect",e,t)}function ON(e,t,n){Qi.L(e,t,n);var r=ml;if(r&&e&&t){var i='link[rel="preload"][as="'+Hn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Hn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Hn(n.imageSizes)+'"]')):i+='[href="'+Hn(e)+'"]';var o=i;switch(t){case"style":o=al(e);break;case"script":o=hl(e)}Kn.has(o)||(e=rt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kn.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(ac(o))||t==="script"&&r.querySelector(lc(o))||(t=r.createElement("link"),Zt(t,"link",e),Et(t),r.head.appendChild(t)))}}function UN(e,t){Qi.m(e,t);var n=ml;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Hn(r)+'"][href="'+Hn(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=hl(e)}if(!Kn.has(o)&&(e=rt({rel:"modulepreload",href:e},t),Kn.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(lc(o)))return}r=n.createElement("link"),Zt(r,"link",e),Et(r),n.head.appendChild(r)}}}function NN(e,t,n){Qi.S(e,t,n);var r=ml;if(r&&e){var i=Va(r).hoistableStyles,o=al(e);t=t||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(ac(o)))l.loading=5;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kn.get(o))&&M1(e,n);var s=a=r.createElement("link");Et(s),Zt(s,"link",e),s._p=new Promise(function(u,d){s.onload=u,s.onerror=d}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Wd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:l},i.set(o,a)}}}function RN(e,t){Qi.X(e,t);var n=ml;if(n&&e){var r=Va(n).hoistableScripts,i=hl(e),o=r.get(i);o||(o=n.querySelector(lc(i)),o||(e=rt({src:e,async:!0},t),(t=Kn.get(i))&&B1(e,t),o=n.createElement("script"),Et(o),Zt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function MN(e,t){Qi.M(e,t);var n=ml;if(n&&e){var r=Va(n).hoistableScripts,i=hl(e),o=r.get(i);o||(o=n.querySelector(lc(i)),o||(e=rt({src:e,async:!0,type:"module"},t),(t=Kn.get(i))&&B1(e,t),o=n.createElement("script"),Et(o),Zt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function pT(e,t,n,r){var i=(i=Dr.current)?Tf(i):null;if(!i)throw Error(I(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=al(n.href),n=Va(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=al(n.href);var o=Va(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(ac(e)))&&!o._p&&(a.instance=o,a.state.loading=5),Kn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Kn.set(e,n),o||BN(i,e,n,a.state))),t&&r===null)throw Error(I(528,""));return a}if(t&&r!==null)throw Error(I(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hl(n),n=Va(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,e))}}function al(e){return'href="'+Hn(e)+'"'}function ac(e){return'link[rel="stylesheet"]['+e+"]"}function n6(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function BN(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Zt(t,"link",n),Et(t),e.head.appendChild(t))}function hl(e){return'[src="'+Hn(e)+'"]'}function lc(e){return"script[async]"+e}function gT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Hn(n.href)+'"]');if(r)return t.instance=r,Et(r),r;var i=rt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Et(r),Zt(r,"style",i),Wd(r,n.precedence,e),t.instance=r;case"stylesheet":i=al(n.href);var o=e.querySelector(ac(i));if(o)return t.state.loading|=4,t.instance=o,Et(o),o;r=n6(n),(i=Kn.get(i))&&M1(r,i),o=(e.ownerDocument||e).createElement("link"),Et(o);var a=o;return a._p=new Promise(function(l,s){a.onload=l,a.onerror=s}),Zt(o,"link",r),t.state.loading|=4,Wd(o,n.precedence,e),t.instance=o;case"script":return o=hl(n.src),(i=e.querySelector(lc(o)))?(t.instance=i,Et(i),i):(r=n,(i=Kn.get(o))&&(r=rt({},n),B1(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Et(i),Zt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(I(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Wd(r,n.precedence,e));return t.instance}function Wd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function M1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function B1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Qd=null;function yT(e,t,n){if(Qd===null){var r=new Map,i=Qd=new Map;i.set(n,r)}else i=Qd,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[ec]||o[Rt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var l=r.get(a);l?l.push(o):r.set(a,[o])}}return r}function vT(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ZN(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function i6(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function LN(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=al(r.href),o=t.querySelector(ac(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Et(o);return}o=t.ownerDocument||t,r=n6(r),(i=Kn.get(i))&&M1(r,i),o=o.createElement("link"),Et(o);var a=o;a._p=new Promise(function(l,s){a.onload=l,a.onerror=s}),Zt(o,"link",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Cf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wb=0;function PN(e,t){return e.stylesheets&&e.count===0&&ef(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ef(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Wb===0&&(Wb=62500*kN());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ef(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Wb?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Cf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ef(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ef=null;function ef(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ef=new Map,t.forEach(FN,e),Ef=null,Cf.call(e))}function FN(e,t){if(!(t.state.loading&4)){var n=Ef.get(e);if(n)var r=n.get(null);else{n=new Map,Ef.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=Cf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Gs={$$typeof:Pi,Provider:null,Consumer:null,_currentValue:ho,_currentValue2:ho,_threadCount:0};function VN(e,t,n,r,i,o,a,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wb(0),this.hiddenUpdates=wb(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function r6(e,t,n,r,i,o,a,l,s,u,d,m){return e=new VN(e,t,n,a,s,u,d,m,l),t=1,o===!0&&(t|=24),o=$n(3,null,null,t),e.current=o,o.stateNode=e,t=d1(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},h1(o),e}function o6(e){return e?(e=Za,e):Za}function a6(e,t,n,r,i,o){i=o6(i),r.context===null?r.context=i:r.pendingContext=i,r=jr(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=Or(e,r,t),n!==null&&(hn(n,e,t),Ts(n,e,t))}function bT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Z1(e,t){bT(e,t),(e=e.alternate)&&bT(e,t)}function l6(e){if(e.tag===13||e.tag===31){var t=To(e,67108864);t!==null&&hn(t,e,67108864),Z1(e,67108864)}}function xT(e){if(e.tag===13||e.tag===31){var t=In();t=Kx(t);var n=To(e,t);n!==null&&hn(n,e,t),Z1(e,t)}}var If=!0;function qN(e,t,n,r){var i=ce.T;ce.T=null;var o=Ae.p;try{Ae.p=2,L1(e,t,n,r)}finally{Ae.p=o,ce.T=i}}function HN(e,t,n,r){var i=ce.T;ce.T=null;var o=Ae.p;try{Ae.p=8,L1(e,t,n,r)}finally{Ae.p=o,ce.T=i}}function L1(e,t,n,r){if(If){var i=Hx(r);if(i===null)Xb(e,t,r,Df,n),ST(e,r);else if(YN(i,e,t,n,r))r.stopPropagation();else if(ST(e,r),t&4&&-1<GN.indexOf(e)){for(;i!==null;){var o=cl(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=uo(o.pendingLanes);if(a!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var s=1<<31-En(a);l.entanglements[1]|=s,a&=~s}_i(o),(De&6)===0&&(xf=Tn()+500,oc(0,!1))}}break;case 31:case 13:l=To(o,2),l!==null&&hn(l,o,2),Vf(),Z1(o,2)}if(o=Hx(r),o===null&&Xb(e,t,r,Df,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Xb(e,t,r,null,n)}}function Hx(e){return e=t1(e),P1(e)}var Df=null;function P1(e){if(Df=null,e=Oa(e),e!==null){var t=Xs(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=TT(t),e!==null)return e;e=null}else if(n===31){if(e=CT(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Df=e,null}function s6(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(OO()){case AT:return 2;case jT:return 8;case af:case UO:return 32;case OT:return 268435456;default:return 32}default:return 32}}var Gx=!1,Rr=null,Mr=null,Br=null,Ys=new Map,Js=new Map,$r=[],GN="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 ST(e,t){switch(e){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Mr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":Ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(t.pointerId)}}function gs(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=cl(t),t!==null&&l6(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function YN(e,t,n,r,i){switch(t){case"focusin":return Rr=gs(Rr,e,t,n,r,i),!0;case"dragenter":return Mr=gs(Mr,e,t,n,r,i),!0;case"mouseover":return Br=gs(Br,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ys.set(o,gs(Ys.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Js.set(o,gs(Js.get(o)||null,e,t,n,r,i)),!0}return!1}function c6(e){var t=Oa(e.target);if(t!==null){var n=Xs(t);if(n!==null){if(t=n.tag,t===13){if(t=TT(n),t!==null){e.blockedOn=t,rz(e.priority,function(){xT(n)});return}}else if(t===31){if(t=CT(n),t!==null){e.blockedOn=t,rz(e.priority,function(){xT(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hx(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dx=r,n.target.dispatchEvent(r),dx=null}else return t=cl(n),t!==null&&l6(t),e.blockedOn=n,!1;t.shift()}return!0}function kT(e,t,n){tf(e)&&n.delete(t)}function JN(){Gx=!1,Rr!==null&&tf(Rr)&&(Rr=null),Mr!==null&&tf(Mr)&&(Mr=null),Br!==null&&tf(Br)&&(Br=null),Ys.forEach(kT),Js.forEach(kT)}function Bd(e,t){e.blockedOn===t&&(e.blockedOn=null,Gx||(Gx=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,JN)))}var Zd=null;function _T(e){Zd!==e&&(Zd=e,$t.unstable_scheduleCallback($t.unstable_NormalPriority,function(){Zd===e&&(Zd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(P1(r||n)===null)continue;break}var o=cl(n);o!==null&&(e.splice(t,3),t-=3,Tx(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function ll(e){function t(s){return Bd(s,e)}Rr!==null&&Bd(Rr,e),Mr!==null&&Bd(Mr,e),Br!==null&&Bd(Br,e),Ys.forEach(t),Js.forEach(t);for(var n=0;n<$r.length;n++){var r=$r[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<$r.length&&(n=$r[0],n.blockedOn===null);)c6(n),n.blockedOn===null&&$r.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[pn]||null;if(typeof o=="function")a||_T(n);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[pn]||null)l=a.formAction;else if(P1(i)!==null)continue}else l=a.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),_T(n)}}}function u6(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function F1(e){this._internalRoot=e}Gf.prototype.render=F1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));var n=t.current,r=In();a6(n,r,e,t,null,null)};Gf.prototype.unmount=F1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;a6(e.current,2,null,e,null,null),Vf(),t[sl]=null}};function Gf(e){this._internalRoot=e}Gf.prototype.unstable_scheduleHydration=function(e){if(e){var t=BT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$r.length&&t!==0&&t<$r[n].priority;n++);$r.splice(n,0,e),n===0&&c6(e)}};var wT=$T.version;if(wT!=="19.2.8")throw Error(I(527,wT,"19.2.8"));Ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=TO(t),e=e!==null?ET(e):null,e=e===null?null:e.stateNode,e};var XN={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:ce,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ys=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ys.isDisabled&&ys.supportsFiber))try{Ks=ys.inject(XN),Cn=ys}catch{}var ys;Yf.createRoot=function(e,t){if(!zT(e))throw Error(I(299));var n=!1,r="",i=t4,o=n4,a=i4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=r6(e,1,!1,null,null,n,r,null,i,o,a,u6),e[sl]=t.current,R1(e),new F1(t)};Yf.hydrateRoot=function(e,t,n){if(!zT(e))throw Error(I(299));var r=!1,i="",o=t4,a=n4,l=i4,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=r6(e,1,!0,t,n??null,r,i,s,o,a,l,u6),t.context=o6(null),n=t.current,r=In(),r=Kx(r),i=jr(r),i.callback=null,Or(n,i,r),n=r,t.current.lanes=n,Qs(t,n),_i(t),e[sl]=t.current,R1(e),new Gf(t)};Yf.version="19.2.8"});var h6=oi((cP,m6)=>{"use strict";function f6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f6)}catch(e){console.error(e)}}f6(),m6.exports=d6()});var Ue=M(oe(),1);var mc={id:"code",name:"Code",description:"Full access: read, edit, run commands, and use MCP tools.",groups:["read","edit","command","mcp","always"]},DS={id:"ask",name:"Ask",description:"Read-only: inspect the workspace and answer questions. Cannot edit or run commands.",groups:["read","mcp","always"]},LE={id:"junior",name:"Junior",description:"A cheap model does the work and consults Claude for the plan. Requires the expert.",groups:["read","edit","command","mcp","always"],requiresExpert:!0,guidance:["# Junior mode","","You are the junior on this task. A stronger model (Claude) is available through","`ask_expert` and is the one that decides *what* to do; you decide *how* and carry it out.","You are the hands: reading, searching, editing, running commands, checking results.","","## The first consultation is expensive; the rest are cheap","","Consultations in one task continue **one conversation**. The first pays to establish it","and costs roughly twenty times a follow-up; every one after that is cheap and the expert","still remembers everything you have told it.","","Two things follow, and they matter more than any other instruction here:","","1. **Make the first consultation count.** Gather what is needed first and ask one full,",' well-formed question. Do not open with "hello" or a question you could answer yourself \u2014'," you are paying the setup cost either way, so spend it on something real.","2. **Never repeat yourself afterwards.** The expert remembers the code you pasted, the plan",' it gave you and what you have tried. A follow-up is "step 3 failed with this error",'," not the whole story again. Re-explaining throws away the entire saving.","","## Consulting is the default, not the exception","","On any request that is not trivial, **your first action is `ask_expert`** \u2014 before you plan,","before you edit, before you decide the task is straightforward. Do not wait to be told. If",'the user has to say "ask the expert", this mode has failed and is costing them the price of',"a worse model for no benefit.","","A request is **not** trivial, and you must consult, if any of these is true:","","- it touches more than one file, or a file you have not read in this session;","- it asks you to design, refactor, choose an approach, or decide between options;","- it involves code you did not write in this conversation;","- you would have to guess at how something works to proceed;","- your first attempt failed, or a test or command reported an error;",'- you are about to say "I think" or "probably" about anything load-bearing.',"","When in doubt, consult. A consultation costs cents. Confidently doing the wrong thing costs","the user their afternoon.","","Ask for a concrete plan, the files involved, and the traps to avoid \u2014 **broken into","checkpoints**, as described below.","","**Genuinely trivial requests you simply do:** fixing a typo you can see, answering a","question about a file you have already read, running a command the user named. Asking about","those would waste the user\u2019s money on something you already know.","","## Checkpoints: implement, review, continue","","For anything larger than a single edit, ask the expert to split the plan into **checkpoints**.","Then work the loop: implement one checkpoint, go back to the expert with what you actually","did, take its feedback, and move to the next. Keep going until the work is complete.","","**This is a cost measure, not a quality ritual, and the distinction decides how you use it.**","The expensive failure in this arrangement is not a consultation \u2014 it is you building the","wrong thing for twenty turns and then needing the whole approach redone. A review after each","checkpoint costs about as much as one cheap follow-up and caps how far a wrong direction can","run before someone notices. It only pays if you keep it cheap:","","- **A checkpoint is a unit worth reviewing** \u2014 a coherent, working slice, typically a few"," related edits. If a checkpoint is one line, the review costs more than the mistake it"," could catch: fold it into the next one. If it is the entire feature, it is not a"," checkpoint and defeats the point.",'- **Report the delta, never the context.** "Checkpoint 2 done: added `retryWithBackoff` in'," `http.ts`, wired it into `send()`, tests pass. Deviated from the plan by keeping the old",' signature, because three callers depend on it." The expert has the plan and remembers the',"code \u2014 it can open anything it wants to see for itself.","- **Say what surprised you.** The parts worth a review are the deviations, the things that"," did not match the plan, and anything you were unsure about. A checkpoint that went exactly"," as planned needs a sentence, not a report.","- **Skip the review** when a checkpoint was mechanical and everything passed. Say so at the"," next one instead. Two checkpoints in one review is cheaper than two reviews.",'- **Run the tests before you report.** "Tests pass" is worth far more to the reviewer than a'," description of the code, and finding it yourself is free where the expert finding it is not.","","If a budget is set the expert stops being available once it is reached, and you finish the","work alone. Spend the consultations you have on the checkpoints that carry the most risk.","","**Also consult again when:**","- the same step has failed twice and you do not understand why;","- the code contradicts the plan, so following it would be wrong;","- something is ambiguous in a way that changes *what* should be built, not merely how.","","## Gather the context before you ask","","The expert can open files itself, but doing so costs the user far more than it costs you.","So before consulting: find the relevant code, read it, and **include the actual code in","your question** along with what you have already tried and what happened.","","## You are its hands for tools, too","","The expert cannot call any of your tools \u2014 no MCP tool, no Python tool, no searching the","documentation index. It is told what you have, by name, but not the exact parameters. So","if it asks you to look up a tool\u2019s arguments or read a skill, do it and report back in the","same conversation; that round trip is cheap and stops it guessing a signature.","","## Carrying out the plan","","Follow it, but you are not a transcription service. The expert never ran anything and may","be wrong about the real code. If a step does not match what you find, say so and adapt \u2014","and if the mismatch is fundamental, that is one of the reasons to consult again.","","Tell the user which checkpoint you are on and what the expert said about the last one, so","they can see what they paid for and stop you if the direction is wrong. They are the only","reviewer whose approval actually gates anything."].join(`
10
+ `)},hc=[mc,DS,LE],lm=mc.id;function sm(e){return hc.find(t=>t.id===e)??mc}var z={};$i(z,{$brand:()=>um,$input:()=>Dp,$output:()=>Ip,NEVER:()=>cm,TimePrecision:()=>Up,ZodAny:()=>wy,ZodArray:()=>Cy,ZodBase64:()=>Lu,ZodBase64URL:()=>Pu,ZodBigInt:()=>aa,ZodBigIntFormat:()=>qu,ZodBoolean:()=>oa,ZodCIDRv4:()=>Bu,ZodCIDRv6:()=>Zu,ZodCUID:()=>Au,ZodCUID2:()=>ju,ZodCatch:()=>Xy,ZodCodec:()=>Jl,ZodCustom:()=>Xl,ZodCustomStringFormat:()=>ia,ZodDate:()=>Vl,ZodDefault:()=>Vy,ZodDiscriminatedUnion:()=>Iy,ZodE164:()=>Fu,ZodEmail:()=>Eu,ZodEmoji:()=>Iu,ZodEnum:()=>ta,ZodError:()=>vA,ZodExactOptional:()=>Ly,ZodFile:()=>By,ZodFirstPartyTypeKind:()=>cv,ZodFunction:()=>av,ZodGUID:()=>Bl,ZodIPv4:()=>Ru,ZodIPv6:()=>Mu,ZodISODate:()=>_u,ZodISODateTime:()=>ku,ZodISODuration:()=>$u,ZodISOTime:()=>wu,ZodIntersection:()=>Dy,ZodIssueCode:()=>xA,ZodJWT:()=>Vu,ZodKSUID:()=>Nu,ZodLazy:()=>iv,ZodLiteral:()=>My,ZodMAC:()=>yy,ZodMap:()=>Ny,ZodNaN:()=>Wy,ZodNanoID:()=>Du,ZodNever:()=>zy,ZodNonOptional:()=>Ku,ZodNull:()=>ky,ZodNullable:()=>Fy,ZodNumber:()=>ra,ZodNumberFormat:()=>no,ZodObject:()=>Hl,ZodOptional:()=>Xu,ZodPipe:()=>Yl,ZodPrefault:()=>Hy,ZodPreprocess:()=>Qy,ZodPromise:()=>ov,ZodReadonly:()=>ev,ZodRealError:()=>an,ZodRecord:()=>ea,ZodSet:()=>Ry,ZodString:()=>na,ZodStringFormat:()=>Pe,ZodSuccess:()=>Jy,ZodSymbol:()=>xy,ZodTemplateLiteral:()=>nv,ZodTransform:()=>Zy,ZodTuple:()=>jy,ZodType:()=>ge,ZodULID:()=>Ou,ZodURL:()=>Fl,ZodUUID:()=>ci,ZodUndefined:()=>Sy,ZodUnion:()=>Gl,ZodUnknown:()=>$y,ZodVoid:()=>Ty,ZodXID:()=>Uu,ZodXor:()=>Ey,_ZodString:()=>Cu,_default:()=>qy,_function:()=>b_,any:()=>Xk,array:()=>ql,base64:()=>jk,base64url:()=>Ok,bigint:()=>qk,boolean:()=>by,catch:()=>Ky,check:()=>x_,cidrv4:()=>Dk,cidrv6:()=>Ak,clone:()=>Gt,codec:()=>p_,coerce:()=>uv,config:()=>ut,core:()=>Ci,cuid:()=>_k,cuid2:()=>wk,custom:()=>S_,date:()=>Wk,decode:()=>uy,decodeAsync:()=>fy,describe:()=>k_,discriminatedUnion:()=>r_,e164:()=>Uk,email:()=>mk,emoji:()=>Sk,encode:()=>cy,encodeAsync:()=>dy,endsWith:()=>Vo,enum:()=>Yu,exactOptional:()=>Py,file:()=>d_,flattenError:()=>$l,float32:()=>Lk,float64:()=>Pk,formatError:()=>zl,fromJSONSchema:()=>E_,function:()=>b_,getErrorMap:()=>kA,globalRegistry:()=>At,gt:()=>li,gte:()=>Jt,guid:()=>hk,hash:()=>Zk,hex:()=>Bk,hostname:()=>Mk,httpUrl:()=>xk,includes:()=>Po,instanceof:()=>w_,int:()=>zu,int32:()=>Fk,int64:()=>Hk,intersection:()=>Ay,invertCodec:()=>g_,ipv4:()=>Ck,ipv6:()=>Ik,iso:()=>Qo,json:()=>z_,jwt:()=>Nk,keyof:()=>Qk,ksuid:()=>Tk,lazy:()=>rv,length:()=>eo,literal:()=>u_,locales:()=>Ol,looseObject:()=>n_,looseRecord:()=>a_,lowercase:()=>Zo,lt:()=>ai,lte:()=>vn,mac:()=>Ek,map:()=>l_,maxLength:()=>Qr,maxSize:()=>lr,meta:()=>__,mime:()=>qo,minLength:()=>Ti,minSize:()=>si,multipleOf:()=>ar,nan:()=>h_,nanoid:()=>kk,nativeEnum:()=>c_,negative:()=>fu,never:()=>Hu,nonnegative:()=>hu,nonoptional:()=>Yy,nonpositive:()=>mu,normalize:()=>Ho,null:()=>_y,nullable:()=>Ll,nullish:()=>f_,number:()=>vy,object:()=>e_,optional:()=>Zl,overwrite:()=>Qn,parse:()=>oy,parseAsync:()=>ay,partialRecord:()=>o_,pipe:()=>Tu,positive:()=>du,prefault:()=>Gy,preprocess:()=>T_,prettifyError:()=>_m,promise:()=>v_,property:()=>pu,readonly:()=>tv,record:()=>Uy,refine:()=>lv,regex:()=>Bo,regexes:()=>yn,registry:()=>Vc,safeDecode:()=>hy,safeDecodeAsync:()=>gy,safeEncode:()=>my,safeEncodeAsync:()=>py,safeParse:()=>ly,safeParseAsync:()=>sy,set:()=>s_,setErrorMap:()=>SA,size:()=>Wr,slugify:()=>Xo,startsWith:()=>Fo,strictObject:()=>t_,string:()=>Ml,stringFormat:()=>Rk,stringbool:()=>$_,success:()=>m_,superRefine:()=>sv,symbol:()=>Yk,templateLiteral:()=>y_,toJSONSchema:()=>bu,toLowerCase:()=>Yo,toUpperCase:()=>Jo,transform:()=>Ju,treeifyError:()=>km,trim:()=>Go,tuple:()=>Oy,uint32:()=>Vk,uint64:()=>Gk,ulid:()=>$k,undefined:()=>Jk,union:()=>Gu,unknown:()=>to,uppercase:()=>Lo,url:()=>bk,util:()=>R,uuid:()=>pk,uuidv4:()=>gk,uuidv6:()=>yk,uuidv7:()=>vk,void:()=>Kk,xid:()=>zk,xor:()=>i_});var Ci={};$i(Ci,{$ZodAny:()=>Wh,$ZodArray:()=>ip,$ZodAsyncError:()=>Wn,$ZodBase64:()=>Ph,$ZodBase64URL:()=>Fh,$ZodBigInt:()=>Nc,$ZodBigIntFormat:()=>Yh,$ZodBoolean:()=>Il,$ZodCIDRv4:()=>Bh,$ZodCIDRv6:()=>Zh,$ZodCUID:()=>Th,$ZodCUID2:()=>Ch,$ZodCatch:()=>Sp,$ZodCheck:()=>qe,$ZodCheckBigIntFormat:()=>ih,$ZodCheckEndsWith:()=>ph,$ZodCheckGreaterThan:()=>Ic,$ZodCheckIncludes:()=>mh,$ZodCheckLengthEquals:()=>ch,$ZodCheckLessThan:()=>Ec,$ZodCheckLowerCase:()=>dh,$ZodCheckMaxLength:()=>lh,$ZodCheckMaxSize:()=>rh,$ZodCheckMimeType:()=>yh,$ZodCheckMinLength:()=>sh,$ZodCheckMinSize:()=>oh,$ZodCheckMultipleOf:()=>th,$ZodCheckNumberFormat:()=>nh,$ZodCheckOverwrite:()=>vh,$ZodCheckProperty:()=>gh,$ZodCheckRegex:()=>uh,$ZodCheckSizeEquals:()=>ah,$ZodCheckStartsWith:()=>hh,$ZodCheckStringFormat:()=>Ro,$ZodCheckUpperCase:()=>fh,$ZodCodec:()=>Al,$ZodCustom:()=>Ep,$ZodCustomStringFormat:()=>Hh,$ZodDate:()=>np,$ZodDefault:()=>yp,$ZodDiscriminatedUnion:()=>ap,$ZodE164:()=>Vh,$ZodEmail:()=>_h,$ZodEmoji:()=>$h,$ZodEncodeError:()=>tr,$ZodEnum:()=>dp,$ZodError:()=>wl,$ZodExactOptional:()=>pp,$ZodFile:()=>mp,$ZodFunction:()=>zp,$ZodGUID:()=>Sh,$ZodIPv4:()=>Nh,$ZodIPv6:()=>Rh,$ZodISODate:()=>jh,$ZodISODateTime:()=>Ah,$ZodISODuration:()=>Uh,$ZodISOTime:()=>Oh,$ZodIntersection:()=>lp,$ZodJWT:()=>qh,$ZodKSUID:()=>Dh,$ZodLazy:()=>Cp,$ZodLiteral:()=>fp,$ZodMAC:()=>Mh,$ZodMap:()=>cp,$ZodNaN:()=>kp,$ZodNanoID:()=>zh,$ZodNever:()=>ep,$ZodNonOptional:()=>bp,$ZodNull:()=>Kh,$ZodNullable:()=>gp,$ZodNumber:()=>Uc,$ZodNumberFormat:()=>Gh,$ZodObject:()=>s0,$ZodObjectJIT:()=>rp,$ZodOptional:()=>Mc,$ZodPipe:()=>Bc,$ZodPrefault:()=>vp,$ZodPreprocess:()=>_p,$ZodPromise:()=>Tp,$ZodReadonly:()=>wp,$ZodRealError:()=>on,$ZodRecord:()=>sp,$ZodRegistry:()=>Fc,$ZodSet:()=>up,$ZodString:()=>Kr,$ZodStringFormat:()=>Le,$ZodSuccess:()=>xp,$ZodSymbol:()=>Jh,$ZodTemplateLiteral:()=>$p,$ZodTransform:()=>hp,$ZodTuple:()=>Rc,$ZodType:()=>ue,$ZodULID:()=>Eh,$ZodURL:()=>wh,$ZodUUID:()=>kh,$ZodUndefined:()=>Xh,$ZodUnion:()=>Dl,$ZodUnknown:()=>Qh,$ZodVoid:()=>tp,$ZodXID:()=>Ih,$ZodXor:()=>op,$brand:()=>um,$constructor:()=>_,$input:()=>Dp,$output:()=>Ip,Doc:()=>El,JSONSchema:()=>uk,JSONSchemaGenerator:()=>xu,NEVER:()=>cm,TimePrecision:()=>Up,_any:()=>ng,_array:()=>cg,_base64:()=>lu,_base64url:()=>su,_bigint:()=>Jp,_boolean:()=>Gp,_catch:()=>uA,_check:()=>ck,_cidrv4:()=>ou,_cidrv6:()=>au,_coercedBigint:()=>Xp,_coercedBoolean:()=>Yp,_coercedDate:()=>lg,_coercedNumber:()=>Lp,_coercedString:()=>jp,_cuid:()=>Wc,_cuid2:()=>Qc,_custom:()=>dg,_date:()=>ag,_decode:()=>xc,_decodeAsync:()=>kc,_default:()=>lA,_discriminatedUnion:()=>JD,_e164:()=>cu,_email:()=>qc,_emoji:()=>Xc,_encode:()=>bc,_encodeAsync:()=>Sc,_endsWith:()=>Vo,_enum:()=>tA,_file:()=>ug,_float32:()=>Fp,_float64:()=>Vp,_gt:()=>li,_gte:()=>Jt,_guid:()=>Ul,_includes:()=>Po,_int:()=>Pp,_int32:()=>qp,_int64:()=>Kp,_intersection:()=>XD,_ipv4:()=>iu,_ipv6:()=>ru,_isoDate:()=>Rp,_isoDateTime:()=>Np,_isoDuration:()=>Bp,_isoTime:()=>Mp,_jwt:()=>uu,_ksuid:()=>nu,_lazy:()=>hA,_length:()=>eo,_literal:()=>iA,_lowercase:()=>Zo,_lt:()=>ai,_lte:()=>vn,_mac:()=>Op,_map:()=>QD,_max:()=>vn,_maxLength:()=>Qr,_maxSize:()=>lr,_mime:()=>qo,_min:()=>Jt,_minLength:()=>Ti,_minSize:()=>si,_multipleOf:()=>ar,_nan:()=>sg,_nanoid:()=>Kc,_nativeEnum:()=>nA,_negative:()=>fu,_never:()=>rg,_nonnegative:()=>hu,_nonoptional:()=>sA,_nonpositive:()=>mu,_normalize:()=>Ho,_null:()=>tg,_nullable:()=>aA,_number:()=>Zp,_optional:()=>oA,_overwrite:()=>Qn,_parse:()=>jo,_parseAsync:()=>Oo,_pipe:()=>dA,_positive:()=>du,_promise:()=>pA,_property:()=>pu,_readonly:()=>fA,_record:()=>WD,_refine:()=>fg,_regex:()=>Bo,_safeDecode:()=>wc,_safeDecodeAsync:()=>zc,_safeEncode:()=>_c,_safeEncodeAsync:()=>$c,_safeParse:()=>Uo,_safeParseAsync:()=>No,_set:()=>eA,_size:()=>Wr,_slugify:()=>Xo,_startsWith:()=>Fo,_string:()=>Ap,_stringFormat:()=>Ko,_stringbool:()=>gg,_success:()=>cA,_superRefine:()=>mg,_symbol:()=>Qp,_templateLiteral:()=>mA,_toLowerCase:()=>Yo,_toUpperCase:()=>Jo,_transform:()=>rA,_trim:()=>Go,_tuple:()=>KD,_uint32:()=>Hp,_uint64:()=>Wp,_ulid:()=>eu,_undefined:()=>eg,_union:()=>GD,_unknown:()=>ig,_uppercase:()=>Lo,_url:()=>Nl,_uuid:()=>Hc,_uuidv4:()=>Gc,_uuidv6:()=>Yc,_uuidv7:()=>Jc,_void:()=>og,_xid:()=>tu,_xor:()=>YD,clone:()=>Gt,config:()=>ut,createStandardJSONSchemaMethod:()=>Wo,createToJSONSchemaMethod:()=>yg,decode:()=>pI,decodeAsync:()=>yI,describe:()=>hg,encode:()=>hI,encodeAsync:()=>gI,extractDefs:()=>cr,finalize:()=>ur,flattenError:()=>$l,formatError:()=>zl,globalConfig:()=>Yr,globalRegistry:()=>At,initializeContext:()=>sr,isValidBase64:()=>Lh,isValidBase64URL:()=>r0,isValidJWT:()=>o0,locales:()=>Ol,meta:()=>pg,parse:()=>yc,parseAsync:()=>vc,prettifyError:()=>_m,process:()=>je,regexes:()=>yn,registry:()=>Vc,safeDecode:()=>bI,safeDecodeAsync:()=>SI,safeEncode:()=>vI,safeEncodeAsync:()=>xI,safeParse:()=>wm,safeParseAsync:()=>$m,toDotPath:()=>RS,toJSONSchema:()=>bu,treeifyError:()=>km,util:()=>R,version:()=>bh});var AS,cm=Object.freeze({status:"aborted"});function _(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let u=a.prototype,d=Object.keys(u);for(let m=0;m<d.length;m++){let h=d[m];h in l||(l[h]=u[h].bind(l))}}let i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(l){var s;let u=n?.Parent?new o:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var um=Symbol("zod_brand"),Wn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},tr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(AS=globalThis).__zod_globalConfig??(AS.__zod_globalConfig={});var Yr=globalThis.__zod_globalConfig;function ut(e){return e&&Object.assign(Yr,e),Yr}var R={};$i(R,{BIGINT_FORMAT_RANGES:()=>xm,Class:()=>fm,NUMBER_FORMAT_RANGES:()=>bm,aborted:()=>or,allowsEval:()=>pm,assert:()=>HE,assertEqual:()=>PE,assertIs:()=>VE,assertNever:()=>qE,assertNotEqual:()=>FE,assignProp:()=>ir,base64ToUint8Array:()=>OS,base64urlToUint8Array:()=>cI,cached:()=>Do,captureStackTrace:()=>gc,cleanEnum:()=>sI,cleanRegex:()=>xl,clone:()=>Gt,cloneDef:()=>YE,createTransparentProxy:()=>eI,defineLazy:()=>be,esc:()=>pc,escapeRegex:()=>Nn,explicitlyAborted:()=>Sm,extend:()=>iI,finalizeIssue:()=>Yt,floatSafeRemainder:()=>mm,getElementAtPath:()=>JE,getEnumValues:()=>bl,getLengthableOrigin:()=>_l,getParsedType:()=>QE,getSizableOrigin:()=>kl,hexToUint8Array:()=>dI,isObject:()=>Jr,isPlainObject:()=>rr,issue:()=>Ao,joinValues:()=>w,jsonStringifyReplacer:()=>Io,merge:()=>oI,mergeDefs:()=>zi,normalizeParams:()=>L,nullish:()=>nr,numKeys:()=>WE,objectClone:()=>GE,omit:()=>nI,optionalKeys:()=>vm,parsedType:()=>U,partial:()=>aI,pick:()=>tI,prefixIssues:()=>rn,primitiveTypes:()=>ym,promiseAllObject:()=>XE,propertyKeyTypes:()=>Sl,randomString:()=>KE,required:()=>lI,safeExtend:()=>rI,shallowClone:()=>gm,slugify:()=>hm,stringifyPrimitive:()=>j,uint8ArrayToBase64:()=>US,uint8ArrayToBase64url:()=>uI,uint8ArrayToHex:()=>fI,unwrapMessage:()=>vl});function PE(e){return e}function FE(e){return e}function VE(e){}function qE(e){throw new Error("Unexpected value in exhaustive check")}function HE(e){}function bl(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function w(e,t="|"){return e.map(n=>j(n)).join(t)}function Io(e,t){return typeof t=="bigint"?t.toString():t}function Do(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function nr(e){return e==null}function xl(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function mm(e,t){let n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var jS=Symbol("evaluating");function be(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==jS)return r===void 0&&(r=jS,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function GE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ir(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function zi(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function YE(e){return zi(e._zod.def)}function JE(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function XE(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return i})}function KE(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function pc(e){return JSON.stringify(e)}function hm(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var gc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var pm=Do(()=>{if(Yr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function rr(e){if(Jr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Jr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function gm(e){return rr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function WE(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var QE=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Sl=new Set(["string","number","symbol"]),ym=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Gt(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function L(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function eI(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,o){return t??(t=e()),Reflect.set(t,r,i,o)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function j(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var bm={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]},xm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tI(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=zi(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return ir(this,"shape",a),a},checks:[]});return Gt(e,o)}function nI(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=zi(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return ir(this,"shape",a),a},checks:[]});return Gt(e,o)}function iI(e,t){if(!rr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=zi(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return ir(this,"shape",o),o}});return Gt(e,i)}function rI(e,t){if(!rr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=zi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return ir(this,"shape",r),r}});return Gt(e,n)}function oI(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=zi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return ir(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Gt(e,n)}function aI(e,t,n){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=zi(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(n)for(let u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return ir(this,"shape",s),s},checks:[]});return Gt(t,a)}function lI(e,t,n){let r=zi(t._zod.def,{get shape(){let i=t._zod.def.shape,o={...i};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(let a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return ir(this,"shape",o),o}});return Gt(t,r)}function or(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Sm(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function rn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function vl(e){return typeof e=="string"?e:e?.message}function Yt(e,t,n){let r=e.message?e.message:vl(e.inst?._zod.def?.error?.(e))??vl(t?.error?.(e))??vl(n.customError?.(e))??vl(n.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...l}=e;return l.path??(l.path=[]),l.message=r,t?.reportInput&&(l.input=a),l}function kl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function _l(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function U(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Ao(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function sI(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function OS(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function US(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function cI(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return OS(t+n)}function uI(e){return US(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function dI(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function fI(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var fm=class{constructor(...t){}};var NS=(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,Io,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},wl=_("$ZodError",NS),on=_("$ZodError",NS,{Parent:Error});function $l(e,t=n=>n.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function zl(e,t=n=>n.message){let n={_errors:[]},r=(i,o=[])=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>r({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,u=0;for(;u<l.length;){let d=l[u];u===l.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(a))):s[d]=s[d]||{_errors:[]},s=s[d],u++}}}};return r(e),n}function km(e,t=n=>n.message){let n={errors:[]},r=(i,o=[])=>{var a,l;for(let s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>r({issues:u},[...o,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...o,...s.path]);else{let u=[...o,...s.path];if(u.length===0){n.errors.push(t(s));continue}let d=n,m=0;for(;m<u.length;){let h=u[m],f=m===u.length-1;typeof h=="string"?(d.properties??(d.properties={}),(a=d.properties)[h]??(a[h]={errors:[]}),d=d.properties[h]):(d.items??(d.items=[]),(l=d.items)[h]??(l[h]={errors:[]}),d=d.items[h]),f&&d.errors.push(t(s)),m++}}};return r(e),n}function RS(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function _m(e){let t=[],n=[...e.issues].sort((r,i)=>(r.path??[]).length-(i.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${RS(r.path)}`);return t.join(`
11
+ `)}var jo=e=>(t,n,r,i)=>{let o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Wn;if(a.issues.length){let l=new(i?.Err??e)(a.issues.map(s=>Yt(s,o,ut())));throw gc(l,i?.callee),l}return a.value},yc=jo(on),Oo=e=>async(t,n,r,i)=>{let o=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(i?.Err??e)(a.issues.map(s=>Yt(s,o,ut())));throw gc(l,i?.callee),l}return a.value},vc=Oo(on),Uo=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Wn;return o.issues.length?{success:!1,error:new(e??wl)(o.issues.map(a=>Yt(a,i,ut())))}:{success:!0,data:o.value}},wm=Uo(on),No=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Yt(a,i,ut())))}:{success:!0,data:o.value}},$m=No(on),bc=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return jo(e)(t,n,i)},hI=bc(on),xc=e=>(t,n,r)=>jo(e)(t,n,r),pI=xc(on),Sc=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return Oo(e)(t,n,i)},gI=Sc(on),kc=e=>async(t,n,r)=>Oo(e)(t,n,r),yI=kc(on),_c=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return Uo(e)(t,n,i)},vI=_c(on),wc=e=>(t,n,r)=>Uo(e)(t,n,r),bI=wc(on),$c=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return No(e)(t,n,i)},xI=$c(on),zc=e=>async(t,n,r)=>No(e)(t,n,r),SI=zc(on);var yn={};$i(yn,{base64:()=>Lm,base64url:()=>Tc,bigint:()=>Ym,boolean:()=>Xm,browserEmail:()=>EI,cidrv4:()=>Bm,cidrv6:()=>Zm,cuid:()=>zm,cuid2:()=>Tm,date:()=>Vm,datetime:()=>Hm,domain:()=>AI,duration:()=>Am,e164:()=>Fm,email:()=>Om,emoji:()=>Um,extendedDuration:()=>kI,guid:()=>jm,hex:()=>jI,hostname:()=>DI,html5Email:()=>zI,httpProtocol:()=>Pm,idnEmail:()=>CI,integer:()=>Jm,ipv4:()=>Nm,ipv6:()=>Rm,ksuid:()=>Im,lowercase:()=>Qm,mac:()=>Mm,md5_base64:()=>UI,md5_base64url:()=>NI,md5_hex:()=>OI,nanoid:()=>Dm,null:()=>Km,number:()=>Cc,rfc5322Email:()=>TI,sha1_base64:()=>MI,sha1_base64url:()=>BI,sha1_hex:()=>RI,sha256_base64:()=>LI,sha256_base64url:()=>PI,sha256_hex:()=>ZI,sha384_base64:()=>VI,sha384_base64url:()=>qI,sha384_hex:()=>FI,sha512_base64:()=>GI,sha512_base64url:()=>YI,sha512_hex:()=>HI,string:()=>Gm,time:()=>qm,ulid:()=>Cm,undefined:()=>Wm,unicodeEmail:()=>MS,uppercase:()=>eh,uuid:()=>Xr,uuid4:()=>_I,uuid6:()=>wI,uuid7:()=>$I,xid:()=>Em});var zm=/^[cC][0-9a-z]{6,}$/,Tm=/^[0-9a-z]+$/,Cm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Em=/^[0-9a-vA-V]{20}$/,Im=/^[A-Za-z0-9]{27}$/,Dm=/^[a-zA-Z0-9_-]{21}$/,Am=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kI=/^[-+]?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)?)??$/,jm=/^([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})$/,Xr=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)$/,_I=Xr(4),wI=Xr(6),$I=Xr(7),Om=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zI=/^[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])?)*$/,TI=/^(([^<>()\[\]\\.,;:\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,}))$/,MS=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,CI=MS,EI=/^[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])?)*$/,II="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Um(){return new RegExp(II,"u")}var Nm=/^(?:(?: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])$/,Rm=/^(([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}|:))$/,Mm=e=>{let t=Nn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Bm=/^((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])$/,Zm=/^(([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])$/,Lm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tc=/^[A-Za-z0-9_-]*$/,DI=/^(?=.{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])?)*\.?$/,AI=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Pm=/^https?$/,Fm=/^\+[1-9]\d{6,14}$/,BS="(?:(?:\\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])))",Vm=new RegExp(`^${BS}$`);function ZS(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function qm(e){return new RegExp(`^${ZS(e)}$`)}function Hm(e){let t=ZS({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return new RegExp(`^${BS}T(?:${r})$`)}var Gm=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ym=/^-?\d+n?$/,Jm=/^-?\d+$/,Cc=/^-?\d+(?:\.\d+)?$/,Xm=/^(?:true|false)$/i,Km=/^null$/i;var Wm=/^undefined$/i;var Qm=/^[^A-Z]*$/,eh=/^[^a-z]*$/,jI=/^[0-9a-fA-F]*$/;function Tl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Cl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var OI=/^[0-9a-fA-F]{32}$/,UI=Tl(22,"=="),NI=Cl(22),RI=/^[0-9a-fA-F]{40}$/,MI=Tl(27,"="),BI=Cl(27),ZI=/^[0-9a-fA-F]{64}$/,LI=Tl(43,"="),PI=Cl(43),FI=/^[0-9a-fA-F]{96}$/,VI=Tl(64,""),qI=Cl(64),HI=/^[0-9a-fA-F]{128}$/,GI=Tl(86,"=="),YI=Cl(86);var qe=_("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),PS={number:"number",bigint:"bigint",object:"date"},Ec=_("$ZodCheckLessThan",(e,t)=>{qe.init(e,t);let n=PS[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ic=_("$ZodCheckGreaterThan",(e,t)=>{qe.init(e,t);let n=PS[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),th=_("$ZodCheckMultipleOf",(e,t)=>{qe.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):mm(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),nh=_("$ZodCheckNumberFormat",(e,t)=>{qe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=bm[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,n&&(l.pattern=Jm)}),e._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),ih=_("$ZodCheckBigIntFormat",(e,t)=>{qe.init(e,t);let[n,r]=xm[t.format];e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,o.minimum=n,o.maximum=r}),e._zod.check=i=>{let o=i.value;o<n&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),rh=_("$ZodCheckMaxSize",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!nr(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;i.size<=t.maximum||r.issues.push({origin:kl(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),oh=_("$ZodCheckMinSize",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!nr(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;i.size>=t.minimum||r.issues.push({origin:kl(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),ah=_("$ZodCheckSizeEquals",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!nr(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=r=>{let i=r.value,o=i.size;if(o===t.size)return;let a=o>t.size;r.issues.push({origin:kl(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),lh=_("$ZodCheckMaxLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!nr(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;if(i.length<=t.maximum)return;let a=_l(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),sh=_("$ZodCheckMinLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!nr(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;if(i.length>=t.minimum)return;let a=_l(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),ch=_("$ZodCheckLengthEquals",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!nr(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{let i=r.value,o=i.length;if(o===t.length)return;let a=_l(i),l=o>t.length;r.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Ro=_("$ZodCheckStringFormat",(e,t)=>{var n,r;qe.init(e,t),e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),uh=_("$ZodCheckRegex",(e,t)=>{Ro.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),dh=_("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Qm),Ro.init(e,t)}),fh=_("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=eh),Ro.init(e,t)}),mh=_("$ZodCheckIncludes",(e,t)=>{qe.init(e,t);let n=Nn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{let o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),hh=_("$ZodCheckStartsWith",(e,t)=>{qe.init(e,t);let n=new RegExp(`^${Nn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ph=_("$ZodCheckEndsWith",(e,t)=>{qe.init(e,t);let n=new RegExp(`.*${Nn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function LS(e,t,n){e.issues.length&&t.issues.push(...rn(n,e.issues))}var gh=_("$ZodCheckProperty",(e,t)=>{qe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>LS(i,n,t.property));LS(r,n,t.property)}}),yh=_("$ZodCheckMimeType",(e,t)=>{qe.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),vh=_("$ZodCheckOverwrite",(e,t)=>{qe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var El=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
12
12
  `).filter(a=>a),i=Math.min(...r.map(a=>a.length-a.trimStart().length)),o=r.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,i=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,i.join(`
13
- `))}};var Wm={major:4,minor:4,patch:3};var ae=k("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Wm;let r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(let i of r)for(let o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,l,c)=>{let u=Xi(a),d;for(let m of l){if(m._zod.def.when){if(tm(a)||!m._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,f=m._zod.check(a);if(f instanceof Promise&&c?.async===!1)throw new Gn;if(d||f instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(u||(u=Xi(a,p)))});else{if(a.issues.length===p)continue;u||(u=Xi(a,p))}}return d?d.then(()=>a):a},o=(a,l,c)=>{if(Xi(a))return a.aborted=!0,a;let u=i(l,r,c);if(u instanceof Promise){if(c.async===!1)throw new Gn;return u.then(d=>e._zod.parse(d,c))}return e._zod.parse(u,c)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,a,l)):o(u,a,l)}let c=e._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new Gn;return c.then(u=>i(u,r,l))}return i(c,r,l)}}he(e,"~standard",()=>({validate:i=>{try{let o=rm(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return om(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Mr=k("$ZodString",(e,t)=>{ae.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Tm(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Be=k("$ZodStringFormat",(e,t)=>{_o.init(e,t),Mr.init(e,t)}),tp=k("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=mm),Be.init(e,t)}),np=k("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Rr(r))}else t.pattern??(t.pattern=Rr());Be.init(e,t)}),ip=k("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=pm),Be.init(e,t)}),rp=k("$ZodURL",(e,t)=>{Be.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===km.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),op=k("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=hm()),Be.init(e,t)}),ap=k("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=dm),Be.init(e,t)}),lp=k("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=am),Be.init(e,t)}),cp=k("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=lm),Be.init(e,t)}),sp=k("$ZodULID",(e,t)=>{t.pattern??(t.pattern=cm),Be.init(e,t)}),up=k("$ZodXID",(e,t)=>{t.pattern??(t.pattern=sm),Be.init(e,t)}),dp=k("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=um),Be.init(e,t)}),fp=k("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=zm(t)),Be.init(e,t)}),mp=k("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=wm),Be.init(e,t)}),pp=k("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=$m(t)),Be.init(e,t)}),hp=k("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=fm),Be.init(e,t)}),gp=k("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=gm),Be.init(e,t),e._zod.bag.format="ipv4"}),vp=k("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=vm),Be.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),yp=k("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ym(t.delimiter)),Be.init(e,t),e._zod.bag.format="mac"}),bp=k("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=bm),Be.init(e,t)}),xp=k("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xm),Be.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(r.length!==2)throw new Error;let[i,o]=r;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Sp(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var kp=k("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Sm),Be.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Sp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function O0(e){if(!cs.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Sp(n)}var _p=k("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=cs),Be.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{O0(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),wp=k("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_m),Be.init(e,t)});function U0(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var $p=k("$ZodJWT",(e,t)=>{Be.init(e,t),e._zod.check=n=>{U0(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),zp=k("$ZodCustomStringFormat",(e,t)=>{Be.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),gs=k("$ZodNumber",(e,t)=>{ae.init(e,t),e._zod.pattern=e._zod.bag.pattern??ss,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Tp=k("$ZodNumberFormat",(e,t)=>{Nm.init(e,t),gs.init(e,t)}),fl=k("$ZodBoolean",(e,t)=>{ae.init(e,t),e._zod.pattern=Dm,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),vs=k("$ZodBigInt",(e,t)=>{ae.init(e,t),e._zod.pattern=Cm,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Cp=k("$ZodBigIntFormat",(e,t)=>{Rm.init(e,t),vs.init(e,t)}),Ep=k("$ZodSymbol",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Dp=k("$ZodUndefined",(e,t)=>{ae.init(e,t),e._zod.pattern=Am,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),n}}),Ip=k("$ZodNull",(e,t)=>{ae.init(e,t),e._zod.pattern=Im,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),Ap=k("$ZodAny",(e,t)=>{ae.init(e,t),e._zod.parse=n=>n}),jp=k("$ZodUnknown",(e,t)=>{ae.init(e,t),e._zod.parse=n=>n}),Op=k("$ZodNever",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Up=k("$ZodVoid",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),n}}),Np=k("$ZodDate",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}});function x0(e,t,n){e.issues.length&&t.issues.push(...en(n,e.issues)),t.value[n]=e.value}var Rp=k("$ZodArray",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let o=[];for(let a=0;a<i.length;a++){let l=i[a],c=t.element._zod.run({value:l,issues:[]},r);c instanceof Promise?o.push(c.then(u=>x0(u,n,a))):x0(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function hs(e,t,n,r,i,o){let a=n in r;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...en(n,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function N0(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);let n=Qf(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function R0(e,t,n,r,i,o){let a=[],l=i.keySet,c=i.catchall._zod,u=c.def.type,d=c.optin==="optional",m=c.optout==="optional";for(let p in t){if(p==="__proto__"||l.has(p))continue;if(u==="never"){a.push(p);continue}let f=c.run({value:t[p],issues:[]},r);f instanceof Promise?e.push(f.then(x=>hs(x,n,p,t,d,m))):hs(f,n,p,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var M0=k("$ZodObject",(e,t)=>{if(ae.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}let r=vo(()=>N0(t));he(e._zod,"propValues",()=>{let l=t.shape,c={};for(let u in l){let d=l[u]._zod;if(d.values){c[u]??(c[u]=new Set);for(let m of d.values)c[u].add(m)}}return c});let i=Nr,o=t.catchall,a;e._zod.parse=(l,c)=>{a??(a=r.value);let u=l.value;if(!i(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let d=[],m=a.shape;for(let p of a.keys){let f=m[p],x=f._zod.optin==="optional",_=f._zod.optout==="optional",Z=f._zod.run({value:u[p],issues:[]},c);Z instanceof Promise?d.push(Z.then(g=>hs(g,l,p,u,x,_))):hs(Z,l,p,u,x,_)}return o?R0(d,u,l,c,r.value,e):d.length?Promise.all(d).then(()=>l):l}}),Mp=k("$ZodObjectJIT",(e,t)=>{M0.init(e,t);let n=e._zod.parse,r=vo(()=>N0(t)),i=p=>{let f=new dl(["shape","payload","ctx"]),x=r.value,_=y=>{let v=Xc(y);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};f.write("const input = payload.value;");let Z=Object.create(null),g=0;for(let y of x.keys)Z[y]=`key_${g++}`;f.write("const newResult = {};");for(let y of x.keys){let v=Z[y],j=Xc(y),X=p[y],L=X?._zod?.optin==="optional",T=X?._zod?.optout==="optional";f.write(`const ${v} = ${_(y)};`),L&&T?f.write(`
13
+ `))}};var bh={major:4,minor:4,patch:3};var ue=_("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=bh;let r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(let i of r)for(let o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,l,s)=>{let u=or(a),d;for(let m of l){if(m._zod.def.when){if(Sm(a)||!m._zod.def.when(a))continue}else if(u)continue;let h=a.issues.length,f=m._zod.check(a);if(f instanceof Promise&&s?.async===!1)throw new Wn;if(d||f instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await f,a.issues.length!==h&&(u||(u=or(a,h)))});else{if(a.issues.length===h)continue;u||(u=or(a,h))}}return d?d.then(()=>a):a},o=(a,l,s)=>{if(or(a))return a.aborted=!0,a;let u=i(l,r,s);if(u instanceof Promise){if(s.async===!1)throw new Wn;return u.then(d=>e._zod.parse(d,s))}return e._zod.parse(u,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,a,l)):o(u,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===!1)throw new Wn;return s.then(u=>i(u,r,l))}return i(s,r,l)}}be(e,"~standard",()=>({validate:i=>{try{let o=wm(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return $m(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Kr=_("$ZodString",(e,t)=>{ue.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gm(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Le=_("$ZodStringFormat",(e,t)=>{Ro.init(e,t),Kr.init(e,t)}),Sh=_("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=jm),Le.init(e,t)}),kh=_("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Xr(r))}else t.pattern??(t.pattern=Xr());Le.init(e,t)}),_h=_("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Om),Le.init(e,t)}),wh=_("$ZodURL",(e,t)=>{Le.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Pm.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),$h=_("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Um()),Le.init(e,t)}),zh=_("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Dm),Le.init(e,t)}),Th=_("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=zm),Le.init(e,t)}),Ch=_("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Tm),Le.init(e,t)}),Eh=_("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Cm),Le.init(e,t)}),Ih=_("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Em),Le.init(e,t)}),Dh=_("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Im),Le.init(e,t)}),Ah=_("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Hm(t)),Le.init(e,t)}),jh=_("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Vm),Le.init(e,t)}),Oh=_("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=qm(t)),Le.init(e,t)}),Uh=_("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Am),Le.init(e,t)}),Nh=_("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Nm),Le.init(e,t),e._zod.bag.format="ipv4"}),Rh=_("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Rm),Le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Mh=_("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Mm(t.delimiter)),Le.init(e,t),e._zod.bag.format="mac"}),Bh=_("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Bm),Le.init(e,t)}),Zh=_("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zm),Le.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(r.length!==2)throw new Error;let[i,o]=r;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Lh(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Ph=_("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Lm),Le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Lh(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function r0(e){if(!Tc.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Lh(n)}var Fh=_("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Tc),Le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{r0(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Vh=_("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Fm),Le.init(e,t)});function o0(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var qh=_("$ZodJWT",(e,t)=>{Le.init(e,t),e._zod.check=n=>{o0(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Hh=_("$ZodCustomStringFormat",(e,t)=>{Le.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Uc=_("$ZodNumber",(e,t)=>{ue.init(e,t),e._zod.pattern=e._zod.bag.pattern??Cc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Gh=_("$ZodNumberFormat",(e,t)=>{nh.init(e,t),Uc.init(e,t)}),Il=_("$ZodBoolean",(e,t)=>{ue.init(e,t),e._zod.pattern=Xm,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Nc=_("$ZodBigInt",(e,t)=>{ue.init(e,t),e._zod.pattern=Ym,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Yh=_("$ZodBigIntFormat",(e,t)=>{ih.init(e,t),Nc.init(e,t)}),Jh=_("$ZodSymbol",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Xh=_("$ZodUndefined",(e,t)=>{ue.init(e,t),e._zod.pattern=Wm,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),n}}),Kh=_("$ZodNull",(e,t)=>{ue.init(e,t),e._zod.pattern=Km,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),Wh=_("$ZodAny",(e,t)=>{ue.init(e,t),e._zod.parse=n=>n}),Qh=_("$ZodUnknown",(e,t)=>{ue.init(e,t),e._zod.parse=n=>n}),ep=_("$ZodNever",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),tp=_("$ZodVoid",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),n}}),np=_("$ZodDate",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}});function VS(e,t,n){e.issues.length&&t.issues.push(...rn(n,e.issues)),t.value[n]=e.value}var ip=_("$ZodArray",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let o=[];for(let a=0;a<i.length;a++){let l=i[a],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?o.push(s.then(u=>VS(u,n,a))):VS(s,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Oc(e,t,n,r,i,o){let a=n in r;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...rn(n,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function a0(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);let n=vm(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function l0(e,t,n,r,i,o){let a=[],l=i.keySet,s=i.catchall._zod,u=s.def.type,d=s.optin==="optional",m=s.optout==="optional";for(let h in t){if(h==="__proto__"||l.has(h))continue;if(u==="never"){a.push(h);continue}let f=s.run({value:t[h],issues:[]},r);f instanceof Promise?e.push(f.then(x=>Oc(x,n,h,t,d,m))):Oc(f,n,h,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var s0=_("$ZodObject",(e,t)=>{if(ue.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}let r=Do(()=>a0(t));be(e._zod,"propValues",()=>{let l=t.shape,s={};for(let u in l){let d=l[u]._zod;if(d.values){s[u]??(s[u]=new Set);for(let m of d.values)s[u].add(m)}}return s});let i=Jr,o=t.catchall,a;e._zod.parse=(l,s)=>{a??(a=r.value);let u=l.value;if(!i(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let d=[],m=a.shape;for(let h of a.keys){let f=m[h],x=f._zod.optin==="optional",k=f._zod.optout==="optional",N=f._zod.run({value:u[h],issues:[]},s);N instanceof Promise?d.push(N.then(g=>Oc(g,l,h,u,x,k))):Oc(N,l,h,u,x,k)}return o?l0(d,u,l,s,r.value,e):d.length?Promise.all(d).then(()=>l):l}}),rp=_("$ZodObjectJIT",(e,t)=>{s0.init(e,t);let n=e._zod.parse,r=Do(()=>a0(t)),i=h=>{let f=new El(["shape","payload","ctx"]),x=r.value,k=b=>{let v=pc(b);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};f.write("const input = payload.value;");let N=Object.create(null),g=0;for(let b of x.keys)N[b]=`key_${g++}`;f.write("const newResult = {};");for(let b of x.keys){let v=N[b],A=pc(b),ee=h[b],B=ee?._zod?.optin==="optional",T=ee?._zod?.optout==="optional";f.write(`const ${v} = ${k(b)};`),B&&T?f.write(`
14
14
  if (${v}.issues.length) {
15
- if (${j} in input) {
15
+ if (${A} in input) {
16
16
  payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
17
17
  ...iss,
18
- path: iss.path ? [${j}, ...iss.path] : [${j}]
18
+ path: iss.path ? [${A}, ...iss.path] : [${A}]
19
19
  })));
20
20
  }
21
21
  }
22
22
 
23
23
  if (${v}.value === undefined) {
24
- if (${j} in input) {
25
- newResult[${j}] = undefined;
24
+ if (${A} in input) {
25
+ newResult[${A}] = undefined;
26
26
  }
27
27
  } else {
28
- newResult[${j}] = ${v}.value;
28
+ newResult[${A}] = ${v}.value;
29
29
  }
30
30
 
31
- `):L?f.write(`
31
+ `):B?f.write(`
32
32
  if (${v}.issues.length) {
33
33
  payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
34
34
  ...iss,
35
- path: iss.path ? [${j}, ...iss.path] : [${j}]
35
+ path: iss.path ? [${A}, ...iss.path] : [${A}]
36
36
  })));
37
37
  }
38
38
 
39
39
  if (${v}.value === undefined) {
40
- if (${j} in input) {
41
- newResult[${j}] = undefined;
40
+ if (${A} in input) {
41
+ newResult[${A}] = undefined;
42
42
  }
43
43
  } else {
44
- newResult[${j}] = ${v}.value;
44
+ newResult[${A}] = ${v}.value;
45
45
  }
46
46
 
47
47
  `):f.write(`
48
- const ${v}_present = ${j} in input;
48
+ const ${v}_present = ${A} in input;
49
49
  if (${v}.issues.length) {
50
50
  payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
51
51
  ...iss,
52
- path: iss.path ? [${j}, ...iss.path] : [${j}]
52
+ path: iss.path ? [${A}, ...iss.path] : [${A}]
53
53
  })));
54
54
  }
55
55
  if (!${v}_present && !${v}.issues.length) {
@@ -57,89 +57,89 @@ Error generating stack: `+r.message+`
57
57
  code: "invalid_type",
58
58
  expected: "nonoptional",
59
59
  input: undefined,
60
- path: [${j}]
60
+ path: [${A}]
61
61
  });
62
62
  }
63
63
 
64
64
  if (${v}_present) {
65
65
  if (${v}.value === undefined) {
66
- newResult[${j}] = undefined;
66
+ newResult[${A}] = undefined;
67
67
  } else {
68
- newResult[${j}] = ${v}.value;
68
+ newResult[${A}] = ${v}.value;
69
69
  }
70
70
  }
71
71
 
72
- `)}f.write("payload.value = newResult;"),f.write("return payload;");let h=f.compile();return(y,v)=>h(p,y,v)},o,a=Nr,l=!Ur.jitless,u=l&&Jf.value,d=t.catchall,m;e._zod.parse=(p,f)=>{m??(m=r.value);let x=p.value;return a(x)?l&&u&&f?.async===!1&&f.jitless!==!0?(o||(o=i(t.shape)),p=o(p,f),d?R0([],x,p,f,m,e):p):n(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),p)}});function S0(e,t,n,r){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let i=e.filter(o=>!Xi(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>qt(a,r,ct())))}),t)}var ml=k("$ZodUnion",(e,t)=>{ae.init(e,t),he(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),he(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),he(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),he(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>nl(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let l of t.options){let c=l._zod.run({value:r.value,issues:[]},i);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(l=>S0(l,r,e,i)):S0(a,r,e,i)}});function k0(e,t,n,r){let i=e.filter(o=>o.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>qt(a,r,ct())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Bp=k("$ZodXor",(e,t)=>{ml.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let l of t.options){let c=l._zod.run({value:r.value,issues:[]},i);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(l=>k0(l,r,e,i)):k0(a,r,e,i)}}),Zp=k("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ml.init(e,t);let n=e._zod.parse;he(e._zod,"propValues",()=>{let i={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,c]of Object.entries(a)){i[l]||(i[l]=new Set);for(let u of c)i[l].add(u)}}return i});let r=vo(()=>{let i=t.options,o=new Map;for(let a of i){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of l){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(i,o)=>{let a=i.value;if(!Nr(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let l=r.value.get(a?.[t.discriminator]);return l?l._zod.run(i,o):t.unionFallback||o.direction==="backward"?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:a,path:[t.discriminator],inst:e}),i)}}),Lp=k("$ZodIntersection",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value,o=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>_0(n,c,u)):_0(n,o,a)}});function ep(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(Ji(e)&&Ji(t)){let n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(let o of r){let a=ep(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t[r],a=ep(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function _0(e,t,n){let r=new Map,i;for(let l of t.issues)if(l.code==="unrecognized_keys"){i??(i=l);for(let c of l.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(l);for(let l of n.issues)if(l.code==="unrecognized_keys")for(let c of l.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(l);let o=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&i&&e.issues.push({...i,keys:o}),Xi(e))return e;let a=ep(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var ys=k("$ZodTuple",(e,t)=>{ae.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let a=[],l=w0(n,"optin"),c=w0(n,"optout");if(!t.rest){if(o.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:o,inst:e,origin:"array"}),r;o.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:e,origin:"array"})}let u=new Array(n.length);for(let d=0;d<n.length;d++){let m=n[d]._zod.run({value:o[d],issues:[]},i);m instanceof Promise?a.push(m.then(p=>{u[d]=p})):u[d]=m}if(t.rest){let d=n.length-1,m=o.slice(n.length);for(let p of m){d++;let f=t.rest._zod.run({value:p,issues:[]},i);f instanceof Promise?a.push(f.then(x=>$0(x,r,d))):$0(f,r,d)}}return a.length?Promise.all(a).then(()=>z0(u,r,n,o,c)):z0(u,r,n,o,c)}});function w0(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function $0(e,t,n){e.issues.length&&t.issues.push(...en(n,e.issues)),t.value[n]=e.value}function z0(e,t,n,r,i){for(let o=0;o<n.length;o++){let a=e[o],l=o<r.length;if(a.issues.length){if(!l&&o>=i){t.value.length=o;break}t.issues.push(...en(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=r.length&&(n[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var Pp=k("$ZodRecord",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Ji(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(f=>qt(f,r,ct())),input:u,path:[u],inst:e});continue}let m=d.value,p=t.valueType._zod.run({value:i[u],issues:[]},r);p instanceof Promise?o.push(p.then(f=>{f.issues.length&&n.issues.push(...en(u,f.issues)),n.value[m]=f.value})):(p.issues.length&&n.issues.push(...en(u,p.issues)),n.value[m]=p.value)}let c;for(let u in i)l.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c})}else{n.value={};for(let l of Reflect.ownKeys(i)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let c=t.keyType._zod.run({value:l,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&ss.test(l)&&c.issues.length){let m=t.keyType._zod.run({value:Number(l),issues:[]},r);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(c=m)}if(c.issues.length){t.mode==="loose"?n.value[l]=i[l]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(m=>qt(m,r,ct())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:i[l],issues:[]},r);d instanceof Promise?o.push(d.then(m=>{m.issues.length&&n.issues.push(...en(l,m.issues)),n.value[c.value]=m.value})):(d.issues.length&&n.issues.push(...en(l,d.issues)),n.value[c.value]=d.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Fp=k("$ZodMap",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let o=[];n.value=new Map;for(let[a,l]of i){let c=t.keyType._zod.run({value:a,issues:[]},r),u=t.valueType._zod.run({value:l,issues:[]},r);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([d,m])=>{T0(d,m,n,a,i,e,r)})):T0(c,u,n,a,i,e,r)}return o.length?Promise.all(o).then(()=>n):n}});function T0(e,t,n,r,i,o,a){e.issues.length&&(il.has(typeof r)?n.issues.push(...en(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(l=>qt(l,a,ct()))})),t.issues.length&&(il.has(typeof r)?n.issues.push(...en(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:r,issues:t.issues.map(l=>qt(l,a,ct()))})),n.value.set(e.value,t.value)}var Vp=k("$ZodSet",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of i){let l=t.valueType._zod.run({value:a,issues:[]},r);l instanceof Promise?o.push(l.then(c=>C0(c,n))):C0(l,n)}return o.length?Promise.all(o).then(()=>n):n}});function C0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var qp=k("$ZodEnum",(e,t)=>{ae.init(e,t);let n=tl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>il.has(typeof i)).map(i=>typeof i=="string"?In(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:n,input:a,inst:e}),i}}),Hp=k("$ZodLiteral",(e,t)=>{if(ae.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?In(r):r?In(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),Gp=k("$ZodFile",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return i instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),n}}),Yp=k("$ZodTransform",(e,t)=>{ae.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Hi(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n.fallback=!0,n));if(i instanceof Promise)throw new Gn;return n.value=i,n.fallback=!0,n}});function E0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var bs=k("$ZodOptional",(e,t)=>{ae.init(e,t),e._zod.optin="optional",e._zod.optout="optional",he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),he(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${nl(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){let i=n.value,o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>E0(a,i)):E0(o,i)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Jp=k("$ZodExactOptional",(e,t)=>{bs.init(e,t),he(e._zod,"values",()=>t.innerType._zod.values),he(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Xp=k("$ZodNullable",(e,t)=>{ae.init(e,t),he(e._zod,"optin",()=>t.innerType._zod.optin),he(e._zod,"optout",()=>t.innerType._zod.optout),he(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${nl(n.source)}|null)$`):void 0}),he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Kp=k("$ZodDefault",(e,t)=>{ae.init(e,t),e._zod.optin="optional",he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>D0(o,t)):D0(i,t)}});function D0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Qp=k("$ZodPrefault",(e,t)=>{ae.init(e,t),e._zod.optin="optional",he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Wp=k("$ZodNonOptional",(e,t)=>{ae.init(e,t),he(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>I0(o,e)):I0(i,e)}});function I0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var eh=k("$ZodSuccess",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Hi("ZodSuccess");let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.issues.length===0,n)):(n.value=i.issues.length===0,n)}}),th=k("$ZodCatch",(e,t)=>{ae.init(e,t),e._zod.optin="optional",he(e._zod,"optout",()=>t.innerType._zod.optout),he(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>qt(a,r,ct()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>qt(o,r,ct()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),nh=k("$ZodNaN",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),xs=k("$ZodPipe",(e,t)=>{ae.init(e,t),he(e._zod,"values",()=>t.in._zod.values),he(e._zod,"optin",()=>t.in._zod.optin),he(e._zod,"optout",()=>t.out._zod.optout),he(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>fs(a,t.in,r)):fs(o,t.in,r)}let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>fs(o,t.out,r)):fs(i,t.out,r)}});function fs(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var pl=k("$ZodCodec",(e,t)=>{ae.init(e,t),he(e._zod,"values",()=>t.in._zod.values),he(e._zod,"optin",()=>t.in._zod.optin),he(e._zod,"optout",()=>t.out._zod.optout),he(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>ms(a,t,r)):ms(o,t,r)}else{let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>ms(a,t,r)):ms(o,t,r)}}});function ms(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let i=t.transform(e.value,e);return i instanceof Promise?i.then(o=>ps(e,o,t.out,n)):ps(e,i,t.out,n)}else{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(o=>ps(e,o,t.in,n)):ps(e,i,t.in,n)}}function ps(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var ih=k("$ZodPreprocess",(e,t)=>{xs.init(e,t)}),rh=k("$ZodReadonly",(e,t)=>{ae.init(e,t),he(e._zod,"propValues",()=>t.innerType._zod.propValues),he(e._zod,"values",()=>t.innerType._zod.values),he(e._zod,"optin",()=>t.innerType?._zod?.optin),he(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(A0):A0(i)}});function A0(e){return e.value=Object.freeze(e.value),e}var oh=k("$ZodTemplateLiteral",(e,t)=>{ae.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);let i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);let o=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;n.push(i.slice(o,a))}else if(r===null||Kf.has(typeof r))n.push(In(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),ah=k("$ZodFunction",(e,t)=>(ae.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){let i=e._def.input?Qc(e._def.input,r):r,o=Reflect.apply(n,this,i);return e._def.output?Qc(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){let i=e._def.input?await Wc(e._def.input,r):r,o=await Reflect.apply(n,this,i);return e._def.output?await Wc(e._def.output,o):o}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new ys({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),lh=k("$ZodPromise",(e,t)=>{ae.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(i=>t.innerType._zod.run({value:i,issues:[]},r))}),ch=k("$ZodLazy",(e,t)=>{ae.init(e,t),he(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),he(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),he(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),he(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),he(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),sh=k("$ZodCustom",(e,t)=>{Fe.init(e,t),ae.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>j0(o,n,r,e));j0(i,n,r,e)}});function j0(e,t,n,r){if(!e){let i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(yo(i))}}var gl={};bi(gl,{ar:()=>B0,az:()=>Z0,be:()=>P0,bg:()=>F0,ca:()=>V0,cs:()=>q0,da:()=>H0,de:()=>G0,el:()=>Y0,en:()=>Ss,eo:()=>J0,es:()=>X0,fa:()=>K0,fi:()=>Q0,fr:()=>W0,frCA:()=>eS,he:()=>tS,hr:()=>nS,hu:()=>iS,hy:()=>oS,id:()=>aS,is:()=>lS,it:()=>cS,ja:()=>sS,ka:()=>uS,kh:()=>dS,km:()=>ks,ko:()=>fS,lt:()=>pS,mk:()=>hS,ms:()=>gS,nl:()=>vS,no:()=>yS,ota:()=>bS,pl:()=>SS,ps:()=>xS,pt:()=>kS,ro:()=>_S,ru:()=>$S,sl:()=>zS,sv:()=>TS,ta:()=>CS,th:()=>ES,tr:()=>DS,ua:()=>IS,uk:()=>_s,ur:()=>AS,uz:()=>jS,vi:()=>OS,yo:()=>RS,zhCN:()=>US,zhTW:()=>NS});var bD=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(i){return e[i]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${A(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function B0(){return{localeError:bD()}}var xD=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${i.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${l}`}case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${A(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Z0(){return{localeError:xD()}}function L0(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var SD=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(i){return e[i]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},r={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${A(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),c=L0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${i.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),c=L0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${i.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function P0(){return{localeError:SD()}}var kD=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${A(i.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${i.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u043E\u0432\u0435":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function F0(){return{localeError:kD()}}var _D=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${i.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${l}`}case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${A(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(i.values," o ")}`;case"too_big":{let o=i.inclusive?"com a m\xE0xim":"menys de",a=t(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${o} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${o} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function V0(){return{localeError:_D()}}var wD=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(i){return e[i]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${i.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${l}`}case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${A(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function q0(){return{localeError:wD()}}var $D=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(i){return e[i]??null}let n={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",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"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${l}`:`Ugyldigt input: forventede ${o}, fik ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${A(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${o} ${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`For lille: forventede ${l} ${a.verb} ${o} ${i.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}};function H0(){return{localeError:$D()}}var zD=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){return e[i]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},r={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${i.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${l}`}case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${A(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ist`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ist`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function G0(){return{localeError:zD()}}var TD=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(i){return e[i]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return typeof i.expected=="string"&&/^[A-Z]/.test(i.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${i.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return i.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${A(i.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${i.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${i.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[o.format]??i.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${i.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${i.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${i.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${i.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${i.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Y0(){return{localeError:TD()}}var CD=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return`Invalid input: expected ${o}, received ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${A(i.values[0])}`:`Invalid option: expected one of ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Ss(){return{localeError:CD()}}var ED=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${i.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${l}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${A(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${o}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function J0(){return{localeError:ED()}}var DD=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){return e[i]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${i.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${A(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${o}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${o}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r[i.origin]??i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r[i.origin]??i.origin}`;default:return"Entrada inv\xE1lida"}}};function X0(){return{localeError:DD()}}var ID=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(i){return e[i]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${A(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${w(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function K0(){return{localeError:ID()}}var AD=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(i){return e[i]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${l}`}case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${A(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Q0(){return{localeError:AD()}}var jD=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},r={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : instanceof ${i.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${l} re\xE7u`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${A(i.values[0])} attendu`:`Option invalide : une valeur parmi ${w(i.values,"|")} attendue`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Trop grand : ${r[i.origin]??"valeur"} doit ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r[i.origin]??"valeur"} doit \xEAtre ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Trop petit : ${r[i.origin]??"valeur"} doit ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${r[i.origin]??"valeur"} doit \xEAtre ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function W0(){return{localeError:jD()}}var OD=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : attendu instanceof ${i.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${l}`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${A(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u2264":"<",a=t(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${o}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u2265":">",a=t(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function eS(){return{localeError:OD()}}var UD=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=u=>u?e[u]:void 0,r=u=>{let d=n(u);return d?d.label:u??e.unknown.label},i=u=>`\u05D4${r(u)}`,o=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",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:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let d=u.expected,m=c[d??""]??r(d),p=U(u.input),f=c[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${A(u.values[0])}`;let d=u.values.map(f=>A(f));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let m=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let d=a(u.origin),m=i(u.origin??"value");if(u.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let x=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(u.origin==="array"||u.origin==="set"){let x=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=u.inclusive?`${u.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let p=u.inclusive?"<=":"<",f=o(u.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.maximum.toString()}`}case"too_small":{let d=a(u.origin),m=i(u.origin??"value");if(u.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let x=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(u.origin==="array"||u.origin==="set"){let x=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let Z=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${Z}`}let _=u.inclusive?`${u.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let p=u.inclusive?">=":">",f=o(u.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.minimum.toString()}`}case"invalid_format":{let d=u;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let m=l[d.format],p=m?.label??d.format,x=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${x}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function tS(){return{localeError:UD()}}var ND=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(i){return e[i]??null}let n={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},r={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${i.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${l}`}case"invalid_value":return i.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${A(i.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${o}${i.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${o}${i.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${n[o.format]??i.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${i.divisor}`;case"unrecognized_keys":return`Neprepoznat${i.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${r[i.origin]??i.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${r[i.origin]??i.origin}`;default:return"Neispravan unos"}}};function nS(){return{localeError:ND()}}var RD=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${i.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${A(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${o}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function iS(){return{localeError:RD()}}function rS(e,t,n){return Math.abs(e)===1?t:n}function wo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var MD=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(i){return e[i]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},r={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${i.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return i.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${A(i.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),c=rS(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${wo(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${wo(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),c=rS(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${wo(i.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${wo(i.origin)} \u056C\u056B\u0576\u056B ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??i.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${i.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${i.keys.length>1?"\u0576\u0565\u0580":""}. ${w(i.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${wo(i.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${wo(i.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function oS(){return{localeError:MD()}}var BD=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${o}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${A(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function aS(){return{localeError:BD()}}var ZD=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(i){return e[i]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"n\xFAmer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${i.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${A(i.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} hafi ${o}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} s\xE9 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} hafi ${o}${i.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} s\xE9 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??i.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${w(i.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${i.origin}`;default:return"Rangt gildi"}}};function lS(){return{localeError:ZD()}}var LD=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${l}`:`Input non valido: atteso ${o}, ricevuto ${l}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${A(i.values[0])}`:`Opzione non valida: atteso uno tra ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${o}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${o}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;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}`:`Input non valido: ${n[o.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${w(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function cS(){return{localeError:LD()}}var PD=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(i){return e[i]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},r={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${A(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(i.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(i.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function sS(){return{localeError:PD()}}var FD=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(i){return e[i]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},r={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${i.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return i.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${A(i.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${w(i.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${i.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${i.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${i.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function uS(){return{localeError:FD()}}var VD=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(i){return e[i]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},r={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${A(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function ks(){return{localeError:VD()}}function dS(){return ks()}var qD=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${A(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(i.origin),c=l?.unit??"\uC694\uC18C";return l?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${c} ${o}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${o}${a}`}case"too_small":{let o=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(i.origin),c=l?.unit??"\uC694\uC18C";return l?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${c} ${o}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function fS(){return{localeError:qD()}}var hl=e=>e.charAt(0).toUpperCase()+e.slice(1);function mS(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?"many":n===1?"one":"few"}var HD=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(i,o,a,l){let c=e[i]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[l][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},r={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${i.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${o}`}case"invalid_value":return i.values.length===1?`Privalo b\u016Bti ${A(i.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${w(i.values,"|")} pasirinkim\u0173`;case"too_big":{let o=r[i.origin]??i.origin,a=t(i.origin,mS(Number(i.maximum)),i.inclusive??!1,"smaller");if(a?.verb)return`${hl(o??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.maximum.toString()} ${a.unit??"element\u0173"}`;let l=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${hl(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${i.maximum.toString()} ${a?.unit}`}case"too_small":{let o=r[i.origin]??i.origin,a=t(i.origin,mS(Number(i.minimum)),i.inclusive??!1,"bigger");if(a?.verb)return`${hl(o??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.minimum.toString()} ${a.unit??"element\u0173"}`;let l=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${hl(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${i.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??i.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${w(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=r[i.origin]??i.origin;return`${hl(o??i.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function pS(){return{localeError:HD()}}var GD=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(i){return e[i]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},r={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${A(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function hS(){return{localeError:GD()}}var YD=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${l}`:`Input tidak sah: dijangka ${o}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${A(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function gS(){return{localeError:YD()}}var JD=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(i){return e[i]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},r={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${o}, ontving ${l}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${A(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} is`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} is`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function vS(){return{localeError:JD()}}var XD=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(i){return e[i]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${l}`:`Ugyldig input: forventet ${o}, fikk ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${A(i.values[0])}`:`Ugyldig valg: forventet en av ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function yS(){return{localeError:XD()}}var KD=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`F\xE2sit giren: umulan instanceof ${i.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${l}`}case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${A(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=i;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function bS(){return{localeError:KD()}}var QD=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(i){return e[i]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${A(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0648\u064A`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function xS(){return{localeError:QD()}}var WD=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(i){return e[i]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},r={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${i.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${l}`}case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${A(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function SS(){return{localeError:WD()}}var eI=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",number:"n\xFAmero",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Tipo inv\xE1lido: esperado instanceof ${i.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${A(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${o}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${o}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function kS(){return{localeError:eI()}}var tI=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(i){return e[i]??null}let n={regex:"intrare",email:"adres\u0103 de 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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},r={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${l}`}case"invalid_value":return i.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${A(i.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Prea mare: a\u0219teptat ca ${i.origin??"valoarea"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${i.origin??"valoarea"} s\u0103 fie ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Prea mic: a\u0219teptat ca ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${i.origin} s\u0103 fie ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${n[o.format]??i.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${i.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${w(i.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${i.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${i.origin}`;default:return"Intrare invalid\u0103"}}};function _S(){return{localeError:tI()}}function wS(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var nI=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${A(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),c=wS(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),c=wS(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function $S(){return{localeError:nI()}}var iI=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${i.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${l}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${A(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${o}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${o}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function zS(){return{localeError:iI()}}var rI=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(i){return e[i]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${i.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${l}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${A(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function TS(){return{localeError:rI()}}var oI=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(i){return e[i]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${A(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${w(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${o}${i.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${o}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function CS(){return{localeError:oI()}}var aI=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(i){return e[i]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},r={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${A(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(i.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(i.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${w(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function ES(){return{localeError:aI()}}var lI=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${i.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${l}`}case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${A(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function DS(){return{localeError:lI()}}var cI=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${A(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function _s(){return{localeError:cI()}}function IS(){return _s()}var sI=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(i){return e[i]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},r={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${A(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${o}${i.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${o}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function AS(){return{localeError:sI()}}var uI=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(i){return e[i]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${l}`}case"invalid_value":return i.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${A(i.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??i.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${i.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${i.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function jS(){return{localeError:uI()}}var dI=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(i){return e[i]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},r={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${A(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function OS(){return{localeError:dI()}}var fI=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(i){return e[i]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},r={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${A(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function US(){return{localeError:fI()}}var mI=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(i){return e[i]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${i.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${A(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function NS(){return{localeError:mI()}}var pI=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(i){return e[i]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},r={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${i.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return i.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${A(i.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin??"iye"} ${a.verb} ${o}${i.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.maximum}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin} ${a.verb} ${o}${i.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.minimum}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??i.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${i.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${w(i.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function RS(){return{localeError:pI()}}var MS,uh=Symbol("ZodOutput"),dh=Symbol("ZodInput"),ws=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function $s(){return new ws}(MS=globalThis).__zod_globalRegistry??(MS.__zod_globalRegistry=$s());var Ct=globalThis.__zod_globalRegistry;function fh(e,t){return new e({type:"string",...M(t)})}function mh(e,t){return new e({type:"string",coerce:!0,...M(t)})}function zs(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function vl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function Ts(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function Cs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function Es(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function Ds(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function yl(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function Is(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function As(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function js(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function Os(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function Us(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function Ns(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function Rs(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function Ms(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function Bs(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function ph(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...M(t)})}function Zs(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function Ls(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function Ps(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function Fs(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function Vs(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function qs(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}var hh={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function gh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function vh(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function yh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function bh(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function xh(e,t){return new e({type:"number",checks:[],...M(t)})}function Sh(e,t){return new e({type:"number",coerce:!0,checks:[],...M(t)})}function kh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function _h(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...M(t)})}function wh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...M(t)})}function $h(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...M(t)})}function zh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...M(t)})}function Th(e,t){return new e({type:"boolean",...M(t)})}function Ch(e,t){return new e({type:"boolean",coerce:!0,...M(t)})}function Eh(e,t){return new e({type:"bigint",...M(t)})}function Dh(e,t){return new e({type:"bigint",coerce:!0,...M(t)})}function Ih(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M(t)})}function Ah(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M(t)})}function jh(e,t){return new e({type:"symbol",...M(t)})}function Oh(e,t){return new e({type:"undefined",...M(t)})}function Uh(e,t){return new e({type:"null",...M(t)})}function Nh(e){return new e({type:"any"})}function Rh(e){return new e({type:"unknown"})}function Mh(e,t){return new e({type:"never",...M(t)})}function Bh(e,t){return new e({type:"void",...M(t)})}function Zh(e,t){return new e({type:"date",...M(t)})}function Lh(e,t){return new e({type:"date",coerce:!0,...M(t)})}function Ph(e,t){return new e({type:"nan",...M(t)})}function Wn(e,t){return new us({check:"less_than",...M(t),value:e,inclusive:!1})}function pn(e,t){return new us({check:"less_than",...M(t),value:e,inclusive:!0})}function ei(e,t){return new ds({check:"greater_than",...M(t),value:e,inclusive:!1})}function Ht(e,t){return new ds({check:"greater_than",...M(t),value:e,inclusive:!0})}function Hs(e){return ei(0,e)}function Gs(e){return Wn(0,e)}function Ys(e){return pn(0,e)}function Js(e){return Ht(0,e)}function Ki(e,t){return new Um({check:"multiple_of",...M(t),value:e})}function Qi(e,t){return new Mm({check:"max_size",...M(t),maximum:e})}function ti(e,t){return new Bm({check:"min_size",...M(t),minimum:e})}function Br(e,t){return new Zm({check:"size_equals",...M(t),size:e})}function Zr(e,t){return new Lm({check:"max_length",...M(t),maximum:e})}function Si(e,t){return new Pm({check:"min_length",...M(t),minimum:e})}function Lr(e,t){return new Fm({check:"length_equals",...M(t),length:e})}function $o(e,t){return new Vm({check:"string_format",format:"regex",...M(t),pattern:e})}function zo(e){return new qm({check:"string_format",format:"lowercase",...M(e)})}function To(e){return new Hm({check:"string_format",format:"uppercase",...M(e)})}function Co(e,t){return new Gm({check:"string_format",format:"includes",...M(t),includes:e})}function Eo(e,t){return new Ym({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Do(e,t){return new Jm({check:"string_format",format:"ends_with",...M(t),suffix:e})}function Xs(e,t,n){return new Xm({check:"property",property:e,schema:t,...M(n)})}function Io(e,t){return new Km({check:"mime_type",mime:e,...M(t)})}function Yn(e){return new Qm({check:"overwrite",tx:e})}function Ao(e){return Yn(t=>t.normalize(e))}function jo(){return Yn(e=>e.trim())}function Oo(){return Yn(e=>e.toLowerCase())}function Uo(){return Yn(e=>e.toUpperCase())}function No(){return Yn(e=>Yf(e))}function Fh(e,t,n){return new e({type:"array",element:t,...M(n)})}function gI(e,t,n){return new e({type:"union",options:t,...M(n)})}function vI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...M(n)})}function yI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...M(r)})}function bI(e,t,n){return new e({type:"intersection",left:t,right:n})}function xI(e,t,n,r){let i=n instanceof ae,o=i?r:n,a=i?n:null;return new e({type:"tuple",items:t,rest:a,...M(o)})}function SI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...M(r)})}function kI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...M(r)})}function _I(e,t,n){return new e({type:"set",valueType:t,...M(n)})}function wI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:r,...M(n)})}function $I(e,t,n){return new e({type:"enum",entries:t,...M(n)})}function zI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...M(n)})}function Vh(e,t){return new e({type:"file",...M(t)})}function TI(e,t){return new e({type:"transform",transform:t})}function CI(e,t){return new e({type:"optional",innerType:t})}function EI(e,t){return new e({type:"nullable",innerType:t})}function DI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Xf(n)}})}function II(e,t,n){return new e({type:"nonoptional",innerType:t,...M(n)})}function AI(e,t){return new e({type:"success",innerType:t})}function jI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function OI(e,t,n){return new e({type:"pipe",in:t,out:n})}function UI(e,t){return new e({type:"readonly",innerType:t})}function NI(e,t,n){return new e({type:"template_literal",parts:t,...M(n)})}function RI(e,t){return new e({type:"lazy",getter:t})}function MI(e,t){return new e({type:"promise",innerType:t})}function qh(e,t,n){let r=M(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function Hh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Gh(e,t){let n=BS(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(yo(i,r.value,n._zod.def));else{let o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(yo(o))}},e(r.value,r)),t);return n}function BS(e,t){let n=new Fe({check:"custom",...M(t)});return n._zod.check=e,n}function Yh(e){let t=new Fe({check:"describe"});return t._zod.onattach=[n=>{let r=Ct.get(n)??{};Ct.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Jh(e){let t=new Fe({check:"meta"});return t._zod.onattach=[n=>{let r=Ct.get(n)??{};Ct.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Xh(e,t){let n=M(t),r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),i=i.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(r),a=new Set(i),l=e.Codec??pl,c=e.Boolean??fl,u=e.String??Mr,d=new u({type:"string",error:n.error}),m=new c({type:"boolean",error:n.error}),p=new l({type:"pipe",in:d,out:m,transform:((f,x)=>{let _=f;return n.case!=="sensitive"&&(_=_.toLowerCase()),o.has(_)?!0:a.has(_)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:x.value,inst:p,continue:!1}),{})}),reverseTransform:((f,x)=>f===!0?r[0]||"true":i[0]||"false"),error:n.error});return p}function Ro(e,t,n,r={}){let i=M(r),o={...M(r),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:l=>n.test(l),...i};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Wi(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??Ct,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 Ae(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let p=a.schema,f=t.processors[i.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);f(e,t,p,d)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),Ae(m,t,d),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Gt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function er(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let c=r.get(l);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(l,a[0])}}let i=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,p=e.external.uri??(x=>x);if(m)return{ref:p(m)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${l}/${f}`}}if(a[1]===n)return{ref:"#"};let u=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+d}},o=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:c,defId:u}=i(a);l.def={...l.schema},u&&(l.defId=u);let d=l.schema;for(let m in d)delete d[m];d.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
72
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");let y=f.compile();return(b,v)=>y(h,b,v)},o,a=Jr,l=!Yr.jitless,u=l&&pm.value,d=t.catchall,m;e._zod.parse=(h,f)=>{m??(m=r.value);let x=h.value;return a(x)?l&&u&&f?.async===!1&&f.jitless!==!0?(o||(o=i(t.shape)),h=o(h,f),d?l0([],x,h,f,m,e):h):n(h,f):(h.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),h)}});function qS(e,t,n,r){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let i=e.filter(o=>!or(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Yt(a,r,ut())))}),t)}var Dl=_("$ZodUnion",(e,t)=>{ue.init(e,t),be(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),be(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),be(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),be(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>xl(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let l of t.options){let s=l._zod.run({value:r.value,issues:[]},i);if(s instanceof Promise)a.push(s),o=!0;else{if(s.issues.length===0)return s;a.push(s)}}return o?Promise.all(a).then(l=>qS(l,r,e,i)):qS(a,r,e,i)}});function HS(e,t,n,r){let i=e.filter(o=>o.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Yt(a,r,ut())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var op=_("$ZodXor",(e,t)=>{Dl.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let l of t.options){let s=l._zod.run({value:r.value,issues:[]},i);s instanceof Promise?(a.push(s),o=!0):a.push(s)}return o?Promise.all(a).then(l=>HS(l,r,e,i)):HS(a,r,e,i)}}),ap=_("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Dl.init(e,t);let n=e._zod.parse;be(e._zod,"propValues",()=>{let i={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,s]of Object.entries(a)){i[l]||(i[l]=new Set);for(let u of s)i[l].add(u)}}return i});let r=Do(()=>{let i=t.options,o=new Map;for(let a of i){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let s of l){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,a)}}return o});e._zod.parse=(i,o)=>{let a=i.value;if(!Jr(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let l=r.value.get(a?.[t.discriminator]);return l?l._zod.run(i,o):t.unionFallback||o.direction==="backward"?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:a,path:[t.discriminator],inst:e}),i)}}),lp=_("$ZodIntersection",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value,o=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([s,u])=>GS(n,s,u)):GS(n,o,a)}});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(rr(e)&&rr(t)){let n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(let o of r){let a=xh(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t[r],a=xh(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function GS(e,t,n){let r=new Map,i;for(let l of t.issues)if(l.code==="unrecognized_keys"){i??(i=l);for(let s of l.keys)r.has(s)||r.set(s,{}),r.get(s).l=!0}else e.issues.push(l);for(let l of n.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);let o=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&i&&e.issues.push({...i,keys:o}),or(e))return e;let a=xh(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Rc=_("$ZodTuple",(e,t)=>{ue.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let a=[],l=YS(n,"optin"),s=YS(n,"optout");if(!t.rest){if(o.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:o,inst:e,origin:"array"}),r;o.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:e,origin:"array"})}let u=new Array(n.length);for(let d=0;d<n.length;d++){let m=n[d]._zod.run({value:o[d],issues:[]},i);m instanceof Promise?a.push(m.then(h=>{u[d]=h})):u[d]=m}if(t.rest){let d=n.length-1,m=o.slice(n.length);for(let h of m){d++;let f=t.rest._zod.run({value:h,issues:[]},i);f instanceof Promise?a.push(f.then(x=>JS(x,r,d))):JS(f,r,d)}}return a.length?Promise.all(a).then(()=>XS(u,r,n,o,s)):XS(u,r,n,o,s)}});function YS(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function JS(e,t,n){e.issues.length&&t.issues.push(...rn(n,e.issues)),t.value[n]=e.value}function XS(e,t,n,r,i){for(let o=0;o<n.length;o++){let a=e[o],l=o<r.length;if(a.issues.length){if(!l&&o>=i){t.value.length=o;break}t.issues.push(...rn(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=r.length&&(n[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var sp=_("$ZodRecord",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!rr(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(f=>Yt(f,r,ut())),input:u,path:[u],inst:e});continue}let m=d.value,h=t.valueType._zod.run({value:i[u],issues:[]},r);h instanceof Promise?o.push(h.then(f=>{f.issues.length&&n.issues.push(...rn(u,f.issues)),n.value[m]=f.value})):(h.issues.length&&n.issues.push(...rn(u,h.issues)),n.value[m]=h.value)}let s;for(let u in i)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{n.value={};for(let l of Reflect.ownKeys(i)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Cc.test(l)&&s.issues.length){let m=t.keyType._zod.run({value:Number(l),issues:[]},r);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(s=m)}if(s.issues.length){t.mode==="loose"?n.value[l]=i[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(m=>Yt(m,r,ut())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:i[l],issues:[]},r);d instanceof Promise?o.push(d.then(m=>{m.issues.length&&n.issues.push(...rn(l,m.issues)),n.value[s.value]=m.value})):(d.issues.length&&n.issues.push(...rn(l,d.issues)),n.value[s.value]=d.value)}}return o.length?Promise.all(o).then(()=>n):n}}),cp=_("$ZodMap",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let o=[];n.value=new Map;for(let[a,l]of i){let s=t.keyType._zod.run({value:a,issues:[]},r),u=t.valueType._zod.run({value:l,issues:[]},r);s instanceof Promise||u instanceof Promise?o.push(Promise.all([s,u]).then(([d,m])=>{KS(d,m,n,a,i,e,r)})):KS(s,u,n,a,i,e,r)}return o.length?Promise.all(o).then(()=>n):n}});function KS(e,t,n,r,i,o,a){e.issues.length&&(Sl.has(typeof r)?n.issues.push(...rn(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(l=>Yt(l,a,ut()))})),t.issues.length&&(Sl.has(typeof r)?n.issues.push(...rn(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:r,issues:t.issues.map(l=>Yt(l,a,ut()))})),n.value.set(e.value,t.value)}var up=_("$ZodSet",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of i){let l=t.valueType._zod.run({value:a,issues:[]},r);l instanceof Promise?o.push(l.then(s=>WS(s,n))):WS(l,n)}return o.length?Promise.all(o).then(()=>n):n}});function WS(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var dp=_("$ZodEnum",(e,t)=>{ue.init(e,t);let n=bl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Sl.has(typeof i)).map(i=>typeof i=="string"?Nn(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:n,input:a,inst:e}),i}}),fp=_("$ZodLiteral",(e,t)=>{if(ue.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Nn(r):r?Nn(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),mp=_("$ZodFile",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return i instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),n}}),hp=_("$ZodTransform",(e,t)=>{ue.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new tr(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n.fallback=!0,n));if(i instanceof Promise)throw new Wn;return n.value=i,n.fallback=!0,n}});function QS(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Mc=_("$ZodOptional",(e,t)=>{ue.init(e,t),e._zod.optin="optional",e._zod.optout="optional",be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),be(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${xl(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){let i=n.value,o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>QS(a,i)):QS(o,i)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),pp=_("$ZodExactOptional",(e,t)=>{Mc.init(e,t),be(e._zod,"values",()=>t.innerType._zod.values),be(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),gp=_("$ZodNullable",(e,t)=>{ue.init(e,t),be(e._zod,"optin",()=>t.innerType._zod.optin),be(e._zod,"optout",()=>t.innerType._zod.optout),be(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${xl(n.source)}|null)$`):void 0}),be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),yp=_("$ZodDefault",(e,t)=>{ue.init(e,t),e._zod.optin="optional",be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>e0(o,t)):e0(i,t)}});function e0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var vp=_("$ZodPrefault",(e,t)=>{ue.init(e,t),e._zod.optin="optional",be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),bp=_("$ZodNonOptional",(e,t)=>{ue.init(e,t),be(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>t0(o,e)):t0(i,e)}});function t0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var xp=_("$ZodSuccess",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new tr("ZodSuccess");let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.issues.length===0,n)):(n.value=i.issues.length===0,n)}}),Sp=_("$ZodCatch",(e,t)=>{ue.init(e,t),e._zod.optin="optional",be(e._zod,"optout",()=>t.innerType._zod.optout),be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Yt(a,r,ut()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Yt(o,r,ut()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),kp=_("$ZodNaN",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Bc=_("$ZodPipe",(e,t)=>{ue.init(e,t),be(e._zod,"values",()=>t.in._zod.values),be(e._zod,"optin",()=>t.in._zod.optin),be(e._zod,"optout",()=>t.out._zod.optout),be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>Dc(a,t.in,r)):Dc(o,t.in,r)}let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>Dc(o,t.out,r)):Dc(i,t.out,r)}});function Dc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Al=_("$ZodCodec",(e,t)=>{ue.init(e,t),be(e._zod,"values",()=>t.in._zod.values),be(e._zod,"optin",()=>t.in._zod.optin),be(e._zod,"optout",()=>t.out._zod.optout),be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>Ac(a,t,r)):Ac(o,t,r)}else{let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>Ac(a,t,r)):Ac(o,t,r)}}});function Ac(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let i=t.transform(e.value,e);return i instanceof Promise?i.then(o=>jc(e,o,t.out,n)):jc(e,i,t.out,n)}else{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(o=>jc(e,o,t.in,n)):jc(e,i,t.in,n)}}function jc(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var _p=_("$ZodPreprocess",(e,t)=>{Bc.init(e,t)}),wp=_("$ZodReadonly",(e,t)=>{ue.init(e,t),be(e._zod,"propValues",()=>t.innerType._zod.propValues),be(e._zod,"values",()=>t.innerType._zod.values),be(e._zod,"optin",()=>t.innerType?._zod?.optin),be(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(n0):n0(i)}});function n0(e){return e.value=Object.freeze(e.value),e}var $p=_("$ZodTemplateLiteral",(e,t)=>{ue.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);let i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);let o=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;n.push(i.slice(o,a))}else if(r===null||ym.has(typeof r))n.push(Nn(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),zp=_("$ZodFunction",(e,t)=>(ue.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){let i=e._def.input?yc(e._def.input,r):r,o=Reflect.apply(n,this,i);return e._def.output?yc(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){let i=e._def.input?await vc(e._def.input,r):r,o=await Reflect.apply(n,this,i);return e._def.output?await vc(e._def.output,o):o}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Rc({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),Tp=_("$ZodPromise",(e,t)=>{ue.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(i=>t.innerType._zod.run({value:i,issues:[]},r))}),Cp=_("$ZodLazy",(e,t)=>{ue.init(e,t),be(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),be(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),be(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),be(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),be(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Ep=_("$ZodCustom",(e,t)=>{qe.init(e,t),ue.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>i0(o,n,r,e));i0(i,n,r,e)}});function i0(e,t,n,r){if(!e){let i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Ao(i))}}var Ol={};$i(Ol,{ar:()=>c0,az:()=>u0,be:()=>f0,bg:()=>m0,ca:()=>h0,cs:()=>p0,da:()=>g0,de:()=>y0,el:()=>v0,en:()=>Zc,eo:()=>b0,es:()=>x0,fa:()=>S0,fi:()=>k0,fr:()=>_0,frCA:()=>w0,he:()=>$0,hr:()=>z0,hu:()=>T0,hy:()=>E0,id:()=>I0,is:()=>D0,it:()=>A0,ja:()=>j0,ka:()=>O0,kh:()=>U0,km:()=>Lc,ko:()=>N0,lt:()=>M0,mk:()=>B0,ms:()=>Z0,nl:()=>L0,no:()=>P0,ota:()=>F0,pl:()=>q0,ps:()=>V0,pt:()=>H0,ro:()=>G0,ru:()=>J0,sl:()=>X0,sv:()=>K0,ta:()=>W0,th:()=>Q0,tr:()=>ek,ua:()=>tk,uk:()=>Pc,ur:()=>nk,uz:()=>ik,vi:()=>rk,yo:()=>lk,zhCN:()=>ok,zhTW:()=>ak});var XI=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(i){return e[i]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${j(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function c0(){return{localeError:XI()}}var KI=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${i.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${l}`}case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${j(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function u0(){return{localeError:KI()}}function d0(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var WI=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(i){return e[i]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},r={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${j(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),s=d0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${i.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),s=d0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${i.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function f0(){return{localeError:WI()}}var QI=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${j(i.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${i.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u043E\u0432\u0435":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function m0(){return{localeError:QI()}}var eD=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${i.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${l}`}case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${j(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(i.values," o ")}`;case"too_big":{let o=i.inclusive?"com a m\xE0xim":"menys de",a=t(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${o} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${o} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function h0(){return{localeError:eD()}}var tD=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(i){return e[i]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${i.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${l}`}case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${j(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function p0(){return{localeError:tD()}}var nD=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(i){return e[i]??null}let n={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",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"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${l}`:`Ugyldigt input: forventede ${o}, fik ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${j(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${o} ${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`For lille: forventede ${l} ${a.verb} ${o} ${i.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}};function g0(){return{localeError:nD()}}var iD=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){return e[i]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},r={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${i.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${l}`}case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${j(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ist`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ist`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function y0(){return{localeError:iD()}}var rD=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(i){return e[i]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return typeof i.expected=="string"&&/^[A-Z]/.test(i.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${i.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return i.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${j(i.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${i.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${i.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[o.format]??i.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${i.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${i.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${i.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${i.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${i.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function v0(){return{localeError:rD()}}var oD=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return`Invalid input: expected ${o}, received ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${j(i.values[0])}`:`Invalid option: expected one of ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Zc(){return{localeError:oD()}}var aD=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${i.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${l}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${j(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${o}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function b0(){return{localeError:aD()}}var lD=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){return e[i]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${i.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${j(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${o}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${o}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r[i.origin]??i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r[i.origin]??i.origin}`;default:return"Entrada inv\xE1lida"}}};function x0(){return{localeError:lD()}}var sD=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(i){return e[i]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${j(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${w(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function S0(){return{localeError:sD()}}var cD=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(i){return e[i]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${l}`}case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${j(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function k0(){return{localeError:cD()}}var uD=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},r={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : instanceof ${i.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${l} re\xE7u`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${j(i.values[0])} attendu`:`Option invalide : une valeur parmi ${w(i.values,"|")} attendue`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Trop grand : ${r[i.origin]??"valeur"} doit ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r[i.origin]??"valeur"} doit \xEAtre ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Trop petit : ${r[i.origin]??"valeur"} doit ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${r[i.origin]??"valeur"} doit \xEAtre ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function _0(){return{localeError:uD()}}var dD=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : attendu instanceof ${i.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${l}`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${j(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u2264":"<",a=t(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${o}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u2265":">",a=t(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function w0(){return{localeError:dD()}}var fD=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=u=>u?e[u]:void 0,r=u=>{let d=n(u);return d?d.label:u??e.unknown.label},i=u=>`\u05D4${r(u)}`,o=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",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:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let d=u.expected,m=s[d??""]??r(d),h=U(u.input),f=s[h]??e[h]?.label??h;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${j(u.values[0])}`;let d=u.values.map(f=>j(f));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let m=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let d=a(u.origin),m=i(u.origin??"value");if(u.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let x=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(u.origin==="array"||u.origin==="set"){let x=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",k=u.inclusive?`${u.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`.trim()}let h=u.inclusive?"<=":"<",f=o(u.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${h}${u.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${f} ${h}${u.maximum.toString()}`}case"too_small":{let d=a(u.origin),m=i(u.origin??"value");if(u.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let x=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(u.origin==="array"||u.origin==="set"){let x=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let N=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${N}`}let k=u.inclusive?`${u.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`.trim()}let h=u.inclusive?">=":">",f=o(u.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${h}${u.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${f} ${h}${u.minimum.toString()}`}case"invalid_format":{let d=u;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let m=l[d.format],h=m?.label??d.format,x=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${x}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function $0(){return{localeError:fD()}}var mD=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(i){return e[i]??null}let n={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},r={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${i.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${l}`}case"invalid_value":return i.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${j(i.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${o}${i.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${o}${i.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${n[o.format]??i.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${i.divisor}`;case"unrecognized_keys":return`Neprepoznat${i.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${r[i.origin]??i.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${r[i.origin]??i.origin}`;default:return"Neispravan unos"}}};function z0(){return{localeError:mD()}}var hD=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${i.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${j(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${o}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function T0(){return{localeError:hD()}}function C0(e,t,n){return Math.abs(e)===1?t:n}function Mo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var pD=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(i){return e[i]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},r={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${i.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return i.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${j(i.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),s=C0(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mo(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mo(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),s=C0(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mo(i.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Mo(i.origin)} \u056C\u056B\u0576\u056B ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??i.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${i.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${i.keys.length>1?"\u0576\u0565\u0580":""}. ${w(i.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Mo(i.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Mo(i.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function E0(){return{localeError:pD()}}var gD=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${o}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${j(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function I0(){return{localeError:gD()}}var yD=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(i){return e[i]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"n\xFAmer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${i.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${j(i.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} hafi ${o}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} s\xE9 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} hafi ${o}${i.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} s\xE9 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??i.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${w(i.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${i.origin}`;default:return"Rangt gildi"}}};function D0(){return{localeError:yD()}}var vD=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${l}`:`Input non valido: atteso ${o}, ricevuto ${l}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${j(i.values[0])}`:`Opzione non valida: atteso uno tra ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${o}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${o}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;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}`:`Input non valido: ${n[o.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${w(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function A0(){return{localeError:vD()}}var bD=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(i){return e[i]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},r={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${j(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(i.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(i.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function j0(){return{localeError:bD()}}var xD=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(i){return e[i]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},r={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${i.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return i.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${j(i.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${w(i.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${i.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${i.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${i.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function O0(){return{localeError:xD()}}var SD=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(i){return e[i]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},r={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${j(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Lc(){return{localeError:SD()}}function U0(){return Lc()}var kD=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${j(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(i.origin),s=l?.unit??"\uC694\uC18C";return l?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${s} ${o}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${o}${a}`}case"too_small":{let o=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(i.origin),s=l?.unit??"\uC694\uC18C";return l?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${s} ${o}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function N0(){return{localeError:kD()}}var jl=e=>e.charAt(0).toUpperCase()+e.slice(1);function R0(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?"many":n===1?"one":"few"}var _D=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(i,o,a,l){let s=e[i]??null;return s===null?s:{unit:s.unit[o],verb:s.verb[l][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},r={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${i.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${o}`}case"invalid_value":return i.values.length===1?`Privalo b\u016Bti ${j(i.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${w(i.values,"|")} pasirinkim\u0173`;case"too_big":{let o=r[i.origin]??i.origin,a=t(i.origin,R0(Number(i.maximum)),i.inclusive??!1,"smaller");if(a?.verb)return`${jl(o??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.maximum.toString()} ${a.unit??"element\u0173"}`;let l=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${jl(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${i.maximum.toString()} ${a?.unit}`}case"too_small":{let o=r[i.origin]??i.origin,a=t(i.origin,R0(Number(i.minimum)),i.inclusive??!1,"bigger");if(a?.verb)return`${jl(o??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.minimum.toString()} ${a.unit??"element\u0173"}`;let l=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${jl(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${i.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??i.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${w(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=r[i.origin]??i.origin;return`${jl(o??i.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function M0(){return{localeError:_D()}}var wD=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(i){return e[i]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},r={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${j(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function B0(){return{localeError:wD()}}var $D=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${l}`:`Input tidak sah: dijangka ${o}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${j(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function Z0(){return{localeError:$D()}}var zD=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(i){return e[i]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},r={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${o}, ontving ${l}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${j(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} is`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} is`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function L0(){return{localeError:zD()}}var TD=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(i){return e[i]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${l}`:`Ugyldig input: forventet ${o}, fikk ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${j(i.values[0])}`:`Ugyldig valg: forventet en av ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function P0(){return{localeError:TD()}}var CD=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`F\xE2sit giren: umulan instanceof ${i.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${l}`}case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${j(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=i;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function F0(){return{localeError:CD()}}var ED=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(i){return e[i]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${j(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0648\u064A`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function V0(){return{localeError:ED()}}var ID=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(i){return e[i]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},r={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${i.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${l}`}case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${j(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function q0(){return{localeError:ID()}}var DD=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",number:"n\xFAmero",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Tipo inv\xE1lido: esperado instanceof ${i.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${j(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${o}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${o}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function H0(){return{localeError:DD()}}var AD=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(i){return e[i]??null}let n={regex:"intrare",email:"adres\u0103 de 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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},r={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${l}`}case"invalid_value":return i.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${j(i.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Prea mare: a\u0219teptat ca ${i.origin??"valoarea"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${i.origin??"valoarea"} s\u0103 fie ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Prea mic: a\u0219teptat ca ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${i.origin} s\u0103 fie ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${n[o.format]??i.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${i.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${w(i.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${i.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${i.origin}`;default:return"Intrare invalid\u0103"}}};function G0(){return{localeError:AD()}}function Y0(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var jD=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${j(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),s=Y0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),s=Y0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function J0(){return{localeError:jD()}}var OD=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${i.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${l}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${j(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${o}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${o}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function X0(){return{localeError:OD()}}var UD=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(i){return e[i]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${i.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${l}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${j(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function K0(){return{localeError:UD()}}var ND=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(i){return e[i]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${j(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${w(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${o}${i.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${o}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function W0(){return{localeError:ND()}}var RD=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(i){return e[i]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},r={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${j(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(i.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(i.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${w(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Q0(){return{localeError:RD()}}var MD=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${i.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${l}`}case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${j(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function ek(){return{localeError:MD()}}var BD=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${j(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Pc(){return{localeError:BD()}}function tk(){return Pc()}var ZD=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(i){return e[i]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},r={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${j(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${o}${i.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${o}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function nk(){return{localeError:ZD()}}var LD=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(i){return e[i]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${l}`}case"invalid_value":return i.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${j(i.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??i.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${i.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${i.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function ik(){return{localeError:LD()}}var PD=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(i){return e[i]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},r={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${j(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function rk(){return{localeError:PD()}}var FD=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(i){return e[i]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},r={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${j(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function ok(){return{localeError:FD()}}var VD=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(i){return e[i]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${i.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${j(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function ak(){return{localeError:VD()}}var qD=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(i){return e[i]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},r={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${i.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return i.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${j(i.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${w(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin??"iye"} ${a.verb} ${o}${i.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.maximum}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin} ${a.verb} ${o}${i.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.minimum}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??i.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${i.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${w(i.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function lk(){return{localeError:qD()}}var sk,Ip=Symbol("ZodOutput"),Dp=Symbol("ZodInput"),Fc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Vc(){return new Fc}(sk=globalThis).__zod_globalRegistry??(sk.__zod_globalRegistry=Vc());var At=globalThis.__zod_globalRegistry;function Ap(e,t){return new e({type:"string",...L(t)})}function jp(e,t){return new e({type:"string",coerce:!0,...L(t)})}function qc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...L(t)})}function Ul(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...L(t)})}function Hc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...L(t)})}function Gc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(t)})}function Yc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(t)})}function Jc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(t)})}function Nl(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}function Xc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...L(t)})}function Kc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(t)})}function Wc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...L(t)})}function Qc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(t)})}function eu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...L(t)})}function tu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...L(t)})}function nu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(t)})}function iu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(t)})}function ru(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(t)})}function Op(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...L(t)})}function ou(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(t)})}function au(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(t)})}function lu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...L(t)})}function su(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...L(t)})}function cu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...L(t)})}function uu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...L(t)})}var Up={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Np(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(t)})}function Rp(e,t){return new e({type:"string",format:"date",check:"string_format",...L(t)})}function Mp(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...L(t)})}function Bp(e,t){return new e({type:"string",format:"duration",check:"string_format",...L(t)})}function Zp(e,t){return new e({type:"number",checks:[],...L(t)})}function Lp(e,t){return new e({type:"number",coerce:!0,checks:[],...L(t)})}function Pp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...L(t)})}function Fp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...L(t)})}function Vp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...L(t)})}function qp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...L(t)})}function Hp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...L(t)})}function Gp(e,t){return new e({type:"boolean",...L(t)})}function Yp(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}function Jp(e,t){return new e({type:"bigint",...L(t)})}function Xp(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}function Kp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(t)})}function Wp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(t)})}function Qp(e,t){return new e({type:"symbol",...L(t)})}function eg(e,t){return new e({type:"undefined",...L(t)})}function tg(e,t){return new e({type:"null",...L(t)})}function ng(e){return new e({type:"any"})}function ig(e){return new e({type:"unknown"})}function rg(e,t){return new e({type:"never",...L(t)})}function og(e,t){return new e({type:"void",...L(t)})}function ag(e,t){return new e({type:"date",...L(t)})}function lg(e,t){return new e({type:"date",coerce:!0,...L(t)})}function sg(e,t){return new e({type:"nan",...L(t)})}function ai(e,t){return new Ec({check:"less_than",...L(t),value:e,inclusive:!1})}function vn(e,t){return new Ec({check:"less_than",...L(t),value:e,inclusive:!0})}function li(e,t){return new Ic({check:"greater_than",...L(t),value:e,inclusive:!1})}function Jt(e,t){return new Ic({check:"greater_than",...L(t),value:e,inclusive:!0})}function du(e){return li(0,e)}function fu(e){return ai(0,e)}function mu(e){return vn(0,e)}function hu(e){return Jt(0,e)}function ar(e,t){return new th({check:"multiple_of",...L(t),value:e})}function lr(e,t){return new rh({check:"max_size",...L(t),maximum:e})}function si(e,t){return new oh({check:"min_size",...L(t),minimum:e})}function Wr(e,t){return new ah({check:"size_equals",...L(t),size:e})}function Qr(e,t){return new lh({check:"max_length",...L(t),maximum:e})}function Ti(e,t){return new sh({check:"min_length",...L(t),minimum:e})}function eo(e,t){return new ch({check:"length_equals",...L(t),length:e})}function Bo(e,t){return new uh({check:"string_format",format:"regex",...L(t),pattern:e})}function Zo(e){return new dh({check:"string_format",format:"lowercase",...L(e)})}function Lo(e){return new fh({check:"string_format",format:"uppercase",...L(e)})}function Po(e,t){return new mh({check:"string_format",format:"includes",...L(t),includes:e})}function Fo(e,t){return new hh({check:"string_format",format:"starts_with",...L(t),prefix:e})}function Vo(e,t){return new ph({check:"string_format",format:"ends_with",...L(t),suffix:e})}function pu(e,t,n){return new gh({check:"property",property:e,schema:t,...L(n)})}function qo(e,t){return new yh({check:"mime_type",mime:e,...L(t)})}function Qn(e){return new vh({check:"overwrite",tx:e})}function Ho(e){return Qn(t=>t.normalize(e))}function Go(){return Qn(e=>e.trim())}function Yo(){return Qn(e=>e.toLowerCase())}function Jo(){return Qn(e=>e.toUpperCase())}function Xo(){return Qn(e=>hm(e))}function cg(e,t,n){return new e({type:"array",element:t,...L(n)})}function GD(e,t,n){return new e({type:"union",options:t,...L(n)})}function YD(e,t,n){return new e({type:"union",options:t,inclusive:!1,...L(n)})}function JD(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...L(r)})}function XD(e,t,n){return new e({type:"intersection",left:t,right:n})}function KD(e,t,n,r){let i=n instanceof ue,o=i?r:n,a=i?n:null;return new e({type:"tuple",items:t,rest:a,...L(o)})}function WD(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...L(r)})}function QD(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...L(r)})}function eA(e,t,n){return new e({type:"set",valueType:t,...L(n)})}function tA(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:r,...L(n)})}function nA(e,t,n){return new e({type:"enum",entries:t,...L(n)})}function iA(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...L(n)})}function ug(e,t){return new e({type:"file",...L(t)})}function rA(e,t){return new e({type:"transform",transform:t})}function oA(e,t){return new e({type:"optional",innerType:t})}function aA(e,t){return new e({type:"nullable",innerType:t})}function lA(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():gm(n)}})}function sA(e,t,n){return new e({type:"nonoptional",innerType:t,...L(n)})}function cA(e,t){return new e({type:"success",innerType:t})}function uA(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function dA(e,t,n){return new e({type:"pipe",in:t,out:n})}function fA(e,t){return new e({type:"readonly",innerType:t})}function mA(e,t,n){return new e({type:"template_literal",parts:t,...L(n)})}function hA(e,t){return new e({type:"lazy",getter:t})}function pA(e,t){return new e({type:"promise",innerType:t})}function dg(e,t,n){let r=L(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function fg(e,t,n){return new e({type:"custom",check:"custom",fn:t,...L(n)})}function mg(e,t){let n=ck(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ao(i,r.value,n._zod.def));else{let o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(Ao(o))}},e(r.value,r)),t);return n}function ck(e,t){let n=new qe({check:"custom",...L(t)});return n._zod.check=e,n}function hg(e){let t=new qe({check:"describe"});return t._zod.onattach=[n=>{let r=At.get(n)??{};At.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function pg(e){let t=new qe({check:"meta"});return t._zod.onattach=[n=>{let r=At.get(n)??{};At.add(n,{...r,...e})}],t._zod.check=()=>{},t}function gg(e,t){let n=L(t),r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),i=i.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(r),a=new Set(i),l=e.Codec??Al,s=e.Boolean??Il,u=e.String??Kr,d=new u({type:"string",error:n.error}),m=new s({type:"boolean",error:n.error}),h=new l({type:"pipe",in:d,out:m,transform:((f,x)=>{let k=f;return n.case!=="sensitive"&&(k=k.toLowerCase()),o.has(k)?!0:a.has(k)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:x.value,inst:h,continue:!1}),{})}),reverseTransform:((f,x)=>f===!0?r[0]||"true":i[0]||"false"),error:n.error});return h}function Ko(e,t,n,r={}){let i=L(r),o={...L(r),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:l=>n.test(l),...i};return n instanceof RegExp&&(o.pattern=n),new e(o)}function sr(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??At,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 je(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let h=a.schema,f=t.processors[i.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);f(e,t,h,d)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),je(m,t,d),t.seen.get(m).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&Xt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function cr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=r.get(l);if(s&&s!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(l,a[0])}}let i=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,h=e.external.uri??(x=>x);if(m)return{ref:h(m)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${h("__shared")}#/${l}/${f}`}}if(a[1]===n)return{ref:"#"};let u=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+d}},o=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:u}=i(a);l.def={...l.schema},u&&(l.defId=u);let d=l.schema;for(let m in d)delete d[m];d.$ref=s};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
73
73
 
74
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(l.cycle){o(a);continue}if(l.count>1&&e.reused==="ref"){o(a);continue}}}function tr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=l=>{let c=e.seen.get(l);if(c.ref===null)return;let u=c.def??c.schema,d={...u},m=c.ref;if(c.ref=null,m){r(m);let f=e.seen.get(m),x=f.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(x)):Object.assign(u,x),Object.assign(u,d),l._zod.parent===m)for(let Z in u)Z==="$ref"||Z==="allOf"||Z in d||delete u[Z];if(x.$ref&&f.def)for(let Z in u)Z==="$ref"||Z==="allOf"||Z in f.def&&JSON.stringify(u[Z])===JSON.stringify(f.def[Z])&&delete u[Z]}let p=l._zod.parent;if(p&&p!==m){r(p);let f=e.seen.get(p);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let x in u)x==="$ref"||x==="allOf"||x in f.def&&JSON.stringify(u[x])===JSON.stringify(f.def[x])&&delete u[x]}e.override({zodSchema:l,jsonSchema:u,path:c.path??[]})};for(let l of[...e.seen.entries()].reverse())r(l[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&i.id===o&&delete i.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let c=l[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{let l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Mo(t,"input",e.processors),output:Mo(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function Gt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Gt(r.element,n);if(r.type==="set")return Gt(r.valueType,n);if(r.type==="lazy")return Gt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Gt(r.innerType,n);if(r.type==="intersection")return Gt(r.left,n)||Gt(r.right,n);if(r.type==="record"||r.type==="map")return Gt(r.keyType,n)||Gt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Gt(r.in,n)||Gt(r.out,n);if(r.type==="object"){for(let i in r.shape)if(Gt(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(let i of r.options)if(Gt(i,n))return!0;return!1}if(r.type==="tuple"){for(let i of r.items)if(Gt(i,n))return!0;return!!(r.rest&&Gt(r.rest,n))}return!1}var Kh=(e,t={})=>n=>{let r=Wi({...n,processors:t});return Ae(e,r),er(r,e),tr(r,e)},Mo=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r??{},a=Wi({...i??{},target:o,io:t,processors:n});return Ae(e,a),er(a,e),tr(a,e)};var BI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Qh=(e,t,n,r)=>{let i=n;i.type="string";let{minimum:o,maximum:a,format:l,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof a=="number"&&(i.maxLength=a),l&&(i.format=BI[l]??l,i.format===""&&delete i.format,l==="time"&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){let d=[...c];d.length===1?i.pattern=d[0].source:d.length>1&&(i.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Wh=(e,t,n,r)=>{let i=n,{minimum:o,maximum:a,format:l,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?i.type="integer":i.type="number";let m=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";m?f?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d:typeof o=="number"&&(i.minimum=o),p?f?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u:typeof a=="number"&&(i.maximum=a),typeof c=="number"&&(i.multipleOf=c)},eg=(e,t,n,r)=>{n.type="boolean"},tg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ng=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ig=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},rg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},og=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},ag=(e,t,n,r)=>{n.not={}},lg=(e,t,n,r)=>{},cg=(e,t,n,r)=>{},sg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},ug=(e,t,n,r)=>{let i=e._zod.def,o=tl(i.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},dg=(e,t,n,r)=>{let i=e._zod.def,o=[];for(let a of i.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},fg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},mg=(e,t,n,r)=>{let i=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},pg=(e,t,n,r)=>{let i=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),l!==void 0&&(o.maxLength=l),c?c.length===1?(o.contentMediaType=c[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(i,o)},hg=(e,t,n,r)=>{n.type="boolean"},gg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},vg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},yg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},bg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},xg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Sg=(e,t,n,r)=>{let i=n,o=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(i.minItems=a),typeof l=="number"&&(i.maxItems=l),i.type="array",i.items=Ae(o.element,t,{...r,path:[...r.path,"items"]})},kg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="object",i.properties={};let a=o.shape;for(let u in a)i.properties[u]=Ae(a[u],t,{...r,path:[...r.path,"properties",u]});let l=new Set(Object.keys(a)),c=new Set([...l].filter(u=>{let d=o.shape[u]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(i.required=Array.from(c)),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Ae(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},Qs=(e,t,n,r)=>{let i=e._zod.def,o=i.inclusive===!1,a=i.options.map((l,c)=>Ae(l,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},_g=(e,t,n,r)=>{let i=e._zod.def,o=Ae(i.left,t,{...r,path:[...r.path,"allOf",0]}),a=Ae(i.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,c=[...l(o)?o.allOf:[o],...l(a)?a.allOf:[a]];n.allOf=c},wg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((p,f)=>Ae(p,t,{...r,path:[...r.path,a,f]})),u=o.rest?Ae(o.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=c,u&&(i.items=u)):t.target==="openapi-3.0"?(i.items={anyOf:c},u&&i.items.anyOf.push(u),i.minItems=c.length,u||(i.maxItems=c.length)):(i.items=c,u&&(i.additionalItems=u));let{minimum:d,maximum:m}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof m=="number"&&(i.maxItems=m)},$g=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let d=Ae(o.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(let m of c)i.patternProperties[m.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=Ae(o.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Ae(o.valueType,t,{...r,path:[...r.path,"additionalProperties"]});let u=a._zod.values;if(u){let d=[...u].filter(m=>typeof m=="string"||typeof m=="number");d.length>0&&(i.required=d)}},zg=(e,t,n,r)=>{let i=e._zod.def,o=Ae(i.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Tg=(e,t,n,r)=>{let i=e._zod.def;Ae(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Cg=(e,t,n,r)=>{let i=e._zod.def;Ae(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Eg=(e,t,n,r)=>{let i=e._zod.def;Ae(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Dg=(e,t,n,r)=>{let i=e._zod.def;Ae(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType;let a;try{a=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Ig=(e,t,n,r)=>{let i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?i.out:i.in:i.out;Ae(a,t,r);let l=t.seen.get(e);l.ref=a},Ag=(e,t,n,r)=>{let i=e._zod.def;Ae(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},jg=(e,t,n,r)=>{let i=e._zod.def;Ae(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Ws=(e,t,n,r)=>{let i=e._zod.def;Ae(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Og=(e,t,n,r)=>{let i=e._zod.innerType;Ae(i,t,r);let o=t.seen.get(e);o.ref=i},Ks={string:Qh,number:Wh,boolean:eg,bigint:tg,symbol:ng,null:ig,undefined:rg,void:og,never:ag,any:lg,unknown:cg,date:sg,enum:ug,literal:dg,nan:fg,template_literal:mg,file:pg,success:hg,custom:gg,function:vg,transform:yg,map:bg,set:xg,array:Sg,object:kg,union:Qs,intersection:_g,tuple:wg,record:$g,nullable:zg,nonoptional:Tg,default:Cg,prefault:Eg,catch:Dg,pipe:Ig,readonly:Ag,promise:jg,optional:Ws,lazy:Og};function eu(e,t){if("_idmap"in e){let r=e,i=Wi({...t,processors:Ks}),o={};for(let c of r._idmap.entries()){let[u,d]=c;Ae(d,i)}let a={},l={registry:r,uri:t?.uri,defs:o};i.external=l;for(let c of r._idmap.entries()){let[u,d]=c;er(i,d),a[u]=tr(i,d)}if(Object.keys(o).length>0){let c=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let n=Wi({...t,processors:Ks});return Ae(e,n),er(n,e),tr(n,e)}var tu=class{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 n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Wi({processors:Ks,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Ae(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),er(this.ctx,t);let r=tr(this.ctx,t),{"~standard":i,...o}=r;return o}};var ZS={};var bl={};bi(bl,{ZodAny:()=>rv,ZodArray:()=>cv,ZodBase64:()=>ku,ZodBase64URL:()=>_u,ZodBigInt:()=>Ho,ZodBigIntFormat:()=>zu,ZodBoolean:()=>qo,ZodCIDRv4:()=>xu,ZodCIDRv6:()=>Su,ZodCUID:()=>mu,ZodCUID2:()=>pu,ZodCatch:()=>Dv,ZodCodec:()=>Il,ZodCustom:()=>Al,ZodCustomStringFormat:()=>Fo,ZodDate:()=>zl,ZodDefault:()=>wv,ZodDiscriminatedUnion:()=>uv,ZodE164:()=>wu,ZodEmail:()=>uu,ZodEmoji:()=>du,ZodEnum:()=>Lo,ZodExactOptional:()=>Sv,ZodFile:()=>bv,ZodFunction:()=>Zv,ZodGUID:()=>Sl,ZodIPv4:()=>yu,ZodIPv6:()=>bu,ZodIntersection:()=>dv,ZodJWT:()=>$u,ZodKSUID:()=>vu,ZodLazy:()=>Rv,ZodLiteral:()=>yv,ZodMAC:()=>Kg,ZodMap:()=>gv,ZodNaN:()=>Av,ZodNanoID:()=>fu,ZodNever:()=>av,ZodNonOptional:()=>Au,ZodNull:()=>nv,ZodNullable:()=>_v,ZodNumber:()=>Vo,ZodNumberFormat:()=>Fr,ZodObject:()=>Cl,ZodOptional:()=>Iu,ZodPipe:()=>Dl,ZodPrefault:()=>zv,ZodPreprocess:()=>jv,ZodPromise:()=>Bv,ZodReadonly:()=>Ov,ZodRecord:()=>Zo,ZodSet:()=>vv,ZodString:()=>Po,ZodStringFormat:()=>Ze,ZodSuccess:()=>Ev,ZodSymbol:()=>ev,ZodTemplateLiteral:()=>Nv,ZodTransform:()=>xv,ZodTuple:()=>mv,ZodType:()=>fe,ZodULID:()=>hu,ZodURL:()=>$l,ZodUUID:()=>ni,ZodUndefined:()=>tv,ZodUnion:()=>El,ZodUnknown:()=>ov,ZodVoid:()=>lv,ZodXID:()=>gu,ZodXor:()=>sv,_ZodString:()=>su,_default:()=>$v,_function:()=>Jk,any:()=>zk,array:()=>Tl,base64:()=>sk,base64url:()=>uk,bigint:()=>Sk,boolean:()=>Wg,catch:()=>Iv,check:()=>Xk,cidrv4:()=>lk,cidrv6:()=>ck,codec:()=>qk,cuid:()=>WS,cuid2:()=>ek,custom:()=>Kk,date:()=>Ck,describe:()=>Qk,discriminatedUnion:()=>Ok,e164:()=>dk,email:()=>FS,emoji:()=>KS,enum:()=>Eu,exactOptional:()=>kv,file:()=>Lk,float32:()=>vk,float64:()=>yk,function:()=>Jk,guid:()=>VS,hash:()=>gk,hex:()=>hk,hostname:()=>pk,httpUrl:()=>XS,instanceof:()=>e_,int:()=>lu,int32:()=>bk,int64:()=>kk,intersection:()=>fv,invertCodec:()=>Hk,ipv4:()=>rk,ipv6:()=>ak,json:()=>n_,jwt:()=>fk,keyof:()=>Ek,ksuid:()=>ik,lazy:()=>Mv,literal:()=>Zk,looseObject:()=>Ak,looseRecord:()=>Nk,mac:()=>ok,map:()=>Rk,meta:()=>Wk,nan:()=>Vk,nanoid:()=>QS,nativeEnum:()=>Bk,never:()=>Tu,nonoptional:()=>Cv,null:()=>iv,nullable:()=>_l,nullish:()=>Pk,number:()=>Qg,object:()=>Dk,optional:()=>kl,partialRecord:()=>Uk,pipe:()=>cu,prefault:()=>Tv,preprocess:()=>i_,promise:()=>Yk,readonly:()=>Uv,record:()=>hv,refine:()=>Lv,set:()=>Mk,strictObject:()=>Ik,string:()=>xl,stringFormat:()=>mk,stringbool:()=>t_,success:()=>Fk,superRefine:()=>Pv,symbol:()=>wk,templateLiteral:()=>Gk,transform:()=>Du,tuple:()=>pv,uint32:()=>xk,uint64:()=>_k,ulid:()=>tk,undefined:()=>$k,union:()=>Cu,unknown:()=>Pr,url:()=>JS,uuid:()=>qS,uuidv4:()=>HS,uuidv6:()=>GS,uuidv7:()=>YS,void:()=>Tk,xid:()=>nk,xor:()=>jk});var nu={};bi(nu,{endsWith:()=>Do,gt:()=>ei,gte:()=>Ht,includes:()=>Co,length:()=>Lr,lowercase:()=>zo,lt:()=>Wn,lte:()=>pn,maxLength:()=>Zr,maxSize:()=>Qi,mime:()=>Io,minLength:()=>Si,minSize:()=>ti,multipleOf:()=>Ki,negative:()=>Gs,nonnegative:()=>Js,nonpositive:()=>Ys,normalize:()=>Ao,overwrite:()=>Yn,positive:()=>Hs,property:()=>Xs,regex:()=>$o,size:()=>Br,slugify:()=>No,startsWith:()=>Eo,toLowerCase:()=>Oo,toUpperCase:()=>Uo,trim:()=>jo,uppercase:()=>To});var Bo={};bi(Bo,{ZodISODate:()=>ru,ZodISODateTime:()=>iu,ZodISODuration:()=>au,ZodISOTime:()=>ou,date:()=>Ng,datetime:()=>Ug,duration:()=>Mg,time:()=>Rg});var iu=k("ZodISODateTime",(e,t)=>{fp.init(e,t),Ze.init(e,t)});function Ug(e){return gh(iu,e)}var ru=k("ZodISODate",(e,t)=>{mp.init(e,t),Ze.init(e,t)});function Ng(e){return vh(ru,e)}var ou=k("ZodISOTime",(e,t)=>{pp.init(e,t),Ze.init(e,t)});function Rg(e){return yh(ou,e)}var au=k("ZodISODuration",(e,t)=>{hp.init(e,t),Ze.init(e,t)});function Mg(e){return bh(au,e)}var LS=(e,t)=>{al.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cl(e,n)},flatten:{value:n=>ll(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,go,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,go,2)}},isEmpty:{get(){return e.issues.length===0}}})},LI=k("ZodError",LS),nn=k("ZodError",LS,{Parent:Error});var Bg=bo(nn),Zg=xo(nn),Lg=So(nn),Pg=ko(nn),Fg=es(nn),Vg=ts(nn),qg=ns(nn),Hg=is(nn),Gg=rs(nn),Yg=os(nn),Jg=as(nn),Xg=ls(nn);var PS=new WeakMap;function wl(e,t,n){let r=Object.getPrototypeOf(e),i=PS.get(r);if(i||(i=new Set,PS.set(r,i)),!i.has(t)){i.add(t);for(let o in n){let a=n[o];Object.defineProperty(r,o,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var fe=k("ZodType",(e,t)=>(ae.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Mo(e,"input"),output:Mo(e,"output")}}),e.toJSONSchema=Kh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Bg(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Lg(e,n,r),e.parseAsync=async(n,r)=>Zg(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Pg(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Fg(e,n,r),e.decode=(n,r)=>Vg(e,n,r),e.encodeAsync=async(n,r)=>qg(e,n,r),e.decodeAsync=async(n,r)=>Hg(e,n,r),e.safeEncode=(n,r)=>Gg(e,n,r),e.safeDecode=(n,r)=>Yg(e,n,r),e.safeEncodeAsync=async(n,r)=>Jg(e,n,r),e.safeDecodeAsync=async(n,r)=>Xg(e,n,r),wl(e,"ZodType",{check(...n){let r=this.def;return this.clone(N.mergeDefs(r,{checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Vt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Lv(n,r))},superRefine(n,r){return this.check(Pv(n,r))},overwrite(n){return this.check(Yn(n))},optional(){return kl(this)},exactOptional(){return kv(this)},nullable(){return _l(this)},nullish(){return kl(_l(this))},nonoptional(n){return Cv(this,n)},array(){return Tl(this)},or(n){return Cu([this,n])},and(n){return fv(this,n)},transform(n){return cu(this,Du(n))},default(n){return $v(this,n)},prefault(n){return Tv(this,n)},catch(n){return Iv(this,n)},pipe(n){return cu(this,n)},readonly(){return Uv(this)},describe(n){let r=this.clone();return Ct.add(r,{description:n}),r},meta(...n){if(n.length===0)return Ct.get(this);let r=this.clone();return Ct.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Ct.get(e)?.description},configurable:!0}),e)),su=k("_ZodString",(e,t)=>{Mr.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Qh(e,r,i,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,wl(e,"_ZodString",{regex(...r){return this.check($o(...r))},includes(...r){return this.check(Co(...r))},startsWith(...r){return this.check(Eo(...r))},endsWith(...r){return this.check(Do(...r))},min(...r){return this.check(Si(...r))},max(...r){return this.check(Zr(...r))},length(...r){return this.check(Lr(...r))},nonempty(...r){return this.check(Si(1,...r))},lowercase(r){return this.check(zo(r))},uppercase(r){return this.check(To(r))},trim(){return this.check(jo())},normalize(...r){return this.check(Ao(...r))},toLowerCase(){return this.check(Oo())},toUpperCase(){return this.check(Uo())},slugify(){return this.check(No())}})}),Po=k("ZodString",(e,t)=>{Mr.init(e,t),su.init(e,t),e.email=n=>e.check(zs(uu,n)),e.url=n=>e.check(yl($l,n)),e.jwt=n=>e.check(qs($u,n)),e.emoji=n=>e.check(Is(du,n)),e.guid=n=>e.check(vl(Sl,n)),e.uuid=n=>e.check(Ts(ni,n)),e.uuidv4=n=>e.check(Cs(ni,n)),e.uuidv6=n=>e.check(Es(ni,n)),e.uuidv7=n=>e.check(Ds(ni,n)),e.nanoid=n=>e.check(As(fu,n)),e.guid=n=>e.check(vl(Sl,n)),e.cuid=n=>e.check(js(mu,n)),e.cuid2=n=>e.check(Os(pu,n)),e.ulid=n=>e.check(Us(hu,n)),e.base64=n=>e.check(Ps(ku,n)),e.base64url=n=>e.check(Fs(_u,n)),e.xid=n=>e.check(Ns(gu,n)),e.ksuid=n=>e.check(Rs(vu,n)),e.ipv4=n=>e.check(Ms(yu,n)),e.ipv6=n=>e.check(Bs(bu,n)),e.cidrv4=n=>e.check(Zs(xu,n)),e.cidrv6=n=>e.check(Ls(Su,n)),e.e164=n=>e.check(Vs(wu,n)),e.datetime=n=>e.check(Ug(n)),e.date=n=>e.check(Ng(n)),e.time=n=>e.check(Rg(n)),e.duration=n=>e.check(Mg(n))});function xl(e){return fh(Po,e)}var Ze=k("ZodStringFormat",(e,t)=>{Be.init(e,t),su.init(e,t)}),uu=k("ZodEmail",(e,t)=>{ip.init(e,t),Ze.init(e,t)});function FS(e){return zs(uu,e)}var Sl=k("ZodGUID",(e,t)=>{tp.init(e,t),Ze.init(e,t)});function VS(e){return vl(Sl,e)}var ni=k("ZodUUID",(e,t)=>{np.init(e,t),Ze.init(e,t)});function qS(e){return Ts(ni,e)}function HS(e){return Cs(ni,e)}function GS(e){return Es(ni,e)}function YS(e){return Ds(ni,e)}var $l=k("ZodURL",(e,t)=>{rp.init(e,t),Ze.init(e,t)});function JS(e){return yl($l,e)}function XS(e){return yl($l,{protocol:mn.httpProtocol,hostname:mn.domain,...N.normalizeParams(e)})}var du=k("ZodEmoji",(e,t)=>{op.init(e,t),Ze.init(e,t)});function KS(e){return Is(du,e)}var fu=k("ZodNanoID",(e,t)=>{ap.init(e,t),Ze.init(e,t)});function QS(e){return As(fu,e)}var mu=k("ZodCUID",(e,t)=>{lp.init(e,t),Ze.init(e,t)});function WS(e){return js(mu,e)}var pu=k("ZodCUID2",(e,t)=>{cp.init(e,t),Ze.init(e,t)});function ek(e){return Os(pu,e)}var hu=k("ZodULID",(e,t)=>{sp.init(e,t),Ze.init(e,t)});function tk(e){return Us(hu,e)}var gu=k("ZodXID",(e,t)=>{up.init(e,t),Ze.init(e,t)});function nk(e){return Ns(gu,e)}var vu=k("ZodKSUID",(e,t)=>{dp.init(e,t),Ze.init(e,t)});function ik(e){return Rs(vu,e)}var yu=k("ZodIPv4",(e,t)=>{gp.init(e,t),Ze.init(e,t)});function rk(e){return Ms(yu,e)}var Kg=k("ZodMAC",(e,t)=>{yp.init(e,t),Ze.init(e,t)});function ok(e){return ph(Kg,e)}var bu=k("ZodIPv6",(e,t)=>{vp.init(e,t),Ze.init(e,t)});function ak(e){return Bs(bu,e)}var xu=k("ZodCIDRv4",(e,t)=>{bp.init(e,t),Ze.init(e,t)});function lk(e){return Zs(xu,e)}var Su=k("ZodCIDRv6",(e,t)=>{xp.init(e,t),Ze.init(e,t)});function ck(e){return Ls(Su,e)}var ku=k("ZodBase64",(e,t)=>{kp.init(e,t),Ze.init(e,t)});function sk(e){return Ps(ku,e)}var _u=k("ZodBase64URL",(e,t)=>{_p.init(e,t),Ze.init(e,t)});function uk(e){return Fs(_u,e)}var wu=k("ZodE164",(e,t)=>{wp.init(e,t),Ze.init(e,t)});function dk(e){return Vs(wu,e)}var $u=k("ZodJWT",(e,t)=>{$p.init(e,t),Ze.init(e,t)});function fk(e){return qs($u,e)}var Fo=k("ZodCustomStringFormat",(e,t)=>{zp.init(e,t),Ze.init(e,t)});function mk(e,t,n={}){return Ro(Fo,e,t,n)}function pk(e){return Ro(Fo,"hostname",mn.hostname,e)}function hk(e){return Ro(Fo,"hex",mn.hex,e)}function gk(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,i=mn[r];if(!i)throw new Error(`Unrecognized hash format: ${r}`);return Ro(Fo,r,i,t)}var Vo=k("ZodNumber",(e,t)=>{gs.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Wh(e,r,i,o),wl(e,"ZodNumber",{gt(r,i){return this.check(ei(r,i))},gte(r,i){return this.check(Ht(r,i))},min(r,i){return this.check(Ht(r,i))},lt(r,i){return this.check(Wn(r,i))},lte(r,i){return this.check(pn(r,i))},max(r,i){return this.check(pn(r,i))},int(r){return this.check(lu(r))},safe(r){return this.check(lu(r))},positive(r){return this.check(ei(0,r))},nonnegative(r){return this.check(Ht(0,r))},negative(r){return this.check(Wn(0,r))},nonpositive(r){return this.check(pn(0,r))},multipleOf(r,i){return this.check(Ki(r,i))},step(r,i){return this.check(Ki(r,i))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Qg(e){return xh(Vo,e)}var Fr=k("ZodNumberFormat",(e,t)=>{Tp.init(e,t),Vo.init(e,t)});function lu(e){return kh(Fr,e)}function vk(e){return _h(Fr,e)}function yk(e){return wh(Fr,e)}function bk(e){return $h(Fr,e)}function xk(e){return zh(Fr,e)}var qo=k("ZodBoolean",(e,t)=>{fl.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>eg(e,n,r,i)});function Wg(e){return Th(qo,e)}var Ho=k("ZodBigInt",(e,t)=>{vs.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(r,i,o)=>tg(e,r,i,o),e.gte=(r,i)=>e.check(Ht(r,i)),e.min=(r,i)=>e.check(Ht(r,i)),e.gt=(r,i)=>e.check(ei(r,i)),e.gte=(r,i)=>e.check(Ht(r,i)),e.min=(r,i)=>e.check(Ht(r,i)),e.lt=(r,i)=>e.check(Wn(r,i)),e.lte=(r,i)=>e.check(pn(r,i)),e.max=(r,i)=>e.check(pn(r,i)),e.positive=r=>e.check(ei(BigInt(0),r)),e.negative=r=>e.check(Wn(BigInt(0),r)),e.nonpositive=r=>e.check(pn(BigInt(0),r)),e.nonnegative=r=>e.check(Ht(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(Ki(r,i));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Sk(e){return Eh(Ho,e)}var zu=k("ZodBigIntFormat",(e,t)=>{Cp.init(e,t),Ho.init(e,t)});function kk(e){return Ih(zu,e)}function _k(e){return Ah(zu,e)}var ev=k("ZodSymbol",(e,t)=>{Ep.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ng(e,n,r,i)});function wk(e){return jh(ev,e)}var tv=k("ZodUndefined",(e,t)=>{Dp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rg(e,n,r,i)});function $k(e){return Oh(tv,e)}var nv=k("ZodNull",(e,t)=>{Ip.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ig(e,n,r,i)});function iv(e){return Uh(nv,e)}var rv=k("ZodAny",(e,t)=>{Ap.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lg(e,n,r,i)});function zk(){return Nh(rv)}var ov=k("ZodUnknown",(e,t)=>{jp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cg(e,n,r,i)});function Pr(){return Rh(ov)}var av=k("ZodNever",(e,t)=>{Op.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ag(e,n,r,i)});function Tu(e){return Mh(av,e)}var lv=k("ZodVoid",(e,t)=>{Up.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>og(e,n,r,i)});function Tk(e){return Bh(lv,e)}var zl=k("ZodDate",(e,t)=>{Np.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(r,i,o)=>sg(e,r,i,o),e.min=(r,i)=>e.check(Ht(r,i)),e.max=(r,i)=>e.check(pn(r,i));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Ck(e){return Zh(zl,e)}var cv=k("ZodArray",(e,t)=>{Rp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Sg(e,n,r,i),e.element=t.element,wl(e,"ZodArray",{min(n,r){return this.check(Si(n,r))},nonempty(n){return this.check(Si(1,n))},max(n,r){return this.check(Zr(n,r))},length(n,r){return this.check(Lr(n,r))},unwrap(){return this.element}})});function Tl(e,t){return Fh(cv,e,t)}function Ek(e){let t=e._zod.def.shape;return Eu(Object.keys(t))}var Cl=k("ZodObject",(e,t)=>{Mp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kg(e,n,r,i),N.defineLazy(e,"shape",()=>t.shape),wl(e,"ZodObject",{keyof(){return Eu(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Pr()})},loose(){return this.clone({...this._zod.def,catchall:Pr()})},strict(){return this.clone({...this._zod.def,catchall:Tu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return N.extend(this,n)},safeExtend(n){return N.safeExtend(this,n)},merge(n){return N.merge(this,n)},pick(n){return N.pick(this,n)},omit(n){return N.omit(this,n)},partial(...n){return N.partial(Iu,this,n[0])},required(...n){return N.required(Au,this,n[0])}})});function Dk(e,t){let n={type:"object",shape:e??{},...N.normalizeParams(t)};return new Cl(n)}function Ik(e,t){return new Cl({type:"object",shape:e,catchall:Tu(),...N.normalizeParams(t)})}function Ak(e,t){return new Cl({type:"object",shape:e,catchall:Pr(),...N.normalizeParams(t)})}var El=k("ZodUnion",(e,t)=>{ml.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Qs(e,n,r,i),e.options=t.options});function Cu(e,t){return new El({type:"union",options:e,...N.normalizeParams(t)})}var sv=k("ZodXor",(e,t)=>{El.init(e,t),Bp.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Qs(e,n,r,i),e.options=t.options});function jk(e,t){return new sv({type:"union",options:e,inclusive:!1,...N.normalizeParams(t)})}var uv=k("ZodDiscriminatedUnion",(e,t)=>{El.init(e,t),Zp.init(e,t)});function Ok(e,t,n){return new uv({type:"union",options:t,discriminator:e,...N.normalizeParams(n)})}var dv=k("ZodIntersection",(e,t)=>{Lp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_g(e,n,r,i)});function fv(e,t){return new dv({type:"intersection",left:e,right:t})}var mv=k("ZodTuple",(e,t)=>{ys.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wg(e,n,r,i),e.rest=n=>e.clone({...e._zod.def,rest:n})});function pv(e,t,n){let r=t instanceof ae,i=r?n:t,o=r?t:null;return new mv({type:"tuple",items:e,rest:o,...N.normalizeParams(i)})}var Zo=k("ZodRecord",(e,t)=>{Pp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$g(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function hv(e,t,n){return!t||!t._zod?new Zo({type:"record",keyType:xl(),valueType:e,...N.normalizeParams(t)}):new Zo({type:"record",keyType:e,valueType:t,...N.normalizeParams(n)})}function Uk(e,t,n){let r=Vt(e);return r._zod.values=void 0,new Zo({type:"record",keyType:r,valueType:t,...N.normalizeParams(n)})}function Nk(e,t,n){return new Zo({type:"record",keyType:e,valueType:t,mode:"loose",...N.normalizeParams(n)})}var gv=k("ZodMap",(e,t)=>{Fp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bg(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(ti(...n)),e.nonempty=n=>e.check(ti(1,n)),e.max=(...n)=>e.check(Qi(...n)),e.size=(...n)=>e.check(Br(...n))});function Rk(e,t,n){return new gv({type:"map",keyType:e,valueType:t,...N.normalizeParams(n)})}var vv=k("ZodSet",(e,t)=>{Vp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xg(e,n,r,i),e.min=(...n)=>e.check(ti(...n)),e.nonempty=n=>e.check(ti(1,n)),e.max=(...n)=>e.check(Qi(...n)),e.size=(...n)=>e.check(Br(...n))});function Mk(e,t){return new vv({type:"set",valueType:e,...N.normalizeParams(t)})}var Lo=k("ZodEnum",(e,t)=>{qp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(r,i,o)=>ug(e,r,i,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{let o={};for(let a of r)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Lo({...t,checks:[],...N.normalizeParams(i),entries:o})},e.exclude=(r,i)=>{let o={...t.entries};for(let a of r)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Lo({...t,checks:[],...N.normalizeParams(i),entries:o})}});function Eu(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Lo({type:"enum",entries:n,...N.normalizeParams(t)})}function Bk(e,t){return new Lo({type:"enum",entries:e,...N.normalizeParams(t)})}var yv=k("ZodLiteral",(e,t)=>{Hp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dg(e,n,r,i),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 Zk(e,t){return new yv({type:"literal",values:Array.isArray(e)?e:[e],...N.normalizeParams(t)})}var bv=k("ZodFile",(e,t)=>{Gp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pg(e,n,r,i),e.min=(n,r)=>e.check(ti(n,r)),e.max=(n,r)=>e.check(Qi(n,r)),e.mime=(n,r)=>e.check(Io(Array.isArray(n)?n:[n],r))});function Lk(e){return Vh(bv,e)}var xv=k("ZodTransform",(e,t)=>{Yp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yg(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Hi(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(N.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(N.issue(a))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Du(e){return new xv({type:"transform",transform:e})}var Iu=k("ZodOptional",(e,t)=>{bs.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ws(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function kl(e){return new Iu({type:"optional",innerType:e})}var Sv=k("ZodExactOptional",(e,t)=>{Jp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ws(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function kv(e){return new Sv({type:"optional",innerType:e})}var _v=k("ZodNullable",(e,t)=>{Xp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function _l(e){return new _v({type:"nullable",innerType:e})}function Pk(e){return kl(_l(e))}var wv=k("ZodDefault",(e,t)=>{Kp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Cg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $v(e,t){return new wv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}var zv=k("ZodPrefault",(e,t)=>{Qp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Eg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Tv(e,t){return new zv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}var Au=k("ZodNonOptional",(e,t)=>{Wp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Tg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Cv(e,t){return new Au({type:"nonoptional",innerType:e,...N.normalizeParams(t)})}var Ev=k("ZodSuccess",(e,t)=>{eh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Fk(e){return new Ev({type:"success",innerType:e})}var Dv=k("ZodCatch",(e,t)=>{th.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Dg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Iv(e,t){return new Dv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Av=k("ZodNaN",(e,t)=>{nh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fg(e,n,r,i)});function Vk(e){return Ph(Av,e)}var Dl=k("ZodPipe",(e,t)=>{xs.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ig(e,n,r,i),e.in=t.in,e.out=t.out});function cu(e,t){return new Dl({type:"pipe",in:e,out:t})}var Il=k("ZodCodec",(e,t)=>{Dl.init(e,t),pl.init(e,t)});function qk(e,t,n){return new Il({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Hk(e){let t=e._zod.def;return new Il({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var jv=k("ZodPreprocess",(e,t)=>{Dl.init(e,t),ih.init(e,t)}),Ov=k("ZodReadonly",(e,t)=>{rh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ag(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Uv(e){return new Ov({type:"readonly",innerType:e})}var Nv=k("ZodTemplateLiteral",(e,t)=>{oh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mg(e,n,r,i)});function Gk(e,t){return new Nv({type:"template_literal",parts:e,...N.normalizeParams(t)})}var Rv=k("ZodLazy",(e,t)=>{ch.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Og(e,n,r,i),e.unwrap=()=>e._zod.def.getter()});function Mv(e){return new Rv({type:"lazy",getter:e})}var Bv=k("ZodPromise",(e,t)=>{lh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>jg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Yk(e){return new Bv({type:"promise",innerType:e})}var Zv=k("ZodFunction",(e,t)=>{ah.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vg(e,n,r,i)});function Jk(e){return new Zv({type:"function",input:Array.isArray(e?.input)?pv(e?.input):e?.input??Tl(Pr()),output:e?.output??Pr()})}var Al=k("ZodCustom",(e,t)=>{sh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gg(e,n,r,i)});function Xk(e){let t=new Fe({check:"custom"});return t._zod.check=e,t}function Kk(e,t){return qh(Al,e??(()=>!0),t)}function Lv(e,t={}){return Hh(Al,e,t)}function Pv(e,t){return Gh(e,t)}var Qk=Yh,Wk=Jh;function e_(e,t={}){let n=new Al({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...N.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var t_=(...e)=>Xh({Codec:Il,Boolean:qo,String:Po},...e);function n_(e){let t=Mv(()=>Cu([xl(e),Qg(),Wg(),iv(),Tl(t),hv(xl(),t)]));return t}function i_(e,t){return new jv({type:"pipe",in:Du(e),out:t})}var FI={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 VI(e){ct({customError:e})}function qI(){return ct().customError}var Fv;Fv||(Fv={});var q={...bl,...nu,iso:Bo},HI=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function GI(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function YI(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let i=n[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}function r_(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return q.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){let i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return q.lazy(()=>{if(!t.refs.has(i))throw new Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let o=YI(i,t),a=Rt(o,t);return t.refs.set(i,a),t.processing.delete(i),a}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return q.null();if(i.length===0)return q.never();if(i.length===1)return q.literal(i[0]);if(i.every(a=>typeof a=="string"))return q.enum(i);let o=i.map(a=>q.literal(a));return o.length<2?o[0]:q.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return q.literal(e.const);let n=e.type;if(Array.isArray(n)){let i=n.map(o=>{let a={...e,type:o};return r_(a,t)});return i.length===0?q.never():i.length===1?i[0]:q.union(i)}if(!n)return q.any();let r;switch(n){case"string":{let i=q.string();if(e.format){let o=e.format;o==="email"?i=i.check(q.email()):o==="uri"||o==="uri-reference"?i=i.check(q.url()):o==="uuid"||o==="guid"?i=i.check(q.uuid()):o==="date-time"?i=i.check(q.iso.datetime()):o==="date"?i=i.check(q.iso.date()):o==="time"?i=i.check(q.iso.time()):o==="duration"?i=i.check(q.iso.duration()):o==="ipv4"?i=i.check(q.ipv4()):o==="ipv6"?i=i.check(q.ipv6()):o==="mac"?i=i.check(q.mac()):o==="cidr"?i=i.check(q.cidrv4()):o==="cidr-v6"?i=i.check(q.cidrv6()):o==="base64"?i=i.check(q.base64()):o==="base64url"?i=i.check(q.base64url()):o==="e164"?i=i.check(q.e164()):o==="jwt"?i=i.check(q.jwt()):o==="emoji"?i=i.check(q.emoji()):o==="nanoid"?i=i.check(q.nanoid()):o==="cuid"?i=i.check(q.cuid()):o==="cuid2"?i=i.check(q.cuid2()):o==="ulid"?i=i.check(q.ulid()):o==="xid"?i=i.check(q.xid()):o==="ksuid"&&(i=i.check(q.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),r=i;break}case"number":case"integer":{let i=n==="integer"?q.number().int():q.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),r=i;break}case"boolean":{r=q.boolean();break}case"null":{r=q.null();break}case"object":{let i={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let d=Rt(u,t);i[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=Rt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Rt(e.additionalProperties,t):q.any();if(Object.keys(i).length===0){r=q.record(c,u);break}let d=q.object(i).passthrough(),m=q.looseRecord(c,u);r=q.intersection(d,m);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),d=[];for(let p of u){let f=Rt(c[p],t),x=q.string().regex(new RegExp(p));d.push(q.looseRecord(x,f))}let m=[];if(Object.keys(i).length>0&&m.push(q.object(i).passthrough()),m.push(...d),m.length===0)r=q.object({}).passthrough();else if(m.length===1)r=m[0];else{let p=q.intersection(m[0],m[1]);for(let f=2;f<m.length;f++)p=q.intersection(p,m[f]);r=p}break}let l=q.object(i);e.additionalProperties===!1?r=l.strict():typeof e.additionalProperties=="object"?r=l.catchall(Rt(e.additionalProperties,t)):r=l.passthrough();break}case"array":{let i=e.prefixItems,o=e.items;if(i&&Array.isArray(i)){let a=i.map(c=>Rt(c,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?Rt(o,t):void 0;l?r=q.tuple(a).rest(l):r=q.tuple(a),typeof e.minItems=="number"&&(r=r.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(q.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>Rt(c,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?Rt(e.additionalItems,t):void 0;l?r=q.tuple(a).rest(l):r=q.tuple(a),typeof e.minItems=="number"&&(r=r.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(q.maxLength(e.maxItems)))}else if(o!==void 0){let a=Rt(o,t),l=q.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),r=l}else r=q.array(q.any());break}default:throw new Error(`Unsupported type: ${n}`)}return r}function Rt(e,t){if(typeof e=="boolean")return e?q.any():q.never();let n=r_(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(u=>Rt(u,t)),c=q.union(l);n=r?q.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(u=>Rt(u,t)),c=q.xor(l);n=r?q.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:q.any();else{let l=r?n:Rt(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)l=q.intersection(l,Rt(e.allOf[u],t));n=l}e.nullable===!0&&t.version==="openapi-3.0"&&(n=q.nullable(n)),e.readOnly===!0&&(n=q.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of o)l in e&&(i[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(i[l]=e[l]);for(let l of Object.keys(e))HI.has(l)||(i[l]=e[l]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function o_(e,t){if(typeof e=="boolean")return e?q.any():q.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=GI(n,t?.defaultTarget),i=n.$defs||n.definitions||{},o={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Ct};return Rt(n,o)}var Vv={};bi(Vv,{bigint:()=>QI,boolean:()=>KI,date:()=>WI,number:()=>XI,string:()=>JI});function JI(e){return mh(Po,e)}function XI(e){return Sh(Vo,e)}function KI(e){return Ch(qo,e)}function QI(e){return Dh(Ho,e)}function WI(e){return Lh(zl,e)}ct(Ss());var eA=$.object({command:$.string().min(1),args:$.array($.string()).optional(),env:$.record($.string(),$.string()).optional(),cwd:$.string().optional(),disabled:$.boolean().optional(),disabledTools:$.array($.string()).optional(),timeout:$.number().positive().max(3600).optional(),toolTimeouts:$.record($.string(),$.number().positive().max(3600)).optional()}),tA=$.object({url:$.string().min(1).url(),headers:$.record($.string(),$.string()).optional(),disabled:$.boolean().optional(),disabledTools:$.array($.string()).optional(),timeout:$.number().positive().max(3600).optional(),toolTimeouts:$.record($.string(),$.number().positive().max(3600)).optional()}),nA=$.union([eA,tA]),vM=$.record($.string(),nA);function a_(e){return"command"in e}var jl={kind:"python",venvDir:"",interpreter:"",script:"",packageName:"",command:"",args:[],url:"",headers:{},env:{},cwd:"",timeout:""};function ju(e,t){let n=e.replace(/[\\/]+$/,"");return t==="win32"?`${n}\\Scripts\\python.exe`:`${n}/bin/python`}function l_(e){let t=e.split(/[\\/]/);return t[t.length-1]??""}function iA(e){let t=e.split(/[\\/]/);if(t.length<3)return;let n=t[t.length-2]?.toLowerCase();if(n!=="scripts"&&n!=="bin")return;let r=e.includes("\\")?"\\":"/";return t.slice(0,-2).join(r)}function rA(e){return/^python(3(\.\d+)?)?(\.exe)?$/i.test(l_(e))}function oA(e){return/^npx(\.cmd|\.exe)?$/i.test(l_(e))}function qv(e){if(!a_(e))return{...jl,kind:"http",url:e.url,headers:e.headers??{},timeout:e.timeout===void 0?"":String(e.timeout)};let t={...jl,timeout:e.timeout===void 0?"":String(e.timeout),kind:"custom",command:e.command,args:e.args??[],env:e.env??{},cwd:e.cwd??""};if(oA(e.command)){let n=[...e.args??[]],r=[];for(;n.length>0&&n[0]?.startsWith("-")===!0;)r.push(n.shift());let i=n.shift();return i!==void 0&&r.every(o=>o==="-y"||o==="--yes")?{...t,kind:"npx",packageName:i,args:n}:t}if(rA(e.command)){let n=[...e.args??[]],r=n.shift();if(r!==void 0)return{...t,kind:"python",interpreter:e.command,venvDir:iA(e.command)??"",script:r,args:n}}return t}function Ou(e,t,n){let r={...n?.disabled!==void 0?{disabled:n.disabled}:{},...n?.disabledTools!==void 0?{disabledTools:n.disabledTools}:{}},i=Number(e.timeout.trim()),o=e.timeout.trim().length>0&&Number.isFinite(i)&&i>0?{timeout:i}:{};if(e.kind==="http")return{url:e.url.trim(),...Object.keys(e.headers).length>0?{headers:e.headers}:{},...o,...r};let a=e.args.filter(u=>u.trim().length>0),l,c;return e.kind==="python"?(l=e.interpreter.trim().length>0?e.interpreter.trim():ju(e.venvDir.trim(),t),c=[e.script.trim(),...a]):e.kind==="npx"?(l="npx",c=["-y",e.packageName.trim(),...a]):(l=e.command.trim(),c=a),{command:l,...c.length>0?{args:c}:{},...Object.keys(e.env).length>0?{env:e.env}:{},...e.cwd.trim().length>0?{cwd:e.cwd.trim()}:{},...o,...r}}function Hv(e,t){let n={};if(t.timeout.trim().length>0){let i=Number(t.timeout.trim());!Number.isFinite(i)||i<=0?n.timeout="Enter a number of seconds, or leave it blank.":i>3600&&(n.timeout="An hour is the most a single call may take.")}let r={};switch(e.trim().length===0?r.name="Give the server a name.":/[^\w.-]/.test(e.trim())&&(r.name="Use letters, numbers, dots, dashes and underscores \u2014 the name prefixes every tool."),t.kind){case"python":t.interpreter.trim().length===0&&t.venvDir.trim().length===0&&(r.venvDir="Point at the virtualenv folder, or set the interpreter directly."),t.script.trim().length===0&&(r.script="Point at the server script.");break;case"npx":t.packageName.trim().length===0&&(r.packageName="Name the npm package.");break;case"custom":t.command.trim().length===0&&(r.command="Name the executable to run.");break;case"http":if(t.url.trim().length===0)r.url="Enter the server URL.";else try{new URL(t.url.trim())}catch{r.url="Must be a valid URL."}break}return{...r,...n}}var Uu=[{id:"openai",label:"OpenAI",wireFormat:"openai",baseUrl:"https://api.openai.com/v1"},{id:"deepseek",label:"DeepSeek",wireFormat:"openai",baseUrl:"https://api.deepseek.com/v1"},{id:"anthropic",label:"Anthropic",wireFormat:"anthropic",baseUrl:"https://api.anthropic.com/v1"},{id:"gemini",label:"Google Gemini",wireFormat:"gemini",baseUrl:"https://generativelanguage.googleapis.com/v1beta"},{id:"custom",label:"Custom (OpenAI-compatible)",wireFormat:"openai",baseUrl:""},{id:"custom-anthropic",label:"Custom (Anthropic-compatible)",wireFormat:"anthropic",baseUrl:""},{id:"custom-gemini",label:"Custom (Gemini-compatible)",wireFormat:"gemini",baseUrl:""}];function Yv(e){if(e===void 0)return;if(!e.reportsCost)return"This plan reports no cost per consultation, so only the consultation limit can apply.";let t=e.coldUsd,n=e.resumedUsd;if(t===void 0||n===void 0)return;if(e.resumeWorked===!1)return`Both samples cost about ${Gv(t)}, but the second one did not resume the first session \u2014 the CLI returned no session id, so this is two cold starts rather than a comparison. Measure again, or check that the CLI supports --resume.`;let r=n>0?t/n:void 0;return[`A first consultation costs about ${Gv(t)} here and a follow-up about ${Gv(n)}`,r!==void 0&&r>=2?` \u2014 roughly ${String(Math.round(r))} times cheaper.`:"."].join("")}function Gv(e){return e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(4)}`}var aA=$.object({name:$.string().min(1),value:$.string(),description:$.string().optional()}),wM=$.array(aA),lA=/^[A-Za-z_][A-Za-z0-9_]*$/;function Nu(e){return lA.test(e)}var nr=[{id:"orientation",title:"Where everything is",opensPanel:!0,completionEvents:["onCommand:lightCode.openPanel"],altText:"The VS Code window: the Light Code icon in the activity bar, the chat panel, and the new-task, history, settings and guide buttons in its header.",body:["Light Code lives in one sidebar panel. The chat is the whole product; the gear opens eleven settings tabs, and the question mark reopens this guide whenever you want it.","The numbers in the picture are the four things worth knowing before anything else."]},{id:"providers",title:"Providers - point it at a model",tab:"providers",completionEvents:["onContext:lightCode.hasProvider"],altText:"The Providers tab, showing the profile list and the fields for editing one: preset, label, base URL, authentication, API key, model and Test connection.",body:["Nothing ships configured. There are no default endpoints, so a fresh install contacts nothing until you fill this in.","**Preset** prefills a base URL and wire format - OpenAI-compatible, Anthropic, Gemini, DeepSeek - and every field stays editable for a gateway that fronts one differently. **Authentication** is a separate axis: an API key, or Apigee client-certificate mTLS with a token grant. **Model** is fetched from your gateway and always typeable, because many return nothing. Keep one profile per gateway and switch between them from the chat header.","**Test connection** is the field worth using first: it loads certificates, gets a token, lists models, and tells you which of the three failed."]},{id:"network",title:"Network - certificates, once, for everything",tab:"network",completionEvents:["onStepSelected"],altText:"The Network tab, showing certificate directory, CA certificate, client certificate and key, PFX bundle, passphrase, and the verify-TLS toggle.",body:["If your company intercepts TLS or issues client certificates, this is the only place you set that up. It applies to every connection: the gateway, the token endpoint, MCP over HTTP, the vector store and the embedder.","**CA certificate** is added to the public roots rather than replacing them, so trusting your corporate root does not cost you every other host. **Certificate and key** - or a **PFX bundle**, which is what Windows PKI usually issues - identify you. Any single connection can override either.","**Verify TLS certificates** can be turned off, and the panel says plainly what that costs: an interceptor can read and change the traffic, API key included. Add the CA instead."]},{id:"chat",title:"The chat - ask for something real",opensPanel:!0,completionEvents:["onContext:lightCode.hasChatted"],altText:"The chat header, with the mode selector, the expert budget, and the four header buttons labelled; below it, the composer.",body:["Type a request. It reads files, searches, edits and runs commands, one step at a time, and stops when it is done or when it needs you.","**@** names a file directly. Paste a screenshot, or drop a Word, Excel, PDF or HTML file in. Long output is truncated with a handle it can re-read, so a huge log does not eat the window - the bar above the composer shows what has.","**Mode** picks what it may do: Code edits and runs, Ask is read-only, Junior brings the expert in. **History** keeps every past task, and reopening one restores the whole transcript."]},{id:"approvals",title:"Approvals - nothing happens without you",tab:"approvals",completionEvents:["onStepSelected"],altText:"The Approvals tab, showing four auto-approve toggles all off, the always-allowed command and tool lists, extra readable folders, and the maximum-steps setting.",body:["Every tool call is shown before it runs, as ground truth: the real command, the computed diff, the actual source. Never the model's description of what it means to do. **Deny** is a real answer - it goes back as a result and the turn continues.","This tab is where standing permission is granted and, more importantly, taken back. The four toggles skip the prompt by category and **all ship off**. Below them are the grants you made in the chat: always-allowed commands, always-allowed MCP tools, and folders outside the workspace it may read.","Command matching is **exact, byte for byte**. Allowing `npm test` never allows `npm test && rm -rf /`.","Before its first edit to a task it snapshots the workspace, so you can roll the whole thing back."]},{id:"mcp",title:"MCP - connect the servers you already run",tab:"mcp",completionEvents:["onStepSelected"],altText:"The MCP tab, showing two servers with health, per-tool Always/Ask/Never controls, and the JSON configuration box.",body:["Standard `mcpServers` configuration, so a config from another client pastes in unchanged. stdio or HTTP, inferred from whether you gave a command or a URL.","Servers connect when the panel opens and show health, so a mistyped command is visible immediately rather than the first time something needs it. Every tool is namespaced `server__tool`, and each one has its own **Always / Ask / Never** - one server can expose forty.","Secrets go in as `${secret:NAME}` and are resolved from the OS keychain at spawn time, never written into the file."]},{id:"python",title:"Python - let it write its own tools",tab:"python",completionEvents:["onStepSelected"],altText:"The Python tab, showing the enable toggle, uv path, environment choice, tools folder, package index, timeout, and a created tool with its content-hash approval note.",body:["It can write a Python tool mid-conversation and call it from the next message. Dependencies are declared in the file and installed with `uv`; the schema comes from your type hints, so there is no metadata to keep in step.","**Python environment** prefers your project's own venv, because that is where your internal libraries already are. **Package index** can point at an internal mirror, or refuse the network entirely.","This is the sharpest surface in the product, so it is off by default and creating a tool **always** prompts with the full source - no toggle skips it. Approval pins a hash of exactly what you saw; a file edited outside is refused and reported, and tools live in `.lightcode/tools/` so they land in git and get reviewed."]},{id:"skills",title:"Skills - teach it your conventions",tab:"skills",completionEvents:["onStepSelected"],altText:"The Skills tab, showing two skills, a note that they are found by searching rather than listing, the writable skills folder, extra read-only folders, the problems list, and the approval note.",body:["A skill is a markdown file with a name and a description. The body is never in the prompt - it is read with `read_file` when a task actually calls for it, so a skill can be as long as you like.","By default the summaries are not in the prompt either: the assistant searches for a relevant note with `search_docs`, the same way it finds tools. What stays is a count and an instruction to look, so it still knows notes exist - a description nobody sees is a note nobody reads. Switch it off in **Search** if you would rather every summary sat in the prompt.",'This is the answer to "it does not know about our internal libraries". It offers to write one when you explain something durable, and offers to correct one when something contradicts it - a stale skill is worse than a missing one.',"You get a writable folder plus any number of read-only ones, such as a shared team folder, with PATH-style precedence and shadowing reported rather than silently applied. Writing a skill needs approval too: it is prose that steers every future turn."]},{id:"search",title:"Search - find things by meaning",tab:"search",completionEvents:["onStepSelected"],altText:"The Search tab, showing the backend choice, connection fields, embedding profile, the index button, the two look-things-up toggles for tools and skills, index copying, and query limits.",body:["Indexing is optional, ships disabled, and is **the largest thing Light Code ever sends anywhere**: it uploads the contents of your workspace to the embedding endpoint you name. It says so, and where to, before the first upload.","**Qdrant** and **Chroma** run locally if you would rather nothing left the machine; **OpenSearch** is usually the one your company already has. Embeddings reuse a provider profile, so there is no second set of credentials. You can **copy an index between backends**, so changing your mind later does not orphan what you indexed.","**Looking things up rather than listing them is the default.** MCP and Python tool schemas, and skill summaries, stay out of the prompt; the assistant finds them with `search_docs` and calls them through `call_tool`. Nothing is registered when there is nothing to hide, so a workspace with no MCP servers and no skills pays nothing for it. The tab shows how many things it is hiding, and either half can be switched off - models do call a tool listed in the prompt slightly more reliably than one named through a dispatcher."]},{id:"tools",title:"Tools - everything it can call",tab:"tools",completionEvents:["onStepSelected"],altText:"The Tools tab, showing the search box and the catalogue grouped into built-in, MCP and Python tools, with the looked-up badge explained.",body:["One read-only list of every tool available right now: the built-in nine, everything your MCP servers expose, and the Python tools it has written. Search matches descriptions as well as names, so you can look for what you want done rather than what it is called.","A **looked up** badge means the tool is kept out of the system prompt to save space - the default for MCP and Python tools. It is still callable: the assistant searches for it and calls it by name. A shorter prompt is not a shorter tool list; withholding a capability is what Approvals and modes are for."]},{id:"expert",title:"Expert - spend less on the hard parts",tab:"expert",completionEvents:["onStepSelected"],altText:"The Expert tab, showing the enable toggle, command and model, the per-task spend and consultation limits, cost estimate, skill assessment, and the read-only tool restriction.",body:["In **Junior mode** a cheap model does the work and consults Claude, through the Claude CLI, on the parts that need it. The expert plans, sets checkpoints, and reviews each one as the junior finishes it.","It is read-only by construction - Read, Grep and Glob, never edit or execute - so a second agent can never act outside the approval gate. It keeps one session per task, which makes the first consultation the expensive one and every later one about nineteen times cheaper.","**Budget per task** caps both spend and number of consultations, and the same control sits in the chat header so you can raise it mid-task. The expert is told what is left and plans to fit, gives you a cost estimate up front, and can assess how your primary model is doing."]},{id:"schedules",title:"Schedules - let it run on its own",tab:"schedules",completionEvents:["onStepSelected"],altText:"The Schedules tab, showing a schedule name, prompt and interval, the file-permission, tool and skill filters for unattended runs, and the run history.",body:["A prompt on a timer. Runs in the background without touching the chat you are in, and keeps running with the panel closed.","Nobody is present to approve anything, so an unattended run does not inherit your auto-approve settings. Permission is granted **per schedule**: files are read-only unless you say otherwise, and you pick exactly which tools it may call. Creating Python tools or skills is never available to a schedule at all - model-authored code with no one watching is the one thing that stays out of reach.","**A schedule names the skills it needs** rather than searching for them, under *What it should know*. Its tool list may not include `search_docs`, and a run that comes up empty has nobody to notice. All skills are included until you narrow it.","Every run is logged with its full transcript, and `notify` raises a toast when a run has something to say."]},{id:"appearance",title:"Appearance - make it yours",tab:"appearance",completionEvents:["onStepSelected"],altText:"The Appearance tab, showing the accent colour swatches, the expert colour swatches, and the reduced-motion toggle.",body:["The panel follows your editor theme. Two colours are yours to set: the **accent**, used for anything actionable, and the **expert** colour, which marks authorship - text in it is Claude's words rather than your primary model's.","Text on either is computed rather than fixed, so it stays readable whatever you pick. Motion follows your OS reduced-motion setting, and can be turned off here regardless."]},{id:"privacy",title:"What it does not do",completionEvents:["onStepSelected"],altText:"A diagram of what leaves the machine: your gateway and MCP servers, plus the vector store and embedder only if Search is enabled; then the four things Light Code never does, and a warning that nothing is sandboxed.",body:["No telemetry. No update checks. No default endpoints - a fresh install contacts nothing. No remote assets in the panel.","The only hosts it ever reaches are the ones you configured: your gateway, your MCP servers, and - only if you turn Search on - your vector store and embedding endpoint.","Two things are stated plainly rather than glossed. **Indexing is the largest egress in the product**: enabling it sends your workspace to the embedder. And **nothing is sandboxed** - commands, Python tools and MCP servers run as you, with your permissions, and Light Code does not protect you from another process running as the same user. Approval is the real boundary, which is why it is per-invocation and why every toggle ships off.","Source, issues and the full security section: [github.com/chosengenerationdev/light-code](https://github.com/chosengenerationdev/light-code)"]}];var cA=$.enum(["openai","anthropic","gemini"]),sA=$.object({caFile:$.string().optional(),certFile:$.string().optional(),keyFile:$.string().optional(),pfxFile:$.string().optional(),passphraseRef:$.string().optional(),rejectUnauthorized:$.boolean().optional(),useGlobalClientCertificate:$.boolean().optional()}),uA=$.object({certDir:$.string().min(1).optional(),certFile:$.string().optional(),keyFile:$.string().optional(),pfxFile:$.string().optional(),caFile:$.string().optional(),passphraseRef:$.string().optional()}),dA=$.object({tokenUrl:$.string().url("Must be a valid URL").optional(),grantType:$.string().optional(),clientId:$.string().optional(),clientSecretRef:$.string().optional(),scope:$.string().optional(),extraTokenParams:$.record($.string(),$.string()).optional(),tokenHeaderName:$.string().optional(),tokenHeaderPrefix:$.string().optional(),tokenPath:$.string().optional(),expiresInPath:$.string().optional(),fallbackExpirySeconds:$.number().int().positive().optional(),refreshSkewSeconds:$.number().int().nonnegative().optional(),extraHeaders:$.record($.string(),$.string()).optional()}),fA=$.discriminatedUnion("type",[$.object({type:$.literal("none")}),$.object({type:$.literal("apiKey"),apiKeyRef:$.string().min(1)}),$.object({type:$.literal("apigeeMtls"),certs:uA,apigee:dA})]),c_=$.object({id:$.string().min(1),label:$.string().min(1,"Label is required"),wireFormat:cA,baseUrl:$.string().min(1,"Base URL is required").url("Must be a valid URL"),model:$.string().min(1,"Model is required"),auth:fA,headers:$.record($.string(),$.string()).optional(),tls:sA.optional(),maxTokens:$.number().int().positive().optional(),modelCapabilities:$.object({contextWindow:$.number().int().positive().optional(),supportsVision:$.boolean().optional(),supportsTools:$.boolean().optional()}).optional()});var mA=c_.pick({label:!0,wireFormat:!0,baseUrl:!0,model:!0});function Jv(e){let t=mA.safeParse(e);return t.success?[]:t.error.issues.map(n=>({path:n.path.join("."),message:n.message}))}var s_={"gpt-4o-mini":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4o":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4.1-mini":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4.1":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4-turbo":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4":{contextWindow:8192,supportsVision:!1,supportsTools:!0},"gpt-3.5-turbo":{contextWindow:16385,supportsVision:!1,supportsTools:!0},o3:{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"o4-mini":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-opus-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-sonnet-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-7-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-haiku":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"gemini-2.5-pro":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.5-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.0-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"deepseek-reasoner":{contextWindow:65536,supportsVision:!1,supportsTools:!1},"deepseek-chat":{contextWindow:65536,supportsVision:!1,supportsTools:!0},"llama-3.3":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},"llama-3.1":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},mistral:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"qwen2.5-coder":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen2.5-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen2.5":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen3-coder":{contextWindow:262144,supportsVision:!1,supportsTools:!0},"qwen3-vl":{contextWindow:262144,supportsVision:!0,supportsTools:!0},qwen3:{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen-max":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-plus":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-turbo":{contextWindow:1e6,supportsVision:!1,supportsTools:!0},qwq:{contextWindow:131072,supportsVision:!1,supportsTools:!0},qwen:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"gemma-3n":{contextWindow:32768,supportsVision:!0,supportsTools:!0},"gemma-3":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"gemma-2":{contextWindow:8192,supportsVision:!1,supportsTools:!0},gemma:{contextWindow:131072,supportsVision:!0,supportsTools:!0}},pA={contextWindow:32768,supportsVision:!1,supportsTools:!0},hA=Object.keys(s_).sort((e,t)=>t.length-e.length);function u_(e){let t=e.toLowerCase();for(let n of hA)if(t.includes(n))return{...s_[n],known:!0};return{...pA,known:!1}}function Xv(e,t){let n=u_(e);return t===void 0?n:{contextWindow:t.contextWindow??n.contextWindow,supportsVision:t.supportsVision??n.supportsVision,supportsTools:t.supportsTools??n.supportsTools,known:n.known||Object.values(t).some(r=>r!==void 0)}}var gA=$.discriminatedUnion("kind",[$.object({kind:$.literal("interval"),everyMinutes:$.number().int().min(1).max(1440*7)}),$.object({kind:$.literal("daily"),hour:$.number().int().min(0).max(23),minute:$.number().int().min(0).max(59)}),$.object({kind:$.literal("weekly"),days:$.array($.number().int().min(0).max(6)).min(1),hour:$.number().int().min(0).max(23),minute:$.number().int().min(0).max(59)})]),vA=$.object({id:$.string().min(1),name:$.string().min(1),workspaceRoot:$.string().optional(),prompt:$.string().min(1),trigger:gA,enabled:$.boolean(),allowedTools:$.array($.string()),allowedSkills:$.array($.string()).optional(),nextRunAt:$.number().optional(),lastRunAt:$.number().optional(),lastResult:$.enum(["ok","error","cancelled"]).optional(),lastSummary:$.string().optional(),lastTaskId:$.string().optional(),runs:$.array($.object({at:$.number(),result:$.enum(["ok","error","cancelled"]),durationMs:$.number().optional(),summary:$.string().optional(),taskId:$.string().optional(),reportPath:$.string().optional()})).optional()});var jM=$.record($.string(),vA);function Ru(e,t){let n=new Set(t),r=new Set;for(let i of e)n.has(i.name)&&(i.group==="edit"||i.group==="command"||i.group==="mcp")&&r.add(i.group);return[...r].sort()}function d_(e,t){let n=e.trigger;return n.kind==="interval"?t+n.everyMinutes*6e4:yA(n,t)}function yA(e,t){let n=new Date(t);n.setHours(e.hour,e.minute,0,0);let r=e.kind==="weekly"?new Set(e.days):void 0;for(let i=0;i<=8;i++){let o=n.getTime()>t,a=r===void 0||r.has(n.getDay());if(o&&a)return n.getTime();n.setDate(n.getDate()+1),n.setHours(e.hour,e.minute,0,0)}return t+1440*6e4}function Kv(e){if(e.kind==="interval"){if(e.everyMinutes%1440===0){let a=e.everyMinutes/1440;return`Every ${a===1?"day":`${String(a)} days`}`}if(e.everyMinutes%60===0){let a=e.everyMinutes/60;return`Every ${a===1?"hour":`${String(a)} hours`}`}return`Every ${String(e.everyMinutes)} minutes`}let t=`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}`;if(e.kind==="daily")return`Every day at ${t}`;let n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=[...e.days].sort((a,l)=>a-l).map(a=>n[a]??"?"),i=[1,2,3,4,5];return`${r.length===5&&i.every(a=>e.days.includes(a))?"Weekdays":r.join(", ")} at ${t}`}function Qv(e,t){if(!e.enabled)return"Paused";let n=e.nextRunAt??d_(e,t),r=Math.round((n-t)/6e4);return r<1?"Due now":r<60?`In ${String(r)} min`:r<1440?`In ${String(Math.round(r/60))} h`:new Date(n).toLocaleString()}var F=P(ge(),1);var Bt=P(ie(),1),Qo=P(ge(),1);var st=P(ie(),1);var I=P(ie(),1);function w_({size:e=16}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M1.5 1.5 L14.5 8 L1.5 14.5 L4 8 Z"})})}function $_({size:e=16}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,I.jsx)("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"})})}function z_({size:e=16}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M10 3 L5 8 L10 13"})})}function T_({size:e=14}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,I.jsx)("rect",{x:"3",y:"5.5",width:"10",height:"7.5",rx:"2"}),(0,I.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"5.5"}),(0,I.jsx)("circle",{cx:"8",cy:"1.6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,I.jsx)("circle",{cx:"6",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"}),(0,I.jsx)("circle",{cx:"10",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"})]})}function Bu({size:e=14}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,I.jsx)("circle",{cx:"8",cy:"5",r:"2.6"}),(0,I.jsx)("path",{d:"M2.8 14 a5.2 5.2 0 0 1 10.4 0"})]})}function rn({size:e=14}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M8 1.6 l1.7 3.6 3.9 .5 -2.9 2.7 .8 3.9 L8 10.4 l-3.5 1.9 .8 -3.9 -2.9 -2.7 3.9 -.5 Z"})})}function ii({size:e=14}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M3 8.5 L6.5 12 L13 4.5"})})}function Jo({size:e=14}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,I.jsx)("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),(0,I.jsx)("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})}function C_({size:e=14}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,I.jsx)("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.25"}),(0,I.jsx)("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5",strokeLinecap:"round"})]})}function Et({size:e=14}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M3 4.5 h10"}),(0,I.jsx)("path",{d:"M6.5 4.5 V3 h3 v1.5"}),(0,I.jsx)("path",{d:"M4.3 4.5 l.6 8.2 h6.2 l.6 -8.2"})]})}function ir({size:e=14}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,I.jsx)("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),(0,I.jsx)("path",{d:"M10.5 5.5 V4 a1.5 1.5 0 0 0 -1.5 -1.5 H4 A1.5 1.5 0 0 0 2.5 4 v5 A1.5 1.5 0 0 0 4 10.5 h1.5"})]})}function E_({size:e=14}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M11.2 2.3 l2.5 2.5 -8 8 -3.2 .7 .7 -3.2 Z"})})}function D_({size:e=16}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M9.5 4 L5 8.5 a2.1 2.1 0 0 0 3 3 L12.5 7 a3.5 3.5 0 0 0-5-5 L3.5 6"})})}function I_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M2.5 8a5.5 5.5 0 1 0 1.7-4"}),(0,I.jsx)("path",{d:"M2 2.5 V5.5 H5"}),(0,I.jsx)("path",{d:"M8 5 V8.4 L10.3 9.8"})]})}function A_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,I.jsx)("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),(0,I.jsx)("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]})}function j_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,I.jsx)("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),(0,I.jsx)("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),(0,I.jsx)("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),(0,I.jsx)("circle",{cx:"6",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),(0,I.jsx)("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),(0,I.jsx)("circle",{cx:"6",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"})]})}function Vr({size:e=12}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M6 3.5 L10.5 8 L6 12.5"})})}function O_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M3 8a5 5 0 1 1 1.6 3.7"}),(0,I.jsx)("path",{d:"M2.5 4.5 L3 8 L6.5 7.6"})]})}function U_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M10.2 4.1a2.6 2.6 0 0 0-4.4 1.7c0 2.6 4.4 1.9 4.4 4.5a2.6 2.6 0 0 1-4.4 1.7",strokeLinecap:"round"}),(0,I.jsx)("path",{d:"M8 1.8v12.4",strokeLinecap:"round"})]})}function N_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M8 1.6a6.4 6.4 0 0 0 0 12.8c1 0 1.4-.7 1.1-1.4-.4-.9.2-1.7 1.2-1.7h1.1A3 3 0 0 0 14.4 8 6.4 6.4 0 0 0 8 1.6Z"}),(0,I.jsx)("circle",{cx:"5.2",cy:"6.4",r:"0.95",fill:"currentColor",stroke:"none"}),(0,I.jsx)("circle",{cx:"8",cy:"4.6",r:"0.95",fill:"currentColor",stroke:"none"}),(0,I.jsx)("circle",{cx:"10.9",cy:"6.2",r:"0.95",fill:"currentColor",stroke:"none"})]})}function R_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M5 2v3M11 2v3"}),(0,I.jsx)("path",{d:"M3.5 5h9v2.5a4.5 4.5 0 0 1-9 0Z",strokeLinejoin:"round"}),(0,I.jsx)("path",{d:"M8 12v2.5"})]})}function ay({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M8 1.8 13 3.6v4.1c0 3-2.1 5.5-5 6.5-2.9-1-5-3.5-5-6.5V3.6Z"}),(0,I.jsx)("path",{d:"M5.8 8 7.4 9.6 10.4 6.4",strokeLinecap:"round"})]})}function M_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,I.jsx)("rect",{x:"2.2",y:"2.2",width:"4.6",height:"4.6",rx:"1"}),(0,I.jsx)("rect",{x:"9.2",y:"9.2",width:"4.6",height:"4.6",rx:"1"}),(0,I.jsx)("path",{d:"M6.8 4.5h3.2a1.5 1.5 0 0 1 1.5 1.5v3.2",strokeLinecap:"round"})]})}function B_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,I.jsx)("circle",{cx:"7",cy:"7",r:"4.2"}),(0,I.jsx)("path",{d:"M10.2 10.2 14 14"})]})}function Z_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,I.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,I.jsx)("path",{d:"M2 8h12M8 2c1.8 2 1.8 10 0 12M8 2c-1.8 2-1.8 10 0 12"})]})}function L_({size:e=16}){let t="M7.9 1.1c-1 0-1.9.1-2.6.4-.6.2-1 .6-1 1.3v1.6h3.7v.5H2.9c-.8 0-1.5.5-1.8 1.3-.3.9-.3 1.9 0 2.9.3.8.8 1.3 1.5 1.3h1.2V8.6c0-1 .9-1.9 1.9-1.9h3.7c.7 0 1.3-.6 1.3-1.3V2.8c0-.7-.5-1.2-1.3-1.4-.5-.2-1-.3-1.5-.3Zm-2.1 1c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.3-.7-.7.3-.7.7-.7Z";return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:[(0,I.jsx)("path",{d:t}),(0,I.jsx)("path",{d:t,transform:"rotate(180 8 8)"})]})}function P_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,I.jsx)("circle",{cx:"8",cy:"8",r:"6.2"}),(0,I.jsx)("path",{d:"M6.2 6.1a1.9 1.9 0 1 1 2.5 1.8c-.5.2-.7.6-.7 1.1v.3"}),(0,I.jsx)("path",{d:"M8 11.6h.01"})]})}function F_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,I.jsx)("rect",{x:"1.8",y:"5.4",width:"12.4",height:"7.8",rx:"1.3"}),(0,I.jsx)("path",{d:"M5.8 5.4V4.1c0-.6.5-1.1 1.1-1.1h2.2c.6 0 1.1.5 1.1 1.1v1.3"}),(0,I.jsx)("path",{d:"M1.8 8.6h12.4M6.6 8.6v1.4h2.8V8.6"})]})}function V_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,I.jsx)("path",{d:"M2.5 3.2c1.8-.9 3.7-.9 5.5 0v9.6c-1.8-.9-3.7-.9-5.5 0Z"}),(0,I.jsx)("path",{d:"M13.5 3.2c-1.8-.9-3.7-.9-5.5 0v9.6c1.8-.9 3.7-.9 5.5 0Z"})]})}function q_({size:e=16}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,I.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,I.jsx)("path",{d:"M8 4.4V8l2.4 1.6"})]})}function ly({size:e=14}){return(0,I.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,I.jsx)("path",{d:"M4.5 2.8 13 8l-8.5 5.2Z"})})}function H_({size:e=14}){return(0,I.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:[(0,I.jsx)("rect",{x:"4",y:"3",width:"3",height:"10",rx:"1"}),(0,I.jsx)("rect",{x:"9",y:"3",width:"3",height:"10",rx:"1"})]})}var s={background:"var(--vscode-sideBar-background, var(--vscode-editor-background))",foreground:"var(--vscode-foreground)",muted:"var(--vscode-descriptionForeground)",border:"var(--vscode-widget-border, var(--vscode-panel-border))",inputBackground:"var(--vscode-input-background)",inputForeground:"var(--vscode-input-foreground)",inputBorder:"var(--vscode-input-border, var(--vscode-widget-border))",buttonBackground:"var(--vscode-button-background)",buttonForeground:"var(--vscode-button-foreground)",buttonHoverBackground:"var(--vscode-button-hoverBackground)",secondaryButtonBackground:"var(--vscode-button-secondaryBackground, var(--vscode-input-background))",secondaryButtonForeground:"var(--vscode-button-secondaryForeground, var(--vscode-foreground))",secondaryButtonHoverBackground:"var(--vscode-button-secondaryHoverBackground, var(--vscode-toolbar-hoverBackground))",hoverBackground:"var(--vscode-toolbar-hoverBackground)",error:"var(--vscode-errorForeground)",warning:"var(--vscode-editorWarning-foreground, var(--vscode-list-warningForeground, var(--vscode-errorForeground)))",focusBorder:"var(--vscode-focusBorder)",assistantBubble:"var(--vscode-editor-inactiveSelectionBackground, var(--vscode-input-background))",accent:"var(--lc-accent, #22C55E)",accentDeep:"var(--lc-accent-deep, #157A3A)",accentContrast:"var(--lc-accent-contrast, #12111a)",accentSoft:"var(--lc-accent-a12, rgba(34, 197, 94, 0.12))",accentRing:"var(--lc-accent-a35, rgba(34, 197, 94, 0.35))",accentGradient:"linear-gradient(135deg, var(--lc-accent-deep, #157A3A), var(--lc-accent, #22C55E))",expert:"var(--lc-expert, #D97757)",expertDeep:"var(--lc-expert-deep, #86492F)",expertContrast:"var(--lc-expert-contrast, #ffffff)",expertSoft:"var(--lc-expert-a12, rgba(217, 119, 87, 0.12))",expertRing:"var(--lc-expert-a35, rgba(217, 119, 87, 0.35))",expertGradient:"linear-gradient(135deg, var(--lc-expert-deep, #86492F), var(--lc-expert, #D97757))"},B="var(--vscode-font-family, sans-serif)",G_={button:"lc-btn",accentButton:"lc-btn lc-btn-accent",input:"lc-input",scroll:"lc-scroll",panel:"lc-panel",tab:"lc-tab",swatch:"lc-swatch"};function me(e){return{background:e?s.secondaryButtonBackground:s.accentGradient,color:e?s.muted:s.accentContrast,border:"none",borderRadius:6,padding:"5px 14px",cursor:e?"default":"pointer",opacity:e?.6:1,fontFamily:B,fontWeight:500}}function be(e,t=!1){let n={display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:0,borderRadius:8,cursor:t?"default":"pointer",opacity:t?.5:1,flexShrink:0};return e==="primary"?{...n,background:s.accentGradient,color:s.accentContrast,border:"none"}:e==="secondary"?{...n,background:s.secondaryButtonBackground,color:s.secondaryButtonForeground,border:`1px solid ${s.border}`}:{...n,background:"transparent",color:s.foreground,border:"none"}}function G(){return{background:s.inputBackground,color:s.inputForeground,border:`1px solid ${s.inputBorder}`,borderRadius:6,padding:"6px 8px",fontFamily:B,fontSize:13,width:"100%",boxSizing:"border-box"}}function Y_(e=!1){return{background:s.inputBackground,color:s.inputForeground,border:`1px solid ${s.inputBorder}`,borderRadius:6,padding:e?"2px 6px":"6px 8px",fontFamily:B,fontSize:e?11:13,cursor:"pointer"}}function V(){return{color:s.muted,fontSize:12,display:"block",marginBottom:4}}function C(){return{background:s.secondaryButtonBackground,color:s.secondaryButtonForeground,border:`1px solid ${s.border}`,borderRadius:6,padding:"4px 10px",cursor:"pointer",fontFamily:B,fontSize:12}}function Mt(){return{color:s.error,fontSize:11,display:"block",marginTop:2}}function Je(e="neutral"){return{display:"inline-block",fontSize:10,padding:"1px 6px",borderRadius:8,border:`1px solid ${s.border}`,color:e==="warning"?s.error:s.muted}}var wt=P(ie(),1),fy=P(ge(),1);var _i=["break","case","catch","class","const","continue","default","delete","do","else","enum","export","extends","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","try","typeof","var","void","while","yield","async","await","true","false","type","readonly","satisfies","as","keyof"],cy=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","False","try","while","with","yield","self","match","case"],sy=["if","then","else","elif","fi","for","in","do","done","while","case","esac","function","return","export","local","echo","cd","set","unset","source"],UA=["select","from","where","insert","into","values","update","set","delete","create","table","drop","alter","join","inner","left","right","outer","on","group","by","order","having","limit","union","distinct","as","and","or","not","null","index"],NA=["fn","func","impl","struct","trait","mut","use","pub","match","end","def","module","require"];function St(e,t={}){return{lineComments:["//"],blockComments:[["/*","*/"]],quotes:['"',"'","`"],tripleQuotes:!1,keywords:new Set(e),...t}}var Xo={lineComments:["#"],blockComments:[]},J_={javascript:St(_i),typescript:St(_i),java:St(_i),csharp:St(_i),cpp:St(_i),c:St(_i),go:St([..._i,"func","defer","chan","go","range","struct","map","nil"]),rust:St([..._i,"fn","impl","trait","mut","pub","use","match","crate","Some","None"]),json:St(["true","false","null"],{lineComments:[],blockComments:[],quotes:['"']}),python:St(cy,{...Xo,tripleQuotes:!0}),shell:St(sy,Xo),powershell:St([...sy,"param","begin","process"],Xo),yaml:St(["true","false","null"],{...Xo,quotes:['"',"'"]}),toml:St(["true","false"],Xo),ruby:St([...cy,"end","do","unless","elsif","nil"],Xo),sql:St(UA,{lineComments:["--"],blockComments:[["/*","*/"]],quotes:['"',"'"]}),html:St([],{lineComments:[],blockComments:[["<!--","-->"]],quotes:['"',"'"]}),css:St([],{lineComments:[],blockComments:[["/*","*/"]],quotes:['"',"'"]}),default:St([..._i,...cy,...sy,...NA],{lineComments:["//","#","--"],blockComments:[["/*","*/"],["<!--","-->"]],tripleQuotes:!0})},RA={js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",tsx:"typescript",py:"python",py3:"python",python3:"python",sh:"shell",bash:"shell",zsh:"shell",console:"shell",ps1:"powershell",pwsh:"powershell",yml:"yaml",rb:"ruby",rs:"rust",golang:"go","c++":"cpp",cs:"csharp",htm:"html",xml:"html",scss:"css",postgres:"sql",psql:"sql"};function MA(e){let t=(e??"").trim().toLowerCase();return J_[RA[t]??t]??J_.default}var BA=/[A-Za-z_$]/,X_=/[A-Za-z0-9_$]/,ZA=/[{}[\]()<>;,.:?!&|+\-*/%=~^@]/;function Ol(e,t){let n=MA(t),r=[],i="",o=()=>{i.length>0&&(r.push({text:i,kind:"plain"}),i="")},a=(c,u)=>{o(),r.push({text:c,kind:u})},l=0;for(;l<e.length;){let c=e.slice(l),u=n.blockComments.find(f=>c.startsWith(f[0]));if(u!==void 0){let f=e.indexOf(u[1],l+u[0].length),x=f===-1?e.length:f+u[1].length;a(e.slice(l,x),"comment"),l=x;continue}if(n.lineComments.find(f=>c.startsWith(f))!==void 0){let f=e.indexOf(`
75
- `,l),x=f===-1?e.length:f;a(e.slice(l,x),"comment"),l=x;continue}let m=n.quotes.find(f=>c.startsWith(f));if(m!==void 0){let f=n.tripleQuotes&&c.startsWith(m.repeat(3)),x=f?m.repeat(3):m,_=l+x.length;for(;_<e.length;){if(e[_]==="\\"){_+=2;continue}if(e.startsWith(x,_)){_+=x.length;break}if(!f&&e[_]===`
76
- `)break;_++}a(e.slice(l,Math.min(_,e.length)),"string"),l=Math.min(_,e.length);continue}let p=e[l];if(/[0-9]/.test(p)&&!X_.test(e[l-1]??" ")){let f=l;for(;f<e.length&&/[0-9a-fA-FxXoObB._]/.test(e[f]);)f++;a(e.slice(l,f),"number"),l=f;continue}if(BA.test(p)){let f=l;for(;f<e.length&&X_.test(e[f]);)f++;let x=e.slice(l,f);n.keywords.has(x)||n.keywords.has(x.toLowerCase())?a(x,"keyword"):i+=x,l=f;continue}if(ZA.test(p)){a(p,"punctuation"),l++;continue}i+=p,l++}return o(),r}var Ul={plain:void 0,comment:"var(--vscode-descriptionForeground)",string:"var(--vscode-debugTokenExpression-string, var(--vscode-charts-orange))",number:"var(--vscode-debugTokenExpression-number, var(--vscode-charts-green))",keyword:"var(--vscode-debugTokenExpression-name, var(--vscode-charts-blue))",punctuation:"var(--vscode-descriptionForeground)"};function LA(e,t){let n=Array.from({length:e.length+1},()=>new Array(t.length+1).fill(0));for(let r=e.length-1;r>=0;r--)for(let i=t.length-1;i>=0;i--){let o=n[r],a=n[r+1];o[i]=e[r]===t[i]?a[i+1]+1:Math.max(a[i],o[i+1])}return n}function K_(e){return e.length===0?[]:e.replace(/\r\n/g,`
74
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(l.cycle){o(a);continue}if(l.count>1&&e.reused==="ref"){o(a);continue}}}function ur(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=l=>{let s=e.seen.get(l);if(s.ref===null)return;let u=s.def??s.schema,d={...u},m=s.ref;if(s.ref=null,m){r(m);let f=e.seen.get(m),x=f.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(x)):Object.assign(u,x),Object.assign(u,d),l._zod.parent===m)for(let N in u)N==="$ref"||N==="allOf"||N in d||delete u[N];if(x.$ref&&f.def)for(let N in u)N==="$ref"||N==="allOf"||N in f.def&&JSON.stringify(u[N])===JSON.stringify(f.def[N])&&delete u[N]}let h=l._zod.parent;if(h&&h!==m){r(h);let f=e.seen.get(h);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let x in u)x==="$ref"||x==="allOf"||x in f.def&&JSON.stringify(u[x])===JSON.stringify(f.def[x])&&delete u[x]}e.override({zodSchema:l,jsonSchema:u,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())r(l[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&i.id===o&&delete i.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let s=l[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{let l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wo(t,"input",e.processors),output:Wo(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function Xt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xt(r.element,n);if(r.type==="set")return Xt(r.valueType,n);if(r.type==="lazy")return Xt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Xt(r.innerType,n);if(r.type==="intersection")return Xt(r.left,n)||Xt(r.right,n);if(r.type==="record"||r.type==="map")return Xt(r.keyType,n)||Xt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xt(r.in,n)||Xt(r.out,n);if(r.type==="object"){for(let i in r.shape)if(Xt(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(let i of r.options)if(Xt(i,n))return!0;return!1}if(r.type==="tuple"){for(let i of r.items)if(Xt(i,n))return!0;return!!(r.rest&&Xt(r.rest,n))}return!1}var yg=(e,t={})=>n=>{let r=sr({...n,processors:t});return je(e,r),cr(r,e),ur(r,e)},Wo=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r??{},a=sr({...i??{},target:o,io:t,processors:n});return je(e,a),cr(a,e),ur(a,e)};var gA={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},vg=(e,t,n,r)=>{let i=n;i.type="string";let{minimum:o,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof a=="number"&&(i.maxLength=a),l&&(i.format=gA[l]??l,i.format===""&&delete i.format,l==="time"&&delete i.format),u&&(i.contentEncoding=u),s&&s.size>0){let d=[...s];d.length===1?i.pattern=d[0].source:d.length>1&&(i.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},bg=(e,t,n,r)=>{let i=n,{minimum:o,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?i.type="integer":i.type="number";let m=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),h=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";m?f?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d:typeof o=="number"&&(i.minimum=o),h?f?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u:typeof a=="number"&&(i.maximum=a),typeof s=="number"&&(i.multipleOf=s)},xg=(e,t,n,r)=>{n.type="boolean"},Sg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},kg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},_g=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},wg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},$g=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},zg=(e,t,n,r)=>{n.not={}},Tg=(e,t,n,r)=>{},Cg=(e,t,n,r)=>{},Eg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Ig=(e,t,n,r)=>{let i=e._zod.def,o=bl(i.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Dg=(e,t,n,r)=>{let i=e._zod.def,o=[];for(let a of i.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},Ag=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},jg=(e,t,n,r)=>{let i=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},Og=(e,t,n,r)=>{let i=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(o.minLength=a),l!==void 0&&(o.maxLength=l),s?s.length===1?(o.contentMediaType=s[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=s.map(u=>({contentMediaType:u}))):Object.assign(i,o)},Ug=(e,t,n,r)=>{n.type="boolean"},Ng=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Rg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Mg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Bg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Zg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Lg=(e,t,n,r)=>{let i=n,o=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(i.minItems=a),typeof l=="number"&&(i.maxItems=l),i.type="array",i.items=je(o.element,t,{...r,path:[...r.path,"items"]})},Pg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="object",i.properties={};let a=o.shape;for(let u in a)i.properties[u]=je(a[u],t,{...r,path:[...r.path,"properties",u]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{let d=o.shape[u]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(i.required=Array.from(s)),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=je(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},yu=(e,t,n,r)=>{let i=e._zod.def,o=i.inclusive===!1,a=i.options.map((l,s)=>je(l,t,{...r,path:[...r.path,o?"oneOf":"anyOf",s]}));o?n.oneOf=a:n.anyOf=a},Fg=(e,t,n,r)=>{let i=e._zod.def,o=je(i.left,t,{...r,path:[...r.path,"allOf",0]}),a=je(i.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(o)?o.allOf:[o],...l(a)?a.allOf:[a]];n.allOf=s},Vg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=o.items.map((h,f)=>je(h,t,{...r,path:[...r.path,a,f]})),u=o.rest?je(o.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=s,u&&(i.items=u)):t.target==="openapi-3.0"?(i.items={anyOf:s},u&&i.items.anyOf.push(u),i.minItems=s.length,u||(i.maxItems=s.length)):(i.items=s,u&&(i.additionalItems=u));let{minimum:d,maximum:m}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof m=="number"&&(i.maxItems=m)},qg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="object";let a=o.keyType,s=a._zod.bag?.patterns;if(o.mode==="loose"&&s&&s.size>0){let d=je(o.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(let m of s)i.patternProperties[m.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=je(o.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=je(o.valueType,t,{...r,path:[...r.path,"additionalProperties"]});let u=a._zod.values;if(u){let d=[...u].filter(m=>typeof m=="string"||typeof m=="number");d.length>0&&(i.required=d)}},Hg=(e,t,n,r)=>{let i=e._zod.def,o=je(i.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Gg=(e,t,n,r)=>{let i=e._zod.def;je(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Yg=(e,t,n,r)=>{let i=e._zod.def;je(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Jg=(e,t,n,r)=>{let i=e._zod.def;je(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Xg=(e,t,n,r)=>{let i=e._zod.def;je(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType;let a;try{a=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Kg=(e,t,n,r)=>{let i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?i.out:i.in:i.out;je(a,t,r);let l=t.seen.get(e);l.ref=a},Wg=(e,t,n,r)=>{let i=e._zod.def;je(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},Qg=(e,t,n,r)=>{let i=e._zod.def;je(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},vu=(e,t,n,r)=>{let i=e._zod.def;je(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},ey=(e,t,n,r)=>{let i=e._zod.innerType;je(i,t,r);let o=t.seen.get(e);o.ref=i},gu={string:vg,number:bg,boolean:xg,bigint:Sg,symbol:kg,null:_g,undefined:wg,void:$g,never:zg,any:Tg,unknown:Cg,date:Eg,enum:Ig,literal:Dg,nan:Ag,template_literal:jg,file:Og,success:Ug,custom:Ng,function:Rg,transform:Mg,map:Bg,set:Zg,array:Lg,object:Pg,union:yu,intersection:Fg,tuple:Vg,record:qg,nullable:Hg,nonoptional:Gg,default:Yg,prefault:Jg,catch:Xg,pipe:Kg,readonly:Wg,promise:Qg,optional:vu,lazy:ey};function bu(e,t){if("_idmap"in e){let r=e,i=sr({...t,processors:gu}),o={};for(let s of r._idmap.entries()){let[u,d]=s;je(d,i)}let a={},l={registry:r,uri:t?.uri,defs:o};i.external=l;for(let s of r._idmap.entries()){let[u,d]=s;cr(i,d),a[u]=ur(i,d)}if(Object.keys(o).length>0){let s=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:o}}return{schemas:a}}let n=sr({...t,processors:gu});return je(e,n),cr(n,e),ur(n,e)}var xu=class{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 n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=sr({processors:gu,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return je(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),cr(this.ctx,t);let r=ur(this.ctx,t),{"~standard":i,...o}=r;return o}};var uk={};var Rl={};$i(Rl,{ZodAny:()=>wy,ZodArray:()=>Cy,ZodBase64:()=>Lu,ZodBase64URL:()=>Pu,ZodBigInt:()=>aa,ZodBigIntFormat:()=>qu,ZodBoolean:()=>oa,ZodCIDRv4:()=>Bu,ZodCIDRv6:()=>Zu,ZodCUID:()=>Au,ZodCUID2:()=>ju,ZodCatch:()=>Xy,ZodCodec:()=>Jl,ZodCustom:()=>Xl,ZodCustomStringFormat:()=>ia,ZodDate:()=>Vl,ZodDefault:()=>Vy,ZodDiscriminatedUnion:()=>Iy,ZodE164:()=>Fu,ZodEmail:()=>Eu,ZodEmoji:()=>Iu,ZodEnum:()=>ta,ZodExactOptional:()=>Ly,ZodFile:()=>By,ZodFunction:()=>av,ZodGUID:()=>Bl,ZodIPv4:()=>Ru,ZodIPv6:()=>Mu,ZodIntersection:()=>Dy,ZodJWT:()=>Vu,ZodKSUID:()=>Nu,ZodLazy:()=>iv,ZodLiteral:()=>My,ZodMAC:()=>yy,ZodMap:()=>Ny,ZodNaN:()=>Wy,ZodNanoID:()=>Du,ZodNever:()=>zy,ZodNonOptional:()=>Ku,ZodNull:()=>ky,ZodNullable:()=>Fy,ZodNumber:()=>ra,ZodNumberFormat:()=>no,ZodObject:()=>Hl,ZodOptional:()=>Xu,ZodPipe:()=>Yl,ZodPrefault:()=>Hy,ZodPreprocess:()=>Qy,ZodPromise:()=>ov,ZodReadonly:()=>ev,ZodRecord:()=>ea,ZodSet:()=>Ry,ZodString:()=>na,ZodStringFormat:()=>Pe,ZodSuccess:()=>Jy,ZodSymbol:()=>xy,ZodTemplateLiteral:()=>nv,ZodTransform:()=>Zy,ZodTuple:()=>jy,ZodType:()=>ge,ZodULID:()=>Ou,ZodURL:()=>Fl,ZodUUID:()=>ci,ZodUndefined:()=>Sy,ZodUnion:()=>Gl,ZodUnknown:()=>$y,ZodVoid:()=>Ty,ZodXID:()=>Uu,ZodXor:()=>Ey,_ZodString:()=>Cu,_default:()=>qy,_function:()=>b_,any:()=>Xk,array:()=>ql,base64:()=>jk,base64url:()=>Ok,bigint:()=>qk,boolean:()=>by,catch:()=>Ky,check:()=>x_,cidrv4:()=>Dk,cidrv6:()=>Ak,codec:()=>p_,cuid:()=>_k,cuid2:()=>wk,custom:()=>S_,date:()=>Wk,describe:()=>k_,discriminatedUnion:()=>r_,e164:()=>Uk,email:()=>mk,emoji:()=>Sk,enum:()=>Yu,exactOptional:()=>Py,file:()=>d_,float32:()=>Lk,float64:()=>Pk,function:()=>b_,guid:()=>hk,hash:()=>Zk,hex:()=>Bk,hostname:()=>Mk,httpUrl:()=>xk,instanceof:()=>w_,int:()=>zu,int32:()=>Fk,int64:()=>Hk,intersection:()=>Ay,invertCodec:()=>g_,ipv4:()=>Ck,ipv6:()=>Ik,json:()=>z_,jwt:()=>Nk,keyof:()=>Qk,ksuid:()=>Tk,lazy:()=>rv,literal:()=>u_,looseObject:()=>n_,looseRecord:()=>a_,mac:()=>Ek,map:()=>l_,meta:()=>__,nan:()=>h_,nanoid:()=>kk,nativeEnum:()=>c_,never:()=>Hu,nonoptional:()=>Yy,null:()=>_y,nullable:()=>Ll,nullish:()=>f_,number:()=>vy,object:()=>e_,optional:()=>Zl,partialRecord:()=>o_,pipe:()=>Tu,prefault:()=>Gy,preprocess:()=>T_,promise:()=>v_,readonly:()=>tv,record:()=>Uy,refine:()=>lv,set:()=>s_,strictObject:()=>t_,string:()=>Ml,stringFormat:()=>Rk,stringbool:()=>$_,success:()=>m_,superRefine:()=>sv,symbol:()=>Yk,templateLiteral:()=>y_,transform:()=>Ju,tuple:()=>Oy,uint32:()=>Vk,uint64:()=>Gk,ulid:()=>$k,undefined:()=>Jk,union:()=>Gu,unknown:()=>to,url:()=>bk,uuid:()=>pk,uuidv4:()=>gk,uuidv6:()=>yk,uuidv7:()=>vk,void:()=>Kk,xid:()=>zk,xor:()=>i_});var Su={};$i(Su,{endsWith:()=>Vo,gt:()=>li,gte:()=>Jt,includes:()=>Po,length:()=>eo,lowercase:()=>Zo,lt:()=>ai,lte:()=>vn,maxLength:()=>Qr,maxSize:()=>lr,mime:()=>qo,minLength:()=>Ti,minSize:()=>si,multipleOf:()=>ar,negative:()=>fu,nonnegative:()=>hu,nonpositive:()=>mu,normalize:()=>Ho,overwrite:()=>Qn,positive:()=>du,property:()=>pu,regex:()=>Bo,size:()=>Wr,slugify:()=>Xo,startsWith:()=>Fo,toLowerCase:()=>Yo,toUpperCase:()=>Jo,trim:()=>Go,uppercase:()=>Lo});var Qo={};$i(Qo,{ZodISODate:()=>_u,ZodISODateTime:()=>ku,ZodISODuration:()=>$u,ZodISOTime:()=>wu,date:()=>ny,datetime:()=>ty,duration:()=>ry,time:()=>iy});var ku=_("ZodISODateTime",(e,t)=>{Ah.init(e,t),Pe.init(e,t)});function ty(e){return Np(ku,e)}var _u=_("ZodISODate",(e,t)=>{jh.init(e,t),Pe.init(e,t)});function ny(e){return Rp(_u,e)}var wu=_("ZodISOTime",(e,t)=>{Oh.init(e,t),Pe.init(e,t)});function iy(e){return Mp(wu,e)}var $u=_("ZodISODuration",(e,t)=>{Uh.init(e,t),Pe.init(e,t)});function ry(e){return Bp($u,e)}var dk=(e,t)=>{wl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>zl(e,n)},flatten:{value:n=>$l(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Io,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Io,2)}},isEmpty:{get(){return e.issues.length===0}}})},vA=_("ZodError",dk),an=_("ZodError",dk,{Parent:Error});var oy=jo(an),ay=Oo(an),ly=Uo(an),sy=No(an),cy=bc(an),uy=xc(an),dy=Sc(an),fy=kc(an),my=_c(an),hy=wc(an),py=$c(an),gy=zc(an);var fk=new WeakMap;function Pl(e,t,n){let r=Object.getPrototypeOf(e),i=fk.get(r);if(i||(i=new Set,fk.set(r,i)),!i.has(t)){i.add(t);for(let o in n){let a=n[o];Object.defineProperty(r,o,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var ge=_("ZodType",(e,t)=>(ue.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wo(e,"input"),output:Wo(e,"output")}}),e.toJSONSchema=yg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>oy(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>ly(e,n,r),e.parseAsync=async(n,r)=>ay(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>sy(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>cy(e,n,r),e.decode=(n,r)=>uy(e,n,r),e.encodeAsync=async(n,r)=>dy(e,n,r),e.decodeAsync=async(n,r)=>fy(e,n,r),e.safeEncode=(n,r)=>my(e,n,r),e.safeDecode=(n,r)=>hy(e,n,r),e.safeEncodeAsync=async(n,r)=>py(e,n,r),e.safeDecodeAsync=async(n,r)=>gy(e,n,r),Pl(e,"ZodType",{check(...n){let r=this.def;return this.clone(R.mergeDefs(r,{checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Gt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(lv(n,r))},superRefine(n,r){return this.check(sv(n,r))},overwrite(n){return this.check(Qn(n))},optional(){return Zl(this)},exactOptional(){return Py(this)},nullable(){return Ll(this)},nullish(){return Zl(Ll(this))},nonoptional(n){return Yy(this,n)},array(){return ql(this)},or(n){return Gu([this,n])},and(n){return Ay(this,n)},transform(n){return Tu(this,Ju(n))},default(n){return qy(this,n)},prefault(n){return Gy(this,n)},catch(n){return Ky(this,n)},pipe(n){return Tu(this,n)},readonly(){return tv(this)},describe(n){let r=this.clone();return At.add(r,{description:n}),r},meta(...n){if(n.length===0)return At.get(this);let r=this.clone();return At.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return At.get(e)?.description},configurable:!0}),e)),Cu=_("_ZodString",(e,t)=>{Kr.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,o)=>vg(e,r,i,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Pl(e,"_ZodString",{regex(...r){return this.check(Bo(...r))},includes(...r){return this.check(Po(...r))},startsWith(...r){return this.check(Fo(...r))},endsWith(...r){return this.check(Vo(...r))},min(...r){return this.check(Ti(...r))},max(...r){return this.check(Qr(...r))},length(...r){return this.check(eo(...r))},nonempty(...r){return this.check(Ti(1,...r))},lowercase(r){return this.check(Zo(r))},uppercase(r){return this.check(Lo(r))},trim(){return this.check(Go())},normalize(...r){return this.check(Ho(...r))},toLowerCase(){return this.check(Yo())},toUpperCase(){return this.check(Jo())},slugify(){return this.check(Xo())}})}),na=_("ZodString",(e,t)=>{Kr.init(e,t),Cu.init(e,t),e.email=n=>e.check(qc(Eu,n)),e.url=n=>e.check(Nl(Fl,n)),e.jwt=n=>e.check(uu(Vu,n)),e.emoji=n=>e.check(Xc(Iu,n)),e.guid=n=>e.check(Ul(Bl,n)),e.uuid=n=>e.check(Hc(ci,n)),e.uuidv4=n=>e.check(Gc(ci,n)),e.uuidv6=n=>e.check(Yc(ci,n)),e.uuidv7=n=>e.check(Jc(ci,n)),e.nanoid=n=>e.check(Kc(Du,n)),e.guid=n=>e.check(Ul(Bl,n)),e.cuid=n=>e.check(Wc(Au,n)),e.cuid2=n=>e.check(Qc(ju,n)),e.ulid=n=>e.check(eu(Ou,n)),e.base64=n=>e.check(lu(Lu,n)),e.base64url=n=>e.check(su(Pu,n)),e.xid=n=>e.check(tu(Uu,n)),e.ksuid=n=>e.check(nu(Nu,n)),e.ipv4=n=>e.check(iu(Ru,n)),e.ipv6=n=>e.check(ru(Mu,n)),e.cidrv4=n=>e.check(ou(Bu,n)),e.cidrv6=n=>e.check(au(Zu,n)),e.e164=n=>e.check(cu(Fu,n)),e.datetime=n=>e.check(ty(n)),e.date=n=>e.check(ny(n)),e.time=n=>e.check(iy(n)),e.duration=n=>e.check(ry(n))});function Ml(e){return Ap(na,e)}var Pe=_("ZodStringFormat",(e,t)=>{Le.init(e,t),Cu.init(e,t)}),Eu=_("ZodEmail",(e,t)=>{_h.init(e,t),Pe.init(e,t)});function mk(e){return qc(Eu,e)}var Bl=_("ZodGUID",(e,t)=>{Sh.init(e,t),Pe.init(e,t)});function hk(e){return Ul(Bl,e)}var ci=_("ZodUUID",(e,t)=>{kh.init(e,t),Pe.init(e,t)});function pk(e){return Hc(ci,e)}function gk(e){return Gc(ci,e)}function yk(e){return Yc(ci,e)}function vk(e){return Jc(ci,e)}var Fl=_("ZodURL",(e,t)=>{wh.init(e,t),Pe.init(e,t)});function bk(e){return Nl(Fl,e)}function xk(e){return Nl(Fl,{protocol:yn.httpProtocol,hostname:yn.domain,...R.normalizeParams(e)})}var Iu=_("ZodEmoji",(e,t)=>{$h.init(e,t),Pe.init(e,t)});function Sk(e){return Xc(Iu,e)}var Du=_("ZodNanoID",(e,t)=>{zh.init(e,t),Pe.init(e,t)});function kk(e){return Kc(Du,e)}var Au=_("ZodCUID",(e,t)=>{Th.init(e,t),Pe.init(e,t)});function _k(e){return Wc(Au,e)}var ju=_("ZodCUID2",(e,t)=>{Ch.init(e,t),Pe.init(e,t)});function wk(e){return Qc(ju,e)}var Ou=_("ZodULID",(e,t)=>{Eh.init(e,t),Pe.init(e,t)});function $k(e){return eu(Ou,e)}var Uu=_("ZodXID",(e,t)=>{Ih.init(e,t),Pe.init(e,t)});function zk(e){return tu(Uu,e)}var Nu=_("ZodKSUID",(e,t)=>{Dh.init(e,t),Pe.init(e,t)});function Tk(e){return nu(Nu,e)}var Ru=_("ZodIPv4",(e,t)=>{Nh.init(e,t),Pe.init(e,t)});function Ck(e){return iu(Ru,e)}var yy=_("ZodMAC",(e,t)=>{Mh.init(e,t),Pe.init(e,t)});function Ek(e){return Op(yy,e)}var Mu=_("ZodIPv6",(e,t)=>{Rh.init(e,t),Pe.init(e,t)});function Ik(e){return ru(Mu,e)}var Bu=_("ZodCIDRv4",(e,t)=>{Bh.init(e,t),Pe.init(e,t)});function Dk(e){return ou(Bu,e)}var Zu=_("ZodCIDRv6",(e,t)=>{Zh.init(e,t),Pe.init(e,t)});function Ak(e){return au(Zu,e)}var Lu=_("ZodBase64",(e,t)=>{Ph.init(e,t),Pe.init(e,t)});function jk(e){return lu(Lu,e)}var Pu=_("ZodBase64URL",(e,t)=>{Fh.init(e,t),Pe.init(e,t)});function Ok(e){return su(Pu,e)}var Fu=_("ZodE164",(e,t)=>{Vh.init(e,t),Pe.init(e,t)});function Uk(e){return cu(Fu,e)}var Vu=_("ZodJWT",(e,t)=>{qh.init(e,t),Pe.init(e,t)});function Nk(e){return uu(Vu,e)}var ia=_("ZodCustomStringFormat",(e,t)=>{Hh.init(e,t),Pe.init(e,t)});function Rk(e,t,n={}){return Ko(ia,e,t,n)}function Mk(e){return Ko(ia,"hostname",yn.hostname,e)}function Bk(e){return Ko(ia,"hex",yn.hex,e)}function Zk(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,i=yn[r];if(!i)throw new Error(`Unrecognized hash format: ${r}`);return Ko(ia,r,i,t)}var ra=_("ZodNumber",(e,t)=>{Uc.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,o)=>bg(e,r,i,o),Pl(e,"ZodNumber",{gt(r,i){return this.check(li(r,i))},gte(r,i){return this.check(Jt(r,i))},min(r,i){return this.check(Jt(r,i))},lt(r,i){return this.check(ai(r,i))},lte(r,i){return this.check(vn(r,i))},max(r,i){return this.check(vn(r,i))},int(r){return this.check(zu(r))},safe(r){return this.check(zu(r))},positive(r){return this.check(li(0,r))},nonnegative(r){return this.check(Jt(0,r))},negative(r){return this.check(ai(0,r))},nonpositive(r){return this.check(vn(0,r))},multipleOf(r,i){return this.check(ar(r,i))},step(r,i){return this.check(ar(r,i))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function vy(e){return Zp(ra,e)}var no=_("ZodNumberFormat",(e,t)=>{Gh.init(e,t),ra.init(e,t)});function zu(e){return Pp(no,e)}function Lk(e){return Fp(no,e)}function Pk(e){return Vp(no,e)}function Fk(e){return qp(no,e)}function Vk(e){return Hp(no,e)}var oa=_("ZodBoolean",(e,t)=>{Il.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xg(e,n,r,i)});function by(e){return Gp(oa,e)}var aa=_("ZodBigInt",(e,t)=>{Nc.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Sg(e,r,i,o),e.gte=(r,i)=>e.check(Jt(r,i)),e.min=(r,i)=>e.check(Jt(r,i)),e.gt=(r,i)=>e.check(li(r,i)),e.gte=(r,i)=>e.check(Jt(r,i)),e.min=(r,i)=>e.check(Jt(r,i)),e.lt=(r,i)=>e.check(ai(r,i)),e.lte=(r,i)=>e.check(vn(r,i)),e.max=(r,i)=>e.check(vn(r,i)),e.positive=r=>e.check(li(BigInt(0),r)),e.negative=r=>e.check(ai(BigInt(0),r)),e.nonpositive=r=>e.check(vn(BigInt(0),r)),e.nonnegative=r=>e.check(Jt(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(ar(r,i));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function qk(e){return Jp(aa,e)}var qu=_("ZodBigIntFormat",(e,t)=>{Yh.init(e,t),aa.init(e,t)});function Hk(e){return Kp(qu,e)}function Gk(e){return Wp(qu,e)}var xy=_("ZodSymbol",(e,t)=>{Jh.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kg(e,n,r,i)});function Yk(e){return Qp(xy,e)}var Sy=_("ZodUndefined",(e,t)=>{Xh.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wg(e,n,r,i)});function Jk(e){return eg(Sy,e)}var ky=_("ZodNull",(e,t)=>{Kh.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_g(e,n,r,i)});function _y(e){return tg(ky,e)}var wy=_("ZodAny",(e,t)=>{Wh.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Tg(e,n,r,i)});function Xk(){return ng(wy)}var $y=_("ZodUnknown",(e,t)=>{Qh.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Cg(e,n,r,i)});function to(){return ig($y)}var zy=_("ZodNever",(e,t)=>{ep.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zg(e,n,r,i)});function Hu(e){return rg(zy,e)}var Ty=_("ZodVoid",(e,t)=>{tp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$g(e,n,r,i)});function Kk(e){return og(Ty,e)}var Vl=_("ZodDate",(e,t)=>{np.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Eg(e,r,i,o),e.min=(r,i)=>e.check(Jt(r,i)),e.max=(r,i)=>e.check(vn(r,i));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Wk(e){return ag(Vl,e)}var Cy=_("ZodArray",(e,t)=>{ip.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Lg(e,n,r,i),e.element=t.element,Pl(e,"ZodArray",{min(n,r){return this.check(Ti(n,r))},nonempty(n){return this.check(Ti(1,n))},max(n,r){return this.check(Qr(n,r))},length(n,r){return this.check(eo(n,r))},unwrap(){return this.element}})});function ql(e,t){return cg(Cy,e,t)}function Qk(e){let t=e._zod.def.shape;return Yu(Object.keys(t))}var Hl=_("ZodObject",(e,t)=>{rp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Pg(e,n,r,i),R.defineLazy(e,"shape",()=>t.shape),Pl(e,"ZodObject",{keyof(){return Yu(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:to()})},loose(){return this.clone({...this._zod.def,catchall:to()})},strict(){return this.clone({...this._zod.def,catchall:Hu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return R.extend(this,n)},safeExtend(n){return R.safeExtend(this,n)},merge(n){return R.merge(this,n)},pick(n){return R.pick(this,n)},omit(n){return R.omit(this,n)},partial(...n){return R.partial(Xu,this,n[0])},required(...n){return R.required(Ku,this,n[0])}})});function e_(e,t){let n={type:"object",shape:e??{},...R.normalizeParams(t)};return new Hl(n)}function t_(e,t){return new Hl({type:"object",shape:e,catchall:Hu(),...R.normalizeParams(t)})}function n_(e,t){return new Hl({type:"object",shape:e,catchall:to(),...R.normalizeParams(t)})}var Gl=_("ZodUnion",(e,t)=>{Dl.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yu(e,n,r,i),e.options=t.options});function Gu(e,t){return new Gl({type:"union",options:e,...R.normalizeParams(t)})}var Ey=_("ZodXor",(e,t)=>{Gl.init(e,t),op.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yu(e,n,r,i),e.options=t.options});function i_(e,t){return new Ey({type:"union",options:e,inclusive:!1,...R.normalizeParams(t)})}var Iy=_("ZodDiscriminatedUnion",(e,t)=>{Gl.init(e,t),ap.init(e,t)});function r_(e,t,n){return new Iy({type:"union",options:t,discriminator:e,...R.normalizeParams(n)})}var Dy=_("ZodIntersection",(e,t)=>{lp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fg(e,n,r,i)});function Ay(e,t){return new Dy({type:"intersection",left:e,right:t})}var jy=_("ZodTuple",(e,t)=>{Rc.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Vg(e,n,r,i),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Oy(e,t,n){let r=t instanceof ue,i=r?n:t,o=r?t:null;return new jy({type:"tuple",items:e,rest:o,...R.normalizeParams(i)})}var ea=_("ZodRecord",(e,t)=>{sp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>qg(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function Uy(e,t,n){return!t||!t._zod?new ea({type:"record",keyType:Ml(),valueType:e,...R.normalizeParams(t)}):new ea({type:"record",keyType:e,valueType:t,...R.normalizeParams(n)})}function o_(e,t,n){let r=Gt(e);return r._zod.values=void 0,new ea({type:"record",keyType:r,valueType:t,...R.normalizeParams(n)})}function a_(e,t,n){return new ea({type:"record",keyType:e,valueType:t,mode:"loose",...R.normalizeParams(n)})}var Ny=_("ZodMap",(e,t)=>{cp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Bg(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(si(...n)),e.nonempty=n=>e.check(si(1,n)),e.max=(...n)=>e.check(lr(...n)),e.size=(...n)=>e.check(Wr(...n))});function l_(e,t,n){return new Ny({type:"map",keyType:e,valueType:t,...R.normalizeParams(n)})}var Ry=_("ZodSet",(e,t)=>{up.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Zg(e,n,r,i),e.min=(...n)=>e.check(si(...n)),e.nonempty=n=>e.check(si(1,n)),e.max=(...n)=>e.check(lr(...n)),e.size=(...n)=>e.check(Wr(...n))});function s_(e,t){return new Ry({type:"set",valueType:e,...R.normalizeParams(t)})}var ta=_("ZodEnum",(e,t)=>{dp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Ig(e,r,i,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{let o={};for(let a of r)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ta({...t,checks:[],...R.normalizeParams(i),entries:o})},e.exclude=(r,i)=>{let o={...t.entries};for(let a of r)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new ta({...t,checks:[],...R.normalizeParams(i),entries:o})}});function Yu(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ta({type:"enum",entries:n,...R.normalizeParams(t)})}function c_(e,t){return new ta({type:"enum",entries:e,...R.normalizeParams(t)})}var My=_("ZodLiteral",(e,t)=>{fp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Dg(e,n,r,i),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 u_(e,t){return new My({type:"literal",values:Array.isArray(e)?e:[e],...R.normalizeParams(t)})}var By=_("ZodFile",(e,t)=>{mp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Og(e,n,r,i),e.min=(n,r)=>e.check(si(n,r)),e.max=(n,r)=>e.check(lr(n,r)),e.mime=(n,r)=>e.check(qo(Array.isArray(n)?n:[n],r))});function d_(e){return ug(By,e)}var Zy=_("ZodTransform",(e,t)=>{hp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Mg(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new tr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(R.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(R.issue(a))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Ju(e){return new Zy({type:"transform",transform:e})}var Xu=_("ZodOptional",(e,t)=>{Mc.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vu(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Zl(e){return new Xu({type:"optional",innerType:e})}var Ly=_("ZodExactOptional",(e,t)=>{pp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vu(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Py(e){return new Ly({type:"optional",innerType:e})}var Fy=_("ZodNullable",(e,t)=>{gp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Hg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Ll(e){return new Fy({type:"nullable",innerType:e})}function f_(e){return Zl(Ll(e))}var Vy=_("ZodDefault",(e,t)=>{yp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Yg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function qy(e,t){return new Vy({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():R.shallowClone(t)}})}var Hy=_("ZodPrefault",(e,t)=>{vp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Jg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Gy(e,t){return new Hy({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():R.shallowClone(t)}})}var Ku=_("ZodNonOptional",(e,t)=>{bp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Gg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Yy(e,t){return new Ku({type:"nonoptional",innerType:e,...R.normalizeParams(t)})}var Jy=_("ZodSuccess",(e,t)=>{xp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ug(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function m_(e){return new Jy({type:"success",innerType:e})}var Xy=_("ZodCatch",(e,t)=>{Sp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Xg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ky(e,t){return new Xy({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Wy=_("ZodNaN",(e,t)=>{kp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ag(e,n,r,i)});function h_(e){return sg(Wy,e)}var Yl=_("ZodPipe",(e,t)=>{Bc.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Kg(e,n,r,i),e.in=t.in,e.out=t.out});function Tu(e,t){return new Yl({type:"pipe",in:e,out:t})}var Jl=_("ZodCodec",(e,t)=>{Yl.init(e,t),Al.init(e,t)});function p_(e,t,n){return new Jl({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function g_(e){let t=e._zod.def;return new Jl({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Qy=_("ZodPreprocess",(e,t)=>{Yl.init(e,t),_p.init(e,t)}),ev=_("ZodReadonly",(e,t)=>{wp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Wg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function tv(e){return new ev({type:"readonly",innerType:e})}var nv=_("ZodTemplateLiteral",(e,t)=>{$p.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>jg(e,n,r,i)});function y_(e,t){return new nv({type:"template_literal",parts:e,...R.normalizeParams(t)})}var iv=_("ZodLazy",(e,t)=>{Cp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ey(e,n,r,i),e.unwrap=()=>e._zod.def.getter()});function rv(e){return new iv({type:"lazy",getter:e})}var ov=_("ZodPromise",(e,t)=>{Tp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Qg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function v_(e){return new ov({type:"promise",innerType:e})}var av=_("ZodFunction",(e,t)=>{zp.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Rg(e,n,r,i)});function b_(e){return new av({type:"function",input:Array.isArray(e?.input)?Oy(e?.input):e?.input??ql(to()),output:e?.output??to()})}var Xl=_("ZodCustom",(e,t)=>{Ep.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ng(e,n,r,i)});function x_(e){let t=new qe({check:"custom"});return t._zod.check=e,t}function S_(e,t){return dg(Xl,e??(()=>!0),t)}function lv(e,t={}){return fg(Xl,e,t)}function sv(e,t){return mg(e,t)}var k_=hg,__=pg;function w_(e,t={}){let n=new Xl({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...R.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var $_=(...e)=>gg({Codec:Jl,Boolean:oa,String:na},...e);function z_(e){let t=rv(()=>Gu([Ml(e),vy(),by(),_y(),ql(t),Uy(Ml(),t)]));return t}function T_(e,t){return new Qy({type:"pipe",in:Ju(e),out:t})}var xA={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 SA(e){ut({customError:e})}function kA(){return ut().customError}var cv;cv||(cv={});var G={...Rl,...Su,iso:Qo},_A=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function wA(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function $A(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let i=n[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}function C_(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return G.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){let i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return G.lazy(()=>{if(!t.refs.has(i))throw new Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let o=$A(i,t),a=Lt(o,t);return t.refs.set(i,a),t.processing.delete(i),a}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return G.null();if(i.length===0)return G.never();if(i.length===1)return G.literal(i[0]);if(i.every(a=>typeof a=="string"))return G.enum(i);let o=i.map(a=>G.literal(a));return o.length<2?o[0]:G.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return G.literal(e.const);let n=e.type;if(Array.isArray(n)){let i=n.map(o=>{let a={...e,type:o};return C_(a,t)});return i.length===0?G.never():i.length===1?i[0]:G.union(i)}if(!n)return G.any();let r;switch(n){case"string":{let i=G.string();if(e.format){let o=e.format;o==="email"?i=i.check(G.email()):o==="uri"||o==="uri-reference"?i=i.check(G.url()):o==="uuid"||o==="guid"?i=i.check(G.uuid()):o==="date-time"?i=i.check(G.iso.datetime()):o==="date"?i=i.check(G.iso.date()):o==="time"?i=i.check(G.iso.time()):o==="duration"?i=i.check(G.iso.duration()):o==="ipv4"?i=i.check(G.ipv4()):o==="ipv6"?i=i.check(G.ipv6()):o==="mac"?i=i.check(G.mac()):o==="cidr"?i=i.check(G.cidrv4()):o==="cidr-v6"?i=i.check(G.cidrv6()):o==="base64"?i=i.check(G.base64()):o==="base64url"?i=i.check(G.base64url()):o==="e164"?i=i.check(G.e164()):o==="jwt"?i=i.check(G.jwt()):o==="emoji"?i=i.check(G.emoji()):o==="nanoid"?i=i.check(G.nanoid()):o==="cuid"?i=i.check(G.cuid()):o==="cuid2"?i=i.check(G.cuid2()):o==="ulid"?i=i.check(G.ulid()):o==="xid"?i=i.check(G.xid()):o==="ksuid"&&(i=i.check(G.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),r=i;break}case"number":case"integer":{let i=n==="integer"?G.number().int():G.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),r=i;break}case"boolean":{r=G.boolean();break}case"null":{r=G.null();break}case"object":{let i={},o=e.properties||{},a=new Set(e.required||[]);for(let[s,u]of Object.entries(o)){let d=Lt(u,t);i[s]=a.has(s)?d:d.optional()}if(e.propertyNames){let s=Lt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Lt(e.additionalProperties,t):G.any();if(Object.keys(i).length===0){r=G.record(s,u);break}let d=G.object(i).passthrough(),m=G.looseRecord(s,u);r=G.intersection(d,m);break}if(e.patternProperties){let s=e.patternProperties,u=Object.keys(s),d=[];for(let h of u){let f=Lt(s[h],t),x=G.string().regex(new RegExp(h));d.push(G.looseRecord(x,f))}let m=[];if(Object.keys(i).length>0&&m.push(G.object(i).passthrough()),m.push(...d),m.length===0)r=G.object({}).passthrough();else if(m.length===1)r=m[0];else{let h=G.intersection(m[0],m[1]);for(let f=2;f<m.length;f++)h=G.intersection(h,m[f]);r=h}break}let l=G.object(i);e.additionalProperties===!1?r=l.strict():typeof e.additionalProperties=="object"?r=l.catchall(Lt(e.additionalProperties,t)):r=l.passthrough();break}case"array":{let i=e.prefixItems,o=e.items;if(i&&Array.isArray(i)){let a=i.map(s=>Lt(s,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?Lt(o,t):void 0;l?r=G.tuple(a).rest(l):r=G.tuple(a),typeof e.minItems=="number"&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(G.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(s=>Lt(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?Lt(e.additionalItems,t):void 0;l?r=G.tuple(a).rest(l):r=G.tuple(a),typeof e.minItems=="number"&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(G.maxLength(e.maxItems)))}else if(o!==void 0){let a=Lt(o,t),l=G.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),r=l}else r=G.array(G.any());break}default:throw new Error(`Unsupported type: ${n}`)}return r}function Lt(e,t){if(typeof e=="boolean")return e?G.any():G.never();let n=C_(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(u=>Lt(u,t)),s=G.union(l);n=r?G.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(u=>Lt(u,t)),s=G.xor(l);n=r?G.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:G.any();else{let l=r?n:Lt(e.allOf[0],t),s=r?0:1;for(let u=s;u<e.allOf.length;u++)l=G.intersection(l,Lt(e.allOf[u],t));n=l}e.nullable===!0&&t.version==="openapi-3.0"&&(n=G.nullable(n)),e.readOnly===!0&&(n=G.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of o)l in e&&(i[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(i[l]=e[l]);for(let l of Object.keys(e))_A.has(l)||(i[l]=e[l]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function E_(e,t){if(typeof e=="boolean")return e?G.any():G.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=wA(n,t?.defaultTarget),i=n.$defs||n.definitions||{},o={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??At};return Lt(n,o)}var uv={};$i(uv,{bigint:()=>EA,boolean:()=>CA,date:()=>IA,number:()=>TA,string:()=>zA});function zA(e){return jp(na,e)}function TA(e){return Lp(ra,e)}function CA(e){return Yp(oa,e)}function EA(e){return Xp(aa,e)}function IA(e){return lg(Vl,e)}ut(Zc());var DA=z.object({command:z.string().min(1),args:z.array(z.string()).optional(),env:z.record(z.string(),z.string()).optional(),cwd:z.string().optional(),disabled:z.boolean().optional(),disabledTools:z.array(z.string()).optional(),timeout:z.number().positive().max(3600).optional(),toolTimeouts:z.record(z.string(),z.number().positive().max(3600)).optional()}),AA=z.object({url:z.string().min(1).url(),headers:z.record(z.string(),z.string()).optional(),disabled:z.boolean().optional(),disabledTools:z.array(z.string()).optional(),timeout:z.number().positive().max(3600).optional(),toolTimeouts:z.record(z.string(),z.number().positive().max(3600)).optional()}),jA=z.union([DA,AA]),KM=z.record(z.string(),jA);function I_(e){return"command"in e}var Kl={kind:"python",venvDir:"",interpreter:"",script:"",packageName:"",command:"",args:[],url:"",headers:{},env:{},cwd:"",timeout:""};function Wu(e,t){let n=e.replace(/[\\/]+$/,"");return t==="win32"?`${n}\\Scripts\\python.exe`:`${n}/bin/python`}function D_(e){let t=e.split(/[\\/]/);return t[t.length-1]??""}function OA(e){let t=e.split(/[\\/]/);if(t.length<3)return;let n=t[t.length-2]?.toLowerCase();if(n!=="scripts"&&n!=="bin")return;let r=e.includes("\\")?"\\":"/";return t.slice(0,-2).join(r)}function UA(e){return/^python(3(\.\d+)?)?(\.exe)?$/i.test(D_(e))}function NA(e){return/^npx(\.cmd|\.exe)?$/i.test(D_(e))}function dv(e){if(!I_(e))return{...Kl,kind:"http",url:e.url,headers:e.headers??{},timeout:e.timeout===void 0?"":String(e.timeout)};let t={...Kl,timeout:e.timeout===void 0?"":String(e.timeout),kind:"custom",command:e.command,args:e.args??[],env:e.env??{},cwd:e.cwd??""};if(NA(e.command)){let n=[...e.args??[]],r=[];for(;n.length>0&&n[0]?.startsWith("-")===!0;)r.push(n.shift());let i=n.shift();return i!==void 0&&r.every(o=>o==="-y"||o==="--yes")?{...t,kind:"npx",packageName:i,args:n}:t}if(UA(e.command)){let n=[...e.args??[]],r=n.shift();if(r!==void 0)return{...t,kind:"python",interpreter:e.command,venvDir:OA(e.command)??"",script:r,args:n}}return t}function Qu(e,t,n){let r={...n?.disabled!==void 0?{disabled:n.disabled}:{},...n?.disabledTools!==void 0?{disabledTools:n.disabledTools}:{}},i=Number(e.timeout.trim()),o=e.timeout.trim().length>0&&Number.isFinite(i)&&i>0?{timeout:i}:{};if(e.kind==="http")return{url:e.url.trim(),...Object.keys(e.headers).length>0?{headers:e.headers}:{},...o,...r};let a=e.args.filter(u=>u.trim().length>0),l,s;return e.kind==="python"?(l=e.interpreter.trim().length>0?e.interpreter.trim():Wu(e.venvDir.trim(),t),s=[e.script.trim(),...a]):e.kind==="npx"?(l="npx",s=["-y",e.packageName.trim(),...a]):(l=e.command.trim(),s=a),{command:l,...s.length>0?{args:s}:{},...Object.keys(e.env).length>0?{env:e.env}:{},...e.cwd.trim().length>0?{cwd:e.cwd.trim()}:{},...o,...r}}function fv(e,t){let n={};if(t.timeout.trim().length>0){let i=Number(t.timeout.trim());!Number.isFinite(i)||i<=0?n.timeout="Enter a number of seconds, or leave it blank.":i>3600&&(n.timeout="An hour is the most a single call may take.")}let r={};switch(e.trim().length===0?r.name="Give the server a name.":/[^\w.-]/.test(e.trim())&&(r.name="Use letters, numbers, dots, dashes and underscores \u2014 the name prefixes every tool."),t.kind){case"python":t.interpreter.trim().length===0&&t.venvDir.trim().length===0&&(r.venvDir="Point at the virtualenv folder, or set the interpreter directly."),t.script.trim().length===0&&(r.script="Point at the server script.");break;case"npx":t.packageName.trim().length===0&&(r.packageName="Name the npm package.");break;case"custom":t.command.trim().length===0&&(r.command="Name the executable to run.");break;case"http":if(t.url.trim().length===0)r.url="Enter the server URL.";else try{new URL(t.url.trim())}catch{r.url="Must be a valid URL."}break}return{...r,...n}}var ed=[{id:"openai",label:"OpenAI",wireFormat:"openai",baseUrl:"https://api.openai.com/v1"},{id:"deepseek",label:"DeepSeek",wireFormat:"openai",baseUrl:"https://api.deepseek.com/v1"},{id:"anthropic",label:"Anthropic",wireFormat:"anthropic",baseUrl:"https://api.anthropic.com/v1"},{id:"gemini",label:"Google Gemini",wireFormat:"gemini",baseUrl:"https://generativelanguage.googleapis.com/v1beta"},{id:"custom",label:"Custom (OpenAI-compatible)",wireFormat:"openai",baseUrl:""},{id:"custom-anthropic",label:"Custom (Anthropic-compatible)",wireFormat:"anthropic",baseUrl:""},{id:"custom-gemini",label:"Custom (Gemini-compatible)",wireFormat:"gemini",baseUrl:""}];function hv(e){if(e===void 0)return;if(!e.reportsCost)return"This plan reports no cost per consultation, so only the consultation limit can apply.";let t=e.coldUsd,n=e.resumedUsd;if(t===void 0||n===void 0)return;if(e.resumeWorked===!1)return`Both samples cost about ${mv(t)}, but the second one did not resume the first session \u2014 the CLI returned no session id, so this is two cold starts rather than a comparison. Measure again, or check that the CLI supports --resume.`;let r=n>0?t/n:void 0;return[`A first consultation costs about ${mv(t)} here and a follow-up about ${mv(n)}`,r!==void 0&&r>=2?` \u2014 roughly ${String(Math.round(r))} times cheaper.`:"."].join("")}function mv(e){return e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(4)}`}var RA=z.object({name:z.string().min(1),value:z.string(),description:z.string().optional()}),r8=z.array(RA),MA=/^[A-Za-z_][A-Za-z0-9_]*$/;function td(e){return MA.test(e)}var dr=[{id:"orientation",title:"Where everything is",opensPanel:!0,completionEvents:["onCommand:lightCode.openPanel"],altText:"The VS Code window: the Light Code icon in the activity bar, the chat panel, and the new-task, history, settings and guide buttons in its header.",body:["Light Code lives in one sidebar panel. The chat is the whole product; the gear opens eleven settings tabs, and the question mark reopens this guide whenever you want it.","The numbers in the picture are the four things worth knowing before anything else."]},{id:"providers",title:"Providers - point it at a model",tab:"providers",completionEvents:["onContext:lightCode.hasProvider"],altText:"The Providers tab, showing the profile list and the fields for editing one: preset, label, base URL, authentication, API key, model and Test connection.",body:["Nothing ships configured. There are no default endpoints, so a fresh install contacts nothing until you fill this in.","**Preset** prefills a base URL and wire format - OpenAI-compatible, Anthropic, Gemini, DeepSeek - and every field stays editable for a gateway that fronts one differently. **Authentication** is a separate axis: an API key, or Apigee client-certificate mTLS with a token grant. **Model** is fetched from your gateway and always typeable, because many return nothing. Keep one profile per gateway and switch between them from the chat header.","**Test connection** is the field worth using first: it loads certificates, gets a token, lists models, and tells you which of the three failed."]},{id:"network",title:"Network - certificates, once, for everything",tab:"network",completionEvents:["onStepSelected"],altText:"The Network tab, showing certificate directory, CA certificate, client certificate and key, PFX bundle, passphrase, and the verify-TLS toggle.",body:["If your company intercepts TLS or issues client certificates, this is the only place you set that up. It applies to every connection: the gateway, the token endpoint, MCP over HTTP, the vector store and the embedder.","**CA certificate** is added to the public roots rather than replacing them, so trusting your corporate root does not cost you every other host. **Certificate and key** - or a **PFX bundle**, which is what Windows PKI usually issues - identify you. Any single connection can override either.","**Verify TLS certificates** can be turned off, and the panel says plainly what that costs: an interceptor can read and change the traffic, API key included. Add the CA instead."]},{id:"chat",title:"The chat - ask for something real",opensPanel:!0,completionEvents:["onContext:lightCode.hasChatted"],altText:"The chat header, with the mode selector, the expert budget, and the four header buttons labelled; below it, the composer.",body:["Type a request. It reads files, searches, edits and runs commands, one step at a time, and stops when it is done or when it needs you.","**@** names a file directly. Paste a screenshot, or drop a Word, Excel, PDF or HTML file in. Long output is truncated with a handle it can re-read, so a huge log does not eat the window - the bar above the composer shows what has.","**Mode** picks what it may do: Code edits and runs, Ask is read-only, Junior brings the expert in. **History** keeps every past task, and reopening one restores the whole transcript."]},{id:"approvals",title:"Approvals - nothing happens without you",tab:"approvals",completionEvents:["onStepSelected"],altText:"The Approvals tab, showing four auto-approve toggles all off, the always-allowed command and tool lists, extra readable folders, and the maximum-steps setting.",body:["Every tool call is shown before it runs, as ground truth: the real command, the computed diff, the actual source. Never the model's description of what it means to do. **Deny** is a real answer - it goes back as a result and the turn continues.","This tab is where standing permission is granted and, more importantly, taken back. The four toggles skip the prompt by category and **all ship off**. Below them are the grants you made in the chat: always-allowed commands, always-allowed MCP tools, and folders outside the workspace it may read.","Command matching is **exact, byte for byte**. Allowing `npm test` never allows `npm test && rm -rf /`.","Before its first edit to a task it snapshots the workspace, so you can roll the whole thing back."]},{id:"mcp",title:"MCP - connect the servers you already run",tab:"mcp",completionEvents:["onStepSelected"],altText:"The MCP tab, showing two servers with health, per-tool Always/Ask/Never controls, and the JSON configuration box.",body:["Standard `mcpServers` configuration, so a config from another client pastes in unchanged. stdio or HTTP, inferred from whether you gave a command or a URL.","Servers connect when the panel opens and show health, so a mistyped command is visible immediately rather than the first time something needs it. Every tool is namespaced `server__tool`, and each one has its own **Always / Ask / Never** - one server can expose forty.","Secrets go in as `${secret:NAME}` and are resolved from the OS keychain at spawn time, never written into the file."]},{id:"python",title:"Python - let it write its own tools",tab:"python",completionEvents:["onStepSelected"],altText:"The Python tab, showing the enable toggle, uv path, environment choice, tools folder, package index, timeout, and a created tool with its content-hash approval note.",body:["It can write a Python tool mid-conversation and call it from the next message. Dependencies are declared in the file and installed with `uv`; the schema comes from your type hints, so there is no metadata to keep in step.","**Python environment** prefers your project's own venv, because that is where your internal libraries already are. **Package index** can point at an internal mirror, or refuse the network entirely.","This is the sharpest surface in the product, so it is off by default and creating a tool **always** prompts with the full source - no toggle skips it. Approval pins a hash of exactly what you saw; a file edited outside is refused and reported, and tools live in `.lightcode/tools/` so they land in git and get reviewed."]},{id:"skills",title:"Skills - teach it your conventions",tab:"skills",completionEvents:["onStepSelected"],altText:"The Skills tab, showing two skills, a note that they are found by searching rather than listing, the writable skills folder, extra read-only folders, the problems list, and the approval note.",body:["A skill is a markdown file with a name and a description. The body is never in the prompt - it is read with `read_file` when a task actually calls for it, so a skill can be as long as you like.","By default the summaries are not in the prompt either: the assistant searches for a relevant note with `search_docs`, the same way it finds tools. What stays is a count and an instruction to look, so it still knows notes exist - a description nobody sees is a note nobody reads. Switch it off in **Search** if you would rather every summary sat in the prompt.",'This is the answer to "it does not know about our internal libraries". It offers to write one when you explain something durable, and offers to correct one when something contradicts it - a stale skill is worse than a missing one.',"You get a writable folder plus any number of read-only ones, such as a shared team folder, with PATH-style precedence and shadowing reported rather than silently applied. Writing a skill needs approval too: it is prose that steers every future turn."]},{id:"search",title:"Search - find things by meaning",tab:"search",completionEvents:["onStepSelected"],altText:"The Search tab, showing the backend choice, connection fields, embedding profile, the index button, the two look-things-up toggles for tools and skills, index copying, and query limits.",body:["Indexing is optional, ships disabled, and is **the largest thing Light Code ever sends anywhere**: it uploads the contents of your workspace to the embedding endpoint you name. It says so, and where to, before the first upload.","**Qdrant** and **Chroma** run locally if you would rather nothing left the machine; **OpenSearch** is usually the one your company already has. Embeddings reuse a provider profile, so there is no second set of credentials. You can **copy an index between backends**, so changing your mind later does not orphan what you indexed.","**Looking things up rather than listing them is the default.** MCP and Python tool schemas, and skill summaries, stay out of the prompt; the assistant finds them with `search_docs` and calls them through `call_tool`. Nothing is registered when there is nothing to hide, so a workspace with no MCP servers and no skills pays nothing for it. The tab shows how many things it is hiding, and either half can be switched off - models do call a tool listed in the prompt slightly more reliably than one named through a dispatcher."]},{id:"tools",title:"Tools - everything it can call",tab:"tools",completionEvents:["onStepSelected"],altText:"The Tools tab, showing the search box and the catalogue grouped into built-in, MCP and Python tools, with the looked-up badge explained.",body:["One read-only list of every tool available right now: the built-in nine, everything your MCP servers expose, and the Python tools it has written. Search matches descriptions as well as names, so you can look for what you want done rather than what it is called.","A **looked up** badge means the tool is kept out of the system prompt to save space - the default for MCP and Python tools. It is still callable: the assistant searches for it and calls it by name. A shorter prompt is not a shorter tool list; withholding a capability is what Approvals and modes are for."]},{id:"expert",title:"Expert - spend less on the hard parts",tab:"expert",completionEvents:["onStepSelected"],altText:"The Expert tab, showing the enable toggle, command and model, the per-task spend and consultation limits, cost estimate, skill assessment, and the read-only tool restriction.",body:["In **Junior mode** a cheap model does the work and consults Claude, through the Claude CLI, on the parts that need it. The expert plans, sets checkpoints, and reviews each one as the junior finishes it.","It is read-only by construction - Read, Grep and Glob, never edit or execute - so a second agent can never act outside the approval gate. It keeps one session per task, which makes the first consultation the expensive one and every later one about nineteen times cheaper.","**Budget per task** caps both spend and number of consultations, and the same control sits in the chat header so you can raise it mid-task. The expert is told what is left and plans to fit, gives you a cost estimate up front, and can assess how your primary model is doing."]},{id:"schedules",title:"Schedules - let it run on its own",tab:"schedules",completionEvents:["onStepSelected"],altText:"The Schedules tab, showing a schedule name, prompt and interval, the file-permission, tool and skill filters for unattended runs, and the run history.",body:["A prompt on a timer. Runs in the background without touching the chat you are in, and keeps running with the panel closed.","Nobody is present to approve anything, so an unattended run does not inherit your auto-approve settings. Permission is granted **per schedule**: files are read-only unless you say otherwise, and you pick exactly which tools it may call. Creating Python tools or skills is never available to a schedule at all - model-authored code with no one watching is the one thing that stays out of reach.","**A schedule names the skills it needs** rather than searching for them, under *What it should know*. Its tool list may not include `search_docs`, and a run that comes up empty has nobody to notice. All skills are included until you narrow it.","Every run is logged with its full transcript, and `notify` raises a toast when a run has something to say."]},{id:"appearance",title:"Appearance - make it yours",tab:"appearance",completionEvents:["onStepSelected"],altText:"The Appearance tab, showing the accent colour swatches, the expert colour swatches, and the reduced-motion toggle.",body:["The panel follows your editor theme. Two colours are yours to set: the **accent**, used for anything actionable, and the **expert** colour, which marks authorship - text in it is Claude's words rather than your primary model's.","Text on either is computed rather than fixed, so it stays readable whatever you pick. Motion follows your OS reduced-motion setting, and can be turned off here regardless."]},{id:"privacy",title:"What it does not do",completionEvents:["onStepSelected"],altText:"A diagram of what leaves the machine: your gateway and MCP servers, plus the vector store and embedder only if Search is enabled; then the four things Light Code never does, and a warning that nothing is sandboxed.",body:["No telemetry. No update checks. No default endpoints - a fresh install contacts nothing. No remote assets in the panel.","The only hosts it ever reaches are the ones you configured: your gateway, your MCP servers, and - only if you turn Search on - your vector store and embedding endpoint.","Two things are stated plainly rather than glossed. **Indexing is the largest egress in the product**: enabling it sends your workspace to the embedder. And **nothing is sandboxed** - commands, Python tools and MCP servers run as you, with your permissions, and Light Code does not protect you from another process running as the same user. Approval is the real boundary, which is why it is per-invocation and why every toggle ships off.","Source, issues and the full security section: [github.com/chosengenerationdev/light-code](https://github.com/chosengenerationdev/light-code)"]}];var BA=z.enum(["openai","anthropic","gemini"]),ZA=z.object({caFile:z.string().optional(),certFile:z.string().optional(),keyFile:z.string().optional(),pfxFile:z.string().optional(),passphraseRef:z.string().optional(),rejectUnauthorized:z.boolean().optional(),useGlobalClientCertificate:z.boolean().optional()}),LA=z.object({certDir:z.string().min(1).optional(),certFile:z.string().optional(),keyFile:z.string().optional(),pfxFile:z.string().optional(),caFile:z.string().optional(),passphraseRef:z.string().optional()}),PA=z.object({tokenUrl:z.string().url("Must be a valid URL").optional(),grantType:z.string().optional(),clientId:z.string().optional(),clientSecretRef:z.string().optional(),scope:z.string().optional(),extraTokenParams:z.record(z.string(),z.string()).optional(),tokenHeaderName:z.string().optional(),tokenHeaderPrefix:z.string().optional(),tokenPath:z.string().optional(),expiresInPath:z.string().optional(),fallbackExpirySeconds:z.number().int().positive().optional(),refreshSkewSeconds:z.number().int().nonnegative().optional(),extraHeaders:z.record(z.string(),z.string()).optional()}),FA=z.discriminatedUnion("type",[z.object({type:z.literal("none")}),z.object({type:z.literal("apiKey"),apiKeyRef:z.string().min(1)}),z.object({type:z.literal("apigeeMtls"),certs:LA,apigee:PA})]),A_=z.object({id:z.string().min(1),label:z.string().min(1,"Label is required"),wireFormat:BA,baseUrl:z.string().min(1,"Base URL is required").url("Must be a valid URL"),model:z.string().min(1,"Model is required"),auth:FA,headers:z.record(z.string(),z.string()).optional(),tls:ZA.optional(),maxTokens:z.number().int().positive().optional(),modelCapabilities:z.object({contextWindow:z.number().int().positive().optional(),supportsVision:z.boolean().optional(),supportsTools:z.boolean().optional()}).optional()});var VA=A_.pick({label:!0,wireFormat:!0,baseUrl:!0,model:!0});function pv(e){let t=VA.safeParse(e);return t.success?[]:t.error.issues.map(n=>({path:n.path.join("."),message:n.message}))}var j_={"gpt-4o-mini":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4o":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4.1-mini":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4.1":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4-turbo":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4":{contextWindow:8192,supportsVision:!1,supportsTools:!0},"gpt-3.5-turbo":{contextWindow:16385,supportsVision:!1,supportsTools:!0},o3:{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"o4-mini":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-opus-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-sonnet-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-7-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-haiku":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"gemini-2.5-pro":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.5-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.0-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"deepseek-reasoner":{contextWindow:65536,supportsVision:!1,supportsTools:!1},"deepseek-chat":{contextWindow:65536,supportsVision:!1,supportsTools:!0},"llama-3.3":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},"llama-3.1":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},mistral:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"qwen2.5-coder":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen2.5-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen2.5":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen3-coder":{contextWindow:262144,supportsVision:!1,supportsTools:!0},"qwen3-vl":{contextWindow:262144,supportsVision:!0,supportsTools:!0},qwen3:{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen-max":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-plus":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-turbo":{contextWindow:1e6,supportsVision:!1,supportsTools:!0},qwq:{contextWindow:131072,supportsVision:!1,supportsTools:!0},qwen:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"gemma-3n":{contextWindow:32768,supportsVision:!0,supportsTools:!0},"gemma-3":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"gemma-2":{contextWindow:8192,supportsVision:!1,supportsTools:!0},gemma:{contextWindow:131072,supportsVision:!0,supportsTools:!0}},qA={contextWindow:32768,supportsVision:!1,supportsTools:!0},HA=Object.keys(j_).sort((e,t)=>t.length-e.length);function O_(e){let t=e.toLowerCase();for(let n of HA)if(t.includes(n))return{...j_[n],known:!0};return{...qA,known:!1}}function gv(e,t){let n=O_(e);return t===void 0?n:{contextWindow:t.contextWindow??n.contextWindow,supportsVision:t.supportsVision??n.supportsVision,supportsTools:t.supportsTools??n.supportsTools,known:n.known||Object.values(t).some(r=>r!==void 0)}}var GA=z.discriminatedUnion("kind",[z.object({kind:z.literal("interval"),everyMinutes:z.number().int().min(1).max(1440*7)}),z.object({kind:z.literal("daily"),hour:z.number().int().min(0).max(23),minute:z.number().int().min(0).max(59)}),z.object({kind:z.literal("weekly"),days:z.array(z.number().int().min(0).max(6)).min(1),hour:z.number().int().min(0).max(23),minute:z.number().int().min(0).max(59)})]),YA=z.object({id:z.string().min(1),name:z.string().min(1),workspaceRoot:z.string().optional(),prompt:z.string().min(1),trigger:GA,enabled:z.boolean(),allowedTools:z.array(z.string()),allowedSkills:z.array(z.string()).optional(),nextRunAt:z.number().optional(),lastRunAt:z.number().optional(),lastResult:z.enum(["ok","error","cancelled"]).optional(),lastSummary:z.string().optional(),lastTaskId:z.string().optional(),runs:z.array(z.object({at:z.number(),result:z.enum(["ok","error","cancelled"]),durationMs:z.number().optional(),summary:z.string().optional(),taskId:z.string().optional(),reportPath:z.string().optional()})).optional()});var m8=z.record(z.string(),YA);function nd(e,t){let n=new Set(t),r=new Set;for(let i of e)n.has(i.name)&&(i.group==="edit"||i.group==="command"||i.group==="mcp")&&r.add(i.group);return[...r].sort()}function U_(e,t){let n=e.trigger;return n.kind==="interval"?t+n.everyMinutes*6e4:JA(n,t)}function JA(e,t){let n=new Date(t);n.setHours(e.hour,e.minute,0,0);let r=e.kind==="weekly"?new Set(e.days):void 0;for(let i=0;i<=8;i++){let o=n.getTime()>t,a=r===void 0||r.has(n.getDay());if(o&&a)return n.getTime();n.setDate(n.getDate()+1),n.setHours(e.hour,e.minute,0,0)}return t+1440*6e4}function yv(e){if(e.kind==="interval"){if(e.everyMinutes%1440===0){let a=e.everyMinutes/1440;return`Every ${a===1?"day":`${String(a)} days`}`}if(e.everyMinutes%60===0){let a=e.everyMinutes/60;return`Every ${a===1?"hour":`${String(a)} hours`}`}return`Every ${String(e.everyMinutes)} minutes`}let t=`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}`;if(e.kind==="daily")return`Every day at ${t}`;let n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=[...e.days].sort((a,l)=>a-l).map(a=>n[a]??"?"),i=[1,2,3,4,5];return`${r.length===5&&i.every(a=>e.days.includes(a))?"Weekdays":r.join(", ")} at ${t}`}function vv(e,t){if(!e.enabled)return"Paused";let n=e.nextRunAt??U_(e,t),r=Math.round((n-t)/6e4);return r<1?"Due now":r<60?`In ${String(r)} min`:r<1440?`In ${String(Math.round(r/60))} h`:new Date(n).toLocaleString()}var F=M(he(),1);var Ft=M(oe(),1),Ii=M(he(),1);var dt=M(oe(),1);var D=M(oe(),1);function Y_({size:e=16}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M1.5 1.5 L14.5 8 L1.5 14.5 L4 8 Z"})})}function J_({size:e=16}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,D.jsx)("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"})})}function X_({size:e=16}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M10 3 L5 8 L10 13"})})}function K_({size:e=14}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,D.jsx)("rect",{x:"3",y:"5.5",width:"10",height:"7.5",rx:"2"}),(0,D.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"5.5"}),(0,D.jsx)("circle",{cx:"8",cy:"1.6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,D.jsx)("circle",{cx:"6",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"}),(0,D.jsx)("circle",{cx:"10",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"})]})}function rd({size:e=14}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,D.jsx)("circle",{cx:"8",cy:"5",r:"2.6"}),(0,D.jsx)("path",{d:"M2.8 14 a5.2 5.2 0 0 1 10.4 0"})]})}function ln({size:e=14}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M8 1.6 l1.7 3.6 3.9 .5 -2.9 2.7 .8 3.9 L8 10.4 l-3.5 1.9 .8 -3.9 -2.9 -2.7 3.9 -.5 Z"})})}function ui({size:e=14}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M3 8.5 L6.5 12 L13 4.5"})})}function ca({size:e=14}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,D.jsx)("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),(0,D.jsx)("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})}function W_({size:e=14}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,D.jsx)("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.25"}),(0,D.jsx)("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5",strokeLinecap:"round"})]})}function jt({size:e=14}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M3 4.5 h10"}),(0,D.jsx)("path",{d:"M6.5 4.5 V3 h3 v1.5"}),(0,D.jsx)("path",{d:"M4.3 4.5 l.6 8.2 h6.2 l.6 -8.2"})]})}function fr({size:e=14}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,D.jsx)("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),(0,D.jsx)("path",{d:"M10.5 5.5 V4 a1.5 1.5 0 0 0 -1.5 -1.5 H4 A1.5 1.5 0 0 0 2.5 4 v5 A1.5 1.5 0 0 0 4 10.5 h1.5"})]})}function Q_({size:e=14}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M11.2 2.3 l2.5 2.5 -8 8 -3.2 .7 .7 -3.2 Z"})})}function ew({size:e=16}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M9.5 4 L5 8.5 a2.1 2.1 0 0 0 3 3 L12.5 7 a3.5 3.5 0 0 0-5-5 L3.5 6"})})}function tw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M2.5 8a5.5 5.5 0 1 0 1.7-4"}),(0,D.jsx)("path",{d:"M2 2.5 V5.5 H5"}),(0,D.jsx)("path",{d:"M8 5 V8.4 L10.3 9.8"})]})}function nw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,D.jsx)("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),(0,D.jsx)("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]})}function iw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,D.jsx)("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),(0,D.jsx)("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),(0,D.jsx)("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),(0,D.jsx)("circle",{cx:"6",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),(0,D.jsx)("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),(0,D.jsx)("circle",{cx:"6",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"})]})}function io({size:e=12}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M6 3.5 L10.5 8 L6 12.5"})})}function rw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M3 8a5 5 0 1 1 1.6 3.7"}),(0,D.jsx)("path",{d:"M2.5 4.5 L3 8 L6.5 7.6"})]})}function ow({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M10.2 4.1a2.6 2.6 0 0 0-4.4 1.7c0 2.6 4.4 1.9 4.4 4.5a2.6 2.6 0 0 1-4.4 1.7",strokeLinecap:"round"}),(0,D.jsx)("path",{d:"M8 1.8v12.4",strokeLinecap:"round"})]})}function aw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M8 1.6a6.4 6.4 0 0 0 0 12.8c1 0 1.4-.7 1.1-1.4-.4-.9.2-1.7 1.2-1.7h1.1A3 3 0 0 0 14.4 8 6.4 6.4 0 0 0 8 1.6Z"}),(0,D.jsx)("circle",{cx:"5.2",cy:"6.4",r:"0.95",fill:"currentColor",stroke:"none"}),(0,D.jsx)("circle",{cx:"8",cy:"4.6",r:"0.95",fill:"currentColor",stroke:"none"}),(0,D.jsx)("circle",{cx:"10.9",cy:"6.2",r:"0.95",fill:"currentColor",stroke:"none"})]})}function lw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M5 2v3M11 2v3"}),(0,D.jsx)("path",{d:"M3.5 5h9v2.5a4.5 4.5 0 0 1-9 0Z",strokeLinejoin:"round"}),(0,D.jsx)("path",{d:"M8 12v2.5"})]})}function zv({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M8 1.8 13 3.6v4.1c0 3-2.1 5.5-5 6.5-2.9-1-5-3.5-5-6.5V3.6Z"}),(0,D.jsx)("path",{d:"M5.8 8 7.4 9.6 10.4 6.4",strokeLinecap:"round"})]})}function sw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,D.jsx)("rect",{x:"2.2",y:"2.2",width:"4.6",height:"4.6",rx:"1"}),(0,D.jsx)("rect",{x:"9.2",y:"9.2",width:"4.6",height:"4.6",rx:"1"}),(0,D.jsx)("path",{d:"M6.8 4.5h3.2a1.5 1.5 0 0 1 1.5 1.5v3.2",strokeLinecap:"round"})]})}function cw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,D.jsx)("circle",{cx:"7",cy:"7",r:"4.2"}),(0,D.jsx)("path",{d:"M10.2 10.2 14 14"})]})}function uw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,D.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,D.jsx)("path",{d:"M2 8h12M8 2c1.8 2 1.8 10 0 12M8 2c-1.8 2-1.8 10 0 12"})]})}function dw({size:e=16}){let t="M7.9 1.1c-1 0-1.9.1-2.6.4-.6.2-1 .6-1 1.3v1.6h3.7v.5H2.9c-.8 0-1.5.5-1.8 1.3-.3.9-.3 1.9 0 2.9.3.8.8 1.3 1.5 1.3h1.2V8.6c0-1 .9-1.9 1.9-1.9h3.7c.7 0 1.3-.6 1.3-1.3V2.8c0-.7-.5-1.2-1.3-1.4-.5-.2-1-.3-1.5-.3Zm-2.1 1c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.3-.7-.7.3-.7.7-.7Z";return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:[(0,D.jsx)("path",{d:t}),(0,D.jsx)("path",{d:t,transform:"rotate(180 8 8)"})]})}function fw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,D.jsx)("circle",{cx:"8",cy:"8",r:"6.2"}),(0,D.jsx)("path",{d:"M6.2 6.1a1.9 1.9 0 1 1 2.5 1.8c-.5.2-.7.6-.7 1.1v.3"}),(0,D.jsx)("path",{d:"M8 11.6h.01"})]})}function mw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,D.jsx)("rect",{x:"1.8",y:"5.4",width:"12.4",height:"7.8",rx:"1.3"}),(0,D.jsx)("path",{d:"M5.8 5.4V4.1c0-.6.5-1.1 1.1-1.1h2.2c.6 0 1.1.5 1.1 1.1v1.3"}),(0,D.jsx)("path",{d:"M1.8 8.6h12.4M6.6 8.6v1.4h2.8V8.6"})]})}function hw({size:e=16}){return(0,D.jsxs)("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.4,"aria-hidden":"true",children:[(0,D.jsx)("rect",{x:"1.5",y:"3.5",width:"13",height:"9",rx:"1.5"}),(0,D.jsx)("path",{d:"M2 4.5 8 9l6-4.5"})]})}function pw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,D.jsx)("path",{d:"M2.5 3.2c1.8-.9 3.7-.9 5.5 0v9.6c-1.8-.9-3.7-.9-5.5 0Z"}),(0,D.jsx)("path",{d:"M13.5 3.2c-1.8-.9-3.7-.9-5.5 0v9.6c1.8-.9 3.7-.9 5.5 0Z"})]})}function gw({size:e=16}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,D.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,D.jsx)("path",{d:"M8 4.4V8l2.4 1.6"})]})}function Tv({size:e=14}){return(0,D.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,D.jsx)("path",{d:"M4.5 2.8 13 8l-8.5 5.2Z"})})}function yw({size:e=14}){return(0,D.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:[(0,D.jsx)("rect",{x:"4",y:"3",width:"3",height:"10",rx:"1"}),(0,D.jsx)("rect",{x:"9",y:"3",width:"3",height:"10",rx:"1"})]})}var c={background:"var(--vscode-sideBar-background, var(--vscode-editor-background))",foreground:"var(--vscode-foreground)",muted:"var(--vscode-descriptionForeground)",border:"var(--vscode-widget-border, var(--vscode-panel-border))",inputBackground:"var(--vscode-input-background)",inputForeground:"var(--vscode-input-foreground)",inputBorder:"var(--vscode-input-border, var(--vscode-widget-border))",buttonBackground:"var(--vscode-button-background)",buttonForeground:"var(--vscode-button-foreground)",buttonHoverBackground:"var(--vscode-button-hoverBackground)",secondaryButtonBackground:"var(--vscode-button-secondaryBackground, var(--vscode-input-background))",secondaryButtonForeground:"var(--vscode-button-secondaryForeground, var(--vscode-foreground))",secondaryButtonHoverBackground:"var(--vscode-button-secondaryHoverBackground, var(--vscode-toolbar-hoverBackground))",hoverBackground:"var(--vscode-toolbar-hoverBackground)",error:"var(--vscode-errorForeground)",warning:"var(--vscode-editorWarning-foreground, var(--vscode-list-warningForeground, var(--vscode-errorForeground)))",focusBorder:"var(--vscode-focusBorder)",assistantBubble:"var(--vscode-editor-inactiveSelectionBackground, var(--vscode-input-background))",accent:"var(--lc-accent, #22C55E)",accentDeep:"var(--lc-accent-deep, #157A3A)",accentContrast:"var(--lc-accent-contrast, #12111a)",accentSoft:"var(--lc-accent-a12, rgba(34, 197, 94, 0.12))",accentRing:"var(--lc-accent-a35, rgba(34, 197, 94, 0.35))",accentGradient:"linear-gradient(135deg, var(--lc-accent-deep, #157A3A), var(--lc-accent, #22C55E))",expert:"var(--lc-expert, #D97757)",expertDeep:"var(--lc-expert-deep, #86492F)",expertContrast:"var(--lc-expert-contrast, #ffffff)",expertSoft:"var(--lc-expert-a12, rgba(217, 119, 87, 0.12))",expertRing:"var(--lc-expert-a35, rgba(217, 119, 87, 0.35))",expertGradient:"linear-gradient(135deg, var(--lc-expert-deep, #86492F), var(--lc-expert, #D97757))"},P="var(--vscode-font-family, sans-serif)",vw={button:"lc-btn",accentButton:"lc-btn lc-btn-accent",input:"lc-input",scroll:"lc-scroll",panel:"lc-panel",tab:"lc-tab",swatch:"lc-swatch"};function se(e){return{background:e?c.secondaryButtonBackground:c.accentGradient,color:e?c.muted:c.accentContrast,border:"none",borderRadius:6,padding:"5px 14px",cursor:e?"default":"pointer",opacity:e?.6:1,fontFamily:P,fontWeight:500}}function Se(e,t=!1){let n={display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:0,borderRadius:8,cursor:t?"default":"pointer",opacity:t?.5:1,flexShrink:0};return e==="primary"?{...n,background:c.accentGradient,color:c.accentContrast,border:"none"}:e==="secondary"?{...n,background:c.secondaryButtonBackground,color:c.secondaryButtonForeground,border:`1px solid ${c.border}`}:{...n,background:"transparent",color:c.foreground,border:"none"}}function H(){return{background:c.inputBackground,color:c.inputForeground,border:`1px solid ${c.inputBorder}`,borderRadius:6,padding:"6px 8px",fontFamily:P,fontSize:13,width:"100%",boxSizing:"border-box"}}function bw(e=!1){return{background:c.inputBackground,color:c.inputForeground,border:`1px solid ${c.inputBorder}`,borderRadius:6,padding:e?"2px 6px":"6px 8px",fontFamily:P,fontSize:e?11:13,cursor:"pointer"}}function q(){return{color:c.muted,fontSize:12,display:"block",marginBottom:4}}function $(){return{background:c.secondaryButtonBackground,color:c.secondaryButtonForeground,border:`1px solid ${c.border}`,borderRadius:6,padding:"4px 10px",cursor:"pointer",fontFamily:P,fontSize:12}}function Pt(){return{color:c.error,fontSize:11,display:"block",marginTop:2}}function Xe(e="neutral"){return{display:"inline-block",fontSize:10,padding:"1px 6px",borderRadius:8,border:`1px solid ${c.border}`,color:e==="warning"?c.error:c.muted}}function ro(){return{margin:"0 0 2px",fontSize:11,fontWeight:600,letterSpacing:.6,textTransform:"uppercase",color:c.accent}}var zt=M(oe(),1),Av=M(he(),1);var Ei=["break","case","catch","class","const","continue","default","delete","do","else","enum","export","extends","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","try","typeof","var","void","while","yield","async","await","true","false","type","readonly","satisfies","as","keyof"],Cv=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","False","try","while","with","yield","self","match","case"],Ev=["if","then","else","elif","fi","for","in","do","done","while","case","esac","function","return","export","local","echo","cd","set","unset","source"],fj=["select","from","where","insert","into","values","update","set","delete","create","table","drop","alter","join","inner","left","right","outer","on","group","by","order","having","limit","union","distinct","as","and","or","not","null","index"],mj=["fn","func","impl","struct","trait","mut","use","pub","match","end","def","module","require"];function kt(e,t={}){return{lineComments:["//"],blockComments:[["/*","*/"]],quotes:['"',"'","`"],tripleQuotes:!1,keywords:new Set(e),...t}}var ua={lineComments:["#"],blockComments:[]},xw={javascript:kt(Ei),typescript:kt(Ei),java:kt(Ei),csharp:kt(Ei),cpp:kt(Ei),c:kt(Ei),go:kt([...Ei,"func","defer","chan","go","range","struct","map","nil"]),rust:kt([...Ei,"fn","impl","trait","mut","pub","use","match","crate","Some","None"]),json:kt(["true","false","null"],{lineComments:[],blockComments:[],quotes:['"']}),python:kt(Cv,{...ua,tripleQuotes:!0}),shell:kt(Ev,ua),powershell:kt([...Ev,"param","begin","process"],ua),yaml:kt(["true","false","null"],{...ua,quotes:['"',"'"]}),toml:kt(["true","false"],ua),ruby:kt([...Cv,"end","do","unless","elsif","nil"],ua),sql:kt(fj,{lineComments:["--"],blockComments:[["/*","*/"]],quotes:['"',"'"]}),html:kt([],{lineComments:[],blockComments:[["<!--","-->"]],quotes:['"',"'"]}),css:kt([],{lineComments:[],blockComments:[["/*","*/"]],quotes:['"',"'"]}),default:kt([...Ei,...Cv,...Ev,...mj],{lineComments:["//","#","--"],blockComments:[["/*","*/"],["<!--","-->"]],tripleQuotes:!0})},hj={js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",tsx:"typescript",py:"python",py3:"python",python3:"python",sh:"shell",bash:"shell",zsh:"shell",console:"shell",ps1:"powershell",pwsh:"powershell",yml:"yaml",rb:"ruby",rs:"rust",golang:"go","c++":"cpp",cs:"csharp",htm:"html",xml:"html",scss:"css",postgres:"sql",psql:"sql"};function pj(e){let t=(e??"").trim().toLowerCase();return xw[hj[t]??t]??xw.default}var gj=/[A-Za-z_$]/,Sw=/[A-Za-z0-9_$]/,yj=/[{}[\]()<>;,.:?!&|+\-*/%=~^@]/;function Wl(e,t){let n=pj(t),r=[],i="",o=()=>{i.length>0&&(r.push({text:i,kind:"plain"}),i="")},a=(s,u)=>{o(),r.push({text:s,kind:u})},l=0;for(;l<e.length;){let s=e.slice(l),u=n.blockComments.find(f=>s.startsWith(f[0]));if(u!==void 0){let f=e.indexOf(u[1],l+u[0].length),x=f===-1?e.length:f+u[1].length;a(e.slice(l,x),"comment"),l=x;continue}if(n.lineComments.find(f=>s.startsWith(f))!==void 0){let f=e.indexOf(`
75
+ `,l),x=f===-1?e.length:f;a(e.slice(l,x),"comment"),l=x;continue}let m=n.quotes.find(f=>s.startsWith(f));if(m!==void 0){let f=n.tripleQuotes&&s.startsWith(m.repeat(3)),x=f?m.repeat(3):m,k=l+x.length;for(;k<e.length;){if(e[k]==="\\"){k+=2;continue}if(e.startsWith(x,k)){k+=x.length;break}if(!f&&e[k]===`
76
+ `)break;k++}a(e.slice(l,Math.min(k,e.length)),"string"),l=Math.min(k,e.length);continue}let h=e[l];if(/[0-9]/.test(h)&&!Sw.test(e[l-1]??" ")){let f=l;for(;f<e.length&&/[0-9a-fA-FxXoObB._]/.test(e[f]);)f++;a(e.slice(l,f),"number"),l=f;continue}if(gj.test(h)){let f=l;for(;f<e.length&&Sw.test(e[f]);)f++;let x=e.slice(l,f);n.keywords.has(x)||n.keywords.has(x.toLowerCase())?a(x,"keyword"):i+=x,l=f;continue}if(yj.test(h)){a(h,"punctuation"),l++;continue}i+=h,l++}return o(),r}var Ql={plain:void 0,comment:"var(--vscode-descriptionForeground)",string:"var(--vscode-debugTokenExpression-string, var(--vscode-charts-orange))",number:"var(--vscode-debugTokenExpression-number, var(--vscode-charts-green))",keyword:"var(--vscode-debugTokenExpression-name, var(--vscode-charts-blue))",punctuation:"var(--vscode-descriptionForeground)"};function vj(e,t){let n=Array.from({length:e.length+1},()=>new Array(t.length+1).fill(0));for(let r=e.length-1;r>=0;r--)for(let i=t.length-1;i>=0;i--){let o=n[r],a=n[r+1];o[i]=e[r]===t[i]?a[i+1]+1:Math.max(a[i],o[i+1])}return n}function kw(e){return e.length===0?[]:e.replace(/\r\n/g,`
77
77
  `).split(`
78
- `)}function uy(e,t){let n=K_(e),r=K_(t),i=LA(n,r),o=[],a=0,l=0;for(;a<n.length&&l<r.length;)n[a]===r[l]?(o.push({kind:"context",text:n[a],beforeLine:a+1,afterLine:l+1}),a++,l++):(i[a+1]?.[l]??0)>=(i[a]?.[l+1]??0)?(o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++):(o.push({kind:"added",text:r[l],afterLine:l+1}),l++);for(;a<n.length;)o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++;for(;l<r.length;)o.push({kind:"added",text:r[l],afterLine:l+1}),l++;return o}function dy(e,t=3){let n=new Set;e.forEach((o,a)=>{if(o.kind!=="context")for(let l=a-t;l<=a+t;l++)n.add(l)});let r=[],i=0;return e.forEach((o,a)=>{n.has(a)?(i>0&&(r.push({kind:"gap",count:i}),i=0),r.push(o)):i+=1}),i>0&&r.push({kind:"gap",count:i}),r}var Q_="var(--vscode-editor-font-family, monospace)",PA={added:"var(--vscode-diffEditor-insertedTextBackground, rgba(0,160,0,0.18))",removed:"var(--vscode-diffEditor-removedTextBackground, rgba(200,0,0,0.18))",context:"transparent"};function FA(e){return/\.([A-Za-z0-9+]+)$/.exec(e)?.[1]??""}function Nl(e){let t=(0,fy.useMemo)(()=>dy(uy(e.before,e.after)),[e.before,e.after]),n=e.before.length===0,r=(0,fy.useMemo)(()=>FA(e.path),[e.path]),i=n?VA(e.after):void 0;return(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("div",{style:{color:s.muted,fontSize:11,marginBottom:4,fontFamily:Q_},children:[e.path,n&&(0,wt.jsx)("span",{style:{marginLeft:6},children:"(new file)"})]}),(0,wt.jsx)("div",{style:{border:`1px solid ${s.border}`,borderRadius:4,maxHeight:320,overflow:"auto",fontFamily:Q_,fontSize:12},children:i!==void 0?i.map((o,a)=>(0,wt.jsxs)("div",{style:{display:"flex",gap:8,padding:"0 8px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,wt.jsx)("span",{style:{color:s.muted,minWidth:28,textAlign:"right",userSelect:"none"},children:a+1}),(0,wt.jsx)("span",{style:{flex:1},children:Ol(o,r).map((l,c)=>{let u=Ul[l.kind];return u===void 0?(0,wt.jsx)("span",{children:l.text},c):(0,wt.jsx)("span",{style:{color:u},children:l.text},c)})})]},a)):t.map((o,a)=>o.kind==="gap"?(0,wt.jsxs)("div",{style:{padding:"2px 8px",color:s.muted,background:"transparent"},children:["\u22EF ",o.count," unchanged line",o.count===1?"":"s"]},a):(0,wt.jsxs)("div",{style:{display:"flex",gap:8,padding:"0 8px",background:PA[o.kind],whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,wt.jsx)("span",{style:{color:s.muted,minWidth:28,textAlign:"right",userSelect:"none"},children:o.beforeLine??o.afterLine??""}),(0,wt.jsx)("span",{"data-diff-marker":!0,style:{color:s.muted,userSelect:"none"},children:o.kind==="added"?"+":o.kind==="removed"?"-":" "}),(0,wt.jsx)("span",{style:{flex:1},children:Ol(o.text,r).map((l,c)=>{let u=Ul[l.kind];return u===void 0?(0,wt.jsx)("span",{children:l.text},c):(0,wt.jsx)("span",{style:{color:u},children:l.text},c)})})]},a))})]})}function VA(e){if(e.length===0)return[];let t=e.replace(/\r\n/g,`
78
+ `)}function Iv(e,t){let n=kw(e),r=kw(t),i=vj(n,r),o=[],a=0,l=0;for(;a<n.length&&l<r.length;)n[a]===r[l]?(o.push({kind:"context",text:n[a],beforeLine:a+1,afterLine:l+1}),a++,l++):(i[a+1]?.[l]??0)>=(i[a]?.[l+1]??0)?(o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++):(o.push({kind:"added",text:r[l],afterLine:l+1}),l++);for(;a<n.length;)o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++;for(;l<r.length;)o.push({kind:"added",text:r[l],afterLine:l+1}),l++;return o}function Dv(e,t=3){let n=new Set;e.forEach((o,a)=>{if(o.kind!=="context")for(let l=a-t;l<=a+t;l++)n.add(l)});let r=[],i=0;return e.forEach((o,a)=>{n.has(a)?(i>0&&(r.push({kind:"gap",count:i}),i=0),r.push(o)):i+=1}),i>0&&r.push({kind:"gap",count:i}),r}var _w="var(--vscode-editor-font-family, monospace)",bj={added:"var(--vscode-diffEditor-insertedTextBackground, rgba(0,160,0,0.18))",removed:"var(--vscode-diffEditor-removedTextBackground, rgba(200,0,0,0.18))",context:"transparent"};function xj(e){return/\.([A-Za-z0-9+]+)$/.exec(e)?.[1]??""}function es(e){let t=(0,Av.useMemo)(()=>Dv(Iv(e.before,e.after)),[e.before,e.after]),n=e.before.length===0,r=(0,Av.useMemo)(()=>xj(e.path),[e.path]),i=n?Sj(e.after):void 0;return(0,zt.jsxs)("div",{children:[(0,zt.jsxs)("div",{style:{color:c.muted,fontSize:11,marginBottom:4,fontFamily:_w},children:[e.path,n&&(0,zt.jsx)("span",{style:{marginLeft:6},children:"(new file)"})]}),(0,zt.jsx)("div",{style:{border:`1px solid ${c.border}`,borderRadius:4,maxHeight:320,overflow:"auto",fontFamily:_w,fontSize:12},children:i!==void 0?i.map((o,a)=>(0,zt.jsxs)("div",{style:{display:"flex",gap:8,padding:"0 8px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,zt.jsx)("span",{style:{color:c.muted,minWidth:28,textAlign:"right",userSelect:"none"},children:a+1}),(0,zt.jsx)("span",{style:{flex:1},children:Wl(o,r).map((l,s)=>{let u=Ql[l.kind];return u===void 0?(0,zt.jsx)("span",{children:l.text},s):(0,zt.jsx)("span",{style:{color:u},children:l.text},s)})})]},a)):t.map((o,a)=>o.kind==="gap"?(0,zt.jsxs)("div",{style:{padding:"2px 8px",color:c.muted,background:"transparent"},children:["\u22EF ",o.count," unchanged line",o.count===1?"":"s"]},a):(0,zt.jsxs)("div",{style:{display:"flex",gap:8,padding:"0 8px",background:bj[o.kind],whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,zt.jsx)("span",{style:{color:c.muted,minWidth:28,textAlign:"right",userSelect:"none"},children:o.beforeLine??o.afterLine??""}),(0,zt.jsx)("span",{"data-diff-marker":!0,style:{color:c.muted,userSelect:"none"},children:o.kind==="added"?"+":o.kind==="removed"?"-":" "}),(0,zt.jsx)("span",{style:{flex:1},children:Wl(o.text,r).map((l,s)=>{let u=Ql[l.kind];return u===void 0?(0,zt.jsx)("span",{children:l.text},s):(0,zt.jsx)("span",{style:{color:u},children:l.text},s)})})]},a))})]})}function Sj(e){if(e.length===0)return[];let t=e.replace(/\r\n/g,`
79
79
  `).split(`
80
- `);return t[t.length-1]===""&&t.pop(),t}var my="var(--vscode-editor-font-family, monospace)";function qA(e){switch(e){case"edit":return"wants to modify a file";case"command":return"wants to run a command";case"read":return"wants to read from the workspace";case"mcp":return"wants to use an external tool";default:return"wants to act"}}function HA(e){let{preview:t}=e;return t.kind==="diff"?(0,st.jsxs)("div",{children:[t.note!==void 0&&(0,st.jsx)("div",{style:{color:s.muted,fontSize:11,marginBottom:4},children:t.note}),(0,st.jsx)(Nl,{path:t.path,before:t.before,after:t.after})]}):t.kind==="command"?(0,st.jsxs)("div",{children:[(0,st.jsxs)("div",{style:{color:s.muted,fontSize:11,marginBottom:4},children:["in ",t.cwd]}),(0,st.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${s.border}`,borderRadius:4,fontFamily:my,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-all"},children:t.command})]}):(0,st.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${s.border}`,borderRadius:4,fontFamily:my,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.text})}function py(e){let{approval:t}=e;return(0,st.jsxs)("div",{className:"lc-fade-up",style:{margin:"6px 10px 6px 40px",padding:10,borderRadius:12,border:`1px solid ${s.accent}`,boxShadow:`0 0 0 3px ${s.accentSoft}`,fontFamily:B},children:[(0,st.jsxs)("div",{style:{marginBottom:8,fontSize:12},children:[(0,st.jsx)("span",{style:{fontFamily:my},children:t.toolName})," ",(0,st.jsx)("span",{style:{color:s.muted},children:qA(t.group)})]}),(0,st.jsx)(HA,{preview:t.preview}),(0,st.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,flexWrap:"wrap"},children:[(0,st.jsx)("button",{type:"button",className:"lc-btn-accent",title:"Approve \u2014 run this once","aria-label":"Approve, run this once",style:{...be("primary"),width:34},onClick:()=>e.onDecide(t.id,"approve"),children:(0,st.jsx)(ii,{size:16})}),(0,st.jsx)("button",{type:"button",title:"Deny \u2014 do not run this","aria-label":"Deny, do not run this",style:{...be("secondary"),width:34},onClick:()=>e.onDecide(t.id,"deny"),children:(0,st.jsx)(Jo,{size:16})}),t.alwaysScope==="folder"?(0,st.jsx)("button",{type:"button",style:C(),title:"Always allow reads from the folder this file is in. Added to Settings -> Approvals -> Folders, where you can remove it.",onClick:()=>e.onAlwaysAllow(t.id,"folder"),children:"Always allow this folder"}):t.preview.kind==="command"?(0,st.jsx)("button",{type:"button",style:C(),title:"Allow this exact command string in this workspace. Anything appended still prompts.",onClick:()=>e.onAlwaysAllow(t.id,"command"),children:"Always allow this command"}):(0,st.jsxs)("button",{type:"button",style:C(),title:`Always allow ${t.toolName} in this workspace`,onClick:()=>e.onAlwaysAllow(t.id,"tool"),children:["Always allow ",t.toolName]})]})]})}var it=P(ie(),1),Rl=P(ge(),1);var Yt=P(ie(),1),An=P(ge(),1);var W_=260;function Ve(e){let[t,n]=(0,An.useState)(!1),[r,i]=(0,An.useState)(0),[o,a]=(0,An.useState)(void 0),l=(0,An.useRef)(null),c=(0,An.useRef)(null),u=e.options.findIndex(g=>g.value===e.value),d=u>=0?e.options[u]:void 0,m=()=>{let g=l.current;if(g===null)return;let h=g.getBoundingClientRect(),y=window.innerHeight-h.bottom,v=y<Math.min(W_,e.options.length*28+8)&&h.top>y;a({left:h.left,top:v?h.top:h.bottom,width:h.width,above:v})};(0,An.useLayoutEffect)(()=>{t&&m()},[t]),(0,An.useEffect)(()=>{if(!t)return;let g=()=>n(!1),h=v=>{let j=v.target;j!==null&&(l.current?.contains(j)===!0||c.current?.contains(j)===!0)||g()},y=v=>{let j=v.target;j!==null&&c.current?.contains(j)===!0||g()};return window.addEventListener("scroll",y,!0),window.addEventListener("resize",g),document.addEventListener("pointerdown",h,!0),()=>{window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",g),document.removeEventListener("pointerdown",h,!0)}},[t]),(0,An.useEffect)(()=>{t&&c.current?.querySelector(`[data-index="${r}"]`)?.scrollIntoView({block:"nearest"})},[r,t]);let p=()=>{i(u>=0?u:0),n(!0)},f=g=>{let h=e.options[g];h===void 0||h.disabled===!0||(e.onChange(h.value),n(!1),l.current?.focus())},x=g=>{if(e.options.length===0)return;let h=r;for(let y=0;y<e.options.length&&(h=(h+g+e.options.length)%e.options.length,e.options[h]?.disabled===!0);y++);i(h)},_=g=>{if(e.disabled!==!0){if(!t){(g.key==="ArrowDown"||g.key==="ArrowUp"||g.key==="Enter"||g.key===" ")&&(g.preventDefault(),p());return}g.key==="ArrowDown"?(g.preventDefault(),x(1)):g.key==="ArrowUp"?(g.preventDefault(),x(-1)):g.key==="Home"?(g.preventDefault(),i(0)):g.key==="End"?(g.preventDefault(),i(e.options.length-1)):g.key==="Enter"||g.key===" "?(g.preventDefault(),f(r)):(g.key==="Escape"||g.key==="Tab")&&n(!1)}},Z=d?.label??e.placeholder??"";return(0,Yt.jsxs)(Yt.Fragment,{children:[(0,Yt.jsxs)("button",{ref:l,id:e.id,type:"button",role:"combobox","aria-expanded":t,"aria-haspopup":"listbox","aria-label":e.ariaLabel,title:e.title,disabled:e.disabled,onClick:()=>t?n(!1):p(),onKeyDown:_,style:{...Y_(e.compact),display:"inline-flex",alignItems:"center",gap:6,textAlign:"left",cursor:e.disabled===!0?"default":"pointer",opacity:e.disabled===!0?.6:1,...e.style},children:[(0,Yt.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:d===void 0?s.muted:s.inputForeground},children:Z}),(0,Yt.jsx)("span",{"aria-hidden":"true",style:{display:"flex",flexShrink:0,color:s.muted,transform:t?"rotate(-90deg)":"rotate(90deg)",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,Yt.jsx)(Vr,{size:e.compact===!0?10:12})})]}),t&&o!==void 0&&(0,Yt.jsxs)("div",{ref:c,role:"listbox","aria-label":e.ariaLabel,className:"lc-scroll lc-fade-up",style:{position:"fixed",left:o.left,width:Math.max(o.width,160),...o.above?{bottom:window.innerHeight-o.top+4}:{top:o.top+4},maxHeight:W_,overflowY:"auto",zIndex:1e3,background:s.inputBackground,border:`1px solid ${s.accent}`,borderRadius:8,boxShadow:`0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 3px ${s.accentSoft}`,padding:3,fontFamily:B},children:[e.options.length===0&&(0,Yt.jsx)("div",{style:{padding:"6px 8px",color:s.muted,fontSize:12},children:"Nothing to choose from"}),e.options.map((g,h)=>{let y=g.value===e.value,v=h===r;return(0,Yt.jsxs)("div",{role:"option","data-index":h,"aria-selected":y,"aria-disabled":g.disabled===!0,onPointerEnter:()=>g.disabled!==!0&&i(h),onPointerDown:j=>{j.preventDefault(),f(h)},style:{display:"flex",alignItems:"center",gap:8,padding:e.compact===!0?"4px 8px":"6px 8px",borderRadius:6,cursor:g.disabled===!0?"default":"pointer",opacity:g.disabled===!0?.5:1,background:v?s.accent:"transparent",color:v?s.accentContrast:s.inputForeground,fontSize:e.compact===!0?11:13},children:[(0,Yt.jsxs)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[g.label,g.detail!==void 0&&(0,Yt.jsx)("span",{style:{marginLeft:6,opacity:.7,color:"inherit"},children:g.detail})]}),y&&(0,Yt.jsx)("span",{"aria-hidden":"true",style:{width:5,height:5,borderRadius:"50%",flexShrink:0,background:v?s.accentContrast:s.accent}})]},g.value)})]})]})}function ew(e){let[t,n]=(0,Rl.useState)(()=>JA(e.form.fields)),[r,i]=(0,Rl.useState)(!1),o=(0,Rl.useMemo)(()=>XA(e.form.fields,t),[e.form.fields,t]),a=Object.keys(o).length>0,l=(u,d)=>{n(m=>({...m,[u]:d}))},c=()=>{if(a){i(!0);return}e.onSubmit(e.form.id,t)};return(0,it.jsxs)("div",{style:{margin:"8px 12px 12px",border:`1px solid ${s.border}`,borderRadius:6,padding:12,background:s.inputBackground},children:[(0,it.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:e.form.description===void 0?10:2},children:e.form.title}),e.form.description!==void 0&&(0,it.jsx)("div",{style:{color:s.muted,fontSize:12,marginBottom:10},children:e.form.description}),(0,it.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:e.form.fields.map(u=>(0,it.jsx)(GA,{field:u,value:t[u.name]??"",error:r?o[u.name]:void 0,onChange:d=>l(u.name,d)},u.name))}),(0,it.jsxs)("div",{style:{display:"flex",gap:8,marginTop:12},children:[(0,it.jsx)("button",{type:"button",style:me(!1),onClick:c,children:"Submit"}),(0,it.jsx)("button",{type:"button",style:C(),onClick:()=>e.onDismiss(e.form.id),children:"Skip"})]})]})}function GA(e){let{field:t}=e,n=`lc-form-${t.name}`,r=t.required===!1;return t.type==="boolean"?(0,it.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",cursor:"pointer"},children:[(0,it.jsx)("input",{type:"checkbox",checked:e.value===!0,onChange:i=>e.onChange(i.target.checked),style:{marginTop:2}}),(0,it.jsxs)("span",{children:[(0,it.jsx)("span",{style:{display:"block",fontSize:13},children:t.label}),t.description!==void 0&&(0,it.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:t.description})]})]}):(0,it.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,it.jsxs)("label",{htmlFor:n,style:V(),children:[t.label,r&&(0,it.jsx)("span",{style:{color:s.muted,fontWeight:400},children:" (optional)"})]}),t.description!==void 0&&(0,it.jsx)("span",{style:{color:s.muted,fontSize:11},children:t.description}),t.type==="choice"?(0,it.jsx)(Ve,{id:n,value:String(e.value),options:(t.options??[]).map(i=>({value:i.value,label:i.label??i.value})),placeholder:"Choose one",onChange:e.onChange,ariaLabel:t.label}):t.multiline===!0||t.type==="list"?(0,it.jsx)("textarea",{id:n,value:String(e.value),rows:t.type==="list"?3:4,placeholder:t.type==="list"?"One per line, or separated by commas":void 0,onChange:i=>e.onChange(i.target.value),style:{...G(),resize:"vertical"}}):(0,it.jsx)("input",{id:n,inputMode:t.type==="number"?"decimal":"text",value:String(e.value),onChange:i=>e.onChange(i.target.value),style:G()}),t.type==="list"&&e.error===void 0&&(0,it.jsx)("span",{style:{color:s.muted,fontSize:11},children:YA(String(e.value))}),e.error!==void 0&&(0,it.jsx)("span",{style:Mt(),children:e.error})]})}function tw(e){return e.split(/[,\n]/).map(t=>t.trim()).filter(t=>t.length>0)}function YA(e){let t=tw(e).length;return t===0?"No values yet.":t===1?"1 value":`${String(t)} values`}function JA(e){let t={};for(let n of e)n.type==="boolean"?t[n.name]=n.defaultValue===!0:n.defaultValue!==void 0?t[n.name]=String(n.defaultValue):t[n.name]=n.type==="choice"&&n.options?.length===1?n.options[0]?.value??"":"";return t}function XA(e,t){let n={};for(let r of e){if(r.type==="boolean")continue;let i=String(t[r.name]??"").trim();if(i.length===0){r.required!==!1&&(n[r.name]="Required.");continue}r.type==="list"&&tw(i).length===0&&r.required!==!1&&(n[r.name]="Enter at least one value."),r.type==="number"&&!Number.isFinite(Number(i))&&(n[r.name]="Enter a number."),r.type==="choice"&&!(r.options??[]).some(o=>o.value===i)&&(n[r.name]="Choose one of the options.")}return n}var ve=P(ie(),1),hn=P(ge(),1);function Zu(e,t){let n=e.slice(0,t),r=n.lastIndexOf("@");if(r===-1)return;let i=n.slice(r+1);if(!/[\s@]/.test(i))return i}function KA(e){return e.includes(" ")?`@"${e}"`:`@${e}`}function Lu(e,t,n){let i=e.slice(0,t).lastIndexOf("@");if(i===-1)return;let o=KA(n);return{text:`${e.slice(0,i)}${o} ${e.slice(t)}`,caret:i+o.length+1}}var QA=/@(?:"[^"\n]+"|[^\s@"]+)/g;function nw(e){let t=[],n=0;for(let r of e.matchAll(QA)){let i=r.index;i>n&&t.push({text:e.slice(n,i),isMention:!1}),t.push({text:r[0],isMention:!0}),n=i+r[0].length}return n<e.length&&t.push({text:e.slice(n),isMention:!1}),t}var WA=5*1024*1024,iw=["image/png","image/jpeg","image/webp","image/gif"],ej=512*1024;function tj(e){return e.includes("\0")}async function nj(e){if(e.size>ej)return{error:`${e.name} is too large to attach (${Math.round(e.size/1024)}KB). Put it in the workspace and ask me to read it \u2014 read_file can page through any size.`};let t=await e.text();return tj(t)?{error:`${e.name} is not a text file, so there is nothing readable to attach.`}:{name:e.name||"attachment",text:t}}async function ij(e){if(!iw.includes(e.type)||e.size>WA)return;let t=await e.arrayBuffer(),n="",r=new Uint8Array(t);for(let i=0;i<r.length;i+=8192)n+=String.fromCharCode(...r.subarray(i,i+8192));return{mediaType:e.type,data:btoa(n),name:e.name||"pasted image"}}var rj={padding:"5px 6px",margin:0,fontFamily:B,fontSize:13,lineHeight:1.45,border:"none"};function hy(e){let[t,n]=(0,hn.useState)(""),[r,i]=(0,hn.useState)([]),[o,a]=(0,hn.useState)([]),[l,c]=(0,hn.useState)(void 0),[u,d]=(0,hn.useState)(0),[m,p]=(0,hn.useState)(void 0),f=(0,hn.useRef)(null),x=z=>{z.style.height="auto",z.style.height=`${Math.min(z.scrollHeight,200)}px`},_=(0,hn.useRef)(null),Z=l!==void 0&&e.mentionCandidates.length>0,g=(0,hn.useRef)(e.onQueryMentions);g.current=e.onQueryMentions,(0,hn.useEffect)(()=>{if(l===void 0)return;let z=setTimeout(()=>g.current(l),120);return()=>clearTimeout(z)},[l]);let h=(z,W)=>{let Ge=Zu(z,W);c(Ge),d(0)},y=async z=>{let W=[],Ge=[],Ye=[];for(let Qe of Array.from(z)){if(iw.includes(Qe.type)){let O=await ij(Qe);O===void 0?Ye.push(`${Qe.name} is larger than 5MB.`):W.push(O);continue}let En=await nj(Qe);"error"in En?Ye.push(En.error):Ge.push(En)}W.length>0&&i(Qe=>[...Qe,...W]),Ge.length>0&&a(Qe=>[...Qe,...Ge]),p(Ye.length>0?Ye.join(" "):void 0)},v=z=>{let W=f.current,Ge=W?.selectionStart??t.length,Ye=Lu(t,Ge,z);Ye!==void 0&&(n(Ye.text),c(void 0),requestAnimationFrame(()=>{W?.focus(),W?.setSelectionRange(Ye.caret,Ye.caret)}))},j=()=>{let z=t.trim();if(z.length===0&&r.length===0&&o.length===0)return;let W=o.map(Ye=>`--- ${Ye.name} ---
80
+ `);return t[t.length-1]===""&&t.pop(),t}var jv="var(--vscode-editor-font-family, monospace)";function kj(e){switch(e){case"edit":return"wants to modify a file";case"command":return"wants to run a command";case"read":return"wants to read from the workspace";case"mcp":return"wants to use an external tool";default:return"wants to act"}}function _j(e){let{preview:t}=e;return t.kind==="diff"?(0,dt.jsxs)("div",{children:[t.note!==void 0&&(0,dt.jsx)("div",{style:{color:c.muted,fontSize:11,marginBottom:4},children:t.note}),(0,dt.jsx)(es,{path:t.path,before:t.before,after:t.after})]}):t.kind==="command"?(0,dt.jsxs)("div",{children:[(0,dt.jsxs)("div",{style:{color:c.muted,fontSize:11,marginBottom:4},children:["in ",t.cwd]}),(0,dt.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${c.border}`,borderRadius:4,fontFamily:jv,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-all"},children:t.command})]}):(0,dt.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${c.border}`,borderRadius:4,fontFamily:jv,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.text})}function Ov(e){let{approval:t}=e;return(0,dt.jsxs)("div",{className:"lc-fade-up",style:{margin:"6px 10px 6px 40px",padding:10,borderRadius:12,border:`1px solid ${c.accent}`,boxShadow:`0 0 0 3px ${c.accentSoft}`,fontFamily:P},children:[(0,dt.jsxs)("div",{style:{marginBottom:8,fontSize:12},children:[(0,dt.jsx)("span",{style:{fontFamily:jv},children:t.toolName})," ",(0,dt.jsx)("span",{style:{color:c.muted},children:kj(t.group)})]}),(0,dt.jsx)(_j,{preview:t.preview}),(0,dt.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,flexWrap:"wrap"},children:[(0,dt.jsx)("button",{type:"button",className:"lc-btn-accent",title:"Approve \u2014 run this once","aria-label":"Approve, run this once",style:{...Se("primary"),width:34},onClick:()=>e.onDecide(t.id,"approve"),children:(0,dt.jsx)(ui,{size:16})}),(0,dt.jsx)("button",{type:"button",title:"Deny \u2014 do not run this","aria-label":"Deny, do not run this",style:{...Se("secondary"),width:34},onClick:()=>e.onDecide(t.id,"deny"),children:(0,dt.jsx)(ca,{size:16})}),t.alwaysScope==="folder"?(0,dt.jsx)("button",{type:"button",style:$(),title:"Always allow reads from the folder this file is in. Added to Settings -> Approvals -> Folders, where you can remove it.",onClick:()=>e.onAlwaysAllow(t.id,"folder"),children:"Always allow this folder"}):t.preview.kind==="command"?(0,dt.jsx)("button",{type:"button",style:$(),title:"Allow this exact command string in this workspace. Anything appended still prompts.",onClick:()=>e.onAlwaysAllow(t.id,"command"),children:"Always allow this command"}):(0,dt.jsxs)("button",{type:"button",style:$(),title:`Always allow ${t.toolName} in this workspace`,onClick:()=>e.onAlwaysAllow(t.id,"tool"),children:["Always allow ",t.toolName]})]})]})}var tt=M(oe(),1),ns=M(he(),1);var Tt=M(oe(),1),ts=M(he(),1);function ww(e){let[t,n]=(0,ts.useState)(""),r=e.filterThreshold??8,i=e.options.length>r,o=(0,ts.useMemo)(()=>{let d=t.trim().toLowerCase();return d.length===0?e.options:e.options.filter(m=>(m.label??m.value).toLowerCase().includes(d)||m.value.toLowerCase().includes(d)||(m.hint??"").toLowerCase().includes(d))},[e.options,t]),a=(0,ts.useMemo)(()=>new Set(e.selected),[e.selected]),l=d=>{let m=new Set(a);m.has(d)?m.delete(d):m.add(d),e.onChange(e.options.map(h=>h.value).filter(h=>m.has(h)))},s=d=>{let m=new Set(a);for(let h of o)d?m.add(h.value):m.delete(h.value);e.onChange(e.options.map(h=>h.value).filter(h=>m.has(h)))},u={background:"none",border:"none",color:c.accent,cursor:"pointer",fontSize:11,padding:0};return(0,Tt.jsxs)("div",{role:"group","aria-label":e.ariaLabel,children:[i&&(0,Tt.jsx)("input",{type:"text",value:t,spellCheck:!1,placeholder:`Filter ${String(e.options.length)} options\u2026`,"aria-label":`Filter ${e.ariaLabel}`,onChange:d=>n(d.target.value),style:{...H(),marginBottom:6}}),(0,Tt.jsx)("div",{className:"lc-scroll",style:{maxHeight:220,overflowY:"auto",border:`1px solid ${c.border}`,borderRadius:4,padding:6},children:o.length===0?(0,Tt.jsxs)("span",{style:{color:c.muted,fontSize:12},children:["Nothing matches \u201C",t.trim(),"\u201D."]}):o.map(d=>(0,Tt.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",cursor:"pointer",padding:"3px 2px"},children:[(0,Tt.jsx)("input",{type:"checkbox",checked:a.has(d.value),onChange:()=>l(d.value),style:{marginTop:2}}),(0,Tt.jsxs)("span",{style:{minWidth:0},children:[(0,Tt.jsx)("span",{style:{display:"block",fontSize:12},children:d.label??d.value}),d.hint!==void 0&&(0,Tt.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:d.hint})]})]},d.value))}),(0,Tt.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",marginTop:4},children:[(0,Tt.jsx)("span",{style:{color:c.muted,fontSize:11},children:a.size===0?"None selected":`${String(a.size)} selected`}),o.length>0&&(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)("button",{type:"button",style:u,onClick:()=>s(!0),children:t.trim().length>0?`All ${String(o.length)} shown`:"All"}),(0,Tt.jsx)("button",{type:"button",style:u,onClick:()=>s(!1),children:t.trim().length>0?"None shown":"None"})]})]})]})}var Kt=M(oe(),1),Rn=M(he(),1);var $w=260;function Ne(e){let[t,n]=(0,Rn.useState)(!1),[r,i]=(0,Rn.useState)(0),[o,a]=(0,Rn.useState)(void 0),l=(0,Rn.useRef)(null),s=(0,Rn.useRef)(null),u=e.options.findIndex(g=>g.value===e.value),d=u>=0?e.options[u]:void 0,m=()=>{let g=l.current;if(g===null)return;let y=g.getBoundingClientRect(),b=window.innerHeight-y.bottom,v=b<Math.min($w,e.options.length*28+8)&&y.top>b;a({left:y.left,top:v?y.top:y.bottom,width:y.width,above:v})};(0,Rn.useLayoutEffect)(()=>{t&&m()},[t]),(0,Rn.useEffect)(()=>{if(!t)return;let g=()=>n(!1),y=v=>{let A=v.target;A!==null&&(l.current?.contains(A)===!0||s.current?.contains(A)===!0)||g()},b=v=>{let A=v.target;A!==null&&s.current?.contains(A)===!0||g()};return window.addEventListener("scroll",b,!0),window.addEventListener("resize",g),document.addEventListener("pointerdown",y,!0),()=>{window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",g),document.removeEventListener("pointerdown",y,!0)}},[t]),(0,Rn.useEffect)(()=>{t&&s.current?.querySelector(`[data-index="${r}"]`)?.scrollIntoView({block:"nearest"})},[r,t]);let h=()=>{i(u>=0?u:0),n(!0)},f=g=>{let y=e.options[g];y===void 0||y.disabled===!0||(e.onChange(y.value),n(!1),l.current?.focus())},x=g=>{if(e.options.length===0)return;let y=r;for(let b=0;b<e.options.length&&(y=(y+g+e.options.length)%e.options.length,e.options[y]?.disabled===!0);b++);i(y)},k=g=>{if(e.disabled!==!0){if(!t){(g.key==="ArrowDown"||g.key==="ArrowUp"||g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h());return}g.key==="ArrowDown"?(g.preventDefault(),x(1)):g.key==="ArrowUp"?(g.preventDefault(),x(-1)):g.key==="Home"?(g.preventDefault(),i(0)):g.key==="End"?(g.preventDefault(),i(e.options.length-1)):g.key==="Enter"||g.key===" "?(g.preventDefault(),f(r)):(g.key==="Escape"||g.key==="Tab")&&n(!1)}},N=d?.label??e.placeholder??"";return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)("button",{ref:l,id:e.id,type:"button",role:"combobox","aria-expanded":t,"aria-haspopup":"listbox","aria-label":e.ariaLabel,title:e.title,disabled:e.disabled,onClick:()=>t?n(!1):h(),onKeyDown:k,style:{...bw(e.compact),display:"inline-flex",alignItems:"center",gap:6,textAlign:"left",cursor:e.disabled===!0?"default":"pointer",opacity:e.disabled===!0?.6:1,...e.style},children:[(0,Kt.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:d===void 0?c.muted:c.inputForeground},children:N}),(0,Kt.jsx)("span",{"aria-hidden":"true",style:{display:"flex",flexShrink:0,color:c.muted,transform:t?"rotate(-90deg)":"rotate(90deg)",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,Kt.jsx)(io,{size:e.compact===!0?10:12})})]}),t&&o!==void 0&&(0,Kt.jsxs)("div",{ref:s,role:"listbox","aria-label":e.ariaLabel,className:"lc-scroll lc-fade-up",style:{position:"fixed",left:o.left,width:Math.max(o.width,160),...o.above?{bottom:window.innerHeight-o.top+4}:{top:o.top+4},maxHeight:$w,overflowY:"auto",zIndex:1e3,background:c.inputBackground,border:`1px solid ${c.accent}`,borderRadius:8,boxShadow:`0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 3px ${c.accentSoft}`,padding:3,fontFamily:P},children:[e.options.length===0&&(0,Kt.jsx)("div",{style:{padding:"6px 8px",color:c.muted,fontSize:12},children:"Nothing to choose from"}),e.options.map((g,y)=>{let b=g.value===e.value,v=y===r;return(0,Kt.jsxs)("div",{role:"option","data-index":y,"aria-selected":b,"aria-disabled":g.disabled===!0,onPointerEnter:()=>g.disabled!==!0&&i(y),onPointerDown:A=>{A.preventDefault(),f(y)},style:{display:"flex",alignItems:"center",gap:8,padding:e.compact===!0?"4px 8px":"6px 8px",borderRadius:6,cursor:g.disabled===!0?"default":"pointer",opacity:g.disabled===!0?.5:1,background:v?c.accent:"transparent",color:v?c.accentContrast:c.inputForeground,fontSize:e.compact===!0?11:13},children:[(0,Kt.jsxs)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[g.label,g.detail!==void 0&&(0,Kt.jsx)("span",{style:{marginLeft:6,opacity:.7,color:"inherit"},children:g.detail})]}),b&&(0,Kt.jsx)("span",{"aria-hidden":"true",style:{width:5,height:5,borderRadius:"50%",flexShrink:0,background:v?c.accentContrast:c.accent}})]},g.value)})]})]})}function zw(e){let[t,n]=(0,ns.useState)(()=>zj(e.form.fields)),[r,i]=(0,ns.useState)(!1),o=(0,ns.useMemo)(()=>Tj(e.form.fields,t),[e.form.fields,t]),a=Object.keys(o).length>0,l=(u,d)=>{n(m=>({...m,[u]:d}))},s=()=>{if(a){i(!0);return}e.onSubmit(e.form.id,t)};return(0,tt.jsxs)("div",{style:{margin:"8px 12px 12px",border:`1px solid ${c.border}`,borderRadius:6,padding:12,background:c.inputBackground},children:[(0,tt.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:e.form.description===void 0?10:2},children:e.form.title}),e.form.description!==void 0&&(0,tt.jsx)("div",{style:{color:c.muted,fontSize:12,marginBottom:10},children:e.form.description}),(0,tt.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:e.form.fields.map(u=>(0,tt.jsx)(wj,{field:u,value:t[u.name]??"",error:r?o[u.name]:void 0,onChange:d=>l(u.name,d)},u.name))}),(0,tt.jsxs)("div",{style:{display:"flex",gap:8,marginTop:12},children:[(0,tt.jsx)("button",{type:"button",style:se(!1),onClick:s,children:"Submit"}),(0,tt.jsx)("button",{type:"button",style:$(),onClick:()=>e.onDismiss(e.form.id),children:"Skip"})]})]})}function wj(e){let{field:t}=e,n=`lc-form-${t.name}`,r=t.required===!1;return t.type==="boolean"?(0,tt.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",cursor:"pointer"},children:[(0,tt.jsx)("input",{type:"checkbox",checked:e.value===!0,onChange:i=>e.onChange(i.target.checked),style:{marginTop:2}}),(0,tt.jsxs)("span",{children:[(0,tt.jsx)("span",{style:{display:"block",fontSize:13},children:t.label}),t.description!==void 0&&(0,tt.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:t.description})]})]}):(0,tt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,tt.jsxs)("label",{htmlFor:n,style:q(),children:[t.label,r&&(0,tt.jsx)("span",{style:{color:c.muted,fontWeight:400},children:" (optional)"})]}),t.description!==void 0&&(0,tt.jsx)("span",{style:{color:c.muted,fontSize:11},children:t.description}),t.type==="multichoice"?(0,tt.jsx)(ww,{options:(t.options??[]).map(i=>({value:i.value,...i.label!==void 0?{label:i.label}:{}})),selected:Array.isArray(e.value)?e.value:[],onChange:e.onChange,ariaLabel:t.label}):t.type==="choice"?(0,tt.jsx)(Ne,{id:n,value:String(e.value),options:(t.options??[]).map(i=>({value:i.value,label:i.label??i.value})),placeholder:"Choose one",onChange:e.onChange,ariaLabel:t.label}):t.multiline===!0||t.type==="list"?(0,tt.jsx)("textarea",{id:n,value:String(e.value),rows:t.type==="list"?3:4,placeholder:t.type==="list"?"One per line, or separated by commas":void 0,onChange:i=>e.onChange(i.target.value),style:{...H(),resize:"vertical"}}):(0,tt.jsx)("input",{id:n,inputMode:t.type==="number"?"decimal":"text",value:String(e.value),onChange:i=>e.onChange(i.target.value),style:H()}),t.type==="list"&&e.error===void 0&&(0,tt.jsx)("span",{style:{color:c.muted,fontSize:11},children:$j(String(e.value))}),e.error!==void 0&&(0,tt.jsx)("span",{style:Pt(),children:e.error})]})}function Tw(e){return e.split(/[,\n]/).map(t=>t.trim()).filter(t=>t.length>0)}function $j(e){let t=Tw(e).length;return t===0?"No values yet.":t===1?"1 value":`${String(t)} values`}function zj(e){let t={};for(let n of e)n.type==="boolean"?t[n.name]=n.defaultValue===!0:n.defaultValue!==void 0?t[n.name]=String(n.defaultValue):t[n.name]=n.type==="choice"&&n.options?.length===1?n.options[0]?.value??"":"";return t}function Tj(e,t){let n={};for(let r of e){if(r.type==="boolean")continue;let i=String(t[r.name]??"").trim();if(i.length===0){r.required!==!1&&(n[r.name]="Required.");continue}r.type==="list"&&Tw(i).length===0&&r.required!==!1&&(n[r.name]="Enter at least one value."),r.type==="number"&&!Number.isFinite(Number(i))&&(n[r.name]="Enter a number."),r.type==="choice"&&!(r.options??[]).some(o=>o.value===i)&&(n[r.name]="Choose one of the options.")}return n}var xe=M(oe(),1),bn=M(he(),1);function od(e,t){let n=e.slice(0,t),r=n.lastIndexOf("@");if(r===-1)return;let i=n.slice(r+1);if(!/[\s@]/.test(i))return i}function Cj(e){return e.includes(" ")?`@"${e}"`:`@${e}`}function ad(e,t,n){let i=e.slice(0,t).lastIndexOf("@");if(i===-1)return;let o=Cj(n);return{text:`${e.slice(0,i)}${o} ${e.slice(t)}`,caret:i+o.length+1}}var Ej=/@(?:"[^"\n]+"|[^\s@"]+)/g;function Cw(e){let t=[],n=0;for(let r of e.matchAll(Ej)){let i=r.index;i>n&&t.push({text:e.slice(n,i),isMention:!1}),t.push({text:r[0],isMention:!0}),n=i+r[0].length}return n<e.length&&t.push({text:e.slice(n),isMention:!1}),t}var Ij=5*1024*1024,Ew=["image/png","image/jpeg","image/webp","image/gif"],Dj=512*1024;function Aj(e){return e.includes("\0")}async function jj(e){if(e.size>Dj)return{error:`${e.name} is too large to attach (${Math.round(e.size/1024)}KB). Put it in the workspace and ask me to read it \u2014 read_file can page through any size.`};let t=await e.text();return Aj(t)?{error:`${e.name} is not a text file, so there is nothing readable to attach.`}:{name:e.name||"attachment",text:t}}async function Oj(e){if(!Ew.includes(e.type)||e.size>Ij)return;let t=await e.arrayBuffer(),n="",r=new Uint8Array(t);for(let i=0;i<r.length;i+=8192)n+=String.fromCharCode(...r.subarray(i,i+8192));return{mediaType:e.type,data:btoa(n),name:e.name||"pasted image"}}var Uj={padding:"5px 6px",margin:0,fontFamily:P,fontSize:13,lineHeight:1.45,border:"none"};function Uv(e){let[t,n]=(0,bn.useState)(""),[r,i]=(0,bn.useState)([]),[o,a]=(0,bn.useState)([]),[l,s]=(0,bn.useState)(void 0),[u,d]=(0,bn.useState)(0),[m,h]=(0,bn.useState)(void 0),f=(0,bn.useRef)(null),x=C=>{C.style.height="auto",C.style.height=`${Math.min(C.scrollHeight,200)}px`},k=(0,bn.useRef)(null),N=l!==void 0&&e.mentionCandidates.length>0,g=(0,bn.useRef)(e.onQueryMentions);g.current=e.onQueryMentions,(0,bn.useEffect)(()=>{if(l===void 0)return;let C=setTimeout(()=>g.current(l),120);return()=>clearTimeout(C)},[l]);let y=(C,re)=>{let Ye=od(C,re);s(Ye),d(0)},b=async C=>{let re=[],Ye=[],Je=[];for(let Qe of Array.from(C)){if(Ew.includes(Qe.type)){let O=await Oj(Qe);O===void 0?Je.push(`${Qe.name} is larger than 5MB.`):re.push(O);continue}let jn=await jj(Qe);"error"in jn?Je.push(jn.error):Ye.push(jn)}re.length>0&&i(Qe=>[...Qe,...re]),Ye.length>0&&a(Qe=>[...Qe,...Ye]),h(Je.length>0?Je.join(" "):void 0)},v=C=>{let re=f.current,Ye=re?.selectionStart??t.length,Je=ad(t,Ye,C);Je!==void 0&&(n(Je.text),s(void 0),requestAnimationFrame(()=>{re?.focus(),re?.setSelectionRange(Je.caret,Je.caret)}))},A=()=>{let C=t.trim();if(C.length===0&&r.length===0&&o.length===0)return;let re=o.map(Je=>`--- ${Je.name} ---
81
81
  \`\`\`
82
- ${Ye.text}
82
+ ${Je.text}
83
83
  \`\`\``).join(`
84
84
 
85
- `),Ge=W.length>0?`${W}
85
+ `),Ye=re.length>0?`${re}
86
86
 
87
- ${z}`:z;e.onSend(Ge,r),a([]),n(""),f.current!==null&&(f.current.style.height="auto"),i([]),c(void 0),p(void 0)},X=t.trim().length>0||r.length>0||o.length>0,L=nw(t).filter(z=>z.isMention).map(z=>z.text.replace(/^@/,"").replace(/^"|"$/g,"")),T=z=>{let W=Array.from(z.clipboardData.files);W.length!==0&&(z.preventDefault(),y(W))};return(0,ve.jsxs)("div",{onDrop:z=>{z.dataTransfer.files.length!==0&&(z.preventDefault(),y(z.dataTransfer.files))},onDragOver:z=>{e.supportsVision&&z.preventDefault()},style:{borderTop:`1px solid ${s.border}`,flexShrink:0},children:[Z&&(0,ve.jsx)("div",{role:"listbox","aria-label":"Workspace files",className:"lc-scroll lc-fade-up",style:{maxHeight:160,overflowY:"auto",borderBottom:`1px solid ${s.border}`},children:e.mentionCandidates.map((z,W)=>(0,ve.jsx)("button",{type:"button",role:"option","aria-selected":W===u,onMouseDown:Ge=>{Ge.preventDefault(),v(z)},style:{display:"block",width:"100%",textAlign:"left",padding:"4px 12px",background:W===u?s.accent:"transparent",border:"none",color:W===u?s.accentContrast:s.foreground,cursor:"pointer",fontFamily:B,fontSize:12},children:z},z))}),e.queued.length>0&&(0,ve.jsx)("div",{style:{padding:"6px 10px 0",display:"flex",flexDirection:"column",gap:4},children:e.queued.map((z,W)=>(0,ve.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:6,fontSize:11,color:s.muted,borderLeft:`2px solid ${s.accent}`,paddingLeft:6},children:[(0,ve.jsx)("span",{style:{flex:1,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:z}),(0,ve.jsx)("button",{type:"button",title:"Remove from the queue","aria-label":"Remove from the queue",onClick:()=>e.onUnqueue(W),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${W}-${z.slice(0,24)}`))}),L.length>0&&(0,ve.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0",alignItems:"center"},children:[(0,ve.jsx)("span",{style:{color:s.muted,fontSize:11},children:L.length===1?"Mentions":`Mentions (${String(L.length)})`}),L.map((z,W)=>(0,ve.jsx)("span",{title:z,style:{padding:"1px 8px",borderRadius:8,fontSize:11,fontFamily:"var(--vscode-editor-font-family, monospace)",color:s.accent,border:`1px solid ${s.accent}`,background:`color-mix(in srgb, ${s.accent} 12%, transparent)`},children:z},`${z}-${W}`))]}),o.length>0&&(0,ve.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0"},children:o.map((z,W)=>(0,ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"2px 4px 2px 8px",border:`1px solid ${s.border}`,borderRadius:8,fontSize:11,color:s.muted},title:`${z.name} \u2014 ${String(Math.max(1,Math.round(z.text.length/1024)))}KB of text, included in your next message`,children:[(0,ve.jsx)("span",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:z.name}),(0,ve.jsxs)("span",{children:[Math.max(1,Math.round(z.text.length/1024)),"KB"]}),(0,ve.jsx)("button",{type:"button",title:"Remove","aria-label":`Remove ${z.name}`,style:be("ghost"),onClick:()=>a(Ge=>Ge.filter((Ye,Qe)=>Qe!==W)),children:(0,ve.jsx)(Jo,{size:11})})]},`${z.name}-${W}`))}),r.length>0&&(0,ve.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0"},children:r.map((z,W)=>(0,ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"2px 6px",border:`1px solid ${s.border}`,borderRadius:3,fontSize:11,color:s.muted},children:[(0,ve.jsx)("img",{src:`data:${z.mediaType};base64,${z.data}`,alt:"",style:{width:20,height:20,objectFit:"cover",borderRadius:2}}),(0,ve.jsx)("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.name}),(0,ve.jsx)("button",{type:"button","aria-label":`Remove ${z.name}`,onClick:()=>i(Ge=>Ge.filter((Ye,Qe)=>Qe!==W)),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${z.name}-${W}`))}),m!==void 0&&(0,ve.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:s.error},children:m}),r.length>0&&!e.supportsVision&&(0,ve.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:s.error},children:"This model is not known to accept images. If it does, tick \u201CSupports images\u201D in Settings \u2192 Providers \u2192 Edit \u2192 Model capability overrides."}),(0,ve.jsxs)("div",{className:"lc-input",style:{display:"flex",gap:4,alignItems:"flex-end",margin:8,padding:4,background:s.inputBackground,border:`1px solid ${s.inputBorder}`,borderRadius:12},children:[(0,ve.jsx)("textarea",{ref:f,value:t,rows:2,placeholder:e.isStreaming?"Add a message \u2014 it joins the current turn":"Message Light Code\u2026 @ to attach a file",onChange:z=>{n(z.target.value),h(z.target.value,z.target.selectionStart),x(z.target)},onClick:z=>h(t,z.currentTarget.selectionStart),onBlur:()=>c(void 0),onPaste:T,onKeyDown:z=>{if(Z){if(z.key==="ArrowDown"){z.preventDefault(),d(W=>(W+1)%e.mentionCandidates.length);return}if(z.key==="ArrowUp"){z.preventDefault(),d(W=>(W-1+e.mentionCandidates.length)%e.mentionCandidates.length);return}if(z.key==="Enter"||z.key==="Tab"){let W=e.mentionCandidates[u];if(W!==void 0){z.preventDefault(),v(W);return}}if(z.key==="Escape"){z.preventDefault(),c(void 0);return}}z.key==="Enter"&&!z.shiftKey&&(z.preventDefault(),j())},style:{...rj,flex:1,resize:"none",border:"none",outline:"none",minHeight:44,maxHeight:200,overflowY:"auto",color:s.inputForeground,background:"transparent"}}),(0,ve.jsx)("input",{ref:_,type:"file",multiple:!0,hidden:!0,onChange:z=>{z.target.files!==null&&y(z.target.files),z.target.value=""}}),(0,ve.jsx)("button",{type:"button",title:e.supportsVision?"Attach a file \u2014 text is included in the message, images are sent to the model":"Attach a file. Text is included in the message; this model is not known to accept images","aria-label":"Attach a file",style:be("secondary",e.isStreaming),disabled:e.isStreaming,onClick:()=>_.current?.click(),children:(0,ve.jsx)(D_,{})}),e.isStreaming?(0,ve.jsx)("button",{type:"button",title:"Cancel","aria-label":"Cancel",style:be("secondary"),onClick:e.onCancel,children:(0,ve.jsx)($_,{})}):(0,ve.jsx)("button",{type:"button",className:"lc-btn-accent",title:"Send","aria-label":"Send",style:be("primary",!X),disabled:!X,onClick:j,children:(0,ve.jsx)(w_,{})})]}),(e.profiles.length>0||e.expertEnabled)&&(0,ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"0 10px 8px"},children:[e.profiles.length>0&&(0,ve.jsx)(Ve,{compact:!0,ariaLabel:"Provider profile",title:"Which provider answers the next message",value:e.activeProfileId??"",disabled:e.isStreaming,onChange:e.onSelectProfile,style:{maxWidth:"60%"},options:e.profiles.map(z=>({value:z.id,label:z.label,detail:z.model}))}),e.searchConnections.length>0&&(0,ve.jsx)(Ve,{compact:!0,ariaLabel:"OpenSearch connection",title:"Which cluster this conversation may search. Change it between messages.",value:e.activeSearchId??"",disabled:e.isStreaming,onChange:z=>e.onSelectSearch(z.length>0?z:void 0),style:{maxWidth:"38%"},options:[{value:"",label:"No search"},...e.searchConnections.map(z=>({value:z.id,label:z.label}))]}),e.expertEnabled&&(0,ve.jsxs)("span",{title:"Claude is available as an expert. Ask it directly \u2014 say \u201Cask Claude \u2026\u201D.",style:{...Je(),marginLeft:"auto",display:"inline-flex",alignItems:"center",gap:4},children:[(0,ve.jsx)(rn,{size:11}),"expert"]})]})]})}var de=P(ie(),1),_y=P(ge(),1);var we=P(ie(),1),cw=P(ge(),1);var oj=/^(https?:|mailto:)/i;function aj(e){let t=e.trim();return/^[a-z][a-z0-9+.-]*:/i.test(t)?oj.test(t):!0}var gy=/^ {0,3}(`{3,}|~{3,})\s*(\S+)?\s*$/,rw=/^ {0,3}(#{1,6})\s+(.*)$/,ow=/^ {0,3}([-*_])(\s*\1){2,}\s*$/,vy=/^ {0,3}[-*+]\s+(.*)$/,yy=/^ {0,3}\d+[.)]\s+(.*)$/,by=/^ {0,3}>\s?(.*)$/,xy=/^ {0,3}\|?(.*\|.*?)\|?\s*$/,aw=/^ {0,3}\|?\s*:?-{1,}:?\s*(\|\s*:?-{1,}:?\s*)*\|?\s*$/;function lw(e){let t=e.replace(/\r\n/g,`
87
+ ${C}`:C;e.onSend(Ye,r),a([]),n(""),f.current!==null&&(f.current.style.height="auto"),i([]),s(void 0),h(void 0)},ee=t.trim().length>0||r.length>0||o.length>0,B=Cw(t).filter(C=>C.isMention).map(C=>C.text.replace(/^@/,"").replace(/^"|"$/g,"")),T=C=>{let re=Array.from(C.clipboardData.files);re.length!==0&&(C.preventDefault(),b(re))};return(0,xe.jsxs)("div",{onDrop:C=>{C.dataTransfer.files.length!==0&&(C.preventDefault(),b(C.dataTransfer.files))},onDragOver:C=>{e.supportsVision&&C.preventDefault()},style:{borderTop:`1px solid ${c.border}`,flexShrink:0},children:[N&&(0,xe.jsx)("div",{role:"listbox","aria-label":"Workspace files",className:"lc-scroll lc-fade-up",style:{maxHeight:160,overflowY:"auto",borderBottom:`1px solid ${c.border}`},children:e.mentionCandidates.map((C,re)=>(0,xe.jsx)("button",{type:"button",role:"option","aria-selected":re===u,onMouseDown:Ye=>{Ye.preventDefault(),v(C)},style:{display:"block",width:"100%",textAlign:"left",padding:"4px 12px",background:re===u?c.accent:"transparent",border:"none",color:re===u?c.accentContrast:c.foreground,cursor:"pointer",fontFamily:P,fontSize:12},children:C},C))}),e.queued.length>0&&(0,xe.jsx)("div",{style:{padding:"6px 10px 0",display:"flex",flexDirection:"column",gap:4},children:e.queued.map((C,re)=>(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:6,fontSize:11,color:c.muted,borderLeft:`2px solid ${c.accent}`,paddingLeft:6},children:[(0,xe.jsx)("span",{style:{flex:1,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:C}),(0,xe.jsx)("button",{type:"button",title:"Remove from the queue","aria-label":"Remove from the queue",onClick:()=>e.onUnqueue(re),style:{background:"transparent",border:"none",color:c.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${re}-${C.slice(0,24)}`))}),B.length>0&&(0,xe.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0",alignItems:"center"},children:[(0,xe.jsx)("span",{style:{color:c.muted,fontSize:11},children:B.length===1?"Mentions":`Mentions (${String(B.length)})`}),B.map((C,re)=>(0,xe.jsx)("span",{title:C,style:{padding:"1px 8px",borderRadius:8,fontSize:11,fontFamily:"var(--vscode-editor-font-family, monospace)",color:c.accent,border:`1px solid ${c.accent}`,background:`color-mix(in srgb, ${c.accent} 12%, transparent)`},children:C},`${C}-${re}`))]}),o.length>0&&(0,xe.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0"},children:o.map((C,re)=>(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"2px 4px 2px 8px",border:`1px solid ${c.border}`,borderRadius:8,fontSize:11,color:c.muted},title:`${C.name} \u2014 ${String(Math.max(1,Math.round(C.text.length/1024)))}KB of text, included in your next message`,children:[(0,xe.jsx)("span",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:C.name}),(0,xe.jsxs)("span",{children:[Math.max(1,Math.round(C.text.length/1024)),"KB"]}),(0,xe.jsx)("button",{type:"button",title:"Remove","aria-label":`Remove ${C.name}`,style:Se("ghost"),onClick:()=>a(Ye=>Ye.filter((Je,Qe)=>Qe!==re)),children:(0,xe.jsx)(ca,{size:11})})]},`${C.name}-${re}`))}),r.length>0&&(0,xe.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0"},children:r.map((C,re)=>(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"2px 6px",border:`1px solid ${c.border}`,borderRadius:3,fontSize:11,color:c.muted},children:[(0,xe.jsx)("img",{src:`data:${C.mediaType};base64,${C.data}`,alt:"",style:{width:20,height:20,objectFit:"cover",borderRadius:2}}),(0,xe.jsx)("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.name}),(0,xe.jsx)("button",{type:"button","aria-label":`Remove ${C.name}`,onClick:()=>i(Ye=>Ye.filter((Je,Qe)=>Qe!==re)),style:{background:"transparent",border:"none",color:c.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${C.name}-${re}`))}),m!==void 0&&(0,xe.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:c.error},children:m}),r.length>0&&!e.supportsVision&&(0,xe.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:c.error},children:"This model is not known to accept images. If it does, tick \u201CSupports images\u201D in Settings \u2192 Providers \u2192 Edit \u2192 Model capability overrides."}),(0,xe.jsxs)("div",{className:"lc-input",style:{display:"flex",gap:4,alignItems:"flex-end",margin:8,padding:4,background:c.inputBackground,border:`1px solid ${c.inputBorder}`,borderRadius:12},children:[(0,xe.jsx)("textarea",{ref:f,value:t,rows:2,placeholder:e.isStreaming?"Add a message \u2014 it joins the current turn":"Message Light Code\u2026 @ to attach a file",onChange:C=>{n(C.target.value),y(C.target.value,C.target.selectionStart),x(C.target)},onClick:C=>y(t,C.currentTarget.selectionStart),onBlur:()=>s(void 0),onPaste:T,onKeyDown:C=>{if(N){if(C.key==="ArrowDown"){C.preventDefault(),d(re=>(re+1)%e.mentionCandidates.length);return}if(C.key==="ArrowUp"){C.preventDefault(),d(re=>(re-1+e.mentionCandidates.length)%e.mentionCandidates.length);return}if(C.key==="Enter"||C.key==="Tab"){let re=e.mentionCandidates[u];if(re!==void 0){C.preventDefault(),v(re);return}}if(C.key==="Escape"){C.preventDefault(),s(void 0);return}}C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),A())},style:{...Uj,flex:1,resize:"none",border:"none",outline:"none",minHeight:44,maxHeight:200,overflowY:"auto",color:c.inputForeground,background:"transparent"}}),(0,xe.jsx)("input",{ref:k,type:"file",multiple:!0,hidden:!0,onChange:C=>{C.target.files!==null&&b(C.target.files),C.target.value=""}}),(0,xe.jsx)("button",{type:"button",title:e.supportsVision?"Attach a file \u2014 text is included in the message, images are sent to the model":"Attach a file. Text is included in the message; this model is not known to accept images","aria-label":"Attach a file",style:Se("secondary",e.isStreaming),disabled:e.isStreaming,onClick:()=>k.current?.click(),children:(0,xe.jsx)(ew,{})}),e.isStreaming?(0,xe.jsx)("button",{type:"button",title:"Cancel","aria-label":"Cancel",style:Se("secondary"),onClick:e.onCancel,children:(0,xe.jsx)(J_,{})}):(0,xe.jsx)("button",{type:"button",className:"lc-btn-accent",title:"Send","aria-label":"Send",style:Se("primary",!ee),disabled:!ee,onClick:A,children:(0,xe.jsx)(Y_,{})})]}),(e.profiles.length>0||e.expertEnabled)&&(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"0 10px 8px"},children:[e.profiles.length>0&&(0,xe.jsx)(Ne,{compact:!0,ariaLabel:"Provider profile",title:"Which provider answers the next message",value:e.activeProfileId??"",disabled:e.isStreaming,onChange:e.onSelectProfile,style:{maxWidth:"60%"},options:e.profiles.map(C=>({value:C.id,label:C.label,detail:C.model}))}),e.searchConnections.length>0&&(0,xe.jsx)(Ne,{compact:!0,ariaLabel:"OpenSearch connection",title:"Which cluster this conversation may search. Change it between messages.",value:e.activeSearchId??"",disabled:e.isStreaming,onChange:C=>e.onSelectSearch(C.length>0?C:void 0),style:{maxWidth:"38%"},options:[{value:"",label:"No search"},...e.searchConnections.map(C=>({value:C.id,label:C.label}))]}),e.expertEnabled&&(0,xe.jsxs)("span",{title:"Claude is available as an expert. Ask it directly \u2014 say \u201Cask Claude \u2026\u201D.",style:{...Xe(),marginLeft:"auto",display:"inline-flex",alignItems:"center",gap:4},children:[(0,xe.jsx)(ln,{size:11}),"expert"]})]})]})}var pe=M(oe(),1),Fv=M(he(),1);var ze=M(oe(),1),Ow=M(he(),1);var Nj=/^(https?:|mailto:)/i;function Rj(e){let t=e.trim();return/^[a-z][a-z0-9+.-]*:/i.test(t)?Nj.test(t):!0}var Nv=/^ {0,3}(`{3,}|~{3,})\s*(\S+)?\s*$/,Iw=/^ {0,3}(#{1,6})\s+(.*)$/,Dw=/^ {0,3}([-*_])(\s*\1){2,}\s*$/,Rv=/^ {0,3}[-*+]\s+(.*)$/,Mv=/^ {0,3}\d+[.)]\s+(.*)$/,Bv=/^ {0,3}>\s?(.*)$/,Zv=/^ {0,3}\|?(.*\|.*?)\|?\s*$/,Aw=/^ {0,3}\|?\s*:?-{1,}:?\s*(\|\s*:?-{1,}:?\s*)*\|?\s*$/;function jw(e){let t=e.replace(/\r\n/g,`
88
88
  `).split(`
89
- `),n=[],r=0;for(;r<t.length;){let i=t[r]??"",o=gy.exec(i);if(o!==null){let d=o[1]??"```",m=[];for(r+=1;r<t.length;){let p=t[r]??"",f=gy.exec(p);if(f!==null&&(f[1]??"").length>=d.length&&(f[2]??"")==="")break;m.push(p),r+=1}r+=1,n.push({kind:"code",text:m.join(`
90
- `),...o[2]!==void 0?{language:o[2]}:{}});continue}if(i.trim().length===0){r+=1;continue}if(ow.test(i)){n.push({kind:"rule"}),r+=1;continue}let a=rw.exec(i);if(a!==null){n.push({kind:"heading",level:(a[1]??"#").length,content:ri(a[2]??"")}),r+=1;continue}let l=t[r+1];if(xy.test(i)&&l!==void 0&&aw.test(l)){let d=x=>x.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(_=>_.trim()),m=d(i).map(x=>ri(x)),p=d(l).map(x=>{let _=x.startsWith(":"),Z=x.endsWith(":");if(_&&Z)return"center";if(Z)return"right";if(_)return"left"});r+=2;let f=[];for(;r<t.length;){let x=t[r]??"";if(x.trim().length===0||!xy.test(x))break;f.push(d(x).map(_=>ri(_))),r+=1}n.push({kind:"table",head:m,rows:f,align:p});continue}if(by.test(i)){let d=[];for(;r<t.length;){let m=by.exec(t[r]??"");if(m===null)break;d.push(m[1]??""),r+=1}n.push({kind:"quote",content:ri(d.join(`
91
- `))});continue}let c=yy.test(i);if(c||vy.test(i)){let d=[];for(;r<t.length;){let m=t[r]??"",p=(c?yy:vy).exec(m);if(p===null)break;d.push(ri(p[1]??"")),r+=1}n.push({kind:"list",ordered:c,items:d});continue}let u=[];for(;r<t.length;){let d=t[r]??"";if(d.trim().length===0||gy.test(d)||rw.test(d)||ow.test(d)||by.test(d)||vy.test(d)||yy.test(d)||xy.test(d)&&aw.test(t[r+1]??""))break;u.push(d),r+=1}n.push({kind:"paragraph",content:ri(u.join(`
92
- `))})}return n}var Sy=String.raw`\S(?:[\s\S]*?\S)?`,lj=String.raw`[^()\s]*(?:\([^()\s]*\)[^()\s]*)*`,cj=new RegExp([String.raw`(`+"`"+String.raw`+)([\s\S]*?)\1`,String.raw`\[([^\]]*)\]\((`+lj+String.raw`)\)`,String.raw`(\*\*|__)(`+Sy+String.raw`)\5`,String.raw`(~~)(`+Sy+String.raw`)\7`,String.raw`(\*|_)(`+Sy+String.raw`)\9`].join("|"));function ri(e){let t=[],n=e;for(;n.length>0;){let r=cj.exec(n);if(r===null||r.index===void 0)break;if(r.index>0&&t.push({kind:"text",text:n.slice(0,r.index)}),r[1]!==void 0)t.push({kind:"code",text:(r[2]??"").replace(/^ (.*) $/,"$1")});else if(r[4]!==void 0){let i=r[4],o=ri(r[3]??"");t.push(aj(i)?{kind:"link",href:i,children:o}:{kind:"text",text:r[0]})}else r[5]!==void 0?t.push({kind:"strong",children:ri(r[6]??"")}):r[7]!==void 0?t.push({kind:"strike",children:ri(r[8]??"")}):r[9]!==void 0&&t.push({kind:"em",children:ri(r[10]??"")});n=n.slice(r.index+r[0].length)}return n.length>0&&t.push({kind:"text",text:n}),t}var sw="var(--vscode-editor-font-family, monospace)";function oi(e,t=""){return e.map((n,r)=>{let i=`${t}${String(r)}`;return n.kind==="text"?(0,we.jsx)("span",{children:n.text},i):n.kind==="code"?(0,we.jsx)("code",{style:{fontFamily:sw,fontSize:"0.92em",padding:"1px 4px",borderRadius:4,background:s.accentSoft,wordBreak:"break-word"},children:n.text},i):n.kind==="strong"?(0,we.jsx)("strong",{children:oi(n.children,`${i}-`)},i):n.kind==="em"?(0,we.jsx)("em",{children:oi(n.children,`${i}-`)},i):n.kind==="strike"?(0,we.jsx)("span",{style:{textDecoration:"line-through",opacity:.75},children:oi(n.children,`${i}-`)},i):(0,we.jsx)("a",{href:n.href,rel:"noopener noreferrer",title:n.href,style:{color:s.accent,textDecoration:"underline"},children:oi(n.children,`${i}-`)},i)})}function sj(e){let[t,n]=(0,cw.useState)(!1),r=()=>{navigator.clipboard?.writeText(e.text).then(()=>{n(!0),setTimeout(()=>n(!1),1500)})};return(0,we.jsxs)("div",{style:{position:"relative",margin:"6px 0",border:`1px solid ${s.border}`,borderRadius:8,background:s.inputBackground},children:[(0,we.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 6px 3px 10px",borderBottom:`1px solid ${s.border}`,color:s.muted,fontFamily:B,fontSize:10},children:[(0,we.jsx)("span",{children:e.language??"code"}),(0,we.jsx)("button",{type:"button",title:t?"Copied":"Copy","aria-label":t?"Copied":"Copy code",onClick:r,style:{marginLeft:"auto",display:"inline-flex",alignItems:"center",gap:4,padding:"2px 6px",border:"none",borderRadius:6,background:"transparent",color:t?s.accent:s.muted,cursor:"pointer",fontSize:10},children:t?(0,we.jsx)(ii,{size:11}):(0,we.jsx)(ir,{size:11})})]}),(0,we.jsx)("pre",{className:"lc-scroll",style:{margin:0,padding:"8px 10px",overflowX:"auto",fontFamily:sw,fontSize:11,lineHeight:1.5},children:Ol(e.text,e.language).map((i,o)=>{let a=Ul[i.kind];return a===void 0?(0,we.jsx)("span",{children:i.text},o):(0,we.jsx)("span",{style:{color:a},children:i.text},o)})})]})}function uj(e,t){if(e.kind==="code")return(0,we.jsx)(sj,{text:e.text,language:e.language},t);if(e.kind==="rule")return(0,we.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${s.border}`,margin:"10px 0"}},t);if(e.kind==="heading"){let n=[15,14,13,12.5,12,12][e.level-1]??12;return(0,we.jsx)("div",{style:{fontSize:n,fontWeight:600,margin:"10px 0 4px"},children:oi(e.content,`${t}-`)},t)}if(e.kind==="quote")return(0,we.jsx)("div",{style:{margin:"6px 0",paddingLeft:10,borderLeft:`2px solid ${s.accent}`,color:s.muted,whiteSpace:"pre-wrap"},children:oi(e.content,`${t}-`)},t);if(e.kind==="list"){let n=e.ordered?"ol":"ul";return(0,we.jsx)(n,{style:{margin:"6px 0",paddingLeft:20},children:e.items.map((r,i)=>(0,we.jsx)("li",{style:{margin:"2px 0"},children:oi(r,`${t}-${String(i)}-`)},`${t}-${String(i)}`))},t)}if(e.kind==="table"){let n=r=>({textAlign:e.align[r]??"left"});return(0,we.jsx)("div",{className:"lc-scroll",style:{overflowX:"auto",margin:"6px 0"},children:(0,we.jsxs)("table",{style:{borderCollapse:"collapse",fontSize:11,width:"100%"},children:[(0,we.jsx)("thead",{children:(0,we.jsx)("tr",{children:e.head.map((r,i)=>(0,we.jsx)("th",{style:{...n(i),padding:"4px 8px",borderBottom:`1px solid ${s.accent}`,color:s.foreground,fontWeight:600,whiteSpace:"nowrap"},children:oi(r,`${t}-h${String(i)}-`)},`${t}-h${String(i)}`))})}),(0,we.jsx)("tbody",{children:e.rows.map((r,i)=>(0,we.jsx)("tr",{children:r.map((o,a)=>(0,we.jsx)("td",{style:{...n(a),padding:"4px 8px",borderBottom:`1px solid ${s.border}`,verticalAlign:"top"},children:oi(o,`${t}-r${String(i)}c${String(a)}-`)},`${t}-r${String(i)}c${String(a)}`))},`${t}-r${String(i)}`))})]})},t)}return(0,we.jsx)("div",{style:{margin:"4px 0",whiteSpace:"pre-wrap"},children:oi(e.content,`${t}-`)},t)}function Pu(e){return(0,we.jsx)(we.Fragment,{children:lw(e.text).map((t,n)=>uj(t,String(n)))})}function dj(e){let t=e.role==="assistant",n=(0,de.jsx)("span",{title:t?"Assistant":"You","aria-label":t?"Assistant":"You",style:{display:"flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:"50%",flexShrink:0,marginTop:2,background:t?s.accentGradient:s.secondaryButtonBackground,color:t?s.accentContrast:s.muted,border:t?"none":`1px solid ${s.border}`},children:t?(0,de.jsx)(T_,{size:12}):(0,de.jsx)(Bu,{size:12})});return(0,de.jsxs)("div",{className:t?"lc-in-left":"lc-in-right",...e.isLatestPrompt===!0?{"data-lc-latest-prompt":"true"}:{},style:{display:"flex",gap:8,margin:"8px 10px",flexDirection:t?"row":"row-reverse",alignItems:"flex-start"},children:[n,(0,de.jsxs)("div",{className:"lc-bubble",style:{maxWidth:"85%",padding:"8px 12px",background:t?s.assistantBubble:s.accentGradient,color:t?s.foreground:s.accentContrast,borderRadius:t?"14px 14px 14px 4px":"14px 14px 4px 14px",boxShadow:t?"none":`0 1px 8px ${s.accentRing}`,...t?{}:{whiteSpace:"pre-wrap"},wordBreak:"break-word",fontFamily:B},children:[e.expertInformed===!0&&(0,de.jsxs)("span",{title:"Written after consulting the expert. These are not Claude's words \u2014 expand the ask_expert block above for those.",style:{display:"inline-flex",alignItems:"center",gap:4,marginBottom:5,fontSize:10,letterSpacing:.2,padding:"1px 6px 1px 4px",borderRadius:8,background:t?s.expertSoft:"rgba(255, 255, 255, 0.18)",color:t?s.expert:s.accentContrast},children:[(0,de.jsx)(rn,{size:11}),"informed by expert"]}),t?(0,de.jsx)(Pu,{text:e.content}):e.content]})]})}var ky="var(--vscode-editor-font-family, monospace)";function fj(e){let[t,n]=(0,_y.useState)(!1),{toolCall:r}=e,i=r.result===void 0,o=r.name==="ask_expert",a=r.isError===!0?s.error:o?s.expert:s.border;return(0,de.jsxs)("div",{className:"lc-in-left",style:{margin:"6px 10px 6px 40px",borderRadius:10,border:`1px solid ${a}`,background:o?s.expertSoft:i?s.accentSoft:"transparent",...o?{boxShadow:`0 0 0 3px ${s.expertSoft}`}:{},overflow:"hidden",transition:"background-color 190ms ease"},children:[(0,de.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":t,title:t?"Hide details":"Show details",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",padding:"6px 10px",background:"transparent",border:"none",color:s.foreground,cursor:"pointer",fontFamily:B,fontSize:12,textAlign:"left"},children:[(0,de.jsx)("span",{style:{display:"flex",color:s.muted,transform:t?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,de.jsx)(Vr,{})}),o&&(0,de.jsx)("span",{title:"Expert consultation \u2014 answered by Claude","aria-label":"Expert consultation, answered by Claude",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,borderRadius:"50%",flexShrink:0,background:s.expertGradient,color:s.expertContrast},children:(0,de.jsx)(rn,{size:11})}),(0,de.jsx)("span",{style:{fontFamily:ky,color:o?s.expert:void 0},children:r.name}),r.why!==void 0&&(0,de.jsx)("span",{title:r.why,style:{color:s.muted,fontFamily:B,fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:r.why}),!o&&e.expertInformed===!0&&(0,de.jsx)("span",{title:"Following expert advice","aria-label":"Following expert advice",style:{display:"flex",color:s.expert},children:(0,de.jsx)(rn,{size:12})}),(0,de.jsx)("span",{title:i?"Running":r.isError===!0?"Failed":"Done","aria-label":i?"Running":r.isError===!0?"Failed":"Done",style:{display:"flex",marginLeft:"auto",color:r.isError===!0?s.error:i?s.muted:"var(--vscode-testing-iconPassed, #3fb950)"},children:i?(0,de.jsx)(C_,{}):r.isError===!0?(0,de.jsx)(Jo,{}):(0,de.jsx)(ii,{})})]}),t&&(0,de.jsxs)("div",{style:{padding:"0 10px 8px",fontSize:12,fontFamily:ky},children:[(0,de.jsx)("div",{style:{color:s.muted,marginBottom:2},children:"Arguments"}),(0,de.jsx)("pre",{style:{margin:"0 0 8px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:r.arguments}),r.result!==void 0&&(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("div",{style:{color:o?s.expert:s.muted,marginBottom:2},children:o?"Claude's answer":"Result"}),(0,de.jsx)("pre",{className:o?"lc-scroll":void 0,style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:300,overflowY:"auto",...o?{borderLeft:`2px solid ${s.expert}`,paddingLeft:8,fontFamily:B,fontSize:12}:{}},children:r.result})]})]})]})}function mj(e){let[t,n]=(0,_y.useState)(!1);return(0,de.jsxs)("div",{className:"lc-in-left",style:{margin:"4px 10px 4px 40px"},children:[(0,de.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":t,title:t?"Hide the reasoning":"Show the reasoning",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,background:"transparent",border:"none",borderRadius:6,color:s.muted,cursor:"pointer",padding:"2px 6px 2px 2px",fontFamily:B,fontSize:11,fontStyle:"italic"},children:[(0,de.jsx)("span",{style:{display:"flex",transform:t?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,de.jsx)(Vr,{})}),(0,de.jsx)("span",{children:e.pending===!0?"Thinking\u2026":"Thought process"})]}),t&&(0,de.jsx)("pre",{style:{margin:"2px 0 0 14px",padding:8,borderLeft:`2px solid ${s.border}`,color:s.muted,fontFamily:ky,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:320,overflowY:"auto"},children:e.content})]})}function wy(e){let t=-1;for(let n=e.messages.length-1;n>=0;n--){let r=e.messages[n];if(r?.kind==="text"&&r.role==="user"){t=n;break}}return(0,de.jsxs)("div",{role:"log","aria-live":"polite",children:[e.messages.map((n,r)=>n.kind==="tool"?(0,de.jsx)(fj,{toolCall:n.toolCall,expertInformed:n.expertInformed},r):n.kind==="reasoning"?(0,de.jsx)(mj,{content:n.content,pending:n.pending},r):(0,de.jsx)(dj,{role:n.role,content:n.content,expertInformed:n.expertInformed,isLatestPrompt:r===t},r)),e.error!==void 0&&(0,de.jsx)("div",{role:"alert",className:"lc-fade-up",style:{padding:"8px 12px",margin:"6px 10px 6px 40px",borderRadius:10,border:`1px solid ${s.error}`,color:s.error,fontFamily:B,fontSize:12},children:e.error})]})}var Ko=P(ie(),1);function uw(e){return(0,Ko.jsxs)("button",{type:"button",onClick:e.onReveal,title:"Scroll back to this message","aria-label":`Your message: ${e.text}. Scroll back to it.`,className:"lc-fade-up",style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%",textAlign:"left",padding:"6px 10px",border:"none",borderBottom:`1px solid ${s.border}`,background:s.background,color:s.muted,cursor:"pointer",fontFamily:B,fontSize:11,flexShrink:0},children:[(0,Ko.jsx)("span",{"aria-hidden":"true",style:{display:"flex",alignItems:"center",justifyContent:"center",width:16,height:16,borderRadius:"50%",flexShrink:0,marginTop:1,background:s.accentSoft,color:s.accent},children:(0,Ko.jsx)(Bu,{size:10})}),(0,Ko.jsx)("span",{style:{flex:1,minWidth:0,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.text})]})}var ai=P(ie(),1);function dw(e){if(e.consultations===0)return null;let t=e.consultations===1?"consultation":"consultations",n=e.unpriced>0?` ${String(e.unpriced)} of them reported no cost, so the total is at least this much.`:"",r=e.usage!==void 0&&e.usage>=.8,i=e.exhausted===!0?s.error:r?s.warning:s.expert;return(0,ai.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 12px",borderTop:`1px solid ${s.border}`,color:s.muted,fontFamily:B,fontSize:11,flexShrink:0},title:`${String(e.consultations)} expert ${t} in this chat.${n}${e.exhausted===!0?" The budget for this chat has been reached \u2014 raise it from the header, or start a new chat.":""} Starting a new chat resets the spend and any override.`,children:[(0,ai.jsx)("span",{style:{display:"flex",color:s.expert},children:(0,ai.jsx)(rn,{size:11})}),(0,ai.jsxs)("span",{children:["Expert:"," ",(0,ai.jsxs)("span",{style:{color:s.foreground,fontVariantNumeric:"tabular-nums"},children:["$",e.usd.toFixed(4)]})," ","this chat"]}),e.usage!==void 0&&(0,ai.jsx)("span",{"aria-hidden":!0,style:{width:46,height:3,borderRadius:2,background:s.border,overflow:"hidden",flexShrink:0},children:(0,ai.jsx)("span",{style:{display:"block",height:"100%",width:`${String(Math.round(e.usage*100))}%`,background:i,transition:"width 240ms ease"}})}),(0,ai.jsxs)("span",{style:{marginLeft:"auto",color:e.exhausted===!0?s.error:void 0},children:[e.exhausted===!0?"budget reached":`${String(e.consultations)} ${t}`,e.unpriced>0?" *":""]})]})}var Dt=P(ie(),1),mw=P(ge(),1);var fw=[{key:"system",label:"System prompt",color:"var(--vscode-charts-blue, #4a90d9)"},{key:"toolDefinitions",label:"Tool definitions",color:"var(--vscode-charts-purple, #b180d7)"},{key:"history",label:"Conversation",color:"var(--vscode-charts-green, #89d185)"},{key:"results",label:"Tool results",color:"var(--vscode-charts-orange, #d18616)"}];function Fu(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function pw(e){let[t,n]=(0,mw.useState)(!1),{usage:r}=e;if(r===void 0||r.total===0)return null;let i=r.contextWindow>0?r.contextWindow:void 0,o=i!==void 0?r.total/i:void 0,a=o!==void 0&&o>.75;return(0,Dt.jsxs)("div",{style:{padding:"4px 12px 6px",borderTop:`1px solid ${s.border}`,fontFamily:B,fontSize:11},children:[(0,Dt.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0,fontFamily:B,fontSize:11,textAlign:"left"},children:[(0,Dt.jsx)("span",{children:t?"\u25BE":"\u25B8"}),(0,Dt.jsxs)("span",{style:{color:a?s.error:s.muted},children:[Fu(r.total),i!==void 0?` / ${Fu(i)}`:""," tokens",r.estimated?" (est.)":""]}),r.cacheHitRate!==void 0&&(0,Dt.jsxs)("span",{style:{marginLeft:"auto"},children:["cache ",Math.round(r.cacheHitRate*100),"%"]})]}),(0,Dt.jsx)("div",{style:{display:"flex",height:4,borderRadius:2,overflow:"hidden",marginTop:4,background:s.border},children:fw.map(l=>{let c=r[l.key],u=r.total>0?c/r.total*100:0;return u<=0?null:(0,Dt.jsx)("div",{title:`${l.label}: ${Fu(c)}`,style:{width:`${u}%`,background:l.color}},l.key)})}),t&&(0,Dt.jsxs)("div",{style:{marginTop:6,color:s.muted},children:[fw.map(l=>(0,Dt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Dt.jsx)("span",{style:{width:8,height:8,borderRadius:2,background:l.color,flexShrink:0}}),(0,Dt.jsx)("span",{children:l.label}),(0,Dt.jsx)("span",{style:{marginLeft:"auto"},children:Fu(r[l.key])})]},l.key)),r.supersededCount>0&&(0,Dt.jsxs)("div",{style:{marginTop:4},children:[r.supersededCount," superseded file read",r.supersededCount===1?"":"s"," dropped"]}),r.compactedCount>0&&(0,Dt.jsxs)("div",{children:[r.compactedCount," earlier message",r.compactedCount===1?"":"s"," summarised"]}),r.estimated&&(0,Dt.jsx)("div",{style:{marginTop:4,fontStyle:"italic"},children:"Estimated from text length \u2014 the provider did not report usage."})]})]})}var qr=P(ie(),1),Ml=P(ge(),1);function hw(e){let[t]=(0,Ml.useState)(()=>Date.now()),[n,r]=(0,Ml.useState)(0);return(0,Ml.useEffect)(()=>{let i=setInterval(()=>r(Math.floor((Date.now()-t)/1e3)),1e3);return()=>clearInterval(i)},[t]),(0,qr.jsxs)("div",{role:"status","aria-live":"polite","aria-label":e.label??"Working",className:"lc-fade-up",style:{display:"flex",alignItems:"center",gap:8,padding:"2px 12px",margin:"4px 10px 4px 40px",color:s.muted,fontFamily:B,fontSize:12},children:[(0,qr.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",gap:3,padding:"6px 9px",borderRadius:"12px 12px 12px 4px",background:s.assistantBubble},children:[0,1,2].map(i=>(0,qr.jsx)("span",{className:"lc-dot",style:{width:5,height:5,borderRadius:"50%",background:e.variant==="expert"?s.expert:s.accent,display:"block"}},i))}),(0,qr.jsx)("span",{style:{fontStyle:"italic"},children:e.label??"Thinking"}),n>=3&&(0,qr.jsxs)("span",{style:{marginLeft:"auto",fontVariantNumeric:"tabular-nums"},children:[n,"s"]})]})}function $y(e){let t=(0,Qo.useRef)(null),[n,r]=(0,Qo.useState)(!1),i=(()=>{for(let u=e.messages.length-1;u>=0;u--){let d=e.messages[u];if(d?.kind==="text"&&d.role==="user")return d.content}})();(0,Qo.useEffect)(()=>{let u=t.current,d=u?.querySelector("[data-lc-latest-prompt]");if(u===null||d===null||d===void 0){r(!1);return}if(typeof IntersectionObserver>"u")return;let m=new IntersectionObserver(p=>{let f=p[0];f!==void 0&&r(!f.isIntersecting)},{root:u,threshold:0});return m.observe(d),()=>m.disconnect()},[e.messages]);let o=()=>{t.current?.querySelector("[data-lc-latest-prompt]")?.scrollIntoView({block:"start",behavior:"smooth"})},a=e.messages[e.messages.length-1],l=a?.kind==="tool"&&a.toolCall.name==="ask_expert"&&a.toolCall.result===void 0,c=(()=>{if(!e.isStreaming||e.pendingApproval!==void 0||e.pendingForm!==void 0)return;let u=e.messages[e.messages.length-1];if(u?.kind==="tool"&&u.toolCall.result===void 0)return l?"Consulting the expert":`Running ${u.toolCall.name}`;if(!(u?.kind==="text"&&u.role==="assistant"&&u.pending===!0)&&!(u?.kind==="reasoning"&&u.pending===!0))return"Thinking"})();return(0,Bt.jsxs)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[n&&i!==void 0&&(0,Bt.jsx)(uw,{text:i,onReveal:o}),(0,Bt.jsxs)("div",{ref:t,className:"lc-scroll",style:{flex:1,minHeight:0,overflowY:"auto",scrollBehavior:"smooth"},children:[(0,Bt.jsx)(wy,{messages:e.messages,error:e.error}),c!==void 0&&(0,Bt.jsx)(hw,{label:c,variant:l?"expert":"default"}),e.pendingApproval!==void 0&&(0,Bt.jsx)(py,{approval:e.pendingApproval,onDecide:e.onDecideApproval,onAlwaysAllow:e.onAlwaysAllow}),e.pendingForm!==void 0&&(0,Bt.jsx)(ew,{form:e.pendingForm,onSubmit:e.onSubmitForm,onDismiss:e.onDismissForm})]}),e.canRollback&&(0,Bt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"6px 10px",borderTop:`1px solid ${s.border}`,color:s.muted,fontSize:11,flexShrink:0},children:[(0,Bt.jsx)("span",{children:"Files were changed this task."}),(0,Bt.jsx)("button",{type:"button",className:G_.button,title:"Undo all changes made during this task","aria-label":"Undo all changes made during this task",style:be("secondary"),onClick:e.onRollback,children:(0,Bt.jsx)(O_,{size:14})})]}),(0,Bt.jsx)(dw,{...e.expertSpend}),(0,Bt.jsx)(pw,{usage:e.usage}),(0,Bt.jsx)(hy,{isStreaming:e.isStreaming,onSend:e.onSend,onCancel:e.onCancel,supportsVision:e.supportsVision,mentionCandidates:e.mentionCandidates,onQueryMentions:e.onQueryMentions,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,expertEnabled:e.expertEnabled,queued:e.queued,onUnqueue:e.onUnqueue,searchConnections:e.searchConnections,activeSearchId:e.activeSearchId,onSelectSearch:e.onSelectSearch})]})}var qe=P(ie(),1),wi=P(ge(),1);function gw(e){let[t,n]=(0,wi.useState)(!1),[r,i]=(0,wi.useState)(String(e.maxSpendUsd)),[o,a]=(0,wi.useState)(String(e.maxConsultations)),l=(0,wi.useRef)(null);if((0,wi.useEffect)(()=>{i(String(e.maxSpendUsd)),a(String(e.maxConsultations))},[e.maxSpendUsd,e.maxConsultations]),(0,wi.useEffect)(()=>{if(!t)return;let x=Z=>{l.current?.contains(Z.target)!==!0&&n(!1)},_=Z=>{Z.key==="Escape"&&n(!1)};return document.addEventListener("mousedown",x),document.addEventListener("keydown",_),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",_)}},[t]),!e.enabled)return null;let c=x=>{let _=Number(x.trim());return Number.isFinite(_)&&_>0?_:0},u=()=>{e.onSetLimits({maxSpendUsd:c(r),maxConsultations:Math.round(c(o))}),n(!1)},d=e.maxSpendUsd>0||e.maxConsultations>0,m=e.exhausted===!0?"Raise budget":d?[e.maxSpendUsd>0?`$${e.maxSpendUsd.toFixed(2)}`:void 0,e.maxConsultations>0?`${String(e.maxConsultations)}\xD7`:void 0].filter(x=>x!==void 0).join(" / "):"Budget",p=e.usage!==void 0&&e.usage>=.8,f=e.exhausted===!0?s.error:p?s.warning:void 0;return(0,qe.jsxs)("div",{ref:l,style:{position:"relative",display:"flex",fontFamily:B},children:[(0,qe.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":t,style:{...C(),display:"flex",alignItems:"center",gap:4,fontSize:11,padding:"2px 7px",...f!==void 0?{borderColor:f,color:f}:{}},title:e.exhausted===!0?"The expert budget for this chat is spent. Raise it here and the next consultation goes ahead \u2014 no need to start a new chat.":`Expert budget for this chat${e.overridden?" (overriding Settings)":""}. Spent so far: $${e.usd.toFixed(4)} over ${String(e.consultations)} consultation${e.consultations===1?"":"s"}.`,onClick:()=>n(x=>!x),children:[(0,qe.jsx)("span",{style:{display:"flex",color:f??s.expert},children:(0,qe.jsx)(rn,{size:11})}),(0,qe.jsx)("span",{children:m}),e.overridden&&e.exhausted!==!0&&(0,qe.jsx)("span",{"aria-hidden":!0,children:"\u2022"})]}),t&&(0,qe.jsxs)("div",{role:"dialog","aria-label":"Expert budget for this chat",style:{position:"absolute",top:"calc(100% + 4px)",left:0,zIndex:40,width:236,padding:8,borderRadius:4,border:`1px solid ${s.border}`,background:s.inputBackground,boxShadow:"0 4px 14px rgba(0, 0, 0, 0.32)",color:s.foreground,fontSize:11,display:"flex",flexDirection:"column",gap:6},children:[(0,qe.jsx)("strong",{style:{fontSize:11},children:"Expert budget \u2014 this chat"}),(0,qe.jsxs)("span",{style:{color:s.muted},children:["Spent $",e.usd.toFixed(4)," over ",e.consultations," ",e.consultations===1?"consultation":"consultations","."]}),e.estimate!==void 0&&(0,qe.jsxs)("div",{style:{padding:"4px 6px",borderRadius:3,border:`1px solid ${s.border}`,display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,qe.jsx)("span",{style:{color:s.expert},children:"Expert estimates"}),(0,qe.jsx)("span",{style:{color:s.foreground},children:[e.estimate.usd===void 0?void 0:`$${e.estimate.usd.toFixed(2)}`,e.estimate.consultations===void 0?void 0:`${String(e.estimate.consultations)} consultations`].filter(x=>x!==void 0).join(" over ")}),(0,qe.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Fill the fields below with the estimate. A little headroom is added, because an estimate that is exactly right still stops you at the last review.",onClick:()=>{e.estimate?.usd!==void 0&&i((e.estimate.usd*1.25).toFixed(2)),e.estimate?.consultations!==void 0&&a(String(Math.ceil(e.estimate.consultations*1.25)))},children:"Use it"})]}),(0,qe.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,qe.jsx)("span",{style:{width:66,color:s.muted},children:"Stop after"}),(0,qe.jsx)("input",{type:"number",min:"0",step:"0.25",value:r,"aria-label":"Maximum spend for this chat, in dollars",onChange:x=>i(x.target.value),style:{...G(),flex:1,fontSize:11,padding:"2px 4px"}}),(0,qe.jsx)("span",{style:{color:s.muted},children:"dollars"})]}),(0,qe.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,qe.jsx)("span",{style:{width:66,color:s.muted},children:"or after"}),(0,qe.jsx)("input",{type:"number",min:"0",step:"1",value:o,"aria-label":"Maximum consultations for this chat",onChange:x=>a(x.target.value),style:{...G(),flex:1,fontSize:11,padding:"2px 4px"}}),(0,qe.jsx)("span",{style:{color:s.muted},children:"calls"})]}),(0,qe.jsx)("span",{style:{color:s.muted},children:"0 means no limit. Applies to the next consultation \u2014 a new chat goes back to the default from Settings."}),(0,qe.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,qe.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"2px 8px"},onClick:u,children:"Apply"}),e.overridden&&(0,qe.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"2px 8px"},title:"Go back to the limit configured in Settings \u2192 Expert",onClick:()=>{e.onSetLimits({}),n(!1)},children:"Use the default"})]})]})]})}var vw=P(ie(),1);function zy(e){let t=Pf(e.modeId);return(0,vw.jsx)(Ve,{compact:!0,value:t.id,disabled:e.disabled,title:t.description,ariaLabel:"Mode",onChange:e.onChange,options:Jc.map(n=>({value:n.id,label:n.name,...n.requiresExpert===!0&&!e.expertAvailable?{disabled:!0,detail:"needs the expert"}:{}}))})}var mt=P(ie(),1);var yw=P(ge(),1);function bw(e){let[t,n]=(0,yw.useState)(0),r=nr[t]??nr[0],i=t===0,o=t===nr.length-1;return(0,mt.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,fontFamily:B,fontSize:13,color:s.foreground},children:[(0,mt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderBottom:`1px solid ${s.border}`,flexShrink:0},children:[(0,mt.jsx)("strong",{style:{fontSize:13},children:r.title}),(0,mt.jsxs)("span",{style:{marginLeft:"auto",color:s.muted,fontSize:11},children:[t+1," of ",nr.length]}),(0,mt.jsx)("button",{type:"button",style:{...C(),fontSize:11},onClick:e.onClose,children:"Close"})]}),(0,mt.jsxs)("div",{className:"lc-scroll",style:{flex:1,minHeight:0,overflowY:"auto",padding:12},children:[e.mediaBase!==void 0&&(0,mt.jsxs)("picture",{children:[(0,mt.jsx)("source",{media:"(prefers-color-scheme: dark)",srcSet:`${e.mediaBase}/${r.id}-dark.svg`}),(0,mt.jsx)("img",{src:`${e.mediaBase}/${r.id}-light.svg`,alt:r.altText,style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",borderRadius:6,border:`1px solid ${s.border}`,marginBottom:12}})]}),r.body.map((a,l)=>(0,mt.jsx)("div",{style:{marginBottom:10,lineHeight:1.5},children:(0,mt.jsx)(Pu,{text:a})},l)),r.tab!==void 0&&(0,mt.jsxs)("button",{type:"button",style:{...me(!1),marginTop:4},onClick:()=>e.onOpenTab(r.tab),children:["Open the ",r.tab[0]?.toUpperCase(),r.tab.slice(1)," tab"]}),r.tab===void 0&&r.opensPanel===!0&&(0,mt.jsx)("button",{type:"button",style:{...C(),marginTop:4},onClick:e.onClose,children:"Back to the chat"})]}),(0,mt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderTop:`1px solid ${s.border}`,flexShrink:0},children:[(0,mt.jsx)("button",{type:"button",style:C(),disabled:i,onClick:()=>n(a=>Math.max(0,a-1)),children:"Back"}),(0,mt.jsx)("div",{style:{display:"flex",gap:4,flex:1,justifyContent:"center",flexWrap:"wrap"},children:nr.map((a,l)=>(0,mt.jsx)("button",{type:"button","aria-label":a.title,title:a.title,onClick:()=>n(l),style:{width:7,height:7,padding:0,borderRadius:"50%",border:"none",cursor:"pointer",background:l===t?s.accent:s.border}},a.id))}),o?(0,mt.jsx)("button",{type:"button",style:me(!1),onClick:e.onClose,children:"Done"}):(0,mt.jsx)("button",{type:"button",style:me(!1),onClick:()=>n(a=>Math.min(nr.length-1,a+1)),children:"Next"})]})]})}var ut=P(ie(),1),Wu=P(ge(),1);var se=P(ie(),1);var Wo=P(ge(),1);var Ty="var(--vscode-editor-font-family, monospace)",pj=[{group:"read",label:"Reading files",description:"read_file, list_files, search_files"},{group:"edit",label:"Editing files",description:"write_to_file, apply_diff"},{group:"command",label:"Running commands",description:"execute_command \u2014 the broadest grant here"},{group:"mcp",label:"MCP tools",description:"Tools provided by external MCP servers"}];function hj(e){return(0,se.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",marginBottom:10,cursor:"pointer"},children:[(0,se.jsx)("input",{type:"checkbox",checked:e.checked,onChange:t=>e.onChange(t.target.checked),style:{marginTop:2}}),(0,se.jsxs)("span",{children:[(0,se.jsx)("span",{style:{display:"block",fontSize:13},children:e.label}),(0,se.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:e.description})]})]})}function xw(e){return(0,se.jsxs)("div",{style:{marginTop:16},children:[(0,se.jsx)("label",{style:V(),children:e.title}),e.entries.length===0?(0,se.jsx)("p",{style:{color:s.muted,fontSize:12,margin:0},children:e.empty}):e.entries.map(t=>(0,se.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 0",borderBottom:`1px solid ${s.border}`},children:[(0,se.jsx)("code",{style:{flex:1,fontFamily:Ty,fontSize:12,wordBreak:"break-all"},children:t}),(0,se.jsx)("button",{type:"button",title:"Revoke this permission","aria-label":"Revoke this permission",style:{...be("secondary"),color:s.error},onClick:()=>e.onRevoke(t),children:(0,se.jsx)(Et,{})})]},t))]})}function Cy(e){let t=e.approvals.autoApprove??{},[n,r]=(0,Wo.useState)(String(e.maxIterations));(0,Wo.useEffect)(()=>r(String(e.maxIterations)),[e.maxIterations]);let i=Number.parseInt(n,10),o=Number.isFinite(i)&&i>=1&&i<=500;return(0,se.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B},children:[(0,se.jsx)("h3",{style:{margin:"0 0 4px",color:s.foreground},children:"Approvals"}),(0,se.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0,marginBottom:12},children:"These apply to this workspace only, and are stored outside it \u2014 a repository cannot grant itself permissions."}),(0,se.jsxs)("div",{style:{marginBottom:16,paddingBottom:12,borderBottom:`1px solid ${s.border}`},children:[(0,se.jsx)("label",{htmlFor:"lc-max-steps",style:V(),children:"Maximum steps per message"}),(0,se.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,se.jsx)("input",{id:"lc-max-steps",type:"number",min:1,max:500,value:n,onChange:a=>r(a.target.value),style:{...G(),width:110,flex:"none"}}),(0,se.jsx)("button",{type:"button",style:C(),disabled:!o||i===e.maxIterations,onClick:()=>e.onSetMaxIterations(i),children:"Save"}),!o&&(0,se.jsx)("span",{style:{fontSize:11,color:s.error},children:"Must be between 1 and 500."})]}),(0,se.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:4},children:"How many tool calls the assistant may make in reply to one message. The limit exists so a model looping on a failing edit stops costing money \u2014 not to cut short real work. Hitting it loses nothing: send another message and it carries on. Raise it for long refactors; lower it if you want to stay closer to what it is doing."})]}),(0,se.jsx)("label",{style:V(),children:"Skip the prompt for\u2026"}),pj.map(a=>(0,se.jsx)(hj,{checked:t[a.group]===!0,label:a.label,description:a.description,onChange:l=>e.onSetAutoApprove(a.group,l)},a.group)),(0,se.jsx)(xw,{title:"Always-allowed tools",empty:"None. Use \u201CAlways allow\u201D on an approval prompt to add one.",entries:e.approvals.allowedTools??[],onRevoke:e.onRevokeTool}),(0,se.jsx)(xw,{title:"Always-allowed commands (exact match)",empty:"None. Use \u201CAlways allow this command\u201D on a command prompt to add one.",entries:e.approvals.allowedCommands??[],onRevoke:e.onRevokeCommand}),(0,se.jsxs)("p",{style:{color:s.muted,fontSize:11},children:["A command is matched byte-for-byte. Allowing ",(0,se.jsx)("code",{style:{fontFamily:Ty},children:"npm test"})," does not allow ",(0,se.jsx)("code",{style:{fontFamily:Ty},children:"npm test && something-else"}),"."]}),(0,se.jsx)(gj,{roots:e.readRoots,onSave:e.onSetReadRoots})]})}function gj(e){let[t,n]=(0,Wo.useState)(e.roots);(0,Wo.useEffect)(()=>n(e.roots),[e.roots]);let r=t.join("\0")!==e.roots.join("\0");return(0,se.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,se.jsx)("span",{style:V(),children:"Folders it may read"}),(0,se.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["Everything is confined to this workspace by default. Add a folder here to let the assistant read files elsewhere \u2014 a log directory, or a network share such as"," ",(0,se.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:String.raw`\server\logs`}),". It can ",(0,se.jsx)("strong",{children:"read"})," these, never write to them: edits stay in the workspace, where a checkpoint can undo them."]}),t.map((i,o)=>(0,se.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:6},children:[(0,se.jsx)("input",{type:"text",value:i,spellCheck:!1,"aria-label":`Readable folder ${o+1}`,placeholder:String.raw`\server\share\logs`,onChange:a=>n(l=>l.map((c,u)=>u===o?a.target.value:c)),style:{...G(),fontFamily:"var(--vscode-editor-font-family, monospace)"}}),(0,se.jsx)("button",{type:"button",title:"Remove this folder","aria-label":"Remove this folder",style:be("secondary"),onClick:()=>n(a=>a.filter((l,c)=>c!==o)),children:(0,se.jsx)(Et,{})})]},o)),(0,se.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,se.jsx)("button",{type:"button",style:C(),onClick:()=>n(i=>[...i,""]),children:"Add a folder"}),(0,se.jsx)("button",{type:"button",style:C(),disabled:!r,onClick:()=>e.onSave(t.map(i=>i.trim()).filter(i=>i.length>0)),children:r?"Save folders":"Saved"})]})]})}var J=P(ie(),1),vn=P(ge(),1);var K=P(ie(),1);var rr=P(ge(),1);var $i=P(ie(),1);var vj="var(--vscode-editor-font-family, monospace)";function gn(e){let t=e.browse;return(0,$i.jsxs)("div",{style:{marginBottom:10},children:[(0,$i.jsx)("label",{htmlFor:e.id,style:V(),children:e.label}),(0,$i.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,$i.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:n=>e.onChange(n.target.value),style:{...G(),fontFamily:vj,...e.error!==void 0?{borderColor:s.error}:{}}}),t!==void 0&&e.onBrowse!==void 0&&(0,$i.jsx)("button",{type:"button",style:C(),title:t.kind==="folder"?"Choose a folder":"Choose a file",onClick:()=>e.onBrowse?.(t),children:"Browse"}),e.children]}),e.error!==void 0?(0,$i.jsx)("span",{style:Mt(),children:e.error}):e.hint!==void 0&&(0,$i.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:e.hint})]})}var Bl="var(--vscode-editor-font-family, monospace)",Sw=[{value:"python",label:"Python (venv)",transport:"stdio",blurb:"A script run by the interpreter inside a virtualenv. Light Code starts the process and talks to it over stdio."},{value:"npx",label:"npm package",transport:"stdio",blurb:"Fetched and run through npx. Light Code starts the process and talks to it over stdio."},{value:"custom",label:"Command",transport:"stdio",blurb:"Any executable, with arguments you supply. Light Code starts the process and talks to it over stdio."},{value:"http",label:"HTTP",transport:"Streamable HTTP",blurb:"A server already running somewhere. Light Code connects to it rather than starting it."}];function Vu(e){return(0,K.jsxs)("div",{style:{marginBottom:10},children:[(0,K.jsx)("label",{htmlFor:e.id,style:V(),children:e.label}),(0,K.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:t=>e.onChange(t.target.value),style:{...G(),...e.mono===!0?{fontFamily:Bl}:{},...e.error!==void 0?{borderColor:s.error}:{}}}),e.error!==void 0?(0,K.jsx)("span",{style:Mt(),children:e.error}):e.hint!==void 0&&(0,K.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:e.hint})]})}function kw(e){let[t,n]=(0,rr.useState)(()=>Object.entries(e.pairs)),r=i=>{n(i),e.onChange(Object.fromEntries(i.filter(([o])=>o.trim().length>0)))};return(0,K.jsxs)("div",{style:{marginBottom:10},children:[(0,K.jsx)("label",{style:V(),children:e.label}),t.map(([i,o],a)=>(0,K.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:4},children:[(0,K.jsx)("input",{"aria-label":`${e.label} name ${a+1}`,value:i,spellCheck:!1,placeholder:"NAME",onChange:l=>r(t.map((c,u)=>u===a?[l.target.value,c[1]]:c)),style:{...G(),fontFamily:Bl,flex:1}}),(0,K.jsx)("input",{"aria-label":`${e.label} value ${a+1}`,value:o,spellCheck:!1,placeholder:"value",onChange:l=>r(t.map((c,u)=>u===a?[c[0],l.target.value]:c)),style:{...G(),fontFamily:Bl,flex:2}}),(0,K.jsx)("button",{type:"button","aria-label":`Remove ${i.length>0?i:`row ${a+1}`}`,style:be("ghost"),onClick:()=>r(t.filter((l,c)=>c!==a)),children:(0,K.jsx)(Et,{})})]},a)),(0,K.jsx)("button",{type:"button",style:C(),onClick:()=>n([...t,["",""]]),children:"Add"}),(0,K.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:4},children:e.hint})]})}function _w(e){let[t,n]=(0,rr.useState)(e.initialName),[r,i]=(0,rr.useState)(()=>e.initialConfig!==void 0?qv(e.initialConfig):jl),[o,a]=(0,rr.useState)(!1);(0,rr.useEffect)(()=>{let _=e.probe?.interpreter;_!==void 0&&i(Z=>({...Z,interpreter:_,venvDir:e.probe?.venvDir??Z.venvDir}))},[e.probe]),(0,rr.useEffect)(()=>{let _=e.pickedPath;if(_===void 0)return;let Z={"mcp.script":"script","mcp.venvDir":"venvDir","mcp.interpreter":"interpreter","mcp.cwd":"cwd"}[_.purpose];Z!==void 0&&i(g=>({...g,[Z]:_.path}))},[e.pickedPath]);let l=Hv(t,r),c=t.trim()!==e.initialName&&e.existingNames.includes(t.trim())?"A server with this name already exists.":void 0,u=l.name??c,d=Object.keys(l).length>0||c!==void 0,m=_=>o?l[_]:void 0,p=_=>i({...r,..._}),f=Sw.find(_=>_.value===r.kind),x=(()=>{let _=Ou(r,e.platform);return"url"in _?_.url:[_.command,..._.args??[]].join(" ")})();return(0,K.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B},children:[(0,K.jsx)("h3",{style:{margin:"0 0 12px",color:s.foreground},children:e.initialName.length===0?"Add MCP server":`Edit ${e.initialName}`}),(0,K.jsx)(Vu,{id:"lc-mcp-name",label:"Name",value:t,placeholder:"filesystem",hint:"Prefixes every tool this server exposes, e.g. filesystem__read_file.",...o&&u!==void 0?{error:u}:{},onChange:n}),(0,K.jsx)("label",{style:V(),children:"Type"}),(0,K.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:4},children:Sw.map(_=>{let Z=_.value===r.kind;return(0,K.jsx)("button",{type:"button",title:`${_.blurb} Transport: ${_.transport}.`,onClick:()=>p({kind:_.value}),style:{padding:"3px 10px",fontFamily:B,fontSize:11,borderRadius:3,cursor:"pointer",background:Z?s.accent:"transparent",color:Z?s.buttonForeground:s.muted,border:`1px solid ${Z?s.accent:s.border}`},children:_.label},_.value)})}),(0,K.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 12px"},children:f?.blurb}),r.kind==="python"&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(gn,{id:"lc-mcp-script",label:"Server script",value:r.script,placeholder:e.platform==="win32"?"C:\\work\\my-server\\server.py":"/home/me/my-server/server.py",hint:"Your FastMCP entry point. Pick this first \u2014 the virtualenv beside it is found automatically.",browse:{purpose:"mcp.script",kind:"file",extensions:["py"]},onBrowse:e.onBrowse,...m("script")!==void 0?{error:m("script")}:{},onChange:_=>p({script:_})}),(0,K.jsx)(gn,{id:"lc-mcp-venv",label:"Virtualenv folder",value:r.venvDir,placeholder:e.platform==="win32"?"C:\\work\\my-server\\.venv":"/home/me/my-server/.venv",hint:"Leave blank and press Detect to search beside the script.",browse:{purpose:"mcp.venvDir",kind:"folder"},onBrowse:e.onBrowse,...m("venvDir")!==void 0?{error:m("venvDir")}:{},onChange:_=>p({venvDir:_}),children:(0,K.jsx)("button",{type:"button",style:C(),title:"Look on disk for the interpreter, or for a virtualenv beside the script",onClick:()=>e.onDetect(r.venvDir,r.script),children:"Detect"})}),e.probe!==void 0&&(0,K.jsx)("div",{style:{fontSize:11,marginBottom:8,color:e.probe.interpreter!==void 0?s.muted:s.error},children:e.probe.detail}),(0,K.jsx)(gn,{id:"lc-mcp-interpreter",label:"Python interpreter",value:r.interpreter,placeholder:r.venvDir.trim().length>0?ju(r.venvDir.trim(),e.platform):e.platform==="win32"?"python.exe":"python3",hint:"Filled in by Detect. Override it for a conda environment, a system Python, or any layout detection does not recognise \u2014 this is the executable that actually runs.",browse:{purpose:"mcp.interpreter",kind:"file"},onBrowse:e.onBrowse,onChange:_=>p({interpreter:_})})]}),r.kind==="npx"&&(0,K.jsx)(Vu,{id:"lc-mcp-package",label:"Package",value:r.packageName,mono:!0,placeholder:"@modelcontextprotocol/server-filesystem",hint:"Run with -y so it installs without waiting for a confirmation nobody can answer. It is fetched from the network on first use.",...m("packageName")!==void 0?{error:m("packageName")}:{},onChange:_=>p({packageName:_})}),r.kind==="custom"&&(0,K.jsx)(Vu,{id:"lc-mcp-command",label:"Command",value:r.command,mono:!0,placeholder:"docker",hint:"An executable on PATH, or an absolute path to one.",...m("command")!==void 0?{error:m("command")}:{},onChange:_=>p({command:_})}),r.kind==="http"&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Vu,{id:"lc-mcp-url",label:"URL",value:r.url,mono:!0,placeholder:"https://mcp.internal/mcp",...m("url")!==void 0?{error:m("url")}:{},onChange:_=>p({url:_})}),(0,K.jsx)(kw,{idPrefix:"lc-mcp-header",label:"Headers",hint:"Use ${secret:NAME} for a token \u2014 it is read from secret storage at connect time and never written to the config file.",pairs:r.headers,onChange:_=>p({headers:_})})]}),r.kind!=="http"&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)("div",{style:{marginBottom:10},children:[(0,K.jsx)("label",{htmlFor:"lc-mcp-args",style:V(),children:"Arguments"}),(0,K.jsx)("textarea",{id:"lc-mcp-args",value:r.args.join(`
89
+ `),n=[],r=0;for(;r<t.length;){let i=t[r]??"",o=Nv.exec(i);if(o!==null){let d=o[1]??"```",m=[];for(r+=1;r<t.length;){let h=t[r]??"",f=Nv.exec(h);if(f!==null&&(f[1]??"").length>=d.length&&(f[2]??"")==="")break;m.push(h),r+=1}r+=1,n.push({kind:"code",text:m.join(`
90
+ `),...o[2]!==void 0?{language:o[2]}:{}});continue}if(i.trim().length===0){r+=1;continue}if(Dw.test(i)){n.push({kind:"rule"}),r+=1;continue}let a=Iw.exec(i);if(a!==null){n.push({kind:"heading",level:(a[1]??"#").length,content:di(a[2]??"")}),r+=1;continue}let l=t[r+1];if(Zv.test(i)&&l!==void 0&&Aw.test(l)){let d=x=>x.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(k=>k.trim()),m=d(i).map(x=>di(x)),h=d(l).map(x=>{let k=x.startsWith(":"),N=x.endsWith(":");if(k&&N)return"center";if(N)return"right";if(k)return"left"});r+=2;let f=[];for(;r<t.length;){let x=t[r]??"";if(x.trim().length===0||!Zv.test(x))break;f.push(d(x).map(k=>di(k))),r+=1}n.push({kind:"table",head:m,rows:f,align:h});continue}if(Bv.test(i)){let d=[];for(;r<t.length;){let m=Bv.exec(t[r]??"");if(m===null)break;d.push(m[1]??""),r+=1}n.push({kind:"quote",content:di(d.join(`
91
+ `))});continue}let s=Mv.test(i);if(s||Rv.test(i)){let d=[];for(;r<t.length;){let m=t[r]??"",h=(s?Mv:Rv).exec(m);if(h===null)break;d.push(di(h[1]??"")),r+=1}n.push({kind:"list",ordered:s,items:d});continue}let u=[];for(;r<t.length;){let d=t[r]??"";if(d.trim().length===0||Nv.test(d)||Iw.test(d)||Dw.test(d)||Bv.test(d)||Rv.test(d)||Mv.test(d)||Zv.test(d)&&Aw.test(t[r+1]??""))break;u.push(d),r+=1}n.push({kind:"paragraph",content:di(u.join(`
92
+ `))})}return n}var Lv=String.raw`\S(?:[\s\S]*?\S)?`,Mj=String.raw`[^()\s]*(?:\([^()\s]*\)[^()\s]*)*`,Bj=new RegExp([String.raw`(`+"`"+String.raw`+)([\s\S]*?)\1`,String.raw`\[([^\]]*)\]\((`+Mj+String.raw`)\)`,String.raw`(\*\*|__)(`+Lv+String.raw`)\5`,String.raw`(~~)(`+Lv+String.raw`)\7`,String.raw`(\*|_)(`+Lv+String.raw`)\9`].join("|"));function di(e){let t=[],n=e;for(;n.length>0;){let r=Bj.exec(n);if(r===null||r.index===void 0)break;if(r.index>0&&t.push({kind:"text",text:n.slice(0,r.index)}),r[1]!==void 0)t.push({kind:"code",text:(r[2]??"").replace(/^ (.*) $/,"$1")});else if(r[4]!==void 0){let i=r[4],o=di(r[3]??"");t.push(Rj(i)?{kind:"link",href:i,children:o}:{kind:"text",text:r[0]})}else r[5]!==void 0?t.push({kind:"strong",children:di(r[6]??"")}):r[7]!==void 0?t.push({kind:"strike",children:di(r[8]??"")}):r[9]!==void 0&&t.push({kind:"em",children:di(r[10]??"")});n=n.slice(r.index+r[0].length)}return n.length>0&&t.push({kind:"text",text:n}),t}var Uw="var(--vscode-editor-font-family, monospace)";function fi(e,t=""){return e.map((n,r)=>{let i=`${t}${String(r)}`;return n.kind==="text"?(0,ze.jsx)("span",{children:n.text},i):n.kind==="code"?(0,ze.jsx)("code",{style:{fontFamily:Uw,fontSize:"0.92em",padding:"1px 4px",borderRadius:4,background:c.accentSoft,wordBreak:"break-word"},children:n.text},i):n.kind==="strong"?(0,ze.jsx)("strong",{children:fi(n.children,`${i}-`)},i):n.kind==="em"?(0,ze.jsx)("em",{children:fi(n.children,`${i}-`)},i):n.kind==="strike"?(0,ze.jsx)("span",{style:{textDecoration:"line-through",opacity:.75},children:fi(n.children,`${i}-`)},i):(0,ze.jsx)("a",{href:n.href,rel:"noopener noreferrer",title:n.href,style:{color:c.accent,textDecoration:"underline"},children:fi(n.children,`${i}-`)},i)})}function Zj(e){let[t,n]=(0,Ow.useState)(!1),r=()=>{navigator.clipboard?.writeText(e.text).then(()=>{n(!0),setTimeout(()=>n(!1),1500)})};return(0,ze.jsxs)("div",{style:{position:"relative",margin:"6px 0",border:`1px solid ${c.border}`,borderRadius:8,background:c.inputBackground},children:[(0,ze.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 6px 3px 10px",borderBottom:`1px solid ${c.border}`,color:c.muted,fontFamily:P,fontSize:10},children:[(0,ze.jsx)("span",{children:e.language??"code"}),(0,ze.jsx)("button",{type:"button",title:t?"Copied":"Copy","aria-label":t?"Copied":"Copy code",onClick:r,style:{marginLeft:"auto",display:"inline-flex",alignItems:"center",gap:4,padding:"2px 6px",border:"none",borderRadius:6,background:"transparent",color:t?c.accent:c.muted,cursor:"pointer",fontSize:10},children:t?(0,ze.jsx)(ui,{size:11}):(0,ze.jsx)(fr,{size:11})})]}),(0,ze.jsx)("pre",{className:"lc-scroll",style:{margin:0,padding:"8px 10px",overflowX:"auto",fontFamily:Uw,fontSize:11,lineHeight:1.5},children:Wl(e.text,e.language).map((i,o)=>{let a=Ql[i.kind];return a===void 0?(0,ze.jsx)("span",{children:i.text},o):(0,ze.jsx)("span",{style:{color:a},children:i.text},o)})})]})}function Lj(e,t){if(e.kind==="code")return(0,ze.jsx)(Zj,{text:e.text,language:e.language},t);if(e.kind==="rule")return(0,ze.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${c.border}`,margin:"10px 0"}},t);if(e.kind==="heading"){let n=[15,14,13,12.5,12,12][e.level-1]??12;return(0,ze.jsx)("div",{style:{fontSize:n,fontWeight:600,margin:"10px 0 4px"},children:fi(e.content,`${t}-`)},t)}if(e.kind==="quote")return(0,ze.jsx)("div",{style:{margin:"6px 0",paddingLeft:10,borderLeft:`2px solid ${c.accent}`,color:c.muted,whiteSpace:"pre-wrap"},children:fi(e.content,`${t}-`)},t);if(e.kind==="list"){let n=e.ordered?"ol":"ul";return(0,ze.jsx)(n,{style:{margin:"6px 0",paddingLeft:20},children:e.items.map((r,i)=>(0,ze.jsx)("li",{style:{margin:"2px 0"},children:fi(r,`${t}-${String(i)}-`)},`${t}-${String(i)}`))},t)}if(e.kind==="table"){let n=r=>({textAlign:e.align[r]??"left"});return(0,ze.jsx)("div",{className:"lc-scroll",style:{overflowX:"auto",margin:"6px 0"},children:(0,ze.jsxs)("table",{style:{borderCollapse:"collapse",fontSize:11,width:"100%"},children:[(0,ze.jsx)("thead",{children:(0,ze.jsx)("tr",{children:e.head.map((r,i)=>(0,ze.jsx)("th",{style:{...n(i),padding:"4px 8px",borderBottom:`1px solid ${c.accent}`,color:c.foreground,fontWeight:600,whiteSpace:"nowrap"},children:fi(r,`${t}-h${String(i)}-`)},`${t}-h${String(i)}`))})}),(0,ze.jsx)("tbody",{children:e.rows.map((r,i)=>(0,ze.jsx)("tr",{children:r.map((o,a)=>(0,ze.jsx)("td",{style:{...n(a),padding:"4px 8px",borderBottom:`1px solid ${c.border}`,verticalAlign:"top"},children:fi(o,`${t}-r${String(i)}c${String(a)}-`)},`${t}-r${String(i)}c${String(a)}`))},`${t}-r${String(i)}`))})]})},t)}return(0,ze.jsx)("div",{style:{margin:"4px 0",whiteSpace:"pre-wrap"},children:fi(e.content,`${t}-`)},t)}function ld(e){return(0,ze.jsx)(ze.Fragment,{children:jw(e.text).map((t,n)=>Lj(t,String(n)))})}function Pj(e){let t=e.role==="assistant",n=(0,pe.jsx)("span",{title:t?"Assistant":"You","aria-label":t?"Assistant":"You",style:{display:"flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:"50%",flexShrink:0,marginTop:2,background:t?c.accentGradient:c.secondaryButtonBackground,color:t?c.accentContrast:c.muted,border:t?"none":`1px solid ${c.border}`},children:t?(0,pe.jsx)(K_,{size:12}):(0,pe.jsx)(rd,{size:12})});return(0,pe.jsxs)("div",{className:t?"lc-in-left":"lc-in-right",...e.isLatestPrompt===!0?{"data-lc-latest-prompt":"true"}:{},style:{display:"flex",gap:8,margin:"8px 10px",flexDirection:t?"row":"row-reverse",alignItems:"flex-start"},children:[n,(0,pe.jsxs)("div",{className:"lc-bubble",style:{maxWidth:"85%",padding:"8px 12px",background:t?c.assistantBubble:c.accentGradient,color:t?c.foreground:c.accentContrast,borderRadius:t?"14px 14px 14px 4px":"14px 14px 4px 14px",boxShadow:t?"none":`0 1px 8px ${c.accentRing}`,...t?{}:{whiteSpace:"pre-wrap"},wordBreak:"break-word",fontFamily:P},children:[e.expertInformed===!0&&(0,pe.jsxs)("span",{title:"Written after consulting the expert. These are not Claude's words \u2014 expand the ask_expert block above for those.",style:{display:"inline-flex",alignItems:"center",gap:4,marginBottom:5,fontSize:10,letterSpacing:.2,padding:"1px 6px 1px 4px",borderRadius:8,background:t?c.expertSoft:"rgba(255, 255, 255, 0.18)",color:t?c.expert:c.accentContrast},children:[(0,pe.jsx)(ln,{size:11}),"informed by expert"]}),t?(0,pe.jsx)(ld,{text:e.content}):e.content]})]})}var Pv="var(--vscode-editor-font-family, monospace)";function Fj(e){let[t,n]=(0,Fv.useState)(!1),{toolCall:r}=e,i=r.result===void 0,o=r.name==="ask_expert",a=r.isError===!0?c.error:o?c.expert:c.border;return(0,pe.jsxs)("div",{className:"lc-in-left",style:{margin:"6px 10px 6px 40px",borderRadius:10,border:`1px solid ${a}`,background:o?c.expertSoft:i?c.accentSoft:"transparent",...o?{boxShadow:`0 0 0 3px ${c.expertSoft}`}:{},overflow:"hidden",transition:"background-color 190ms ease"},children:[(0,pe.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":t,title:t?"Hide details":"Show details",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",padding:"6px 10px",background:"transparent",border:"none",color:c.foreground,cursor:"pointer",fontFamily:P,fontSize:12,textAlign:"left"},children:[(0,pe.jsx)("span",{style:{display:"flex",color:c.muted,transform:t?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,pe.jsx)(io,{})}),o&&(0,pe.jsx)("span",{title:"Expert consultation \u2014 answered by Claude","aria-label":"Expert consultation, answered by Claude",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,borderRadius:"50%",flexShrink:0,background:c.expertGradient,color:c.expertContrast},children:(0,pe.jsx)(ln,{size:11})}),(0,pe.jsx)("span",{style:{fontFamily:Pv,color:o?c.expert:void 0},children:r.name}),r.why!==void 0&&(0,pe.jsx)("span",{title:r.why,style:{color:c.muted,fontFamily:P,fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:r.why}),!o&&e.expertInformed===!0&&(0,pe.jsx)("span",{title:"Following expert advice","aria-label":"Following expert advice",style:{display:"flex",color:c.expert},children:(0,pe.jsx)(ln,{size:12})}),(0,pe.jsx)("span",{title:i?"Running":r.isError===!0?"Failed":"Done","aria-label":i?"Running":r.isError===!0?"Failed":"Done",style:{display:"flex",marginLeft:"auto",color:r.isError===!0?c.error:i?c.muted:"var(--vscode-testing-iconPassed, #3fb950)"},children:i?(0,pe.jsx)(W_,{}):r.isError===!0?(0,pe.jsx)(ca,{}):(0,pe.jsx)(ui,{})})]}),t&&(0,pe.jsxs)("div",{style:{padding:"0 10px 8px",fontSize:12,fontFamily:Pv},children:[(0,pe.jsx)("div",{style:{color:c.muted,marginBottom:2},children:"Arguments"}),(0,pe.jsx)("pre",{style:{margin:"0 0 8px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:r.arguments}),r.result!==void 0&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)("div",{style:{color:o?c.expert:c.muted,marginBottom:2},children:o?"Claude's answer":"Result"}),(0,pe.jsx)("pre",{className:o?"lc-scroll":void 0,style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:300,overflowY:"auto",...o?{borderLeft:`2px solid ${c.expert}`,paddingLeft:8,fontFamily:P,fontSize:12}:{}},children:r.result})]})]})]})}function Vj(e){let[t,n]=(0,Fv.useState)(!1);return(0,pe.jsxs)("div",{className:"lc-in-left",style:{margin:"4px 10px 4px 40px"},children:[(0,pe.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":t,title:t?"Hide the reasoning":"Show the reasoning",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,background:"transparent",border:"none",borderRadius:6,color:c.muted,cursor:"pointer",padding:"2px 6px 2px 2px",fontFamily:P,fontSize:11,fontStyle:"italic"},children:[(0,pe.jsx)("span",{style:{display:"flex",transform:t?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,pe.jsx)(io,{})}),(0,pe.jsx)("span",{children:e.pending===!0?"Thinking\u2026":"Thought process"})]}),t&&(0,pe.jsx)("pre",{style:{margin:"2px 0 0 14px",padding:8,borderLeft:`2px solid ${c.border}`,color:c.muted,fontFamily:Pv,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:320,overflowY:"auto"},children:e.content})]})}function Vv(e){let t=-1;for(let n=e.messages.length-1;n>=0;n--){let r=e.messages[n];if(r?.kind==="text"&&r.role==="user"){t=n;break}}return(0,pe.jsxs)("div",{role:"log","aria-live":"polite",children:[e.messages.map((n,r)=>n.kind==="tool"?(0,pe.jsx)(Fj,{toolCall:n.toolCall,expertInformed:n.expertInformed},r):n.kind==="reasoning"?(0,pe.jsx)(Vj,{content:n.content,pending:n.pending},r):(0,pe.jsx)(Pj,{role:n.role,content:n.content,expertInformed:n.expertInformed,isLatestPrompt:r===t},r)),e.error!==void 0&&(0,pe.jsx)("div",{role:"alert",className:"lc-fade-up",style:{padding:"8px 12px",margin:"6px 10px 6px 40px",borderRadius:10,border:`1px solid ${c.error}`,color:c.error,fontFamily:P,fontSize:12},children:e.error})]})}var da=M(oe(),1);function Nw(e){return(0,da.jsxs)("button",{type:"button",onClick:e.onReveal,title:"Scroll back to this message","aria-label":`Your message: ${e.text}. Scroll back to it.`,className:"lc-fade-up",style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%",textAlign:"left",padding:"6px 10px",border:"none",borderBottom:`1px solid ${c.border}`,background:c.background,color:c.muted,cursor:"pointer",fontFamily:P,fontSize:11,flexShrink:0},children:[(0,da.jsx)("span",{"aria-hidden":"true",style:{display:"flex",alignItems:"center",justifyContent:"center",width:16,height:16,borderRadius:"50%",flexShrink:0,marginTop:1,background:c.accentSoft,color:c.accent},children:(0,da.jsx)(rd,{size:10})}),(0,da.jsx)("span",{style:{flex:1,minWidth:0,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.text})]})}var mi=M(oe(),1);function Rw(e){if(e.consultations===0)return null;let t=e.consultations===1?"consultation":"consultations",n=e.unpriced>0?` ${String(e.unpriced)} of them reported no cost, so the total is at least this much.`:"",r=e.usage!==void 0&&e.usage>=.8,i=e.exhausted===!0?c.error:r?c.warning:c.expert;return(0,mi.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 12px",borderTop:`1px solid ${c.border}`,color:c.muted,fontFamily:P,fontSize:11,flexShrink:0},title:`${String(e.consultations)} expert ${t} in this chat.${n}${e.exhausted===!0?" The budget for this chat has been reached \u2014 raise it from the header, or start a new chat.":""} Starting a new chat resets the spend and any override.`,children:[(0,mi.jsx)("span",{style:{display:"flex",color:c.expert},children:(0,mi.jsx)(ln,{size:11})}),(0,mi.jsxs)("span",{children:["Expert:"," ",(0,mi.jsxs)("span",{style:{color:c.foreground,fontVariantNumeric:"tabular-nums"},children:["$",e.usd.toFixed(4)]})," ","this chat"]}),e.usage!==void 0&&(0,mi.jsx)("span",{"aria-hidden":!0,style:{width:46,height:3,borderRadius:2,background:c.border,overflow:"hidden",flexShrink:0},children:(0,mi.jsx)("span",{style:{display:"block",height:"100%",width:`${String(Math.round(e.usage*100))}%`,background:i,transition:"width 240ms ease"}})}),(0,mi.jsxs)("span",{style:{marginLeft:"auto",color:e.exhausted===!0?c.error:void 0},children:[e.exhausted===!0?"budget reached":`${String(e.consultations)} ${t}`,e.unpriced>0?" *":""]})]})}var Ot=M(oe(),1),Bw=M(he(),1);var Mw=[{key:"system",label:"System prompt",color:"var(--vscode-charts-blue, #4a90d9)"},{key:"toolDefinitions",label:"Tool definitions",color:"var(--vscode-charts-purple, #b180d7)"},{key:"history",label:"Conversation",color:"var(--vscode-charts-green, #89d185)"},{key:"results",label:"Tool results",color:"var(--vscode-charts-orange, #d18616)"}];function sd(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function Zw(e){let[t,n]=(0,Bw.useState)(!1),{usage:r}=e;if(r===void 0||r.total===0)return null;let i=r.contextWindow>0?r.contextWindow:void 0,o=i!==void 0?r.total/i:void 0,a=o!==void 0&&o>.75;return(0,Ot.jsxs)("div",{style:{padding:"4px 12px 6px",borderTop:`1px solid ${c.border}`,fontFamily:P,fontSize:11},children:[(0,Ot.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",background:"transparent",border:"none",color:c.muted,cursor:"pointer",padding:0,fontFamily:P,fontSize:11,textAlign:"left"},children:[(0,Ot.jsx)("span",{children:t?"\u25BE":"\u25B8"}),(0,Ot.jsxs)("span",{style:{color:a?c.error:c.muted},children:[sd(r.total),i!==void 0?` / ${sd(i)}`:""," tokens",r.estimated?" (est.)":""]}),r.cacheHitRate!==void 0&&(0,Ot.jsxs)("span",{style:{marginLeft:"auto"},children:["cache ",Math.round(r.cacheHitRate*100),"%"]})]}),(0,Ot.jsx)("div",{style:{display:"flex",height:4,borderRadius:2,overflow:"hidden",marginTop:4,background:c.border},children:Mw.map(l=>{let s=r[l.key],u=r.total>0?s/r.total*100:0;return u<=0?null:(0,Ot.jsx)("div",{title:`${l.label}: ${sd(s)}`,style:{width:`${u}%`,background:l.color}},l.key)})}),t&&(0,Ot.jsxs)("div",{style:{marginTop:6,color:c.muted},children:[Mw.map(l=>(0,Ot.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Ot.jsx)("span",{style:{width:8,height:8,borderRadius:2,background:l.color,flexShrink:0}}),(0,Ot.jsx)("span",{children:l.label}),(0,Ot.jsx)("span",{style:{marginLeft:"auto"},children:sd(r[l.key])})]},l.key)),r.supersededCount>0&&(0,Ot.jsxs)("div",{style:{marginTop:4},children:[r.supersededCount," superseded file read",r.supersededCount===1?"":"s"," dropped"]}),r.compactedCount>0&&(0,Ot.jsxs)("div",{children:[r.compactedCount," earlier message",r.compactedCount===1?"":"s"," summarised"]}),r.estimated&&(0,Ot.jsx)("div",{style:{marginTop:4,fontStyle:"italic"},children:"Estimated from text length \u2014 the provider did not report usage."})]})]})}var oo=M(oe(),1),is=M(he(),1);function Lw(e){let[t]=(0,is.useState)(()=>Date.now()),[n,r]=(0,is.useState)(0);return(0,is.useEffect)(()=>{let i=setInterval(()=>r(Math.floor((Date.now()-t)/1e3)),1e3);return()=>clearInterval(i)},[t]),(0,oo.jsxs)("div",{role:"status","aria-live":"polite","aria-label":e.label??"Working",className:"lc-fade-up",style:{display:"flex",alignItems:"center",gap:8,padding:"2px 12px",margin:"4px 10px 4px 40px",color:c.muted,fontFamily:P,fontSize:12},children:[(0,oo.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",gap:3,padding:"6px 9px",borderRadius:"12px 12px 12px 4px",background:c.assistantBubble},children:[0,1,2].map(i=>(0,oo.jsx)("span",{className:"lc-dot",style:{width:5,height:5,borderRadius:"50%",background:e.variant==="expert"?c.expert:c.accent,display:"block"}},i))}),(0,oo.jsx)("span",{style:{fontStyle:"italic"},children:e.label??"Thinking"}),n>=3&&(0,oo.jsxs)("span",{style:{marginLeft:"auto",fontVariantNumeric:"tabular-nums"},children:[n,"s"]})]})}var qj=120;function qv(e){let t=(0,Ii.useRef)(null),[n,r]=(0,Ii.useState)(!1);(0,Ii.useLayoutEffect)(()=>{let u=t.current;u!==null&&u.scrollTo({top:u.scrollHeight,behavior:"auto"})},[e.conversationKey]),(0,Ii.useEffect)(()=>{let u=t.current;if(u===null)return;u.scrollHeight-u.scrollTop-u.clientHeight<=qj&&u.scrollTo({top:u.scrollHeight,behavior:"auto"})},[e.messages,e.pendingApproval,e.pendingForm]);let i=(()=>{for(let u=e.messages.length-1;u>=0;u--){let d=e.messages[u];if(d?.kind==="text"&&d.role==="user")return d.content}})();(0,Ii.useEffect)(()=>{let u=t.current,d=u?.querySelector("[data-lc-latest-prompt]");if(u===null||d===null||d===void 0){r(!1);return}if(typeof IntersectionObserver>"u")return;let m=new IntersectionObserver(h=>{let f=h[0];f!==void 0&&r(!f.isIntersecting)},{root:u,threshold:0});return m.observe(d),()=>m.disconnect()},[e.messages]);let o=()=>{t.current?.querySelector("[data-lc-latest-prompt]")?.scrollIntoView({block:"start",behavior:"smooth"})},a=e.messages[e.messages.length-1],l=a?.kind==="tool"&&a.toolCall.name==="ask_expert"&&a.toolCall.result===void 0,s=(()=>{if(!e.isStreaming||e.pendingApproval!==void 0||e.pendingForm!==void 0)return;let u=e.messages[e.messages.length-1];if(u?.kind==="tool"&&u.toolCall.result===void 0)return l?"Consulting the expert":`Running ${u.toolCall.name}`;if(!(u?.kind==="text"&&u.role==="assistant"&&u.pending===!0)&&!(u?.kind==="reasoning"&&u.pending===!0))return"Thinking"})();return(0,Ft.jsxs)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[n&&i!==void 0&&(0,Ft.jsx)(Nw,{text:i,onReveal:o}),(0,Ft.jsxs)("div",{ref:t,className:"lc-scroll",style:{flex:1,minHeight:0,overflowY:"auto",scrollBehavior:"smooth"},children:[(0,Ft.jsx)(Vv,{messages:e.messages,error:e.error}),s!==void 0&&(0,Ft.jsx)(Lw,{label:s,variant:l?"expert":"default"}),e.pendingApproval!==void 0&&(0,Ft.jsx)(Ov,{approval:e.pendingApproval,onDecide:e.onDecideApproval,onAlwaysAllow:e.onAlwaysAllow}),e.pendingForm!==void 0&&(0,Ft.jsx)(zw,{form:e.pendingForm,onSubmit:e.onSubmitForm,onDismiss:e.onDismissForm})]}),e.canRollback&&(0,Ft.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"6px 10px",borderTop:`1px solid ${c.border}`,color:c.muted,fontSize:11,flexShrink:0},children:[(0,Ft.jsx)("span",{children:"Files were changed this task."}),(0,Ft.jsx)("button",{type:"button",className:vw.button,title:"Undo all changes made during this task","aria-label":"Undo all changes made during this task",style:Se("secondary"),onClick:e.onRollback,children:(0,Ft.jsx)(rw,{size:14})})]}),(0,Ft.jsx)(Rw,{...e.expertSpend}),(0,Ft.jsx)(Zw,{usage:e.usage}),(0,Ft.jsx)(Uv,{isStreaming:e.isStreaming,onSend:e.onSend,onCancel:e.onCancel,supportsVision:e.supportsVision,mentionCandidates:e.mentionCandidates,onQueryMentions:e.onQueryMentions,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,expertEnabled:e.expertEnabled,queued:e.queued,onUnqueue:e.onUnqueue,searchConnections:e.searchConnections,activeSearchId:e.activeSearchId,onSelectSearch:e.onSelectSearch})]})}var He=M(oe(),1),Di=M(he(),1);function Pw(e){let[t,n]=(0,Di.useState)(!1),[r,i]=(0,Di.useState)(String(e.maxSpendUsd)),[o,a]=(0,Di.useState)(String(e.maxConsultations)),l=(0,Di.useRef)(null);if((0,Di.useEffect)(()=>{i(String(e.maxSpendUsd)),a(String(e.maxConsultations))},[e.maxSpendUsd,e.maxConsultations]),(0,Di.useEffect)(()=>{if(!t)return;let x=N=>{l.current?.contains(N.target)!==!0&&n(!1)},k=N=>{N.key==="Escape"&&n(!1)};return document.addEventListener("mousedown",x),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",k)}},[t]),!e.enabled)return null;let s=x=>{let k=Number(x.trim());return Number.isFinite(k)&&k>0?k:0},u=()=>{e.onSetLimits({maxSpendUsd:s(r),maxConsultations:Math.round(s(o))}),n(!1)},d=e.maxSpendUsd>0||e.maxConsultations>0,m=e.exhausted===!0?"Raise budget":d?[e.maxSpendUsd>0?`$${e.maxSpendUsd.toFixed(2)}`:void 0,e.maxConsultations>0?`${String(e.maxConsultations)}\xD7`:void 0].filter(x=>x!==void 0).join(" / "):"Budget",h=e.usage!==void 0&&e.usage>=.8,f=e.exhausted===!0?c.error:h?c.warning:void 0;return(0,He.jsxs)("div",{ref:l,style:{position:"relative",display:"flex",fontFamily:P},children:[(0,He.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":t,style:{...$(),display:"flex",alignItems:"center",gap:4,fontSize:11,padding:"2px 7px",...f!==void 0?{borderColor:f,color:f}:{}},title:e.exhausted===!0?"The expert budget for this chat is spent. Raise it here and the next consultation goes ahead \u2014 no need to start a new chat.":`Expert budget for this chat${e.overridden?" (overriding Settings)":""}. Spent so far: $${e.usd.toFixed(4)} over ${String(e.consultations)} consultation${e.consultations===1?"":"s"}.`,onClick:()=>n(x=>!x),children:[(0,He.jsx)("span",{style:{display:"flex",color:f??c.expert},children:(0,He.jsx)(ln,{size:11})}),(0,He.jsx)("span",{children:m}),e.overridden&&e.exhausted!==!0&&(0,He.jsx)("span",{"aria-hidden":!0,children:"\u2022"})]}),t&&(0,He.jsxs)("div",{role:"dialog","aria-label":"Expert budget for this chat",style:{position:"absolute",top:"calc(100% + 4px)",left:0,zIndex:40,width:236,padding:8,borderRadius:4,border:`1px solid ${c.border}`,background:c.inputBackground,boxShadow:"0 4px 14px rgba(0, 0, 0, 0.32)",color:c.foreground,fontSize:11,display:"flex",flexDirection:"column",gap:6},children:[(0,He.jsx)("strong",{style:{fontSize:11},children:"Expert budget \u2014 this chat"}),(0,He.jsxs)("span",{style:{color:c.muted},children:["Spent $",e.usd.toFixed(4)," over ",e.consultations," ",e.consultations===1?"consultation":"consultations","."]}),e.estimate!==void 0&&(0,He.jsxs)("div",{style:{padding:"4px 6px",borderRadius:3,border:`1px solid ${c.border}`,display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,He.jsx)("span",{style:{color:c.expert},children:"Expert estimates"}),(0,He.jsx)("span",{style:{color:c.foreground},children:[e.estimate.usd===void 0?void 0:`$${e.estimate.usd.toFixed(2)}`,e.estimate.consultations===void 0?void 0:`${String(e.estimate.consultations)} consultations`].filter(x=>x!==void 0).join(" over ")}),(0,He.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Fill the fields below with the estimate. A little headroom is added, because an estimate that is exactly right still stops you at the last review.",onClick:()=>{e.estimate?.usd!==void 0&&i((e.estimate.usd*1.25).toFixed(2)),e.estimate?.consultations!==void 0&&a(String(Math.ceil(e.estimate.consultations*1.25)))},children:"Use it"})]}),(0,He.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,He.jsx)("span",{style:{width:66,color:c.muted},children:"Stop after"}),(0,He.jsx)("input",{type:"number",min:"0",step:"0.25",value:r,"aria-label":"Maximum spend for this chat, in dollars",onChange:x=>i(x.target.value),style:{...H(),flex:1,fontSize:11,padding:"2px 4px"}}),(0,He.jsx)("span",{style:{color:c.muted},children:"dollars"})]}),(0,He.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,He.jsx)("span",{style:{width:66,color:c.muted},children:"or after"}),(0,He.jsx)("input",{type:"number",min:"0",step:"1",value:o,"aria-label":"Maximum consultations for this chat",onChange:x=>a(x.target.value),style:{...H(),flex:1,fontSize:11,padding:"2px 4px"}}),(0,He.jsx)("span",{style:{color:c.muted},children:"calls"})]}),(0,He.jsx)("span",{style:{color:c.muted},children:"0 means no limit. Applies to the next consultation \u2014 a new chat goes back to the default from Settings."}),(0,He.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,He.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"2px 8px"},onClick:u,children:"Apply"}),e.overridden&&(0,He.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"2px 8px"},title:"Go back to the limit configured in Settings \u2192 Expert",onClick:()=>{e.onSetLimits({}),n(!1)},children:"Use the default"})]})]})]})}var st=M(oe(),1),vd=M(he(),1);var fe=M(oe(),1);var fa=M(he(),1);var Hv="var(--vscode-editor-font-family, monospace)",Hj=[{group:"read",label:"Reading files",description:"read_file, list_files, search_files"},{group:"edit",label:"Editing files",description:"write_to_file, apply_diff"},{group:"command",label:"Running commands",description:"execute_command \u2014 the broadest grant here"},{group:"mcp",label:"MCP tools",description:"Tools provided by external MCP servers"}];function Gj(e){return(0,fe.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",marginBottom:10,cursor:"pointer"},children:[(0,fe.jsx)("input",{type:"checkbox",checked:e.checked,onChange:t=>e.onChange(t.target.checked),style:{marginTop:2}}),(0,fe.jsxs)("span",{children:[(0,fe.jsx)("span",{style:{display:"block",fontSize:13},children:e.label}),(0,fe.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:e.description})]})]})}function Fw(e){return(0,fe.jsxs)("div",{style:{marginTop:16},children:[(0,fe.jsx)("label",{style:q(),children:e.title}),e.entries.length===0?(0,fe.jsx)("p",{style:{color:c.muted,fontSize:12,margin:0},children:e.empty}):e.entries.map(t=>(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 0",borderBottom:`1px solid ${c.border}`},children:[(0,fe.jsx)("code",{style:{flex:1,fontFamily:Hv,fontSize:12,wordBreak:"break-all"},children:t}),(0,fe.jsx)("button",{type:"button",title:"Revoke this permission","aria-label":"Revoke this permission",style:{...Se("secondary"),color:c.error},onClick:()=>e.onRevoke(t),children:(0,fe.jsx)(jt,{})})]},t))]})}function Gv(e){let t=e.approvals.autoApprove??{},[n,r]=(0,fa.useState)(String(e.maxIterations));(0,fa.useEffect)(()=>r(String(e.maxIterations)),[e.maxIterations]);let i=Number.parseInt(n,10),o=Number.isFinite(i)&&i>=1&&i<=500;return(0,fe.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P},children:[(0,fe.jsx)("h3",{style:{margin:"0 0 4px",color:c.foreground},children:"Approvals"}),(0,fe.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:0,marginBottom:12},children:"These apply to this workspace only, and are stored outside it \u2014 a repository cannot grant itself permissions."}),(0,fe.jsxs)("div",{style:{marginBottom:16,paddingBottom:12,borderBottom:`1px solid ${c.border}`},children:[(0,fe.jsx)("label",{htmlFor:"lc-max-steps",style:q(),children:"Maximum steps per message"}),(0,fe.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,fe.jsx)("input",{id:"lc-max-steps",type:"number",min:1,max:500,value:n,onChange:a=>r(a.target.value),style:{...H(),width:110,flex:"none"}}),(0,fe.jsx)("button",{type:"button",style:$(),disabled:!o||i===e.maxIterations,onClick:()=>e.onSetMaxIterations(i),children:"Save"}),!o&&(0,fe.jsx)("span",{style:{fontSize:11,color:c.error},children:"Must be between 1 and 500."})]}),(0,fe.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:4},children:"How many tool calls the assistant may make in reply to one message. The limit exists so a model looping on a failing edit stops costing money \u2014 not to cut short real work. Hitting it loses nothing: send another message and it carries on. Raise it for long refactors; lower it if you want to stay closer to what it is doing."})]}),(0,fe.jsx)("label",{style:q(),children:"Skip the prompt for\u2026"}),Hj.map(a=>(0,fe.jsx)(Gj,{checked:t[a.group]===!0,label:a.label,description:a.description,onChange:l=>e.onSetAutoApprove(a.group,l)},a.group)),(0,fe.jsx)(Fw,{title:"Always-allowed tools",empty:"None. Use \u201CAlways allow\u201D on an approval prompt to add one.",entries:e.approvals.allowedTools??[],onRevoke:e.onRevokeTool}),(0,fe.jsx)(Fw,{title:"Always-allowed commands (exact match)",empty:"None. Use \u201CAlways allow this command\u201D on a command prompt to add one.",entries:e.approvals.allowedCommands??[],onRevoke:e.onRevokeCommand}),(0,fe.jsxs)("p",{style:{color:c.muted,fontSize:11},children:["A command is matched byte-for-byte. Allowing ",(0,fe.jsx)("code",{style:{fontFamily:Hv},children:"npm test"})," does not allow ",(0,fe.jsx)("code",{style:{fontFamily:Hv},children:"npm test && something-else"}),"."]}),(0,fe.jsx)(Yj,{roots:e.readRoots,onSave:e.onSetReadRoots})]})}function Yj(e){let[t,n]=(0,fa.useState)(e.roots);(0,fa.useEffect)(()=>n(e.roots),[e.roots]);let r=t.join("\0")!==e.roots.join("\0");return(0,fe.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${c.border}`},children:[(0,fe.jsx)("span",{style:q(),children:"Folders it may read"}),(0,fe.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:["Everything is confined to this workspace by default. Add a folder here to let the assistant read files elsewhere \u2014 a log directory, or a network share such as"," ",(0,fe.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:String.raw`\server\logs`}),". It can ",(0,fe.jsx)("strong",{children:"read"})," these, never write to them: edits stay in the workspace, where a checkpoint can undo them."]}),t.map((i,o)=>(0,fe.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:6},children:[(0,fe.jsx)("input",{type:"text",value:i,spellCheck:!1,"aria-label":`Readable folder ${o+1}`,placeholder:String.raw`\server\share\logs`,onChange:a=>n(l=>l.map((s,u)=>u===o?a.target.value:s)),style:{...H(),fontFamily:"var(--vscode-editor-font-family, monospace)"}}),(0,fe.jsx)("button",{type:"button",title:"Remove this folder","aria-label":"Remove this folder",style:Se("secondary"),onClick:()=>n(a=>a.filter((l,s)=>s!==o)),children:(0,fe.jsx)(jt,{})})]},o)),(0,fe.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,fe.jsx)("button",{type:"button",style:$(),onClick:()=>n(i=>[...i,""]),children:"Add a folder"}),(0,fe.jsx)("button",{type:"button",style:$(),disabled:!r,onClick:()=>e.onSave(t.map(i=>i.trim()).filter(i=>i.length>0)),children:r?"Save folders":"Saved"})]})]})}var te=M(oe(),1);var mr=M(oe(),1);function Ai(e){let t=e.progress;if(t===void 0)return null;let n=t.running&&t.total!==void 0&&t.total>0,r=n?Math.min(1,(t.done??0)/(t.total??1)):0;return(0,mr.jsxs)("div",{style:{marginTop:8},children:[(0,mr.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,mr.jsxs)("span",{style:{fontSize:11,color:c.muted,flex:1,minWidth:0},children:[t.phase,n&&` \u2014 ${String(t.done??0)} of ${String(t.total??0)}`,t.detail!==void 0&&` \xB7 ${t.detail}`]}),t.running&&(0,mr.jsx)("button",{type:"button",style:$(),onClick:e.onStop,children:"Stop"})]}),t.running&&(0,mr.jsx)("div",{role:"progressbar","aria-label":t.phase,...n?{"aria-valuenow":Math.round(r*100),"aria-valuemin":0,"aria-valuemax":100}:{},style:{height:3,marginTop:4,borderRadius:2,background:c.border,overflow:"hidden"},children:(0,mr.jsx)("div",{style:{height:"100%",width:n?`${String(Math.round(r*100))}%`:"35%",background:c.accent,transition:"width 200ms linear",...n?{}:{animation:"lc-indeterminate 1.2s ease-in-out infinite"}}})})]})}var Sn=M(he(),1);var ne=M(oe(),1);var hr=M(he(),1);var ji=M(oe(),1);var Jj="var(--vscode-editor-font-family, monospace)";function xn(e){let t=e.browse;return(0,ji.jsxs)("div",{style:{marginBottom:10},children:[(0,ji.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,ji.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,ji.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:n=>e.onChange(n.target.value),style:{...H(),fontFamily:Jj,...e.error!==void 0?{borderColor:c.error}:{}}}),t!==void 0&&e.onBrowse!==void 0&&(0,ji.jsx)("button",{type:"button",style:$(),title:t.kind==="folder"?"Choose a folder":"Choose a file",onClick:()=>e.onBrowse?.(t),children:"Browse"}),e.children]}),e.error!==void 0?(0,ji.jsx)("span",{style:Pt(),children:e.error}):e.hint!==void 0&&(0,ji.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:e.hint})]})}var rs="var(--vscode-editor-font-family, monospace)",Vw=[{value:"python",label:"Python (venv)",transport:"stdio",blurb:"A script run by the interpreter inside a virtualenv. Light Code starts the process and talks to it over stdio."},{value:"npx",label:"npm package",transport:"stdio",blurb:"Fetched and run through npx. Light Code starts the process and talks to it over stdio."},{value:"custom",label:"Command",transport:"stdio",blurb:"Any executable, with arguments you supply. Light Code starts the process and talks to it over stdio."},{value:"http",label:"HTTP",transport:"Streamable HTTP",blurb:"A server already running somewhere. Light Code connects to it rather than starting it."}];function cd(e){return(0,ne.jsxs)("div",{style:{marginBottom:10},children:[(0,ne.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,ne.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:t=>e.onChange(t.target.value),style:{...H(),...e.mono===!0?{fontFamily:rs}:{},...e.error!==void 0?{borderColor:c.error}:{}}}),e.error!==void 0?(0,ne.jsx)("span",{style:Pt(),children:e.error}):e.hint!==void 0&&(0,ne.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:e.hint})]})}function qw(e){let[t,n]=(0,hr.useState)(()=>Object.entries(e.pairs)),r=i=>{n(i),e.onChange(Object.fromEntries(i.filter(([o])=>o.trim().length>0)))};return(0,ne.jsxs)("div",{style:{marginBottom:10},children:[(0,ne.jsx)("label",{style:q(),children:e.label}),t.map(([i,o],a)=>(0,ne.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:4},children:[(0,ne.jsx)("input",{"aria-label":`${e.label} name ${a+1}`,value:i,spellCheck:!1,placeholder:"NAME",onChange:l=>r(t.map((s,u)=>u===a?[l.target.value,s[1]]:s)),style:{...H(),fontFamily:rs,flex:1}}),(0,ne.jsx)("input",{"aria-label":`${e.label} value ${a+1}`,value:o,spellCheck:!1,placeholder:"value",onChange:l=>r(t.map((s,u)=>u===a?[s[0],l.target.value]:s)),style:{...H(),fontFamily:rs,flex:2}}),(0,ne.jsx)("button",{type:"button","aria-label":`Remove ${i.length>0?i:`row ${a+1}`}`,style:Se("ghost"),onClick:()=>r(t.filter((l,s)=>s!==a)),children:(0,ne.jsx)(jt,{})})]},a)),(0,ne.jsx)("button",{type:"button",style:$(),onClick:()=>n([...t,["",""]]),children:"Add"}),(0,ne.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:4},children:e.hint})]})}function Hw(e){let[t,n]=(0,hr.useState)(e.initialName),[r,i]=(0,hr.useState)(()=>e.initialConfig!==void 0?dv(e.initialConfig):Kl),[o,a]=(0,hr.useState)(!1);(0,hr.useEffect)(()=>{let k=e.probe?.interpreter;k!==void 0&&i(N=>({...N,interpreter:k,venvDir:e.probe?.venvDir??N.venvDir}))},[e.probe]),(0,hr.useEffect)(()=>{let k=e.pickedPath;if(k===void 0)return;let N={"mcp.script":"script","mcp.venvDir":"venvDir","mcp.interpreter":"interpreter","mcp.cwd":"cwd"}[k.purpose];N!==void 0&&i(g=>({...g,[N]:k.path}))},[e.pickedPath]);let l=fv(t,r),s=t.trim()!==e.initialName&&e.existingNames.includes(t.trim())?"A server with this name already exists.":void 0,u=l.name??s,d=Object.keys(l).length>0||s!==void 0,m=k=>o?l[k]:void 0,h=k=>i({...r,...k}),f=Vw.find(k=>k.value===r.kind),x=(()=>{let k=Qu(r,e.platform);return"url"in k?k.url:[k.command,...k.args??[]].join(" ")})();return(0,ne.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P},children:[(0,ne.jsx)("h3",{style:{margin:"0 0 12px",color:c.foreground},children:e.initialName.length===0?"Add MCP server":`Edit ${e.initialName}`}),(0,ne.jsx)(cd,{id:"lc-mcp-name",label:"Name",value:t,placeholder:"filesystem",hint:"Prefixes every tool this server exposes, e.g. filesystem__read_file.",...o&&u!==void 0?{error:u}:{},onChange:n}),(0,ne.jsx)("label",{style:q(),children:"Type"}),(0,ne.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:4},children:Vw.map(k=>{let N=k.value===r.kind;return(0,ne.jsx)("button",{type:"button",title:`${k.blurb} Transport: ${k.transport}.`,onClick:()=>h({kind:k.value}),style:{padding:"3px 10px",fontFamily:P,fontSize:11,borderRadius:3,cursor:"pointer",background:N?c.accent:"transparent",color:N?c.buttonForeground:c.muted,border:`1px solid ${N?c.accent:c.border}`},children:k.label},k.value)})}),(0,ne.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 12px"},children:f?.blurb}),r.kind==="python"&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(xn,{id:"lc-mcp-script",label:"Server script",value:r.script,placeholder:e.platform==="win32"?"C:\\work\\my-server\\server.py":"/home/me/my-server/server.py",hint:"Your FastMCP entry point. Pick this first \u2014 the virtualenv beside it is found automatically.",browse:{purpose:"mcp.script",kind:"file",extensions:["py"]},onBrowse:e.onBrowse,...m("script")!==void 0?{error:m("script")}:{},onChange:k=>h({script:k})}),(0,ne.jsx)(xn,{id:"lc-mcp-venv",label:"Virtualenv folder",value:r.venvDir,placeholder:e.platform==="win32"?"C:\\work\\my-server\\.venv":"/home/me/my-server/.venv",hint:"Leave blank and press Detect to search beside the script.",browse:{purpose:"mcp.venvDir",kind:"folder"},onBrowse:e.onBrowse,...m("venvDir")!==void 0?{error:m("venvDir")}:{},onChange:k=>h({venvDir:k}),children:(0,ne.jsx)("button",{type:"button",style:$(),title:"Look on disk for the interpreter, or for a virtualenv beside the script",onClick:()=>e.onDetect(r.venvDir,r.script),children:"Detect"})}),e.probe!==void 0&&(0,ne.jsx)("div",{style:{fontSize:11,marginBottom:8,color:e.probe.interpreter!==void 0?c.muted:c.error},children:e.probe.detail}),(0,ne.jsx)(xn,{id:"lc-mcp-interpreter",label:"Python interpreter",value:r.interpreter,placeholder:r.venvDir.trim().length>0?Wu(r.venvDir.trim(),e.platform):e.platform==="win32"?"python.exe":"python3",hint:"Filled in by Detect. Override it for a conda environment, a system Python, or any layout detection does not recognise \u2014 this is the executable that actually runs.",browse:{purpose:"mcp.interpreter",kind:"file"},onBrowse:e.onBrowse,onChange:k=>h({interpreter:k})})]}),r.kind==="npx"&&(0,ne.jsx)(cd,{id:"lc-mcp-package",label:"Package",value:r.packageName,mono:!0,placeholder:"@modelcontextprotocol/server-filesystem",hint:"Run with -y so it installs without waiting for a confirmation nobody can answer. It is fetched from the network on first use.",...m("packageName")!==void 0?{error:m("packageName")}:{},onChange:k=>h({packageName:k})}),r.kind==="custom"&&(0,ne.jsx)(cd,{id:"lc-mcp-command",label:"Command",value:r.command,mono:!0,placeholder:"docker",hint:"An executable on PATH, or an absolute path to one.",...m("command")!==void 0?{error:m("command")}:{},onChange:k=>h({command:k})}),r.kind==="http"&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(cd,{id:"lc-mcp-url",label:"URL",value:r.url,mono:!0,placeholder:"https://mcp.internal/mcp",...m("url")!==void 0?{error:m("url")}:{},onChange:k=>h({url:k})}),(0,ne.jsx)(qw,{idPrefix:"lc-mcp-header",label:"Headers",hint:"Use ${secret:NAME} for a token \u2014 it is read from secret storage at connect time and never written to the config file.",pairs:r.headers,onChange:k=>h({headers:k})})]}),r.kind!=="http"&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)("div",{style:{marginBottom:10},children:[(0,ne.jsx)("label",{htmlFor:"lc-mcp-args",style:q(),children:"Arguments"}),(0,ne.jsx)("textarea",{id:"lc-mcp-args",value:r.args.join(`
93
93
  `),spellCheck:!1,rows:3,placeholder:`--root
94
- /data`,onChange:_=>p({args:_.target.value.split(`
95
- `)}),style:{width:"100%",boxSizing:"border-box",background:s.inputBackground,color:s.inputForeground,border:`1px solid ${s.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:Bl,fontSize:12,resize:"vertical"}}),(0,K.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"One per line \u2014 not a command line, so nothing is split on spaces and quoting is never needed. A path containing a space goes on its own line as-is."})]}),(0,K.jsx)(gn,{id:"lc-mcp-cwd",label:"Working directory",value:r.cwd,placeholder:"Optional",hint:"Where the process starts. Set it if your server reads files by relative path.",browse:{purpose:"mcp.cwd",kind:"folder"},onBrowse:e.onBrowse,onChange:_=>p({cwd:_})}),(0,K.jsx)(yj,{value:r.timeout,error:m("timeout"),onChange:_=>p({timeout:_})}),(0,K.jsx)(kw,{idPrefix:"lc-mcp-env",label:"Environment variables",hint:"Use ${secret:NAME} for a credential \u2014 it is read from secret storage at launch and never written to the config file. Provider API keys are never passed through.",pairs:r.env,onChange:_=>p({env:_})})]}),(0,K.jsxs)("div",{style:{marginBottom:12},children:[(0,K.jsxs)("label",{style:V(),children:[r.kind==="http"?"Connects to":"Will run",(0,K.jsx)("span",{style:{marginLeft:6,fontWeight:"normal",textTransform:"none",opacity:.7},children:f?.transport})]}),(0,K.jsx)("div",{style:{fontFamily:Bl,fontSize:11,color:s.muted,background:s.inputBackground,border:`1px solid ${s.border}`,borderRadius:2,padding:"6px 8px",wordBreak:"break-all"},children:x.trim().length>0?x:"\u2014"})]}),(0,K.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,K.jsx)("button",{type:"button",style:me(!1),onClick:()=>{a(!0),!d&&e.onSave(t.trim(),e.initialName.length>0?e.initialName:void 0,Ou(r,e.platform,e.initialConfig))},children:"Save"}),(0,K.jsx)("button",{type:"button",style:C(),onClick:e.onCancel,children:"Cancel"}),e.saving&&(0,K.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saving\u2026"}),o&&d&&(0,K.jsx)("span",{style:{fontSize:11,color:s.error},children:"Fix the fields above."})]})]})}function yj(e){return(0,K.jsxs)("div",{style:{marginBottom:12},children:[(0,K.jsx)("label",{htmlFor:"lc-mcp-timeout",style:V(),children:"Tool call timeout"}),(0,K.jsx)("input",{id:"lc-mcp-timeout",inputMode:"numeric",value:e.value,placeholder:"Seconds \u2014 blank for the default",onChange:t=>e.onChange(t.target.value),style:{...G(),...e.error!==void 0?{borderColor:s.error}:{}}}),(0,K.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"Applies to each call, not to the session. Raise it for a server that queries something large; a call that exceeds it is cancelled and the error names this number."}),e.error!==void 0&&(0,K.jsx)("span",{style:Mt(),children:e.error})]})}var ea="var(--vscode-editor-font-family, monospace)",bj={ready:"var(--vscode-testing-iconPassed, #3fb950)",connecting:"var(--vscode-descriptionForeground)",idle:"var(--vscode-descriptionForeground)",disabled:"var(--vscode-descriptionForeground)",failed:"var(--vscode-errorForeground)"},Ey=[{value:"always",label:"Always",title:"Run without asking, in this workspace"},{value:"ask",label:"Ask",title:"Ask for approval every time"},{value:"never",label:"Never",title:"Hide this tool from the model entirely"}];function xj(e){return(0,J.jsx)("div",{style:{display:"flex",flexShrink:0},children:Ey.map((t,n)=>{let r=t.value===e.value;return(0,J.jsx)("button",{type:"button",title:t.title,onClick:()=>e.onChange(t.value),style:{padding:"1px 7px",fontFamily:B,fontSize:10,cursor:"pointer",background:r?s.accent:"transparent",color:r?s.buttonForeground:s.muted,border:`1px solid ${r?s.accent:s.border}`,borderLeftWidth:n===0?1:0,borderTopLeftRadius:n===0?3:0,borderBottomLeftRadius:n===0?3:0,borderTopRightRadius:n===Ey.length-1?3:0,borderBottomRightRadius:n===Ey.length-1?3:0},children:t.label},t.value)})})}var Sj={ready:"ready",connecting:"starting\u2026",idle:"not started",disabled:"disabled",failed:"failed"};function kj(e){let{server:t}=e,[n,r]=(0,vn.useState)(!1),[i,o]=(0,vn.useState)(!1),a=t.status==="ready"||t.status==="connecting";return(0,J.jsxs)("div",{style:{borderBottom:`1px solid ${s.border}`,padding:"6px 0"},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,J.jsx)("button",{type:"button",onClick:()=>r(!n),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0,width:14},"aria-label":n?"Collapse":"Expand",children:n?"\u25BE":"\u25B8"}),(0,J.jsx)("span",{style:{color:bj[t.status],fontSize:10},children:"\u25CF"}),(0,J.jsx)("strong",{style:{fontFamily:ea,fontSize:12},children:t.name}),(0,J.jsxs)("span",{style:{color:s.muted,fontSize:11},children:[e.transport," \xB7 ",Sj[t.status],t.status==="ready"&&` \xB7 ${t.tools.length} tool${t.tools.length===1?"":"s"}`]}),(0,J.jsxs)("label",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:4,fontSize:11,cursor:"pointer"},title:"Disabling removes this server's tools from the model entirely",children:[(0,J.jsx)("input",{type:"checkbox",checked:t.enabled,onChange:l=>e.onSetServerEnabled(t.name,l.target.checked)}),"Enabled"]}),t.enabled&&!a&&(0,J.jsx)("button",{type:"button",style:C(),onClick:()=>e.onConnect(t.name),children:"Connect"}),a&&(0,J.jsx)("button",{type:"button",style:C(),onClick:()=>e.onRestart(t.name),children:"Restart"}),(0,J.jsx)("button",{type:"button",style:C(),onClick:()=>e.onEdit(t.name),children:"Edit"}),(0,J.jsx)("button",{type:"button","aria-label":`Duplicate ${t.name}`,title:"Duplicate this server. The copy starts disabled so you can edit it first.",style:be("ghost"),onClick:()=>e.onDuplicate(t.name),children:(0,J.jsx)(ir,{})}),(0,J.jsx)("button",{type:"button","aria-label":`Delete ${t.name}`,title:"Remove this server",style:be("ghost"),onClick:()=>e.onDelete(t.name),children:(0,J.jsx)(Et,{})})]}),t.error!==void 0&&(0,J.jsx)("div",{style:Mt(),children:t.error}),e.warnings.map(l=>(0,J.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:4},children:["\u26A0 ",l]},l)),t.logs.length>0&&(0,J.jsxs)("div",{style:{marginTop:4,paddingLeft:22},children:[(0,J.jsxs)("button",{type:"button",onClick:()=>o(!i),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0,fontFamily:B,fontSize:11},children:[i?"\u25BE":"\u25B8"," Log (",t.logs.length,")"]}),i&&(0,J.jsx)("pre",{style:{margin:"4px 0 0",padding:6,maxHeight:160,overflow:"auto",background:s.inputBackground,border:`1px solid ${s.border}`,borderRadius:3,fontFamily:ea,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.logs.join(`
96
- `)})]}),n&&(0,J.jsx)("div",{style:{marginTop:6,paddingLeft:22},children:t.tools.length===0?(0,J.jsx)("p",{style:{color:s.muted,fontSize:11,margin:0},children:t.enabled?"No tools discovered yet \u2014 press Connect, or they load on first use.":"Enable this server to see its tools."}):t.tools.map(l=>(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 0"},children:[(0,J.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,J.jsx)("span",{style:{fontFamily:ea,fontSize:12},children:l.name}),l.description.length>0&&(0,J.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:l.description,children:l.description})]}),(0,J.jsx)(_j,{value:l.timeout,onChange:c=>e.onSetToolTimeout(t.name,l.name,c)}),(0,J.jsx)(xj,{value:l.permission,onChange:c=>e.onSetToolPermission(t.name,l.name,c)})]},l.name))})]})}function Dy(e){let[t,n]=(0,vn.useState)(e.json),[r,i]=(0,vn.useState)(!1),[o,a]=(0,vn.useState)(void 0),[l,c]=(0,vn.useState)(void 0),[u,d]=(0,vn.useState)(!1);return(0,vn.useEffect)(()=>{n(e.json)},[e.json]),(0,vn.useEffect)(()=>{u&&(d(!1),a(void 0))},[e.savedTick]),o!==void 0?(0,J.jsx)(_w,{initialName:o,initialConfig:e.configs[o],existingNames:e.servers.map(m=>m.name),platform:e.platform,saving:u,probe:e.pythonProbe,onDetect:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSave:(m,p,f)=>{d(!0),e.onSaveServer(m,p,f)},onCancel:()=>a(void 0)}):(0,J.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B},children:[(0,J.jsx)("h3",{style:{margin:"0 0 4px",color:s.foreground},children:"MCP Servers"}),(0,J.jsxs)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:["Uses the standard ",(0,J.jsx)("code",{style:{fontFamily:ea},children:"mcpServers"})," shape, so a config from another MCP client can be pasted in unchanged."]}),e.servers.length===0?(0,J.jsx)("p",{style:{color:s.muted,fontSize:12},children:"No servers configured yet."}):e.servers.map(m=>(0,J.jsxs)("div",{children:[(0,J.jsx)(kj,{server:m,transport:e.configs[m.name]!==void 0&&"url"in e.configs[m.name]?"HTTP":"stdio",warnings:e.warnings[m.name]??[],onRestart:e.onRestart,onConnect:e.onConnect,onSetServerEnabled:e.onSetServerEnabled,onSetToolPermission:e.onSetToolPermission,onSetToolTimeout:e.onSetToolTimeout,onEdit:a,onDelete:c,onDuplicate:e.onDuplicateServer}),l===m.name&&(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 0 6px 22px",fontSize:12},children:[(0,J.jsxs)("span",{children:["Remove ",m.name,"?"]}),(0,J.jsx)("button",{type:"button",style:C(),onClick:()=>{e.onDeleteServer(m.name),c(void 0)},children:"Remove"}),(0,J.jsx)("button",{type:"button",style:C(),onClick:()=>c(void 0),children:"Keep"})]})]},m.name)),(0,J.jsxs)("div",{style:{display:"flex",gap:8,marginTop:16},children:[(0,J.jsx)("button",{type:"button",style:me(!1),onClick:()=>a(""),children:"Add server"}),(0,J.jsx)("button",{type:"button",style:C(),title:"Edit every server as raw JSON \u2014 for pasting a config from another client",onClick:()=>i(!r),children:r?"Hide JSON":"Edit as JSON"})]}),r&&(0,J.jsxs)("div",{style:{marginTop:10},children:[(0,J.jsx)("label",{htmlFor:"lc-mcp-json",style:V(),children:"Configuration"}),(0,J.jsx)("textarea",{id:"lc-mcp-json",value:t,spellCheck:!1,rows:14,onChange:m=>n(m.target.value),style:{width:"100%",boxSizing:"border-box",background:s.inputBackground,color:s.inputForeground,border:`1px solid ${e.saveError!==void 0?s.error:s.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:ea,fontSize:12,resize:"vertical"}}),e.saveError!==void 0&&(0,J.jsx)("span",{style:Mt(),children:e.saveError}),(0,J.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,J.jsx)("button",{type:"button",style:me(!1),onClick:()=>e.onSave(t),children:"Save"}),(0,J.jsx)("button",{type:"button",style:C(),onClick:()=>n(e.json),children:"Revert"})]}),(0,J.jsxs)("p",{style:{color:s.muted,fontSize:11,marginTop:12},children:["Secrets: use ",(0,J.jsx)("code",{style:{fontFamily:ea},children:"${secret:NAME}"})," in an env value or header. The value is read from secret storage at launch and never written to the config file."]})]}),e.docsIndex?.enabled===!0&&(0,J.jsxs)("div",{style:{marginTop:20,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,J.jsx)("div",{style:{fontSize:13,marginBottom:4},children:"Tool documentation index"}),(0,J.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["Tool schemas are kept out of every request and looked up on demand, so a new server\u2019s tools have to be indexed before they can be found by meaning. That happens on its own a few seconds after a server connects \u2014 this button is for when you would rather not wonder."," ",e.docsIndex.ready?"":"No embedding model is configured, so tools are matched on names and descriptions instead. They stay findable either way."]}),(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,J.jsx)("button",{type:"button",style:C(),disabled:e.docsIndex.indexing||!e.docsIndex.ready,onClick:e.onIndexDocs,children:e.docsIndex.indexing?"Indexing\u2026":"Reindex tool documentation"}),e.docsIndex.result!==void 0&&(0,J.jsx)("span",{style:{color:s.muted,fontSize:11},children:e.docsIndex.result})]})]})]})}function _j(e){let[t,n]=(0,vn.useState)(e.value===void 0?"":String(e.value));return(0,vn.useEffect)(()=>n(e.value===void 0?"":String(e.value)),[e.value]),(0,J.jsx)("input",{inputMode:"numeric",value:t,placeholder:"server",title:"Seconds this tool may take. Blank uses the server's timeout. Raise it for one slow tool rather than raising the server's.","aria-label":"Timeout in seconds",onChange:i=>n(i.target.value),onBlur:()=>{let i=t.trim();if(i.length===0){e.onChange();return}let o=Number(i);if(!Number.isFinite(o)||o<=0||o>3600){n(e.value===void 0?"":String(e.value));return}e.onChange(Math.round(o))},onKeyDown:i=>{i.key==="Enter"&&i.currentTarget.blur()},style:{width:62,flexShrink:0,background:s.inputBackground,color:s.inputForeground,border:`1px solid ${s.inputBorder}`,borderRadius:2,padding:"1px 4px",fontFamily:B,fontSize:11,textAlign:"right"}})}var H=P(ie(),1),li=P(ge(),1);var Ee=P(ie(),1),$w=P(ge(),1);function zw(e){let[t,n]=(0,$w.useState)(!1),r=e.savings;if(r===void 0)return null;let i=r.allTime.consultations===0&&r.allTime.juniorTurns===0;return(0,Ee.jsxs)("div",{style:{margin:"16px 0 0",padding:12,borderRadius:6,border:`1px solid ${s.accent}`,background:`color-mix(in srgb, ${s.accent} 10%, transparent)`},children:[(0,Ee.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"Junior mode"}),(0,Ee.jsx)("div",{style:{color:s.muted,fontSize:11,marginBottom:10},children:i?"Nothing recorded yet. This fills in as you work in Junior mode \u2014 one entry per turn the cheap model handles alone, and one per consultation.":r.measured?"A floor, not an estimate \u2014 every figure below is at least this much.":"Counted, but not yet priced. Measure a consultation above to see this in money."}),(0,Ee.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,Ee.jsx)(Iy,{label:"Today",window:r.today,measured:r.measured}),(0,Ee.jsx)(Iy,{label:"Last 30 days",window:r.last30Days,measured:r.measured}),(0,Ee.jsx)(Iy,{label:"All time",window:r.allTime,measured:r.measured})]}),(0,Ee.jsx)("button",{type:"button",onClick:()=>n(o=>!o),style:{marginTop:10,padding:0,background:"none",border:"none",color:s.accent,cursor:"pointer",font:"inherit",fontSize:11,textDecoration:"underline"},children:t?"Hide how this is worked out":"How is this worked out?"}),t&&(0,Ee.jsx)(wj,{savings:r}),i&&(0,Ee.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"8px 0 0"},children:["Switch the mode selector in the chat header to ",(0,Ee.jsx)("strong",{children:"Junior"})," to start. Turns taken before this version was installed were never recorded, so the count begins now."]})]})}function Iy(e){let{window:t}=e;return(0,Ee.jsxs)("div",{style:{flex:"1 1 140px",minWidth:140,padding:"8px 10px",borderRadius:4,background:s.inputBackground,border:`1px solid ${s.border}`},children:[(0,Ee.jsx)("div",{style:{color:s.muted,fontSize:11},children:e.label}),(0,Ee.jsx)("div",{style:{fontSize:18,fontWeight:600,color:s.accent,lineHeight:1.3},children:e.measured&&t.avoidedUsd!==void 0?`\u2265 ${ww(t.avoidedUsd)}`:"\u2014"}),(0,Ee.jsx)("div",{style:{color:s.muted,fontSize:11},children:"avoided"}),(0,Ee.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:4},children:["Spent ",ww(t.spentUsd),t.unpriced>0&&` + ${String(t.unpriced)} unpriced`]}),(0,Ee.jsxs)("div",{style:{color:s.muted,fontSize:11},children:[qu(t.juniorTurns,"junior turn"),", ",qu(t.consultations,"consultation"),t.overheadCalls>0&&` + ${String(t.overheadCalls)} upkeep`]})]})}function wj(e){let t=e.savings.allTime;return(0,Ee.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:8,lineHeight:1.55},children:[(0,Ee.jsx)("p",{style:{margin:"0 0 6px"},children:"Two things are counted, and both are priced from the measurement taken on this machine \u2014 never from published rates."}),(0,Ee.jsxs)("ol",{style:{margin:"0 0 6px",paddingLeft:18},children:[(0,Ee.jsxs)("li",{children:[(0,Ee.jsx)("strong",{children:"Turns the expert never saw."})," Every turn the cheap model handled alone is one the expert would otherwise have taken. Each is priced at the cost of a"," ",(0,Ee.jsx)("em",{children:"minimal"})," resumed consultation, which is the cheapest an expert turn can possibly be \u2014 so real work would have cost more. All time: ",qu(t.juniorTurns,"turn"),"."]}),(0,Ee.jsxs)("li",{children:[(0,Ee.jsx)("strong",{children:"Cold starts avoided."})," A consultation that resumed a live session instead of starting a new one saved the difference between the two measured prices. All time:"," ",qu(t.consultations,"consultation"),", of which the resumed ones count."]})]}),(0,Ee.jsxs)("p",{style:{margin:"0 0 6px"},children:[(0,Ee.jsx)("strong",{children:"What is deliberately not counted:"})," what the strong model would have charged to do the work itself. Nothing here can know that, so no multiplier is applied \u2014 which is why the total is a floor and says ",(0,Ee.jsx)("em",{children:"at least"}),". The real saving is larger by an amount this panel refuses to guess at."]}),(0,Ee.jsx)("p",{style:{margin:0},children:"Consultations the plan reported no price for are counted separately rather than as zero, so a total never looks exact while being incomplete. Events older than a year are dropped."})]})}function ww(e){return e===0?"$0":e<.1?`$${e.toFixed(4)}`:`$${e.toFixed(2)}`}function qu(e,t){return`${String(e)} ${t}${e===1?"":"s"}`}var Ay=P(ie(),1);function or(e){return e.ignored===!0?(0,Ay.jsx)("span",{style:Je("warning"),children:"Ignored (user-scope only)"}):(0,Ay.jsx)("span",{style:Je("neutral"),children:e.scope==="user"?"User":"Workspace"})}var Tw="var(--vscode-editor-font-family, monospace)",jy="__custom__",Oy=[{value:"",label:"The CLI's own default"},{value:"opus",label:"Opus \u2014 strongest, most expensive"},{value:"sonnet",label:"Sonnet \u2014 balanced"},{value:"haiku",label:"Haiku \u2014 fastest and cheapest"}];function Cw(e){let[t,n]=(0,li.useState)(e.expert?.enabled??!1),[r,i]=(0,li.useState)(e.expert?.path??"claude"),[o,a]=(0,li.useState)(e.expert?.model??""),[l,c]=(0,li.useState)(String(e.expert?.maxSpendUsd??0)),[u,d]=(0,li.useState)(String(e.expert?.maxConsultations??0));(0,li.useEffect)(()=>{e.expert!==void 0&&(n(e.expert.enabled),i(e.expert.path),a(e.expert.model??""),c(String(e.expert.maxSpendUsd)),d(String(e.expert.maxConsultations)))},[e.expert]),(0,li.useEffect)(()=>{e.pickedPath?.purpose==="expert.path"&&i(e.pickedPath.path)},[e.pickedPath]);let m=f=>{let x=Number(f.trim());return Number.isFinite(x)&&x>0?x:0},p=e.expert?.available===!0;return(0,H.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,H.jsx)("h3",{style:{margin:0,color:s.foreground},children:"Expert"}),(0,H.jsx)(or,{scope:"user"})]}),(0,H.jsx)("p",{style:{color:s.muted,fontSize:12,fontFamily:B,margin:"0 0 12px"},children:"Lets your everyday model consult Claude on hard problems \u2014 planning a change across several files, diagnosing a bug it has already failed to fix, or weighing two designs. It decides when the question is worth it, and each consultation appears in the transcript with what it cost."}),(0,H.jsxs)("div",{style:{padding:8,marginBottom:12,borderRadius:3,border:`1px solid ${p?s.border:s.error}`},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,H.jsx)("div",{style:{fontSize:12,color:p?s.foreground:s.error},children:e.expert===void 0?"Checking\u2026":p?`Found: ${e.expert.version??e.expert.path}`:"Claude CLI not found"}),(0,H.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Look for the Claude CLI again",onClick:e.onRecheck,children:"Re-check"})]}),e.expert!==void 0&&!p&&(0,H.jsx)("div",{style:{fontSize:11,color:s.muted,marginTop:4},children:e.expert.reason??"Install it with: npm install -g @anthropic-ai/claude-code"})]}),(0,H.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:12,fontSize:12},children:[(0,H.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:t,onChange:f=>n(f.target.checked)}),(0,H.jsxs)("span",{style:{color:s.foreground},children:["Enable Claude as the expert",(0,H.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:2},children:"Consultations are billed to your Claude account at its usual rates. Off by default; nothing runs and nothing is spent until you turn this on."})]})]}),(0,H.jsx)(gn,{id:"lc-expert-path",label:"Command",value:r,placeholder:"claude",hint:"Found on PATH by default. If detection cannot find it, browse to the executable \u2014 on Windows that is usually claude.cmd in %APPDATA%\\npm.",browse:{purpose:"expert.path",kind:"file"},...e.onBrowse!==void 0?{onBrowse:e.onBrowse}:{},onChange:i}),(0,H.jsxs)("div",{style:{marginBottom:16},children:[(0,H.jsx)("label",{htmlFor:"lc-expert-model",style:V(),children:"Model (optional)"}),(0,H.jsx)(Ve,{id:"lc-expert-model",value:Oy.some(f=>f.value===o)?o:jy,onChange:f=>a(f===jy?"":f),style:{width:"100%",marginBottom:6},options:[...Oy.map(f=>({value:f.value,label:f.label})),{value:jy,label:"Something else\u2026"}]}),!Oy.some(f=>f.value===o)&&(0,H.jsx)("input",{type:"text",value:o,placeholder:"e.g. claude-sonnet-4-5-20250929",onChange:f=>a(f.target.value),style:G()}),(0,H.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Aliases track the newest release of that tier. A smaller model makes consultations cheaper, at some cost to their quality."})]}),(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:16},children:[(0,H.jsx)("label",{style:V(),children:"Budget per task"}),(0,H.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,H.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Stop after"}),(0,H.jsx)("input",{type:"number",min:"0",step:"0.25",value:l,onChange:f=>c(f.target.value),"aria-label":"Maximum spend per task in dollars",style:{...G(),width:90}}),(0,H.jsx)("span",{style:{color:s.muted,fontSize:11},children:"dollars, or"}),(0,H.jsx)("input",{type:"number",min:"0",step:"1",value:u,onChange:f=>d(f.target.value),"aria-label":"Maximum consultations per task",style:{...G(),width:70}}),(0,H.jsx)("span",{style:{color:s.muted,fontSize:11},children:"consultations \u2014 whichever comes first."})]}),(0,H.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:10},children:[(0,H.jsx)("button",{type:"button",style:C(),disabled:e.expert?.available!==!0||e.expert.measuringStep!==void 0,onClick:e.onMeasureCost,children:e.expert?.measuringStep!==void 0?"Measuring\u2026":"Measure what a consultation costs"}),e.expert?.pricing!==void 0&&(0,H.jsx)("button",{type:"button",style:C(),onClick:e.onClearPricing,children:"Clear"})]}),e.expert?.measuringStep!==void 0&&(0,H.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"6px 0 0"},children:e.expert.measuringStep}),e.expert?.measuringStep===void 0&&e.expert?.pricing===void 0&&(0,H.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"6px 0 0"},children:["This makes ",(0,H.jsx)("strong",{children:"two real consultations"})," \u2014 one cold, one resumed \u2014 and costs what they cost. It is the only way to learn the price here, and the ratio between the two is what the budget advice depends on."]}),e.expert?.pricing!==void 0&&(0,H.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"6px 0 0"},children:[Yv(e.expert.pricing)," ",(0,H.jsxs)("span",{style:{opacity:.75},children:["Measured ",new Date(e.expert.pricing.measuredAt).toLocaleDateString(),". The expert is told these numbers so it plans in them."]})]}),(0,H.jsx)(zw,{savings:e.expert?.savings}),(0,H.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"12px 0 0",cursor:e.expert?.available===!0?"pointer":"not-allowed",opacity:e.expert?.available===!0?1:.55},children:[(0,H.jsx)("input",{type:"checkbox",checked:e.expert?.keepAlive===!0,disabled:e.expert?.available!==!0,onChange:f=>e.onSetKeepAlive(f.target.checked),style:{marginTop:2}}),(0,H.jsxs)("span",{children:[(0,H.jsx)("span",{style:{display:"block",fontSize:13},children:"Keep the session warm during a task"}),(0,H.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["The expert\u2019s cache lasts an hour, so a long break means the next consultation pays full price again. This sends one trivial consultation every fifty minutes while a task has a session open \u2014 roughly a fiftieth of the cold start it avoids."," ",(0,H.jsx)("strong",{children:"It spends while you are away"}),", so it is counted in the meter like anything else. It never starts a session, and stops when the budget is spent or the task ends."]})]})]}),e.expert?.reportsCost===!1&&(0,H.jsxs)("p",{style:{color:s.error,fontSize:11,margin:"6px 0 0"},children:[(0,H.jsx)("strong",{children:"Your plan does not report a cost per consultation"}),", so the spending limit above can never be reached \u2014 the running total stays at zero. Use the consultation limit instead; it is checked first and works on any plan."]}),e.expert!==void 0&&e.expert.reportsCost===void 0&&(0,H.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"6px 0 0"},children:"Whether the spending limit can apply depends on your plan reporting a cost. That is settled by the first consultation, and this will say so once it has."}),(0,H.jsx)("span",{style:{color:s.muted,fontSize:11},children:"0 means no limit. When a limit is reached the expert stops being offered for that task and the assistant carries on alone; starting a new task resets it. A count limit is worth setting even if you set a spend limit, because the CLI does not always report a price and an unpriced consultation still costs money."})]}),(0,H.jsxs)("div",{style:{padding:8,marginBottom:16,borderRadius:3,border:`1px solid ${s.border}`,color:s.muted,fontSize:11},children:[(0,H.jsx)("strong",{style:{color:s.foreground},children:"What the expert may do:"})," read and search this workspace, so it can gather its own context. It cannot edit files or run commands. Every change still goes through Light Code\u2019s own tools and your approval, so nothing reaches your repository without passing the usual prompt."]}),(0,H.jsxs)("div",{style:{marginBottom:16,border:`1px solid ${s.border}`,borderRadius:3,padding:8},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,H.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"How good is the junior?"}),(0,H.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,H.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px"},disabled:e.expert?.assessing===!0||!p,title:p?"Ask the junior five short questions, then have the expert grade the answers. Costs one consultation.":"Needs the Claude CLI \u2014 the assessment is the expert\u2019s judgement.",onClick:e.onAssess,children:e.expert?.assessment===void 0?"Assess it":"Assess again"}),e.expert?.assessment!==void 0&&(0,H.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px"},onClick:e.onClearAssessment,children:"Clear"})]})]}),(0,H.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"6px 0 0"},children:"The junior answers five short probes and the expert grades the actual answers \u2014 not the model\u2019s name, which would be a recollection rather than a measurement. The verdict is given back to the expert on later tasks so it sizes its plans to what this model can really do."}),e.expert?.assessing===!0&&(0,H.jsx)("p",{style:{color:s.muted,fontSize:11,marginBottom:0},children:e.expert.assessmentStep??"Working\u2026"}),e.expert?.assessment!==void 0&&(0,H.jsx)($j,{assessment:e.expert.assessment,currentModel:e.expert.model??o})]}),(0,H.jsx)("button",{type:"button",style:me(!1),onClick:()=>e.onSave(t,r.trim(),o.trim(),{maxSpendUsd:m(l),maxConsultations:Math.round(m(u))}),children:"Save"})]})}function $j(e){let[t,n]=(0,li.useState)(!1),{assessment:r}=e,i=r.model!==e.currentModel&&e.currentModel.length>0;return(0,H.jsxs)("div",{style:{marginTop:8},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap",fontSize:11},children:[(0,H.jsx)("span",{style:{fontFamily:Tw,color:s.foreground},children:r.model}),(0,H.jsxs)("span",{style:{color:s.muted},children:["via ",r.profileLabel," \xB7 ",new Date(r.assessedAt).toLocaleDateString(),r.costUsd!==void 0?` \xB7 $${r.costUsd.toFixed(4)}`:""]}),i&&(0,H.jsx)("span",{style:{...Je("warning"),fontSize:9},title:"Assessed for a different model than the one now active",children:"different model"})]}),(0,H.jsx)("div",{style:{whiteSpace:"pre-wrap",fontSize:11,color:s.foreground,marginTop:6,paddingLeft:8,borderLeft:`2px solid ${s.expert}`},children:r.verdict}),(0,H.jsxs)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",marginTop:6},onClick:()=>n(o=>!o),children:[t?"Hide":"Show"," what it answered (",r.probes.length,")"]}),t&&r.probes.map(o=>(0,H.jsxs)("div",{style:{marginTop:8,fontSize:11},children:[(0,H.jsx)("div",{style:{color:s.foreground},children:o.measures}),(0,H.jsx)("pre",{style:{margin:"3px 0 0",padding:6,whiteSpace:"pre-wrap",fontFamily:Tw,fontSize:10,color:o.error!==void 0?s.error:s.muted,background:s.inputBackground,borderRadius:3},children:o.error!==void 0?`No answer \u2014 ${o.error}`:o.answer.trim()||"(empty)"})]},o.id))]})}var R=P(ie(),1),Jt=P(ge(),1);var te=P(ie(),1),jn=P(ge(),1);var zj=[384,768,1024,1536,3072];function Ew(e){let[t,n]=(0,jn.useState)(""),[r,i]=(0,jn.useState)(""),[o,a]=(0,jn.useState)(""),[l,c]=(0,jn.useState)(""),[u,d]=(0,jn.useState)(""),[m,p]=(0,jn.useState)(!1),[f,x]=(0,jn.useState)(!1);(0,jn.useEffect)(()=>{n(e.embedder?.profileId??""),i(e.embedder?.model??""),a(e.embedder?.dimensions!==void 0?String(e.embedder.dimensions):""),c(e.embedder?.indexNameIsCustom===!0?e.embedder.indexName??"":""),d(e.embedder?.indexPrefix??"")},[e.embedder]),(0,jn.useEffect)(()=>{t.length>0&&e.onRequestModels(t)},[t]),(0,jn.useEffect)(()=>{if(e.savedTick===0)return;x(!0);let v=setTimeout(()=>x(!1),3e3);return()=>clearTimeout(v)},[e.savedTick]);let _=e.progress!==void 0&&e.progress.phase!=="done",Z=Number.parseInt(o,10),g=t.length>0&&r.trim().length>0&&Number.isFinite(Z)&&Z>0,h=e.profiles.find(v=>v.id===t),y=g&&e.connectionLabel!==void 0&&e.embedder?.indexName!==void 0;return(0,te.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginTop:12},children:[(0,te.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Codebase indexing"}),(0,te.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 10px"},children:"Lets the model search this workspace by meaning rather than by exact text \u2014 useful when you do not know what something is called. Optional, and off until you index."}),(0,te.jsxs)("div",{style:{marginBottom:10},children:[(0,te.jsx)("label",{htmlFor:"lc-emb-profile",style:V(),children:"Embedding provider"}),(0,te.jsx)(Ve,{id:"lc-emb-profile",value:t,onChange:n,style:{width:"100%"},options:[{value:"",label:"Choose a provider profile\u2026"},...e.profiles.map(v=>({value:v.id,label:v.label}))]}),(0,te.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Reuses an existing profile's URL, credentials and certificates \u2014 one place to get mutual TLS right instead of two.",h!==void 0&&` Requests go to ${h.baseUrl}.`]})]}),(0,te.jsxs)("div",{style:{marginBottom:10},children:[(0,te.jsx)("label",{htmlFor:"lc-emb-model",style:V(),children:"Embedding model"}),e.models.length>0&&(0,te.jsx)(Ve,{ariaLabel:"Available models",value:e.models.includes(r)?r:"",onChange:v=>{v.length>0&&i(v)},style:{width:"100%",marginBottom:4},options:[{value:"",label:`Choose from ${e.models.length} model(s)\u2026`},...e.models.map(v=>({value:v,label:v}))]}),(0,te.jsx)("input",{id:"lc-emb-model",type:"text",value:r,spellCheck:!1,placeholder:"text-embedding-3-small",onChange:v=>i(v.target.value),style:G()}),(0,te.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:[t.length===0?"Choose a provider above to see what it offers.":e.modelsLoading?"Fetching the model list\u2026":e.models.length===0?`No catalogue from this provider${e.modelsWarning!==void 0?` (${e.modelsWarning})`:""} \u2014 type the model name.`:"Pick one, or type a name the list does not include."," ","An embedding model, not a chat model."]})]}),(0,te.jsxs)("div",{style:{marginBottom:10},children:[(0,te.jsx)("label",{htmlFor:"lc-emb-dims",style:V(),children:"Vector width"}),(0,te.jsx)("input",{id:"lc-emb-dims",type:"number",list:"lc-emb-dims-common",value:o,placeholder:"1536",onChange:v=>a(v.target.value),style:{...G(),width:160}}),(0,te.jsx)("datalist",{id:"lc-emb-dims-common",children:zj.map(v=>(0,te.jsx)("option",{value:v},v))}),(0,te.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"Must match what the model actually returns \u2014 OpenSearch fixes this when the index is created. Getting it wrong fails on the first batch with the real width in the message."})]}),(0,te.jsxs)("div",{style:{marginBottom:10},children:[(0,te.jsx)("label",{htmlFor:"lc-emb-prefix",style:V(),children:"Index name prefix"}),(0,te.jsx)("input",{id:"lc-emb-prefix",type:"text",value:u,spellCheck:!1,placeholder:e.embedder?.defaultIndexPrefix??"light-code",onChange:v=>d(v.target.value),style:G()}),(0,te.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Front of both derived names \u2014 the codebase index and the ",(0,te.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"-docs"})," ","one \u2014 so a shared cluster shows at a glance whose collections are whose. Lowercase letters, digits, dot, dash and underscore. Changing it points at ",(0,te.jsx)("em",{children:"new"}),", empty collections; the old ones keep their data until you delete them in OpenSearch."]})]}),(0,te.jsxs)("div",{style:{marginBottom:10},children:[(0,te.jsx)("label",{htmlFor:"lc-emb-index",style:V(),children:"Index name"}),(0,te.jsx)("input",{id:"lc-emb-index",type:"text",value:l,spellCheck:!1,placeholder:e.embedder?.indexName??"derived from the workspace path",onChange:v=>c(v.target.value),style:G()}),(0,te.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"Leave blank and one is derived from this folder's path \u2014 collision-free, but nobody looking at the cluster can tell whose it is. Name it if you share a cluster. Also how you move to a new index after changing the embedding model: a vector field's width is fixed when the index is created, so a different width needs a different index."})]}),(0,te.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:12},children:[(0,te.jsx)("button",{type:"button",style:C(),disabled:!g,onClick:()=>e.onSaveEmbedder(t,r.trim(),Z,l.trim(),u.trim()),children:"Save embedder"}),!g&&(0,te.jsx)("span",{style:{fontSize:11,color:s.muted},children:t.length===0?"Choose a provider first.":r.trim().length===0?"Enter or pick an embedding model.":"Enter the vector width."}),g&&f&&(0,te.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saved."}),e.embedder?.indexedFiles!==void 0&&e.embedder.indexedFiles>0&&(0,te.jsxs)("span",{style:{fontSize:11,color:s.muted},children:[e.embedder.indexedFiles," file(s) indexed"]})]}),y&&!_&&(0,te.jsxs)("div",{style:{fontSize:11,color:s.muted,border:`1px solid ${s.border}`,borderRadius:3,padding:"8px 10px",marginBottom:8},children:["Indexing reads every source file in this workspace, sends it to"," ",(0,te.jsx)("strong",{style:{color:s.foreground},children:h?.baseUrl??"the embedding endpoint"})," to be embedded, and stores the result in"," ",(0,te.jsx)("strong",{style:{color:s.foreground},children:e.embedder?.indexName})," on"," ",(0,te.jsx)("strong",{style:{color:s.foreground},children:e.connectionLabel}),". Files that are gitignored, deny-listed or binary are never sent."]}),_?(0,te.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,te.jsx)("button",{type:"button",style:C(),onClick:e.onCancelIndexing,children:"Stop"}),(0,te.jsxs)("span",{style:{fontSize:11,color:s.muted},children:[e.progress?.phase," \u2014 ",e.progress?.filesIndexed," indexed, ",e.progress?.filesSkipped," skipped",e.progress?.current!==void 0&&` \xB7 ${e.progress.current}`]})]}):m?(0,te.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,te.jsx)("span",{style:{fontSize:12},children:"Send this workspace to be embedded?"}),(0,te.jsx)("button",{type:"button",style:me(!1),onClick:()=>{p(!1),e.onStartIndexing()},children:"Index now"}),(0,te.jsx)("button",{type:"button",style:C(),onClick:()=>p(!1),children:"Cancel"})]}):(0,te.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,te.jsx)("button",{type:"button",style:me(!y),disabled:!y,onClick:()=>p(!0),children:e.embedder!==void 0&&e.embedder.indexedFiles>0?"Reindex workspace":"Index workspace"}),!y&&(0,te.jsx)("span",{style:{fontSize:11,color:s.muted},children:e.connectionLabel===void 0?"Choose an active connection above first.":e.embedder?.indexName===void 0?"Open a folder to index.":"Save an embedder first."})]}),e.lastResult?.error!==void 0&&(0,te.jsx)("div",{style:{fontSize:11,color:s.error,marginTop:8},children:e.lastResult.error}),e.lastResult?.result!==void 0&&!_&&(0,te.jsxs)("div",{style:{fontSize:11,color:s.muted,marginTop:8},children:["Indexed ",e.lastResult.result.filesIndexed," file(s), ",e.lastResult.result.chunksWritten," chunk(s)",e.lastResult.result.filesRemoved>0&&`, removed ${e.lastResult.result.filesRemoved}`,".",Object.keys(e.lastResult.result.skipReasons).length>0&&(0,te.jsxs)("span",{children:[" ","Skipped:"," ",Object.entries(e.lastResult.result.skipReasons).map(([v,j])=>`${j} ${v}`).join(", "),"."]})]})]})}var xe=P(ie(),1);function Dw(e){let t=e.hiddenTools>=15;return(0,xe.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,xe.jsx)("span",{style:V(),children:"Tool documentation index"}),(0,xe.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"6px 0 8px",cursor:"pointer"},children:[(0,xe.jsx)("input",{type:"checkbox",checked:e.enabled,onChange:n=>e.onToggle(n.target.checked),style:{marginTop:2}}),(0,xe.jsxs)("span",{children:[(0,xe.jsx)("span",{style:{display:"block",fontSize:13},children:"Keep tool schemas out of the prompt"}),(0,xe.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["MCP and Python tools stop being listed in every request. The model finds them with"," ",(0,xe.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"search_docs"})," and runs them through ",(0,xe.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"call_tool"}),". You still approve everything exactly as before."]})]})]}),(0,xe.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 10px"},children:e.hiddenTools===0?(0,xe.jsx)(xe.Fragment,{children:"No MCP or Python tools to hide, so nothing is registered for this and it costs nothing."}):(0,xe.jsxs)(xe.Fragment,{children:[e.enabled?"Hiding":"Would hide"," ",(0,xe.jsx)("strong",{style:{color:s.foreground},children:e.hiddenTools})," ",e.hiddenTools===1?"tool":"tools","."," ",t?(0,xe.jsx)(xe.Fragment,{children:"That is enough to be worth it."}):(0,xe.jsx)(xe.Fragment,{children:"With this few, leaving it off is probably better \u2014 models call a listed tool more reliably than one named through a dispatcher."})]})}),(0,xe.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"0 0 8px",cursor:e.enabled?"pointer":"not-allowed",opacity:e.enabled?1:.55},children:[(0,xe.jsx)("input",{type:"checkbox",checked:e.skills&&e.enabled,disabled:!e.enabled,onChange:n=>e.onToggleSkills(n.target.checked),style:{marginTop:2}}),(0,xe.jsxs)("span",{children:[(0,xe.jsx)("span",{style:{display:"block",fontSize:13},children:"Look up skills the same way"}),(0,xe.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Skill summaries stop being listed in every request. A count and an instruction to search stay, so the assistant still knows notes exist and looks for one before working on something unfamiliar."," ",e.hiddenSkills===0?"No skills recorded yet, so this changes nothing today.":`${String(e.hiddenSkills)} ${e.hiddenSkills===1?"skill":"skills"} affected.`,!e.enabled&&" Needs the setting above, which is what finds them."]})]})]}),(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,xe.jsx)("button",{type:"button",style:C(),disabled:e.indexing||!e.retrievalReady,title:e.retrievalReady?"Embed the tool and skill documentation so search_docs can match by meaning":"Needs a search connection and an embedding model. Without them search_docs still works, matching names and descriptions.",onClick:()=>e.onIndexDocs(),children:e.indexing?"Indexing\u2026":"Index everything"}),(0,xe.jsx)("button",{type:"button",style:C(),disabled:e.indexing||!e.retrievalReady,title:"Reindex tool documentation only, leaving skills untouched",onClick:()=>e.onIndexDocs("tool"),children:"Tools only"}),(0,xe.jsx)("button",{type:"button",style:C(),disabled:e.indexing||!e.retrievalReady,title:"Reindex skills only, leaving tool documentation untouched",onClick:()=>e.onIndexDocs("skill"),children:"Skills only"}),(0,xe.jsx)("button",{type:"button",style:C(),disabled:e.indexing||!e.retrievalReady,title:"Remove every indexed tool and skill document. search_docs falls back to matching names and descriptions until you index again.",onClick:e.onClearDocsIndex,children:"Clear index"}),e.docsIndex!==void 0&&(0,xe.jsx)("span",{style:{color:s.muted,fontSize:11,fontFamily:"var(--vscode-editor-font-family, monospace)"},children:e.docsIndex})]}),!e.retrievalReady&&(0,xe.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"8px 0 0"},children:["No embedding model configured, so ",(0,xe.jsx)("code",{children:"search_docs"})," matches on names and descriptions instead of by meaning. Tools remain findable either way."]}),e.result?.error!==void 0&&(0,xe.jsx)("p",{style:{color:s.error,fontSize:11,margin:"8px 0 0"},children:e.result.error}),e.result?.indexed!==void 0&&e.result.error===void 0&&(0,xe.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"8px 0 0",fontFamily:B},children:["Indexed ",e.result.indexed," ",e.result.indexed===1?"entry":"entries",e.result.index!==void 0?` into ${e.result.index}`:"","."]})]})}var Ue=P(ie(),1),Ny=P(ge(),1);var Uy="var(--vscode-editor-font-family, monospace)";function Iw(e){let[t,n]=(0,Ny.useState)(""),[r,i]=(0,Ny.useState)("docs"),o=()=>{t.trim().length>0&&e.onProbe(t.trim(),r)};return(0,Ue.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,Ue.jsx)("span",{style:V(),children:"Try a query"}),(0,Ue.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:"Runs through the same path the model uses, so what you see here is what it would have been given. Nothing is sent to the model."}),(0,Ue.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,Ue.jsx)(Ve,{compact:!0,value:r,ariaLabel:"What to search",onChange:a=>i(a),options:[{value:"docs",label:"Tools & skills"},{value:"codebase",label:"Codebase"}]}),(0,Ue.jsx)("input",{type:"text",value:t,spellCheck:!1,"aria-label":"Query",placeholder:"e.g. where do we upload a report",onKeyDown:a=>{a.key==="Enter"&&o()},onChange:a=>n(a.target.value),style:{...G(),flex:1,minWidth:160}}),(0,Ue.jsx)("button",{type:"button",style:C(),disabled:e.probeRunning,onClick:o,children:e.probeRunning?"Searching\u2026":"Search"})]}),e.probe!==void 0&&(0,Ue.jsxs)("div",{style:{marginBottom:12},children:[(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,Ue.jsxs)("span",{style:{color:s.muted,fontSize:11},children:["Result for \u201C",e.probe.query,"\u201D"]}),(0,Ue.jsx)("button",{type:"button",style:{...C(),marginLeft:"auto",fontSize:10,padding:"1px 6px"},title:"Dismiss this result. The query stays in the log below.",onClick:e.onClearProbe,children:"Clear result"})]}),e.probe.error!==void 0&&(0,Ue.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 4px"},children:e.probe.error}),e.probe.text.length>0&&(0,Ue.jsx)("pre",{className:"lc-scroll",style:{margin:0,padding:8,maxHeight:260,overflow:"auto",background:s.inputBackground,border:`1px solid ${s.border}`,borderRadius:8,fontFamily:Uy,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.probe.text})]}),(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[(0,Ue.jsx)("span",{style:V(),children:"Recent searches"}),e.entries.length>0&&(0,Ue.jsx)("button",{type:"button",style:{...C(),marginLeft:"auto",fontSize:11},onClick:e.onClear,children:"Clear"})]}),e.entries.length===0?(0,Ue.jsx)("p",{style:{color:s.muted,fontSize:11,margin:0},children:"Nothing yet. Searches the model runs \u2014 and any you try above \u2014 appear here."}):(0,Ue.jsx)("div",{className:"lc-scroll",style:{maxHeight:280,overflowY:"auto"},children:e.entries.map((a,l)=>(0,Ue.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`,fontSize:11},children:[(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,Ue.jsx)("span",{style:{fontFamily:Uy,color:s.accent},children:a.source}),a.via!==void 0&&(0,Ue.jsx)("span",{style:{...Je(a.via==="lexical"?"warning":"neutral"),fontSize:9},title:a.via==="index"?"Matched by meaning, using the vector index":"Matched on names and descriptions \u2014 the index was not used",children:a.via==="index"?"semantic":"lexical"}),(0,Ue.jsxs)("span",{style:{marginLeft:"auto",color:s.muted,fontVariantNumeric:"tabular-nums"},children:[a.hits," ",a.hits===1?"hit":"hits"," \xB7 ",a.elapsedMs,"ms"]})]}),(0,Ue.jsx)("div",{style:{marginTop:2,wordBreak:"break-word"},children:a.query}),a.collection!==void 0&&(0,Ue.jsx)("div",{style:{color:s.muted,fontSize:10,fontFamily:Uy},children:a.collection}),a.error!==void 0&&(0,Ue.jsx)("div",{style:{color:s.error,fontSize:10,marginTop:2},children:a.error})]},`${String(a.at)}-${String(l)}`))}),(0,Ue.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10,marginTop:6,fontFamily:B},children:"Kept in memory for this session only \u2014 this is a diagnostic view, not the audit log."})]})}var On=P(ie(),1),Aw=P(ge(),1);function ci(e){let[t,n]=(0,Aw.useState)(!e.hasValue);return t?(0,On.jsxs)("div",{style:{marginBottom:16},children:[(0,On.jsx)("label",{htmlFor:e.id,style:V(),children:e.label}),(0,On.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,On.jsx)("input",{id:e.id,type:"password",value:e.value,placeholder:e.placeholder??"sk-...",onChange:r=>e.onChange(r.target.value),style:G()}),e.hasValue&&(0,On.jsx)("button",{type:"button",style:C(),onClick:()=>{e.onChange(""),n(!1)},children:"Cancel"})]})]}):(0,On.jsxs)("div",{style:{marginBottom:16},children:[(0,On.jsx)("label",{style:V(),children:e.label}),(0,On.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,On.jsx)("span",{children:"Set"}),(0,On.jsx)("button",{type:"button",style:C(),onClick:()=>n(!0),children:"Replace"})]})]})}var jw={id:"",label:"",kind:"qdrant",url:"",hasUsername:!1,hasPassword:!1},ta=[{kind:"qdrant",label:"Qdrant \u2014 local",url:"http://127.0.0.1:6333",hint:"A single container, nothing leaves your machine. The usual choice for indexing code privately.",run:"docker run -p 6333:6333 qdrant/qdrant"},{kind:"chroma",label:"Chroma \u2014 local",url:"http://127.0.0.1:8000",hint:"Also local. Needs Chroma 1.0 or newer \u2014 the v1 API it replaced is not supported.",run:"docker run -p 8000:8000 chromadb/chroma"},{kind:"opensearch",label:"OpenSearch \u2014 a cluster you already run",url:"https://opensearch.internal:9200",hint:"The only backend that can also query indexes your organisation already has, with raw DSL."}];function na(e){let t=e.value!==void 0&&(e.value<e.min||e.max!==void 0&&e.value>e.max);return(0,R.jsxs)("div",{style:{marginBottom:8},title:e.tooltip,children:[(0,R.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,R.jsxs)("label",{htmlFor:e.id,style:{...V(),marginBottom:0,flex:1},children:[e.label,(0,R.jsx)("span",{"aria-hidden":"true",style:{marginLeft:4,opacity:.6,cursor:"help",fontSize:10,border:`1px solid ${s.border}`,borderRadius:"50%",padding:"0 4px"},children:"?"}),(0,R.jsxs)("span",{style:{display:"block",fontSize:10,opacity:.8},children:[e.hint!==void 0?`${e.hint} `:"",e.max!==void 0?`Allowed: ${e.min}\u2013${e.max}.`:`Minimum ${e.min}.`]})]}),(0,R.jsx)("input",{id:e.id,type:"number",min:e.min,...e.max!==void 0?{max:e.max}:{},value:e.value??"",placeholder:e.placeholder,onChange:n=>{let r=Number.parseInt(n.target.value,10);e.onChange(Number.isNaN(r)?void 0:r)},style:{...G(),width:110,flex:"none",...t?{borderColor:"var(--vscode-inputValidation-errorBorder, red)"}:{}}})]}),t&&(0,R.jsx)("div",{style:{fontSize:11,color:"var(--vscode-errorForeground, red)",textAlign:"right"},children:e.max!==void 0?`Must be between ${e.min} and ${e.max}.`:`Must be at least ${e.min}.`})]})}var ia={maxHits:{min:1,max:100},timeoutSeconds:{min:1,max:120},terminateAfter:{min:0},maxIndexes:{min:0},defaultLookbackHours:{min:0},maxFieldChars:{min:50,max:2e4}};function Ow(e){let[t,n]=(0,Jt.useState)(void 0),[r,i]=(0,Jt.useState)(""),[o,a]=(0,Jt.useState)(""),[l,c]=(0,Jt.useState)("qdrant"),[u,d]=(0,Jt.useState)(""),[m,p]=(0,Jt.useState)(""),[f,x]=(0,Jt.useState)(!1),[_,Z]=(0,Jt.useState)(""),[g,h]=(0,Jt.useState)(""),[y,v]=(0,Jt.useState)({}),[j,X]=(0,Jt.useState)(!1);(0,Jt.useEffect)(()=>{j&&(X(!1),n(void 0))},[e.savedTick]),(0,Jt.useEffect)(()=>{let T=t??jw;i(T.label),a(T.url),c(T.kind),d(T.defaultIndex??""),p(T.caFile??""),x(T.rejectUnauthorized===!1),Z(""),h(""),v(T.limits??{})},[t]);let L=()=>({...t!==void 0&&t.id.length>0?{id:t.id}:{},label:r,url:o,kind:l,defaultIndex:u,caFile:m,...f?{rejectUnauthorized:!1}:{},..._.length>0?{username:_}:{},...g.length>0?{password:g}:{},...Object.keys(y).length>0?{limits:y}:{}});return t!==void 0?(0,R.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,R.jsx)("h3",{style:{margin:"0 0 12px",color:s.foreground},children:t.id.length===0?"Add a vector store":"Edit connection"}),(0,R.jsxs)("div",{style:{marginBottom:12},children:[(0,R.jsx)("label",{htmlFor:"lc-os-kind",style:V(),children:"Backend"}),(0,R.jsx)(Ve,{id:"lc-os-kind",value:l,onChange:T=>{let Q=ta.find(W=>W.kind===T);c(T);let z=ta.map(W=>W.url);Q!==void 0&&(o.trim().length===0||z.includes(o.trim()))&&a(Q.url)},options:ta.map(T=>({value:T.kind,label:T.label}))}),(0,R.jsx)("span",{style:{color:s.muted,fontSize:11},children:ta.find(T=>T.kind===l)?.hint}),(()=>{let T=ta.find(Q=>Q.kind===l)?.run;return T===void 0?null:(0,R.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:4},children:["Not running one yet?"," ",(0,R.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:T})]})})()]}),(0,R.jsxs)("div",{style:{marginBottom:12},children:[(0,R.jsx)("label",{htmlFor:"lc-os-label",style:V(),children:"Name"}),(0,R.jsx)("input",{id:"lc-os-label",type:"text",value:r,placeholder:"Production",onChange:T=>i(T.target.value),style:G()})]}),(0,R.jsxs)("div",{style:{marginBottom:12},children:[(0,R.jsx)("label",{htmlFor:"lc-os-url",style:V(),children:l==="opensearch"?"Cluster URL":"Server URL"}),(0,R.jsx)("input",{id:"lc-os-url",type:"text",value:o,placeholder:ta.find(T=>T.kind===l)?.url??"",onChange:T=>a(T.target.value),style:G()})]}),(0,R.jsxs)("div",{style:{marginBottom:12},children:[(0,R.jsx)("label",{htmlFor:"lc-os-user",style:V(),children:"Username"}),(0,R.jsx)("input",{id:"lc-os-user",type:"text",value:_,placeholder:t.hasUsername?"Set \u2014 type to replace":"",onChange:T=>Z(T.target.value),style:G()})]}),(0,R.jsx)(ci,{id:"lc-os-password",label:"Password",hasValue:t.hasPassword,value:g,onChange:h,placeholder:"Stored in the OS keychain"}),(0,R.jsxs)("div",{style:{marginBottom:12},children:[(0,R.jsx)("label",{htmlFor:"lc-os-index",style:V(),children:"Default index"}),(0,R.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,R.jsx)("input",{id:"lc-os-index",type:"text",value:u,placeholder:"Used when the model names no index",onChange:T=>d(T.target.value),style:G()}),(0,R.jsx)("button",{type:"button",style:C(),onClick:()=>e.onListIndexes(L()),children:"List"})]}),e.indexes.length>0&&(0,R.jsx)(Ve,{ariaLabel:"Available indexes",value:e.indexes.some(T=>T.name===u)?u:"",onChange:T=>{T.length>0&&d(T)},style:{width:"100%"},options:[{value:"",label:`Choose from ${e.indexes.length} index(es)\u2026`},...e.indexes.map(T=>({value:T.name,label:T.name,detail:[T.docsCount!==void 0?`${T.docsCount.toLocaleString()} docs`:void 0,T.storeSize].filter(Q=>Q!==void 0).join(", ")}))]}),e.indexesWarning!==void 0&&e.indexes.length===0&&(0,R.jsxs)("span",{style:{color:s.muted,fontSize:11,display:"block",marginTop:4},children:["Could not list indexes (",e.indexesWarning,"). Type the name instead."]})]}),(0,R.jsx)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginBottom:12},children:(0,R.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Connection security"})}),(0,R.jsxs)("div",{style:{marginBottom:10},children:[(0,R.jsx)("label",{htmlFor:"lc-os-ca",style:V(),children:"Additional CA certificate"}),(0,R.jsx)("input",{id:"lc-os-ca",type:"text",value:m,placeholder:"corp-root.pem",onChange:T=>p(T.target.value),style:G()}),(0,R.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Usually blank \u2014 the CA in Settings \u2192 Network already covers this cluster. Anything set here is added to it."})]}),(0,R.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,R.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:f,onChange:T=>x(T.target.checked)}),(0,R.jsx)("span",{style:{color:s.foreground},children:"Skip certificate verification"})]}),f&&(0,R.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can read and modify it, including the password. The CA file above is the safe fix."}),(0,R.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginBottom:8},children:[(0,R.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Query limits"}),(0,R.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Guard rails on the queries the model writes. It cannot change anything in the cluster \u2014 but a read can still be expensive, so these keep one bounded. Defaults are chosen to be safe on a large cluster; raise them if you know yours can take it."})]}),(0,R.jsx)(na,{id:"lc-os-hits",...ia.maxHits,label:"Maximum results",hint:"Documents returned per search.",tooltip:`How many documents one search returns.
94
+ /data`,onChange:k=>h({args:k.target.value.split(`
95
+ `)}),style:{width:"100%",boxSizing:"border-box",background:c.inputBackground,color:c.inputForeground,border:`1px solid ${c.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:rs,fontSize:12,resize:"vertical"}}),(0,ne.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:"One per line \u2014 not a command line, so nothing is split on spaces and quoting is never needed. A path containing a space goes on its own line as-is."})]}),(0,ne.jsx)(xn,{id:"lc-mcp-cwd",label:"Working directory",value:r.cwd,placeholder:"Optional",hint:"Where the process starts. Set it if your server reads files by relative path.",browse:{purpose:"mcp.cwd",kind:"folder"},onBrowse:e.onBrowse,onChange:k=>h({cwd:k})}),(0,ne.jsx)(Xj,{value:r.timeout,error:m("timeout"),onChange:k=>h({timeout:k})}),(0,ne.jsx)(qw,{idPrefix:"lc-mcp-env",label:"Environment variables",hint:"Use ${secret:NAME} for a credential \u2014 it is read from secret storage at launch and never written to the config file. Provider API keys are never passed through.",pairs:r.env,onChange:k=>h({env:k})})]}),(0,ne.jsxs)("div",{style:{marginBottom:12},children:[(0,ne.jsxs)("label",{style:q(),children:[r.kind==="http"?"Connects to":"Will run",(0,ne.jsx)("span",{style:{marginLeft:6,fontWeight:"normal",textTransform:"none",opacity:.7},children:f?.transport})]}),(0,ne.jsx)("div",{style:{fontFamily:rs,fontSize:11,color:c.muted,background:c.inputBackground,border:`1px solid ${c.border}`,borderRadius:2,padding:"6px 8px",wordBreak:"break-all"},children:x.trim().length>0?x:"\u2014"})]}),(0,ne.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,ne.jsx)("button",{type:"button",style:se(!1),onClick:()=>{a(!0),!d&&e.onSave(t.trim(),e.initialName.length>0?e.initialName:void 0,Qu(r,e.platform,e.initialConfig))},children:"Save"}),(0,ne.jsx)("button",{type:"button",style:$(),onClick:e.onCancel,children:"Cancel"}),e.saving&&(0,ne.jsx)("span",{style:{fontSize:11,color:c.muted},children:"Saving\u2026"}),o&&d&&(0,ne.jsx)("span",{style:{fontSize:11,color:c.error},children:"Fix the fields above."})]})]})}function Xj(e){return(0,ne.jsxs)("div",{style:{marginBottom:12},children:[(0,ne.jsx)("label",{htmlFor:"lc-mcp-timeout",style:q(),children:"Tool call timeout"}),(0,ne.jsx)("input",{id:"lc-mcp-timeout",inputMode:"numeric",value:e.value,placeholder:"Seconds \u2014 blank for the default",onChange:t=>e.onChange(t.target.value),style:{...H(),...e.error!==void 0?{borderColor:c.error}:{}}}),(0,ne.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:"Applies to each call, not to the session. Raise it for a server that queries something large; a call that exceeds it is cancelled and the error names this number."}),e.error!==void 0&&(0,ne.jsx)("span",{style:Pt(),children:e.error})]})}var ma="var(--vscode-editor-font-family, monospace)",Kj={ready:"var(--vscode-testing-iconPassed, #3fb950)",connecting:"var(--vscode-descriptionForeground)",idle:"var(--vscode-descriptionForeground)",disabled:"var(--vscode-descriptionForeground)",failed:"var(--vscode-errorForeground)"},Yv=[{value:"always",label:"Always",title:"Run without asking, in this workspace"},{value:"ask",label:"Ask",title:"Ask for approval every time"},{value:"never",label:"Never",title:"Hide this tool from the model entirely"}];function Wj(e){return(0,te.jsx)("div",{style:{display:"flex",flexShrink:0},children:Yv.map((t,n)=>{let r=t.value===e.value;return(0,te.jsx)("button",{type:"button",title:t.title,onClick:()=>e.onChange(t.value),style:{padding:"1px 7px",fontFamily:P,fontSize:10,cursor:"pointer",background:r?c.accent:"transparent",color:r?c.buttonForeground:c.muted,border:`1px solid ${r?c.accent:c.border}`,borderLeftWidth:n===0?1:0,borderTopLeftRadius:n===0?3:0,borderBottomLeftRadius:n===0?3:0,borderTopRightRadius:n===Yv.length-1?3:0,borderBottomRightRadius:n===Yv.length-1?3:0},children:t.label},t.value)})})}var Qj={ready:"ready",connecting:"starting\u2026",idle:"not started",disabled:"disabled",failed:"failed"};function eO(e){let{server:t}=e,[n,r]=(0,Sn.useState)(!1),[i,o]=(0,Sn.useState)(!1),a=t.status==="ready"||t.status==="connecting";return(0,te.jsxs)("div",{style:{borderBottom:`1px solid ${c.border}`,padding:"6px 0"},children:[(0,te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,te.jsx)("button",{type:"button",onClick:()=>r(!n),style:{background:"transparent",border:"none",color:c.muted,cursor:"pointer",padding:0,width:14},"aria-label":n?"Collapse":"Expand",children:n?"\u25BE":"\u25B8"}),(0,te.jsx)("span",{style:{color:Kj[t.status],fontSize:10},children:"\u25CF"}),(0,te.jsx)("strong",{style:{fontFamily:ma,fontSize:12},children:t.name}),(0,te.jsxs)("span",{style:{color:c.muted,fontSize:11},children:[e.transport," \xB7 ",Qj[t.status],t.status==="ready"&&` \xB7 ${t.tools.length} tool${t.tools.length===1?"":"s"}`]}),(0,te.jsxs)("label",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:4,fontSize:11,cursor:"pointer"},title:"Disabling removes this server's tools from the model entirely",children:[(0,te.jsx)("input",{type:"checkbox",checked:t.enabled,onChange:l=>e.onSetServerEnabled(t.name,l.target.checked)}),"Enabled"]}),t.enabled&&!a&&(0,te.jsx)("button",{type:"button",style:$(),onClick:()=>e.onConnect(t.name),children:"Connect"}),a&&(0,te.jsx)("button",{type:"button",style:$(),onClick:()=>e.onRestart(t.name),children:"Restart"}),(0,te.jsx)("button",{type:"button",style:$(),onClick:()=>e.onEdit(t.name),children:"Edit"}),(0,te.jsx)("button",{type:"button","aria-label":`Duplicate ${t.name}`,title:"Duplicate this server. The copy starts disabled so you can edit it first.",style:Se("ghost"),onClick:()=>e.onDuplicate(t.name),children:(0,te.jsx)(fr,{})}),(0,te.jsx)("button",{type:"button","aria-label":`Delete ${t.name}`,title:"Remove this server",style:Se("ghost"),onClick:()=>e.onDelete(t.name),children:(0,te.jsx)(jt,{})})]}),t.error!==void 0&&(0,te.jsx)("div",{style:Pt(),children:t.error}),e.warnings.map(l=>(0,te.jsxs)("div",{style:{color:c.muted,fontSize:11,marginTop:4},children:["\u26A0 ",l]},l)),t.logs.length>0&&(0,te.jsxs)("div",{style:{marginTop:4,paddingLeft:22},children:[(0,te.jsxs)("button",{type:"button",onClick:()=>o(!i),style:{background:"transparent",border:"none",color:c.muted,cursor:"pointer",padding:0,fontFamily:P,fontSize:11},children:[i?"\u25BE":"\u25B8"," Log (",t.logs.length,")"]}),i&&(0,te.jsx)("pre",{style:{margin:"4px 0 0",padding:6,maxHeight:160,overflow:"auto",background:c.inputBackground,border:`1px solid ${c.border}`,borderRadius:3,fontFamily:ma,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.logs.join(`
96
+ `)})]}),n&&(0,te.jsx)("div",{style:{marginTop:6,paddingLeft:22},children:t.tools.length===0?(0,te.jsx)("p",{style:{color:c.muted,fontSize:11,margin:0},children:t.enabled?"No tools discovered yet \u2014 press Connect, or they load on first use.":"Enable this server to see its tools."}):t.tools.map(l=>(0,te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 0"},children:[(0,te.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,te.jsx)("span",{style:{fontFamily:ma,fontSize:12},children:l.name}),l.description.length>0&&(0,te.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:l.description,children:l.description})]}),(0,te.jsx)(tO,{value:l.timeout,onChange:s=>e.onSetToolTimeout(t.name,l.name,s)}),(0,te.jsx)(Wj,{value:l.permission,onChange:s=>e.onSetToolPermission(t.name,l.name,s)})]},l.name))})]})}function Jv(e){let[t,n]=(0,Sn.useState)(e.json),[r,i]=(0,Sn.useState)(!1),[o,a]=(0,Sn.useState)(void 0),[l,s]=(0,Sn.useState)(void 0),[u,d]=(0,Sn.useState)(!1);return(0,Sn.useEffect)(()=>{n(e.json)},[e.json]),(0,Sn.useEffect)(()=>{u&&(d(!1),a(void 0))},[e.savedTick]),o!==void 0?(0,te.jsx)(Hw,{initialName:o,initialConfig:e.configs[o],existingNames:e.servers.map(m=>m.name),platform:e.platform,saving:u,probe:e.pythonProbe,onDetect:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSave:(m,h,f)=>{d(!0),e.onSaveServer(m,h,f)},onCancel:()=>a(void 0)}):(0,te.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P},children:[(0,te.jsx)("h3",{style:{margin:"0 0 4px",color:c.foreground},children:"MCP Servers"}),(0,te.jsxs)("p",{style:{color:c.muted,fontSize:11,marginTop:0},children:["Uses the standard ",(0,te.jsx)("code",{style:{fontFamily:ma},children:"mcpServers"})," shape, so a config from another MCP client can be pasted in unchanged."]}),e.docsIndex!==void 0&&(0,te.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",margin:"0 0 12px"},children:[(0,te.jsx)("button",{type:"button",style:$(),disabled:!e.docsIndex.enabled||e.docsIndex.indexing||!e.docsIndex.ready,title:e.docsIndex.enabled?e.docsIndex.ready?"Reindexes tool documentation so a newly added server is findable now":"Set an embedding model under Search to index by meaning":"Looking tools up on demand is switched off under Search",onClick:e.onIndexDocs,children:e.docsIndex.indexing?"Indexing\u2026":"Index tool documentation"}),(0,te.jsx)("span",{style:{color:c.muted,fontSize:11},children:e.docsIndex.result??"Runs on its own a few seconds after a server connects. This does it now."})]}),(0,te.jsx)(Ai,{progress:e.indexProgress,onStop:e.onStopIndexing}),e.servers.length===0?(0,te.jsx)("p",{style:{color:c.muted,fontSize:12},children:"No servers configured yet."}):e.servers.map(m=>(0,te.jsxs)("div",{children:[(0,te.jsx)(eO,{server:m,transport:e.configs[m.name]!==void 0&&"url"in e.configs[m.name]?"HTTP":"stdio",warnings:e.warnings[m.name]??[],onRestart:e.onRestart,onConnect:e.onConnect,onSetServerEnabled:e.onSetServerEnabled,onSetToolPermission:e.onSetToolPermission,onSetToolTimeout:e.onSetToolTimeout,onEdit:a,onDelete:s,onDuplicate:e.onDuplicateServer}),l===m.name&&(0,te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 0 6px 22px",fontSize:12},children:[(0,te.jsxs)("span",{children:["Remove ",m.name,"?"]}),(0,te.jsx)("button",{type:"button",style:$(),onClick:()=>{e.onDeleteServer(m.name),s(void 0)},children:"Remove"}),(0,te.jsx)("button",{type:"button",style:$(),onClick:()=>s(void 0),children:"Keep"})]})]},m.name)),(0,te.jsxs)("div",{style:{display:"flex",gap:8,marginTop:16},children:[(0,te.jsx)("button",{type:"button",style:se(!1),onClick:()=>a(""),children:"Add server"}),(0,te.jsx)("button",{type:"button",style:$(),title:"Edit every server as raw JSON \u2014 for pasting a config from another client",onClick:()=>i(!r),children:r?"Hide JSON":"Edit as JSON"})]}),r&&(0,te.jsxs)("div",{style:{marginTop:10},children:[(0,te.jsx)("label",{htmlFor:"lc-mcp-json",style:q(),children:"Configuration"}),(0,te.jsx)("textarea",{id:"lc-mcp-json",value:t,spellCheck:!1,rows:14,onChange:m=>n(m.target.value),style:{width:"100%",boxSizing:"border-box",background:c.inputBackground,color:c.inputForeground,border:`1px solid ${e.saveError!==void 0?c.error:c.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:ma,fontSize:12,resize:"vertical"}}),e.saveError!==void 0&&(0,te.jsx)("span",{style:Pt(),children:e.saveError}),(0,te.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,te.jsx)("button",{type:"button",style:se(!1),onClick:()=>e.onSave(t),children:"Save"}),(0,te.jsx)("button",{type:"button",style:$(),onClick:()=>n(e.json),children:"Revert"})]}),(0,te.jsxs)("p",{style:{color:c.muted,fontSize:11,marginTop:12},children:["Secrets: use ",(0,te.jsx)("code",{style:{fontFamily:ma},children:"${secret:NAME}"})," in an env value or header. The value is read from secret storage at launch and never written to the config file."]})]})]})}function tO(e){let[t,n]=(0,Sn.useState)(e.value===void 0?"":String(e.value));return(0,Sn.useEffect)(()=>n(e.value===void 0?"":String(e.value)),[e.value]),(0,te.jsx)("input",{inputMode:"numeric",value:t,placeholder:"server",title:"Seconds this tool may take. Blank uses the server's timeout. Raise it for one slow tool rather than raising the server's.","aria-label":"Timeout in seconds",onChange:i=>n(i.target.value),onBlur:()=>{let i=t.trim();if(i.length===0){e.onChange();return}let o=Number(i);if(!Number.isFinite(o)||o<=0||o>3600){n(e.value===void 0?"":String(e.value));return}e.onChange(Math.round(o))},onKeyDown:i=>{i.key==="Enter"&&i.currentTarget.blur()},style:{width:62,flexShrink:0,background:c.inputBackground,color:c.inputForeground,border:`1px solid ${c.inputBorder}`,borderRadius:2,padding:"1px 4px",fontFamily:P,fontSize:11,textAlign:"right"}})}var K=M(oe(),1),hi=M(he(),1);var Ie=M(oe(),1),Yw=M(he(),1);function Jw(e){let[t,n]=(0,Yw.useState)(!1),r=e.savings;if(r===void 0)return null;let i=r.allTime.consultations===0&&r.allTime.juniorTurns===0;return(0,Ie.jsxs)("div",{style:{margin:"16px 0 0",padding:12,borderRadius:6,border:`1px solid ${c.accent}`,background:`color-mix(in srgb, ${c.accent} 10%, transparent)`},children:[(0,Ie.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"Junior mode"}),(0,Ie.jsx)("div",{style:{color:c.muted,fontSize:11,marginBottom:10},children:i?"Nothing recorded yet. This fills in as you work in Junior mode \u2014 one entry per turn the cheap model handles alone, and one per consultation.":r.measured?"A floor, not an estimate \u2014 every figure below is at least this much.":"Counted, but not yet priced. Measure a consultation above to see this in money."}),(0,Ie.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,Ie.jsx)(Xv,{label:"Today",window:r.today,measured:r.measured}),(0,Ie.jsx)(Xv,{label:"Last 30 days",window:r.last30Days,measured:r.measured}),(0,Ie.jsx)(Xv,{label:"All time",window:r.allTime,measured:r.measured})]}),(0,Ie.jsx)("button",{type:"button",onClick:()=>n(o=>!o),style:{marginTop:10,padding:0,background:"none",border:"none",color:c.accent,cursor:"pointer",font:"inherit",fontSize:11,textDecoration:"underline"},children:t?"Hide how this is worked out":"How is this worked out?"}),t&&(0,Ie.jsx)(nO,{savings:r}),i&&(0,Ie.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"8px 0 0"},children:["Switch the mode selector in the chat header to ",(0,Ie.jsx)("strong",{children:"Junior"})," to start. Turns taken before this version was installed were never recorded, so the count begins now."]})]})}function Xv(e){let{window:t}=e;return(0,Ie.jsxs)("div",{style:{flex:"1 1 140px",minWidth:140,padding:"8px 10px",borderRadius:4,background:c.inputBackground,border:`1px solid ${c.border}`},children:[(0,Ie.jsx)("div",{style:{color:c.muted,fontSize:11},children:e.label}),(0,Ie.jsx)("div",{style:{fontSize:18,fontWeight:600,color:c.accent,lineHeight:1.3},children:e.measured&&t.avoidedUsd!==void 0?`\u2265 ${Gw(t.avoidedUsd)}`:"\u2014"}),(0,Ie.jsx)("div",{style:{color:c.muted,fontSize:11},children:"avoided"}),(0,Ie.jsxs)("div",{style:{color:c.muted,fontSize:11,marginTop:4},children:["Spent ",Gw(t.spentUsd),t.unpriced>0&&` + ${String(t.unpriced)} unpriced`]}),(0,Ie.jsxs)("div",{style:{color:c.muted,fontSize:11},children:[ud(t.juniorTurns,"junior turn"),", ",ud(t.consultations,"consultation"),t.overheadCalls>0&&` + ${String(t.overheadCalls)} upkeep`]})]})}function nO(e){let t=e.savings.allTime;return(0,Ie.jsxs)("div",{style:{color:c.muted,fontSize:11,marginTop:8,lineHeight:1.55},children:[(0,Ie.jsx)("p",{style:{margin:"0 0 6px"},children:"Two things are counted, and both are priced from the measurement taken on this machine \u2014 never from published rates."}),(0,Ie.jsxs)("ol",{style:{margin:"0 0 6px",paddingLeft:18},children:[(0,Ie.jsxs)("li",{children:[(0,Ie.jsx)("strong",{children:"Turns the expert never saw."})," Every turn the cheap model handled alone is one the expert would otherwise have taken. Each is priced at the cost of a"," ",(0,Ie.jsx)("em",{children:"minimal"})," resumed consultation, which is the cheapest an expert turn can possibly be \u2014 so real work would have cost more. All time: ",ud(t.juniorTurns,"turn"),"."]}),(0,Ie.jsxs)("li",{children:[(0,Ie.jsx)("strong",{children:"Cold starts avoided."})," A consultation that resumed a live session instead of starting a new one saved the difference between the two measured prices. All time:"," ",ud(t.consultations,"consultation"),", of which the resumed ones count."]})]}),(0,Ie.jsxs)("p",{style:{margin:"0 0 6px"},children:[(0,Ie.jsx)("strong",{children:"What is deliberately not counted:"})," what the strong model would have charged to do the work itself. Nothing here can know that, so no multiplier is applied \u2014 which is why the total is a floor and says ",(0,Ie.jsx)("em",{children:"at least"}),". The real saving is larger by an amount this panel refuses to guess at."]}),(0,Ie.jsx)("p",{style:{margin:0},children:"Consultations the plan reported no price for are counted separately rather than as zero, so a total never looks exact while being incomplete. Events older than a year are dropped."})]})}function Gw(e){return e===0?"$0":e<.1?`$${e.toFixed(4)}`:`$${e.toFixed(2)}`}function ud(e,t){return`${String(e)} ${t}${e===1?"":"s"}`}var Kv=M(oe(),1);function pr(e){return e.ignored===!0?(0,Kv.jsx)("span",{style:Xe("warning"),children:"Ignored (user-scope only)"}):(0,Kv.jsx)("span",{style:Xe("neutral"),children:e.scope==="user"?"User":"Workspace"})}var Xw="var(--vscode-editor-font-family, monospace)",Wv="__custom__",Qv=[{value:"",label:"The CLI's own default"},{value:"opus",label:"Opus \u2014 strongest, most expensive"},{value:"sonnet",label:"Sonnet \u2014 balanced"},{value:"haiku",label:"Haiku \u2014 fastest and cheapest"}];function Kw(e){let[t,n]=(0,hi.useState)(e.expert?.enabled??!1),[r,i]=(0,hi.useState)(e.expert?.path??"claude"),[o,a]=(0,hi.useState)(e.expert?.model??""),[l,s]=(0,hi.useState)(String(e.expert?.maxSpendUsd??0)),[u,d]=(0,hi.useState)(String(e.expert?.maxConsultations??0));(0,hi.useEffect)(()=>{e.expert!==void 0&&(n(e.expert.enabled),i(e.expert.path),a(e.expert.model??""),s(String(e.expert.maxSpendUsd)),d(String(e.expert.maxConsultations)))},[e.expert]),(0,hi.useEffect)(()=>{e.pickedPath?.purpose==="expert.path"&&i(e.pickedPath.path)},[e.pickedPath]);let m=f=>{let x=Number(f.trim());return Number.isFinite(x)&&x>0?x:0},h=e.expert?.available===!0;return(0,K.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,K.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,K.jsx)("h3",{style:{margin:0,color:c.foreground},children:"Expert"}),(0,K.jsx)(pr,{scope:"user"})]}),(0,K.jsx)("p",{style:{color:c.muted,fontSize:12,fontFamily:P,margin:"0 0 12px"},children:"Lets your everyday model consult Claude on hard problems \u2014 planning a change across several files, diagnosing a bug it has already failed to fix, or weighing two designs. It decides when the question is worth it, and each consultation appears in the transcript with what it cost."}),(0,K.jsxs)("div",{style:{padding:8,marginBottom:12,borderRadius:3,border:`1px solid ${h?c.border:c.error}`},children:[(0,K.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,K.jsx)("div",{style:{fontSize:12,color:h?c.foreground:c.error},children:e.expert===void 0?"Checking\u2026":h?`Found: ${e.expert.version??e.expert.path}`:"Claude CLI not found"}),(0,K.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Look for the Claude CLI again",onClick:e.onRecheck,children:"Re-check"})]}),e.expert!==void 0&&!h&&(0,K.jsx)("div",{style:{fontSize:11,color:c.muted,marginTop:4},children:e.expert.reason??"Install it with: npm install -g @anthropic-ai/claude-code"})]}),(0,K.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:12,fontSize:12},children:[(0,K.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:t,onChange:f=>n(f.target.checked)}),(0,K.jsxs)("span",{style:{color:c.foreground},children:["Enable Claude as the expert",(0,K.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:2},children:"Consultations are billed to your Claude account at its usual rates. Off by default; nothing runs and nothing is spent until you turn this on."})]})]}),(0,K.jsx)(xn,{id:"lc-expert-path",label:"Command",value:r,placeholder:"claude",hint:"Found on PATH by default. If detection cannot find it, browse to the executable \u2014 on Windows that is usually claude.cmd in %APPDATA%\\npm.",browse:{purpose:"expert.path",kind:"file"},...e.onBrowse!==void 0?{onBrowse:e.onBrowse}:{},onChange:i}),(0,K.jsxs)("div",{style:{marginBottom:16},children:[(0,K.jsx)("label",{htmlFor:"lc-expert-model",style:q(),children:"Model (optional)"}),(0,K.jsx)(Ne,{id:"lc-expert-model",value:Qv.some(f=>f.value===o)?o:Wv,onChange:f=>a(f===Wv?"":f),style:{width:"100%",marginBottom:6},options:[...Qv.map(f=>({value:f.value,label:f.label})),{value:Wv,label:"Something else\u2026"}]}),!Qv.some(f=>f.value===o)&&(0,K.jsx)("input",{type:"text",value:o,placeholder:"e.g. claude-sonnet-4-5-20250929",onChange:f=>a(f.target.value),style:H()}),(0,K.jsx)("span",{style:{color:c.muted,fontSize:11},children:"Aliases track the newest release of that tier. A smaller model makes consultations cheaper, at some cost to their quality."})]}),(0,K.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:16},children:[(0,K.jsx)("label",{style:q(),children:"Budget per task"}),(0,K.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,K.jsx)("span",{style:{color:c.muted,fontSize:11},children:"Stop after"}),(0,K.jsx)("input",{type:"number",min:"0",step:"0.25",value:l,onChange:f=>s(f.target.value),"aria-label":"Maximum spend per task in dollars",style:{...H(),width:90}}),(0,K.jsx)("span",{style:{color:c.muted,fontSize:11},children:"dollars, or"}),(0,K.jsx)("input",{type:"number",min:"0",step:"1",value:u,onChange:f=>d(f.target.value),"aria-label":"Maximum consultations per task",style:{...H(),width:70}}),(0,K.jsx)("span",{style:{color:c.muted,fontSize:11},children:"consultations \u2014 whichever comes first."})]}),(0,K.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:10},children:[(0,K.jsx)("button",{type:"button",style:$(),disabled:e.expert?.available!==!0||e.expert.measuringStep!==void 0,onClick:e.onMeasureCost,children:e.expert?.measuringStep!==void 0?"Measuring\u2026":"Measure what a consultation costs"}),e.expert?.pricing!==void 0&&(0,K.jsx)("button",{type:"button",style:$(),onClick:e.onClearPricing,children:"Clear"})]}),e.expert?.measuringStep!==void 0&&(0,K.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"6px 0 0"},children:e.expert.measuringStep}),e.expert?.measuringStep===void 0&&e.expert?.pricing===void 0&&(0,K.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"6px 0 0"},children:["This makes ",(0,K.jsx)("strong",{children:"two real consultations"})," \u2014 one cold, one resumed \u2014 and costs what they cost. It is the only way to learn the price here, and the ratio between the two is what the budget advice depends on."]}),e.expert?.pricing!==void 0&&(0,K.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"6px 0 0"},children:[hv(e.expert.pricing)," ",(0,K.jsxs)("span",{style:{opacity:.75},children:["Measured ",new Date(e.expert.pricing.measuredAt).toLocaleDateString(),". The expert is told these numbers so it plans in them."]})]}),(0,K.jsx)(Jw,{savings:e.expert?.savings}),(0,K.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"12px 0 0",cursor:e.expert?.available===!0?"pointer":"not-allowed",opacity:e.expert?.available===!0?1:.55},children:[(0,K.jsx)("input",{type:"checkbox",checked:e.expert?.keepAlive===!0,disabled:e.expert?.available!==!0,onChange:f=>e.onSetKeepAlive(f.target.checked),style:{marginTop:2}}),(0,K.jsxs)("span",{children:[(0,K.jsx)("span",{style:{display:"block",fontSize:13},children:"Keep the session warm during a task"}),(0,K.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["The expert\u2019s cache lasts an hour, so a long break means the next consultation pays full price again. This sends one trivial consultation every fifty minutes while a task has a session open \u2014 roughly a fiftieth of the cold start it avoids."," ",(0,K.jsx)("strong",{children:"It spends while you are away"}),", so it is counted in the meter like anything else. It never starts a session, and stops when the budget is spent or the task ends."]})]})]}),e.expert?.reportsCost===!1&&(0,K.jsxs)("p",{style:{color:c.error,fontSize:11,margin:"6px 0 0"},children:[(0,K.jsx)("strong",{children:"Your plan does not report a cost per consultation"}),", so the spending limit above can never be reached \u2014 the running total stays at zero. Use the consultation limit instead; it is checked first and works on any plan."]}),e.expert!==void 0&&e.expert.reportsCost===void 0&&(0,K.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"6px 0 0"},children:"Whether the spending limit can apply depends on your plan reporting a cost. That is settled by the first consultation, and this will say so once it has."}),(0,K.jsx)("span",{style:{color:c.muted,fontSize:11},children:"0 means no limit. When a limit is reached the expert stops being offered for that task and the assistant carries on alone; starting a new task resets it. A count limit is worth setting even if you set a spend limit, because the CLI does not always report a price and an unpriced consultation still costs money."})]}),(0,K.jsxs)("div",{style:{padding:8,marginBottom:16,borderRadius:3,border:`1px solid ${c.border}`,color:c.muted,fontSize:11},children:[(0,K.jsx)("strong",{style:{color:c.foreground},children:"What the expert may do:"})," read and search this workspace, so it can gather its own context. It cannot edit files or run commands. Every change still goes through Light Code\u2019s own tools and your approval, so nothing reaches your repository without passing the usual prompt."]}),(0,K.jsxs)("div",{style:{marginBottom:16,border:`1px solid ${c.border}`,borderRadius:3,padding:8},children:[(0,K.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,K.jsx)("strong",{style:{fontSize:12,color:c.foreground},children:"How good is the junior?"}),(0,K.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,K.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px"},disabled:e.expert?.assessing===!0||!h,title:h?"Ask the junior five short questions, then have the expert grade the answers. Costs one consultation.":"Needs the Claude CLI \u2014 the assessment is the expert\u2019s judgement.",onClick:e.onAssess,children:e.expert?.assessment===void 0?"Assess it":"Assess again"}),e.expert?.assessment!==void 0&&(0,K.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px"},onClick:e.onClearAssessment,children:"Clear"})]})]}),(0,K.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"6px 0 0"},children:"The junior answers five short probes and the expert grades the actual answers \u2014 not the model\u2019s name, which would be a recollection rather than a measurement. The verdict is given back to the expert on later tasks so it sizes its plans to what this model can really do."}),e.expert?.assessing===!0&&(0,K.jsx)("p",{style:{color:c.muted,fontSize:11,marginBottom:0},children:e.expert.assessmentStep??"Working\u2026"}),e.expert?.assessment!==void 0&&(0,K.jsx)(iO,{assessment:e.expert.assessment,currentModel:e.expert.model??o})]}),(0,K.jsx)("button",{type:"button",style:se(!1),onClick:()=>e.onSave(t,r.trim(),o.trim(),{maxSpendUsd:m(l),maxConsultations:Math.round(m(u))}),children:"Save"})]})}function iO(e){let[t,n]=(0,hi.useState)(!1),{assessment:r}=e,i=r.model!==e.currentModel&&e.currentModel.length>0;return(0,K.jsxs)("div",{style:{marginTop:8},children:[(0,K.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap",fontSize:11},children:[(0,K.jsx)("span",{style:{fontFamily:Xw,color:c.foreground},children:r.model}),(0,K.jsxs)("span",{style:{color:c.muted},children:["via ",r.profileLabel," \xB7 ",new Date(r.assessedAt).toLocaleDateString(),r.costUsd!==void 0?` \xB7 $${r.costUsd.toFixed(4)}`:""]}),i&&(0,K.jsx)("span",{style:{...Xe("warning"),fontSize:9},title:"Assessed for a different model than the one now active",children:"different model"})]}),(0,K.jsx)("div",{style:{whiteSpace:"pre-wrap",fontSize:11,color:c.foreground,marginTop:6,paddingLeft:8,borderLeft:`2px solid ${c.expert}`},children:r.verdict}),(0,K.jsxs)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",marginTop:6},onClick:()=>n(o=>!o),children:[t?"Hide":"Show"," what it answered (",r.probes.length,")"]}),t&&r.probes.map(o=>(0,K.jsxs)("div",{style:{marginTop:8,fontSize:11},children:[(0,K.jsx)("div",{style:{color:c.foreground},children:o.measures}),(0,K.jsx)("pre",{style:{margin:"3px 0 0",padding:6,whiteSpace:"pre-wrap",fontFamily:Xw,fontSize:10,color:o.error!==void 0?c.error:c.muted,background:c.inputBackground,borderRadius:3},children:o.error!==void 0?`No answer \u2014 ${o.error}`:o.answer.trim()||"(empty)"})]},o.id))]})}var Z=M(oe(),1),Wt=M(he(),1);var Y=M(oe(),1),sn=M(he(),1);var rO=[384,768,1024,1536,3072];function Ww(e){let[t,n]=(0,sn.useState)(""),[r,i]=(0,sn.useState)(""),[o,a]=(0,sn.useState)(""),[l,s]=(0,sn.useState)(""),[u,d]=(0,sn.useState)(""),[m,h]=(0,sn.useState)(""),[f,x]=(0,sn.useState)(!1),[k,N]=(0,sn.useState)(!1),[g,y]=(0,sn.useState)(!1);(0,sn.useEffect)(()=>{n(e.embedder?.profileId??""),i(e.embedder?.model??""),a(e.embedder?.dimensions!==void 0?String(e.embedder.dimensions):""),s(e.embedder?.indexNameIsCustom===!0?e.embedder.indexName??"":""),d(e.embedder?.indexPrefix??""),h(e.embedder?.indexAlias??"")},[e.embedder]);let b=m.trim()!==(e.embedder?.indexAlias??"").trim();(0,sn.useEffect)(()=>{t.length>0&&e.onRequestModels(t)},[t]),(0,sn.useEffect)(()=>{if(e.savedTick===0)return;y(!0);let V=setTimeout(()=>y(!1),3e3);return()=>clearTimeout(V)},[e.savedTick]);let v=e.progress!==void 0&&e.progress.phase!=="done",A=Number.parseInt(o,10),ee=t.length>0&&r.trim().length>0&&Number.isFinite(A)&&A>0,B=e.profiles.find(V=>V.id===t),T=ee&&e.connectionLabel!==void 0&&e.embedder?.indexName!==void 0;return(0,Y.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${c.border}`,marginTop:12},children:[(0,Y.jsx)("strong",{style:{fontSize:12,color:c.foreground},children:"Codebase indexing"}),(0,Y.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"4px 0 10px"},children:"Lets the model search this workspace by meaning rather than by exact text \u2014 useful when you do not know what something is called. Optional, and off until you index."}),(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsx)("label",{htmlFor:"lc-emb-profile",style:q(),children:"Embedding provider"}),(0,Y.jsx)(Ne,{id:"lc-emb-profile",value:t,onChange:n,style:{width:"100%"},options:[{value:"",label:"Choose a provider profile\u2026"},...e.profiles.map(V=>({value:V.id,label:V.label}))]}),(0,Y.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["Reuses an existing profile's URL, credentials and certificates \u2014 one place to get mutual TLS right instead of two.",B!==void 0&&` Requests go to ${B.baseUrl}.`]})]}),(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsx)("label",{htmlFor:"lc-emb-model",style:q(),children:"Embedding model"}),e.models.length>0&&(0,Y.jsx)(Ne,{ariaLabel:"Available models",value:e.models.includes(r)?r:"",onChange:V=>{V.length>0&&i(V)},style:{width:"100%",marginBottom:4},options:[{value:"",label:`Choose from ${e.models.length} model(s)\u2026`},...e.models.map(V=>({value:V,label:V}))]}),(0,Y.jsx)("input",{id:"lc-emb-model",type:"text",value:r,spellCheck:!1,placeholder:"text-embedding-3-small",onChange:V=>i(V.target.value),style:H()}),(0,Y.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:[t.length===0?"Choose a provider above to see what it offers.":e.modelsLoading?"Fetching the model list\u2026":e.models.length===0?`No catalogue from this provider${e.modelsWarning!==void 0?` (${e.modelsWarning})`:""} \u2014 type the model name.`:"Pick one, or type a name the list does not include."," ","An embedding model, not a chat model."]})]}),(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsx)("label",{htmlFor:"lc-emb-dims",style:q(),children:"Vector width"}),(0,Y.jsx)("input",{id:"lc-emb-dims",type:"number",list:"lc-emb-dims-common",value:o,placeholder:"1536",onChange:V=>a(V.target.value),style:{...H(),width:160}}),(0,Y.jsx)("datalist",{id:"lc-emb-dims-common",children:rO.map(V=>(0,Y.jsx)("option",{value:V},V))}),(0,Y.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:"Must match what the model actually returns \u2014 OpenSearch fixes this when the index is created. Getting it wrong fails on the first batch with the real width in the message."})]}),(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsxs)("label",{htmlFor:"lc-emb-alias",style:q(),children:["Team index alias ",(0,Y.jsx)("span",{style:{color:c.muted,fontWeight:"normal"},children:"(optional)"})]}),(0,Y.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,Y.jsx)("input",{id:"lc-emb-alias",type:"text",value:m,spellCheck:!1,placeholder:"e.g. my-team-code",onChange:V=>h(V.target.value),style:{...H(),flex:1}}),(0,Y.jsx)("button",{type:"button",style:$(),disabled:!b,title:b?"Save the alias":"Already saved",onClick:()=>e.onSaveEmbedder(t,r.trim(),A,l.trim(),u.trim(),m.trim()),children:b?"Save alias":"Saved"})]}),(0,Y.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["One name pointing at every teammate\u2019s index, so ",(0,Y.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"search_codebase"})," ","can be asked to look across the team. Everyone still writes to their own index; set the same alias on each machine. Results from someone else are marked as not being in your workspace, so the assistant does not try to open them. ",(0,Y.jsx)("strong",{children:"OpenSearch only"})," \u2014 Qdrant and Chroma have no equivalent, and team scope is simply unavailable there."]}),m.trim().length>0&&(0,Y.jsxs)("div",{style:{marginTop:6},children:[(0,Y.jsx)("button",{type:"button",style:$(),disabled:b,title:b?"Press Save first \u2014 this attaches the saved alias":void 0,onClick:e.onAttachTeamAlias,children:"Attach alias to my existing index"}),(0,Y.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:4},children:b?"Press Save below first. This attaches whatever alias is saved, not what is typed above.":"Use this if you indexed before setting an alias. It adds the alias and labels the existing chunks as yours \u2014 no re-indexing, and nothing is re-embedded. Chunks already labelled with someone else are never touched."}),e.aliasResult?.error!==void 0&&(0,Y.jsx)("span",{style:{display:"block",color:c.error,fontSize:11,marginTop:4},children:e.aliasResult.error}),e.aliasResult?.error===void 0&&e.aliasResult?.alias!==void 0&&(0,Y.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:4},children:[`"${e.aliasResult.index??""}" now answers to "${e.aliasResult.alias}". `,e.aliasResult.attributed===0?"Every chunk already had an owner.":`${String(e.aliasResult.attributed??0)} existing chunk(s) labelled as yours.`]})]})]}),(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsx)("label",{htmlFor:"lc-emb-prefix",style:q(),children:"Index name prefix"}),(0,Y.jsx)("input",{id:"lc-emb-prefix",type:"text",value:u,spellCheck:!1,placeholder:e.embedder?.defaultIndexPrefix??"light-code",onChange:V=>d(V.target.value),style:H()}),(0,Y.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["Front of both derived names \u2014 the codebase index and the ",(0,Y.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"-docs"})," ","one \u2014 so a shared cluster shows at a glance whose collections are whose. Lowercase letters, digits, dot, dash and underscore. Changing it points at ",(0,Y.jsx)("em",{children:"new"}),", empty collections; the old ones keep their data until you delete them in OpenSearch."]})]}),(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsx)("label",{htmlFor:"lc-emb-index",style:q(),children:"Index name"}),(0,Y.jsx)("input",{id:"lc-emb-index",type:"text",value:l,spellCheck:!1,placeholder:e.embedder?.indexName??"derived from the workspace path",onChange:V=>s(V.target.value),style:H()}),(0,Y.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:"Leave blank and one is derived from this folder's path \u2014 collision-free, but nobody looking at the cluster can tell whose it is. Name it if you share a cluster. Also how you move to a new index after changing the embedding model: a vector field's width is fixed when the index is created, so a different width needs a different index."})]}),(0,Y.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:12},children:[(0,Y.jsx)("button",{type:"button",style:$(),disabled:!ee,onClick:()=>e.onSaveEmbedder(t,r.trim(),A,l.trim(),u.trim(),m.trim()),children:"Save embedder"}),!ee&&(0,Y.jsx)("span",{style:{fontSize:11,color:c.muted},children:t.length===0?"Choose a provider first.":r.trim().length===0?"Enter or pick an embedding model.":"Enter the vector width."}),ee&&g&&(0,Y.jsx)("span",{style:{fontSize:11,color:c.muted},children:"Saved."}),e.embedder?.indexedFiles!==void 0&&e.embedder.indexedFiles>0&&(0,Y.jsxs)("span",{style:{fontSize:11,color:c.muted},children:[e.embedder.indexedFiles," file(s) indexed"]})]}),T&&!v&&(0,Y.jsxs)("div",{style:{fontSize:11,color:c.muted,border:`1px solid ${c.border}`,borderRadius:3,padding:"8px 10px",marginBottom:8},children:["Indexing reads every source file in this workspace, sends it to"," ",(0,Y.jsx)("strong",{style:{color:c.foreground},children:B?.baseUrl??"the embedding endpoint"})," to be embedded, and stores the result in"," ",(0,Y.jsx)("strong",{style:{color:c.foreground},children:e.embedder?.indexName})," on"," ",(0,Y.jsx)("strong",{style:{color:c.foreground},children:e.connectionLabel}),". Files that are gitignored, deny-listed or binary are never sent."]}),v?(0,Y.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,Y.jsx)("button",{type:"button",style:$(),onClick:e.onCancelIndexing,children:"Stop"}),(0,Y.jsxs)("span",{style:{fontSize:11,color:c.muted},children:[e.progress?.phase," \u2014 ",e.progress?.filesIndexed," indexed, ",e.progress?.filesSkipped," skipped",e.progress?.current!==void 0&&` \xB7 ${e.progress.current}`]})]}):f?(0,Y.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,Y.jsx)("span",{style:{fontSize:12},children:"Send this workspace to be embedded?"}),(0,Y.jsx)("button",{type:"button",style:se(!1),onClick:()=>{x(!1),e.onStartIndexing()},children:"Index now"}),(0,Y.jsx)("button",{type:"button",style:$(),onClick:()=>x(!1),children:"Cancel"})]}):(0,Y.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,Y.jsx)("button",{type:"button",style:se(!T),disabled:!T,onClick:()=>x(!0),children:e.embedder!==void 0&&e.embedder.indexedFiles>0?"Reindex workspace":"Index workspace"}),k?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{style:{fontSize:11},children:"Throw away the whole index?"}),(0,Y.jsx)("button",{type:"button",style:se(!1),onClick:()=>{N(!1),e.onClearIndex()},children:"Clear it"}),(0,Y.jsx)("button",{type:"button",style:$(),onClick:()=>N(!1),children:"Keep it"})]}):e.embedder!==void 0&&e.embedder.indexedFiles>0&&(0,Y.jsx)("button",{type:"button",style:$(),title:"Removes every chunk and forgets what was indexed, so the next run starts from nothing",onClick:()=>N(!0),children:"Clear index"}),!T&&(0,Y.jsx)("span",{style:{fontSize:11,color:c.muted},children:e.connectionLabel===void 0?"Choose an active connection above first.":e.embedder?.indexName===void 0?"Open a folder to index.":"Save an embedder first."})]}),e.lastResult?.error!==void 0&&(0,Y.jsx)("div",{style:{fontSize:11,color:c.error,marginTop:8},children:e.lastResult.error}),e.lastResult?.result!==void 0&&!v&&(0,Y.jsxs)("div",{style:{fontSize:11,color:c.muted,marginTop:8},children:["Indexed ",e.lastResult.result.filesIndexed," file(s), ",e.lastResult.result.chunksWritten," chunk(s)",e.lastResult.result.filesRemoved>0&&`, removed ${e.lastResult.result.filesRemoved}`,".",Object.keys(e.lastResult.result.skipReasons).length>0&&(0,Y.jsxs)("span",{children:[" ","Skipped:"," ",Object.entries(e.lastResult.result.skipReasons).map(([V,C])=>`${C} ${V}`).join(", "),"."]})]})]})}var ke=M(oe(),1);function Qw(e){let t=e.hiddenTools>=15;return(0,ke.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${c.border}`},children:[(0,ke.jsx)("span",{style:q(),children:"Tool documentation index"}),(0,ke.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"6px 0 8px",cursor:"pointer"},children:[(0,ke.jsx)("input",{type:"checkbox",checked:e.enabled,onChange:n=>e.onToggle(n.target.checked),style:{marginTop:2}}),(0,ke.jsxs)("span",{children:[(0,ke.jsx)("span",{style:{display:"block",fontSize:13},children:"Keep tool schemas out of the prompt"}),(0,ke.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["MCP and Python tools stop being listed in every request. The model finds them with"," ",(0,ke.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"search_docs"})," and runs them through ",(0,ke.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"call_tool"}),". You still approve everything exactly as before."]})]})]}),(0,ke.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 10px"},children:e.hiddenTools===0?(0,ke.jsx)(ke.Fragment,{children:"No MCP or Python tools to hide, so nothing is registered for this and it costs nothing."}):(0,ke.jsxs)(ke.Fragment,{children:[e.enabled?"Hiding":"Would hide"," ",(0,ke.jsx)("strong",{style:{color:c.foreground},children:e.hiddenTools})," ",e.hiddenTools===1?"tool":"tools","."," ",t?(0,ke.jsx)(ke.Fragment,{children:"That is enough to be worth it."}):(0,ke.jsx)(ke.Fragment,{children:"With this few, leaving it off is probably better \u2014 models call a listed tool more reliably than one named through a dispatcher."})]})}),(0,ke.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"0 0 8px",cursor:e.enabled?"pointer":"not-allowed",opacity:e.enabled?1:.55},children:[(0,ke.jsx)("input",{type:"checkbox",checked:e.skills&&e.enabled,disabled:!e.enabled,onChange:n=>e.onToggleSkills(n.target.checked),style:{marginTop:2}}),(0,ke.jsxs)("span",{children:[(0,ke.jsx)("span",{style:{display:"block",fontSize:13},children:"Look up skills the same way"}),(0,ke.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["Skill summaries stop being listed in every request. A count and an instruction to search stay, so the assistant still knows notes exist and looks for one before working on something unfamiliar."," ",e.hiddenSkills===0?"No skills recorded yet, so this changes nothing today.":`${String(e.hiddenSkills)} ${e.hiddenSkills===1?"skill":"skills"} affected.`,!e.enabled&&" Needs the setting above, which is what finds them."]})]})]}),(0,ke.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,ke.jsx)("button",{type:"button",style:$(),disabled:e.indexing||!e.retrievalReady,title:e.retrievalReady?"Embed the tool and skill documentation so search_docs can match by meaning":"Needs a search connection and an embedding model. Without them search_docs still works, matching names and descriptions.",onClick:()=>e.onIndexDocs(),children:e.indexing?"Indexing\u2026":"Index everything"}),(0,ke.jsx)("button",{type:"button",style:$(),disabled:e.indexing||!e.retrievalReady,title:"Reindex tool documentation only, leaving skills untouched",onClick:()=>e.onIndexDocs("tool"),children:"Tools only"}),(0,ke.jsx)("button",{type:"button",style:$(),disabled:e.indexing||!e.retrievalReady,title:"Reindex skills only, leaving tool documentation untouched",onClick:()=>e.onIndexDocs("skill"),children:"Skills only"}),(0,ke.jsx)("button",{type:"button",style:$(),disabled:e.indexing||!e.retrievalReady,title:"Remove every indexed tool and skill document. search_docs falls back to matching names and descriptions until you index again.",onClick:e.onClearDocsIndex,children:"Clear index"}),e.docsIndex!==void 0&&(0,ke.jsx)("span",{style:{color:c.muted,fontSize:11,fontFamily:"var(--vscode-editor-font-family, monospace)"},children:e.docsIndex})]}),!e.retrievalReady&&(0,ke.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"8px 0 0"},children:["No embedding model configured, so ",(0,ke.jsx)("code",{children:"search_docs"})," matches on names and descriptions instead of by meaning. Tools remain findable either way."]}),e.result?.error!==void 0&&(0,ke.jsx)("p",{style:{color:c.error,fontSize:11,margin:"8px 0 0"},children:e.result.error}),e.result?.indexed!==void 0&&e.result.error===void 0&&(0,ke.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"8px 0 0",fontFamily:P},children:["Indexed ",e.result.indexed," ",e.result.indexed===1?"entry":"entries",e.result.index!==void 0?` into ${e.result.index}`:"","."]})]})}var Re=M(oe(),1),tb=M(he(),1);var eb="var(--vscode-editor-font-family, monospace)";function e$(e){let[t,n]=(0,tb.useState)(""),[r,i]=(0,tb.useState)("docs"),o=()=>{t.trim().length>0&&e.onProbe(t.trim(),r)};return(0,Re.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${c.border}`},children:[(0,Re.jsx)("span",{style:q(),children:"Try a query"}),(0,Re.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:"Runs through the same path the model uses, so what you see here is what it would have been given. Nothing is sent to the model."}),(0,Re.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,Re.jsx)(Ne,{compact:!0,value:r,ariaLabel:"What to search",onChange:a=>i(a),options:[{value:"docs",label:"Tools & skills"},{value:"codebase",label:"Codebase"},{value:"mail",label:"Mail"}]}),(0,Re.jsx)("input",{type:"text",value:t,spellCheck:!1,"aria-label":"Query",placeholder:"e.g. where do we upload a report",onKeyDown:a=>{a.key==="Enter"&&o()},onChange:a=>n(a.target.value),style:{...H(),flex:1,minWidth:160}}),(0,Re.jsx)("button",{type:"button",style:$(),disabled:e.probeRunning,onClick:o,children:e.probeRunning?"Searching\u2026":"Search"})]}),e.probe!==void 0&&(0,Re.jsxs)("div",{style:{marginBottom:12},children:[(0,Re.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,Re.jsxs)("span",{style:{color:c.muted,fontSize:11},children:["Result for \u201C",e.probe.query,"\u201D"]}),(0,Re.jsx)("button",{type:"button",style:{...$(),marginLeft:"auto",fontSize:10,padding:"1px 6px"},title:"Dismiss this result. The query stays in the log below.",onClick:e.onClearProbe,children:"Clear result"})]}),e.probe.error!==void 0&&(0,Re.jsx)("p",{style:{color:c.error,fontSize:11,margin:"0 0 4px"},children:e.probe.error}),e.probe.text.length>0&&(0,Re.jsx)("pre",{className:"lc-scroll",style:{margin:0,padding:8,maxHeight:260,overflow:"auto",background:c.inputBackground,border:`1px solid ${c.border}`,borderRadius:8,fontFamily:eb,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.probe.text})]}),(0,Re.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[(0,Re.jsx)("span",{style:q(),children:"Recent searches"}),e.entries.length>0&&(0,Re.jsx)("button",{type:"button",style:{...$(),marginLeft:"auto",fontSize:11},onClick:e.onClear,children:"Clear"})]}),e.entries.length===0?(0,Re.jsx)("p",{style:{color:c.muted,fontSize:11,margin:0},children:"Nothing yet. Searches the model runs \u2014 and any you try above \u2014 appear here."}):(0,Re.jsx)("div",{className:"lc-scroll",style:{maxHeight:280,overflowY:"auto"},children:e.entries.map((a,l)=>(0,Re.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${c.border}`,fontSize:11},children:[(0,Re.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,Re.jsx)("span",{style:{fontFamily:eb,color:c.accent},children:a.source}),a.via!==void 0&&(0,Re.jsx)("span",{style:{...Xe(a.via==="lexical"?"warning":"neutral"),fontSize:9},title:a.via==="index"?"Matched by meaning, using the vector index":"Matched on names and descriptions \u2014 the index was not used",children:a.via==="index"?"semantic":"lexical"}),(0,Re.jsxs)("span",{style:{marginLeft:"auto",color:c.muted,fontVariantNumeric:"tabular-nums"},children:[a.hits," ",a.hits===1?"hit":"hits"," \xB7 ",a.elapsedMs,"ms"]})]}),(0,Re.jsx)("div",{style:{marginTop:2,wordBreak:"break-word"},children:a.query}),a.collection!==void 0&&(0,Re.jsx)("div",{style:{color:c.muted,fontSize:10,fontFamily:eb},children:a.collection}),a.error!==void 0&&(0,Re.jsx)("div",{style:{color:c.error,fontSize:10,marginTop:2},children:a.error})]},`${String(a.at)}-${String(l)}`))}),(0,Re.jsx)("span",{style:{display:"block",color:c.muted,fontSize:10,marginTop:6,fontFamily:P},children:"Kept in memory for this session only \u2014 this is a diagnostic view, not the audit log."})]})}var Mn=M(oe(),1),t$=M(he(),1);function pi(e){let[t,n]=(0,t$.useState)(!e.hasValue);return t?(0,Mn.jsxs)("div",{style:{marginBottom:16},children:[(0,Mn.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,Mn.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,Mn.jsx)("input",{id:e.id,type:"password",value:e.value,placeholder:e.placeholder??"sk-...",onChange:r=>e.onChange(r.target.value),style:H()}),e.hasValue&&(0,Mn.jsx)("button",{type:"button",style:$(),onClick:()=>{e.onChange(""),n(!1)},children:"Cancel"})]})]}):(0,Mn.jsxs)("div",{style:{marginBottom:16},children:[(0,Mn.jsx)("label",{style:q(),children:e.label}),(0,Mn.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Mn.jsx)("span",{children:"Set"}),(0,Mn.jsx)("button",{type:"button",style:$(),onClick:()=>n(!0),children:"Replace"})]})]})}var n$={id:"",label:"",kind:"qdrant",url:"",hasUsername:!1,hasPassword:!1},ha=[{kind:"qdrant",label:"Qdrant \u2014 local",url:"http://127.0.0.1:6333",hint:"A single container, nothing leaves your machine. The usual choice for indexing code privately.",run:"docker run -p 6333:6333 qdrant/qdrant"},{kind:"chroma",label:"Chroma \u2014 local",url:"http://127.0.0.1:8000",hint:"Also local. Needs Chroma 1.0 or newer \u2014 the v1 API it replaced is not supported.",run:"docker run -p 8000:8000 chromadb/chroma"},{kind:"opensearch",label:"OpenSearch \u2014 a cluster you already run",url:"https://opensearch.internal:9200",hint:"The only backend that can also query indexes your organisation already has, with raw DSL."}];function pa(e){let t=e.value!==void 0&&(e.value<e.min||e.max!==void 0&&e.value>e.max);return(0,Z.jsxs)("div",{style:{marginBottom:8},title:e.tooltip,children:[(0,Z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Z.jsxs)("label",{htmlFor:e.id,style:{...q(),marginBottom:0,flex:1},children:[e.label,(0,Z.jsx)("span",{"aria-hidden":"true",style:{marginLeft:4,opacity:.6,cursor:"help",fontSize:10,border:`1px solid ${c.border}`,borderRadius:"50%",padding:"0 4px"},children:"?"}),(0,Z.jsxs)("span",{style:{display:"block",fontSize:10,opacity:.8},children:[e.hint!==void 0?`${e.hint} `:"",e.max!==void 0?`Allowed: ${e.min}\u2013${e.max}.`:`Minimum ${e.min}.`]})]}),(0,Z.jsx)("input",{id:e.id,type:"number",min:e.min,...e.max!==void 0?{max:e.max}:{},value:e.value??"",placeholder:e.placeholder,onChange:n=>{let r=Number.parseInt(n.target.value,10);e.onChange(Number.isNaN(r)?void 0:r)},style:{...H(),width:110,flex:"none",...t?{borderColor:"var(--vscode-inputValidation-errorBorder, red)"}:{}}})]}),t&&(0,Z.jsx)("div",{style:{fontSize:11,color:"var(--vscode-errorForeground, red)",textAlign:"right"},children:e.max!==void 0?`Must be between ${e.min} and ${e.max}.`:`Must be at least ${e.min}.`})]})}var ga={maxHits:{min:1,max:100},timeoutSeconds:{min:1,max:120},terminateAfter:{min:0},maxIndexes:{min:0},defaultLookbackHours:{min:0},maxFieldChars:{min:50,max:2e4}};function i$(e){let[t,n]=(0,Wt.useState)(void 0),[r,i]=(0,Wt.useState)(""),[o,a]=(0,Wt.useState)(""),[l,s]=(0,Wt.useState)("qdrant"),[u,d]=(0,Wt.useState)(""),[m,h]=(0,Wt.useState)(""),[f,x]=(0,Wt.useState)(!1),[k,N]=(0,Wt.useState)(""),[g,y]=(0,Wt.useState)(""),[b,v]=(0,Wt.useState)({}),[A,ee]=(0,Wt.useState)(!1);(0,Wt.useEffect)(()=>{A&&(ee(!1),n(void 0))},[e.savedTick]),(0,Wt.useEffect)(()=>{let T=t??n$;i(T.label),a(T.url),s(T.kind),d(T.defaultIndex??""),h(T.caFile??""),x(T.rejectUnauthorized===!1),N(""),y(""),v(T.limits??{})},[t]);let B=()=>({...t!==void 0&&t.id.length>0?{id:t.id}:{},label:r,url:o,kind:l,defaultIndex:u,caFile:m,...f?{rejectUnauthorized:!1}:{},...k.length>0?{username:k}:{},...g.length>0?{password:g}:{},...Object.keys(b).length>0?{limits:b}:{}});return t!==void 0?(0,Z.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Z.jsx)("h3",{style:{margin:"0 0 12px",color:c.foreground},children:t.id.length===0?"Add a vector store":"Edit connection"}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-kind",style:q(),children:"Backend"}),(0,Z.jsx)(Ne,{id:"lc-os-kind",value:l,onChange:T=>{let V=ha.find(re=>re.kind===T);s(T);let C=ha.map(re=>re.url);V!==void 0&&(o.trim().length===0||C.includes(o.trim()))&&a(V.url)},options:ha.map(T=>({value:T.kind,label:T.label}))}),(0,Z.jsx)("span",{style:{color:c.muted,fontSize:11},children:ha.find(T=>T.kind===l)?.hint}),(()=>{let T=ha.find(V=>V.kind===l)?.run;return T===void 0?null:(0,Z.jsxs)("div",{style:{color:c.muted,fontSize:11,marginTop:4},children:["Not running one yet?"," ",(0,Z.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:T})]})})()]}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-label",style:q(),children:"Name"}),(0,Z.jsx)("input",{id:"lc-os-label",type:"text",value:r,placeholder:"Production",onChange:T=>i(T.target.value),style:H()})]}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-url",style:q(),children:l==="opensearch"?"Cluster URL":"Server URL"}),(0,Z.jsx)("input",{id:"lc-os-url",type:"text",value:o,placeholder:ha.find(T=>T.kind===l)?.url??"",onChange:T=>a(T.target.value),style:H()})]}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-user",style:q(),children:"Username"}),(0,Z.jsx)("input",{id:"lc-os-user",type:"text",value:k,placeholder:t.hasUsername?"Set \u2014 type to replace":"",onChange:T=>N(T.target.value),style:H()})]}),(0,Z.jsx)(pi,{id:"lc-os-password",label:"Password",hasValue:t.hasPassword,value:g,onChange:y,placeholder:"Stored in the OS keychain"}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-index",style:q(),children:"Default index"}),(0,Z.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,Z.jsx)("input",{id:"lc-os-index",type:"text",value:u,placeholder:"Used when the model names no index",onChange:T=>d(T.target.value),style:H()}),(0,Z.jsx)("button",{type:"button",style:$(),onClick:()=>e.onListIndexes(B()),children:"List"})]}),e.indexes.length>0&&(0,Z.jsx)(Ne,{ariaLabel:"Available indexes",value:e.indexes.some(T=>T.name===u)?u:"",onChange:T=>{T.length>0&&d(T)},style:{width:"100%"},options:[{value:"",label:`Choose from ${e.indexes.length} index(es)\u2026`},...e.indexes.map(T=>({value:T.name,label:T.name,detail:[T.docsCount!==void 0?`${T.docsCount.toLocaleString()} docs`:void 0,T.storeSize].filter(V=>V!==void 0).join(", ")}))]}),e.indexesWarning!==void 0&&e.indexes.length===0&&(0,Z.jsxs)("span",{style:{color:c.muted,fontSize:11,display:"block",marginTop:4},children:["Could not list indexes (",e.indexesWarning,"). Type the name instead."]})]}),(0,Z.jsx)("div",{style:{paddingTop:12,borderTop:`1px solid ${c.border}`,marginBottom:12},children:(0,Z.jsx)("strong",{style:{fontSize:12,color:c.foreground},children:"Connection security"})}),(0,Z.jsxs)("div",{style:{marginBottom:10},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-ca",style:q(),children:"Additional CA certificate"}),(0,Z.jsx)("input",{id:"lc-os-ca",type:"text",value:m,placeholder:"corp-root.pem",onChange:T=>h(T.target.value),style:H()}),(0,Z.jsx)("span",{style:{color:c.muted,fontSize:11},children:"Usually blank \u2014 the CA in Settings \u2192 Network already covers this cluster. Anything set here is added to it."})]}),(0,Z.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,Z.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:f,onChange:T=>x(T.target.checked)}),(0,Z.jsx)("span",{style:{color:c.foreground},children:"Skip certificate verification"})]}),f&&(0,Z.jsx)("p",{style:{color:c.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can read and modify it, including the password. The CA file above is the safe fix."}),(0,Z.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${c.border}`,marginBottom:8},children:[(0,Z.jsx)("strong",{style:{fontSize:12,color:c.foreground},children:"Query limits"}),(0,Z.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"4px 0 8px"},children:"Guard rails on the queries the model writes. It cannot change anything in the cluster \u2014 but a read can still be expensive, so these keep one bounded. Defaults are chosen to be safe on a large cluster; raise them if you know yours can take it."})]}),(0,Z.jsx)(pa,{id:"lc-os-hits",...ga.maxHits,label:"Maximum results",hint:"Documents returned per search.",tooltip:`How many documents one search returns.
97
97
 
98
98
  The tool caps the model here no matter how many it asks for. Every hit spends context, so a high value crowds out the rest of the conversation and can push the result past the overall size cap, after which the model has to re-read it in pieces.
99
99
 
100
100
  Raise it when the model keeps saying it found too few matches to judge. Lower it when replies are slow or the context bar fills up quickly.
101
101
 
102
- Default 10.`,placeholder:"10",value:y.maxHits,onChange:T=>v({...y,maxHits:T})}),(0,R.jsx)(na,{id:"lc-os-lookback",...ia.defaultLookbackHours,label:"Default lookback (hours)",hint:"Time window used when the model asks for none.",tooltip:`A time window applied automatically when the model gives no date range and the index has a date field.
102
+ Default 10.`,placeholder:"10",value:b.maxHits,onChange:T=>v({...b,maxHits:T})}),(0,Z.jsx)(pa,{id:"lc-os-lookback",...ga.defaultLookbackHours,label:"Default lookback (hours)",hint:"Time window used when the model asks for none.",tooltip:`A time window applied automatically when the model gives no date range and the index has a date field.
103
103
 
104
104
  This is the single most effective protection for a log index: on years of data, the difference between searching a day and searching everything is the difference between instant and a cluster in trouble. The model is always told the window was applied, so it can ask for a wider one deliberately.
105
105
 
106
106
  Set 0 to allow unbounded scans \u2014 only sensible on a small index.
107
107
 
108
- Default 24 hours.`,placeholder:"24",value:y.defaultLookbackHours,onChange:T=>v({...y,defaultLookbackHours:T})}),(0,R.jsx)(na,{id:"lc-os-fieldchars",...ia.maxFieldChars,label:"Longest field value",hint:"Characters kept from one field of one document.",tooltip:`How much of a single field is kept before it is cut short.
108
+ Default 24 hours.`,placeholder:"24",value:b.defaultLookbackHours,onChange:T=>v({...b,defaultLookbackHours:T})}),(0,Z.jsx)(pa,{id:"lc-os-fieldchars",...ga.maxFieldChars,label:"Longest field value",hint:"Characters kept from one field of one document.",tooltip:`How much of a single field is kept before it is cut short.
109
109
 
110
110
  This is the limit to raise if the model keeps reporting that log messages are truncated. A stack trace runs to several thousand characters and the default keeps 500 of them.
111
111
 
112
112
  Unlike the overall result cap, this cut cannot be undone \u2014 the text never leaves the tool, so there is nothing to re-read. It is reported in the result rather than hidden, so a clipped trace never reads as a short one.
113
113
 
114
- Default 500 characters.`,placeholder:"500",value:y.maxFieldChars,onChange:T=>v({...y,maxFieldChars:T})}),(0,R.jsx)(na,{id:"lc-os-timeout",...ia.timeoutSeconds,label:"Query timeout (seconds)",hint:"Per-shard time budget sent with the query.",tooltip:`How long each shard may spend on one search, sent to OpenSearch as the query's own timeout.
114
+ Default 500 characters.`,placeholder:"500",value:b.maxFieldChars,onChange:T=>v({...b,maxFieldChars:T})}),(0,Z.jsx)(pa,{id:"lc-os-timeout",...ga.timeoutSeconds,label:"Query timeout (seconds)",hint:"Per-shard time budget sent with the query.",tooltip:`How long each shard may spend on one search, sent to OpenSearch as the query's own timeout.
115
115
 
116
116
  On expiry the cluster returns whatever it has found so far rather than failing, so a slow query degrades into a partial answer instead of hanging the conversation.
117
117
 
118
118
  Raise it for a large or heavily loaded cluster where legitimate searches are genuinely slow.
119
119
 
120
- Default 10 seconds.`,placeholder:"10",value:y.timeoutSeconds,onChange:T=>v({...y,timeoutSeconds:T})}),(0,R.jsx)(na,{id:"lc-os-terminate",...ia.terminateAfter,label:"Documents examined per shard",hint:"Stops a query early instead of walking the whole index.",tooltip:`How many documents each shard may inspect before it stops looking.
120
+ Default 10 seconds.`,placeholder:"10",value:b.timeoutSeconds,onChange:T=>v({...b,timeoutSeconds:T})}),(0,Z.jsx)(pa,{id:"lc-os-terminate",...ga.terminateAfter,label:"Documents examined per shard",hint:"Stops a query early instead of walking the whole index.",tooltip:`How many documents each shard may inspect before it stops looking.
121
121
 
122
122
  A timeout limits how long a query runs; this limits how much work it does. It is what stops a badly-targeted search from walking an entire index and evicting everything else from the cluster cache.
123
123
 
124
124
  The trade-off: a rare match sitting past this point will not be found, and the result will honestly say the count is capped rather than claim there were none.
125
125
 
126
- Set 0 to disable. Default 10,000.`,placeholder:"10000",value:y.terminateAfter,onChange:T=>v({...y,terminateAfter:T})}),(0,R.jsx)(na,{id:"lc-os-maxindexes",...ia.maxIndexes,label:"Maximum indexes per query",hint:"Refuses a wildcard that fans out wider than this.",tooltip:`How many indexes one search may span.
126
+ Set 0 to disable. Default 10,000.`,placeholder:"10000",value:b.terminateAfter,onChange:T=>v({...b,terminateAfter:T})}),(0,Z.jsx)(pa,{id:"lc-os-maxindexes",...ga.maxIndexes,label:"Maximum indexes per query",hint:"Refuses a wildcard that fans out wider than this.",tooltip:`How many indexes one search may span.
127
127
 
128
128
  A pattern like \`logs-*\` can resolve to hundreds of daily indexes, and querying them together is one of the easiest ways to overload a cluster by accident. A pattern matching more than this is refused before it is sent, and the model is told to narrow it.
129
129
 
130
130
  Raise it if you routinely search a wide date range of daily indexes. Set 0 to disable the check.
131
131
 
132
- Default 5.`,placeholder:"5",value:y.maxIndexes,onChange:T=>v({...y,maxIndexes:T})}),(0,R.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginBottom:12},children:[(0,R.jsx)("button",{type:"button",style:C(),onClick:()=>e.onTest(L()),children:"Test Connection"}),e.testResult!==void 0&&(0,R.jsx)("div",{style:{marginTop:8,fontSize:12,color:e.testResult.ok?"var(--vscode-testing-iconPassed, #3fb950)":s.error},children:e.testResult.detail})]}),(0,R.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,R.jsx)("button",{type:"button",style:me(!1),onClick:()=>{X(!0),e.onSave(L())},children:"Save"}),(0,R.jsx)("button",{type:"button",style:C(),onClick:()=>n(void 0),children:"Cancel"}),j&&(0,R.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saving\u2026"})]})]}):(0,R.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,R.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,R.jsx)("h3",{style:{margin:0,color:s.foreground},children:"Search"}),(0,R.jsx)(or,{scope:"user"})]}),(0,R.jsx)("p",{style:{color:s.muted,fontSize:12,fontFamily:B,margin:"0 0 12px"},children:"Lets the model search OpenSearch indexes your organisation already runs \u2014 logs, tickets, documentation. It can only read: nothing here can create, change or delete anything in a cluster."}),e.connections.length===0&&(0,R.jsx)("p",{style:{color:s.muted,fontFamily:B},children:"No connections yet."}),e.project.overridden.length>0&&(0,R.jsxs)("div",{style:{padding:10,marginBottom:12,borderRadius:4,border:`1px solid ${s.accent}`,background:`color-mix(in srgb, ${s.accent} 10%, transparent)`},children:[(0,R.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"This project has its own settings"}),(0,R.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:[e.project.overridden.join(", ")," \u2014 set for this folder only. Everything else follows your defaults, and other projects are unaffected."]}),(0,R.jsx)("button",{type:"button",style:C(),onClick:e.onClearProject,children:"Use my defaults here again"})]}),e.activeConnectionId!==void 0&&e.connections.length>1&&(0,R.jsxs)("div",{style:{padding:10,marginBottom:12,borderRadius:4,border:`1px solid ${s.border}`,fontFamily:B,fontSize:12},children:[(0,R.jsx)("strong",{style:{color:s.foreground,fontSize:12},children:"Copy an existing index here"}),(0,R.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Moves this workspace\u2019s vectors into the active store without re-embedding. Only possible when both were indexed with the same embedding model \u2014 otherwise the copy is refused, because mixing embeddings makes every search quietly wrong rather than visibly broken."}),(0,R.jsx)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:e.connections.filter(T=>T.id!==e.activeConnectionId).map(T=>(0,R.jsxs)("button",{type:"button",style:C(),disabled:e.sync?.running===!0,title:`Copy this workspace's index from ${T.label} into the active store`,onClick:()=>e.onSyncFrom(T.id),children:["From ",T.label]},T.id))}),e.sync!==void 0&&(0,R.jsx)("p",{style:{color:e.sync.error!==void 0?s.error:s.muted,fontSize:11,margin:"6px 0 0"},children:e.sync.error??(e.sync.running?`Copying from ${e.sync.fromLabel??"the other store"}\u2026 ${String(e.sync.copied??0)} so far.`:`Copied ${String(e.sync.copied??0)} entries from ${e.sync.fromLabel??"the other store"}.`)})]}),e.connections.map(T=>{let Q=T.id===e.activeConnectionId;return(0,R.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${Q?s.accent:s.border}`,background:Q?s.assistantBubble:"transparent"},children:[(0,R.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,R.jsx)("strong",{children:T.label}),Q&&(0,R.jsx)("span",{style:{color:s.muted,fontSize:11},children:"\xB7 active"})]}),(0,R.jsxs)("div",{style:{color:s.muted,fontSize:12,marginBottom:8},children:[T.url,T.defaultIndex!==void 0?` \u2014 ${T.defaultIndex}`:" \u2014 no default index"]}),(0,R.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,R.jsx)("button",{type:"button",style:C(),onClick:()=>e.onSetActive(Q?void 0:T.id),children:Q?"Turn off":"Use in chat"}),e.project.workspaceOpen&&!Q&&(0,R.jsx)("button",{type:"button",style:C(),title:"Use this store in this project only, leaving your default alone",onClick:()=>e.onSetActive(T.id,!0),children:"Use in this project"}),(0,R.jsx)("button",{type:"button",style:C(),onClick:()=>n(T),children:"Edit"}),(0,R.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...be("secondary"),color:s.error},onClick:()=>e.onDelete(T.id),children:(0,R.jsx)(Et,{})})]})]},T.id)}),(0,R.jsx)("button",{type:"button",style:me(!1),onClick:()=>n({...jw}),children:"Add connection"}),(0,R.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:16},children:"Search tools are offered only while a connection is active. Switching starts a fresh prompt, so change it between messages rather than mid-reply."}),(0,R.jsx)(Ew,{...e.indexing}),(0,R.jsx)(Dw,{...e.dispatcher}),(0,R.jsx)(Iw,{...e.activity})]})}var Xe=P(ie(),1),Un=P(ge(),1);var Hu={fontFamily:B,fontSize:11,color:s.muted,marginTop:-12,marginBottom:16,lineHeight:1.5};function Zl(e){return(0,Xe.jsxs)("div",{style:{marginBottom:e.hint!==void 0?0:16},children:[(0,Xe.jsx)(gn,{id:e.id,label:e.label,value:e.value,placeholder:e.placeholder,...e.browse!==void 0?{browse:e.browse}:{},...e.onBrowse!==void 0?{onBrowse:e.onBrowse}:{},onChange:e.onChange}),e.hint!==void 0&&(0,Xe.jsx)("div",{style:Hu,children:e.hint})]})}function Uw(e){let t=e.settings,[n,r]=(0,Un.useState)(""),[i,o]=(0,Un.useState)(""),[a,l]=(0,Un.useState)(""),[c,u]=(0,Un.useState)(""),[d,m]=(0,Un.useState)(""),[p,f]=(0,Un.useState)(""),[x,_]=(0,Un.useState)(!0),[Z,g]=(0,Un.useState)(!1);(0,Un.useEffect)(()=>{t!==void 0&&(r(t.certDir??""),o(t.tls.caFile??""),l(t.tls.certFile??""),u(t.tls.keyFile??""),m(t.tls.pfxFile??""),_(t.tls.rejectUnauthorized!==!1),f(""),g(!1))},[t]),(0,Un.useEffect)(()=>{let v=e.pickedPath;if(v===void 0)return;let j={"net.certDir":r,"net.caFile":o,"net.certFile":l,"net.keyFile":u,"net.pfxFile":m}[v.purpose];j?.(v.path)},[e.pickedPath]);let h=d.trim().length>0;function y(){e.onSave({certDir:n,tls:{caFile:i,certFile:h?"":a,keyFile:h?"":c,pfxFile:d,...x?{}:{rejectUnauthorized:!1}},...p.length>0?{passphrase:p}:{}}),g(!0)}return(0,Xe.jsxs)("div",{style:{padding:16,fontFamily:B,fontSize:13,color:s.foreground},children:[(0,Xe.jsx)("p",{style:{...Hu,marginTop:0,marginBottom:20},children:"Applies to every connection Light Code makes. A provider profile or search cluster can still set its own \u2014 an extra CA there is added to this one, and its own client certificate replaces this one for that connection only."}),(0,Xe.jsx)(Zl,{id:"net-certdir",browse:{purpose:"net.certDir",kind:"folder"},onBrowse:e.onBrowse,label:"Certificate directory",value:n,placeholder:"C:\\Users\\you\\certs",hint:"Filenames below resolve against this. Absolute paths ignore it. Must be outside the workspace, and everything it holds is hidden from file-reading tools.",onChange:r}),(0,Xe.jsx)("h3",{style:{fontSize:12,textTransform:"uppercase",color:s.muted,margin:"24px 0 12px"},children:"Trust"}),(0,Xe.jsx)(Zl,{id:"net-ca",browse:{purpose:"net.caFile",kind:"file",extensions:["pem","crt","cer","ca-bundle"]},onBrowse:e.onBrowse,label:"CA certificate",value:i,placeholder:"corporate-root.pem",hint:"Added to the built-in roots, not a replacement for them \u2014 public sites keep working.",onChange:o}),(0,Xe.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:8,marginBottom:4,cursor:"pointer"},children:[(0,Xe.jsx)("input",{type:"checkbox",checked:x,onChange:v=>_(v.target.checked),style:{marginTop:2}}),(0,Xe.jsx)("span",{children:"Verify server certificates"})]}),!x&&(0,Xe.jsx)("div",{style:{...Hu,color:"var(--vscode-editorWarning-foreground, inherit)",marginTop:4},children:"Off means any certificate is accepted, so an interception cannot be distinguished from the real server. Use it to confirm a diagnosis, then add the CA above instead."}),(0,Xe.jsx)("h3",{style:{fontSize:12,textTransform:"uppercase",color:s.muted,margin:"24px 0 12px"},children:"Client certificate"}),(0,Xe.jsx)("p",{style:{...Hu,marginTop:0},children:"Presented to every connection that does not supply its own. A certificate identifies you, so it goes to each host you have configured \u2014 set it on the individual profile instead if that is not what you want."}),(0,Xe.jsx)(Zl,{id:"net-pfx",browse:{purpose:"net.pfxFile",kind:"file",extensions:["pfx","p12"]},onBrowse:e.onBrowse,label:"PFX bundle",value:d,placeholder:"client.pfx",hint:"Windows PKI usually issues one of these. Supplied instead of a certificate and key.",onChange:m}),!h&&(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Zl,{id:"net-cert",browse:{purpose:"net.certFile",kind:"file",extensions:["crt","pem","cer"]},onBrowse:e.onBrowse,label:"Certificate",value:a,placeholder:"client.crt",onChange:l}),(0,Xe.jsx)(Zl,{id:"net-key",browse:{purpose:"net.keyFile",kind:"file",extensions:["key","pem"]},onBrowse:e.onBrowse,label:"Private key",value:c,placeholder:"client.key",onChange:u})]}),(0,Xe.jsx)(ci,{id:"net-passphrase",label:"Key passphrase",hasValue:t?.hasPassphrase??!1,value:p,onChange:f,placeholder:"Leave blank if the key is not encrypted"}),(0,Xe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,Xe.jsx)("button",{type:"button",style:me(!1),onClick:y,children:"Save"}),Z&&(0,Xe.jsx)("span",{style:{fontSize:12,color:s.muted},children:"Saved."})]})]})}var Y=P(ie(),1),yn=P(ge(),1);var Gu="var(--vscode-editor-font-family, monospace)";function Nw(e){let t=e.status,[n,r]=(0,yn.useState)(void 0),[i,o]=(0,yn.useState)(""),[a,l]=(0,yn.useState)(!1),[c,u]=(0,yn.useState)(""),[d,m]=(0,yn.useState)(""),[p,f]=(0,yn.useState)("30"),[x,_]=(0,yn.useState)(""),[Z,g]=(0,yn.useState)(!1),[h,y]=(0,yn.useState)(!1);return(0,yn.useEffect)(()=>{e.pickedPath?.purpose==="python.uvPath"&&u(e.pickedPath.path),e.pickedPath?.purpose==="python.toolsDir"&&m(e.pickedPath.path),e.pickedPath?.purpose==="python.venvPath"&&o(e.pickedPath.path)},[e.pickedPath]),(0,yn.useEffect)(()=>{let v=e.settings;v!==void 0&&(l(v.dynamicTools==="on"),u(v.uvPath??""),m(v.toolsDir??""),o(v.venvPath??""),_(v.indexUrl??""),g(v.offline===!0),f(String(v.timeoutSeconds??30)),y(!1))},[e.settings]),(0,Y.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B,fontSize:13,color:s.foreground},children:[(0,Y.jsx)("h3",{style:{margin:"0 0 4px"},children:"Python tools"}),(0,Y.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Lets the model write small Python tools and call them in the same conversation \u2014 useful for parsing, data wrangling, or anything needing a library that a shell command handles badly."}),(0,Y.jsxs)("div",{style:{fontSize:11,color:s.muted,border:`1px solid ${s.border}`,borderRadius:3,padding:"8px 10px",margin:"10px 0",lineHeight:1.5},children:["This is the sharpest feature in Light Code. Elsewhere you approve a tool ",(0,Y.jsx)("em",{children:"call"}),"; here you approve a tool's ",(0,Y.jsx)("strong",{children:"source code"}),", which then runs whenever the model uses it. Every create and update shows you the full diff first, and a file changed afterwards \u2014 by anything \u2014 is refused rather than loaded. Tools live in your workspace so they land in git and get reviewed like any other code. There is no sandbox: a tool runs with your privileges."]}),(0,Y.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12,cursor:"pointer"},children:[(0,Y.jsx)("input",{type:"checkbox",checked:a,onChange:v=>l(v.target.checked)}),(0,Y.jsx)("span",{children:"Let the model create and run Python tools"})]}),a&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(gn,{id:"lc-py-uv",label:"Path to uv",value:c,placeholder:t?.uv?.path??"uv (found on PATH)",hint:"Leave blank to use uv from PATH. uv is used because it reads a tool's inline dependency block natively, so the tool file is the only place its dependencies are declared.",browse:{purpose:"python.uvPath",kind:"file"},onBrowse:e.onBrowse,onChange:u}),(0,Y.jsx)(gn,{id:"lc-py-tools",label:"Where tools are kept",value:d,placeholder:t?.toolsDir??".lightcode/tools",hint:"Leave blank for .lightcode/tools in the workspace, which is the safer default: a tool is code the model wrote, and keeping it in the repository means every change lands in git and gets reviewed. One folder only \u2014 each tool's approved content hash is recorded alongside it.",browse:{purpose:"python.toolsDir",kind:"folder"},onBrowse:e.onBrowse,onChange:m}),(0,Y.jsx)(gn,{id:"lc-py-venv",label:"Python environment",value:i,placeholder:t?.venvPath??"the project's .venv, or one created for you",hint:"Leave blank to prefer the project's own .venv \u2014 that is where its internal libraries already are. Give a venv folder, or a python.exe directly, to override.",browse:{purpose:"python.venvPath",kind:"folder"},onBrowse:e.onBrowse,onChange:o}),e.programming!==void 0&&e.programming.profiles.length>0&&(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsx)("label",{htmlFor:"lc-py-writer",style:V(),children:"Which model writes the code"}),(0,Y.jsx)(Ve,{id:"lc-py-writer",value:e.programming.selectedId??"",onChange:e.programming.onSelect,options:[{value:"",label:"The model you are chatting with"},...e.programming.profiles.map(v=>({value:v.id,label:v.label}))]}),(0,Y.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 0"},children:e.programming.selectedId===void 0||e.programming.selectedId===""?(0,Y.jsx)(Y.Fragment,{children:"The assistant writes the Python itself. Pick a different profile and it will describe the tool instead, leaving the file to a model chosen for code."}):(0,Y.jsx)(Y.Fragment,{children:"The assistant describes what the tool must do and this profile writes the file. You still approve the source before anything is saved, and the prompt says which model produced it."})})]}),(0,Y.jsxs)("div",{style:{marginBottom:10},children:[(0,Y.jsx)("label",{htmlFor:"lc-py-index",style:V(),children:"Package index"}),(0,Y.jsx)("input",{id:"lc-py-index",type:"text",value:x,spellCheck:!1,placeholder:"https://artifactory.corp/api/pypi/pypi/simple",onChange:v=>_(v.target.value),style:{...G(),fontFamily:Gu}}),(0,Y.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"Where a tool's declared dependencies are fetched from. Point this at your internal mirror to make company packages installable \u2014 and to avoid reaching public PyPI at all."})]}),(0,Y.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10,cursor:"pointer"},children:[(0,Y.jsx)("input",{type:"checkbox",checked:Z,onChange:v=>g(v.target.checked)}),(0,Y.jsx)("span",{style:{fontSize:12},children:"Offline \u2014 never fetch a package, use only what is already installed"})]}),(0,Y.jsxs)("div",{style:{marginBottom:12},children:[(0,Y.jsx)("label",{htmlFor:"lc-py-timeout",style:V(),children:"Timeout per call (seconds)"}),(0,Y.jsx)("input",{id:"lc-py-timeout",type:"number",min:1,max:600,value:p,onChange:v=>f(v.target.value),style:{...G(),width:120}}),(0,Y.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"A tool that exceeds this is stopped and its whole process tree killed, so a hang cannot hold up the conversation."})]})]}),(0,Y.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:12},children:[(0,Y.jsx)("button",{type:"button",style:me(!1),onClick:()=>{let v=Number.parseInt(p,10);e.onSave({dynamicTools:a?"on":"off",uvPath:c.trim(),toolsDir:d.trim(),venvPath:i.trim(),timeoutSeconds:Number.isFinite(v)?v:30,indexUrl:x.trim(),offline:Z}),y(!0)},children:"Save"}),h&&(0,Y.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saved."})]}),t!==void 0&&(0,Y.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,Y.jsx)("strong",{style:{fontSize:12},children:"Status"}),(0,Y.jsx)("div",{style:{fontSize:11,marginTop:4,color:t.ready?s.muted:t.enabled?s.error:s.muted},children:t.detail}),t.enabled&&(0,Y.jsxs)("div",{style:{fontSize:11,color:s.muted,marginTop:6,fontFamily:Gu},children:[(0,Y.jsxs)("div",{children:["tools: ",t.toolsDir||"\u2014"]}),(0,Y.jsxs)("div",{children:["venv: ",t.venvPath||"\u2014"," ",t.venvSource==="workspace"?`(this project's${t.venvIsUvManaged?", uv-managed":""})`:t.venvSource==="configured"?"(configured)":t.venvSource==="created"?"(created by Light Code)":""]})]}),t.issues.length>0&&(0,Y.jsxs)("div",{style:{marginTop:10},children:[(0,Y.jsx)("strong",{style:{fontSize:12,color:s.error},children:"Not loaded"}),t.issues.map(v=>(0,Y.jsxs)("div",{style:{marginTop:4},children:[(0,Y.jsxs)("div",{style:{fontSize:11,color:s.error},children:["\u26A0 ",v.detail]}),(0,Y.jsxs)("div",{style:{display:"flex",gap:6,marginTop:3},children:[(0,Y.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px"},onClick:()=>e.onOpenFile(v.filePath),children:"Open"}),v.recoverable&&(0,Y.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px"},title:"Trust this file as it stands now. Read it first \u2014 a change you did not make is exactly what the check is for.",onClick:()=>e.onApproveTool(v.name),children:"Approve this version"}),(0,Y.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px"},onClick:()=>r(v.name),children:"Delete"})]})]},v.filePath))]}),(0,Y.jsxs)("div",{style:{marginTop:10},children:[(0,Y.jsx)("strong",{style:{fontSize:12},children:"Registered tools"}),t.tools.length===0?(0,Y.jsx)("p",{style:{fontSize:11,color:s.muted,margin:"4px 0 0"},children:t.ready?"None yet. Ask the model to write one \u2014 it will show you the source before anything is saved.":"None."}):t.tools.map(v=>(0,Y.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`},children:[(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,Y.jsxs)("span",{style:{fontFamily:Gu,fontSize:12},children:["py__",v.name]}),(0,Y.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,Y.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px"},title:"Open the source in an editor tab",onClick:()=>e.onOpenFile(v.filePath),children:"Open"}),(0,Y.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px"},onClick:()=>r(v.name),children:"Delete"})]})]}),v.description.length>0&&(0,Y.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:v.description}),(0,Y.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10,fontFamily:Gu},children:v.filePath}),n===v.name&&(0,Y.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:6,fontSize:12},children:[(0,Y.jsx)("span",{children:"Delete this tool and its approval?"}),(0,Y.jsx)("button",{type:"button",style:me(!1),onClick:()=>{e.onDeleteTool(v.name),r(void 0)},children:"Delete"}),(0,Y.jsx)("button",{type:"button",style:C(),onClick:()=>r(void 0),children:"Cancel"})]})]},v.name))]})]})]})}var ye=P(ie(),1),Ll=P(ge(),1);var Tj="var(--vscode-editor-font-family, monospace)",Cj={"built-in":"Built in",mcp:"MCP servers",python:"Python tools"},Ej={read:"reads",edit:"edits",command:"runs commands",mcp:"mcp",always:"always available"};function Rw(e){let[t,n]=(0,Ll.useState)(""),r=(0,Ll.useMemo)(()=>{let a=t.trim().toLowerCase();return a.length===0?e.tools:e.tools.filter(l=>l.name.toLowerCase().includes(a)||l.description.toLowerCase().includes(a))},[e.tools,t]),i=(0,Ll.useMemo)(()=>{let a=new Map;for(let l of r){let c=a.get(l.source);c===void 0?a.set(l.source,[l]):c.push(l)}return a},[r]),o=e.tools.filter(a=>!a.advertised).length;return(0,ye.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B,fontSize:13,color:s.foreground},children:[(0,ye.jsx)("h3",{style:{margin:"0 0 4px"},children:"Tools"}),(0,ye.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Everything the assistant can call right now \u2014 built in, from your MCP servers, and your own Python tools. Read-only: each is configured where it comes from."}),e.dispatcher&&(0,ye.jsxs)("p",{style:{color:s.muted,fontSize:11},children:[o," of these are kept out of the system prompt to save space. They are still callable \u2014 the assistant looks them up when it needs one. Turn that off in"," ",(0,ye.jsx)("strong",{children:"Search"})," if you would rather it saw them all."]}),(0,ye.jsx)(Dj,{office:e.office,onSet:e.onSetOffice}),(0,ye.jsxs)("div",{style:{margin:"10px 0"},children:[(0,ye.jsx)("label",{htmlFor:"lc-tools-search",style:V(),children:"Search"}),(0,ye.jsx)("input",{id:"lc-tools-search",type:"search",value:t,placeholder:"e.g. read a spreadsheet",onChange:a=>n(a.target.value),style:G()})]}),(0,ye.jsxs)("p",{style:{color:s.muted,fontSize:11},children:[r.length," of ",e.tools.length," ",e.tools.length===1?"tool":"tools"]}),e.tools.length===0&&(0,ye.jsx)("p",{style:{color:s.muted,fontSize:12},children:"Nothing yet. Open a folder and configure a provider \u2014 the built-in tools appear once a session can start."}),[...i.entries()].map(([a,l])=>(0,ye.jsxs)("div",{style:{marginTop:14},children:[(0,ye.jsxs)("strong",{style:{fontSize:12},children:[Cj[a]," ",(0,ye.jsxs)("span",{style:{color:s.muted},children:["(",l.length,")"]})]}),l.map(c=>(0,ye.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`},children:[(0,ye.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,ye.jsx)("span",{style:{fontFamily:Tj,fontSize:12},children:c.name}),(0,ye.jsx)("span",{style:{...Je(),fontSize:9},children:Ej[c.group]??c.group}),c.server!==void 0&&(0,ye.jsx)("span",{style:{...Je(),fontSize:9},title:`From the ${c.server} server`,children:c.server}),!c.advertised&&(0,ye.jsx)("span",{style:{...Je(),fontSize:9},title:"Registered but kept out of the system prompt. Still callable \u2014 the assistant looks it up first.",children:"looked up"})]}),(0,ye.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:c.description})]},c.name))]},a)),e.tools.length>0&&r.length===0&&(0,ye.jsxs)("p",{style:{color:s.muted,fontSize:12,marginTop:12},children:["Nothing matches \u201C",t.trim(),"\u201D."]})]})}function Dj(e){let{office:t}=e;return(0,ye.jsxs)("div",{style:{margin:"12px 0",padding:10,border:`1px solid ${s.border}`,borderRadius:6,opacity:t.supported?1:.6},children:[(0,ye.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"Excel and Outlook"}),(0,ye.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:t.supported?"Lets the assistant attach to the Office applications already running here. Off by default: nothing is started and nothing is read until you switch one on.":"Windows only \u2014 this uses COM to attach to a running Office application, which exists nowhere else. The tools are absent on this machine rather than present and failing."}),(0,ye.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",marginBottom:6,cursor:t.supported?"pointer":"not-allowed"},children:[(0,ye.jsx)("input",{type:"checkbox",checked:t.excel,disabled:!t.supported,onChange:n=>e.onSet(n.target.checked,t.outlook),style:{marginTop:2}}),(0,ye.jsxs)("span",{children:[(0,ye.jsx)("span",{style:{display:"block",fontSize:13},children:"Excel"}),(0,ye.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Read cells and formulas from open workbooks, trace where a value comes from, and read or replace VBA. ",(0,ye.jsx)("strong",{children:"It can read any workbook you have open"}),", including unsaved ones. Replacing a macro always asks first and shows the code."]})]})]}),(0,ye.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",cursor:t.supported?"pointer":"not-allowed"},children:[(0,ye.jsx)("input",{type:"checkbox",checked:t.outlook,disabled:!t.supported,onChange:n=>e.onSet(t.excel,n.target.checked),style:{marginTop:2}}),(0,ye.jsxs)("span",{children:[(0,ye.jsx)("span",{style:{display:"block",fontSize:13},children:"Outlook"}),(0,ye.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Search and read mail from the Outlook installed here. ",(0,ye.jsx)("strong",{children:"Read-only"})," \u2014 nothing can send, reply, delete or move a message. Message text becomes part of the conversation, so it goes to your model provider like anything else you paste in."]})]})]})]})}var Ne=P(ie(),1),Ry=P(ge(),1);function Mw(e){let t=e.items.filter(r=>r.status==="pending"),n=e.items.filter(r=>r.status!=="pending");return(0,Ne.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B,fontSize:13,color:s.foreground},children:[(0,Ne.jsx)("h3",{style:{margin:"0 0 4px"},children:"Review queue"}),(0,Ne.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:e.canDecide?"Python tools and skills written by other people. Nothing here can run until you approve it.":"What you have submitted. An administrator has to approve it before it can run."}),t.length===0&&(0,Ne.jsx)("p",{style:{color:s.muted,fontSize:12,marginTop:14},children:"Nothing waiting."}),t.map(r=>(0,Ne.jsx)(Ij,{item:r,canDecide:e.canDecide,onDecide:e.onDecide},r.id)),n.length>0&&(0,Ne.jsxs)("section",{style:{marginTop:22,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,Ne.jsx)("span",{style:V(),children:"Decided"}),n.map(r=>(0,Ne.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`,fontSize:12},children:[(0,Ne.jsx)("span",{style:{...Je(),fontSize:9,marginRight:6},children:r.status}),(0,Ne.jsx)("strong",{children:r.name})," ",(0,Ne.jsxs)("span",{style:{color:s.muted},children:["by ",r.authorName,r.decidedBy!==void 0?`, decided by ${r.decidedBy}`:""]}),r.reason!==void 0&&(0,Ne.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:r.reason})]},r.id))]})]})}function Ij(e){let{item:t}=e,[n,r]=(0,Ry.useState)(!1),[i,o]=(0,Ry.useState)("");return(0,Ne.jsxs)("div",{style:{border:`1px solid ${s.border}`,borderRadius:5,padding:10,marginBottom:10},children:[(0,Ne.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,Ne.jsx)("span",{style:{...Je(),fontSize:9},children:t.kind==="python-tool"?"tool":"skill"}),(0,Ne.jsx)("strong",{style:{fontSize:13},children:t.name}),(0,Ne.jsxs)("span",{style:{color:s.muted,fontSize:11},children:["from ",t.authorName," \xB7 ",new Date(t.submittedAt).toLocaleString()]})]}),t.producedBy!==void 0&&(0,Ne.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:4},children:["Written by ",t.producedBy]}),(0,Ne.jsx)("button",{type:"button",style:{...C(),fontSize:11,marginTop:8},"aria-expanded":n,onClick:()=>r(!n),children:n?"Hide the source":"Read the source"}),n&&(0,Ne.jsx)("div",{style:{marginTop:8},children:(0,Ne.jsx)(Nl,{path:t.name,before:t.existingContent,after:t.content})}),e.canDecide?(0,Ne.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,alignItems:"center",flexWrap:"wrap"},children:[(0,Ne.jsx)("button",{type:"button",style:me(!n),disabled:!n,title:n?void 0:"Read the source first",onClick:()=>e.onDecide(t.id,!0),children:"Approve"}),(0,Ne.jsx)("button",{type:"button",style:{...C(),color:s.error},onClick:()=>e.onDecide(t.id,!1,i.trim().length>0?i.trim():void 0),children:"Reject"}),(0,Ne.jsx)("input",{type:"text","aria-label":"Reason for rejecting",placeholder:"Why? The author sees this.",value:i,onChange:a=>o(a.target.value),style:{...G(),flex:1,minWidth:140}}),!n&&(0,Ne.jsx)("span",{style:{color:s.muted,fontSize:11,flexBasis:"100%"},children:"Open the source before approving it."})]}):(0,Ne.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:8},children:"Waiting for an administrator."})]})}var $e=P(ie(),1);var ar=P(ge(),1);var Pl="var(--vscode-editor-font-family, monospace)";function Zw(e){return(0,$e.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B,fontSize:13,color:s.foreground},children:[(0,$e.jsx)("h3",{style:{margin:"0 0 4px"},children:"Variables"}),(0,$e.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Set as environment variables for everything a session runs \u2014 shell commands and Python tools."}),(0,$e.jsxs)("p",{style:{color:s.error,fontSize:11,border:`1px solid ${s.error}`,borderRadius:8,padding:8,margin:"0 0 12px"},children:[(0,$e.jsx)("strong",{children:"Not secret."})," Everything a session runs does so as the server\u2019s own account, so another user can have their assistant read these. Put an API key in"," ",(0,$e.jsx)("strong",{children:"Providers"}),", which stores it separately and never sends it back to a page."]}),(0,$e.jsx)(Bw,{title:"Yours",hint:"Only your sessions see these.",variables:e.user,resolved:e.resolved,scope:"user",onSave:e.onSaveUser,editable:!0}),(0,$e.jsx)(Bw,{title:"Everyone's",hint:e.canEditAdmin?"Applied to every user, and these win where a name collides with someone\u2019s own.":"Set by an administrator. These win where a name collides with your own.",variables:e.admin,resolved:e.resolved,scope:"admin",onSave:e.onSaveAdmin,editable:e.canEditAdmin}),e.canEditAdmin&&(0,$e.jsx)(Aj,{ids:e.adminIds,onSave:e.onSaveAdminIds})]})}function Bw(e){let[t,n]=(0,ar.useState)(e.variables),[r,i]=(0,ar.useState)(!1);(0,ar.useEffect)(()=>{r||n(e.variables)},[e.variables,r]);let o=(c,u)=>{i(!0),n(d=>d.map((m,p)=>p===c?{...m,...u}:m))},a=t.filter(c=>c.name.length>0&&!Nu(c.name)),l=t.some(c=>c.name.trim().length===0);return(0,$e.jsxs)("section",{style:{marginTop:16,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,$e.jsx)("span",{style:V(),children:e.title}),(0,$e.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:e.hint}),t.length===0&&(0,$e.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:"None set."}),t.map((c,u)=>{let d=e.resolved.find(f=>f.name===c.name),m=e.scope==="user"&&d!==void 0&&d.scope==="admin",p=c.name.length>0&&!Nu(c.name);return(0,$e.jsxs)("div",{style:{marginBottom:8},children:[(0,$e.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,$e.jsx)("input",{type:"text","aria-label":"Variable name",value:c.name,spellCheck:!1,disabled:!e.editable,placeholder:"NAME",onChange:f=>o(u,{name:f.target.value}),style:{...G(),width:170,fontFamily:Pl,...p?{borderColor:s.error}:{}}}),(0,$e.jsx)("input",{type:"text","aria-label":"Variable value",value:c.value,spellCheck:!1,disabled:!e.editable,placeholder:"value",onChange:f=>o(u,{value:f.target.value}),style:{...G(),flex:1,minWidth:140,fontFamily:Pl}}),e.editable&&(0,$e.jsx)("button",{type:"button","aria-label":`Remove ${c.name}`,title:"Remove",style:C(),onClick:()=>{i(!0),n(f=>f.filter((x,_)=>_!==u))},children:(0,$e.jsx)(Et,{})})]}),p&&(0,$e.jsx)("div",{style:{color:s.error,fontSize:10,marginTop:2},children:"Letters, digits and underscore only, not starting with a digit \u2014 anything else cannot be set as an environment variable."}),m&&(0,$e.jsxs)("div",{style:{color:s.muted,fontSize:10,marginTop:2},children:[(0,$e.jsx)("span",{style:{...Je(),fontSize:9,marginRight:4},children:"overridden"}),"An administrator set ",c.name," for everyone, so sessions use"," ",(0,$e.jsx)("code",{style:{fontFamily:Pl},children:d.value})," and not yours."]})]},u)}),e.editable&&(0,$e.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8,alignItems:"center",flexWrap:"wrap"},children:[(0,$e.jsx)("button",{type:"button",style:C(),onClick:()=>{i(!0),n(c=>[...c,{name:"",value:""}])},children:"Add"}),(0,$e.jsx)("button",{type:"button",style:me(!r||a.length>0||l),disabled:!r||a.length>0||l,onClick:()=>{e.onSave(t.map(c=>({...c,name:c.name.trim()}))),i(!1)},children:"Save"}),l&&(0,$e.jsx)("span",{style:{color:s.muted,fontSize:11},children:"A name is required."})]})]})}function Aj(e){let[t,n]=(0,ar.useState)(e.ids.join(`
133
- `)),[r,i]=(0,ar.useState)(!1);return(0,ar.useEffect)(()=>{r||n(e.ids.join(`
134
- `))},[e.ids,r]),(0,$e.jsxs)("section",{style:{marginTop:16,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,$e.jsx)("span",{style:V(),children:"Administrators"}),(0,$e.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["One identity id per line \u2014 the immutable id your directory issues, not a username, which gets reassigned when someone leaves. Removing yourself is allowed; the way back is"," ",(0,$e.jsx)("code",{style:{fontFamily:Pl},children:"--admin-id"})," on the command line."]}),(0,$e.jsx)("textarea",{"aria-label":"Administrator ids",value:t,spellCheck:!1,rows:4,onChange:o=>{i(!0),n(o.target.value)},style:{...G(),width:"100%",fontFamily:Pl,resize:"vertical"}}),(0,$e.jsx)("button",{type:"button",style:{...me(!r),marginTop:8},disabled:!r,onClick:()=>{e.onSave(t.split(`
135
- `).map(o=>o.trim()).filter(o=>o.length>0)),i(!1)},children:"Save"})]})}var le=P(ie(),1),qw=P(ge(),1);var Zt=P(ie(),1),ra=P(ge(),1);var Lw="var(--vscode-editor-font-family, monospace)";function Pw(e){let[t,n]=(0,ra.useState)(e.primary),[r,i]=(0,ra.useState)(e.extras);(0,ra.useEffect)(()=>n(e.primary),[e.primary]),(0,ra.useEffect)(()=>i(e.extras),[e.extras]);let o=t!==e.primary||r.join("\0")!==e.extras.join("\0"),a=(l,c)=>i(u=>u.map((d,m)=>m===l?c:d));return(0,Zt.jsxs)("section",{style:{marginTop:16,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,Zt.jsx)("label",{style:V(),htmlFor:"lc-folder-primary",children:e.primaryLabel}),(0,Zt.jsx)("input",{id:"lc-folder-primary",type:"text",value:t,spellCheck:!1,placeholder:e.primaryPlaceholder,onChange:l=>n(l.target.value),style:{...G(),fontFamily:Lw}}),(0,Zt.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,margin:"4px 0 12px"},children:e.primaryHint}),(0,Zt.jsx)("span",{style:V(),children:e.extrasLabel}),(0,Zt.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,margin:"0 0 8px"},children:e.extrasHint}),r.map((l,c)=>(0,Zt.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:6},children:[(0,Zt.jsx)("input",{type:"text",value:l,spellCheck:!1,"aria-label":`Folder ${c+1}`,onChange:u=>a(c,u.target.value),style:{...G(),fontFamily:Lw}}),(0,Zt.jsx)("button",{type:"button",title:"Remove this folder","aria-label":"Remove this folder",style:be("secondary"),onClick:()=>i(u=>u.filter((d,m)=>m!==c)),children:(0,Zt.jsx)(Et,{})})]},c)),(0,Zt.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:8,flexWrap:"wrap"},children:[(0,Zt.jsx)("button",{type:"button",style:C(),onClick:()=>i(l=>[...l,""]),children:"Add a folder"}),(0,Zt.jsx)("button",{type:"button",style:C(),disabled:!o,onClick:()=>e.onSave(t.trim(),r.map(l=>l.trim()).filter(l=>l.length>0)),children:o?"Save folders":"Saved"}),(0,Zt.jsx)("span",{style:{color:s.muted,fontSize:11,fontFamily:B},children:"Relative paths resolve against the workspace."})]})]})}var Hr=P(ie(),1),Fw=P(ge(),1);function Vw(e){let[t,n]=(0,Fw.useState)(void 0),r=e.problems.join("\0");return e.problems.length===0?(t!==void 0&&n(void 0),null):t===r?null:(0,Hr.jsxs)("div",{style:{marginTop:12},children:[(0,Hr.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Hr.jsx)("strong",{style:{fontSize:12,color:s.error},children:e.title}),(0,Hr.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Hide these until something changes. The files themselves are untouched \u2014 fix them and they stop being listed.",onClick:()=>n(r),children:"Dismiss"})]}),e.problems.map(i=>(0,Hr.jsxs)("div",{style:{fontSize:11,color:s.error,marginTop:4},children:["\u26A0 ",i]},i))]})}var Yu="var(--vscode-editor-font-family, monospace)";function Hw(e){let[t,n]=(0,qw.useState)(void 0);return(0,le.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B,fontSize:13,color:s.foreground},children:[(0,le.jsx)("h3",{style:{margin:"0 0 4px"},children:"Skills"}),(0,le.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Notes the assistant keeps about this workspace \u2014 internal libraries, conventions, anything you would otherwise explain again each time. Tell it something durable and it will offer to record one; you approve the text before it is written."}),(0,le.jsxs)("p",{style:{color:s.muted,fontSize:11},children:["Only each ",(0,le.jsx)("strong",{children:"description"})," below is loaded into every conversation. The bodies are read on demand, so a long skill costs nothing until it is relevant.",e.skillsDir!==void 0&&(0,le.jsxs)(le.Fragment,{children:[" ","They are plain markdown in ",(0,le.jsx)("code",{style:{fontFamily:Yu},children:e.skillsDir}),", so they land in git and can be reviewed like any other file."]})]}),(0,le.jsxs)("div",{style:{margin:"10px 0",padding:10,border:`1px solid ${s.border}`,borderRadius:6},children:[(0,le.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"Standing instructions"}),(()=>{let r=e.skills.find(i=>i.always===!0);return r===void 0?(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["One skill can be included in ",(0,le.jsx)("strong",{children:"every"})," session, in full, rather than offered by name \u2014 for the things you would otherwise repeat at the start of each conversation. It is paid for on every request, so keep it short."]}),(0,le.jsx)("button",{type:"button",style:C(),onClick:e.onOpenStandingSkill,children:"Create standing instructions"})]}):(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:[(0,le.jsx)("strong",{children:r.name})," is included in every session, in full. Remove"," ",(0,le.jsx)("code",{style:{fontFamily:Yu},children:"always: true"})," from its frontmatter to make it an ordinary skill again."]}),(0,le.jsx)("button",{type:"button",style:C(),onClick:e.onOpenStandingSkill,children:"Edit standing instructions"})]})})()]}),(0,le.jsx)(Vw,{title:"Not loaded",problems:e.issues.map(r=>`${r.filePath} \u2014 ${r.detail}`)}),(0,le.jsx)("div",{style:{marginTop:14},children:e.skills.length===0?(0,le.jsx)("p",{style:{color:s.muted,fontSize:12},children:e.skillsDir===void 0?"Open a folder \u2014 skills belong to a workspace.":"None yet. Explain something about this codebase and the assistant will offer to record it."}):e.skills.map(r=>(0,le.jsxs)("div",{style:{padding:"8px 0",borderBottom:`1px solid ${s.border}`},children:[(0,le.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:8},children:[(0,le.jsx)("strong",{style:{fontFamily:Yu,fontSize:12},children:r.name}),r.sourceDir!==void 0&&e.skillsDir!==void 0&&r.sourceDir!==e.skillsDir&&(0,le.jsx)("span",{style:{...Je(),fontSize:9},title:`Read-only, from ${r.sourceDir}`,children:"shared"}),(0,le.jsxs)("span",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:4},children:[(0,le.jsx)("button",{type:"button",style:C(),title:"Open this skill in an editor tab",onClick:()=>e.onOpenFile(r.filePath),children:"Open"}),r.sourceDir===void 0||e.skillsDir===void 0||r.sourceDir===e.skillsDir?(0,le.jsx)("button",{type:"button",style:C(),onClick:()=>n(r.name),children:"Remove"}):(0,le.jsx)("span",{style:{color:s.muted,fontSize:10},children:"read-only"})]})]}),(0,le.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:r.description}),(0,le.jsx)("div",{style:{color:s.muted,fontSize:10,fontFamily:Yu,marginTop:2},children:r.filePath}),t===r.name&&(0,le.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:6,fontSize:12},children:[(0,le.jsx)("span",{children:"Delete this skill file?"}),(0,le.jsx)("button",{type:"button",style:me(!1),onClick:()=>{e.onDelete(r.name),n(void 0)},children:"Delete"}),(0,le.jsx)("button",{type:"button",style:C(),onClick:()=>n(void 0),children:"Keep"})]})]},r.name))}),(0,le.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",margin:"12px 0"},children:[(0,le.jsx)("button",{type:"button",style:C(),disabled:e.indexing,onClick:e.onReindex,children:e.indexing?"Reindexing\u2026":"Reindex skills"}),(0,le.jsx)("span",{style:{color:s.muted,fontSize:11},children:e.indexResult??"Reindexed automatically a few seconds after any change. This forces it now, for skills only."})]}),(0,le.jsx)(Pw,{primary:e.configuredDir,primaryPlaceholder:e.skillsDir??".lightcode/skills",primaryLabel:"Where new skills are saved",primaryHint:"Leave blank for .lightcode/skills in the workspace. Creating, editing and deleting all happen here.",extras:e.extraDirs,extrasLabel:"Also read skills from",extrasHint:"Shared or reference folders, searched in order after the one above. Never written to, so a folder shared with colleagues stays safe. A name defined twice is taken from the first folder that has it.",onSave:e.onSaveDirs})]})}var E=P(ie(),1);var Lt=P(ge(),1);var oa="var(--vscode-editor-font-family, monospace)",jj={read:"Reading",edit:"Editing files",command:"Running commands",mcp:"MCP servers",always:"Always available"};function Oj(){return{id:"",name:"",prompt:"",trigger:{kind:"daily",hour:9,minute:0},enabled:!0,allowedTools:[]}}function Gw(e){let[t,n]=(0,Lt.useState)(void 0),[r,i]=(0,Lt.useState)(Date.now()),[o,a]=(0,Lt.useState)(void 0);return(0,Lt.useEffect)(()=>{let l=setInterval(()=>i(Date.now()),3e4);return()=>clearInterval(l)},[]),t!==void 0?(0,E.jsx)(Uj,{schedule:t,tools:e.tools,skills:e.skills,mentionCandidates:e.mentionCandidates,onQueryMentions:e.onQueryMentions,onCancel:()=>n(void 0),onSave:l=>{e.onSave(l),n(void 0)}}):(0,E.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B,fontSize:13,color:s.foreground},children:[(0,E.jsx)("h3",{style:{margin:"0 0 4px"},children:"Schedules"}),(0,E.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"A prompt that runs on its own and leaves a normal task you can read afterwards. Each one can use only the tools you tick \u2014 nobody is present to approve anything while it runs."}),(0,E.jsx)("p",{style:{color:s.muted,fontSize:11},children:"Schedules only fire while VS Code is open. One that came due while it was closed runs shortly after you next open it, once \u2014 not repeatedly to catch up."}),(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",padding:"6px 8px",borderRadius:6,fontSize:11,border:`1px solid ${e.scheduler?.running===!1?s.error:s.border}`,color:e.scheduler?.running===!1?s.error:s.muted},children:[(0,E.jsx)("span",{children:e.scheduler?.running===!1?"The scheduler is not running \u2014 nothing will fire.":`Scheduler running${e.scheduler?.lastTickAt===void 0?" \u2014 first check within a minute":`, last checked ${new Date(e.scheduler.lastTickAt).toLocaleTimeString()}`}`}),(0,E.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Stop and start the timer. Safe at any time; a run already in progress is unaffected.",onClick:e.onRestartScheduler,children:"Restart"})]}),e.schedules.length===0?(0,E.jsx)("p",{style:{color:s.muted,fontSize:12,marginTop:14},children:"None yet."}):(0,E.jsx)("div",{style:{marginTop:12},children:e.schedules.map(l=>(0,E.jsxs)("div",{style:{padding:"8px 0",borderBottom:`1px solid ${s.border}`},children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[(0,E.jsx)("strong",{style:{fontSize:12},children:l.name}),l.allowedTools.length===0?(0,E.jsx)("span",{style:{...Je(),fontSize:9},title:"Can answer, but cannot use any tool",children:"no tools"}):(0,E.jsxs)("span",{style:{...Je(),fontSize:9},children:[l.allowedTools.length," ",l.allowedTools.length===1?"tool":"tools"]}),Ru(e.tools,l.allowedTools).length>0&&(0,E.jsx)("span",{style:{...Je("warning"),fontSize:9},title:"This schedule can change things without anyone watching",children:"can act"}),(0,E.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,E.jsx)("button",{type:"button",title:e.runningId===l.id?"Running now":"Run now","aria-label":"Run now",disabled:e.runningId===l.id,style:be("ghost",e.runningId===l.id),onClick:()=>e.onRunNow(l.id),children:(0,E.jsx)(ly,{})}),(0,E.jsx)("button",{type:"button",title:l.enabled?"Pause \u2014 keeps its history":"Resume","aria-label":l.enabled?"Pause":"Resume",style:be("ghost"),onClick:()=>e.onToggle(l.id,!l.enabled),children:l.enabled?(0,E.jsx)(H_,{}):(0,E.jsx)(ly,{})}),(0,E.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:C(),onClick:()=>n(l),children:"Edit"}),(0,E.jsx)("button",{type:"button",title:"Duplicate this schedule. The copy is paused so you can edit it first.","aria-label":"Duplicate",style:be("ghost"),onClick:()=>e.onDuplicate(l.id),children:(0,E.jsx)(ir,{})}),(0,E.jsx)("button",{type:"button",title:"Delete this schedule","aria-label":"Delete this schedule",style:be("ghost"),onClick:()=>e.onDelete(l.id),children:(0,E.jsx)(Et,{})})]})]}),(0,E.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:[Kv(l.trigger)," \xB7 ",Qv(l,r)]}),(l.runs??[]).length>0&&(0,E.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":o===l.id,onClick:()=>a(o===l.id?void 0:l.id),style:{display:"flex",alignItems:"center",gap:5,marginTop:4,padding:"2px 4px 2px 0",background:"transparent",border:"none",borderRadius:6,color:s.muted,cursor:"pointer",fontFamily:B,fontSize:11},children:[(0,E.jsx)("span",{style:{display:"flex",transform:o===l.id?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,E.jsx)(Vr,{})}),(l.runs??[]).length," run",(l.runs??[]).length===1?"":"s"]}),o===l.id&&(l.runs??[]).length>0&&(0,E.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",marginLeft:18},title:"Forget this schedule's runs. The transcripts themselves stay in History.",onClick:()=>e.onClearRuns(l.id),children:"Clear these runs"}),o===l.id&&(l.runs??[]).map((c,u)=>(0,E.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,padding:"3px 0 3px 18px",fontSize:11,color:s.muted},children:[(0,E.jsx)("span",{title:c.result,style:{color:c.result==="error"?s.error:s.accent,flexShrink:0},children:c.result==="error"?"\u2717":"\u2713"}),(0,E.jsx)("span",{style:{flexShrink:0},children:new Date(c.at).toLocaleString()}),c.durationMs!==void 0&&(0,E.jsxs)("span",{style:{flexShrink:0},children:[(c.durationMs/1e3).toFixed(1),"s"]}),c.summary!==void 0&&(0,E.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:c.summary,children:c.summary}),c.reportPath!==void 0&&(0,E.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",marginLeft:"auto",color:s.accent,borderColor:s.accent},title:`Open the report this run wrote \u2014 ${c.reportPath}`,onClick:()=>e.onOpenReport(c.reportPath),children:"Report"}),c.taskId!==void 0&&(0,E.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",...c.reportPath===void 0?{marginLeft:"auto"}:{}},title:"Open this run's full transcript in an editor tab",onClick:()=>e.onOpenRun(c.taskId,`${l.name} \u2014 ${new Date(c.at).toLocaleString()}`),children:"Log"}),(0,E.jsx)("button",{type:"button",style:{...C(),fontSize:10,padding:"1px 6px",...c.taskId===void 0?{marginLeft:"auto"}:{}},title:"Remove this run from the log","aria-label":"Delete this run",onClick:()=>e.onDeleteRun(l.id,c.at),children:"\u2715"})]},`${String(c.at)}-${String(u)}`))]},l.id))}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:14},children:[(0,E.jsx)("button",{type:"button",style:me(!1),onClick:()=>n(Oj()),children:"New schedule"}),e.schedules.some(l=>(l.runs??[]).length>0)&&(0,E.jsx)("button",{type:"button",style:C(),title:"Forget every schedule's run history. The transcripts stay in History and are deleted from there.",onClick:()=>e.onClearRuns(),children:"Clear all run logs"})]})]})}function Uj(e){let[t,n]=(0,Lt.useState)(e.schedule),[r,i]=(0,Lt.useState)(""),[o,a]=(0,Lt.useState)(""),[l,c]=(0,Lt.useState)(!1),[u,d]=(0,Lt.useState)(void 0),[m,p]=(0,Lt.useState)(0),f=(0,Lt.useRef)(null),x=u!==void 0&&e.mentionCandidates.length>0,_=(0,Lt.useRef)(e.onQueryMentions);_.current=e.onQueryMentions,(0,Lt.useEffect)(()=>{if(u===void 0)return;let O=setTimeout(()=>_.current(u),120);return()=>clearTimeout(O)},[u]);let Z=(O,re)=>{d(Zu(O,re)),p(0)},g=O=>{let re=f.current,ce=re?.selectionStart??t.prompt.length,lt=Lu(t.prompt,ce,O);lt!==void 0&&(X({prompt:lt.text}),d(void 0),requestAnimationFrame(()=>{re?.focus(),re?.setSelectionRange(lt.caret,lt.caret)}))},h=o.trim().toLowerCase(),y=e.skills.filter(O=>h.length===0||O.name.toLowerCase().includes(h)||O.description.toLowerCase().includes(h)),v=()=>t.allowedSkills??e.skills.map(O=>O.name),j=v().length,X=O=>n(re=>({...re,...O})),L=O=>n(re=>({...re,trigger:{...re.trigger,...O}})),T=Ru(e.tools,t.allowedTools),Q=t.name.trim().length>0&&t.prompt.trim().length>0,z=r.trim().toLowerCase(),W=O=>{let re=t.allowedTools.includes(O.name);if(l&&!re)return!1;if(z.length===0||re)return!0;let ce=`${O.name} ${O.name.replace(/[_-]+/g," ")} ${O.description}`.toLowerCase();return z.split(/\s+/).every(lt=>ce.includes(lt))},Ge=new Map;for(let O of e.tools){if(O.group==="always"||!W(O))continue;let re=Ge.get(O.group)??[];re.push(O),Ge.set(O.group,re)}let Ye=[...Ge.values()].flat(),Qe=Ye.filter(O=>!t.allowedTools.includes(O.name)),En=O=>X({allowedTools:t.allowedTools.includes(O)?t.allowedTools.filter(re=>re!==O):[...t.allowedTools,O]});return(0,E.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:B,fontSize:13,color:s.foreground},children:[(0,E.jsx)("h3",{style:{margin:"0 0 12px"},children:e.schedule.id===""?"New schedule":"Edit schedule"}),(0,E.jsx)("label",{style:V(),htmlFor:"lc-sched-name",children:"Name"}),(0,E.jsx)("input",{id:"lc-sched-name",type:"text",value:t.name,placeholder:"Morning build check",onChange:O=>X({name:O.target.value}),style:{...G(),marginBottom:12}}),(0,E.jsx)("label",{style:V(),htmlFor:"lc-sched-prompt",children:"Prompt"}),(0,E.jsx)("textarea",{id:"lc-sched-prompt",ref:f,value:t.prompt,rows:4,placeholder:"Read @src/app.ts and tell me if anything looks wrong.",onChange:O=>{X({prompt:O.target.value}),Z(O.target.value,O.target.selectionStart)},onKeyDown:O=>{if(x)if(O.key==="ArrowDown")O.preventDefault(),p(re=>(re+1)%e.mentionCandidates.length);else if(O.key==="ArrowUp")O.preventDefault(),p(re=>(re-1+e.mentionCandidates.length)%e.mentionCandidates.length);else if(O.key==="Enter"||O.key==="Tab"){O.preventDefault();let re=e.mentionCandidates[m];re!==void 0&&g(re)}else O.key==="Escape"&&d(void 0)},style:{...G(),marginBottom:4,resize:"vertical",fontFamily:B}}),x&&(0,E.jsx)("div",{role:"listbox","aria-label":"Workspace files",className:"lc-scroll",style:{maxHeight:150,overflowY:"auto",border:`1px solid ${s.accent}`,borderRadius:8,marginBottom:6},children:e.mentionCandidates.map((O,re)=>(0,E.jsx)("button",{type:"button",role:"option","aria-selected":re===m,onMouseDown:ce=>{ce.preventDefault(),g(O)},style:{display:"block",width:"100%",textAlign:"left",padding:"4px 10px",background:re===m?s.accent:"transparent",border:"none",color:re===m?s.accentContrast:s.foreground,cursor:"pointer",fontFamily:oa,fontSize:11},children:O},O))}),(0,E.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11,marginBottom:12},children:["Sent exactly as if you had typed it, including ",(0,E.jsx)("code",{style:{fontFamily:oa},children:"@"})," file mentions \u2014 their contents are attached when the schedule runs, not now. Nobody can answer a follow-up question, so ask for something it can finish alone."]}),(0,E.jsx)("span",{style:V(),children:"When"}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:12,flexWrap:"wrap"},children:[(0,E.jsx)(Ve,{compact:!0,value:t.trigger.kind,ariaLabel:"How often",onChange:O=>X({trigger:O==="interval"?{kind:"interval",everyMinutes:60}:O==="daily"?{kind:"daily",hour:9,minute:0}:{kind:"weekly",days:[1,2,3,4,5],hour:9,minute:0}}),options:[{value:"interval",label:"Every\u2026"},{value:"daily",label:"Daily at\u2026"},{value:"weekly",label:"On days\u2026"}]}),t.trigger.kind==="interval"?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("input",{type:"number",min:1,value:t.trigger.everyMinutes,"aria-label":"Minutes between runs",onChange:O=>L({everyMinutes:Math.max(1,Number(O.target.value)||1)}),style:{...G(),width:80}}),(0,E.jsx)("span",{style:{color:s.muted,fontSize:11},children:"minutes"})]}):(0,E.jsx)("input",{type:"time","aria-label":"Time of day",value:`${String(t.trigger.hour).padStart(2,"0")}:${String(t.trigger.minute).padStart(2,"0")}`,onChange:O=>{let[re,ce]=O.target.value.split(":").map(Number);L({hour:re??9,minute:ce??0})},style:{...G(),width:110}})]}),t.trigger.kind==="weekly"&&(0,E.jsx)("div",{style:{display:"flex",gap:4,marginBottom:12,flexWrap:"wrap"},children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((O,re)=>{let ce=t.trigger.kind==="weekly"&&t.trigger.days.includes(re);return(0,E.jsx)("button",{type:"button","aria-pressed":ce,onClick:()=>{if(t.trigger.kind!=="weekly")return;let lt=ce?t.trigger.days.filter(vi=>vi!==re):[...t.trigger.days,re];lt.length>0&&L({days:lt})},style:{...C(),fontSize:11,padding:"3px 8px",background:ce?s.accent:s.secondaryButtonBackground,color:ce?s.accentContrast:s.secondaryButtonForeground},children:O},O)})}),(0,E.jsx)("span",{style:V(),children:"What it may use"}),(0,E.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:"Nothing is ticked to begin with. A tool you do not tick is not offered to the run at all, so a server added later never widens an existing schedule."}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,E.jsx)("input",{type:"text",value:r,spellCheck:!1,"aria-label":"Filter tools",placeholder:"Filter by name or description\u2026",onChange:O=>i(O.target.value),style:{...G(),flex:1,minWidth:140}}),(0,E.jsxs)("button",{type:"button","aria-pressed":l,title:"Show only what this schedule may use",onClick:()=>c(!l),style:{...C(),fontSize:11,background:l?s.accent:s.secondaryButtonBackground,color:l?s.accentContrast:s.secondaryButtonForeground},children:[t.allowedTools.length," selected"]})]}),z.length>0&&Qe.length>0&&(0,E.jsxs)("button",{type:"button",style:{...C(),fontSize:11,marginBottom:8},onClick:()=>X({allowedTools:[...t.allowedTools,...Qe.map(O=>O.name)]}),children:["Select the ",Qe.length," shown"]}),(0,E.jsxs)("div",{style:{marginBottom:10},children:[(0,E.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginBottom:4},children:"Always available"}),e.tools.filter(O=>O.group==="always").map(O=>(0,E.jsxs)("label",{title:"Always available to every schedule \u2014 it performs no work on the workspace.",style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,opacity:.75},children:[(0,E.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,style:{marginTop:3}}),(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{style:{display:"block",fontFamily:oa,fontSize:11},children:O.name}),(0,E.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10},children:O.description})]})]},O.name))]}),Ye.length===0&&(0,E.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 10px"},children:l?"Nothing selected yet.":`No tool matches "${r.trim()}".`}),[...Ge.entries()].map(([O,re])=>(0,E.jsxs)("div",{style:{marginBottom:10},children:[(0,E.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginBottom:4},children:jj[O]??O}),re.map(ce=>(0,E.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,cursor:"pointer"},children:[(0,E.jsx)("input",{type:"checkbox",checked:t.allowedTools.includes(ce.name),onChange:()=>En(ce.name),style:{marginTop:3}}),(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{style:{display:"block",fontFamily:oa,fontSize:11},children:ce.name}),(0,E.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10},children:ce.description})]})]},ce.name))]},O)),(0,E.jsxs)("div",{style:{marginBottom:12},children:[(0,E.jsx)("span",{style:V(),children:"What it should know"}),e.skills.length===0?(0,E.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["No skills recorded yet. Once there are some \u2014 markdown notes in"," ",(0,E.jsx)("code",{style:{fontFamily:oa},children:".lightcode/skills/"}),", written from the chat or by hand \u2014 you can pick which of them this run is told about."]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:t.allowedSkills===void 0?(0,E.jsxs)(E.Fragment,{children:["All ",e.skills.length," ",e.skills.length===1?"skill is":"skills are"," ","included. Tick a few to narrow it \u2014 useful when a run only touches one area and the rest is prompt it pays for every time."]}):(0,E.jsxs)(E.Fragment,{children:["Only the ticked skills are put in this run\u2019s prompt. Unlike the chat, a schedule does not search for them \u2014 it may not have ",(0,E.jsx)("code",{children:"search_docs"}),", and nobody is watching if it comes up empty."]})}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,E.jsx)("input",{type:"search",value:o,spellCheck:!1,"aria-label":"Filter skills",placeholder:"Filter by name or description\u2026",onChange:O=>a(O.target.value),style:{...G(),flex:1,minWidth:140}}),(0,E.jsxs)("span",{style:{color:s.muted,fontSize:11},children:[j," of ",e.skills.length," selected"]})]}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:8,flexWrap:"wrap"},children:[t.allowedSkills!==void 0&&(0,E.jsx)("button",{type:"button",style:{...C(),fontSize:11},onClick:()=>{let O={...t};delete O.allowedSkills,n(O)},children:"Include all of them again"}),h.length>0&&y.length>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("button",{type:"button",style:{...C(),fontSize:11},onClick:()=>X({allowedSkills:[...new Set([...v(),...y.map(O=>O.name)])]}),children:["Tick the ",y.length," shown"]}),(0,E.jsxs)("button",{type:"button",style:{...C(),fontSize:11},onClick:()=>{let O=new Set(y.map(re=>re.name));X({allowedSkills:v().filter(re=>!O.has(re))})},children:["Untick the ",y.length," shown"]})]})]}),y.length===0&&(0,E.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["No skill matches \u201C",o.trim(),"\u201D."]}),y.map(O=>{let re=t.allowedSkills===void 0||t.allowedSkills.includes(O.name);return(0,E.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,cursor:"pointer"},children:[(0,E.jsx)("input",{type:"checkbox","data-skill":O.name,checked:re,onChange:()=>{let ce=v();X({allowedSkills:re?ce.filter(lt=>lt!==O.name):[...ce,O.name]})},style:{marginTop:3}}),(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{style:{display:"block",fontFamily:oa,fontSize:11},children:O.name}),(0,E.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10},children:O.description})]})]},O.name)})]})]}),T.length>0&&(0,E.jsxs)("p",{style:{color:s.error,fontSize:11,border:`1px solid ${s.error}`,borderRadius:8,padding:8,margin:"4px 0 12px"},children:["This schedule can act on its own \u2014 you have allowed ",T.join(" and "),". If anything it reads contains instructions, it may follow them with nobody watching. Grant this only for content you trust."]}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10},children:[(0,E.jsx)("button",{type:"button",style:me(!Q),disabled:!Q,onClick:()=>e.onSave({...t,name:t.name.trim(),prompt:t.prompt.trim()}),children:"Save"}),(0,E.jsx)("button",{type:"button",style:C(),onClick:e.onCancel,children:"Cancel"})]})]})}var je=P(ie(),1),Ww=P(ge(),1);var at=P(ie(),1);var Xt=P(ge(),1);var ne=P(ie(),1),Jw=P(ge(),1);function on(e){return(0,ne.jsxs)("div",{style:{marginBottom:10},children:[(0,ne.jsx)("label",{htmlFor:e.id,style:V(),children:e.label}),(0,ne.jsx)("input",{id:e.id,type:"text",value:e.value??"",placeholder:e.placeholder,onChange:t=>e.onChange(t.target.value),style:G()}),e.hint!==void 0&&(0,ne.jsx)("span",{style:{color:s.muted,fontSize:11,display:"block",marginTop:2},children:e.hint})]})}function Yw(e){return(0,ne.jsxs)("div",{style:{marginBottom:10},children:[(0,ne.jsx)("label",{htmlFor:e.id,style:V(),children:e.label}),(0,ne.jsx)("input",{id:e.id,type:"number",value:e.value??"",placeholder:e.placeholder,onChange:t=>{let n=Number.parseInt(t.target.value,10);e.onChange(Number.isNaN(n)?void 0:n)},style:G()})]})}function Nj(e){let[t,n]=(0,Jw.useState)(!1);return(0,ne.jsxs)("div",{style:{marginBottom:12},children:[(0,ne.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{background:"transparent",border:"none",color:s.foreground,fontFamily:B,fontSize:12,padding:0,cursor:"pointer"},children:[t?"\u25BE":"\u25B8"," ",e.title]}),t&&(0,ne.jsx)("div",{style:{marginTop:8,paddingLeft:12},children:e.children})]})}function Xw(e){let t=r=>e.onApigeeChange({...e.apigee,...r}),n=r=>e.onCertsChange({...e.certs,...r});return(0,ne.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,ne.jsxs)("div",{style:{marginBottom:12},children:[(0,ne.jsx)("label",{htmlFor:"lc-auth-type",style:V(),children:"Authentication"}),(0,ne.jsx)(Ve,{id:"lc-auth-type",value:e.authType,onChange:r=>e.onAuthTypeChange(r),style:{width:"100%"},options:[{value:"apiKey",label:"API key"},{value:"apigeeMtls",label:"Mutual TLS + OAuth (Apigee)"},{value:"none",label:"None"}]})]}),e.authType==="apigeeMtls"&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)("div",{style:{marginBottom:12},children:[(0,ne.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Client certificate"}),(0,ne.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Must live outside the workspace \u2014 a repository must not be able to read or replace your key material. Filenames resolve against the directory; absolute paths override it."})]}),(0,ne.jsx)(on,{id:"lc-cert-dir",label:"Certificate directory",value:e.certs.certDir,placeholder:"C:\\\\Users\\\\you\\\\certs",hint:"Leave blank to use the global certDir from config.",onChange:r=>n({certDir:r})}),(0,ne.jsx)(on,{id:"lc-cert-file",label:"Certificate file",value:e.certs.certFile,placeholder:"client.crt",onChange:r=>n({certFile:r})}),(0,ne.jsx)(on,{id:"lc-key-file",label:"Private key file",value:e.certs.keyFile,placeholder:"client.key",onChange:r=>n({keyFile:r})}),(0,ne.jsx)(on,{id:"lc-pfx-file",label:"PFX bundle (instead of certificate + key)",value:e.certs.pfxFile,placeholder:"client.pfx",hint:"Corporate Windows PKI usually issues a .pfx.",onChange:r=>n({pfxFile:r})}),(0,ne.jsx)(on,{id:"lc-ca-file",label:"Extra CA bundle",value:e.certs.caFile,placeholder:"corp-root.pem",hint:"Needed when your network intercepts TLS. NODE_EXTRA_CA_CERTS also works.",onChange:r=>n({caFile:r})}),(0,ne.jsx)(ci,{id:"lc-cert-passphrase",label:"Key / PFX passphrase",hasValue:e.hasCertPassphrase,value:e.certPassphrase,onChange:e.onCertPassphraseChange,placeholder:"Leave blank if the key is not encrypted"}),(0,ne.jsx)("div",{style:{marginBottom:12},children:(0,ne.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Token endpoint"})}),(0,ne.jsx)(on,{id:"lc-token-url",label:"Token URL",value:e.apigee.tokenUrl,placeholder:"https://gateway.example.com/oauth/token",hint:"Defaults to the base URL's origin + /oauth/token.",onChange:r=>t({tokenUrl:r})}),(0,ne.jsx)(on,{id:"lc-client-id",label:"Client ID",value:e.apigee.clientId,onChange:r=>t({clientId:r})}),(0,ne.jsx)(ci,{id:"lc-client-secret",label:"Client secret",hasValue:e.hasClientSecret,value:e.clientSecret,onChange:e.onClientSecretChange,placeholder:"Stored in the OS keychain"}),(0,ne.jsx)(on,{id:"lc-scope",label:"Scope",value:e.apigee.scope,placeholder:"(optional)",onChange:r=>t({scope:r})}),(0,ne.jsxs)(Nj,{title:"Token response and header mapping",children:[(0,ne.jsx)(on,{id:"lc-grant-type",label:"Grant type",value:e.apigee.grantType,placeholder:"client_credentials",onChange:r=>t({grantType:r})}),(0,ne.jsx)(on,{id:"lc-token-path",label:"Token path in response",value:e.apigee.tokenPath,placeholder:"access_token",hint:"Dotted path, e.g. data.jwt if your gateway nests it.",onChange:r=>t({tokenPath:r})}),(0,ne.jsx)(on,{id:"lc-expires-path",label:"Expiry path in response",value:e.apigee.expiresInPath,placeholder:"expires_in",onChange:r=>t({expiresInPath:r})}),(0,ne.jsx)(on,{id:"lc-token-header",label:"Header name",value:e.apigee.tokenHeaderName,placeholder:"Authorization",onChange:r=>t({tokenHeaderName:r})}),(0,ne.jsx)(on,{id:"lc-token-prefix",label:"Header prefix",value:e.apigee.tokenHeaderPrefix,placeholder:"Bearer ",onChange:r=>t({tokenHeaderPrefix:r})}),(0,ne.jsx)(Yw,{id:"lc-fallback-expiry",label:"Fallback expiry (seconds)",value:e.apigee.fallbackExpirySeconds,placeholder:"3600",onChange:r=>t({...r!==void 0?{fallbackExpirySeconds:r}:{}})}),(0,ne.jsx)(Yw,{id:"lc-refresh-skew",label:"Refresh skew (seconds)",value:e.apigee.refreshSkewSeconds,placeholder:"60",onChange:r=>t({...r!==void 0?{refreshSkewSeconds:r}:{}})})]})]}),(0,ne.jsxs)("div",{style:{marginBottom:12,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,ne.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Connection security"}),(0,ne.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Needed when your network intercepts TLS, which is common on a corporate gateway. This is separate from the client certificate above: it decides whether you trust the server, not how the server identifies you."})]}),(0,ne.jsx)(on,{id:"lc-connection-ca",label:"Additional CA certificate",value:e.connectionTls.caFile,placeholder:"C:\\\\certs\\\\corp-root.pem",hint:"Only needed if this gateway uses a different root from the one in Settings \u2192 Network. Added to that one and to the built-in roots, never replacing either.",onChange:r=>e.onConnectionTlsChange({...e.connectionTls,caFile:r})}),(0,ne.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,ne.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:e.connectionTls.rejectUnauthorized===!1,onChange:r=>e.onConnectionTlsChange({...e.connectionTls,...r.target.checked?{rejectUnauthorized:!1}:{rejectUnauthorized:void 0}})}),(0,ne.jsx)("span",{style:{color:s.foreground},children:"Skip certificate verification for this profile"})]}),e.connectionTls.rejectUnauthorized===!1&&(0,ne.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can now read and modify it, including your API key, and nothing will detect it. Supplying the CA file above is the safe fix and solves the same problem."})]})}var pt=P(ie(),1);function Kw(e){let t=e.value.trim(),n=t.length>0?Xv(t,e.capabilities):void 0,r=o=>e.onCapabilitiesChange({...e.capabilities,...o}),i=()=>{let o={...e.capabilities};delete o.contextWindow,e.onCapabilitiesChange(o)};return(0,pt.jsxs)("div",{style:{marginBottom:12},children:[(0,pt.jsx)("label",{htmlFor:"lc-model",style:V(),children:"Model"}),(0,pt.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,pt.jsx)("input",{id:"lc-model",type:"text",value:e.value,placeholder:"gpt-4o-mini",onChange:o=>e.onChange(o.target.value),style:G()}),(0,pt.jsx)("button",{type:"button",style:C(),onClick:e.onRefresh,disabled:e.loading,children:e.loading?"Loading\u2026":"Refresh"})]}),e.models.length>0&&(0,pt.jsx)(Ve,{ariaLabel:"Choose from the gateway's catalogue",value:e.models.includes(e.value)?e.value:"",onChange:o=>{o.length>0&&e.onChange(o)},style:{width:"100%"},options:[{value:"",label:`Choose from ${e.models.length} available model(s)\u2026`},...e.models.map(o=>({value:o,label:o}))]}),e.warning!==void 0&&e.models.length===0&&(0,pt.jsx)("span",{style:{...Mt(),color:s.muted},children:e.warning}),e.error!==void 0&&(0,pt.jsx)("span",{style:Mt(),children:e.error}),n!==void 0&&(0,pt.jsxs)("div",{style:{marginTop:6,padding:8,border:`1px solid ${s.border}`,borderRadius:3},children:[(0,pt.jsx)("div",{style:{color:s.muted,fontSize:11,marginBottom:6},children:n.known?"Capabilities for this model. Edit any of them if your deployment differs.":"Unrecognised model id \u2014 these are conservative guesses. Correct them here."}),(0,pt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[(0,pt.jsx)("label",{htmlFor:"lc-context-window",style:{...V(),marginBottom:0,flex:1},children:"Context window (tokens)"}),(0,pt.jsx)("input",{id:"lc-context-window",type:"number",min:1,value:e.capabilities.contextWindow??n.contextWindow,onChange:o=>{let a=Number.parseInt(o.target.value,10);Number.isNaN(a)||a<=0?i():r({contextWindow:a})},style:{...G(),width:130,flex:"none"}}),e.capabilities.contextWindow!==void 0&&(0,pt.jsx)("button",{type:"button",style:C(),onClick:i,title:"Use the built-in value",children:"Reset"})]}),(0,pt.jsxs)("div",{style:{display:"flex",gap:16},children:[(0,pt.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:s.foreground},children:[(0,pt.jsx)("input",{type:"checkbox",checked:n.supportsVision,onChange:o=>r({supportsVision:o.target.checked})}),"Accepts images"]}),(0,pt.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:s.foreground},children:[(0,pt.jsx)("input",{type:"checkbox",checked:n.supportsTools,onChange:o=>r({supportsTools:o.target.checked})}),"Supports tool calling"]})]})]})]})}var si=P(ie(),1);var Rj={certificates:"Load certificates",token:"Acquire credential",models:"List models"};function Mj(e){return e==="ok"?{glyph:"\u2713",color:"var(--vscode-testing-iconPassed, #3fb950)"}:e==="failed"?{glyph:"\u2715",color:s.error}:{glyph:"\u2013",color:s.muted}}function Qw(e){return(0,si.jsxs)("div",{style:{marginBottom:16,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,si.jsx)("button",{type:"button",style:C(),onClick:e.onRun,disabled:e.running,children:e.running?"Testing\u2026":"Test Connection"}),e.result!==void 0&&(0,si.jsx)("div",{style:{marginTop:8,fontFamily:B,fontSize:12},children:e.result.steps.map(t=>{let n=Mj(t.status);return(0,si.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:4},children:[(0,si.jsx)("span",{style:{color:n.color,width:12,flexShrink:0},children:n.glyph}),(0,si.jsxs)("div",{children:[(0,si.jsx)("div",{style:{color:s.foreground},children:Rj[t.step]}),(0,si.jsx)("div",{style:{color:t.status==="failed"?s.error:s.muted,fontSize:11},children:t.detail})]})]},t.step)})})]})}function My(e){let[t,n]=(0,Xt.useState)(e.initial.label),[r,i]=(0,Xt.useState)(e.initial.wireFormat),[o,a]=(0,Xt.useState)(e.initial.baseUrl),[l,c]=(0,Xt.useState)(e.initial.model),[u,d]=(0,Xt.useState)(""),[m,p]=(0,Xt.useState)(e.initial.authType),[f,x]=(0,Xt.useState)(e.initial.apigee??{}),[_,Z]=(0,Xt.useState)(""),[g,h]=(0,Xt.useState)(e.initial.certs??{}),[y,v]=(0,Xt.useState)(""),[j,X]=(0,Xt.useState)(e.initial.modelCapabilities??{}),[L,T]=(0,Xt.useState)(e.initial.connectionTls??{}),[Q,z]=(0,Xt.useState)([]),[W,Ge]=(0,Xt.useState)(void 0),Ye=ce=>Q.find(lt=>lt.path===ce)?.message,Qe=ce=>{let lt=Uu.find(vi=>vi.id===ce);lt!==void 0&&(i(lt.wireFormat),a(lt.baseUrl),t.trim().length===0&&n(lt.label))},En=()=>({...e.initial.id!==void 0?{id:e.initial.id}:{},label:t,wireFormat:r,baseUrl:o,model:l,authType:m,apiKey:u,...m==="apigeeMtls"?{apigee:f,clientSecret:_,certs:g,certPassphrase:y}:{},...Object.keys(j).length>0?{modelCapabilities:j}:{},...L.caFile!==void 0||L.rejectUnauthorized!==void 0?{connectionTls:L}:{}}),O=()=>{let ce=o.trim();if(ce===W||ce.length===0)return;try{let vi=new URL(ce);if(vi.protocol!=="https:"&&vi.protocol!=="http:")return}catch{return}(m==="none"||u.trim().length>0||e.initial.hasApiKey||m==="apigeeMtls")&&(Ge(ce),e.onRequestModels(En()))},re=()=>{let ce=Jv({label:t,wireFormat:r,baseUrl:o,model:l});z(ce),!(ce.length>0)&&e.onSave(En())};return(0,at.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,at.jsx)("h3",{style:{margin:"0 0 12px",color:s.foreground},children:e.initial.id===void 0?"Add Provider":"Edit Provider"}),(0,at.jsxs)("div",{style:{marginBottom:12},children:[(0,at.jsx)("label",{htmlFor:"lc-preset",style:V(),children:"Preset"}),(0,at.jsx)(Ve,{id:"lc-preset",value:"",placeholder:"Choose a preset\u2026",onChange:Qe,style:{width:"100%"},options:Uu.map(ce=>({value:ce.id,label:ce.label}))})]}),(0,at.jsxs)("div",{style:{marginBottom:12},children:[(0,at.jsx)("label",{htmlFor:"lc-label",style:V(),children:"Label"}),(0,at.jsx)("input",{id:"lc-label",type:"text",value:t,onChange:ce=>n(ce.target.value),style:G()}),Ye("label")!==void 0&&(0,at.jsx)("span",{style:Mt(),children:Ye("label")})]}),(0,at.jsxs)("div",{style:{marginBottom:12},children:[(0,at.jsx)("label",{htmlFor:"lc-base-url",style:V(),children:"Base URL"}),(0,at.jsx)("input",{id:"lc-base-url",type:"text",value:o,placeholder:"https://api.openai.com/v1",onChange:ce=>a(ce.target.value),onBlur:O,style:G()}),Ye("baseUrl")!==void 0&&(0,at.jsx)("span",{style:Mt(),children:Ye("baseUrl")})]}),(0,at.jsx)(Kw,{value:l,onChange:c,models:e.models,...e.modelsWarning!==void 0?{warning:e.modelsWarning}:{},loading:e.modelsLoading,onRefresh:()=>e.onRequestModels(En()),...Ye("model")!==void 0?{error:Ye("model")}:{},capabilities:j,onCapabilitiesChange:X}),m==="apiKey"&&(0,at.jsx)("div",{onBlur:O,children:(0,at.jsx)(ci,{id:"lc-api-key",label:"API key",hasValue:e.initial.hasApiKey,value:u,onChange:d})}),(0,at.jsx)(Xw,{authType:m,onAuthTypeChange:p,apigee:f,onApigeeChange:x,clientSecret:_,onClientSecretChange:Z,hasClientSecret:e.initial.hasClientSecret,certs:g,onCertsChange:h,certPassphrase:y,onCertPassphraseChange:v,hasCertPassphrase:e.initial.hasCertPassphrase,connectionTls:L,onConnectionTlsChange:T}),(0,at.jsx)(Qw,{running:e.testRunning,...e.testResult!==void 0?{result:e.testResult}:{result:void 0},onRun:()=>e.onTestConnection(En())}),(0,at.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,at.jsx)("button",{type:"button",style:me(!1),onClick:re,children:"Save"}),(0,at.jsx)("button",{type:"button",style:C(),onClick:e.onCancel,children:"Cancel"})]})]})}function By(e){let[t,n]=(0,Ww.useState)({mode:"closed"}),r=i=>{e.onEditingChange(),n(i)};if(t.mode!=="closed"){let i=t.mode==="edit"?{id:t.profile.id,label:t.profile.label,wireFormat:t.profile.wireFormat,baseUrl:t.profile.baseUrl,model:t.profile.model,authType:t.profile.authType,hasApiKey:t.profile.hasApiKey,hasClientSecret:t.profile.hasClientSecret,hasCertPassphrase:t.profile.hasCertPassphrase,...t.profile.apigee!==void 0?{apigee:t.profile.apigee}:{},...t.profile.certs!==void 0?{certs:t.profile.certs}:{},...t.profile.modelCapabilities!==void 0?{modelCapabilities:t.profile.modelCapabilities}:{},...t.profile.connectionTls!==void 0?{connectionTls:t.profile.connectionTls}:{}}:{label:"",wireFormat:"openai",baseUrl:"",model:"",authType:"apiKey",hasApiKey:!1,hasClientSecret:!1,hasCertPassphrase:!1};return(0,je.jsx)(My,{initial:i,onSave:o=>{e.onSave(o),n({mode:"closed"})},onCancel:()=>n({mode:"closed"}),onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}})}return(0,je.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,je.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,je.jsx)("h3",{style:{margin:0,color:s.foreground},children:"Providers"}),(0,je.jsx)(or,{scope:"user"})]}),e.profiles.length===0&&(0,je.jsx)("p",{style:{color:s.muted,fontFamily:B},children:"No providers configured yet. Add one to start chatting."}),e.profiles.map(i=>{let o=i.id===e.activeProfileId,a=e.sharedProfileIds?.includes(i.id)===!0;return(0,je.jsxs)("div",{"data-profile":i.id,style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${s.border}`,background:o?s.assistantBubble:"transparent"},children:[(0,je.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,je.jsx)("strong",{children:i.label}),o&&(0,je.jsx)(or,{scope:"user"})]}),(0,je.jsxs)("div",{style:{color:s.muted,fontSize:12,marginBottom:8},children:[i.baseUrl," \u2014 ",i.model]}),a&&(0,je.jsxs)("div",{style:{color:s.muted,fontSize:10,marginBottom:6},children:[(0,je.jsx)("span",{style:{...Je(),fontSize:9,marginRight:5},children:"provided"}),"Set up by an administrator for everyone. Duplicate it to make a copy you can edit with your own key."]}),(0,je.jsxs)("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:[!o&&(0,je.jsx)("button",{type:"button",title:"Use this profile","aria-label":"Use this profile",style:be("secondary"),onClick:()=>e.onSetActive(i.id),children:(0,je.jsx)(ii,{})}),!a&&(0,je.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:be("secondary"),onClick:()=>r({mode:"edit",profile:i}),children:(0,je.jsx)(E_,{})}),(0,je.jsx)("button",{type:"button",title:a?"Copy this into a profile of your own":"Duplicate","aria-label":"Duplicate",style:be("secondary"),onClick:()=>e.onDuplicate(i.id),children:(0,je.jsx)(ir,{})}),!a&&(0,je.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...be("secondary"),color:s.error},onClick:()=>e.onDelete(i.id),children:(0,je.jsx)(Et,{})})]})]},i.id)}),(0,je.jsx)("button",{type:"button",style:me(!1),onClick:()=>r({mode:"create"}),children:"Add Provider"}),(0,je.jsxs)("div",{style:{marginTop:20,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,je.jsx)("label",{style:V(),children:"Config file"}),(0,je.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,je.jsx)("button",{type:"button",style:C(),onClick:e.onExport,children:"Export"}),(0,je.jsx)("button",{type:"button",style:C(),onClick:e.onImport,children:"Import"})]})]})]})}var Ce=P(ie(),1),Qu=P(ge(),1);var aa="#22C55E",t$=[{id:"green",label:"Green",value:aa},{id:"purple",label:"Purple",value:"#A855F7"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"graphite",label:"Graphite",value:"#64748B"}],la="#D97757",n$=[{id:"coral",label:"Coral",value:la},{id:"orange",label:"Orange",value:"#F97316"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"purple",label:"Purple",value:"#A855F7"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"graphite",label:"Graphite",value:"#64748B"}];function Ju(e){let t=e.trim().replace(/^#/,""),n=t.length===3?t.replace(/./g,r=>r+r):t;if(/^[0-9a-fA-F]{6}$/.test(n))return{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16)}}function Xu(e){return Ju(e)!==void 0}function Zy({r:e,g:t,b:n}){let r=i=>Math.max(0,Math.min(255,Math.round(i))).toString(16).padStart(2,"0");return`#${r(e)}${r(t)}${r(n)}`}function e$(e,t){return t<=1?{r:e.r*t,g:e.g*t,b:e.b*t}:{r:e.r+(255-e.r)*(t-1),g:e.g+(255-e.g)*(t-1),b:e.b+(255-e.b)*(t-1)}}function Bj({r:e,g:t,b:n}){let r=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function Ku(e){let t=Ju(e);return t===void 0?"#ffffff":Bj(t)>.35?"#12111a":"#ffffff"}function i$(e,t,n){let r=Ju(t)??Ju(n);if(r===void 0)return;let i=document.documentElement.style,o=Zy(r);i.setProperty(`--lc-${e}`,o),i.setProperty(`--lc-${e}-deep`,Zy(e$(r,.62))),i.setProperty(`--lc-${e}-bright`,Zy(e$(r,1.22))),i.setProperty(`--lc-${e}-contrast`,Ku(o)),i.setProperty(`--lc-${e}-a12`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.12)`),i.setProperty(`--lc-${e}-a20`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.20)`),i.setProperty(`--lc-${e}-a35`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.35)`)}function Ly(e){i$("accent",e,aa)}function Py(e){i$("expert",e,la)}function r$(e){let[t,n]=(0,Qu.useState)(e.value);(0,Qu.useEffect)(()=>n(e.value),[e.value]);let r=o=>{n(o),Xu(o)&&e.onChange(o)},i=e.value.toLowerCase();return(0,Ce.jsxs)("div",{style:{marginBottom:22},children:[(0,Ce.jsx)("span",{style:V(),children:e.label}),(0,Ce.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:e.description}),(0,Ce.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginBottom:10},children:e.presets.map(o=>{let a=o.value.toLowerCase()===i;return(0,Ce.jsx)("button",{type:"button",className:"lc-swatch",title:o.label,"aria-label":o.label,"aria-pressed":a,onClick:()=>r(o.value),style:{width:26,height:26,borderRadius:"50%",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",justifyContent:"center",background:o.value,color:Ku(o.value)},children:a&&(0,Ce.jsx)(ii,{size:13})},o.id)})}),(0,Ce.jsx)("label",{style:{...V(),marginBottom:4},htmlFor:e.inputId,children:"Or a custom hex colour"}),(0,Ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ce.jsx)("input",{id:e.inputId,type:"text",value:t,spellCheck:!1,placeholder:e.fallback,onChange:o=>r(o.target.value),style:{...G(),width:130,fontFamily:"var(--vscode-editor-font-family, monospace)"}}),(0,Ce.jsx)("span",{"aria-hidden":"true",style:{width:26,height:26,borderRadius:8,flexShrink:0,background:Xu(t)?t:"transparent",border:`1px solid ${s.border}`}}),!Xu(t)&&(0,Ce.jsxs)("span",{style:{color:s.error,fontSize:11,fontFamily:B},children:["Needs a hex colour, e.g. ",e.fallback]})]})]})}function o$(e){let t=e.accentColor.toLowerCase()===e.expertColor.toLowerCase();return(0,Ce.jsxs)("section",{children:[e.onChangeTheme!==void 0&&(0,Ce.jsxs)("div",{style:{marginBottom:16},children:[(0,Ce.jsx)("label",{style:V(),children:"Theme"}),(0,Ce.jsx)("div",{style:{display:"flex",gap:6,marginBottom:4},children:["system","light","dark"].map(n=>{let r=(e.theme??"system")===n;return(0,Ce.jsx)("button",{type:"button",onClick:()=>e.onChangeTheme?.(n),style:{...G(),width:"auto",cursor:"pointer",textTransform:"capitalize",...r?{borderColor:s.accent,color:s.accent,fontWeight:600}:{}},children:n},n)})}),(0,Ce.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:[(0,Ce.jsx)("strong",{children:"System"})," follows your browser\u2019s appearance setting \u2014 which is the browser\u2019s own, not Windows\u2019. If your browser is pinned to light by policy, choose Dark here instead."]})]}),(0,Ce.jsx)(r$,{label:"Accent colour",description:"Buttons, your messages, selections and focus rings.",value:e.accentColor,presets:t$,fallback:aa,inputId:"lc-accent-hex",onChange:e.onChangeAccent}),(0,Ce.jsx)(r$,{label:"Expert colour",description:"Marks answers that came from Claude rather than from your own model. Kept separate from the accent so the two are told apart at a glance.",value:e.expertColor,presets:n$,fallback:la,inputId:"lc-expert-hex",onChange:e.onChangeExpert}),t&&(0,Ce.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 14px"},children:"These are the same colour, so expert answers will not stand out. Only the expert mark will tell them apart."}),(0,Ce.jsxs)("div",{style:{borderTop:`1px solid ${s.border}`,paddingTop:12},children:[(0,Ce.jsx)("span",{style:V(),children:"Preview"}),(0,Ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,marginTop:6},children:[(0,Ce.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,Ce.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 4px 14px",background:`linear-gradient(135deg, ${e.accentColor}, ${e.accentColor})`,color:Ku(e.accentColor),fontSize:12,fontFamily:B},children:"Your message"})}),(0,Ce.jsx)("div",{style:{display:"flex"},children:(0,Ce.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 14px 4px",background:s.assistantBubble,color:s.foreground,fontSize:12,fontFamily:B},children:"The assistant's reply"})}),(0,Ce.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:6,alignSelf:"flex-start",padding:"6px 10px",borderRadius:10,border:`1px solid ${e.expertColor}`,background:s.expertSoft,color:e.expertColor,fontSize:12,fontFamily:B},children:[(0,Ce.jsx)(rn,{size:12}),"Answered by the expert"]})]})]})]})}function Zj(e){if(e===void 0)return;if(e.error!==void 0)return`Failed: ${e.error}`;let t=e.indexed??0;return`Indexed ${String(t)} ${t===1?"entry":"entries"}.`}var a$=[{id:"providers",label:"Providers",Icon:R_},{id:"approvals",label:"Approvals",Icon:ay},{id:"mcp",label:"MCP",Icon:M_},{id:"search",label:"Search",Icon:B_},{id:"expert",label:"Expert",Icon:rn},{id:"schedules",label:"Schedules",Icon:q_},{id:"python",label:"Python",Icon:L_},{id:"tools",label:"Tools",Icon:F_},{id:"skills",label:"Skills",Icon:V_},{id:"network",label:"Network",Icon:Z_},{id:"reviews",label:"Review",Icon:ay},{id:"variables",label:"Variables",Icon:U_},{id:"appearance",label:"Appearance",Icon:N_}];function Fy(e){let[t,n]=(0,Wu.useState)("providers"),r={variables:e.variables!==void 0,reviews:e.reviews!==void 0},i=a$.filter(l=>r[l.id]??!0),o=i.some(l=>l.id===t)?t:"providers",a=e.requestedTab;return(0,Wu.useEffect)(()=>{a!==void 0&&a$.some(l=>l.id===a.tab)&&n(a.tab)},[a]),(0,ut.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ut.jsx)("div",{role:"tablist",className:"lc-scroll",style:{display:"flex",borderBottom:`1px solid ${s.border}`,flexShrink:0,overflowX:"auto"},children:i.map(l=>{let c=o===l.id;return(0,ut.jsxs)("button",{type:"button",role:"tab","aria-selected":c,className:"lc-tab",title:l.label,"aria-label":l.label,onClick:()=>n(l.id),style:{display:"inline-flex",alignItems:"center",gap:5,padding:c?"8px 10px":"8px 8px",fontFamily:B,fontSize:12,background:"transparent",color:c?s.accent:s.muted,border:"none",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0},children:[(0,ut.jsx)(l.Icon,{size:15}),c&&(0,ut.jsx)("span",{children:l.label})]},l.id)})}),(0,ut.jsx)("div",{className:"lc-scroll lc-panel",style:{flex:1,minHeight:0,overflowY:"auto"},children:o==="reviews"&&e.reviews!==void 0?(0,ut.jsx)(Mw,{...e.reviews}):o==="variables"&&e.variables!==void 0?(0,ut.jsx)(Zw,{...e.variables}):o==="appearance"?(0,ut.jsx)("div",{style:{padding:12},children:(0,ut.jsx)(o$,{accentColor:e.accentColor,onChangeAccent:e.onSetAccentColor,expertColor:e.expertColor,onChangeExpert:e.onSetExpertColor,...e.theme===void 0?{}:{theme:e.theme},...e.choosesTheme===!0&&e.onSetTheme!==void 0?{onChangeTheme:e.onSetTheme}:{}})}):o==="providers"?(0,ut.jsx)(By,{...e.sharedProfileIds!==void 0?{sharedProfileIds:e.sharedProfileIds}:{},profiles:e.profiles,activeProfileId:e.activeProfileId,onSave:e.onSave,onDuplicate:e.onDuplicate,onDelete:e.onDelete,onSetActive:e.onSetActive,onExport:e.onExport,onImport:e.onImport,onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,onEditingChange:e.onEditingChange,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}}):o==="approvals"?(0,ut.jsx)(Cy,{approvals:e.approvals,onSetAutoApprove:e.onSetAutoApprove,onRevokeTool:e.onRevokeTool,onRevokeCommand:e.onRevokeCommand,maxIterations:e.maxIterations,onSetMaxIterations:e.onSetMaxIterations,readRoots:e.readRoots,onSetReadRoots:e.onSetReadRoots}):o==="search"?(0,ut.jsx)(Ow,{...e.search}):o==="schedules"?(0,ut.jsx)(Gw,{...e.schedules}):o==="skills"?(0,ut.jsx)(Hw,{...e.skills}):o==="tools"?(0,ut.jsx)(Rw,{...e.tools}):o==="python"?(0,ut.jsx)(Nw,{...e.python}):o==="network"?(0,ut.jsx)(Uw,{...e.network,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):o==="expert"?(0,ut.jsx)(Cw,{expert:e.expert,onSave:e.onSaveExpert,onRecheck:e.onRecheckExpert,onAssess:e.onAssessJunior,onClearAssessment:e.onClearAssessment,onMeasureCost:e.onMeasureCost,onClearPricing:e.onClearPricing,onSetKeepAlive:e.onSetKeepAlive,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):(0,ut.jsx)(Dy,{servers:e.mcpServers,json:e.mcpJson,warnings:e.mcpWarnings,saveError:e.mcpSaveError,configs:e.mcpConfigs,platform:e.mcpPlatform,savedTick:e.mcpSavedTick,pythonProbe:e.mcpPythonProbe,onDetectPython:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSaveServer:e.onSaveMcpServer,onDeleteServer:e.onDeleteMcpServer,onDuplicateServer:e.onDuplicateMcpServer,onSave:e.onSaveMcp,onRestart:e.onRestartMcp,onSetServerEnabled:e.onSetMcpServerEnabled,onSetToolPermission:e.onSetMcpToolPermission,onSetToolTimeout:e.onSetMcpToolTimeout,onConnect:e.onConnectMcp,docsIndex:{enabled:e.search.dispatcher.enabled,ready:e.search.dispatcher.retrievalReady,indexing:e.search.dispatcher.indexing,result:Zj(e.search.dispatcher.result)},onIndexDocs:()=>e.search.dispatcher.onIndexDocs("tool")})},o)]})}var It=P(ie(),1),l$=P(ge(),1);function Lj(e,t=Date.now()){let n=Math.max(0,Math.round((t-e)/1e3));if(n<60)return"just now";let r=Math.round(n/60);if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let o=Math.round(i/24);return o<=7?`${o}d ago`:new Date(e).toLocaleDateString()}function c$(e){let[t,n]=(0,l$.useState)(void 0);return(0,It.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,It.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,It.jsx)("h3",{style:{margin:0,color:s.foreground},children:"History"}),(0,It.jsx)("button",{type:"button",style:{...me(!1),marginLeft:"auto"},onClick:e.onNew,children:"New task"})]}),e.tasks.length===0&&(0,It.jsx)("p",{style:{color:s.muted,fontFamily:B},children:"No past tasks in this workspace yet. Conversations are saved automatically as you go."}),e.tasks.map(r=>{let i=r.id===e.activeTaskId,o=r.id===t;return(0,It.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${i?s.accent:s.border}`,background:i?s.assistantBubble:"transparent"},children:[(0,It.jsx)("div",{style:{color:s.foreground,marginBottom:4,wordBreak:"break-word"},children:r.title}),(0,It.jsxs)("div",{style:{color:s.muted,fontSize:11,marginBottom:8},children:[Lj(r.updatedAt)," \xB7 ",r.messageCount," message",r.messageCount===1?"":"s",i?" \xB7 current":""]}),o?(0,It.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,It.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Delete this task and its saved output?"}),(0,It.jsx)("button",{type:"button",style:{...C(),color:s.error},onClick:()=>{n(void 0),e.onDelete(r.id)},children:"Delete"}),(0,It.jsx)("button",{type:"button",style:C(),onClick:()=>n(void 0),children:"Cancel"})]}):(0,It.jsxs)("div",{style:{display:"flex",gap:6},children:[!i&&(0,It.jsx)("button",{type:"button",style:C(),onClick:()=>e.onOpen(r.id),children:"Open"}),(0,It.jsx)("button",{type:"button",style:C(),onClick:()=>n(r.id),children:"Delete"})]})]},r.id)})]})}function ca(e){let t=e.map(r=>r.kind==="reasoning"&&r.pending===!0?{kind:"reasoning",content:r.content}:r),n=t[t.length-1];return n===void 0||n.kind!=="text"||!n.pending?t:[...t.slice(0,-1),{kind:"text",role:n.role,content:n.content,...n.expertInformed===!0?{expertInformed:!0}:{}}]}function Vy(e){let[t,n]=(0,F.useState)("chat"),[r,i]=(0,F.useState)(),[o,a]=(0,F.useState)({native:!0}),[l,c]=(0,F.useState)(),[u,d]=(0,F.useState)(),[m,p]=(0,F.useState)(),[f,x]=(0,F.useState)(!1),[_,Z]=(0,F.useState)(),[g,h]=(0,F.useState)([]),[y,v]=(0,F.useState)(!1),[j,X]=(0,F.useState)(void 0),[L,T]=(0,F.useState)([]),[Q,z]=(0,F.useState)(void 0),[W,Ge]=(0,F.useState)(!1),[Ye,Qe]=(0,F.useState)(void 0),[En,O]=(0,F.useState)(void 0),[re,ce]=(0,F.useState)(!1),[lt,vi]=(0,F.useState)(Lf),[H2,G2]=(0,F.useState)({}),[Y2,J2]=(0,F.useState)(25),[X2,$1]=(0,F.useState)(aa),[K2,Q2]=(0,F.useState)([]),[W2,z1]=(0,F.useState)(la),[Dn,e6]=(0,F.useState)({usd:0,consultations:0,unpriced:0,maxSpendUsd:0,maxConsultations:0,overridden:!1}),[po,If]=(0,F.useState)({enabled:!0,hiddenTools:0,skills:!0,hiddenSkills:0}),[T1,Vc]=(0,F.useState)(!1),[t6,n6]=(0,F.useState)([]),[i6,Af]=(0,F.useState)(void 0),[r6,C1]=(0,F.useState)(!1),[ho,qc]=(0,F.useState)(void 0),[o6,a6]=(0,F.useState)([]),[l6,c6]=(0,F.useState)(`{
132
+ Default 5.`,placeholder:"5",value:b.maxIndexes,onChange:T=>v({...b,maxIndexes:T})}),(0,Z.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${c.border}`,marginBottom:12},children:[(0,Z.jsx)("button",{type:"button",style:$(),onClick:()=>e.onTest(B()),children:"Test Connection"}),e.testResult!==void 0&&(0,Z.jsx)("div",{style:{marginTop:8,fontSize:12,color:e.testResult.ok?"var(--vscode-testing-iconPassed, #3fb950)":c.error},children:e.testResult.detail})]}),(0,Z.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,Z.jsx)("button",{type:"button",style:se(!1),onClick:()=>{ee(!0),e.onSave(B())},children:"Save"}),(0,Z.jsx)("button",{type:"button",style:$(),onClick:()=>n(void 0),children:"Cancel"}),A&&(0,Z.jsx)("span",{style:{fontSize:11,color:c.muted},children:"Saving\u2026"})]})]}):(0,Z.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,Z.jsx)("h3",{style:{margin:0,color:c.foreground},children:"Search"}),(0,Z.jsx)(pr,{scope:"user"})]}),(0,Z.jsx)("p",{style:{color:c.muted,fontSize:12,fontFamily:P,margin:"0 0 12px"},children:"Lets the model search OpenSearch indexes your organisation already runs \u2014 logs, tickets, documentation. It can only read: nothing here can create, change or delete anything in a cluster."}),e.connections.length===0&&(0,Z.jsx)("p",{style:{color:c.muted,fontFamily:P},children:"No connections yet."}),e.project.overridden.length>0&&(0,Z.jsxs)("div",{style:{padding:10,marginBottom:12,borderRadius:4,border:`1px solid ${c.accent}`,background:`color-mix(in srgb, ${c.accent} 10%, transparent)`},children:[(0,Z.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"This project has its own settings"}),(0,Z.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:[e.project.overridden.join(", ")," \u2014 set for this folder only. Everything else follows your defaults, and other projects are unaffected."]}),(0,Z.jsx)("button",{type:"button",style:$(),onClick:e.onClearProject,children:"Use my defaults here again"})]}),e.activeConnectionId!==void 0&&e.connections.length>1&&(0,Z.jsxs)("div",{style:{padding:10,marginBottom:12,borderRadius:4,border:`1px solid ${c.border}`,fontFamily:P,fontSize:12},children:[(0,Z.jsx)("strong",{style:{color:c.foreground,fontSize:12},children:"Copy an existing index here"}),(0,Z.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"4px 0 8px"},children:"Moves this workspace\u2019s vectors into the active store without re-embedding. Only possible when both were indexed with the same embedding model \u2014 otherwise the copy is refused, because mixing embeddings makes every search quietly wrong rather than visibly broken."}),(0,Z.jsx)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:e.connections.filter(T=>T.id!==e.activeConnectionId).map(T=>(0,Z.jsxs)("button",{type:"button",style:$(),disabled:e.sync?.running===!0,title:`Copy this workspace's index from ${T.label} into the active store`,onClick:()=>e.onSyncFrom(T.id),children:["From ",T.label]},T.id))}),e.sync!==void 0&&(0,Z.jsx)("p",{style:{color:e.sync.error!==void 0?c.error:c.muted,fontSize:11,margin:"6px 0 0"},children:e.sync.error??(e.sync.running?`Copying from ${e.sync.fromLabel??"the other store"}\u2026 ${String(e.sync.copied??0)} so far.`:`Copied ${String(e.sync.copied??0)} entries from ${e.sync.fromLabel??"the other store"}.`)})]}),e.connections.map(T=>{let V=T.id===e.activeConnectionId;return(0,Z.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${V?c.accent:c.border}`,background:V?c.assistantBubble:"transparent"},children:[(0,Z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,Z.jsx)("strong",{children:T.label}),V&&(0,Z.jsx)("span",{style:{color:c.muted,fontSize:11},children:"\xB7 active"})]}),(0,Z.jsxs)("div",{style:{color:c.muted,fontSize:12,marginBottom:8},children:[T.url,T.defaultIndex!==void 0?` \u2014 ${T.defaultIndex}`:" \u2014 no default index"]}),(0,Z.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,Z.jsx)("button",{type:"button",style:$(),onClick:()=>e.onSetActive(V?void 0:T.id),children:V?"Turn off":"Use in chat"}),e.project.workspaceOpen&&!V&&(0,Z.jsx)("button",{type:"button",style:$(),title:"Use this store in this project only, leaving your default alone",onClick:()=>e.onSetActive(T.id,!0),children:"Use in this project"}),(0,Z.jsx)("button",{type:"button",style:$(),onClick:()=>n(T),children:"Edit"}),(0,Z.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...Se("secondary"),color:c.error},onClick:()=>e.onDelete(T.id),children:(0,Z.jsx)(jt,{})})]})]},T.id)}),(0,Z.jsx)("button",{type:"button",style:se(!1),onClick:()=>n({...n$}),children:"Add connection"}),(0,Z.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:16},children:"Search tools are offered only while a connection is active. Switching starts a fresh prompt, so change it between messages rather than mid-reply."}),(0,Z.jsx)(Ww,{...e.indexing}),(0,Z.jsx)(Qw,{...e.dispatcher}),(0,Z.jsx)(e$,{...e.activity})]})}var Ke=M(oe(),1),Bn=M(he(),1);var dd={fontFamily:P,fontSize:11,color:c.muted,marginTop:-12,marginBottom:16,lineHeight:1.5};function os(e){return(0,Ke.jsxs)("div",{style:{marginBottom:e.hint!==void 0?0:16},children:[(0,Ke.jsx)(xn,{id:e.id,label:e.label,value:e.value,placeholder:e.placeholder,...e.browse!==void 0?{browse:e.browse}:{},...e.onBrowse!==void 0?{onBrowse:e.onBrowse}:{},onChange:e.onChange}),e.hint!==void 0&&(0,Ke.jsx)("div",{style:dd,children:e.hint})]})}function r$(e){let t=e.settings,[n,r]=(0,Bn.useState)(""),[i,o]=(0,Bn.useState)(""),[a,l]=(0,Bn.useState)(""),[s,u]=(0,Bn.useState)(""),[d,m]=(0,Bn.useState)(""),[h,f]=(0,Bn.useState)(""),[x,k]=(0,Bn.useState)(!0),[N,g]=(0,Bn.useState)(!1);(0,Bn.useEffect)(()=>{t!==void 0&&(r(t.certDir??""),o(t.tls.caFile??""),l(t.tls.certFile??""),u(t.tls.keyFile??""),m(t.tls.pfxFile??""),k(t.tls.rejectUnauthorized!==!1),f(""),g(!1))},[t]),(0,Bn.useEffect)(()=>{let v=e.pickedPath;if(v===void 0)return;let A={"net.certDir":r,"net.caFile":o,"net.certFile":l,"net.keyFile":u,"net.pfxFile":m}[v.purpose];A?.(v.path)},[e.pickedPath]);let y=d.trim().length>0;function b(){e.onSave({certDir:n,tls:{caFile:i,certFile:y?"":a,keyFile:y?"":s,pfxFile:d,...x?{}:{rejectUnauthorized:!1}},...h.length>0?{passphrase:h}:{}}),g(!0)}return(0,Ke.jsxs)("div",{style:{padding:16,fontFamily:P,fontSize:13,color:c.foreground},children:[(0,Ke.jsx)("p",{style:{...dd,marginTop:0,marginBottom:20},children:"Applies to every connection Light Code makes. A provider profile or search cluster can still set its own \u2014 an extra CA there is added to this one, and its own client certificate replaces this one for that connection only."}),(0,Ke.jsx)(os,{id:"net-certdir",browse:{purpose:"net.certDir",kind:"folder"},onBrowse:e.onBrowse,label:"Certificate directory",value:n,placeholder:"C:\\Users\\you\\certs",hint:"Filenames below resolve against this. Absolute paths ignore it. Must be outside the workspace, and everything it holds is hidden from file-reading tools.",onChange:r}),(0,Ke.jsx)("h3",{style:{...ro(),margin:"24px 0 12px"},children:"Trust"}),(0,Ke.jsx)(os,{id:"net-ca",browse:{purpose:"net.caFile",kind:"file",extensions:["pem","crt","cer","ca-bundle"]},onBrowse:e.onBrowse,label:"CA certificate",value:i,placeholder:"corporate-root.pem",hint:"Added to the built-in roots, not a replacement for them \u2014 public sites keep working.",onChange:o}),(0,Ke.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:8,marginBottom:4,cursor:"pointer"},children:[(0,Ke.jsx)("input",{type:"checkbox",checked:x,onChange:v=>k(v.target.checked),style:{marginTop:2}}),(0,Ke.jsx)("span",{children:"Verify server certificates"})]}),!x&&(0,Ke.jsx)("div",{style:{...dd,color:"var(--vscode-editorWarning-foreground, inherit)",marginTop:4},children:"Off means any certificate is accepted, so an interception cannot be distinguished from the real server. Use it to confirm a diagnosis, then add the CA above instead."}),(0,Ke.jsx)("h3",{style:{...ro(),margin:"24px 0 12px"},children:"Client certificate"}),(0,Ke.jsx)("p",{style:{...dd,marginTop:0},children:"Presented to every connection that does not supply its own. A certificate identifies you, so it goes to each host you have configured \u2014 set it on the individual profile instead if that is not what you want."}),(0,Ke.jsx)(os,{id:"net-pfx",browse:{purpose:"net.pfxFile",kind:"file",extensions:["pfx","p12"]},onBrowse:e.onBrowse,label:"PFX bundle",value:d,placeholder:"client.pfx",hint:"Windows PKI usually issues one of these. Supplied instead of a certificate and key.",onChange:m}),!y&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(os,{id:"net-cert",browse:{purpose:"net.certFile",kind:"file",extensions:["crt","pem","cer"]},onBrowse:e.onBrowse,label:"Certificate",value:a,placeholder:"client.crt",onChange:l}),(0,Ke.jsx)(os,{id:"net-key",browse:{purpose:"net.keyFile",kind:"file",extensions:["key","pem"]},onBrowse:e.onBrowse,label:"Private key",value:s,placeholder:"client.key",onChange:u})]}),(0,Ke.jsx)(pi,{id:"net-passphrase",label:"Key passphrase",hasValue:t?.hasPassphrase??!1,value:h,onChange:f,placeholder:"Leave blank if the key is not encrypted"}),(0,Ke.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,Ke.jsx)("button",{type:"button",style:se(!1),onClick:b,children:"Save"}),N&&(0,Ke.jsx)("span",{style:{fontSize:12,color:c.muted},children:"Saved."})]})]})}var Q=M(oe(),1),kn=M(he(),1);var fd="var(--vscode-editor-font-family, monospace)";function o$(e){let t=e.status,[n,r]=(0,kn.useState)(void 0),[i,o]=(0,kn.useState)(""),[a,l]=(0,kn.useState)(!1),[s,u]=(0,kn.useState)(""),[d,m]=(0,kn.useState)(""),[h,f]=(0,kn.useState)("30"),[x,k]=(0,kn.useState)(""),[N,g]=(0,kn.useState)(!1),[y,b]=(0,kn.useState)(!1);return(0,kn.useEffect)(()=>{e.pickedPath?.purpose==="python.uvPath"&&u(e.pickedPath.path),e.pickedPath?.purpose==="python.toolsDir"&&m(e.pickedPath.path),e.pickedPath?.purpose==="python.venvPath"&&o(e.pickedPath.path)},[e.pickedPath]),(0,kn.useEffect)(()=>{let v=e.settings;v!==void 0&&(l(v.dynamicTools==="on"),u(v.uvPath??""),m(v.toolsDir??""),o(v.venvPath??""),k(v.indexUrl??""),g(v.offline===!0),f(String(v.timeoutSeconds??30)),b(!1))},[e.settings]),(0,Q.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P,fontSize:13,color:c.foreground},children:[(0,Q.jsx)("h3",{style:{margin:"0 0 4px"},children:"Python tools"}),(0,Q.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:0},children:"Lets the model write small Python tools and call them in the same conversation \u2014 useful for parsing, data wrangling, or anything needing a library that a shell command handles badly."}),(0,Q.jsxs)("div",{style:{fontSize:11,color:c.muted,border:`1px solid ${c.border}`,borderRadius:3,padding:"8px 10px",margin:"10px 0",lineHeight:1.5},children:["This is the sharpest feature in Light Code. Elsewhere you approve a tool ",(0,Q.jsx)("em",{children:"call"}),"; here you approve a tool's ",(0,Q.jsx)("strong",{children:"source code"}),", which then runs whenever the model uses it. Every create and update shows you the full diff first, and a file changed afterwards \u2014 by anything \u2014 is refused rather than loaded. Tools live in your workspace so they land in git and get reviewed like any other code. There is no sandbox: a tool runs with your privileges."]}),(0,Q.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12,cursor:"pointer"},children:[(0,Q.jsx)("input",{type:"checkbox",checked:a,onChange:v=>l(v.target.checked)}),(0,Q.jsx)("span",{children:"Let the model create and run Python tools"})]}),a&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xn,{id:"lc-py-uv",label:"Path to uv",value:s,placeholder:t?.uv?.path??"uv (found on PATH)",hint:"Leave blank to use uv from PATH. uv is used because it reads a tool's inline dependency block natively, so the tool file is the only place its dependencies are declared.",browse:{purpose:"python.uvPath",kind:"file"},onBrowse:e.onBrowse,onChange:u}),(0,Q.jsx)(xn,{id:"lc-py-tools",label:"Where tools are kept",value:d,placeholder:t?.toolsDir??".lightcode/tools",hint:"Leave blank for .lightcode/tools in the workspace, which is the safer default: a tool is code the model wrote, and keeping it in the repository means every change lands in git and gets reviewed. One folder only \u2014 each tool's approved content hash is recorded alongside it.",browse:{purpose:"python.toolsDir",kind:"folder"},onBrowse:e.onBrowse,onChange:m}),(0,Q.jsx)(xn,{id:"lc-py-venv",label:"Python environment",value:i,placeholder:t?.venvPath??"the project's .venv, or one created for you",hint:"Leave blank to prefer the project's own .venv \u2014 that is where its internal libraries already are. Give a venv folder, or a python.exe directly, to override.",browse:{purpose:"python.venvPath",kind:"folder"},onBrowse:e.onBrowse,onChange:o}),e.programming!==void 0&&e.programming.profiles.length>0&&(0,Q.jsxs)("div",{style:{marginBottom:10},children:[(0,Q.jsx)("label",{htmlFor:"lc-py-writer",style:q(),children:"Which model writes the code"}),(0,Q.jsx)(Ne,{id:"lc-py-writer",value:e.programming.selectedId??"",onChange:e.programming.onSelect,options:[{value:"",label:"The model you are chatting with"},...e.programming.profiles.map(v=>({value:v.id,label:v.label}))]}),(0,Q.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"4px 0 0"},children:e.programming.selectedId===void 0||e.programming.selectedId===""?(0,Q.jsx)(Q.Fragment,{children:"The assistant writes the Python itself. Pick a different profile and it will describe the tool instead, leaving the file to a model chosen for code."}):(0,Q.jsx)(Q.Fragment,{children:"The assistant describes what the tool must do and this profile writes the file. You still approve the source before anything is saved, and the prompt says which model produced it."})})]}),(0,Q.jsxs)("div",{style:{marginBottom:10},children:[(0,Q.jsx)("label",{htmlFor:"lc-py-index",style:q(),children:"Package index"}),(0,Q.jsx)("input",{id:"lc-py-index",type:"text",value:x,spellCheck:!1,placeholder:"https://artifactory.corp/api/pypi/pypi/simple",onChange:v=>k(v.target.value),style:{...H(),fontFamily:fd}}),(0,Q.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:"Where a tool's declared dependencies are fetched from. Point this at your internal mirror to make company packages installable \u2014 and to avoid reaching public PyPI at all."})]}),(0,Q.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10,cursor:"pointer"},children:[(0,Q.jsx)("input",{type:"checkbox",checked:N,onChange:v=>g(v.target.checked)}),(0,Q.jsx)("span",{style:{fontSize:12},children:"Offline \u2014 never fetch a package, use only what is already installed"})]}),(0,Q.jsxs)("div",{style:{marginBottom:12},children:[(0,Q.jsx)("label",{htmlFor:"lc-py-timeout",style:q(),children:"Timeout per call (seconds)"}),(0,Q.jsx)("input",{id:"lc-py-timeout",type:"number",min:1,max:600,value:h,onChange:v=>f(v.target.value),style:{...H(),width:120}}),(0,Q.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:"A tool that exceeds this is stopped and its whole process tree killed, so a hang cannot hold up the conversation."})]})]}),(0,Q.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:12},children:[(0,Q.jsx)("button",{type:"button",style:se(!1),onClick:()=>{let v=Number.parseInt(h,10);e.onSave({dynamicTools:a?"on":"off",uvPath:s.trim(),toolsDir:d.trim(),venvPath:i.trim(),timeoutSeconds:Number.isFinite(v)?v:30,indexUrl:x.trim(),offline:N}),b(!0)},children:"Save"}),y&&(0,Q.jsx)("span",{style:{fontSize:11,color:c.muted},children:"Saved."})]}),t!==void 0&&(0,Q.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,Q.jsx)("strong",{style:{fontSize:12},children:"Status"}),(0,Q.jsx)("div",{style:{fontSize:11,marginTop:4,color:t.ready?c.muted:t.enabled?c.error:c.muted},children:t.detail}),t.enabled&&(0,Q.jsxs)("div",{style:{fontSize:11,color:c.muted,marginTop:6,fontFamily:fd},children:[(0,Q.jsxs)("div",{children:["tools: ",t.toolsDir||"\u2014"]}),(0,Q.jsxs)("div",{children:["venv: ",t.venvPath||"\u2014"," ",t.venvSource==="workspace"?`(this project's${t.venvIsUvManaged?", uv-managed":""})`:t.venvSource==="configured"?"(configured)":t.venvSource==="created"?"(created by Light Code)":""]})]}),t.issues.length>0&&(0,Q.jsxs)("div",{style:{marginTop:10},children:[(0,Q.jsx)("strong",{style:{fontSize:12,color:c.error},children:"Not loaded"}),t.issues.map(v=>(0,Q.jsxs)("div",{style:{marginTop:4},children:[(0,Q.jsxs)("div",{style:{fontSize:11,color:c.error},children:["\u26A0 ",v.detail]}),(0,Q.jsxs)("div",{style:{display:"flex",gap:6,marginTop:3},children:[(0,Q.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px"},onClick:()=>e.onOpenFile(v.filePath),children:"Open"}),v.recoverable&&(0,Q.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px"},title:"Trust this file as it stands now. Read it first \u2014 a change you did not make is exactly what the check is for.",onClick:()=>e.onApproveTool(v.name),children:"Approve this version"}),(0,Q.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px"},onClick:()=>r(v.name),children:"Delete"})]})]},v.filePath))]}),(0,Q.jsxs)("div",{style:{marginTop:10},children:[(0,Q.jsx)("strong",{style:{fontSize:12},children:"Registered tools"}),t.tools.length===0?(0,Q.jsx)("p",{style:{fontSize:11,color:c.muted,margin:"4px 0 0"},children:t.ready?"None yet. Ask the model to write one \u2014 it will show you the source before anything is saved.":"None."}):t.tools.map(v=>(0,Q.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${c.border}`},children:[(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,Q.jsxs)("span",{style:{fontFamily:fd,fontSize:12},children:["py__",v.name]}),(0,Q.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,Q.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px"},title:"Open the source in an editor tab",onClick:()=>e.onOpenFile(v.filePath),children:"Open"}),(0,Q.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px"},onClick:()=>r(v.name),children:"Delete"})]})]}),v.description.length>0&&(0,Q.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:v.description}),(0,Q.jsx)("span",{style:{display:"block",color:c.muted,fontSize:10,fontFamily:fd},children:v.filePath}),n===v.name&&(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:6,fontSize:12},children:[(0,Q.jsx)("span",{children:"Delete this tool and its approval?"}),(0,Q.jsx)("button",{type:"button",style:se(!1),onClick:()=>{e.onDeleteTool(v.name),r(void 0)},children:"Delete"}),(0,Q.jsx)("button",{type:"button",style:$(),onClick:()=>r(void 0),children:"Cancel"})]})]},v.name))]})]})]})}var W=M(oe(),1);var ei=M(oe(),1),a$=M(he(),1);function ya(e){let[t,n]=(0,a$.useState)(""),r=()=>{t.trim().length>0&&e.onProbe(t.trim(),e.target)};return(0,ei.jsxs)("div",{style:{marginTop:10},children:[(0,ei.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[(0,ei.jsx)("input",{type:"text",value:t,spellCheck:!1,placeholder:e.label,"aria-label":e.label,onChange:i=>n(i.target.value),onKeyDown:i=>{i.key==="Enter"&&r()},style:{...H(),flex:1}}),(0,ei.jsx)("button",{type:"button",style:$(),disabled:e.running,onClick:r,children:e.running?"Searching\u2026":"Search"}),(e.result!==void 0||t.length>0)&&(0,ei.jsx)("button",{type:"button",style:$(),onClick:()=>{n(""),e.onClear()},children:"Clear"})]}),(0,ei.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:4},children:e.hint}),e.result!==void 0&&(0,ei.jsxs)("div",{style:{marginTop:8},children:[e.result.error!==void 0&&(0,ei.jsx)("span",{style:{display:"block",color:c.error,fontSize:11},children:e.result.error}),(0,ei.jsx)("pre",{className:"lc-scroll",style:{margin:0,maxHeight:260,overflow:"auto",whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontSize:11,color:c.foreground,background:c.inputBackground,border:`1px solid ${c.border}`,borderRadius:4,padding:8},children:e.result.text})]})]})}var Zn=M(he(),1);var _t=M(oe(),1),ao=M(he(),1);function l$(e){let[t,n]=(0,ao.useState)(""),[r,i]=(0,ao.useState)(void 0),o=(0,ao.useMemo)(()=>new Set(e.selected),[e.selected]),a=f=>{if(e.includeSubfolders){for(let x of e.selected)if(x!==f&&f.startsWith(`${x}\\`))return x}},l=(0,ao.useMemo)(()=>{let f=new Set;for(let x of e.folders){let k=x.path.lastIndexOf("\\");k>0&&f.add(x.path.slice(0,k))}return f},[e.folders]),s=r??l,u=f=>{i(x=>{let k=new Set(x??l);return k.has(f)?k.delete(f):k.add(f),k})},d=(0,ao.useMemo)(()=>{let f=t.trim().toLowerCase();if(f.length===0)return s.size===0?e.folders:e.folders.filter(k=>{for(let N of s)if(k.path.startsWith(`${N}\\`))return!1;return!0});let x=new Set;for(let k of e.folders){if(!k.path.toLowerCase().includes(f))continue;x.add(k.path);let N=k.path.split("\\");for(let g=1;g<N.length;g++)x.add(N.slice(0,g).join("\\"))}return e.folders.filter(k=>x.has(k.path))},[e.folders,t,s,e.selected]),m=f=>e.selected.filter(x=>x!==f&&x.startsWith(`${f}\\`)).length,h=f=>{let x=new Set(o);x.has(f)?x.delete(f):x.add(f),e.onChange(e.folders.map(k=>k.path).filter(k=>x.has(k)))};return e.folders.length===0?(0,_t.jsx)("span",{style:{color:c.muted,fontSize:11},children:"No folders loaded. Press Refresh, or check Outlook is running."}):(0,_t.jsxs)("div",{children:[(0,_t.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:6},children:[(0,_t.jsx)("button",{type:"button",style:{background:"none",border:"none",color:c.accent,cursor:"pointer",padding:0,fontSize:11},onClick:()=>i(new Set(l)),children:"Collapse all"}),(0,_t.jsx)("button",{type:"button",style:{background:"none",border:"none",color:c.accent,cursor:"pointer",padding:0,fontSize:11},onClick:()=>i(new Set),children:"Expand all"}),(0,_t.jsx)("span",{style:{color:c.muted,fontSize:11},children:`${String(e.selected.length)} selected of ${String(e.folders.length)}`})]}),e.folders.length>12&&(0,_t.jsx)("input",{type:"text",value:t,spellCheck:!1,placeholder:`Filter ${String(e.folders.length)} folders\u2026`,"aria-label":"Filter folders",onChange:f=>n(f.target.value),style:{...H(),marginBottom:6}}),(0,_t.jsx)("div",{className:"lc-scroll",style:{maxHeight:260,overflowY:"auto",border:`1px solid ${c.border}`,borderRadius:4,padding:6},children:d.map(f=>{let x=a(f.path),k=o.has(f.path);return(0,_t.jsxs)("label",{title:f.path,style:{display:"flex",gap:6,alignItems:"center",padding:"2px 0",paddingLeft:f.depth*14,cursor:x===void 0?"pointer":"default",opacity:x===void 0?1:.65},children:[l.has(f.path)?(0,_t.jsx)("button",{type:"button","aria-label":s.has(f.path)?`Expand ${f.name}`:`Collapse ${f.name}`,style:{background:"none",border:"none",color:c.muted,cursor:"pointer",padding:0,width:12,fontSize:10,lineHeight:"12px"},onClick:N=>{N.preventDefault(),u(f.path)},children:s.has(f.path)?"\u25B6":"\u25BC"}):(0,_t.jsx)("span",{style:{width:12}}),(0,_t.jsx)("input",{type:"checkbox",checked:k||x!==void 0,disabled:x!==void 0,onChange:()=>h(f.path)}),(0,_t.jsxs)("span",{style:{fontSize:12,minWidth:0,overflowWrap:"anywhere"},children:[f.name,typeof f.unread=="number"&&f.unread>0&&(0,_t.jsxs)("span",{style:{color:c.muted},children:[" (",String(f.unread)," unread)"]}),s.has(f.path)&&m(f.path)>0&&(0,_t.jsx)("span",{style:{color:c.accent,fontSize:11},children:` \u2014 ${String(m(f.path))} selected inside`}),x!==void 0&&(0,_t.jsxs)("span",{style:{color:c.muted,fontSize:11},children:[" \u2014 covered by ",x.split("\\").pop()]})]})]},f.path)})}),(0,_t.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:4},children:o.size===0?"Nothing selected \u2014 nothing will be indexed.":`${String(o.size)} folder(s) selected`})]})}function oO(e){return e<1024?`${String(e)} B`:e<1024*1024?`${(e/1024).toFixed(0)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function va(e){return(0,W.jsxs)("section",{style:{marginBottom:18},children:[(0,W.jsx)("h3",{style:ro(),children:e.title}),e.hint!==void 0&&(0,W.jsx)("p",{style:{margin:"0 0 8px",color:c.muted,fontSize:11},children:e.hint}),e.children]})}function s$(e){let[t,n]=(0,Zn.useState)(void 0),[r,i]=(0,Zn.useState)("7"),[o,a]=(0,Zn.useState)(!1),[l,s]=(0,Zn.useState)([]),[u,d]=(0,Zn.useState)(!0),[m,h]=(0,Zn.useState)("15"),[f,x]=(0,Zn.useState)("6"),[k,N]=(0,Zn.useState)("");(0,Zn.useEffect)(()=>{e.status!==void 0&&(a(e.status.enabled),s(e.status.folders),d(e.status.includeSubfolders!==!1),h(String(e.status.syncMinutes)),x(String(e.status.retentionMonths)),N(e.status.storeId??""))},[e.status]);let g=e.status;(0,Zn.useEffect)(()=>{e.status?.available===!0&&e.tree.folders.length===0&&!e.tree.loading&&e.onRefreshFolders()},[e.status?.available]);let y=()=>{e.onSave({enabled:o,folders:l,includeSubfolders:u,syncMinutes:Math.max(5,Math.min(1440,Number(m)||15)),retentionMonths:Math.max(1,Math.min(120,Number(f)||6)),storeId:k})},b=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("h2",{style:{margin:"0 0 4px",fontSize:14},children:"Outlook"}),(0,W.jsx)("p",{style:{margin:"0 0 14px",color:c.muted,fontSize:11},children:"Index mail folders so the assistant can answer questions about them \u2014 what arrived in the last few hours, whether an alert keeps repeating, and when it usually lands."})]});return g===void 0?(0,W.jsxs)("div",{children:[b,(0,W.jsx)("span",{style:{color:c.muted,fontSize:11},children:"Checking\u2026"})]}):g.available?(0,W.jsxs)("div",{children:[b,(0,W.jsx)(va,{title:"Indexing",children:(0,W.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",cursor:"pointer"},children:[(0,W.jsx)("input",{type:"checkbox",checked:o,onChange:v=>a(v.target.checked),style:{marginTop:2}}),(0,W.jsxs)("span",{children:[(0,W.jsx)("span",{style:{display:"block",fontSize:13},children:"Keep mail indexed automatically"}),(0,W.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11},children:"New messages are collected on a timer. Unticking stops it entirely \u2014 nothing is read while it is off."})]})]})}),(0,W.jsxs)(va,{title:"Folders",hint:"Tick what to index. Everything here came from Outlook, so nothing can be mistyped.",children:[(0,W.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:6},children:[(0,W.jsx)("button",{type:"button",style:$(),disabled:e.tree.loading,onClick:e.onRefreshFolders,children:e.tree.loading?"Scanning\u2026":"Rescan mailbox"}),e.tree.scannedAt!==void 0&&(0,W.jsxs)("span",{style:{color:c.muted,fontSize:11},children:["Scanned ",new Date(e.tree.scannedAt).toLocaleString()]}),(0,W.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"center",cursor:"pointer",fontSize:11},children:[(0,W.jsx)("input",{type:"checkbox",checked:u,onChange:v=>d(v.target.checked)}),(0,W.jsx)("span",{children:"Include subfolders"})]})]}),e.tree.error!==void 0&&(0,W.jsx)("span",{style:{display:"block",color:c.error,fontSize:11,marginBottom:6},children:e.tree.error}),(0,W.jsx)(l$,{folders:e.tree.folders,selected:l,onChange:s,includeSubfolders:u})]}),(0,W.jsxs)(va,{title:"Where it is stored",hint:"Subjects, senders and the opening of each message are sent to your embedding endpoint. Choose a separate connection to keep mail off a shared cluster.",children:[(0,W.jsx)(Ne,{id:"lc-mail-store",value:k,options:[{value:"",label:"The active search connection"},...g.stores.map(v=>({value:v.id,label:v.label}))],onChange:N,ariaLabel:"Vector store for indexed mail"}),!g.semantic&&(0,W.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:4},children:"No embedding model configured, so searching by meaning is off. Time windows, alert filtering and repeat detection all still work."})]}),(0,W.jsx)(va,{title:"Schedule and retention",hint:"Retention is the bound on the whole index, not just a cleanup: history is collected back to this limit and no further, and anything older is removed on the next check.",children:(0,W.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,W.jsxs)("div",{style:{flex:1},children:[(0,W.jsx)("label",{htmlFor:"lc-mail-sync",style:q(),children:"Check every (minutes)"}),(0,W.jsx)("input",{id:"lc-mail-sync",type:"text",inputMode:"numeric",value:m,onChange:v=>h(v.target.value),style:H()})]}),(0,W.jsxs)("div",{style:{flex:1},children:[(0,W.jsx)("label",{htmlFor:"lc-mail-retention",style:q(),children:"Keep for (months)"}),(0,W.jsx)("input",{id:"lc-mail-retention",type:"text",inputMode:"numeric",value:f,onChange:v=>x(v.target.value),style:H()})]})]})}),(0,W.jsxs)(va,{title:"Actions",children:[(0,W.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,W.jsx)("button",{type:"button",style:se(!1),onClick:y,children:"Save"}),(0,W.jsx)("button",{type:"button",style:$(),disabled:g.busy===!0||!o,onClick:e.onSyncNow,children:"Sync now"}),(0,W.jsxs)("button",{type:"button",style:$(),disabled:g.busy===!0||g.indexed===0,title:`Remove indexed mail older than ${f} months`,onClick:e.onPrune,children:["Remove older than ",f,"m"]})]}),(0,W.jsx)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:8},children:t!==void 0?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("span",{style:{fontSize:11},children:t==="clear"?`Throw away all ${String(g.indexed)} indexed message(s)?`:`Clear ${String(g.indexed)} message(s) and collect them again from Outlook?`}),(0,W.jsx)("button",{type:"button",style:se(!1),onClick:()=>{e.onClear(t==="reindex"),n(void 0)},children:t==="clear"?"Clear it":"Reindex"}),(0,W.jsx)("button",{type:"button",style:$(),onClick:()=>n(void 0),children:"Cancel"})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("button",{type:"button",style:$(),disabled:g.busy===!0||!o,title:"Clears the index and collects everything again. A large mailbox fills in over several passes.",onClick:()=>n("reindex"),children:"Reindex everything"}),(0,W.jsx)("button",{type:"button",style:$(),disabled:g.busy===!0||g.indexed===0,title:"Removes every indexed message and its vectors",onClick:()=>n("clear"),children:"Clear index"})]})}),(0,W.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap",marginTop:8},children:[(0,W.jsx)("span",{style:{fontSize:11,color:c.muted},children:"Re-read the last"}),(0,W.jsx)("input",{type:"text",inputMode:"numeric",value:r,"aria-label":"Days of mail to re-read",onChange:v=>i(v.target.value),style:{...H(),width:56}}),(0,W.jsx)("span",{style:{fontSize:11,color:c.muted},children:"day(s)"}),(0,W.jsx)("button",{type:"button",style:$(),disabled:g.busy===!0,title:"Fetches this window again and replaces what is stored, even where it is already indexed",onClick:()=>e.onRefreshDays(Math.max(1,Math.min(365,Number(r)||7))),children:"Refresh that window"})]}),(0,W.jsx)(Ai,{progress:e.progress,onStop:e.onStop}),(0,W.jsxs)("div",{style:{marginTop:8,color:c.muted,fontSize:11},children:[(0,W.jsx)("span",{style:{display:"block"},children:g.indexed===0?"Nothing indexed yet.":`${String(g.indexed)} message(s), ${oO(g.sizeBytes)} on disk${g.oldest!==void 0?`, oldest ${new Date(g.oldest).toLocaleDateString()}`:""}.`}),g.lastResult!==void 0&&(0,W.jsx)("span",{style:{display:"block"},children:g.lastResult})]})]}),(0,W.jsx)(va,{title:"Try a search",hint:"Runs the same search the assistant would, against this index. The quickest way to tell an empty index from a search that is not working.",children:(0,W.jsx)(ya,{target:"mail",label:"Search indexed mail",hint:"Each hit shows when it was received, which folder it came from, and its id.",running:e.probe.running,result:e.probe.result,onProbe:e.onProbe,onClear:e.onClearProbe})})]}):(0,W.jsxs)("div",{children:[b,(0,W.jsxs)("div",{style:{border:`1px solid ${c.border}`,borderRadius:4,padding:10,fontSize:11,color:c.muted},children:[(0,W.jsx)("span",{style:{display:"block",marginBottom:6},children:"Outlook access is switched off, so nothing here can run yet. It is Windows only."}),(0,W.jsx)("button",{type:"button",style:{background:"none",border:"none",color:c.accent,cursor:"pointer",padding:0,fontSize:11},onClick:e.onOpenTools,children:"Open Tools to enable Outlook"})]})]})}var ie=M(oe(),1);var gr=M(he(),1);var aO="var(--vscode-editor-font-family, monospace)",lO={"built-in":"Built in",mcp:"MCP servers",python:"Python tools"},sO={read:"reads",edit:"edits",command:"runs commands",mcp:"mcp",always:"always available"};function c$(e){let[t,n]=(0,gr.useState)(""),r=(0,gr.useMemo)(()=>{let a=t.trim().toLowerCase();return a.length===0?e.tools:e.tools.filter(l=>l.name.toLowerCase().includes(a)||l.description.toLowerCase().includes(a))},[e.tools,t]),i=(0,gr.useMemo)(()=>{let a=new Map;for(let l of r){let s=a.get(l.source);s===void 0?a.set(l.source,[l]):s.push(l)}return a},[r]),o=e.tools.filter(a=>!a.advertised).length;return(0,ie.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P,fontSize:13,color:c.foreground},children:[(0,ie.jsx)("h3",{style:{margin:"0 0 4px"},children:"Tools"}),(0,ie.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:0},children:"Everything the assistant can call right now \u2014 built in, from your MCP servers, and your own Python tools. Read-only: each is configured where it comes from."}),e.dispatcher&&(0,ie.jsxs)("p",{style:{color:c.muted,fontSize:11},children:[o," of these are kept out of the system prompt to save space. They are still callable \u2014 the assistant looks them up when it needs one. Turn that off in"," ",(0,ie.jsx)("strong",{children:"Search"})," if you would rather it saw them all."]}),(0,ie.jsx)(uO,{value:e.toolTimeoutSeconds,onSet:e.onSetToolTimeout}),e.docsIndex!==void 0&&(0,ie.jsxs)("section",{style:{marginTop:18,borderTop:`1px solid ${c.border}`,paddingTop:14},children:[(0,ie.jsx)("h3",{style:ro(),children:"Tool documentation index"}),(0,ie.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:["Tool schemas are kept out of every request and looked up on demand, so a tool has to be indexed before it can be found by meaning. That happens on its own a few seconds after anything changes \u2014 this is for when you would rather not wonder."," ",e.docsIndex.enabled?e.docsIndex.retrievalReady?"":"No embedding model is configured, so tools are matched on names and descriptions instead. They stay findable either way. Set one under Search to index by meaning.":"Looking tools up on demand is switched off under Search, so every tool is listed in full in each request and there is nothing to index."]}),(0,ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,ie.jsx)("button",{type:"button",style:$(),disabled:!e.docsIndex.enabled||e.docsIndex.indexing||!e.docsIndex.retrievalReady,onClick:e.onIndexDocs,children:e.docsIndex.indexing?"Indexing\u2026":"Reindex tool documentation"}),(0,ie.jsx)("button",{type:"button",style:$(),disabled:!e.docsIndex.enabled||e.docsIndex.indexing,title:"Removes tool entries from the documentation index. Skills are left alone.",onClick:e.onClearDocs,children:"Clear tool entries"}),e.docsIndex.result!==void 0&&(0,ie.jsx)("span",{style:{color:c.muted,fontSize:11},children:e.docsIndex.result})]}),(0,ie.jsx)(Ai,{progress:e.progress,onStop:e.onStopIndexing}),(0,ie.jsx)(ya,{target:"docs",label:"Search indexed tool documentation",hint:"Runs the same lookup the assistant uses to find a tool. Skills share this index.",running:e.probe.running,result:e.probe.result,onProbe:e.onProbe,onClear:e.onClearProbe})]}),(0,ie.jsx)(cO,{office:e.office,onSet:e.onSetOffice}),(0,ie.jsxs)("div",{style:{margin:"10px 0"},children:[(0,ie.jsx)("label",{htmlFor:"lc-tools-search",style:q(),children:"Search"}),(0,ie.jsx)("input",{id:"lc-tools-search",type:"search",value:t,placeholder:"e.g. read a spreadsheet",onChange:a=>n(a.target.value),style:H()})]}),(0,ie.jsxs)("p",{style:{color:c.muted,fontSize:11},children:[r.length," of ",e.tools.length," ",e.tools.length===1?"tool":"tools"]}),e.tools.length===0&&(0,ie.jsx)("p",{style:{color:c.muted,fontSize:12},children:"Nothing yet. Open a folder and configure a provider \u2014 the built-in tools appear once a session can start."}),[...i.entries()].map(([a,l])=>(0,ie.jsxs)("div",{style:{marginTop:14},children:[(0,ie.jsxs)("strong",{style:{fontSize:12},children:[lO[a]," ",(0,ie.jsxs)("span",{style:{color:c.muted},children:["(",l.length,")"]})]}),l.map(s=>(0,ie.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${c.border}`},children:[(0,ie.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,ie.jsx)("span",{style:{fontFamily:aO,fontSize:12},children:s.name}),(0,ie.jsx)("span",{style:{...Xe(),fontSize:9},children:sO[s.group]??s.group}),s.server!==void 0&&(0,ie.jsx)("span",{style:{...Xe(),fontSize:9},title:`From the ${s.server} server`,children:s.server}),!s.advertised&&(0,ie.jsx)("span",{style:{...Xe(),fontSize:9},title:"Registered but kept out of the system prompt. Still callable \u2014 the assistant looks it up first.",children:"looked up"})]}),(0,ie.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:2},children:[(0,ie.jsx)("div",{style:{color:c.muted,fontSize:11,flex:1,minWidth:0},children:s.description}),(0,ie.jsx)("input",{inputMode:"numeric","aria-label":`Timeout for ${s.name}`,title:s.timeoutSeconds===void 0?"Seconds this tool may take. Blank leaves it to whatever runs it.":s.timeoutIsOwn===!0?`${String(s.timeoutSeconds)}s, set on this tool. Clear it to inherit again.`:`${String(s.timeoutSeconds)}s, inherited. Type a number to set one just for this tool.`,defaultValue:s.timeoutIsOwn===!0?String(s.timeoutSeconds):"",placeholder:s.timeoutSeconds===void 0?"s":String(s.timeoutSeconds),onKeyDown:u=>{u.key==="Enter"&&u.currentTarget.blur()},onBlur:u=>{let d=u.target.value.trim();if(d.length===0){s.timeoutIsOwn===!0&&e.onSetToolTimeoutFor(s.name);return}let m=Number(d);if(!Number.isFinite(m)||m<5||m>3600){u.target.value=s.timeoutIsOwn===!0?String(s.timeoutSeconds):"";return}(m!==s.timeoutSeconds||s.timeoutIsOwn!==!0)&&e.onSetToolTimeoutFor(s.name,Math.round(m))},style:{width:54,flexShrink:0,background:c.inputBackground,color:s.timeoutIsOwn===!0?c.accent:c.inputForeground,border:`1px solid ${s.timeoutIsOwn===!0?c.accent:c.inputBorder}`,borderRadius:2,padding:"0 4px",fontFamily:P,fontSize:11,textAlign:"right"}})]})]},s.name))]},a)),e.tools.length>0&&r.length===0&&(0,ie.jsxs)("p",{style:{color:c.muted,fontSize:12,marginTop:12},children:["Nothing matches \u201C",t.trim(),"\u201D."]})]})}function cO(e){let{office:t}=e;return(0,ie.jsxs)("div",{style:{margin:"12px 0",padding:10,border:`1px solid ${c.border}`,borderRadius:6,opacity:t.supported?1:.6},children:[(0,ie.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"Excel and Outlook"}),(0,ie.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:t.supported?"Lets the assistant attach to the Office applications already running here. Off by default: nothing is started and nothing is read until you switch one on.":"Windows only \u2014 this uses COM to attach to a running Office application, which exists nowhere else. The tools are absent on this machine rather than present and failing."}),(0,ie.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",marginBottom:6,cursor:t.supported?"pointer":"not-allowed"},children:[(0,ie.jsx)("input",{type:"checkbox",checked:t.excel,disabled:!t.supported,onChange:n=>e.onSet(n.target.checked,t.outlook),style:{marginTop:2}}),(0,ie.jsxs)("span",{children:[(0,ie.jsx)("span",{style:{display:"block",fontSize:13},children:"Excel"}),(0,ie.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["Read cells and formulas from open workbooks, trace where a value comes from, and read or replace VBA. ",(0,ie.jsx)("strong",{children:"It can read any workbook you have open"}),", including unsaved ones. Replacing a macro always asks first and shows the code."]})]})]}),(0,ie.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",cursor:t.supported?"pointer":"not-allowed"},children:[(0,ie.jsx)("input",{type:"checkbox",checked:t.outlook,disabled:!t.supported,onChange:n=>e.onSet(t.excel,n.target.checked),style:{marginTop:2}}),(0,ie.jsxs)("span",{children:[(0,ie.jsx)("span",{style:{display:"block",fontSize:13},children:"Outlook"}),(0,ie.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:["Search and read mail from the Outlook installed here. ",(0,ie.jsx)("strong",{children:"Read-only"})," \u2014 nothing can send, reply, delete or move a message. Message text becomes part of the conversation, so it goes to your model provider like anything else you paste in."]})]})]})]})}function uO(e){let[t,n]=(0,gr.useState)(e.value===void 0?"":String(e.value));(0,gr.useEffect)(()=>n(e.value===void 0?"":String(e.value)),[e.value]);let r=()=>{let i=t.trim();if(i.length===0){e.onSet();return}let o=Number(i);if(!Number.isFinite(o)||o<5||o>3600){n(e.value===void 0?"":String(e.value));return}e.onSet(Math.round(o))};return(0,ie.jsxs)("div",{style:{margin:"12px 0",padding:10,border:`1px solid ${c.border}`,borderRadius:6},children:[(0,ie.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"Tool timeout"}),(0,ie.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:"How long any one tool call may take. Applies to MCP servers, Python tools and the Excel and Outlook tools alike, and to anything added later. Blank leaves each kind at its own default. A timeout set on a particular tool or server still wins over this."}),(0,ie.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,ie.jsx)("input",{inputMode:"numeric",value:t,placeholder:"seconds","aria-label":"Tool timeout in seconds",onChange:i=>n(i.target.value),onBlur:r,onKeyDown:i=>{i.key==="Enter"&&i.currentTarget.blur()},style:{...H(),width:110}}),(0,ie.jsx)("span",{style:{color:c.muted,fontSize:11},children:e.value===void 0?"each tool decides":`${String(e.value)}s for everything`})]})]})}var Me=M(oe(),1),nb=M(he(),1);function u$(e){let t=e.items.filter(r=>r.status==="pending"),n=e.items.filter(r=>r.status!=="pending");return(0,Me.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P,fontSize:13,color:c.foreground},children:[(0,Me.jsx)("h3",{style:{margin:"0 0 4px"},children:"Review queue"}),(0,Me.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:0},children:e.canDecide?"Python tools and skills written by other people. Nothing here can run until you approve it.":"What you have submitted. An administrator has to approve it before it can run."}),t.length===0&&(0,Me.jsx)("p",{style:{color:c.muted,fontSize:12,marginTop:14},children:"Nothing waiting."}),t.map(r=>(0,Me.jsx)(dO,{item:r,canDecide:e.canDecide,onDecide:e.onDecide},r.id)),n.length>0&&(0,Me.jsxs)("section",{style:{marginTop:22,paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,Me.jsx)("span",{style:q(),children:"Decided"}),n.map(r=>(0,Me.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${c.border}`,fontSize:12},children:[(0,Me.jsx)("span",{style:{...Xe(),fontSize:9,marginRight:6},children:r.status}),(0,Me.jsx)("strong",{children:r.name})," ",(0,Me.jsxs)("span",{style:{color:c.muted},children:["by ",r.authorName,r.decidedBy!==void 0?`, decided by ${r.decidedBy}`:""]}),r.reason!==void 0&&(0,Me.jsx)("div",{style:{color:c.muted,fontSize:11,marginTop:2},children:r.reason})]},r.id))]})]})}function dO(e){let{item:t}=e,[n,r]=(0,nb.useState)(!1),[i,o]=(0,nb.useState)("");return(0,Me.jsxs)("div",{style:{border:`1px solid ${c.border}`,borderRadius:5,padding:10,marginBottom:10},children:[(0,Me.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,Me.jsx)("span",{style:{...Xe(),fontSize:9},children:t.kind==="python-tool"?"tool":"skill"}),(0,Me.jsx)("strong",{style:{fontSize:13},children:t.name}),(0,Me.jsxs)("span",{style:{color:c.muted,fontSize:11},children:["from ",t.authorName," \xB7 ",new Date(t.submittedAt).toLocaleString()]})]}),t.producedBy!==void 0&&(0,Me.jsxs)("div",{style:{color:c.muted,fontSize:11,marginTop:4},children:["Written by ",t.producedBy]}),(0,Me.jsx)("button",{type:"button",style:{...$(),fontSize:11,marginTop:8},"aria-expanded":n,onClick:()=>r(!n),children:n?"Hide the source":"Read the source"}),n&&(0,Me.jsx)("div",{style:{marginTop:8},children:(0,Me.jsx)(es,{path:t.name,before:t.existingContent,after:t.content})}),e.canDecide?(0,Me.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,alignItems:"center",flexWrap:"wrap"},children:[(0,Me.jsx)("button",{type:"button",style:se(!n),disabled:!n,title:n?void 0:"Read the source first",onClick:()=>e.onDecide(t.id,!0),children:"Approve"}),(0,Me.jsx)("button",{type:"button",style:{...$(),color:c.error},onClick:()=>e.onDecide(t.id,!1,i.trim().length>0?i.trim():void 0),children:"Reject"}),(0,Me.jsx)("input",{type:"text","aria-label":"Reason for rejecting",placeholder:"Why? The author sees this.",value:i,onChange:a=>o(a.target.value),style:{...H(),flex:1,minWidth:140}}),!n&&(0,Me.jsx)("span",{style:{color:c.muted,fontSize:11,flexBasis:"100%"},children:"Open the source before approving it."})]}):(0,Me.jsx)("div",{style:{color:c.muted,fontSize:11,marginTop:8},children:"Waiting for an administrator."})]})}var Te=M(oe(),1);var yr=M(he(),1);var as="var(--vscode-editor-font-family, monospace)";function f$(e){return(0,Te.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P,fontSize:13,color:c.foreground},children:[(0,Te.jsx)("h3",{style:{margin:"0 0 4px"},children:"Variables"}),(0,Te.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:0},children:"Set as environment variables for everything a session runs \u2014 shell commands and Python tools."}),(0,Te.jsxs)("p",{style:{color:c.error,fontSize:11,border:`1px solid ${c.error}`,borderRadius:8,padding:8,margin:"0 0 12px"},children:[(0,Te.jsx)("strong",{children:"Not secret."})," Everything a session runs does so as the server\u2019s own account, so another user can have their assistant read these. Put an API key in"," ",(0,Te.jsx)("strong",{children:"Providers"}),", which stores it separately and never sends it back to a page."]}),(0,Te.jsx)(d$,{title:"Yours",hint:"Only your sessions see these.",variables:e.user,resolved:e.resolved,scope:"user",onSave:e.onSaveUser,editable:!0}),(0,Te.jsx)(d$,{title:"Everyone's",hint:e.canEditAdmin?"Applied to every user, and these win where a name collides with someone\u2019s own.":"Set by an administrator. These win where a name collides with your own.",variables:e.admin,resolved:e.resolved,scope:"admin",onSave:e.onSaveAdmin,editable:e.canEditAdmin}),e.canEditAdmin&&(0,Te.jsx)(fO,{ids:e.adminIds,onSave:e.onSaveAdminIds})]})}function d$(e){let[t,n]=(0,yr.useState)(e.variables),[r,i]=(0,yr.useState)(!1);(0,yr.useEffect)(()=>{r||n(e.variables)},[e.variables,r]);let o=(s,u)=>{i(!0),n(d=>d.map((m,h)=>h===s?{...m,...u}:m))},a=t.filter(s=>s.name.length>0&&!td(s.name)),l=t.some(s=>s.name.trim().length===0);return(0,Te.jsxs)("section",{style:{marginTop:16,paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,Te.jsx)("span",{style:q(),children:e.title}),(0,Te.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:e.hint}),t.length===0&&(0,Te.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:"None set."}),t.map((s,u)=>{let d=e.resolved.find(f=>f.name===s.name),m=e.scope==="user"&&d!==void 0&&d.scope==="admin",h=s.name.length>0&&!td(s.name);return(0,Te.jsxs)("div",{style:{marginBottom:8},children:[(0,Te.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,Te.jsx)("input",{type:"text","aria-label":"Variable name",value:s.name,spellCheck:!1,disabled:!e.editable,placeholder:"NAME",onChange:f=>o(u,{name:f.target.value}),style:{...H(),width:170,fontFamily:as,...h?{borderColor:c.error}:{}}}),(0,Te.jsx)("input",{type:"text","aria-label":"Variable value",value:s.value,spellCheck:!1,disabled:!e.editable,placeholder:"value",onChange:f=>o(u,{value:f.target.value}),style:{...H(),flex:1,minWidth:140,fontFamily:as}}),e.editable&&(0,Te.jsx)("button",{type:"button","aria-label":`Remove ${s.name}`,title:"Remove",style:$(),onClick:()=>{i(!0),n(f=>f.filter((x,k)=>k!==u))},children:(0,Te.jsx)(jt,{})})]}),h&&(0,Te.jsx)("div",{style:{color:c.error,fontSize:10,marginTop:2},children:"Letters, digits and underscore only, not starting with a digit \u2014 anything else cannot be set as an environment variable."}),m&&(0,Te.jsxs)("div",{style:{color:c.muted,fontSize:10,marginTop:2},children:[(0,Te.jsx)("span",{style:{...Xe(),fontSize:9,marginRight:4},children:"overridden"}),"An administrator set ",s.name," for everyone, so sessions use"," ",(0,Te.jsx)("code",{style:{fontFamily:as},children:d.value})," and not yours."]})]},u)}),e.editable&&(0,Te.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8,alignItems:"center",flexWrap:"wrap"},children:[(0,Te.jsx)("button",{type:"button",style:$(),onClick:()=>{i(!0),n(s=>[...s,{name:"",value:""}])},children:"Add"}),(0,Te.jsx)("button",{type:"button",style:se(!r||a.length>0||l),disabled:!r||a.length>0||l,onClick:()=>{e.onSave(t.map(s=>({...s,name:s.name.trim()}))),i(!1)},children:"Save"}),l&&(0,Te.jsx)("span",{style:{color:c.muted,fontSize:11},children:"A name is required."})]})]})}function fO(e){let[t,n]=(0,yr.useState)(e.ids.join(`
133
+ `)),[r,i]=(0,yr.useState)(!1);return(0,yr.useEffect)(()=>{r||n(e.ids.join(`
134
+ `))},[e.ids,r]),(0,Te.jsxs)("section",{style:{marginTop:16,paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,Te.jsx)("span",{style:q(),children:"Administrators"}),(0,Te.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:["One identity id per line \u2014 the immutable id your directory issues, not a username, which gets reassigned when someone leaves. Removing yourself is allowed; the way back is"," ",(0,Te.jsx)("code",{style:{fontFamily:as},children:"--admin-id"})," on the command line."]}),(0,Te.jsx)("textarea",{"aria-label":"Administrator ids",value:t,spellCheck:!1,rows:4,onChange:o=>{i(!0),n(o.target.value)},style:{...H(),width:"100%",fontFamily:as,resize:"vertical"}}),(0,Te.jsx)("button",{type:"button",style:{...se(!r),marginTop:8},disabled:!r,onClick:()=>{e.onSave(t.split(`
135
+ `).map(o=>o.trim()).filter(o=>o.length>0)),i(!1)},children:"Save"})]})}var J=M(oe(),1);var xa=M(he(),1);var Vt=M(oe(),1),ba=M(he(),1);var m$="var(--vscode-editor-font-family, monospace)";function h$(e){let[t,n]=(0,ba.useState)(e.primary),[r,i]=(0,ba.useState)(e.extras);(0,ba.useEffect)(()=>n(e.primary),[e.primary]),(0,ba.useEffect)(()=>i(e.extras),[e.extras]);let o=t!==e.primary||r.join("\0")!==e.extras.join("\0"),a=(l,s)=>i(u=>u.map((d,m)=>m===l?s:d));return(0,Vt.jsxs)("section",{style:{marginTop:16,paddingTop:14,borderTop:`1px solid ${c.border}`},children:[(0,Vt.jsx)("label",{style:q(),htmlFor:"lc-folder-primary",children:e.primaryLabel}),(0,Vt.jsx)("input",{id:"lc-folder-primary",type:"text",value:t,spellCheck:!1,placeholder:e.primaryPlaceholder,onChange:l=>n(l.target.value),style:{...H(),fontFamily:m$}}),(0,Vt.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,margin:"4px 0 12px"},children:e.primaryHint}),(0,Vt.jsx)("span",{style:q(),children:e.extrasLabel}),(0,Vt.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,margin:"0 0 8px"},children:e.extrasHint}),r.map((l,s)=>(0,Vt.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:6},children:[(0,Vt.jsx)("input",{type:"text",value:l,spellCheck:!1,"aria-label":`Folder ${s+1}`,onChange:u=>a(s,u.target.value),style:{...H(),fontFamily:m$}}),(0,Vt.jsx)("button",{type:"button",title:"Remove this folder","aria-label":"Remove this folder",style:Se("secondary"),onClick:()=>i(u=>u.filter((d,m)=>m!==s)),children:(0,Vt.jsx)(jt,{})})]},s)),(0,Vt.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:8,flexWrap:"wrap"},children:[(0,Vt.jsx)("button",{type:"button",style:$(),onClick:()=>i(l=>[...l,""]),children:"Add a folder"}),(0,Vt.jsx)("button",{type:"button",style:$(),disabled:!o,onClick:()=>e.onSave(t.trim(),r.map(l=>l.trim()).filter(l=>l.length>0)),children:o?"Save folders":"Saved"}),(0,Vt.jsx)("span",{style:{color:c.muted,fontSize:11,fontFamily:P},children:"Relative paths resolve against the workspace."})]})]})}var lo=M(oe(),1),p$=M(he(),1);function g$(e){let[t,n]=(0,p$.useState)(void 0),r=e.problems.join("\0");return e.problems.length===0?(t!==void 0&&n(void 0),null):t===r?null:(0,lo.jsxs)("div",{style:{marginTop:12},children:[(0,lo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,lo.jsx)("strong",{style:{fontSize:12,color:c.error},children:e.title}),(0,lo.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Hide these until something changes. The files themselves are untouched \u2014 fix them and they stop being listed.",onClick:()=>n(r),children:"Dismiss"})]}),e.problems.map(i=>(0,lo.jsxs)("div",{style:{fontSize:11,color:c.error,marginTop:4},children:["\u26A0 ",i]},i))]})}var md="var(--vscode-editor-font-family, monospace)";function mO(e){let[t,n]=(0,xa.useState)(e.alias??""),[r,i]=(0,xa.useState)(!1);return(0,xa.useEffect)(()=>n(e.alias??""),[e.alias]),(0,J.jsxs)("section",{style:{marginTop:18,borderTop:`1px solid ${c.border}`,paddingTop:14},children:[(0,J.jsx)("h3",{style:{margin:"0 0 6px",fontSize:13},children:"Team skills"}),(0,J.jsxs)("p",{style:{margin:"0 0 8px",color:c.muted,fontSize:11},children:["One name covering every teammate\u2019s skills, so the assistant can search what other people have taught theirs. Everyone publishes to their own collection; set the same alias on each machine. Colleagues\u2019 skills are returned in full, because they have no file on your disk to open. ",(0,J.jsx)("strong",{children:"OpenSearch only."})]}),(0,J.jsxs)("label",{htmlFor:"lc-skills-alias",style:q(),children:["Shared skills alias ",(0,J.jsx)("span",{style:{color:c.muted,fontWeight:400},children:"(optional)"})]}),(0,J.jsx)("input",{id:"lc-skills-alias",type:"text",value:t,spellCheck:!1,placeholder:"e.g. my-team-skills",onChange:o=>n(o.target.value),style:H()}),(0,J.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8,alignItems:"center",flexWrap:"wrap"},children:[(0,J.jsx)("button",{type:"button",style:$(),disabled:t.trim()===(e.alias??""),onClick:()=>e.onSaveAlias(t.trim()),children:t.trim()===(e.alias??"")?"1. Name saved":"1. Save this name"}),(0,J.jsx)("button",{type:"button",style:se(e.alias===void 0),disabled:e.alias===void 0||e.publishing===!0,title:e.alias===void 0?"Save the name first":"Embeds your skills and writes them to the shared collection",onClick:e.onPublish,children:e.publishing===!0?"Sending\u2026":"2. Send my skills to the team"})]}),(0,J.jsx)("div",{style:{display:"flex",gap:8,marginTop:8,alignItems:"center",flexWrap:"wrap"},children:r?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("span",{style:{fontSize:11},children:"Remove every skill you have published?"}),(0,J.jsx)("button",{type:"button",style:se(!1),onClick:()=>{i(!1),e.onClear()},children:"Remove them"}),(0,J.jsx)("button",{type:"button",style:$(),onClick:()=>i(!1),children:"Keep them"})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("button",{type:"button",style:$(),disabled:e.alias===void 0||e.publishing===!0,onClick:()=>i(!0),children:"Remove mine from the pool"}),(0,J.jsx)("span",{style:{color:c.muted,fontSize:11},children:"Only your own copies. Colleagues publish to their own collections, so this cannot reach theirs."})]})}),(0,J.jsx)(Ai,{progress:e.progress,onStop:e.onStop}),e.result?.error!==void 0&&(0,J.jsx)("span",{style:{display:"block",color:c.error,fontSize:11,marginTop:6},children:e.result.error}),e.result?.error===void 0&&e.result?.cleared!==void 0&&(0,J.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:6},children:`Removed ${String(e.result.cleared)} published skill(s).`}),e.result?.error===void 0&&e.result?.cleared===void 0&&e.result?.count!==void 0&&(0,J.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11,marginTop:6},children:[`Published ${String(e.result.count)} skill(s) to "${e.result.collection??""}". `,"Sending again replaces your own copies and never touches anyone else\u2019s."]})]})}function y$(e){let[t,n]=(0,xa.useState)(void 0);return(0,J.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P,fontSize:13,color:c.foreground},children:[(0,J.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginBottom:12},children:[(0,J.jsx)("button",{type:"button",style:$(),disabled:e.indexing,onClick:e.onReindex,children:e.indexing?"Reindexing\u2026":"Reindex skills"}),(0,J.jsx)("button",{type:"button",style:$(),disabled:e.indexing,title:"Removes skill entries from the documentation index. Tools are left alone.",onClick:e.onClearIndex,children:"Clear skill entries"}),(0,J.jsx)("span",{style:{color:c.muted,fontSize:11},children:e.indexResult??"Reindexed automatically a few seconds after any change. This forces it now, for skills only."})]}),(0,J.jsx)(Ai,{progress:e.indexProgress,onStop:e.onStopIndexing}),(0,J.jsx)(ya,{target:"docs",label:"Search indexed tools and skills",hint:"Runs the same lookup the assistant uses to find a skill. Covers tool documentation too - they share one index.",running:e.probe.running,result:e.probe.result,onProbe:e.onProbe,onClear:e.onClearProbe}),(0,J.jsx)(mO,{...e.team}),(0,J.jsx)("h3",{style:{margin:"0 0 4px"},children:"Skills"}),(0,J.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:0},children:"Notes the assistant keeps about this workspace \u2014 internal libraries, conventions, anything you would otherwise explain again each time. Tell it something durable and it will offer to record one; you approve the text before it is written."}),(0,J.jsxs)("p",{style:{color:c.muted,fontSize:11},children:["Only each ",(0,J.jsx)("strong",{children:"description"})," below is loaded into every conversation. The bodies are read on demand, so a long skill costs nothing until it is relevant.",e.skillsDir!==void 0&&(0,J.jsxs)(J.Fragment,{children:[" ","They are plain markdown in ",(0,J.jsx)("code",{style:{fontFamily:md},children:e.skillsDir}),", so they land in git and can be reviewed like any other file."]})]}),(0,J.jsxs)("div",{style:{margin:"10px 0",padding:10,border:`1px solid ${c.border}`,borderRadius:6},children:[(0,J.jsx)("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:"Standing instructions"}),(()=>{let r=e.skills.find(i=>i.always===!0);return r===void 0?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:["One skill can be included in ",(0,J.jsx)("strong",{children:"every"})," session, in full, rather than offered by name \u2014 for the things you would otherwise repeat at the start of each conversation. It is paid for on every request, so keep it short."]}),(0,J.jsx)("button",{type:"button",style:$(),onClick:e.onOpenStandingSkill,children:"Create standing instructions"})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:[(0,J.jsx)("strong",{children:r.name})," is included in every session, in full. Remove"," ",(0,J.jsx)("code",{style:{fontFamily:md},children:"always: true"})," from its frontmatter to make it an ordinary skill again."]}),(0,J.jsx)("button",{type:"button",style:$(),onClick:e.onOpenStandingSkill,children:"Edit standing instructions"})]})})()]}),(0,J.jsx)(g$,{title:"Not loaded",problems:e.issues.map(r=>`${r.filePath} \u2014 ${r.detail}`)}),(0,J.jsx)("div",{style:{marginTop:14},children:e.skills.length===0?(0,J.jsx)("p",{style:{color:c.muted,fontSize:12},children:e.skillsDir===void 0?"Open a folder \u2014 skills belong to a workspace.":"None yet. Explain something about this codebase and the assistant will offer to record it."}):e.skills.map(r=>(0,J.jsxs)("div",{style:{padding:"8px 0",borderBottom:`1px solid ${c.border}`},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:8},children:[(0,J.jsx)("strong",{style:{fontFamily:md,fontSize:12},children:r.name}),r.sourceDir!==void 0&&e.skillsDir!==void 0&&r.sourceDir!==e.skillsDir&&(0,J.jsx)("span",{style:{...Xe(),fontSize:9},title:`Read-only, from ${r.sourceDir}`,children:"shared"}),(0,J.jsxs)("span",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:4},children:[(0,J.jsx)("button",{type:"button",style:$(),title:"Open this skill in an editor tab",onClick:()=>e.onOpenFile(r.filePath),children:"Open"}),r.sourceDir===void 0||e.skillsDir===void 0||r.sourceDir===e.skillsDir?(0,J.jsx)("button",{type:"button",style:$(),onClick:()=>n(r.name),children:"Remove"}):(0,J.jsx)("span",{style:{color:c.muted,fontSize:10},children:"read-only"})]})]}),(0,J.jsx)("div",{style:{color:c.muted,fontSize:11,marginTop:2},children:r.description}),(0,J.jsx)("div",{style:{color:c.muted,fontSize:10,fontFamily:md,marginTop:2},children:r.filePath}),t===r.name&&(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:6,fontSize:12},children:[(0,J.jsx)("span",{children:"Delete this skill file?"}),(0,J.jsx)("button",{type:"button",style:se(!1),onClick:()=>{e.onDelete(r.name),n(void 0)},children:"Delete"}),(0,J.jsx)("button",{type:"button",style:$(),onClick:()=>n(void 0),children:"Keep"})]})]},r.name))}),(0,J.jsx)(h$,{primary:e.configuredDir,primaryPlaceholder:e.skillsDir??".lightcode/skills",primaryLabel:"Where new skills are saved",primaryHint:"Leave blank for .lightcode/skills in the workspace. Creating, editing and deleting all happen here.",extras:e.extraDirs,extrasLabel:"Also read skills from",extrasHint:"Shared or reference folders, searched in order after the one above. Never written to, so a folder shared with colleagues stays safe. A name defined twice is taken from the first folder that has it.",onSave:e.onSaveDirs})]})}var E=M(oe(),1);var qt=M(he(),1);var Sa="var(--vscode-editor-font-family, monospace)",hO={read:"Reading",edit:"Editing files",command:"Running commands",mcp:"MCP servers",always:"Always available"};function pO(){return{id:"",name:"",prompt:"",trigger:{kind:"daily",hour:9,minute:0},enabled:!0,allowedTools:[]}}function v$(e){let[t,n]=(0,qt.useState)(void 0),[r,i]=(0,qt.useState)(Date.now()),[o,a]=(0,qt.useState)(void 0);return(0,qt.useEffect)(()=>{let l=setInterval(()=>i(Date.now()),3e4);return()=>clearInterval(l)},[]),t!==void 0?(0,E.jsx)(gO,{schedule:t,tools:e.tools,skills:e.skills,mentionCandidates:e.mentionCandidates,onQueryMentions:e.onQueryMentions,onCancel:()=>n(void 0),onSave:l=>{e.onSave(l),n(void 0)}}):(0,E.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P,fontSize:13,color:c.foreground},children:[(0,E.jsx)("h3",{style:{margin:"0 0 4px"},children:"Schedules"}),(0,E.jsx)("p",{style:{color:c.muted,fontSize:11,marginTop:0},children:"A prompt that runs on its own and leaves a normal task you can read afterwards. Each one can use only the tools you tick \u2014 nobody is present to approve anything while it runs."}),(0,E.jsx)("p",{style:{color:c.muted,fontSize:11},children:"Schedules only fire while VS Code is open. One that came due while it was closed runs shortly after you next open it, once \u2014 not repeatedly to catch up."}),(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",padding:"6px 8px",borderRadius:6,fontSize:11,border:`1px solid ${e.scheduler?.running===!1?c.error:c.border}`,color:e.scheduler?.running===!1?c.error:c.muted},children:[(0,E.jsx)("span",{children:e.scheduler?.running===!1?"The scheduler is not running \u2014 nothing will fire.":`Scheduler running${e.scheduler?.lastTickAt===void 0?" \u2014 first check within a minute":`, last checked ${new Date(e.scheduler.lastTickAt).toLocaleTimeString()}`}`}),(0,E.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Stop and start the timer. Safe at any time; a run already in progress is unaffected.",onClick:e.onRestartScheduler,children:"Restart"})]}),e.schedules.length===0?(0,E.jsx)("p",{style:{color:c.muted,fontSize:12,marginTop:14},children:"None yet."}):(0,E.jsx)("div",{style:{marginTop:12},children:e.schedules.map(l=>(0,E.jsxs)("div",{style:{padding:"8px 0",borderBottom:`1px solid ${c.border}`},children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[(0,E.jsx)("strong",{style:{fontSize:12},children:l.name}),l.allowedTools.length===0?(0,E.jsx)("span",{style:{...Xe(),fontSize:9},title:"Can answer, but cannot use any tool",children:"no tools"}):(0,E.jsxs)("span",{style:{...Xe(),fontSize:9},children:[l.allowedTools.length," ",l.allowedTools.length===1?"tool":"tools"]}),nd(e.tools,l.allowedTools).length>0&&(0,E.jsx)("span",{style:{...Xe("warning"),fontSize:9},title:"This schedule can change things without anyone watching",children:"can act"}),(0,E.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,E.jsx)("button",{type:"button",title:e.runningId===l.id?"Running now":"Run now","aria-label":"Run now",disabled:e.runningId===l.id,style:Se("ghost",e.runningId===l.id),onClick:()=>e.onRunNow(l.id),children:(0,E.jsx)(Tv,{})}),(0,E.jsx)("button",{type:"button",title:l.enabled?"Pause \u2014 keeps its history":"Resume","aria-label":l.enabled?"Pause":"Resume",style:Se("ghost"),onClick:()=>e.onToggle(l.id,!l.enabled),children:l.enabled?(0,E.jsx)(yw,{}):(0,E.jsx)(Tv,{})}),(0,E.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:$(),onClick:()=>n(l),children:"Edit"}),(0,E.jsx)("button",{type:"button",title:"Duplicate this schedule. The copy is paused so you can edit it first.","aria-label":"Duplicate",style:Se("ghost"),onClick:()=>e.onDuplicate(l.id),children:(0,E.jsx)(fr,{})}),(0,E.jsx)("button",{type:"button",title:"Delete this schedule","aria-label":"Delete this schedule",style:Se("ghost"),onClick:()=>e.onDelete(l.id),children:(0,E.jsx)(jt,{})})]})]}),(0,E.jsxs)("div",{style:{color:c.muted,fontSize:11,marginTop:2},children:[yv(l.trigger)," \xB7 ",vv(l,r)]}),(l.runs??[]).length>0&&(0,E.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":o===l.id,onClick:()=>a(o===l.id?void 0:l.id),style:{display:"flex",alignItems:"center",gap:5,marginTop:4,padding:"2px 4px 2px 0",background:"transparent",border:"none",borderRadius:6,color:c.muted,cursor:"pointer",fontFamily:P,fontSize:11},children:[(0,E.jsx)("span",{style:{display:"flex",transform:o===l.id?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,E.jsx)(io,{})}),(l.runs??[]).length," run",(l.runs??[]).length===1?"":"s"]}),o===l.id&&(l.runs??[]).length>0&&(0,E.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",marginLeft:18},title:"Forget this schedule's runs. The transcripts themselves stay in History.",onClick:()=>e.onClearRuns(l.id),children:"Clear these runs"}),o===l.id&&(l.runs??[]).map((s,u)=>(0,E.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,padding:"3px 0 3px 18px",fontSize:11,color:c.muted},children:[(0,E.jsx)("span",{title:s.result,style:{color:s.result==="error"?c.error:c.accent,flexShrink:0},children:s.result==="error"?"\u2717":"\u2713"}),(0,E.jsx)("span",{style:{flexShrink:0},children:new Date(s.at).toLocaleString()}),s.durationMs!==void 0&&(0,E.jsxs)("span",{style:{flexShrink:0},children:[(s.durationMs/1e3).toFixed(1),"s"]}),s.summary!==void 0&&(0,E.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:s.summary,children:s.summary}),s.reportPath!==void 0&&(0,E.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",marginLeft:"auto",color:c.accent,borderColor:c.accent},title:`Open the report this run wrote \u2014 ${s.reportPath}`,onClick:()=>e.onOpenReport(s.reportPath),children:"Report"}),s.taskId!==void 0&&(0,E.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",...s.reportPath===void 0?{marginLeft:"auto"}:{}},title:"Open this run's full transcript in an editor tab",onClick:()=>e.onOpenRun(s.taskId,`${l.name} \u2014 ${new Date(s.at).toLocaleString()}`),children:"Log"}),(0,E.jsx)("button",{type:"button",style:{...$(),fontSize:10,padding:"1px 6px",...s.taskId===void 0?{marginLeft:"auto"}:{}},title:"Remove this run from the log","aria-label":"Delete this run",onClick:()=>e.onDeleteRun(l.id,s.at),children:"\u2715"})]},`${String(s.at)}-${String(u)}`))]},l.id))}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:14},children:[(0,E.jsx)("button",{type:"button",style:se(!1),onClick:()=>n(pO()),children:"New schedule"}),e.schedules.some(l=>(l.runs??[]).length>0)&&(0,E.jsx)("button",{type:"button",style:$(),title:"Forget every schedule's run history. The transcripts stay in History and are deleted from there.",onClick:()=>e.onClearRuns(),children:"Clear all run logs"})]})]})}function gO(e){let[t,n]=(0,qt.useState)(e.schedule),[r,i]=(0,qt.useState)(""),[o,a]=(0,qt.useState)(""),[l,s]=(0,qt.useState)(!1),[u,d]=(0,qt.useState)(void 0),[m,h]=(0,qt.useState)(0),f=(0,qt.useRef)(null),x=u!==void 0&&e.mentionCandidates.length>0,k=(0,qt.useRef)(e.onQueryMentions);k.current=e.onQueryMentions,(0,qt.useEffect)(()=>{if(u===void 0)return;let O=setTimeout(()=>k.current(u),120);return()=>clearTimeout(O)},[u]);let N=(O,le)=>{d(od(O,le)),h(0)},g=O=>{let le=f.current,de=le?.selectionStart??t.prompt.length,ct=ad(t.prompt,de,O);ct!==void 0&&(ee({prompt:ct.text}),d(void 0),requestAnimationFrame(()=>{le?.focus(),le?.setSelectionRange(ct.caret,ct.caret)}))},y=o.trim().toLowerCase(),b=e.skills.filter(O=>y.length===0||O.name.toLowerCase().includes(y)||O.description.toLowerCase().includes(y)),v=()=>t.allowedSkills??e.skills.map(O=>O.name),A=v().length,ee=O=>n(le=>({...le,...O})),B=O=>n(le=>({...le,trigger:{...le.trigger,...O}})),T=nd(e.tools,t.allowedTools),V=t.name.trim().length>0&&t.prompt.trim().length>0,C=r.trim().toLowerCase(),re=O=>{let le=t.allowedTools.includes(O.name);if(l&&!le)return!1;if(C.length===0||le)return!0;let de=`${O.name} ${O.name.replace(/[_-]+/g," ")} ${O.description}`.toLowerCase();return C.split(/\s+/).every(ct=>de.includes(ct))},Ye=new Map;for(let O of e.tools){if(O.group==="always"||!re(O))continue;let le=Ye.get(O.group)??[];le.push(O),Ye.set(O.group,le)}let Je=[...Ye.values()].flat(),Qe=Je.filter(O=>!t.allowedTools.includes(O.name)),jn=O=>ee({allowedTools:t.allowedTools.includes(O)?t.allowedTools.filter(le=>le!==O):[...t.allowedTools,O]});return(0,E.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:P,fontSize:13,color:c.foreground},children:[(0,E.jsx)("h3",{style:{margin:"0 0 12px"},children:e.schedule.id===""?"New schedule":"Edit schedule"}),(0,E.jsx)("label",{style:q(),htmlFor:"lc-sched-name",children:"Name"}),(0,E.jsx)("input",{id:"lc-sched-name",type:"text",value:t.name,placeholder:"Morning build check",onChange:O=>ee({name:O.target.value}),style:{...H(),marginBottom:12}}),(0,E.jsx)("label",{style:q(),htmlFor:"lc-sched-prompt",children:"Prompt"}),(0,E.jsx)("textarea",{id:"lc-sched-prompt",ref:f,value:t.prompt,rows:4,placeholder:"Read @src/app.ts and tell me if anything looks wrong.",onChange:O=>{ee({prompt:O.target.value}),N(O.target.value,O.target.selectionStart)},onKeyDown:O=>{if(x)if(O.key==="ArrowDown")O.preventDefault(),h(le=>(le+1)%e.mentionCandidates.length);else if(O.key==="ArrowUp")O.preventDefault(),h(le=>(le-1+e.mentionCandidates.length)%e.mentionCandidates.length);else if(O.key==="Enter"||O.key==="Tab"){O.preventDefault();let le=e.mentionCandidates[m];le!==void 0&&g(le)}else O.key==="Escape"&&d(void 0)},style:{...H(),marginBottom:4,resize:"vertical",fontFamily:P}}),x&&(0,E.jsx)("div",{role:"listbox","aria-label":"Workspace files",className:"lc-scroll",style:{maxHeight:150,overflowY:"auto",border:`1px solid ${c.accent}`,borderRadius:8,marginBottom:6},children:e.mentionCandidates.map((O,le)=>(0,E.jsx)("button",{type:"button",role:"option","aria-selected":le===m,onMouseDown:de=>{de.preventDefault(),g(O)},style:{display:"block",width:"100%",textAlign:"left",padding:"4px 10px",background:le===m?c.accent:"transparent",border:"none",color:le===m?c.accentContrast:c.foreground,cursor:"pointer",fontFamily:Sa,fontSize:11},children:O},O))}),(0,E.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11,marginBottom:12},children:["Sent exactly as if you had typed it, including ",(0,E.jsx)("code",{style:{fontFamily:Sa},children:"@"})," file mentions \u2014 their contents are attached when the schedule runs, not now. Nobody can answer a follow-up question, so ask for something it can finish alone."]}),(0,E.jsx)("span",{style:q(),children:"When"}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:12,flexWrap:"wrap"},children:[(0,E.jsx)(Ne,{compact:!0,value:t.trigger.kind,ariaLabel:"How often",onChange:O=>ee({trigger:O==="interval"?{kind:"interval",everyMinutes:60}:O==="daily"?{kind:"daily",hour:9,minute:0}:{kind:"weekly",days:[1,2,3,4,5],hour:9,minute:0}}),options:[{value:"interval",label:"Every\u2026"},{value:"daily",label:"Daily at\u2026"},{value:"weekly",label:"On days\u2026"}]}),t.trigger.kind==="interval"?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("input",{type:"number",min:1,value:t.trigger.everyMinutes,"aria-label":"Minutes between runs",onChange:O=>B({everyMinutes:Math.max(1,Number(O.target.value)||1)}),style:{...H(),width:80}}),(0,E.jsx)("span",{style:{color:c.muted,fontSize:11},children:"minutes"})]}):(0,E.jsx)("input",{type:"time","aria-label":"Time of day",value:`${String(t.trigger.hour).padStart(2,"0")}:${String(t.trigger.minute).padStart(2,"0")}`,onChange:O=>{let[le,de]=O.target.value.split(":").map(Number);B({hour:le??9,minute:de??0})},style:{...H(),width:110}})]}),t.trigger.kind==="weekly"&&(0,E.jsx)("div",{style:{display:"flex",gap:4,marginBottom:12,flexWrap:"wrap"},children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((O,le)=>{let de=t.trigger.kind==="weekly"&&t.trigger.days.includes(le);return(0,E.jsx)("button",{type:"button","aria-pressed":de,onClick:()=>{if(t.trigger.kind!=="weekly")return;let ct=de?t.trigger.days.filter(wi=>wi!==le):[...t.trigger.days,le];ct.length>0&&B({days:ct})},style:{...$(),fontSize:11,padding:"3px 8px",background:de?c.accent:c.secondaryButtonBackground,color:de?c.accentContrast:c.secondaryButtonForeground},children:O},O)})}),(0,E.jsx)("span",{style:q(),children:"What it may use"}),(0,E.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:"Nothing is ticked to begin with. A tool you do not tick is not offered to the run at all, so a server added later never widens an existing schedule."}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,E.jsx)("input",{type:"text",value:r,spellCheck:!1,"aria-label":"Filter tools",placeholder:"Filter by name or description\u2026",onChange:O=>i(O.target.value),style:{...H(),flex:1,minWidth:140}}),(0,E.jsxs)("button",{type:"button","aria-pressed":l,title:"Show only what this schedule may use",onClick:()=>s(!l),style:{...$(),fontSize:11,background:l?c.accent:c.secondaryButtonBackground,color:l?c.accentContrast:c.secondaryButtonForeground},children:[t.allowedTools.length," selected"]})]}),C.length>0&&Qe.length>0&&(0,E.jsxs)("button",{type:"button",style:{...$(),fontSize:11,marginBottom:8},onClick:()=>ee({allowedTools:[...t.allowedTools,...Qe.map(O=>O.name)]}),children:["Select the ",Qe.length," shown"]}),(0,E.jsxs)("div",{style:{marginBottom:10},children:[(0,E.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginBottom:4},children:"Always available"}),e.tools.filter(O=>O.group==="always").map(O=>(0,E.jsxs)("label",{title:"Always available to every schedule \u2014 it performs no work on the workspace.",style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,opacity:.75},children:[(0,E.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,style:{marginTop:3}}),(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{style:{display:"block",fontFamily:Sa,fontSize:11},children:O.name}),(0,E.jsx)("span",{style:{display:"block",color:c.muted,fontSize:10},children:O.description})]})]},O.name))]}),Je.length===0&&(0,E.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 10px"},children:l?"Nothing selected yet.":`No tool matches "${r.trim()}".`}),[...Ye.entries()].map(([O,le])=>(0,E.jsxs)("div",{style:{marginBottom:10},children:[(0,E.jsx)("span",{style:{display:"block",color:c.muted,fontSize:11,marginBottom:4},children:hO[O]??O}),le.map(de=>(0,E.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,cursor:"pointer"},children:[(0,E.jsx)("input",{type:"checkbox",checked:t.allowedTools.includes(de.name),onChange:()=>jn(de.name),style:{marginTop:3}}),(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{style:{display:"block",fontFamily:Sa,fontSize:11},children:de.name}),(0,E.jsx)("span",{style:{display:"block",color:c.muted,fontSize:10},children:de.description})]})]},de.name))]},O)),(0,E.jsxs)("div",{style:{marginBottom:12},children:[(0,E.jsx)("span",{style:q(),children:"What it should know"}),e.skills.length===0?(0,E.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:["No skills recorded yet. Once there are some \u2014 markdown notes in"," ",(0,E.jsx)("code",{style:{fontFamily:Sa},children:".lightcode/skills/"}),", written from the chat or by hand \u2014 you can pick which of them this run is told about."]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:t.allowedSkills===void 0?(0,E.jsxs)(E.Fragment,{children:["All ",e.skills.length," ",e.skills.length===1?"skill is":"skills are"," ","included. Tick a few to narrow it \u2014 useful when a run only touches one area and the rest is prompt it pays for every time."]}):(0,E.jsxs)(E.Fragment,{children:["Only the ticked skills are put in this run\u2019s prompt. Unlike the chat, a schedule does not search for them \u2014 it may not have ",(0,E.jsx)("code",{children:"search_docs"}),", and nobody is watching if it comes up empty."]})}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,E.jsx)("input",{type:"search",value:o,spellCheck:!1,"aria-label":"Filter skills",placeholder:"Filter by name or description\u2026",onChange:O=>a(O.target.value),style:{...H(),flex:1,minWidth:140}}),(0,E.jsxs)("span",{style:{color:c.muted,fontSize:11},children:[A," of ",e.skills.length," selected"]})]}),(0,E.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:8,flexWrap:"wrap"},children:[t.allowedSkills!==void 0&&(0,E.jsx)("button",{type:"button",style:{...$(),fontSize:11},onClick:()=>{let O={...t};delete O.allowedSkills,n(O)},children:"Include all of them again"}),y.length>0&&b.length>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("button",{type:"button",style:{...$(),fontSize:11},onClick:()=>ee({allowedSkills:[...new Set([...v(),...b.map(O=>O.name)])]}),children:["Tick the ",b.length," shown"]}),(0,E.jsxs)("button",{type:"button",style:{...$(),fontSize:11},onClick:()=>{let O=new Set(b.map(le=>le.name));ee({allowedSkills:v().filter(le=>!O.has(le))})},children:["Untick the ",b.length," shown"]})]})]}),b.length===0&&(0,E.jsxs)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:["No skill matches \u201C",o.trim(),"\u201D."]}),b.map(O=>{let le=t.allowedSkills===void 0||t.allowedSkills.includes(O.name);return(0,E.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,cursor:"pointer"},children:[(0,E.jsx)("input",{type:"checkbox","data-skill":O.name,checked:le,onChange:()=>{let de=v();ee({allowedSkills:le?de.filter(ct=>ct!==O.name):[...de,O.name]})},style:{marginTop:3}}),(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{style:{display:"block",fontFamily:Sa,fontSize:11},children:O.name}),(0,E.jsx)("span",{style:{display:"block",color:c.muted,fontSize:10},children:O.description})]})]},O.name)})]})]}),T.length>0&&(0,E.jsxs)("p",{style:{color:c.error,fontSize:11,border:`1px solid ${c.error}`,borderRadius:8,padding:8,margin:"4px 0 12px"},children:["This schedule can act on its own \u2014 you have allowed ",T.join(" and "),". If anything it reads contains instructions, it may follow them with nobody watching. Grant this only for content you trust."]}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10},children:[(0,E.jsx)("button",{type:"button",style:se(!V),disabled:!V,onClick:()=>e.onSave({...t,name:t.name.trim(),prompt:t.prompt.trim()}),children:"Save"}),(0,E.jsx)("button",{type:"button",style:$(),onClick:e.onCancel,children:"Cancel"})]})]})}var Oe=M(oe(),1),w$=M(he(),1);var lt=M(oe(),1);var Qt=M(he(),1);var ae=M(oe(),1),x$=M(he(),1);function cn(e){return(0,ae.jsxs)("div",{style:{marginBottom:10},children:[(0,ae.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,ae.jsx)("input",{id:e.id,type:"text",value:e.value??"",placeholder:e.placeholder,onChange:t=>e.onChange(t.target.value),style:H()}),e.hint!==void 0&&(0,ae.jsx)("span",{style:{color:c.muted,fontSize:11,display:"block",marginTop:2},children:e.hint})]})}function b$(e){return(0,ae.jsxs)("div",{style:{marginBottom:10},children:[(0,ae.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,ae.jsx)("input",{id:e.id,type:"number",value:e.value??"",placeholder:e.placeholder,onChange:t=>{let n=Number.parseInt(t.target.value,10);e.onChange(Number.isNaN(n)?void 0:n)},style:H()})]})}function yO(e){let[t,n]=(0,x$.useState)(!1);return(0,ae.jsxs)("div",{style:{marginBottom:12},children:[(0,ae.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{background:"transparent",border:"none",color:c.foreground,fontFamily:P,fontSize:12,padding:0,cursor:"pointer"},children:[t?"\u25BE":"\u25B8"," ",e.title]}),t&&(0,ae.jsx)("div",{style:{marginTop:8,paddingLeft:12},children:e.children})]})}function S$(e){let t=r=>e.onApigeeChange({...e.apigee,...r}),n=r=>e.onCertsChange({...e.certs,...r});return(0,ae.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,ae.jsxs)("div",{style:{marginBottom:12},children:[(0,ae.jsx)("label",{htmlFor:"lc-auth-type",style:q(),children:"Authentication"}),(0,ae.jsx)(Ne,{id:"lc-auth-type",value:e.authType,onChange:r=>e.onAuthTypeChange(r),style:{width:"100%"},options:[{value:"apiKey",label:"API key"},{value:"apigeeMtls",label:"Mutual TLS + OAuth (Apigee)"},{value:"none",label:"None"}]})]}),e.authType==="apigeeMtls"&&(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsxs)("div",{style:{marginBottom:12},children:[(0,ae.jsx)("strong",{style:{fontSize:12,color:c.foreground},children:"Client certificate"}),(0,ae.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"4px 0 8px"},children:"Must live outside the workspace \u2014 a repository must not be able to read or replace your key material. Filenames resolve against the directory; absolute paths override it."})]}),(0,ae.jsx)(cn,{id:"lc-cert-dir",label:"Certificate directory",value:e.certs.certDir,placeholder:"C:\\\\Users\\\\you\\\\certs",hint:"Leave blank to use the global certDir from config.",onChange:r=>n({certDir:r})}),(0,ae.jsx)(cn,{id:"lc-cert-file",label:"Certificate file",value:e.certs.certFile,placeholder:"client.crt",onChange:r=>n({certFile:r})}),(0,ae.jsx)(cn,{id:"lc-key-file",label:"Private key file",value:e.certs.keyFile,placeholder:"client.key",onChange:r=>n({keyFile:r})}),(0,ae.jsx)(cn,{id:"lc-pfx-file",label:"PFX bundle (instead of certificate + key)",value:e.certs.pfxFile,placeholder:"client.pfx",hint:"Corporate Windows PKI usually issues a .pfx.",onChange:r=>n({pfxFile:r})}),(0,ae.jsx)(cn,{id:"lc-ca-file",label:"Extra CA bundle",value:e.certs.caFile,placeholder:"corp-root.pem",hint:"Needed when your network intercepts TLS. NODE_EXTRA_CA_CERTS also works.",onChange:r=>n({caFile:r})}),(0,ae.jsx)(pi,{id:"lc-cert-passphrase",label:"Key / PFX passphrase",hasValue:e.hasCertPassphrase,value:e.certPassphrase,onChange:e.onCertPassphraseChange,placeholder:"Leave blank if the key is not encrypted"}),(0,ae.jsx)("div",{style:{marginBottom:12},children:(0,ae.jsx)("strong",{style:{fontSize:12,color:c.foreground},children:"Token endpoint"})}),(0,ae.jsx)(cn,{id:"lc-token-url",label:"Token URL",value:e.apigee.tokenUrl,placeholder:"https://gateway.example.com/oauth/token",hint:"Defaults to the base URL's origin + /oauth/token.",onChange:r=>t({tokenUrl:r})}),(0,ae.jsx)(cn,{id:"lc-client-id",label:"Client ID",value:e.apigee.clientId,onChange:r=>t({clientId:r})}),(0,ae.jsx)(pi,{id:"lc-client-secret",label:"Client secret",hasValue:e.hasClientSecret,value:e.clientSecret,onChange:e.onClientSecretChange,placeholder:"Stored in the OS keychain"}),(0,ae.jsx)(cn,{id:"lc-scope",label:"Scope",value:e.apigee.scope,placeholder:"(optional)",onChange:r=>t({scope:r})}),(0,ae.jsxs)(yO,{title:"Token response and header mapping",children:[(0,ae.jsx)(cn,{id:"lc-grant-type",label:"Grant type",value:e.apigee.grantType,placeholder:"client_credentials",onChange:r=>t({grantType:r})}),(0,ae.jsx)(cn,{id:"lc-token-path",label:"Token path in response",value:e.apigee.tokenPath,placeholder:"access_token",hint:"Dotted path, e.g. data.jwt if your gateway nests it.",onChange:r=>t({tokenPath:r})}),(0,ae.jsx)(cn,{id:"lc-expires-path",label:"Expiry path in response",value:e.apigee.expiresInPath,placeholder:"expires_in",onChange:r=>t({expiresInPath:r})}),(0,ae.jsx)(cn,{id:"lc-token-header",label:"Header name",value:e.apigee.tokenHeaderName,placeholder:"Authorization",onChange:r=>t({tokenHeaderName:r})}),(0,ae.jsx)(cn,{id:"lc-token-prefix",label:"Header prefix",value:e.apigee.tokenHeaderPrefix,placeholder:"Bearer ",onChange:r=>t({tokenHeaderPrefix:r})}),(0,ae.jsx)(b$,{id:"lc-fallback-expiry",label:"Fallback expiry (seconds)",value:e.apigee.fallbackExpirySeconds,placeholder:"3600",onChange:r=>t({...r!==void 0?{fallbackExpirySeconds:r}:{}})}),(0,ae.jsx)(b$,{id:"lc-refresh-skew",label:"Refresh skew (seconds)",value:e.apigee.refreshSkewSeconds,placeholder:"60",onChange:r=>t({...r!==void 0?{refreshSkewSeconds:r}:{}})})]})]}),(0,ae.jsxs)("div",{style:{marginBottom:12,paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,ae.jsx)("strong",{style:{fontSize:12,color:c.foreground},children:"Connection security"}),(0,ae.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"4px 0 8px"},children:"Needed when your network intercepts TLS, which is common on a corporate gateway. This is separate from the client certificate above: it decides whether you trust the server, not how the server identifies you."})]}),(0,ae.jsx)(cn,{id:"lc-connection-ca",label:"Additional CA certificate",value:e.connectionTls.caFile,placeholder:"C:\\\\certs\\\\corp-root.pem",hint:"Only needed if this gateway uses a different root from the one in Settings \u2192 Network. Added to that one and to the built-in roots, never replacing either.",onChange:r=>e.onConnectionTlsChange({...e.connectionTls,caFile:r})}),(0,ae.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,ae.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:e.connectionTls.rejectUnauthorized===!1,onChange:r=>e.onConnectionTlsChange({...e.connectionTls,...r.target.checked?{rejectUnauthorized:!1}:{rejectUnauthorized:void 0}})}),(0,ae.jsx)("span",{style:{color:c.foreground},children:"Skip certificate verification for this profile"})]}),e.connectionTls.rejectUnauthorized===!1&&(0,ae.jsx)("p",{style:{color:c.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can now read and modify it, including your API key, and nothing will detect it. Supplying the CA file above is the safe fix and solves the same problem."})]})}var ht=M(oe(),1);function k$(e){let t=e.value.trim(),n=t.length>0?gv(t,e.capabilities):void 0,r=o=>e.onCapabilitiesChange({...e.capabilities,...o}),i=()=>{let o={...e.capabilities};delete o.contextWindow,e.onCapabilitiesChange(o)};return(0,ht.jsxs)("div",{style:{marginBottom:12},children:[(0,ht.jsx)("label",{htmlFor:"lc-model",style:q(),children:"Model"}),(0,ht.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,ht.jsx)("input",{id:"lc-model",type:"text",value:e.value,placeholder:"gpt-4o-mini",onChange:o=>e.onChange(o.target.value),style:H()}),(0,ht.jsx)("button",{type:"button",style:$(),onClick:e.onRefresh,disabled:e.loading,children:e.loading?"Loading\u2026":"Refresh"})]}),e.models.length>0&&(0,ht.jsx)(Ne,{ariaLabel:"Choose from the gateway's catalogue",value:e.models.includes(e.value)?e.value:"",onChange:o=>{o.length>0&&e.onChange(o)},style:{width:"100%"},options:[{value:"",label:`Choose from ${e.models.length} available model(s)\u2026`},...e.models.map(o=>({value:o,label:o}))]}),e.warning!==void 0&&e.models.length===0&&(0,ht.jsx)("span",{style:{...Pt(),color:c.muted},children:e.warning}),e.error!==void 0&&(0,ht.jsx)("span",{style:Pt(),children:e.error}),n!==void 0&&(0,ht.jsxs)("div",{style:{marginTop:6,padding:8,border:`1px solid ${c.border}`,borderRadius:3},children:[(0,ht.jsx)("div",{style:{color:c.muted,fontSize:11,marginBottom:6},children:n.known?"Capabilities for this model. Edit any of them if your deployment differs.":"Unrecognised model id \u2014 these are conservative guesses. Correct them here."}),(0,ht.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[(0,ht.jsx)("label",{htmlFor:"lc-context-window",style:{...q(),marginBottom:0,flex:1},children:"Context window (tokens)"}),(0,ht.jsx)("input",{id:"lc-context-window",type:"number",min:1,value:e.capabilities.contextWindow??n.contextWindow,onChange:o=>{let a=Number.parseInt(o.target.value,10);Number.isNaN(a)||a<=0?i():r({contextWindow:a})},style:{...H(),width:130,flex:"none"}}),e.capabilities.contextWindow!==void 0&&(0,ht.jsx)("button",{type:"button",style:$(),onClick:i,title:"Use the built-in value",children:"Reset"})]}),(0,ht.jsxs)("div",{style:{display:"flex",gap:16},children:[(0,ht.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:c.foreground},children:[(0,ht.jsx)("input",{type:"checkbox",checked:n.supportsVision,onChange:o=>r({supportsVision:o.target.checked})}),"Accepts images"]}),(0,ht.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:c.foreground},children:[(0,ht.jsx)("input",{type:"checkbox",checked:n.supportsTools,onChange:o=>r({supportsTools:o.target.checked})}),"Supports tool calling"]})]})]})]})}var gi=M(oe(),1);var vO={certificates:"Load certificates",token:"Acquire credential",models:"List models"};function bO(e){return e==="ok"?{glyph:"\u2713",color:"var(--vscode-testing-iconPassed, #3fb950)"}:e==="failed"?{glyph:"\u2715",color:c.error}:{glyph:"\u2013",color:c.muted}}function _$(e){return(0,gi.jsxs)("div",{style:{marginBottom:16,paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,gi.jsx)("button",{type:"button",style:$(),onClick:e.onRun,disabled:e.running,children:e.running?"Testing\u2026":"Test Connection"}),e.result!==void 0&&(0,gi.jsx)("div",{style:{marginTop:8,fontFamily:P,fontSize:12},children:e.result.steps.map(t=>{let n=bO(t.status);return(0,gi.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:4},children:[(0,gi.jsx)("span",{style:{color:n.color,width:12,flexShrink:0},children:n.glyph}),(0,gi.jsxs)("div",{children:[(0,gi.jsx)("div",{style:{color:c.foreground},children:vO[t.step]}),(0,gi.jsx)("div",{style:{color:t.status==="failed"?c.error:c.muted,fontSize:11},children:t.detail})]})]},t.step)})})]})}function ib(e){let[t,n]=(0,Qt.useState)(e.initial.label),[r,i]=(0,Qt.useState)(e.initial.wireFormat),[o,a]=(0,Qt.useState)(e.initial.baseUrl),[l,s]=(0,Qt.useState)(e.initial.model),[u,d]=(0,Qt.useState)(""),[m,h]=(0,Qt.useState)(e.initial.authType),[f,x]=(0,Qt.useState)(e.initial.apigee??{}),[k,N]=(0,Qt.useState)(""),[g,y]=(0,Qt.useState)(e.initial.certs??{}),[b,v]=(0,Qt.useState)(""),[A,ee]=(0,Qt.useState)(e.initial.modelCapabilities??{}),[B,T]=(0,Qt.useState)(e.initial.connectionTls??{}),[V,C]=(0,Qt.useState)([]),[re,Ye]=(0,Qt.useState)(void 0),Je=de=>V.find(ct=>ct.path===de)?.message,Qe=de=>{let ct=ed.find(wi=>wi.id===de);ct!==void 0&&(i(ct.wireFormat),a(ct.baseUrl),t.trim().length===0&&n(ct.label))},jn=()=>({...e.initial.id!==void 0?{id:e.initial.id}:{},label:t,wireFormat:r,baseUrl:o,model:l,authType:m,apiKey:u,...m==="apigeeMtls"?{apigee:f,clientSecret:k,certs:g,certPassphrase:b}:{},...Object.keys(A).length>0?{modelCapabilities:A}:{},...B.caFile!==void 0||B.rejectUnauthorized!==void 0?{connectionTls:B}:{}}),O=()=>{let de=o.trim();if(de===re||de.length===0)return;try{let wi=new URL(de);if(wi.protocol!=="https:"&&wi.protocol!=="http:")return}catch{return}(m==="none"||u.trim().length>0||e.initial.hasApiKey||m==="apigeeMtls")&&(Ye(de),e.onRequestModels(jn()))},le=()=>{let de=pv({label:t,wireFormat:r,baseUrl:o,model:l});C(de),!(de.length>0)&&e.onSave(jn())};return(0,lt.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,lt.jsx)("h3",{style:{margin:"0 0 12px",color:c.foreground},children:e.initial.id===void 0?"Add Provider":"Edit Provider"}),(0,lt.jsxs)("div",{style:{marginBottom:12},children:[(0,lt.jsx)("label",{htmlFor:"lc-preset",style:q(),children:"Preset"}),(0,lt.jsx)(Ne,{id:"lc-preset",value:"",placeholder:"Choose a preset\u2026",onChange:Qe,style:{width:"100%"},options:ed.map(de=>({value:de.id,label:de.label}))})]}),(0,lt.jsxs)("div",{style:{marginBottom:12},children:[(0,lt.jsx)("label",{htmlFor:"lc-label",style:q(),children:"Label"}),(0,lt.jsx)("input",{id:"lc-label",type:"text",value:t,onChange:de=>n(de.target.value),style:H()}),Je("label")!==void 0&&(0,lt.jsx)("span",{style:Pt(),children:Je("label")})]}),(0,lt.jsxs)("div",{style:{marginBottom:12},children:[(0,lt.jsx)("label",{htmlFor:"lc-base-url",style:q(),children:"Base URL"}),(0,lt.jsx)("input",{id:"lc-base-url",type:"text",value:o,placeholder:"https://api.openai.com/v1",onChange:de=>a(de.target.value),onBlur:O,style:H()}),Je("baseUrl")!==void 0&&(0,lt.jsx)("span",{style:Pt(),children:Je("baseUrl")})]}),(0,lt.jsx)(k$,{value:l,onChange:s,models:e.models,...e.modelsWarning!==void 0?{warning:e.modelsWarning}:{},loading:e.modelsLoading,onRefresh:()=>e.onRequestModels(jn()),...Je("model")!==void 0?{error:Je("model")}:{},capabilities:A,onCapabilitiesChange:ee}),m==="apiKey"&&(0,lt.jsx)("div",{onBlur:O,children:(0,lt.jsx)(pi,{id:"lc-api-key",label:"API key",hasValue:e.initial.hasApiKey,value:u,onChange:d})}),(0,lt.jsx)(S$,{authType:m,onAuthTypeChange:h,apigee:f,onApigeeChange:x,clientSecret:k,onClientSecretChange:N,hasClientSecret:e.initial.hasClientSecret,certs:g,onCertsChange:y,certPassphrase:b,onCertPassphraseChange:v,hasCertPassphrase:e.initial.hasCertPassphrase,connectionTls:B,onConnectionTlsChange:T}),(0,lt.jsx)(_$,{running:e.testRunning,...e.testResult!==void 0?{result:e.testResult}:{result:void 0},onRun:()=>e.onTestConnection(jn())}),(0,lt.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,lt.jsx)("button",{type:"button",style:se(!1),onClick:le,children:"Save"}),(0,lt.jsx)("button",{type:"button",style:$(),onClick:e.onCancel,children:"Cancel"})]})]})}function rb(e){let[t,n]=(0,w$.useState)({mode:"closed"}),r=i=>{e.onEditingChange(),n(i)};if(t.mode!=="closed"){let i=t.mode==="edit"?{id:t.profile.id,label:t.profile.label,wireFormat:t.profile.wireFormat,baseUrl:t.profile.baseUrl,model:t.profile.model,authType:t.profile.authType,hasApiKey:t.profile.hasApiKey,hasClientSecret:t.profile.hasClientSecret,hasCertPassphrase:t.profile.hasCertPassphrase,...t.profile.apigee!==void 0?{apigee:t.profile.apigee}:{},...t.profile.certs!==void 0?{certs:t.profile.certs}:{},...t.profile.modelCapabilities!==void 0?{modelCapabilities:t.profile.modelCapabilities}:{},...t.profile.connectionTls!==void 0?{connectionTls:t.profile.connectionTls}:{}}:{label:"",wireFormat:"openai",baseUrl:"",model:"",authType:"apiKey",hasApiKey:!1,hasClientSecret:!1,hasCertPassphrase:!1};return(0,Oe.jsx)(ib,{initial:i,onSave:o=>{e.onSave(o),n({mode:"closed"})},onCancel:()=>n({mode:"closed"}),onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}})}return(0,Oe.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,Oe.jsx)("h3",{style:{margin:0,color:c.foreground},children:"Providers"}),(0,Oe.jsx)(pr,{scope:"user"})]}),e.profiles.length===0&&(0,Oe.jsx)("p",{style:{color:c.muted,fontFamily:P},children:"No providers configured yet. Add one to start chatting."}),e.profiles.map(i=>{let o=i.id===e.activeProfileId,a=e.sharedProfileIds?.includes(i.id)===!0;return(0,Oe.jsxs)("div",{"data-profile":i.id,style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${c.border}`,background:o?c.assistantBubble:"transparent"},children:[(0,Oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,Oe.jsx)("strong",{children:i.label}),o&&(0,Oe.jsx)(pr,{scope:"user"})]}),(0,Oe.jsxs)("div",{style:{color:c.muted,fontSize:12,marginBottom:8},children:[i.baseUrl," \u2014 ",i.model]}),a&&(0,Oe.jsxs)("div",{style:{color:c.muted,fontSize:10,marginBottom:6},children:[(0,Oe.jsx)("span",{style:{...Xe(),fontSize:9,marginRight:5},children:"provided"}),"Set up by an administrator for everyone. Duplicate it to make a copy you can edit with your own key."]}),(0,Oe.jsxs)("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:[!o&&(0,Oe.jsx)("button",{type:"button",title:"Use this profile","aria-label":"Use this profile",style:Se("secondary"),onClick:()=>e.onSetActive(i.id),children:(0,Oe.jsx)(ui,{})}),!a&&(0,Oe.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:Se("secondary"),onClick:()=>r({mode:"edit",profile:i}),children:(0,Oe.jsx)(Q_,{})}),(0,Oe.jsx)("button",{type:"button",title:a?"Copy this into a profile of your own":"Duplicate","aria-label":"Duplicate",style:Se("secondary"),onClick:()=>e.onDuplicate(i.id),children:(0,Oe.jsx)(fr,{})}),!a&&(0,Oe.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...Se("secondary"),color:c.error},onClick:()=>e.onDelete(i.id),children:(0,Oe.jsx)(jt,{})})]})]},i.id)}),(0,Oe.jsx)("button",{type:"button",style:se(!1),onClick:()=>r({mode:"create"}),children:"Add Provider"}),(0,Oe.jsxs)("div",{style:{marginTop:20,paddingTop:12,borderTop:`1px solid ${c.border}`},children:[(0,Oe.jsx)("label",{style:q(),children:"Config file"}),(0,Oe.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,Oe.jsx)("button",{type:"button",style:$(),onClick:e.onExport,children:"Export"}),(0,Oe.jsx)("button",{type:"button",style:$(),onClick:e.onImport,children:"Import"})]})]})]})}var Ee=M(oe(),1),yd=M(he(),1);var ka="#22C55E",z$=[{id:"green",label:"Green",value:ka},{id:"purple",label:"Purple",value:"#A855F7"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"graphite",label:"Graphite",value:"#64748B"}],_a="#D97757",T$=[{id:"coral",label:"Coral",value:_a},{id:"orange",label:"Orange",value:"#F97316"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"purple",label:"Purple",value:"#A855F7"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"graphite",label:"Graphite",value:"#64748B"}];function hd(e){let t=e.trim().replace(/^#/,""),n=t.length===3?t.replace(/./g,r=>r+r):t;if(/^[0-9a-fA-F]{6}$/.test(n))return{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16)}}function pd(e){return hd(e)!==void 0}function ob({r:e,g:t,b:n}){let r=i=>Math.max(0,Math.min(255,Math.round(i))).toString(16).padStart(2,"0");return`#${r(e)}${r(t)}${r(n)}`}function $$(e,t){return t<=1?{r:e.r*t,g:e.g*t,b:e.b*t}:{r:e.r+(255-e.r)*(t-1),g:e.g+(255-e.g)*(t-1),b:e.b+(255-e.b)*(t-1)}}function xO({r:e,g:t,b:n}){let r=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function gd(e){let t=hd(e);return t===void 0?"#ffffff":xO(t)>.35?"#12111a":"#ffffff"}function C$(e,t,n){let r=hd(t)??hd(n);if(r===void 0)return;let i=document.documentElement.style,o=ob(r);i.setProperty(`--lc-${e}`,o),i.setProperty(`--lc-${e}-deep`,ob($$(r,.62))),i.setProperty(`--lc-${e}-bright`,ob($$(r,1.22))),i.setProperty(`--lc-${e}-contrast`,gd(o)),i.setProperty(`--lc-${e}-a12`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.12)`),i.setProperty(`--lc-${e}-a20`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.20)`),i.setProperty(`--lc-${e}-a35`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.35)`)}function ab(e){C$("accent",e,ka)}function lb(e){C$("expert",e,_a)}function E$(e){let[t,n]=(0,yd.useState)(e.value);(0,yd.useEffect)(()=>n(e.value),[e.value]);let r=o=>{n(o),pd(o)&&e.onChange(o)},i=e.value.toLowerCase();return(0,Ee.jsxs)("div",{style:{marginBottom:22},children:[(0,Ee.jsx)("span",{style:q(),children:e.label}),(0,Ee.jsx)("p",{style:{color:c.muted,fontSize:11,margin:"0 0 8px"},children:e.description}),(0,Ee.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginBottom:10},children:e.presets.map(o=>{let a=o.value.toLowerCase()===i;return(0,Ee.jsx)("button",{type:"button",className:"lc-swatch",title:o.label,"aria-label":o.label,"aria-pressed":a,onClick:()=>r(o.value),style:{width:26,height:26,borderRadius:"50%",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",justifyContent:"center",background:o.value,color:gd(o.value)},children:a&&(0,Ee.jsx)(ui,{size:13})},o.id)})}),(0,Ee.jsx)("label",{style:{...q(),marginBottom:4},htmlFor:e.inputId,children:"Or a custom hex colour"}),(0,Ee.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ee.jsx)("input",{id:e.inputId,type:"text",value:t,spellCheck:!1,placeholder:e.fallback,onChange:o=>r(o.target.value),style:{...H(),width:130,fontFamily:"var(--vscode-editor-font-family, monospace)"}}),(0,Ee.jsx)("span",{"aria-hidden":"true",style:{width:26,height:26,borderRadius:8,flexShrink:0,background:pd(t)?t:"transparent",border:`1px solid ${c.border}`}}),!pd(t)&&(0,Ee.jsxs)("span",{style:{color:c.error,fontSize:11,fontFamily:P},children:["Needs a hex colour, e.g. ",e.fallback]})]})]})}function I$(e){let t=e.accentColor.toLowerCase()===e.expertColor.toLowerCase();return(0,Ee.jsxs)("section",{children:[e.onChangeTheme!==void 0&&(0,Ee.jsxs)("div",{style:{marginBottom:16},children:[(0,Ee.jsx)("label",{style:q(),children:"Theme"}),(0,Ee.jsx)("div",{style:{display:"flex",gap:6,marginBottom:4},children:["system","light","dark"].map(n=>{let r=(e.theme??"system")===n;return(0,Ee.jsx)("button",{type:"button",onClick:()=>e.onChangeTheme?.(n),style:{...H(),width:"auto",cursor:"pointer",textTransform:"capitalize",...r?{borderColor:c.accent,color:c.accent,fontWeight:600}:{}},children:n},n)})}),(0,Ee.jsxs)("span",{style:{display:"block",color:c.muted,fontSize:11},children:[(0,Ee.jsx)("strong",{children:"System"})," follows your browser\u2019s appearance setting \u2014 which is the browser\u2019s own, not Windows\u2019. If your browser is pinned to light by policy, choose Dark here instead."]})]}),(0,Ee.jsx)(E$,{label:"Accent colour",description:"Buttons, your messages, selections and focus rings.",value:e.accentColor,presets:z$,fallback:ka,inputId:"lc-accent-hex",onChange:e.onChangeAccent}),(0,Ee.jsx)(E$,{label:"Expert colour",description:"Marks answers that came from Claude rather than from your own model. Kept separate from the accent so the two are told apart at a glance.",value:e.expertColor,presets:T$,fallback:_a,inputId:"lc-expert-hex",onChange:e.onChangeExpert}),t&&(0,Ee.jsx)("p",{style:{color:c.error,fontSize:11,margin:"0 0 14px"},children:"These are the same colour, so expert answers will not stand out. Only the expert mark will tell them apart."}),(0,Ee.jsxs)("div",{style:{borderTop:`1px solid ${c.border}`,paddingTop:12},children:[(0,Ee.jsx)("span",{style:q(),children:"Preview"}),(0,Ee.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,marginTop:6},children:[(0,Ee.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,Ee.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 4px 14px",background:`linear-gradient(135deg, ${e.accentColor}, ${e.accentColor})`,color:gd(e.accentColor),fontSize:12,fontFamily:P},children:"Your message"})}),(0,Ee.jsx)("div",{style:{display:"flex"},children:(0,Ee.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 14px 4px",background:c.assistantBubble,color:c.foreground,fontSize:12,fontFamily:P},children:"The assistant's reply"})}),(0,Ee.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:6,alignSelf:"flex-start",padding:"6px 10px",borderRadius:10,border:`1px solid ${e.expertColor}`,background:c.expertSoft,color:e.expertColor,fontSize:12,fontFamily:P},children:[(0,Ee.jsx)(ln,{size:12}),"Answered by the expert"]})]})]})]})}function sb(e){if(e===void 0)return;if(e.error!==void 0)return`Failed: ${e.error}`;let t=e.indexed??0;return`Indexed ${String(t)} ${t===1?"entry":"entries"}.`}var D$=[{id:"providers",label:"Providers",Icon:lw},{id:"approvals",label:"Approvals",Icon:zv},{id:"mcp",label:"MCP",Icon:sw},{id:"search",label:"Search",Icon:cw},{id:"expert",label:"Expert",Icon:ln},{id:"schedules",label:"Schedules",Icon:gw},{id:"python",label:"Python",Icon:dw},{id:"tools",label:"Tools",Icon:mw},{id:"outlook",label:"Outlook",Icon:hw},{id:"skills",label:"Skills",Icon:pw},{id:"network",label:"Network",Icon:uw},{id:"reviews",label:"Review",Icon:zv},{id:"variables",label:"Variables",Icon:ow},{id:"appearance",label:"Appearance",Icon:aw}];function cb(e){let[t,n]=(0,vd.useState)("providers"),r={variables:e.variables!==void 0,reviews:e.reviews!==void 0},i=D$.filter(l=>r[l.id]??!0),o=i.some(l=>l.id===t)?t:"providers",a=e.requestedTab;return(0,vd.useEffect)(()=>{a!==void 0&&D$.some(l=>l.id===a.tab)&&n(a.tab)},[a]),(0,st.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,st.jsx)("div",{role:"tablist",className:"lc-scroll",style:{display:"flex",borderBottom:`1px solid ${c.border}`,flexShrink:0,overflowX:"auto"},children:i.map(l=>{let s=o===l.id;return(0,st.jsxs)("button",{type:"button",role:"tab","aria-selected":s,className:"lc-tab",title:l.label,"aria-label":l.label,onClick:()=>n(l.id),style:{display:"inline-flex",alignItems:"center",gap:5,padding:s?"8px 10px":"8px 8px",fontFamily:P,fontSize:12,background:"transparent",color:s?c.accent:c.muted,border:"none",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0},children:[(0,st.jsx)(l.Icon,{size:15}),s&&(0,st.jsx)("span",{children:l.label})]},l.id)})}),(0,st.jsx)("div",{className:"lc-scroll lc-panel",style:{flex:1,minHeight:0,overflowY:"auto"},children:o==="reviews"&&e.reviews!==void 0?(0,st.jsx)(u$,{...e.reviews}):o==="variables"&&e.variables!==void 0?(0,st.jsx)(f$,{...e.variables}):o==="appearance"?(0,st.jsx)("div",{style:{padding:12},children:(0,st.jsx)(I$,{accentColor:e.accentColor,onChangeAccent:e.onSetAccentColor,expertColor:e.expertColor,onChangeExpert:e.onSetExpertColor,...e.theme===void 0?{}:{theme:e.theme},...e.choosesTheme===!0&&e.onSetTheme!==void 0?{onChangeTheme:e.onSetTheme}:{}})}):o==="providers"?(0,st.jsx)(rb,{...e.sharedProfileIds!==void 0?{sharedProfileIds:e.sharedProfileIds}:{},profiles:e.profiles,activeProfileId:e.activeProfileId,onSave:e.onSave,onDuplicate:e.onDuplicate,onDelete:e.onDelete,onSetActive:e.onSetActive,onExport:e.onExport,onImport:e.onImport,onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,onEditingChange:e.onEditingChange,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}}):o==="approvals"?(0,st.jsx)(Gv,{approvals:e.approvals,onSetAutoApprove:e.onSetAutoApprove,onRevokeTool:e.onRevokeTool,onRevokeCommand:e.onRevokeCommand,maxIterations:e.maxIterations,onSetMaxIterations:e.onSetMaxIterations,readRoots:e.readRoots,onSetReadRoots:e.onSetReadRoots}):o==="search"?(0,st.jsx)(i$,{...e.search}):o==="schedules"?(0,st.jsx)(v$,{...e.schedules}):o==="skills"?(0,st.jsx)(y$,{...e.skills}):o==="tools"?(0,st.jsx)(c$,{...e.tools}):o==="outlook"?(0,st.jsx)(s$,{...e.outlook,onOpenTools:()=>n("tools")}):o==="python"?(0,st.jsx)(o$,{...e.python}):o==="network"?(0,st.jsx)(r$,{...e.network,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):o==="expert"?(0,st.jsx)(Kw,{expert:e.expert,onSave:e.onSaveExpert,onRecheck:e.onRecheckExpert,onAssess:e.onAssessJunior,onClearAssessment:e.onClearAssessment,onMeasureCost:e.onMeasureCost,onClearPricing:e.onClearPricing,onSetKeepAlive:e.onSetKeepAlive,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):(0,st.jsx)(Jv,{servers:e.mcpServers,json:e.mcpJson,warnings:e.mcpWarnings,saveError:e.mcpSaveError,configs:e.mcpConfigs,platform:e.mcpPlatform,savedTick:e.mcpSavedTick,pythonProbe:e.mcpPythonProbe,onDetectPython:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSaveServer:e.onSaveMcpServer,onDeleteServer:e.onDeleteMcpServer,onDuplicateServer:e.onDuplicateMcpServer,onSave:e.onSaveMcp,onRestart:e.onRestartMcp,onSetServerEnabled:e.onSetMcpServerEnabled,onSetToolPermission:e.onSetMcpToolPermission,onSetToolTimeout:e.onSetMcpToolTimeout,onConnect:e.onConnectMcp,docsIndex:{enabled:e.search.dispatcher.enabled,ready:e.search.dispatcher.retrievalReady,indexing:e.search.dispatcher.indexing,result:sb(e.search.dispatcher.result)},onIndexDocs:()=>e.search.dispatcher.onIndexDocs("tool"),indexProgress:e.tools.progress,onStopIndexing:e.tools.onStopIndexing})},o)]})}var A$=M(oe(),1);function ub(e){let t=sm(e.modeId);return(0,A$.jsx)(Ne,{compact:!0,value:t.id,disabled:e.disabled,title:t.description,ariaLabel:"Mode",onChange:e.onChange,options:hc.map(n=>({value:n.id,label:n.name,...n.requiresExpert===!0&&!e.expertAvailable?{disabled:!0,detail:"needs the expert"}:{}}))})}var pt=M(oe(),1);var j$=M(he(),1);function O$(e){let[t,n]=(0,j$.useState)(0),r=dr[t]??dr[0],i=t===0,o=t===dr.length-1;return(0,pt.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,fontFamily:P,fontSize:13,color:c.foreground},children:[(0,pt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderBottom:`1px solid ${c.border}`,flexShrink:0},children:[(0,pt.jsx)("strong",{style:{fontSize:13},children:r.title}),(0,pt.jsxs)("span",{style:{marginLeft:"auto",color:c.muted,fontSize:11},children:[t+1," of ",dr.length]}),(0,pt.jsx)("button",{type:"button",style:{...$(),fontSize:11},onClick:e.onClose,children:"Close"})]}),(0,pt.jsxs)("div",{className:"lc-scroll",style:{flex:1,minHeight:0,overflowY:"auto",padding:12},children:[e.mediaBase!==void 0&&(0,pt.jsxs)("picture",{children:[(0,pt.jsx)("source",{media:"(prefers-color-scheme: dark)",srcSet:`${e.mediaBase}/${r.id}-dark.svg`}),(0,pt.jsx)("img",{src:`${e.mediaBase}/${r.id}-light.svg`,alt:r.altText,style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",borderRadius:6,border:`1px solid ${c.border}`,marginBottom:12}})]}),r.body.map((a,l)=>(0,pt.jsx)("div",{style:{marginBottom:10,lineHeight:1.5},children:(0,pt.jsx)(ld,{text:a})},l)),r.tab!==void 0&&(0,pt.jsxs)("button",{type:"button",style:{...se(!1),marginTop:4},onClick:()=>e.onOpenTab(r.tab),children:["Open the ",r.tab[0]?.toUpperCase(),r.tab.slice(1)," tab"]}),r.tab===void 0&&r.opensPanel===!0&&(0,pt.jsx)("button",{type:"button",style:{...$(),marginTop:4},onClick:e.onClose,children:"Back to the chat"})]}),(0,pt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderTop:`1px solid ${c.border}`,flexShrink:0},children:[(0,pt.jsx)("button",{type:"button",style:$(),disabled:i,onClick:()=>n(a=>Math.max(0,a-1)),children:"Back"}),(0,pt.jsx)("div",{style:{display:"flex",gap:4,flex:1,justifyContent:"center",flexWrap:"wrap"},children:dr.map((a,l)=>(0,pt.jsx)("button",{type:"button","aria-label":a.title,title:a.title,onClick:()=>n(l),style:{width:7,height:7,padding:0,borderRadius:"50%",border:"none",cursor:"pointer",background:l===t?c.accent:c.border}},a.id))}),o?(0,pt.jsx)("button",{type:"button",style:se(!1),onClick:e.onClose,children:"Done"}):(0,pt.jsx)("button",{type:"button",style:se(!1),onClick:()=>n(a=>Math.min(dr.length-1,a+1)),children:"Next"})]})]})}var Ut=M(oe(),1),U$=M(he(),1);function SO(e,t=Date.now()){let n=Math.max(0,Math.round((t-e)/1e3));if(n<60)return"just now";let r=Math.round(n/60);if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let o=Math.round(i/24);return o<=7?`${o}d ago`:new Date(e).toLocaleDateString()}function N$(e){let[t,n]=(0,U$.useState)(void 0);return(0,Ut.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Ut.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,Ut.jsx)("h3",{style:{margin:0,color:c.foreground},children:"History"}),(0,Ut.jsx)("button",{type:"button",style:{...se(!1),marginLeft:"auto"},onClick:e.onNew,children:"New task"})]}),e.tasks.length===0&&(0,Ut.jsx)("p",{style:{color:c.muted,fontFamily:P},children:"No past tasks in this workspace yet. Conversations are saved automatically as you go."}),e.tasks.map(r=>{let i=r.id===e.activeTaskId,o=r.id===t;return(0,Ut.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${i?c.accent:c.border}`,background:i?c.assistantBubble:"transparent"},children:[(0,Ut.jsx)("div",{style:{color:c.foreground,marginBottom:4,wordBreak:"break-word"},children:r.title}),(0,Ut.jsxs)("div",{style:{color:c.muted,fontSize:11,marginBottom:8},children:[SO(r.updatedAt)," \xB7 ",r.messageCount," message",r.messageCount===1?"":"s",i?" \xB7 current":""]}),o?(0,Ut.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,Ut.jsx)("span",{style:{color:c.muted,fontSize:11},children:"Delete this task and its saved output?"}),(0,Ut.jsx)("button",{type:"button",style:{...$(),color:c.error},onClick:()=>{n(void 0),e.onDelete(r.id)},children:"Delete"}),(0,Ut.jsx)("button",{type:"button",style:$(),onClick:()=>n(void 0),children:"Cancel"})]}):(0,Ut.jsxs)("div",{style:{display:"flex",gap:6},children:[!i&&(0,Ut.jsx)("button",{type:"button",style:$(),onClick:()=>e.onOpen(r.id),children:"Open"}),(0,Ut.jsx)("button",{type:"button",style:$(),onClick:()=>n(r.id),children:"Delete"})]})]},r.id)})]})}function wa(e){let t=e.map(r=>r.kind==="reasoning"&&r.pending===!0?{kind:"reasoning",content:r.content}:r),n=t[t.length-1];return n===void 0||n.kind!=="text"||!n.pending?t:[...t.slice(0,-1),{kind:"text",role:n.role,content:n.content,...n.expertInformed===!0?{expertInformed:!0}:{}}]}function db(e){let[t,n]=(0,F.useState)("chat"),[r,i]=(0,F.useState)(),[o,a]=(0,F.useState)({native:!0}),[l,s]=(0,F.useState)(),[u,d]=(0,F.useState)(),[m,h]=(0,F.useState)(),[f,x]=(0,F.useState)(!1),[k,N]=(0,F.useState)(),[g,y]=(0,F.useState)([]),[b,v]=(0,F.useState)(!1),[A,ee]=(0,F.useState)(void 0),[B,T]=(0,F.useState)([]),[V,C]=(0,F.useState)(void 0),[re,Ye]=(0,F.useState)(!1),[Je,Qe]=(0,F.useState)(void 0),[jn,O]=(0,F.useState)(void 0),[le,de]=(0,F.useState)(!1),[ct,wi]=(0,F.useState)(lm),[x6,S6]=(0,F.useState)({}),[k6,_6]=(0,F.useState)(25),[w6,H1]=(0,F.useState)(ka),[$6,z6]=(0,F.useState)([]),[T6,G1]=(0,F.useState)(_a),[On,C6]=(0,F.useState)({usd:0,consultations:0,unpriced:0,maxSpendUsd:0,maxConsultations:0,overridden:!1}),[Hr,Xf]=(0,F.useState)({enabled:!0,hiddenTools:0,skills:!0,hiddenSkills:0}),[Kf,sc]=(0,F.useState)(!1),[E6,I6]=(0,F.useState)([]),[cc,Y1]=(0,F.useState)({}),[uc,pl]=(0,F.useState)({}),er=S=>Y1(X=>{let p={...X};return delete p[S],p}),[Gr,Eo]=(0,F.useState)(void 0),[D6,A6]=(0,F.useState)([]),[j6,O6]=(0,F.useState)(`{
136
136
  "mcpServers": {}
137
- }`),[s6,u6]=(0,F.useState)({}),[d6,E1]=(0,F.useState)(void 0),[f6,m6]=(0,F.useState)({}),[p6,h6]=(0,F.useState)("posix"),[g6,v6]=(0,F.useState)(0),[D1,I1]=(0,F.useState)(void 0),[y6,b6]=(0,F.useState)(void 0),[x6,A1]=(0,F.useState)([]),[j1,jf]=(0,F.useState)(void 0),[S6,Of]=(0,F.useState)(!1),[k6,Uf]=(0,F.useState)(!1),[O1,Nf]=(0,F.useState)(void 0),[_6,w6]=(0,F.useState)([]),[$6,U1]=(0,F.useState)(void 0),[z6,T6]=(0,F.useState)(void 0),[C6,E6]=(0,F.useState)(!1),[Rf,D6]=(0,F.useState)(!1),[I6,N1]=(0,F.useState)(void 0),[R1,A6]=(0,F.useState)(void 0),[M1,j6]=(0,F.useState)([]),[O6,U6]=(0,F.useState)([]),[Mf,N6]=(0,F.useState)([]),[Hc,R6]=(0,F.useState)(void 0),[M6,B6]=(0,F.useState)([]),[B1,Z6]=(0,F.useState)(void 0),[Z1,L1]=(0,F.useState)(void 0),[L6,P6]=(0,F.useState)(0),[P1,F1]=(0,F.useState)(void 0),[V1,F6]=(0,F.useState)(void 0),[V6,q1]=(0,F.useState)(void 0),[q6,H1]=(0,F.useState)(void 0),[H6,G1]=(0,F.useState)([]),[G6,Y1]=(0,F.useState)(void 0),[Y6,J1]=(0,F.useState)(!1),[J6,X6]=(0,F.useState)(0),[K6,Q6]=(0,F.useState)(void 0),[W6,eC]=(0,F.useState)(void 0),[tC,nC]=(0,F.useState)([]),[iC,rC]=(0,F.useState)([]),[oC,aC]=(0,F.useState)(void 0),[lC,cC]=(0,F.useState)([]),[sC,uC]=(0,F.useState)([]),[dC,fC]=(0,F.useState)([]),[Bf,X1]=(0,F.useState)({choosesTheme:!1}),[mC,pC]=(0,F.useState)({workspaceOpen:!1,overridden:[]}),[hC,K1]=(0,F.useState)({tools:[],dispatcher:!1,office:{supported:!1,excel:!1,outlook:!1}}),[gC,vC]=(0,F.useState)(void 0),[yC,bC]=(0,F.useState)(void 0),[xC,SC]=(0,F.useState)([]),[kC,_C]=(0,F.useState)("");(0,F.useEffect)(()=>{let S=e.transport.onMessage(ee=>{let b=ee;b.type==="textChunk"?h(Te=>{let Ft=Te[Te.length-1],yi={kind:"text",role:"assistant",content:b.text,pending:!0,...b.expertInformed===!0?{expertInformed:!0}:{}};return Ft?.kind==="text"&&Ft.role==="assistant"&&Ft.pending?[...Te.slice(0,-1),yi]:[...Te,yi]}):b.type==="reasoningChunk"?h(Te=>{let Ft=Te.findIndex(Wa=>Wa.kind==="reasoning"&&Wa.pending===!0),yi={kind:"reasoning",content:b.text,pending:!0};return Ft===-1?[...Te,yi]:[...Te.slice(0,Ft),yi,...Te.slice(Ft+1)]}):b.type==="toolCall"?h(Te=>[...ca(Te),{kind:"tool",toolCall:b.toolCall,...b.expertInformed===!0?{expertInformed:!0}:{}}]):b.type==="toolResult"?h(Te=>{let Ft={kind:"tool",toolCall:b.toolCall,...b.expertInformed===!0?{expertInformed:!0}:{}},yi=Te.findIndex(Wa=>Wa.kind==="tool"&&Wa.toolCall.id===b.toolCall.id);return yi===-1?[...Te,Ft]:[...Te.slice(0,yi),Ft,...Te.slice(yi+1)]}):b.type==="formRequest"?(h(ca),O(b)):b.type==="approvalRequest"?(h(ca),Qe({id:b.id,toolName:b.toolName,group:b.group,preview:b.preview,...b.alwaysScope===void 0?{}:{alwaysScope:b.alwaysScope}})):b.type==="openSettings"?(e.transport.post({type:"requestProfiles"}),i({tab:b.tab,nonce:Date.now()}),n("settings")):b.type==="hostRole"?Z({role:b.role,shared:b.shared,displayName:b.displayName,sharedProfileIds:b.sharedProfileIds}):b.type==="reviews"?d({items:b.items,canDecide:b.canDecide}):b.type==="variables"?c({user:b.user,admin:b.admin,resolved:b.resolved,adminIds:b.adminIds,canEditAdmin:b.canEditAdmin}):b.type==="settings"?(vi(b.modeId),p(b.programmingProfileId),x(b.allowProgrammingProfile),X1({choosesTheme:b.choosesTheme===!0,...b.theme===void 0?{}:{theme:b.theme}}),a({native:b.nativeGuide,...b.guideMediaBase!==void 0?{mediaBase:b.guideMediaBase}:{}}),G2(b.approvals),J2(b.maxIterations),$1(b.accentColor),Q2(b.readRoots),z1(b.expertColor),Ly(b.accentColor),Py(b.expertColor)):b.type==="mcp"?(a6(b.servers),c6(b.json),u6(b.warnings),m6(b.configs),h6(b.platform),E1(void 0)):b.type==="mcpSaveError"?E1(b.message):b.type==="checkpointAvailable"?ce(!0):b.type==="rolledBack"?ce(!1):b.type==="done"?(h(ca),Qe(void 0),v(!1)):b.type==="error"?(h(ca),Qe(void 0),X(b.message),v(!1)):b.type==="profiles"?(T(b.profiles),z(b.activeProfileId),Ge(!0)):b.type==="profileSaved"?n("chat"):b.type==="models"?(A1(b.models),jf(b.warning),Of(!1)):b.type==="testConnectionResult"?(Nf({ok:b.ok,steps:b.steps}),Uf(!1)):b.type==="contextUsage"?T6(b.usage):b.type==="compacted"?h(Te=>[...Te,{kind:"text",role:"assistant",content:`[${b.summarisedCount} earlier messages were summarised to stay within the context window. The full transcript is still saved.]`}]):b.type==="search"?(N6(b.connections),R6(b.activeConnectionId)):b.type==="searchIndexes"?(B6(b.indexes),Z6(b.warning)):b.type==="searchTestResult"?L1({ok:b.ok,detail:b.detail}):b.type==="queued"?U6(b.messages):b.type==="queuedMessageConsumed"?h(Te=>[...ca(Te),{kind:"text",role:"user",content:b.text}]):b.type==="mentionCandidates"?j6(b.paths):b.type==="capabilities"?E6(b.supportsVision):b.type==="pathPicked"?I1({purpose:b.purpose,path:b.path}):b.type==="pythonEnvProbe"?b6({...b.interpreter!==void 0?{interpreter:b.interpreter}:{},...b.venvDir!==void 0?{venvDir:b.venvDir}:{},detail:b.detail}):b.type==="tools"?K1(b):b.type==="schedules"?(fC(b.skills),cC(b.schedules),uC(b.tools),bC(b.runningId),vC(b.scheduler)):b.type==="searchLog"?n6(b.entries):b.type==="searchProbe"?(C1(!1),Af({query:b.query,text:b.text,...b.error!==void 0?{error:b.error}:{}})):b.type==="dispatcher"?If({enabled:b.enabled,hiddenTools:b.hiddenTools,skills:b.skills,hiddenSkills:b.hiddenSkills,...b.docsIndex!==void 0?{docsIndex:b.docsIndex}:{}}):b.type==="projectSettings"?pC(b):b.type==="docsIndexed"?(Vc(!1),qc({...b.indexed!==void 0?{indexed:b.indexed}:{},...b.index!==void 0?{index:b.index}:{},...b.error!==void 0?{error:b.error}:{}})):b.type==="expertSpend"?e6({usd:b.usd,consultations:b.consultations,unpriced:b.unpriced,...b.usage!==void 0?{usage:b.usage}:{},...b.exhausted!==void 0?{exhausted:b.exhausted}:{},maxSpendUsd:b.maxSpendUsd,maxConsultations:b.maxConsultations,overridden:b.overridden,...b.estimate!==void 0?{estimate:b.estimate}:{}}):b.type==="mcpServerSaved"?v6(Te=>Te+1):b.type==="embedder"?F6({...b.profileId!==void 0?{profileId:b.profileId}:{},...b.model!==void 0?{model:b.model}:{},...b.dimensions!==void 0?{dimensions:b.dimensions}:{},...b.indexName!==void 0?{indexName:b.indexName}:{},...b.indexNameIsCustom!==void 0?{indexNameIsCustom:b.indexNameIsCustom}:{},...b.indexPrefix!==void 0?{indexPrefix:b.indexPrefix}:{},defaultIndexPrefix:b.defaultIndexPrefix,indexedFiles:b.indexedFiles}):b.type==="skills"?(nC(b.skills),rC(b.issues),aC(b.skillsDir),SC(b.extraDirs)):b.type==="python"?(Q6(b.status),eC(b.settings)):b.type==="embedderModels"?(G1(b.models),Y1(b.warning),J1(!1)):b.type==="embedderSaved"?X6(Te=>Te+1):b.type==="indexProgress"?q1(b.progress):b.type==="indexResult"?(q1(void 0),H1({...b.result!==void 0?{result:b.result}:{},...b.error!==void 0?{error:b.error}:{}})):b.type==="storeSync"?F1({running:b.running,...b.copied!==void 0?{copied:b.copied}:{},...b.error!==void 0?{error:b.error}:{},...b.fromLabel!==void 0?{fromLabel:b.fromLabel}:{}}):b.type==="searchConnectionSaved"?P6(Te=>Te+1):b.type==="network"?A6(b.settings):b.type==="expert"?(N1(b),D6(b.enabled&&b.available)):b.type==="tasks"?(w6(b.tasks),U1(b.activeTaskId)):b.type==="taskRestored"&&(h(b.entries),U1(b.taskId),X(void 0),Qe(void 0),v(!1),ce(!1))});return e.transport.post({type:"requestProfiles"}),e.transport.post({type:"requestSettings"}),e.transport.post({type:"requestMcp"}),e.transport.post({type:"requestExpert"}),e.transport.post({type:"requestSearch"}),e.transport.post({type:"requestProjectSettings"}),e.transport.post({type:"requestNetwork"}),e.transport.post({type:"requestPython"}),e.transport.post({type:"requestSkills"}),e.transport.post({type:"requestSchedules"}),e.transport.post({type:"requestTools"}),e.transport.post({type:"requestVariables"}),e.transport.post({type:"requestReviews"}),S},[e.transport]);let Q1=()=>{let S={type:"requestProfiles"};e.transport.post(S),n("settings")},wC=(S,ee)=>{if(y){e.transport.post({type:"queueMessage",text:S});return}X(void 0);let b=ee.length>0?`${S}${S.length>0?`
138
- `:""}[${ee.length} image(s) attached]`:S;h(Ft=>[...Ft,{kind:"text",role:"user",content:b}]),v(!0);let Te=ee.length>0?{type:"sendMessage",text:S,images:ee}:{type:"sendMessage",text:S};e.transport.post(Te)},$C=S=>{e.transport.post({type:"unqueueMessage",index:S})},W1=S=>{e.transport.post({type:"requestMentionCandidates",query:S})},zC=()=>{let S={type:"cancel"};e.transport.post(S)},TC=(S,ee)=>{Qe(void 0),e.transport.post({type:"approvalResponse",id:S,decision:ee})},CC=(S,ee)=>{Qe(void 0),e.transport.post({type:"approvalResponseAlways",id:S,scope:ee})},EC=S=>{vi(S),e.transport.post({type:"setMode",modeId:S})},DC=(S,ee)=>{e.transport.post({type:"setAutoApprove",group:S,enabled:ee})},IC=S=>{e.transport.post({type:"revokeAllowedTool",toolName:S})},AC=S=>{e.transport.post({type:"revokeAllowedCommand",command:S})},jC=()=>{e.transport.post({type:"requestTasks"}),n("history")},OC=S=>{e.transport.post({type:"openTask",id:S}),n("chat")},e0=()=>{e.transport.post({type:"newTask"}),n("chat")},UC=S=>{e.transport.post({type:"deleteTask",id:S})},NC=S=>{Of(!0),jf(void 0),e.transport.post({type:"requestModels",profile:S})},RC=S=>{Uf(!0),Nf(void 0),e.transport.post({type:"testConnection",profile:S})},MC=()=>{A1([]),jf(void 0),Of(!1),Nf(void 0),Uf(!1)},BC={connections:Mf,activeConnectionId:Hc,indexes:M6,...B1!==void 0?{indexesWarning:B1}:{},...Z1!==void 0?{testResult:Z1}:{},savedTick:L6,onSave:S=>{X(void 0),e.transport.post({type:"saveSearchConnection",connection:S})},onDelete:S=>e.transport.post({type:"deleteSearchConnection",id:S}),onSyncFrom:S=>{F1({running:!0}),e.transport.post({type:"syncVectorStore",fromId:S})},...P1!==void 0?{sync:P1}:{},onSetActive:(S,ee)=>e.transport.post({type:"setActiveSearchConnection",id:S,...ee===!0?{forProject:!0}:{}}),project:mC,onClearProject:()=>e.transport.post({type:"clearProjectSettings"}),onListIndexes:S=>e.transport.post({type:"requestSearchIndexes",connection:S}),onTest:S=>{L1(void 0),e.transport.post({type:"testSearchConnection",connection:S})},indexing:{embedder:V1,profiles:L,connectionLabel:Mf.find(S=>S.id===Hc)?.label,progress:V6,lastResult:q6,models:H6,modelsWarning:G6,modelsLoading:Y6,savedTick:J6,onRequestModels:S=>{G1([]),Y1(void 0),J1(!0),e.transport.post({type:"requestEmbedderModels",profileId:S})},onSaveEmbedder:(S,ee,b,Te,Ft)=>{X(void 0),e.transport.post({type:"saveEmbedder",profileId:S,model:ee,dimensions:b,...Te.length>0?{indexName:Te}:{},...Ft.length>0?{indexPrefix:Ft}:{}})},onStartIndexing:()=>{H1(void 0),e.transport.post({type:"startIndexing"})},onCancelIndexing:()=>e.transport.post({type:"cancelIndexing"})},dispatcher:{enabled:po.enabled,hiddenTools:po.hiddenTools,skills:po.skills,hiddenSkills:po.hiddenSkills,...po.docsIndex!==void 0?{docsIndex:po.docsIndex}:{},indexing:T1,...ho!==void 0?{result:ho}:{},retrievalReady:Hc!==void 0&&V1?.model!==void 0,onToggle:S=>{If(ee=>({...ee,enabled:S})),e.transport.post({type:"setDispatcher",enabled:S})},onToggleSkills:S=>{If(ee=>({...ee,skills:S})),e.transport.post({type:"setSkillRetrieval",enabled:S})},onIndexDocs:S=>{qc(void 0),Vc(!0),e.transport.post({type:"indexDocs",...S===void 0?{}:{kind:S}})},onClearDocsIndex:()=>{qc(void 0),Vc(!0),e.transport.post({type:"clearDocsIndex"})}},activity:{entries:t6,probe:i6,probeRunning:r6,onProbe:(S,ee)=>{Af(void 0),C1(!0),e.transport.post({type:"runSearchProbe",query:S,target:ee})},onClear:()=>e.transport.post({type:"clearSearchLog"}),onClearProbe:()=>Af(void 0)}},ZC=(S,ee,b,Te)=>{e.transport.post({type:"setExpert",enabled:S,...ee.length>0?{path:ee}:{},...b.length>0?{model:b}:{},maxSpendUsd:Te.maxSpendUsd,maxConsultations:Te.maxConsultations})},LC=(S,ee,b)=>{X(void 0),e.transport.post({type:"saveMcpServer",name:S,...ee!==void 0?{previousName:ee}:{},config:b})},t0=S=>{e.transport.post({type:"openManagedFile",path:S})},n0=S=>{I1(void 0),e.transport.post({type:"browseForPath",...S})},PC=(S,ee)=>{e.transport.post({type:"probePythonEnv",venvDir:S,script:ee})},FC=S=>{e.transport.post({type:"deleteMcpServer",name:S})},VC=S=>{e.transport.post({type:"saveMcpServers",json:S})},qC=S=>{e.transport.post({type:"restartMcpServer",name:S})},HC=(S,ee)=>{e.transport.post({type:"setMcpServerEnabled",name:S,enabled:ee})},GC=S=>{e.transport.post({type:"connectMcpServer",name:S})},YC=(S,ee,b)=>{e.transport.post({type:"setMcpToolPermission",server:S,tool:ee,permission:b})},JC=()=>{e.transport.post({type:"rollback"})},XC=S=>{e.transport.post({type:"saveProfile",profile:S})},KC=S=>{e.transport.post({type:"duplicateProfile",id:S})},QC=S=>{e.transport.post({type:"deleteProfile",id:S})},i0=S=>{e.transport.post({type:"setActiveProfile",id:S})},WC=()=>{e.transport.post({type:"exportConfig"})},eE=()=>{e.transport.post({type:"importConfig"})},tE=W&&L.length===0;return(0,Oe.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh",boxSizing:"border-box",background:s.background,color:s.foreground,fontFamily:B,fontSize:13},children:[(0,Oe.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",borderBottom:`1px solid ${s.border}`,flexShrink:0},children:[(0,Oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Oe.jsx)("strong",{children:"Light Code"}),t==="chat"&&(0,Oe.jsx)(zy,{modeId:lt,disabled:y,onChange:EC,expertAvailable:Rf}),t==="chat"&&(0,Oe.jsx)(gw,{enabled:Rf,modeId:lt,usd:Dn.usd,consultations:Dn.consultations,maxSpendUsd:Dn.maxSpendUsd,maxConsultations:Dn.maxConsultations,overridden:Dn.overridden,...Dn.estimate!==void 0?{estimate:Dn.estimate}:{},...Dn.usage!==void 0?{usage:Dn.usage}:{},...Dn.exhausted!==void 0?{exhausted:Dn.exhausted}:{},onSetLimits:S=>e.transport.post({type:"setTaskExpertLimits",...S})})]}),t==="chat"?(0,Oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:2},children:[(0,Oe.jsx)("button",{type:"button","aria-label":"New task",title:"New task",style:be("ghost",y),disabled:y,onClick:e0,children:(0,Oe.jsx)(A_,{})}),(0,Oe.jsx)("button",{type:"button","aria-label":"History",title:"History",style:be("ghost"),onClick:jC,children:(0,Oe.jsx)(I_,{})}),(0,Oe.jsx)("button",{type:"button","aria-label":"Settings",title:"Settings",style:be("ghost"),onClick:Q1,children:(0,Oe.jsx)(j_,{})}),(0,Oe.jsx)("button",{type:"button","aria-label":"Guide",title:"Open the guide",style:be("ghost"),onClick:()=>{if(o.native){e.transport.post({type:"openWalkthrough"});return}n("guide")},children:(0,Oe.jsx)(P_,{})})]}):(0,Oe.jsx)("button",{type:"button","aria-label":"Back",title:"Back",style:be("ghost"),onClick:()=>n("chat"),children:(0,Oe.jsx)(z_,{})})]}),j!==void 0&&t!=="chat"&&(0,Oe.jsxs)("div",{role:"alert",style:{margin:"8px 12px 0",padding:"8px 10px",fontSize:12,borderRadius:4,display:"flex",alignItems:"flex-start",gap:8,color:"var(--vscode-inputValidation-errorForeground, var(--vscode-foreground))",background:"var(--vscode-inputValidation-errorBackground, transparent)",border:"1px solid var(--vscode-inputValidation-errorBorder, var(--vscode-errorForeground))"},children:[(0,Oe.jsx)("span",{style:{flex:1},children:j}),(0,Oe.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>X(void 0),style:{background:"transparent",border:"none",color:"inherit",cursor:"pointer",padding:0},children:"\u2715"})]}),(0,Oe.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:t==="guide"?(0,Oe.jsx)(bw,{...o.mediaBase!==void 0?{mediaBase:o.mediaBase}:{},onClose:()=>n("chat"),onOpenTab:S=>{e.transport.post({type:"requestProfiles"}),i({tab:S,nonce:Date.now()}),n("settings")}}):t==="settings"?(0,Oe.jsx)(Fy,{...r!==void 0?{requestedTab:r}:{},profiles:L,activeProfileId:Q,onSave:XC,onDuplicate:KC,onDelete:QC,onSetActive:i0,onExport:WC,onImport:eE,..._!==void 0?{sharedProfileIds:_.sharedProfileIds}:{},onRequestModels:NC,onTestConnection:RC,onEditingChange:MC,models:x6,...j1!==void 0?{modelsWarning:j1}:{},modelsLoading:S6,testRunning:k6,...O1!==void 0?{testResult:O1}:{},approvals:H2,onSetAutoApprove:DC,onRevokeTool:IC,onRevokeCommand:AC,maxIterations:Y2,readRoots:K2,onSetReadRoots:S=>e.transport.post({type:"setReadRoots",roots:S}),accentColor:X2,onSetAccentColor:S=>{$1(S),Ly(S),e.transport.post({type:"setAccentColor",value:S})},expertColor:W2,onSetExpertColor:S=>{z1(S),Py(S),e.transport.post({type:"setExpertColor",value:S})},...Bf.choosesTheme?{choosesTheme:!0}:{},...Bf.theme===void 0?{}:{theme:Bf.theme},onSetTheme:S=>{X1(ee=>({...ee,theme:S})),e.transport.post({type:"setTheme",theme:S})},onSetMaxIterations:S=>e.transport.post({type:"setMaxIterations",value:S}),mcpServers:o6,mcpJson:l6,mcpWarnings:s6,mcpSaveError:d6,mcpConfigs:f6,mcpPlatform:p6,mcpSavedTick:g6,mcpPythonProbe:y6,onDetectPython:PC,onBrowse:n0,pickedPath:D1,onSaveMcpServer:LC,onDeleteMcpServer:FC,onDuplicateMcpServer:S=>e.transport.post({type:"duplicateMcpServer",name:S}),onSaveMcp:VC,onRestartMcp:qC,onSetMcpServerEnabled:HC,onSetMcpToolPermission:YC,onSetMcpToolTimeout:(S,ee,b)=>e.transport.post({type:"setMcpToolTimeout",server:S,tool:ee,...b===void 0?{}:{seconds:b}}),onConnectMcp:GC,expert:I6,onSaveExpert:ZC,onAssessJunior:()=>e.transport.post({type:"assessJunior"}),onMeasureCost:()=>e.transport.post({type:"measureExpertCost"}),onClearPricing:()=>e.transport.post({type:"clearExpertPricing"}),onSetKeepAlive:S=>e.transport.post({type:"setExpertKeepAlive",enabled:S}),onClearAssessment:()=>e.transport.post({type:"clearAssessment"}),onRecheckExpert:()=>{N1(void 0),e.transport.post({type:"requestExpert"})},search:BC,skills:{skills:tC,issues:iC,skillsDir:oC,extraDirs:xC,configuredDir:kC,onOpenFile:t0,onOpenStandingSkill:()=>e.transport.post({type:"openStandingSkill"}),onReindex:()=>{qc(void 0),Vc(!0),e.transport.post({type:"indexDocs",kind:"skill"})},indexing:T1,indexResult:ho===void 0?void 0:ho.error!==void 0?`Failed: ${ho.error}`:`Indexed ${String(ho.indexed??0)} entries.`,onDelete:S=>e.transport.post({type:"deleteSkillFile",name:S}),onSaveDirs:(S,ee)=>{_C(S),e.transport.post({type:"saveSkillDirs",dir:S,paths:ee})}},schedules:{schedules:lC,tools:sC,skills:dC,runningId:yC,onSave:S=>e.transport.post({type:"saveSchedule",schedule:S}),onDelete:S=>e.transport.post({type:"deleteSchedule",id:S}),onDuplicate:S=>e.transport.post({type:"duplicateSchedule",id:S}),onToggle:(S,ee)=>e.transport.post({type:"setScheduleEnabled",id:S,enabled:ee}),onRunNow:S=>e.transport.post({type:"runScheduleNow",id:S}),mentionCandidates:M1,onQueryMentions:W1,onOpenReport:S=>e.transport.post({type:"openManagedFile",path:S}),onOpenRun:(S,ee)=>e.transport.post({type:"openScheduleRun",taskId:S,title:ee}),scheduler:gC,onRestartScheduler:()=>e.transport.post({type:"restartScheduler"}),onDeleteRun:(S,ee)=>e.transport.post({type:"deleteScheduleRun",id:S,at:ee}),onClearRuns:S=>e.transport.post({type:"clearScheduleRuns",...S===void 0?{}:{id:S}})},tools:{...hC,onSetOffice:(S,ee)=>{K1(b=>({...b,office:{...b.office,excel:S,outlook:ee}})),e.transport.post({type:"setOffice",excel:S,outlook:ee})}},...u!==void 0?{reviews:{...u,onDecide:(S,ee,b)=>e.transport.post({type:"decideReview",id:S,approved:ee,...b!==void 0?{reason:b}:{}})}}:{},...l!==void 0?{variables:{...l,onSaveUser:S=>e.transport.post({type:"saveUserVariables",variables:S}),onSaveAdmin:S=>e.transport.post({type:"saveAdminVariables",variables:S}),onSaveAdminIds:S=>e.transport.post({type:"saveAdminIds",ids:S})}}:{},python:{...f?{programming:{profiles:L.map(S=>({id:S.id,label:S.label})),selectedId:m,onSelect:S=>e.transport.post({type:"setProgrammingProfile",id:S})}}:{},status:K6,settings:W6,onBrowse:n0,pickedPath:D1,onOpenFile:t0,onDeleteTool:S=>e.transport.post({type:"deletePythonTool",name:S}),onApproveTool:S=>e.transport.post({type:"approvePythonTool",name:S}),onSave:S=>e.transport.post({type:"setPython",dynamicTools:S.dynamicTools,...S.uvPath.length>0?{uvPath:S.uvPath}:{},...S.toolsDir.length>0?{toolsDir:S.toolsDir}:{},timeoutSeconds:S.timeoutSeconds,...S.indexUrl.length>0?{indexUrl:S.indexUrl}:{},offline:S.offline})},network:{...R1!==void 0?{settings:R1}:{settings:void 0},onSave:S=>e.transport.post({type:"saveNetwork",settings:S})}}):t==="history"?(0,Oe.jsx)(c$,{tasks:_6,activeTaskId:$6,onOpen:OC,onDelete:UC,onNew:e0}):tE?(0,Oe.jsxs)("div",{style:{padding:20,textAlign:"center"},children:[(0,Oe.jsx)("p",{style:{color:s.muted},children:"No provider configured yet."}),(0,Oe.jsx)("button",{type:"button",style:me(!1),onClick:Q1,children:"Configure a Provider"})]}):(0,Oe.jsx)($y,{messages:g,isStreaming:y,error:j,pendingApproval:Ye,pendingForm:En,onSubmitForm:(S,ee)=>{O(void 0),e.transport.post({type:"formResponse",id:S,submitted:!0,values:ee})},onDismissForm:S=>{O(void 0),e.transport.post({type:"formResponse",id:S,submitted:!1,values:{}})},canRollback:re,onSend:wC,onCancel:zC,onDecideApproval:TC,onAlwaysAllow:CC,onRollback:JC,usage:z6,expertSpend:Dn,supportsVision:C6,mentionCandidates:M1,onQueryMentions:W1,profiles:L,activeProfileId:Q,onSelectProfile:i0,expertEnabled:Rf,queued:O6,onUnqueue:$C,searchConnections:Mf.map(S=>({id:S.id,label:S.label})),activeSearchId:Hc,onSelectSearch:S=>e.transport.post({type:"setActiveSearchConnection",id:S})})})]})}var L2=P(Z2(),1);var Df=class{constructor(t){this.onStatus=t}onStatus;listeners=new Set;token;async connect(){let t=new URLSearchParams(window.location.hash.slice(1)).get("t");if(t!==null){window.history.replaceState(null,"",window.location.pathname);let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handoff:t})});if(!n.ok)throw new Error(await n.text());this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token)}else this.token=sessionStorage.getItem("lightCodeToken")??void 0;if(this.token===void 0)throw new Error("No session. Restart light-code and open the printed URL.");this.listen()}async listen(){for(;;){try{let t=window.location.pathname.startsWith("/admin")?"?view=admin":"",n=await fetch(`/api/events${t}`,{headers:{Authorization:`Bearer ${this.token??""}`}});if(!n.ok||n.body===null)throw new Error(`stream failed: ${n.status}`);this.onStatus("connected");let r=n.body.getReader(),i=new TextDecoder,o="";for(;;){let{done:a,value:l}=await r.read();if(a)break;o+=i.decode(l,{stream:!0});let c=o.indexOf(`
137
+ }`),[U6,N6]=(0,F.useState)({}),[R6,J1]=(0,F.useState)(void 0),[M6,B6]=(0,F.useState)({}),[Z6,L6]=(0,F.useState)("posix"),[P6,F6]=(0,F.useState)(0),[X1,K1]=(0,F.useState)(void 0),[V6,q6]=(0,F.useState)(void 0),[H6,W1]=(0,F.useState)([]),[Q1,Wf]=(0,F.useState)(void 0),[G6,Qf]=(0,F.useState)(!1),[Y6,em]=(0,F.useState)(!1),[eS,tm]=(0,F.useState)(void 0),[J6,X6]=(0,F.useState)([]),[tS,nS]=(0,F.useState)(void 0),[K6,W6]=(0,F.useState)(void 0),[Q6,eC]=(0,F.useState)(!1),[nm,tC]=(0,F.useState)(!1),[nC,iS]=(0,F.useState)(void 0),[rS,iC]=(0,F.useState)(void 0),[oS,rC]=(0,F.useState)([]),[oC,aC]=(0,F.useState)([]),[im,lC]=(0,F.useState)([]),[gl,sC]=(0,F.useState)(void 0),[cC,uC]=(0,F.useState)([]),[aS,dC]=(0,F.useState)(void 0),[lS,sS]=(0,F.useState)(void 0),[fC,mC]=(0,F.useState)(0),[cS,uS]=(0,F.useState)(void 0),[dc,hC]=(0,F.useState)(void 0),[pC,dS]=(0,F.useState)(void 0),[gC,fS]=(0,F.useState)(void 0),[yC,mS]=(0,F.useState)(void 0),[vC,bC]=(0,F.useState)(void 0),[hS,pS]=(0,F.useState)({folders:[],loading:!1}),[ri,xC]=(0,F.useState)(void 0),[SC,rm]=(0,F.useState)(void 0),[kC,gS]=(0,F.useState)([]),[_C,yS]=(0,F.useState)(void 0),[wC,vS]=(0,F.useState)(!1),[$C,zC]=(0,F.useState)(0),[TC,CC]=(0,F.useState)(void 0),[EC,IC]=(0,F.useState)(void 0),[DC,AC]=(0,F.useState)([]),[jC,OC]=(0,F.useState)([]),[UC,NC]=(0,F.useState)(void 0),[RC,MC]=(0,F.useState)([]),[BC,ZC]=(0,F.useState)([]),[LC,PC]=(0,F.useState)([]),[om,bS]=(0,F.useState)({choosesTheme:!1}),[xS,FC]=(0,F.useState)(void 0),[VC,qC]=(0,F.useState)({workspaceOpen:!1,overridden:[]}),[HC,SS]=(0,F.useState)({tools:[],dispatcher:!1,office:{supported:!1,excel:!1,outlook:!1}}),[GC,YC]=(0,F.useState)(void 0),[JC,XC]=(0,F.useState)(void 0),[KC,WC]=(0,F.useState)([]),[QC,eE]=(0,F.useState)("");(0,F.useEffect)(()=>{let S=e.transport.onMessage(X=>{let p=X;if(p.type==="textChunk")y(ve=>{let Dt=ve[ve.length-1],Un={kind:"text",role:"assistant",content:p.text,pending:!0,...p.expertInformed===!0?{expertInformed:!0}:{}};return Dt?.kind==="text"&&Dt.role==="assistant"&&Dt.pending?[...ve.slice(0,-1),Un]:[...ve,Un]});else if(p.type==="reasoningChunk")y(ve=>{let Dt=ve.findIndex(yl=>yl.kind==="reasoning"&&yl.pending===!0),Un={kind:"reasoning",content:p.text,pending:!0};return Dt===-1?[...ve,Un]:[...ve.slice(0,Dt),Un,...ve.slice(Dt+1)]});else if(p.type==="toolCall")y(ve=>[...wa(ve),{kind:"tool",toolCall:p.toolCall,...p.expertInformed===!0?{expertInformed:!0}:{}}]);else if(p.type==="toolResult")y(ve=>{let Dt={kind:"tool",toolCall:p.toolCall,...p.expertInformed===!0?{expertInformed:!0}:{}},Un=ve.findIndex(yl=>yl.kind==="tool"&&yl.toolCall.id===p.toolCall.id);return Un===-1?[...ve,Dt]:[...ve.slice(0,Un),Dt,...ve.slice(Un+1)]});else if(p.type==="formRequest")y(wa),O(p);else if(p.type==="approvalRequest")y(wa),Qe({id:p.id,toolName:p.toolName,group:p.group,preview:p.preview,...p.alwaysScope===void 0?{}:{alwaysScope:p.alwaysScope}});else if(p.type==="openSettings")e.transport.post({type:"requestProfiles"}),i({tab:p.tab,nonce:Date.now()}),n("settings");else if(p.type==="hostRole")N({role:p.role,shared:p.shared,displayName:p.displayName,sharedProfileIds:p.sharedProfileIds});else if(p.type==="reviews")d({items:p.items,canDecide:p.canDecide});else if(p.type==="variables")s({user:p.user,admin:p.admin,resolved:p.resolved,adminIds:p.adminIds,canEditAdmin:p.canEditAdmin});else if(p.type==="settings")wi(p.modeId),h(p.programmingProfileId),x(p.allowProgrammingProfile),bS({choosesTheme:p.choosesTheme===!0,...p.theme===void 0?{}:{theme:p.theme}}),FC(p.toolTimeoutSeconds),a({native:p.nativeGuide,...p.guideMediaBase!==void 0?{mediaBase:p.guideMediaBase}:{}}),S6(p.approvals),_6(p.maxIterations),H1(p.accentColor),z6(p.readRoots),G1(p.expertColor),ab(p.accentColor),lb(p.expertColor);else if(p.type==="mcp")A6(p.servers),O6(p.json),N6(p.warnings),B6(p.configs),L6(p.platform),J1(void 0);else if(p.type==="mcpSaveError")J1(p.message);else if(p.type==="checkpointAvailable")de(!0);else if(p.type==="rolledBack")de(!1);else if(p.type==="done")y(wa),Qe(void 0),v(!1);else if(p.type==="error")y(wa),Qe(void 0),ee(p.message),v(!1);else if(p.type==="profiles")T(p.profiles),C(p.activeProfileId),Ye(!0);else if(p.type==="profileSaved")n("chat");else if(p.type==="models")W1(p.models),Wf(p.warning),Qf(!1);else if(p.type==="testConnectionResult")tm({ok:p.ok,steps:p.steps}),em(!1);else if(p.type==="contextUsage")W6(p.usage);else if(p.type==="compacted")y(ve=>[...ve,{kind:"text",role:"assistant",content:`[${p.summarisedCount} earlier messages were summarised to stay within the context window. The full transcript is still saved.]`}]);else if(p.type==="search")lC(p.connections),sC(p.activeConnectionId);else if(p.type==="searchIndexes")uC(p.indexes),dC(p.warning);else if(p.type==="searchTestResult")sS({ok:p.ok,detail:p.detail});else if(p.type==="queued")aC(p.messages);else if(p.type==="queuedMessageConsumed")y(ve=>[...wa(ve),{kind:"text",role:"user",content:p.text}]);else if(p.type==="mentionCandidates")rC(p.paths);else if(p.type==="capabilities")eC(p.supportsVision);else if(p.type==="pathPicked")K1({purpose:p.purpose,path:p.path});else if(p.type==="pythonEnvProbe")q6({...p.interpreter!==void 0?{interpreter:p.interpreter}:{},...p.venvDir!==void 0?{venvDir:p.venvDir}:{},detail:p.detail});else if(p.type==="tools")SS(p);else if(p.type==="schedules")PC(p.skills),MC(p.schedules),ZC(p.tools),XC(p.runningId),YC(p.scheduler);else if(p.type==="searchLog")I6(p.entries);else if(p.type==="searchProbe")Y1(ve=>({...ve,[p.target]:{query:p.query,text:p.text,...p.error!==void 0?{error:p.error}:{}}})),pl(ve=>({...ve,[p.target]:!1}));else if(p.type==="dispatcher")Xf({enabled:p.enabled,hiddenTools:p.hiddenTools,skills:p.skills,hiddenSkills:p.hiddenSkills,...p.docsIndex!==void 0?{docsIndex:p.docsIndex}:{}});else if(p.type==="projectSettings")qC(p);else if(p.type==="docsIndexed")sc(!1),Eo({...p.indexed!==void 0?{indexed:p.indexed}:{},...p.index!==void 0?{index:p.index}:{},...p.error!==void 0?{error:p.error}:{}});else if(p.type==="expertSpend")C6({usd:p.usd,consultations:p.consultations,unpriced:p.unpriced,...p.usage!==void 0?{usage:p.usage}:{},...p.exhausted!==void 0?{exhausted:p.exhausted}:{},maxSpendUsd:p.maxSpendUsd,maxConsultations:p.maxConsultations,overridden:p.overridden,...p.estimate!==void 0?{estimate:p.estimate}:{}});else if(p.type==="mcpServerSaved")F6(ve=>ve+1);else if(p.type==="embedder"){let{type:ve,...Dt}=p;hC(Dt)}else p.type==="skills"?(AC(p.skills),OC(p.issues),NC(p.skillsDir),WC(p.extraDirs)):p.type==="python"?(CC(p.status),IC(p.settings)):p.type==="embedderModels"?(gS(p.models),yS(p.warning),vS(!1)):p.type==="embedderSaved"?zC(ve=>ve+1):p.type==="indexProgress"?dS(p.progress):p.type==="outlookFolders"?pS({folders:p.folders??[],loading:!1,...p.error!==void 0?{error:p.error}:{}}):p.type==="indexingProgress"?xC({kind:p.kind,phase:p.phase,running:p.running,...p.done!==void 0?{done:p.done}:{},...p.total!==void 0?{total:p.total}:{},...p.detail!==void 0?{detail:p.detail}:{}}):p.type==="mailStatus"?bC({enabled:p.enabled,available:p.available,folders:p.folders,syncMinutes:p.syncMinutes,retentionMonths:p.retentionMonths,indexed:p.indexed,...p.oldest!==void 0?{oldest:p.oldest}:{},...p.newest!==void 0?{newest:p.newest}:{},sizeBytes:p.sizeBytes,semantic:p.semantic,...p.storeId!==void 0?{storeId:p.storeId}:{},stores:p.stores,...p.busy!==void 0?{busy:p.busy}:{},...p.lastResult!==void 0?{lastResult:p.lastResult}:{}}):p.type==="teamSkillsPublished"?rm({...p.count!==void 0?{count:p.count}:{},...p.collection!==void 0?{collection:p.collection}:{},...p.error!==void 0?{error:p.error}:{}}):p.type==="teamAliasAttached"?mS({...p.alias!==void 0?{alias:p.alias}:{},...p.index!==void 0?{index:p.index}:{},...p.attributed!==void 0?{attributed:p.attributed}:{},...p.error!==void 0?{error:p.error}:{}}):p.type==="indexResult"?(dS(void 0),fS({...p.result!==void 0?{result:p.result}:{},...p.error!==void 0?{error:p.error}:{}})):p.type==="storeSync"?uS({running:p.running,...p.copied!==void 0?{copied:p.copied}:{},...p.error!==void 0?{error:p.error}:{},...p.fromLabel!==void 0?{fromLabel:p.fromLabel}:{}}):p.type==="searchConnectionSaved"?mC(ve=>ve+1):p.type==="network"?iC(p.settings):p.type==="expert"?(iS(p),tC(p.enabled&&p.available)):p.type==="tasks"?(X6(p.tasks),nS(p.activeTaskId)):p.type==="taskRestored"&&(y(p.entries),nS(p.taskId),ee(void 0),Qe(void 0),v(!1),de(!1))});return e.transport.post({type:"requestProfiles"}),e.transport.post({type:"requestSettings"}),e.transport.post({type:"requestMcp"}),e.transport.post({type:"requestExpert"}),e.transport.post({type:"requestSearch"}),e.transport.post({type:"requestMailStatus"}),e.transport.post({type:"requestProjectSettings"}),e.transport.post({type:"requestNetwork"}),e.transport.post({type:"requestPython"}),e.transport.post({type:"requestSkills"}),e.transport.post({type:"requestSchedules"}),e.transport.post({type:"requestTools"}),e.transport.post({type:"requestVariables"}),e.transport.post({type:"requestReviews"}),S},[e.transport]);let kS=()=>{let S={type:"requestProfiles"};e.transport.post(S),n("settings")},tE=(S,X)=>{if(b){e.transport.post({type:"queueMessage",text:S});return}ee(void 0);let p=X.length>0?`${S}${S.length>0?`
138
+ `:""}[${X.length} image(s) attached]`:S;y(Dt=>[...Dt,{kind:"text",role:"user",content:p}]),v(!0);let ve=X.length>0?{type:"sendMessage",text:S,images:X}:{type:"sendMessage",text:S};e.transport.post(ve)},nE=S=>{e.transport.post({type:"unqueueMessage",index:S})},_S=S=>{e.transport.post({type:"requestMentionCandidates",query:S})},iE=()=>{let S={type:"cancel"};e.transport.post(S)},rE=(S,X)=>{Qe(void 0),e.transport.post({type:"approvalResponse",id:S,decision:X})},oE=(S,X)=>{Qe(void 0),e.transport.post({type:"approvalResponseAlways",id:S,scope:X})},aE=S=>{wi(S),e.transport.post({type:"setMode",modeId:S})},lE=(S,X)=>{e.transport.post({type:"setAutoApprove",group:S,enabled:X})},sE=S=>{e.transport.post({type:"revokeAllowedTool",toolName:S})},cE=S=>{e.transport.post({type:"revokeAllowedCommand",command:S})},uE=()=>{e.transport.post({type:"requestTasks"}),n("history")},dE=S=>{e.transport.post({type:"openTask",id:S}),n("chat")},wS=()=>{e.transport.post({type:"newTask"}),n("chat")},fE=S=>{e.transport.post({type:"deleteTask",id:S})},mE=S=>{Qf(!0),Wf(void 0),e.transport.post({type:"requestModels",profile:S})},hE=S=>{em(!0),tm(void 0),e.transport.post({type:"testConnection",profile:S})},pE=()=>{W1([]),Wf(void 0),Qf(!1),tm(void 0),em(!1)},gE={connections:im,activeConnectionId:gl,indexes:cC,...aS!==void 0?{indexesWarning:aS}:{},...lS!==void 0?{testResult:lS}:{},savedTick:fC,onSave:S=>{ee(void 0),e.transport.post({type:"saveSearchConnection",connection:S})},onDelete:S=>e.transport.post({type:"deleteSearchConnection",id:S}),onSyncFrom:S=>{uS({running:!0}),e.transport.post({type:"syncVectorStore",fromId:S})},...cS!==void 0?{sync:cS}:{},onSetActive:(S,X)=>e.transport.post({type:"setActiveSearchConnection",id:S,...X===!0?{forProject:!0}:{}}),project:VC,onClearProject:()=>e.transport.post({type:"clearProjectSettings"}),onListIndexes:S=>e.transport.post({type:"requestSearchIndexes",connection:S}),onTest:S=>{sS(void 0),e.transport.post({type:"testSearchConnection",connection:S})},indexing:{embedder:dc,profiles:B,connectionLabel:im.find(S=>S.id===gl)?.label,progress:pC,lastResult:gC,models:kC,modelsWarning:_C,modelsLoading:wC,savedTick:$C,onRequestModels:S=>{gS([]),yS(void 0),vS(!0),e.transport.post({type:"requestEmbedderModels",profileId:S})},onSaveEmbedder:(S,X,p,ve,Dt,Un)=>{ee(void 0),e.transport.post({type:"saveEmbedder",profileId:S,model:X,dimensions:p,...ve.length>0?{indexName:ve}:{},...Dt.length>0?{indexPrefix:Dt}:{},...Un.length>0?{indexAlias:Un}:{}})},onAttachTeamAlias:()=>{mS(void 0),e.transport.post({type:"attachTeamAlias"})},aliasResult:yC,onStartIndexing:()=>{fS(void 0),e.transport.post({type:"startIndexing"})},onClearIndex:()=>e.transport.post({type:"clearCodebaseIndex"}),onCancelIndexing:()=>e.transport.post({type:"cancelIndexing"})},dispatcher:{enabled:Hr.enabled,hiddenTools:Hr.hiddenTools,skills:Hr.skills,hiddenSkills:Hr.hiddenSkills,...Hr.docsIndex!==void 0?{docsIndex:Hr.docsIndex}:{},indexing:Kf,...Gr!==void 0?{result:Gr}:{},retrievalReady:gl!==void 0&&dc?.model!==void 0,onToggle:S=>{Xf(X=>({...X,enabled:S})),e.transport.post({type:"setDispatcher",enabled:S})},onToggleSkills:S=>{Xf(X=>({...X,skills:S})),e.transport.post({type:"setSkillRetrieval",enabled:S})},onIndexDocs:S=>{Eo(void 0),sc(!0),e.transport.post({type:"indexDocs",...S===void 0?{}:{kind:S}})},onClearDocsIndex:()=>{Eo(void 0),sc(!0),e.transport.post({type:"clearDocsIndex"})}},activity:{entries:E6,probe:cc.docs,probeRunning:uc.docs===!0,onProbe:(S,X)=>{er(X),pl(p=>({...p,[X]:!0})),e.transport.post({type:"runSearchProbe",query:S,target:X})},onClear:()=>e.transport.post({type:"clearSearchLog"}),onClearProbe:()=>er("docs")}},yE=(S,X,p,ve)=>{e.transport.post({type:"setExpert",enabled:S,...X.length>0?{path:X}:{},...p.length>0?{model:p}:{},maxSpendUsd:ve.maxSpendUsd,maxConsultations:ve.maxConsultations})},vE=(S,X,p)=>{ee(void 0),e.transport.post({type:"saveMcpServer",name:S,...X!==void 0?{previousName:X}:{},config:p})},$S=S=>{e.transport.post({type:"openManagedFile",path:S})},zS=S=>{K1(void 0),e.transport.post({type:"browseForPath",...S})},bE=(S,X)=>{e.transport.post({type:"probePythonEnv",venvDir:S,script:X})},xE=S=>{e.transport.post({type:"deleteMcpServer",name:S})},SE=S=>{e.transport.post({type:"saveMcpServers",json:S})},kE=S=>{e.transport.post({type:"restartMcpServer",name:S})},_E=(S,X)=>{e.transport.post({type:"setMcpServerEnabled",name:S,enabled:X})},wE=S=>{e.transport.post({type:"connectMcpServer",name:S})},$E=(S,X,p)=>{e.transport.post({type:"setMcpToolPermission",server:S,tool:X,permission:p})},zE=()=>{e.transport.post({type:"rollback"})},TE=S=>{e.transport.post({type:"saveProfile",profile:S})},CE=S=>{e.transport.post({type:"duplicateProfile",id:S})},EE=S=>{e.transport.post({type:"deleteProfile",id:S})},TS=S=>{e.transport.post({type:"setActiveProfile",id:S})},IE=()=>{e.transport.post({type:"exportConfig"})},DE=()=>{e.transport.post({type:"importConfig"})},AE=re&&B.length===0;return(0,Ue.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh",boxSizing:"border-box",background:c.background,color:c.foreground,fontFamily:P,fontSize:13},children:[(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",borderBottom:`1px solid ${c.border}`,flexShrink:0},children:[(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ue.jsx)("strong",{children:"Light Code"}),t==="chat"&&(0,Ue.jsx)(ub,{modeId:ct,disabled:b,onChange:aE,expertAvailable:nm}),t==="chat"&&(0,Ue.jsx)(Pw,{enabled:nm,modeId:ct,usd:On.usd,consultations:On.consultations,maxSpendUsd:On.maxSpendUsd,maxConsultations:On.maxConsultations,overridden:On.overridden,...On.estimate!==void 0?{estimate:On.estimate}:{},...On.usage!==void 0?{usage:On.usage}:{},...On.exhausted!==void 0?{exhausted:On.exhausted}:{},onSetLimits:S=>e.transport.post({type:"setTaskExpertLimits",...S})})]}),t==="chat"?(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:2},children:[(0,Ue.jsx)("button",{type:"button","aria-label":"New task",title:"New task",style:Se("ghost",b),disabled:b,onClick:wS,children:(0,Ue.jsx)(nw,{})}),(0,Ue.jsx)("button",{type:"button","aria-label":"History",title:"History",style:Se("ghost"),onClick:uE,children:(0,Ue.jsx)(tw,{})}),(0,Ue.jsx)("button",{type:"button","aria-label":"Settings",title:"Settings",style:Se("ghost"),onClick:kS,children:(0,Ue.jsx)(iw,{})}),(0,Ue.jsx)("button",{type:"button","aria-label":"Guide",title:"Open the guide",style:Se("ghost"),onClick:()=>{if(o.native){e.transport.post({type:"openWalkthrough"});return}n("guide")},children:(0,Ue.jsx)(fw,{})})]}):(0,Ue.jsx)("button",{type:"button","aria-label":"Back",title:"Back",style:Se("ghost"),onClick:()=>n("chat"),children:(0,Ue.jsx)(X_,{})})]}),A!==void 0&&t!=="chat"&&(0,Ue.jsxs)("div",{role:"alert",style:{margin:"8px 12px 0",padding:"8px 10px",fontSize:12,borderRadius:4,display:"flex",alignItems:"flex-start",gap:8,color:"var(--vscode-inputValidation-errorForeground, var(--vscode-foreground))",background:"var(--vscode-inputValidation-errorBackground, transparent)",border:"1px solid var(--vscode-inputValidation-errorBorder, var(--vscode-errorForeground))"},children:[(0,Ue.jsx)("span",{style:{flex:1},children:A}),(0,Ue.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>ee(void 0),style:{background:"transparent",border:"none",color:"inherit",cursor:"pointer",padding:0},children:"\u2715"})]}),(0,Ue.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:t==="guide"?(0,Ue.jsx)(O$,{...o.mediaBase!==void 0?{mediaBase:o.mediaBase}:{},onClose:()=>n("chat"),onOpenTab:S=>{e.transport.post({type:"requestProfiles"}),i({tab:S,nonce:Date.now()}),n("settings")}}):t==="settings"?(0,Ue.jsx)(cb,{...r!==void 0?{requestedTab:r}:{},profiles:B,activeProfileId:V,onSave:TE,onDuplicate:CE,onDelete:EE,onSetActive:TS,onExport:IE,onImport:DE,...k!==void 0?{sharedProfileIds:k.sharedProfileIds}:{},onRequestModels:mE,onTestConnection:hE,onEditingChange:pE,models:H6,...Q1!==void 0?{modelsWarning:Q1}:{},modelsLoading:G6,testRunning:Y6,...eS!==void 0?{testResult:eS}:{},approvals:x6,onSetAutoApprove:lE,onRevokeTool:sE,onRevokeCommand:cE,maxIterations:k6,readRoots:$6,onSetReadRoots:S=>e.transport.post({type:"setReadRoots",roots:S}),accentColor:w6,onSetAccentColor:S=>{H1(S),ab(S),e.transport.post({type:"setAccentColor",value:S})},expertColor:T6,onSetExpertColor:S=>{G1(S),lb(S),e.transport.post({type:"setExpertColor",value:S})},...om.choosesTheme?{choosesTheme:!0}:{},...om.theme===void 0?{}:{theme:om.theme},onSetTheme:S=>{bS(X=>({...X,theme:S})),e.transport.post({type:"setTheme",theme:S})},onSetMaxIterations:S=>e.transport.post({type:"setMaxIterations",value:S}),mcpServers:D6,mcpJson:j6,mcpWarnings:U6,mcpSaveError:R6,mcpConfigs:M6,mcpPlatform:Z6,mcpSavedTick:P6,mcpPythonProbe:V6,onDetectPython:bE,onBrowse:zS,pickedPath:X1,onSaveMcpServer:vE,onDeleteMcpServer:xE,onDuplicateMcpServer:S=>e.transport.post({type:"duplicateMcpServer",name:S}),onSaveMcp:SE,onRestartMcp:kE,onSetMcpServerEnabled:_E,onSetMcpToolPermission:$E,onSetMcpToolTimeout:(S,X,p)=>e.transport.post({type:"setMcpToolTimeout",server:S,tool:X,...p===void 0?{}:{seconds:p}}),onConnectMcp:wE,expert:nC,onSaveExpert:yE,onAssessJunior:()=>e.transport.post({type:"assessJunior"}),onMeasureCost:()=>e.transport.post({type:"measureExpertCost"}),onClearPricing:()=>e.transport.post({type:"clearExpertPricing"}),onSetKeepAlive:S=>e.transport.post({type:"setExpertKeepAlive",enabled:S}),onClearAssessment:()=>e.transport.post({type:"clearAssessment"}),onRecheckExpert:()=>{iS(void 0),e.transport.post({type:"requestExpert"})},search:gE,skills:{team:{alias:dc?.skillsAlias,onSaveAlias:S=>e.transport.post({type:"saveSkillsAlias",alias:S}),onPublish:()=>{rm(void 0),e.transport.post({type:"publishTeamSkills"})},onClear:()=>{rm(void 0),e.transport.post({type:"clearTeamSkills"})},onStop:()=>e.transport.post({type:"cancelIndexing",kind:"teamSkills"}),publishing:ri?.kind==="teamSkills"&&ri.running,progress:ri?.kind==="teamSkills"?ri:void 0,result:SC},skills:DC,issues:jC,skillsDir:UC,extraDirs:KC,configuredDir:QC,onOpenFile:$S,onOpenStandingSkill:()=>e.transport.post({type:"openStandingSkill"}),onReindex:()=>{Eo(void 0),sc(!0),e.transport.post({type:"indexDocs",kind:"skill"})},probe:{running:uc.docs===!0,result:cc.docs},onProbe:(S,X)=>{er(X),pl(p=>({...p,[X]:!0})),e.transport.post({type:"runSearchProbe",query:S,target:X})},onClearProbe:()=>er("docs"),onClearIndex:()=>{Eo(void 0),e.transport.post({type:"clearDocsIndex",kind:"skill"})},indexProgress:ri?.kind==="skills"?ri:void 0,onStopIndexing:()=>e.transport.post({type:"cancelIndexing",kind:"skills"}),indexing:Kf,indexResult:Gr===void 0?void 0:Gr.error!==void 0?`Failed: ${Gr.error}`:`Indexed ${String(Gr.indexed??0)} entries.`,onDelete:S=>e.transport.post({type:"deleteSkillFile",name:S}),onSaveDirs:(S,X)=>{eE(S),e.transport.post({type:"saveSkillDirs",dir:S,paths:X})}},schedules:{schedules:RC,tools:BC,skills:LC,runningId:JC,onSave:S=>e.transport.post({type:"saveSchedule",schedule:S}),onDelete:S=>e.transport.post({type:"deleteSchedule",id:S}),onDuplicate:S=>e.transport.post({type:"duplicateSchedule",id:S}),onToggle:(S,X)=>e.transport.post({type:"setScheduleEnabled",id:S,enabled:X}),onRunNow:S=>e.transport.post({type:"runScheduleNow",id:S}),mentionCandidates:oS,onQueryMentions:_S,onOpenReport:S=>e.transport.post({type:"openManagedFile",path:S}),onOpenRun:(S,X)=>e.transport.post({type:"openScheduleRun",taskId:S,title:X}),scheduler:GC,onRestartScheduler:()=>e.transport.post({type:"restartScheduler"}),onDeleteRun:(S,X)=>e.transport.post({type:"deleteScheduleRun",id:S,at:X}),onClearRuns:S=>e.transport.post({type:"clearScheduleRuns",...S===void 0?{}:{id:S}})},outlook:{status:vC,onSave:S=>e.transport.post({type:"saveMailSettings",...S}),onSyncNow:()=>e.transport.post({type:"syncMail"}),onPrune:()=>e.transport.post({type:"pruneMail"}),tree:hS,progress:ri?.kind==="mail"?ri:void 0,onRefreshFolders:()=>{pS(S=>({...S,loading:!0})),e.transport.post({type:"requestOutlookFolders",force:hS.folders.length>0})},onClear:S=>e.transport.post({type:"clearMailIndex",resync:S}),probe:{running:uc.mail===!0,result:cc.mail},onProbe:(S,X)=>{er(X),pl(p=>({...p,[X]:!0})),e.transport.post({type:"runSearchProbe",query:S,target:X})},onClearProbe:()=>er("mail"),onRefreshDays:S=>e.transport.post({type:"refreshMail",days:S}),onStop:()=>e.transport.post({type:"cancelIndexing",kind:"mail"})},tools:{...HC,docsIndex:{enabled:Hr.enabled,retrievalReady:gl!==void 0&&dc?.model!==void 0,indexing:Kf,result:sb(Gr)},onIndexDocs:()=>e.transport.post({type:"indexDocs",kind:"tool"}),probe:{running:uc.docs===!0,result:cc.docs},onProbe:(S,X)=>{er(X),pl(p=>({...p,[X]:!0})),e.transport.post({type:"runSearchProbe",query:S,target:X})},onClearProbe:()=>er("docs"),onClearDocs:()=>{Eo(void 0),e.transport.post({type:"clearDocsIndex",kind:"tool"})},progress:ri?.kind==="tools"?ri:void 0,onStopIndexing:()=>e.transport.post({type:"cancelIndexing",kind:"tools"}),...xS===void 0?{}:{toolTimeoutSeconds:xS},onSetToolTimeoutFor:(S,X)=>e.transport.post({type:"setToolTimeoutFor",name:S,...X===void 0?{}:{seconds:X}}),onSetToolTimeout:S=>e.transport.post({type:"setToolTimeout",...S===void 0?{}:{seconds:S}}),onSetOffice:(S,X)=>{SS(p=>({...p,office:{...p.office,excel:S,outlook:X}})),e.transport.post({type:"setOffice",excel:S,outlook:X})}},...u!==void 0?{reviews:{...u,onDecide:(S,X,p)=>e.transport.post({type:"decideReview",id:S,approved:X,...p!==void 0?{reason:p}:{}})}}:{},...l!==void 0?{variables:{...l,onSaveUser:S=>e.transport.post({type:"saveUserVariables",variables:S}),onSaveAdmin:S=>e.transport.post({type:"saveAdminVariables",variables:S}),onSaveAdminIds:S=>e.transport.post({type:"saveAdminIds",ids:S})}}:{},python:{...f?{programming:{profiles:B.map(S=>({id:S.id,label:S.label})),selectedId:m,onSelect:S=>e.transport.post({type:"setProgrammingProfile",id:S})}}:{},status:TC,settings:EC,onBrowse:zS,pickedPath:X1,onOpenFile:$S,onDeleteTool:S=>e.transport.post({type:"deletePythonTool",name:S}),onApproveTool:S=>e.transport.post({type:"approvePythonTool",name:S}),onSave:S=>e.transport.post({type:"setPython",dynamicTools:S.dynamicTools,...S.uvPath.length>0?{uvPath:S.uvPath}:{},...S.toolsDir.length>0?{toolsDir:S.toolsDir}:{},timeoutSeconds:S.timeoutSeconds,...S.indexUrl.length>0?{indexUrl:S.indexUrl}:{},offline:S.offline})},network:{...rS!==void 0?{settings:rS}:{settings:void 0},onSave:S=>e.transport.post({type:"saveNetwork",settings:S})}}):t==="history"?(0,Ue.jsx)(N$,{tasks:J6,activeTaskId:tS,onOpen:dE,onDelete:fE,onNew:wS}):AE?(0,Ue.jsxs)("div",{style:{padding:20,textAlign:"center"},children:[(0,Ue.jsx)("p",{style:{color:c.muted},children:"No provider configured yet."}),(0,Ue.jsx)("button",{type:"button",style:se(!1),onClick:kS,children:"Configure a Provider"})]}):(0,Ue.jsx)(qv,{conversationKey:tS??"new",messages:g,isStreaming:b,error:A,pendingApproval:Je,pendingForm:jn,onSubmitForm:(S,X)=>{O(void 0),e.transport.post({type:"formResponse",id:S,submitted:!0,values:X})},onDismissForm:S=>{O(void 0),e.transport.post({type:"formResponse",id:S,submitted:!1,values:{}})},canRollback:le,onSend:tE,onCancel:iE,onDecideApproval:rE,onAlwaysAllow:oE,onRollback:zE,usage:K6,expertSpend:On,supportsVision:Q6,mentionCandidates:oS,onQueryMentions:_S,profiles:B,activeProfileId:V,onSelectProfile:TS,expertEnabled:nm,queued:oC,onUnqueue:nE,searchConnections:im.map(S=>({id:S.id,label:S.label})),activeSearchId:gl,onSelectSearch:S=>e.transport.post({type:"setActiveSearchConnection",id:S})})})]})}var p6=M(h6(),1);var Jf=class{constructor(t){this.onStatus=t}onStatus;listeners=new Set;token;async connect(){let t=new URLSearchParams(window.location.hash.slice(1)).get("t");if(t!==null){window.history.replaceState(null,"",window.location.pathname);let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handoff:t})});if(!n.ok)throw new Error(await n.text());this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token)}else this.token=sessionStorage.getItem("lightCodeToken")??void 0;if(this.token===void 0)throw new Error("No session. Restart light-code and open the printed URL.");this.listen()}async listen(){for(;;){try{let t=window.location.pathname.startsWith("/admin")?"?view=admin":"",n=await fetch(`/api/events${t}`,{headers:{Authorization:`Bearer ${this.token??""}`}});if(!n.ok||n.body===null)throw new Error(`stream failed: ${n.status}`);this.onStatus("connected");let r=n.body.getReader(),i=new TextDecoder,o="";for(;;){let{done:a,value:l}=await r.read();if(a)break;o+=i.decode(l,{stream:!0});let s=o.indexOf(`
139
139
 
140
- `);for(;c!==-1;){let u=o.slice(0,c);if(o=o.slice(c+2),u.startsWith("data: ")){let d=JSON.parse(u.slice(6));for(let m of this.listeners)m(d)}c=o.indexOf(`
140
+ `);for(;s!==-1;){let u=o.slice(0,s);if(o=o.slice(s+2),u.startsWith("data: ")){let d=JSON.parse(u.slice(6));for(let m of this.listeners)m(d)}s=o.indexOf(`
141
141
 
142
- `)}}}catch(t){this.onStatus(`disconnected \u2014 retrying (${t instanceof Error?t.message:String(t)})`)}await new Promise(t=>setTimeout(t,1e3))}}post(t){fetch("/api/message",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.token??""}`},body:JSON.stringify(t)}).catch(()=>this.onStatus("send failed \u2014 is the server still running?"))}onMessage(t){return this.listeners.add(t),()=>this.listeners.delete(t)}};var q2=P(ie(),1),P2=document.getElementById("root");if(P2===null)throw new Error("Light Code: no #root element to mount into.");var _1=document.getElementById("status"),F2=e=>{_1!==null&&(_1.textContent=e==="connected"?"":e,_1.style.display=e==="connected"?"none":"block")},V2=e=>{let t=document.documentElement;if(e==="light"||e==="dark"){t.dataset.theme=e;try{localStorage.setItem("lightcode.theme",e)}catch{}}else{delete t.dataset.theme;try{localStorage.removeItem("lightcode.theme")}catch{}}};try{V2(localStorage.getItem("lightcode.theme")??void 0)}catch{}var w1=new Df(F2);w1.onMessage(e=>{let t=e;t.type==="settings"&&V2(t.theme)});w1.connect().then(()=>(0,L2.createRoot)(P2).render((0,q2.jsx)(Vy,{transport:w1}))).catch(e=>{F2(e instanceof Error?e.message:String(e))});})();
142
+ `)}}}catch(t){this.onStatus(`disconnected \u2014 retrying (${t instanceof Error?t.message:String(t)})`)}await new Promise(t=>setTimeout(t,1e3))}}post(t){fetch("/api/message",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.token??""}`},body:JSON.stringify(t)}).catch(()=>this.onStatus("send failed \u2014 is the server still running?"))}onMessage(t){return this.listeners.add(t),()=>this.listeners.delete(t)}};var b6=M(oe(),1),g6=document.getElementById("root");if(g6===null)throw new Error("Light Code: no #root element to mount into.");var V1=document.getElementById("status"),y6=e=>{V1!==null&&(V1.textContent=e==="connected"?"":e,V1.style.display=e==="connected"?"none":"block")},v6=e=>{let t=document.documentElement;if(e==="light"||e==="dark"){t.dataset.theme=e;try{localStorage.setItem("lightcode.theme",e)}catch{}}else{delete t.dataset.theme;try{localStorage.removeItem("lightcode.theme")}catch{}}};try{v6(localStorage.getItem("lightcode.theme")??void 0)}catch{}var q1=new Jf(y6);q1.onMessage(e=>{let t=e;t.type==="settings"&&v6(t.theme)});q1.connect().then(()=>(0,p6.createRoot)(g6).render((0,b6.jsx)(db,{transport:q1}))).catch(e=>{y6(e instanceof Error?e.message:String(e))});})();
143
143
  /*! Bundled license information:
144
144
 
145
145
  react/cjs/react-jsx-runtime.production.js: